:root {
  --ink: #061229;
  --navy: #031a42;
  --blue: #005bd8;
  --electric: #00c7ff;
  --cream: #fff1c6;
  --gold: #ffb313;
  --red: #ee3346;
  --wood: #b75b20;
  --paper: #f7f4e8;
  --white: #ffffff;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: "Trebuchet MS", "Avenir Next", Arial, sans-serif;
  --utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --site-gutter: clamp(1.15rem, 4vw, 4rem);
  --content: 1180px;
  --line: rgba(0, 199, 255, 0.34);
  --shadow: 0 28px 80px rgba(0, 10, 35, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--navy);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--cream);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 4.75rem;
  padding: 0.6rem var(--site-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--white);
  background: rgba(3, 19, 50, 0.92);
  border-bottom: 1px solid rgba(0, 199, 255, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.92rem;
  line-height: 0.9;
  letter-spacing: 0.07em;
}

.brand img {
  width: 2.6rem;
  border-radius: 0.68rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 6px 20px rgba(0,0,0,.3);
}

.brand b {
  color: var(--electric);
  font-weight: inherit;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(0.65rem, 1.6vw, 1.5rem);
}

.site-nav a {
  position: relative;
  color: rgba(255,255,255,.76);
  text-decoration: none;
  font-family: var(--utility);
  font-size: clamp(0.62rem, .82vw, .76rem);
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -0.42rem;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--electric);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
}

.site-main {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.site-main::before {
  position: absolute;
  z-index: 3;
  top: 44rem;
  bottom: 0;
  left: 50%;
  width: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--electric) 4%, rgba(0,199,255,.12) 95%, transparent);
  box-shadow: 0 0 14px var(--electric);
  opacity: .42;
}

.section-shell {
  position: relative;
  padding: clamp(5.5rem, 10vw, 9rem) var(--site-gutter);
}

.section-heading {
  position: relative;
  z-index: 4;
  max-width: var(--content);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(16rem, .75fr);
  align-items: end;
  column-gap: clamp(2rem, 8vw, 8rem);
}

.section-heading .section-kicker,
.section-heading h2 {
  grid-column: 1;
}

.section-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0 0 .7rem;
  color: rgba(6,18,41,.7);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.section-heading--light > p:last-child {
  color: rgba(255,255,255,.68);
}

.section-kicker {
  margin: 0 0 .8rem;
  color: var(--blue);
  font-family: var(--utility);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .018em;
  line-height: .88;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(3rem, 7vw, 6.8rem);
}

.hero {
  position: relative;
  min-height: min(64rem, 100svh);
  padding: clamp(8.5rem, 16vh, 11rem) var(--site-gutter) 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(21rem, .8fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 8rem);
  color: var(--white);
  background:
    radial-gradient(circle at 70% 42%, rgba(0,199,255,.24), transparent 25%),
    linear-gradient(115deg, rgba(0,91,216,.16), transparent 45%),
    var(--navy);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.88%, rgba(255,255,255,.18) 50%, transparent 50.12%),
    repeating-linear-gradient(90deg, rgba(0,199,255,.045) 0 1px, transparent 1px 11.111%);
}

.lane-rails i {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: clamp(2.2rem, 5vw, 5.5rem);
  background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,91,216,.3), rgba(0,199,255,.13));
  border: solid rgba(0,199,255,.45);
  border-width: 0 1px;
  box-shadow: inset 0 0 22px rgba(0,0,0,.65);
}

.lane-rails {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.lane-rails i:first-child { left: 0; }
.lane-rails i:last-child { right: 0; transform: scaleX(-1); }

.hero__copy,
.hero__visual {
  position: relative;
  z-index: 4;
}

.hero__copy {
  max-width: 48rem;
  justify-self: end;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 2rem;
}

.eyebrow span {
  padding: .35rem .62rem;
  color: var(--cream);
  border: 1px solid rgba(255,241,198,.32);
  font-family: var(--utility);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero__logo {
  width: clamp(12rem, 27vw, 24rem);
  margin: 0 0 1rem -1.6rem;
  filter: drop-shadow(0 16px 18px rgba(0,0,0,.34));
}

.hero h1 {
  font-size: clamp(4rem, 6.4vw, 8rem);
  text-shadow: 0 .08em 0 rgba(0,0,0,.22);
}

.hero h1 em,
.final-frame h2 em {
  color: var(--gold);
  font-style: normal;
  -webkit-text-stroke: 1px rgba(255,255,255,.16);
}

.hero__lede {
  max-width: 38rem;
  margin: 1.8rem 0 2.4rem;
  color: rgba(255,255,255,.75);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 3.3rem;
  padding: .8rem 1.25rem;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--utility);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  box-shadow: .42rem .42rem 0 rgba(0,199,255,.76);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button--primary {
  background: var(--gold);
}

.button:hover {
  transform: translate(.2rem, .2rem);
  box-shadow: .22rem .22rem 0 rgba(0,199,255,.76);
}

.text-link {
  color: var(--white);
  text-decoration-color: var(--electric);
  text-underline-offset: .35rem;
  font-weight: 800;
}

.text-link span { color: var(--electric); }
.text-link--dark { color: var(--ink); }

.hero__visual {
  justify-self: start;
  width: min(100%, 30rem);
  transform: rotate(2.5deg);
}

.phone-frame {
  position: relative;
  padding: .8rem;
  overflow: hidden;
  background: #071020;
  border: .22rem solid rgba(255,255,255,.82);
  border-radius: clamp(2rem, 5vw, 3.4rem);
  box-shadow: 0 3rem 5rem rgba(0,0,0,.48), 0 0 0 .65rem rgba(0,199,255,.12);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 720 / 1565;
  object-fit: cover;
  border-radius: clamp(1.35rem, 4vw, 2.5rem);
}

.phone-frame__speaker {
  position: absolute;
  z-index: 2;
  top: 1.2rem;
  left: 50%;
  width: 24%;
  height: .45rem;
  transform: translateX(-50%);
  background: #020711;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,.2);
}

.shot-readout {
  position: absolute;
  right: -1.7rem;
  bottom: 12%;
  width: 8.5rem;
  padding: .7rem .8rem;
  color: var(--cream);
  background: rgba(3,26,66,.94);
  border: 1px solid var(--electric);
  font-family: var(--utility);
  font-size: .64rem;
  letter-spacing: .1em;
  transform: rotate(-2.5deg);
}

.shot-readout span,
.shot-readout strong { display: block; }
.shot-readout strong { color: var(--electric); font-size: .85rem; }
.shot-readout i { display: block; height: 2px; margin-top: .5rem; background: var(--electric); box-shadow: 0 0 8px var(--electric); }

.hero__scroll {
  position: absolute;
  z-index: 4;
  left: var(--site-gutter);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255,255,255,.5);
  font-family: var(--utility);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero__scroll span {
  width: 2.7rem;
  height: 1px;
  background: var(--electric);
  box-shadow: 0 0 8px var(--electric);
}

.control-sequence {
  background: var(--cream);
}

.control-sequence::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: .55rem;
  content: "";
  background: repeating-linear-gradient(90deg, var(--gold) 0 2rem, var(--ink) 2rem 2.6rem);
}

.control-strip {
  position: relative;
  z-index: 4;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  border: 2px solid var(--ink);
  box-shadow: .8rem .8rem 0 var(--blue);
}

.control-strip li {
  position: relative;
  min-height: 23rem;
  padding: 1.4rem clamp(1.3rem, 3vw, 2.4rem) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,.24);
  border-right: 2px solid var(--ink);
}

.control-strip li:last-child { border-right: 0; }

.control-strip__number {
  font-family: var(--utility);
  font-size: .7rem;
  font-weight: 900;
}

.control-strip h3 {
  margin: 0 0 .35rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
}

.control-strip p { margin: 0; color: rgba(6,18,41,.68); }

.control-strip__dial {
  position: relative;
  width: clamp(7.5rem, 11vw, 10rem);
  aspect-ratio: 1;
  margin: auto;
  border: 1.2rem solid var(--blue);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 2px var(--ink);
}

.control-strip__dial::before,
.control-strip__dial::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.control-strip__dial::before { width: 80%; height: 2px; }
.control-strip__dial::after { width: 2px; height: 80%; }

.control-strip__dial i {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 46%;
  height: .35rem;
  background: var(--red);
  transform-origin: left center;
  transform: rotate(-42deg);
}

.control-strip__dial i::after {
  position: absolute;
  right: -.4rem;
  top: -.28rem;
  width: .9rem;
  aspect-ratio: 1;
  content: "";
  background: var(--red);
  border-radius: 50%;
}

.control-strip__dial--spin i { transform: rotate(32deg); }
.control-strip__dial--power { border-color: var(--gold); }
.control-strip__dial--power i { transform: rotate(-5deg); background: var(--blue); }
.control-strip__dial--power i::after { background: var(--blue); }

.pin-rules {
  background: var(--paper);
}

.pin-rules__intro {
  position: relative;
  z-index: 4;
  max-width: 53rem;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.pin-ledger {
  position: relative;
  z-index: 4;
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(6,18,41,.28);
  border-bottom: 1px solid rgba(6,18,41,.28);
}

.pin-entry {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-right: 1px solid rgba(6,18,41,.28);
}

.pin-entry:last-child { border-right: 0; }
.pin-entry__status { margin: 1.8rem 0 .35rem; color: var(--blue); font-family: var(--utility); font-size: .68rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.pin-entry h3 { margin: 0 0 .65rem; font-family: var(--display); font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; letter-spacing: .025em; line-height: 1; text-transform: uppercase; }
.pin-entry > p:last-child { margin: 0; color: rgba(6,18,41,.67); }
.pin-entry--danger .pin-entry__status { color: var(--red); }

.pin-symbol {
  position: relative;
  width: clamp(5.8rem, 8vw, 8rem);
  height: 12rem;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.pin-symbol img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 .85rem .7rem rgba(6,18,41,.2));
}

.pin-entry--target .pin-symbol::after {
  position: absolute;
  inset: 40% -1rem -1rem;
  content: "";
  background: radial-gradient(ellipse, rgba(0,199,255,.45), transparent 64%);
  border-bottom: 2px solid var(--electric);
  border-radius: 50%;
}

.chapters {
  color: var(--white);
  background: var(--navy);
}

.chapters::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(0,199,255,.055) calc(12.5% - 1px) 12.5%);
}

.chapters__header {
  position: relative;
  z-index: 4;
  max-width: var(--content);
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.45fr .65fr;
  align-items: end;
  gap: 3rem;
}

.chapters .section-kicker { color: var(--electric); }
.chapters__header > p { margin: 0 0 .4rem; color: rgba(255,255,255,.68); }

.chapter-track {
  position: relative;
  z-index: 4;
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}

.chapter {
  position: relative;
  min-height: 25rem;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
}

.chapter--sunset { background: linear-gradient(160deg, #ffb313, #b6312a 57%, #181c49); }
.chapter--neon { background: linear-gradient(160deg, #00c7ff, #005bd8 48%, #160842); }
.chapter--hall { background: linear-gradient(160deg, #f5df9d, #a55f1c 50%, #3e1208); }

.chapter__index {
  position: relative;
  z-index: 2;
  font-family: var(--utility);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.chapter__copy { position: relative; z-index: 2; }
.chapter__copy p { margin: 0 0 .45rem; font-family: var(--utility); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.chapter__copy h3 { margin: 0; font-family: var(--display); font-size: clamp(3rem, 5vw, 5rem); font-weight: 400; letter-spacing: .025em; line-height: .82; text-transform: uppercase; }
.chapter__copy span { display: block; margin-top: .7rem; font-weight: 800; }

.chapter__horizon {
  position: absolute;
  inset: 0;
  opacity: .5;
  background:
    linear-gradient(74deg, transparent 49.6%, rgba(255,255,255,.4) 50%, transparent 50.4%),
    linear-gradient(-74deg, transparent 49.6%, rgba(255,255,255,.4) 50%, transparent 50.4%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,.42));
  transform: translateY(-8%);
}

.star-rule {
  position: relative;
  z-index: 4;
  max-width: var(--content);
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,.25);
}

.star-rule__stars { color: var(--gold); font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: .14em; }
.star-rule p { max-width: 36rem; margin: 0; color: rgba(255,255,255,.68); }
.star-rule b { color: var(--white); }

.lane-lab {
  color: var(--white);
  background:
    linear-gradient(rgba(3,26,66,.86), rgba(3,26,66,.92)),
    repeating-linear-gradient(90deg, #8f431b 0 4%, #c36c2a 4% 8%);
}

.lane-lab .section-kicker { color: var(--gold); }

.obstacle-diagram {
  position: relative;
  z-index: 4;
  max-width: var(--content);
  min-height: 24rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 4rem;
}

.obstacle {
  position: relative;
  z-index: 2;
  align-self: stretch;
  padding: 2rem 0;
  display: grid;
  grid-template-rows: auto 8rem 1fr;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.25);
}

.obstacle span { font-family: var(--display); font-size: clamp(2rem, 3.2vw, 3.3rem); letter-spacing: .025em; line-height: .9; text-transform: uppercase; }
.obstacle p { max-width: 16rem; margin: 0; color: rgba(255,255,255,.62); }
.obstacle i { position: relative; display: block; align-self: center; }
.obstacle--wall i { width: 80%; height: 1.1rem; background: var(--electric); border: 3px solid white; box-shadow: 0 0 20px var(--electric); transform: rotate(-12deg); }
.obstacle--gate i { width: 70%; height: 6rem; margin: auto; border: 1rem solid var(--gold); border-top: 0; box-shadow: 0 0 22px rgba(255,179,19,.55); }
.obstacle--block i { width: 6rem; height: 4.2rem; margin: auto; background: repeating-linear-gradient(0deg, #8b4015 0 .45rem, #d18038 .45rem .9rem); border: .3rem solid #f1ba72; transform: rotate(8deg); }

.obstacle-path {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.obstacle-path path {
  fill: none;
  stroke: var(--electric);
  stroke-width: 3;
  stroke-dasharray: .018 .012;
  filter: drop-shadow(0 0 8px var(--electric));
}

.progress-board {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(28rem, 1.2fr);
  gap: clamp(3rem, 8vw, 9rem);
  background: var(--cream);
}

.progress-board__copy,
.progress-board__rows {
  position: relative;
  z-index: 4;
}

.progress-board__copy { max-width: 34rem; justify-self: end; }
.progress-board__copy h2 { font-size: clamp(3.3rem, 6.3vw, 6.5rem); }
.progress-board__copy > p:not(.section-kicker) { margin: 1.8rem 0; color: rgba(6,18,41,.7); font-size: 1.08rem; }

.progress-board__rows {
  align-self: center;
  display: grid;
  border-top: 2px solid var(--ink);
}

.progress-board__rows article {
  position: relative;
  min-height: 7rem;
  padding: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: minmax(8rem, .5fr) 1fr;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(6,18,41,.28);
}

.progress-board__rows span { font-family: var(--utility); font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.progress-board__rows strong { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.15; }
.progress-board__rows i { position: absolute; left: 0; bottom: .7rem; width: 100%; height: .25rem; background: rgba(6,18,41,.13); }
.progress-board__rows i::after { display: block; width: var(--fill); height: 100%; content: ""; background: linear-gradient(90deg, var(--blue), var(--electric)); box-shadow: 0 0 9px rgba(0,199,255,.6); }

.screens {
  color: var(--white);
  background: #020b1e;
}

.screens::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, rgba(0,91,216,.28), transparent 40%);
}

.screens__header {
  position: relative;
  z-index: 4;
  max-width: var(--content);
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 4rem;
}

.screens .section-kicker { color: var(--electric); }
.screens__header > p:last-child { margin: 0; color: rgba(255,255,255,.62); }

.screen-runway {
  position: relative;
  z-index: 4;
  max-width: 90rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  gap: clamp(.7rem, 1.5vw, 1.4rem);
}

.screen-card { margin: 0; }
.screen-card--home { grid-column: 1 / span 2; margin-top: 8rem; }
.screen-card--levels { grid-column: 3 / span 2; margin-top: 3rem; }
.screen-card--game { grid-column: 5 / span 4; }
.screen-card--tasks { grid-column: 9 / span 2; margin-top: 3rem; }
.screen-card--shop { grid-column: 11 / span 2; margin-top: 8rem; }

.screen-card img {
  width: 100%;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: clamp(.8rem, 2vw, 1.5rem);
  box-shadow: 0 2rem 4rem rgba(0,0,0,.52), 0 0 0 .35rem rgba(0,91,216,.18);
}

.screen-card--game img { aspect-ratio: 720/1565; object-fit: cover; }
.screen-card figcaption { margin-top: 1rem; color: rgba(255,255,255,.66); font-family: var(--utility); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.screen-card figcaption span { color: var(--electric); }

.final-frame {
  min-height: 46rem;
  display: grid;
  grid-template-columns: minmax(14rem, .6fr) minmax(24rem, 1.1fr) minmax(14rem, .55fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  color: var(--white);
  background: linear-gradient(115deg, #073b96, var(--navy) 52%, #03122f);
}

.final-frame > * { position: relative; z-index: 4; }
.final-frame__mark { align-self: stretch; min-height: 28rem; }
.final-frame__mark::before,
.final-frame__mark::after { position: absolute; left: 50%; content: ""; transform: translateX(-50%); }
.final-frame__mark::before { top: 0; bottom: 0; width: 1px; background: var(--electric); box-shadow: 0 0 14px var(--electric); }
.final-frame__mark::after { top: 43%; width: 4rem; aspect-ratio: 1; border: 3px solid var(--electric); border-radius: 50%; box-shadow: 0 0 20px var(--electric); }
.final-frame__mark span { position: absolute; z-index: 2; top: calc(43% + 1.55rem); left: 50%; width: .9rem; aspect-ratio: 1; background: var(--gold); border-radius: 50%; box-shadow: 0 0 12px var(--gold); transform: translate(-50%, -50%); }
.final-frame .section-kicker { color: var(--electric); }
.final-frame h2 { font-size: clamp(4rem, 8vw, 8.5rem); }
.final-frame p:last-child { max-width: 30rem; color: rgba(255,255,255,.68); font-size: 1.08rem; }
.final-frame > img { width: min(100%, 15rem); border-radius: 25%; box-shadow: var(--shadow), 0 0 0 .55rem rgba(0,199,255,.16); transform: rotate(4deg); }

.site-footer {
  padding: 2.5rem var(--site-gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  color: rgba(255,255,255,.62);
  background: #010718;
  border-top: 1px solid rgba(0,199,255,.24);
  font-size: .78rem;
}

.site-footer__brand { display: flex; align-items: center; gap: .8rem; }
.site-footer__brand img { width: 3rem; border-radius: .7rem; }
.site-footer__brand p { margin: 0; }
.site-footer__brand b,
.site-footer__brand span { display: block; }
.site-footer__brand b { color: var(--white); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.site-footer a { color: rgba(255,255,255,.76); text-underline-offset: .3rem; }
.site-footer__note { margin: 0; text-align: right; }
.site-footer__contact { display: inline-block; margin-top: .35rem; }
.site-footer__contact a { color: var(--white); }

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(1.8rem);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.8,.2,1);
}

.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .site-header { min-height: 4.25rem; }

  .nav-toggle {
    position: relative;
    z-index: 2;
    width: 3.5rem;
    height: 3rem;
    padding: .65rem;
    display: grid;
    align-content: center;
    gap: .4rem;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
    cursor: pointer;
  }

  .nav-toggle__line { width: 100%; height: 2px; background: var(--electric); transition: transform 180ms ease; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

  .site-nav {
    position: absolute;
    top: 100%;
    right: var(--site-gutter);
    width: min(22rem, calc(100vw - 2 * var(--site-gutter)));
    padding: 1rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    color: var(--white);
    background: rgba(3,19,50,.98);
    border: 1px solid var(--electric);
    box-shadow: var(--shadow);
  }

  .site-header[data-menu-open] .site-nav { display: flex; }
  .site-header[data-menu-open] .nav-toggle__line:first-child { transform: translateY(.2rem) rotate(45deg); }
  .site-header[data-menu-open] .nav-toggle__line:nth-child(2) { transform: translateY(-.2rem) rotate(-45deg); }
  .site-nav a { padding: .85rem .7rem; font-size: .75rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav a:last-child { border-bottom: 0; }

  .hero { grid-template-columns: 1fr .72fr; gap: 3rem; }
  .hero__logo { margin-left: -.8rem; }
  .control-strip li { min-height: 21rem; }
  .chapter__copy h3 { font-size: 3.2rem; }
  .progress-board { grid-template-columns: .8fr 1.2fr; gap: 3rem; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer nav { justify-content: flex-end; }
  .site-footer__note { grid-column: 1 / -1; text-align: center; }
}

@media (max-width: 800px) {
  .site-main::before { display: none; }
  .section-shell { padding-block: 5rem; }
  .section-heading,
  .chapters__header,
  .screens__header { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-heading .section-kicker,
  .section-heading h2,
  .section-heading > p:last-child { grid-column: 1; grid-row: auto; }

  .hero {
    min-height: auto;
    padding-top: 8.5rem;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy { justify-self: center; }
  .eyebrow,
  .hero__actions { justify-content: center; }
  .hero__logo { margin-inline: auto; }
  .hero__lede { margin-inline: auto; }
  .hero__visual { width: min(82vw, 27rem); justify-self: center; }
  .hero__scroll { display: none; }

  .control-strip { grid-template-columns: 1fr; box-shadow: .5rem .5rem 0 var(--blue); }
  .control-strip li { min-height: 0; display: grid; grid-template-columns: auto 7.5rem 1fr; align-items: center; border-right: 0; border-bottom: 2px solid var(--ink); }
  .control-strip li:last-child { border-bottom: 0; }
  .control-strip__dial { width: 6rem; }

  .pin-ledger { grid-template-columns: 1fr; }
  .pin-entry { display: grid; grid-template-columns: 7rem 1fr; grid-template-rows: auto auto 1fr; column-gap: 1.5rem; border-right: 0; border-bottom: 1px solid rgba(6,18,41,.28); }
  .pin-entry:last-child { border-bottom: 0; }
  .pin-symbol { grid-row: 1 / span 3; }
  .pin-entry__status { margin-top: 0; }

  .chapter-track { grid-template-columns: 1fr; }
  .chapter { min-height: 19rem; }
  .chapter__copy h3 { font-size: clamp(3.4rem, 13vw, 5.5rem); }

  .obstacle-diagram { grid-template-columns: 1fr; gap: 0; }
  .obstacle { min-height: 14rem; grid-template-columns: 1fr 8rem; grid-template-rows: auto 1fr; }
  .obstacle p { grid-column: 1; }
  .obstacle i { grid-column: 2; grid-row: 1 / span 2; }
  .obstacle-path { display: none; }

  .progress-board { grid-template-columns: 1fr; }
  .progress-board__copy { max-width: 44rem; justify-self: start; }

  .screen-runway { grid-template-columns: repeat(6, minmax(9rem, 1fr)); overflow-x: auto; padding: 1rem 1rem 3rem; margin-inline: calc(-1 * var(--site-gutter)); scroll-snap-type: x mandatory; }
  .screen-card,
  .screen-card--home,
  .screen-card--levels,
  .screen-card--game,
  .screen-card--tasks,
  .screen-card--shop { grid-column: span 2; margin-top: 0; scroll-snap-align: center; }
  .screen-card--game { grid-column: span 3; }

  .final-frame { min-height: 40rem; grid-template-columns: 5rem 1fr; }
  .final-frame > img { grid-column: 2; width: 9rem; }
  .final-frame__mark { grid-row: 1 / span 2; min-height: 28rem; }

  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer__brand { justify-content: center; }
  .site-footer nav { justify-content: center; }
}

@media (max-width: 520px) {
  .brand span { display: none; }
  .hero h1 { font-size: clamp(3.7rem, 20vw, 5.7rem); }
  .hero__visual { width: min(88vw, 25rem); }
  .shot-readout { right: -.5rem; }
  h2 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .control-strip li { grid-template-columns: 2rem 5.6rem 1fr; padding-inline: 1rem; }
  .control-strip__dial { width: 4.8rem; border-width: .75rem; }
  .control-strip h3 { font-size: 2.3rem; }
  .pin-entry { grid-template-columns: 5rem 1fr; padding-inline: 1rem; }
  .pin-symbol { width: 4rem; height: 7rem; transform: scale(.78); transform-origin: top center; }
  .star-rule { align-items: flex-start; flex-direction: column; }
  .obstacle { grid-template-columns: 1fr 6rem; }
  .progress-board__rows article { grid-template-columns: 1fr; gap: .35rem; }
  .screen-runway { grid-template-columns: repeat(5, minmax(68vw, 1fr)); }
  .screen-card,
  .screen-card--home,
  .screen-card--levels,
  .screen-card--game,
  .screen-card--tasks,
  .screen-card--shop { grid-column: span 1; }
  .final-frame { grid-template-columns: 2.5rem 1fr; gap: 1.2rem; }
  .final-frame__mark::after { width: 2.5rem; }
  .final-frame__mark span { top: calc(43% + .8rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header { position: static; color: var(--ink); background: white; }
  .site-nav { display: none; }
  .site-main::before { display: none; }
}
