/* Nyaya League · nyayaleague.org
   Mobile first. Designed at 390px, then 768px and 1440px. */

/* Fonts: served from our own domain, subset to Latin plus ₹ and a few marks */
@font-face { font-family: "Unbounded"; font-weight: 700 900; font-display: swap; src: url("assets/fonts/unbounded-700-900.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("assets/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 700; font-display: swap; src: url("assets/fonts/space-mono-700.woff2") format("woff2"); }

:root {
  --navy: #0B1F4B;
  --navy-2: #12295E;
  --blue: #1E4FD8;
  --yellow: #FFC83D;
  --yellow-2: #FFD566;
  --cream: #FFF8EC;
  --lilac: #B9A4FF;
  --gold: #B8862B;
  --maroon: #8C1D2F;
  --ink: #4A5068;
  --line: #E6DCC6;
  --white: #FFFFFF;

  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
  --f-mono: "Space Mono", ui-monospace, monospace;

  --gutter: 16px;
  --wrap: 1200px;
  --sec: 72px; /* vertical padding of every main section */
  /* Paper grain, like the printed brochure. A tiny SVG noise tile. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .04 0 0 0 0 .12 0 0 0 0 .29 .34 0 0 0 -.17'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  --header-h: 64px;

  --torn: polygon(0% 2.3px, 3.85% 1.1px, 7.69% 4.6px, 11.54% 0.5px, 15.38% 3.8px, 19.23% 2.6px, 23.08% 0.4px, 26.92% 3.6px, 30.77% 0.3px, 34.62% 3px, 38.46% 0.5px, 42.31% 0.6px, 46.15% 3px, 50% 5.8px, 53.85% 0.9px, 57.69% 1.6px, 61.54% 4.4px, 65.38% 6.6px, 69.23% 4px, 73.08% 2.8px, 76.92% 6.8px, 80.77% 0.3px, 84.62% 6px, 88.46% 2px, 92.31% 1px, 96.15% 0.8px, calc(100% - 2.2px) 8.33%, calc(100% - 5.7px) 16.67%, calc(100% - 1.3px) 25%, calc(100% - 4.1px) 33.33%, calc(100% - 4.5px) 41.67%, calc(100% - 2.6px) 50%, calc(100% - 3.8px) 58.33%, calc(100% - 0.4px) 66.67%, calc(100% - 0.4px) 75%, calc(100% - 1.4px) 83.33%, calc(100% - 4.8px) 91.67%, 100% calc(100% - 3px), 96.15% calc(100% - 2.2px), 92.31% calc(100% - 4.1px), 88.46% calc(100% - 3.2px), 84.62% calc(100% - 2.1px), 80.77% calc(100% - 5.6px), 76.92% calc(100% - 4.9px), 73.08% calc(100% - 1.7px), 69.23% calc(100% - 4px), 65.38% calc(100% - 3.7px), 61.54% calc(100% - 6.1px), 57.69% calc(100% - 5.1px), 53.85% calc(100% - 2px), 50% calc(100% - 6.9px), 46.15% calc(100% - 0.8px), 42.31% calc(100% - 2.9px), 38.46% calc(100% - 5.3px), 34.62% calc(100% - 1.1px), 30.77% calc(100% - 3.4px), 26.92% calc(100% - 0.3px), 23.08% calc(100% - 4.7px), 19.23% calc(100% - 5.4px), 15.38% calc(100% - 4px), 11.54% calc(100% - 6.1px), 7.69% calc(100% - 2.2px), 3.85% calc(100% - 4.9px), 4.2px 100%, 4.1px 91.67%, 3.2px 83.33%, 5.9px 75%, 6.6px 66.67%, 3.3px 58.33%, 4.6px 50%, 0.4px 41.67%, 4.9px 33.33%, 4.5px 25%, 7px 16.67%, 5.8px 8.33%);
}

@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 72px; --sec: 112px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream) var(--grain);
  color: var(--navy);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-navy :focus-visible, .hero :focus-visible { outline-color: var(--yellow); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--yellow); color: var(--navy); padding: 8px 14px; font-weight: 600; border-radius: 8px; }
.skip:focus { top: 8px; }

/* Type roles */
.display {
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.h2 { font-size: clamp(2rem, 8.4vw, 4rem); letter-spacing: -0.035em; }
.h2 .serif { display: block; font-size: 1.12em; line-height: 1; margin-top: 0.06em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: 600 0.9375rem/1.2 var(--f-body);
  text-decoration: none; text-align: center;
  border: 2px solid var(--navy); border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: 4px 4px 0 var(--navy); }
.btn-navy { background: var(--navy); color: var(--cream); box-shadow: 4px 4px 0 var(--yellow); }
.on-navy .btn-yellow { box-shadow: 4px 4px 0 var(--lilac); }
@media (hover: hover) { .btn:hover { transform: translate(-2px, -2px); } }
@media (hover: hover) { .btn-yellow:hover { box-shadow: 6px 6px 0 var(--navy); } }
@media (hover: hover) { .on-navy .btn-yellow:hover { box-shadow: 6px 6px 0 var(--lilac); } }
@media (hover: hover) { .btn-navy:hover { box-shadow: 6px 6px 0 var(--yellow); } }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 transparent; }

/* Sections crop their decorations with overflow: clip, not hidden. "hidden" turns a section
   into a scroll container, which freezes every scroll-driven animation inside it. */

/* ---------- Brand textures ---------- */
.rays-navy {
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse at 50% 45%, transparent 0 35%, rgba(6, 18, 46, .55) 100%),
    repeating-conic-gradient(from 0deg at 60% 55%, var(--navy-2) 0deg 5deg, var(--navy) 5deg 10deg);
}
.rays-yellow {
  background-color: var(--yellow);
  background-image:
    var(--grain),
    radial-gradient(ellipse at 30% 0%, rgba(255, 233, 163, .65), transparent 60%),
    repeating-conic-gradient(from 0deg at 15% -10%, var(--yellow-2) 0deg 4deg, var(--yellow) 4deg 9deg);
}
.dots { position: absolute; pointer-events: none; z-index: 0; }
.dots::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--dot, #3B5BD6) 1.6px, transparent 2.2px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(ellipse at var(--dot-at, 0% 0%), #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at var(--dot-at, 0% 0%), #000 0%, transparent 70%);
}

/* Sticker pills */
.sticker {
  display: inline-block;
  padding: 7px 16px;
  font: 700 0.875rem/1.2 var(--f-body);
  color: var(--navy);
  background: var(--cream);
  border: 2px solid var(--navy);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--navy);
  transform: rotate(var(--r, -2deg));
  transition: transform .2s ease;
  white-space: nowrap;
}
@media (hover: hover) { .sticker:hover { transform: rotate(calc(var(--r, -2deg) * -1)) scale(1.03); } }
.sticker.is-yellow { background: var(--yellow); }
.sticker.is-lilac { background: var(--lilac); }
.on-navy .sticker { box-shadow: 4px 4px 0 var(--lilac); border-color: var(--navy); }

/* Torn paper card */
.torn-wrap { filter: drop-shadow(6px 7px 0 var(--navy)); }
.torn {
  background: var(--cream) var(--grain);
  clip-path: var(--torn);
  padding: 34px 26px 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  /* Frosted glass: the page scrolls underneath, blurred */
  background: rgba(255, 248, 236, .8);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(11, 31, 75, .14);
  transition: background-color .3s ease, border-color .3s ease;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--navy); text-decoration: none;
  align-self: flex-start;
}
/* Logo guide: crest never smaller than 64px on screen. It hangs over the bar edge like a club badge. */
.brand img { width: 64px; height: 64px; margin-top: 4px; flex: none; filter: drop-shadow(0 2px 0 rgba(11, 31, 75, .25)); }
.brand span { font-family: var(--f-display); font-weight: 900; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1; padding-top: 22px; }
.nav { display: none; margin-left: auto; gap: 26px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 0.9375rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
@media (hover: hover) { .nav a:hover::after { transform: scaleX(1); } }
.header-cta { display: none; min-height: 42px; padding: 9px 18px; font-size: 0.875rem; }
@media (min-width: 768px) {
  .brand img { width: 64px; height: 64px; margin-top: 8px; }
  .brand span { font-size: 1.25rem; padding-top: 30px; }
  .header-cta { display: inline-flex; margin-left: auto; }
}
@media (min-width: 1100px) {
  .nav { display: flex; }
  .header-cta { margin-left: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; overflow: clip;
  color: var(--cream);
  padding: 44px 0 56px;
}
.hero .dots { top: 0; left: 0; width: 60%; height: 340px; --dot: #3D5FD9; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 28px;
  grid-template-areas: "copy" "form" "extras";
}
.hero-copy { grid-area: copy; }
.hero-form { grid-area: form; position: relative; }
.hero-extras { grid-area: extras; display: grid; gap: 28px; }

.hero h1 {
  font-size: clamp(3.125rem, 14.2vw, 7.25rem);
  line-height: .92;
  letter-spacing: -0.035em;
  text-shadow: 5px 5px 0 var(--lilac);
  text-transform: uppercase;
}
.hero h1 .l1 { display: block; color: var(--cream); }
.hero h1 .l2 { display: block; color: var(--yellow); }
.band {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 16px 9px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(0.8125rem, 3.85vw, 1.875rem);
  white-space: nowrap;
  letter-spacing: -0.01em; line-height: 1.1;
  border-radius: 6px;
  box-shadow: 6px 6px 0 var(--lilac);
  transform: rotate(-2deg);
  transform-origin: left center;
  text-transform: uppercase;
}
.hero-line { margin-top: 22px; font-size: 1.0625rem; line-height: 1.5; max-width: 40ch; }
.nowrap { white-space: nowrap; }
.hero-line strong { color: var(--yellow); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 14px 12px; }

.partners {
  background: var(--cream);
  color: var(--navy);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--lilac);
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 560px;
}
.partner { display: grid; grid-template-rows: auto 68px; align-items: center; justify-items: center; gap: 10px; padding: 16px 18px 18px; text-align: center; }
.partner + .partner { border-left: 2px dashed var(--line); }
.partner small { font-size: 0.75rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.partner .toi { height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.partner .cp { height: 68px; width: auto; }

.hero-scales { display: block; width: min(100%, 360px); margin: 8px auto 0; }

/* Form card */
.form-card {
  position: relative; z-index: 2;
  background: var(--cream);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--lilac);
  padding: 24px 20px 22px;
}
.form-card h2 { font-size: 1.5rem; line-height: 1.1; margin-bottom: 16px; }
.form-card .sub { font-size: 0.875rem; color: var(--ink); margin-bottom: 18px; }
.mock-form { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 0.8125rem; font-weight: 600; }
.field input {
  width: 100%; min-height: 46px;
  padding: 10px 12px;
  font: 400 1rem/1.3 var(--f-body);
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 10px;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 79, 216, .25); }
.mock-form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 0.8125rem; color: var(--ink); margin-top: 4px; }
.form-fallback { margin-top: 18px; font-size: 0.9375rem; color: var(--cream); }
.form-fallback a { color: var(--yellow); font-weight: 600; }
@media (min-width: 560px) {
  .mock-form { grid-template-columns: 1fr 1fr; }
  .field.full, .mock-form .btn, .form-note { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .hero { padding: 56px 0 80px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    grid-template-areas: "copy form" "extras form";
    grid-template-rows: auto 1fr;
    column-gap: 56px; row-gap: 34px;
    align-items: start;
  }
  .hero-line { font-size: 1.1875rem; }
  .hero-form { padding-top: 210px; }
  .hero-scales {
    position: absolute; z-index: 0;
    top: -6px; left: 50%;
    width: 112%; max-width: none;
    margin: 0; transform: translateX(-50%);
  }
  .form-card { padding: 28px 28px 24px; }
  .form-card h2 { font-size: 1.75rem; }
}

/* ---------- About + sections (cream) ---------- */
.about {
  position: relative; overflow: hidden; overflow: clip;
  padding: var(--sec) 0;
  border-left: 10px solid var(--yellow);
}
.about .dots { top: 0; right: 0; width: 55%; height: 260px; --dot: var(--lilac); --dot-at: 100% 0%; }
.about-head { position: relative; z-index: 1; }
.about-head .h2 { padding-right: 112px; }
.about-head .h2 .serif { color: var(--blue); }
.about-body { position: relative; z-index: 1; margin-top: 18px; font-size: 1.0625rem; max-width: 44ch; color: var(--navy); }
.badge-40 { position: absolute; top: -18px; right: -6px; width: 112px; height: 112px; transform: rotate(-8deg); }
@media (min-width: 768px) {
  .about { border-left-width: 22px; }
  .badge-40 { width: 190px; height: 190px; top: -30px; right: 0; }
  .about-head .h2 { padding-right: 220px; }
  .about-body { font-size: 1.1875rem; }
}

.cards { position: relative; z-index: 1; margin-top: 40px; display: grid; gap: 22px; }
.card {
  position: relative;
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 22px 22px 26px;
  box-shadow: 6px 6px 0 var(--navy);
  transform: rotate(var(--r, 0deg));
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) { .card:hover { transform: rotate(var(--r, 0deg)) translateY(-3px); box-shadow: 6px 9px 0 var(--navy); } }
.card .num { font-family: var(--f-display); font-weight: 900; font-size: 2.75rem; line-height: 1; letter-spacing: -0.02em; }
.card h3 { font-family: var(--f-display); font-weight: 900; font-size: 1.1875rem; line-height: 1.2; margin-top: 14px; letter-spacing: -0.01em; }
.card p { margin-top: 8px; font-size: 0.9375rem; line-height: 1.55; }
.card .ico {
  position: absolute; top: 20px; right: 20px;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream);
  border: 2px solid var(--navy);
  box-shadow: 3px 3px 0 var(--navy);
}
.card .ico img { width: 34px; height: 34px; }
.c1 .ico { box-shadow: 3px 3px 0 var(--yellow); border-color: var(--cream); }
.c1 { background: var(--navy); color: var(--cream); --r: -1deg; }
.c1 .num { color: var(--yellow); }
.c2 { background: var(--yellow); --r: 1deg; }
.c3 { background: var(--lilac); --r: .6deg; }
.c4 { background: var(--blue); color: var(--white); --r: -.8deg; }
.c4 .num { color: var(--yellow); }
.c5 { background: var(--white); --r: -.4deg; }
.c5 .num { color: var(--blue); }
@media (min-width: 768px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
  .card { padding: 28px 28px 34px; min-height: 250px; }
  .card .num { font-size: 3.5rem; }
  .card h3 { font-size: 1.375rem; margin-top: 20px; }
  .c5 { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: center; padding-right: 96px; }
  .c5 h3 { margin-top: 0; }
  .c5 .num { grid-row: 1 / 3; }
  .c5 p { margin-top: 4px; }
  .c5 .ico { top: 50%; transform: translateY(-50%); }
}

/* ---------- How it works (navy) ---------- */
.how {
  position: relative; overflow: hidden; overflow: clip;
  background: var(--navy); color: var(--cream);
  padding: var(--sec) 0 64px;
}
.how .dots { top: 0; left: 0; width: 50%; height: 300px; --dot: #2C4FD0; }
.how .h2 { position: relative; z-index: 1; }
.how .h2 .serif { color: var(--yellow); }
.steps { position: relative; z-index: 1; margin-top: 44px; display: grid; gap: 0; max-width: 680px; }
.step { position: relative; display: grid; grid-template-columns: 60px 1fr; column-gap: 18px; padding-bottom: 34px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 22px; top: 62px; bottom: 4px; width: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='40' viewBox='0 0 16 40'%3E%3Cpath d='M8 0 C 16 10, 0 30, 8 40' fill='none' stroke='%23FFC83D' stroke-width='3' stroke-linecap='round' stroke-dasharray='6 7'/%3E%3C/svg%3E") repeat-y center top / 16px 40px;
}
.step .dot {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--navy);
  font-family: var(--f-display); font-weight: 900; font-size: 1rem;
  border: 5px solid #3A4766;
}
.step h3 { font-family: var(--f-display); font-weight: 900; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; padding-top: 4px; }
.step p { margin-top: 6px; font-size: 0.9375rem; color: rgba(255, 248, 236, .88); max-width: 46ch; }
.step.is-final .dot { background: var(--lilac); }
.step.is-final h3 { color: var(--lilac); font-size: 1.4375rem; }
@media (min-width: 768px) {
  .how { padding-bottom: 88px; }
  .step { grid-template-columns: 72px 1fr; column-gap: 24px; padding-bottom: 40px; }
  .step .dot { width: 66px; height: 66px; font-size: 1.125rem; }
  .step:not(:last-child)::before { left: 26px; top: 72px; }
  .step h3 { font-size: 1.5rem; padding-top: 8px; }
  .step.is-final h3 { font-size: 1.875rem; }
  .step p { font-size: 1rem; }
}

/* ---------- Prizes + Finale (navy continues) ---------- */
.rewards { background: var(--navy); color: var(--cream); padding: 24px 0 88px; overflow: hidden; overflow: clip; }
.rewards-grid { display: grid; gap: 64px; align-items: center; }
.prizes { display: grid; gap: 8px; justify-items: center; }
.seal {
  position: relative; width: 270px; height: 270px;
  display: grid; place-items: center; text-align: center;
  color: var(--navy);
  transform: rotate(-8deg);
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal .seal-text { position: relative; display: grid; justify-items: center; gap: 4px; width: 64%; text-align: center; }
.seal .k { font-family: var(--f-mono); font-weight: 700; font-size: 0.8125rem; letter-spacing: .14em; text-transform: uppercase; padding-left: .14em; }
.seal .v { text-transform: uppercase; font-family: var(--f-display); font-weight: 900; font-size: 1.875rem; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.prize-list-wrap { width: 100%; max-width: 420px; margin-top: 28px; position: relative; }
.prize-list-wrap .tape { position: absolute; z-index: 2; top: -14px; left: 50%; width: 110px; transform: translateX(-50%) rotate(-4deg); }
.ticks li {
  position: relative; padding-left: 34px; font-weight: 500; font-size: 1rem; line-height: 1.4;
}
.ticks li + li { margin-top: 12px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23FFC83D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.prize-list-wrap .torn { color: var(--navy); padding: 38px 30px 34px; }
.prize-list-wrap.torn-wrap { filter: drop-shadow(6px 7px 0 var(--lilac)); }

/* Ticket */
.finale { display: grid; justify-items: center; gap: 30px; }
.ticket-wrap { position: relative; width: 100%; max-width: 600px; padding-top: 22px; transform: rotate(-3deg); }
.ticket {
  position: relative;
  display: grid; grid-template-columns: 1fr auto;
  background: var(--cream); color: var(--navy);
  border: 2.5px solid var(--gold);
  border-radius: 14px;
  box-shadow: 8px 8px 0 #06122E;
}
/* Punched notches, coloured like the section behind the ticket */
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  background: var(--navy); border: 2.5px solid var(--gold); border-radius: 50%;
}
.ticket::before { left: -16px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -16px; clip-path: inset(0 50% 0 0); }
.ticket-main { padding: 26px 18px 24px 26px; }
.admit { font-family: var(--f-mono); font-weight: 700; font-size: 0.6875rem; letter-spacing: .14em; color: #8F6A1E; text-transform: uppercase; }
.ticket-date { text-transform: uppercase; font-family: var(--f-display); font-weight: 900; font-size: clamp(1.75rem, 8vw, 2.375rem); line-height: .98; letter-spacing: -0.02em; margin-top: 8px; }
.ticket-time { margin-top: 12px; font-weight: 600; font-size: 0.9375rem; }
.ticket-venue { margin-top: 6px; font-weight: 600; font-size: 0.9375rem; }
.ticket-venue .serif { color: var(--blue); font-size: 1.25rem; }
.ticket-stub {
  display: grid; justify-items: center; align-content: center; gap: 12px;
  padding: 16px 16px 16px 18px;
  border-left: 2.5px dashed var(--navy);
  margin: 14px 0;
}
.ticket-stub .crest { width: 64px; height: 64px; }
.ticket-stub .cp { width: 64px; height: auto; }
.ticket-stub .toi { width: 92px; height: auto; }
/* Phones: stub tears off along the bottom, logos in a row */
@media (max-width: 559px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { top: calc(100% - 100px); }
  .ticket-main { padding: 24px 22px 20px; }
  .ticket-stub { display: flex; justify-content: space-around; align-items: center; height: 100px; margin: 0 14px; padding: 0 4px; border-left: 0; border-top: 2.5px dashed var(--navy); }
}
@media (min-width: 768px) {
  .seal { width: 330px; height: 330px; }
  .seal .k { font-size: 0.9375rem; }
  .seal .v { font-size: 2.375rem; }
  .ticket-main { padding: 32px 22px 30px 36px; }
  .ticket-stub { padding: 18px 24px; }
  .ticket-stub .cp { width: 78px; }
  .ticket-stub .toi { width: 104px; }
}
@media (min-width: 1024px) {
  .rewards { padding: 40px 0 120px; }
  .rewards-grid { grid-template-columns: 1fr 1.15fr; gap: 72px; }
}

/* ---------- For schools (yellow) ---------- */
.schools { position: relative; overflow: hidden; overflow: clip; padding: var(--sec) 0; }
.schools .dots { left: 0; top: 38%; width: 30%; height: 360px; --dot: #E3A92A; --dot-at: 0% 50%; }
.schools .h2 { position: relative; z-index: 1; text-shadow: 3px 3px 0 var(--cream); }
.schools .h2 .serif { text-shadow: none; }
.bento { position: relative; z-index: 1; margin-top: 44px; display: grid; gap: 40px 24px; }
.gain { position: relative; }
.gain h3 { font-family: var(--f-display); font-weight: 900; font-size: 1.3125rem; line-height: 1.15; margin-bottom: 18px; letter-spacing: -0.01em; }
.gain.students h3 { color: var(--blue); }
.gain.school h3 { color: var(--maroon); padding-right: 64px; }
.gain .tape { position: absolute; z-index: 2; top: -16px; width: 120px; }
.gain.students .tape { left: 28%; transform: rotate(-3deg); }
.gain.school .tape { left: 26%; transform: rotate(2deg); }
.gain .stamp { position: absolute; z-index: 3; top: -26px; right: -4px; width: 150px; transform: rotate(-6deg); }
.gain.students { transform: rotate(-1deg); }
.gain.school { transform: rotate(1deg); }
.gain .torn-wrap { filter: drop-shadow(6px 7px 0 rgba(11, 31, 75, .85)); }
.gain .ticks li { font-size: 1rem; }

.register-panel {
  position: relative; z-index: 1;
  background: var(--navy); color: var(--cream);
  border-radius: 0 18px 18px 18px;
  padding: 34px 22px 32px;
  box-shadow: 8px 8px 0 rgba(11, 31, 75, .35);
}
.register-panel::before {
  content: ""; position: absolute; left: 0; top: -22px; width: 44%; height: 24px;
  background: var(--navy); border-radius: 14px 14px 0 0;
}
.register-panel h2 { font-size: clamp(1.625rem, 7vw, 2.5rem); }
.reg-steps { margin-top: 22px; display: grid; gap: 14px; counter-reset: s; max-width: 560px; }
.reg-steps li { counter-increment: s; position: relative; padding-left: 40px; font-size: 1rem; line-height: 1.5; }
.reg-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--navy);
  font: 700 0.8125rem/1 var(--f-body);
}
.register-panel .btn { margin-top: 28px; }
.mini-seal {
  position: relative; width: 150px; height: 150px;
  display: grid; place-items: center; text-align: center; color: var(--navy);
  transform: rotate(8deg);
}
.mini-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-seal span { position: relative; font-family: var(--f-mono); font-weight: 700; font-size: 0.6875rem; letter-spacing: .12em; line-height: 1.25; text-transform: uppercase; }
.mini-seal strong { display: block; font-family: var(--f-display); font-weight: 900; font-size: 1.0625rem; letter-spacing: 0; }
@media (min-width: 768px) {
  .bento { grid-template-columns: 1fr 1fr; gap: 44px 32px; margin-top: 64px; }
  .gain h3 { font-size: 1.5rem; }
  .gain .ticks li { font-size: 1.0625rem; }
  .torn { padding: 44px 36px 42px; }
  .register-panel { padding: 48px 48px 44px; }
  .register-panel::before { width: 34%; }
  .reg-steps li { font-size: 1.0625rem; }
}

/* ---------- FAQ ---------- */
.faq { padding: var(--sec) 0; }
.faq .h2 .serif { color: var(--blue); }
.faq-list { margin-top: 36px; display: grid; gap: 14px; max-width: 860px; }
.faq details {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--navy);
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: 4px 4px 0 var(--lilac); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%230B1F4B' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: 2px solid var(--navy);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: var(--ink); font-size: 1rem; max-width: 64ch; }
@media (min-width: 768px) {
  .faq summary { padding: 20px 24px; font-size: 1.125rem; }
  .faq details p { padding: 0 24px 22px; max-width: 60ch; }
}

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; overflow: clip; color: var(--cream); padding: var(--sec) 0; text-align: center; }
.final h2 { font-size: clamp(1.875rem, 7.6vw, 3.75rem); max-width: 16ch; margin: 0 auto; text-shadow: 4px 4px 0 var(--lilac); }
.final-actions { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final-actions a.mail { color: var(--yellow); font-weight: 600; font-size: 1.0625rem; }
@media (min-width: 768px) {
  .final-actions { flex-direction: row; justify-content: center; gap: 28px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--cream) var(--grain); border-top: 4px solid var(--navy); padding: 40px 0 28px; color: var(--navy); }
.foot-top { display: grid; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 72px; height: 72px; }
.foot-brand .serif { color: var(--blue); font-size: 1.625rem; }
.foot-partners { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 48px; }
.foot-partners figure { margin: 0; display: grid; gap: 10px; justify-items: start; }
.foot-partners figcaption { font-size: 0.75rem; font-weight: 600; color: var(--ink); }
.foot-partners .cp { height: 60px; width: auto; }
.foot-partners .toi { height: 46px; width: auto; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-links a { color: var(--navy); font-weight: 500; font-size: 0.9375rem; }
@media (min-width: 900px) {
  .foot-top { grid-template-columns: 1fr auto; align-items: center; }
}
.copy { font-size: 0.8125rem; color: var(--ink); }

/* ---------- Sticky mobile CTA: a frosted bar along the bottom edge ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 248, 236, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(11, 31, 75, .12);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.sticky-bar .sticky-cta { display: flex; width: 100%; }
.sticky-bar.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
@media (min-width: 1024px) { .sticky-bar { display: none; } }

/* Breakpoint helpers */
.desk-only { display: none !important; }
@media (min-width: 1024px) {
  .desk-only { display: block !important; }
  .mob-only { display: none !important; }
}

@media (min-width: 1024px) {
  .how-grid, .faq .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px; align-items: start; }
  .how .h2 { font-size: 3.375rem; }
  .steps, .faq-list { margin-top: 8px; }
}

/* ---------- Countdown ---------- */
.countdown { display: grid; justify-items: center; gap: 8px; }
.countdown[hidden] { display: none; }
.cd-cells { display: flex; gap: 10px; }
.cd {
  display: grid; justify-items: center; min-width: 64px; padding: 10px 8px 8px;
  background: var(--yellow); color: var(--navy);
  border: 2px solid var(--navy); border-radius: 12px;
  box-shadow: 4px 4px 0 var(--lilac);
}
.cd:nth-child(odd) { transform: rotate(-2deg); }
.cd:nth-child(even) { transform: rotate(1.5deg); }
.cd b { font-family: var(--f-display); font-weight: 900; font-size: 1.625rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cd small { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.cd-label { font-family: var(--f-display); font-weight: 900; color: var(--yellow); font-size: 0.9375rem; text-transform: uppercase; letter-spacing: .02em; }
@media (min-width: 768px) { .cd { min-width: 78px; } .cd b { font-size: 2rem; } }

/* ---------- Header scroll progress + active link ---------- */
.progress {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 4px;
  background: var(--yellow);
  transform: scaleX(var(--p, 0)); transform-origin: left;
}
.nav a.is-active::after { transform: scaleX(1); }

/* ---------- Motion (all switched off for prefers-reduced-motion) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes slap {
  0% { opacity: 0; transform: rotate(-9deg) scale(1.25); }
  60% { opacity: 1; transform: rotate(-1deg) scale(.97); }
  100% { opacity: 1; transform: rotate(-2deg) scale(1); }
}
@keyframes pop {
  0% { opacity: 0; transform: rotate(var(--r, 0deg)) scale(.4); }
  70% { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1.1); }
  100% { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1); }
}
@keyframes thunk {
  0% { opacity: 0; transform: rotate(-14deg) scale(2); }
  60% { opacity: 1; transform: rotate(-5deg) scale(.92); }
  100% { opacity: 1; transform: rotate(-6deg) scale(1); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pick { 50% { transform: scale(1.02); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rays-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Hero rays turn very slowly, like a stage light */
  .hero { background-image: none; }
  .hero::before {
    content: ""; position: absolute; z-index: 0; left: 60%; top: 55%;
    width: 220vmax; height: 220vmax;
    background: repeating-conic-gradient(from 0deg, var(--navy-2) 0deg 5deg, var(--navy) 5deg 10deg);
    transform: translate(-50%, -50%);
    animation: rays-spin 400s linear infinite;
    will-change: transform;
  }
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 45%, transparent 0 35%, rgba(6, 18, 46, .55) 100%);
  }
  .hero .dots { z-index: 1; }
  .hero-grid { z-index: 2; }

  /* Hero entrance */
  .js .hero h1 .l1 { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
  .js .hero h1 .l2 { animation: rise .5s cubic-bezier(.2, .8, .2, 1) .06s both; }
  .js .hero .band { animation: slap .45s cubic-bezier(.2, .8, .2, 1) .2s both; }
  .js .hero-line { animation: rise .45s ease .28s both; }
  .js .hero .form-card { animation: rise .5s cubic-bezier(.2, .8, .2, 1) .15s both; }
  /* After the first tab switch, panels cross-fade both ways with no delay */
  .js.tabbed .hero .form-card { animation: tab-in .18s ease-out both; }
  .js .hero-scales.desk-only { animation: fade-in .6s ease .1s both, weigh 2.8s ease-in-out .55s both; }
  /* Phones without scroll timelines: the scales weigh once when they come into view */
  .js .hero-scales.mob-only.reveal.is-in { animation: weigh 2.8s ease-in-out .15s both; }
  .js .chips .sticker { animation: pop .35s cubic-bezier(.2, .8, .2, 1) both; }
  .js .chips .sticker:nth-child(1) { animation-delay: .38s; }
  .js .chips .sticker:nth-child(2) { animation-delay: .43s; }
  .js .chips .sticker:nth-child(3) { animation-delay: .48s; }
  .js .chips .sticker:nth-child(4) { animation-delay: .53s; }
  .js .partners { animation: rise .45s ease .45s both; }

  /* Slow turning seals and badge rays */
  .seal svg, .mini-seal svg { animation: spin 50s linear infinite; }
  .badge-40 .spin { transform-box: fill-box; transform-origin: center; animation: spin 30s linear infinite; }

  /* Scroll reveal */
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .card.reveal.is-in { transform: rotate(var(--r, 0deg)); }
  @media (hover: hover) { .js .card.reveal.is-in:hover { transform: rotate(var(--r, 0deg)) translateY(-3px); } }
  .js .cards .reveal:nth-child(3) { transition-delay: .08s; }
  .js .cards .reveal:nth-child(4) { transition-delay: .16s; }
  .js .cards .reveal:nth-child(5) { transition-delay: .08s; }
  .js .cards .reveal:nth-child(6) { transition-delay: .16s; }
  .js .gain.reveal.is-in.students { transform: rotate(-1deg); }
  .js .gain.reveal.is-in.school { transform: rotate(1deg); }
  .js .ticket-wrap.reveal.is-in { transform: rotate(-3deg); }

  /* Steps: dot pops, dashed line draws down to the next step */
  .js .step .dot { transform: scale(.3); opacity: 0; transition: transform .45s cubic-bezier(.2, 1.6, .4, 1) .1s, opacity .3s ease .1s; }
  .js .step.is-in .dot { transform: none; opacity: 1; }
  .js .step:not(:last-child)::before { transform: scaleY(0); transform-origin: top; transition: transform .8s ease .45s; }
  .js .step.is-in::before { transform: scaleY(1); }

  /* Ticks land one by one */
  .js .reveal .ticks li { opacity: 0; transform: translateX(-10px); transition: opacity .4s ease, transform .4s ease; }
  .js .reveal.is-in .ticks li { opacity: 1; transform: none; }
  .js .reveal.is-in .ticks li:nth-child(1) { transition-delay: .25s; }
  .js .reveal.is-in .ticks li:nth-child(2) { transition-delay: .35s; }
  .js .reveal.is-in .ticks li:nth-child(3) { transition-delay: .45s; }
  .js .reveal.is-in .ticks li:nth-child(4) { transition-delay: .55s; }

  /* The APPROVED stamp lands with a thunk */
  .js .gain .stamp { opacity: 0; }
  .js .gain.is-in .stamp { animation: thunk .5s cubic-bezier(.2, .8, .2, 1) .7s both; }

  /* Seal and ticket */
  .js .seal.reveal { transform: rotate(-30deg) scale(.6); transition: opacity .5s ease, transform .8s cubic-bezier(.2, 1.4, .4, 1); }
  .js .seal.reveal.is-in { transform: rotate(-8deg); }

  /* Pointer tilt (set by main.js on devices with a mouse) */
  [data-tilt].is-tilting { transition: transform .08s linear !important; }
  .card[data-tilt].is-tilting { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--r, 0deg)) translateY(-3px) !important; }
  .ticket-wrap[data-tilt].is-tilting { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-3deg) !important; }

  /* FAQ answers slide in */
  .faq details[open] p { animation: rise .35s ease both; }
  .quiz-feedback > * { animation: rise .25s ease both; }

  /* Stickers wiggle on hover */
  @media (hover: hover) { .sticker:hover { animation: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-property: opacity, color, background-color, border-color !important;
    transition-duration: .15s !important;
  }
  @media (hover: hover) { .sticker:hover, .card:hover, .btn:hover { transform: rotate(var(--r, 0deg)); } }
}

/* ---------- Simple pages: thank-you, privacy, 404 ---------- */
.simple-main { position: relative; overflow: hidden; overflow: clip; color: var(--cream); min-height: calc(100vh - var(--header-h) - 200px); display: grid; align-items: center; padding: 72px 0 88px; }
.simple-inner { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 22px; }
.simple-crest { width: 120px; height: 120px; }
.simple-stamp { width: 220px; transform: rotate(-6deg); }
.simple-title { font-size: clamp(2.5rem, 10vw, 5.25rem); text-shadow: 5px 5px 0 var(--lilac); }
.simple-title .serif { color: var(--yellow); text-shadow: none; }
.simple-body { font-size: 1.125rem; max-width: 40ch; }
.simple-body a { color: var(--yellow); font-weight: 600; }
.simple-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 8px; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
@media (hover: hover) { .btn-ghost:hover { background: rgba(255, 248, 236, .1); } }

.simple .header-cta { margin-left: auto; }

/* ---------- Audience: For schools / For students ---------- */
html:not([data-audience="student"]) [data-for="student"],
html[data-audience="student"] [data-for="school"] { display: none !important; }

/* Audience switch: a frosted segmented control with a sliding thumb */
.aud-switch { display: none; }
.js .aud-switch {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 248, 236, .12);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 248, 236, .22);
}
.aud-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--cream);
  box-shadow: 0 1px 2px rgba(6, 18, 46, .25), 0 4px 12px rgba(6, 18, 46, .25);
  transition: transform .4s cubic-bezier(.25, 1, .5, 1);
}
html[data-audience="student"] .aud-thumb { transform: translateX(100%); }
.aud-tab {
  position: relative; z-index: 1;
  min-height: 44px; padding: 10px 14px;
  font: 600 0.9375rem/1.2 var(--f-body); color: var(--cream);
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  transition: color .25s ease;
}
.aud-tab[aria-selected="true"] { color: var(--navy); }

.student-card h2 { margin-bottom: 6px; }
.student-lead { color: var(--ink); font-size: 0.9375rem; margin-bottom: 18px; }
.path {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-top: 12px;
  color: var(--navy); text-decoration: none;
  background: var(--white);
  border: 2px solid var(--navy); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--navy);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
@media (hover: hover) { .path:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--navy); background: #FFF3D1; } }
.path img { width: 40px; height: 40px; flex: none; }
.path b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 1.0625rem; line-height: 1.2; }
.path small { display: block; font-size: 0.875rem; color: var(--ink); margin-top: 2px; }
.path-arrow { margin-left: auto; font-size: 1.375rem; font-weight: 700; }
.student-follow { margin-top: 18px; font-size: 0.875rem; color: var(--ink); }
.student-follow a { font-weight: 600; }

/* ---------- Mobile menu ---------- */
.menu-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  font: 600 0.875rem/1 var(--f-body); color: var(--navy);
  background: var(--cream);
  border: 2px solid var(--navy); border-radius: 999px;
  cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 16px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }
@media (min-width: 768px) { .menu-btn { margin-left: 12px; } }
html:not(.js) .menu-btn { display: none; }
@media (max-width: 1099px) {
  .nav {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    margin: 0; padding: 12px var(--gutter) 20px;
    background: var(--cream);
    border-bottom: 2px solid var(--navy);
    /* Shadow plus a page scrim below the sheet, clipped so the header stays clear */
    box-shadow: 0 12px 24px rgba(11, 31, 75, .15), 0 0 0 100vmax rgba(11, 31, 75, .28);
    clip-path: inset(0 0 -100vmax 0);
    visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .nav.is-open {
    visibility: visible; opacity: 1; transform: none; pointer-events: auto;
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }
  .nav a:not(.btn) { padding: 12px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a.is-active:not(.btn) { color: var(--blue); font-weight: 600; }
  .nav .nav-cta { margin-top: 14px; align-self: flex-start; }
}
@media (min-width: 1100px) {
  .menu-btn, .nav .nav-cta { display: none !important; }
}

/* ---------- Practice ---------- */
.practice { position: relative; overflow: hidden; overflow: clip; background: var(--lilac) var(--grain); padding: var(--sec) 0; }
.practice .dots { right: 0; bottom: 0; width: 50%; height: 320px; --dot: #9A84EE; --dot-at: 100% 100%; }
.practice-grid { position: relative; z-index: 1; display: grid; gap: 36px; }
.practice .h2 .serif { color: var(--navy); }
.practice-lead { margin-top: 16px; font-size: 1.0625rem; max-width: 34ch; }
.practice-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.quiz-card {
  background: var(--cream);
  border: 2px solid var(--navy); border-radius: 18px;
  box-shadow: 8px 8px 0 var(--navy);
  padding: 22px 20px 24px;
  min-height: 440px;
  display: grid;
}
.quiz-start, .quiz-end { display: grid; justify-items: center; align-content: center; text-align: center; gap: 12px; }
.quiz-start[hidden], .quiz-end[hidden], .quiz-play[hidden] { display: none; }
.quiz-start img { width: 64px; height: 64px; }
.quiz-start-title { font-size: 2.125rem; }
.quiz-start p:not(.quiz-start-title) { color: var(--ink); }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.quiz-section { display: inline-block; padding: 5px 12px; font-size: 0.75rem; font-weight: 700; background: var(--yellow); border: 2px solid var(--navy); border-radius: 999px; line-height: 1.25; }
.quiz-dots { display: flex; gap: 6px; flex: none; }
.quiz-dots li { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--navy); }
.quiz-dots li.done { background: var(--navy); }
.quiz-dots li.now { background: var(--yellow); transform: scale(1.25); }
.quiz-passage { white-space: pre-line; background: var(--white); border-left: 4px solid var(--yellow); border-radius: 8px; padding: 12px 14px; font-size: 0.9375rem; color: var(--ink); margin-bottom: 14px; }
.quiz-passage[hidden] { display: none; }
.quiz-q { font: 600 1.1875rem/1.4 var(--f-body); margin-bottom: 16px; outline: none; }
.quiz-options { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; min-height: 52px;
  font: 500 1rem/1.35 var(--f-body); color: var(--navy); text-align: left;
  background: var(--white);
  border: 2px solid var(--navy); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--navy);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
@media (hover: hover) { .opt:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--navy); background: #FFF3D1; } }
.opt-key { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--navy); border-radius: 50%; font-weight: 700; font-size: 0.8125rem; }
.opt:disabled { cursor: default; opacity: .55; box-shadow: none; }
.opt.is-right { opacity: 1; background: var(--yellow); box-shadow: 3px 3px 0 var(--navy); }
.opt.is-right .opt-key { background: var(--navy); color: var(--yellow); }
.opt.is-wrong { opacity: 1; background: #F6E1E4; border-color: var(--maroon); color: var(--maroon); }
.opt.is-wrong .opt-key { border-color: var(--maroon); background: var(--maroon); color: var(--white); }
.quiz-feedback:not(:empty) { margin-top: 16px; }
.fb-title { font-family: var(--f-display); font-weight: 900; font-size: 1.125rem; }
.fb-title.ok { color: var(--blue); }
.fb-title.no { color: var(--maroon); }
.fb-text { margin-top: 4px; font-size: 0.9375rem; color: var(--ink); }
.quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.quiz-next { margin: 0; }
.quiz-quit {
  margin-left: auto; padding: 10px 4px;
  font: 500 0.875rem/1.2 var(--f-body); color: var(--ink);
  background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
@media (hover: hover) { .quiz-quit:hover { color: var(--navy); } }

.quiz-verdict { font-size: 1.0625rem; font-weight: 500; max-width: 30ch; }
.quiz-share { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.quiz-to-kit { margin-top: 10px; font-weight: 600; }
.btn-ghost-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
@media (hover: hover) { .btn-ghost-navy:hover { background: rgba(11, 31, 75, .06); } }
@media (min-width: 768px) {
  .quiz-card { padding: 30px 32px 32px; min-height: 480px; }
  .quiz-q { font-size: 1.3125rem; }
}
@media (min-width: 1024px) {
  .practice-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px; align-items: center; }
}

/* ---------- Student kit ---------- */
.kit { padding: var(--sec) 0; background: var(--cream) var(--grain); }
.kit-grid { display: grid; gap: 40px; }
.kit .h2 .serif { color: var(--blue); }
.kit-lead { margin-top: 16px; font-size: 1.0625rem; max-width: 40ch; }
.kit-form { margin-top: 24px; max-width: 520px; }
.field label .optional { font-weight: 400; color: var(--ink); }
.kit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.kit-privacy { margin-top: 14px; font-size: 0.8125rem; color: var(--ink); }
.kit-preview { position: relative; align-self: start; }
.kit-preview .tape { position: absolute; z-index: 2; top: -14px; left: 40%; width: 110px; transform: rotate(-3deg); }
.kit-preview .torn { background: var(--white); }
.kit-preview-label { font-size: 0.75rem; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.kit-msg { white-space: pre-wrap; font-size: 0.9375rem; line-height: 1.6; overflow-wrap: anywhere; }
@media (min-width: 1024px) { .kit-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }

/* Desktop hero: leave room for the tabs under the scales */
@media (min-width: 1024px) { .hero-form { padding-top: 212px; } }

.quiz { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Press feedback: instant on touch-down ---------- */
a, button, summary, .opt { touch-action: manipulation; }
.btn, .opt, .path, .aud-tab, .menu-btn { -webkit-tap-highlight-color: transparent; }
.btn:active, .opt:active, .path:active, .aud-tab:active, .menu-btn:active { transition-duration: 60ms; }
.opt:active:not(:disabled), .path:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.aud-tab:active, .menu-btn:active { transform: scale(.97); }
.faq summary:active { background: rgba(11, 31, 75, .04); }
.foot-links a { display: inline-block; padding: 10px 0; }
.quiz-to-kit { display: inline-block; padding: 10px 4px; }

/* ---------- Glass: dark tone over navy sections (main.js adds .is-dark) ---------- */
.site-header.is-dark { background: rgba(11, 31, 75, .76); border-bottom-color: rgba(255, 248, 236, .12); }
.site-header .brand, .site-header .menu-btn { transition: color .3s ease, background-color .3s ease, border-color .3s ease; }
.site-header.is-dark .brand { color: var(--cream); }
.site-header.is-dark .menu-btn { color: var(--cream); background: rgba(255, 248, 236, .1); border-color: rgba(255, 248, 236, .55); }
.site-header.is-dark .menu-icon, .site-header.is-dark .menu-icon::before, .site-header.is-dark .menu-icon::after { background: var(--cream); }
.site-header.is-dark .menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.site-header.is-dark .header-cta { box-shadow: 4px 4px 0 var(--lilac); }
@media (min-width: 1100px) {
  .site-header.is-dark .nav a:not(.btn) { color: var(--cream); }
}
/* The phone menu sheet sits below the glass, so it is solid (blur cannot nest inside the header's blur) */
@media (max-width: 1099px) { .nav { background: rgba(255, 248, 236, .98); } }

/* No blur support, or the reader asked for less transparency or more contrast: go solid */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .sticky-bar { background: rgba(255, 248, 236, .97); }
  .site-header.is-dark { background: rgba(11, 31, 75, .97); }
  .aud-switch { background: #1B3270; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .sticky-bar, .aud-switch { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header, .sticky-bar { background: var(--cream); }
  .site-header.is-dark { background: var(--navy); }
  .aud-switch { background: #1B3270; }
}
@media (prefers-contrast: more) {
  .site-header, .sticky-bar { background: var(--cream); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--navy); }
  .site-header.is-dark { background: var(--navy); border-color: var(--cream); }
}

/* ---------- Practice modes ---------- */
.quiz-start { align-content: start; padding-top: 4px; }
.quiz-start-sub { color: var(--ink); }
.modes { display: grid; gap: 10px; width: 100%; margin-top: 8px; }
.mode {
  display: grid; gap: 2px; text-align: left; width: 100%;
  padding: 14px 18px; color: var(--navy);
  background: var(--white); border: 2px solid var(--navy); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--navy); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.mode b { font-family: var(--f-display); font-weight: 900; font-size: 1.0625rem; }
.mode small { font: 400 0.875rem/1.4 var(--f-body); color: var(--ink); }
.mode.is-main { background: var(--yellow); }
.mode.is-main small { color: var(--navy); }
@media (hover: hover) { .mode:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--navy); } }
.mode:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); transition-duration: 60ms; }
.modes-label { margin-top: 14px; font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.section-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; min-height: 40px;
  font: 600 0.8125rem/1.2 var(--f-body); color: var(--navy); text-align: left;
  background: transparent; border: 2px solid var(--navy); border-radius: 999px; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.chip small { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--navy); color: var(--cream); font-size: 0.6875rem; }
@media (hover: hover) { .chip:hover { background: rgba(11, 31, 75, .06); } }
.chip:active { transform: scale(.97); transition-duration: 60ms; }
.quiz-count { flex: none; font-weight: 700; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.quiz-count[hidden], .quiz-dots[hidden], .quiz-bar[hidden], .quiz-timer[hidden], .quiz-time[hidden] { display: none; }
.quiz-bar { height: 6px; margin: -6px 0 14px; background: rgba(11, 31, 75, .1); border-radius: 999px; overflow: hidden; }
.quiz-bar span { display: block; height: 100%; background: var(--navy); border-radius: inherit; transform-origin: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.quiz-timer { margin: -6px 0 12px; font-size: 0.8125rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.quiz-timer::before { content: "Time "; font-weight: 400; }
.quiz-time { font-size: 0.9375rem; color: var(--ink); max-width: 34ch; }
@media (min-width: 560px) { .modes { grid-template-columns: 1fr 1fr; } }

/* ---------- Finish: line breaks ---------- */
h1, h2, h3, .band, .ticket-date, .quiz-q, .fb-title { text-wrap: balance; }
p, li, small, summary, .opt span:last-child { text-wrap: pretty; }

/* ---------- Scroll-driven moments (tied to the scroll position, no JS) ----------
   Uses translate/rotate/scale, which stack with the transforms used for hover and tilt.
   Browsers without scroll timelines keep the time-based reveals above. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* 1. The hero headline settles back and shrinks as you scroll past it */
    .hero-copy, .hero-extras {
      transform-origin: left top;
      animation: settle linear both;
      animation-timeline: view();
      animation-range: exit -5% exit 75%;
    }

    /* 2. The five section cards fan in one by one (phones swipe them instead) */
    @media (min-width: 768px) {
      .js .cards .card.reveal { opacity: 1; transform: rotate(var(--r, 0deg)); }
      .cards .card {
        animation: fan-in linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 28%;
      }
      .cards .c2, .cards .c4 { animation-range: entry 20% cover 38%; }
    }
    .c1 { --fx: -16%; --fr: -8deg; }
    .c2 { --fx: 16%; --fr: 8deg; }
    .c3 { --fx: -12%; --fr: -6deg; }
    .c4 { --fx: 12%; --fr: 6deg; }
    .c5 { --fx: 0%; --fr: -2deg; }

    /* 3. The finale ticket is handed over as it comes into view */
    .js .ticket-wrap.reveal { opacity: 1; transform: rotate(-3deg); }
    .ticket-wrap {
      animation: hand-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    /* 4. The closing line grows into place */
    .final h2 {
      animation: grow-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}
@keyframes settle { to { opacity: .15; scale: .9; translate: 0 -56px; } }
@keyframes fan-in {
  from { opacity: 0; translate: var(--fx, 0%) 64px; rotate: var(--fr, 0deg); scale: .94; }
  to { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; }
}
@keyframes hand-in {
  from { opacity: 0; translate: 24% 32px; rotate: 9deg; }
  to { opacity: 1; translate: 0 0; rotate: 0deg; }
}
@keyframes grow-in {
  from { opacity: 0; scale: .84; }
  to { opacity: 1; scale: 1; }
}

/* Phones: the four hero stickers sit in two neat rows */
@media (max-width: 480px) {
  .chips { gap: 12px 10px; }
  .chips .sticker { font-size: 0.8125rem; padding: 6px 12px; }
}

/* =====================================================================
   Round 6: Apple-level polish
   ===================================================================== */

/* Dark sections: crisper light-on-dark text on Macs and iPhones */
.on-navy, .hero, .how, .rewards, .final, .simple-main { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.card h3, .step h3, .gain h3, .path b, .mode b { letter-spacing: -0.015em; }

/* ---------- Five sections: a swipe gallery on phones ---------- */
.cards:focus-visible { outline-offset: 6px; border-radius: 18px; }
.cards-dots { display: none; }
@media (max-width: 767px) {
  .cards {
    display: flex; gap: 14px;
    margin: 32px calc(-1 * var(--gutter)) 0;
    padding: 10px var(--gutter) 22px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .cards::after { content: ""; flex: 0 0 2px; }
  .cards .card { flex: 0 0 min(84%, 340px); scroll-snap-align: start; }
  .js .cards .card.reveal { opacity: 1; transform: rotate(var(--r, 0deg)); transition: none; }
  .cards-dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
  .cards-dots button {
    width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
    display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
  }
  .cards-dots button::before {
    content: ""; display: block; width: 8px; height: 8px; border-radius: 999px;
    background: rgba(11, 31, 75, .25);
    transition: width .35s cubic-bezier(.25, 1, .5, 1), background-color .35s ease;
  }
  .cards-dots button.is-on::before { width: 22px; background: var(--navy); }
}

/* ---------- Big-number strip ---------- */
.stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px;
  padding-bottom: 48px; margin-bottom: 56px;
  border-bottom: 2px dashed rgba(255, 248, 236, .2);
}
.stats li { display: grid; align-content: start; gap: 10px; }
.stat-n {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(3.5rem, 17vw, 7rem); line-height: .86; letter-spacing: -0.05em;
  color: var(--yellow); text-shadow: 4px 4px 0 var(--lilac);
  font-variant-numeric: tabular-nums;
}
.stats span { font-size: 0.9375rem; line-height: 1.4; color: rgba(255, 248, 236, .86); max-width: 24ch; }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); gap: 0; padding-bottom: 64px; margin-bottom: 88px; }
  .stats li { padding: 0 28px; }
  .stats li:first-child { padding-left: 0; }
  .stats li + li { border-left: 2px dashed rgba(255, 248, 236, .2); }
  .stats span { font-size: 1rem; }
  .stat-n { text-shadow: 5px 5px 0 var(--lilac); }
}

/* ---------- Seal + ring motion ---------- */
.seal .v span, .quiz-score [data-q-score] { font-variant-numeric: tabular-nums; }

/* ---------- Countdown: odometer digits ---------- */
.cd b { display: flex; height: 1.1em; line-height: 1.1; overflow: hidden; }
.cd .digit { display: block; height: 1.1em; overflow: hidden; }
.cd .reel { display: flex; flex-direction: column; transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.cd .reel.is-snap { transition: none; }
.cd .reel span { display: block; height: 1.1em; text-align: center; }

/* ---------- For schools: bento ---------- */
.tile {
  position: relative; z-index: 1;
  background: var(--cream) var(--grain); color: var(--navy);
  border: 2px solid var(--navy); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--navy);
  padding: 26px 24px;
}
.tile-fees { display: grid; place-items: center; padding: 18px; }
.tile-fees .mini-seal { width: 136px; height: 136px; }
.tile-fees .mini-seal span { font-size: 0.625rem; }
.tile-fees .mini-seal strong { font-size: 0.9375rem; }
@media (min-width: 768px) {
  .tile-fees .mini-seal { width: 148px; height: 148px; }
  .tile-fees .mini-seal span { font-size: 0.6875rem; }
  .tile-fees .mini-seal strong { font-size: 1.0625rem; }
}
.tile-need h3 { font-family: var(--f-display); font-weight: 900; font-size: 1.3125rem; letter-spacing: -0.015em; line-height: 1.15; }
.need-list { margin-top: 10px; }
.need-list li { padding: 10px 0; font-size: 1.0625rem; font-weight: 500; border-bottom: 2px dashed var(--line); }
.need-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.need-list b { font-family: var(--f-display); font-weight: 900; color: var(--blue); margin-right: 4px; }
.js .tile.reveal.is-in, .js .register-panel.reveal.is-in { transform: none; }
@media (min-width: 560px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > .gain, .bento > .register-panel { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .bento > .gain { grid-column: auto; }
  .tile { padding: 30px 32px; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px 32px; }
  .bento > .gain.students { grid-column: 1 / 7; }
  .bento > .gain.school { grid-column: 7 / 13; }
  .bento > .register-panel { grid-column: 1 / 9; grid-row: 2 / 4; display: flex; flex-direction: column; justify-content: center; }
  .bento > .register-panel .btn { align-self: flex-start; }
  .bento > .tile-fees { grid-column: 9 / 13; grid-row: 2; }
  .bento > .tile-need { grid-column: 9 / 13; grid-row: 3; }
}

/* ---------- Practice: livelier answers and a score ring ---------- */
@keyframes spring-pop { 0% { scale: 1; } 25% { scale: .96; } 60% { scale: 1.03; } 82% { scale: .995; } 100% { scale: 1; } }
@keyframes shake { 0%, 100% { translate: 0; } 18% { translate: -7px; } 36% { translate: 6px; } 54% { translate: -4px; } 72% { translate: 2px; } }
.score-ring { position: relative; width: 208px; height: 208px; display: grid; place-items: center; filter: drop-shadow(5px 5px 0 var(--lilac)); }
.score-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.score-ring circle { fill: none; stroke-width: 16; }
.score-ring .ring-base { fill: var(--cream); stroke: var(--navy); stroke-width: 2; }
.score-ring .ring-track { stroke: rgba(11, 31, 75, .1); }
.score-ring .ring-fill { stroke: var(--navy); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1) .1s; }
.score-ring.is-full .ring-fill { stroke: var(--blue); }
.quiz-score { position: relative; display: grid; justify-items: center; line-height: 1; color: var(--navy); }
.quiz-score [data-q-score] { font-size: 4.5rem; letter-spacing: -0.04em; }
.quiz-score small { margin-top: 6px; font: 600 0.875rem/1.2 var(--f-body); letter-spacing: 0; color: var(--ink); }

/* ---------- Scroll-driven: steps, seal ---------- */
/* Steps not yet reached stay readable (WCAG AA); the dot and the line carry the progress */
@keyframes step-on { from { opacity: .6; scale: .97; } to { opacity: 1; scale: 1; } }
@keyframes dot-on { from { color: rgba(255, 248, 236, .5); scale: .86; } to { color: var(--navy); scale: 1; } }
@keyframes dot-fill { from { scale: 0; } to { scale: 1; } }
.step.is-final { --dot-on: var(--lilac); }
/* The line is revealed top to bottom (not stretched), so its dashes stay lined up with the track */
@keyframes line-draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes seal-turn { from { opacity: 0; rotate: -150deg; scale: .5; } to { opacity: 1; rotate: 0deg; scale: 1; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* The prize seal turns into place as it scrolls up */
    .js .seal.reveal { opacity: 1; transform: rotate(-8deg); transition: none; }
    .seal { animation: seal-turn linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }

    /* How it works: each step lights up and the line draws to the next one, tied to the scroll */
    .js .how .step.reveal { opacity: 1; transform: none; transition: none; }
    .js .how .step .dot { opacity: 1; transform: none; transition: none; }
    .js .how .step:not(:last-child)::before { transform: none; transition: none; }
    .how .step { view-timeline: --step block; }
    .how .step > div { transform-origin: left center; animation: step-on linear both; animation-timeline: --step; animation-range: entry 40% cover 42%; }
    /* The dot starts as a dim navy disc; its yellow fill grows out from the centre */
    .how .step .dot { position: relative; isolation: isolate; background: #22356A; }
    .how .step .dot::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--dot-on, var(--yellow)); }
    .how .step .dot { animation: dot-on linear both; animation-timeline: --step; animation-range: entry 40% cover 42%; }
    .how .step .dot::after { animation: dot-fill linear both; animation-timeline: --step; animation-range: entry 40% cover 42%; }
    .how .step:not(:last-child)::before { animation: line-draw linear both; animation-timeline: --step; animation-range: cover 40% cover 75%; }
    .how .step:not(:last-child)::after {
      content: ""; position: absolute; left: 22px; top: 62px; bottom: 4px; width: 16px; opacity: .22;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='40' viewBox='0 0 16 40'%3E%3Cpath d='M8 0 C 16 10, 0 30, 8 40' fill='none' stroke='%23FFF8EC' stroke-width='3' stroke-linecap='round' stroke-dasharray='6 7'/%3E%3C/svg%3E") repeat-y center top / 16px 40px;
    }
    .how .step:not(:last-child)::before { z-index: 1; }
    @media (min-width: 768px) { .how .step:not(:last-child)::after { left: 26px; top: 72px; } }

    /* Large screens: the steps stay pinned while you scroll through them */
    @media (min-width: 1024px) and (min-height: 700px) {
      .how { overflow: clip; padding-bottom: 0; }
      .how-pin { height: 300vh; view-timeline: --how block; view-timeline-inset: var(--header-h) 0px; }
      /* Sticks roughly centred (content is about 600px tall), so no empty band is left after it */
      .how-stage { position: sticky; top: calc(var(--header-h) + max(32px, (100vh - var(--header-h) - 600px) / 2)); }
      .how .step > div, .how .step .dot, .how .step .dot::after, .how .step:not(:last-child)::before { animation-timeline: --how; }
      .how .step:nth-child(1) > div, .how .step:nth-child(1) .dot, .how .step:nth-child(1) .dot::after { animation-range: contain 0% contain 6%; }
      .how .step:nth-child(1)::before { animation-range: contain 6% contain 26%; }
      .how .step:nth-child(2) > div, .how .step:nth-child(2) .dot, .how .step:nth-child(2) .dot::after { animation-range: contain 24% contain 32%; }
      .how .step:nth-child(2)::before { animation-range: contain 32% contain 52%; }
      .how .step:nth-child(3) > div, .how .step:nth-child(3) .dot, .how .step:nth-child(3) .dot::after { animation-range: contain 50% contain 58%; }
      .how .step:nth-child(3)::before { animation-range: contain 58% contain 78%; }
      .how .step:nth-child(4) > div, .how .step:nth-child(4) .dot, .how .step:nth-child(4) .dot::after { animation-range: contain 76% contain 86%; }
    }
  }
}

/* ---------- View transitions: quiz screens morph, pages cross-fade ---------- */
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-rise-in { from { opacity: 0; translate: 0 14px; } }
@keyframes vt-out-left { to { opacity: 0; translate: -36px 0; } }
@keyframes vt-in-right { from { opacity: 0; translate: 36px 0; } }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  .quiz-card { view-transition-name: quiz-card; }
  .quiz-start, .quiz-play, .quiz-end { view-transition-name: quiz-body; }
  ::view-transition-group(quiz-card), ::view-transition-group(quiz-body) { animation-duration: .42s; animation-timing-function: cubic-bezier(.25, 1, .5, 1); }
  ::view-transition-old(quiz-card) { display: none; }
  ::view-transition-new(quiz-card) { animation: none; width: 100%; height: 100%; }
  ::view-transition-old(quiz-body) { animation: vt-fade-out .16s ease-in both; }
  ::view-transition-new(quiz-body) { animation: vt-rise-in .36s cubic-bezier(.25, 1, .5, 1) .08s both; }
  html[data-vt="next"]::view-transition-old(quiz-body) { animation: vt-out-left .2s ease-in both; }
  html[data-vt="next"]::view-transition-new(quiz-body) { animation: vt-in-right .38s cubic-bezier(.25, 1, .5, 1) .06s both; }
  .opt.is-picked { animation: spring-pop .5s cubic-bezier(.3, .7, .4, 1); }
  .opt.is-picked.is-wrong { animation: shake .42s cubic-bezier(.36, .07, .19, .97); }
}

/* ---------- Scales: the beam tips and swings, then comes to rest level ----------
   One custom property drives it: the beam turns by --tilt, each pan turns back by the
   same amount so it keeps hanging straight down. At rest --tilt is 0 (level). */
@property --tilt { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.scales .sc-beam, .scales .sc-pan { transform-box: view-box; }
.scales .sc-beam { transform-origin: 108px 44px; rotate: var(--tilt); }
.scales .sc-pan { rotate: calc(var(--tilt) * -1); }
.scales .sc-pan-l { transform-origin: 36px 48px; }
.scales .sc-pan-r { transform-origin: 180px 48px; }
/* A damped swing, like a real balance settling */
@keyframes weigh {
  0% { --tilt: 9deg; }
  28% { --tilt: -5deg; }
  50% { --tilt: 2.6deg; }
  68% { --tilt: -1.2deg; }
  84% { --tilt: .45deg; }
  100% { --tilt: 0deg; }
}
@keyframes weigh-scroll {
  0% { --tilt: 10deg; }
  55% { --tilt: -2.5deg; }
  80% { --tilt: .8deg; }
  100% { --tilt: 0deg; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Phones: the scales start tipped and level out as they scroll into view */
    .js .hero-scales.mob-only.reveal { opacity: 1; transform: none; transition: none; }
    .js .hero-scales.mob-only.reveal, .js .hero-scales.mob-only.reveal.is-in {
      animation: weigh-scroll linear both; animation-timeline: view(); animation-range: entry 0% cover 50%;
    }
  }
}

/* =====================================================================
   Delhi page (/delhi)
   ===================================================================== */
.city-badge {
  display: inline-block; margin-bottom: 18px;
  padding: 6px 18px 7px;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(1.375rem, 6vw, 2rem);
  letter-spacing: -0.02em; line-height: 1; text-transform: uppercase;
  color: var(--navy); background: var(--lilac);
  border: 2px solid var(--navy); border-radius: 999px;
  box-shadow: 5px 5px 0 var(--yellow);
  transform: rotate(-4deg);
}
.form-card h2 + .sub { margin-top: -8px; }
/* On /delhi the student tab comes first, so the thumb starts on the left */
html[data-audience] .delhi .aud-thumb { transform: none; }
html[data-audience="school"] .delhi .aud-thumb { transform: translateX(100%); }
.field select {
  width: 100%; min-height: 46px; padding: 10px 40px 10px 12px;
  font: 400 1rem/1.3 var(--f-body); color: var(--navy);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230B1F4B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
  border: 2px solid var(--navy); border-radius: 10px;
  -webkit-appearance: none; appearance: none;
}
.field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 79, 216, .25); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8125rem; line-height: 1.45; color: var(--ink); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }
@media (min-width: 560px) { .mock-form .check { grid-column: 1 / -1; } }

/* Two ways to take part */
.ways { position: relative; overflow: hidden; overflow: clip; padding: var(--sec) 0; }
.ways .dots { top: 0; right: 0; width: 50%; height: 280px; --dot: var(--lilac); --dot-at: 100% 0%; }
.ways .h2 { position: relative; z-index: 1; }
.ways .h2 .serif { color: var(--blue); }
.ways-grid { position: relative; z-index: 1; display: grid; gap: 28px; margin-top: 40px; }
.way {
  position: relative; display: grid; align-content: start; justify-items: start; gap: 14px;
  padding: 34px 24px 28px;
  border: 2px solid var(--navy); border-radius: 18px;
  box-shadow: 8px 8px 0 var(--navy);
}
.way-self { background: var(--white); }
.way-school { background: var(--cream) var(--grain); }
.way-tag { position: absolute; top: -16px; left: 20px; font-size: 0.8125rem; }
.way h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.5rem, 6vw, 2rem); letter-spacing: -0.025em; line-height: 1.1; }
.way-steps { display: grid; gap: 12px; counter-reset: w; margin-bottom: 8px; }
.way-steps li { counter-increment: w; position: relative; padding-left: 40px; font-size: 1rem; line-height: 1.5; }
.way-steps li::before {
  content: counter(w); position: absolute; left: 0; top: 0;
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--yellow); font: 700 0.8125rem/1 var(--f-body);
}
@media (min-width: 768px) {
  .ways-grid { grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 56px; }
  .way { padding: 42px 36px 34px; }
  .way-steps li { font-size: 1.0625rem; }
}

/* The Delhi test: numbers, ticket and days counter */
.dl-test .h2 { margin-bottom: 48px; }
.dl-test .stats { margin-bottom: 48px; }
.dl-ticket-row { position: relative; z-index: 1; display: grid; gap: 40px; justify-items: center; align-items: center; }
.dl-countdown .cd { min-width: 96px; padding: 14px 14px 10px; }
.dl-countdown .cd b { font-size: 2.75rem; }
@media (min-width: 768px) { .dl-test .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .dl-ticket-row { grid-template-columns: 1.6fr 1fr; } }

/* Key dates: a line with four stops */
.dl-dates { padding: var(--sec) 0; }
.dl-dates .h2 .serif { color: var(--blue); }
.dates-line { position: relative; display: grid; gap: 0; margin-top: 40px; }
.dates-line li {
  position: relative; display: grid; gap: 4px; align-content: start;
  padding: 0 0 30px 44px;
}
.dates-line li::before {
  content: ""; position: absolute; left: 6px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--navy); z-index: 1;
}
.dates-line li.is-final::before { background: var(--lilac); }
.dates-line li:not(:last-child)::after {
  content: ""; position: absolute; left: 14px; top: 22px; bottom: 0;
  border-left: 2px dashed var(--navy); opacity: .35;
}
.d-when { font-family: var(--f-display); font-weight: 900; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.1; color: var(--blue); }
.dates-line b { font-weight: 600; font-size: 1.0625rem; }
.d-what { font-size: 0.9375rem; color: var(--ink); }
@media (min-width: 900px) {
  .dates-line { grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
  .dates-line li { padding: 40px 24px 0 0; }
  .dates-line li::before { left: 0; top: 0; }
  .dates-line li:not(:last-child)::after { left: 22px; right: 0; top: 10px; bottom: auto; border-left: 0; border-top: 2px dashed var(--navy); }
  .d-when { font-size: 1.75rem; }
}

/* Practice band */
.dl-practice { background: var(--lilac) var(--grain); padding: 48px 0; }
.dl-practice-inner { display: grid; gap: 18px; justify-items: start; }
.dl-practice h2 { font-size: clamp(1.625rem, 6vw, 2.25rem); letter-spacing: -0.025em; }
.dl-practice h2 .serif { color: var(--navy); }
.dl-practice p { margin-top: 6px; font-size: 1.0625rem; }
@media (min-width: 768px) {
  .dl-practice-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
  .dl-practice { padding: 56px 0; }
}

/* Home: slim notice linking to the Delhi edition */
.notice {
  display: block; padding: 10px var(--gutter);
  background: var(--yellow); color: var(--navy); text-decoration: none; text-align: center;
  font-size: 0.875rem; font-weight: 500; line-height: 1.4;
  border-bottom: 2px solid var(--navy);
}
.notice b { font-family: var(--f-display); font-weight: 900; letter-spacing: -0.01em; }
.notice span { display: inline-block; margin-left: 4px; font-weight: 700; transition: transform .2s ease; }
@media (hover: hover) { .notice:hover span { transform: translateX(3px); } }
