@font-face {
  font-family: "Kiwi Maru";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/kiwi-maru-400.ttf") format("truetype");
}

@font-face {
  font-family: "Kiwi Maru";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/kiwi-maru-500.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --bg: #030612;
  --ink: #f7f3ea;
  --muted: rgba(247, 243, 234, 0.68);
  --soft: rgba(247, 243, 234, 0.13);
  --line: rgba(247, 243, 234, 0.16);
  --gold: #f4c86b;
  --violet: #7b49ff;
  --blue: #46a7ff;
  --rose: #ff6fa7;
  --scroll: 0;
  --mouse-x: 50vw;
  --mouse-y: 50vh;
  --font-display: "Kiwi Maru", "Songti SC", STSong, SimSun, serif;
  --font-body: "Kiwi Maru", "Songti SC", STSong, SimSun, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(123, 73, 255, 0.22), transparent 19rem),
    radial-gradient(circle at 84% 10%, rgba(244, 200, 107, 0.16), transparent 28rem),
    linear-gradient(180deg, #050717 0%, #09051a 42%, #030612 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("./assets/ora-guardians.png");
  background-size: cover;
  background-position: center;
  opacity: calc(0.09 + var(--scroll) * 0.08);
  filter: saturate(1.35) contrast(1.05) blur(1px);
  transform: scale(calc(1.06 + var(--scroll) * 0.08));
}

a {
  color: inherit;
  text-decoration: none;
}

#particle-field,
.cursor-orb,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#particle-field {
  z-index: 2;
  mix-blend-mode: screen;
}

.cursor-orb {
  z-index: 3;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.2), transparent 7rem),
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(70, 167, 255, 0.18), transparent 18rem);
  opacity: 0.78;
}

.grain {
  z-index: 4;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.progress span {
  display: block;
  width: calc(var(--scroll) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--gold));
  box-shadow: 0 0 24px rgba(244, 200, 107, 0.75);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100vw;
  padding: 24px clamp(20px, 5vw, 72px);
  color: rgba(247, 243, 234, 0.88);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 15px;
  height: 15px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, #fff3bd 0 18%, rgba(244, 200, 107, 0.25) 52%, transparent 68%);
  box-shadow: 0 0 28px rgba(244, 200, 107, 0.8);
}

.site-header nav {
  gap: clamp(18px, 3vw, 36px);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(247, 243, 234, 0.7);
}

.site-header a {
  transition: color 180ms ease, text-shadow 180ms ease;
}

.site-header a:hover {
  color: white;
  text-shadow: 0 0 18px rgba(244, 200, 107, 0.6);
}

.scene {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
  padding: clamp(96px, 12vh, 150px) clamp(20px, 5.8vw, 92px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.scene-copy {
  position: relative;
  z-index: 5;
}

.line-label {
  margin: 0 0 22px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scene-title {
  max-width: 1040px;
  margin-bottom: 30px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 8.6vw, 124px);
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.68);
}

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

h1,
h2 {
  max-width: 900px;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(56px, 8.8vw, 142px);
}

h2 {
  font-size: clamp(42px, 6.6vw, 104px);
}

.lead,
.scene-copy > p:not(.line-label) {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.hero {
  display: grid;
  align-items: end;
  padding-top: 82px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform:
    scale(calc(1.02 + var(--scroll) * 0.18))
    translate3d(calc((var(--mx, 0) - 0.5) * -18px), calc((var(--my, 0) - 0.5) * -18px), 0);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 25%, rgba(3, 6, 18, 0.08) 38%, rgba(3, 6, 18, 0.66) 73%, #030612 100%),
    linear-gradient(90deg, rgba(3, 6, 18, 0.92) 0%, rgba(3, 6, 18, 0.35) 36%, rgba(3, 6, 18, 0.1) 64%, rgba(3, 6, 18, 0.82) 100%),
    linear-gradient(0deg, #030612 0%, rgba(3, 6, 18, 0.08) 36%, rgba(3, 6, 18, 0.28) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(1.18) contrast(1.08);
}

.scan-line {
  position: absolute;
  inset: -10% 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    transparent 0 44%,
    rgba(70, 167, 255, 0.18) 48%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(123, 73, 255, 0.2) 53%,
    transparent 58% 100%
  );
  mix-blend-mode: screen;
  animation: scan 6.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.halo {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(244, 200, 107, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--r));
  mix-blend-mode: screen;
}

.halo-one {
  --r: calc(18deg + var(--scroll) * 160deg);
  left: 50%;
  top: 48%;
  width: min(68vw, 860px);
  height: min(29vw, 360px);
}

.halo-two {
  --r: calc(-30deg - var(--scroll) * 130deg);
  left: 50%;
  top: 48%;
  width: min(50vw, 620px);
  height: min(20vw, 250px);
  border-color: rgba(70, 167, 255, 0.32);
}

.guardian-hotspots {
  position: absolute;
  inset: 0;
  z-index: 7;
}

.guardian-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: clamp(38px, 4.6vw, 62px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(247, 243, 234, 0.44);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 8%, rgba(255, 255, 255, 0.22) 10% 24%, rgba(var(--guardian-color, 244, 200, 107), 0.26) 26% 54%, transparent 56%),
    rgba(3, 6, 18, 0.16);
  color: var(--ink);
  cursor: pointer;
  transform: translate(-50%, -50%) scale(0.86);
  box-shadow:
    0 0 0 1px rgba(var(--guardian-color, 244, 200, 107), 0.1),
    0 0 32px rgba(var(--guardian-color, 244, 200, 107), 0.4);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.guardian-hotspot::before,
.guardian-hotspot::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(var(--guardian-color, 244, 200, 107), 0.38);
  border-radius: 50%;
  transform: scale(0.7);
  opacity: 0;
  transition: opacity 220ms ease, transform 260ms ease;
}

.guardian-hotspot::after {
  inset: -22px;
  border-style: dashed;
  animation: guardianSpin 12s linear infinite;
}

.guardian-hotspot span {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: max-content;
  max-width: 150px;
  padding: 7px 9px;
  border: 1px solid rgba(247, 243, 234, 0.18);
  border-radius: 999px;
  background: rgba(3, 6, 18, 0.62);
  color: rgba(247, 243, 234, 0.82);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(12px);
}

.guardian-hotspot:hover,
.guardian-hotspot:focus-visible,
.guardian-hotspot.is-active {
  border-color: rgba(var(--guardian-color, 244, 200, 107), 0.86);
  outline: none;
  transform: translate(-50%, -50%) scale(1);
  box-shadow:
    0 0 0 1px rgba(var(--guardian-color, 244, 200, 107), 0.32),
    0 0 44px rgba(var(--guardian-color, 244, 200, 107), 0.76),
    0 0 110px rgba(var(--guardian-color, 244, 200, 107), 0.28);
}

.guardian-hotspot:hover::before,
.guardian-hotspot:hover::after,
.guardian-hotspot:focus-visible::before,
.guardian-hotspot:focus-visible::after,
.guardian-hotspot.is-active::before,
.guardian-hotspot.is-active::after {
  opacity: 1;
  transform: scale(1);
}

.guardian-hotspot:hover span,
.guardian-hotspot:focus-visible span,
.guardian-hotspot.is-active span {
  opacity: 1;
  transform: translate(-50%, 0);
}

.guardian-purple {
  --guardian-color: 180, 130, 255;
}

.guardian-gold,
.guardian-amber {
  --guardian-color: 244, 200, 107;
}

.guardian-silver {
  --guardian-color: 198, 218, 255;
}

.guardian-blue {
  --guardian-color: 70, 167, 255;
}

.guardian-book {
  --guardian-color: 238, 218, 176;
}

.guardian-dialog {
  position: absolute;
  right: clamp(20px, 5.8vw, 92px);
  bottom: clamp(26px, 8vh, 88px);
  z-index: 9;
  width: min(390px, calc(100vw - 40px));
  min-height: 178px;
  padding: 24px 24px 22px;
  border: 1px solid rgba(var(--dialog-color, 244, 200, 107), 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--dialog-color, 244, 200, 107), 0.16), rgba(255, 255, 255, 0.035)),
    rgba(3, 6, 18, 0.62);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.48),
    0 0 58px rgba(var(--dialog-color, 244, 200, 107), 0.22);
  backdrop-filter: blur(24px);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.guardian-dialog.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.guardian-dialog::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--dialog-color, 244, 200, 107), 0.8), transparent);
  transform-origin: left;
  animation: dialogTrace 1.6s ease both;
}

.guardian-dialog .dialog-mode {
  margin: 0 0 13px;
  color: rgb(var(--dialog-color, 244, 200, 107));
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.guardian-dialog h2 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.08;
}

.guardian-dialog p:not(.dialog-mode) {
  margin: 0;
  color: rgba(247, 243, 234, 0.78);
  font-size: 15px;
  line-height: 1.78;
}

.hero-media[data-guardian="gold"] .scan-line,
.hero-media[data-guardian="book"] .scan-line {
  animation-duration: 4.8s;
}

.hero-media[data-guardian="purple"] .halo-one,
.hero-media[data-guardian="silver"] .halo-one {
  border-color: rgba(180, 130, 255, 0.45);
}

.hero-copy {
  width: min(780px, 100%);
  padding-bottom: clamp(62px, 10vh, 118px);
  transform: translateY(calc(var(--scroll) * -54px));
  pointer-events: none;
}

.hero-copy .lead {
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.68);
}

.scroll-cue {
  position: absolute;
  left: clamp(20px, 5.8vw, 92px);
  bottom: 34px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(247, 243, 234, 0.62);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.scroll-cue span {
  width: 48px;
  height: 1px;
  background: rgba(247, 243, 234, 0.4);
  transform-origin: left;
  animation: cueLine 2.8s ease-in-out infinite;
}

.scene-cue {
  left: auto;
  right: clamp(20px, 5.8vw, 92px);
  bottom: clamp(28px, 5vh, 52px);
  opacity: calc(0.2 + var(--visible, 0) * 0.34);
  color: rgba(247, 243, 234, 0.48);
  font-size: 12px;
}

.scene-cue span {
  width: clamp(52px, 8vw, 96px);
  background: linear-gradient(90deg, transparent, rgba(247, 243, 234, 0.46));
}

.final-cue {
  color: rgba(244, 200, 107, 0.5);
}

.origin {
  display: grid;
  align-items: end;
  background:
    radial-gradient(circle at 12% 22%, rgba(70, 167, 255, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(3, 6, 18, 0), rgba(10, 8, 28, 0.85));
}

.origin::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 62% 42%, transparent 0 23%, rgba(3, 6, 18, 0.18) 48%, rgba(3, 6, 18, 0.74) 100%),
    linear-gradient(90deg, rgba(3, 6, 18, 0.9) 0%, rgba(3, 6, 18, 0.34) 46%, rgba(3, 6, 18, 0.76) 100%),
    linear-gradient(0deg, rgba(3, 6, 18, 0.96) 0%, rgba(3, 6, 18, 0.12) 52%, rgba(10, 8, 28, 0.5) 100%);
  pointer-events: none;
}

.origin .scene-copy {
  width: min(840px, 100%);
  padding-bottom: clamp(62px, 10vh, 118px);
}

.scene-index {
  position: absolute;
  top: clamp(94px, 15vh, 150px);
  right: clamp(20px, 5.8vw, 92px);
  z-index: 1;
  color: rgba(247, 243, 234, 0.14);
  font-size: clamp(58px, 11vw, 168px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.02em;
  writing-mode: vertical-rl;
}

.kinetic-word {
  position: absolute;
  left: 4vw;
  bottom: -4vw;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 243, 234, 0.13);
  font-size: clamp(140px, 26vw, 390px);
  font-weight: 500;
  letter-spacing: -0.08em;
  transform: translateX(calc((1 - var(--visible, 0)) * -90px));
}

.chapter-frame {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(247, 243, 234, 0.08);
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.34);
  opacity: calc(0.22 + var(--visible, 0) * 0.78);
  transform:
    translateY(calc((1 - var(--visible, 0)) * 74px))
    rotate(calc((1 - var(--visible, 0)) * -4deg));
}

.chapter-frame::after,
.signal-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 52%, transparent 0 36%, rgba(3, 6, 18, 0.08) 62%, rgba(3, 6, 18, 0.48) 100%),
    linear-gradient(180deg, rgba(3, 6, 18, 0) 46%, rgba(3, 6, 18, 0.32) 100%);
  pointer-events: none;
}

.chapter-frame img,
.signal-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.04 + (1 - var(--visible, 0)) * 0.08));
}

.chapter-blue {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  mask-image: none;
  opacity: calc(0.32 + var(--visible, 0) * 0.54);
  transform:
    scale(calc(1.04 + (1 - var(--visible, 0)) * 0.08))
    translate3d(calc((var(--mx, 0) - 0.5) * -10px), calc((var(--my, 0) - 0.5) * -10px), 0);
}

.chapter-blue img {
  object-position: 58% 50%;
  filter: saturate(1.12) contrast(1.04);
}

.vault {
  display: grid;
  align-items: end;
  background:
    radial-gradient(circle at 70% 18%, rgba(244, 200, 107, 0.2), transparent 28rem),
    radial-gradient(circle at 18% 82%, rgba(123, 73, 255, 0.16), transparent 30rem),
    linear-gradient(180deg, rgba(10, 8, 28, 0.85), rgba(4, 5, 16, 0.96));
}

.vault::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("./assets/chapter-gold-record.png");
  background-size: cover;
  background-position: 62% 32%;
  opacity: calc(0.18 + var(--visible, 0) * 0.48);
  filter: saturate(1.16) contrast(1.04);
  transform: scale(calc(1.05 + (1 - var(--visible, 0)) * 0.08));
}

.vault::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 64% 38%, transparent 0 22%, rgba(4, 5, 16, 0.22) 48%, rgba(4, 5, 16, 0.82) 100%),
    linear-gradient(90deg, rgba(4, 5, 16, 0.92) 0%, rgba(4, 5, 16, 0.42) 42%, rgba(4, 5, 16, 0.72) 100%),
    linear-gradient(180deg, rgba(4, 5, 16, 0.2), #040510 100%);
}

.vault-shell {
  position: relative;
  z-index: 5;
  display: block;
  width: min(860px, 100%);
  padding: 0 0 clamp(72px, 10vh, 122px);
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.vault-shell .chapter-frame {
  display: none;
}

.vault-shell .scene-copy {
  width: min(840px, 100%);
}

.vault-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(244, 200, 107, 0.2);
  border-radius: 50%;
  transform: rotate(calc(-18deg + var(--visible, 0) * 110deg)) scale(calc(0.82 + var(--visible, 0) * 0.18));
  pointer-events: none;
}

.vault-rules {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: clamp(36px, 7vw, 72px);
}

.vault-rules p {
  min-height: 126px;
  margin: 0;
  padding: 22px;
  border-top: 1px solid var(--line);
  color: rgba(247, 243, 234, 0.74);
  line-height: 1.65;
  transform: translateY(calc((1 - var(--visible, 0)) * 34px));
  opacity: max(0.3, var(--visible, 0));
}

.vault-rules span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
}

.signal {
  display: grid;
  align-items: end;
  min-height: 108svh;
  background:
    radial-gradient(circle at 22% 30%, rgba(244, 200, 107, 0.16), transparent 22rem),
    radial-gradient(circle at 86% 70%, rgba(70, 167, 255, 0.17), transparent 26rem),
    linear-gradient(180deg, rgba(4, 5, 16, 0.96), #02040d);
}

.signal-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  min-height: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  mask-image: none;
  opacity: calc(0.36 + var(--visible, 0) * 0.5);
  transform:
    scale(calc(1.04 + (1 - var(--visible, 0)) * 0.07))
    translate3d(calc((var(--mx, 0) - 0.5) * -12px), calc((var(--my, 0) - 0.5) * -12px), 0);
}

.signal-art img {
  object-position: 44% 50%;
  filter: saturate(1.08) contrast(1.02);
}

.signal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 34% 42%, transparent 0 20%, rgba(2, 4, 13, 0.16) 48%, rgba(2, 4, 13, 0.78) 100%),
    linear-gradient(90deg, rgba(2, 4, 13, 0.82) 0%, rgba(2, 4, 13, 0.24) 48%, rgba(2, 4, 13, 0.9) 100%),
    linear-gradient(0deg, #02040d 0%, rgba(2, 4, 13, 0.12) 52%, rgba(2, 4, 13, 0.34) 100%);
  pointer-events: none;
}

.signal .scene-copy {
  width: min(860px, 100%);
  padding-bottom: clamp(72px, 10vh, 122px);
}

.signal-beam {
  position: absolute;
  z-index: 2;
  left: 18%;
  top: 48%;
  width: 64%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(70, 167, 255, 0.86), transparent);
  transform: rotate(calc(-18deg + var(--visible, 0) * 28deg));
  box-shadow: 0 0 32px rgba(70, 167, 255, 0.78);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  padding: 15px 19px;
  border: 1px solid rgba(247, 243, 234, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 243, 234, 0.88);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(12px);
}

[data-scene] .scene-copy {
  opacity: max(0.18, var(--visible, 0));
  transform: translateY(calc((1 - var(--visible, 0)) * 32px));
  transition: opacity 500ms ease, transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes scan {
  0%,
  18% {
    transform: translateY(-44%);
    opacity: 0;
  }
  28%,
  58% {
    opacity: 0.86;
  }
  82%,
  100% {
    transform: translateY(44%);
    opacity: 0;
  }
}

@keyframes guardianSpin {
  to {
    transform: scale(1) rotate(360deg);
  }
}

@keyframes dialogTrace {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes cueLine {
  0%,
  100% {
    transform: scaleX(0.64);
    opacity: 0.45;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.9;
  }
}

@media (max-width: 920px) {
  .site-header {
    padding: 20px;
  }

  .vault-shell {
    padding: 0 0 clamp(72px, 10vh, 118px);
    background: transparent;
    backdrop-filter: none;
  }

  .signal-art {
    min-height: 100%;
  }

  .guardian-dialog {
    right: 18px;
    bottom: 88px;
    width: min(360px, calc(100vw - 36px));
  }
}

@media (max-width: 640px) {
  .site-header nav {
    gap: 14px;
    font-size: 12px;
  }

  .brand {
    font-size: 21px;
  }

  .scene {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-media img {
    object-position: center;
  }

  .hero-media::after {
    background:
      radial-gradient(circle at 50% 36%, transparent 0 19%, rgba(3, 6, 18, 0.18) 42%, rgba(3, 6, 18, 0.78) 76%, #030612 100%),
      linear-gradient(0deg, #030612 0%, rgba(3, 6, 18, 0.12) 48%, rgba(3, 6, 18, 0.5) 100%);
  }

  .hero-copy {
    padding-bottom: 70px;
  }

  .scene-title {
    font-size: clamp(38px, 13vw, 70px);
    line-height: 1.02;
    letter-spacing: 0.02em;
  }

  .guardian-hotspots {
    display: none;
  }

  .guardian-dialog {
    left: 18px;
    right: 18px;
    bottom: 68px;
    width: auto;
    min-height: 0;
    padding: 18px;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  .guardian-dialog.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .guardian-dialog h2 {
    font-size: 20px;
  }

  .guardian-dialog p:not(.dialog-mode) {
    font-size: 13px;
    line-height: 1.62;
  }

  .line-label {
    letter-spacing: 0.08em;
  }

  h1 {
    font-size: 44px;
    line-height: 1.08;
  }

  .hero-copy h1 {
    font-size: 44px;
    line-height: 1.08;
  }

  h2 {
    font-size: 36px;
    line-height: 1.12;
  }

  .lead,
  .scene-copy > p:not(.line-label) {
    font-size: 16px;
    line-height: 1.75;
  }

  .scene-index {
    top: 96px;
    font-size: 62px;
    opacity: 0.78;
  }

  .chapter-frame {
    aspect-ratio: 4 / 3;
  }

  .vault-shell {
    padding: 0 0 84px;
  }

  .vault::before {
    background-position: 58% 20%;
    opacity: calc(0.14 + var(--visible, 0) * 0.34);
  }

  .vault-rules {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .vault-rules p {
    min-height: 92px;
  }

  .signal .scene-copy {
    padding-right: 0;
    padding-bottom: 84px;
  }

  .scroll-cue {
    bottom: 24px;
    font-size: 11px;
  }

  .scene-cue {
    right: 18px;
    bottom: 22px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
