@font-face {
  font-family: "ANDY Display";
  src: local("Arial Narrow"), local("Roboto Condensed"), local("Impact");
  font-style: normal;
  font-weight: 400 900;
}

:root {
  --ink: #f7fbff;
  --muted: rgba(237, 246, 255, 0.67);
  --night: #050812;
  --night-soft: #09111f;
  --court: #27d9ff;
  --court-deep: #006c9e;
  --sync: #ff3b20;
  --sync-deep: #8d110c;
  --gold: #ffe3a1;
  --line: rgba(255, 255, 255, 0.16);
  --header-height: 84px;
  --mx: 50%;
  --my: 50%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  background: var(--night);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  overflow-x: hidden;
}

body::selection {
  color: var(--night);
  background: var(--gold);
}

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--night);
  background: white;
  transform: translateY(-150%);
}

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

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  color: white;
  background:
    linear-gradient(90deg, rgba(39, 217, 255, 0.08), transparent 45%, rgba(255, 59, 32, 0.09)),
    #03050b;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  animation: boot-exit 0.8s 1.7s forwards;
}

.boot-screen.is-done {
  opacity: 0;
  visibility: hidden;
}

@keyframes boot-exit {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.boot-mark {
  width: min(500px, 78vw);
  text-align: center;
  font-family: "ANDY Display", "Arial Narrow", sans-serif;
  letter-spacing: 0.12em;
}

.boot-mark strong {
  display: block;
  margin: 0.1em 0;
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.045em;
}

.boot-kicker,
.boot-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.52);
}

.boot-line {
  display: block;
  height: 2px;
  margin: 30px 0 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.boot-line i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--court), white, var(--sync));
  transform: translateX(-100%);
  animation: boot-load 1.45s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

@keyframes boot-load {
  to {
    transform: translateX(0);
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, transparent 0 1px, white 1px 2px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
}

.cursor-glow {
  position: fixed;
  left: var(--mx);
  top: var(--my);
  z-index: 2;
  width: 420px;
  height: 420px;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  filter: blur(70px);
  transform: translate(-50%, -50%);
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(3, 5, 11, 0.78), rgba(3, 5, 11, 0));
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  width: max-content;
  font-family: "ANDY Display", "Arial Narrow", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sync);
  box-shadow: 0 0 18px var(--sync);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.36;
    transform: scale(0.72);
  }
}

.brand small {
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: clamp(24px, 4vw, 60px);
  font: 600 0.72rem/1 "ANDY Display", "Arial Narrow", sans-serif;
  letter-spacing: 0.2em;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.64);
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: white;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: white;
}

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

.sound-toggle {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border: 0;
  color: rgba(255, 255, 255, 0.58);
  background: none;
  cursor: pointer;
}

.sound-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.sound-bars i {
  width: 2px;
  height: 4px;
  background: currentColor;
}

.sound-toggle[aria-pressed="true"] .sound-bars i {
  animation: bars 0.8s ease-in-out infinite alternate;
}

.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(2) {
  animation-delay: 0.2s;
}

.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(3) {
  animation-delay: 0.4s;
}

.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(4) {
  animation-delay: 0.1s;
}

@keyframes bars {
  to {
    height: 14px;
  }
}

.sound-label {
  font: 600 0.62rem/1 "ANDY Display", "Arial Narrow", sans-serif;
  letter-spacing: 0.18em;
}

.snap-panel {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
}

.hero {
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #050812;
}

.hero-art {
  position: absolute;
  inset: -4%;
  z-index: -5;
  overflow: hidden;
  transform: scale(1.045);
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  animation: hero-breathe 16s ease-in-out infinite alternate;
}

.hero-art::before {
  right: 46%;
  background-image: url("./assets/chiharu-shida.webp");
  background-position: center 25%;
  filter: saturate(0.82) contrast(1.08);
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}

.hero-art::after {
  left: 46%;
  background-image: url("./assets/andy-hero.webp");
  background-position: right center;
  filter: saturate(1.15) contrast(1.04);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}

@keyframes hero-breathe {
  to {
    transform: scale(1.035);
  }
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at center, transparent 0 10%, rgba(4, 8, 18, 0.18) 48%, rgba(4, 7, 15, 0.76) 100%),
    linear-gradient(90deg, rgba(0, 20, 39, 0.24), rgba(3, 6, 14, 0.24) 45% 55%, rgba(65, 4, 0, 0.28));
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.25;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 9vw 9vw;
  mask-image: linear-gradient(to bottom, transparent, black 30%, transparent);
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(900px, 86vw);
  padding-top: 5vh;
  text-align: center;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.58);
}

.eyebrow,
.section-code {
  margin: 0 0 20px;
  font: 600 0.68rem/1 "ANDY Display", "Arial Narrow", sans-serif;
  letter-spacing: 0.38em;
  color: rgba(255, 255, 255, 0.66);
}

.hero h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  font: 900 clamp(8rem, 25vw, 22rem)/0.66 "ANDY Display", "Arial Narrow", sans-serif;
  letter-spacing: -0.07em;
  transform: scaleX(0.93);
}

.hero h1::before,
.hero h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.hero h1::before {
  color: var(--court);
  transform: translateX(-4px);
}

.hero h1::after {
  color: var(--sync);
  transform: translateX(4px);
}

.hero h1:hover::before,
.hero h1:hover::after {
  animation: glitch 0.36s steps(2, end) 2;
}

@keyframes glitch {
  20%,
  60% {
    opacity: 0.7;
    clip-path: inset(20% 0 55% 0);
  }
  40%,
  80% {
    opacity: 0.45;
    clip-path: inset(58% 0 12% 0);
  }
}

.hero-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero-subtitle i {
  width: 76px;
  height: 1px;
  background: linear-gradient(90deg, var(--court), white, var(--sync));
}

.hero-note {
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  line-height: 1.9;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.dream-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 158px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(5, 8, 18, 0.42);
  backdrop-filter: blur(12px);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.dream-button:hover,
.dream-button:focus-visible {
  transform: translateY(-4px);
}

.court-button:hover,
.court-button:focus-visible {
  border-color: var(--court);
  background: rgba(0, 108, 158, 0.42);
}

.sync-button:hover,
.sync-button:focus-visible {
  border-color: var(--sync);
  background: rgba(141, 17, 12, 0.42);
}

.hero-index {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "ANDY Display", "Arial Narrow", sans-serif;
  transform: translateY(-50%) rotate(-90deg);
}

.hero-index span {
  font-size: 0.7rem;
}

.hero-index b {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
}

.hero-index i {
  width: 58px;
  height: 1px;
  background: currentColor;
}

.left-index {
  left: -35px;
  color: var(--court);
}

.right-index {
  right: -43px;
  color: var(--sync);
}

.trajectory {
  position: absolute;
  z-index: 5;
  top: 19%;
  left: 25%;
  width: 46vw;
  height: 34vh;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(8deg);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
}

.shuttle {
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 20px 5px white;
  animation: shuttle-flight 4.8s ease-in-out infinite;
}

@keyframes shuttle-flight {
  50% {
    left: 100%;
    transform: scale(0.48);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  font: 500 0.55rem/1 "ANDY Display", "Arial Narrow", sans-serif;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.52);
}

.scroll-cue i {
  width: 1px;
  height: 36px;
  background: linear-gradient(white, transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  50% {
    transform: scaleY(0.5);
    transform-origin: top;
  }
}

.world {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 8vw;
  padding: calc(var(--header-height) + 7vh) 10vw 7vh;
}

.world-number {
  position: absolute;
  right: 4vw;
  bottom: -0.22em;
  z-index: -1;
  font: 900 clamp(18rem, 46vw, 48rem)/0.8 "ANDY Display", "Arial Narrow", sans-serif;
  opacity: 0.035;
  letter-spacing: -0.08em;
}

.world-copy {
  position: relative;
  z-index: 4;
}

.world h2 {
  margin: 0;
  font-family: "ANDY Display", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.04em;
}

.world h2 span {
  display: block;
}

.world h2 span:first-child {
  font-size: clamp(5.4rem, 13vw, 12rem);
}

.world h2 span:last-child {
  margin-top: 0.14em;
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.04em;
}

.world-lead {
  margin: 38px 0 0;
  max-width: 610px;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  line-height: 1.95;
  letter-spacing: 0.06em;
}

.trait-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trait-row span {
  min-width: 100px;
  padding: 10px 13px;
  border: 1px solid currentColor;
  text-align: center;
  font: 600 0.62rem/1 "ANDY Display", "Arial Narrow", sans-serif;
  letter-spacing: 0.22em;
}

.world-court {
  color: #eafdff;
  background:
    linear-gradient(115deg, rgba(2, 30, 48, 0.98), rgba(4, 9, 20, 0.95)),
    #06101b;
}

.world-court::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.23;
  background-image: url("./assets/chiharu-shida.webp");
  background-position: center 28%;
  background-size: cover;
  filter: saturate(0.8) contrast(1.1);
  mask-image: linear-gradient(90deg, transparent, black 35%, transparent 96%);
}

.world-court .section-code,
.world-court .trait-row {
  color: var(--court);
}

.court-lines {
  position: absolute;
  right: -9%;
  bottom: -24%;
  width: 64vw;
  height: 72vh;
  border: 2px solid rgba(39, 217, 255, 0.28);
  transform: perspective(640px) rotateX(63deg) rotateZ(-8deg);
}

.court-lines::before,
.court-lines::after {
  content: "";
  position: absolute;
  background: rgba(39, 217, 255, 0.25);
}

.court-lines::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
}

.court-lines::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
}

.quote-card,
.scoreboard,
.sync-console {
  position: relative;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(3, 8, 16, 0.52);
  backdrop-filter: blur(18px);
}

.quote-card {
  align-self: end;
  max-width: 420px;
  margin-bottom: 10vh;
  padding: 44px;
}

.quote-mark {
  position: absolute;
  top: -18px;
  left: 28px;
  font: 900 5rem/1 serif;
  color: var(--court);
}

.quote-card p {
  margin: 0 0 24px;
  font-size: 1.2rem;
  line-height: 1.85;
}

.quote-card small {
  font: 600 0.62rem/1 "ANDY Display", "Arial Narrow", sans-serif;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.scoreboard {
  position: absolute;
  top: 18%;
  right: 6vw;
  width: 190px;
  padding: 18px;
  color: var(--court);
  font-family: "ANDY Display", "Arial Narrow", sans-serif;
}

.scoreboard small {
  display: block;
  margin-bottom: 11px;
  letter-spacing: 0.2em;
}

.scoreboard div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid rgba(39, 217, 255, 0.24);
}

.scoreboard b {
  font-size: 1.6rem;
}

.world-sync {
  color: #fff6f2;
  background:
    radial-gradient(circle at 74% 44%, rgba(255, 59, 32, 0.24), transparent 22%),
    linear-gradient(115deg, rgba(56, 5, 4, 0.97), rgba(8, 5, 11, 0.96)),
    #130504;
}

.world-sync::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
  background-image: url("./assets/andy-hero.webp");
  background-position: right center;
  background-size: cover;
  filter: saturate(1.25) contrast(1.1);
  mask-image: linear-gradient(270deg, black, transparent 72%);
}

.world-sync .section-code,
.world-sync .trait-row {
  color: var(--sync);
}

.warning-stripe {
  position: absolute;
  top: 0;
  right: 0;
  width: 16vw;
  height: 100%;
  opacity: 0.12;
  background: repeating-linear-gradient(
    -45deg,
    var(--sync) 0 14px,
    transparent 14px 30px
  );
}

.sync-rings {
  position: absolute;
  right: 12%;
  top: 50%;
  width: min(44vw, 680px);
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.sync-rings i {
  position: absolute;
  inset: calc(var(--ring, 0) * 12%);
  border: 1px solid rgba(255, 59, 32, calc(0.46 - var(--ring, 0) * 0.1));
  border-radius: 50%;
  animation: ring-spin calc(14s + var(--ring, 0) * 7s) linear infinite;
}

.sync-rings i:nth-child(1) {
  --ring: 0;
  border-style: dashed;
}

.sync-rings i:nth-child(2) {
  --ring: 1;
  animation-direction: reverse;
}

.sync-rings i:nth-child(3) {
  --ring: 2;
  border-style: dotted;
}

.sync-rings i::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sync);
  box-shadow: 0 0 18px var(--sync);
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.sync-console {
  justify-self: end;
  width: min(420px, 100%);
  padding: 34px;
  font-family: "ANDY Display", "Arial Narrow", sans-serif;
}

.sync-console > span,
.sync-console > p {
  display: block;
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.55);
}

.sync-console strong {
  display: inline-block;
  margin: 20px 0 14px;
  font-size: clamp(6rem, 12vw, 10rem);
  line-height: 0.7;
  color: var(--sync);
  text-shadow: 0 0 34px rgba(255, 59, 32, 0.42);
}

.sync-console > small {
  font-size: 2rem;
  color: var(--sync);
}

.sync-meter {
  height: 3px;
  margin: 20px 0 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.sync-meter i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--sync);
  box-shadow: 0 0 14px var(--sync);
  transform: scaleX(0);
  transform-origin: left;
}

.sync-console.is-visible .sync-meter i {
  animation: sync-fill 2s ease-out forwards;
}

@keyframes sync-fill {
  to {
    transform: scaleX(1);
  }
}

.wish {
  display: grid;
  place-items: center;
  padding: calc(var(--header-height) + 6vh) 7vw 9vh;
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(circle at center, rgba(255, 227, 161, 0.13), transparent 34%),
    linear-gradient(130deg, #071827, #080710 50%, #210806);
}

.wish::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, 0.09) 50%, transparent 50.1%),
    linear-gradient(transparent 49.9%, rgba(255, 255, 255, 0.09) 50%, transparent 50.1%);
  background-size: 100px 100px;
  mask-image: radial-gradient(circle, black, transparent 70%);
}

.wish-copy {
  position: relative;
  z-index: 4;
}

.wish-copy .section-code {
  color: var(--gold);
}

.wish-copy h2 {
  margin: 0 0 36px;
  font-size: clamp(3.6rem, 9vw, 8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.wish-copy > p:not(.section-code) {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  line-height: 2.05;
  color: rgba(255, 255, 255, 0.78);
}

.wish-copy strong {
  display: block;
  margin-top: 40px;
  font: 700 clamp(0.9rem, 1.7vw, 1.3rem)/1 "ANDY Display", "Arial Narrow", sans-serif;
  letter-spacing: 0.26em;
  color: var(--gold);
}

.wish-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(82vw, 980px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.wish-orbit i {
  position: absolute;
  inset: calc(var(--n) * 9%);
  border: 1px solid rgba(255, 255, 255, calc(0.13 - var(--n) * 0.02));
  border-radius: 50%;
  transform: rotate(calc(var(--n) * 24deg)) scaleY(calc(0.36 + var(--n) * 0.08));
}

.wish-orbit i:nth-child(1) {
  --n: 0;
}

.wish-orbit i:nth-child(2) {
  --n: 1;
}

.wish-orbit i:nth-child(3) {
  --n: 2;
}

.wish-signature {
  position: absolute;
  right: 4vw;
  bottom: 10vh;
  display: flex;
  flex-direction: column;
  text-align: right;
  font-family: "ANDY Display", "Arial Narrow", sans-serif;
}

.wish-signature span,
.wish-signature small {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.wish-signature b {
  font-size: 2.6rem;
  letter-spacing: 0.08em;
}

.site-footer {
  position: absolute;
  right: 4vw;
  bottom: 24px;
  left: 4vw;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.62rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.42);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  flex: none;
  font-family: "ANDY Display", "Arial Narrow", sans-serif;
  letter-spacing: 0.16em;
}

.mode-rail {
  position: fixed;
  z-index: 180;
  right: 18px;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.48);
  transform: translateY(-50%);
  font: 600 0.55rem/1 "ANDY Display", "Arial Narrow", sans-serif;
}

.mode-rail i {
  position: relative;
  width: 2px;
  height: 88px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.mode-rail i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--court), white, var(--sync));
  transform: scaleY(var(--scroll-progress, 0));
  transform-origin: top;
}

.screen-reader-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 22px;
  }

  .main-nav {
    display: none;
  }

  .hero-art {
    inset: -2%;
  }

  .hero-copy {
    padding-top: 12vh;
  }

  .hero h1 {
    font-size: clamp(7rem, 33vw, 14rem);
  }

  .hero-note {
    max-width: 560px;
    padding: 0 18px;
  }

  .hero-index,
  .trajectory {
    display: none;
  }

  .world {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: calc(var(--header-height) + 7vh) 9vw 8vh;
  }

  .quote-card,
  .sync-console {
    justify-self: end;
    align-self: end;
    margin: 0;
  }

  .scoreboard {
    top: auto;
    right: 6vw;
    bottom: 5vh;
    opacity: 0.6;
  }

  .sync-rings {
    right: -10%;
    width: 74vw;
  }

  .wish-signature {
    display: none;
  }
}

@media (max-width: 620px) {
  .brand small,
  .sound-label,
  .mode-rail {
    display: none;
  }

  .site-header {
    min-height: 64px;
  }

  .hero-art {
    inset: 0;
  }

  .hero-art::before {
    right: 42%;
    background-position: 54% center;
  }

  .hero-art::after {
    left: 42%;
    background-position: 77% center;
  }

  .hero-wash {
    background:
      linear-gradient(180deg, rgba(3, 6, 14, 0.18), rgba(3, 6, 14, 0.52) 55%, rgba(3, 6, 14, 0.9)),
      linear-gradient(90deg, rgba(0, 20, 39, 0.2), rgba(65, 4, 0, 0.2));
  }

  .hero-copy {
    align-self: end;
    width: 100%;
    padding: 0 18px 15vh;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: min(34vw, 10rem);
  }

  .hero-subtitle {
    gap: 10px;
    margin-top: 26px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .hero-subtitle i {
    width: 28px;
  }

  .hero-note {
    font-size: 0.72rem;
  }

  .hero-actions {
    gap: 8px;
  }

  .dream-button {
    min-width: 0;
    width: 50%;
    font-size: 0.68rem;
  }

  .scroll-cue {
    display: none;
  }

  .world {
    align-content: center;
    min-height: 100svh;
    padding: 86px 24px 40px;
  }

  .world h2 span:first-child {
    font-size: 22vw;
  }

  .world h2 span:last-child {
    font-size: 11vw;
  }

  .world-lead {
    margin-top: 24px;
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .trait-row {
    gap: 7px;
    margin-top: 24px;
  }

  .trait-row span {
    min-width: 0;
    flex: 1;
    padding: 9px 5px;
    font-size: 0.52rem;
  }

  .quote-card {
    width: 86%;
    padding: 28px;
  }

  .quote-card p {
    font-size: 0.95rem;
  }

  .scoreboard {
    display: none;
  }

  .sync-console {
    width: 82%;
    padding: 24px;
  }

  .sync-console strong {
    font-size: 5.6rem;
  }

  .wish {
    padding: 88px 24px 110px;
  }

  .wish-copy h2 {
    font-size: 15vw;
  }

  .wish-copy > p:not(.section-code) {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .wish-copy strong {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .site-footer {
    display: block;
    text-align: center;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .cursor-glow,
  #starfield {
    display: none;
  }
}
