@font-face {
  font-family: "Chakra Petch";
  src: url("../assets/chakra-petch-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url("../assets/roboto-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #0a0e17;
  --slate: #0f172a;
  --surface: #111c2e;
  --line: #2b3b50;
  --white: #f8fafc;
  --muted: #a8b9ca;
  --lime: #c4f000;
  --cyan: #00e5ff;
  --display: "Chakra Petch", system-ui, sans-serif;
  --body: Roboto, system-ui, sans-serif;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--void); color: var(--white); font: 1rem/1.65 var(--body); }
body.modal-open { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.8vw, 6.6rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.6rem, 5.4vw, 5rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -.025em; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
::selection { color: var(--void); background: var(--lime); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 12px; transform: translateY(-160%); background: var(--lime); color: var(--void); padding: 12px; }
.skip-link:focus { transform: none; }
.site-header { height: var(--header-height); position: sticky; top: 0; z-index: 30; background: #0a0e17f2; border-bottom: 1px solid #2b3b5077; }
.navigation { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { margin-right: auto; flex-shrink: 0; }
.brand img { width: 120px; height: 53px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .9rem; }
.nav-links a { padding-block: 10px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cyan); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 46px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 3px; background: transparent; font-size: .92rem; font-weight: 700; line-height: 1.2; transition: background .18s, border-color .18s, transform .18s; }
.button:hover { border-color: var(--cyan); }
.button.primary { color: #111709; background: var(--lime); border-color: var(--lime); }
.button.primary:hover { background: #dbff5c; border-color: #dbff5c; }
.button.small { min-height: 38px; padding: 9px 14px; font-size: .84rem; }
.text-link { border-bottom: 1px solid var(--cyan); padding-block: 5px; }
.text-link:hover { color: var(--cyan); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.eyebrow { color: var(--cyan); font-size: .85rem; margin-bottom: 18px; }
.lede { max-width: 53ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--muted); }
.section-pad { padding-block: clamp(72px, 9vw, 132px); }
.dither { position: relative; isolation: isolate; }
.dither::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(#63839580 .7px, transparent 1px) 0 0 / 5px 5px; mask-image: linear-gradient(125deg, transparent 25%, #000 100%); pointer-events: none; opacity: .35; }
.scroll-section { height: 230vh; height: 230svh; position: relative; view-timeline: --chapter block; view-timeline-inset: var(--header-height) 0; }
.sticky-stage { position: sticky; top: var(--header-height); height: calc(100vh - var(--header-height)); height: calc(100svh - var(--header-height)); overflow: hidden; }
.chapter-progress { position: absolute; z-index: 4; bottom: 24px; right: 48px; display: flex; gap: 7px; }
.chapter-progress span { width: 24px; height: 3px; background: #65809355; }
.chapter-progress span:first-child { background: var(--lime); }
.hero { height: 200vh; height: 200svh; }
.hero .sticky-stage { background: #070e1a; }
.hero-landscape { position: absolute; width: 100%; height: 110%; inset: -5% 0; object-fit: cover; object-position: center bottom; opacity: .83; }
.hero-grid { position: absolute; height: 40%; inset: auto -10% -22%; transform: perspective(450px) rotateX(52deg); background-image: linear-gradient(#00e5ff66 1px, transparent 1px), linear-gradient(90deg, #00e5ff66 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(transparent, #000); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(40px, 8svh, 100px) 24px 100px; z-index: 3; }
.hero-content h1 { font-size: clamp(3.5rem, 8.5vw, 8rem); line-height: .99; max-width: 1000px; letter-spacing: -.055em; }
.hero-start {
  display: inline-block;
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: .045em;
  text-underline-offset: .13em;
}
.hero-start:hover, .hero-start:focus-visible { text-shadow: 3px 3px #385b16; }
.hero-start-label { display: inline-block; pointer-events: none; }
html:has([data-story-start]) { scrollbar-gutter: stable; }
html.story-locked { overflow: hidden; overscroll-behavior: none; }
.story-locked .hero a[href="#descubre"]:not([data-story-start]),
.story-locked .hero-insight { display: none; }
.story-locked [data-start-hint] { color: var(--lime); border-color: #718f37; }
@media (max-height: 560px) {
  .story-locked .hero-content { padding-top: clamp(16px, 6svh, 32px); }
  .story-locked .hero-content h1 { font-size: clamp(2rem, min(11.8vw, 16svh), 4.5rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-start-label { animation: hero-start-pulse 2.8s steps(3, end) 3; }
  .story-locked .hero-start-label { animation: hero-start-attention 2.2s steps(4, end) infinite; }
  @keyframes hero-start-attention {
    0%, 45%, 100% { transform: translateY(0) scale(1); text-shadow: none; }
    15% { transform: translateY(-.09em) scale(1.06); text-shadow: .045em .045em #385b16, 0 0 .22em #c4f00070; }
    30% { transform: translateY(.025em) scale(.99); text-shadow: 0 0 .12em #c4f00040; }
  }
  @keyframes hero-start-pulse {
    0%, 28%, 100% { transform: translateY(0); }
    10% { transform: translateY(-.065em); }
    20% { transform: translateY(.025em); }
  }
}
.hero-content .lede { margin-top: 22px; max-width: 48ch; color: #c4d2e1; font-size: 1.05rem; }
.hero-content .eyebrow { color: var(--lime); margin-bottom: 18px; }
.hero-content .actions { justify-content: center; margin-top: 24px; }
.hero-hint { position: absolute; bottom: 25px; left: 48px; color: #d4e2ef; font-size: .8rem; z-index: 4; background: #0a0e17d9; padding: 7px 12px; border: 1px solid #31475b80; border-radius: 3px; }
.hero-hint span { margin-right: 12px; color: var(--lime); }
.hero-insight {
  position: absolute;
  z-index: 4;
  top: 46%;
  inset-inline: 0;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin-inline: auto;
  padding: .28em .48em;
  border: 2px solid var(--lime);
  background: #0a0e17f2;
  color: var(--lime);
  font: 700 clamp(1.7rem, 6vw, 5rem)/1.08 var(--display);
  text-align: center;
  text-shadow: .06em .06em #375b17;
  box-shadow: 5px 5px #567000, 0 0 28px #c4f00038;
}
.hero-insight:hover, .hero-insight:focus-visible { background: var(--lime); color: #0a0e17; text-shadow: none; }
.hero-object { position: absolute; width: clamp(210px, 29vw, 410px); aspect-ratio: 1; bottom: -24%; left: calc(50% - clamp(105px, 14.5vw, 205px)); z-index: 2; }
.sphere { border-radius: 50%; position: absolute; inset: 0; background: radial-gradient(ellipse at 28% 20%, #bcecee 0, #388391 16%, #144452 40%, #061923 73%); box-shadow: inset -20px -16px 32px #0009, 0 0 80px #00e5ff18; border: 1px solid #70eaf055; overflow: hidden; }
.sphere::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(#07131d 1px, transparent 1.4px) 0 0 / 4px 4px; opacity: .65; }
.planet-ring { position: absolute; width: 160%; height: 48%; top: 26%; left: -30%; border: 1px solid #c4f000c9; border-radius: 50%; transform: rotate(-25deg); box-shadow: 0 0 0 6px #c4f0000e, 0 0 0 15px #00e5ff12; }
.planet-ring.front { clip-path: inset(50% 0 0); }
.statement { max-width: 950px; padding-block: 104px; }
.statement p { font: 700 clamp(1.9rem, 3.6vw, 3.3rem)/1.25 var(--display); letter-spacing: -.025em; color: #92a6bd; text-wrap: balance; }
.statement strong { color: var(--white); font-weight: 700; }
.reading-section { height: 235vh; height: 235svh; }
.reading-section .sticky-stage { display: grid; place-items: center; }
.reading-section .statement { padding-block: 40px; }
.read-word { position: relative; display: inline-block; color: #b6c5d5; }
.read-word.emphasized { color: var(--white); }
.read-sparks {
  position: absolute;
  left: 50%;
  bottom: .12em;
  width: 3px;
  height: 3px;
  background: #baff35;
  box-shadow: -8px 3px #baff35, 13px -6px #459cff, -17px -7px #459cff,
    20px 5px #baff35, 5px 9px #459cff, -4px -10px #baff35;
  opacity: 0;
  pointer-events: none;
}
.logic-section { height: 470vh; height: 470svh; }
.progression-section { height: 390vh; height: 390svh; }
.chapter { background: var(--void); border-top: 1px solid #26364b88; }
.chapter .sticky-stage { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5%; padding-inline: max(48px, calc((100% - 1280px)/2)); }
.chapter-copy { position: relative; height: 360px; z-index: 3; }
.story-beat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.story-beat .lede { margin-top: 22px; max-width: 37ch; font-size: 1.08rem; }
.story-beat.second { opacity: 0; visibility: hidden; }
.chapter-visual { position: relative; width: 100%; aspect-ratio: 1; isolation: isolate; }
.orbit-space { position: absolute; inset: 0; background: radial-gradient(ellipse at center, #0c39404d, transparent 66%); }
.orbit-space .planet { position: absolute; width: 39%; aspect-ratio: 1; top: 30.5%; left: 30.5%; }
.orbit-space .orbital-track { position: absolute; inset: 12%; border: 1px dashed #00e5ff70; border-radius: 50%; transform: rotate(-25deg) scaleY(.72); }
.orbit-space .orbital-track.outer { inset: 3%; opacity: .3; }
.probe-path { position: absolute; inset: 8%; border-radius: 50%; transform: rotate(-60deg); }
.probe { position: absolute; top: 50%; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 24px #c4f00080, 0 0 0 8px #c4f00015; }
.orbit-target { position: absolute; top: 23%; left: 80%; width: 42px; height: 42px; border: 2px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 0 8px #00e5ff10; }
.axis { position: absolute; top: 50%; left: 3%; width: 94%; height: 1px; background: #66819826; }
.axis.vertical { transform: rotate(90deg); }
.visual-caption { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .77rem; color: var(--muted); }
.visual-caption a { color: var(--cyan); border-bottom: 1px solid #00e5ff55; }
.formula { position: absolute; color: var(--cyan); font-family: var(--display); top: 7%; left: 9%; font-size: .9rem; }
.circuit-scene { width: 100%; height: 72%; position: absolute; top: 14%; background-color: #0c1724; background-image: radial-gradient(#243f4f 1px, transparent 1px); background-size: 6px 6px; border: 1px solid #2e4b5d; border-radius: 8px; box-shadow: 12px 12px 0 #142a32; }
.circuit-chip { position: absolute; left: 37%; top: 31%; width: 28%; height: 38%; display: grid; place-items: center; font: 700 clamp(1rem, 3vw, 2.3rem) var(--display); border: 2px solid #48707b; border-radius: 3px 40% 40% 3px; background: #111e2b; color: var(--cyan); }
.circuit-wire { position: absolute; height: 2px; background: #48606d; transform-origin: left; }
.circuit-wire.wire-a { top: 40%; left: 13%; width: 24%; }
.circuit-wire.wire-b { top: 60%; left: 13%; width: 24%; }
.circuit-wire.wire-out { top: 50%; left: 65%; width: 21%; }
.circuit-input, .circuit-output { position: absolute; height: 42px; width: 42px; border: 1px solid #5a737f; border-radius: 3px; display: grid; place-items: center; font-family: var(--display); background: #122335; }
.circuit-input { left: 6%; }
.circuit-input.input-a { top: calc(40% - 20px); }
.circuit-input.input-b { top: calc(60% - 20px); }
.circuit-output { left: 82%; top: calc(50% - 20px); border-radius: 50%; background: #384138; }
.state-label { position: absolute; bottom: 6%; left: 0; right: 0; text-align: center; font-size: .8rem; color: var(--muted); }
.gate-rule { position: absolute; top: 7%; left: 8%; right: 8%; color: var(--muted); font-size: .84rem; line-height: 1.4; text-align: center; }
.phase-panel { position: absolute; inset: 0; visibility: hidden; opacity: 0; }
.phase-panel:first-child { visibility: visible; opacity: 1; }
.circuit-wire.is-powered { background: var(--lime); box-shadow: 0 0 14px #c4f00040; }
.circuit-wire.wire-out.is-powered { background: #48606d; box-shadow: none; }
.power-trace { display: block; height: 100%; background: var(--lime); box-shadow: 0 0 14px #c4f00070; transform-origin: left; }
.circuit-input.is-powered { background: #283e20; color: var(--lime); border-color: #6e8e41; }
.circuit-output { background: #172431; color: #b3c4d5; font-size: .9rem; }
.circuit-output.is-powered { background: var(--lime); color: var(--void); box-shadow: 0 0 26px #c4f00045; border-color: var(--lime); }
.is-powered > .state-label { color: var(--lime); }
.level-scene { position: absolute; inset: 12% 0; border: 1px solid var(--line); background: #0d1726; padding: 38px; box-shadow: 10px 10px #152b32; }
.level-heading { font-size: .84rem; color: var(--cyan); }
.level-tower { display: flex; align-items: end; gap: 16px; height: 50%; margin-top: 28px; }
.level-tower i { flex: 1; height: var(--height); background: repeating-linear-gradient(0deg, transparent 0 8px, #0a0e1780 8px 10px), #244050; border: 1px solid #487080; position: relative; }
.level-tower i::after { content: attr(data-level); position: absolute; bottom: -30px; left: 0; right: 0; text-align: center; color: var(--muted); font-style: normal; font-size: .8rem; }
.level-tower i.active { background: repeating-linear-gradient(0deg, transparent 0 8px, #0a0e1780 8px 10px), var(--lime); border-color: var(--lime); }
.level-result { margin-top: 52px; font: 700 1.35rem var(--display); }
.level-detail { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.level-panel { padding: 32px; display: flex; flex-direction: column; }
.level-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; }
.level-feedback { font: 700 1.5rem var(--display); color: var(--cyan); min-width: 32px; text-align: center; }
.level-panel .level-tower { flex: 1; height: auto; min-height: 70px; margin-top: 20px; }
.level-panel .level-result { margin-top: 38px; }
.level-panel .level-detail { min-height: 2.9em; line-height: 1.45; }
.level-tower .completed { background-color: #294f43; border-color: #638962; }
.level-panel.success .level-feedback { color: var(--lime); }
.level-panel.failure .level-feedback { color: #ff747f; }
.level-panel.failure .level-tower i.active { background-color: #e45368; border-color: #ff8995; }
.level-panel.failure .level-result { color: #ff8995; }
.nav-actions .sound-toggle { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; background: #0a0e17ed; color: #ff747f; border-color: #995660; }
.nav-actions .sound-toggle[aria-pressed="true"] { color: var(--lime); border-color: #718f37; }
.sound-icon { position: relative; width: 24px; height: 20px; }
.sound-icon::before {
  content: "";
  position: absolute;
  inset: 2px auto 2px 0;
  width: 12px;
  background: currentColor;
  clip-path: polygon(0 28%, 33% 28%, 33% 17%, 58% 17%, 58% 7%, 80% 7%, 80% 0, 100% 0, 100% 100%, 80% 100%, 80% 93%, 58% 93%, 58% 83%, 33% 83%, 33% 72%, 0 72%);
}
.sound-mark { position: absolute; top: 5px; left: 14px; width: 2px; height: 2px; background: currentColor; box-shadow: 2px 2px, 4px 4px, 6px 6px, 8px 8px, 8px 0, 6px 2px, 2px 6px, 0 8px; }
.sound-toggle[aria-pressed="true"] .sound-mark { top: 7px; box-shadow: 2px 2px, 2px 4px, 0 6px, 6px -4px, 8px -2px, 8px 0, 8px 2px, 8px 4px, 8px 6px, 6px 8px; }
.falling-fill { position: absolute; inset: 0; display: block; background: repeating-linear-gradient(0deg, transparent 0 8px, #0a0e1780 8px 10px), #e45368; border: 1px solid #ff8995; transform-origin: bottom; }
.game-window { margin-top: 28px; border: 1px solid var(--line); box-shadow: 8px 8px #183036; background: var(--surface); overflow: hidden; }
.window-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; padding: 8px 16px; color: var(--muted); font-size: .77rem; }
.window-bar .signal { width: 6px; height: 6px; background: var(--lime); border-radius: 50%; display: inline-block; margin-right: 8px; }
.game-window img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 36px; }
.section-heading .lede { max-width: 36ch; font-size: 1rem; }
.featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; }
.feature-game { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.feature-game img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); }
.feature-game .game-label { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 18px; }
.feature-game p { color: var(--muted); margin-top: 10px; max-width: 56ch; }
.school-section { background: #0e1927; border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 96px); }
.split .lede { margin-top: 25px; font-size: 1.05rem; }
.school-graphic { padding: 30px; border: 1px solid #355360; background: var(--void); box-shadow: 8px 8px #203c40; }
.classroom-code { font: 700 clamp(2.4rem, 6vw, 5rem) var(--display); letter-spacing: .18em; color: var(--lime); padding-block: 18px; }
.alias-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 12px; color: var(--muted); font-size: .9rem; }
.alias-row strong { color: var(--white); font-weight: 400; }
.alias-row span:last-child { color: var(--cyan); }
.caption { color: var(--muted); font-size: .8rem; margin-top: 14px; }
.final-cta { text-align: center; padding-block: clamp(90px, 12vw, 180px); background: radial-gradient(ellipse at bottom, #12354177, transparent 65%); }
.final-cta .lede { margin: 24px auto 0; max-width: 42ch; font-size: 1.08rem; }
.final-cta .actions { justify-content: center; }
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 28px; color: var(--muted); font-size: .82rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.footer-brand img { width: 120px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 32px; }
.footer-links a:hover { color: var(--cyan); }
.site-footer details { max-width: 650px; }
.site-footer summary { cursor: pointer; }
.site-footer audio { display: block; margin-top: 14px; max-width: 100%; }
.site-footer details p { margin-top: 12px; }
.mobile-access { display: none; }
.reading-progress { position: fixed; z-index: 50; top: 0; left: 0; width: 100%; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.subhero { padding-block: 80px 56px; border-bottom: 1px solid var(--line); }
.subhero .lede { margin-top: 24px; }
.subhero .eyebrow { color: var(--lime); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters button[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--void); }
.result-count { font-size: .85rem; color: var(--muted); margin-bottom: 28px; }
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.game-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: #0f1928; }
.game-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--line); }
.game-body { padding: 24px; display: flex; flex-direction: column; align-items: start; flex: 1; }
.game-body .eyebrow { font-size: .78rem; margin-bottom: 12px; }
.game-body p { color: var(--muted); margin-top: 14px; font-size: .92rem; }
.game-body .button { margin-top: 22px; }
.game-body .game-facts { width: 100%; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; font-size: .78rem; }
.game-card details { width: 100%; margin-top: auto; padding-top: 18px; }
.game-card summary { cursor: pointer; font-size: .84rem; color: var(--cyan); }
.game-card details p { font-size: .86rem; }
.content-section { border-bottom: 1px solid var(--line); }
.editorial { max-width: 800px; }
.editorial h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 24px; }
.editorial p + p { margin-top: 18px; }
.editorial p { color: #bfccdb; }
.project-contact { padding-block: clamp(32px, 5vw, 64px); }
.project-contact h2 { margin-bottom: 16px; }
.project-contact .actions { margin-top: 20px; }
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; padding: 0; margin: 40px 0 0; counter-reset: steps; }
.process li { counter-increment: steps; border-top: 1px solid var(--line); padding-top: 20px; }
.process li::before { content: "0" counter(steps); display: block; font: 700 1.1rem var(--display); color: var(--cyan); margin-bottom: 16px; }
.process p { color: var(--muted); margin-top: 14px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.info-grid article { border-top: 1px solid var(--line); padding-block: 32px; }
.info-grid p { color: var(--muted); margin-top: 16px; }
.faq { max-width: 900px; }
.faq details { border-top: 1px solid var(--line); padding-block: 24px; }
.faq summary { cursor: pointer; font: 700 1.1rem var(--display); }
.faq details p { margin-top: 16px; color: var(--muted); max-width: 70ch; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 80px; align-items: start; }
.login-layout h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.form-panel { border: 1px solid var(--line); padding: 32px; background: var(--surface); }
.form-panel h2 { font-size: 1.8rem; margin-bottom: 22px; }
.form-panel label { display: grid; gap: 8px; margin-top: 20px; font-size: .9rem; }
.form-panel input { min-height: 48px; padding: 10px 14px; border: 1px solid #4c6379; background: var(--void); color: var(--white); width: 100%; }
.form-panel .code-input { font: 700 1.8rem var(--display); text-transform: uppercase; letter-spacing: .3em; }
.form-panel .button { margin-top: 24px; }
.form-status { color: var(--lime); font-size: .88rem; margin-top: 14px; }
.demo-notice { font-size: .85rem; color: var(--muted); margin-top: 18px; }
.role-divider { margin-block: 24px; border-top: 1px solid var(--line); }
.hub-header { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 20px; padding-block: 44px; }
.hub-header h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.teacher-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.teacher-table th, .teacher-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.teacher-table th { color: var(--cyan); font-weight: 400; }
.table-scroll { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 35px; gap: 24px; }
.stats article { border-left: 2px solid var(--lime); padding-left: 20px; }
.stats strong { font: 700 2.6rem var(--display); display: block; }
.stats span { color: var(--muted); font-size: .86rem; }
dialog { width: min(1120px, calc(100% - 32px)); max-height: calc(100dvh - 32px); background: var(--void); color: var(--white); border: 1px solid #4a6d7c; padding: 20px; box-shadow: 12px 12px #07121b; }
dialog::backdrop { background: #030710e8; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.dialog-header h2 { font-size: 1.6rem; }
.dialog-content iframe { width: 100%; height: min(65dvh, 650px); min-height: 340px; border: 0; background: var(--void); }
.dialog-content .lede { max-width: 60ch; margin-bottom: 20px; font-size: 1rem; }
.dialog-content img { width: 100%; }
.dialog-content .caption { margin-block: 12px 0; }
.fullscreen-dialog { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; }
.fullscreen-dialog .dialog-content iframe { height: calc(100dvh - 120px); }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .nav-links, .navigation { gap: 18px; }
  .nav-actions .access-link { display: none; }
  .chapter .sticky-stage { padding-inline: 24px; gap: 24px; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level-scene { padding: 24px; }
}

@media (max-width: 700px) {
  :root { --header-height: 66px; }
  .wrap { width: calc(100% - 40px); }
  .brand img { width: 100px; height: 46px; }
  .navigation { gap: 12px; }
  .nav-toggle { display: block; }
  .nav-actions .button { font-size: .78rem; padding: 10px 12px; min-height: 40px; }
  .nav-links { display: none; position: absolute; top: 65px; left: 0; right: 0; padding: 20px; background: var(--slate); border-bottom: 1px solid var(--line); }
  .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .hero-content { padding-top: 8svh; }
  .hero-content h1 { font-size: clamp(3.3rem, 11.8vw, 5.2rem); }
  .hero-content .lede { font-size: .95rem; max-width: 34ch; }
  .hero-landscape { object-position: 50% bottom; }
  .hero-hint { left: 20px; }
  .story-navigation, .story-navigation .nav-actions { gap: 8px; }
  .story-navigation .brand img { width: clamp(72px, 20vw, 100px); }
  .story-navigation .nav-toggle, .story-navigation .primary { padding-inline: 8px; }
  .hero-object { width: 230px; left: calc(50% - 115px); bottom: -18%; }
  .statement { padding-block: 65px; }
  .scroll-section { height: 230vh; height: 230svh; }
  .hero { height: 180vh; height: 180svh; }
  .chapter .sticky-stage { grid-template-columns: 1fr; grid-template-rows: .9fr 1.1fr; padding: 24px 20px 74px; gap: 0; }
  .chapter-copy { height: 100%; min-height: 210px; }
  .story-beat { justify-content: start; padding-top: 6px; }
  .story-beat h2 { font-size: clamp(2.2rem, 8vw, 3.4rem); max-width: 16ch; }
  .story-beat .eyebrow { margin-bottom: 12px; font-size: .78rem; }
  .story-beat .lede { margin-top: 14px; font-size: .94rem; max-width: 42ch; }
  .story-beat .text-link { font-size: .85rem; }
  .chapter-visual { width: min(100%, 370px); max-height: 100%; justify-self: center; align-self: end; }
  .chapter-progress { bottom: 20px; right: 20px; }
  .visual-caption { font-size: .68rem; }
  .level-scene { padding: 22px; inset: 3% 0 10%; }
  .level-tower { gap: 10px; margin-top: 18px; height: 44%; }
  .level-result { font-size: 1.1rem; margin-top: 44px; }
  .level-detail { font-size: .8rem; }
  .level-scene { inset: 0 0 5%; }
  .level-panel { padding: 20px; }
  .level-panel .level-top { min-height: 26px; }
  .level-panel .level-heading { font-size: .78rem; }
  .level-panel .level-tower { margin-top: 12px; min-height: 60px; }
  .level-panel .level-result { margin-top: 30px; }
  .level-panel .level-detail { font-size: .78rem; margin-top: 8px; }
  .gate-rule { font-size: .73rem; }
  .featured, .split, .login-layout { grid-template-columns: 1fr; }
  .featured { gap: 35px; }
  .school-graphic { padding: 24px; }
  .school-section .split { gap: 40px; }
  .process { grid-template-columns: 1fr; gap: 24px; }
  .info-grid { grid-template-columns: 1fr; }
  .stats { gap: 16px; }
  .stats strong { font-size: 2rem; }
  .stats span { font-size: .74rem; }
  .subhero { padding-block: 55px 40px; }
  .login-layout { padding-block: 50px; gap: 32px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: start; }
  .mobile-access { display: block; }
  .dialog-header { align-items: start; }
  .dialog-header h2 { font-size: 1.25rem; }
}

@media (max-width: 450px) {
  .wrap { width: calc(100% - 32px); }
  .catalog { grid-template-columns: 1fr; }
  .hero-content .actions { gap: 10px; }
  .hero-content .button { padding-inline: 15px; font-size: .85rem; }
  .hero-content h1 { font-size: 11.7vw; }
  .hero-content .eyebrow { font-size: .77rem; }
  .form-panel { padding: 24px; }
  .stats { grid-template-columns: 1fr; }
  .stats article { display: flex; align-items: center; gap: 18px; }
}

@media (max-height: 650px) and (min-width: 701px) {
  .hero-content { padding-top: 25px; }
  .hero-content h1 { font-size: 13svh; }
  .hero-content .lede { max-width: 58ch; margin-top: 16px; }
  .chapter-copy { height: 300px; }
  .chapter-visual { width: 80%; justify-self: center; }
}
