/* ==========================================================================
   Rift Lighting — styles
   ========================================================================== */

@property --accent { syntax: '<color>'; inherits: true; initial-value: #9b5cff; }
@property --angle  { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --bg: #050507;
  --bg-2: #0a0a10;
  --bg-3: #111119;
  --text: #f2ede4;
  --text-dim: rgba(242, 237, 228, .64);
  --text-faint: rgba(242, 237, 228, .4);
  --line: rgba(242, 237, 228, .09);
  --line-strong: rgba(242, 237, 228, .18);

  --magenta: #ff3d8b;
  --violet: #9b5cff;
  --blue: #3d7bff;
  --cyan: #2ee6d6;
  --amber: #ffb547;
  --warm: #ffcf94;
  --spectrum: linear-gradient(90deg, var(--magenta), var(--violet) 26%, var(--blue) 50%, var(--cyan) 74%, var(--amber));
  --accent: #9b5cff;

  --font-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1400px;
  --radius: 22px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
  transition: --accent 1.2s ease;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--violet); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-weight: 500; text-decoration: none;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Film grain over everything — static, cheap */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Soft colored light that trails the cursor (desktop only) */
.cursor-light {
  position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none;
  width: 720px; height: 720px; margin: -360px 0 0 -360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 20%, transparent), transparent);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .8s ease;
  will-change: transform;
}
.has-cursor .cursor-light { opacity: 1; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow__num {
  color: var(--text);
  padding-right: 12px;
  border-right: 1px solid var(--line-strong);
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent);
  animation: pulse 2.6s ease-in-out infinite;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: .95;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h2 em, .contact__title em {
  font-style: italic;
}

/* Gradient italic words */
.grad,
.h2 em .w > span,
.contact__title em .w > span,
.no-split .h2 em, .no-split .contact__title em {
  background: var(--spectrum);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
  animation: shimmer 9s linear infinite;
}

.section { padding-block: clamp(110px, 17vh, 200px); position: relative; }

.sec-head { display: grid; gap: 24px; max-width: 980px; }
.sec-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px 64px;
}
.sec-head--split .eyebrow + .h2 { margin-top: 24px; }
.sec-head__lede {
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--text-dim);
  max-width: 54ch;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  border: 0; border-radius: 999px;
  font: 500 15px/1 var(--font-sans);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .5s var(--ease-out), background-color .3s, box-shadow .4s, color .3s;
  isolation: isolate;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { padding: 12px 20px; font-size: 14px; }

.btn--primary { background: var(--text); color: #0a0a0f; }
.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 12px 50px -8px var(--accent), 0 0 90px -20px var(--accent);
}

.btn--ghost {
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,.09); }

.btn--glow { color: var(--text); }
.btn--glow::before,
.btn--glow::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  animation: spin 5s linear infinite;
}
.btn--glow::before {
  inset: 0; z-index: -1;
  border: 1px solid transparent;
  background:
    linear-gradient(#0c0c13, #0c0c13) padding-box,
    conic-gradient(from var(--angle), var(--magenta), var(--violet), var(--blue), var(--cyan), var(--amber), var(--magenta)) border-box;
}
.btn--glow::after {
  inset: 3px; z-index: -2;
  background: conic-gradient(from var(--angle), var(--magenta), var(--violet), var(--blue), var(--cyan), var(--amber), var(--magenta));
  filter: blur(12px);
  opacity: .5;
  transition: opacity .4s;
}
.btn--glow:hover::after { opacity: .9; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 20px;
  padding: 20px var(--gutter);
  transition: transform .6s var(--ease-out), background-color .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-block: 12px;
  background: rgba(5, 5, 7, .62);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-105%); }

.nav__logo {
  display: inline-flex; align-items: center; gap: 14px;
  margin-right: auto;
  text-decoration: none; color: var(--text);
}
.wordmark { height: 24px; width: auto; overflow: visible; }
.wordmark-rift { filter: drop-shadow(0 0 3px rgba(155, 92, 255, .9)); }
.nav__logo-sub {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--text-dim);
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  line-height: 1.4;
}

.nav__links { display: flex; gap: 2px; }
.nav__links a {
  padding: 9px 15px; border-radius: 999px;
  font-size: 14px; color: var(--text-dim); text-decoration: none;
  transition: color .3s, background-color .3s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.05); }

.nav__menu {
  display: none;
  align-items: center; gap: 12px;
  padding: 10px 6px 10px 14px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.nav__menu-icon { position: relative; width: 22px; height: 10px; }
.nav__menu-icon i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.nav__menu-icon i:first-child { top: 0; }
.nav__menu-icon i:last-child { top: 8px; }
.nav__menu[aria-expanded="true"] .nav__menu-icon i:first-child { top: 4px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-icon i:last-child { top: 4px; transform: rotate(-45deg); }

.nav__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  pointer-events: none;
}
.nav__progress i {
  display: block; height: 100%;
  background: var(--spectrum);
  transform-origin: left;
  transform: scaleX(var(--scroll, 0));
  box-shadow: 0 0 10px rgba(155, 92, 255, .7);
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: rgba(5, 5, 7, .94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity .4s ease;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__links { display: grid; }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 11vw, 64px); line-height: 1.05;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.menu__links a span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--text-faint); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .2s; }
.menu__contact { display: grid; gap: 8px; color: var(--text-dim); }
.menu__contact a { text-decoration: none; font-size: 18px; }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .06em .14em 0;
  margin: 0 -.06em -.14em 0;
}
.split .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 55ms);
}
.split.is-in .w > span { transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero.is-live .hero__canvas { opacity: 1; }
.hero__fallback {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 3px 38% at 68% 46%, rgba(255,255,255,.85), transparent),
    radial-gradient(ellipse 4% 42% at 68% 46%, rgba(155,92,255,.55), transparent 70%),
    radial-gradient(ellipse 22% 60% at 68% 46%, rgba(61,123,255,.18), transparent 70%),
    var(--bg);
  transition: opacity 1.8s ease;
}
.hero.is-live .hero__fallback { opacity: 0; }
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 60%;
  z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, rgba(5,5,7,.55) 45%, transparent);
}

.hero__inner {
  padding-bottom: clamp(28px, 5vh, 56px);
  transform: translate3d(0, calc(var(--hero-p, 0) * -80px), 0);
  opacity: calc(1 - var(--hero-p, 0) * 1.5);
}
.hero__eyebrow { margin-bottom: clamp(18px, 3vh, 30px); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(84px, 16vw, 248px);
  line-height: .84;
  letter-spacing: -.035em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding: 0 .1em .08em 0;
  margin-bottom: -.08em;
}
.hero__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.5s var(--ease-out) forwards;
}
.hero__title .line:nth-child(2) > span { animation-delay: .14s; }
.hero__title .grad {
  font-style: italic;
  padding-right: .12em;
}
.js .hero__eyebrow, .js .hero__row { opacity: 0; animation: fadeUp 1.4s var(--ease-out) .5s forwards; }
.js .hero__row { animation-delay: .7s; }

.hero__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px 48px; flex-wrap: wrap;
  margin-top: clamp(24px, 4vh, 40px);
}
.hero__lede {
  max-width: 44ch;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-dim);
}
.hero__lede strong { color: var(--text); font-weight: 500; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__foot {
  display: flex; align-items: center; gap: 40px;
  padding-block: 20px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-faint);
  position: relative;
}
.hero__foot::before {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: -1px; height: 1px;
  background: var(--spectrum); opacity: .5;
  transform-origin: left; transform: scaleX(0);
  animation: grow 2.2s var(--ease-out) 1s forwards;
}
.hero__foot b { color: var(--text); font-weight: 500; margin-right: 8px; }
.hero__scroll {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text-dim);
}
.hero__scroll i {
  position: relative; width: 1px; height: 30px; overflow: hidden;
  background: var(--line-strong);
}
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 50%;
  background: var(--text);
  animation: drip 2s var(--ease-in-out) infinite;
}

/* ---------- Manifesto ---------- */
.manifesto { position: relative; height: 240vh; }
.manifesto__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
}
.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.9vw, 82px);
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 1200px;
  text-wrap: pretty;
}
.manifesto__text mark { background: none; color: inherit; font-style: italic; }
.js .manifesto__text .mw {
  opacity: .13;
  transition: opacity .6s ease, filter .6s ease;
  filter: blur(1.5px);
}
.js .manifesto__text .mw.is-lit { opacity: 1; filter: none; }
.manifesto__text mark .mw > span {
  background: var(--spectrum);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
  animation: shimmer 6s linear infinite;
}

/* ---------- Scenes ---------- */
.scenes .sec-head { margin-bottom: clamp(40px, 6vh, 64px); }

.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #04050a;
  box-shadow: 0 0 0 1px var(--line), 0 50px 140px -50px rgba(0,0,0,.9), 0 0 120px -60px var(--accent);
}
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.stage__hud {
  position: absolute; left: clamp(16px, 2.4vw, 32px); top: clamp(16px, 2.4vw, 30px);
  max-width: min(380px, 62%);
  pointer-events: none;
}
.stage__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-faint);
}
.stage__name {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.05;
  margin-top: 6px;
}
.stage__blurb { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--text-dim); }
.stage__name, .stage__blurb { transition: opacity .35s ease, transform .5s var(--ease-out); }
.stage.is-swapping .stage__name, .stage.is-swapping .stage__blurb { opacity: 0; transform: translateY(6px); }
.stage__live {
  position: absolute; right: clamp(16px, 2.4vw, 30px); top: clamp(16px, 2.4vw, 30px);
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-dim);
}
.stage__live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff4d5e; box-shadow: 0 0 10px 1px #ff4d5e;
  animation: pulse 1.8s ease-in-out infinite;
}
.stage__note {
  position: absolute; right: clamp(16px, 2.4vw, 30px); bottom: clamp(14px, 2vw, 24px);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint);
}

/* 3D house layer */
.stage__gl {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
  touch-action: pan-y;
}
.stage.is-3d .stage__gl { opacity: 1; }
.stage.is-3d .stage__canvas { opacity: 0; pointer-events: none; transition: opacity 1.4s ease; }
.stage.is-3d .stage__gl { cursor: grab; }
.stage__scrim {
  position: absolute; inset: 0 0 auto 0; height: 46%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(3,4,8,.55), rgba(3,4,8,.18) 55%, transparent);
  opacity: 0; transition: opacity 1.4s ease;
}
.stage.is-3d .stage__scrim { opacity: 1; }
.stage.is-day .stage__scrim { background: linear-gradient(to bottom, rgba(3,4,8,.72), rgba(3,4,8,.3) 55%, transparent); }
.stage.is-3d .stage__hud, .stage.is-3d .stage__note, .stage.is-3d .stage__live { text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.stage.is-dragging .stage__gl { cursor: grabbing; }
.stage.is-exploring .stage__gl { touch-action: none; }
.stage::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3;
  background: var(--spectrum);
  transform-origin: left; transform: scaleX(0); opacity: 0;
  transition: opacity .4s;
}
.stage.is-loading-3d::after { opacity: 1; animation: loadbar 1.4s var(--ease-in-out) infinite; }
@keyframes loadbar { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 50.01% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

.stage.is-3d .stage__note {
  top: calc(clamp(16px, 2.4vw, 30px) + 26px); bottom: auto;
  max-width: 230px; text-align: right; line-height: 1.6;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .5s, transform .5s var(--ease-out);
}
.stage.is-3d.is-close .stage__note { opacity: 1; transform: none; }

.stage__controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: clamp(12px, 2vw, 24px);
  background: linear-gradient(to top, rgba(4,5,10,.55), transparent);
  pointer-events: none;
  opacity: 0; transform: translateY(8px);
  transition: opacity .8s ease .4s, transform .8s var(--ease-out) .4s;
}
.stage__controls[hidden] { display: none; }
.stage.is-3d .stage__controls { opacity: 1; transform: none; }
.stage__controls > * { pointer-events: auto; }

.tod {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(8, 9, 14, .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tod__icon { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--text-dim); stroke-width: 1.6; stroke-linecap: round; }
.tod input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: clamp(110px, 16vw, 200px); height: 22px; margin: 0;
  background: transparent; cursor: pointer;
}
.tod input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #1b2450, #6a3a8a 40%, #ff8a4a 55%, #8fc3ff);
}
.tod input[type="range"]::-moz-range-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #1b2450, #6a3a8a 40%, #ff8a4a 55%, #8fc3ff);
}
.tod input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 0 14px rgba(255,255,255,.6);
}
.tod input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 0 14px rgba(255,255,255,.6);
}
.tod input[type="range"]:focus-visible { outline: none; }
.tod:focus-within { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px var(--cyan); }

.stage__btns { display: flex; gap: 8px; }
.views {
  display: flex; padding: 4px; border-radius: 999px;
  background: rgba(8, 9, 14, .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.views__btn, .explore {
  border: 0; cursor: pointer;
  font: 500 13px/1 var(--font-sans);
  padding: 9px 14px; border-radius: 999px;
  color: var(--text-dim); background: transparent;
  transition: background-color .3s, color .3s;
}
.views__btn:hover { color: var(--text); }
.views__btn[aria-pressed="true"] { background: rgba(255,255,255,.12); color: var(--text); }
.explore {
  background: rgba(8, 9, 14, .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
}
.explore { display: inline-flex; align-items: center; gap: 8px; }
.explore svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.explore[aria-pressed="true"] { background: var(--text); color: #0a0a0f; }
@media (hover: hover) and (pointer: fine) { .explore { display: none; } }

.stage__hint {
  position: absolute; left: 50%; bottom: clamp(70px, 9vw, 86px); z-index: 2;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-faint); pointer-events: none;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .stage.is-3d:not(.has-dragged):not(.is-close) .stage__hint { display: block; animation: hintIn 1s var(--ease-out) 1.6s both; }
}
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }

.picker {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 22px;
}
.chip {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 9px;
  border: 0; border-radius: 999px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-dim);
  font: 500 14px/1 var(--font-sans);
  cursor: pointer;
  transition: color .3s, background-color .3s, box-shadow .3s, transform .4s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { color: var(--text); background: rgba(255,255,255,.07); }
.chip[aria-pressed="true"], .chip.is-active {
  color: var(--text);
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.chip__sw {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  flex: none;
}
.chip[aria-pressed="true"] .chip__sw, .chip.is-active .chip__sw {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 0 16px 1px rgba(255,255,255,.18);
}
.chip__bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--spectrum);
  transform-origin: left; transform: scaleX(0);
  opacity: .9;
}
.chip.is-timing .chip__bar { animation: grow var(--cycle, 5s) linear forwards; }
.scenes.is-paused .chip__bar { animation-play-state: paused; }
.chip--custom input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
  border: 0; padding: 0;
}
.chip--custom:focus-within { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding-block: clamp(36px, 7vh, 80px);
  border-block: 1px solid var(--line);
  user-select: none;
  position: relative;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 1; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item {
  display: inline-flex; align-items: center; gap: .32em;
  padding-right: .32em;
  font-family: var(--font-display);
  font-size: clamp(60px, 9.5vw, 156px);
  line-height: 1.05;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 228, .32);
}
.marquee__item em { font-style: italic; color: var(--text); -webkit-text-stroke: 0; }
.marquee__glyph { width: .16em; height: .7em; overflow: visible; filter: drop-shadow(0 0 8px rgba(155,92,255,.8)); }

/* ---------- Work (horizontal) ---------- */
.work { position: relative; }
.work__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(20px, 3.4vh, 40px);
  padding-block: 84px 28px;
  overflow: hidden;
}
.work__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px; flex-wrap: wrap;
}
.work__head .h2 { margin-top: 18px; font-size: clamp(44px, 5.4vw, 92px); }
.work__meta { max-width: 34ch; color: var(--text-dim); font-size: 15px; display: grid; gap: 14px; justify-items: start; }
.work__count { color: var(--text-faint); }
.work__count span { color: var(--text); }

.work__viewport { overflow: visible; }
.work__track {
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  width: max-content;
  padding-inline: var(--gutter);
  will-change: transform;
}

.panel {
  flex: none;
  width: clamp(300px, 60vw, 940px);
  height: min(58vh, 620px);
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #0b0b12 0%, #07070b 100%);
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative;
}
.panel__art {
  position: relative; min-height: 0; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(155, 92, 255, .1), transparent 70%);
}
.panel__art .art {
  position: absolute; inset: 4% 0 0;
  width: 100%; height: 96%;
  transform: translate3d(calc(var(--px, 0) * -36px), 0, 0);
}
.panel__body {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px 40px;
  padding: clamp(18px, 2.4vh, 26px) clamp(20px, 2.4vw, 32px) clamp(20px, 2.8vh, 30px);
  border-top: 1px solid var(--line);
  background: rgba(5,5,7,.6);
}
.panel__title-wrap { display: grid; gap: 10px; align-content: start; }
.panel__num { color: var(--text-faint); }
.panel__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 2.5vw, 42px); line-height: 1;
}
.panel__desc { font-size: 15px; line-height: 1.55; color: var(--text-dim); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li {
  padding: 6px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.work__foot { display: flex; align-items: center; gap: 24px; }
.work__progress {
  flex: 1; height: 1px; background: var(--line-strong); position: relative; overflow: hidden;
}
.work__progress i {
  position: absolute; inset: 0;
  background: var(--spectrum);
  transform-origin: left; transform: scaleX(var(--wp, 0));
  box-shadow: 0 0 8px rgba(46, 230, 214, .6);
}
.work__hint { display: none; color: var(--text-faint); }
.work__hint span { display: inline-block; animation: nudge 1.8s var(--ease-in-out) infinite; }

/* SVG art primitives */
.art-line { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.art-house path { fill: #0c0c13; stroke: rgba(242, 237, 228, .14); stroke-width: 1; }
.art-glass > * { fill: url(#g-glass); }
.art-glass.dim > * { opacity: .7; }
.art-mullions, .art-floors { stroke: rgba(5,5,7,.9); stroke-width: 2; fill: none; }
.art-floors { stroke: rgba(242, 237, 228, .08); stroke-width: 1; }
.art-trunk { stroke: #16161e; stroke-width: 7; stroke-linecap: round; fill: none; }
.art-stone { stroke: rgba(5,5,7,.8); stroke-width: 1.5; fill: none; }
.art-rod { stroke: rgba(242, 237, 228, .25); stroke-width: 2; }
.art-plinth { fill: #14141c; stroke: rgba(242, 237, 228, .2); }
.art-person { fill: #020203; stroke: rgba(242, 237, 228, .18); stroke-width: .8; }
.art-canopy { fill: #1a1a24; }

.dots circle {
  fill: var(--magenta);
  animation: fillCycle 7s linear infinite;
  animation-delay: calc(var(--i, 0) * -110ms);
}
.stop-cycle { animation: stopCycle 10s linear infinite; }
.s-teal { animation: stopTeal 9s ease-in-out infinite alternate; }
.s-violet { animation: stopViolet 11s ease-in-out infinite alternate; }
.s-amber { animation: stopAmber 7s ease-in-out infinite alternate; }
.beams path { animation: breathe 6s ease-in-out infinite alternate; }
.beams path:nth-child(2) { animation-delay: -2s; }
.beams path:nth-child(3) { animation-delay: -4s; }
.fixtures circle { fill: #fff6e6; }

.ring { transform-box: view-box; transform-origin: 320px 180px; transform: rotate(var(--a)); }
.ring ellipse {
  fill: none; stroke: url(#p3-ring); stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  transform-box: view-box; transform-origin: 320px 180px;
  animation: tumble var(--dur, 8s) ease-in-out var(--del, 0s) infinite alternate;
}
.sculpt { transform-box: view-box; transform-origin: 320px 180px; animation: spin2d 50s linear infinite; }
.core { animation: breathe 4s ease-in-out infinite alternate; }

.beam-base { stroke: url(#p4-v); stroke-width: 2; opacity: .22; fill: none; }
.beam-run path {
  fill: none; stroke: url(#p4-v); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 60 220;
  animation: dashRise 3.6s linear infinite;
  animation-delay: var(--del, 0s);
}

.fab-rays { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.fab-edge { stroke: rgba(242,237,228,.4); }
.fab-part { stroke: rgba(242,237,228,.45); stroke-width: 1.4; fill: none; }
.fab-channel { fill: #15161e; stroke: rgba(242,237,228,.55); stroke-width: 1.2; }
.fab-pcb { fill: #1c1d27; stroke: rgba(242,237,228,.35); }
.fab-led { fill: #fff; animation: fillCycle 7s linear infinite; }
.fab-diffuser { fill: none; stroke: #f6f0ff; stroke-width: 6; stroke-linecap: round; opacity: .92; }
.fab-dim { stroke: rgba(46, 230, 214, .55); stroke-width: 1; fill: none; }
.fab-leader { stroke: rgba(242,237,228,.4); stroke-width: 1; fill: none; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.6s var(--ease-out) .2s; }
.panel.is-active .fab-leader { stroke-dashoffset: 0; }
.fab-text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; fill: rgba(46, 230, 214, .85); }
.fab-label { fill: var(--text-dim); text-transform: uppercase; font-size: 10.5px; }

.panel:not(.is-active) .art,
.panel:not(.is-active) .art * { animation-play-state: paused; }

/* ---------- Standard ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: clamp(56px, 9vh, 96px);
  border-block: 1px solid var(--line);
}
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px;
  padding: clamp(24px, 3.6vh, 40px) clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(60px, 7.4vw, 124px);
  line-height: .9;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 20%, rgba(242,237,228,.45));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat__label { font-size: 14.5px; color: var(--text-dim); max-width: 22ch; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  --mx: -500px; --my: -500px;
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 230px;
  padding: clamp(24px, 2.4vw, 34px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  isolation: isolate;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background:
    radial-gradient(360px circle at var(--mx) var(--my), color-mix(in oklab, var(--accent) 85%, white), transparent 45%),
    var(--line);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(520px circle at var(--mx) var(--my), color-mix(in oklab, var(--accent) 14%, transparent), transparent 45%);
}
.card__icon {
  width: 30px; height: 30px;
  fill: none; stroke: url(#g-icon); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { margin-top: 28px; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.card p { font-size: 15px; line-height: 1.55; color: var(--text-dim); }

/* ---------- Process ---------- */
.process__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px clamp(40px, 6vw, 110px);
}
.process__intro { position: sticky; top: 130px; align-self: start; }

.steps { position: relative; padding-top: 8px; }
.steps__rail {
  position: absolute; left: 15px; top: 14px; bottom: 60px; width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.steps__rail i {
  display: block; width: 100%; height: 100%;
  border-radius: inherit;
  background: linear-gradient(var(--magenta), var(--violet) 35%, var(--blue) 65%, var(--cyan));
  transform-origin: top; transform: scaleY(var(--p, 0));
  box-shadow: 0 0 16px rgba(155, 92, 255, .8);
}
.step { position: relative; padding: 0 0 clamp(48px, 8vh, 80px) 68px; }
.step:last-child { padding-bottom: 0; }
.step__dot {
  position: absolute; left: 6px; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--line-strong);
  transition: background-color .5s, box-shadow .6s;
}
.step.is-lit .step__dot {
  background: #fff;
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 25%, transparent), 0 0 30px 6px var(--accent);
}
.step__num { color: var(--text-faint); transition: color .5s; }
.step.is-lit .step__num { color: var(--text); }
.step h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 3.6vw, 58px); line-height: 1;
  margin: 10px 0 14px;
  opacity: .35;
  transition: opacity .6s;
}
.step.is-lit h3 { opacity: 1; }
.step p:last-child { color: var(--text-dim); max-width: 46ch; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding-block: clamp(140px, 24vh, 260px) clamp(120px, 20vh, 220px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}
.contact__beam {
  position: absolute; left: 50%; top: -20%; bottom: -20%; width: 0;
  z-index: -1; pointer-events: none;
  transform: rotate(9deg);
}
.contact__beam::before, .contact__beam::after, .contact__beam i {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  background: linear-gradient(180deg, transparent, var(--magenta) 18%, var(--violet) 38%, var(--blue) 58%, var(--cyan) 76%, var(--amber) 90%, transparent);
  background-size: 100% 200%;
  animation: beamFlow 8s linear infinite;
}
.contact__beam i { width: 2px; margin-left: -1px; opacity: .95; }
.contact__beam::before { width: 40px; margin-left: -20px; filter: blur(16px); opacity: .55; }
.contact__beam::after { width: 360px; margin-left: -180px; filter: blur(90px); opacity: .32; }

.contact__inner { display: grid; justify-items: center; gap: 28px; }
.contact__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(56px, 9.6vw, 168px);
  line-height: .92; letter-spacing: -.03em;
  max-width: 13ch;
  text-wrap: balance;
}
.contact__lede { max-width: 52ch; color: var(--text-dim); font-size: clamp(16px, 1.3vw, 19px); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 16px; }
.contact__link {
  display: grid; gap: 10px; justify-items: start;
  min-width: 300px;
  padding: 24px 30px;
  border-radius: var(--radius);
  text-align: left; text-decoration: none;
  background: rgba(10, 10, 16, .72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform .5s var(--ease-out), box-shadow .4s, background-color .4s;
}
.contact__link:hover {
  background: rgba(16, 16, 24, .85);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 20px 70px -20px var(--accent);
}
.contact__link-label { color: var(--text-faint); font-size: 10.5px; }
.contact__link-value { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1; }
.contact__note { color: var(--text-faint); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 64px; overflow: hidden; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__brand .wordmark { height: 30px; }
.footer__brand p, .footer__nav a, .footer__contact a { color: var(--text-dim); font-size: 15px; text-decoration: none; }
.footer__nav, .footer__contact { display: grid; gap: 10px; align-content: start; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--text); }
.footer__mark {
  width: 100%; height: auto;
  color: rgba(242, 237, 228, .055);
  margin-bottom: -2.5%;
  overflow: visible;
}
.footer__mark .wordmark-rift { filter: drop-shadow(0 0 1.2px rgba(155, 92, 255, 1)) drop-shadow(0 0 5px rgba(155, 92, 255, .6)); }
.footer__base {
  position: relative;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-faint);
  background: var(--bg);
}
.footer__top { color: var(--text-dim); text-decoration: none; }
.footer__top:hover { color: var(--text); }

/* ---------- Keyframes ---------- */
@keyframes spin { to { --angle: 360deg; } }
@keyframes spin2d { to { transform: rotate(360deg); } }
@keyframes rise { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes shimmer { to { background-position: 200% 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(6px); } }
@keyframes breathe { from { opacity: .45; } to { opacity: 1; } }
@keyframes tumble { from { transform: scaleY(.14); } to { transform: scaleY(.92); } }
@keyframes dashRise { from { stroke-dashoffset: 280; } to { stroke-dashoffset: 0; } }
@keyframes beamFlow { to { background-position: 0 -200%; } }
@keyframes fillCycle {
  0%, 100% { fill: #ff3d8b; } 20% { fill: #9b5cff; } 40% { fill: #3d7bff; } 60% { fill: #2ee6d6; } 80% { fill: #ffb547; }
}
@keyframes stopCycle {
  0%, 100% { stop-color: #ff3d8b; } 20% { stop-color: #9b5cff; } 40% { stop-color: #3d7bff; } 60% { stop-color: #2ee6d6; } 80% { stop-color: #ffb547; }
}
@keyframes stopTeal { from { stop-color: #2ee6d6; } to { stop-color: #3d7bff; } }
@keyframes stopViolet { from { stop-color: #9b5cff; } to { stop-color: #ff3d8b; } }
@keyframes stopAmber { from { stop-color: #ffb547; } to { stop-color: #ffe0b0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .sec-head--split { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .process__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  /* Horizontal gallery becomes native swipe */
  .work { height: auto !important; padding-block: clamp(90px, 14vh, 140px) 40px; }
  .work__pin { position: relative; height: auto; overflow: visible; padding: 0; }
  .work__viewport {
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .work__viewport::-webkit-scrollbar { display: none; }
  .work__track { transform: none !important; }
  .panel { width: min(84vw, 560px); height: auto; scroll-snap-align: center; }
  .panel__art { aspect-ratio: 16 / 10.5; }
  .panel__body { grid-template-columns: 1fr; }
  .work__hint { display: block; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav { padding-block: 14px; }
  .nav__cta { display: none; }
  .nav__logo-sub { display: none; }
  .hero__foot span:nth-child(n+2) { display: none; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1; }
  .stage { aspect-ratio: 4 / 3.6; border-radius: 16px; }
  .stage__blurb { font-size: 13px; }
  .stage__note { display: none; }
  .stage { aspect-ratio: 4 / 4.5; }
  .stage__controls { align-items: center; gap: 6px; padding: 10px; }
  .tod { flex: 1; min-width: 0; gap: 6px; padding: 7px 10px; }
  .tod input[type="range"] { flex: 1; width: auto; min-width: 40px; }
  .views__btn { padding: 8px 10px; font-size: 12px; }
  .explore { padding: 8px; }
  .explore__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stage.is-3d .stage__blurb { display: none; }
  .stage.is-3d .stage__name { font-size: 28px; }
  .stage.is-3d .stage__note { display: none; }
  .picker {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 6px;
    scrollbar-width: none;
  }
  .picker::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .contact__link { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .manifesto { height: 200vh; }
}

@media (max-height: 760px) and (min-width: 901px) {
  .work__pin { padding-top: 72px; gap: 18px; }
  .work__head .h2 { font-size: clamp(40px, 4.4vw, 70px); }
  .panel { height: min(56vh, 560px); }
  .work__meta p:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .manifesto { height: auto; }
  .manifesto__sticky { position: static; height: auto; padding-block: 18vh; }
  .work { height: auto !important; }
  .work__pin { position: relative; height: auto; overflow: visible; }
  .work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
  .work__track { transform: none !important; }
  .panel { scroll-snap-align: center; }
}
