/* Xenogrid — black field on a 64px grid; white type, one cyan accent.
   Layout: 1280px column, mono labels as instrument readouts, Syne for display. */
:root {
  --bg: #050505;
  --surface: #0c0c0c;
  --fg: #f4f4f4;
  --muted: #b5b5b5;
  --dim: #8c8c8c;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --grid: rgba(255, 255, 255, 0.045);
  --grid-hot: rgba(46, 196, 239, 0.32);
  --accent: #2ec4ef;
  --on-accent: #050505;
  --display: 'Syne', 'Arial Black', system-ui, sans-serif;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter-x: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap {
  max-width: 1280px; margin-inline: auto;
  padding-left: max(var(--gutter-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter-x), env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(72px, 9vw, 128px); }
.band { border-top: 1px solid var(--line-soft); }
.band-b { border-bottom: 1px solid var(--line-soft); }
.stack { display: flex; flex-direction: column; gap: 28px; }

.grid-bg {
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}
/* accent grid that follows the cursor */
.grid-bg.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-hot) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-hot) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 70%);
          mask-image: radial-gradient(circle 260px at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 70%);
  opacity: var(--spot, 0); transition: opacity .4s;
}
.grid-bg > * { position: relative; z-index: 1; }

/* ---------- type ---------- */
.label {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim);
}
.label.accent { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
.hero-grid > .stack { container-type: inline-size; }
/* "engineered." in Syne 800 is ~9.2em wide, so 10.6cqi keeps it inside its column */
.h-hero { font-weight: 800; font-size: clamp(32px, 10.6cqi, 112px); line-height: .92; letter-spacing: -0.015em; }
.h-page { font-weight: 800; font-size: clamp(54px, 9vw, 136px); line-height: .92; }
.h-section { font-weight: 800; font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.h-cta { font-weight: 800; font-size: clamp(44px, 7vw, 108px); line-height: .95; max-width: 14ch; }
.lede { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); max-width: 40ch; }
.accent-text { color: var(--accent); }
p { margin: 0; }

/* hero headline line reveal */
.split-line { display: block; clip-path: inset(-0.1em -100vw 0 -100vw); padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: inline-block; animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.fade-in { animation: fadeUp .9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: color .3s var(--ease), border-color .3s, transform .3s var(--ease);
}
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent::before {
  content: ""; position: absolute; inset: 0; background: var(--fg); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn-accent:hover::before { transform: none; }
.btn > * { position: relative; }
.btn-ghost { border-color: rgba(255,255,255,.25); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 13px; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.link-u {
  text-decoration: none; color: var(--muted); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease), color .3s;
}
.link-u:hover { color: var(--fg); background-size: 100% 1px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  border-bottom: 1px solid transparent; transition: transform .45s var(--ease), border-color .3s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(5,5,5,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.site-header.scrolled { border-bottom-color: var(--line-soft); }
.site-header.hide { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand-mark { width: 34px; height: 34px; color: var(--fg); transition: transform .6s var(--ease), color .3s; }
.brand:hover .brand-mark { transform: rotate(90deg); color: var(--accent); }
.brand span { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: .01em; }
.site-nav { display: flex; align-items: center; gap: 32px; font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--muted); padding-block: 12px; position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--fg); }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"] { color: var(--fg); }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 7px; width: 48px; height: 48px;
    padding: 0 12px; background: transparent; border: 1px solid var(--line); cursor: pointer;
  }
  .menu-toggle i { display: block; height: 1.5px; background: var(--fg); transition: transform .35s var(--ease); }
  .menu-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4.25px) rotate(-45deg); }
  .site-nav {
    position: fixed; left: 0; right: 0; top: calc(84px + env(safe-area-inset-top, 0px)); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--bg);
    padding: 24px max(var(--gutter-x), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--gutter-x), env(safe-area-inset-left, 0px));
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s .5s;
  }
  .site-nav.open { clip-path: inset(0); visibility: visible; transition: clip-path .5s var(--ease); }
  .site-nav a:not(.btn) { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: 0; text-transform: none; padding-block: 14px; border-bottom: 1px solid var(--line-soft); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 28px; min-height: 56px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 64px; align-items: center; }
.monitor {
  position: relative; aspect-ratio: 1 / 1; max-width: 100%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; perspective: 900px;
}
.monitor .axis-h, .monitor .axis-v { position: absolute; background: var(--line-soft); }
.monitor .axis-h { left: 0; right: 0; top: 50%; height: 1px; }
.monitor .axis-v { top: 0; bottom: 0; left: 50%; width: 1px; }
.monitor .corner { position: absolute; width: 22px; height: 22px; border-color: var(--fg); border-style: solid; opacity: .6; }
.monitor .c-tl { left: 14px; top: 14px; border-width: 1px 0 0 1px; }
.monitor .c-tr { right: 14px; top: 14px; border-width: 1px 1px 0 0; }
.monitor .c-bl { left: 14px; bottom: 14px; border-width: 0 0 1px 1px; }
.monitor .c-br { right: 14px; bottom: 14px; border-width: 0 1px 1px 0; }
.monitor .pixel { position: absolute; right: -6px; top: -6px; width: 12px; height: 12px; background: var(--accent); animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.monitor .readout { position: absolute; bottom: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--dim); font-variant-numeric: tabular-nums; }
.monitor .r-l { left: 46px; } .monitor .r-r { right: 46px; }
.xmark { width: 74%; height: 74%; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.xmark .xg-outline {
  fill: none; stroke: var(--fg); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: draw 2.2s var(--ease) both .2s, outlineOut .8s ease both 1.9s;
}
.xmark .xg-fill { fill: var(--fg); animation: fillIn 1s ease both 1.6s; }
.xmark .xg-shine { mix-blend-mode: multiply; opacity: .55; animation: fillIn 1s ease both 2.2s; }
.xidle {
  width: 74%; height: 74%; display: flex; align-items: center; justify-content: center;
  animation: idleFloat 9s ease-in-out infinite 2.6s; will-change: transform;
}
.xidle .xmark { width: 100%; height: 100%; }
@keyframes idleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-10px) rotate(1.6deg) scale(1.015); }
  50% { transform: translateY(0) rotate(0deg) scale(1); }
  75% { transform: translateY(8px) rotate(-1.6deg) scale(.99); }
}
.monitor::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 62%; height: 62%; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46,196,239,.16), transparent); pointer-events: none;
  animation: halo 9s ease-in-out infinite 2.6s;
}
@keyframes halo { 0%, 100% { opacity: .5; scale: .92; } 50% { opacity: 1; scale: 1.06; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes outlineOut { to { stroke-opacity: 0; } }
@keyframes fillIn { from { opacity: 0; } to { opacity: 1; } }
.scanline {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--accent); opacity: .5; top: 0;
  box-shadow: 0 0 18px var(--accent); animation: scan 5s linear infinite;
}
@keyframes scan { from { top: 0; } to { top: 100%; } }

/* ---------- showreel player ---------- */
.reel {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; border: 1px solid var(--line); overflow: hidden;
  display: block; text-decoration: none; color: var(--fg); background: #000; cursor: pointer;
}
.reel-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .6s, transform 1.2s var(--ease); }
.reel:hover .reel-thumb { opacity: .75; transform: scale(1.03); }
.reel-ui { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.reel-play {
  width: 104px; height: 104px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease); will-change: transform; position: relative;
}
.reel-play::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--accent); opacity: .6;
  animation: ring 2.4s var(--ease) infinite;
}
@keyframes ring { from { transform: scale(.85); opacity: .7; } to { transform: scale(1.45); opacity: 0; } }
.reel-play svg { width: 32px; height: 32px; margin-left: 4px; }
.reel .label { color: var(--fg); }
.reel-tc { position: absolute; top: 16px; left: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; }
.reel-tc .rec { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: blink 1.2s steps(1) infinite; }
.reel-ratio { position: absolute; top: 16px; right: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel video.reel-film { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.reel.playing { cursor: default; }
@media (max-width: 640px) {
  .reel-ui { gap: 12px; padding-top: 18px; }
  .reel-play { width: 64px; height: 64px; }
  .reel-play svg { width: 22px; height: 22px; margin-left: 3px; }
  .reel-tc, .reel-ratio { top: 10px; font-size: 11px; }
  .reel-tc { left: 12px; } .reel-ratio { right: 12px; }
}
.reel-note { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- clients marquee ---------- */
.clients { display: flex; align-items: center; gap: 24px 48px; padding-block: 64px; }
.marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 72px; animation: slide 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); color: #d4d4d4; white-space: nowrap; display: flex; align-items: center; gap: 72px; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; background: var(--accent); display: inline-block; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .clients { flex-direction: column; align-items: flex-start; } .marquee { width: 100%; } }

/* ---------- services ---------- */
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.head-row .lede { max-width: 42ch; }
.services { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.service {
  position: relative; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline;
  padding: 34px 0; border-top: 1px solid var(--line); isolation: isolate;
}
.service::before {
  content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter-x)); background: var(--surface); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.service:hover::before { transform: scaleY(1); }
.service .num { flex: 0 0 64px; font-family: var(--mono); font-size: 14px; color: var(--accent); }
.service h3 { flex: 1 1 320px; font-weight: 700; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; transition: transform .5s var(--ease); }
.service:hover h3 { transform: translateX(12px); }
.service p { flex: 1 1 380px; color: var(--muted); }

/* ---------- work tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 64px 32px; }
.tiles.three { grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 56px 28px; }
.tile { display: flex; flex-direction: column; gap: 20px; text-decoration: none; color: var(--fg); }
.still {
  position: relative; aspect-ratio: 16 / 10; max-width: 100%; border: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.still .ph { font-family: var(--mono); font-size: 13px; letter-spacing: .2em; color: var(--dim); transition: transform .8s var(--ease); }
.still .wm { position: absolute; width: 38%; height: 38%; color: rgba(255,255,255,.05); transition: transform 1s var(--ease), color .5s; }
.still .code { position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--dim); }
.still .view {
  position: absolute; right: 14px; bottom: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent); padding: 8px 12px; transform: translateY(160%); transition: transform .45s var(--ease);
}
.still .corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--accent); opacity: 0; transition: opacity .3s, transform .45s var(--ease); }
.still .c-tl { left: 10px; top: 10px; border-width: 1px 0 0 1px; transform: translate(8px, 8px); }
.still .c-br { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; transform: translate(-8px, -8px); }
.tile:hover .still { border-color: rgba(255,255,255,.35); }
.tile:hover .still .view { transform: none; }
.tile:hover .still .wm { transform: scale(1.15) rotate(8deg); color: rgba(46,196,239,.14); }
.tile:hover .still .corner { opacity: 1; transform: none; }
.tile:hover .still .c-tl { opacity: 0; }
.tile-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; }
.tile-title { font-family: var(--display); font-weight: 700; font-size: 26px; }
.tile-sub { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--dim); }
.tile.is-hidden { display: none; }
.tile.is-in { animation: fadeUp .6s var(--ease) both; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px; padding: 0 18px; cursor: pointer; background: transparent; color: #d4d4d4;
  border: 1px solid rgba(255,255,255,.25); font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip .count { opacity: .55; margin-left: 6px; }

/* ---------- CTA ---------- */
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.email-big { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 34px); color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.copy-btn {
  min-height: 44px; padding: 0 14px; background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; transition: color .3s, border-color .3s;
}
.copy-btn:hover { color: var(--fg); border-color: var(--fg); }
.copy-btn.done { color: var(--accent); border-color: var(--accent); }

/* ---------- studio ---------- */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 0 48px; }
.principles > div { display: flex; flex-direction: column; gap: 14px; padding-block: 28px; border-top: 1px solid var(--line); }
.principles h3 { font-weight: 700; font-size: 28px; }
.principles p { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.steps .bar { height: 2px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.steps .bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--fill, 0)); transform-origin: left; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 250ms); }
.steps.in .bar { --fill: 1; }
.steps .t { font-family: var(--display); font-weight: 700; font-size: 26px; }
.steps p { font-size: 16px; color: var(--muted); }
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tools span {
  font-family: var(--mono); font-size: 14px; letter-spacing: .06em; color: #d4d4d4; border: 1px solid var(--line);
  padding: 10px 14px; transition: border-color .3s, color .3s, background .3s;
}
.tools span:hover { border-color: var(--accent); color: var(--fg); }
.tools-group { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px 32px; align-items: start; padding-block: 22px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .tools-group { grid-template-columns: minmax(0, 1fr); } }
.wide-ph { aspect-ratio: 21 / 9; }

/* ---------- project ---------- */
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding-block: 24px; display: flex; flex-direction: column; gap: 8px; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 0; font-size: 18px; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; }
.cols3 p { color: #d4d4d4; font-size: 18px; line-height: 1.65; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px; }
.compare { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border: 1px solid var(--line); overflow: hidden; user-select: none; touch-action: pan-y; }
.compare .side { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; letter-spacing: .2em; color: var(--dim); }
.compare .side:not(.after) { padding-right: 50%; }
.compare .after { padding-left: 50%; background: #0f0f0f; clip-path: inset(0 0 0 var(--pos, 50%)); color: var(--accent); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--accent); transform: translateX(-1px); }
.compare .handle::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
  background: var(--accent); color: var(--on-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.compare .tag.l { left: 14px; } .compare .tag.r { right: 14px; color: var(--accent); }
.next-link { display: flex; flex-direction: column; gap: 20px; text-decoration: none; color: var(--fg); }
.next-link .big { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 92px); line-height: 1; }
.next-link .arrow { display: inline-block; color: var(--accent); transition: transform .4s var(--ease); }
.next-link:hover .arrow { transform: translateX(14px); }

/* ---------- contact ---------- */
.contact-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact-list > * { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.contact-list .v { font-family: var(--display); font-weight: 700; font-size: 22px; overflow-wrap: anywhere; }
.contact-list a .v { transition: color .3s; }
.contact-list a:hover .v { color: var(--accent); }
.panel { position: relative; border: 1px solid var(--line); background: var(--bg); padding: clamp(24px, 3vw, 40px); }
.panel .pixel { position: absolute; right: -6px; top: -6px; width: 12px; height: 12px; background: var(--accent); }
.form { display: flex; flex-direction: column; gap: 22px; }
.form-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #a3a3a3; }
.input {
  width: 100%; min-height: 52px; padding: 14px 16px; background: #0d0d0d; border: 1px solid rgba(255,255,255,.2);
  color: var(--fg); font: 17px/1.4 var(--body); border-radius: 0; transition: border-color .3s, background .3s;
}
.input:hover { border-color: rgba(255,255,255,.4); }
.input:focus { outline: none; border-color: var(--accent); background: #071219; }
textarea.input { resize: vertical; min-height: 140px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.input[aria-invalid="true"] { border-color: #ff6b5a; }
.err { font-size: 14px; color: #ff8a7a; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { min-height: 58px; width: 100%; }
.form-status { font-size: 15px; color: var(--muted); }
.sent { display: flex; flex-direction: column; gap: 20px; min-height: 420px; justify-content: center; }
.sent svg { width: 56px; height: 56px; color: var(--accent); animation: spinIn .9s var(--ease) both; }
@keyframes spinIn { from { transform: rotate(-180deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 44px calc(44px + env(safe-area-inset-bottom, 0px)); font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--dim); }
.footer-inner .left { display: flex; align-items: center; gap: 12px; }
.footer-inner svg { width: 22px; height: 22px; color: var(--dim); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 4px 28px; text-transform: uppercase; }
.footer-inner nav a { padding-block: 12px; }
.to-top { background: transparent; border: 0; color: var(--dim); font: inherit; letter-spacing: inherit; text-transform: uppercase; cursor: pointer; padding-block: 12px; }
.to-top:hover { color: var(--fg); }

/* ---------- scroll reveal (only for content below the first screen) ---------- */
.js .reveal.pending { opacity: 0; transform: translateY(28px); }
.js .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }

/* ---------- page transition ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--bg); pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.curtain.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .scanline { display: none; }
}

/* ---------- image stills (one source image, many crops + grades) ---------- */
.still.has-shot { isolation: isolate; background: #000; }
.still > .shot, .compare .shot {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: var(--pos, 50% 50%); transform: scale(var(--zoom, 1)); transform-origin: var(--pos, 50% 50%);
  filter: brightness(.86) contrast(1.06); transition: transform 1.4s var(--ease), filter .6s;
}
.still.has-shot::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,5,5,.5), transparent 26%, transparent 62%, rgba(5,5,5,.6));
}
.still.duo .shot { filter: grayscale(1) brightness(.72) contrast(1.25); }
.still.duo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--accent); mix-blend-mode: color; opacity: .75; }
.still.mono .shot { filter: grayscale(1) brightness(.68) contrast(1.3); }
.still.has-shot > :not(.shot) { z-index: 2; }
.still.has-shot .code { color: #d4d4d4; }
.still.has-shot .wm { display: none; }
.tile:hover .still .shot { transform: scale(calc(var(--zoom, 1) * 1.05)); }
.tile:hover .still.mono .shot { filter: grayscale(.2) brightness(.82) contrast(1.15); }

/* ---------- case study ---------- */
.sample-tag {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  border: 1px dashed rgba(46,196,239,.55); padding: 7px 12px;
}
.sample-tag::before { content: ""; width: 7px; height: 7px; background: var(--accent); }
.fig { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.gallery .still { aspect-ratio: 4 / 3; }
.compare .side:has(.shot) { background: #000; }
.compare .raw .shot { filter: grayscale(.8) sepia(.18) contrast(.6) brightness(1.3); }
.compare .after .shot { filter: brightness(.9) contrast(1.08); }
.compare .tag { z-index: 1; background: rgba(5,5,5,.6); padding: 4px 8px; }
.cols3 .lede-sm { color: var(--muted); font-size: 16px; }
.facts.credits { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.credits > div { padding-block: 20px; }
.credits dd { font-size: 17px; }

/* ---------- local video tiles + media viewer ---------- */
.still > video.shot { pointer-events: none; }
.still .vid-badge {
  position: absolute; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: #d4d4d4;
}
.still .vid-badge::before { content: ""; border-left: 9px solid var(--accent); border-block: 6px solid transparent; }
.still.square-src .shot { --pos: 50% 30%; }
.compare.plates .shot { filter: none; }
.studio-film { aspect-ratio: 16 / 9; background: #000; }
.studio-film > video.shot { pointer-events: auto; filter: none; object-fit: contain; }
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(5,5,5,.95);
  display: flex; flex-direction: column; gap: 14px;
  padding: max(16px, env(safe-area-inset-top)) clamp(16px, 3vw, 40px) max(16px, env(safe-area-inset-bottom));
}
.lightbox[hidden] { display: none; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--line); background: #000; }
.lb-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.lb-nav { display: flex; align-items: center; gap: 14px; }
.lb-nav[hidden] { display: none; }
.lightbox button {
  font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg);
  background: transparent; border: 1px solid var(--line); padding: 10px 14px; min-height: 44px; cursor: pointer;
}
.lightbox button:hover, .lightbox button:focus-visible { border-color: var(--accent); color: var(--accent); }
.lb-close { align-self: flex-end; }
body.lb-open { overflow: hidden; }

/* particle version of the hero mark (JS); the SVG stays as the fallback */
.xparticles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.monitor.has-particles .xidle, .monitor.has-particles .scanline { display: none; }
