/* Wolvhaus 2046 — one screen, no vertical scroll. */
:root {
  --void: #050506;
  --ink: #0b0a09;
  --bone: #ece7de;
  --bone-2: #d9d2c6;
  --tan: #c3a38c;
  --mute: rgba(236, 231, 222, .58);
  --line: rgba(236, 231, 222, .14);
  --iri: linear-gradient(100deg, #9fe8ff 0%, #c7a6ff 28%, #ffc9b0 52%, #c3a38c 70%, #b8ffd9 100%);
  --disp: 'Syne', 'Arial Black', sans-serif;
  --body: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --serif: 'Unbounded', 'Syne', sans-serif;
  --pad: clamp(16px, 2.6vw, 40px);
  --bar: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  background: var(--void); color: var(--bone);
  font: 400 15px/1.45 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  touch-action: manipulation;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-style: normal; font-weight: 300; letter-spacing: -.035em; text-transform: lowercase !important; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

/* Background layers */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.fallback-bg { position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 75% 20%, rgba(195,163,140,.25), transparent 70%),
              radial-gradient(50% 50% at 20% 80%, rgba(159,232,255,.12), transparent 70%), var(--void); }
body.no-gl .fallback-bg { z-index: 0; }
.grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-6%,-2%)} 80%{transform:translate(5%,4%)} }

/* Top bar */
.bar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: var(--bar);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top); }
.bar__mark img { height: 15px; width: auto; }
.bar__nav { display: flex; gap: 4px; padding: 4px; border-radius: 99px;
  background: rgba(12, 11, 10, .45); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tab { font: 500 13px/1 var(--body); padding: 9px 14px 9px 12px; border-radius: 99px; color: var(--mute);
  display: flex; gap: 7px; align-items: center; transition: color .3s, background .3s; }
.tab__n { font: 500 9px/1 var(--mono); opacity: .6; }
.tab:hover { color: var(--bone); }
.tab.is-on { background: var(--bone); color: var(--ink); }
.bar__meta { justify-self: end; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #5bff9b; box-shadow: 0 0 10px #5bff9b; display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Stages */
.stage { position: fixed; inset: 0; z-index: 5; padding: calc(var(--bar) + env(safe-area-inset-top)) var(--pad) var(--pad); }
.kicker { color: var(--mute); display: flex; gap: 10px; align-items: center; }
.kicker span { color: var(--tan); }

/* 01 Intake */
.stage--intake { display: grid; place-items: center; overflow-y: auto; scrollbar-width: none; }
.stage--intake::-webkit-scrollbar { display: none; }
.intake { width: min(980px, 100%); display: flex; flex-direction: column; gap: clamp(12px, 2.2vh, 24px); }
.intake__h { font: 800 clamp(34px, 6.4vw, 92px)/.9 var(--disp); letter-spacing: -.035em; text-transform: uppercase; }
.intake__h .serif { text-transform: none; font-size: 1.02em; letter-spacing: -.03em; background: var(--iri); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: iri 8s linear infinite; padding-right: .08em; }
@keyframes iri { to { background-position: 200% 0; } }

.mad { position: relative; background: var(--bone); color: var(--ink); border-radius: 20px; padding: clamp(18px, 2.6vw, 38px);
  display: flex; flex-direction: column; gap: clamp(14px, 2.2vh, 26px);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.4) inset;
  transform-style: preserve-3d; will-change: transform; isolation: isolate; overflow: hidden; }
.mad::before { content: ''; position: absolute; inset: -1px; z-index: -1; opacity: .55; pointer-events: none;
  background: radial-gradient(420px 260px at var(--mx, 70%) var(--my, 0%), rgba(199,166,255,.55), rgba(159,232,255,.35) 40%, transparent 70%); transition: opacity .4s; }
.mad::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%);
  transform: translateX(-120%); animation: sheen 6s var(--ease) 1.2s infinite; }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.mad__head { display: flex; justify-content: space-between; color: rgba(11,10,9,.55); }
.mad__head b { color: var(--ink); font-weight: 500; }
.mad__s { font: 500 clamp(19px, 2.15vw, 34px)/1.62 var(--body); letter-spacing: -.025em; }
.blank { font: inherit; letter-spacing: inherit; color: var(--ink); background: rgba(11,10,9,.07); border: 0; border-bottom: 2px solid var(--ink);
  border-radius: 6px 6px 0 0; padding: 0 .3em; outline: none; min-width: 3.5em; max-width: 100%; vertical-align: baseline;
  transition: background .25s, box-shadow .25s; -webkit-appearance: none; appearance: none; }
select.blank { cursor: pointer; padding-right: 1.1em; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - .55em) 55%, calc(100% - .3em) 55%; background-size: .25em .25em; background-repeat: no-repeat; background-color: rgba(11,10,9,.07); }
select.blank:invalid { color: rgba(11,10,9,.42); }
.blank::placeholder { color: rgba(11,10,9,.42); }
.blank:focus { background-color: #fff; box-shadow: 0 0 0 3px rgba(11,10,9,.9); }
.blank.is-filled { background-color: rgba(195,163,140,.35); }
.blank.is-bad { box-shadow: 0 0 0 3px #e2483d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mad__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.send { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bone); border-radius: 99px;
  padding: 16px 26px; font: 500 16px/1 var(--body); position: relative; overflow: hidden; transition: transform .3s var(--ease); }
.send::before { content: ''; position: absolute; inset: 0; background: var(--iri); background-size: 200% 100%; opacity: 0; transition: opacity .35s; animation: iri 3s linear infinite; }
.send > * { position: relative; }
.send i { font-style: normal; transition: transform .3s var(--ease); }
.send:hover { transform: translateY(-2px); }
.send:hover::before { opacity: 1; }
.send:hover { color: var(--ink); }
.send:hover i { transform: translateX(4px); }
.send[disabled] { opacity: .5; pointer-events: none; }
.mad__note { color: rgba(11,10,9,.55); }
.intake__alt { display: flex; gap: 10px 22px; align-items: center; flex-wrap: wrap; }
.ghost { display: inline-flex; gap: 10px; align-items: center; padding: 13px 20px; border-radius: 99px; border: 1px solid rgba(236,231,222,.35);
  font: 500 14px/1 var(--body); color: var(--bone); background: rgba(5,5,6,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s, color .3s, border-color .3s; }
.ghost i { font-style: normal; transition: transform .3s var(--ease); }
.ghost:hover { background: var(--bone); color: var(--ink); }
.ghost:hover i { transform: translateX(4px); }
.ghost--quiet { border-color: transparent; background: none; backdrop-filter: none; color: var(--mute); padding-left: 0; }
.ghost--quiet:hover { background: none; color: var(--bone); }

/* 02 Talk */
.stage--talk { display: grid; }
.talk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: clamp(20px, 4vw, 70px); height: 100%; min-height: 0; }
.talk__side { align-self: end; display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; max-width: 520px; }
.talk__h { font: 800 clamp(40px, 6vw, 96px)/.88 var(--disp); letter-spacing: -.04em; text-transform: uppercase; }
.talk__h .serif { text-transform: none; color: var(--tan); }
.talk__sub { color: var(--mute); max-width: 34ch; font-size: 16px; }
.talk__links { display: flex; gap: 18px; color: var(--bone); }
.talk__links a { border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.talk__links a:hover { border-color: var(--tan); }
.dot--live { background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; }
.chat { display: flex; flex-direction: column; min-height: 0; height: 100%; border-radius: 22px; position: relative;
  background: linear-gradient(180deg, rgba(14,13,12,.62), rgba(8,8,9,.78)); border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); overflow: hidden; }
.chat::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--iri); background-size: 200% 100%; animation: iri 6s linear infinite; opacity: .5;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.chat__scroll { flex: 1; overflow-y: auto; padding: 22px 22px 8px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: rgba(236,231,222,.2) transparent; overscroll-behavior: contain;
  -webkit-mask: linear-gradient(transparent, #000 28px); mask: linear-gradient(transparent, #000 28px); }
.msg { max-width: 92%; font-size: 15.5px; line-height: 1.5; animation: msgIn .6s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
.msg--bot { align-self: stretch; max-width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.msg--bot .who { width: 22px; height: 22px; border-radius: 50%; margin-top: 2px; background: conic-gradient(from 0deg, #9fe8ff, #c7a6ff, #ffc9b0, #c3a38c, #b8ffd9, #9fe8ff); animation: spin 6s linear infinite; box-shadow: 0 0 18px rgba(199,166,255,.5); }
.msg--bot.is-typing .who { animation-duration: .9s; }
@keyframes spin { to { transform: rotate(360deg); } }
.msg--bot .txt p + p { margin-top: .6em; }
.msg--bot .txt a { border-bottom: 1px solid var(--tan); }
.msg--me { align-self: flex-end; background: var(--bone); color: var(--ink); padding: 10px 15px; border-radius: 16px 16px 4px 16px; }
.msg--sys { align-self: center; color: var(--mute); }
.caret { display: inline-block; width: .5em; height: 1em; background: var(--tan); vertical-align: -2px; margin-left: 2px; animation: pulse .8s infinite; }
.minis { display: flex; gap: 10px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; scrollbar-width: none; }
.mini { flex: 0 0 auto; width: 170px; border-radius: 12px; overflow: hidden; background: #111; border: 1px solid var(--line); text-align: left; transition: transform .35s var(--ease), border-color .3s; }
.mini:hover { transform: translateY(-3px); border-color: var(--tan); }
.mini video, .mini img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.mini b { display: block; font: 500 12.5px/1.3 var(--body); padding: 8px 10px 2px; }
.mini span { display: block; padding: 0 10px 9px; color: var(--mute); font: 400 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.chips { display: flex; gap: 8px; padding: 6px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: 0 0 auto; font: 500 13px/1 var(--body); padding: 9px 13px; border-radius: 99px; border: 1px solid var(--line); color: var(--bone); background: rgba(236,231,222,.04); transition: background .25s, color .25s; }
.chip:hover { background: var(--bone); color: var(--ink); }
.ask { display: flex; align-items: center; gap: 10px; margin: 0 12px 12px; padding: 6px 6px 6px 16px; border-radius: 16px; background: rgba(236,231,222,.06); border: 1px solid var(--line); }
.ask:focus-within { border-color: rgba(195,163,140,.7); }
.ask__caret { color: var(--tan); font-size: 14px; }
.ask input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 16px; padding: 10px 0; }
.ask input::placeholder { color: rgba(236,231,222,.4); }
.ask button { width: 42px; height: 42px; border-radius: 12px; background: var(--bone); color: var(--ink); font-size: 18px; display: grid; place-items: center; transition: transform .25s var(--ease); }
.ask button i { font-style: normal; }
.ask button:hover { transform: translateY(-2px); }

/* 03 Work — sideways rail */
.stage--work { padding: 0; }
.rail { position: absolute; inset: 0; overflow: hidden; cursor: grab; outline: none; }
.rail.is-drag { cursor: grabbing; }
.track { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
  padding: calc(var(--bar) + 18px) 8vw calc(84px + env(safe-area-inset-bottom)) var(--pad); will-change: transform; }
.panel { flex: 0 0 auto; height: 100%; position: relative; }
.panel--title { width: min(92vw, 1100px); display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-right: 4vw; }
.panel--title h2 { font: 800 clamp(64px, 15vw, 250px)/.8 var(--disp); letter-spacing: -.05em; text-transform: uppercase; }
.panel--title h2 .serif { display: block; text-transform: none; font-size: .42em; letter-spacing: -.02em; color: var(--tan); margin-top: .25em; }
.panel--title p { color: var(--mute); max-width: 42ch; font-size: clamp(15px, 1.3vw, 18px); }
.toc { display: grid; gap: 6px; margin-top: 8px; }
.toc button { display: flex; gap: 14px; align-items: baseline; text-align: left; font: 500 clamp(18px, 2vw, 28px)/1.1 var(--body); letter-spacing: -.02em; color: var(--bone); padding: 4px 0; border-bottom: 1px solid var(--line); width: min(520px, 100%); transition: color .3s, padding .3s var(--ease); }
.toc button span { font: 500 11px var(--mono); color: var(--tan); }
.toc button:hover { padding-left: 10px; color: var(--tan); }

.panel--chapter { width: clamp(220px, 26vw, 420px); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 6vh; border-left: 1px solid var(--line); padding-left: 22px; }
.panel--chapter .num { font: 800 clamp(90px, 13vw, 210px)/.8 var(--disp); letter-spacing: -.06em; -webkit-text-stroke: 1px rgba(236,231,222,.55); color: transparent; }
.panel--chapter h3 { font: 800 clamp(30px, 3.4vw, 58px)/.92 var(--disp); text-transform: uppercase; letter-spacing: -.03em; margin-top: 18px; }
.panel--chapter p { margin-top: 10px; color: var(--tan); }

.card { --h: 100%; height: var(--h); display: flex; flex-direction: column; gap: 12px; cursor: none; }
.card__media { position: relative; flex: 1; min-height: 0; border-radius: 16px; overflow: hidden; background: #0f0e0d; border: 1px solid rgba(236,231,222,.08);
  transform: perspective(900px) rotateY(calc(var(--tilt, 0) * 1deg)) skewX(calc(var(--skew, 0) * 1deg)); transition: border-color .4s; }
.card__media video, .card__media img { position: absolute; inset: -6% -10%; width: 120%; height: 112%; object-fit: cover; transform: translateX(calc(var(--par, 0) * 1%)); transition: filter .5s, transform .2s linear; }
.card:hover .card__media { border-color: rgba(195,163,140,.6); }
.card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.55)); pointer-events: none; }
.card__live { position: absolute; z-index: 2; top: 12px; right: 12px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-radius: 99px; background: var(--bone); color: var(--ink); cursor: pointer; }
.card__live:hover { background: var(--tan); }
.card__meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; }
.card__i { font: 500 11px var(--mono); color: var(--tan); grid-row: span 2; }
.card__name { font: 600 clamp(16px, 1.4vw, 21px)/1.15 var(--body); letter-spacing: -.02em; }
.card__line { color: var(--mute); font-size: 13.5px; max-width: 46ch; }
.card--m { width: clamp(260px, 30vw, 470px); --h: 62%; }
.card--l { width: clamp(300px, 40vw, 640px); --h: 78%; }
.card--xl { width: clamp(320px, 56vw, 920px); --h: 92%; }
.card--tall { width: clamp(220px, 22vw, 360px); --h: 92%; }
.card:nth-child(3n+1).card--m { align-self: flex-start; }
.card:nth-child(3n+2).card--m { align-self: flex-end; }

.panel--ai { width: min(94vw, 1180px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: center; }
.flow { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: rgba(12,11,10,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 12px; }
.flow__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.flow__top b { font: 600 17px/1.2 var(--body); letter-spacing: -.02em; }
.flow__t { font: 500 12px var(--mono); color: var(--tan); }
.steps { display: grid; gap: 6px; }
.step { display: flex; gap: 10px; align-items: center; font: 400 13px/1.3 var(--mono); color: rgba(236,231,222,.35); transition: color .3s; }
.step::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; flex: 0 0 auto; transition: background .3s, box-shadow .3s; }
.step.is-on { color: var(--bone); }
.step.is-on::before { background: #5bff9b; border-color: #5bff9b; box-shadow: 0 0 10px #5bff9b; }
.flow__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.flow__bar i { display: block; height: 100%; width: 0; background: var(--iri); background-size: 300% 100%; }

.panel--end { width: min(96vw, 1100px); display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-left: 4vw; }
.panel--end h2 { font: 800 clamp(64px, 12vw, 210px)/.82 var(--disp); text-transform: uppercase; letter-spacing: -.05em; }
.panel--end h2 .serif { text-transform: none; color: var(--tan); }
.end__row { display: flex; gap: 12px; flex-wrap: wrap; }
.end__big { font: 500 clamp(22px, 3vw, 44px)/1.1 var(--body); letter-spacing: -.03em; display: grid; gap: 4px; }
.end__big a { width: fit-content; background: var(--iri); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: iri 6s linear infinite; }
.solid { display: inline-flex; gap: 10px; align-items: center; padding: 16px 24px; border-radius: 99px; background: var(--bone); color: var(--ink); font: 500 15px/1 var(--body); }
.solid i { font-style: normal; }

.hud { position: absolute; z-index: 6; left: var(--pad); right: var(--pad); bottom: calc(18px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; pointer-events: none; }
.hud__chapters { display: flex; gap: 14px; pointer-events: auto; }
.hud__chapters button { color: var(--mute); font: inherit; letter-spacing: inherit; text-transform: inherit; transition: color .3s; }
.hud__chapters button.is-on, .hud__chapters button:hover { color: var(--bone); }
.hud__bar { height: 1px; background: var(--line); position: relative; }
.hud__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--iri); background-size: 300% 100%; }
.hud__count { color: var(--mute); }
.hud__count b { color: var(--bone); font-weight: 500; }
.hint { position: absolute; z-index: 6; right: var(--pad); top: calc(var(--bar) + 10px); color: var(--mute); display: flex; gap: 10px; align-items: center; transition: opacity .6s; }
.hint__arrow { display: inline-block; animation: nudge 1.6s var(--ease) infinite; color: var(--tan); }
@keyframes nudge { 50% { transform: translateX(8px); } }
.hint.is-gone { opacity: 0; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 40; background: rgba(5,5,6,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: grid; grid-template-rows: 1fr auto; padding: calc(var(--bar) + 8px) var(--pad) var(--pad); gap: 16px; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lb__x { position: absolute; top: 20px; right: var(--pad); color: var(--bone); padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; }
.lb__media { min-height: 0; display: grid; place-items: center; }
.lb__media video, .lb__media img { max-height: 100%; max-width: 100%; border-radius: 14px; object-fit: contain; animation: lbIn .6s var(--ease); }
@keyframes lbIn { from { transform: scale(.92); opacity: 0; } }
.lb__cap { display: flex; justify-content: space-between; gap: 20px; align-items: end; flex-wrap: wrap; }
.lb__cap h4 { font: 800 clamp(26px, 3vw, 46px)/.95 var(--disp); text-transform: uppercase; letter-spacing: -.03em; }
.lb__cap p { color: var(--mute); margin-top: 6px; }

/* Cursor */
.cursor { position: fixed; z-index: 50; left: 0; top: 0; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%; pointer-events: none;
  display: grid; place-items: center; background: var(--bone); color: var(--ink); transform: translate3d(-200px, -200px, 0) scale(0); transition: transform .08s linear; mix-blend-mode: normal; }
.cursor__label { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
@media (hover: none) { .cursor { display: none; } .card { cursor: pointer; } }

/* Stage transitions */
.flash { position: fixed; inset: 0; z-index: 30; pointer-events: none; background: radial-gradient(circle at 50% 50%, #fff, #c7a6ff 25%, transparent 60%); opacity: 0; }
.stage.is-in { animation: stageIn .9s var(--ease) both; }
@keyframes stageIn { from { opacity: 0; transform: scale(1.04); filter: blur(10px); } }
.stage.is-out { animation: stageOut .55s var(--ease-io) both; }
@keyframes stageOut { to { opacity: 0; transform: scale(.96); filter: blur(8px); } }
.mad.is-sending { animation: suck .9s var(--ease-io) forwards; }
@keyframes suck { 40% { transform: scale(.98) rotateX(8deg); } 100% { transform: scale(.05) translateY(-40vh) rotateX(40deg); opacity: 0; filter: blur(12px); } }
.split .w { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; animation: chIn .9s var(--ease) both; animation-delay: calc(var(--i) * 22ms + 200ms); }
@keyframes chIn { from { opacity: 0; transform: translateY(.6em) rotate(6deg); filter: blur(8px); } }

/* Mobile */
@media (max-width: 860px) {
  :root { --bar: 58px; }
  .bar { grid-template-columns: auto 1fr; }
  .bar__mark img { height: 12px; }
  .bar__nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); }
  body[data-mode="work"] .bar__nav { bottom: calc(58px + env(safe-area-inset-bottom)); }
  .bar__meta { display: flex; }
  .stage--intake { place-items: start center; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .intake { gap: 12px; padding-top: 4px; }
  .intake .kicker { font-size: 9.5px; }
  .mad { border-radius: 16px; gap: 12px; padding: 16px; }
  .mad__s { font-size: clamp(17px, 4.9vw, 21px); line-height: 1.68; }
  .send { padding: 14px 20px; font-size: 15px; }
  .mad__note { font-size: 9.5px; }
  .ghost { padding: 11px 16px; font-size: 13px; }
  .stage--talk { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .talk { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
  .talk__side { align-self: start; gap: 6px; }
  .talk__h { font-size: 34px; }
  .talk__sub, .talk__links { display: none; }
  .chat { border-radius: 18px; }
  .chat__scroll { padding: 16px 14px 6px; }
  .msg { font-size: 15px; }
  .track { padding-top: calc(var(--bar) + 26px); padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
  .card--m { width: 74vw; --h: 70%; }
  .card--l { width: 82vw; --h: 82%; }
  .card--xl { width: 88vw; --h: 90%; }
  .card--tall { width: 60vw; --h: 92%; }
  .card:nth-child(n).card--m { align-self: center; }
  .panel--title { width: 90vw; }
  .panel--chapter { width: 62vw; }
  .panel--ai { grid-template-columns: 1fr; width: 86vw; gap: 10px; }
  .panel--ai .flow:nth-child(n+3) { display: none; }
  .hud { grid-template-columns: 1fr auto; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .hud__chapters { display: none; }
  .hint { top: auto; bottom: calc(110px + env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); }
}
@media (max-width: 860px) and (max-height: 700px) {
  .intake__h { font-size: 30px; }
  .mad__s { font-size: 16.5px; line-height: 1.6; }
}

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

/* ===== v3: particle era ===== */
/* Intake: form on the left, the particle sculpture owns the right */
@media (min-width: 861px) {
  .stage--intake { place-items: center start; padding-left: clamp(24px, 6vw, 110px); }
  .intake { width: min(760px, 54vw); }
  .intake__h { font-size: clamp(34px, 5.2vw, 84px); }
  .mad__s { font-size: clamp(18px, 1.75vw, 29px); }
}
.intake__h { text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.mad { background: rgba(236, 231, 222, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Work: full screen, one piece at a time */
.stage--work { padding: 0; }
.wk { position: absolute; inset: 0; outline: none; cursor: crosshair; }
.wk__info { position: absolute; left: clamp(20px, 5vw, 80px); bottom: calc(110px + env(safe-area-inset-bottom)); width: min(470px, 40vw); display: flex; flex-direction: column; gap: 14px; z-index: 3; }
.wk__info.is-in > * { animation: infoIn .9s var(--ease) both; }
.wk__info.is-in > *:nth-child(2) { animation-delay: .06s; }
.wk__info.is-in > *:nth-child(3) { animation-delay: .12s; }
.wk__info.is-in > *:nth-child(4) { animation-delay: .18s; }
.wk__info.is-in > *:nth-child(5) { animation-delay: .24s; }
@keyframes infoIn { from { opacity: 0; transform: translateY(18px); filter: blur(8px); letter-spacing: .02em; } }
.wk__title { font: 800 clamp(40px, 5.6vw, 96px)/.88 var(--disp); letter-spacing: -.04em; text-transform: uppercase; text-shadow: 0 8px 40px rgba(0,0,0,.7); }
.wk__title .serif { text-transform: none; color: var(--tan); }
.wk__line { color: rgba(236,231,222,.78); font-size: clamp(15px, 1.2vw, 18px); max-width: 40ch; text-shadow: 0 2px 20px rgba(0,0,0,.9); }
.wk__tags { color: var(--tan); }
.wk__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.wk__arrow { position: absolute; z-index: 3; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid var(--line); color: var(--bone); background: rgba(5,5,6,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 18px; transition: background .3s, color .3s; }
.wk__arrow:hover { background: var(--bone); color: var(--ink); }
.wk__arrow--prev { left: 18px; } .wk__arrow--next { right: 18px; }
.wk__panel { position: absolute; z-index: 3; pointer-events: none; }
.wk__panel--ai { right: clamp(20px, 5vw, 80px); top: calc(var(--bar) + 30px); bottom: calc(110px + env(safe-area-inset-bottom)); width: min(560px, 44vw); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.hud { grid-template-columns: auto minmax(0, 1fr) auto; }
.strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; pointer-events: auto; padding: 4px 2px; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip::-webkit-scrollbar { display: none; }
.strip__i { flex: 0 0 auto; width: 54px; height: 34px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); opacity: .45; transition: opacity .3s, transform .3s var(--ease), border-color .3s; background: #0d0c0b; display: grid; place-items: center; }
.strip__i img { width: 100%; height: 100%; object-fit: cover; }
.strip__i--obj img { object-fit: contain; }
.strip__i--txt span { font: 500 10px var(--mono); color: var(--tan); }
.strip__i:hover { opacity: .85; }
.strip__i.is-on { opacity: 1; border-color: var(--tan); transform: translateY(-4px) scale(1.12); }
.hint { top: auto; bottom: calc(64px + env(safe-area-inset-bottom)); right: var(--pad); }

@media (max-width: 860px) {
  .wk__info { left: 18px; right: 18px; width: auto; bottom: calc(128px + env(safe-area-inset-bottom)); gap: 10px; }
  .wk__title { font-size: 40px; }
  .wk__line { font-size: 14.5px; }
  .wk__arrow { display: none; }
  .wk__panel--ai { left: 18px; right: 18px; top: calc(var(--bar) + 10px); bottom: auto; width: auto; grid-template-columns: 1fr 1fr; gap: 8px; }
  .wk__panel--ai .flow { padding: 10px; gap: 6px; }
  .wk__panel--ai .flow__top b { font-size: 12.5px; }
  .wk__panel--ai .step { font-size: 10px; }
  .hud { grid-template-columns: minmax(0, 1fr) auto; bottom: calc(66px + env(safe-area-inset-bottom)); }
  .strip__i { width: 44px; height: 30px; }
  body[data-mode="work"] .bar__nav { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .hint { bottom: calc(108px + env(safe-area-inset-bottom)); right: 18px; transform: none; }
  .intake__h { position: relative; z-index: 1; }
}

@media (max-width: 860px) { .wk__title { font-size: clamp(30px, 9.4vw, 40px); } }

.handoff { display: flex; align-items: center; gap: 8px; padding: 0 16px 8px; flex-wrap: wrap; }
.handoff .mono { color: var(--mute); margin-right: 4px; font-size: 10px; }
.handoff__b { font: 500 12.5px/1 var(--body); padding: 8px 12px; border-radius: 99px; border: 1px solid rgba(91,255,155,.35); color: #b8ffd4; background: rgba(91,255,155,.06); transition: background .25s, color .25s; }
.handoff__b:hover { background: #5bff9b; color: var(--ink); }
.handoff__b--wa { border-color: rgba(37,211,102,.45); color: #9cf5bf; }
@media (max-width: 860px) { .handoff { padding: 0 12px 6px; gap: 6px; } .handoff .mono { display: none; } }

/* ===== v4: wide holographic accent + neon CTA ===== */
.serif {
  font-size: .8em; background: var(--iri); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent !important; animation: iri 7s linear infinite; padding-right: .04em;
  filter: drop-shadow(0 0 18px rgba(199, 166, 255, .25));
}
.intake__h .serif { font-size: .82em; }
.wk__title .serif, .talk__h .serif { font-size: .78em; display: inline-block; margin-top: .08em; }

@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.neon { position: relative; isolation: isolate; border: 0; padding: 19px 32px; gap: 14px; font: 600 16.5px/1 var(--body); letter-spacing: -.01em;
  color: #fff; background: rgba(8, 8, 12, .72); border-radius: 99px; text-shadow: 0 0 14px rgba(199, 166, 255, .9);
  transition: transform .35s var(--ease); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.neon::before, .neon::after { content: ''; position: absolute; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--a), #9fe8ff, #c7a6ff, #ff6ad5, #ffb08a, #b8ffd9, #5bff9b, #9fe8ff);
  animation: spinA 3.2s linear infinite; }
.neon::before { inset: -2px; padding: 2px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.neon::after { inset: -7px; z-index: -1; filter: blur(18px); opacity: .7; animation: spinA 3.2s linear infinite, glowPulse 2.4s ease-in-out infinite; }
@keyframes spinA { to { --a: 360deg; } }
@keyframes glowPulse { 50% { opacity: 1; inset: -11px; } }
.neon i { font-style: normal; display: inline-block; animation: nudge 1.4s var(--ease) infinite; }
.neon:hover { transform: translateY(-2px) scale(1.04); background: rgba(8, 8, 12, .55); color: #fff; }
.neon:hover::after { opacity: 1; filter: blur(24px); }
@media (max-width: 860px) { .neon { padding: 15px 22px; font-size: 14.5px; } }
@media (prefers-reduced-motion: reduce) { .neon::before, .neon::after, .neon i { animation: none; } }

/* inline videos: never show the browser's play button or controls (iOS draws one over paused video) */
video:not([controls])::-webkit-media-controls,
video:not([controls])::-webkit-media-controls-panel,
video:not([controls])::-webkit-media-controls-overlay-play-button,
video:not([controls])::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none !important; opacity: 0 !important; }
video:not([controls]) { pointer-events: none; }

/* Instagram links */
.handoff__b--ig { border-color: rgba(214,150,255,.45); color: #e2c4ff; background: rgba(214,150,255,.06); }
.handoff__b--ig:hover { background: #e2c4ff; color: var(--ink); }
.end__ig { display: block; width: fit-content; margin-top: 14px; color: var(--bone); border-bottom: 1px solid var(--line); padding-bottom: 3px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.end__ig:hover { border-color: var(--tan); }
