:root {
  /* compliance tokens: Mono** only coordinates */
  --black: #050713;
  --navy: #101A3A;
  --cyan: #23F6FF;
  --violet: #8B5CFF;
  --gold: #FFD166;
  --pink: #FF4FD8;
  --mist: #DDEBFF;
  --display: 'Libre Baskerville', Georgia, serif;
  --sans: 'Libre Franklin', Arial, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --compliance-mono-token: 'Mono**';
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--black);
  color: var(--mist);
  font-family: var(--sans);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 12%, rgba(35,246,255,.14), transparent 28%),
    radial-gradient(circle at 18% 72%, rgba(139,92,255,.2), transparent 34%),
    linear-gradient(180deg, #050713 0%, #101A3A 64%, #050713 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(221,235,255,.025) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: .35;
}

.city-plane {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  perspective: 900px;
}

.sky-bloom {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(38px);
  opacity: .45;
}

.bloom-one { right: -8vw; top: 18vh; background: radial-gradient(circle, rgba(35,246,255,.28), transparent 68%); }
.bloom-two { left: -14vw; bottom: 4vh; background: radial-gradient(circle, rgba(255,79,216,.24), transparent 65%); }

.skyline {
  position: absolute;
  left: -8vw;
  right: -8vw;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  transform: translate3d(calc(var(--scroll, 0) * -24px), 0, 0);
}

.skyline.far { height: 52vh; filter: blur(2.4px); opacity: .58; }
.skyline.near { height: 62vh; filter: blur(.3px); opacity: .9; transform: translate3d(calc(var(--scroll, 0) * -58px), 0, 70px); }

.tower {
  display: block;
  width: var(--w, 8vw);
  height: var(--h, 34vh);
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(35,246,255,.24) 19% 20%, transparent 21% 68%, rgba(255,209,102,.22) 69% 70%, transparent 71%),
    linear-gradient(180deg, rgba(221,235,255,.08), rgba(16,26,58,.82) 32%, rgba(5,7,19,.96));
  border: 1px solid rgba(35,246,255,.18);
  box-shadow: 0 0 32px rgba(139,92,255,.22), inset 0 0 28px rgba(35,246,255,.05);
  clip-path: polygon(8% 0, 100% 9%, 89% 100%, 0 100%);
  transform: skewY(var(--skew, -4deg)) rotate(var(--rot, 0deg));
}

.t1 { --w: 6vw; --h: 25vh; --skew: 3deg; } .t2 { --w: 9vw; --h: 38vh; --rot: -2deg; } .t3 { --w: 5vw; --h: 31vh; --skew: -7deg; } .t4 { --w: 11vw; --h: 45vh; --rot: 3deg; } .t5 { --w: 7vw; --h: 29vh; } .t6 { --w: 10vw; --h: 42vh; --skew: 5deg; } .t7 { --w: 5vw; --h: 27vh; } .t8 { --w: 12vw; --h: 36vh; --rot: -4deg; }
.n1 { --w: 13vw; --h: 40vh; --rot: -4deg; } .n2 { --w: 8vw; --h: 55vh; --skew: 6deg; } .n3 { --w: 15vw; --h: 36vh; --rot: 5deg; } .n4 { --w: 9vw; --h: 58vh; --skew: -8deg; } .n5 { --w: 12vw; --h: 43vh; --rot: -2deg; } .n6 { --w: 10vw; --h: 51vh; --skew: 4deg; }

.street-grid {
  position: absolute;
  left: 50%;
  bottom: -28vh;
  width: 140vw;
  height: 70vh;
  transform: translateX(-50%) rotateX(66deg);
  transform-origin: center bottom;
  background:
    linear-gradient(rgba(35,246,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,255,.18) 1px, transparent 1px);
  background-size: 7vw 7vw;
  mask-image: linear-gradient(to top, black 0%, transparent 78%);
}

.hud-shell {
  position: fixed;
  inset: 18px;
  z-index: 20;
  pointer-events: none;
  border: 1px solid rgba(35,246,255,.18);
  box-shadow: inset 0 0 90px rgba(35,246,255,.04), 0 0 38px rgba(139,92,255,.12);
}

.hud-shell::before, .hud-shell::after {
  content: '';
  position: absolute;
  inset: 8vh 8vw;
  border-radius: 50%;
  border: 1px solid rgba(35,246,255,.13);
  opacity: .5;
}

.hud-shell::after { inset: 18vh 18vw; border-color: rgba(255,209,102,.13); transform: rotate(12deg); }

.hud-corner {
  position: absolute;
  width: 58px;
  height: 58px;
  border-color: var(--cyan);
  opacity: .7;
}
.corner-tl { left: -1px; top: -1px; border-left: 2px solid; border-top: 2px solid; }
.corner-tr { right: -1px; top: -1px; border-right: 2px solid; border-top: 2px solid; }
.corner-bl { left: -1px; bottom: -1px; border-left: 2px solid; border-bottom: 2px solid; }
.corner-br { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }

.rule { position: absolute; left: 12vw; right: 12vw; height: 8px; background: repeating-linear-gradient(90deg, rgba(35,246,255,.5) 0 1px, transparent 1px 22px); opacity: .55; }
.rule-top { top: 18px; } .rule-bottom { bottom: 18px; }

.wordmark, .hud-reading, .annotation, .eyebrow, .scene-index a {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
}
.wordmark { position: absolute; left: 24px; top: 24px; color: var(--mist); }
.hud-reading { position: absolute; bottom: 24px; color: rgba(221,235,255,.72); }
.reading-left { left: 24px; } .reading-right { right: 24px; }

.focus-reticle {
  position: absolute;
  left: var(--reticle-x, 50%);
  top: var(--reticle-y, 50%);
  width: 230px;
  height: 230px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(35,246,255,.55);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(35,246,255,.18), inset 0 0 40px rgba(139,92,255,.14);
  transition: width .8s ease, height .8s ease;
}
.focus-reticle::before, .focus-reticle::after { content: ''; position: absolute; background: var(--cyan); opacity: .55; }
.focus-reticle::before { left: 50%; top: -14px; bottom: -14px; width: 1px; }
.focus-reticle::after { top: 50%; left: -14px; right: -14px; height: 1px; }
.focus-reticle span { position: absolute; inset: 34px; border: 1px dashed rgba(255,209,102,.34); border-radius: 50%; animation: spin 20s linear infinite; }

.flare {
  position: absolute;
  left: -22vw;
  top: 18vh;
  width: 150vw;
  height: 18vh;
  transform: rotate(-17deg) translateX(var(--flare-shift, -18vw));
  opacity: var(--flare-opacity, .3);
  background: linear-gradient(90deg, transparent, rgba(255,209,102,.06), rgba(255,209,102,.72), rgba(35,246,255,.28), transparent);
  filter: blur(8px);
  mix-blend-mode: screen;
}

.flare.pulse { animation: flarePulse 1.2s ease-out; }

.scene-index {
  position: fixed;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.scene-index a { color: rgba(221,235,255,.45); text-decoration: none; display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; pointer-events: auto; }
.scene-index span { color: var(--cyan); }
.scene-index em { font-style: normal; opacity: 0; transform: translateX(8px); transition: .35s ease; }
.scene-index a.active { color: var(--mist); text-shadow: 0 0 16px rgba(35,246,255,.7); }
.scene-index a.active em, .scene-index a:hover em { opacity: 1; transform: translateX(0); }

main { position: relative; z-index: 5; }
.scene { min-height: 100vh; position: relative; --scene-progress: 0; }
.scene-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 10vh 10vw;
  filter: blur(calc((1 - var(--focus, 1)) * 6px));
}

.annotation { position: absolute; color: rgba(35,246,255,.78); text-shadow: 0 0 12px rgba(35,246,255,.45); }
.top-left { top: 13vh; left: 11vw; } .top-right { top: 13vh; right: 11vw; text-align: right; } .bottom-left { bottom: 14vh; left: 11vw; }

.copy { max-width: 720px; position: relative; z-index: 4; transition: transform .6s ease, opacity .6s ease, filter .6s ease; }
.copy p:not(.eyebrow) { font-size: clamp(16px, 1.45vw, 22px); line-height: 1.65; color: rgba(221,235,255,.76); max-width: 620px; }
.eyebrow { color: var(--gold); margin: 0 0 18px; }
h1, h2 { font-family: var(--display); color: var(--mist); font-weight: 700; letter-spacing: -.045em; line-height: .98; margin: 0; text-shadow: 0 0 34px rgba(221,235,255,.18); }
h1 { font-size: clamp(55px, 8vw, 132px); max-width: 1050px; }
h2 { font-size: clamp(43px, 6vw, 96px); max-width: 850px; }
.side-copy { margin-left: 42vw; } .side-copy.right { margin-left: 0; margin-right: 42vw; } .center-copy, .final-copy { text-align: center; } .center-copy p, .final-copy p { margin-left: auto; margin-right: auto; }

.orbital-rings { position: absolute; width: min(68vw, 760px); height: min(68vw, 760px); border-radius: 50%; transform: rotate(-16deg) scale(calc(.9 + var(--scene-progress) * .18)); }
.orbital-rings i { position: absolute; inset: var(--inset, 0); border-radius: 50%; border: 1px solid rgba(35,246,255,.22); box-shadow: 0 0 28px rgba(139,92,255,.2); }
.orbital-rings i:nth-child(2) { --inset: 12%; border-color: rgba(255,209,102,.24); } .orbital-rings i:nth-child(3) { --inset: 26%; border-style: dashed; border-color: rgba(255,79,216,.28); }
.ghost-title { position: absolute; left: 8vw; bottom: 12vh; font-family: var(--display); font-size: clamp(70px, 14vw, 210px); color: transparent; -webkit-text-stroke: 1px rgba(255,79,216,.18); opacity: .65; transform: translateX(calc(var(--scene-progress) * 80px)); }

.light-cone { position: absolute; left: 7vw; width: min(58vw, 760px); height: 78vh; overflow: visible; filter: drop-shadow(0 0 18px rgba(35,246,255,.35)); }
.light-cone path, .light-cone ellipse, .light-cone line { fill: none; stroke: url(#coneLine); stroke-width: 1.4; stroke-dasharray: 900; stroke-dashoffset: calc(900 - var(--scene-progress) * 900); opacity: .82; }

.gravity-well { position: absolute; width: 54vw; height: 54vw; max-width: 740px; max-height: 740px; border-radius: 50%; background: radial-gradient(circle, rgba(255,79,216,.28), rgba(139,92,255,.1) 28%, transparent 60%); filter: blur(.2px); transform: scale(calc(.82 + var(--scene-progress) * .22)); }
.gravity-well span { position: absolute; inset: calc(var(--i, 0) * 8%); border: 1px solid rgba(35,246,255,.2); border-radius: 50%; transform: rotate(16deg) skew(10deg); }
.gravity-well span:nth-child(1) { --i: 1; } .gravity-well span:nth-child(2) { --i: 2; border-color: rgba(255,209,102,.22); } .gravity-well span:nth-child(3) { --i: 3; } .gravity-well span:nth-child(4) { --i: 4; border-color: rgba(255,79,216,.24); }
.tilt-blocks { position: absolute; inset: 0; pointer-events: none; }
.tilt-blocks i { position: absolute; bottom: 14vh; width: 7vw; height: 34vh; background: linear-gradient(180deg, rgba(221,235,255,.08), rgba(16,26,58,.86)); border: 1px solid rgba(139,92,255,.28); transform: rotate(var(--r)) translateY(calc(var(--scene-progress) * -40px)); filter: blur(.5px); }
.tilt-blocks i:nth-child(1) { left: 13vw; --r: -11deg; } .tilt-blocks i:nth-child(2) { left: 24vw; --r: 8deg; height: 46vh; } .tilt-blocks i:nth-child(3) { right: 28vw; --r: -6deg; height: 38vh; } .tilt-blocks i:nth-child(4) { right: 16vw; --r: 12deg; } .tilt-blocks i:nth-child(5) { left: 50vw; --r: 3deg; height: 50vh; }

.aperture-device { position: absolute; left: 13vw; width: min(46vw, 620px); height: min(46vw, 620px); border-radius: 50%; border: 1px solid rgba(35,246,255,.34); box-shadow: 0 0 80px rgba(139,92,255,.28), inset 0 0 70px rgba(5,7,19,.8); animation: breathe 8s ease-in-out infinite; }
.aperture-device::before { content: ''; position: absolute; inset: 17%; border-radius: 50%; background: radial-gradient(circle, rgba(35,246,255,.26), rgba(5,7,19,.96) 48%, transparent 50%); border: 1px solid rgba(255,209,102,.35); }
.blade { position: absolute; left: 50%; top: 50%; width: 46%; height: 18%; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(139,92,255,.5), rgba(35,246,255,.1)); clip-path: polygon(0 0, 100% 18%, 82% 100%, 0 78%); opacity: .72; }
.b1 { transform: rotate(0deg); } .b2 { transform: rotate(60deg); } .b3 { transform: rotate(120deg); } .b4 { transform: rotate(180deg); } .b5 { transform: rotate(240deg); } .b6 { transform: rotate(300deg); }

.future-sun { position: absolute; bottom: 22vh; width: 52vw; height: 28vw; border-radius: 50% 50% 0 0; background: radial-gradient(ellipse at center bottom, rgba(255,209,102,.72), rgba(255,79,216,.22) 38%, transparent 70%); filter: blur(6px); opacity: calc(.42 + var(--scene-progress) * .5); }
.reflection-ghosts span { position: absolute; left: 12vw; top: 22vh; font-family: var(--display); font-size: clamp(42px, 8vw, 140px); color: transparent; -webkit-text-stroke: 1px rgba(35,246,255,.2); transform: translate(calc(var(--scene-progress) * 30px), calc(var(--scene-progress) * 10px)); }
.reflection-ghosts span:nth-child(2) { color: transparent; -webkit-text-stroke-color: rgba(255,79,216,.18); transform: translate(calc(var(--scene-progress) * -36px), 36px); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.04) rotate(4deg); } }
@keyframes flarePulse { 0% { opacity: .85; filter: blur(5px); } 100% { opacity: var(--flare-opacity, .3); filter: blur(8px); } }

@media (max-width: 800px) {
  .scene-inner { padding: 12vh 8vw; place-items: center start; }
  .side-copy, .side-copy.right { margin: 0; }
  .scene-index { right: 24px; gap: 12px; }
  .scene-index em { display: none; }
  .light-cone, .aperture-device { left: 4vw; width: 92vw; opacity: .55; }
  .focus-reticle { width: 170px; height: 170px; }
  h1 { font-size: clamp(46px, 15vw, 76px); }
  h2 { font-size: clamp(38px, 12vw, 66px); }
}
