:root {
  --ink: #10251e;
  --deep: #092b23;
  --lime: #ddfa6b;
  --paper: #fbfaf5;
  --muted: #52625b;
  --line: #dce2d9;
  --gutter: clamp(1rem, 4.45vw, 4rem);
  color: var(--ink);
  background: var(--paper);
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  font-synthesis: none;
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
a { color: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 3px solid #56856c; outline-offset: 4px; }

.container {
  width: min(80rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  transform: translateY(-200%);
  border-radius: 0.5rem;
  background: var(--lime);
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 5.75rem;
}

.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 0.57rem;
  width: fit-content;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 0.15rem;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0.4rem;
  border-radius: 35%;
  background: var(--deep);
}

.brand-mark::before, .brand-mark::after {
  content: '';
  height: 1.04rem;
  border-radius: 0.48rem 0.06rem 0.48rem 0.06rem;
  background: var(--lime);
}

.brand-mark::before { transform: scaleX(-1) translateY(0.12rem); }
.brand-mark::after { transform: translateY(-0.11rem); }
.brand-name { font-size: 1.56rem; font-weight: 800; letter-spacing: -0.065em; }
.brand-name span { margin-left: 0.22rem; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.06em; }

.primary-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.7rem); }
.primary-nav a {
  color: #2b4035;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 0.28em; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.13rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.button-primary { color: var(--deep); background: var(--lime); }
.button-primary:hover { background: #edff9b; }
.button:disabled { opacity: 0.65; }
.header-cta { justify-self: end; min-height: 2.8rem; border-color: #ccd8c9; }
.header-cta:hover { border-color: #a6baaa; background: #eef3e8; }

.menu-toggle {
  display: none;
  align-content: center;
  justify-items: center;
  gap: 0.32rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--paper);
}
.menu-toggle span { width: 1.15rem; height: 2px; background: var(--ink); }
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(0.22rem) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-0.22rem) rotate(-45deg); }

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.99fr) minmax(0, 1.01fr);
  align-items: stretch;
  gap: 1.5rem;
  min-height: clamp(30rem, 42vw, 35rem);
  padding: 1.2rem;
  overflow: hidden;
  border-radius: 1.65rem;
  background: radial-gradient(ellipse at 4% 105%, #174a37, transparent 72%), var(--deep);
  color: var(--paper);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(1rem, 3.3vw, 3.4rem) 0 clamp(1rem, 3.3vw, 3.4rem) clamp(0.7rem, 3.2vw, 3.3rem);
}

.section-tag {
  margin: 0 0 0.85rem;
  color: #356044;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero h1 span { display: block; color: var(--lime); }
.hero-description {
  max-width: 28rem;
  margin: 1.5rem 0 0;
  color: #d5e2d7;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.68;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.85rem; }
.button-ghost { border-color: #719082; color: var(--paper); }
.button-ghost:hover { border-color: var(--paper); background-color: #214b3d; }

.hero-visual { position: relative; min-width: 0; min-height: 21rem; border-radius: 1rem; background: #426450; }
.hero-visual img {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 48%;
}

.hero-callout {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  border-radius: 0.75rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 6px 24px #092b2340;
  line-height: 1.45;
}
.callout-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.4rem;
  background: var(--lime);
  color: var(--deep);
  font-family: Arial, sans-serif;
  font-size: 1.4rem;
}
.hero-callout strong, .hero-callout small { display: block; }
.hero-callout strong { font-size: 0.9rem; }
.hero-callout small { color: var(--muted); font-size: 0.8rem; }

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.hero-points li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  padding-inline: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.hero-points li + li { border-left: 1px solid var(--line); }
.point-icon { flex: 0 0 1rem; color: #437659; }
.point-circle { width: 1rem; height: 1rem; border: 2px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 8px #b3d9a3; }
.point-spark { font: 1.25rem/1 Arial, sans-serif; }
.point-diamond { width: 1rem; height: 1rem; transform: rotate(45deg) scale(0.8); border: 2px solid currentColor; border-radius: 0.2rem; background: #d1e9bd; }

.programs { padding-block: clamp(4rem, 7vw, 7rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4.25vw, 3.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.066em;
}
.section-head > p { max-width: 22rem; margin: 0 0 0.15rem; color: var(--muted); }

.program-filters { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-block: 1.85rem 1.2rem; }
.program-filters button {
  min-height: 2.75rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}
.program-filters button:hover { border-color: #a6baaa; }
.program-filters button[aria-pressed='true'] { border-color: var(--deep); background: var(--deep); color: var(--paper); }
.program-filters[hidden] ~ .program-grid { margin-top: 1.85rem; }

.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.program-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 1.1rem; background: #fff; }
.program-english { --card-bg: #e1f1c9; --card-ink: #30593a; --card-art: #b6d8a4; }
.program-stem { --card-bg: #f8e6b9; --card-ink: #704a1e; --card-art: #ebc877; }
.program-study { --card-bg: #e9e4f7; --card-ink: #56417f; --card-art: #cfc0ea; }
.program-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 9.1rem;
  isolation: isolate;
  background: var(--card-bg);
  color: var(--card-ink);
}
.program-art::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background-image: radial-gradient(var(--card-art) 1px, transparent 1px);
  background-size: 13px 13px;
  mask-image: linear-gradient(90deg, #000, transparent 40%, transparent 60%, #000);
}
.program-symbol { display: block; position: relative; }
.english-symbol { font-size: 4.7rem; font-weight: 800; letter-spacing: -0.095em; line-height: 1; transform: rotate(-8deg); }
.stem-symbol { width: 4.5rem; height: 4.5rem; }
.stem-symbol i { position: absolute; inset: 0.25rem 1.3rem; transform: rotate(-38deg); border: 2px solid; border-radius: 50%; }
.stem-symbol i + i { transform: rotate(38deg); }
.stem-symbol::after { position: absolute; inset: 1.95rem; content: ''; border-radius: 50%; background: currentColor; }
.study-symbol { display: flex; gap: 0.25rem; align-items: end; height: 3.8rem; transform: rotate(-8deg); }
.study-symbol i { width: 1.15rem; height: 48%; border: 2px solid; border-radius: 0.3rem; background: var(--card-art); }
.study-symbol i:nth-child(2) { height: 72%; }
.study-symbol i:nth-child(3) { height: 100%; }
.program-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1.1rem, 2.3vw, 1.8rem); }
.program-body p { margin: 0 0 1.2rem; color: var(--muted); }
.program-body .program-age { margin: 0 0 0.5rem; color: var(--card-ink); font-size: 0.875rem; font-weight: 700; }
.program-body h3 { margin: 0 0 0.55rem; font-size: clamp(1.24rem, 2.05vw, 1.6rem); line-height: 1.25; letter-spacing: -0.04em; }
.program-actions { display: flex; flex-wrap: wrap; gap: 0.25rem 1.2rem; margin-top: auto; }
.program-actions a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #234e37; font-size: 0.875rem; font-weight: 700; text-underline-offset: 0.3rem; }
.program-actions [data-select-program] { color: var(--muted); }
.program-actions a:hover { text-decoration-thickness: 2px; }

@media (max-width: 960px) {
  .header-inner { min-height: 4.75rem; grid-template-columns: 1fr auto auto; gap: 0.6rem; }
  .menu-toggle { display: grid; }
  .header-inner:has(.menu-toggle:not([hidden])) .primary-nav {
    position: absolute;
    inset: calc(100% - 0.25rem) 0 auto;
    z-index: 2;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--paper);
    box-shadow: 0 12px 28px #092b231b;
  }
  .header-inner:has(.menu-toggle:not([hidden])) .primary-nav[data-open] { display: grid; }
  .primary-nav a { padding: 0.75rem; }
  .header-inner:has(.menu-toggle[hidden]) .primary-nav { grid-area: 2 / 1 / 3 / -1; flex-wrap: wrap; gap: 0; }
}

@media (max-width: 720px) {
  .hero-panel { grid-template-columns: minmax(0, 1fr); min-height: auto; gap: 1.35rem; padding: 0.8rem; border-radius: 1.2rem; }
  .hero-content { padding: 1.7rem 0.7rem 0.3rem; }
  .hero h1 { font-size: clamp(2rem, 7.4vw, 3.35rem); }
  .hero-description { margin-top: 1rem; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-visual { min-height: 0; aspect-ratio: 1.24; border-radius: 0.75rem; }
  .hero-points { grid-template-columns: minmax(0, 1fr); gap: 0.65rem; padding: 1.15rem 0.3rem; }
  .hero-points li { justify-content: start; padding: 0; }
  .hero-points li + li { border-left: 0; }
  .section-head { flex-direction: column; align-items: start; gap: 0.8rem; }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 510px) {
  .program-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 440px) {
  .brand-mark { width: 2.1rem; height: 2.1rem; padding: 0.34rem; }
  .brand-name { font-size: 1.4rem; }
  .brand-name span { font-size: 1rem; }
  .header-cta { padding-inline: 0.65rem; white-space: nowrap; }
  .hero-actions .button { padding-inline: 0.85rem; }
}

@media (max-width: 360px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
