/* ============ Tokens ============ */
@property --d { syntax: '<number>'; inherits: true; initial-value: 1; }

:root {
  --bg: #000;
  --bg-1: #0a0a0a;
  --bg-2: #141414;
  --line: #262626;
  --line-2: #3a3a3a;
  --fg: #fafafa;
  --fg-2: #a1a1a1;
  --fg-3: #6b6b6b;
  --accent: #ff5a1f;
  --green: #3ddc84;

  --f-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-body: 'Inter Tight', system-ui, sans-serif;
  --f-mono: 'Inter Tight', system-ui, sans-serif; /* small labels */

  --ease-snappy: cubic-bezier(.2, .9, .1, 1);
  --ease-gentle: cubic-bezier(.4, 0, .2, 1);
  --ease-anticipate: cubic-bezier(.6, -.3, .3, 1.3);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter: clamp(16px, 4.4vw, 64px);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
body.still *, body.still *::before, body.still *::after { animation-play-state: paused !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #000; }

@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor input { cursor: none; }
}

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
  transition: clip-path 1s var(--ease-out);
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.loader-logo { width: min(34vw, 220px); aspect-ratio: 740 / 684; color: var(--fg); --d: 0; }
.loader-logo.fill-pulse { animation: logoFlash .6s var(--ease-out); }
@keyframes logoFlash { 40% { color: var(--accent); transform: scale(1.05); } }
.loader-meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 48px;
  display: flex; justify-content: space-between;
  font: 12px var(--f-mono); letter-spacing: 2px; color: var(--fg-3);
}
.loader-count { color: var(--fg); font-variant-numeric: tabular-nums; }
.loader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bg-2); }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ============ Cursor ============ */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 90; display: none; }
body.has-cursor .cursor, body.has-cursor .cursor-dot { display: block; }
.cursor {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(250, 250, 250, .4); border-radius: 50%;
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out),
              background .3s, border-color .3s, opacity .3s;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); }
.cursor-label { font: 500 12px var(--f-mono); letter-spacing: 1px; color: #000; opacity: 0; transform: scale(.6); transition: .3s var(--ease-out); }
.cursor.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--accent); }
.cursor.is-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor-label { opacity: 1; transform: none; }
.cursor.is-hidden { opacity: 0; }
.cursor-dot.is-hidden { opacity: 0; }

/* ============ Progress ============ */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 80; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font: 500 14px var(--f-body); white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: background .3s, color .3s, outline-color .3s;
  will-change: transform;
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: var(--accent); transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn-primary { background: var(--fg); color: #000; }
.btn-primary:hover { color: #000; }
.btn-secondary { background: var(--bg-2); outline: 1px solid var(--line-2); outline-offset: -.5px; }
.btn-secondary:hover { color: #000; outline-color: var(--accent); }
.btn-ghost::before { background: var(--bg-2); }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-snappy); }
.ico-fill { fill: currentColor; stroke: none; }
.btn:hover .ico-arrow { transform: rotate(45deg); }
.btn:hover .ico-down { animation: bounceDown .8s var(--ease-gentle) infinite; }
@keyframes bounceDown { 50% { transform: translateY(3px); } }

/* ============ Nav ============ */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 24px clamp(16px, 2.8vw, 40px);
  transition: transform .6s var(--ease-out);
}
.nav-wrap.hide { transform: translateY(-120%); }
.nav-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 10px 10px 22px;
  background: rgba(10, 10, 10, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  outline: 1px solid var(--line); outline-offset: -.5px; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 48px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 37px; color: var(--fg); transition: color .3s, transform .7s var(--ease-anticipate); }
.logo:hover .logo-mark { color: var(--accent); transform: rotate(-12deg) scale(1.08); }
.links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.roll { position: relative; display: inline-block; overflow: hidden; font-size: 14px; color: var(--fg-2); height: 1.25em; line-height: 1.25em; }
.roll span, .roll::after { display: block; transition: transform .5s var(--ease-out); }
.roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--fg); }
.roll:hover span, .roll:hover::after { transform: translateY(-100%); }
.roll.active span { color: var(--fg); }
.actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--fg); position: relative; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 2px; background: #000; transition: transform .4s var(--ease-snappy); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px; margin-top: 8px; padding: 16px 24px;
  background: rgba(10, 10, 10, .92); backdrop-filter: blur(12px); border-radius: 24px; outline: 1px solid var(--line);
  clip-path: inset(0 0 100% 0 round 24px); transition: clip-path .6s var(--ease-out);
}
.mobile-menu a { font: 500 32px var(--f-display); letter-spacing: -1px; padding: 6px 0; }
.mobile-menu.open { clip-path: inset(0 0 0 0 round 24px); }

/* ============ Shared type ============ */
.eyebrow { font: 12px var(--f-mono); letter-spacing: 2px; color: var(--accent); margin-bottom: 16px; }
.title { font: 500 clamp(40px, 5vw, 72px)/1 var(--f-display); letter-spacing: -0.04em; margin: 0; }
.title-md { font: 500 clamp(36px, 3.9vw, 56px)/1.02 var(--f-display); letter-spacing: -0.035em; margin: 0; }
.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.dot-green { background: var(--green); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
.dot-orange { background: var(--accent); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.tag, .badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: var(--bg-2); outline: 1px solid var(--line); outline-offset: -.5px; border-radius: 999px;
  font: 12px var(--f-mono); color: var(--fg); white-space: nowrap;
}

/* split text */
.split-lines .ln, .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w { margin-right: .22em; }
.split .w:last-child { margin-right: 0; }
.split .c, .split-lines .ln > span { display: inline-block; transform: translateY(110%) rotate(6deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 28ms + var(--base, 0ms)); }
.split.in .c, .split-lines.in .ln > span { transform: none; }

/* scroll reveals */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--delay, 0ms); }
.reveal-fade { opacity: 0; transition: opacity 1.2s var(--ease-gentle); transition-delay: var(--delay, 0ms); }
.reveal-card { opacity: 0; transform: translateY(80px) scale(.96); transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--delay, 0ms); }
.in.reveal-up, .in.reveal-fade, .in.reveal-card { opacity: 1; transform: none; }

/* ============ Hero ============ */
.hero {
  position: relative;
  display: flex; flex-direction: column; gap: 56px;
  padding: calc(96px + 92px) var(--gutter) 64px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -25vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 90, 31, .22), transparent 70%);
  filter: blur(20px); transform: translate3d(var(--gx, 0), var(--gy, 0), 0);
  animation: glowDrift 12s var(--ease-gentle) infinite alternate;
}
@keyframes glowDrift { to { scale: 1.2; opacity: .7; } }
.hero-mark {
  position: absolute; right: calc(var(--gutter) - 2vw); top: 120px; width: 34vw; max-width: 520px; aspect-ratio: 740/684;
  color: #1a1a1a; pointer-events: none; z-index: 0;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0) rotate(var(--mr, 0deg));
  --d: 0;
}
.hero > *:not(.hero-glow):not(.hero-mark) { position: relative; z-index: 1; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.location { font: 12px var(--f-mono); letter-spacing: 2px; color: var(--fg-3); }
#clock { color: var(--fg-2); font-variant-numeric: tabular-nums; }

.headline {
  margin: 0;
  font: 500 clamp(44px, 8.9vw, 128px)/0.95 var(--f-display);
  letter-spacing: -0.047em;
}
.headline .line { display: flex; align-items: center; flex-wrap: wrap; }
.line-2 { gap: .22em; }
.muted { color: var(--fg-3); }
.italic { font-style: italic; }
.move-word { display: inline-block; }
.move-word .c { transition-timing-function: var(--ease-anticipate); }
.move-word.wiggle .c { animation: wiggle 1s var(--ease-anticipate); animation-delay: calc(var(--i) * 50ms); }
@keyframes wiggle { 30% { transform: translateY(-14%) skewX(-12deg); } 60% { transform: translateY(4%) skewX(6deg); } }

.motion-pill {
  position: relative; flex: none;
  width: 2.03em; height: .81em; border-radius: 999px;
  background: var(--accent);
  padding: 0 .094em;
  display: flex; align-items: center;
  transform: scale(0); transition: transform 1s var(--ease-anticipate) .5s, background .4s;
}
.motion-pill.in { transform: scale(1); }
.motion-pill:hover { background: #ff6d38; }
.motion-pill .knob {
  width: .625em; height: .625em; border-radius: 50%; background: #000;
  display: grid; place-items: center; position: relative; z-index: 1;
  transform: translateX(0); transition: transform .9s cubic-bezier(.34, 1.56, .64, 1);
}
.motion-pill[aria-pressed="true"] .knob { transform: translateX(calc(2.03em - .625em - .188em)); }
.motion-pill .knob svg { position: absolute; width: .22em; height: .22em; fill: var(--accent); transition: opacity .3s, transform .4s var(--ease-snappy); }
.knob-pause { opacity: 0; transform: scale(.5); }
.motion-pill[aria-pressed="true"] .knob-play { opacity: 0; transform: scale(.5); }
.motion-pill[aria-pressed="true"] .knob-pause { opacity: 1; transform: none; }
.motion-pill[aria-pressed="true"] .knob { animation: knobSpin 4s linear infinite .9s; }
@keyframes knobSpin { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,.4); } 50% { box-shadow: 0 0 0 .05em rgba(0,0,0,.25); } }
.pill-trail {
  position: absolute; left: .094em; top: 50%; height: .625em; translate: 0 -50%;
  border-radius: 999px; background: rgba(0, 0, 0, .18);
  width: .625em; transition: width .9s cubic-bezier(.34, 1.56, .64, 1);
}
.motion-pill[aria-pressed="true"] .pill-trail { width: calc(2.03em - .188em); }

.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.bio { max-width: 520px; margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--fg-2); }
.bio strong { color: var(--fg); font-weight: 500; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; --delay: 120ms; }

/* ============ Showreel ============ */
.showreel { padding: 0 clamp(16px, 2.8vw, 40px); }
.reel {
  position: relative; height: clamp(420px, 50vw, 720px); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  clip-path: inset(var(--clip, 8%) var(--clip, 8%) 0 var(--clip, 8%) round var(--radius));
  will-change: clip-path;
}
.reel { background: #000; }
.reel-img {
  position: absolute; left: 0; top: -4%; width: 100%; height: 108%; object-fit: cover; display: block;
  transform: translate3d(0, var(--py, 0), 0) scale(var(--ps, 1.04));
}
.reel-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 32%); pointer-events: none; transition: opacity .6s; }
.reel.playing .reel-shade { opacity: .75; }
.reel-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.reel-big-play {
  width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(250, 250, 250, .1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  outline: 1px solid rgba(255,255,255,.25);
  transition: transform .6s var(--ease-anticipate), opacity .4s;
}
.reel-big-play svg { width: 34px; fill: var(--fg); margin-left: 4px; }
.reel.playing .reel-big-play { transform: scale(0); opacity: 0; }
.reel:hover .reel-big-play { transform: scale(1.08); }
.reel.playing:hover .reel-big-play { transform: scale(0); }

.hud { position: relative; padding: 24px 32px; display: flex; flex-direction: column; gap: 14px; }
.hud-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hud-left { display: flex; align-items: center; gap: 16px; }
.hud-play { width: 44px; height: 44px; border-radius: 50%; background: var(--fg); display: grid; place-items: center; transition: transform .4s var(--ease-anticipate), background .3s; }
.hud-play:hover { transform: scale(1.1); background: var(--accent); }
.hud-play svg { width: 18px; height: 18px; fill: #000; grid-area: 1/1; transition: opacity .25s, transform .35s var(--ease-snappy); }
.hud-play .i-pause { opacity: 0; transform: scale(.4); }
.reel.playing .hud-play .i-play { opacity: 0; transform: scale(.4); }
.reel.playing .hud-play .i-pause { opacity: 1; transform: none; }
.hud-title, .hud-time { font: 13px var(--f-mono); letter-spacing: 2px; }
.hud-time { color: var(--fg-2); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.hud-right { display: flex; align-items: center; gap: 14px; }
.hud-sound { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(250,250,250,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); outline: 1px solid rgba(255,255,255,.2); transition: background .3s, transform .4s var(--ease-anticipate); }
.hud-sound:hover { background: var(--accent); transform: scale(1.1); }
.hud-sound svg { width: 16px; height: 16px; grid-area: 1/1; fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s, transform .35s var(--ease-snappy); }
.hud-sound .i-sound { opacity: 0; transform: scale(.5); }
.hud-sound[aria-pressed="true"] .i-muted { opacity: 0; transform: scale(.5); }
.hud-sound[aria-pressed="true"] .i-sound { opacity: 1; transform: none; }
#timecode { color: var(--fg); }
.rec { display: inline-flex; align-items: center; gap: 6px; font: 11px var(--f-mono); color: var(--accent); letter-spacing: 2px; opacity: 0; transition: opacity .4s; }
.reel.playing .rec { opacity: 1; }
.reel.playing .rec .dot { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.track { position: relative; height: 4px; background: rgba(255,255,255,.15); border-radius: 2px; cursor: pointer; }
.track::before { content: ''; position: absolute; inset: -10px 0; }
.track-progress { position: relative; height: 100%; width: 0%; background: var(--accent); border-radius: 2px; }
.playhead { position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--fg); transform: scale(0); transition: transform .3s var(--ease-anticipate); }
.track:hover .playhead, .reel.playing .playhead { transform: scale(1); }
.keyframes { display: flex; justify-content: space-between; font: 11px var(--f-mono); color: var(--fg-3); }
.keyframes span { transition: color .3s, transform .4s var(--ease-snappy); }
.keyframes span.on { color: var(--accent); transform: translateY(-2px); }

/* ============ Marquee ============ */
.marquee { overflow: hidden; padding: 72px 0 0; }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; will-change: transform; }
.marquee-track span { font: 500 clamp(40px, 6vw, 88px) var(--f-display); letter-spacing: -0.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: color .4s, -webkit-text-stroke-color .4s; }
.marquee-track span:hover { color: var(--fg); -webkit-text-stroke-color: var(--fg); }
.marquee-track svg { width: clamp(36px, 4vw, 60px); aspect-ratio: 740/684; color: var(--accent); flex: none; animation: spin 10s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Work ============ */
.work { padding: 120px clamp(16px, 2.8vw, 40px) 80px; display: flex; flex-direction: column; gap: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 clamp(0px, 1.7vw, 24px); flex-wrap: wrap; }
.count { font: 13px var(--f-mono); color: var(--fg-3); }
.row { display: flex; gap: 24px; }
.card { display: flex; flex-direction: column; gap: 20px; min-width: 0; perspective: 1200px; }
.card { flex: var(--ar, 1) 1 0; }
.cover {
  position: relative; aspect-ratio: var(--ar, 1.7778); border-radius: var(--radius); overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out), border-radius .6s var(--ease-out);
  transform-style: preserve-3d; background: var(--bg-1);
}
.card:hover .cover { border-radius: 32px; }
.cover-img, .cover-vid {
  position: absolute; left: -3%; top: -3%; width: 106%; height: 106%; object-fit: cover; display: block;
  transform: translate3d(var(--ix, 0px), calc(var(--iy, 0px) + var(--par, 0px)), 0) scale(1.01);
  transition: transform .9s var(--ease-out), opacity .5s var(--ease-gentle);
}
.cover-vid { opacity: 0; }
.cover.previewing .cover-vid { opacity: 1; }
.card:hover .cover-img, .card:hover .cover-vid { transform: translate3d(var(--ix, 0px), calc(var(--iy, 0px) + var(--par, 0px)), 0) scale(1.06); }
.dur {
  position: absolute; right: 16px; bottom: 16px; z-index: 1;
  padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 12px var(--f-mono); color: var(--fg); font-variant-numeric: tabular-nums;
}
.cover.previewing .dur::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: 1px; animation: blink 1s steps(2) infinite; }
.cover::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(400px circle at var(--lx, 50%) var(--ly, 50%), rgba(255,255,255,.18), transparent 60%);
}
.card:hover .cover::after { opacity: 1; }
.cover-top { position: absolute; inset: 20px 20px auto; display: flex; justify-content: space-between; align-items: flex-start; z-index: 1; }
.arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--fg); display: grid; place-items: center; transition: transform .6s var(--ease-anticipate), background .3s; }
.arrow svg { width: 18px; height: 18px; fill: #000; margin-left: 2px; transition: transform .6s var(--ease-snappy); }
.card:hover .arrow { background: var(--accent); transform: scale(1.15); }
.card:hover .arrow svg { transform: scale(1.15); }
.meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; padding: 0 4px; }
.meta > div { flex: 1 1 280px; min-width: 0; }
.meta h3 { margin: 0 0 6px; font: 500 24px var(--f-display); letter-spacing: -0.5px; position: relative; display: inline-block; }
.meta h3::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.card:hover .meta h3::after { transform: scaleX(1); transform-origin: left; }
.meta p { margin: 0; font-size: 15px; color: var(--fg-2); }
.roles { font: 12px var(--f-mono); color: var(--fg-3); white-space: nowrap; padding-top: 6px; }

/* ============ Shared desc ============ */
.desc { max-width: 400px; margin: 0; font-size: 16px; line-height: 1.5; color: var(--fg-2); }
.desc em { color: var(--fg-3); font-style: normal; font-family: var(--f-mono); font-size: 12px; display: block; margin-top: 8px; }

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 var(--gutter) 120px; }
.stat { display: flex; flex-direction: column; gap: 56px; padding: 28px; background: var(--bg-1); outline: 1px solid var(--line); outline-offset: -.5px; border-radius: var(--radius); position: relative; overflow: hidden; }
.stat::before { content: ''; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--lx, 50%) var(--ly, 50%), rgba(255,90,31,.14), transparent 60%); opacity: 0; transition: opacity .4s; }
.stat:hover::before { opacity: 1; }
.value { font: 500 clamp(52px, 5vw, 72px) var(--f-display); letter-spacing: -3px; font-variant-numeric: tabular-nums; position: relative; }
.accent-text { color: var(--accent); }
.label { font-size: 14px; color: var(--fg-2); position: relative; }
.stat-clock { position: absolute; right: 28px; top: 34px; display: inline-flex; align-items: center; gap: 8px; font: 12px var(--f-mono); color: var(--fg-2); font-variant-numeric: tabular-nums; }

/* ============ Testimonial ============ */
.testimonial { display: flex; flex-direction: column; align-items: center; gap: 36px; padding: 120px clamp(16px, 13.9vw, 200px); background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; overflow: hidden; }
.testimonial .eyebrow { margin-bottom: -12px; }
.quote-ico { width: 40px; height: 40px; fill: var(--accent); transition: transform .7s var(--ease-anticipate); }
.testimonial.switching .quote-ico { transform: rotate(-12deg) scale(.85); }
.t-stage { display: grid; width: 100%; max-width: 1040px; }
.quote { grid-area: 1 / 1; margin: 0; font: 400 clamp(26px, 3.05vw, 44px)/1.2 var(--f-display); letter-spacing: -0.027em; visibility: hidden; }
.quote.active { visibility: visible; }
.quote .qw { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(6px);
  transition: opacity .6s var(--ease-gentle), transform .8s var(--ease-out), filter .6s var(--ease-gentle), color .4s;
  transition-delay: calc(var(--i) * 32ms); }
.quote.active.in-view .qw { opacity: 1; transform: none; filter: none; }
.quote.leaving { visibility: visible; }
.quote.leaving .qw { opacity: 0; transform: translateY(-.35em); filter: blur(6px); transition-delay: calc(var(--i) * 10ms); }
.quote .qw.hl { color: var(--accent); }
.t-people { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.person { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; text-align: left; overflow: hidden;
  background: var(--bg-2); outline: 1px solid var(--line); outline-offset: -.5px; opacity: .55;
  transition: opacity .4s, outline-color .4s, transform .6s var(--ease-anticipate); }
.person:hover { opacity: .9; transform: translateY(-3px); }
.person.active { opacity: 1; outline-color: var(--line-2); }
.person .avatar { width: 48px; height: 48px; border-radius: 50%; display: block; transition: transform .6s var(--ease-anticipate); }
.person.active .avatar { transform: rotate(-8deg) scale(1.06); }
.person:hover .avatar { animation: wave .8s var(--ease-gentle); }
@keyframes wave { 25% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } }
.author-name { display: block; font-weight: 500; font-size: 15px; }
.author-role { display: block; font-size: 13px; color: var(--fg-2); }
.t-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.t-bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.person.active .t-bar span { animation: tbar var(--t-dur, 7s) linear forwards; }
.t-people.paused .person.active .t-bar span { animation-play-state: paused; }
@keyframes tbar { to { transform: scaleX(1); } }

/* ============ Contact ============ */
.contact { padding: 160px var(--gutter) 64px; display: flex; flex-direction: column; }
.email {
  font: 500 clamp(30px, 8.75vw, 126px)/0.9 var(--f-display); letter-spacing: -0.048em;
  text-align: left; margin: 0 0 40px; white-space: nowrap; display: block; max-width: 100%;
}
.email .ec { display: inline-block; transition: transform .5s var(--ease-anticipate), color .3s; }
.email .ec.up { transform: translateY(-14%); color: var(--accent); }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.prompt {
  display: flex; align-items: center; justify-content: space-between;
  width: min(520px, 100%); padding: 8px 8px 8px 20px;
  background: var(--bg-2); outline: 1px solid var(--line-2); outline-offset: -.5px; border-radius: 999px;
  transition: outline-color .3s, box-shadow .4s;
}
.prompt:focus-within { outline-color: var(--accent); box-shadow: 0 0 0 6px rgba(255,90,31,.12); }
.prompt input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--fg); font: 14px var(--f-body); }
.prompt input::placeholder { color: var(--fg-3); }
.send { width: 36px; height: 36px; border-radius: 50%; background: var(--fg); display: grid; place-items: center; flex: none; transition: transform .5s var(--ease-anticipate), background .3s; }
.send svg { width: 18px; height: 18px; fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prompt:focus-within .send, .send:hover { background: var(--accent); }
.send:hover { transform: translateY(-3px); }
.send.fly svg { animation: fly .7s var(--ease-anticipate); }
@keyframes fly { 50% { transform: translateY(-30px); opacity: 0; } 51% { transform: translateY(30px); } }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }


.footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 120px; padding-top: 24px; border-top: 1px solid var(--line); font: 12px var(--f-mono); color: var(--fg-3); flex-wrap: wrap; }
.to-top span { display: inline-block; transition: transform .5s var(--ease-anticipate); }
.to-top:hover { color: var(--fg); }
.to-top:hover span { transform: translateY(-4px); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; padding: 12px 18px; border-radius: 999px; background: var(--fg); color: #000; font: 500 13px var(--f-body); transform: translate(-50%, calc(100% + 60px)); visibility: hidden; transition: transform .6s var(--ease-anticipate), visibility 0s .6s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease-anticipate), visibility 0s; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .links { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-wrap { padding: 16px; }
  .actions .btn-ghost { display: none; }
  .menu-btn { display: block; }
  .mobile-menu { display: flex; }
  .hero { gap: 40px; padding-top: 140px; }
  .hero-mark { width: 60vw; top: 90px; right: -10vw; }
  .row { flex-direction: column; }
  .card { flex: none; }
  .hud { padding: 16px; }
  .rec { display: none; }
  .meta { flex-direction: column; gap: 4px; }
  .roles { padding-top: 0; }
}
@media (max-width: 560px) {
  .nav-bar .btn-primary span { display: none; }
  .nav-bar .btn-primary { padding: 14px; }
  .stats { grid-template-columns: 1fr; }
  .location { letter-spacing: 1px; font-size: 11px; }
  
  .keyframes span:nth-child(7) { display: none; }
  .hud-title { letter-spacing: 1px; font-size: 11px; }
  .hud-time { font-size: 11px; }
  .reel-big-play { width: 80px; height: 80px; }
  .btn { padding: 12px 16px; }
}

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

/* ============ Video player ============ */
.player { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 24px clamp(16px, 4vw, 64px); visibility: hidden; transition: visibility 0s .7s; }
.player.open { visibility: visible; transition: none; }
.player-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity .5s var(--ease-gentle); }
.player.open .player-backdrop { opacity: 1; }
.player-inner { position: relative; width: min(1280px, 100%); display: flex; flex-direction: column; gap: 20px; }
.player-head, .player-nav { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .7s var(--ease-out); }
.player.open .player-head, .player.open .player-nav { opacity: 1; transform: none; transition-delay: .25s; }
.player-idx { font: 12px var(--f-mono); letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }
.player-title { margin: 0 0 6px; font: 500 clamp(24px, 3vw, 40px)/1.05 var(--f-display); letter-spacing: -0.03em; }
.player-meta { font: 12px var(--f-mono); color: var(--fg-3); }
.player-close { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--fg); flex: none; transition: transform .5s var(--ease-anticipate), background .3s; }
.player-close:hover { transform: rotate(90deg); background: var(--accent); }
.player-close span { position: absolute; left: 15px; right: 15px; top: 23px; height: 2px; background: #000; transform: rotate(45deg); }
.player-close span + span { transform: rotate(-45deg); }
.player-frame {
  position: relative; margin: 0 auto; width: min(100%, calc(66vh * var(--ar, 1.7778))); aspect-ratio: var(--ar, 1.7778);
  border-radius: var(--radius); overflow: hidden; background: #000; outline: 1px solid var(--line);
  clip-path: inset(12% 12% 12% 12% round var(--radius)); opacity: 0; transform: scale(.94);
  transition: clip-path .8s var(--ease-out), opacity .4s, transform .8s var(--ease-out);
}
.player.open .player-frame { clip-path: inset(0 0 0 0 round var(--radius)); opacity: 1; transform: none; transition-delay: .05s; }
.player-frame.swap { opacity: 0; transform: scale(.97); transition-delay: 0s; }
.player-frame video { width: 100%; height: 100%; display: block; background: #000; }
@media (max-width: 560px) {
  .player-nav .btn span { display: none; }
  .player-nav .btn { padding: 14px; }
}

/* =====================================================================
   SELLING LAYER — hero proof, services, craft timeline, process,
   about, contact brief
   ===================================================================== */

.btn-dark { background: #000; color: var(--fg); }
.btn-dark::before { background: var(--fg); }
.btn-dark:hover { color: #000; }
.dot-grey { background: var(--fg-3); }

/* ---------- Hero proof ---------- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); --delay: 240ms; }
.proof-item { display: flex; flex-direction: column; gap: 4px; }
.proof-item b { font: 500 22px var(--f-display); letter-spacing: -0.5px; }
.proof-item span { font: 12px var(--f-mono); color: var(--fg-3); }
.proof-link b { transition: color .3s; }
.proof-link:hover b { color: var(--accent); }

/* ---------- Services ---------- */
.offers { padding: 120px var(--gutter) 80px; display: flex; flex-direction: column; gap: 56px; border-top: 1px solid var(--line); }
.offers .section-head, .steps .section-head { padding: 0; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer {
  display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: var(--radius);
  background: var(--bg-1); outline: 1px solid var(--line); outline-offset: -.5px; position: relative; overflow: hidden;
  transition: transform .7s var(--ease-out), outline-color .4s, opacity 1.1s var(--ease-out);
}
.offer::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--lx, 50%) var(--ly, 0%), rgba(255,90,31,.14), transparent 60%); }
.offer:hover::before { opacity: 1; }
.offer.in:hover { transform: translateY(-8px); outline-color: var(--line-2); }
.offer.accent { background: var(--accent); color: #000; outline: none; }
.offer.accent::before { background: radial-gradient(420px circle at var(--lx, 50%) var(--ly, 0%), rgba(255,255,255,.25), transparent 60%); }
.offer > * { position: relative; }
.offer-top { display: flex; justify-content: space-between; align-items: center; }
.offer-num { font: 13px var(--f-mono); color: var(--fg-3); }
.accent .offer-num { color: rgba(0,0,0,.6); }
.offer-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-2); outline: 1px solid var(--line); display: grid; place-items: center; transition: transform .7s var(--ease-anticipate); }
.accent .offer-ico { background: #000; outline: none; }
.offer:hover .offer-ico { transform: rotate(-12deg) scale(1.08); }
.offer-ico svg { width: 22px; height: 22px; }
.ico-play svg { fill: var(--accent); margin-left: 3px; }
.offer:hover .ico-play svg { animation: icoPulse .9s var(--ease-gentle) infinite; }
@keyframes icoPulse { 50% { transform: scale(.82); } }
.ico-grid { grid-template-columns: 9px 9px; gap: 4px; place-content: center; }
.ico-grid i { width: 9px; height: 9px; border-radius: 2px; background: var(--fg); transition: transform .6s var(--ease-snappy), background .3s; }
.offer:hover .ico-grid i:nth-child(1) { transform: translate(-3px, -3px); background: var(--accent); }
.offer:hover .ico-grid i:nth-child(4) { transform: translate(3px, 3px); }
.ico-curve svg { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 30; stroke-dashoffset: 0; }
.offer:hover .ico-curve svg { animation: icoDraw 1.2s var(--ease-snappy); }
@keyframes icoDraw { from { stroke-dashoffset: 30; } }
.offer h3 { margin: 8px 0 0; font: 500 clamp(26px, 2.2vw, 32px)/1.05 var(--f-display); letter-spacing: -1px; }
.offer-pitch { margin: 0; font-size: 16px; line-height: 1.5; color: var(--fg-2); }
.accent .offer-pitch { color: rgba(0,0,0,.75); }
.offer-list { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.accent .offer-list { border-color: rgba(0,0,0,.18); }
.offer-list li { display: flex; gap: 10px; align-items: baseline; }
.offer-list li::before { content: '✓'; font: 600 12px var(--f-mono); color: var(--accent); }
.accent .offer-list li::before { color: #000; }
.offer-for { font: 12px/1.6 var(--f-mono); color: var(--fg-2); }
.offer-for span { display: block; color: var(--fg-3); letter-spacing: 2px; text-transform: uppercase; font-size: 11px; }
.accent .offer-for { color: rgba(0,0,0,.8); }
.accent .offer-for span { color: rgba(0,0,0,.55); }
.offer-actions { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.offer-link { font: 500 14px var(--f-body); background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease-out); }
.offer-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tools span { font: 12px var(--f-mono); padding: 6px 12px; border-radius: 999px; background: var(--bg-2); outline: 1px solid var(--line); color: var(--fg-2); transition: color .3s, outline-color .3s, transform .5s var(--ease-anticipate); }
.tools span:hover { color: var(--fg); outline-color: var(--accent); transform: translateY(-3px); }
.tools .tools-label { background: none; outline: none; color: var(--fg-3); letter-spacing: 2px; padding-left: 0; }
.tools .tools-label:hover { transform: none; color: var(--fg-3); }

/* ---------- Lab CTA (used by Craft) ---------- */
.lab-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 32px; border-radius: var(--radius); outline: 1px solid var(--line); outline-offset: -.5px;
  background: linear-gradient(110deg, rgba(255,90,31,.18), rgba(255,90,31,0) 55%), var(--bg-1);
}
.lab-cta h3 { margin: 0 0 8px; font: 500 clamp(24px, 2.2vw, 32px)/1.1 var(--f-display); letter-spacing: -1px; }
.lab-cta p { margin: 0; max-width: 620px; color: var(--fg-2); line-height: 1.5; }

/* ---------- Process steps ---------- */
.steps { padding: 120px var(--gutter); display: flex; flex-direction: column; gap: 64px; border-top: 1px solid var(--line); }
.step-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; --p: 0; }
.step-line { position: absolute; left: 9px; right: 0; top: 8px; height: 2px; background: var(--line); }
.step-line span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p)); box-shadow: 0 0 12px rgba(255,90,31,.6); }
.step { position: relative; padding-top: 44px; display: flex; flex-direction: column; gap: 10px; }
.step-dot { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); outline: 2px solid var(--line-2); outline-offset: -2px; transition: background .4s, outline-color .4s, box-shadow .6s, transform .6s var(--ease-anticipate); }
.step.lit .step-dot { background: var(--accent); outline-color: var(--accent); box-shadow: 0 0 0 6px rgba(255,90,31,.18); transform: scale(1.1); }
.step-num { font: 13px var(--f-mono); color: var(--fg-3); transition: color .4s; }
.step.lit .step-num { color: var(--accent); }
.step h3 { margin: 0; font: 500 26px var(--f-display); letter-spacing: -0.8px; }
.step p { margin: 0; color: var(--fg-2); line-height: 1.5; font-size: 15px; max-width: 300px; }
.step-out { font: 12px var(--f-mono); color: var(--fg); margin-top: 6px; }

/* ---------- About ---------- */
.about { padding: 120px var(--gutter) 64px; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.about-lead { margin: 0; font: 400 clamp(22px, 2vw, 28px)/1.4 var(--f-display); letter-spacing: -0.4px; color: var(--fg); }
.values { display: grid; gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.v-ico { color: var(--accent); font-size: 14px; padding-top: 4px; transition: transform .8s var(--ease-anticipate); }
.value-item:hover .v-ico { transform: rotate(225deg) scale(1.3); }
.value-item h4 { margin: 0 0 4px; font: 500 20px var(--f-display); letter-spacing: -0.4px; }
.value-item p { margin: 0; color: var(--fg-2); line-height: 1.5; }
.stats { padding-top: 0; }

/* ---------- Contact brief ---------- */
.contact-title { margin: 0 0 48px; font: 500 clamp(40px, 6.6vw, 96px)/0.98 var(--f-display); letter-spacing: -0.045em; }
.brief { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.brief-label { font-size: 15px; color: var(--fg); }
.brief-label span { font: 12px var(--f-mono); color: var(--fg-3); margin-left: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border-radius: 999px; background: var(--bg-2); outline: 1px solid var(--line-2); outline-offset: -.5px; font: 500 14px var(--f-body); color: var(--fg-2); transition: background .3s, color .3s, outline-color .3s, transform .5s var(--ease-anticipate); }
.chip:hover { color: var(--fg); outline-color: var(--fg-3); }
.chip[aria-pressed="true"] { background: var(--accent); color: #000; outline-color: var(--accent); animation: chipPop .5s var(--ease-anticipate); }
@keyframes chipPop { 40% { transform: scale(1.08); } }
.brief .prompt { width: 100%; padding: 10px 10px 10px 24px; }
.brief .prompt input { font-size: 16px; padding: 8px 0; }
.brief .send { width: 44px; height: 44px; }
.contact-or { margin: 64px 0 12px; font: 12px var(--f-mono); color: var(--fg-3); letter-spacing: 1px; }
.contact .email { font-size: clamp(28px, 5.6vw, 80px); margin-bottom: 32px; }

/* ---------- Player CTA ---------- */
.player-nav { align-items: center; }
.player-cta { margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer { padding: 28px; }
  .step-track { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .step-line { display: none; }
  .proof { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .step-track { grid-template-columns: 1fr; row-gap: 36px; padding-left: 0; }
  .step-line { display: block; left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .step-line span { transform-origin: 50% 0; transform: scaleY(var(--p)); width: 100%; height: 100%; }
  .step { padding: 0 0 0 44px; }
  .offers, .steps, .about { padding-top: 96px; }
}
@media (max-width: 560px) {
  .player-nav .player-cta span { display: inline; }
  .player-nav .player-cta { padding: 12px 16px; font-size: 13px; }
  .lab-cta { padding: 24px; }
}

/* Work grid (cards rendered from works.js) */
.work-grid { display: flex; flex-direction: column; gap: 56px; }
/* keep any card (lone, square, vertical) at a sensible height */
.card { max-width: calc(620px * var(--ar, 1.7778)); }
@media (max-width: 820px) { .meta > div { flex: none; } }

/* ---------- Plus Jakarta Sans tuning (looser tracking than Space Grotesk needed) ---------- */
.headline { letter-spacing: -0.035em; word-spacing: .04em; }
.title, .contact-title { letter-spacing: -0.03em; word-spacing: .04em; }
.title-md { letter-spacing: -0.025em; word-spacing: .03em; }
.marquee-track span, .value, .contact .email { letter-spacing: -0.03em; }
.offer h3, .lab-cta h3, .bt-headline, .step h3, .player-title, .mobile-menu a { letter-spacing: -0.02em; }
.quote { letter-spacing: -0.015em; }

/* ---------- Contact: full-width email, centered socials ---------- */
.contact .email { width: 100%; white-space: nowrap; text-align: left; overflow: visible; }
.contact-row { justify-content: center; }
.socials { justify-content: center; }

/* ---------- Tools with logos ---------- */
.tools { gap: 10px; }
.tools .tool { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; font: 500 14px var(--f-body); color: var(--fg); }
.tools .tool svg { width: 22px; height: 22px; flex: none; color: var(--fg); transition: transform .7s var(--ease-anticipate); }
.tools .tool b { font-weight: 500; }
.tools .tool:hover svg { transform: rotate(-12deg) scale(1.15); }

/* ---------- Craft: scroll-scrubbed timeline ("Every frame is a decision") ---------- */
.craft { padding: 120px var(--gutter); display: flex; flex-direction: column; gap: 56px; border-top: 1px solid var(--line); }
.craft .section-head { padding: 0; }
.bt-pin { position: relative; height: 340vh; margin: -40px 0; }
.bt-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 84px 0 20px; }
.bt-win {
  width: 100%; max-height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; background: var(--bg-1); outline: 1px solid var(--line); outline-offset: -.5px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}

/* window bar */
.bt-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); font: 12px var(--f-mono); }
.bt-lights { display: flex; gap: 6px; margin-right: 4px; }
.bt-lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.bt-lights i:first-child { background: var(--accent); }
.bt-file { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--fg); }
.bt-file em { margin-left: 8px; font-style: normal; color: var(--fg-3); }
.bt-btn, .bt-toggle {
  display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--bg-2); outline: 1px solid var(--line-2); font: 500 12px var(--f-body); color: var(--fg);
  transition: background .3s, color .3s, outline-color .3s;
}
.bt-btn:hover, .bt-toggle:hover { outline-color: var(--accent); }
.bt-btn svg { width: 11px; height: 11px; fill: currentColor; }
.bt-btn.on { background: var(--accent); color: #000; outline-color: var(--accent); }
.bt-knob { position: relative; width: 26px; height: 14px; border-radius: 999px; background: var(--accent); transition: background .3s; }
.bt-knob::after { content: ''; position: absolute; top: 2px; left: 14px; width: 10px; height: 10px; border-radius: 50%; background: #000; transition: left .45s var(--ease-anticipate), background .3s; }
.bt-toggle b { min-width: 20px; font-weight: 600; color: var(--accent); }
.bt-toggle[aria-pressed="false"] .bt-knob { background: var(--line-2); }
.bt-toggle[aria-pressed="false"] .bt-knob::after { left: 2px; background: var(--fg); }
.bt-toggle[aria-pressed="false"] b { color: var(--fg-3); }

/* viewer + notes */
.bt-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 300px; border-bottom: 1px solid var(--line); }
.bt-viewer {
  --sw: min(100%, max(260px, calc((100svh - 480px) * 16 / 9)));
  min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px;
  background: repeating-conic-gradient(#0c0c0c 0 25%, #080808 0 50%) 0 0 / 16px 16px;
}
.bt-stage {
  position: relative; width: var(--sw); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px;
  background: #050505; outline: 1px solid var(--line-2); container-type: inline-size;
}
.bt-tc { width: var(--sw); display: flex; justify-content: space-between; font: 11px var(--f-mono); color: var(--fg-3); }
.bt-tc span:first-child { color: var(--accent); font-variant-numeric: tabular-nums; }
.bt-tc span:last-child { font-variant-numeric: tabular-nums; }

.bt-notes { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-left: 1px solid var(--line); }
.bt-notes-k { font: 11px var(--f-mono); letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.bt-note { margin: 0; min-height: 4em; font: 500 20px/1.3 var(--f-display); letter-spacing: -0.02em; }
.bt-note.swap { animation: btIn .6s var(--ease-out); }
@keyframes btIn { from { opacity: 0; transform: translateY(10px); } }
.bt-linear-hint { display: none; margin: 0; font: 12px/1.4 var(--f-mono); color: var(--accent); }
.bt-win.is-linear .bt-linear-hint { display: block; }
.bt-phases { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bt-phases button { width: 100%; display: flex; gap: 12px; padding: 7px 10px; border-radius: 10px; text-align: left; font: 13px var(--f-body); color: var(--fg-3); transition: color .3s, background .3s; }
.bt-phases button span { width: 34px; flex: none; font: 11px/1.6 var(--f-mono); }
.bt-phases button:hover { color: var(--fg); }
.bt-phases li.past button { color: var(--fg-2); }
.bt-phases li.on button { color: var(--fg); background: var(--bg-2); }
.bt-phases li.on button span { color: var(--accent); }

/* composition layers (sizes in cqw = % of stage width) */
.bt-l { position: absolute; will-change: transform, opacity; }
.bt-bg { inset: 0; background: radial-gradient(60% 80% at 76% 30%, rgba(255, 90, 31, .34), transparent 70%), radial-gradient(50% 60% at 8% 100%, rgba(255, 90, 31, .12), transparent 70%), #0a0a0a; }
.bt-circle { left: 62%; top: -10%; width: 30cqw; height: 30cqw; border-radius: 50%; background: linear-gradient(150deg, #ff8a55, #ff5a1f 55%, #c43a08); }
.bt-mark { left: 85%; top: 63%; width: 8cqw; aspect-ratio: 740 / 684; height: auto; color: var(--fg); }
.bt-card {
  left: 50%; top: 34%; width: 38cqw; display: flex; flex-direction: column; gap: 1.5cqw; padding: 2.2cqw; border-radius: 2cqw;
  background: rgba(22, 22, 22, .92); outline: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 3cqw 6cqw -2cqw rgba(0, 0, 0, .8);
  font: 500 1.5cqw var(--f-body); color: var(--fg);
}
.bt-card-top { display: flex; align-items: center; gap: 1.2cqw; font-size: 1.7cqw; }
.bt-file-ico { width: 3.2cqw; height: 3.2cqw; border-radius: .8cqw; background: var(--accent); flex: none; }
.bt-card-bar { height: .9cqw; border-radius: 99px; background: #2a2a2a; overflow: hidden; }
.bt-card-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.bt-card-foot { display: flex; justify-content: space-between; font-size: 1.4cqw; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.bt-card.done .bt-card-foot span:first-child { color: var(--green); }
.bt-headline { position: absolute; left: 7%; top: 22%; margin: 0; font: 700 7.4cqw/1 var(--f-display); color: var(--fg); }
.bt-w { position: relative; display: inline-block; transform-origin: 0 100%; }
.bt-move { color: var(--accent); font-style: italic; }
.bt-cta { left: 7%; top: 66%; padding: 1.3cqw 2.6cqw; border-radius: 99px; background: var(--fg); color: #000; font: 600 1.8cqw var(--f-body); white-space: nowrap; }
.bt-ripple { position: absolute; inset: 0; border-radius: inherit; border: .3cqw solid var(--accent); opacity: 0; pointer-events: none; }
.bt-hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw; pointer-events: none; font: 500 1.8cqw var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--fg-2); }
.bt-hint i { font-style: normal; font-size: 2.6cqw; color: var(--accent); animation: bounceDown 1.4s var(--ease-gentle) infinite; }
.bt-cursor { left: 19%; top: 71%; width: 3.2cqw; height: 3.2cqw; fill: var(--fg); stroke: #000; stroke-width: 1.4; stroke-linejoin: round; transform-origin: 15% 10%; }

/* timeline */
.bt-tl { --lw: 150px; --rp: 18px; position: relative; padding: 4px 0 10px; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; }
.bt-ruler, .bt-row { display: grid; grid-template-columns: var(--lw) 1fr; align-items: center; }
.bt-ruler { height: 26px; font: 10px var(--f-mono); color: var(--fg-3); }
.bt-tl-k { padding-left: 18px; letter-spacing: 2px; text-transform: uppercase; }
.bt-ticks { position: relative; height: 100%; margin-right: var(--rp); }
.bt-ticks span { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.bt-row { height: 30px; font: 12px var(--f-body); color: var(--fg-3); }
.bt-name { display: flex; align-items: center; gap: 10px; padding-left: 18px; overflow: hidden; white-space: nowrap; transition: color .3s; }
.bt-name i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.bt-row.live .bt-name { color: var(--fg); }
.bt-track { position: relative; height: 100%; margin-right: var(--rp); border-top: 1px solid var(--line); }
.bt-span { position: absolute; top: 7px; bottom: 6px; right: 0; border-radius: 4px; background: color-mix(in srgb, var(--c) 14%, transparent); outline: 1px solid color-mix(in srgb, var(--c) 30%, transparent); outline-offset: -1px; transition: background .3s; }
.bt-row.live .bt-span { background: color-mix(in srgb, var(--c) 30%, transparent); }
.bt-key {
  position: absolute; top: 50%; width: 10px; height: 11px; margin: -5px 0 0 -5px; background: var(--fg-3);
  clip-path: polygon(0 0, 100% 0, 50% 50%, 100% 100%, 0 100%, 50% 50%); transition: background .2s;
}
.bt-key.hit { background: var(--fg); }
.bt-row.live .bt-key.hit { background: var(--c); }
.is-linear .bt-key { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.bt-ph { position: absolute; top: 0; bottom: 0; left: var(--lw); right: var(--rp); pointer-events: none; }
.bt-ph span { position: absolute; top: 4px; bottom: 0; left: 0; width: 1px; background: var(--accent); }
.bt-ph span::before { content: ''; position: absolute; top: 0; left: -6px; width: 13px; height: 15px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }

/* reduced motion: no pinning, timeline still clickable */
.craft.static .bt-pin { height: auto; margin: 0; }
.craft.static .bt-sticky { position: relative; height: auto; padding: 0; }
.craft.static .bt-viewer { --sw: min(100%, 860px); }

@media (max-width: 820px) {
  .craft { padding: 96px var(--gutter); gap: 40px; }
  .bt-pin { height: 300vh; }
  .bt-sticky { padding: 72px 0 12px; }
  .bt-win { border-radius: 18px; }
  .bt-body { grid-template-columns: 1fr; }
  .bt-viewer { --sw: min(100%, max(240px, calc((100svh - 380px) * 16 / 9))); padding: 12px; gap: 8px; }
  .bt-notes { border-left: 0; border-top: 1px solid var(--line); padding: 12px 16px; gap: 6px; }
  .bt-notes-k { font-size: 10px; }
  .bt-note { min-height: 2.7em; font-size: 15px; }
  .bt-phases { display: none; }
  .bt-tl { --lw: 96px; --rp: 14px; padding-bottom: 8px; }
  .bt-ruler { height: 22px; }
  .bt-tl-k { padding-left: 12px; letter-spacing: 1px; }
  .bt-row { height: 22px; font-size: 11px; }
  .bt-name { padding-left: 12px; gap: 6px; }
  .bt-span { top: 4px; bottom: 4px; }
  .bt-key { width: 8px; height: 9px; margin: -4px 0 0 -4px; }
}
@media (max-width: 560px) {
  .bt-bar { padding: 8px 8px 8px 12px; gap: 6px; }
  .bt-lights, .bt-file em { display: none; }
  .bt-btn, .bt-toggle { padding: 6px 10px; font-size: 11px; gap: 6px; }
  .bt-knob { width: 22px; height: 12px; }
  .bt-knob::after { width: 8px; height: 8px; left: 12px; }
}
