:root {
  --bg: #030304;
  --ink: #eceef3;
  --muted: #8a8f9a;
  --line: rgba(255, 255, 255, .1);
  --blue: #8399ff;
  --violet: #c9aaff;
  --pink: #ffccfd;
  --ice: #b3e1ff;

  --chrome: linear-gradient(180deg, #ffffff 0%, #d3d7de 34%, #7b818c 50%, #dfe3ea 63%, #9aa0ab 100%);
  --irid: linear-gradient(100deg, #8399ff, #c9aaff, #ffccfd, #b3e1ff, #8399ff);
  --steel: linear-gradient(105deg, #8f949d 0%, #3c4047 18%, #14161a 52%, #2d3036 82%, #70757e 100%);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* driven by script.js */
  --open: 0;
  --scale: 1;
  --ty: 0px;
  --reveal: 0;
  --heroFade: 1;
  --rx: 0deg;
  --ry: 0deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 400; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; }
a { color: inherit; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
main, .footer { position: relative; z-index: 1; }

/* ---------- ambient layers ---------- */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cursor {
  position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; z-index: 2; pointer-events: none;
  background: radial-gradient(circle, rgba(131, 153, 255, .13), transparent 62%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .4s;
}
.cursor.on { opacity: 1; }
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: var(--irid); }

/* ---------- chrome / iridescent type ---------- */
.chrome { background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
h1 em, h2 em { font-style: normal; }
.chrome em { background: var(--irid); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: irid 7s linear infinite; }
@keyframes irid { to { background-position: 250% 0; } }

/* split-word reveal: the gradient moves onto each word so transforms don't break it */
.is-split { background: none !important; -webkit-text-fill-color: initial; color: inherit; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin-bottom: -.12em; }
.split .w > i {
  display: inline-block; font-style: normal; transform: translateY(112%);
  transition: transform .95s cubic-bezier(.2, .7, .1, 1); transition-delay: calc(var(--i) * 70ms);
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.split em .w > i { background: var(--irid); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: irid 7s linear infinite; }
.split.is-in .w > i { transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(760px, 100% - 28px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 8px 8px 22px; border-radius: 999px;
  background: rgba(14, 15, 18, .62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 40px -10px rgba(0, 0, 0, .8);
}
.nav__logo { font-weight: 600; font-size: 1.25rem; letter-spacing: -.04em; text-decoration: none; }
.nav__logo span { color: var(--blue); }
.nav__links { display: flex; gap: 26px; font-size: .92rem; color: var(--muted); }
.nav__links a { text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: #fff; }

.btn {
  position: relative; display: inline-block; text-decoration: none; font-weight: 500; color: #0a0b0d;
  padding: 14px 28px; border-radius: 999px; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, #fff, #c5cad3 55%, #f3f5f8);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(0, 0, 0, .25), 0 8px 30px -8px rgba(131, 153, 255, .55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--irid); background-size: 250% 100%; opacity: 0; transition: opacity .3s; animation: irid 4s linear infinite; }
.btn:hover::before { opacity: 1; }
.btn--small { padding: 10px 20px; font-size: .9rem; }
.btn--big { padding: 22px 46px; font-size: 1.15rem; }

.label { display: inline-flex; gap: 12px; align-items: center; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 26px; }
.label b { font-weight: 500; color: var(--blue); }
.label::before { content: ""; width: 28px; height: 1px; background: var(--blue); }
.label--center { justify-content: center; }
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ice); margin-bottom: 22px; }

/* ---------- the stage (scroll-driven door) ---------- */
.stage { height: 480vh; position: relative; }
.stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage__sticky::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 78%, rgba(90, 100, 230, .28), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(30, 30, 60, .6), transparent 70%);
}

.hero-copy {
  position: absolute; z-index: 5; inset: 92px 0 auto 0; text-align: center; padding: 0 20px;
  opacity: var(--heroFade); transform: translateY(calc((1 - var(--heroFade)) * -30px)); pointer-events: none;
}
.hero-copy h1 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); max-width: 14ch; margin-inline: auto; }
.hint { margin-top: 20px; font-family: var(--mono); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 14px; }
.hint__line { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--blue)); position: relative; overflow: hidden; }
.hint__line::after { content: ""; position: absolute; inset: 0; width: 40%; background: #fff; animation: scan 1.8s ease-in-out infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.hint--center { margin-top: 30px; }

.hud {
  position: absolute; z-index: 20; left: clamp(16px, 4vw, 40px); right: clamp(16px, 4vw, 40px); bottom: 22px;
  display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .16em; color: var(--muted); pointer-events: none;
}
.hud b { color: var(--ice); font-weight: 500; }

/* ---------- the house (everything inside is sized in %) ---------- */
.house {
  position: absolute; left: 50%; bottom: 8%;
  width: min(94vw, 82svh); aspect-ratio: 1.45 / 1; margin-left: calc(min(94vw, 82svh) / -2);
  opacity: calc(1 - var(--reveal));
  transform-origin: 50% 77%;
  transform: translateY(var(--ty)) scale(var(--scale)) perspective(1800px) rotateX(var(--rx)) rotateY(var(--ry));
}
.house > * { position: absolute; display: block; }

.ground {
  left: -45%; right: -45%; bottom: -7%; height: 9%; z-index: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    linear-gradient(90deg, rgba(131, 153, 255, .18) 1px, transparent 1px) 0 0 / 5% 100%,
    linear-gradient(180deg, #17181d, #050506);
  border-top: 1px solid rgba(131, 153, 255, .55);
  box-shadow: 0 -14px 50px rgba(131, 153, 255, .18);
}
.antenna { right: 25%; top: 8%; width: .55%; height: 17%; z-index: 1; background: linear-gradient(90deg, #9aa0ab, #2a2d33); }
.antenna::after { content: ""; position: absolute; left: 50%; top: -3%; width: 260%; aspect-ratio: 1; margin-left: -130%; border-radius: 50%; background: #ff6a5a; box-shadow: 0 0 18px 6px rgba(255, 106, 90, .7); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.roof { left: 5%; width: 90%; top: 4%; height: 32%; z-index: 2; clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(103deg, #6a6f78 0%, #24262b 42%, #0a0b0d 50%, #34373d 78%, #1a1c20 100%); }
.roof-rim { left: 5%; width: 90%; top: 4%; height: 32%; z-index: 3; filter: drop-shadow(0 0 7px rgba(131, 153, 255, .85)); animation: rim 5s ease-in-out infinite; }
.roof-rim i { position: absolute; inset: 0; background: var(--irid); background-size: 250% 100%; animation: irid 8s linear infinite;
  clip-path: polygon(evenodd, 50% 0, 100% 100%, 0 100%, 50% 0, 50% 5.5%, 96.6% 96%, 3.4% 96%, 50% 5.5%); }
@keyframes rim { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

.body {
  left: 12%; width: 76%; top: 34%; bottom: 0; z-index: 2; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 11%, rgba(255, 255, 255, .06) 11% 11.6%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px),
    linear-gradient(150deg, #2f333a 0%, #0d0e11 45%, #1c1e23 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 60px rgba(0, 0, 0, .7);
}
.body::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(170, 185, 255, .2) 50%, transparent 62%); background-size: 260% 100%; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { from { background-position: 130% 0; } to { background-position: -130% 0; } }

.window {
  top: 46%; width: 12%; height: 19%; z-index: 3; border-radius: 4px;
  background: linear-gradient(160deg, rgba(131, 153, 255, .42), rgba(8, 10, 28, .95) 70%);
  border: 1px solid rgba(190, 205, 255, .65);
  box-shadow: 0 0 26px rgba(131, 153, 255, .5), inset 0 0 20px rgba(179, 225, 255, .28);
  animation: glow 4.5s ease-in-out infinite;
}
.window::before, .window::after { content: ""; position: absolute; background: rgba(190, 205, 255, .55); }
.window::before { left: 50%; top: 0; width: 1px; height: 100%; }
.window::after { top: 50%; left: 0; height: 1px; width: 100%; }
.window--l { left: 20%; }
.window--r { right: 20%; animation-delay: -2s; }
@keyframes glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }

.post { bottom: 0; width: .5%; height: 24%; z-index: 4; background: linear-gradient(90deg, #aab0bb, #2a2d33); }
.post::after { content: ""; position: absolute; left: 50%; top: -4%; width: 520%; aspect-ratio: 1; margin-left: -260%; border-radius: 50%; background: var(--ice); box-shadow: 0 0 22px 8px rgba(179, 225, 255, .55); }
.post--l { left: 3%; }
.post--r { right: 3%; height: 18%; }

/* door */
.door { left: 50%; bottom: 0; width: 17%; height: 46%; transform: translateX(-50%); z-index: 5; }
.door__frame { position: absolute; inset: -3% -9% 0 -9%; background: #08090b; border-radius: 50% 50% 0 0 / 14% 14% 0 0; border: 1px solid rgba(190, 205, 255, .7); box-shadow: 0 0 24px rgba(131, 153, 255, .4), inset 0 0 14px rgba(131, 153, 255, .25); }
.door__step { position: absolute; left: -18%; right: -18%; bottom: -3%; height: 5%; background: linear-gradient(#6b7079, #1b1d21); border-radius: 3px; box-shadow: 0 0 24px rgba(131, 153, 255, .3); }

.doorway {
  position: absolute; inset: 0; perspective: 900px; background: #030305;
  box-shadow: 0 0 calc(var(--open) * 6vw) calc(var(--open) * 1.4vw) rgba(131, 153, 255, calc(var(--open) * .6));
}
.doorway__room {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(ellipse at 50% 58%, #f6f8ff 0%, #a8b6ff 20%, #5a48d6 52%, #0d0a2a 100%);
}
.doorway__floor {
  position: absolute; left: -20%; right: -20%; bottom: 0; height: 34%;
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px) 0 0 / 100% 22%,
    linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px) 0 0 / 14% 100%,
    linear-gradient(#2a2080, #0b0824);
}
.chip {
  --c: #fff; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center;
  font-family: var(--font); font-weight: 600; font-size: clamp(8px, 1.6vw, 22px); color: var(--c); text-shadow: 0 0 10px var(--c);
  background: linear-gradient(145deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .04));
  border: 1px solid color-mix(in srgb, var(--c) 70%, #fff 20%);
  box-shadow: 0 6px 18px rgba(5, 5, 30, .5), 0 0 16px color-mix(in srgb, var(--c) 45%, transparent);
  opacity: calc(var(--open) * 1.2 - .2); animation: bob 4s ease-in-out infinite;
}
.chip--1 { --c: #ffb24a; left: 12%; top: 14%; }
.chip--2 { --c: #3fe0c5; left: 58%; top: 10%; animation-delay: -1s; }
.chip--3 { --c: #ff6a5a; left: 34%; top: 34%; animation-delay: -2s; }
.chip--4 { --c: #8f7bff; left: 14%; top: 54%; animation-delay: -.6s; }
.chip--5 { --c: #ff5fa8; left: 60%; top: 50%; animation-delay: -1.7s; }
.chip--6 { --c: #4cc9ff; left: 36%; top: 66%; width: 18%; animation-delay: -2.6s; }
.chip--7 { --c: #b6f24a; left: 74%; top: 30%; width: 18%; animation-delay: -3.1s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7%; } }

.leaves { position: absolute; inset: 0; transform-style: preserve-3d; }
.leaf {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px),
    var(--steel);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
  filter: brightness(calc(1 - var(--open) * .35));
}
.leaf--l { left: 0; transform-origin: left center; transform: rotateY(calc(var(--open) * 104deg)); }
.leaf--r { right: 0; transform-origin: right center; transform: rotateY(calc(var(--open) * -104deg)); }
.panel { position: absolute; left: 14%; right: 14%; height: 36%; border: 1px solid rgba(255, 255, 255, .2); border-radius: 2px; box-shadow: inset 0 0 10px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4); }
.panel:nth-of-type(1) { top: 8%; }
.panel:nth-of-type(2) { bottom: 8%; }
.handle { position: absolute; top: 42%; width: 5%; height: 15%; border-radius: 99px; background: #dfe6ff; box-shadow: 0 0 10px 2px rgba(179, 205, 255, .8); }
.leaf--l .handle { right: 8%; }
.leaf--r .handle { left: 8%; }

/* inside overlay */
.inside {
  position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; text-align: center; padding: 0 24px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, rgba(120, 135, 235, .55) 0%, rgba(70, 55, 170, .4) 18%, rgba(8, 6, 24, .97) 55%, #030304 80%);
  opacity: var(--reveal); pointer-events: none;
}
.inside__copy { position: relative; transform: translateY(calc((1 - var(--reveal)) * 40px)); }
.inside h2 { font-size: clamp(2.4rem, 7.4vw, 6.4rem); }

.tunnel { position: absolute; inset: 0; perspective: 520px; opacity: .6; }
.tunnel::before, .tunnel::after {
  content: ""; position: absolute; left: -60%; right: -60%; height: 100%;
  background:
    linear-gradient(rgba(150, 165, 255, .55) 1px, transparent 1px) 0 0 / 100% 90px,
    linear-gradient(90deg, rgba(150, 165, 255, .45) 1px, transparent 1px) 0 0 / 90px 100%;
  animation: flow 2.2s linear infinite;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60%); mask-image: linear-gradient(to bottom, transparent, #000 60%);
}
.tunnel::before { top: 50%; transform-origin: 50% 0; transform: rotateX(72deg); }
.tunnel::after { bottom: 50%; transform-origin: 50% 100%; transform: rotateX(-72deg) scaleY(-1); }
@keyframes flow { to { background-position: 0 90px, 0 0; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(8, 9, 11, .7); padding: 22px 0; }
.marquee__track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 34s linear infinite; font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.marquee__track span { background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.marquee__track i { font-style: normal; color: var(--blue); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(90px, 13vw, 180px) 0; }
.section__head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 900px; }
h2 { font-size: clamp(2.2rem, 5.6vw, 4.8rem); }

.scrub { font-size: clamp(1.7rem, 4.4vw, 3.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; max-width: 22ch; max-width: 1000px; }
.scrub .sw { opacity: .14; transition: opacity .15s linear; }

/* pinned corridor */
.corridor { position: relative; }
.corridor__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 44px); padding-top: 70px; }
.corridor__head h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.corridor__head .label { margin-bottom: 18px; }
.corridor__track { display: flex; gap: clamp(20px, 3vw, 48px); padding-inline: max(20px, calc((100vw - 1180px) / 2)); width: max-content; will-change: transform; }

.room {
  --accent: #8399ff; --px: 0;
  position: relative; flex: none; width: min(78vw, 980px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center;
  padding: clamp(24px, 3.4vw, 48px); border-radius: 28px; overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .012) 55%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 30px 80px -30px rgba(0, 0, 0, .9);
}
.room::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -18%; top: -30%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 66%); pointer-events: none; }
.room__text { position: relative; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.room__num { font-size: .78rem; letter-spacing: .18em; color: var(--accent); }
.room h3 { font-size: clamp(2.2rem, 4.6vw, 4rem); background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.room p { color: var(--muted); max-width: 40ch; font-size: 1.05rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tags li { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 7px 13px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); color: color-mix(in srgb, var(--accent) 80%, #fff); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.room__link { text-decoration: none; font-weight: 500; display: inline-flex; gap: 10px; align-items: center; padding-bottom: 4px; border-bottom: 1px solid var(--accent); }
.room__link i { font-style: normal; display: inline-block; transition: transform .25s; color: var(--accent); }
.room__link:hover i { transform: translateX(8px); }

.orb {
  position: relative; justify-self: center; width: min(100%, 320px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  transform: perspective(900px) rotateX(var(--tiltx, 0deg)) rotateY(var(--tilty, 0deg)); transition: transform .15s ease-out;
  background:
    radial-gradient(circle at calc(var(--mx, 35) * 1%) calc(var(--my, 30) * 1%), rgba(255, 255, 255, .5), transparent 34%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 35%, #0a0b0d), #050506 72%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), inset 0 -30px 60px rgba(0, 0, 0, .6), 0 0 80px -10px color-mix(in srgb, var(--accent) 60%, transparent);
}
.orb__ring { position: absolute; inset: -8%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, var(--accent) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb__mono { font-size: clamp(5rem, 11vw, 9rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; transform: translateX(calc(var(--px) * -36px));
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }

.rail { position: absolute; left: max(20px, calc((100vw - 1180px) / 2)); right: max(20px, calc((100vw - 1180px) / 2)); bottom: 28px; height: 1px; background: var(--line); }
.rail i { position: absolute; inset: 0; background: var(--irid); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--blue); }

/* principles */
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.value {
  position: relative; padding: 30px 28px 34px; border-radius: 22px; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  transform: perspective(900px) rotateX(var(--tiltx, 0deg)) rotateY(var(--tilty, 0deg)); transition: transform .15s ease-out, border-color .3s;
}
.value::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at calc(var(--mx, 50) * 1%) calc(var(--my, 0) * 1%), rgba(131, 153, 255, .22), transparent 70%); opacity: 0; transition: opacity .3s; }
.value:hover { border-color: rgba(131, 153, 255, .5); }
.value:hover::before { opacity: 1; }
.value span { color: var(--blue); font-size: .85rem; }
.value h3 { font-size: 1.9rem; margin-top: auto; background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.value p { color: var(--muted); position: relative; }

/* contact */
.contact { text-align: center; padding-bottom: clamp(120px, 16vw, 220px); }
.contact h2 { font-size: clamp(2.6rem, 8vw, 7rem); max-width: 14ch; margin: 0 auto 54px; }
.magnetic { transition: transform .2s ease-out, box-shadow .25s; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .8rem; color: var(--muted); background: rgba(3, 3, 4, .85); }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .nav__logo { font-family: var(--font); font-size: 1.2rem; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .hero-copy { inset-block-start: 84px; }
  .house { bottom: 10%; width: min(100vw, 82svh); margin-left: calc(min(100vw, 82svh) / -2); }

  /* corridor becomes a normal vertical stack */
  .corridor__sticky { position: static; height: auto; overflow: visible; padding: 20px 0 60px; }
  .corridor__track { flex-direction: column; width: auto; padding-inline: 20px; transform: none !important; }
  .room { width: 100%; grid-template-columns: 1fr; }
  .orb { width: min(70%, 240px); order: -1; }
  .rail { display: none; }
}

/* ---------- reduced motion: skip the scroll story ---------- */
.static .stage { height: 100svh; }
.static .hero-copy { display: none; }
.static .corridor__sticky { position: static; height: auto; overflow: visible; padding: 20px 0 60px; }
.static .corridor__track { flex-direction: column; width: auto; padding-inline: 20px; transform: none !important; }
.static .room { width: 100%; }
.static .rail { display: none; }
.static .scrub .sw { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .split .w > i { transform: none; }
}
