:root {
  --ink: #0a2a63;
  --ink-2: #06265e;
  --blue: #0d5bd6;
  --blue-deep: #093f9e;
  --gold: #ffc400;
  --sky: #e6f3ff;
  --mint: #dcf7ea;
  --lilac: #ece7ff;
  --peach: #ffe6d7;
  --paper: #f7faff;
  --muted: #5a6b8c;
  --line: #d8e3f2;
  --white: #fff;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "DM Sans",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
img {
  max-width: 100%;
}
.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}
.btn {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800 !important;
  font-family: Inter;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition:
    0.2s transform,
    0.2s box-shadow;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(13, 91, 214, 0.25);
}
.btn-white {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(4, 38, 94, 0.1);
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  font-family:
    DM Sans,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.eyebrow:before {
  content: "";
  height: 2px;
  width: 22px;
  background: var(--gold);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Poppins, Inter, sans-serif;
}
.heading {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: clamp(2.1rem, 4.3vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
}
/* keeps a section title on the exact same lines at every screen size */
.heading-split {
  white-space: nowrap;
  /* JS (fitHeadings) refines this per-heading; clamp is the no-JS fallback */
  font-size: clamp(1.5rem, 6.4vw, 4rem);
}
.heading-split span {
  display: block;
  white-space: nowrap;
}
/* let grid/flex columns shrink so a nowrap title can't blow out the row */
.hero-top > *,
.journey-intro > *,
.why-grid > *,
.teacher-grid > *,
.program-head > *,
.stories-head > *,
.flexfit-box > *,
.faq-grid > *,
.cta-box > * {
  min-width: 0;
}
.hl {
  color: var(--blue);
}
.lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 540px;
}
/* narrower variant of .lead — used in the Programs section header */
.lead-narrow {
  max-width: 340px;
}

/* shared arrow icon (Material Symbols arrow_right_alt, inlined so it works on
   file:// too) — painted with currentColor via CSS mask */
.ico-arrow {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%20-960%20960%20960'%3E%3Cpath%20fill='%23000'%20d='M646-440H200q-17%200-28.5-11.5T160-480q0-17%2011.5-28.5T200-520h446L532-634q-12-12-11.5-28t11.5-28q12-12%2028.5-12.5T589-691l183%20183q6%206%208.5%2013t2.5%2015q0%208-2.5%2015t-8.5%2013L589-269q-12%2012-28.5%2011.5T532-270q-11-12-11.5-28t11.5-28l114-114Z'/%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%20-960%20960%20960'%3E%3Cpath%20fill='%23000'%20d='M646-440H200q-17%200-28.5-11.5T160-480q0-17%2011.5-28.5T200-520h446L532-634q-12-12-11.5-28t11.5-28q12-12%2028.5-12.5T589-691l183%20183q6%206%208.5%2013t2.5%2015q0%208-2.5%2015t-8.5%2013L589-269q-12%2012-28.5%2011.5T532-270q-11-12-11.5-28t11.5-28l114-114Z'/%3E%3C/svg%3E")
    no-repeat center / contain;
  vertical-align: -0.22em;
}
.ico-arrow.left {
  transform: rotate(180deg);
}

/* ---------- header ---------- */
header {
  background: rgba(247, 250, 255, 0.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 227, 242, 0.8);
}
.nav {
  height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  width: 132px;
  height: 54px;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
}
.nav-links a:hover {
  color: var(--blue);
}
.nav-links .btn {
  font-size: 0.83rem;
  padding: 11px 18px;
}
.menu {
  display: none;
  border: 0;
  background: none;
  font-size: 1.6rem;
  color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  padding: 60px 0 30px;
  overflow: hidden;
}
.hero-top {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 44px;
  align-items: center;
}
.hero h1 {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: clamp(2rem, 7.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 900;
  margin: 16px 0 20px;
  white-space: nowrap;
}
.hero h1 span {
  display: block;
  white-space: nowrap;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-copy .tiny {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 16px;
}
.hero-art {
  height: 470px;
  position: relative;
}
.hero-photo {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: var(--lilac);
  overflow: hidden;
}
.hero-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.bubble {
  font-family: Inter, sans-serif;
  position: absolute;
  z-index: 2;
  background: #fff;
  border-radius: 15px;
  padding: 12px 16px;
  box-shadow: 0 14px 36px rgba(5, 41, 97, 0.16);
  font-size: 0.76rem;
  font-weight: 600;
  max-width: 220px;
}
.bubble b {
  display: block;
  font-size: 1rem;
  font-family: Inter, sans-serif;
  color: var(--blue);
  margin-bottom: 2px;
}
.bubble.one {
  top: 26px;
  left: -22px;
}
.bubble.two {
  right: -16px;
  bottom: 34px;
  background: var(--gold);
  color: var(--ink);
}
.bubble.two b {
  color: var(--ink);
}

/* ---------- journey ---------- */
.journey {
  padding: 40px 0 90px;
}
.journey-intro {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 26px;
}
.journey-intro p {
  max-width: 360px;
  color: var(--muted);
  font-size: 1.02rem;
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.journey-card {
  min-height: 400px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.journey-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.journey-card:after {
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
  background: linear-gradient(
    0deg,
    rgba(4, 24, 66, 0.9),
    rgba(4, 24, 66, 0.05) 72%
  );
}
.journey-card:nth-child(2):after {
  background: linear-gradient(
    0deg,
    rgba(19, 58, 60, 0.9),
    rgba(19, 58, 60, 0.05) 72%
  );
}
.journey-card:nth-child(3):after {
  background: linear-gradient(
    0deg,
    rgba(41, 33, 92, 0.9),
    rgba(41, 33, 92, 0.05) 72%
  );
}
.journey-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 700;
}
.journey-card p {
  color: #fff;
  opacity: 0.9;
  font-size: 0.86rem;
  margin: 8px 0 16px;
}
.journey-card a {
  font-size: 0.83rem;
  color: #fff;
  font-weight: 700;
  font-family: Poppins, Inter, sans-serif;
  display: inline-flex;
  align-items: center;
  transition: 0.25s transform;
}
.journey-card a span {
  margin-left: 4px;
  transition: 0.25s transform;
}
.journey-card a:hover {
  transform: translateY(-3px);
}
.journey-card a:hover span {
  animation: float-arrow 0.9s ease-in-out infinite;
}
@keyframes float-arrow {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(4px, -4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .journey-card a:hover span {
    animation: none;
  }
}
.ribbon {
  margin-top: 16px;
  border-radius: 16px;
  background: var(--ink-2);
  padding: 16px 24px;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: Poppins, Inter, sans-serif;
}
.ribbon b {
  color: var(--gold);
  margin: 0 10px;
}

/* ---------- why ---------- */
.why {
  background: #fff;
  padding: 92px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}
.why h2 {
  margin: 14px 0 18px;
}
.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.feature {
  border-radius: 18px;
  padding: 26px;
  min-height: 190px;
  transition:
    0.25s transform,
    0.25s box-shadow;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(4, 38, 94, 0.12);
}
.feature:nth-child(1) {
  background: var(--peach);
}
.feature:nth-child(2) {
  background: var(--sky);
}
.feature:nth-child(3) {
  background: var(--mint);
}
.feature:nth-child(4) {
  background: var(--lilac);
}
.feature-icon {
  font-size: 1.6rem;
  display: inline-block;
  transition: 0.25s transform;
}
.feature:hover .feature-icon {
  animation: float-icon 1.6s ease-in-out infinite;
}
@keyframes float-icon {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-6deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .feature:hover .feature-icon {
    animation: none;
  }
}
.feature h3 {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  margin: 18px 0 6px;
  font-weight: 700;
}
.feature p {
  font-size: 0.84rem;
  color: #4f607c;
}
.feature p strong {
  color: #0a1226;
  font-weight: 700;
}

/* ---------- how ---------- */
.path {
  padding: 96px 0;
  background: linear-gradient(180deg, #eef5ff, #fff);
}
.path-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
}
.path-head .eyebrow {
  justify-content: center;
}
.path-head .eyebrow:before {
  display: none;
}
.path-head h2 {
  margin: 14px 0;
}
.path-head .lead {
  margin: auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.step {
  padding: 0 32px;
  border-right: 1px solid var(--line);
}
.step:first-child {
  padding-left: 0;
}
.step:last-child {
  border: 0;
  padding-right: 0;
}
.step-number {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gold);
  font-weight: 800;
  font-family: Poppins, Inter, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.step:nth-child(2) .step-number {
  background: var(--mint);
}
.step:nth-child(3) .step-number {
  background: var(--lilac);
}
.step h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.step p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- teacher ---------- */
.teacher {
  padding: 96px 0;
  background: #fff;
}
.teacher-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.teacher-photo {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.teacher-photo img {
  width: 120%;
  /* Spill past the column into the page margin, but stop 8px short of the
     screen edge — on laptop widths the margin is only 20px, so an uncapped
     120% would cut off the laptop corner. */
  max-width: min(
    600px,
    calc(100% + 100vw - min(var(--max), 100vw - 40px) - 16px)
  );
  max-height: 740px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  align-self: flex-end;
  padding-bottom: 40px;
  /* The source photo has a hard black/orange background — fade it out at the
     edges so it blends into the section's white background instead of
     showing as a rectangle. */
  -webkit-mask-image: radial-gradient(
    ellipse 60% 72% at 50% 42%,
    #000 55%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 60% 72% at 50% 42%,
    #000 55%,
    transparent 100%
  );
}
.teacher-chip {
  position: absolute;
  left: 0;
  bottom: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 18px 44px rgba(5, 41, 97, 0.13);
  line-height: 1.35;
}
.teacher-chip b {
  display: block;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  color: var(--blue);
  font-size: 1.05rem;
}
.teacher-chip span {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.8rem;
}
.teacher h2 {
  margin: 14px 0 16px;
  font-weight: 800;
}
.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}
.teacher-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: Poppins, Inter, sans-serif;
  color: var(--ink);
}

/* ---------- programs ---------- */
.programs {
  padding: 96px 0;
  background: var(--ink-2);
  color: #fff;
}
.program-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}
.program-head .eyebrow {
  color: var(--white);
}
.program-head .lead {
  color: #c9d8f0;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.program {
  border-radius: 20px;
  padding: 26px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}
.program:nth-child(1) {
  background: var(--gold);
  color: var(--ink);
}
.program:nth-child(2) {
  background: var(--mint);
  color: var(--ink);
}
.program:nth-child(3) {
  background: var(--lilac);
  color: var(--ink);
}
.program-label {
  font-size: 0.68rem;
  font-weight: 800;
  font-family: Poppins, Inter, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.program h3 {
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 34px 0 10px;
  font-weight: 700;
}
.program p {
  font-size: 0.87rem;
}
.program a {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.84rem;
  font-weight: 800;
  font-family: Poppins, Inter, sans-serif;
  display: inline-flex;
  align-items: center;
  transition: 0.25s transform;
}
.program a span {
  margin-left: 5px;
  transition: 0.25s transform;
}
.program a:hover {
  transform: translateY(-3px);
}
.program a:hover span {
  animation: float-arrow 0.9s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .program a:hover span {
    animation: none;
  }
}

/* ---------- stories ---------- */
.stories {
  padding: 96px 0;
}
.stories-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 32px;
}
.stories-head h2 {
  margin-top: 14px;
}
.stories-head p {
  max-width: 360px;
  color: var(--muted);
  font-size: 1.02rem;
}
.carousel-controls {
  display: flex;
  gap: 9px;
  flex: none;
  justify-content: flex-end;
  margin-top: 20px;
}
.carousel-btn {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn .ico-arrow {
  vertical-align: 0;
}
.carousel-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.stories-grid {
  display: flex;
  /* flex-start (not the stretch default) so a card expanded on hover grows
     on its own without forcing every other card in the row to match it */
  align-items: flex-start;
  gap: 17px;
  overflow-x: auto;
  padding: 2px 1px 12px;
  scrollbar-width: none;
}
.stories-grid::-webkit-scrollbar {
  display: none;
}
.story {
  position: relative;
  flex: 0 0 calc((100% - 34px) / 3);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
/* Hover (and keyboard focus) lifts the card and reveals the full quote —
   .quote's line-clamp is lifted below, and align-items: flex-start above
   lets this one card grow taller without dragging its neighbors along. */
.story:hover,
.story:focus-within {
  z-index: 3;
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(5, 41, 97, 0.16);
}
.story:nth-child(3n + 1) {
  background: #fff;
}
.story:nth-child(3n + 2) {
  background: var(--sky);
}
.story:nth-child(3n) {
  background: var(--mint);
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 0.5;
  color: var(--blue);
  margin-top: 12px;
}
.quote {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 500;
  margin: 16px 0 28px;
  /* Long testimonials otherwise balloon this card's height — since the
     cards sit in one flex row, that stretches every other card to match
     (align-items defaults to stretch), leaving short quotes with a big
     awkward gap above the avatar. Clamp to a fixed number of lines so
     every card stays a consistent height regardless of quote length. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}
.person {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.8rem;
  margin-top: auto;
}
.person img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.person b {
  display: block;
  font-family: Poppins, Inter, sans-serif;
}
.person .role {
  color: var(--muted);
  font-size: 0.74rem;
}

/* Floating "read full testimonial" popover — appended to <body> and
   position: fixed (not absolute) so it escapes .stories-grid's
   overflow-x: auto, which would otherwise clip anything overflowing it
   vertically. JS positions it over whichever card is hovered/focused. */
.story-popover {
  position: fixed;
  z-index: 60;
  width: min(440px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: 30px;
  box-shadow:
    0 30px 70px rgba(5, 41, 97, 0.26),
    0 4px 16px rgba(5, 41, 97, 0.12);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
}
.story-popover.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.story-popover .quote {
  /* Undo the base .quote's display: -webkit-box (used for the clamp).
     Chromium tolerates a leftover -webkit-box display once the clamp is
     off, but Safari keeps the legacy webkit flex-box layout active and
     renders the un-clamped text broken — this reset is what actually
     fixes it there. */
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}
.story-popover .person {
  margin-top: 20px;
}

/* ---------- flexible ---------- */
.flexfit {
  padding: 20px 0 96px;
}
.flexfit-box {
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  border-radius: 30px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 56px;
  overflow: hidden;
}
.flexfit-box .eyebrow {
  color: var(--white);
}
.flexfit-box .eyebrow:before {
  background: var(--gold);
}
.flexfit-box h2 {
  margin: 14px 0 16px;
}
.flexfit-box p {
  color: #dcefff;
  max-width: 460px;
}
.flexfit-art {
  position: relative;
  height: 470px;
}
.flexfit-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* % keeps the crop proportional as the frame resizes (responsive by nature);
     ~65% keeps the child + laptop in view instead of the empty left wall */
  object-position: 65% center;
  border-radius: 32px;
}
.flexfit-badge {
  position: absolute;
  right: -32px;
  bottom: 16px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 18px;
  padding: 18px 22px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  max-width: 250px;
  box-shadow: 0 18px 38px rgba(4, 24, 66, 0.32);
}
.flexfit-badge b {
  display: block;
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.08rem;
  margin-bottom: 3px;
}

/* ---------- faq ---------- */
.faq {
  padding: 90px 0;
  background: #fff;
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 66px;
}
.faq h2 {
  margin: 14px 0;
}
.faq-list {
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
}
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-family: Poppins, Inter, sans-serif;
  font-size: 0.94rem;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: "+";
  font-size: 1.3rem;
  color: var(--blue);
  line-height: 0.8;
}
details[open] summary:after {
  content: "−";
}
details p {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 12px 30px 0 0;
}

/* ---------- cta ---------- */
.cta {
  padding: 84px 0;
}
.cta-box {
  background: linear-gradient(115deg, var(--blue), #092f83);
  border-radius: 28px;
  padding: 54px 7%;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
.cta-box:after {
  content: "✦";
  position: absolute;
  right: 6%;
  top: -50px;
  font-size: 15rem;
  color: rgba(255, 255, 255, 0.1);
}
.cta-box h2 {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: clamp(1.6rem, 3.8vw, 3.3rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
  margin: 12px 0;
  font-weight: 900;
  white-space: nowrap;
}
.cta-box h2 span {
  display: block;
  white-space: nowrap;
}
.cta-box p {
  color: #dbe9ff;
  max-width: 540px;
}
.cta-box .btn {
  position: relative;
  z-index: 1;
  flex: none;
}
.cta-actions {
  position: relative;
  z-index: 1;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 300px;
}

/* ---------- footer ---------- */
footer {
  background: #06214e;
  color: #cad8ed;
  padding: 44px 0 24px;
}
.foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 25px;
}
.foot img {
  width: 150px;
  height: 60px;
  object-fit: contain;
  flex: none;
}
/* Primary nav links and legal/policy links as two separate rows, so the
   footer reads as organized instead of one long wrapping list of 9 links. */
.foot-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  min-width: 0;
}
.foot-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  font-size: 0.8rem;
}
.foot-links-legal {
  color: #90a8ce;
  font-size: 0.74rem;
}
.foot-links a:hover {
  color: #fff;
}
.fine {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 26px;
  padding-top: 18px;
  color: #90a8ce;
  font-size: 0.72rem;
}

/* ---------- modal ---------- */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(2, 21, 57, 0.64);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.show {
  display: flex;
}
.modal {
  width: min(535px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 30px;
  position: relative;
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 1.7rem;
  color: var(--muted);
  cursor: pointer;
}
.modal h2 {
  letter-spacing: -0.03em;
  margin: 10px 0 4px;
  font-weight: 700;
}
.modal > p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 17px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 0.74rem;
  font-weight: 700;
}
.field input,
.field select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  background: #fff;
}
/* Same height for every input and select — Safari otherwise ignores padding
   on a native select and draws it shorter than the text inputs. */
.field input,
.field select {
  box-sizing: border-box;
  height: 48px;
  padding-top: 0;
  padding-bottom: 0;
  font: inherit;
  color: inherit;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6b8c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 14px center / 12px 8px;
}
.field input:disabled {
  background: #f4f7fc;
  cursor: not-allowed;
}
/* Messaging app picker: the chosen app's icon sits inside the field. */
.field select.messenger {
  padding-left: 44px;
  background:
    var(--messenger-icon) no-repeat left 12px center / 22px 22px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6b8c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      no-repeat right 14px center / 12px 8px,
    #fff;
  --messenger-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b8c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20.5l1.4-5A8 8 0 1 1 21 12z'/%3E%3C/svg%3E");
}
.field select.messenger[data-app="WhatsApp"] {
  --messenger-icon: url("../icons/whatsapp-svgrepo-com.svg");
}
.field select.messenger[data-app="Telegram"] {
  --messenger-icon: url("../icons/telegram-svgrepo-com.svg");
}
.field select.messenger[data-app="KakaoTalk"] {
  --messenger-icon: url("../icons/kakaotalk-svgrepo-com.svg");
}
.success {
  display: none;
  background: var(--mint);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.84rem;
  color: #155b3d;
  margin-top: 12px;
  font-weight: 600;
}
.success.is-error {
  background: #fde7e7;
  color: #a12626;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 77px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
  }
  .menu {
    display: block;
  }
  .hero-top,
  .why-grid,
  .faq-grid,
  .teacher-grid,
  .flexfit-box {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 600px;
    width: 100%;
    height: 420px;
    margin: auto;
  }
  .flexfit-art {
    height: 420px;
  }
  .flexfit-art img {
    object-position: 60% center;
  }
  .journey-grid,
  .program-grid {
    grid-template-columns: 1fr 1fr;
  }
  .journey-card:last-child,
  .program:last-child {
    grid-column: 1/-1;
  }
  .journey-card:last-child {
    min-height: 320px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 22px;
  }
  .step:last-child {
    border: 0;
    padding-bottom: 0;
  }
  .journey-intro,
  .stories-head,
  .program-head {
    display: block;
  }
  .journey-intro p,
  .stories-head p,
  .program-head .lead {
    margin-top: 14px;
    max-width: none;
  }
  .carousel-controls {
    margin-top: 18px;
  }
  .story {
    flex-basis: calc((100% - 17px) / 2);
  }
  .flexfit-box {
    padding: 40px;
  }
  .cta-box {
    display: block;
  }
  .cta-actions {
    margin-top: 22px;
    max-width: none;
  }
}
/* ---------- form consent ---------- */
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}
.consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
}
.consent a {
  color: var(--blue);
  text-decoration: underline;
}
.captcha-wrap {
  margin-top: 16px;
}

/* ---------- footer legal notice ---------- */
.fine p {
  margin: 0;
}
.fine p + p {
  margin-top: 8px;
}
.fine a {
  color: #cad8ed;
  text-decoration: underline;
}

/* editable placeholders — delete this rule once every [ ... ] is filled in */
mark.todo {
  background: #fff3bf;
  color: #5b4300;
  padding: 0 4px;
  border-radius: 3px;
  font-style: normal;
}

/* ---------- legal pages ---------- */
.nav-legal {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-legal .btn {
  font-size: 0.8rem;
  padding: 10px 16px;
}
.legal-main {
  padding: 54px 0 80px;
}
.legal {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}
.legal .eyebrow {
  margin-bottom: 14px;
}
.legal h1 {
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 10px;
}
.legal .updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.legal h2 {
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 40px 0 10px;
  font-weight: 700;
}
.legal h3 {
  font-family: Poppins, Inter, sans-serif;
  font-size: 1rem;
  margin: 24px 0 8px;
  font-weight: 700;
}
.legal p,
.legal li {
  color: #33436a;
  font-size: 0.94rem;
}
.legal p {
  margin: 10px 0;
}
.legal ul,
.legal ol {
  margin: 10px 0;
  padding-left: 1.35em;
}
.legal li {
  margin: 6px 0;
}
.legal a {
  color: var(--blue);
  text-decoration: underline;
}
.legal strong {
  color: var(--ink);
}
.legal code {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.86em;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.86rem;
}
.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal th {
  background: var(--paper);
  font-family: Poppins, Inter, sans-serif;
}
.legal .toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 24px 0 8px;
}
.legal .toc h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.legal .toc ol {
  margin: 0;
}
.legal .callout {
  background: var(--sky);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.88rem;
  color: #23406a;
}
.legal .callout.warn {
  background: #fff3bf;
  color: #5b4300;
}
.legal .callout p {
  margin: 6px 0;
  color: inherit;
  font-size: inherit;
}
.legal-crosslinks {
  width: min(760px, calc(100% - 40px));
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
}
.legal-crosslinks a {
  color: var(--blue);
}
.legal-crosslinks a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, var(--max));
  }
  .nav-legal a:not(.btn) {
    display: none;
  }
  .nav {
    height: 66px;
  }
  .hero {
    padding-top: 42px;
  }
  .hero-art,
  .flexfit-art {
    height: 340px;
  }
  .flexfit-art img {
    object-position: 55% center;
  }
  .bubble.one {
    left: 6px;
    top: 12px;
  }
  .bubble.two {
    right: 6px;
    bottom: 12px;
  }
  .journey {
    padding-bottom: 60px;
  }
  .journey-intro {
    display: block;
  }
  .journey-intro p {
    margin-top: 14px;
  }
  .journey-grid,
  .program-grid,
  .feature-cards {
    grid-template-columns: 1fr;
  }
  .journey-card,
  .journey-card:last-child {
    min-height: 320px;
    grid-column: auto;
  }
  .program:last-child {
    grid-column: auto;
  }
  .why,
  .path,
  .programs,
  .stories,
  .teacher,
  .faq {
    padding: 66px 0;
  }
  .story {
    flex-basis: 100%;
    padding: 26px;
  }
  .flexfit-box {
    padding: 32px 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .foot {
    align-items: flex-start;
    flex-direction: column;
  }
  .foot-links {
    align-items: flex-start;
    width: 100%;
  }
  .foot-links-row {
    justify-content: flex-start;
  }
}

/* ---------- motion ----------
   Uses the standalone `translate` property (not `transform`) so entrance
   animations never fight the hover lifts that already use `transform`. */
:root {
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 var(--rise, 22px);
  }
}

/* Hero: plays once on load, pure CSS. The photo itself stays static so the
   largest image paints immediately. */
.hero-copy > * {
  animation: rise 0.7s var(--ease) backwards;
}
.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}
.bubble {
  animation: rise 0.7s var(--ease) 0.45s backwards;
}
.bubble.two {
  animation-delay: 0.6s;
}

/* Scroll reveal: the script adds .reveal, then .in when it enters view.
   Without JS nothing is ever tagged, so content is never hidden. */
.reveal:not(.in) {
  opacity: 0;
  translate: 0 22px;
}
.reveal.in {
  animation: rise 0.65s var(--ease) var(--d, 0s) backwards;
}

/* Card image zoom, FAQ answer fade */
.journey-card img {
  transition: transform 0.6s var(--ease);
}
@media (hover: hover) {
  .journey-card:hover img {
    transform: scale(1.05);
  }
}
details[open] > :not(summary) {
  --rise: 8px;
  animation: rise 0.3s ease backwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .bubble,
  .reveal.in,
  details[open] > :not(summary) {
    animation: none;
  }
  .reveal:not(.in) {
    opacity: 1;
    translate: none;
  }
  .journey-card img {
    transition: none;
  }
  .journey-card:hover img {
    transform: none;
  }
}
