/* SparkX – National AI Challenge 2026
   Minimal, AI-themed layer on the STEMLearn.AI brand: navy ink, teal "signal" accent, coral for action.
   Mulish (display), Nunito Sans (body), JetBrains Mono (technical labels). */

:root {
  --night: #070A24;
  --night-2: #0D1238;
  --ink: #0B0D2E;
  --text: #33364F;
  --muted: #64688A;
  --line: #E4E7F0;
  --soft: #F5F7FB;
  --bg: #FFFFFF;
  --teal: #0EB9A2;
  --teal-ink: #08806F;
  --cyan: #05C9F5;
  --coral: #F84960;
  --coral-600: #D42B43;   /* AA with white text */
  --yellow: #FAC447;
  --on-dark: #E8EAF6;
  --on-dark-muted: #9CA1C7;
  --line-dark: rgba(255, 255, 255, .12);

  --header-h: 68px;
  --radius: 14px;
  --font-head: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--font-mono); }
.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-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Sections */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section.about { padding-bottom: clamp(40px, 4.5vw, 56px); }
.section-soft { background: var(--soft); }
.section-dark {
  overflow: hidden;
  background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 22px 22px, var(--night);
  color: var(--on-dark);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: var(--on-dark-muted); }

.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
/* Section labels: numbered pill badge, one colour per section */
.sec-index {
  --b: var(--teal); --b-ink: #066B5E; --b-tint: rgba(14, 185, 162, .12);
  display: inline-block; margin: 0 0 18px; padding: 5px 16px 5px 5px;
  border-radius: 999px; background: var(--b-tint); border: 1px solid color-mix(in srgb, var(--b) 35%, transparent);
  font: 800 14.5px/1.2 var(--font-head); letter-spacing: .01em; color: var(--b-ink);
}
.sec-index > span:first-child {
  display: inline-grid; vertical-align: middle; margin-right: 10px; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 999px;
  background: linear-gradient(135deg, var(--b), color-mix(in srgb, var(--b) 60%, #fff));
  color: #fff; font: 700 13px/1 var(--font-mono); box-shadow: 0 4px 12px -4px var(--b);
}
#structure .sec-index, #highlights .sec-index { --b: var(--cyan); --b-ink: #04607A; --b-tint: rgba(5, 201, 245, .12); }
#tracks .sec-index, #rules .sec-index { --b: var(--coral); --b-ink: #A81C33; --b-tint: rgba(248, 73, 96, .1); }
#timeline .sec-index, #faqs .sec-index { --b: #E0A21A; --b-ink: #6E4A00; --b-tint: rgba(250, 196, 71, .2); }
.section-dark .sec-index { --b: var(--yellow); --b-ink: #FCE3A4; --b-tint: rgba(250, 196, 71, .12); }
.section-dark .sec-index > span:first-child { color: #2A1B00; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); margin-top: 20px; }
.kicker { font: 500 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 22px; }
.kicker-dark { color: var(--teal); }
.mono-label { font: 500 12px/1.2 var(--font-mono) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) !important; margin-bottom: 14px !important; }
.fineprint { font-size: 14px; color: var(--muted); margin-top: 28px; }
.fineprint a, .text-link { color: var(--teal-ink); font-weight: 700; }
.text-link { text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font: 800 15px/1.2 var(--font-head); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-primary { background: var(--coral-600); color: #fff; }
.btn-primary:hover { background: #B8213A; }
.btn-ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { width: 160px; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 8px; font: 700 14.5px/1.2 var(--font-head); color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav ul a:hover { background: var(--soft); }
.site-nav ul a.is-active { color: var(--teal-ink); }
.nav-cta { min-height: 40px; padding: 8px 16px; }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .menu-open .nav-toggle-bar { background: transparent; }
  .menu-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(11, 13, 46, .12);
    visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .menu-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 14px 2px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { min-height: 48px; }
}

/* ---------- Hero: full-bleed photo in brand-blue duotone, centred content ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: #262A6E; color: #fff;
  padding: clamp(72px, 10vw, 128px) 0 0; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(1) contrast(1.05); }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(38, 42, 110, .82) 0%, rgba(38, 42, 110, .86) 60%, rgba(20, 23, 74, .97) 100%);
}
.hero-shade::after { content: ""; position: absolute; inset: 0; background: rgba(43, 48, 130, .55); mix-blend-mode: multiply; }
.hero-center { display: flex; flex-direction: column; align-items: center; max-width: 1000px; }
.hero h1 { color: #fff; margin: 0; }
.hero-logo { width: min(620px, 80vw); height: auto; margin: 0 auto; }
.h1-sub { display: block; margin-top: clamp(28px, 4vw, 48px); font-size: clamp(32px, 4.6vw, 64px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: #fff; }
.hl-coral { color: var(--coral); }
.hero-headline { margin: clamp(16px, 2vw, 24px) 0 clamp(28px, 3vw, 40px); font: 800 clamp(22px, 2.6vw, 36px)/1.25 var(--font-head); color: #fff; letter-spacing: -0.015em; text-wrap: balance; }
.hero-paths { width: 100%; max-width: 760px; }
/* Layers: a spark travelling round the yellow border (::before), the dark face (::after), a passing shine, the label. */
.hp-team { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 16px 14px 32px; border-radius: 999px; color: #fff; font: 800 clamp(19px, 2vw, 23px)/1.25 var(--font-head); letter-spacing: -.005em; text-decoration: none; animation: hp-team-in .8s cubic-bezier(.3, 1.4, .5, 1) .2s backwards, hp-glow 2.6s ease-in-out 1s infinite; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.hp-team::before { content: ""; position: absolute; z-index: -2; top: 50%; left: 50%; width: 150%; aspect-ratio: 1; background: conic-gradient(var(--yellow) 0 60%, #FFE9A8 70%, #fff 78%, #FFE9A8 86%, var(--yellow) 96%); transform: translate(-50%, -50%); animation: hp-spin 3.6s linear infinite; }
.hp-team::after { content: ""; position: absolute; z-index: -1; inset: 2px; border-radius: 999px; background: linear-gradient(135deg, #1B1F63, #12153F); }
.hp-team:hover { transform: translateY(-3px) scale(1.03); }
.hp-team:active { transform: scale(.98); }
.hp-team:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 999px; }
.hp-shine { position: absolute; z-index: -1; top: 0; bottom: 0; left: -35%; width: 25%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-20deg); animation: hp-shine 4.5s ease-in-out 1.2s infinite; }
.hp-arrow { display: flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--ink); transition: background-color .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.hp-arrow svg { animation: hp-nudge 1.6s ease-in-out infinite; }
.hp-team:hover .hp-arrow { background: #fff; transform: scale(1.08); }
@keyframes hp-team-in { from { transform: translateY(14px) scale(.92); } }
@keyframes hp-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes hp-shine { 0%, 55% { left: -35%; } 85%, 100% { left: 115%; } }
@keyframes hp-nudge { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) {
  .hp-team, .hp-team::before, .hp-shine, .hp-arrow svg { animation: none; }
  .hp-team::before { transform: translate(-50%, -50%); }
  .hp-shine { display: none; }
}
.hp-label { font: 700 15px/1.3 var(--font-head); color: #E3E5F8; margin-bottom: 12px; }
.hp-btns { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; align-items: stretch; }
.hp-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 20px; border-radius: 16px; text-decoration: none; text-align: left; transition: transform .2s, box-shadow .2s; }
.hp-btn:hover { transform: translateY(-3px); }
.hp-tag { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.hp-main { font: 900 clamp(18px, 1.8vw, 22px)/1.2 var(--font-head); }
.hp-sub { font-size: 14px; line-height: 1.4; }
.hp-olympiad { background: rgba(7, 10, 36, .35); border: 2px solid var(--yellow); color: #fff; backdrop-filter: blur(4px); box-shadow: 0 0 0 0 rgba(250, 196, 71, 0), 0 0 24px -6px rgba(250, 196, 71, .6); animation: hp-glow 2.6s ease-in-out infinite; }
.hp-olympiad .hp-main span { color: var(--yellow); }
.hp-olympiad .hp-sub { color: #E3E5F8; }
@keyframes hp-glow { 0%, 100% { box-shadow: 0 0 24px -8px rgba(250, 196, 71, .5); } 50% { box-shadow: 0 0 34px -4px rgba(250, 196, 71, .8); } }
.hp-olympiad .hp-tag { color: var(--yellow); font-weight: 600; }
.hp-zonal { background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(4px); }
.hp-zonal .hp-tag { color: #8FF0E2; }
.hp-zonal .hp-sub { color: #C9CCF0; }
.hp-compare { display: inline-block; margin-top: 14px; color: #fff; font: 700 14px/1.4 var(--font-head); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .hp-btns { grid-template-columns: 1fr; } }
.hero-lede { font-size: clamp(16px, 1.6vw, 21px); color: #fff; max-width: 46em; margin: clamp(28px, 3vw, 40px) auto 8px; }
.hero-lede span { opacity: .6; margin: 0 6px; }
.hero-tagline { font-size: 16px; color: #C9CCF0; margin-bottom: 0; }
.hero-note { margin-top: 14px; font-size: 13px; color: #B9BDE8; }
.hero .spec { text-align: left; border-top-color: rgba(255, 255, 255, .18); }
.hero .spec dt { color: #B9BDE8; }
.spec { display: grid; grid-template-columns: repeat(6, 1fr); margin: clamp(56px, 7vw, 96px) 0 0; border-top: 1px solid var(--line-dark); }
.spec > div { padding: 22px 16px 28px; border-left: 1px solid var(--line-dark); }
.spec > div:first-child { border-left: 0; padding-left: 0; }
.spec dt { font: 500 11.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 10px; }
.spec dd { margin: 0; font: 800 17px/1.3 var(--font-head); color: #fff; }

@media (max-width: 980px) {
  .spec { grid-template-columns: repeat(3, 1fr); }
  .spec > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .spec > div:nth-child(n+4) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 560px) {
  .spec { grid-template-columns: repeat(2, 1fr); }
  .spec > div { padding: 16px 12px 18px; }
  .spec > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .spec > div:nth-child(4) { border-left: 1px solid var(--line-dark); padding-left: 12px; }
  .spec > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .spec dd { font-size: 15px; }
}

/* ---------- About ---------- */
.about {
  background:
    radial-gradient(520px 380px at 8% 6%, rgba(14, 185, 162, .10), transparent 70%),
    radial-gradient(480px 360px at 96% 30%, rgba(248, 73, 96, .08), transparent 70%),
    radial-gradient(560px 420px at 60% 100%, rgba(250, 196, 71, .12), transparent 70%),
    #fff;
}
.about-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.about h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; }
.grad-text { background: linear-gradient(90deg, #0A8F7E 0%, #0583B0 55%, #C42840 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-lead { margin: 20px 0 14px; font: 600 clamp(17px, 1.45vw, 19px)/1.6 var(--font-head); color: var(--ink); letter-spacing: 0; max-width: 58ch; }
.about-body { font-size: 16.5px; line-height: 1.75; color: var(--text); max-width: 58ch; }
.about-body strong { color: var(--ink); }
.chip { font-weight: 700; text-decoration: none; padding: 0 .1em; background-repeat: no-repeat; background-size: 100% 38%; background-position: 0 88%; transition: background-size .2s; }
.chip:hover { background-size: 100% 100%; }

.chip-teal { background-image: linear-gradient(rgba(14, 185, 162, .22), rgba(14, 185, 162, .22)); color: #066B5E; }
.chip-cyan { background-image: linear-gradient(rgba(5, 201, 245, .22), rgba(5, 201, 245, .22)); color: #04607A; }
.chip-coral { background-image: linear-gradient(rgba(248, 73, 96, .18), rgba(248, 73, 96, .18)); color: #A81C33; }
.chip-yellow { background-image: linear-gradient(rgba(250, 196, 71, .4), rgba(250, 196, 71, .4)); color: #6E4A00; }

/* Perceive → Decide → Act card */
.pipeline-card {
  --c: var(--teal);
  position: relative; padding: clamp(24px, 3vw, 36px); border-radius: 22px; color: #D7DAF1;
  background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 20px 20px, linear-gradient(160deg, #10144A 0%, #070A24 100%);
  box-shadow: 0 30px 60px rgba(11, 13, 46, .22);
}
.pipeline-card[data-active="1"] { --c: var(--cyan); }
.pipeline-card[data-active="2"] { --c: var(--coral); }
.pc-label { font: 800 clamp(19px, 1.9vw, 23px)/1.25 var(--font-head); color: #fff; letter-spacing: -0.01em; margin-bottom: 8px; }
.pc-label .sx-x { color: var(--teal); }
.pc-intro { font-size: 15.5px; color: #B9BDE0; margin-bottom: 26px; }
.pc-steps { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 22px; }
.pc-step {
  --sc: var(--teal); --g1: #3FE3CB; --g2: #0A8F7E;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px; background: none; border: 0; cursor: pointer; color: #C3C7E4;
}
.pc-step[data-step="1"] { --sc: var(--cyan); --g1: #5DE0FF; --g2: #2F6BFF; }
.pc-step[data-step="2"] { --sc: var(--coral); --g1: #FF8A5B; --g2: #E0284A; }
.pc-icon {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(140deg, var(--g1), var(--g2)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px -10px var(--sc);
  opacity: .6; filter: saturate(.75); transition: opacity .3s, filter .3s, transform .3s, box-shadow .3s;
}
.pc-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pc-icon .ic-fill { fill: rgba(255, 255, 255, .22); stroke: none; }
.pc-icon .ic-solid { fill: #fff; stroke: none; }
.pc-num { position: absolute; right: -7px; top: -7px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--g2); font: 900 12px/1 var(--font-head); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.pc-name { font: 800 16px/1 var(--font-head); letter-spacing: .01em; }
.pc-step:hover .pc-icon, .pc-step.is-done .pc-icon { opacity: .9; filter: none; }
.pc-step[aria-selected="true"] { color: #fff; }
.pc-step[aria-selected="true"] .pc-icon { opacity: 1; filter: none; transform: translateY(-4px) scale(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 4px color-mix(in srgb, var(--sc) 30%, transparent), 0 14px 32px -8px var(--sc); }
.pc-arrow { flex: 1; min-width: 16px; height: 2px; margin-top: 31px; position: relative; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.pc-arrow i { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--c), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: pc-flow 1.6s linear infinite; }
@keyframes pc-flow { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.pc-arrow::after { content: ""; position: absolute; right: 0; top: -4px; border: 5px solid transparent; border-left-color: rgba(255, 255, 255, .45); border-right: 0; }
.pc-panel { min-height: 118px; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid var(--c); transition: border-color .3s; }
.pc-title { font: 800 19px/1.3 var(--font-head); color: #fff; margin-bottom: 6px; }
.pc-text { font-size: 16px; line-height: 1.6; color: #C9CCE6; }
.pc-progress { height: 3px; margin-top: 16px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pc-progress span { display: block; height: 100%; width: 0; background: var(--c); }

/* Challenge areas */
.areas { margin-top: clamp(56px, 7vw, 88px); }
.areas-label { display: flex; align-items: center; gap: 10px; font: 800 18px/1.3 var(--font-head); color: var(--ink); margin-bottom: 18px; }
.areas-label::before, .gallery-hint::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: linear-gradient(var(--teal), var(--cyan)); }
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area {
  --c: var(--teal); --tint: rgba(14, 185, 162, .12); --ink-c: #066B5E;
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 22px 20px;
  border-radius: 18px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--text);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.area-cyan { --c: var(--cyan); --tint: rgba(5, 201, 245, .14); --ink-c: #04607A; }
.area-coral { --c: var(--coral); --tint: rgba(248, 73, 96, .11); --ink-c: #A81C33; }
.area-yellow { --c: var(--yellow); --tint: rgba(250, 196, 71, .25); --ink-c: #6E4A00; }
.area::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1.5px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); }
.area:hover, .area:focus-visible { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 18px 36px -12px color-mix(in srgb, var(--c) 55%, transparent); }
.area-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--ink-c); margin-bottom: 16px; }
.area-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.area-title { font: 800 19px/1.25 var(--font-head); color: var(--ink); margin-bottom: 8px; }
.area-track { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-c); margin-bottom: 8px; }
.area-track b { display: inline-block; padding: 1px 6px; margin-right: 4px; border-radius: 5px; background: var(--tint); font-weight: 600; }
.area-theme { font-size: 15px; line-height: 1.5; color: var(--muted); margin-bottom: 14px; }
.area-go { margin-top: auto; font: 800 14px/1 var(--font-head); color: var(--ink-c); }

/* For Students / For Schools */
.audience { --tone: rgba(248, 73, 96, .07); --tone-c: var(--coral-600); margin-top: clamp(56px, 7vw, 88px); padding: clamp(24px, 3.5vw, 40px); border-radius: 26px; background: var(--tone); transition: background-color .35s; }
.audience:has(.audience-panel[data-audience="schools"]) { --tone: rgba(14, 185, 162, .09); --tone-c: var(--teal-ink); }
.audience-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.audience-head h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(11, 13, 46, .06); }
.tab { min-height: 44px; padding: 8px 22px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 800 15px/1 var(--font-head); color: var(--muted); transition: background-color .25s, color .25s; }
.tab:hover { color: var(--ink); }
.tab-students[aria-selected="true"] { background: var(--coral-600); color: #fff; }
.tab-schools[aria-selected="true"] { background: var(--teal-ink); color: #fff; }
.audience-panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 36px); align-items: center; }
.audience-panel.is-swapping { animation: swap .45s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.audience-media { margin: 0; }
.audience-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -18px rgba(11, 13, 46, .35); }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(11, 13, 46, .05); transition: transform .2s, box-shadow .2s; }
.benefit:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(11, 13, 46, .25); }
.benefit-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tone); color: var(--tone-c); }
.benefit-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.benefit-body { font-size: 15px; line-height: 1.55; color: var(--text); }
.benefit-body strong { display: block; font: 800 16.5px/1.3 var(--font-head); color: var(--ink); margin-bottom: 3px; }
.tag-selected { display: inline-block; margin-top: 6px; padding: 2px 7px; border-radius: 5px; background: #FFF1CC; color: #6E4A00; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }

.about-close {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center;
  margin: clamp(24px, 3vw, 36px) auto 0; padding: 18px 26px; max-width: 860px; border-radius: 999px;
  background: var(--ink); color: #D7DAF1; font-size: 17px;
}
.about-close strong { color: #fff; }
.ac-spark { color: var(--yellow); font-size: 20px; }

.track.is-flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 100% { box-shadow: inset 0 0 0 0 transparent; } 20%, 60% { box-shadow: inset 0 0 0 3px var(--teal); background: rgba(14, 185, 162, .06); } }
.track-generative.is-flash { animation-name: flash-c; }
@keyframes flash-c { 0%, 100% { box-shadow: inset 0 0 0 0 transparent; } 20%, 60% { box-shadow: inset 0 0 0 3px var(--coral); background: rgba(248, 73, 96, .05); } }

@media (max-width: 1000px) {
  .about-top { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .audience-panel { grid-template-columns: 1fr; }
  .audience-img { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .benefits { grid-template-columns: 1fr; }
  .about-body { font-size: 17px; }
  .about-close { border-radius: 18px; font-size: 16px; }
  .pc-icon { width: 54px; height: 54px; border-radius: 15px; } .pc-icon svg { width: 27px; height: 27px; } .pc-arrow { margin-top: 26px; } .pc-name { font-size: 14.5px; }
}
@media (max-width: 480px) { .area-grid { grid-template-columns: 1fr; } }
/* ---------- Shared colour tokens for cards ---------- */
.c-teal, .tc-teal, .sc-teal { --c: var(--teal); --tint: rgba(14, 185, 162, .13); --ink-c: #066B5E; }
.c-cyan, .tc-cyan, .sc-cyan { --c: var(--cyan); --tint: rgba(5, 201, 245, .14); --ink-c: #04607A; }
.c-coral, .tc-coral, .sc-coral { --c: var(--coral); --tint: rgba(248, 73, 96, .11); --ink-c: #A81C33; }
.c-yellow, .tc-yellow, .sc-yellow { --c: var(--yellow); --tint: rgba(250, 196, 71, .25); --ink-c: #6E4A00; }
.sc-icon, .track-icon, .rule-icon { display: grid; place-items: center; flex: none; background: var(--tint); color: var(--ink-c); }
.sc-icon svg, .track-icon svg, .rule-icon svg, .track-type svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Competition Structure ---------- */
.structure-sec { background: var(--soft); }
.struct-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sc { position: relative; display: flex; flex-direction: column; padding: 26px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.sc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.sc:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px color-mix(in srgb, var(--c) 60%, transparent); }
.sc-icon { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px; }
.sc-icon svg { width: 23px; height: 23px; }
.sc-label { font: 600 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-c); margin-bottom: 10px; }
.sc-big { font: 900 clamp(30px, 2.8vw, 40px)/1.05 var(--font-head); color: var(--ink); letter-spacing: -0.04em; margin-bottom: 16px; }
.sc-note { margin-top: auto; font-size: 15px; line-height: 1.55; color: var(--text); }
.sc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.sc-split li { padding: 10px 12px; border-radius: 12px; background: var(--tint); font-size: 14px; color: var(--ink-c); }
.sc-split b { display: block; font: 800 16px/1.2 var(--font-head); color: var(--ink); }
.sc-people { display: flex; gap: 8px; margin-bottom: 18px; }
.sc-people span { width: 26px; height: 32px; border-radius: 13px 13px 6px 6px; background: var(--c); position: relative; opacity: .9; }
.sc-people span::before { content: ""; position: absolute; left: 50%; top: -14px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--c); }
.sc-people { padding-top: 14px; }
.sc-meter { height: 10px; border-radius: 99px; background: var(--tint); margin-bottom: 18px; overflow: hidden; }
.sc-meter span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #FDE7A8, var(--yellow)); border-radius: inherit; }

.grade-check { --gc: var(--teal); margin-top: 24px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px 40px; align-items: start; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: linear-gradient(135deg, #10144A, #070A24); color: #D7DAF1; }
.grade-check[data-cat="Senior"] { --gc: var(--cyan); }
.gc-head h3 { color: #fff; font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 8px; }
.gc-head p { color: #B9BDE0; font-size: 16px; }
.gc-grades { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1; }
.gc-btn { min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); color: #fff; font: 800 14.5px/1 var(--font-head); cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; }
.gc-btn:hover { border-color: rgba(255, 255, 255, .5); transform: translateY(-1px); }
.gc-jr[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #04221E; }
.gc-sr[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: #032532; }
.gc-result { grid-column: 2; grid-row: 1 / span 2; }
.gc-verdict { font: 700 19px/1.4 var(--font-head); color: #fff; margin-bottom: 14px; }
.gc-verdict strong { color: var(--gc); }
.gc-verdict .mono { font-size: 13px; color: #9CA1C7; font-weight: 400; }
.gc-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.gc-track { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); transition: transform .2s; }
.gc-track:hover { transform: translateY(-2px); }
.gc-track .track-icon { width: 40px; height: 40px; border-radius: 12px; }
.gc-track .track-icon svg { width: 20px; height: 20px; }
.gc-code { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-c); margin-bottom: 2px; }
.gc-track strong { font: 800 15px/1.3 var(--font-head); }
.gc-all { padding: 0; border: 0; background: none; color: var(--gc); font: 800 15px/1.4 var(--font-head); cursor: pointer; }
.gc-all:hover { text-decoration: underline; }
@media (max-width: 1000px) {
  .struct-cards { grid-template-columns: 1fr 1fr; }
  .grade-check { grid-template-columns: 1fr; }
  .gc-result { grid-column: 1; grid-row: auto; }
}
@media (max-width: 560px) {
  .struct-cards { grid-template-columns: 1fr; }
  .gc-tracks { grid-template-columns: 1fr; }
  .gc-btn { flex: 1 0 calc(25% - 8px); padding: 8px 6px; font-size: 13.5px; }
}

/* ---------- Tracks & Themes: 2 x 2 grid ---------- */
#tracks { background: #fff; }
.ink-physical { color: var(--teal-ink); }
.ink-generative { color: var(--coral-600); }
.mx { display: grid; grid-template-columns: 150px repeat(2, minmax(0, 1fr)); gap: 14px; }
.mx-physical { --k: var(--teal); --k-ink: #066B5E; --k-tint: rgba(14, 185, 162, .09); }
.mx-generative { --k: var(--coral); --k-ink: #B11F36; --k-tint: rgba(248, 73, 96, .07); }

/* Column headers: the two tracks */
.mx-col { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--k); color: #fff; }
.mx-generative.mx-col { background: linear-gradient(90deg, var(--coral-600), #EE5A4C); }
.mx-physical.mx-col { background: linear-gradient(90deg, #0A8F7E, var(--teal)); }
.mx-col-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .2); }
.mx-col-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mx-col-name { display: block; font: 900 clamp(22px, 2.2vw, 28px)/1.1 var(--font-head); letter-spacing: -0.02em; }
.mx-col-focus { display: block; margin-top: 4px; font: 500 13px/1.3 var(--font-mono); opacity: .9; }

/* Row headers: the two categories */
.mx-row { display: flex; flex-direction: column; justify-content: flex-start; padding: 20px 4px; border-top: 3px solid var(--ink); }
.mx-row-name { font: 900 26px/1.1 var(--font-head); color: var(--ink); letter-spacing: -0.02em; }
.mx-row-grades { margin-top: 4px; font: 500 13px/1.3 var(--font-mono); color: var(--muted); }

/* Problem statement cells */
.mx-cell { position: relative; padding: 24px 26px 26px; border-radius: 18px; background: var(--k-tint); border: 1px solid color-mix(in srgb, var(--k) 25%, transparent); outline: none; transition: transform .2s, box-shadow .2s, background-color .2s; }
.mx-cell:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 18px 36px -20px var(--k); }
.mx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.mx-code { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 8px; border-radius: 7px; background: var(--k); color: #fff; font: 700 13px/1 var(--font-mono); }
.mx-generative .mx-code { background: var(--coral-600); }
.mx-physical .mx-code { background: var(--teal-ink); }
.mx-where { display: none; font: 800 13px/1 var(--font-head); color: var(--k-ink); }
.mx-theme { font: 900 13px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--k-ink); }
.mx-cell h4 { font: 800 clamp(20px, 1.9vw, 24px)/1.25 var(--font-head); color: var(--ink); letter-spacing: -0.02em; margin: 0 0 10px; }
.mx-cell p:last-child { font-size: 16.5px; line-height: 1.65; color: var(--text); margin: 0; }
.mx-cell.is-flash { animation: mx-flash 1.6s ease; }
@keyframes mx-flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 20%, 60% { box-shadow: 0 0 0 4px var(--k); background: #fff; } }

@media (max-width: 860px) {
  .mx { grid-template-columns: 1fr; gap: 12px; }
  .mx-corner, .mx-col { display: none; }
  .mx-row { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 10px; padding: 18px 0 4px; margin-top: 8px; }
  .mx-row:first-of-type { margin-top: 0; }
  .mx-where { display: inline; }
  .mx-cell { border-left: 5px solid var(--k); }
}
/* ---------- Competition Journey: two pathways ---------- */
.paths { display: grid; grid-template-columns: minmax(0, 1.25fr) 90px minmax(0, 1fr); grid-template-rows: auto auto; row-gap: 20px; align-items: stretch; }
.path { --c: var(--teal); grid-column: 1; padding: 26px 28px; border-radius: 20px; border: 1px solid var(--line-dark); border-left: 4px solid var(--c); background: rgba(255, 255, 255, .03); outline: none; transition: background-color .25s, box-shadow .25s, transform .25s; }
.path-a { grid-row: 1; }
.path-b { --c: var(--yellow); grid-row: 2; margin-top: 10px; }
.path:hover, .path:focus-visible { background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px var(--c), 0 20px 50px -20px var(--c); transform: translateX(4px); }
.path-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.path-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c); color: #070A24; font: 900 20px/1 var(--font-head); }
.path-tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin-bottom: 4px; }
.path h3 { font-size: 23px; }
.path-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line-dark); color: #B9BDE0; font-size: 15.5px; line-height: 1.55; }
.ps-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--c); color: var(--c); font: 800 13px/1 var(--font-head); margin-top: 1px; }
.path-steps strong { display: block; color: #fff; font: 700 16.5px/1.4 var(--font-head); }
.path-out { margin-top: 12px; font: 800 15px/1.4 var(--font-head); color: var(--c); }
.path-out a { color: #fff; font-weight: 700; margin-left: 6px; }

/* Registration buttons inside each pathway */
.path-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 18px; padding: 14px 18px; border-radius: 14px; text-decoration: none;
  font: 800 17px/1.2 var(--font-head); transition: transform .2s, box-shadow .2s, filter .2s;
}
.path-cta small { display: block; margin-top: 4px; font: 500 12px/1.3 var(--font-mono); opacity: .8; word-break: break-all; }
.path-cta > span:last-child { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .22); font-size: 18px; }
.path-cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.path-cta-a { background: var(--teal); color: #032420; box-shadow: 0 12px 30px -12px rgba(14, 185, 162, .7); }
.path-cta-b { background: linear-gradient(90deg, #FAC447, #F7A93B); color: #2A1B00; box-shadow: 0 14px 34px -12px rgba(250, 196, 71, .8); animation: cta-pulse 2.6s ease-in-out infinite; }
.path-cta-b > span:last-child { background: rgba(42, 27, 0, .12); }
@keyframes cta-pulse { 0%, 100% { box-shadow: 0 14px 34px -12px rgba(250, 196, 71, .8); } 50% { box-shadow: 0 14px 44px -6px rgba(250, 196, 71, 1); } }

/* Olympiad pathway: highlighted fast track */
.path-b {
  position: relative; border: 1.5px solid rgba(250, 196, 71, .55); border-left: 4px solid var(--yellow);
  background: radial-gradient(120% 90% at 100% 0%, rgba(250, 196, 71, .16), transparent 60%), rgba(255, 255, 255, .04);
  box-shadow: 0 0 0 1px rgba(250, 196, 71, .15), 0 24px 60px -24px rgba(250, 196, 71, .55);
}
.path-ribbon {
  position: absolute; top: -13px; left: 24px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; background: var(--yellow); color: #2A1B00;
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 6px 16px -6px rgba(250, 196, 71, .9);
}
.path-b .path-head { padding-top: 6px; }
.tf-logo { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; padding-left: 14px; border-left: 1px solid var(--line-dark); }
.tf-logo img { width: 58px; height: auto; }
.tf-logo span { font-size: 11px; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; color: #B9BDE0; }
@media (max-width: 560px) { .tf-logo span { display: none; } .tf-logo { padding-left: 10px; } .tf-logo img { width: 46px; } }
.glf-logo { width: 132px; height: auto; margin: -8px 0 -8px auto; flex: none; }
.path-intro { font-size: 16px; line-height: 1.6; color: #D7DAF1; margin-bottom: 14px; }
.path-intro strong { color: var(--yellow); }
.olympiad-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.olympiad-facts li { padding: 10px 12px; border-radius: 12px; background: rgba(250, 196, 71, .1); border: 1px solid rgba(250, 196, 71, .25); font: 700 14.5px/1.3 var(--font-head); color: #fff; }
.olympiad-facts .mono { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
@media (max-width: 560px) {
  .olympiad-facts { grid-template-columns: 1fr 1fr; }
  .olympiad-facts li:last-child { grid-column: 1 / -1; }
  .glf-logo { width: 72px; }
  .path-cta { font-size: 16px; padding: 12px 14px; }
}
.merge { grid-column: 2; grid-row: 1 / span 2; }
.merge svg { width: 100%; height: 100%; overflow: visible; }
.merge path { fill: none; stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; animation: flow 1.4s linear infinite; transition: opacity .25s, stroke-width .25s; }
.mp-a { stroke: var(--teal); }
.mp-b { stroke: var(--yellow); }
@keyframes flow { to { stroke-dashoffset: -22; } }
.paths[data-hot="a"] .mp-b, .paths[data-hot="b"] .mp-a { opacity: .15; }
.paths[data-hot="a"] .mp-a, .paths[data-hot="b"] .mp-b { stroke-width: 3.5; }
.final { position: relative; grid-column: 3; grid-row: 1 / span 2; align-self: center; padding: 32px; border-radius: 24px; color: var(--text); background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--teal), var(--cyan), var(--coral)) border-box; border: 3px solid transparent; }
.final-glow { position: absolute; inset: -30px; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, rgba(14, 185, 162, .35), transparent); filter: blur(10px); }
.section-dark .final h3 { color: var(--ink); font-size: 32px; letter-spacing: -0.03em; }
.final .path-tag { color: var(--coral-600); }
.final-date { margin: 14px 0 4px; font: 800 18px/1.1 var(--font-head); color: var(--ink); }
.final-date span { display: block; font-size: clamp(56px, 6vw, 80px); font-weight: 900; letter-spacing: -0.05em; background: linear-gradient(90deg, var(--coral-600), #E0702F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-where { font: 700 14px/1.4 var(--font-mono); color: var(--teal-ink); margin-bottom: 14px; }
.final p:last-child { color: var(--text); font-size: 15.5px; }
@media (max-width: 900px) {
  .paths { grid-template-columns: 1fr; }
  .path-a, .path-b, .final { grid-column: 1; grid-row: auto; }
  .merge { display: none; }
  .final { margin-top: 36px; }
  .final::before { content: "↓"; position: absolute; top: -36px; left: 50%; transform: translateX(-50%); color: var(--teal); font-size: 24px; }
  .path:hover, .path:focus-visible { transform: none; }
}

/* ---------- Timeline: one track, four milestones, detail panel ---------- */
.tl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.tl-head .sec-head { margin-bottom: 0; }
.countdown { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 10px 24px -18px rgba(11, 13, 46, .5); }
.cd-num { font: 900 clamp(30px, 3vw, 38px)/1 var(--font-head); letter-spacing: -0.04em; background: linear-gradient(90deg, var(--teal), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-text { font: 700 14px/1.25 var(--font-head); color: var(--ink); }

.tl2 { position: relative; }
.tl2-track { position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 4px; background: var(--line); }
.tl2-fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--cyan)); transition: width 1.2s ease; }
.tl2-today { position: absolute; top: -38px; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tl2-today::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.tl2-nodes { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.tl2-node { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 8px 14px; border: 0; background: none; cursor: pointer; text-align: center; color: var(--text); }
.tl2-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--c); color: var(--ink-c); font-size: 13px; line-height: 1; margin-bottom: 8px; transition: transform .25s, background-color .25s, box-shadow .25s, color .25s; }
.tl2-node.is-live .tl2-dot { animation: tl2-pulse 2s infinite; }
@keyframes tl2-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.tl2-node.is-done .tl2-dot { background: var(--c); }
.tl2-date { font: 900 clamp(22px, 2.3vw, 30px)/1.1 var(--font-head); letter-spacing: -0.03em; color: var(--ink-c); }
.tl2-title { font: 700 15px/1.3 var(--font-head); color: var(--ink); max-width: 18ch; }
.tl2-path { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tl2-node.is-star .tl2-path { color: #8A5D00; }
.tl2-node:hover .tl2-dot, .tl2-node[aria-selected="true"] .tl2-dot { transform: scale(1.18); background: var(--c); color: #fff; }
.tl2-node[aria-selected="true"]::after { content: ""; margin-top: 6px; width: 0; height: 0; border: 9px solid transparent; border-bottom-color: var(--c); border-top: 0; }
.tl2-node:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 12px; }

.tl2-detail { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 22px 26px; border-radius: 18px; background: var(--tint); border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); animation: tl2-in .3s ease; }
@keyframes tl2-in { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tl2-detail > div { flex: 1 1 420px; }
.tl2-d-when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 800 14px/1.2 var(--font-head); color: var(--ink-c); margin-bottom: 6px; }
.tl2-detail h3 { font-size: 21px; margin-bottom: 6px; }
.tl2-detail p:last-child { font-size: 16px; line-height: 1.6; color: var(--text); margin: 0; }
.tl2-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tl2-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tl2-status.is-live { color: var(--ink-c); }
.tl2-cta { flex: none; padding: 12px 20px; border-radius: 12px; background: var(--ink-c); color: #fff; font: 800 15px/1 var(--font-head); text-decoration: none; transition: transform .2s; }
.tl2-cta:hover { transform: translateY(-2px); }

@media (max-width: 760px) {
  .countdown { width: 100%; border-radius: 16px; }
  .tl2-track { left: 14px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .tl2-fill { inset: 0 0 auto 0; width: 100%; height: var(--p, 0%); }
  .tl2-today { display: none; }
  .tl2-nodes { grid-template-columns: 1fr; gap: 6px; }
  .tl2-node { display: grid; grid-template-columns: 30px 1fr; grid-template-areas: "dot date" "dot title" "dot path"; column-gap: 14px; row-gap: 2px; align-items: start; text-align: left; padding: 6px 0 10px; }
  .tl2-dot { grid-area: dot; margin: 0; }
  .tl2-date { grid-area: date; font-size: 22px; }
  .tl2-title { grid-area: title; max-width: none; }
  .tl2-path { grid-area: path; }
  .tl2-node[aria-selected="true"]::after { display: none; }
  .tl2-detail { margin-top: 10px; padding: 18px; background: color-mix(in srgb, var(--c) 10%, #fff); }
}
/* ---------- 2025 Highlights ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 12px; border: 1px solid rgba(14, 185, 162, .35); border-radius: 8px; font-size: 12.5px; color: var(--teal-ink); background: #fff; }
.badge::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 clamp(48px, 6vw, 72px); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--tint); }
.stat dd { position: relative; z-index: 1; margin: 0 0 10px; font: 900 clamp(36px, 4vw, 54px)/1 var(--font-head); color: var(--ink-c); letter-spacing: -0.05em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat dt { position: relative; z-index: 1; font-size: 15px; line-height: 1.45; color: var(--text); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

.video-feature { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(48px, 6vw, 72px); padding: clamp(16px, 2vw, 20px); border-radius: 26px; background: var(--ink); }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; border-radius: 16px; overflow: hidden; background: var(--night); }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.yt:hover img { transform: scale(1.03); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: var(--coral-600); box-shadow: 0 0 0 10px rgba(212, 43, 67, .25); transition: transform .2s; }
.yt:hover .yt-play { transform: scale(1.08); }
.yt-play::after { content: ""; position: absolute; left: 32px; top: 26px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000; }
.video-meta { padding: 8px 12px 8px 0; }
.vm-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.video-meta h3 { color: #fff; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em; margin-bottom: 12px; }
.video-meta p:not(.vm-label) { color: #C9CCE6; }
.video-meta .text-link { color: var(--yellow); }
@media (max-width: 860px) { .video-feature { grid-template-columns: 1fr; } .video-meta { padding: 4px 8px 12px; } }

/* Sliding photo carousel */
.carousel { margin-top: 8px; }
.car-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.gallery-hint { display: flex; align-items: center; gap: 10px; font: 800 18px/1.3 var(--font-head); color: var(--ink); margin: 0; }
.al-sub, .gallery-hint small { font: 600 14px/1.3 var(--font-body); color: var(--muted); }
.car-ctrls { display: flex; align-items: center; gap: 8px; }
.car-count { font-size: 13px; color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.car-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 400 28px/1 var(--font-body); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.car-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.car-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; outline: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { box-shadow: 0 0 0 3px var(--cyan); border-radius: 16px; }
.slide { --h: clamp(260px, 34vw, 440px); position: relative; flex: none; height: var(--h); width: calc(var(--h) * var(--ar)); max-width: 86vw; margin: 0; overflow: hidden; border-radius: 18px; background: var(--line); scroll-snap-align: start; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.slide:hover img { transform: scale(1.04); }
.g-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; }
.g-zoom { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font: 800 20px/1 var(--font-head); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.slide:hover .g-zoom, .g-open:focus-visible .g-zoom { opacity: 1; transform: none; }
.slide figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 10px; border-radius: 7px; background: rgba(7, 10, 36, .8); color: #fff; font-size: 12px; letter-spacing: .04em; pointer-events: none; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.car-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: #CBD1E1; cursor: pointer; transition: width .3s, background-color .3s; }
.car-dot[aria-current="true"] { width: 30px; background: linear-gradient(90deg, var(--teal), var(--cyan)); }
@media (max-width: 600px) {
  .slide { --h: 300px; }
  .car-head { flex-wrap: wrap; }
  .car-btn { width: 40px; height: 40px; font-size: 24px; }
  .slide figcaption { font-size: 10.5px; left: 8px; bottom: 8px; }
}

.lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: #070A24; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 6, 26, .85); backdrop-filter: blur(4px); }
.lb-figure { margin: 0; }
.lb-figure img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 18px 18px 0 0; background: #000; }
.lb-figure figcaption { padding: 12px 16px; font-size: 13px; color: #C9CCE6; }
.lb-close { position: absolute; right: -12px; top: -12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font: 400 28px/1 var(--font-body); cursor: pointer; }
.lb-nav { position: absolute; top: 45%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font: 400 32px/1 var(--font-body); cursor: pointer; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ---------- Rules & Guidelines ---------- */
.rules-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rule { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.rule:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 16px 32px -18px color-mix(in srgb, var(--c) 60%, transparent); }
.rule-icon { width: 44px; height: 44px; border-radius: 13px; }
.rule-icon svg { width: 22px; height: 22px; }
.rule-n { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-c); margin-bottom: 4px; }
.rule h3 { font-size: 17.5px; margin-bottom: 6px; }
.rule p:last-child { font-size: 15px; line-height: 1.55; color: var(--text); }

.criteria-box { padding: 28px; border-radius: 24px; background: var(--soft); border: 1px solid var(--line); }
.criteria-box h3 { font-size: 22px; margin-bottom: 4px; }
.cbx-hint { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.donut-wrap { position: relative; width: min(230px, 70%); margin: 0 auto 20px; }
.donut { display: block; width: 100%; transform: rotate(-90deg); }
.donut-track { fill: none; stroke: var(--line); stroke-width: 16; }
.donut-seg { fill: none; stroke-width: 16; cursor: pointer; transition: stroke-width .2s, opacity .2s; }
.cs-0 { stroke: var(--ink); } .cs-1 { stroke: var(--teal); } .cs-2 { stroke: var(--cyan); } .cs-3 { stroke: var(--yellow); } .cs-4 { stroke: var(--coral); }
.criteria-box[data-ci] .donut-seg { opacity: .25; }
.criteria-box[data-ci] .donut-seg.is-on { opacity: 1; stroke-width: 20; }
.donut-center { position: absolute; inset: 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dc-val { font: 900 34px/1 var(--font-head); color: var(--ink); letter-spacing: -0.04em; }
.dc-name { margin-top: 6px; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.criteria li + li { margin-top: 6px; }
.crit { display: grid; grid-template-columns: 12px minmax(0, 1fr) 70px 42px; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; transition: border-color .2s, transform .2s; }
.crit:hover, .crit.is-on { border-color: var(--ink); transform: translateX(3px); }
.swatch { width: 12px; height: 12px; border-radius: 4px; }
.cb-0 { background: var(--ink); } .cb-1 { background: var(--teal); } .cb-2 { background: var(--cyan); } .cb-3 { background: var(--yellow); } .cb-4 { background: var(--coral); }
.c-name { font-weight: 700; color: var(--ink); font-size: 15px; }
.c-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.c-bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; }
.c-weight { font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }
.criteria-box .fineprint { margin-top: 18px; }
@media (max-width: 1000px) { .rules-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .rules { grid-template-columns: 1fr; } .crit { grid-template-columns: 12px minmax(0, 1fr) 40px; } .c-bar { display: none; } }

/* ---------- FAQs ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-search { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 0 14px; min-height: 50px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.faq-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 185, 162, .15); }
.faq-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.faq-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 600 16px/1.4 var(--font-body); color: var(--ink); padding: 12px 0; }
.faq-empty { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.faq-list { display: grid; gap: 10px; }
.faq { border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.faq[hidden] { display: none; }
.faq.is-open { border-color: var(--teal); box-shadow: 0 12px 28px -18px rgba(14, 185, 162, .6); }
.faq h3 { font-size: inherit; letter-spacing: 0; }
.faq-q { display: grid; grid-template-columns: 40px 1fr 30px; align-items: center; gap: 10px; width: 100%; padding: 18px 18px; background: none; border: 0; cursor: pointer; text-align: left; font: 800 17.5px/1.35 var(--font-head); color: var(--ink); }
.faq-n { display: grid; place-items: center; width: 36px; height: 30px; border-radius: 8px; background: var(--soft); font-size: 12px; font-weight: 600; color: var(--muted); }
.faq:nth-child(4n+1) .faq-n { background: rgba(14, 185, 162, .13); color: #066B5E; }
.faq:nth-child(4n+2) .faq-n { background: rgba(5, 201, 245, .14); color: #04607A; }
.faq:nth-child(4n+3) .faq-n { background: rgba(248, 73, 96, .11); color: #A81C33; }
.faq:nth-child(4n+4) .faq-n { background: rgba(250, 196, 71, .25); color: #6E4A00; }
.faq-icon { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); transition: background-color .2s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 9px; top: 14px; width: 12px; height: 2px; background: var(--ink); transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon { background: var(--teal); }
.faq-q[aria-expanded="true"] .faq-icon::before, .faq-q[aria-expanded="true"] .faq-icon::after { background: #fff; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(0); }
.faq-a { padding: 0 64px 20px 68px; font-size: 16.5px; line-height: 1.65; color: var(--text); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .sec-head { position: static; } }
@media (max-width: 560px) { .faq-q { grid-template-columns: 34px 1fr 28px; font-size: 16px; padding: 16px 14px; } .faq-n { width: 32px; } .faq-a { padding: 0 16px 18px 58px; } }
/* ---------- Final CTA ---------- */
.final-cta {
  padding: clamp(88px, 11vw, 140px) 0; text-align: center; color: var(--on-dark-muted);
  background: radial-gradient(700px 380px at 50% 110%, rgba(14, 185, 162, .22), transparent 70%),
              radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px) 0 0 / 22px 22px, var(--night);
}
.final-cta-inner { max-width: 760px; }
.grad-light { background: linear-gradient(90deg, var(--teal), var(--cyan) 50%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-cta h2 { color: #fff; font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.045em; }
.final-cta p { margin: 18px auto 30px; }
.final-cta .cta-contact { margin: 26px 0 0; font-size: 15px; }
.final-cta .cta-contact a { color: #fff; }

/* ---------- Footer (matches stemlearn.ai) ---------- */
.site-footer { background: #10124C; color: #fff; padding: 72px 0 0; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.55fr .9fr 1.05fr 1.2fr 1.1fr 1fr; gap: 32px; }
.footer-brand img { width: 230px; margin-bottom: 20px; }
.fb-about { font-size: 17px; line-height: 1.6; color: #fff; margin-bottom: 26px; }
.site-footer h2 { font: 800 clamp(19px, 1.6vw, 24px)/1.2 var(--font-head); letter-spacing: -0.01em; text-transform: none; color: #fff; margin: 0 0 22px; }
.site-footer h2.fb-h { font-size: 21px; margin: 0 0 12px; }
.fb-email { color: var(--teal); text-decoration: none; font-size: 18px; }
.fb-email:hover { text-decoration: underline; }
.footer-brand p:has(.fb-email) { margin-bottom: 22px; }
.site-footer nav ul + h2 { margin-top: 30px; }
.site-footer nav li { margin-bottom: 16px; line-height: 1.4; }
.site-footer nav a, .site-footer nav span { color: #E6E8F5; text-decoration: none; }
.site-footer nav a:hover, .fb-h-link:hover { color: var(--teal); }
.site-footer nav em { font-style: normal; font-size: .88em; font-weight: 700; color: #F6A622; }
.fb-h-link { color: #fff; text-decoration: none; }
.social { display: flex; gap: 14px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #10124C; transition: transform .2s; }
.social a:hover { transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.footer-app { display: flex; flex-direction: column; gap: 22px; }
.footer-app h2 { margin-bottom: 0 !important; }
.footer-app img { width: 100%; max-width: 222px; border-radius: 8px; }
.footer-logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 24px; margin-top: 48px; }
.footer-logos > * { display: grid; place-items: center; height: 110px; padding: 10px; background: #fff; }
.footer-logos img { max-width: 100%; max-height: 90px; width: auto; height: auto; object-fit: contain; }
.footer-base { margin-top: 56px; padding: 26px 16px; border-top: 1px solid rgba(255, 255, 255, .35); text-align: center; font-size: 18px; }
.footer-base p { margin: 0; color: #fff; }
@media (max-width: 1200px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: span 3; max-width: 560px; } }
@media (max-width: 900px) { .footer-logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } .footer-logos { grid-template-columns: repeat(2, 1fr); gap: 12px; } .footer-logos > * { height: 90px; } .footer-base { font-size: 15px; } }

/* Mobile sticky register bar */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .mobile-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  body { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .path, .final, .criteria-box { padding: 22px; }
  .track-grades { margin-left: 0; flex-basis: 100%; }
  .pipeline li { padding: 14px 10px; font-size: 14px; }
  .pipeline li:not(:last-child)::after { right: 6px; top: 14px; }
}

/* Scroll reveal (only when JS is running) */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* SparkX in headings: same font and weight as the heading, only the X is coloured */
.sx { white-space: nowrap; }
.sx-x { color: var(--teal-ink); }
.grad-text .sx-x { -webkit-text-fill-color: var(--teal-ink); }
.section-dark .sx-x, .pipeline-card .sx-x, .grade-check .sx-x, .final-cta .sx-x, .hero .sx-x, .video-feature .sx-x { color: var(--teal); }

/* Final CTA reuses the hero's two-pathway buttons */
.cta-paths { max-width: 760px; margin: 0 auto; }
.final-cta .hp-btns { text-align: left; }

/* SparkX logo on the National Final card */
.final-logo { position: absolute; top: 28px; right: 28px; width: clamp(96px, 9vw, 128px); height: auto; }
@media (max-width: 420px) { .final-logo { width: 88px; top: 22px; right: 20px; } }

/* 2025 zonal city map */
.zmap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; margin-bottom: clamp(48px, 6vw, 72px); padding: clamp(20px, 3vw, 36px); border-radius: 26px; background: #fff; border: 1px solid var(--line); }
.zmap-figure { position: relative; max-width: 460px; width: 100%; margin: 0 auto; }
.zmap-figure img { width: 100%; height: auto; }
.zmap-pins { position: absolute; inset: 0; }
.zpin { position: absolute; transform: translate(-50%, -50%); }
.zpin-dot { position: relative; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(11, 13, 46, .35); cursor: pointer; transition: transform .2s; }
.zpin-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; animation: zping 2.6s ease-out infinite; animation-delay: calc(var(--d, 0) * 1s); }
.zpin:nth-child(3n) .zpin-dot::after { --d: .8; }
.zpin:nth-child(3n+1) .zpin-dot::after { --d: 1.6; }
@keyframes zping { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.zpin-label { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(4px); padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; font: 800 13px/1 var(--font-head); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 2; }
.zpin.is-on .zpin-dot { transform: scale(1.5); }
.zpin.is-on .zpin-label { opacity: 1; transform: translateX(-50%); }
.zpin.is-on { z-index: 3; }
.zmap.has-on .zpin:not(.is-on) .zpin-dot { opacity: .45; }
.zmap-kicker { display: inline-flex; align-items: center; gap: 10px; font: 800 14px/1.2 var(--font-head); color: var(--teal-ink); margin-bottom: 8px; }
.zmap-kicker::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: linear-gradient(var(--teal), var(--cyan)); }
.zmap-side h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; margin-bottom: 8px; }
.zmap-count { font-weight: 900; background: linear-gradient(90deg, var(--teal), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zmap-sub { font-size: 16px; color: var(--muted); margin-bottom: 18px; }
.zmap-list { display: flex; flex-wrap: wrap; gap: 8px; }
.zchip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 700 14px/1 var(--font-head); color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s; }
.zchip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.zchip:hover, .zchip.is-on { border-color: var(--c); background: var(--tint); transform: translateY(-2px); }
@media (max-width: 860px) { .zmap { grid-template-columns: 1fr; } .zmap-figure { max-width: 380px; } }
/* Awards & Recognition */
.awards-sec { background: radial-gradient(600px 300px at 15% 0%, rgba(248, 73, 96, .07), transparent 70%), radial-gradient(600px 300px at 90% 100%, rgba(250, 196, 71, .12), transparent 70%), #fff; }
#awards .sec-index { --b: var(--coral); --b-ink: #A81C33; --b-tint: rgba(248, 73, 96, .1); }
.awards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.award {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 24px 28px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(170deg, var(--tint), #fff 65%); border: 1.5px solid color-mix(in srgb, var(--c) 35%, transparent);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.award::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--tint); transition: transform .4s; }
.award:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 24px 44px -22px var(--c); }
.award:hover::after { transform: scale(1.4); }
.award-num { position: absolute; top: 20px; right: 22px; font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--ink-c) 55%, transparent); }
.award-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); color: #fff; box-shadow: 0 12px 24px -12px var(--c); margin-bottom: 20px; transition: transform .3s; }
.award:hover .award-icon { transform: rotate(-6deg) scale(1.06); }
.award-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-yellow .award-icon { color: #3A2600; }
.award-group { position: relative; z-index: 1; font: 800 13px/1.2 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-c); margin-bottom: 8px; }
.award h3 { position: relative; z-index: 1; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.3; letter-spacing: -0.015em; }
@media (max-width: 1000px) { .awards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .awards { grid-template-columns: 1fr; } }
/* Award cards with background photos (overrides the plain card above) */
.award { min-height: 340px; justify-content: flex-end; border: 0; color: #fff; background: var(--ink); isolation: isolate; }
.award-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.award::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, rgba(7, 10, 36, .15)) 0%, rgba(7, 10, 36, .55) 45%, rgba(7, 10, 36, .92) 100%); transition: background-color .3s; }
.award::after { display: none; }
.award:hover .award-bg { transform: scale(1.07); }
.award:hover { box-shadow: 0 26px 48px -20px var(--c); }
.award-icon { position: absolute; top: 22px; left: 22px; margin: 0; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.award-num { color: rgba(255, 255, 255, .75); }
.award-group { color: var(--c); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.c-coral .award-group { color: #FF7A8C; }
.award h3 { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
/* Challenge-area tiles: illustration banner on top, icon overlapping its edge */
.area { padding-top: 0; overflow: hidden; }
.area::before { z-index: 2; }
.area-art { display: block; margin: 0 -22px 0; height: 128px; overflow: hidden; border-bottom: 1px solid var(--line); }
.area-art svg { display: block; width: 100%; height: 100%; transition: transform .5s ease; }
.area:hover .area-art svg { transform: scale(1.06); }
.area .area-icon { position: relative; z-index: 1; margin-top: -24px; margin-bottom: 14px; background: #fff; box-shadow: 0 6px 16px -6px rgba(11, 13, 46, .3); border: 1px solid var(--line); }
