/* Studio Arva, studio-arva.com
   One display face (Montserrat), one UI face (Inter), one accent (ridge amber).
   The page runs dark → paper → dune. --t (0 dark, 1 paper) is set from scroll in js/stage.js. */

:root {
  --ink: #0d1317;
  --ink-2: #121a1f;
  --haze: #3a484f;
  --mist: #8e9aa0;
  --paper: #f5f4f1;
  --text: #16191b;
  --ridge: #efa35b;
  --ridge-deep: #a0561d;

  --t: 0;
  --bg: color-mix(in srgb, var(--ink), var(--paper) calc(var(--t) * 100%));
  --fg: color-mix(in srgb, #fff, var(--text) calc(var(--t) * 100%));
  --fg-2: color-mix(in srgb, #a9b4b9, #5b6166 calc(var(--t) * 100%));
  --rule: color-mix(in srgb, rgba(255, 255, 255, .14), rgba(13, 19, 23, .16) calc(var(--t) * 100%));
  --focus: color-mix(in srgb, var(--ridge), var(--ridge-deep) calc(var(--t) * 100%));

  --display: 'Montserrat', system-ui, sans-serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --px: max(24px, 5.5vw);
  --nav-h: 68px;
  --out: cubic-bezier(.2, .8, .2, 1);
  --nb: 0;
  --mk: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--ui);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ridge); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: 500 15px/1 var(--ui); letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 120ms ease-out, background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--ridge); color: var(--ink); }
.btn-glass { color: #fff; border: 1px solid rgba(255, 255, 255, .45); background: rgba(13, 19, 23, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-quiet { background: #e7e4dd; color: var(--text); }
@media (hover: hover) {
  .btn-accent:hover { background: #f6b779; }
  .btn-glass:hover { background: #fff; color: var(--ink); border-color: #fff; }
  .btn-quiet:hover { background: #dcd8cf; }
}
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background-color 150ms ease-out, transform 120ms ease-out; }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn:active { transform: scale(.94); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: flex-end; gap: 28px;
  padding: 0 var(--px);
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: var(--nb);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}
.mark { position: absolute; left: var(--px); top: 0; height: var(--nav-h); display: flex; align-items: center; z-index: 2; }
.mark-text {
  display: inline-block; font: 400 19px/1 var(--display); color: var(--mk); white-space: nowrap;
  transform-origin: 50% 50%;
}
.mark-text .c { display: inline-block; }
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; color: var(--fg); opacity: .82; transition: opacity 150ms ease-out; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 220ms var(--out); }
@media (hover: hover) {
  .nav-links a:hover { opacity: 1; }
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav-cta { height: 38px; padding: 0 16px; font-size: 14px; }
.nav-menu { display: none; height: 38px; padding: 0 4px 0 14px; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--fg); }
.nav-menu i { position: relative; width: 18px; height: 10px; }
.nav-menu i::before, .nav-menu i::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 200ms var(--out); }
.nav-menu i::before { top: 1px; }
.nav-menu i::after { bottom: 1px; }
.nav-menu[aria-expanded="true"] i::before { transform: translateY(3.5px) rotate(45deg); }
.nav-menu[aria-expanded="true"] i::after { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; z-index: 49; top: calc(var(--nav-h) - 6px); right: 12px; left: 12px;
  background: var(--paper); color: var(--text); border-radius: 18px; padding: 10px 10px 18px;
  box-shadow: 0 24px 60px rgba(5, 8, 10, .35);
  transform-origin: calc(100% - 40px) 0;
  transition: opacity 180ms ease-out, transform 220ms var(--out);
}
.menu[hidden] { display: block; visibility: hidden; opacity: 0; transform: scale(.96) translateY(-6px); pointer-events: none; transition: opacity 130ms ease-out, transform 130ms ease-out, visibility 0s 130ms; }
.menu nav { display: grid; }
.menu nav a { font: 400 26px/1.2 var(--display); letter-spacing: -0.03em; padding: 12px 10px; border-radius: 10px; }
.menu nav a:active { background: #e7e4dd; }
.menu .btn { width: calc(100% - 20px); margin: 12px 10px 0; height: 50px; font-size: 16px; }
.menu-mail { display: block; text-align: center; margin-top: 14px; font-size: 14px; color: #5b6166; }

/* ---------- stage ---------- */
.stage { position: relative; height: 100vh; height: 100svh; z-index: 1; }
.stage-inner { position: relative; height: 100%; overflow: hidden; perspective: 1900px; background: var(--ink); }
.flood { position: absolute; inset: 0; z-index: 8; background: var(--paper); visibility: hidden; pointer-events: none; }
.ambient { position: absolute; inset: -12%; opacity: 0; pointer-events: none; }
.ambient img { width: 100%; height: 100%; object-fit: cover; filter: blur(48px) saturate(1.1); opacity: .5; animation: drift 46s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-4%, -2%, 0) scale(1.05); } to { transform: translate3d(4%, 3%, 0) scale(1.14); } }

.rig { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; transform-style: preserve-3d; transform-origin: 50% 50%; }
.frame, .layer { position: absolute; inset: 0; border-radius: inherit; }
.frame { overflow: hidden; background: var(--ink-2); --ch: 0px; --bz: 0; }
.frame::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 9;
  box-shadow: inset 0 0 0 calc(var(--bz) * 1px) #04070a, inset 0 0 0 calc(var(--bz) * 1px + 1px) rgba(255, 255, 255, .1);
}
.f-dune, .f-web, .f-film, .f-phone, .f-fill { position: absolute; inset: 0; }
.f-dune { overflow: hidden; }
.dune-idle { position: absolute; inset: 0; animation: breathe 26s ease-in-out infinite alternate; }
.dune-idle picture, .dune-idle img { width: 100%; height: 100%; }
.dune-idle img { object-fit: cover; animation: arrive 2.4s var(--out) both; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes arrive { from { transform: scale(1.12); filter: brightness(.6); } to { transform: scale(1); filter: none; } }
.clouds {
  position: absolute; inset: -25%; pointer-events: none; mix-blend-mode: multiply;
  background:
    radial-gradient(38% 26% at 28% 44%, rgba(4, 9, 13, .42), transparent 70%),
    radial-gradient(30% 22% at 72% 62%, rgba(4, 9, 13, .3), transparent 70%),
    radial-gradient(26% 18% at 50% 20%, rgba(4, 9, 13, .22), transparent 70%);
  animation: clouds 40s linear infinite alternate;
}
@keyframes clouds { from { transform: translate3d(-14%, -3%, 0); } to { transform: translate3d(14%, 5%, 0); } }

.f-chrome {
  position: absolute; left: 0; right: 0; top: 0; height: var(--ch); overflow: hidden; z-index: 3;
  display: flex; align-items: center; justify-content: center; background: #1a2227;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.f-chrome .dots { position: absolute; left: 14px; top: 50%; translate: 0 -50%; display: flex; gap: 6px; }
.f-chrome .dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a484f; }
.url { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 12px; border-radius: 7px; background: #0f1519; font-size: 12px; color: #8e9aa0; }
.url svg { width: 9px; height: 11px; }
.url b { font-weight: 400; }
.url em { font-style: normal; color: #e6eaec; }
.f-web { top: var(--ch); overflow: hidden; background: #0f1519; }
.f-web canvas, .f-film canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.f-film { opacity: 0; background: #0f1519; }
.f-phone { opacity: 0; background: #0a1430; }
.f-phone video { width: 100%; height: 100%; object-fit: cover; }
.f-fill { background: var(--ridge); opacity: 0; transform-origin: 0 50%; z-index: 4; }
.f-island { position: absolute; z-index: 10; left: 50%; top: 2.4%; width: 30%; height: 3.6%; translate: -50% 0; border-radius: 999px; background: #04070a; opacity: 0; }

/* exploded ad layers */
.layer { pointer-events: none; opacity: 0; }
.ad-line {
  position: absolute; left: 9%; right: 9%; top: 9%;
  font: 500 calc(var(--pw, 300) * 0.085px)/1.08 var(--display); letter-spacing: -0.03em; color: #fff;
}
.ad-line span { display: block; clip-path: inset(0 0 0 0); transform: translateY(0); transition: transform 520ms var(--out), opacity 360ms ease-out; }
.ad-line:not(.on) span { transform: translateY(70%); opacity: 0; transition-duration: 220ms; }
.ad-line.on span:nth-child(2) { transition-delay: 90ms; }
.ad-card {
  position: absolute; left: 7%; right: 7%; bottom: 5%;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: .85em .85em .85em 1.1em; border-radius: 1.3em; background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: calc(var(--pw, 300) * 0.034px); line-height: 1.25; color: #5b6166;
}
.ad-card b { display: block; font-size: 1.15em; font-weight: 600; color: #10161a; }
.ad-btn { flex: none; background: #173d2f; color: #fff; border-radius: 999px; padding: .65em 1.05em; font-weight: 500; }
.tag {
  position: absolute; left: calc(100% + 22px); width: 180px; opacity: var(--tg, 0);
  font-size: 12.5px; line-height: 1.35; color: #a9b4b9;
  padding-left: 12px; border-left: 1px solid var(--ridge);
}
.tag b { display: block; color: #fff; font-weight: 500; font-size: 14px; }
.layer-plate .tag { top: 10%; }
.layer-type .tag { top: 42%; }
.layer-ui .tag { top: 78%; }

/* What we do: the row of formats */
.deck { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.tile { position: absolute; left: 0; top: 0; overflow: hidden; visibility: hidden; background: #121a1f; box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .7); }
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-slot { display: none; }
.tile-web .t-bar { position: absolute; left: 0; right: 0; top: 0; height: 9%; display: flex; align-items: center; gap: 3%; padding-left: 3%; background: #1a2227; z-index: 1; }
.tile-web .t-bar i { height: 32%; aspect-ratio: 1; border-radius: 50%; background: #3a484f; }
.tile-web video { position: absolute; top: 9%; height: 91%; }
.ugc { position: absolute; inset: 0; }
.ugc-cap { position: absolute; left: 8%; right: 22%; bottom: 20%; font: 700 calc(var(--tw, 160) * 0.082px)/1.15 var(--ui); letter-spacing: -0.01em; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.ugc-cap span { display: block; animation: ugc 5s steps(1) infinite; }
.ugc-cap span:nth-child(2) { position: absolute; left: 0; top: 0; animation-delay: -2.5s; }
@keyframes ugc { 0% { opacity: 1; } 50% { opacity: 0; } }
.ugc-rail { position: absolute; right: 6%; bottom: 20%; display: grid; gap: calc(var(--tw, 160) * 0.06px); }
.ugc-rail i { width: calc(var(--tw, 160) * 0.1px); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.tile-brand span { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font: 400 16px/1 var(--display); color: #fff; white-space: nowrap; }
.deck-cap { position: absolute; left: 0; top: 0; max-width: 440px; color: #fff; visibility: hidden; z-index: 4; }
.deck-cap b { display: block; font: 500 24px/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 6px; }
.deck-cap span { font-size: 15.5px; color: #a9b4b9; }
.chap-deck .h-chap { font-size: clamp(32px, 3.6vw, 54px); }
.chap-deck .body { margin-top: 12px; max-width: 40em; }
.services { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* website caption under the browser */
.web-cap { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: #a9b4b9; opacity: 0; }
.web-cap .bars { display: flex; gap: 4px; }
.web-cap .bars i { width: 18px; height: 3px; border-radius: 2px; background: #3a484f; transition: background-color 200ms ease-out; }
.web-cap .bars i.on { background: var(--ridge); }
.cap-text b { color: #fff; font-weight: 500; }

/* film editor timeline */
.timeline {
  position: absolute; left: 0; top: 0; padding: 10px 14px 12px; border-radius: 12px;
  background: #121a1f; border: 1px solid rgba(255, 255, 255, .06); font-size: 11px; color: #8e9aa0;
  opacity: 0; clip-path: inset(0 0 100% 0 round 12px);
}
.tl-head { display: flex; align-items: center; gap: 14px; height: 22px; margin-bottom: 8px; }
.tl-tc { color: #fff; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 500; }
.tl-name { color: #e6eaec; }
.tl-fps { margin-left: auto; }
.tl-tracks { position: relative; display: grid; gap: 5px; }
.tl-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; height: 22px; }
.tl-label { font-size: 11px; }
.tl-lane { position: relative; height: 100%; border-radius: 5px; background: rgba(255, 255, 255, .025); }
.tl-sep { position: absolute; top: -2px; bottom: -2px; width: 1px; background: rgba(255, 255, 255, .12); }
.clip {
  position: absolute; top: 2px; bottom: 2px; border-radius: 4px; padding: 0 7px;
  background: #222d33; color: #8e9aa0; font-size: 10.5px; line-height: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.clip.on { background: #3a484f; color: #fff; }
.kf { position: absolute; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; rotate: 45deg; background: #8e9aa0; border-radius: 1px; }
.wave { position: absolute; inset: 2px 0; width: 100%; height: calc(100% - 4px); }
.wave rect { fill: #3a484f; }
.tl-playhead { position: absolute; top: -6px; bottom: -3px; left: 70px; width: 2px; margin-left: -1px; background: var(--ridge); border-radius: 1px; }
.tl-playhead::before { content: ''; position: absolute; top: -4px; left: -4px; width: 10px; height: 8px; background: var(--ridge); clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* process line overlay */
.pline { position: absolute; left: 0; top: 0; height: 2px; opacity: 0; pointer-events: none; }
.pline .node { position: absolute; top: 1px; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--ink); border: 1.5px solid #5d6a70; transition: background-color 200ms ease-out, border-color 200ms ease-out; }
.pline .node.on { background: var(--ridge); border-color: var(--ridge); }
.pline .node:nth-child(1) { left: 0; }
.pline .node:nth-child(2) { left: 25%; }
.pline .node:nth-child(3) { left: 50%; }
.pline .node:nth-child(4) { left: 75%; }
.pline .dot { position: absolute; top: 1px; left: 0; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: var(--ridge); box-shadow: 0 0 0 6px rgba(239, 163, 91, .16); }

/* hero band */
.hero-band {
  position: absolute; left: var(--px); right: var(--px); bottom: max(32px, 5vh); z-index: 5;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; color: #fff;
}
.hero-copy { max-width: 470px; animation: rise 1.1s .5s var(--out) both; }
.hero-title { font: 500 clamp(32px, 3.4vw, 50px)/1 var(--display); letter-spacing: -0.04em; margin-bottom: 12px; text-wrap: balance; }
.hero-line { font-size: 17px; line-height: 1.45; font-weight: 500; }
.hero-line span { color: rgba(255, 255, 255, .72); font-weight: 400; }
.hero-ask { display: grid; gap: 10px; justify-items: end; animation: rise 1.1s .62s var(--out) both; }
.hero-ask p { font-size: 13px; color: rgba(255, 255, 255, .78); }
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #fff;
  border: 1px solid rgba(255, 255, 255, .42); background: rgba(13, 19, 23, .2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, transform 120ms ease-out;
}
.chip:active { transform: scale(.97); }
@media (hover: hover) { .chip:hover { background: #fff; color: var(--ink); border-color: #fff; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* chapter copy */
.chap { position: absolute; left: 0; top: 0; visibility: hidden; color: #fff; z-index: 4; }
.chap-poster { display: none; }
.h-chap { font: 500 clamp(36px, 4.1vw, 64px)/1.02 var(--display); letter-spacing: -0.04em; }
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > * { display: block; will-change: transform; }
.chap .body { margin-top: 22px; color: #a9b4b9; font-size: 17px; max-width: 30em; }
.deliver { margin-top: 26px; }
.deliver ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.deliver li { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: #dfe4e6; }
.chap-process { inset: 0; width: auto !important; height: 100%; }
.chap-process .h-chap { position: absolute; left: var(--px); top: max(calc(var(--nav-h) + 24px), calc(var(--ly) - 250px)); translate: 0 -100%; max-width: 14em; font-size: clamp(40px, 5.2vw, 80px); }
.steps { position: absolute; left: var(--lx); width: var(--lw); top: calc(var(--ly) - 40px); transform: translateY(-100%); display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding-right: 28px; opacity: 0; }
.step b { display: block; font: 500 13px/1 var(--ui); color: var(--ridge); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.step h3 { font: 500 clamp(22px, 2vw, 30px)/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 10px; }
.step p { font-size: 16px; line-height: 1.5; color: #a9b4b9; max-width: 22em; }

/* ---------- work ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--px); }
.work { position: relative; padding: 12vh 0 16vh; }
.h-sec { font: 500 clamp(40px, 5.4vw, 84px)/1 var(--display); letter-spacing: -0.045em; }
.work-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px 40px; margin-bottom: 48px; }
.work-head .h-sec { grid-column: 1 / -1; }
.work-sub { color: var(--fg-2); max-width: 34em; }
.filters { display: flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--rule); }
.filter { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--fg-2); transition: background-color 160ms ease-out, color 160ms ease-out; }
.filter span { font-variant-numeric: tabular-nums; opacity: .6; margin-left: 2px; }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
@media (hover: hover) { .filter[aria-pressed="false"]:hover { color: var(--fg); } }
.row { position: relative; }
.row::before, .row:last-child::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: var(--rule); transform-origin: left; transform: scaleX(var(--rl, 0)); transition: transform 900ms var(--out) calc(var(--i, 0) * 50ms); }
.row::before { top: 0; }
.row:last-child::after { bottom: 0; }
.rows.in .row { --rl: 1; }
.row[hidden] { display: none; }
.row-btn {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr) minmax(0, .6fr); align-items: baseline; gap: 24px;
  padding: 24px 0; text-align: left; border-radius: 0;
}
.row-btn > span { transition: transform 260ms var(--out), opacity 600ms ease-out calc(var(--i, 0) * 50ms + 150ms); }
.rows:not(.in) .row-btn > span { opacity: 0; }
.r-name { font: 400 clamp(22px, 2.3vw, 34px)/1.1 var(--display); letter-spacing: -0.035em; }
.r-line { color: var(--fg-2); font-size: 15.5px; }
.r-kind { color: var(--fg-2); font-size: 14px; text-align: right; }
.r-thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .row-btn:hover .r-name { transform: translateX(12px); }
  .row-btn:hover .r-line { color: var(--fg); }
  .rows:has(.row-btn:hover) .row-btn:not(:hover) > span { opacity: .45; transition-delay: 0ms; }
}
.row-btn:focus-visible { outline-offset: -2px; }

.preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: 340px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  pointer-events: none; opacity: 0; scale: .9; background: #ddd9d1;
  box-shadow: 0 30px 60px -20px rgba(13, 19, 23, .45);
  transition: opacity 140ms ease-out, scale 140ms ease-out, width 220ms var(--out), aspect-ratio 220ms var(--out);
}
.preview.on { opacity: 1; scale: 1; transition: opacity 180ms ease-out, scale 260ms var(--out), width 220ms var(--out); }
.preview.v { width: 200px; aspect-ratio: 9 / 16; }
.preview video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- faq ---------- */
.faq { padding: 6vh 0 26vh; }
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.faq .h-sec { font-size: clamp(36px, 4vw, 60px); max-width: 8em; position: sticky; top: calc(var(--nav-h) + 40px); }
.q { border-top: 1px solid var(--rule); }
.q:last-child { border-bottom: 1px solid var(--rule); }
.q h3 { font: inherit; }
.q button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; text-align: left; font: 500 19px/1.3 var(--ui); letter-spacing: -0.015em; }
.q button i { position: relative; flex: none; width: 14px; height: 14px; }
.q button i::before, .q button i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; border-radius: 2px; transition: transform 240ms var(--out); }
.q button i::after { transform: rotate(90deg); }
.q button[aria-expanded="true"] i::after { transform: rotate(0); }
.a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--out); }
.a > div { overflow: hidden; }
.a p { padding: 0 48px 26px 0; color: var(--fg-2); max-width: 38em; opacity: 0; transition: opacity 200ms ease-out; }
.a .link-btn { display: inline; width: auto; padding: 0; font: inherit; letter-spacing: inherit; color: var(--fg); text-decoration: underline; text-decoration-color: var(--focus); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.q.open .a { grid-template-rows: 1fr; }
.q.open .a p { opacity: 1; transition-delay: 60ms; }

/* ---------- footer ---------- */
.foot { position: relative; height: 180vh; }
.foot-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.foot-dune { position: absolute; inset: 0; clip-path: inset(50% 0 50% 0); }
.foot-dune picture, .foot-dune img { width: 100%; height: 100%; }
.foot-dune img { object-fit: cover; animation: breathe 26s ease-in-out infinite alternate; }
.foot-copy { position: relative; display: grid; justify-items: center; text-align: center; color: #fff; padding: 0 16px; }
.foot-title { text-wrap: balance; font: 500 clamp(30px, 3.6vw, 54px)/1.05 var(--display); letter-spacing: -0.04em; margin-bottom: 9vh; opacity: 0; }
.foot-title span { display: block; margin-top: 14px; font: 400 clamp(16px, 1.35vw, 20px)/1.4 var(--ui); letter-spacing: -0.005em; color: rgba(255, 255, 255, .86); }
.foot-slot { display: block; width: 52vw; height: 1px; }
.foot-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 9vh; opacity: 0; }
.foot-base { position: absolute; left: var(--px); right: var(--px); bottom: 22px; display: flex; justify-content: space-between; gap: 24px; font-size: 12.5px; color: rgba(255, 255, 255, .72); opacity: 0; }
.foot-note { max-width: 46em; text-align: right; }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(5, 8, 10, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: pop 240ms var(--out); }
dialog[open]::backdrop { animation: fade 240ms ease-out; }
dialog.closing { animation: unpop 150ms ease-in forwards; }
dialog.closing::backdrop { animation: fade 150ms ease-in reverse forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes unpop { to { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }

.player { width: min(1120px, calc(100vw - 24px)); background: #0b1014; color: #fff; border-radius: 16px; }
.pl-box { padding: 10px; }
.pl-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px 8px; }
.pl-title { font-size: 14px; font-weight: 500; }
.pl-close:hover { background: rgba(255, 255, 255, .1); }
.pl-media { border-radius: 10px; overflow: hidden; background: #000; display: grid; place-items: center; }
.pl-media video { width: 100%; max-height: 78vh; }
.player.v { width: auto; }
.player.v .pl-media video { width: auto; height: 78vh; }

.brief { max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; width: min(640px, calc(100vw - 24px)); background: var(--paper); color: var(--text); border-radius: 20px; }
.brief-form, .b-done { padding: 26px 28px 28px; }
.b-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.brief h2 { font: 500 30px/1.05 var(--display); letter-spacing: -0.035em; }
.b-close:hover { background: #e7e4dd; }
.b-kind { border: 0; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.b-kind legend { font-size: 13px; font-weight: 500; margin-bottom: 10px; padding: 0; }
.b-kind label { position: relative; }
.b-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.b-kind span { display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid #d3cfc6; font-size: 14px; font-weight: 500; transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out; }
.b-kind input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.b-kind input:focus-visible + span { outline: 2px solid var(--ridge-deep); outline-offset: 2px; }
.b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: grid; gap: 6px; }
.brief.idea :is(.f-when, .b-kind) { display: none; }
.field > span { font-size: 13px; font-weight: 500; }
.field i { font-style: normal; font-weight: 400; color: #6b7075; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--ui); color: var(--text); background: #fff;
  border: 1px solid #d3cfc6; border-radius: 10px; padding: 11px 13px; min-height: 46px;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(160, 86, 29, .22); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.err { font-size: 13px; color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.b-error { margin-top: 14px; font-size: 14px; color: #b3261e; }
.b-error a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.b-send:disabled { opacity: .7; cursor: progress; }
.b-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.b-small { font-size: 13px; color: #6b7075; }
.b-small a { color: var(--ridge-deep); text-decoration: underline; text-underline-offset: 2px; }
.b-send { height: 48px; padding: 0 22px; }
.b-done h2 { margin: 6px 0 12px; outline: none; }
.b-done p { color: #4a4f53; max-width: 32em; }
.b-done .b-small { margin-top: 10px; }
.b-done-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --px: 16px; --nav-h: 60px; }
  .nav-links, .nav-cta { display: none; }
  .nav-menu { display: inline-flex; }
  .mark-text { font-size: 17px; }
  .hero-band { flex-direction: column; align-items: stretch; gap: 22px; bottom: max(24px, 4vh); }
  .hero-line { font-size: 15.5px; }
  .hero-title { font-size: 34px; margin-bottom: 8px; }
  .deck-cap b { font-size: 20px; }
  .deck-cap span { font-size: 14px; }
  .chap-deck .body { font-size: 14.5px; }
  .hero-ask { justify-items: start; }
  .chips { justify-content: flex-start; }
  .h-chap { font-size: clamp(30px, 8.6vw, 40px); }
  .chap .body { font-size: 15.5px; margin-top: 14px; }
  .deliver { display: none; }
  .web-cap { font-size: 12.5px; }
  .timeline { padding: 8px 10px 10px; }
  .tl-row { grid-template-columns: 56px 1fr; height: 18px; }
  .tl-row:first-of-type { display: none; }
  .tl-playhead { left: 56px; }
  .tl-head { margin-bottom: 4px; }
  .tl-fps { display: none; }
  .clip { font-size: 9.5px; line-height: 14px; padding: 0 5px; }
  .ad-card { padding: 7px 7px 7px 9px; font-size: 9.5px; }
  .ad-card b { font-size: 10.5px; }
  .ad-card span:first-child { min-width: 0; }
  .tag { width: 104px; left: calc(100% + 14px); font-size: 11px; }
  .tag b { font-size: 12.5px; }
  .chap-process .h-chap { top: calc(var(--nav-h) + 6vh); translate: none; }
  .steps { top: calc(var(--ly) + 44px); transform: none; display: block; }
  .step { position: absolute; left: 0; right: 0; top: 0; padding: 0; }
  .work { padding-top: 18vh; }
  .work-head { grid-template-columns: 1fr; margin-bottom: 28px; }
  .filters { justify-self: start; }
  .row-btn { grid-template-columns: 1fr 96px; grid-template-areas: 'name thumb' 'line thumb' 'kind thumb'; gap: 4px 16px; padding: 18px 0; align-items: center; }
  .r-name { grid-area: name; font-size: 23px; }
  .r-line { grid-area: line; font-size: 14px; }
  .r-kind { grid-area: kind; text-align: left; font-size: 13px; }
  .r-thumb { display: block; grid-area: thumb; width: 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
  .faq-grid { grid-template-columns: 1fr; gap: 20px; }
  .faq .h-sec { position: static; }
  .q button { font-size: 17px; padding: 20px 0; }
  .a p { padding-right: 0; }
  .foot-slot { width: 52vw; }
  .foot-base { flex-direction: column; gap: 6px; bottom: 16px; }
  .foot-note { text-align: left; }
  .b-grid { grid-template-columns: 1fr; }
  .brief-form, .b-done { padding: 20px 18px 20px; }
  .b-foot { flex-direction: column-reverse; align-items: stretch; }
  .b-send { width: 100%; }
  .player.v .pl-media video { height: 70vh; }
}

/* ---------- reduced motion: the same story, stacked, nothing pinned ---------- */
html.rm .stage { height: auto; }
html.rm .stage-inner { height: auto; overflow: visible; perspective: none; padding-bottom: 12vh; }
html.rm .rig { position: relative; width: 100%; height: 100vh; transform: none; }
html.rm .frame { border-radius: 0; }
html.rm :is(.deck, .deck-cap, .flood, .f-chrome, .f-web, .f-film, .f-phone, .f-fill, .f-island, .layer, .timeline, .pline, .web-cap, .ambient) { display: none; }
html.rm :is(.dune-idle, .dune-idle img, .clouds, .hero-line, .hero-ask, .foot-dune img, .ambient img) { animation: none; }
html.rm .hero-band { position: absolute; top: calc(100vh - 190px); bottom: auto; }
html.rm .chap { position: relative; visibility: visible; display: grid; grid-template-columns: 1fr 1.3fr; gap: 6vw; align-items: center; padding: 14vh var(--px) 0; }
html.rm .chap-poster { display: block; grid-column: 2; grid-row: 1 / span 3; width: 100%; border-radius: 14px; }
html.rm .chap-ad .chap-poster { width: 46%; justify-self: center; }
html.rm .chap-process { display: block; height: auto; }
html.rm .chap-deck { display: block; }
html.rm .services { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 32px; margin-top: 36px; }
html.rm .services li { color: #a9b4b9; font-size: 15px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; }
html.rm .services b { display: block; color: #fff; font: 500 20px/1.2 var(--display); margin-bottom: 4px; }
html.rm .chap-process .h-chap, html.rm .steps { position: static; transform: none; translate: none; }
html.rm .steps { margin-top: 40px; }
html.rm .step { opacity: 1; position: static; }
html.rm .rows .row { --rl: 1; }
html.rm .rows .row-btn > span { opacity: 1; }
html.rm .foot-dune { clip-path: none; }
html.rm :is(.foot-title, .foot-actions, .foot-base) { opacity: 1; }
html.rm .mark-text { transition: opacity 200ms; }
@media (max-width: 760px) {
  html.rm .chap { grid-template-columns: 1fr; }
  html.rm .chap-poster { grid-column: 1; grid-row: auto; }
  html.rm .steps { display: grid; gap: 28px; }
}

/* ---------- language switch ---------- */
.nav-links .lang { margin-inline-start: 6px; opacity: .62; }
.menu nav .lang { font: 400 17px/1.2 var(--ui); letter-spacing: 0; opacity: .7; }

/* ---------- Hebrew (he/index.html), right to left ----------
   Latin words keep Montserrat and Inter; Hebrew letters fall through to Heebo. Hebrew wants looser
   tracking and a little more leading than the Latin settings. stage.js mirrors the stage positions. */
html:lang(he) { --display: 'Montserrat', 'Heebo', system-ui, sans-serif; --ui: 'Inter', 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif; }
html:lang(he) body { letter-spacing: 0; }
html:lang(he) :is(.hero-title, .h-chap, .h-sec, .foot-title, .brief h2, .deck-cap b, .r-name, .menu nav a, .step h3) { letter-spacing: -0.01em; }
html:lang(he) :is(.hero-title, .h-chap, .h-sec, .foot-title) { line-height: 1.1; }
html:lang(he) .h-chap { font-size: clamp(34px, 3.6vw, 56px); }
[dir="rtl"] .skip { left: auto; right: 12px; }
[dir="rtl"] .mark { left: auto; right: var(--px); }
[dir="rtl"] .nav-menu { padding: 0 14px 0 4px; }
[dir="rtl"] :is(.chap, .web-cap, .deck-cap) { left: auto; right: 0; }
[dir="rtl"] .tag { left: auto; right: calc(100% + 22px); padding-left: 0; padding-right: 12px; border-left: 0; border-right: 1px solid var(--ridge); }
[dir="rtl"] .ugc-cap span:nth-child(2) { left: auto; right: 0; }
[dir="rtl"] .row-btn { text-align: right; }
[dir="rtl"] .r-kind { text-align: left; }
[dir="rtl"] .row::before, [dir="rtl"] .row:last-child::after { transform-origin: right; }
[dir="rtl"] .q button { text-align: right; }
[dir="rtl"] .a p { padding: 0 0 26px 48px; }
[dir="rtl"] .foot-note { text-align: left; }
[dir="rtl"] .filter span { margin-left: 0; margin-right: 2px; }
@media (hover: hover) and (pointer: fine) {
  [dir="rtl"] .row-btn:hover .r-name { transform: translateX(-12px); }
}
@media (max-width: 760px) {
  [dir="rtl"] .tag { right: calc(100% + 14px); }
  [dir="rtl"] .r-kind { text-align: right; }
  [dir="rtl"] .a p { padding-left: 0; }
  [dir="rtl"] .foot-note { text-align: right; }
}
