:root {
  --ink: #020609;
  --deep: #04111a;
  --blue: #24d9ff;
  --blue-soft: #8eeeff;
  --white: #f4f1e8;
  --muted: #8ca8b3;
  --line: rgba(80, 224, 255, .28);
  --mx: 0;
  --my: 0;
  --scroll: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 1180px;
  color: var(--white);
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 192, 255, .12), transparent 32%),
    linear-gradient(#020609, #020a10 45%, #010406);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
::selection { background: var(--blue); color: #00131a; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .07; mix-blend-mode: screen;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255,255,255,.45) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(120deg, transparent 0 3px, rgba(255,255,255,.13) 3px 4px, transparent 4px 8px);
  background-size: 7px 7px, 11px 11px;
}

.cursor-orbit {
  position: fixed; left: 50%; top: 50%; width: 140px; height: 52px; z-index: 70; pointer-events: none;
  border: 1px solid rgba(112, 232, 255, .34); border-radius: 50%;
  transform: translate(calc(-50% + var(--cursor-x, 0px)), calc(-50% + var(--cursor-y, 0px))) rotate(-14deg);
  transition: width .2s ease, height .2s ease, border-color .2s ease;
}
.cursor-orbit::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-soft); top: 2px; left: 42px; box-shadow: 0 0 16px var(--blue); }
body.is-hovering .cursor-orbit { width: 185px; height: 70px; border-color: rgba(112,232,255,.68); }

.edge-nav {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 72px; padding: 0 34px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  mix-blend-mode: difference; color: white; font-weight: 800; letter-spacing: .09em; font-size: 12px;
}
.edge-nav .brand { justify-self: start; font-size: 15px; }
.edge-nav nav { display: flex; gap: 28px; }
.edge-nav nav a { opacity: .68; transition: opacity .2s ease, transform .2s ease; }
.edge-nav nav a:hover { opacity: 1; transform: translateY(-2px); }
.edge-nav .status { justify-self: end; opacity: .58; font-family: "Courier New", monospace; }

.scene { position: relative; min-height: 100vh; overflow: hidden; isolation: isolate; }
.scene-index { font: 700 12px/1 "Courier New", monospace; letter-spacing: .18em; color: var(--blue-soft); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

.hero {
  height: 1080px; min-height: 820px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(0,195,255,.16), transparent 31%),
    radial-gradient(circle at 13% 70%, rgba(0,135,178,.11), transparent 26%),
    #010508;
}
.hero::before, .hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.hero::before {
  background: linear-gradient(90deg, transparent 0 8%, rgba(40,220,255,.045) 8% 8.1%, transparent 8.1% 91%, rgba(40,220,255,.045) 91% 91.1%, transparent 91.1%);
}
.hero::after {
  background: linear-gradient(180deg, transparent 0 82%, rgba(36,217,255,.08) 82% 82.1%, transparent 82.1%);
}
.hero-rings, .find-rings {
  position: absolute; width: 980px; height: 980px; left: 50%; top: 48%; transform: translate(-50%,-50%); border-radius: 50%;
  border: 1px solid rgba(57,218,255,.17); box-shadow: inset 0 0 90px rgba(36,217,255,.045), 0 0 110px rgba(36,217,255,.035);
}
.hero-rings::before, .hero-rings::after, .find-rings::before, .find-rings::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(57,218,255,.11);
}
.hero-rings::before, .find-rings::before { inset: 78px; }
.hero-rings::after, .find-rings::after { inset: 185px; border-style: dashed; animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-title-wrap { position: absolute; left: 0; right: 0; top: 15%; text-align: center; z-index: 1; }
.eyebrow { margin: 0 0 8px; font: 700 11px/1.2 "Courier New", monospace; letter-spacing: .28em; color: rgba(198,241,250,.64); }
.hero h1 {
  margin: 0; font-family: Impact, "Arial Black", sans-serif; font-size: clamp(170px, 15vw, 300px); line-height: .76; letter-spacing: -.035em;
  color: #f4f1e8; text-shadow: 0 1px 0 #9ed8e5, 0 12px 45px rgba(0,0,0,.45);
}
.hero-portrait {
  position: absolute; z-index: 3; width: 690px; height: 690px; left: 50%; bottom: 70px; transform: translateX(-50%);
  padding: 0; border: 0; background: none; cursor: pointer;
  animation: breathe 6.8s ease-in-out infinite;
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0 58%, rgba(0,0,0,.93) 64%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 48%, #000 0 58%, rgba(0,0,0,.93) 64%, transparent 72%);
  filter: saturate(.86) contrast(1.04);
}
.hero-portrait::after {
  content: ""; position: absolute; inset: 85px; border-radius: 50%; border: 1px solid rgba(105,232,255,.34); transform: rotate(-16deg) scaleY(.37);
  box-shadow: 0 0 25px rgba(36,217,255,.15);
}
.portrait-flare { position: absolute; inset: 20%; border-radius: 50%; box-shadow: 0 0 95px rgba(36,217,255,.16); transition: box-shadow .2s ease; }
.hero-portrait:hover .portrait-flare { box-shadow: 0 0 145px rgba(36,217,255,.33); }
.hero-portrait.wake { animation: wake .58s ease; }
@keyframes breathe { 0%,100% { transform: translateX(-50%) translateY(0) scale(1); } 50% { transform: translateX(-50%) translateY(-8px) scale(1.008); } }
@keyframes wake { 0%,100% { filter: none; } 45% { filter: brightness(1.35); transform: translateX(-50%) scale(.985); } }

.hero-ghost { position: absolute; z-index: 0; font-family: Impact, "Arial Black", sans-serif; font-size: 104px; letter-spacing: -.04em; color: rgba(36,217,255,.045); writing-mode: vertical-rl; }
.hero-ghost-a { left: 3.5%; top: 21%; transform: rotate(180deg); }
.hero-ghost-b { right: 3.2%; bottom: 15%; }

.hero-note { position: absolute; left: 5.5%; bottom: 15%; z-index: 5; display: flex; gap: 16px; align-items: flex-start; max-width: 300px; }
.hero-note span { color: var(--blue); font: 700 12px/1 "Courier New", monospace; }
.hero-note p { margin: 0; font-weight: 800; line-height: 1.35; letter-spacing: .03em; font-size: 14px; }
.ticker-stamp { position: absolute; right: 6%; top: 28%; z-index: 5; transform: rotate(6deg); border-top: 1px solid var(--line); padding-top: 11px; width: 190px; }
.ticker-stamp span { display: block; font: 700 10px/1 "Courier New", monospace; color: var(--muted); letter-spacing: .2em; margin-bottom: 8px; }
.ticker-stamp strong { font: 900 24px/1 Impact, "Arial Black", sans-serif; letter-spacing: .02em; }
.hero-ca { position: absolute; z-index: 6; left: 50%; bottom: 34px; transform: translateX(-50%); width: 620px; text-align: center; }
.ca-kicker { display: block; font: 700 10px/1 "Courier New", monospace; letter-spacing: .25em; color: var(--muted); margin-bottom: 7px; }
.ca-line { width: 100%; border: 1px solid rgba(122,231,255,.25); border-left-color: rgba(122,231,255,.55); border-right-color: rgba(122,231,255,.55); background: rgba(1,10,14,.76); padding: 13px 18px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; clip-path: polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%); }
.ca-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 455px; font: 700 13px/1 "Courier New", monospace; color: #d9f9ff; }
.copy-label { font: 800 11px/1 Arial, sans-serif; letter-spacing: .12em; color: var(--blue-soft); }
.ca-line:hover { background: rgba(7,32,42,.84); border-color: rgba(122,231,255,.55); }
.ca-line:active { transform: translateY(2px); }
.scroll-mark { position: absolute; left: 32px; bottom: 33px; font: 700 10px/1 "Courier New", monospace; letter-spacing: .16em; color: var(--muted); }
.scroll-mark span { color: var(--blue); }

.room { height: 1080px; min-height: 820px; background: #02090d; }
.room::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 67% 43%, rgba(36,217,255,.18), transparent 31%), linear-gradient(90deg, #02070a 0 35%, transparent 58%); z-index: 2; pointer-events: none; }
.room-image { position: absolute; right: -4%; top: 2%; width: 70%; height: 96%; z-index: 1; }
.room-image img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; filter: contrast(1.03) saturate(.86); clip-path: polygon(7% 0,100% 0,100% 100%,0 91%,5% 64%,0 34%); }
.room-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#02090d 0,transparent 30%), linear-gradient(180deg,#02090d 0,transparent 12%,transparent 82%,#02090d 100%); }
.room-copy { position: absolute; z-index: 4; left: 6%; top: 23%; width: 560px; }
.room-copy h2, .void-title h2, .exit-copy h2, .find-copy h2 { font-family: Impact, "Arial Black", sans-serif; font-weight: 900; margin: 16px 0 26px; letter-spacing: -.035em; line-height: .86; }
.room-copy h2 { font-size: 108px; }
.room-copy p { width: 390px; margin: 0 0 18px; font-size: 17px; line-height: 1.55; color: #b6c8ce; }
.room-copy .lead { color: var(--white); font-size: 21px; line-height: 1.35; }
.watch-word { position: absolute; z-index: 3; right: -22px; bottom: 2%; font: 900 188px/.8 Impact,"Arial Black",sans-serif; color: rgba(240,248,248,.035); letter-spacing: -.045em; }
.screen-note { position: absolute; z-index: 5; color: rgba(172,241,255,.65); font: 700 10px/1 "Courier New",monospace; letter-spacing: .16em; border-left: 1px solid var(--blue); padding-left: 10px; }
.note-a { right: 8%; top: 19%; transform: rotate(3deg); }
.note-b { right: 28%; bottom: 13%; transform: rotate(-5deg); }

.marquee { width: 100vw; overflow: hidden; background: var(--white); color: #021016; border-top: 2px solid var(--white); border-bottom: 2px solid var(--white); }
.marquee-track { display: flex; width: max-content; white-space: nowrap; animation: marquee 24s linear infinite; will-change: transform; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-group span { flex-shrink: 0; font: 900 32px/1 Impact,"Arial Black",sans-serif; padding: 14px 15px 13px; letter-spacing: .03em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.void { height: 1120px; min-height: 900px; background: radial-gradient(circle at 50% 48%, #071b25 0, #02090d 45%, #010406 78%); }
.void-image { position: absolute; z-index: 2; left: 50%; top: 48%; width: 760px; height: 760px; transform: translate(-50%,-50%); }
.void-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; -webkit-mask-image: radial-gradient(circle, #000 0 64%, rgba(0,0,0,.78) 72%, transparent 78%); mask-image: radial-gradient(circle, #000 0 64%, rgba(0,0,0,.78) 72%, transparent 78%); }
.void-title { position: absolute; z-index: 4; left: 5.5%; top: 14%; }
.void-title h2 { font-size: 118px; }
.void-lore { position: absolute; z-index: 4; right: 5.5%; top: 22%; width: 340px; }
.void-lore p { font-size: 18px; line-height: 1.48; margin: 0 0 16px; }
.rules { position: absolute; z-index: 4; left: 7%; bottom: 10%; font: 800 15px/1.5 "Courier New", monospace; transform: rotate(-2deg); }
.rules p { margin: 6px 0; }
.rules span { color: var(--blue); margin-right: 12px; }
.void-orbit { position: absolute; z-index: 1; left: 50%; top: 50%; border: 1px solid rgba(63,224,255,.22); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 1120px; height: 390px; transform: translate(-50%,-50%) rotate(-11deg); animation: pulseOrbit 7s ease-in-out infinite; }
.orbit-two { width: 860px; height: 860px; border-style: dashed; opacity: .6; animation: spin 34s linear infinite; }
@keyframes pulseOrbit { 0%,100% { opacity: .35; transform: translate(-50%,-50%) rotate(-11deg) scale(1); } 50% { opacity: .65; transform: translate(-50%,-50%) rotate(-8deg) scale(1.03); } }

.exit { height: 1080px; min-height: 840px; background: #010508; }
.exit-image { position: absolute; inset: -7% -1% -7% 18%; z-index: 1; }
.exit-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; filter: saturate(.86) contrast(1.05); }
.exit-image::before { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg,#010508 0 10%,rgba(1,5,8,.2) 36%,transparent 62%),linear-gradient(180deg,#010508 0,transparent 13%,transparent 80%,#010508 100%); }
.exit-copy { position: absolute; z-index: 4; left: 5.5%; top: 16%; width: 560px; }
.exit-copy h2 { font-size: 114px; }
.exit-copy p { width: 360px; color: #b8c8cc; font-size: 18px; line-height: 1.5; }
.arrow-field { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.arrow-field span { position: absolute; font: 300 66px/1 Arial,sans-serif; color: rgba(119,235,255,.35); animation: arrowFloat 4.5s ease-in-out infinite; }
.arrow-field span:nth-child(1){left:52%;top:17%;}.arrow-field span:nth-child(2){left:67%;top:38%;animation-delay:.8s}.arrow-field span:nth-child(3){right:8%;top:27%;animation-delay:1.6s}.arrow-field span:nth-child(4){right:19%;bottom:16%;animation-delay:2.2s}.arrow-field span:nth-child(5){left:41%;bottom:12%;animation-delay:3s}
@keyframes arrowFloat { 0%,100%{transform:translateY(0);opacity:.25}50%{transform:translateY(-18px);opacity:.65} }
.exit-whisper { position: absolute; z-index: 4; right: 3.5%; bottom: 5.5%; margin:0; font: 700 11px/1 "Courier New",monospace; letter-spacing:.2em; color:rgba(209,245,251,.54); transform: rotate(-1deg); }

.find { height: 980px; min-height: 820px; background: radial-gradient(circle at 72% 50%, rgba(0,187,234,.15), transparent 30%), #02070a; }
.find-rings { width: 760px; height: 760px; left: 73%; top: 49%; opacity: .72; }
.find-head { position: absolute; z-index: 1; right: 2%; bottom: -13%; width: 760px; height: 760px; opacity: .52; }
.find-head img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; -webkit-mask-image: radial-gradient(circle at 50% 46%,#000 0 55%,rgba(0,0,0,.8) 65%,transparent 75%); mask-image: radial-gradient(circle at 50% 46%,#000 0 55%,rgba(0,0,0,.8) 65%,transparent 75%); }
.find-copy { position: absolute; z-index: 4; left: 6%; top: 13%; }
.find-copy h2 { font-size: 126px; margin-bottom: 20px; }
.find-copy p { margin:0; font-size:19px; color:#afc0c5; }
.community-links { position: absolute; z-index: 5; left: 6%; top: 51%; display: flex; flex-direction: column; align-items: flex-start; }
.community-links a { font: 900 54px/1.15 Impact,"Arial Black",sans-serif; letter-spacing:.01em; border-bottom:1px solid rgba(174,240,252,.25); padding: 9px 0 7px; min-width: 430px; transition: transform .2s ease, padding-left .2s ease, color .2s ease; }
.community-links a span { color: var(--blue); font: 400 31px/1 Arial,sans-serif; float:right; padding-top:9px; }
.community-links a:hover { color: var(--blue-soft); transform: skewX(-4deg); padding-left: 18px; }
.community-links a:active { transform: skewX(-4deg) translateY(2px); }
.final-ca { position: absolute; z-index: 6; right: 6%; top: 24%; width: 520px; transform: rotate(2deg); }
.final-ca > span { display:block; margin-bottom:8px; color:var(--blue); font:700 11px/1 "Courier New",monospace; letter-spacing:.18em; }
.final-ca button { width:100%; background:none; border:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:16px 0; display:flex; gap:20px; justify-content:space-between; cursor:pointer; text-align:left; }
.final-ca strong { max-width:390px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:700 14px/1.2 "Courier New",monospace; }
.final-ca em { font-style:normal; font:800 11px/1 Arial,sans-serif; letter-spacing:.12em; color:var(--blue-soft); }
.final-ca button:hover { border-color: rgba(126,234,255,.65); }
.final-ca button:active { transform:translateY(2px); }
footer { position:absolute; z-index:7; left:3%; right:3%; bottom:25px; display:flex; justify-content:space-between; font:700 10px/1 "Courier New",monospace; letter-spacing:.15em; color:#72909a; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 38px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; background: var(--white); color:#021016; padding: 11px 16px 10px; font: 900 12px/1 Arial,sans-serif; letter-spacing:.16em; clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%); transition:opacity .2s ease, transform .2s ease; }
.toast.show { opacity:1; transform:translate(-50%,0); }

.parallax { will-change: transform; }

@media (max-height: 900px) {
  .hero, .room, .exit { height: 100vh; min-height: 760px; }
  .void { height: 100vh; min-height: 800px; }
  .find { height: 100vh; min-height: 760px; }
  .hero-portrait { width: 500px; height: 500px; bottom: 54px; }
  .hero h1 { font-size: 170px; }
  .hero-title-wrap { top: 14%; }
  .hero-note { bottom: 18%; }
  .hero-ca { bottom: 20px; }
  .room-copy { top: 18%; }
  .room-copy h2, .exit-copy h2 { font-size: 84px; }
  .void-title h2 { font-size: 86px; }
  .void-image { width: 620px; height: 620px; }
  .find-copy h2 { font-size: 96px; }
}

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