/* =====================================================================
   DOUBLE VISION AGENCY — Brand Book v3.0 applied to web
   Ink · Bone · Ember (only accent) · Cherry · Steel
   Space Grotesk (display/body) · Space Mono (labels) · IBM Plex Sans Arabic
   ===================================================================== */
:root {
  --ink: #0B0B0B;
  --bone: #EDE6DC;
  --ember: #F26A1B;
  --cherry: #6E1129;
  --steel: #4C5F8C;
  --white: #FFFFFF;
  --line: rgba(237, 230, 220, .14);
  --line-strong: rgba(237, 230, 220, .28);
  --muted: rgba(237, 230, 220, .64);
  --panel: rgba(11, 11, 11, .62);

  --f-sans: "Space Grotesk", system-ui, sans-serif;
  --f-mono: "Space Mono", ui-monospace, monospace;
  --f-ar: "IBM Plex Sans Arabic", "Space Grotesk", sans-serif;

  --gutter: clamp(16px, 6vw, 96px);       /* brand margin: 6% of width */
  --radius: 4px;
  --ease: cubic-bezier(.16, 1, .3, 1);    /* eases out, never bounces */
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 17px/1.55 var(--f-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
::selection { background: var(--ember); color: var(--ink); }

/* ---------- Stage + grain ---------- */
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; display: block; }
.no-webgl #stage { display: none; }
.no-webgl body, html:not(.webgl-ready) body {
  background:
    radial-gradient(ellipse 55% 90% at 34% 50%, #f3b689 0%, var(--ember) 28%, #5c2408 62%, var(--ink) 100%) fixed;
}
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ---------- Type ---------- */
.label {
  font: 400 12px/1.4 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
}
.label--ember { color: var(--ember); }
.display {
  font-weight: 500;
  font-size: clamp(48px, 9vw, 150px);
  line-height: .94;
  letter-spacing: -.03em;
  margin: 18px 0 0;
  color: var(--white);
}
.display--sm { font-size: clamp(44px, 7vw, 110px); }
.headline {
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 14px 0 0;
  color: var(--white);
}
.lede { color: var(--muted); max-width: 46ch; margin: 18px 0 0; font-size: clamp(16px, 1.4vw, 19px); }
[lang="ar"] { font-family: var(--f-ar); }

/* ---------- Mark ---------- */
[data-mark] svg { display: block; height: 100%; width: auto; }
.mini-mark { display: inline-block; height: .78em; vertical-align: -.04em; }
.mini-mark svg path { transition: transform .45s var(--ease); transform-box: fill-box; }
a:hover .mini-mark svg path, button:hover .mini-mark svg path { transform: translateX(calc(var(--i) * 18%)); }

/* Rhythm bars — pagination 1.00 · 0.55 · 0.32 · 0.18 */
.rhythm { display: inline-flex; gap: 5px; align-items: center; }
.rhythm i { display: block; height: 10px; background: currentColor; border-radius: 0 6px 6px 0; }
.rhythm i:nth-child(1) { width: 18px; } .rhythm i:nth-child(2) { width: 10px; }
.rhythm i:nth-child(3) { width: 6px; }  .rhythm i:nth-child(4) { width: 3.5px; }

/* ---------- Loader (logo sting 1.2 s) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--ink); transition: opacity .6s var(--ease) .1s, visibility .6s .1s;
}
.loader__mark { height: 64px; color: var(--white); }
.loader .sting { opacity: .12; animation: sting .32s var(--ease) forwards; animation-delay: calc(var(--i) * 120ms + 150ms); }
@keyframes sting { to { opacity: 1; } }
.is-loaded .loader { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .loader .sting { animation: none; opacity: 1; } }

/* ---------- Buttons ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px; border-radius: 999px;
  font-weight: 500; font-size: 16px; letter-spacing: -.005em;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.cta--light { background: var(--white); color: var(--ink); }
.cta--light:hover { background: var(--bone); }
.cta--ghost { border: 1px solid var(--line-strong); color: var(--white); }
.cta--ghost:hover { border-color: var(--white); }
.cta--ember { background: var(--ember); color: var(--ink); }
.cta--ember:hover { background: var(--white); }
.cta:active { transform: scale(.98); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h); padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
  transition: background .4s var(--ease), backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(11, 11, 11, .55); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.nav__logo { display: flex; align-items: center; gap: 12px; color: var(--white); margin-right: auto; }
.nav__mark { height: 22px; }
.nav__word { font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 28px; font-size: 15px; }
.nav__links a { color: var(--white); opacity: .82; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ember); transition: right .4s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }
.nav__room { font-size: 14px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; display: inline-flex; gap: 10px; align-items: center; color: var(--white); }
.nav__room:hover { border-color: var(--ember); color: var(--ember); }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--white); transition: transform .35s var(--ease); }
.nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 25px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(11, 11, 11, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .35s var(--ease);
  }
  .nav__links a { font-size: 26px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open { background: rgba(11, 11, 11, .96); }
  .nav__burger { display: block; }
  .nav__room { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 520px) { .nav__word { display: none; } .nav { gap: 12px; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 14vh, 170px) var(--gutter); }
.section__head { max-width: 1100px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.section__head--split .lede { margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; padding: calc(var(--nav-h) + 24px) var(--gutter) clamp(36px, 7vh, 72px);
  display: grid; grid-template-rows: auto 1fr auto; position: relative;
}
.hero__label { display: flex; justify-content: space-between; align-items: center; color: var(--white); opacity: .85; }
.hero__copy { align-self: end; max-width: 60%; }
.hero__kicker { color: var(--white); opacity: .9; }
.hero__ar { font-family: var(--f-ar); font-weight: 700; font-size: clamp(20px, 2.2vw, 30px); color: var(--white); opacity: .8; margin: 18px 0 0; text-align: left; direction: rtl; unicode-bidi: plaintext; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(36px, 7vh, 72px); display: flex; align-items: center; gap: 12px; color: var(--white); opacity: .7; }
.hero__line { width: 56px; height: 1px; background: currentColor; transform-origin: left; animation: line 2.4s var(--ease) infinite; }
@keyframes line { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@media (max-width: 760px) {
  .hero__copy { max-width: 100%; }
  .hero__scroll { display: none; }
}

/* ---------- Showreel ---------- */
.showreel { padding: 0 var(--gutter) clamp(60px, 10vh, 120px); perspective: 1600px; }
.showreel__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden;
  transform-origin: 50% 100%; will-change: transform;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), 0 0 0 1px var(--line);
  background: var(--ink);
}
.showreel__media, .showreel__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showreel__hud { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 4% 4% 0; color: var(--white); pointer-events: none; }
.showreel__hud .tc { color: var(--ember); }
.showreel__play {
  position: absolute; left: 4%; bottom: 6%; display: inline-flex; align-items: center; gap: 14px;
  color: var(--white); font-size: clamp(18px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.02em;
}
.showreel__play .mini-mark { height: .72em; }
.showreel.is-playing .showreel__play, .showreel.is-playing .showreel__hud span:first-child { opacity: 0; transition: opacity .4s; }

/* ---------- Placeholder media (brand fields) ---------- */
.ph { position: absolute; inset: 0; overflow: hidden; }
.ph::before {
  content: ""; position: absolute; inset: -10%;
  background: var(--ph-bg);
  filter: blur(6px);
  transform: scaleX(1.25);
  animation: drift 14s ease-in-out infinite alternate;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}
@keyframes drift { to { transform: scaleX(1.25) translateX(-6%); } }
@media (prefers-reduced-motion: reduce) { .ph::before { animation: none; } }
.f-ember  { --ph-bg: radial-gradient(ellipse 48% 120% at 34% 50%, #F6D2B0 0%, #F26A1B 26%, #6b2a08 60%, #0B0B0B 92%); }
.f-cherry { --ph-bg: radial-gradient(ellipse 48% 120% at 40% 50%, #d58a9c 0%, #8a1a37 26%, #3b0716 60%, #0B0B0B 92%); }
.f-steel  { --ph-bg: radial-gradient(ellipse 48% 120% at 38% 50%, #dfe5f4 0%, #7f92c2 24%, #2c3757 60%, #0B0B0B 92%); }
.ph__wm { position: absolute; top: 6%; right: 6%; height: 14px; color: var(--white); opacity: .7; z-index: 1; }
.ph__hint { position: absolute; left: 6%; top: 6%; z-index: 1; color: var(--white); opacity: .75; }

/* ---------- Work: filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; margin-bottom: 36px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.filter { font-size: clamp(20px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.02em; padding: 4px 14px 4px 0; color: var(--muted); transition: color .3s; }
.filter sup { font: 400 11px var(--f-mono); color: var(--ember); margin-left: 3px; vertical-align: super; }
.filter:hover { color: var(--bone); }
.filter.is-active { color: var(--white); }
.filters__type { margin-left: auto; display: flex; gap: 6px; }
.chip { font: 400 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.chip.is-active { border-color: var(--bone); color: var(--white); }
@media (max-width: 760px) { .filters__type { margin-left: 0; width: 100%; margin-top: 10px; } }

/* ---------- Work: grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 13vw, 200px);
  gap: clamp(10px, 1.4vw, 20px); grid-auto-flow: dense;
}
.card { grid-column: span 4; grid-row: span 2; perspective: 1000px; }
.card--wide { grid-column: span 8; }
.card--tall { grid-row: span 3; }
@media (max-width: 960px) { .card { grid-column: span 6; } .card--wide { grid-column: span 12; } }
@media (max-width: 560px) { .grid { grid-auto-rows: 140px; } .card, .card--wide { grid-column: span 12; } .card--tall { grid-row: span 3; } }

.card__inner {
  position: relative; width: 100%; height: 100%; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: 0 0 0 1px var(--line); background: #141414;
}
.card__media, .card__media > video, .card__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media { transform: translateZ(0) scale(1.04); transition: transform .9s var(--ease); }
.card:hover .card__media { transform: scale(1.09); }
.card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11,11,11,.82)); pointer-events: none; }
.card__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; transform: translateZ(40px); display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.card__title { font-size: clamp(17px, 1.5vw, 22px); font-weight: 500; letter-spacing: -.015em; color: var(--white); margin: 6px 0 0; line-height: 1.15; }
.card__cat { color: var(--ember); }
.card__tc { color: var(--white); opacity: .8; flex: none; }
.card__badge { position: absolute; top: 14px; left: 16px; transform: translateZ(30px); color: var(--white); display: flex; gap: 8px; align-items: center; }
.card__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }
.card.is-hidden { display: none; }
.card.is-entering .card__inner { animation: cardIn .7s var(--ease) both; animation-delay: calc(var(--n) * 50ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) rotateX(-12deg); } }
.grid__empty { padding: 48px 0; color: var(--muted); }

/* ---------- Reels: 3D ring ---------- */
.reels { overflow: hidden; }
.ring { position: relative; height: clamp(440px, 62vw, 640px); perspective: 1800px; cursor: grab; touch-action: pan-y; user-select: none; outline: none; }
.ring:active { cursor: grabbing; }
.ring__track { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.reel {
  position: absolute; width: clamp(200px, 22vw, 300px); aspect-ratio: 9 / 16;
  left: 0; top: 0; translate: -50% -50%;
  border-radius: 10px; overflow: hidden; backface-visibility: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0,0,0,.8);
  background: #111; will-change: transform, filter;
}
.reel video, .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(180deg, transparent, rgba(11,11,11,.85)); }
.reel__info h3 { margin: 6px 0 0; font-weight: 500; font-size: 17px; letter-spacing: -.01em; color: var(--white); line-height: 1.2; }
.reel__tc { position: absolute; top: 14px; left: 14px; color: var(--white); opacity: .85; }
.ring__controls { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 20px; }
.ring__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--white); transition: border-color .3s, background .3s; }
.ring__btn:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.ring__btn .mini-mark { height: 13px; }
.ring__btn--prev .mini-mark { transform: scaleX(-1); }
.rhythm--pager { gap: 6px; color: var(--muted); }
.rhythm--pager i { width: 6px !important; height: 6px; border-radius: 3px; background: currentColor; opacity: .4; transition: width .4s var(--ease), opacity .4s; }
.rhythm--pager i.is-on { width: 26px !important; opacity: 1; color: var(--white); background: var(--white); }

/* ---------- Services (Bone panel) ---------- */
.services { padding-top: 0; padding-bottom: 0; }
.services__panel {
  background: var(--bone); color: var(--ink); border-radius: 8px;
  padding: clamp(48px, 7vw, 110px) clamp(22px, 5vw, 80px);
}
.services .headline { color: var(--ink); max-width: 14ch; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); perspective: 1200px; }
@media (max-width: 860px) { .services__grid { grid-template-columns: 1fr; } }
.svc {
  background: var(--ink); color: var(--bone); border-radius: 6px; padding: clamp(24px, 3vw, 40px);
  min-height: 340px; display: flex; flex-direction: column; transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.svc__no { color: var(--ember); transform: translateZ(30px); }
.svc h3 { font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.02em; margin: 20px 0 40px; line-height: 1.05; color: var(--white); transform: translateZ(50px); }
.svc ul { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); transform: translateZ(24px); }
.svc li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.services__foot { margin-top: 28px; color: var(--ink); opacity: .7; }

/* ---------- Studio ---------- */
.eyes { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 48px); align-items: center; perspective: 1200px; }
.eye { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 3vw, 44px); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.eye .label { color: var(--ember); }
.eye h3 { font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.02em; line-height: 1.1; margin: 14px 0 10px; color: var(--white); transform: translateZ(40px); }
.eye p:last-child { color: var(--muted); margin: 0; }
.eyes__mark { height: clamp(40px, 6vw, 80px); color: var(--white); }
@media (max-width: 860px) { .eyes { grid-template-columns: 1fr; } .eyes__mark { justify-self: center; } }
.traits { list-style: none; padding: 0; margin: clamp(48px, 7vw, 90px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.traits li { padding: 22px 16px 0 0; }
.traits strong { display: block; font-weight: 500; font-size: clamp(24px, 3vw, 44px); letter-spacing: -.02em; color: var(--white); }
.traits span { font: 400 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .traits { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }

/* ---------- Clients ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.logo-cell { aspect-ratio: 16 / 9; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18%; color: var(--muted); transition: background .4s var(--ease), color .4s; }
.logo-cell img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1) brightness(1.6); opacity: .75; transition: .4s; }
.logo-cell:hover { background: rgba(237,230,220,.04); color: var(--white); }
.logo-cell:hover img { filter: none; opacity: 1; }
.logo-cell span { font: 400 13px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 40px; }
.quote { border: 1px solid var(--line); border-radius: 6px; padding: 28px; background: var(--panel); }
.quote p { font-size: 20px; letter-spacing: -.01em; line-height: 1.35; margin: 0 0 22px; color: var(--white); }
.room-card {
  margin-top: clamp(40px, 6vw, 72px); display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 56px); border-radius: 8px; position: relative; overflow: hidden; isolation: isolate;
  transform-style: preserve-3d; transition: transform .6s var(--ease);
}
.room-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 140% at 25% 50%, #F6D2B0 0%, var(--ember) 30%, #5c2408 65%, var(--ink) 100%); }
.room-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 4px); }
.room-card .label { color: var(--white); }
.room-card h3 { font-weight: 500; font-size: clamp(26px, 3.4vw, 50px); letter-spacing: -.02em; line-height: 1.02; margin: 10px 0 0; max-width: 18ch; color: var(--white); transform: translateZ(40px); }

/* ---------- Contact ---------- */
.contact__wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .contact__wrap { grid-template-columns: 1fr; } }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; }
.contact__list li { border-top: 1px solid var(--line-strong); }
.contact__list a { display: flex; justify-content: space-between; padding: 16px 0; font-size: 18px; color: var(--white); }
.contact__list a:hover { color: var(--ember); }
.contact__list .label { color: var(--muted); align-self: center; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 3vw, 40px); display: grid; gap: 18px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.form label { display: grid; gap: 8px; }
.form .label { color: var(--muted); }
.form input, .form select, .form textarea {
  font: 400 17px var(--f-sans); color: var(--white); background: transparent; width: 100%;
  border: 0; border-bottom: 1px solid var(--line-strong); padding: 10px 0; border-radius: 0;
}
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ember); }
.form textarea { resize: vertical; }
.form .cta { justify-self: start; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { padding: clamp(60px, 9vw, 120px) var(--gutter) 32px; background: var(--ink); border-top: 1px solid var(--line); }
.footer__top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.footer__logo { display: flex; align-items: center; gap: 16px; font-weight: 500; font-size: clamp(22px, 3vw, 40px); letter-spacing: -.02em; color: var(--white); }
.footer__logo [data-mark] { height: clamp(32px, 4vw, 52px); }
.footer__tag { font-size: clamp(22px, 3vw, 40px); font-weight: 500; letter-spacing: -.02em; margin: 0; color: var(--muted); }
.footer__bottom { margin-top: 56px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.footer__social { display: flex; gap: 18px; }
.footer__social a:hover { color: var(--ember); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(11, 11, 11, .94); color: var(--bone);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__stage { width: min(92vw, 1400px); max-height: 80vh; display: grid; place-items: center; }
.lightbox__stage > * { max-width: 100%; max-height: 80vh; border-radius: 4px; }
.lightbox__stage .ph-box { position: relative; width: min(92vw, 1200px); aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; }
.lightbox__stage .ph-box.is-vertical { width: auto; height: 78vh; aspect-ratio: 9/16; }
.ph-box__msg { position: absolute; left: 0; right: 0; bottom: 0; padding: 6%; z-index: 2; color: var(--white); }
.ph-box__msg h3 { font-weight: 500; font-size: clamp(22px, 3vw, 40px); letter-spacing: -.02em; margin: 8px 0 6px; }
.ph-box__msg p { margin: 0; opacity: .8; font-size: 15px; }
.lightbox__close { position: absolute; top: 20px; right: var(--gutter); font: 400 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--white); padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; z-index: 3; }
.lightbox__close:hover { border-color: var(--ember); color: var(--ember); }
.lightbox__meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24px; display: flex; justify-content: space-between; color: var(--muted); }
/* Fast-forward wipe: four bars sweep across in the rhythm widths */
.wipe { position: absolute; inset: 0; display: flex; pointer-events: none; z-index: 4; }
.wipe i { display: block; height: 100%; background: var(--ember); transform: scaleX(0); transform-origin: left; }
.wipe i:nth-child(1) { flex: 1; } .wipe i:nth-child(2) { flex: .55; } .wipe i:nth-child(3) { flex: .32; } .wipe i:nth-child(4) { flex: .18; }
.lightbox.is-wiping .wipe i { animation: wipe .7s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes wipe { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 50.01% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@media (prefers-reduced-motion: reduce) { .lightbox.is-wiping .wipe i { animation: none; } }

/* ---------- Tilt helper ---------- */
.tilt { will-change: transform; }

/* =====================================================================
   CLIENT ROOM (clients.html)
   ===================================================================== */
.room { min-height: 100svh; padding: calc(var(--nav-h) + 48px) var(--gutter) 80px; }
.gate { max-width: 560px; margin: 8vh auto 0; perspective: 1400px; }
.gate__card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: clamp(28px, 4vw, 48px); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.gate__card h1 { font-weight: 500; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.025em; line-height: 1; margin: 14px 0 12px; color: var(--white); transform: translateZ(40px); }
.gate__card p { color: var(--muted); margin: 0 0 28px; }
.gate__row { display: flex; gap: 10px; }
.gate__row input { flex: 1; min-width: 0; font: 400 18px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--white); background: rgba(0,0,0,.3); border: 1px solid var(--line-strong); border-radius: 999px; padding: 14px 20px; }
.gate__row input:focus { outline: none; border-color: var(--ember); }
.gate__err { color: var(--ember); min-height: 1.4em; margin-top: 12px; }
.gate__hint { margin-top: 18px; color: var(--muted); }
.gate.is-shake .gate__card { animation: shake .4s var(--ease); }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

.dash[hidden] { display: none; }
.dash__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.dash__head h1 { font-weight: 500; font-size: clamp(40px, 6vw, 92px); letter-spacing: -.03em; line-height: .96; margin: 12px 0 0; color: var(--white); }
.dash__note { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ember); border-radius: 6px; padding: 18px 22px; margin-bottom: 40px; max-width: 760px; }
.stages { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stages li { padding-top: 14px; border-top: 3px solid var(--line-strong); color: var(--muted); }
.stages li.is-done { border-color: var(--bone); color: var(--bone); }
.stages li.is-now { border-color: var(--ember); color: var(--white); }
.stages li.is-now .label { color: var(--ember); }
.stages strong { display: block; font-weight: 500; font-size: clamp(14px, 1.4vw, 18px); margin-top: 4px; }
@media (max-width: 640px) { .stages { grid-template-columns: 1fr; } .stages li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0 0; } }
.deliv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; perspective: 1200px; }
.deliv__item { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.deliv__media { position: relative; aspect-ratio: 16/9; cursor: pointer; overflow: hidden; }
.deliv__media video, .deliv__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deliv__body { padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.deliv__body h3 { font-weight: 500; font-size: 18px; margin: 6px 0 0; color: var(--white); letter-spacing: -.01em; }
.status { font: 400 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); white-space: nowrap; }
.status--delivered { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.status--review { border-color: var(--ember); color: var(--ember); }
.deliv__actions { padding: 0 20px 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.deliv__actions a, .deliv__actions button { font: 400 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--white); }
.deliv__actions a:hover, .deliv__actions button:hover { border-color: var(--ember); color: var(--ember); }
.deliv__actions [aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* =====================================================================
   ABOUT (about.html)
   ===================================================================== */
/* ---------- Journey: pinned 3D depth timeline ---------- */
.journey { position: relative; }
.journey__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1200px; perspective-origin: 50% 45%; }
.journey__track { position: absolute; inset: 0; transform-style: preserve-3d; }
.chapter {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; translate: 0 -50%;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 80px); align-items: center;
  will-change: transform, opacity, filter;
}
.chapter--alt { grid-template-columns: .85fr 1.15fr; }
.chapter--alt .chapter__copy { order: 2; }
.chapter--alt .chapter__photo { order: 1; }
.chapter__big {
  position: absolute; left: -2%; top: 50%; translate: 0 -50%; z-index: -1; pointer-events: none;
  font-weight: 500; font-size: clamp(120px, 26vw, 420px); letter-spacing: -.05em; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28);
}
.chapter--alt .chapter__big { left: auto; right: -2%; }
.chapter__copy { position: relative; }
.chapter__title { font-weight: 500; font-size: clamp(36px, 5.6vw, 88px); line-height: .98; letter-spacing: -.03em; margin: 14px 0 18px; color: var(--white); }
.chapter__text { font-size: clamp(16px, 1.4vw, 20px); color: rgba(255, 255, 255, .78); max-width: 42ch; margin: 0; }
.chapter__stat { margin: 28px 0 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.chapter__stat strong { font-weight: 500; font-size: clamp(56px, 8vw, 128px); letter-spacing: -.04em; line-height: .9; color: var(--white); font-variant-numeric: tabular-nums; }
.chapter__stat .label { color: var(--ember); }
.chapter__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; max-height: 62vh; border-radius: 6px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0,0,0,.85), 0 0 0 1px var(--line); justify-self: center; width: min(100%, 440px); }
.chapter__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.journey__rail { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 5vh, 44px); z-index: 200; }
.journey__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.journey__bar span { display: block; height: 100%; background: var(--ember); transform-origin: left; transform: scaleX(0); }
.journey__steps { list-style: none; padding: 0; margin: 12px 0 0; display: flex; justify-content: space-between; }
.journey__steps button { font: 400 12px var(--f-mono); letter-spacing: .08em; color: var(--muted); padding: 6px 2px; transition: color .3s; }
.journey__steps button.is-done { color: var(--bone); }
.journey__steps button.is-on { color: var(--ember); }
@media (max-width: 760px) {
  .chapter, .chapter--alt { grid-template-columns: 1fr; gap: 20px; top: 46%; }
  .chapter--alt .chapter__copy { order: 0; }
  .chapter__photo { width: 54%; max-height: 32vh; justify-self: start; }
  .chapter__big { top: 18%; font-size: 34vw; }
}
/* reduced motion: a plain vertical story */
.journey.is-flat { height: auto !important; }
.journey.is-flat .journey__sticky { position: static; height: auto; overflow: visible; perspective: none; }
.journey.is-flat .journey__track { position: static; display: grid; gap: 120px; padding: 80px 0; }
.journey.is-flat .chapter { position: relative; top: auto; translate: none; }
.journey.is-flat .journey__rail { display: none; }

/* ---------- Numbers ---------- */
.numbers__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.numbers__list li { padding: 24px 16px 0 0; }
.numbers__list strong { display: block; font-weight: 500; font-size: clamp(44px, 6vw, 96px); letter-spacing: -.04em; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.numbers__list .label { color: var(--muted); display: block; margin-top: 10px; }
@media (max-width: 760px) { .numbers__list { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 20px); }
@media (max-width: 960px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .people { grid-template-columns: repeat(2, 1fr); } }
.person { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; cursor: pointer; transform-style: preserve-3d; transition: transform .6s var(--ease); box-shadow: 0 0 0 1px var(--line); background: #141414; }
.person__photo, .person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person__photo img { filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease), transform .9s var(--ease); }
.person:hover .person__photo img { filter: none; transform: scale(1.05); }
.person::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,11,11,.85)); pointer-events: none; }
.person__info { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(12px, 1.6vw, 20px); z-index: 2; transform: translateZ(40px); }
.person__info h3 { margin: 0 0 4px; font-weight: 500; font-size: clamp(16px, 1.5vw, 21px); letter-spacing: -.01em; color: var(--white); }
.person__info .label { color: var(--ember); font-size: 11px; }
.person__no { position: absolute; top: 14px; right: 14px; z-index: 2; color: var(--white); opacity: .7; transform: translateZ(30px); }

/* ---------- Behind the scenes ---------- */
.crew { padding-left: 0; padding-right: 0; }
.crew .section__head { padding: 0 var(--gutter); }
.crew__strip { display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x proximity; padding: 20px var(--gutter) 30px; scrollbar-width: none; cursor: grab; }
.crew__strip::-webkit-scrollbar { display: none; }
.crew__strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.shot { position: relative; flex: none; margin: 0; width: clamp(240px, 28vw, 420px); aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; scroll-snap-align: center; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.shot--wide { width: clamp(320px, 46vw, 680px); aspect-ratio: auto; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.shot figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: var(--white); }

.about-cta { max-width: 900px; }
.studio__more { margin-top: clamp(36px, 5vw, 56px); }
