:root {
  --ink: #081133;
  --ink-soft: #17234b;
  --blue: #3db5f2;
  --blue-bright: #70d2ff;
  --paper: #f7f5ef;
  --white: #ffffff;
  --lime: #c9f86a;
  --orange: #ffb65b;
  --line: rgba(8, 17, 51, 0.14);
  --shadow: 0 28px 70px rgba(8, 17, 51, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  transition: top 160ms ease;
}
.skip-link:focus { top: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(22px, 5vw, 78px);
  border-bottom: 1px solid rgba(255,255,255,.11);
  color: var(--white);
  background: rgba(7, 19, 51, 0.91);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 780;
  letter-spacing: -.02em;
}
.brand-mark { width: 48px; height: 36px; overflow: visible; }
.brand-mark path { fill: none; stroke: #76809a; stroke-width: 3; stroke-linecap: round; }
.brand-mark ellipse { fill: var(--white); }
.brand-mark circle { fill: var(--blue); }
.brand-mark .glint { fill: var(--white); }
nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
nav a {
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}
nav a:hover, nav a:focus-visible { color: var(--white); }
nav .nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(70px, 10vw, 140px) clamp(22px, 6vw, 100px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(61,181,242,.24), transparent 28%),
    radial-gradient(circle at 18% 88%, rgba(85,111,207,.18), transparent 25%),
    var(--ink);
}
.hero::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018);
}
.hero-copy { position: relative; z-index: 2; max-width: 740px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 820;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 6.6vw, 7.1rem);
  line-height: .91;
  letter-spacing: -.075em;
  text-wrap: balance;
}
h1 em { color: var(--blue); font-family: Georgia, serif; font-weight: 500; }
.hero-intro {
  max-width: 630px;
  margin-bottom: 36px;
  color: rgba(255,255,255,.72);
  font-size: clamp(1.03rem, 1.5vw, 1.3rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .92rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--blue); }
.button-primary:hover { background: var(--blue-bright); }
.button-secondary { color: var(--white); border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.04); }
.button-secondary:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.09); }

.hero-visual {
  position: relative;
  z-index: 2;
  min-height: 580px;
  margin-left: clamp(0px, 3vw, 52px);
}
.visual-grid {
  position: absolute;
  inset: 4% 1% 3% 6%;
  opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle, #000 20%, transparent 72%);
}
.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(112,210,255,.34);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}
.orbit-one { width: 78%; aspect-ratio: 1; }
.orbit-two { width: 54%; aspect-ratio: 1; border-style: dashed; animation: rotate 28s linear infinite; }
.visual-centre {
  position: absolute;
  left: 50%; top: 50%;
  display: grid;
  place-items: center;
  width: 138px; height: 138px;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 0 0 18px rgba(201,248,106,.08), 0 24px 60px rgba(0,0,0,.28);
}
.visual-centre span { font-family: Georgia, serif; font-size: 3.5rem; line-height: .8; }
.visual-centre small { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.math-tile {
  position: absolute;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}
.tile-equation { left: 4%; top: 14%; padding: 24px 26px; font-size: 1.4rem; transform: rotate(-4deg); }
.tile-equation span, .tile-equation strong { display: block; }
.tile-equation strong { color: var(--blue); font-size: 1.7rem; }
.tile-angle { right: 0; top: 17%; width: 180px; padding: 13px; transform: rotate(5deg); animation-delay: -2s; }
.tile-angle svg { display: block; width: 100%; height: 105px; }
.tile-angle path { fill: none; stroke: rgba(255,255,255,.8); stroke-width: 4; stroke-linecap: round; }
.tile-angle path.accent { stroke: var(--orange); stroke-width: 6; }
.tile-angle span { color: rgba(255,255,255,.7); font-size: .74rem; }
.tile-chart { left: 14%; bottom: 10%; display: flex; align-items: end; gap: 8px; width: 160px; height: 128px; padding: 22px; transform: rotate(3deg); animation-delay: -4s; }
.tile-chart .bar { display: block; flex: 1; border-radius: 4px 4px 0 0; background: var(--blue); }
.bar-a { height: 38%; } .bar-b { height: 68%; } .bar-c { height: 48%; } .bar-d { height: 88%; background: var(--lime) !important; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes rotate { to { transform: translate(-50%, -50%) rotate(342deg); } }

.pathways, .audiences, .featured-games { padding: clamp(78px, 10vw, 140px) clamp(22px, 6vw, 100px); }
.section-heading { display: grid; grid-template-columns: .8fr 1fr; column-gap: 7vw; max-width: 1200px; margin-bottom: 52px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2, .audience-intro h2, .closing-cta h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4.3vw, 4.8rem);
  line-height: .96;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.section-heading > p:last-child, .audience-intro > p:last-child { align-self: end; margin: 0; color: #5b6277; font-size: 1.06rem; }
.pathway-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.pathway-card {
  position: relative;
  min-height: 720px;
  padding: 28px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.psat-card { color: var(--white); background: #101d47; }
.games-card { color: var(--ink); background: #9edff7; }
.card-topline { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.card-number { font-family: Georgia, serif; font-size: 1.25rem; }
.status-pill { padding: 8px 12px; border: 1px solid currentColor; border-radius: 999px; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.psat-sheet {
  position: absolute;
  right: -24px;
  top: 92px;
  width: 72%;
  height: 310px;
  padding: 52px 44px;
  border-radius: 10px 0 0 10px;
  transform: rotate(4deg);
  color: var(--ink);
  background: var(--white);
  box-shadow: -24px 28px 60px rgba(0,0,0,.25);
}
.psat-sheet::before { content: "PSAT"; display: block; margin-bottom: 32px; color: #182b60; font-size: .8rem; font-weight: 900; letter-spacing: .18em; }
.sheet-line { display: block; width: 75%; height: 7px; margin: 13px 0; border-radius: 8px; background: #dfe5f2; }
.sheet-line.long { width: 100%; } .sheet-line.short { width: 47%; }
.choice-row { display: flex; gap: 12px; margin: 24px 0; }
.choice-row i { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #aeb8d1; border-radius: 50%; font-style: normal; font-size: .7rem; }
.game-scene { position: absolute; inset: 80px 0 auto 0; height: 335px; overflow: hidden; }
.hill { position: absolute; bottom: -90px; border-radius: 50% 50% 0 0; transform: rotate(-8deg); }
.hill-back { left: -12%; width: 72%; height: 280px; background: #74c6e5; }
.hill-front { right: -15%; width: 78%; height: 330px; background: #3e9fc9; }
.trail { position: absolute; left: 14%; bottom: -70px; width: 480px; height: 310px; border: 18px solid transparent; border-left-color: var(--lime); border-radius: 50%; transform: rotate(21deg); }
.marker { position: absolute; z-index: 2; display: grid; place-items: center; padding: 8px 11px; border-radius: 5px; color: var(--white); background: var(--ink); font-size: .72rem; font-weight: 800; box-shadow: 0 10px 24px rgba(8,17,51,.2); }
.marker-one { left: 23%; bottom: 100px; } .marker-two { right: 16%; top: 74px; color: var(--ink); background: var(--orange); font-size: 1rem; }
.card-copy { position: absolute; z-index: 3; left: 28px; right: 28px; bottom: 28px; padding-top: 28px; }
.psat-card .card-copy { background: linear-gradient(transparent, #101d47 20%); }
.games-card .card-copy { background: linear-gradient(transparent, #9edff7 20%); }
.card-kicker { margin-bottom: 12px; font-size: .7rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; opacity: .7; }
.card-copy h3 { max-width: 600px; margin-bottom: 18px; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; letter-spacing: -.04em; }
.card-copy > p:not(.card-kicker) { max-width: 580px; margin-bottom: 26px; opacity: .72; }
.card-links { display: flex; flex-wrap: wrap; gap: 12px; }
.card-links a { display: inline-flex; justify-content: space-between; gap: 26px; padding: 13px 16px; border: 1px solid currentColor; border-radius: 4px; font-size: .82rem; font-weight: 760; text-decoration: none; transition: background 160ms ease, color 160ms ease; }
.psat-card .card-links a:hover { color: var(--ink); background: var(--white); }
.games-card .card-links a:hover { color: var(--white); background: var(--ink); }

.audiences { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; background: var(--white); }
.audience-intro { align-self: start; position: sticky; top: 130px; }
.audience-intro h2 { margin-bottom: 28px; }
.audience-list { border-top: 1px solid var(--line); }
.audience-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 24px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); }
.audience-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--ink); background: #dff5ff; font-size: 1.15rem; }
.audience-item:nth-child(2) .audience-icon { background: #efffc9; }
.audience-item:nth-child(3) .audience-icon { background: #fff0d8; }
.audience-item h3 { margin-bottom: 8px; font-size: 1.25rem; }
.audience-item p { max-width: 560px; margin: 0; color: #666d80; }
.audience-item > a { margin-top: 4px; font-size: .82rem; font-weight: 800; text-decoration: none; }
.audience-item > a:hover { color: #0874a8; }

.featured-games { background: #e9f5f8; }
.mini-game-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.mini-game { display: grid; grid-template-columns: 116px 1fr auto; align-items: center; gap: 18px; min-height: 150px; padding: 18px; border: 1px solid rgba(8,17,51,.1); border-radius: 12px; background: rgba(255,255,255,.75); text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.mini-game:hover, .mini-game:focus-visible { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(8,17,51,.1); }
.mini-game > i { font-style: normal; font-size: 1.1rem; }
.mini-game strong, .mini-game small { display: block; }
.mini-game strong { margin-bottom: 5px; }
.mini-game small { color: #6a7185; }
.mini-art { position: relative; display: block; height: 110px; border-radius: 8px; overflow: hidden; background: #d9f0f7; }
.trail-art i { position: absolute; width: 100px; height: 70px; border-radius: 50%; background: #5cb0cd; }
.trail-art i:first-child { left: -18px; bottom: -20px; }
.trail-art i:nth-child(2) { right: -30px; top: 12px; background: #97d7e8; }
.trail-art b { position: absolute; left: 16px; top: 18px; padding: 5px 7px; color: var(--white); background: var(--ink); font-size: .62rem; }
.angle-art { background: #14214c; }
.angle-art i { position: absolute; left: 20px; bottom: 22px; width: 72px; height: 56px; border-left: 4px solid var(--blue); border-bottom: 4px solid var(--blue); transform: skew(-18deg); }
.angle-art b { position: absolute; right: 12px; top: 13px; color: var(--lime); font-size: .8rem; }
.pack-art { display: flex; align-items: end; justify-content: center; gap: 5px; padding-bottom: 20px; background: #fff0d8; }
.pack-art i { display: block; width: 24px; border: 3px solid var(--ink); background: var(--orange); }
.pack-art i:nth-child(1) { height: 30px; } .pack-art i:nth-child(2) { height: 52px; } .pack-art i:nth-child(3) { height: 72px; background: var(--lime); }

.closing-cta { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: clamp(22px, 4vw, 64px); padding: clamp(45px, 7vw, 90px); border-radius: 18px; color: var(--white); background: var(--ink); }
.closing-cta .eyebrow { margin-bottom: 12px; }
.button-light { flex: 0 0 auto; color: var(--ink); background: var(--white); }
.button-light:hover { background: var(--lime); }
footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 36px; padding: 40px clamp(22px, 6vw, 100px); border-top: 1px solid var(--line); }
.footer-brand .brand-mark ellipse { fill: var(--ink); }
.footer-brand .brand-mark .glint { fill: var(--white); }
footer p { margin: 0; color: #72798a; font-size: .84rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: .82rem; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: #0874a8; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
*:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-copy { max-width: 820px; }
  .hero-visual { min-height: 470px; margin: 40px 0 0; }
  .orbit-one { width: 520px; max-width: 88%; }
  .orbit-two { width: 360px; max-width: 62%; }
  .pathway-card { min-height: 680px; }
  .mini-game-grid { grid-template-columns: 1fr; }
  .mini-game { grid-template-columns: 100px 1fr auto; }
}
@media (max-width: 780px) {
  .site-header { min-height: 66px; }
  nav > a:not(.nav-cta) { display: none; }
  .brand-mark { width: 42px; }
  .hero { min-height: auto; }
  h1 { font-size: clamp(3rem, 15vw, 5.2rem); }
  .hero-visual { min-height: 400px; }
  .tile-equation { left: 0; }
  .tile-angle { width: 145px; }
  .tile-chart { left: 4%; width: 130px; height: 105px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .pathway-grid { grid-template-columns: 1fr; }
  .audiences { grid-template-columns: 1fr; }
  .audience-intro { position: static; }
  .closing-cta { align-items: start; flex-direction: column; }
  footer { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 520px) {
  .site-header { padding-inline: 16px; }
  .brand span { font-size: .98rem; }
  .nav-cta { padding: 8px 12px !important; font-size: .78rem; }
  .hero { padding-inline: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-visual { min-height: 330px; }
  .tile-equation { top: 8%; padding: 15px 17px; font-size: 1rem; }
  .tile-equation strong { font-size: 1.25rem; }
  .tile-angle { right: -24px; top: 12%; width: 125px; }
  .tile-angle svg { height: 78px; }
  .tile-chart { bottom: 4%; width: 112px; height: 90px; padding: 14px; }
  .visual-centre { width: 108px; height: 108px; }
  .pathways, .audiences, .featured-games { padding-inline: 20px; }
  .pathway-card { min-height: 660px; padding: 20px; }
  .psat-sheet { width: 84%; height: 275px; padding: 34px 26px; }
  .card-copy { left: 20px; right: 20px; bottom: 20px; }
  .card-links { flex-direction: column; align-items: stretch; }
  .card-links a { justify-content: space-between; }
  .audience-item { grid-template-columns: 46px 1fr; gap: 16px; }
  .audience-item > a { grid-column: 2; }
  .mini-game { grid-template-columns: 82px 1fr auto; padding: 12px; }
  .mini-art { height: 88px; }
  .closing-cta { margin: 16px; padding: 38px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
