/* =========================================================
   Prodigy Brains — HOMEPAGE, Direction D "National reach" · index.html only
   Follows DESIGN.md (project root):
   - Colour: ONE dominant (sun yellow #FFC933) + ONE accent (amber #F0A020) on white, ink #1B1A2E text.
     Yellow is never text on white; text on yellow is always ink.
   - Fonts: Atkinson Hyperlegible Next (display 800/200, body 400/700) + Mono (numbers people compare).
   - Type: 3 tiers, 3x apart (18 / 54 / 162; phones 18 / 36 / 64). 14px counts as the body tier.
   - Spacing: 8px rhythm. No soft shadows, no gradients, no rows of cards. Hero left-aligned.
   - Motion: one ambient moment (the map filling in, once); numbers count once; reduced motion turns all of it off.
   Other pages still use css/styles.css.
   ========================================================= */
:root {
  --dominant: #FFC933;       /* sun yellow: buttons, highlights, active states, filled map states */
  --accent: #F0A020;         /* amber: button edges, hover, marks */
  --ink: #1B1A2E;            /* text: 16.4:1 on white, 11.5:1 on yellow */
  --print: #1B1A2E;
  --print-soft: #4A4860;     /* secondary text: 8.6:1 on white */
  --paper: #FFFFFF;          /* page */
  --sheet: #FFFFFF;
  --tint: #FFF8E1;           /* flat wash of the yellow for alternating bands */
  --map-base: #FFEFC2;       /* flat wash of the yellow for the map */
  --rule: #ECE7D8;           /* hairlines */
  --ring: #6B6880;           /* empty bubbles / state outlines (4.6:1) */
  --error: #B91C1C;

  --font: "Atkinson Hyperlegible Next", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", "Courier New", monospace;

  --t-small: 14px; --t-body: 18px; --t-display: 54px; --t-hero: 162px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 144px;
  --wrap: 1760px; --gutter: 24px;   /* wide: the page uses the whole screen, with generous side margins */
}
@media (min-width: 900px) { :root { --gutter: 48px; } }
@media (min-width: 1440px) { :root { --gutter: 96px; } }
@media (max-width: 899px) { :root { --t-display: 36px; --t-hero: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: 1.6; font-weight: 400; overflow-x: hidden; }
body.menu-open, body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3 { margin: 0; font-weight: 800; color: var(--ink); }
p, ol, ul, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s2); top: -100px; z-index: 300; padding: var(--s1) var(--s2); background: var(--ink); color: var(--paper); }
.skip-link:focus { top: var(--s2); }
.container, .wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }

/* ---------- Buttons & links (flat: a solid amber edge, no shadow) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 30px 10px;                 /* + 2px top border + 4px bottom edge = 56px box */
  background: var(--dominant); color: var(--ink);
  border: 2px solid var(--dominant); border-bottom: 4px solid var(--accent); border-radius: 8px;
  font: 700 var(--t-body)/1.3 var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); border-bottom-color: #000; }
.btn--ink:hover { background: #000; border-color: #000; color: var(--paper); }
.btn--secondary { background: var(--paper); border-color: var(--ink); border-bottom-color: var(--ink); }
.btn--secondary:hover { background: var(--tint); border-color: var(--ink); }
.btn--whatsapp { background: var(--dominant); }
.link { font-weight: 700; }
.link-btn, .text-link--btn { padding: 0; border: 0; background: none; cursor: pointer; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link-btn:hover, .text-link--btn:hover { text-decoration-color: var(--ink); }
.text-link { font-weight: 700; }

/* ---------- Header: plain text links, room to breathe ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--print); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand__name { font-weight: 800; font-size: var(--t-body); letter-spacing: 0.02em; }
.nav { display: none; }
@media (min-width: 1100px) { .nav { display: block; } }
.nav__list { display: flex; align-items: center; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.nav__link { color: var(--print); font-size: var(--t-body); text-decoration: none; }
.nav__link:hover { text-decoration: underline; text-decoration-color: var(--dominant); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.nav__link[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-color: var(--dominant); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.nav__item { position: relative; }
.nav__split { display: flex; align-items: center; gap: 0; }
.nav__caret { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.nav__caret svg { width: 16px; height: 16px; }
.dropdown { position: absolute; top: calc(100% + 16px); left: -16px; z-index: 50; min-width: 240px; padding: var(--s1) 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; display: none; }
.nav__item.is-open .dropdown { display: block; }
.dropdown__list { list-style: none; margin: 0; padding: 0; }
.dropdown__link, .dropdown__all { display: block; padding: var(--s1) var(--s2); color: var(--print); font-size: var(--t-body); text-decoration: none; }
.dropdown__link:hover, .dropdown__all:hover { background: var(--paper); color: var(--ink); }
.dropdown__all { margin-top: var(--s1); border-top: 1px solid var(--rule); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: var(--s2); }
.header-register { min-height: 48px; padding: 6px 22px; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); cursor: pointer; }
.icon-btn svg { width: 24px; height: 24px; }
.menu-toggle .bars { display: grid; gap: 4px; }
.menu-toggle .bar { display: block; width: 20px; height: 2px; background: currentColor; }
@media (min-width: 1100px) { .menu-toggle { display: none; } }
@media (max-width: 479px) { .header-register { display: none; } }
.mobile-menu { position: fixed; inset: 0; z-index: 200; overflow-y: auto; padding: var(--s2) var(--gutter) var(--s5); background: var(--paper); }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 80px; }
.mobile-menu__list { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.mobile-menu__list > li { border-bottom: 1px solid var(--rule); }
.mobile-menu__link { display: block; padding: var(--s2) 0; color: var(--print); font-size: var(--t-body); font-weight: 700; text-decoration: none; }
.mobile-menu__link[aria-current="page"] { color: var(--ink); }
.mobile-menu__split { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__caret { border: 0; background: none; }
.mobile-menu__caret[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-sub { list-style: none; margin: 0 0 var(--s2); padding: 0 0 0 var(--s2); }
.mobile-sub__link { display: block; padding: var(--s1) 0; color: var(--print-soft); text-decoration: none; }
.mobile-menu__cta { margin-top: var(--s4); }
.mobile-menu__cta .btn { width: 100%; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-register { min-height: 48px; padding: 8px 22px 4px; }

/* =========================================================
   HERO (Sachin's sketch): PRODIGY BRAINS, numbers, three kids | 3D map
   ========================================================= */
.hero { position: relative; overflow: hidden; padding-block: var(--s5) var(--s6); }
/* full screen on desktop: the hero fills the window under the header, content centred vertically */
@media (min-width: 1000px) { .hero { display: flex; align-items: center; min-height: calc(100vh - 81px); min-height: calc(100svh - 81px); padding-block: var(--s5); } .hero > .wrap { flex: 1; } }
.hero__grid { position: relative; z-index: 1; display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); } }
@media (min-width: 1600px) { .hero__grid { gap: var(--s8); } }
.hero__title { font-size: var(--t-display); line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.hero__lead { margin-top: var(--s3); max-width: 48ch; color: var(--print-soft); }
.hero__actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }

/* ---- Sky: soft flat clouds + a few stars (decoration only, behind everything) ---- */
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cloud { position: absolute; width: 240px; height: auto; fill: var(--tint); will-change: transform; }
/* clouds drift slowly from left to right across the hero, each at its own pace, and wrap round */
.cloud { animation: drift linear infinite; }
.cloud--1 { animation-duration: 95s; animation-delay: -10s; }
.cloud--2 { animation-duration: 120s; animation-delay: -70s; }
.cloud--3 { animation-duration: 140s; animation-delay: -30s; }
.cloud--4 { animation-duration: 80s; animation-delay: -50s; }
@keyframes drift { from { transform: translateX(-320px); } to { transform: translateX(100vw); } }
.cloud path { stroke: #FBEFC9; stroke-width: 1; }
.cloud--1 { top: -24px; left: 0; width: 300px; }
.cloud--2 { top: 4%; left: 0; width: 220px; }
.cloud--3 { bottom: 1%; left: 0; width: 280px; }
.cloud--4 { top: 46%; left: 0; width: 150px; }
.spark { position: absolute; width: 16px; height: 16px; fill: var(--dominant); }
.spark--1 { top: 18%; right: 34%; }
.spark--2 { top: 30%; right: 4%; width: 12px; height: 12px; fill: var(--accent); }
.spark--3 { bottom: 26%; right: 44%; width: 12px; height: 12px; }
.spark--4 { top: 12%; left: 44%; width: 10px; height: 10px; fill: var(--accent); }
@media (max-width: 999px) {
  .cloud--1 { top: -40px; width: 220px; } .cloud--2 { top: 8px; width: 140px; }
  .cloud--3, .cloud--4, .spark--3, .spark--4 { display: none; }
}

/* ---- Numbers inside the hero: one compact row, no boxes ---- */
.hero-nums { max-width: 720px; margin-top: var(--s5); display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: var(--s3); padding-block: var(--s3); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hn { display: grid; grid-template-columns: max-content max-content; align-items: baseline; }   /* value and + always stay together */
.hn__v { font-size: var(--t-display); font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hn__plus { font-size: var(--t-display); font-weight: 200; line-height: 1; }
.hn__l { grid-column: 1 / -1; margin-top: var(--s1); font-size: var(--t-small); color: var(--print-soft); }
@media (max-width: 599px) { .hero-nums { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: var(--s6); } }

/* ---- Three kids (by Sachin's request; real toppers go here) ---- */
.kids { margin-top: var(--s5); padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); max-width: 720px; }
.kid { padding: var(--s1); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }
.kid__photo { aspect-ratio: 1; display: grid; place-items: center; background: var(--tint); border-radius: 8px; }
.kid__name { margin-top: var(--s1); font-size: var(--t-small); font-weight: 700; line-height: 1.5; }
.kid__meta { font-size: var(--t-small); color: var(--print-soft); line-height: 1.5; }

/* ---- 3D map rotator ---- */
.map { position: relative; }
.map3d__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.map__stage { position: relative; margin-inline: auto; perspective: 1600px; touch-action: pan-y; cursor: grab;
  /* as big as the column allows, but never taller than the screen (map is 600 x 680) */
  width: min(100%, 840px, calc((100svh - 300px) * 600 / 680)); }
.map.is-dragging .map__stage { cursor: grabbing; }
.map3d__spin { transform-style: preserve-3d; animation: map-turn 16s ease-in-out infinite alternate; }
.map.is-dragging .map3d__spin { animation-play-state: paused; }
@keyframes map-turn { from { transform: rotateY(-14deg) rotateX(2deg); } to { transform: rotateY(14deg) rotateX(-2deg); } }
.map3d__tilt {
  --drx: 0deg; --dry: 0deg;
  position: relative; transform-style: preserve-3d;
  transform: rotateX(calc(22deg + var(--drx))) rotateY(var(--dry)) rotateZ(-10deg);   /* the tilted plate from the sketch */
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.map.is-dragging .map3d__tilt { transition: none; }
.map3d__edge { position: absolute; inset: 0; width: 100%; height: auto; fill: var(--accent); transform: translateZ(var(--z)); }
.map3d__edge:nth-child(1) { fill: #C9821A; }
.map3d__top { position: relative; transform: translateZ(0); }
.map__svg { display: block; width: 100%; height: auto; overflow: visible; }
.state {
  fill: var(--paper); stroke: var(--ring); stroke-width: 0.8; stroke-linejoin: round;
  transition: fill 0.5s ease; cursor: pointer; outline: none;
}
.map.is-filled .state { fill: var(--map-base); }
.map.is-filled .state.is-active { fill: var(--dominant); }
.state:hover, .state.is-hover, .state:focus-visible { fill: var(--dominant) !important; stroke: var(--ink); stroke-width: 1.4; }
.map__tip {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  display: grid; max-width: 240px; padding: var(--s1) var(--s2);
  background: var(--ink); color: var(--paper); border-radius: 8px; font-size: var(--t-small); line-height: 1.5;
}
.map__tip strong { font-size: var(--t-body); }
.map__cap { margin-top: var(--s4); font-size: var(--t-small); color: var(--print-soft); text-align: center; }
.map__credit { display: block; }
.map__credit a { color: var(--print-soft); }
.map__list { margin-top: var(--s1); font-size: var(--t-small); text-align: center; }
.map__list summary { cursor: pointer; color: var(--print-soft); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.map__list ul { margin-top: var(--s2); padding: 0; list-style: none; columns: 2; column-gap: var(--s4); text-align: left; }
@media (prefers-reduced-motion: reduce) {
  .state, .map3d__tilt { transition: none; }
  .map3d__spin { animation: none; }
}

/* ---------- Partner schools (only when real logos exist) ---------- */
.partners { padding-block: var(--s6); overflow: hidden; }
.h-small { font-size: var(--t-body); font-weight: 700; color: var(--print-soft); }
.partners__track { margin-top: var(--s3); overflow: hidden; }
.partners__list { display: flex; gap: var(--s6); width: max-content; padding: 0; list-style: none; animation: partners 40s linear infinite; }
.partners__track:hover .partners__list, .partners__track:focus-within .partners__list { animation-play-state: paused; }
.partners__list img { height: 56px; width: auto; }
@keyframes partners { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .partners__list { animation: none; flex-wrap: wrap; width: auto; } }

/* =========================================================
   SECTIONS
   ========================================================= */
.band { padding-block: var(--s7); }
.band--tint { background: var(--tint); }
.h2 { font-size: var(--t-display); line-height: 1.05; letter-spacing: -0.02em; }
.lead { max-width: 56ch; color: var(--print-soft); }
.h2 + .lead, .lead + .lead { margin-top: var(--s3); }
.head-row { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .head-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: var(--s6); } }
.split { display: grid; gap: var(--s5); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); align-items: start; } }

/* ---- How it works: 5 stops on one line that fills with yellow as you scroll ---- */
.steps { --fill: 0; position: relative; list-style: none; padding: 0; margin-top: var(--s5); display: grid; gap: var(--s4); }
.step { position: relative; padding-left: var(--s6); }
.step::before {                                   /* the stop */
  content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ring); transition: background-color 0.3s ease, border-color 0.3s ease;
}
.step.is-reached::before { background: var(--dominant); border-color: var(--ink); }
.step h3 { font-size: var(--t-body); line-height: 40px; }
.step p { color: var(--print-soft); }
/* track + fill (vertical on phones) */
.steps::before, .steps::after { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--rule); }
.steps::after { background: var(--ink); transform-origin: top; transform: scaleY(var(--fill)); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); }
  .step { padding-left: 0; padding-top: var(--s7); }
  .step h3 { line-height: 1.6; }
  .steps::before, .steps::after { left: 20px; right: calc(20% - 20px); top: 19px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform-origin: left; transform: scaleX(var(--fill)); }
}
@media (prefers-reduced-motion: reduce) { .step::before { transition: none; } }

/* ---- Exams table (not cards) ---- */
.table-wrap { margin-top: var(--s5); }
.exams { width: 100%; border-collapse: collapse; }
.exams th, .exams td { padding: var(--s3) var(--s2) var(--s3) 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--rule); }
.exams thead th { padding-block: 0 var(--s2); font-size: var(--t-small); font-weight: 700; color: var(--print-soft); border-bottom: 2px solid var(--ink); }
.exams tbody th { font-weight: 800; white-space: nowrap; }
.exams tbody th a { text-decoration: none; }
.exams tbody th a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.exams td { color: var(--print-soft); }
.exams td.mono { color: var(--ink); white-space: nowrap; }
.exams td:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
@media (max-width: 759px) {
  .exams thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .exams, .exams tbody, .exams tr, .exams th, .exams td { display: block; }
  .exams tr { padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
  .exams th, .exams td { padding: 0; border: 0; text-align: left !important; }
  .exams td { margin-top: var(--s1); }
}



/* ---- Proof: report card + parent video ---- */
.proof { margin-top: var(--s5); display: grid; gap: var(--s5); }
@media (min-width: 900px) { .proof { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.proof__item figcaption { margin-top: var(--s2); color: var(--print-soft); }
.proof__item figcaption strong { color: var(--ink); }
.report__ph { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1); padding: var(--s4); background: var(--paper); border: 2px dashed var(--ring); border-radius: 8px; color: var(--print-soft); text-align: center; }
.ph-tag { padding: 0 var(--s1); border: 1px solid var(--print-soft); border-radius: 999px; font-size: var(--t-small); font-weight: 700; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: var(--ink); cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--dominant); }
.video__play svg { width: 32px; height: 32px; margin-left: 4px; fill: var(--ink); }
.video:hover .video__play { background: var(--accent); }

/* ---- Register band ---- */
.cta { padding-block: var(--s7); background: var(--dominant); }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.cta__title { font-size: var(--t-display); line-height: 1.05; letter-spacing: -0.02em; max-width: 16ch; }

/* Contact form */
.contact-form { display: grid; gap: var(--s3); }
.field { display: flex; flex-direction: column; gap: var(--s1); }
.field label { font-size: var(--t-body); font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 56px; padding: var(--s1) var(--s2); font: 400 var(--t-body)/1.6 var(--font); color: var(--print); background: var(--sheet); border: 1px solid #9CA3AF; border-radius: 8px; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--dominant); outline-offset: 0; border-color: var(--ink); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__error { font-size: var(--t-small); color: var(--error); }
.field-row { display: grid; gap: var(--s3); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.contact-form__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--s6) var(--s4); border-top: 1px solid var(--rule); font-size: var(--t-small); color: var(--print-soft); }
.site-footer__grid { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer__tagline { margin-top: var(--s2); }
.site-footer__heading { margin-bottom: var(--s1); font-size: var(--t-small); font-weight: 800; }
.site-footer address { font-style: normal; }
.site-footer__col p + p { margin-top: var(--s1); }
.socials { display: flex; flex-wrap: wrap; gap: var(--s1); list-style: none; padding: 0; }
.social { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 8px; color: var(--print); }
.social svg { width: 18px; height: 18px; }
.social:hover { color: var(--ink); border-color: var(--ink); }
.site-footer__bottom { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--rule); font-size: var(--t-small); }

/* ---------- Video pop-up ---------- */
.modal { width: min(960px, calc(100% - 2 * var(--gutter))); padding: 0; border: 0; border-radius: 8px; background: var(--print); }
.modal::backdrop { background: rgba(17, 24, 39, 0.85); }
.modal__inner { position: relative; }
.modal__close { position: absolute; right: var(--s1); top: var(--s1); z-index: 2; }
.modal__video { position: relative; aspect-ratio: 16 / 9; }
.modal__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal__spinner { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sheet); }
.modal__spinner::after { content: "Loading…"; font-size: var(--t-body); }
.modal__fallback { padding: var(--s2); color: var(--sheet); }
.modal__fallback a { color: #93C5FD; }



/* shorter desktop screens (e.g. 1280 x 720 laptops): tighten the left column so the whole hero fits in one screen */
@media (min-width: 1000px) and (max-height: 860px) {
  .hero { padding-block: var(--s4); }
  .hero__actions { margin-top: var(--s3); }
  .hero-nums { margin-top: var(--s4); padding-block: var(--s2); }
  .kids { margin-top: var(--s4); max-width: 432px; gap: var(--s2); }
}

/* =========================================================
   TRY A QUESTION: exam-style MCQ (js/home-exam.js)
   Colours: yellow = selected; green / red only for correct / wrong after Submit (approved 10 Oct 2026).
   ========================================================= */
:root { --ok: #15803D; --ok-bg: #E7F6EC; --bad: #B91C1C; --bad-bg: #FDECEC; }   /* 5.0:1 and 6.5:1 on white */
.exam { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; }
.exam__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s2); padding: var(--s2) var(--s3); background: var(--ink); color: var(--paper); }
.exam__count { font-size: var(--t-small); }
.exam__count strong { font-size: var(--t-body); }
.exam__meta { display: flex; flex-wrap: wrap; gap: var(--s1); padding: 0; list-style: none; }
.exam__meta li { padding: 0 var(--s1); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: var(--t-small); line-height: 24px; }
.exam__meta li:first-child { background: var(--dominant); border-color: var(--dominant); color: var(--ink); font-weight: 700; }
.exam__body { padding: var(--s3) var(--s3) var(--s2); }
.exam__body.is-entering { animation: q-in 0.22s ease-out both; }
@keyframes q-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.exam__topic { font-size: var(--t-small); font-weight: 700; color: var(--print-soft); }
.exam__hint { font-size: var(--t-small); color: var(--print-soft); }
.exam__q { margin-top: var(--s2); font-size: var(--t-body); font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.exam__opts { list-style: none; padding: 0; margin-top: var(--s3); display: grid; gap: var(--s1); }

/* one option = the whole row is the target (min 56px tall, good for small fingers) */
.opt {
  display: grid; grid-template-columns: 40px 1fr 24px; align-items: center; gap: var(--s2);
  min-height: 56px; padding: var(--s1) var(--s2) var(--s1) var(--s1);
  border: 2px solid var(--rule); border-radius: 12px; background: var(--paper);
  cursor: pointer; user-select: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}
.opt:hover { border-color: var(--ink); }
.opt:active { transform: scale(0.99); }
.opt:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.opt__key { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--tint); font-weight: 800; transition: background-color 0.15s ease; }
.opt__text { overflow-wrap: anywhere; }
.opt__mark svg { display: none; width: 24px; height: 24px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* selected */
.opt[aria-checked="true"] { border-color: var(--ink); background: var(--tint); }
.opt[aria-checked="true"] .opt__key { background: var(--dominant); }
.opt.is-popping .opt__key { animation: key-pop 0.18s ease-out; }
@keyframes key-pop { 50% { transform: scale(1.12); } }
/* after Submit */
.exam.is-submitted .opt { cursor: default; }
.exam.is-submitted .opt:hover { border-color: var(--rule); }
.exam.is-submitted .opt:not(.is-correct):not(.is-wrong) { opacity: 0.55; }
.opt.is-correct, .exam.is-submitted .opt.is-correct:hover { border-color: var(--ok); background: var(--ok-bg); opacity: 1; }
.opt.is-correct .opt__key { background: var(--ok); color: var(--paper); }
.opt.is-correct .i-tick { display: block; stroke: var(--ok); }
.opt.is-wrong, .exam.is-submitted .opt.is-wrong:hover { border-color: var(--bad); background: var(--bad-bg); opacity: 1; }
.opt.is-wrong .opt__key { background: var(--bad); color: var(--paper); }
.opt.is-wrong .i-cross { display: block; stroke: var(--bad); }

.exam__result { margin-top: var(--s2); padding: var(--s2); border-radius: 12px; background: var(--tint); }
.exam__verdict { font-weight: 800; }
.exam__verdict.is-correct { color: var(--ok); }
.exam__verdict.is-wrong { color: var(--bad); }
.exam__why { margin-top: var(--s1); color: var(--ink); }

.exam__controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); border-top: 1px solid var(--rule); }
.exam__spacer { flex: 1; }
.btn--sm { min-height: 48px; padding: 10px 22px 6px; }
.btn:disabled, .link-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:hover { background: var(--dominant); border-color: var(--dominant); }
.btn--secondary:disabled:hover { background: var(--paper); border-color: var(--ink); }
.btn:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 2px; padding-bottom: 8px; }
.btn--sm:active:not(:disabled) { padding-bottom: 8px; }
.exam__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s3) var(--s3); border-top: 1px solid var(--rule); }
.qnav { display: flex; flex-wrap: wrap; gap: var(--s1); padding: 0; list-style: none; }
.qnav__btn { width: 40px; height: 40px; border: 2px solid var(--rule); border-radius: 50%; background: var(--paper); font-weight: 700; font-size: var(--t-small); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.qnav__btn:hover { border-color: var(--ink); }
.qnav__btn.is-done { background: var(--dominant); border-color: var(--dominant); }
.qnav__btn.is-current { border-color: var(--ink); }
.exam__score { font-size: var(--t-small); font-weight: 700; }
.exam__score:focus { outline: 3px solid var(--ink); outline-offset: 4px; }
@media (max-width: 479px) {
  .exam__bar, .exam__body, .exam__controls, .exam__foot { padding-inline: var(--s2); }
  .exam__spacer { display: none; }
  .exam__controls .btn { flex: 1; }
  .exam__controls .link-btn { order: 3; flex-basis: 100%; text-align: center; }
  .exam__foot .qnav { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; width: 100%; }
  .qnav__btn { width: 100%; height: auto; aspect-ratio: 1; }
}

/* =========================================================
   DESK SCENE: 2.5D learning objects under "Try a sample question" (js/home-scene.js)
   Content colours (books, blocks, globe) are an approved exception (10 Oct 2026).
   Each object is a little toy: hover lifts it, click / Enter plays its move.
   ========================================================= */
.try__intro { display: flex; flex-direction: column; align-self: stretch; }
.scene { margin-top: var(--s5); }
@media (min-width: 960px) { .scene { margin-top: auto; padding-top: var(--s5); } }   /* sits at the bottom, level with the exam card */
.scene__art { display: block; width: 100%; height: auto; overflow: visible; }
.scene__floor { fill: var(--dominant); }
.scene__shadow { fill: #F3E6BE; }
.scene__hint { margin-top: var(--s2); font-size: var(--t-small); color: var(--print-soft); }
.block__letter { font: 800 34px var(--font); fill: #FFFFFF; text-anchor: middle; pointer-events: none; }

.obj { cursor: pointer; outline: none; transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.2s ease; }
.obj:hover { transform: translateY(-6px); }
.obj:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.obj--star:hover { transform: translateY(-6px) scale(1.06); }

/* books: hop one after another */
.book { transform-box: fill-box; transform-origin: 50% 100%; }
.obj--books.is-playing .book { animation: hop 0.5s cubic-bezier(.3,.7,.4,1) both; }
.obj--books.is-playing .book--2 { animation-delay: 0.1s; }
.obj--books.is-playing .book--3 { animation-delay: 0.2s; }
@keyframes hop { 40% { transform: translateY(-22px) rotate(-3deg); } 70% { transform: translateY(2px); } }

/* pencil: rolls forward and writes a squiggle */
.obj--pencil.is-playing { animation: roll 1.2s ease-in-out; }
@keyframes roll { 40% { transform: translateX(36px) rotate(-4deg); } 100% { transform: none; } }
.pencil__line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 80; stroke-dashoffset: 80; opacity: 0; }
.pencil__line.is-playing { animation: write 1.6s ease-out; }
@keyframes write { 0% { opacity: 1; stroke-dashoffset: 80; } 50% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* blocks: each one flips up while its letter changes */
.block { transform-box: fill-box; transform-origin: 50% 100%; }
.obj--blocks.is-playing .block { animation: flip 0.45s ease-in-out both; }
.obj--blocks.is-playing .block--2 { animation-delay: 0.06s; }
.obj--blocks.is-playing .block--3 { animation-delay: 0.12s; }
@keyframes flip { 50% { transform: translateY(-16px) scaleX(0.2); } }

/* globe: the land turns slowly all the time; tapping spins it fast for a moment */
.globe__land { animation: globe-turn 24s linear infinite; }
.obj--globe.is-fast .globe__land { animation-duration: 1.2s; }
@keyframes globe-turn { from { transform: translateX(0); } to { transform: translateX(250px); } }

/* ruler: wiggles */
.obj--ruler.is-playing { animation: wiggle 0.8s ease-in-out; }
@keyframes wiggle { 20% { transform: rotate(-4deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }

/* star: bobs gently; tapping spins it with a burst of sparkles */
.obj--star { transform-origin: 50% 50%; animation: star-bob 3.2s ease-in-out infinite alternate; }
.obj--star.is-playing { animation: star-spin 0.9s cubic-bezier(.3,.7,.3,1); }
@keyframes star-bob { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-8px) rotate(4deg); } }
@keyframes star-spin { from { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(1.2); } to { transform: rotate(360deg) scale(1); } }
.star__sparks path { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; opacity: 0; }
.star__sparks { transform-box: fill-box; transform-origin: 50% 50%; }
.star__sparks.is-playing path { animation: spark 0.9s ease-out; }
@keyframes spark { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.star__sparks.is-playing { animation: spark-out 0.9s ease-out; }
@keyframes spark-out { from { transform: scale(0.6); } to { transform: scale(1.25); } }

/* phones: zoom in on the middle of the desk (blocks, globe, star) */
@media (max-width: 599px) { .scene { overflow: hidden; } .scene__art { width: 190%; margin-left: -84%; } }

@media (prefers-reduced-motion: reduce) {
  .exam__body.is-entering, .opt.is-popping .opt__key, .globe__land, .obj--star, .cloud { animation: none !important; }
  .obj { transition: none; } .obj:hover { transform: none; }
  .cloud--1 { transform: translateX(-120px); } .cloud--2 { transform: translateX(78vw); } .cloud--3 { transform: translateX(88vw); } .cloud--4 { transform: translateX(48vw); }
  .opt, .opt__key, .qnav__btn { transition: none; }
}

/* =========================================================
   MOTION (10 Oct 2026): hero load sequence, section reveals, floating desk objects, small hover feedback.
   Only transform + opacity. All of it off with prefers-reduced-motion.
   ========================================================= */
/* hero: a single short load sequence, top to bottom */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__title, .hero__lead, .hero__actions, .hero-nums, .kids, .map__stage { animation: rise 0.6s cubic-bezier(.2,.7,.2,1) both; }
.hero__lead { animation-delay: 0.08s; }
.hero__actions { animation-delay: 0.16s; }
.hero-nums { animation-delay: 0.24s; }
.kids { animation-delay: 0.32s; }
.map__stage { animation-delay: 0.12s; animation-duration: 0.8s; }

/* sections: fade + rise once when they first come into view (js/home.js) */
.has-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.has-reveal [data-reveal].is-in { opacity: 1; transform: none; }
.has-reveal .exam[data-reveal] { transition-delay: 0.1s; }
.has-reveal .proof[data-reveal] { transition-delay: 0.08s; }
/* exam table rows follow each other in */
.has-reveal .table-wrap[data-reveal] tbody tr { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.has-reveal .table-wrap[data-reveal].is-in tbody tr { opacity: 1; transform: none; }
.has-reveal .table-wrap.is-in tbody tr:nth-child(2) { transition-delay: 0.05s; }
.has-reveal .table-wrap.is-in tbody tr:nth-child(3) { transition-delay: 0.1s; }
.has-reveal .table-wrap.is-in tbody tr:nth-child(4) { transition-delay: 0.15s; }
.has-reveal .table-wrap.is-in tbody tr:nth-child(5) { transition-delay: 0.2s; }
.has-reveal .table-wrap.is-in tbody tr:nth-child(6) { transition-delay: 0.25s; }
.has-reveal .table-wrap.is-in tbody tr:nth-child(7) { transition-delay: 0.3s; }

/* desk objects float, each on its own rhythm (the star already bobs) */
.float { transform-box: fill-box; animation: float 3.6s ease-in-out infinite alternate; }
.float--books  { animation-duration: 4.2s; }
.float--pencil { animation-duration: 3.2s; animation-delay: -1s; }
.float--blocks { animation-duration: 3.8s; animation-delay: -2s; }
.float--globe  { animation-duration: 4.6s; animation-delay: -0.5s; }
.float--ruler  { animation-duration: 3.4s; animation-delay: -1.5s; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-6px); } }

/* small hover feedback */
.kid { transition: transform 0.2s ease, border-color 0.2s ease; }
.kid:hover { transform: translateY(-4px); border-color: var(--ink); }
.exams tbody tr { transition: background-color 0.15s ease; }
.exams tbody tr:hover { background: rgba(255, 201, 51, 0.12); }
.video__play { transition: transform 0.2s ease, background-color 0.2s ease; }
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.btn { transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease; }

.site-footer__credit { margin-top: var(--s1); font-size: var(--t-small); }
.site-footer__credit a { color: var(--print-soft); }

@media (prefers-reduced-motion: reduce) {
  .hero__title, .hero__lead, .hero__actions, .hero-nums, .kids, .map__stage, .float { animation: none !important; }
  .kid, .kid:hover, .video__play, .btn { transition: none; transform: none; }
  .video:hover .video__play { transform: translate(-50%, -50%); }
}

/* =========================================================
   KID AVATARS (drawn illustrations, not real students)
   ========================================================= */
.kid__link { display: block; color: inherit; text-decoration: none; }
.kid__photo { overflow: hidden; }
.av { display: block; width: 100%; height: auto; }
.av__eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.kid:nth-child(2) .av__eye { animation-delay: 1.6s; }
.kid:nth-child(3) .av__eye { animation-delay: 3.1s; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }

/* =========================================================
   HOW IT WORKS: board-game path (js/home-board.js)
   ========================================================= */
.board { position: relative; margin-top: var(--s5); }
.board__path { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.board__path path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 2 14; stroke-linecap: round; }
.board__squares { position: relative; list-style: none; padding: 0; display: grid; gap: var(--s4); }
.sq {
  position: relative; padding: var(--s4) var(--s3) var(--s3); min-height: 184px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 16px;
  transition: background-color 0.35s ease, transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.sq__num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--s2); border-radius: 50%; background: var(--tint); font-weight: 800; transition: background-color 0.35s ease; }
.sq h3 { font-size: var(--t-body); }
.sq p { color: var(--print-soft); }
.sq.is-reached { background: var(--tint); }
.sq.is-reached .sq__num { background: var(--dominant); }
.sq.is-current { transform: translateY(-4px); }
.board__finish { display: none; }
.board__token {
  position: absolute; left: 0; top: 0; z-index: 3; width: 56px; height: 56px;
  display: grid; place-items: center; background: var(--paper); border: 3px solid var(--ink); border-radius: 50%;
  transition: transform 0.55s cubic-bezier(.3,.7,.3,1); will-change: transform;
}
.board__token img { width: 36px; height: 36px; }
.board__token.is-hopping img { animation: token-hop 0.55s cubic-bezier(.3,.7,.3,1); }
@keyframes token-hop { 40% { transform: translateY(-22px) rotate(-12deg); } 75% { transform: translateY(2px); } }
@media (min-width: 900px) {
  /* zig-zag: 1 2 3 on top, then 4 under 3 and 5 under 2, trophy under 1 */
  .board__squares { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(184px, auto); gap: var(--s5) var(--s6); }
  .sq--4 { grid-column: 3; grid-row: 2; }
  .sq--5 { grid-column: 2; grid-row: 2; }
  .board__finish { display: grid; place-items: center; position: absolute; left: 0; bottom: 0; width: calc((100% - 2 * var(--s6)) / 3); height: calc(50% - var(--s5) / 2); }
  .board__finish svg { width: 120px; height: auto; transition: transform 0.4s ease; }
  .board.is-done .board__finish svg { animation: trophy 0.8s cubic-bezier(.3,.7,.3,1); }
}
@keyframes trophy { 40% { transform: translateY(-14px) rotate(-6deg) scale(1.08); } }

/* =========================================================
   NUMBERS: odometer roll + landing bounce (js/home.js)
   ========================================================= */
.odo { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; line-height: 1; }
.odo__strip { display: block; line-height: 1; text-align: center; transition: transform 1.1s cubic-bezier(.2,1.25,.4,1); }
.odo__ch { display: inline-block; line-height: 1; vertical-align: top; }
.hn.is-landed .hn__v, .hn.is-landed .hn__plus { animation: land 0.45s cubic-bezier(.3,.7,.3,1); }
.hn__v, .hn__plus { display: inline-block; transform-origin: 50% 100%; }
@keyframes land { 40% { transform: scale(1.08, 0.94); } 70% { transform: scale(0.98, 1.03); } }

/* =========================================================
   EXAM TABLE ICONS: each animates on row hover
   ========================================================= */
.ex-ic { width: 24px; height: 24px; margin-right: var(--s1); vertical-align: -6px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.exams tbody tr:hover .ex-ic--ias, .exams tbody tr:hover .ex-ic--mba { animation: ic-bob 0.6s ease; }
.exams tbody tr:hover .ex-ic--iit { animation: ic-spin 0.8s ease; }
.exams tbody tr:hover .ex-ic--toefl { animation: ic-wiggle 0.6s ease; }
.exams tbody tr:hover .ex-ic--doctors { animation: ic-beat 0.7s ease; }
.exams tbody tr:hover .ex-ic--coders { animation: ic-wiggle 0.6s ease; }
.exams tbody tr:hover .ex-ic--finance { animation: ic-flip 0.7s ease; }
@keyframes ic-bob { 50% { transform: translateY(-4px); } }
@keyframes ic-spin { to { transform: rotate(360deg); } }
@keyframes ic-wiggle { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes ic-beat { 30% { transform: scale(1.2); } 60% { transform: scale(0.95); } }
@keyframes ic-flip { 50% { transform: scaleX(-1); } }

/* =========================================================
   CONFETTI (flat paper bits) + REGISTER BUTTON SHINE + ANSWER FEEDBACK
   ========================================================= */
[data-cta], .exam { position: relative; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 10; }
.confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: confetti 1.5s cubic-bezier(.2,.6,.4,1) forwards; }
.confetti i:nth-child(3n) { width: 10px; height: 6px; }
.confetti i:nth-child(4n) { border-radius: 50%; width: 8px; height: 8px; }
@keyframes confetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  45% { opacity: 1; transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) * .5)); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1.2), calc(var(--dy) + var(--fall))) rotate(var(--r)); }
}
.cta { overflow: hidden; }
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 24%; background: rgba(255,255,255,.35); transform: skewX(-20deg) translateX(0); opacity: 0; }
.btn--shine.is-shining::after { animation: shine 1s ease 0.1s; }
@keyframes shine { 0% { opacity: 1; transform: skewX(-20deg) translateX(0); } 100% { opacity: 1; transform: skewX(-20deg) translateX(700%); } }
.exam { overflow: visible; }
.exam__bar { border-radius: 14px 14px 0 0; }
.opt.is-cheer .opt__key { animation: cheer 0.6s cubic-bezier(.3,.7,.3,1); }
.opt.is-cheer .i-tick { animation: tick-pop 0.5s cubic-bezier(.3,.7,.3,1); }
@keyframes cheer { 40% { transform: scale(1.18) rotate(-6deg); } }
@keyframes tick-pop { from { transform: scale(0); } 60% { transform: scale(1.3); } to { transform: scale(1); } }
.opt.is-shake { animation: shake 0.42s ease; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

@media (prefers-reduced-motion: reduce) {
  .av__eye, .board__token img, .hn__v, .hn__plus, .ex-ic, .opt, .opt__key, .i-tick, .board__finish svg { animation: none !important; }
  .board__token, .sq, .sq__num, .odo__strip { transition: none; }
  .sq.is-current { transform: none; }
}
/* confetti may fly past the card, but never makes the page scroll sideways */
html { overflow-x: clip; }
#try { overflow-x: clip; }

/* =========================================================
   NOVEMBER 2026 UPDATE (14 changes asked for by Sachin, 19 Nov 2026)
   Navbar · headline · hero book covers · Our Partners · About Exam · The 7 exams · class-wise quiz · review strip
   ========================================================= */

/* ---- Navbar: its own background and a clear lower edge, at the top of the page and while scrolling. No Register button in it. ---- */
.site-header, .site-header.is-scrolled { background: var(--tint); border-bottom: 2px solid var(--ink); }
.nav__list { gap: var(--s3); }
.nav__link:hover, .nav__link[aria-current="page"] { text-decoration-color: var(--accent); }
.nav__link--soon, .mobile-menu__link--soon { color: var(--print-soft); cursor: default; }
.nav__link--soon:hover { text-decoration: none; }
.soon-tag { display: inline-block; vertical-align: middle; padding: 0 var(--s1); border: 1px dashed var(--print-soft); border-radius: 999px; font-size: var(--t-small); font-weight: 400; line-height: 24px; white-space: nowrap; }
/* eight links need more room than seven: the menu button stays until 1280px */
@media (min-width: 1100px) and (max-width: 1279px) { .nav { display: none; } .menu-toggle { display: inline-grid; } }
.icon-btn { background: var(--paper); border-color: var(--ink); }
.mobile-menu__caret, .sheet-dialog__close { border: 0; background: none; }

/* ---- 1. Headline: "India’s Biggest Olympiad" is the biggest text on the page; the brand name stays small in the navbar ---- */
.hero__title { font-size: clamp(44px, 11vw, 56px); line-height: 1; letter-spacing: -0.02em; text-transform: none; text-wrap: balance; overflow-wrap: break-word; }
@media (min-width: 1000px) { .hero__title { font-size: clamp(56px, 5vw, 88px); } }
.hero__lead { max-width: 52ch; }

/* ---- 4. Hero book covers (Junior IAS, Junior Doctors, Junior IIT), in the place of the three people ---- */
.hero-books { margin-top: var(--s5); padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); max-width: 720px; animation: rise 0.6s cubic-bezier(.2,.7,.2,1) 0.32s both; }
.hero-book { padding: var(--s1); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; transition: transform 0.2s ease, border-color 0.2s ease; }
.hero-book:hover { transform: translateY(-4px); border-color: var(--ink); }
.hero-book__link { display: block; color: inherit; text-decoration: none; }
.hero-book img { width: 100%; height: auto; border-radius: 4px; }
.hero-book__name { display: block; margin-top: var(--s1); font-size: var(--t-small); font-weight: 700; line-height: 1.5; text-align: center; }
/* phones: three covers side by side would be too small to read, so they become a row you can swipe, each cover 200px wide */
@media (max-width: 599px) {
  .hero-books { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 200px; gap: var(--s2); max-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: var(--s1); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
  .hero-book { scroll-snap-align: start; }
}
@media (min-width: 1000px) and (max-height: 860px) {
  .hero__title { font-size: clamp(48px, 4.4vw, 72px); }
  .hero-books { margin-top: var(--s4); max-width: 600px; gap: var(--s2); }
}

/* ---- 6. Our Partners: laid out like "Our Esteemed School Partners" on prodigybrains.com (20 Nov 2026, Sachin):
        centred heading and line, then one full-width row of 150px-tall logos, 20px apart on each side,
        entering from the right and leaving on the left in a loop ---- */
.partners { padding-block: var(--s6); border-bottom: 1px solid var(--rule); background: var(--paper); overflow: hidden; }
.partners__head, .reviews__head { text-align: center; }
.partners__sub, .reviews__sub { margin: var(--s2) auto 0; max-width: 64ch; color: var(--print-soft); }
.partners__track { margin-top: var(--s4); overflow: hidden; }
.partners__list { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; width: max-content; margin: 0; padding: 0; list-style: none; animation: partners var(--loop, 30s) linear infinite; }
.partners__list li { flex: none; margin: 0 20px; }
.partners__list img { height: 150px; width: auto; max-width: none; }
.partners__track:hover .partners__list, .partners__track:focus-within .partners__list { animation-play-state: paused; }
@media (max-width: 599px) {
  .partners { padding-block: var(--s5); }
  .partners__track { margin-top: var(--s3); }
  .partners__list li { margin: 0 12px; }
  .partners__list img { height: 112px; }
}

/* ---- 7. About Exam: three questions and their answers, as a plain list with rules (no cards) ---- */
.about { margin: var(--s5) 0 0; border-top: 2px solid var(--ink); }
.about__row { display: grid; gap: var(--s1); padding-block: var(--s4); border-bottom: 1px solid var(--rule); }
.about dt { font-size: var(--t-body); font-weight: 800; }
.about dd { margin: 0; max-width: 64ch; color: var(--print-soft); }
@media (min-width: 900px) { .about__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: baseline; } }

/* ---- 8. The 7 exams: a shelf of covers; each has its name, one line, its syllabus and a sample question. No fees. ---- */
.exam-shelf { margin-top: var(--s5); padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); }
@media (min-width: 760px) { .exam-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s4); } }
@media (min-width: 1100px) { .exam-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--s5); } }
@media (min-width: 1700px) { .exam-shelf { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s4); } }
.xb { display: flex; flex-direction: column; }
.xb__cover { display: block; padding: var(--s1); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; transition: transform 0.2s ease, border-color 0.2s ease; }
.xb:hover .xb__cover { transform: translateY(-4px); border-color: var(--ink); }
.xb__cover img { width: 100%; height: auto; border-radius: 4px; }
.xb__name { margin-top: var(--s2); font-size: var(--t-body); font-weight: 800; line-height: 1.3; }
.xb__name a { text-decoration: none; }
.xb__name a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.xb__text { margin-top: var(--s1); font-size: var(--t-small); color: var(--print-soft); }
.xb__links { margin-top: auto; padding-top: var(--s1); display: flex; flex-wrap: wrap; column-gap: var(--s3); }
.xb__links .link-btn { min-height: 40px; font-size: var(--t-small); text-align: left; }
.has-reveal .exam-shelf[data-reveal] { transition-delay: 0.08s; }

/* ---- 9. Class-wise quiz ---- */
.exam__meta-btn { padding: 0 !important; border: 0 !important; }
.exam__meta-btn button { padding: 0 var(--s1); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: none; color: var(--paper); font-size: var(--t-small); line-height: 24px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.exam__meta-btn button:hover { border-color: var(--paper); }
.exam__bar :focus-visible { outline-color: var(--dominant); }
.exam__q:focus { outline: none; }
.class-grid { margin-top: var(--s3); padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.class-btn { width: 100%; min-height: 96px; display: grid; place-items: center; border: 2px solid var(--rule); border-radius: 12px; background: var(--paper); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease; }
.class-btn:hover { border-color: var(--ink); background: var(--tint); }
.class-btn:active { transform: scale(0.98); }
.class-btn__n { font-size: 36px; font-weight: 800; line-height: 1; }
.class-btn__n sup { font-size: var(--t-small); font-weight: 400; vertical-align: top; margin-left: 2px; }
@media (max-width: 479px) { .class-grid { gap: var(--s1); } .class-btn { min-height: 72px; } }
.opt[aria-disabled="true"] { cursor: default; }
.qnav__btn.is-right { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.qnav__btn.is-miss { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.qnav__btn.is-current { border-color: var(--ink); border-width: 3px; }
.exam__score { max-width: 36ch; }
.exam__score:focus { outline: none; }
.score { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); }
.score:focus { outline: none; }
.score__n { font-size: var(--t-display); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.score__of { font-size: var(--t-display); font-weight: 200; line-height: 1; }
.score__msg { margin-top: var(--s2); font-weight: 700; }
.score__list { margin-top: var(--s3); padding: 0; list-style: none; display: grid; gap: var(--s1); }
.score__q { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s2); align-items: center; padding: var(--s1) var(--s2) var(--s1) var(--s1); border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); text-align: left; cursor: pointer; transition: border-color 0.15s ease; }
.score__q:hover { border-color: var(--ink); }
.score__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--paper); font-weight: 800; }
.is-right > .score__q .score__mark { background: var(--ok); }
.is-miss > .score__q .score__mark { background: var(--bad); }
.score__text { display: grid; font-size: var(--t-small); line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 479px) {
  .exam__foot .qnav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s1); }
  .exam__controls [data-q-score-btn] { flex-basis: 100%; }
  .exam__step[data-step="score"] .exam__controls .btn { flex-basis: 100%; }
}

/* Pop-up sheet (score pop-up). Flat: an ink border, no shadow. */
.sheet-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); color: var(--ink); }
.sheet-dialog::backdrop { background: rgba(27, 26, 46, 0.72); }
.sheet-dialog__inner { position: relative; display: grid; gap: var(--s2); padding: var(--s4) var(--s3) var(--s3); }
.sheet-dialog__close { position: absolute; right: var(--s1); top: var(--s1); }
.sheet-dialog__title { padding-right: var(--s5); font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.sheet-dialog__text { color: var(--print-soft); }
.sheet-dialog__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s1); }
.sheet-dialog__small, .field__hint { font-size: var(--t-small); color: var(--print-soft); }
.field input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

/* ---- 10. Reviews: laid out like "What Students & Schools Say About Us" on prodigybrains.com (20 Nov 2026, Sachin):
        centred heading and line, then one full-width row of 550px review cards moving right to left in a loop.
        The card copies the live site: dark blue radial background, white text, name, school, review, five gold stars.
        (The blue gradient and the card shadow are that site's look, used here on purpose: see DESIGN.md.)
        It is a normal section in the page flow, so it cannot cover a button or the quiz. ---- */
.reviews { padding-block: var(--s7); background: var(--paper); overflow: hidden; }
.reviews__track { margin-top: var(--s4); padding-block: 20px; overflow: hidden; }
.reviews__track:focus-visible { outline-offset: -4px; }
.reviews__list { display: flex; flex-wrap: nowrap; align-items: stretch; width: max-content; margin: 0; padding: 0; list-style: none; animation: partners var(--loop, 60s) linear infinite; }
.reviews__track:hover .reviews__list, .reviews__track:focus .reviews__list, .reviews__track:active .reviews__list { animation-play-state: paused; }
.review {
  flex: 0 0 550px; box-sizing: border-box; min-height: 150px; margin: 0 15px; padding: 20px;
  display: flex; flex-direction: column;
  background: radial-gradient(circle at top left, #094B8C, #00173B);
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.25);
  border-radius: 20px; color: #FFFFFF;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35); }
.review__name { font-size: 24px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.review__school { font-size: 13px; line-height: 1.4; margin-bottom: 10px; }
.review__text { font-size: 16px; line-height: 1.4; margin-bottom: 10px; }
.review__stars { margin-top: auto; color: #F5C518; font-size: 28px; line-height: 1.2; }
@media (max-width: 699px) {
  .reviews { padding-block: var(--s6); }
  .review { flex-basis: min(550px, 84vw); margin: 0 8px; }
  .review__name { font-size: 20px; }
  .review__stars { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .review, .review:hover { transition: none; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-books { animation: none !important; }
  .hero-book, .hero-book:hover, .xb__cover, .xb:hover .xb__cover, .class-btn { transition: none; transform: none; }
  /* no movement: the two strips become rows you can scroll sideways yourself */
  .partners__list, .reviews__list { animation: none; flex-wrap: nowrap; width: max-content; }
  .partners__track, .reviews__track { overflow-x: auto; }
  .partners__list li[aria-hidden="true"], .reviews__list li[aria-hidden="true"] { display: none; }
}
/* the swipeable cover row must not widen the hero column on phones */
@media (max-width: 999px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }
.hero__copy { min-width: 0; }

/* =========================================================
   HERO EXAM BLOCKS (20 Nov 2026): replaces the 3D India map. All seven exams as stacked blocks, a boy climbing a ladder.
   Colours here are content colours (like the desk scene, see DESIGN.md section 2). Each block links to its exam.
   ========================================================= */
.stack { margin: 0; justify-self: center; width: 100%; max-width: 560px; animation: rise 0.8s cubic-bezier(.2,.7,.2,1) 0.12s both; }
.stack__svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (min-width: 1000px) { .stack__svg { max-height: calc(100svh - 160px); } }
.stack__label { font-family: var(--font); font-weight: 800; font-size: 15px; fill: #1B1A2E; letter-spacing: 0; }
.stack__cube { cursor: pointer; transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.2s cubic-bezier(.3,1.6,.5,1); animation: cube-in 0.6s cubic-bezier(.3,1.4,.5,1) var(--d, 0s) backwards; outline: none; }
.stack__cube:hover, .stack__cube:focus-visible { transform: translateY(-8px); }
.stack__cube:focus-visible polygon:first-child, .stack__cube:focus-visible rect:first-of-type { stroke: #1B1A2E; stroke-width: 4; }
.stack__cube:active { transform: translateY(-2px) scale(0.98); }
@keyframes cube-in { from { opacity: 0; transform: translateY(-60px) rotate(-6deg); } to { opacity: 1; transform: none; } }
.stack__kid { transform-box: fill-box; transform-origin: 50% 100%; animation: kid-climb 6s ease-in-out infinite; }
@keyframes kid-climb { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.stack__eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@media (max-width: 999px) { .stack { max-width: 460px; } .stack__label { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .stack, .stack__cube, .stack__kid, .stack__eye { animation: none; } .stack__cube { transition: none; } }

/* Hero exam books (20 Nov 2026, second version): staircase of books, girl pointing, cap and degree floating above Jr. Coders */
.stack { max-width: 660px; }
.stack__label { font-size: 34px; font-weight: 800; letter-spacing: 0; }
.stack__cube { transform-origin: 50% 50%; }
.stack__cube:hover, .stack__cube:focus-visible { transform: translateX(10px); }
.stack__cube:focus-visible path:first-child, .stack__cube:focus-visible rect:first-of-type { stroke-width: 6; }
.stack__float { transform-box: fill-box; transform-origin: 50% 50%; animation: stack-float var(--fd, 5s) ease-in-out var(--fdelay, 0s) infinite; }
@keyframes stack-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
.stack__spark { transform-box: fill-box; transform-origin: 50% 50%; animation: stack-spark 2.8s ease-in-out var(--fdelay, 0s) infinite; }
@keyframes stack-spark { 0%, 100% { transform: scale(0.7); opacity: 0.6; } 50% { transform: scale(1.25); opacity: 1; } }
.stack__girl { transform-box: fill-box; transform-origin: 50% 100%; animation: kid-climb 6s ease-in-out infinite; }
@media (max-width: 999px) { .stack { max-width: 520px; } .stack__label { font-size: 38px; } }
@media (prefers-reduced-motion: reduce) { .stack__float, .stack__spark, .stack__girl { animation: none; } }
