/* 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 { color: var(--rec); animation: blink 1s steps(2) infinite; }
.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);
}
.sf-rec::before, .t-rec::before, .cta-dot, .v-hud-tl::before {
  content: '';
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--rec);
  animation: blink 1s steps(2) infinite;
}
.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;
  white-space: nowrap;
  transition: font-stretch var(--t-dev) var(--e-dev);
}
.is-locked .t-name { font-stretch: 125%; }
.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);
}
.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;
  transition: opacity .25s;
}
.frame.is-on { opacity: 1; }
.frame-media { padding: 0; }
.frame-media > div { position: absolute; inset: 0; }
.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;
  will-change: transform;
}
.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; }
.h-hudline {
  position: absolute;
  inset-block-end: 40px;
  inset-inline-end: 48px;
  display: flex;
  gap: 18px;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity .3s;
}
.h-hudline .sf-rec { position: static; }
.is-locked .h-af { opacity: 1; scale: 1; }
.is-locked .h-hudline { opacity: 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: 'IBM Plex Sans Arabic', var(--display);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.3;
  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, translate .35s var(--e-dev);
}
.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, 6.4vw, 112px);
  font-weight: 850;
  font-stretch: 75%;
  line-height: .9;
  text-transform: uppercase;
  transition: font-stretch 1.4s var(--e-dev);
}
.is-drawn .c-line { font-stretch: 100%; }

/* ---------- Home: proof strip ---------- */

.proof { padding: 40px 0 clamp(72px, 12vh, 140px); border-block: 1px solid rgba(242, 238, 230, .08); }
.marquee {
  position: relative;
  block-size: 150px;
  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);
}
.mq-item {
  --ex: 0;
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  display: grid;
  place-items: center;
  inline-size: 130px;
  block-size: 96px;
}
.mq-item img {
  max-inline-size: 100%;
  max-block-size: 100%;
  object-fit: contain;
  filter: grayscale(calc(1 - var(--ex))) brightness(calc(.55 + .45 * var(--ex)));
  opacity: calc(.35 + .65 * var(--ex));
}
.mq-frame {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  inline-size: 170px;
  block-size: 124px;
  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);
}
.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;
  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-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: client words ---------- */

.words { padding: clamp(56px, 9vh, 110px) 0; }
.words > .hud { padding-inline: var(--pad); }
.chat {
  display: flex;
  gap: 18px;
  margin-block-start: 28px;
  padding: 8px var(--pad) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.chat::-webkit-scrollbar { display: none; }
.bubble {
  position: relative;
  flex: none;
  display: grid;
  gap: 18px;
  inline-size: min(82vw, 540px);
  min-block-size: 220px;
  margin: 0;
  padding: 30px 30px 24px;
  border: 1px solid rgba(242, 238, 230, .35);
  background: var(--ink-2);
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .4s var(--e-dev), transform .5s var(--e-dev);
}
.bubble:nth-child(even) { margin-block-start: 48px; }
/* The tail is a Γ: a right-angle notch under the bubble. */
.bubble::after {
  content: '';
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 26px;
  inline-size: 18px;
  block-size: 18px;
  border-inline-start: 1px solid rgba(242, 238, 230, .35);
  background: linear-gradient(to bottom right, var(--ink-2) 50%, transparent 50%);
}
.bubble.is-typing, .bubble.is-in { opacity: 1; transform: none; }
.bubble blockquote { align-self: start; margin: 0; font-size: 15px; }
.bubble.is-typing blockquote, .bubble.is-typing figcaption { visibility: hidden; }
.bubble figcaption { display: flex; align-items: center; gap: 12px; }
.bubble figcaption img { inline-size: 40px; block-size: 40px; object-fit: cover; filter: grayscale(1); }
.bubble.is-in:hover { border-color: var(--bone); }
.bubble.is-in:hover::before {
  content: '';
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--rec);
}
.typing { position: absolute; inset-block-start: 26px; inset-inline-start: 26px; display: none; gap: 5px; }
.is-typing .typing { display: flex; }
.typing i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--bone); animation: dots 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ---------- Home: founders ---------- */

.founders { padding: clamp(56px, 9vh, 110px) var(--pad); }
.f-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 44px);
  max-inline-size: 1100px;
  margin: 28px auto 0;
}
.lock-card { --x: .15; margin: 0; }
.lock-card .t-media { display: block; }
.lock-card:hover { --x: 1; }
.lock-card:hover .af { opacity: 1; inset: 10px; }
.lock-card:hover .t-rec { opacity: 1; }
.lock-card:hover .t-name { font-stretch: 125%; }
.lock-card:hover .t-clip > * { transform: scale(1.03); }
.lock-card figcaption { display: block; padding-block-start: 14px; }
.touch .lock-card { --x: .7; }

/* ---------- Contact block ---------- */

.c-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  inline-size: min(100%, 880px);
  margin-block-start: 22px;
  text-align: start;
}
.c-grid > div { display: grid; gap: 10px; align-content: start; }
.c-map {
  position: relative;
  place-items: center;
  min-block-size: 120px;
  border: 1px dashed rgba(242, 238, 230, .28);
}

/* ---------- 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) ---------- */

.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 ---------- */

.btn-voice { position: relative; min-inline-size: 300px; justify-content: center; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.bv-wave, .bv-time { display: none; }
.bv-wave { align-items: center; gap: 3px; block-size: 18px; }
.bv-wave i { inline-size: 3px; block-size: 25%; background: #fff; animation: wave .45s ease-in-out infinite alternate; }
@keyframes wave { to { block-size: 100%; } }
.bv-time { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.btn-voice.is-rec { background: var(--rec); color: #fff; font-stretch: 100%; }
.btn-voice.is-rec .cta-dot { background: #fff; }
.btn-voice.is-rec .bv-label { display: none; }
.btn-voice.is-rec .bv-wave, .btn-voice.is-rec .bv-time { display: inline-flex; }
.bv-hint { margin-block-start: -8px; }
.c-wrap { color: var(--bone); font-variant-numeric: tabular-nums; }

/* ---------- 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; }

/* ---------- 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-hudline { inset-block-end: auto; inset-block-start: 108px; inset-inline-end: 20px; }
  .h-scroll { display: none; }
  .counters { grid-template-columns: 1fr; gap: 14px; }
  .c-grid { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 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; }
  .slate { rotate: 0deg; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .t-clip { transition-duration: .2s !important; }
}
