:root {
  --blue: #3076f1;
  --ink: #0b0b0f;
  --bone: #f1eee8;
  --line: rgba(255, 255, 255, 0.22);
  --pad: clamp(16px, 3.2vw, 44px);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* masked word reveals */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.1em 0.07em 0.3em; margin: -0.1em -0.07em -0.3em; }
.wi { display: inline-block; will-change: transform; }

/* page-transition curtain: only present when scripts run */
.curtain { display: none; }
html.js .curtain { display: block; position: fixed; inset: 0; z-index: 95; background: var(--ink); pointer-events: none; will-change: transform; }
html.js body.home .curtain { z-index: 99; }
body {
  margin: 0; background: var(--blue); color: #fff;
  font-family: var(--display); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.label { margin: 0 0 clamp(24px, 4vw, 56px); opacity: 0.7; }
::selection { background: var(--ink); color: var(--bone); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--bone);
  display: flex; align-items: flex-end; justify-content: space-between; padding: var(--pad);
  transition: transform 1s var(--ease), border-radius 1s var(--ease);
}
.loader.done { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 18% 18%; }
.loader.skip { display: none; }
.loader-line { font-size: 14px; text-transform: none; }
.loader-pct { font-size: clamp(80px, 18vw, 260px); font-weight: 800; line-height: 0.8; letter-spacing: -0.05em; color: var(--blue); font-variant-numeric: tabular-nums; }
.caret { display: inline-block; width: 0.55em; height: 1.05em; background: currentColor; margin-left: 0.12em; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
.caret.big { width: 0.07em; height: 0.82em; vertical-align: -0.06em; margin-left: 0.04em; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Cursor + preview ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s;
}
.cursor svg { width: 22px; height: 24px; animation: spin 6s linear infinite; transition: opacity .2s; }
.cursor span { position: absolute; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.on-dark { color: #fff; }
.cursor.has-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--blue); }
.cursor.on-blue.has-label { background: var(--ink); }
.cursor.has-label svg { opacity: 0; }
.cursor.has-label span { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.preview {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  width: min(34vw, 460px); aspect-ratio: 16 / 10; margin: -14vw 0 0 40px;
  border-radius: 14px; overflow: hidden; background: #000;
  opacity: 0; transform: scale(0.6) rotate(-6deg); transform-origin: left center;
  transition: opacity .3s, transform .5s var(--ease);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.preview.show { opacity: 1; transform: scale(1) rotate(-2deg); }
.preview img, .preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview video { opacity: 0; transition: opacity .3s; }
.preview video.ready { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .preview { display: none; } }
@media (hover: hover) and (pointer: fine) { body.home, body.home a, body.home .ask { cursor: none; } }

/* ---------- Top bar ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad); color: var(--bone); pointer-events: none;
}
.top > * { pointer-events: auto; background: var(--ink); border: 1px solid rgba(241,238,232,.16); border-radius: 999px; padding: 9px 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; }
.brand svg { width: 20px; height: 22px; animation: spin 10s linear infinite; }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.status { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #6dffa8; animation: blink 1.6s steps(1) infinite; }
@media (max-width: 720px) { .nav { display: none; } .brand span { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: 92px var(--pad) 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); grid-template-rows: 1fr auto;
  column-gap: clamp(20px, 3vw, 56px); align-items: center;
}
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; transition: opacity 1.2s; }
.hero-left { position: relative; z-index: 2; padding: 24px 0; }
.hero-kicker { margin: 0 0 16px; }
.hero-kicker span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.prompt { margin: 0; font-size: clamp(38px, 4.9vw, 86px); line-height: 0.92; letter-spacing: -0.045em; font-weight: 800; }
.prompt .plea { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-size: 1.08em; line-height: 1; }
.prompt .cmd { display: block; color: var(--ink); }
.promptbox { margin-top: clamp(16px, 2vw, 28px); padding: 14px 18px 16px; border: 1.5px dashed rgba(255, 255, 255, 0.55); border-radius: 18px; max-width: 30em; transition: border-color .3s, background .3s; }
.promptbox:focus-within { border-style: solid; border-color: #fff; background: rgba(11, 11, 15, 0.12); }
.promptbox .tag { display: block; opacity: 0.8; margin-bottom: 6px; }
.ask-wrap { display: block; font-family: var(--mono); font-size: clamp(17px, 1.65vw, 26px); line-height: 1.3; min-height: 2.6em; letter-spacing: -0.01em; }
.ask { outline: none; white-space: pre-wrap; word-break: break-word; caret-color: var(--ink); }
.ask:focus + .caret { display: none; }
.ask-wrap, .hero-hint { cursor: text; }

.hear { min-height: 6.4em; margin-top: 18px; padding-left: 16px; border-left: 2px solid var(--ink); opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .6s var(--ease); }
.hear.on, .hear.loading { opacity: 1; transform: none; }
.hear.on p { animation: pop .5s var(--ease); }
/* placeholder shown while the answer is being "written" */
.hear-who { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.hear-who img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(91, 147, 255, 0.5); }
.hear .hear-who .tag { margin: 0; }
/* a person typing, not a machine loading */
.hear-dots { display: none; gap: 6px; padding: 10px 0 4px; }
.hear.loading .hear-dots { display: flex; }
.hear-dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.35; animation: typing 1.1s ease-in-out infinite; }
.hear-dots i:nth-child(2) { animation-delay: .15s; }
.hear-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.35; } 30% { transform: translateY(-5px); opacity: 1; } }
.hear-sk { display: none; }
.hear.loading .hear-sk { display: grid; gap: 10px; padding-top: 4px; max-width: 22em; }
.hear.loading p { display: none; }
.hear-sk i { display: block; height: clamp(14px, 1.35vw, 20px); border-radius: 6px; background: linear-gradient(100deg, rgba(11,11,15,.14) 30%, rgba(11,11,15,.28) 50%, rgba(11,11,15,.14) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.hear-sk i:nth-child(2) { width: 88%; }
.hear-sk i:nth-child(3) { width: 46%; }
.hero-dark .hear-sk i { background-image: linear-gradient(100deg, rgba(241,238,232,.09) 30%, rgba(241,238,232,.22) 50%, rgba(241,238,232,.09) 70%); }
.hear.loading .tag { opacity: .7; }
.hear .tag { display: block; color: var(--ink); margin-bottom: 6px; }
.hear p { margin: 0; font-size: clamp(18px, 1.75vw, 28px); line-height: 1.18; letter-spacing: -0.02em; font-weight: 600; max-width: 22em; }
.hero-hint { margin: 14px 0 0; opacity: 0.75; }
.promptbox { position: relative; }
.send { position: absolute; right: 12px; bottom: 12px; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--ink); color: var(--bone); cursor: pointer; }
.send:hover { background: #fff; color: var(--ink); }
.send:not([hidden]) ~ * { }
.promptbox:has(.send:not([hidden])) { padding-bottom: 52px; }
.answer { margin-top: 16px; max-width: 560px; background: var(--ink); color: var(--bone); border-radius: 18px; padding: 18px 20px; animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.answer p { margin: 0 0 12px; font-size: 17px; line-height: 1.4; }
.answer p b { color: #7fb0ff; }
.answer .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pillbtn { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; background: var(--blue); color: #fff; border: 0; font-family: inherit; cursor: pointer; }
.pillbtn.ghost { background: transparent; border: 1px solid rgba(241, 238, 232, 0.4); color: var(--bone); }
.hero-foot { grid-column: 1 / -1; position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .hero-foot > span:last-child { display: none; } }

/* The stage: one big browser window, never cropped */
.window-wrap { position: relative; z-index: 1; justify-self: end; width: min(100%, calc((100svh - 230px) * 1.6)); will-change: transform; }
.window {
  position: relative; width: 100%;
  border-radius: 18px; overflow: hidden; background: var(--ink);
  box-shadow: 0 50px 140px rgba(8, 20, 60, 0.5), 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(1.5deg); will-change: transform;
}
.window-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #17171d; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a44; }
.window-bar span { margin-left: 10px; color: #9a9aa6; text-transform: none; font-size: 11px; }
.window-bar b { margin-left: auto; font-weight: 500; font-size: 10px; color: #9a9aa6; display: inline-flex; align-items: center; gap: 6px; }
.window-bar b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #666; }
.window.live .window-bar b { color: #6dffa8; }
.window.live .window-bar b::before { background: #6dffa8; }
.window-body { position: relative; aspect-ratio: 16 / 10; background: #000; transition: aspect-ratio .5s var(--ease); }
.window-body .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.skeleton {
  position: absolute; inset: 0; z-index: 2; background: #101016; padding: 5%;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 0 0); transition: clip-path .9s var(--ease);
}
.window.live .skeleton { clip-path: inset(0 0 100% 0); }
.window.loading .sk-bar i { width: 40%; transition: none; animation: indet 1.3s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-110%); } to { transform: translateX(270%); } }
.window.loading .window-bar b, .window.cta .window-bar b { color: #7fb0ff; }
.window.loading .window-bar b::before, .window.cta .window-bar b::before { background: #7fb0ff; }
.cta-panel {
  position: relative; z-index: 3; display: none; flex-direction: column; justify-content: center; gap: clamp(10px, 1.4vw, 20px);
  min-height: clamp(300px, 33vw, 560px); padding: clamp(22px, 4vw, 64px); background: var(--ink); color: var(--bone);
}
.window.cta .window-body { aspect-ratio: auto !important; }
.window.cta .cta-panel { display: flex; animation: pop .6s var(--ease); }
.cta-panel .cta-re { margin: 0; text-transform: none; color: #9a9aa6; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cta-panel h3 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(48px, 7.2vw, 128px); line-height: 0.92; letter-spacing: -0.03em; color: #fff; }
.cta-panel .cta-copy { margin: 0; max-width: 34em; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.4; color: #c9c6bf; }
.cta-panel .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cta-panel .pillbtn { padding: 13px 20px; font-size: 16px; }
.sk-blocks { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3%; flex: 1; margin-bottom: 5%; }
.sk-blocks i { border-radius: 10px; background: linear-gradient(100deg, #1a1a22 30%, #262633 50%, #1a1a22 70%); background-size: 220% 100%; animation: shimmer 1.6s linear infinite; }
.sk-blocks i:nth-child(1) { grid-row: span 2; }
.sk-blocks i:nth-child(4), .sk-blocks i:nth-child(5) { height: 46%; align-self: end; }
@keyframes shimmer { to { background-position: -220% 0; } }
.sk-msg { color: #b9b9c6; text-transform: none; font-size: 13px; }
.sk-bar { height: 3px; background: #24242e; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.sk-bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width 1.2s linear; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 84px; row-gap: 12px; }
  .hero-left { padding: 8px 0 0; }
  .prompt { font-size: clamp(36px, 10.4vw, 68px); }
  .hear { min-height: 6.4em; }
  .window-wrap { width: 100%; justify-self: stretch; margin-bottom: 20px; }
  .window { transform: rotate(1deg); }
}

/* ---------- Tape ---------- */
.tape { background: var(--ink); color: var(--bone); overflow: hidden; padding: 14px 0; transform: rotate(-1.2deg) scale(1.03); margin: 12px 0 -6px; position: relative; z-index: 3; }
.tape-track { display: flex; width: max-content; animation: slide 30s linear infinite; }
.tape-track span { font-size: clamp(22px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; padding-right: 0.6em; }
.tape-track span::after { content: "✻"; margin-left: 0.6em; color: var(--blue); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { background: var(--bone); color: var(--ink); padding: clamp(80px, 12vw, 180px) var(--pad); }
.reveal { margin: 0; max-width: 1300px; font-size: clamp(30px, 5.2vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.reveal span { opacity: 0.12; transition: opacity .25s linear; }
.reveal span.on { opacity: 1; }
.reveal span.hl { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue); letter-spacing: -0.01em; }

/* ---------- Work ---------- */
.work { background: var(--ink); color: var(--bone); padding: clamp(72px, 10vw, 140px) var(--pad); }
.work-head { display: flex; justify-content: space-between; gap: 16px; }
.right { text-align: right; }
.rows { border-top: 1px solid rgba(241, 238, 232, 0.18); }
.row {
  position: relative; display: grid; grid-template-columns: 56px 1fr auto 40px; align-items: center; gap: 16px;
  padding: clamp(14px, 1.8vw, 26px) 0; border-bottom: 1px solid rgba(241, 238, 232, 0.18);
  text-decoration: none; transition: opacity .3s;
}
.row .name { font-size: clamp(34px, 6.6vw, 104px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; transition: transform .5s var(--ease), color .3s; }
.row .kind { opacity: 0.6; text-align: right; }
.row .arrow { font-size: 28px; text-align: right; transform: translateX(-12px); opacity: 0; transition: transform .5s var(--ease), opacity .3s; }
.row .idx { opacity: 0.5; }
.row .thumb { display: none; }
@media (hover: hover) {
  .rows:hover .row { opacity: 0.28; }
  .rows .row:hover { opacity: 1; }
  .row:hover .name { transform: translateX(18px); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: #fff; }
  .row:hover .arrow { transform: none; opacity: 1; }
}
.row.studio .kind::before { content: "✻ "; color: #7fb0ff; }
@media (max-width: 820px) {
  .row { grid-template-columns: 32px 1fr 28px; }
  .row .kind { grid-column: 2; grid-row: 2; text-align: left; }
  .row .arrow { opacity: 1; transform: none; grid-row: 1; grid-column: 3; }
  .row .thumb { display: block; grid-column: 2 / 4; grid-row: 3; border-radius: 12px; aspect-ratio: 16/10; object-fit: cover; width: 100%; margin-top: 6px; }
  .work-head .right { display: none; }
}

/* ---------- How ---------- */
.how { background: var(--blue); padding: clamp(72px, 10vw, 140px) var(--pad); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.step { position: relative; background: var(--ink); color: var(--bone); border-radius: 24px; padding: clamp(22px, 2.6vw, 36px); min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: transform .6s var(--ease); }
.step:nth-child(1) { transform: rotate(-2deg); }
.step:nth-child(2) { transform: translateY(28px) rotate(1.5deg); background: var(--bone); color: var(--ink); }
.step:nth-child(3) { transform: rotate(-1deg); }
.step:hover { transform: rotate(0) translateY(-6px); }
.step-n { position: absolute; top: -0.16em; right: 0.06em; font-size: clamp(160px, 20vw, 300px); font-weight: 800; line-height: 1; letter-spacing: -0.06em; color: var(--blue); }
.step h3 { position: relative; margin: 0 0 10px; font-size: clamp(28px, 3.2vw, 46px); line-height: 1; letter-spacing: -0.035em; }
.step p { position: relative; margin: 0; opacity: 0.8; max-width: 34ch; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: clamp(64px, 8vw, 110px); padding-top: 20px; border-top: 1px solid var(--line); }
.facts b { font-family: var(--display); font-size: 28px; letter-spacing: -0.03em; margin-right: 6px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step { min-height: 240px; } .step:nth-child(2) { transform: rotate(1.5deg); } }

/* ---------- Voices ---------- */
.voices { background: var(--bone); color: var(--ink); padding: clamp(72px, 10vw, 140px) var(--pad) calc(clamp(72px, 10vw, 140px) + 48px); }
.voice { margin: 0; padding: clamp(24px, 3vw, 44px) 0; border-top: 1px solid rgba(11, 11, 15, 0.16); display: grid; grid-template-columns: 1fr 240px; gap: 32px; align-items: end; }
.voice blockquote { margin: 0; font-family: var(--serif); font-size: clamp(28px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -0.02em; }
.voice blockquote mark { background: var(--blue); color: #fff; padding: 0 .12em; border-radius: .12em; font-style: italic; }
.voice figcaption { text-align: right; opacity: 0.7; }
@media (max-width: 820px) { .voice { grid-template-columns: 1fr; gap: 14px; } .voice figcaption { text-align: left; } }

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--ink); color: var(--bone); padding: clamp(72px, 10vw, 140px) var(--pad) 0; border-radius: 48px 48px 0 0; margin-top: -48px; }
.contact h2 { margin: 0; font-size: clamp(72px, 19vw, 330px); line-height: 0.8; letter-spacing: -0.06em; font-weight: 800; }
.contact h2 em { font-family: var(--serif); font-weight: 400; color: #5b93ff; letter-spacing: -0.03em; }
.orb {
  position: absolute; right: clamp(16px, 9vw, 150px); top: clamp(130px, 20vw, 300px);
  width: clamp(130px, 17vw, 230px); aspect-ratio: 1; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; text-align: center; text-decoration: none; font-weight: 700; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.15;
  transition: transform .5s var(--ease), background .3s, color .3s;
}
.orb:hover { background: var(--bone); color: var(--ink); }
@media (max-width: 720px) { .orb { position: static; margin-top: 28px; } }
.contact-grid { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: clamp(48px, 7vw, 96px); padding-top: 22px; border-top: 1px solid rgba(241, 238, 232, 0.18); }
.contact-grid a { text-decoration: none; text-transform: none; font-size: 14px; }
.contact-grid a:hover { color: #7fb0ff; }
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 40px 0 22px; opacity: 0.5; }

/* ---------- Case page ---------- */
body.case { background: var(--bone); color: var(--ink); }
body.case .top { position: sticky; }
.case-hero { padding: clamp(32px, 5vw, 72px) var(--pad) 0; }
.back { text-decoration: none; }
.case-hero h1 { margin: 22px 0 6px; font-size: clamp(60px, 15vw, 250px); line-height: 0.86; letter-spacing: -0.06em; font-weight: 800; }
.case-hero .tagline { margin: 0 0 26px; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.6vw, 52px); line-height: 1.05; color: var(--blue); max-width: 22ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.cta-row .pillbtn.ghost { color: var(--ink); border-color: rgba(11,11,15,.3); }
.case-media { border-radius: 24px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.case-media img, .case-media video { width: 100%; height: 100%; object-fit: cover; }
.case-body { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(56px, 8vw, 120px) var(--pad); }
.case-aside { position: sticky; top: 96px; align-self: start; display: grid; gap: 24px; }
.case-aside h4 { margin: 0 0 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { border: 1px solid rgba(11,11,15,.25); border-radius: 999px; padding: 4px 11px; font-size: 14px; }
.case-section { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid rgba(11,11,15,.16); }
.case-section .n { font-family: var(--mono); font-size: 12px; opacity: .6; padding-top: 10px; }
.case-section h2 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 72px); line-height: .95; letter-spacing: -0.045em; }
.case-section p { margin: 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; max-width: 62ch; }
.case-quote { margin: 0; padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid rgba(11,11,15,.16); }
.case-quote blockquote { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.05; color: var(--blue); }
.next { display: block; text-decoration: none; background: var(--ink); color: var(--bone); padding: clamp(48px, 7vw, 96px) var(--pad); border-radius: 48px 48px 0 0; }
.next b.long { font-size: clamp(38px, 8.4vw, 150px); }
.next b { display: block; font-size: clamp(56px, 13vw, 220px); line-height: .9; letter-spacing: -0.06em; margin-top: 14px; transition: transform .6s var(--ease); }
.next:hover b { transform: translateX(2vw); font-family: var(--serif); font-style: italic; font-weight: 400; color: #fff; }
@media (max-width: 820px) { .case-body { grid-template-columns: 1fr; } .case-aside { position: static; } .case-section { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Dark hero theme (body.hero-dark) ---------- */
body.hero-dark { background: var(--ink); }
.hero-dark .hero { background:
  radial-gradient(60% 55% at 78% 46%, rgba(48, 118, 241, 0.22), transparent 70%),
  radial-gradient(40% 40% at 8% 100%, rgba(48, 118, 241, 0.12), transparent 70%),
  var(--ink); color: var(--bone); }
.hero-dark .hero-kicker { color: #8f95a8; }
.hero-dark .prompt .cmd { color: var(--bone); }
.hero-dark .prompt .plea { color: #5b93ff; }
.hero-dark .promptbox { border-color: rgba(241, 238, 232, 0.32); }
.hero-dark .promptbox:focus-within { border-color: #5b93ff; background: rgba(91, 147, 255, 0.07); }
.hero-dark .promptbox .tag { color: #8f95a8; opacity: 1; }
.hero-dark .ask { caret-color: #5b93ff; }
.hero-dark .hear { border-left-color: #5b93ff; }
.hero-dark .hear .tag { color: #5b93ff; }
.hero-dark .hero-hint { color: #8f95a8; opacity: 1; }
.hero-dark .hero-foot { border-top-color: rgba(241, 238, 232, 0.14); color: #b9bdc9; }
.hero-dark .send { background: var(--blue); color: #fff; }
.hero-dark .send:hover { background: #fff; color: var(--ink); }
.hero-dark .window { background: #121218; box-shadow: 0 50px 140px rgba(48, 118, 241, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.hero-dark .cta-panel { background: #121218; }
.hero-dark .top > * { background: #17171d; border-color: rgba(241, 238, 232, 0.14); }
/* the tape becomes the blue band between the dark hero and the light statement */
.hero-dark .tape { background: var(--blue); color: #fff; }
.hero-dark .tape-track span::after { color: var(--ink); }
/* loader and page curtain in blue, so they read against the dark hero */
.hero-dark .loader { background: var(--blue); color: #fff; }
.hero-dark .loader-pct { color: var(--ink); }
html.js body.hero-dark .curtain { background: var(--blue); }
.hero-dark .cursor.on-dark.has-label { background: var(--blue); }

/* ---------- Start page (form) ---------- */
body.start .top { position: sticky; }
.start-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; min-height: calc(100svh - 70px); padding: clamp(24px, 4vw, 56px) var(--pad) clamp(40px, 6vw, 80px); }
.start-intro h1 { margin: 14px 0 20px; font-size: clamp(44px, 6.4vw, 112px); line-height: 0.9; letter-spacing: -0.045em; font-weight: 800; color: var(--ink); }
.start-intro h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; color: #fff; }
.start-lede { margin: 0; max-width: 30em; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.4; }
.start-card { background: var(--ink); color: var(--bone); border-radius: 26px; padding: clamp(22px, 3vw, 44px); box-shadow: 0 50px 140px rgba(8, 20, 60, 0.5); }
.field { display: block; margin-bottom: 20px; }
.field > span { display: block; margin-bottom: 8px; color: #9a9aa6; }
.field input, .field textarea {
  width: 100%; background: #17171d; color: #fff; border: 1.5px solid #2a2a35; border-radius: 14px;
  padding: 14px 16px; font-family: var(--display); font-size: 18px; line-height: 1.4; outline: none; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { border-color: var(--blue); background: #1c1c24; }
.field small { display: block; margin-top: 8px; color: #b9b9c6; font-size: 14px; line-height: 1.4; }
.form-error { margin: 0 0 14px; color: #ff9c8a; text-transform: none; font-size: 13px; }
.pillbtn.submit { width: 100%; justify-content: center; padding: 16px 20px; font-size: 18px; }
.pillbtn.submit:disabled { opacity: 0.6; cursor: default; }
.start-done h2 { margin: 8px 0 12px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(56px, 7vw, 120px); line-height: 0.9; color: #fff; }
.start-done p { margin: 0 0 22px; font-size: 19px; line-height: 1.4; color: #c9c6bf; }
.start-done .mono { color: #7fb0ff; margin: 0; }
@media (max-width: 900px) { .start-main { grid-template-columns: 1fr; align-items: start; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal span { opacity: 1; }
}

/* =====================================================================
   Hero variants. A is the default layout above.
   html.hv-b = Stage, html.hv-c = Big Type, html.hv-d = App.
   On phones every variant falls back to the stacked layout of A.
   ===================================================================== */
.hv-switch { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 94; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(23, 23, 29, 0.92); border: 1px solid rgba(241, 238, 232, 0.18); backdrop-filter: blur(10px); font-family: var(--mono); font-size: 11px; }
.hv-switch span { padding: 0 8px 0 10px; color: #8f95a8; text-transform: uppercase; letter-spacing: .06em; }
.hv-switch a { color: var(--bone); text-decoration: none; padding: 7px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.hv-switch a:hover { background: rgba(241, 238, 232, 0.1); }
.hv-switch a.on { background: var(--blue); color: #fff; }
@media (max-width: 1180px) { .hv-switch a b { display: none; } }
.hv-switch em { width: 1px; height: 16px; background: rgba(241, 238, 232, 0.2); margin: 0 4px; }

@media (min-width: 901px) {
  /* ---------- B · Stage: centred headline, the window is the stage below ---------- */
  .hv-b .hero { grid-template-columns: 1fr; grid-template-rows: auto; justify-items: center; row-gap: 0; padding-top: 122px; }
  .hv-b .hero-left { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0; width: min(1180px, 100%); }
  .hv-b .prompt { font-size: clamp(52px, 7.6vw, 134px); line-height: 0.9; }
  .hv-b .promptbox { width: min(640px, 100%); max-width: none; text-align: left; margin-top: 30px; }
  .hv-b .hear { width: min(640px, 100%); text-align: left; min-height: 5.6em; margin-top: 14px; }
  .hv-b .hear p { max-width: none; }
  .hv-b .hero-hint { margin-top: 4px; }
  .hv-b .hero-foot { order: 2; width: 100%; margin-top: 20px; }
  .hv-b .window-wrap { order: 3; width: min(1280px, 90vw); justify-self: center; margin: 30px 0 clamp(48px, 6vw, 96px); }
  .hv-b .window { transform: none !important; border-radius: 22px; }

  /* ---------- C · Big Type: the headline runs edge to edge, the window floats over it ---------- */
  .hv-c .hero { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); grid-template-rows: auto auto auto 1fr auto auto; align-items: start; column-gap: 4vw; row-gap: 0; padding-top: 104px; }
  .hv-c .hero-left { display: contents; }
  .hv-c .hero-kicker, .hv-c .promptbox, .hv-c .hear, .hv-c .hero-hint { grid-column: 1; position: relative; z-index: 2; }
  .hv-c .hero-kicker { grid-row: 1; margin-bottom: 16px; }
  .hv-c .promptbox { grid-row: 2; margin-top: 0; }
  .hv-c .hear { grid-row: 3; min-height: 6em; }
  .hv-c .hero-hint { grid-row: 4; margin-top: 8px; }
  .hv-c .window-wrap { grid-column: 2; grid-row: 1 / 5; align-self: center; justify-self: end; z-index: 3; width: min(100%, calc((100svh - 480px) * 1.6)); margin-bottom: -3.4vw; }
  .hv-c .prompt { grid-column: 1 / -1; grid-row: 5; position: relative; z-index: 2; margin-top: 12px; font-size: clamp(60px, 10.3vw, 210px); line-height: 0.84; letter-spacing: -0.055em; white-space: nowrap; }
  .hv-c .prompt .plea { font-size: 1.02em; }
  .hv-c .hero-foot { grid-row: 6; margin-top: 22px; }

  /* ---------- D · App: a chat on the left, a docked preview pane on the right ---------- */
  .hv-d .hero { grid-template-columns: minmax(340px, 0.7fr) minmax(0, 1.3fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: 0; align-items: stretch; padding-top: 96px; }
  .hv-d .hero-left { display: flex; flex-direction: column; padding: 20px 22px 18px; background: #101016; border: 1px solid rgba(241, 238, 232, 0.12); border-right: 0; border-radius: 22px 0 0 22px; min-height: min(660px, calc(100svh - 190px)); }
  .hv-d .hero-kicker { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(241, 238, 232, 0.1); }
  .hv-d .prompt { align-self: flex-end; max-width: 94%; background: var(--blue); border-radius: 22px 22px 6px 22px; padding: 16px 20px 18px; font-size: clamp(26px, 2.5vw, 42px); line-height: 1; letter-spacing: -0.03em; }
  .hv-d .prompt .cmd, .hv-d .prompt .plea { color: #fff; }
  .hv-d .hear { order: 2; align-self: flex-start; max-width: 96%; min-height: 0; margin-top: 16px; padding: 14px 16px 16px; border-left: 0; background: #17171d; border-radius: 6px 20px 20px 20px; }
  .hv-d .hear p { font-size: clamp(16px, 1.25vw, 20px); font-weight: 500; line-height: 1.3; }
  .hv-d .promptbox { order: 3; margin-top: auto; max-width: none; border-style: solid; border-color: rgba(241, 238, 232, 0.2); border-radius: 16px; background: #17171d; }
  .hv-d .hero-hint { order: 4; margin-top: 10px; }
  .hv-d .window-wrap { width: 100%; justify-self: stretch; display: flex; }
  .hv-d .window { transform: none !important; width: 100%; display: flex; flex-direction: column; border-radius: 0 22px 22px 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 120px rgba(48, 118, 241, 0.2); }
  .hv-d .window-body { flex: 1; min-height: 0; aspect-ratio: auto !important; background: #0b0b0f; }
  .hv-d .window-body .media { object-fit: contain; object-position: center; }
  .hv-d .window.cta .cta-panel { position: absolute; inset: 0; min-height: 0; }
  .hv-d .hero-foot { margin-top: 18px; }
}

/* =====================================================================
   Alternative heroes E–H (built by heroes.js). Shared base first.
   ===================================================================== */
.xhero { position: relative; min-height: 100svh; overflow: hidden; background: var(--ink); color: var(--bone); padding: 104px var(--pad) 0; display: flex; flex-direction: column; }
.xhero .xk { margin: 0 0 14px; color: #8f95a8; }
.xh { margin: 0; font-size: clamp(40px, 5.6vw, 100px); line-height: 0.92; letter-spacing: -0.045em; font-weight: 800; }
.xh .cmd { color: var(--bone); }
.xh .plea { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-size: 1.08em; color: #5b93ff; }
.xsub { margin: 18px 0 0; max-width: 30em; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.4; color: #b9bdc9; }
.xbar { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 8px 8px 16px; width: min(560px, 100%); border: 1.5px solid rgba(241, 238, 232, 0.26); border-radius: 999px; background: rgba(11, 11, 15, 0.6); backdrop-filter: blur(10px); transition: border-color .25s; pointer-events: auto; }
.xbar:focus-within { border-color: #5b93ff; }
.xbar-tag { color: #8f95a8; white-space: nowrap; }
.xbar input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font-family: var(--mono); font-size: 15px; caret-color: #5b93ff; }
.xbar input::placeholder { color: #c9cdd8; opacity: 1; }
.xbar button { border: 0; border-radius: 999px; padding: 11px 16px; background: var(--blue); color: #fff; cursor: pointer; white-space: nowrap; }
.xbar button:hover { background: #fff; color: var(--ink); }
.xhero .xfoot { margin-top: auto; border-top-color: rgba(241, 238, 232, 0.14); color: #b9bdc9; position: relative; z-index: 3; }
.xhero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.xhero video.on { opacity: 1; }
@media (max-width: 620px) { .xbar-tag { display: none; } }

/* ---------- E · Wall: the work is the environment ---------- */
.xh-e { align-items: center; }
.wall { position: absolute; inset: -22% -12%; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 14px; transform: rotate(-7deg); will-change: transform; }
.wall-col { display: flex; flex-direction: column; gap: 14px; animation: wallUp var(--d) linear infinite; }
.wall-col:nth-child(even) { animation-direction: reverse; }
.wall:hover .wall-col { animation-play-state: paused; }
@keyframes wallUp { to { transform: translateY(calc(-50% - 7px)); } }
.tile { position: relative; display: block; flex: none; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #17171d; opacity: 0.5; transition: opacity .3s, transform .5s var(--ease); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover { opacity: 1; transform: scale(1.04); z-index: 2; }
.tile-name { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 5px 9px; border-radius: 999px; background: rgba(11, 11, 15, 0.8); color: #fff; opacity: 0; transition: opacity .25s; }
.tile:hover .tile-name { opacity: 1; }
.wall-shade { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(ellipse 52% 56% at 50% 47%, rgba(11, 11, 15, 0.97) 0%, rgba(11, 11, 15, 0.86) 48%, rgba(11, 11, 15, 0.2) 100%),
  linear-gradient(to top, var(--ink) 2%, transparent 26%); }
.xe-center { position: relative; z-index: 3; margin: auto; padding: 24px 0 40px; display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none; }
.xe-center .xh { font-size: clamp(44px, 7vw, 124px); }
.xe-center .xh .cmd, .xe-center .xh .plea { display: block; }
.xe-center .xsub { max-width: 28em; }
.xh-e .xfoot { width: 100%; }

/* ---------- F · Reel: full-bleed showreel with an index ---------- */
.xh-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto auto auto; column-gap: 4vw; }
.reel-bg { position: absolute; inset: 0; }
.reel-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(11, 11, 15, 0.92) 0%, rgba(11, 11, 15, 0.55) 46%, rgba(11, 11, 15, 0.78) 100%),
  linear-gradient(to top, var(--ink) 0%, rgba(11, 11, 15, 0.35) 42%, rgba(11, 11, 15, 0.55) 100%); }
.xf-top, .xf-now, .xf-bar, .reel-index { position: relative; z-index: 3; }
.xf-top { grid-column: 1; grid-row: 1; }
.xf-top .xh { font-size: clamp(34px, 4.2vw, 76px); }
.reel-index { grid-column: 2; grid-row: 1 / 4; align-self: center; list-style: none; margin: 0; padding: 0; min-width: 240px; }
.reel-index a { position: relative; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; padding: 11px 0; text-decoration: none; color: #b9bdc9; border-bottom: 1px solid rgba(241, 238, 232, 0.14); transition: color .25s, padding .4s var(--ease); }
.reel-index a b { font-weight: 500; text-transform: none; font-size: 14px; letter-spacing: 0; }
.reel-index a span { opacity: 0.6; }
.reel-index a:hover, .reel-index a.on { color: #fff; padding-left: 10px; }
.reel-index a i { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: #5b93ff; }
.reel-index a.on i { animation: reelBar 6.5s linear forwards; }
.xh-f.held .reel-index a.on i { animation: none; width: 100%; }
@keyframes reelBar { to { width: 100%; } }
.xf-now { grid-column: 1; grid-row: 3; align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; overflow: hidden; }
.xf-now > .mono:first-child { color: #b9bdc9; }
.reel-name { display: block; text-decoration: none; color: #fff; font-size: clamp(54px, 10.4vw, 196px); line-height: 0.9; letter-spacing: -0.055em; font-weight: 800; padding-bottom: 0.08em; }
.reel-go { text-decoration: none; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(241, 238, 232, 0.4); color: #fff; margin-top: 4px; }
.reel-go:hover { background: #fff; color: var(--ink); }
.xf-bar { grid-column: 1; grid-row: 4; }
.xh-f .xfoot { grid-column: 1 / -1; grid-row: 5; margin-top: 20px; }
@media (max-width: 900px) {
  .xh-f { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto auto auto; }
  .reel-index { grid-column: 1; grid-row: 2; display: flex; gap: 6px; overflow-x: auto; min-width: 0; margin: 16px calc(var(--pad) * -1) 0; padding: 0 var(--pad); scrollbar-width: none; }
  .reel-index a { grid-template-columns: auto auto; padding: 8px 12px; border: 1px solid rgba(241, 238, 232, 0.2); border-radius: 999px; white-space: nowrap; }
  .reel-index a:hover, .reel-index a.on { padding-left: 12px; border-color: #5b93ff; }
  .reel-index a i { display: none; }
  .xf-now { grid-row: 4; } .xf-bar { grid-row: 5; } .xh-f .xfoot { grid-row: 6; }
}

/* ---------- G · Drag: a strip you pull through ---------- */
.xg-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 4vw; align-items: end; position: relative; z-index: 3; }
.xg-top .xh { font-size: clamp(44px, 6.6vw, 118px); }
.xg-top .xh .cmd, .xg-top .xh .plea { display: block; }
.xg-side { padding-bottom: 6px; }
.xg-side .xsub { margin-top: 0; }
.strip { margin: clamp(22px, 3vw, 44px) calc(var(--pad) * -1) 0; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.strip.grabbing { cursor: grabbing; }
.strip-track { display: flex; gap: clamp(14px, 1.6vw, 26px); width: max-content; padding: 0 var(--pad); will-change: transform; }
.scard { flex: none; width: clamp(280px, 40vw, 620px); text-decoration: none; color: inherit; transform: skewX(var(--sk, 0deg)); transition: transform .2s linear; }
.scard-media { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #17171d; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.scard-media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.scard-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 4px 0; }
.scard-meta b { font-size: clamp(20px, 2vw, 32px); letter-spacing: -0.03em; font-weight: 700; }
.scard-meta span { color: #8f95a8; }
.scard.live .scard-media { box-shadow: 0 0 0 2px #5b93ff, 0 30px 80px rgba(48, 118, 241, 0.3); }
.xg-hint { margin: 16px 0 0; color: #8f95a8; display: flex; justify-content: center; gap: 12px; }
.xg-hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
.xg-hint span:first-child { animation-direction: reverse; }
@keyframes nudge { 50% { transform: translateX(5px); } }
@media (hover: hover) and (pointer: fine) { body.home .strip { cursor: none; } }
@media (max-width: 900px) { .xg-top { grid-template-columns: 1fr; gap: 14px; } .scard { width: 78vw; } }

/* ---------- H · Deck: a stack that shuffles ---------- */
.xh-kick { position: relative; z-index: 3; }
.xh-stage { position: relative; flex: 1; display: grid; min-height: clamp(380px, 56svh, 640px); }
.xh-split { grid-area: 1 / 1; display: grid; grid-template-rows: 1fr 1fr; font-size: clamp(50px, 9.4vw, 184px); line-height: 0.86; letter-spacing: -0.055em; pointer-events: none; }
.xh-split .cmd { align-self: start; justify-self: start; }
.xh-split .plea { align-self: end; justify-self: end; text-align: right; }
.deck { grid-area: 1 / 1; place-self: center; position: relative; z-index: 2; width: min(50vw, 760px); aspect-ratio: 16 / 10; cursor: pointer; outline: none; }
.dcard { position: absolute; inset: 0; border-radius: 20px; background: #17171d; transform: rotate(var(--r)); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1); transition: filter .4s; filter: brightness(0.5); }   /* no transform transition: GSAP drives the movement */
.dcard.top { transform: rotate(0deg); filter: none; }
.dcard-media { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; }
.dcard-media img { width: 100%; height: 100%; object-fit: cover; }
.dcard-tag { position: absolute; left: 14px; bottom: 14px; z-index: 3; padding: 9px 13px; border-radius: 999px; background: var(--blue); color: #fff; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .3s; }
.dcard.top .dcard-tag { opacity: 1; pointer-events: auto; }
.dcard-tag:hover { background: #fff; color: var(--ink); }
.xh-row { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 6px 0 18px; }
.xh-row .xbar { margin-top: 0; }
.xh-ctl { display: flex; gap: 22px; color: #8f95a8; }
.xh-ctl span:first-child { color: #fff; }
@media (hover: hover) and (pointer: fine) { body.home .deck { cursor: none; } }
@media (max-width: 900px) { .deck { width: 84vw; } .xh-stage { min-height: 60svh; } .xh-split .plea { font-size: 0.96em; } }

/* =====================================================================
   Interactive Reel heroes F1–F3 (built by reel.js) — layered on .xh-f.
   ===================================================================== */
.xhero .hero-fx { z-index: 2; }
.xr .reel-cover { position: absolute; inset: 0; z-index: 1; background: #0d0d12; transition: clip-path .9s var(--ease), opacity .6s; }
.xr .reel-cover .sk-blocks { position: absolute; inset: 15% 6% 30% 6%; margin: 0; }
.xr .reel-cover .sk-blocks i { background-image: linear-gradient(100deg, #15151c 30%, #20202b 50%, #15151c 70%); }
.xr .fx-rect { position: absolute; visibility: hidden; pointer-events: none; }
/* the project's name and link only appear once the build is live */
.xr .xf-now { opacity: 0; transform: translateY(22px); pointer-events: none; transition: opacity .5s, transform .8s var(--ease); }
.xr[data-stage="live"] .xf-now { opacity: 1; transform: none; pointer-events: auto; }
.xr .xf-bar { grid-row: 4; }
.xr-status { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: #b9bdc9; text-transform: none; font-size: 13px; }
.xr-status .sk-bar { flex: 0 0 150px; margin: 0; background: rgba(241, 238, 232, 0.14); }
.xr-status .sk-bar i { width: 0; transition: none; }
.xr[data-stage="build"] .xr-status .sk-bar i { width: 100%; transition: width 1.25s linear; }
.xr[data-stage="live"] .xr-status .sk-bar i { width: 100%; background: #6dffa8; }
.xr[data-stage="live"] .xr-status span { color: #6dffa8; }
.xr .xbar { margin-top: 0; }
.xhear { min-height: 4.8em; margin-top: 12px; max-width: 34em; padding-left: 14px; border-left: 2px solid #5b93ff; opacity: 0; transition: opacity .4s; }
.xhear.loading, .xhear.on { opacity: 1; }
.xhear .tag { display: block; margin-bottom: 6px; color: #5b93ff; }
.xhear p { margin: 0; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.xhear.on p { animation: pop .5s var(--ease); }
.xhear.loading p, .xhear:not(.loading) .hear-sk { display: none; }
.xhear.loading .hear-sk { display: grid; gap: 8px; max-width: 20em; padding-top: 2px; }
.xhear.loading .tag { opacity: .7; }
.reel-sub { display: none; margin: 2px 0 6px; max-width: 30em; font-size: clamp(16px, 1.4vw, 21px); line-height: 1.35; color: #d9dbe3; }
.xr.cta .reel-sub { display: block; }
.xr.cta .reel-name { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; }
.xr.cta .reel-go { background: var(--blue); border-color: var(--blue); }
.xr .reel-index a.on i { animation: none; width: 100%; }

/* ---------- F1 · Build: the whole screen is the build ---------- */
.xr-1 .fx-rect { inset: 76px 14px 14px 14px; }
.xr-1 .reel-cover { clip-path: inset(0 0 0 0); }
.xr-1[data-stage="live"] .reel-cover { clip-path: inset(0 0 100% 0); }

/* ---------- F2 · Portal: a window that grows into the whole screen ---------- */
.xr-2 .reel-bg, .xr-2 .reel-cover { clip-path: inset(var(--pt, 0%) var(--pr, 0%) var(--pb, 0%) var(--pl, 0%) round 22px); transition: opacity .6s; }
.xr-2 .reel-cover .sk-blocks { inset: auto; top: calc(var(--pt, 0%) + 26px); right: calc(var(--pr, 0%) + 26px); bottom: calc(var(--pb, 0%) + 26px); left: calc(var(--pl, 0%) + 26px); }
.xr-2[data-stage="live"] .reel-cover { opacity: 0; }
.xr-2 .fx-rect { top: var(--pt, 0%); right: var(--pr, 0%); bottom: var(--pb, 0%); left: var(--pl, 0%); }
.xr-2 .reel-shade { opacity: 0; transition: opacity .9s; }
.xr-2[data-stage="live"] .reel-shade { opacity: 1; transition-delay: .6s; }

/* ---------- F3 · Lens: the cursor looks through to the finished site ---------- */
.xr-3 .reel-cover {
  background-color: #0d0d12;
  background-image: linear-gradient(rgba(241, 238, 232, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(241, 238, 232, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at var(--mx, 60%) var(--my, 46%), transparent calc(var(--r, 165px) - 1.5px), #000 var(--r, 165px));
  mask-image: radial-gradient(circle at var(--mx, 60%) var(--my, 46%), transparent calc(var(--r, 165px) - 1.5px), #000 var(--r, 165px));
  touch-action: pan-y; transition: none;
}
.xr-3 .reel-shade { background: linear-gradient(to top, var(--ink) 0%, rgba(11, 11, 15, 0.2) 40%, rgba(11, 11, 15, 0.3) 100%); opacity: 0.6; transition: opacity .6s; }
.xr-3[data-stage="live"] .reel-shade { opacity: 1; background:
  linear-gradient(90deg, rgba(11, 11, 15, 0.92) 0%, rgba(11, 11, 15, 0.55) 46%, rgba(11, 11, 15, 0.78) 100%),
  linear-gradient(to top, var(--ink) 0%, rgba(11, 11, 15, 0.35) 42%, rgba(11, 11, 15, 0.55) 100%); }
@media (hover: hover) and (pointer: fine) { body.home .xr-3 .reel-cover { cursor: none; } }
.xr-2 .reel-cover { background: #16161e; }
.xr-2 .reel-cover .sk-blocks i { background-image: linear-gradient(100deg, #1f1f2a 30%, #2b2b3a 50%, #1f1f2a 70%); }

/* ---------- Calmer first screen: fewer things competing with the headline ---------- */
/* the instruction line only shows when the visitor is about to type, or is typing */
.hero .hero-hint, .hero-dark .hero .hero-hint { opacity: 0; transition: opacity .3s; }
.hero .promptbox:hover ~ .hero-hint, .hero .promptbox:focus-within ~ .hero-hint, .hero .promptbox:has(.send:not([hidden])) ~ .hero-hint { opacity: 0.8; }
.promptbox .tag { display: flex; justify-content: space-between; gap: 12px; }
.promptbox .tag em { font-style: normal; opacity: 0.55; transition: opacity .3s; }
.promptbox:hover .tag em { opacity: 1; }
.promptbox:focus-within .tag em { opacity: 0; }
/* the window tells the story with the picture and a bar, not with a second caption */
.hero .sk-msg span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hero .sk-bar { margin-top: 0; }
.hero .window-bar span { opacity: 0; transition: opacity .4s; }
.hero .window.live .window-bar span, .hero .window.cta .window-bar span { opacity: 1; }

/* ---------- Answer inside the window: what Lucas heard sits directly above what got built ---------- */
.window .hear { margin: 0; padding: 14px 18px 16px; min-height: 5.6em; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: #15151c; opacity: 1; transform: none; color: var(--bone); }
.window .hear > * { opacity: 0; transition: opacity .35s; }
.window .hear.on > *, .window .hear.loading > * { opacity: 1; }
.window .hear .tag, .hero-dark .window .hear .tag { color: #7fb0ff; }
.window .hear p { max-width: none; font-size: clamp(16px, 1.35vw, 22px); line-height: 1.22; color: #fff; }
.window .hear-dots { padding: 6px 0 0 38px; }
.window .hear p { padding-left: 38px; }
.window.cta .hear { display: none; }
/* the window is a little taller now, so it is sized from a smaller share of the screen height */
.hero .window-wrap { width: min(100%, calc((100svh - 330px) * 1.6)); }
@media (max-width: 900px) {
  .hero .window-wrap { width: 100%; }
  .window .hear p, .window .hear-dots { padding-left: 0; }
}

/* ---------- Lucas speaking: photo and name up front, then a sentence that opens with "Yes." ---------- */
.window .hear { padding: 16px 20px 18px; min-height: 7.2em; }
.window .hear-who { gap: 12px; margin-bottom: 8px; }
.window .hear-who img { width: 40px; height: 40px; box-shadow: 0 0 0 2px #5b93ff; }
.hear-name { font-family: var(--display); font-size: clamp(18px, 1.45vw, 23px); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.window .hear .tag { text-transform: none; font-size: 13px; letter-spacing: 0; color: #8f95a8; opacity: 1; }
.window .hear .tag:empty { display: none; }
.window .hear p, .window .hear-dots { padding-left: 52px; }
.window .hear p { font-weight: 500; color: #d9dbe3; }
.window .hear p #brief { color: #fff; font-weight: 600; }
.hear .yes { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.75em; line-height: 0.9; letter-spacing: -0.01em; color: #7fb0ff; margin-right: 0.14em; vertical-align: -0.06em; }
@media (max-width: 900px) { .window .hear p, .window .hear-dots { padding-left: 0; } }

/* ---------- Answer as a full screen in the window: prompt in, Lucas answers, then the result plays ---------- */
.hero .window-wrap { width: min(100%, calc((100svh - 230px) * 1.6)); }
.window .hear {
  position: absolute; inset: 0; z-index: 3; margin: 0; min-height: 0; border: 0;
  padding: clamp(18px, 3.4vw, 56px); display: flex; flex-direction: column; justify-content: center;
  background: #121218; opacity: 0; pointer-events: none; clip-path: inset(0 0 0 0);
  transition: opacity .4s, clip-path .9s var(--ease);
}
.window .hear.on, .window .hear.loading { opacity: 1; }
.window.live .hear { clip-path: inset(0 0 100% 0); }
.window .hear-who { gap: 14px; margin-bottom: clamp(10px, 1.6vw, 22px); }
.window .hear-who img { width: clamp(36px, 3.6vw, 56px); height: clamp(36px, 3.6vw, 56px); }
.window .hear-name { font-size: clamp(20px, 2vw, 32px); }
.window .hear .tag { font-size: clamp(12px, 1vw, 15px); }
.window .hear p, .window .hear-dots { padding-left: 0; }
.window .hear p { max-width: 24em; font-size: clamp(15px, 1.9vw, 31px); line-height: 1.16; letter-spacing: -0.02em; }
.window .hear .yes { display: block; margin: 0 0 0.08em; font-size: clamp(40px, 6.6vw, 118px); line-height: 0.92; vertical-align: baseline; }
.window .hear-dots { padding-top: 4px; }
.window .hear-dots i { width: 11px; height: 11px; }
/* the bar at the foot of the answer: the result is loading behind it */
.hear-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(241, 238, 232, 0.08); }
.window .hear > .hear-bar { opacity: 1; }
.hear-bar i { display: block; height: 100%; width: 0; background: var(--blue); }
.hear.building .hear-bar i { width: 100%; transition: width 1.5s linear; }
/* on phones the window never gets too short to hold Lucas's answer */
@media (max-width: 900px) { .hero .window-body { min-height: 216px; } .window .hear { padding: 16px 18px; } }
/* "Yes." belongs to the sentence: same line, just a touch larger and in blue */
.window .hear .yes { display: inline; margin: 0 0.1em 0 0; font-size: 1.28em; line-height: 1; vertical-align: baseline; }
.window .hear p { max-width: 22em; font-size: clamp(16px, 2.1vw, 34px); line-height: 1.2; }

/* each result is a link to its case page while it plays: the whole picture is clickable and the cursor says "View" */
.win-link { position: absolute; inset: 0; z-index: 2; display: none; text-decoration: none; }
.window.live .win-link { display: block; }
.window.cta .win-link { display: none; }
.win-link span { display: none; }
/* no cursor on touch screens, so a small label does the job there */
@media (hover: none), (pointer: coarse) {
  .win-link span { display: inline-block; position: absolute; left: 10px; bottom: 10px; padding: 9px 13px; border-radius: 999px; background: var(--blue); color: #fff; font-family: var(--mono); font-size: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
}
