/* Focus / Flare — see docs/creative-direction.md.
   Logical properties only (RTL add-on); motion tokens mirror §6. */

:root {
  --ink: #0B0A08;
  --ink-2: #151310;
  --bone: #F2EEE6;
  --ash: #8A857C;
  --rec: #FF3B2F;

  --display: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 56px);

  --t-hunt: 120ms;
  --t-lock: 180ms;
  --e-lock: cubic-bezier(.2, 1.4, .3, 1);
  --t-dev: 450ms;
  --e-dev: cubic-bezier(.2, .7, .2, 1);
  --e-frame: cubic-bezier(.7, 0, .2, 1);

  --vfo: 0px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-viewing { overflow: hidden; }
img, video { display: block; max-inline-size: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.hud {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ash);
}
.slot {
  display: inline-block;
  margin: 0;
  padding: .55em .8em;
  border: 1px dashed rgba(242, 238, 230, .28);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ash);
}

/* ---------- Texture ---------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.4 0 0 0 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite;
  transition: opacity .15s;
}
.grain-hit .grain, .is-paused .grain { opacity: .16; }
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-5%, 3%); }
  40%  { transform: translate(4%, -6%); }
  60%  { transform: translate(-3%, 5%); }
  80%  { transform: translate(6%, 2%); }
  100% { transform: translate(0, 0); }
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 89;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, .5));
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- The Frame (Γ) ---------- */

.g {
  position: absolute;
  inline-size: 22px;
  block-size: 22px;
  border: 0 solid var(--bone);
}
.g-tl { inset-block-start: 0; inset-inline-start: 0; border-block-start-width: 1.5px; border-inline-start-width: 1.5px; }
.g-br { inset-block-end: 0; inset-inline-end: 0; border-block-end-width: 1.5px; border-inline-end-width: 1.5px; }

.vf .g {
  position: fixed;
  z-index: 55;
  inline-size: 34px;
  block-size: 34px;
  pointer-events: none;
  opacity: .8;
}
.vf .g-tl { inset-block-start: 10px; inset-inline-start: 10px; transform: translate(var(--vfo), var(--vfo)); }
.vf .g-br { inset-block-end: 10px; inset-inline-end: 10px; transform: translate(calc(-1 * var(--vfo)), calc(-1 * var(--vfo))); }

@keyframes hunt {
  0%   { transform: translate(2px, -2px) scale(1.04); }
  50%  { transform: translate(-2px, 1px) scale(1.02); }
  100% { transform: none; }
}

/* ---------- Intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: var(--ink);
}
.intro-ring, .intro-mark { grid-area: 1 / 1; inline-size: min(40vw, 200px); }
.intro-ring { overflow: visible; }
.intro-ring circle {
  fill: none;
  stroke: var(--bone);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: draw .7s var(--e-dev) forwards;
}
.intro-mark { border-radius: 50%; opacity: 0; animation: mark .35s var(--e-dev) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes mark { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

main, .top-wrap { transition: filter .5s ease-out; }
.is-intro main, .is-intro .top-wrap { filter: brightness(0); }

/* ---------- Header + HUD ---------- */

.top-wrap {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 60;
  padding-block-end: 26px;
  background: linear-gradient(rgba(11, 10, 8, .92) 45%, transparent);
  transition: filter .5s ease-out, background .3s, padding .3s;
}
.is-scrolled .top-wrap {
  padding-block-end: 12px;
  background: rgba(11, 10, 8, .8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
/* Scroll progress: a REC-red hairline under the HUD. */
.top-wrap::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: calc(var(--sp, 0) * 100%);
  block-size: 1px;
  background: var(--rec);
  opacity: 0;
  transition: opacity .3s;
}
.is-scrolled .top-wrap::after { opacity: 1; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad) 0;
}
.brand img { inline-size: 44px; block-size: 44px; border-radius: 50%; }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav a {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ash);
  transition: color .2s;
}
.nav a:hover, .nav a[aria-current] { color: var(--bone); }
.nav a[aria-current]::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: -7px;
  block-size: 2px;
  background: var(--rec);
}
.wa {
  padding: 10px 16px;
  border: 1px solid var(--bone);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.wa:hover { background: var(--bone); color: var(--ink); }

.hud-bar {
  display: flex;
  gap: 22px;
  padding: 12px var(--pad) 0;
  font-size: 10.5px;
}
.hud-bar .rec { display: inline-flex; align-items: center; gap: 7px; color: var(--rec); }
.hud-bar [data-timecode] { color: var(--bone); font-variant-numeric: tabular-nums; }
.hud-bar > span { white-space: nowrap; }
.hud-bar .proto { margin-inline-start: auto; color: rgba(255, 59, 47, .85); }
.proto .short { display: none; }

/* Section heads: label left, index right, hairline under. */
.sec-h { display: flex; justify-content: space-between; gap: 16px; padding-block-end: 12px; border-block-end: 1px solid rgba(242, 238, 230, .12); }
.sec-n { color: rgba(138, 133, 124, .7); }

/* ---------- Hero + reel strip ---------- */

.hero { padding-block-start: clamp(112px, 14vh, 150px); }
.hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-inline: var(--pad);
}
.title {
  flex-basis: 100%;
  margin: 0;
  font-size: clamp(88px, 19vw, 300px);
  font-weight: 850;
  font-stretch: 62%;
  line-height: .78;
  letter-spacing: -.02em;
  text-transform: uppercase;
  transition: font-stretch 1.2s var(--e-dev);
}
.title.is-wide { font-stretch: 112%; }

/* The page title rides over the reel strip as an inverting outline: legible on dark and on footage, never a solid block over the work. */
.strip .title {
  position: absolute;
  inset-block-start: calc(14px + var(--sh) / 2);
  inset-inline: 0;
  z-index: 150;
  mix-blend-mode: difference;
  font-size: clamp(120px, 27vw, 460px);
  line-height: .8;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px var(--bone);
  transform: translateY(-50%);
  pointer-events: none;
}
.strip-track { z-index: 1; }
.strip {
  --sh: clamp(300px, calc(100svh - 330px), 680px);
  position: relative;
  isolation: isolate; /* keeps the title's blend and the frame's z-index inside the strip */
  block-size: calc(var(--sh) + 120px);
  margin-block-start: 20px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  outline: none;
}
.strip:active { cursor: grabbing; }
.strip:focus-visible .strip-frame .g { border-color: var(--rec); }
.strip-track { position: absolute; inset-inline: 0; inset-block-start: 14px; block-size: var(--sh); }
.card { position: absolute; inset-block-start: 0; inset-inline-start: 50%; will-change: transform; }
.card-clip {
  inline-size: 100%;
  block-size: 100%;
  overflow: hidden;
  background: var(--ink-2);
  filter: brightness(calc(.28 + .72 * var(--ex, 1))) saturate(var(--ex, 1)) blur(var(--bl, 0px));
}
.card-clip img, .card-clip video, .t-clip img, .t-clip video, .frame-media img, .frame-media video {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.is-logo { display: grid; place-items: center; background: var(--ink-2); }
.is-logo img { object-fit: contain; padding: 20%; }

.strip-frame {
  position: absolute;
  inset-block-start: calc(14px + var(--sh) / 2);
  inset-inline-start: 50%;
  z-index: 200;
  inline-size: calc(var(--cw, 300px) + 28px);
  block-size: calc(var(--sh) + 28px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.strip-frame .g { inline-size: 30px; block-size: 30px; transition: transform var(--t-lock) var(--e-lock); }
.strip-frame.is-hunt { animation: hunt var(--t-hunt) steps(1) 1; }
.strip-frame.is-hunt .g-tl { transform: translate(-10px, -10px); }
.strip-frame.is-hunt .g-br { transform: translate(10px, 10px); }
.sf-rec {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
/* REC tally LED: one clock for the whole page (app.js toggles html.led-off), a lamp-fast rise and fall, and a glow. */
.led, .sf-rec::before, .t-rec::before, .cta-dot, .v-hud-tl::before {
  content: '';
  display: inline-block;
  flex: none;
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #FFD9D4 0 14%, var(--rec) 50%, #B3150D 100%);
  box-shadow: 0 0 4px 1px rgba(255, 59, 47, .9), 0 0 13px 3px rgba(255, 59, 47, .4);
  transition: opacity 60ms linear, box-shadow 60ms linear;
}
.led-off .led, .led-off .sf-rec::before, .led-off .t-rec::before, .led-off .cta-dot, .led-off .v-hud-tl::before,
.is-standby .hud-bar .led { opacity: .18; box-shadow: none; }
.strip-hud {
  position: absolute;
  inset-block-start: calc(var(--sh) + 44px);
  inset-inline: var(--pad);
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.strip-name {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 850;
  font-stretch: 75%;
  line-height: 1;
  text-transform: uppercase;
  transition: font-stretch var(--t-dev) var(--e-dev);
}
.strip-name.is-wide { font-stretch: 125%; }

/* ---------- Work grid ---------- */

.work { position: relative; padding: clamp(64px, 10vh, 120px) var(--pad) 96px; }
.work::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--lx, -999px) var(--ly, -999px), rgba(242, 238, 230, .07), transparent 70%);
}
.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-block-end: 28px;
}
.dial { position: relative; display: flex; flex-wrap: wrap; gap: 0 2px; }
.chip {
  padding: 10px 12px 12px;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ash);
  cursor: pointer;
  transition: color .2s;
}
.chip:hover, .chip[aria-pressed="true"] { color: var(--bone); }
.chip:focus-visible { outline: 1px solid var(--bone); outline-offset: -1px; }
.dial-tick {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 0;
  block-size: 2px;
  background: var(--rec);
  transition: inset-inline-start .35s var(--e-dev), inset-block-start .35s var(--e-dev), inline-size .35s var(--e-dev);
}

.grid {
  --cols: 3;
  --gap: clamp(10px, 1.6vw, 22px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: 8px;
  gap: var(--gap);
  align-items: start;
}
@media (hover: hover) and (pointer: fine) {
  .grid, .grid * { cursor: none; }
}
.beam {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 5;
  block-size: 1px;
  background: var(--bone);
  box-shadow: 0 0 18px 3px rgba(242, 238, 230, .55), 0 0 70px 12px rgba(242, 238, 230, .14);
  opacity: 0;
  pointer-events: none;
}

.tile {
  --x: 0;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  appearance: none;
  transition: opacity .35s var(--e-dev), transform .35s var(--e-dev);
}
.tile { --x: .2; }
.touch .tile { --x: .3; }
.t-await {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-start: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ash);
}
.tile[hidden] { display: none; }
.tile:focus-visible { outline: none; }
.tile:focus-visible .af { opacity: 1; inset: 10px; }
.t-inner, .t-label { display: block; }
.t-media {
  position: relative;
  display: block;
  aspect-ratio: var(--ratio);
  transition: transform .3s var(--e-dev);
}
.t-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ink-2);
  filter: brightness(calc(.36 + .64 * var(--x))) saturate(calc(.15 + .85 * var(--x))) contrast(calc(.85 + .15 * var(--x)));
  transition: filter .35s ease-out;
}
.is-locked .t-clip { transition-duration: var(--t-dev); }
.t-clip > * { transition: transform .6s var(--e-dev); }
.is-locked .t-clip > * { transform: scale(1.03); }
.af {
  position: absolute;
  inset: -14px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: inset var(--t-lock) var(--e-lock), opacity .1s;
}
.is-hunt .af { opacity: 1; animation: hunt var(--t-hunt) steps(1) 1; }
.is-locked .af { opacity: 1; inset: 10px; }
.t-rec {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-end: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity .2s;
}
.is-locked .t-rec { opacity: 1; }
.t-label { padding-block: 14px 4px; }
.t-name {
  display: block;
  overflow: hidden;
  font-size: clamp(18px, 2.1vw, 30px);
  font-weight: 850;
  font-stretch: 75%;
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
  transition: font-stretch var(--t-dev) var(--e-dev);
}
/* Long names wrap instead of clipping. On touch, tiles lock while scrolling, so the name keeps its width there. */
.is-locked .t-name { font-stretch: 125%; }
.touch .is-locked .t-name { font-stretch: 75%; }
.t-hud {
  display: block;
  min-block-size: 1.5em;
  margin-block-start: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ash);
}
/* Client index: marks where we have them, names otherwise. */
.index { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin-block-end: 28px; }
.cl {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ash);
  cursor: pointer;
  transition: color .2s, font-stretch var(--t-dev) var(--e-dev);
}
/* Names only; the picked client's name gives way to its mark (both share one cell, so the row doesn't jump). */
.cl { display: grid; justify-items: start; }
.cl > * { grid-area: 1 / 1; }
.cl-name { transition: opacity .2s; }
.cl-mark { display: block; block-size: 0; inline-size: auto; max-inline-size: 120px; object-fit: contain; opacity: 0; }
.cl:hover, .cl[aria-pressed="true"] { color: var(--bone); font-stretch: 100%; }
.cl.has-mark[aria-pressed="true"] .cl-name { opacity: 0; }
.cl[aria-pressed="true"] .cl-mark { block-size: 28px; opacity: 1; animation: cl-mark .5s var(--e-dev); }
@keyframes cl-mark { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
.cl { position: relative; }
.cl::before { content: ''; position: absolute; inset-block: 5px; inset-inline-start: 0; inline-size: 2px; background: var(--rec); opacity: 0; transition: opacity .2s; }
.cl[aria-pressed="true"]::before { opacity: 1; }
.cl:focus-visible { outline: 1px solid var(--bone); outline-offset: -1px; }

/* Work card: a short walkthrough of the picked service or client (app.js renders it; hidden on All). */
/* Lit like an object on set: a warm key from the top (or the pointer, via --cx/--cy from app.js), a lit top
   edge, a faint red bounce from below and a soft shadow that falls away from the light (--sx/--sy). */
.w-card {
  --cx: 30%;
  --cy: -10%;
  --sx: 0px;
  --sy: 22px;
  position: relative;
  isolation: isolate;
  max-inline-size: 420px;
  margin-block-end: 28px;
  padding: 22px 22px 24px;
  border: 1px solid rgba(242, 238, 230, .1);
  border-block-start-color: rgba(242, 238, 230, .24);
  background:
    radial-gradient(360px circle at var(--cx) var(--cy), rgba(255, 236, 214, .17), rgba(255, 236, 214, .04) 45%, transparent 70%),
    radial-gradient(120% 50% at 50% 118%, rgba(255, 59, 47, .16), transparent 70%),
    linear-gradient(165deg, rgba(40, 36, 31, .9), rgba(17, 15, 13, .88) 55%, rgba(11, 10, 8, .92));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 228, .1),
    inset 0 -1px 0 rgba(0, 0, 0, .5),
    0 1px 2px rgba(0, 0, 0, .6),
    calc(var(--sx) * .4) calc(var(--sy) * .5) 24px -10px rgba(0, 0, 0, .75),
    var(--sx) var(--sy) 70px -18px rgba(0, 0, 0, .85);
  transition: box-shadow .5s var(--e-dev), transform .5s var(--e-dev);
}
/* A sheen that crosses the card when it changes (app.js toggles .is-lit). */
.w-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 220, .07) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 120% 0;
  pointer-events: none;
}
.w-card.is-lit::after { animation: wc-sheen 1.1s var(--e-dev); }
@keyframes wc-sheen { from { background-position: 120% 0; } to { background-position: -30% 0; } }
.w-card[hidden] { display: none; }
.w-card .af { opacity: 1; inset: -6px; }
.wc-kick { color: var(--rec); }
.wc-title {
  margin: 10px 0 14px;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 850;
  font-stretch: 75%;
  line-height: .95;
  text-transform: uppercase;
  color: var(--bone);
}
.wc-line { margin: 0 0 18px; font-size: 15px; line-height: 1.45; color: var(--bone); }
.wc-sub { margin-block-end: 10px; }
.wc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wc-tag, .wc-play {
  padding: 7px 10px;
  border: 1px solid rgba(242, 238, 230, .2);
  background: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ash);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.wc-tag:hover, .wc-tag:focus-visible, .wc-play:hover, .wc-play:focus-visible { border-color: var(--bone); color: var(--bone); outline: none; }
.wc-play { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 18px; border-color: var(--rec); color: var(--bone); }
.wc-play-i { inline-size: 0; block-size: 0; border-block: 5px solid transparent; border-inline-start: 8px solid var(--rec); }
.wc-more { margin-block: 0 22px; }
.wc-more-i { font-size: 15px; line-height: 0; color: var(--rec); }

/* Service breakdown: a modal sheet over the spiral (app.js builds it from SERVICE_SHEETS). */
.sheet {
  inline-size: min(1120px, calc(100vw - 32px));
  max-inline-size: none;
  max-block-size: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(242, 238, 230, .16);
  background: var(--ink-2);
  color: var(--bone);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.sheet::backdrop { background: rgba(11, 10, 8, .86); backdrop-filter: blur(8px); }
.sh-in { position: relative; padding: clamp(24px, 4vw, 56px); }
.sh-close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid rgba(242, 238, 230, .3);
  background: none;
  color: var(--bone);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.sh-close:hover, .sh-close:focus-visible { border-color: var(--bone); outline: none; }
.sh-head { max-inline-size: 760px; }
.sh-title {
  margin: 10px 0 18px;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 850;
  font-stretch: 75%;
  line-height: .9;
  text-transform: uppercase;
}
.sh-intro { margin: 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; }
.sh-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr .8fr;
  gap: clamp(20px, 3vw, 44px);
  margin-block-start: clamp(28px, 4vw, 48px);
  padding-block-start: clamp(20px, 3vw, 32px);
  border-block-start: 1px solid rgba(242, 238, 230, .14);
}
.sh-h { margin: 0 0 14px; color: var(--ash); }
.sh-list { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.45; }
.sh-list li { padding-block: 9px; border-block-end: 1px solid rgba(242, 238, 230, .08); }
.sh-get li::before { content: '+'; display: inline-block; inline-size: 18px; color: var(--rec); font-family: var(--mono); }
.sh-steps { counter-reset: step; }
.sh-steps li { display: grid; grid-template-columns: 34px 1fr; counter-increment: step; }
.sh-steps li::before { content: counter(step, decimal-leading-zero); color: var(--rec); font-family: var(--mono); font-size: 12px; line-height: 1.9; }
.sh-team li { color: var(--ash); }
.sh-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px 32px;
  margin-block-start: clamp(28px, 4vw, 44px);
}
.sh-foot .wc-sub, .sh-foot .wc-tags { grid-column: 1 / -1; }
.sh-wa { justify-self: start; margin: 0; padding: 12px 16px; text-decoration: none; }
.sh-wa .cta-dot { inline-size: 7px; block-size: 7px; }
.sh-nav { display: flex; gap: 6px; }
.sh-step { padding: 10px 12px; border: 1px solid rgba(242, 238, 230, .2); background: none; color: var(--ash); cursor: pointer; }
.sh-step:hover, .sh-step:focus-visible { border-color: var(--bone); color: var(--bone); outline: none; }
@media (max-width: 860px) {
  .sheet { inline-size: 100vw; max-block-size: 100dvh; block-size: 100dvh; border: 0; }
  .sh-in { padding: 64px 16px 24px; }
  .sh-grid, .sh-foot { grid-template-columns: minmax(0, 1fr); }
  .sh-nav { justify-content: space-between; }
  .sh-step { flex: 1; }
}

.is-out { opacity: 0; transform: scale(.94); }
.is-out .t-clip { filter: brightness(.08) saturate(0); }
.is-dev { --x: 1.3; }

/* ---------- Cursor + flare ---------- */

.cursor {
  --cs: 22px;
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 97;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity .2s;
}
.cursor-on .cursor { opacity: 1; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor i {
  position: absolute;
  inline-size: var(--cs);
  block-size: var(--cs);
  margin: calc(var(--cs) / -2);
  border: 1px solid #fff;
  border-radius: 50%;
  transition: inline-size var(--t-lock) var(--e-lock), block-size var(--t-lock) var(--e-lock), margin var(--t-lock) var(--e-lock), background .2s, border-color .2s, scale .15s;
}
.cursor b {
  position: absolute;
  translate: -50% -50%;
  font: 500 9px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
}
.cursor[data-s="link"] { --cs: 12px; }
.cursor[data-s="link"] i { background: #fff; }
.cursor[data-s="view"] { --cs: 78px; }
.cursor[data-s="drag"] { --cs: 66px; }
.cursor[data-s="hold"] { --cs: 70px; }
.cursor[data-s="view"] b, .cursor[data-s="drag"] b, .cursor[data-s="hold"] b { opacity: 1; }
/* Shutter half-press. */
.cursor.is-press i { scale: .72; }
.cursor.is-lock { mix-blend-mode: normal; }
.cursor.is-lock i { border-color: var(--rec); }
.cursor.is-lock b { color: var(--bone); }

.shutter { position: fixed; inset: 0; z-index: 98; background: #fff; opacity: 0; pointer-events: none; }
.shutter.is-fire { animation: shutter .16s steps(2) 1; }
@keyframes shutter { 0% { opacity: .1; } 100% { opacity: 0; } }

.flare {
  position: fixed;
  z-index: 96;
  inline-size: 380px;
  block-size: 380px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0 3%, rgba(255, 255, 255, .42) 12%, rgba(255, 45, 85, .14) 30%, rgba(45, 226, 255, .1) 42%, transparent 64%);
}
.flare::after {
  content: '';
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: -60%;
  inline-size: 220%;
  block-size: 2px;
  margin-block-start: -1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65) 44%, #fff 50%, rgba(255, 255, 255, .65) 56%, transparent);
}

/* ---------- Story viewer ---------- */

.viewer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.viewer[hidden] { display: none; }
.viewer-bg { position: absolute; inset: 0; background: rgba(11, 10, 8, .95); backdrop-filter: blur(10px); }
.viewer-frame { position: fixed; inset: 16px; z-index: 3; pointer-events: none; }
.viewer-frame .g { inline-size: 40px; block-size: 40px; }
.panel {
  position: relative;
  z-index: 2;
  block-size: min(92dvh, 920px);
  aspect-ratio: 9 / 16;
  max-inline-size: 100vw;
  overflow: hidden;
  background: var(--ink-2);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.segs { position: absolute; inset-block-start: 12px; inset-inline: 12px; z-index: 5; display: flex; gap: 4px; }
.seg { flex: 1; block-size: 2px; overflow: hidden; background: rgba(242, 238, 230, .25); }
.seg b { display: block; block-size: 100%; background: var(--rec); transform: scaleX(0); transform-origin: 0 50%; }
.frames { position: absolute; inset: 0; transition: filter .2s; }
.is-paused .frames { filter: brightness(.72); }
.frame {
  position: absolute;
  inset: 0;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 16px;
  padding: 80px 26px 56px;
  opacity: 0;
  filter: blur(8px);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), filter .7s cubic-bezier(.4, 0, .2, 1);
}
/* Frames dissolve: the incoming shot fades up over the outgoing one and settles from a slight push-in. */
.frame.is-on { z-index: 1; opacity: 1; filter: none; }
.frame-media { padding: 0; }
.frame-media > div { position: absolute; inset: 0; transform: scale(1.06); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.frame-media.is-on > div { transform: none; }
.frames-ghost { pointer-events: none; z-index: 2; }
.ft-bg { position: absolute; inset: 0; z-index: -1; filter: brightness(.32) saturate(.5); }
.ft-bg img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.ft-name {
  margin: 0;
  font-size: clamp(44px, 8.5vh, 92px);
  font-weight: 850;
  font-stretch: 62%;
  line-height: .86;
  text-transform: uppercase;
  transition: font-stretch .9s var(--e-dev) .1s;
}
.is-on .ft-name { font-stretch: 125%; }
.frame-did .slot { font-size: 13px; }
.fd-h {
  margin: 0;
  font-size: clamp(36px, 6vh, 64px);
  font-weight: 850;
  font-stretch: 75%;
  line-height: .9;
  text-transform: uppercase;
}
.fd-n { font-family: var(--mono); font-size: 13px; color: var(--rec); }
.frame-end { justify-content: center; }
.end-ig { font-size: 22px; font-weight: 800; text-transform: uppercase; text-decoration: none; border-block-end: 1px solid; }
.end-cs { align-self: stretch; padding: 14px 16px; border: 1px dashed rgba(242, 238, 230, .3); }
.end-next {
  padding: 12px 16px;
  border: 1px solid var(--bone);
  background: none;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.end-next:hover { background: var(--bone); color: var(--ink); }
.scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .55), transparent 18%, transparent 78%, rgba(0, 0, 0, .55));
}
.v-hud {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.v-hud-tl { inset-block-start: 28px; inset-inline-start: 16px; }
.v-hud-br { inset-block-end: 16px; inset-inline-end: 16px; }
.v-paused {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.is-paused .v-paused { opacity: 1; }
.v-close {
  position: fixed;
  z-index: 6;
  inset-block-start: 26px;
  inset-inline-end: 26px;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid rgba(242, 238, 230, .5);
  background: rgba(11, 10, 8, .4);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.v-nav {
  position: fixed;
  z-index: 6;
  inset-block-start: 50%;
  padding: 14px;
  border: 0;
  background: none;
  cursor: pointer;
  transition: color .2s;
}
.v-nav:hover { color: var(--bone); }
.v-prev { inset-inline-start: 28px; }
.v-next { inset-inline-end: 28px; }

/* ---------- Close / footer ---------- */

.close {
  position: relative;
  display: grid;
  place-items: center;
  min-block-size: 92vh;
  padding: 120px var(--pad) 96px;
  overflow: hidden;
}
.big-gamma { position: absolute; inset: 10% var(--pad) 12%; pointer-events: none; }
.big-gamma i {
  position: absolute;
  inline-size: 24%;
  block-size: 36%;
  border: 0 solid var(--bone);
  transition: clip-path 1.4s var(--e-dev);
}
/* Each Γ draws outward from its corner. */
.bg-tl { inset-block-start: 0; inset-inline-start: 0; border-block-start-width: 1.5px; border-inline-start-width: 1.5px; clip-path: inset(0 100% 100% 0); }
.bg-br { inset-block-end: 0; inset-inline-end: 0; border-block-end-width: 1.5px; border-inline-end-width: 1.5px; clip-path: inset(100% 0 0 100%); }
.is-drawn .big-gamma i { clip-path: inset(0); }
.close-inner { position: relative; display: grid; justify-items: center; gap: 22px; text-align: center; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  font-size: clamp(56px, 10vw, 150px);
  font-weight: 850;
  font-stretch: 75%;
  line-height: .9;
  text-transform: uppercase;
  text-decoration: none;
  transition: font-stretch var(--t-dev) var(--e-dev);
}
.cta:hover, .cta:focus-visible { font-stretch: 125%; }
.cta-dot { inline-size: .14em; block-size: .14em; }
.foot {
  position: absolute;
  inset-inline: var(--pad);
  inset-block-end: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--bone); }

/* ---------- Home: hero sequence (SC 01 · Rolling) ---------- */

.h-seq { position: relative; block-size: 320vh; }
.h-stage { position: sticky; inset-block-start: 0; block-size: 100svh; overflow: hidden; isolation: isolate; }
.h-video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
/* GAMMA as a window: white letters multiply over the reel, ink everywhere else. */
.h-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
  mix-blend-mode: multiply;
}
.h-word {
  display: flex;
  font-size: 18.5vw;
  font-weight: 900;
  font-stretch: 125%;
  line-height: .8;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: #fff;
}
.h-scrim {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, rgba(11, 10, 8, .9), rgba(11, 10, 8, .6) 40%, transparent 70%), linear-gradient(rgba(11, 10, 8, .35), transparent 30%, transparent 45%, rgba(11, 10, 8, .9));
}
.h-af { position: absolute; inset: 22px; opacity: 0; scale: 1.06; transition: opacity .1s, scale var(--t-lock) var(--e-lock); }
.h-af .g { inline-size: 42px; block-size: 42px; }
.is-locked .h-af { opacity: 1; scale: 1; }
.h-copy {
  position: absolute;
  inset-inline-start: var(--pad);
  inset-block-end: clamp(56px, 10vh, 110px);
  display: grid;
  justify-items: start;
  gap: 16px;
  max-inline-size: min(92vw, 1000px);
}
.seq-on .h-copy > * { opacity: 0; }
html:not(.seq-on) .h-seq { block-size: auto; }
html:not(.seq-on) .h-mask { display: none; }
html:not(.seq-on) .h-scrim { opacity: 1; }
.h-title {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 128px);
  font-weight: 850;
  font-stretch: 62%;
  white-space: nowrap;
  line-height: .86;
  letter-spacing: -.01em;
  text-transform: uppercase;
  transition: font-stretch 1.2s var(--e-dev);
}
.h-title.is-wide { font-stretch: 88%; }
.h-ar {
  margin: 0;
  font-family: 'Almarai', var(--display);
  font-size: min(64px, 11vw); /* 64px, shrinking only where a phone is too narrow for it */
  font-weight: 800;
  line-height: 1.25;
  color: var(--bone);
}
.h-sub { max-inline-size: 38ch; margin: 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: rgba(242, 238, 230, .8); }
.hero-head .h-sub { font-size: 15px; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-block-start: 8px;
  padding: 18px 26px;
  background: var(--bone);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: font-stretch var(--t-dev) var(--e-dev), background .2s, color .2s;
}
.btn-wa:hover { font-stretch: 125%; background: #fff; }
.btn-wa .cta-dot { inline-size: 9px; block-size: 9px; }
.h-scroll {
  position: absolute;
  inset-block-end: 28px;
  inset-inline-start: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
}
html:not(.seq-on) .h-scroll { display: none; }
.h-scroll span { position: relative; inline-size: 64px; block-size: 1px; overflow: hidden; background: rgba(242, 238, 230, .2); }
.h-scroll span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bone);
  animation: scan 1.8s var(--e-frame) infinite;
}
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.wd { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; transition: font-stretch .3s var(--e-dev); }
.proof-label { padding-inline: var(--pad); margin-block-end: 8px; }
.svc-line {
  max-inline-size: 46ch;
  margin: 0 0 26px calc(3ch + clamp(14px, 3vw, 40px) + 8px);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
  color: rgba(242, 238, 230, .78);
}
.f-intro { max-inline-size: 40ch; margin: 20px 0 0; font-size: clamp(17px, 1.5vw, 22px); color: rgba(242, 238, 230, .72); }
.c-line {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 104px);
  font-weight: 850;
  font-stretch: 75%;
  line-height: .9;
  text-transform: uppercase;
  transition: font-stretch 1.6s cubic-bezier(.65, 0, .35, 1);
}
.is-drawn .c-line { font-stretch: 100%; }
/* While the line draws, letters follow it directly; their own hover easing would lag each frame and jitter. */
.c-line:not(.is-set) .ch { transition: none; }

/* ---------- Home: proof strip ---------- */

.proof { padding: 40px 0 clamp(72px, 12vh, 140px); border-block: 1px solid rgba(242, 238, 230, .08); }
/* --fw is the frame width; logos are sized in fractions of it (app.js sets --w and --h per logo). */
.marquee {
  --fw: clamp(168px, 15.5vw, 228px);
  --fh: calc(var(--fw) * .66);
  position: relative;
  block-size: calc(var(--fh) + 56px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  /* Sideways drags run the strip (app.js); vertical swipes still scroll the page. */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.marquee.is-drag { cursor: grabbing; }
.mq-item {
  --ex: 0;
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  inline-size: calc(var(--w, .5) * var(--fw));
  block-size: calc(var(--h, .36) * var(--fw));
}
/* The marks are baked in bone (one ink for every brand), so exposure is brightness, not colour. */
.mq-item img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  opacity: calc(.26 + .74 * var(--ex));
}
.mq-frame {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  inline-size: var(--fw);
  block-size: var(--fh);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-block-start: 56px;
  padding-inline: var(--pad);
}
.counters[hidden] { display: none; }
.ctr { display: grid; gap: 10px; padding-block-start: 18px; border-block-start: 1px solid rgba(242, 238, 230, .14); }
.ctr-v {
  font-family: var(--mono);
  font-size: clamp(44px, 6vw, 92px);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.ctr-note { margin-block-start: 18px; padding-inline: var(--pad); }

/* ---------- Home: recent work ---------- */

.recent { padding-block-start: clamp(48px, 7vh, 80px); }
.proof { padding-block-end: clamp(48px, 7vh, 80px); }
.more {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-block-end: 1px solid var(--rec);
  padding-block-end: 4px;
  transition: font-stretch var(--t-dev) var(--e-dev);
}
.more:hover { font-stretch: 125%; }

/* ---------- Home: services ---------- */

.services { padding: clamp(56px, 9vh, 110px) var(--pad); }
.svc-list { margin: 28px 0 0; padding: 0; list-style: none; border-block-end: 1px solid rgba(242, 238, 230, .12); }
.svc { border-block-start: 1px solid rgba(242, 238, 230, .12); }
.svc-btn {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 3vw, 40px);
  inline-size: 100%;
  padding: 18px 8px;
  border: 0;
  background: none;
  text-align: start;
  cursor: pointer;
}
.svc-i { flex: none; inline-size: 3ch; }
.svc-name {
  flex: 1;
  min-inline-size: 0;
  font-size: clamp(44px, 8.5vw, 132px);
  font-weight: 850;
  font-stretch: 70%;
  line-height: .9;
  text-transform: uppercase;
  color: var(--ash);
  transition: font-stretch var(--t-dev) var(--e-dev), color .25s;
}
.svc-plus { font-family: var(--mono); font-size: 22px; color: var(--ash); transition: transform .3s var(--e-dev), color .2s; }
.svc-btn .af { inset: -6px; }
.svc-btn:hover .svc-name, .svc-btn:focus-visible .svc-name, .svc-btn[aria-expanded="true"] .svc-name { font-stretch: 125%; color: var(--bone); }
.svc-btn:hover .af, .svc-btn:focus-visible .af, .svc-btn[aria-expanded="true"] .af { opacity: 1; inset: 4px; }
.svc-btn:focus-visible { outline: none; }
.svc-btn[aria-expanded="true"] .svc-plus { transform: rotate(45deg); color: var(--rec); }
.svc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--e-dev);
}
.svc-btn[aria-expanded="true"] + .svc-body { grid-template-rows: 1fr; }
.svc-body > div { overflow: hidden; }
.svc-body .slot { margin-inline-start: calc(3ch + clamp(14px, 3vw, 40px) + 8px); margin-block-end: 24px; }

/* Hover preview: a framed shot from a client with that service follows the cursor. */
.svc-film { position: relative; inline-size: min(240px, 60vw); aspect-ratio: 9 / 16; margin-block-end: 24px; margin-inline-start: calc(3ch + clamp(14px, 3vw, 40px) + 8px); }
.svc-preview {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 70;
  inline-size: 200px;
  aspect-ratio: 9 / 16;
  pointer-events: none;
  opacity: 0;
  scale: .85;
  transition: opacity .2s, scale .35s var(--e-lock);
}
.svc-preview.is-on { opacity: 1; scale: 1; }
.svc-preview .clip { position: absolute; inset: 0; overflow: hidden; background: var(--ink-2); }
.svc-preview img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.svc-preview .af { opacity: 1; inset: -10px; }
.svc-preview .t-rec { opacity: 1; inset-block-start: 10px; inset-inline-end: 10px; }

/* ---------- Home: founders ---------- */

.founders { padding: clamp(56px, 9vh, 110px) var(--pad); }
/* ---------- Contact block ---------- */

.c-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 28px;
  inline-size: min(100%, 880px);
  margin-block-start: 34px;
  padding-block-start: 26px;
  border-block-start: 1px solid rgba(242, 238, 230, .14);
  text-align: start;
}
.c-grid > div, .c-map { display: grid; gap: 10px; align-content: start; }
.c-grid p { margin: 0; }
.c-v { font-size: 15px; font-weight: 600; color: var(--bone); text-decoration: none; transition: color .2s; }
a.c-v, .c-map .c-v { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
a.c-v:hover, .c-map:hover .c-v { color: #fff; text-decoration-color: var(--rec); }
.c-map { text-decoration: none; }

/* Letters stretch toward the cursor; lines stay put instead of re-wrapping. */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .c-line { white-space: nowrap; }
}

/* ---------- Journey: scene timeline, slate, standby ---------- */

.rail {
  position: fixed;
  inset-block: 150px 70px;
  inset-inline-end: 22px;
  z-index: 56;
  inline-size: 1px;
  background: rgba(242, 238, 230, .14);
}
.rail-head {
  position: absolute;
  inset-block-start: calc(var(--sp, 0) * 100%);
  inset-inline-start: -6px;
  inline-size: 13px;
  block-size: 1px;
  background: var(--rec);
}
.rail-label {
  position: absolute;
  inset-inline-end: 22px;
  translate: 0 -50%;
  color: var(--bone);
  font-size: 9.5px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .3s;
}
/* The scene label rides the playhead only while you're moving through the page. */
.is-scrolling .rail-label { opacity: 1; }
.rail-tick {
  position: absolute;
  inset-inline-start: -8px;
  inline-size: 17px;
  block-size: 15px;
  translate: 0 -50%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.rail-tick::before {
  content: '';
  position: absolute;
  inset-block-start: 7px;
  inset-inline-start: 5px;
  inline-size: 7px;
  block-size: 1px;
  background: var(--ash);
  transition: background .2s, inline-size .2s;
}
.rail-tick.is-past::before { background: var(--bone); }
.rail-tick:hover::before, .rail-tick:focus-visible::before { inline-size: 13px; background: var(--bone); }
.rail-tick span {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 26px;
  translate: 0 -50%;
  font-size: 9.5px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
}
.rail-tick:hover span, .rail-tick:focus-visible span { opacity: 1; }
.is-scrolling .rail:hover .rail-label { opacity: 0; }

.sec-l { display: inline-flex; align-items: center; gap: 10px; }
.slate {
  inline-size: 24px;
  block-size: 9px;
  background: repeating-linear-gradient(-45deg, var(--bone) 0 3px, transparent 3px 6px);
  transform-origin: 0 100%;
  rotate: -32deg;
}
.is-clap .slate { animation: clap .32s cubic-bezier(.6, 0, .3, 1.6) forwards; }
@keyframes clap { to { rotate: 0deg; } }

.is-standby .vf .g { animation: standby 2.6s ease-in-out infinite; }
.is-standby .vf .g-br { animation-direction: reverse; }
.is-standby .hud-bar .rec { color: var(--ash); animation: none; }
@keyframes standby { 50% { translate: 8px 8px; } }

/* ---------- Iris (page transitions, story frame blinks) ---------- */

/* Covered until app.js closes the iris; if the script never runs, the page shows after 3s anyway. */
html.is-arriving body { visibility: hidden; animation: arrive-failsafe 0s 3s forwards; }
@keyframes arrive-failsafe { to { visibility: visible; } }
.iris { position: fixed; inset: 0; z-index: 130; pointer-events: none; visibility: hidden; }
.iris svg { display: block; inline-size: 100%; block-size: 100%; }
.iris line { stroke: rgba(242, 238, 230, .22); stroke-width: 1; }
.panel .iris { position: absolute; z-index: 7; }

/* ---------- Voice-note CTA ---------- */

/* The button keeps one size: the waveform always holds its slot, resting flat until you point at it. */
.btn-voice { position: relative; justify-content: center; transition: background .25s, color .25s; }
.btn-voice:hover { font-stretch: 100%; }
.bv-wave { display: inline-flex; align-items: center; gap: 3px; inline-size: 69px; block-size: 18px; overflow: hidden; opacity: .35; transition: opacity .25s; }
.bv-wave i { flex: none; inline-size: 3px; block-size: 2px; background: currentColor; transition: block-size .25s var(--e-dev); }
@keyframes wave { from { block-size: 25%; } to { block-size: 100%; } }
.btn-voice:hover, .btn-voice:focus-visible { background: var(--rec); color: #fff; }
.btn-voice:hover .cta-dot, .btn-voice:focus-visible .cta-dot { background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, .6); }
.btn-voice:hover .bv-wave, .btn-voice:focus-visible .bv-wave { opacity: 1; }
.btn-voice:hover .bv-wave i, .btn-voice:focus-visible .bv-wave i { animation: wave .45s ease-in-out infinite alternate; }
/* Touch screens never hover, and phones need the room: the label fits on one line without the wave. */
@media (hover: none), (max-width: 600px) { .bv-wave { display: none; } }
/* Testimonial placeholders: quiet message-shaped lines until Gamma supplies the quotes. */
.skel { display: grid; gap: 8px; margin: 0; }
.skel i { display: block; block-size: 9px; border-radius: 5px; background: rgba(242, 238, 230, .14); }
.skel i:nth-child(2) { inline-size: 88%; }
.skel i:nth-child(3) { inline-size: 56%; }
.skel-n i { inline-size: 110px; block-size: 8px; }
.fd-l { margin: 0; max-inline-size: 30ch; font-size: 18px; line-height: 1.4; }

/* ---------- WebGL lens (gl.js); the CSS look stays as the fallback ---------- */

.gl-canvas { position: fixed; inset: 0; z-index: 0; inline-size: 100%; block-size: 100%; pointer-events: none; }
.gl-on .t-clip.gl { filter: none; background: transparent; }
.gl-on .t-clip.gl > img, .gl-on .t-clip.gl > video { opacity: 0; }

/* ---------- Scroll scenes (app.js adds .is-reel / .is-stack / .is-fall / .vsl.is-on only when GSAP runs and motion is allowed;
   without GSAP or with reduced motion the sections keep the layouts above) ---------- */

.scene-track { position: relative; }
.scene-track > section { position: sticky; inset-block-start: 0; }

/* SC 02 · Contact sheet: every shot on a spiral (app.js places each .s-item per frame). Three columns of
   index · spiral · card; the side columns match so the spiral stays centred on the screen. */
.work.is-helix {
  --side: clamp(190px, 21vw, 330px);
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr) var(--side);
  column-gap: clamp(12px, 2vw, 32px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  row-gap: clamp(18px, 3.5vh, 40px);
  block-size: 100svh;
  padding-block: 120px 24px;
  overflow: hidden;
}
.is-helix .work-head { grid-column: 1 / -1; margin-block-end: 0; padding-block-end: 14px; border-block-end: 1px solid rgba(242, 238, 230, .08); }
.is-helix .w-card { grid-row: 2; grid-column: 3; z-index: 2; align-self: center; justify-self: end; inline-size: 100%; max-block-size: 100%; margin: 0; overflow-y: auto; scrollbar-width: none; }
.is-helix .index {
  grid-row: 2;
  grid-column: 1;
  z-index: 2;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  align-self: center;
  max-block-size: 100%;
  justify-self: start;
  margin: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 238, 230, .22) transparent;
  padding-inline-end: 10px;
}
/* More names than fit: the list scrolls (wheel, drag, keys) and fades at whichever end has more (app.js). */
@media (min-width: 721px) {
  .is-helix .index.fade-start { -webkit-mask-image: linear-gradient(transparent, #000 48px); mask-image: linear-gradient(transparent, #000 48px); }
  .is-helix .index.fade-end { -webkit-mask-image: linear-gradient(#000 calc(100% - 48px), transparent); mask-image: linear-gradient(#000 calc(100% - 48px), transparent); }
  .is-helix .index.fade-start.fade-end { -webkit-mask-image: linear-gradient(transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(transparent, #000 48px, #000 calc(100% - 48px), transparent); }
}
.is-helix .cl { padding-block: 5px; }
.helix {
  position: relative;
  grid-row: 2;
  grid-column: 2;
  perspective: 1100px;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .helix, .helix * { cursor: none; }
}
.helix-rig { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; transform-style: preserve-3d; }
.helix .beam { z-index: 0; }
.helix-count { grid-row: 3; grid-column: 1 / -1; justify-self: end; margin: 0; color: var(--bone); font-variant-numeric: tabular-nums; }
.s-item {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: var(--w, 180px);
  --x: .55;
  transition: none;
  will-change: transform;
}
.s-item[hidden] { display: none; }
/* Lite: set by app.js when the spiral runs slow. The same look, less for the GPU to blend each frame. */
.is-lite .grain { display: none; }
.is-lite .helix { -webkit-mask-image: none; mask-image: none; }
.is-lite .s-item .t-clip { filter: none; }
.is-lite .w-card { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Facing away from you: shots darken toward the back of the spiral (app.js sets the shade's opacity). */
.s-shade { position: absolute; inset: 0; z-index: 1; background: var(--ink); opacity: 0; pointer-events: none; will-change: opacity; }
/* Tiles are hit-tested in app.js (pick); the buttons stay for the keyboard. */
.s-item { pointer-events: none; }
.s-item .t-label { position: absolute; inset-block-start: 100%; inset-inline: 0; padding-block-start: 8px; opacity: 0; transition: opacity .25s; }
.s-item.is-locked .t-label { opacity: 1; }
.s-item .t-name { font-size: 14px; }
.s-item .t-hud { margin-block-start: 3px; font-size: 8px; }
.s-item .t-await { inset-block-end: 8px; inset-inline-start: 10px; font-size: 8px; }

/* SC 03 · Dailies: recent work as a strip of film running through the gate. */
.recent.is-reel {
  --th: min(52svh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  block-size: 100svh;
  padding-block: 120px 28px;
  overflow: hidden;
}
.is-reel .work-head { justify-content: flex-start; margin-block-end: 30px; }
.is-reel .reel-count { margin-inline-start: auto; }
.reel-count { color: var(--bone); font-variant-numeric: tabular-nums; }
.is-reel .grid {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  inline-size: max-content;
  padding: 34px 14px 26px;
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(242, 238, 230, .16) 9px 23px, transparent 23px 32px) 0 9px / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(242, 238, 230, .16) 9px 23px, transparent 23px 32px) 0 calc(100% - 9px) / 100% 10px no-repeat;
  border-block: 1px solid rgba(242, 238, 230, .08);
  will-change: transform;
}
.is-reel .tile { position: relative; flex: none; inline-size: calc(var(--th) * .8); grid-row-end: auto !important; }
.is-reel .t-label { padding-block-end: 10px; }
/* Edge code printed along the film, like the frame numbers on real stock. */
.is-reel .tile::after {
  content: attr(data-edge);
  position: absolute;
  inset-block-start: -22px;
  inset-inline-start: 2px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: rgba(255, 59, 47, .65);
  pointer-events: none;
}
/* No WebGL: scroll speed shears the frames a touch (gl.js does it as motion blur instead). */
html:not(.gl-on) .is-reel .t-clip { transform: skewX(calc(var(--vel, 0) * -5deg)); }
.reel-end {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  inline-size: calc(var(--th) * .8);
  aspect-ratio: 4 / 5;
  padding: 22px;
  border: 1px dashed rgba(242, 238, 230, .3);
  text-decoration: none;
  transition: border-color .2s;
}
.reel-end-t {
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 850;
  font-stretch: 75%;
  line-height: .92;
  text-transform: uppercase;
  transition: font-stretch var(--t-dev) var(--e-dev);
}
.reel-end:hover, .reel-end:focus-visible { border-style: solid; border-color: var(--bone); outline: none; }
.reel-end:hover .reel-end-t, .reel-end:focus-visible .reel-end-t { font-stretch: 125%; }

/* SC 04 · Kit (no scroll-jacking): the active line's word fills with footage; a sticky monitor beside the
   list shows that service and steps through its shots as you move. */
.svc-name { position: relative; }
.svc-fill, .svc-edge { display: none; }
.services.is-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr);
  column-gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.is-stack > h2 { grid-column: 1 / -1; }
.is-stack .svc-list { grid-column: 1; }
.is-stack .svc-btn { padding-block: 6px; }
/* Sized so the longest name ("Events and Popups") stays on one line when it widens. */
.is-stack .svc-name { font-size: min(4.3vw, 8.5svh); white-space: nowrap; color: rgba(138, 133, 124, .5); }
.is-stack .svc:not(.is-on) .svc-edge { display: none; }
.is-stack .svc-plus { display: none; }
.is-stack .svc-body { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.is-stack .svc.is-on .svc-name { color: var(--bone); font-stretch: 100%; }
.is-stack .svc.is-on .svc-i { color: var(--rec); }
.is-stack .svc.is-on .af { opacity: 1; inset: 0; }
.is-stack .svc-fill {
  display: block;
  position: absolute;
  inset: 0;
  color: transparent;
  background-size: cover;
  background-position: 50% calc(var(--f, 0) * 100%);
  -webkit-background-clip: text;
  background-clip: text;
  clip-path: inset(-10% calc(100% - var(--f, 0) * 100%) -10% 0);
  -webkit-text-stroke: 1px rgba(242, 238, 230, .45);
  filter: brightness(1.5) saturate(1.2) contrast(1.05);
}
[dir="rtl"] .is-stack .svc-fill { clip-path: inset(-10% 0 -10% calc(100% - var(--f, 0) * 100%)); }
.is-stack .svc.is-past .svc-fill { display: none; }
.is-stack .svc-edge {
  display: block;
  position: absolute;
  inset-block: -4%;
  inset-inline-start: calc(var(--f, 0) * 100%);
  inline-size: 2px;
  background: var(--rec);
  box-shadow: 0 0 14px 1px var(--rec);
  opacity: min(calc(var(--f, 0) * 20), calc((1 - var(--f, 0)) * 20), 1);
}
.svc-side {
  grid-column: 2;
  position: sticky;
  inset-block-start: 130px;
  justify-self: end;
  inline-size: min(100%, 30svh);
  margin-block-start: 28px;
}
.svc-mon { position: relative; aspect-ratio: 9 / 16; }
.svc-mon .clip { position: absolute; inset: 0; overflow: hidden; background: var(--ink-2); }
.svc-mon .clip > * {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  filter: blur(6px);
  transition: opacity .6s cubic-bezier(.4, 0, .2, 1), filter .6s, transform 1.8s var(--e-dev);
}
.svc-mon .clip > .is-on { z-index: 1; opacity: 1; transform: none; filter: none; }
.svc-mon .af { opacity: 1; inset: -10px; }
.svc-mon .t-rec { opacity: 1; inset-block-start: 10px; inset-inline-end: 10px; }
.svc-mon-hud { margin-block-start: 18px; color: var(--bone); white-space: nowrap; }
.svc-cap { min-block-size: 4.4em; margin: 10px 0 0; font-size: 15px; line-height: 1.45; }
.svc-cap.is-in { animation: cap-in .55s var(--e-dev); }
@keyframes cap-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

/* Service montages (films.js): painted per frame by seek(t), so no transitions inside. Sized in container
   units so they read the same at any monitor size. */
.svc-mon .clip > .film { object-fit: initial; }
.film { position: absolute; inset: 0; overflow: hidden; container-type: size; background: var(--ink); color: var(--bone); }
.film svg { display: block; inline-size: 100%; block-size: 100%; }
.f-word { font-family: var(--display); font-stretch: 100%; }
.f-mono { font-family: var(--mono); letter-spacing: .08em; }

.f-social .fs-feed { position: absolute; inset: 0; }
.fs-post { position: absolute; inset: 0; overflow: hidden; background: #000; will-change: transform; }
.fs-media { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.fs-shade { position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); }
.fs-top { position: absolute; inset-block-start: 4cqh; inset-inline-start: 6cqw; z-index: 2; margin: 0; font-family: var(--display); font-size: 6.4cqw; font-weight: 800; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.fs-views {
  position: absolute; inset-block-end: 13cqh; inset-inline-start: 5cqw; z-index: 1;
  display: flex; align-items: center; gap: 1.6cqw; margin: 0; padding: 1.4cqw 3cqw;
  border-radius: 99px; background: rgba(0, 0, 0, .55);
  font-family: var(--display); font-size: 5cqw; font-weight: 700;
}
.fs-views svg { inline-size: 4.4cqw; fill: currentColor; }
.fs-rail { position: absolute; inset-block-end: 14cqh; inset-inline-end: 4cqw; display: grid; gap: 3.4cqh; justify-items: center; }
.fs-act { display: grid; justify-items: center; gap: .6cqh; font-family: var(--display); font-size: 3.8cqw; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.fs-act svg { inline-size: 8.4cqw; block-size: 8.4cqw; fill: none; stroke: currentColor; stroke-width: 2; }
.fs-like.is-liked svg { fill: var(--rec); stroke: var(--rec); }
.fs-who { position: absolute; inset-block-end: 5cqh; inset-inline: 5cqw 18cqw; display: flex; align-items: center; gap: 2.4cqw; margin: 0; font-family: var(--display); font-size: 4.4cqw; font-weight: 700; }
.fs-av { display: grid; place-items: center; flex: none; inline-size: 8.4cqw; block-size: 8.4cqw; border-radius: 50%; background: var(--bone); color: var(--ink); font-style: normal; font-size: 4cqw; }
.fs-who em { padding: .8cqw 2.6cqw; border: 1px solid rgba(242, 238, 230, .7); border-radius: 1.6cqw; font-style: normal; font-size: 3.6cqw; }
.fs-big { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; inline-size: 32cqw; transform: scale(0); }
.fs-big svg { fill: var(--rec); filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .35)); }
.fs-touch { position: absolute; inset-block-start: 0; inset-inline-start: 62%; z-index: 3; inline-size: 13cqw; block-size: 13cqw; border-radius: 50%; background: rgba(242, 238, 230, .35); border: 1px solid rgba(242, 238, 230, .8); opacity: 0; }

.f-ai { background: #101010; }
.fa-scene { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 6cqh 5cqw 5cqh; }
.fa-head { display: flex; align-items: center; gap: 3cqw; margin: 0 0 4cqh; padding-block-end: 2.4cqh; border-block-end: 1px solid rgba(242, 238, 230, .12); font-family: var(--display); }
.fa-av { display: grid; place-items: center; inline-size: 10cqw; block-size: 10cqw; border-radius: 50%; background: var(--bone); color: var(--ink); font-style: normal; font-weight: 800; font-size: 4.6cqw; }
.fa-head span { display: grid; }
.fa-head b { font-size: 4.8cqw; font-weight: 800; }
.fa-head small { font-family: var(--mono); font-size: 3cqw; color: #57d38c; }
.fa-log { display: flex; flex-direction: column; gap: 2.4cqh; }
.fa-msg { max-inline-size: 82%; margin: 0; padding: 3cqw 4.2cqw; border-radius: 4.4cqw; font-family: var(--display); font-size: 5.4cqw; line-height: 1.3; }
.fa-in { align-self: flex-start; background: #262626; transform-origin: 0 100%; border-end-start-radius: 1cqw; }
.fa-out { align-self: flex-end; background: var(--rec); color: #fff; transform-origin: 100% 100%; border-end-end-radius: 1cqw; }
.fa-dots { display: flex; gap: 1.4cqw; padding-block: 3.4cqw; background: #262626; }
.fa-dots i { inline-size: 2.2cqw; block-size: 2.2cqw; border-radius: 50%; background: var(--ash); }
.fa-card { position: relative; align-self: flex-end; display: grid; inline-size: 70%; padding: 3.6cqw 4.2cqw; border: 1px solid rgba(242, 238, 230, .25); border-radius: 3cqw; font-family: var(--display); transform-origin: 100% 0; }
.fa-card b { font-size: 5.6cqw; }
.fa-card span { font-family: var(--mono); font-size: 3.8cqw; color: var(--ash); }
.fa-ok { position: absolute; inset-block-start: 3cqw; inset-inline-end: 3.4cqw; color: #57d38c; font-style: normal; font-size: 5cqw; }
.fa-flow { position: relative; display: flex; justify-content: space-between; margin-block-start: auto; padding-block-start: 3cqh; }
.fa-flow::before { content: ''; position: absolute; inset-block-start: calc(3cqh + 3.2cqw); inset-inline: 6cqw; block-size: 1px; background: rgba(242, 238, 230, .2); }
.fa-node { position: relative; z-index: 1; padding: 1.4cqw 2.2cqw; border: 1px solid rgba(242, 238, 230, .25); border-radius: 99px; background: #101010; font-family: var(--mono); font-size: 3.3cqw; letter-spacing: .02em; color: var(--ash); }
.fa-node.is-lit { border-color: var(--rec); color: var(--bone); }
.fa-beam { position: absolute; inset-block-start: calc(3cqh + 2.4cqw); z-index: 2; inline-size: 1.8cqw; block-size: 1.8cqw; margin-inline-start: 4cqw; border-radius: 50%; background: var(--rec); }

/* SC 05 · Playback: Instagram comments on Gamma's work (dark mode). Static, they sit in a grid; with motion
   (.is-fall) they drift down one by one like dropped paper as you scroll. */
.words { padding: clamp(56px, 9vh, 110px) 0; }
.words > .hud { padding-inline: var(--pad); }
.comments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0 var(--pad);
  list-style: none;
}
.cmt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: #1C1B19;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: #F5F5F5;
}
/* Avatar with the story ring. */
.cmt-av {
  flex: none;
  inline-size: 34px;
  block-size: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #3A3835 0 56%, #1C1B19 57% 66%, transparent 67%), linear-gradient(45deg, #F9CE34, #EE2A7B, #6228D7);
}
.cmt-av { position: relative; }
.cmt-av img { position: absolute; inset: 3px; inline-size: calc(100% - 6px); block-size: calc(100% - 6px); border-radius: 50%; object-fit: cover; }
.cmt-body { flex: 1; min-inline-size: 0; }
.cmt-top { margin: 0; }
.cmt { position: relative; transition: background .2s; }
.cmt:has(.cmt-post:hover) { background: #252421; }
.cmt-post { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cmt-post:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.cmt-user { position: relative; z-index: 2; font-weight: 600; color: inherit; text-decoration: none; }
.cmt-user:hover, .cmt-user:focus-visible { text-decoration: underline; }
.cmt-meta { display: flex; gap: 14px; margin: 7px 0 0; font-size: 12px; font-weight: 600; color: #A8A8A8; }
.cmt-like { flex: none; inline-size: 13px; padding-block-start: 10px; }
.cmt-like svg { display: block; inline-size: 13px; block-size: 13px; fill: none; stroke: #A8A8A8; stroke-width: 2; }
.cmt .skel { gap: 7px; padding-block-start: 3px; }
.cmt .skel i { block-size: 8px; background: rgba(255, 255, 255, .11); }
.cmt .skel .skel-u { inline-size: 34%; background: rgba(255, 255, 255, .24); }
.words.is-fall { block-size: 100svh; padding: 120px 0 0; overflow: hidden; }
.is-fall .comments { position: relative; display: block; block-size: calc(100% - 72px); margin: 28px var(--pad) 0; padding: 0; }
.is-fall .cmt { position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: min(380px, 84vw); visibility: hidden; will-change: transform; }
.is-fall .cmt.is-down { will-change: auto; }
/* Depth (--d, 0 far to 1 front, set from likes): back comments sit dimmer and soft; hover brings one up clear. */
.is-fall .cmt.is-back { filter: blur(calc((1 - var(--d)) * 2.2px)) brightness(calc(.42 + var(--d) * .5)); transition: filter .25s, background .2s; }
.is-fall .cmt.is-back:hover, .is-fall .cmt.is-back:focus-within { z-index: 200 !important; filter: none; }

/* SC 06 · Directors: the founders' video. With motion (.is-on) the section sticks and the frame's insets
   (--vt/--vr/--vb/--vl, set by app.js) ease from a card to full screen and back; the head fades meanwhile. */
.founders { padding: clamp(56px, 9vh, 110px) var(--pad); }
.vsl { position: relative; }
.vsl-frame { position: relative; margin-block-start: 28px; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vsl-video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.vsl-ui { display: none; }
.vsl.is-on { block-size: 100svh; padding-block: 120px 0; overflow: hidden; }
/* Gone before the growing frame reaches the text, so the two never overlap. */
.vsl.is-on > .sec-h, .vsl.is-on > .f-intro { opacity: max(0, calc(1 - var(--ve, 0) * 4)); }
.vsl.is-on .vsl-frame, .vsl.is-on .vsl-ui {
  position: absolute;
  inset: var(--vt, 0) var(--vr, 0) var(--vb, 0) var(--vl, 0);
  margin: 0;
  aspect-ratio: auto;
}
.vsl.is-on .vsl-frame { z-index: 2; }
.vsl.is-on .vsl-ui { z-index: 3; display: block; pointer-events: none; }
.vsl-ui .af { opacity: calc(1 - var(--ve, 0)); inset: -10px; }
.vsl-rec { opacity: 1; inset-block-start: 16px; inset-inline-end: 18px; }
.vsl-who { position: absolute; inset-block-end: 20px; inset-inline-start: 20px; color: var(--bone); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.vsl-sound {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-end: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(242, 238, 230, .5);
  background: rgba(11, 10, 8, .55);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bone);
  cursor: pointer;
  pointer-events: auto;
  transition: background .2s, border-color .2s;
}
.vsl-sound:hover, .vsl-sound:focus-visible { border-color: var(--bone); outline: none; }
.vsl-sound-i { display: inline-flex; align-items: flex-end; gap: 2px; block-size: 12px; }
.vsl-sound-i i { inline-size: 2px; block-size: 30%; background: currentColor; }
.is-loud .vsl-sound-i i { animation: wave .5s ease-in-out infinite alternate; }
.is-loud .vsl-sound-i i:nth-child(2) { animation-delay: -.2s; }
.is-loud .vsl-sound-i i:nth-child(3) { animation-delay: -.35s; }
.is-ask .vsl-sound { border-color: var(--rec); background: var(--rec); animation: ask 1.2s ease-in-out infinite; }
@keyframes ask { 50% { box-shadow: 0 0 0 8px rgba(255, 59, 47, .25); } }

@media (max-width: 720px) {
  .recent.is-reel { --th: min(46svh, 92vw); }
  /* Phones: no monitor; each line keeps its sentence under it and fills as it crosses the middle. */
  .services.is-stack { grid-template-columns: minmax(0, 1fr); }
  /* Sized so the longest word ("Photography") still fits a 375px screen when it widens; long names wrap. */
  .is-stack .svc-name { font-size: min(10.5vw, 8svh); white-space: normal; }
  .is-stack .svc.is-on .svc-name { font-stretch: 82%; }
  .svc-side { display: none; }
  .is-fall .cmt { inline-size: 80vw; padding: 10px 12px; font-size: 13px; }
  .words.is-fall { padding-block-start: 104px; }
  .is-fall .comments { block-size: calc(100% - 52px); margin-block-start: 14px; }
  .vsl-who { inset-block-start: 16px; inset-block-end: auto; inset-inline-start: 16px; font-size: 9px; }
  .vsl-rec { display: none; }
  .is-stack .svc-body { position: static; inline-size: auto; block-size: auto; clip-path: none; grid-template-rows: 1fr; }
  /* Each line's shot sits under its sentence; only the active line's plays, the rest hold their first frame. */
  .is-stack .svc-film { overflow: hidden; background: var(--ink-2); opacity: .4; transition: opacity .4s var(--e-dev); }
  .is-stack .svc.is-on .svc-film { opacity: 1; }
  .svc-film > video, .svc-film > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
  /* Phones: the client index becomes a swipeable row above the spiral; the card sits beside the spiral, which
     takes the full width when there's no card (All). */
  .work.is-helix { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); column-gap: 10px; grid-template-rows: auto auto minmax(0, 1fr) auto; padding-block-start: 100px; }
  .is-helix .work-head, .is-helix .index { grid-column: 1 / -1; }
  .is-helix .work-head { gap: 4px; padding-block-end: 0; border: 0; }
  .work.is-helix { row-gap: 10px; }
  .is-helix .index { grid-row: 2; flex-direction: row; align-items: center; align-self: auto; justify-self: stretch; overflow-x: auto; overflow-y: hidden; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .is-helix .cl[aria-pressed="true"] .cl-mark { block-size: 22px; }
  .is-helix .w-card { grid-row: 3; grid-column: 2; align-self: center; justify-self: stretch; max-inline-size: none; max-block-size: 100%; margin: 0; padding: 12px; }
  .is-helix .wc-title { margin: 4px 0 6px; font-size: clamp(15px, 4.6vw, 20px); }
  .is-helix .wc-line { margin: 0; font-size: 13px; }
  .is-helix .wc-sub, .is-helix .wc-tags:not(.wc-svc) { display: none; }
  .is-helix .wc-play { margin-block-start: 8px; }
  .is-helix .wc-more { margin-block: 10px 0; }
  .is-helix .wc-tag, .is-helix .wc-play { padding: 6px 8px; font-size: 10px; }
  .helix, .is-helix .index ~ .helix { grid-row: 3; grid-column: 1 / -1; }
  .is-helix .w-card:not([hidden]) ~ .helix { grid-column: 1; }
  .helix-count { grid-row: 4; }
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .rail { display: none; }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .proto .long { display: none; }
  .proto .short { display: inline; }
  .strip .title { font-size: 31vw; }
  .hud-bar { gap: 14px; }
  .hud-bar .proto { font-size: 9px; text-align: end; }
  .wa { padding: 8px 10px; font-size: 11px; }
  .strip { --sh: 54vh; }
  .vf .g { inline-size: 24px; block-size: 24px; }

  .h-word { font-size: 18.5vw; }
  .h-scroll { display: none; }
  .counters { grid-template-columns: 1fr; gap: 14px; }
  .c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .panel { inline-size: 100vw; block-size: 100dvh; aspect-ratio: auto; }
  .viewer-frame { inset: 8px; }
  .v-nav { display: none; }
  .v-close { inset-block-start: 34px; inset-inline-end: 14px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .grain, .rec, .sf-rec::before, .t-rec::before, .cta-dot, .v-hud-tl::before, .slate, .bv-wave i { animation: none; }
  .btn-voice:hover .bv-wave i, .btn-voice:focus-visible .bv-wave i { animation: none; block-size: 50%; }
  .slate { rotate: 0deg; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .t-clip { transition-duration: .2s !important; }
}
