/* ==========================================================================
   Vaishnavi Builds — website styles
   Light editorial theme · mobile-first · motion respects prefers-reduced-motion
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f6f3ee;
  --paper-2: #efe9e0;
  --paper-3: #e6ded2;
  --card: #ffffff;
  --ink: #16130f;
  --ink-2: #4b463f;
  --ink-3: #6f685e;
  --line: rgba(22, 19, 15, 0.12);
  --line-2: rgba(22, 19, 15, 0.07);
  --accent: #ff5a1f;
  --accent-soft: #ffe3d6;
  --accent-text: #ec4a10; /* large display text on cream: >= 3:1 */
  --accent-ink: #c2410c;  /* small text on cream: >= 4.5:1 */

  --violet: #d9d2ff;
  --mint: #c6eada;
  --butter: #ffe48f;
  --peach: #ffd2bf;
  --sky: #cfe3ff;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Noto Sans Devanagari", "Nirmala UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Noto Serif Devanagari", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Nirmala UI", monospace;

  --pad: clamp(18px, 4.2vw, 56px);
  --maxw: 1440px;
  --header-h: 64px;
  --radius: 22px;
  --radius-lg: clamp(22px, 2.6vw, 34px);

  --shadow: 0 1px 1px rgba(22, 19, 15, 0.04), 0 14px 34px -16px rgba(70, 45, 20, 0.22);
  --shadow-lg: 0 2px 2px rgba(22, 19, 15, 0.04), 0 44px 80px -34px rgba(70, 45, 20, 0.38);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}
@media (min-width: 900px) {
  :root { --header-h: 76px; }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img, video, svg, canvas { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

html.is-loading,
html.menu-open,
html.lb-open { overflow: hidden; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.icon--flip { transform: scaleX(-1); }
.mono { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
}

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 300;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600;
  transform: translateY(-160%); transition: transform 0.3s var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  margin-bottom: 1.25rem;
  font: 500 0.74rem/1 var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow__num {
  display: inline-grid; place-items: center;
  min-width: 2.6em; height: 1.9em; padding: 0 0.6em;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 0.68rem; color: var(--ink);
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.h2 {
  font-size: clamp(2.7rem, 1.3rem + 6.2vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 720;
  font-stretch: 88%;
}
.h3 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 680;
  font-stretch: 90%;
}
.h2 em, .h3 em, .hero__title em, .contact__title em, .intro__text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-stretch: 100%;
}

/* split-text masks (built by main.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.06em 0.12em; margin: -0.04em -0.06em -0.12em; }
.w__i { display: inline-block; will-change: transform; }
.sw { transition: none; }

.section-head {
  display: grid; gap: 22px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head__aside { max-width: 36ch; color: var(--ink-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr auto; align-items: end; }
  .section-head__aside { justify-self: end; text-align: left; padding-bottom: 0.6em; }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75em;
  height: var(--h); padding: 0 1.55em;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 1rem/1 var(--font-display); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; color: var(--ink);
  transition: color 0.35s, border-color 0.35s, background-color 0.35s;
  touch-action: manipulation;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; background: var(--ink);
  transform: translateY(102%); transition: transform 0.6s var(--ease-out);
}
.btn--sm { --h: 44px; padding: 0 1.15em; font-size: 0.92rem; }
.btn--accent { background: var(--accent); }
.btn--ghost { background: rgba(255, 255, 255, 0.55); border-color: var(--line); }
.btn__icon {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; margin-right: -0.9em; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  transition: transform 0.55s var(--ease-out), background-color 0.35s, color 0.35s;
}
.btn__icon .icon { width: 17px; height: 17px; }
.btn__icon--lead { margin: 0 0 0 -0.95em; }
.btn__play {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; margin-left: -0.9em; border-radius: 50%;
  background: var(--accent); color: var(--ink);
}
.btn__play .icon { width: 14px; height: 14px; margin-left: 2px; }
@media (hover: hover) {
  .btn:hover { color: var(--paper); border-color: var(--ink); }
  .btn:hover::before { transform: translateY(0); }
  .btn:hover .btn__icon { background: var(--accent); color: var(--ink); transform: rotate(-45deg); }
  .btn:hover .btn__icon--lead { transform: rotate(0deg) scale(1.08); }
}
.rec-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
  animation: blink 1.4s steps(2, jump-none) infinite;
}

.round-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  transition: background-color 0.3s, transform 0.4s var(--ease-out);
}
.round-btn .icon { width: 18px; height: 18px; }
@media (hover: hover) { .round-btn:hover { background: var(--accent); border-color: var(--accent); } }
.round-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  transition: transform 0.6s var(--ease-out), background-color 0.35s, box-shadow 0.35s;
}
.header.is-scrolled {
  background: rgba(246, 243, 238, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line-2);
}
.header.is-hidden { transform: translateY(-105%); }
.menu-open .header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.header__inner {
  position: relative;
  height: 100%;
  max-width: calc(var(--maxw) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
  display: flex; align-items: center; gap: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 1.12rem; letter-spacing: -0.03em;
}
.brand__mark { width: 34px; height: 34px; transition: transform 0.6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__word em { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.14em; letter-spacing: -0.01em; }

.nav { display: none; }
.header__cta { display: none; }
@media (min-width: 720px) {
  .header__cta { display: inline-flex; gap: 0.6em; }
}
@media (min-width: 1024px) {
  .nav {
    position: absolute; left: 50%; translate: -50% 0;
    display: flex; gap: 2px; padding: 5px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line-2);
  }
  .nav a {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 9px 15px; border-radius: 999px;
    text-decoration: none; font-weight: 550; font-size: 0.94rem; letter-spacing: -0.01em;
    transition: background-color 0.3s, color 0.3s;
  }
  .nav a span { font: 500 0.62rem var(--font-mono); color: var(--ink-3); }
  .nav a:hover, .nav a.is-current { background: var(--ink); color: var(--paper); }
  .nav a:hover span, .nav a.is-current span { color: var(--accent); }
}

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 6px 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font: 600 0.9rem/1 var(--font-display);
  touch-action: manipulation;
}
.menu-btn__icon {
  position: relative; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink);
}
.menu-btn__icon i {
  position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px;
  background: var(--paper); transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.menu-btn__icon i:first-child { top: 12px; }
.menu-btn__icon i:last-child { top: 18px; }
.menu-open .menu-btn__icon i:first-child { top: 15px; transform: rotate(45deg); }
.menu-open .menu-btn__icon i:last-child { top: 15px; transform: rotate(-45deg); }
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 28px) var(--pad) calc(28px + env(safe-area-inset-bottom));
  background: var(--paper);
  background-image: radial-gradient(90% 60% at 100% 0%, var(--accent-soft) 0%, transparent 70%);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.75s var(--ease-io);
  overflow-y: auto;
}
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu__nav { display: flex; flex-direction: column; }
.menu__link {
  display: flex; align-items: baseline; gap: 14px; overflow: hidden;
  padding: 0.06em 0;
  font-size: clamp(2.7rem, 12vw, 4.6rem); font-weight: 720; line-height: 1.04; letter-spacing: -0.05em;
  text-decoration: none; color: var(--ink);
}
.menu__link span { font: 500 0.78rem var(--font-mono); letter-spacing: 0.04em; color: var(--accent-ink); transform: translateY(-1.6em); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 10px; }
.menu__foot a {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.menu__foot .icon { width: 18px; height: 18px; }

/* ---------- Loader ---------- */
.loader { display: none; }
.is-loading .loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(22px + env(safe-area-inset-top)) var(--pad) calc(22px + env(safe-area-inset-bottom));
  background: var(--accent); color: var(--ink);
  font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.loader__row { display: flex; justify-content: space-between; }
.loader__center { width: min(100%, 760px); margin-inline: auto; }
.loader__label { display: flex; flex-wrap: wrap; gap: 0.6em; margin-bottom: 18px; }
.loader__label b { font-weight: 600; text-transform: none; letter-spacing: 0; }
.loader__bar { height: 3px; background: rgba(22, 19, 15, 0.18); border-radius: 3px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.loader__meta { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; }
.loader__tc {
  font-size: clamp(2.4rem, 10vw, 7.5rem); font-weight: 500; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; text-transform: none; line-height: 0.9;
}
.loader__pct { font-size: clamp(0.9rem, 0.7rem + 0.8vw, 1.3rem); font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 58px) 0 64px;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 78%);
}
.hero::after {
  /* warm glow behind the reels */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 70vmax; height: 70vmax; right: -24vmax; top: 10%;
  background: radial-gradient(circle, rgba(255, 128, 64, 0.2) 0%, rgba(255, 196, 150, 0.12) 35%, transparent 65%);
}
.hero { isolation: isolate; }

.viewfinder {
  position: absolute; pointer-events: none;
  inset: calc(var(--header-h) + env(safe-area-inset-top) + 10px) max(10px, calc(var(--pad) - 8px)) 14px;
  font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.vf-c { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); }
.vf-c--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf-c--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf-c--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf-c--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.vf-m { position: absolute; display: flex; align-items: center; gap: 10px; }
.vf-m--tl { top: 12px; left: 16px; }
.vf-m--tr { top: 12px; right: 16px; }
.vf-m--bl { bottom: 12px; left: 16px; }
.vf-m--br { bottom: 12px; right: 16px; }
.vf-m .icon { width: 12px; height: 12px; animation: nudge 2s var(--ease-io) infinite; }
.vf-sep { opacity: 0.4; }
[data-live-tc] { font-variant-numeric: tabular-nums; color: var(--ink); }
.rec { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.2s steps(2, jump-none) infinite; }
@media (max-width: 719px) {
  .vf-m--tr, .vf-m--br { display: none; }
}

.hero__inner {
  position: relative; width: 100%;
  max-width: calc(var(--maxw) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
  display: grid; gap: 44px;
}
.hero__copy { position: relative; z-index: 2; }
.hero__eyebrow { margin-bottom: clamp(16px, 2.4vw, 28px); }
.hero__title {
  font-size: clamp(3.1rem, 15.2vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 740;
  font-stretch: 84%;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.hero__title em { color: var(--accent-text); padding-right: 0.04em; }
.ln { display: block; overflow: hidden; padding: 0.02em 0.12em 0.12em 0; margin-bottom: -0.1em; }
.ln__i { display: inline-block; will-change: transform; }
.pill {
  position: relative; display: inline-block;
  width: 2.15em; height: 0.82em;
  margin-left: 0.04em; vertical-align: -0.1em;
  border-radius: 999px; overflow: hidden;
  background: var(--paper-3) url("../media/pill.webp") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(22, 19, 15, 0.08), 0 10px 26px -14px rgba(90, 40, 10, 0.5);
}
.pill__video { width: 100%; height: 100%; object-fit: cover; }
.hero__lead {
  max-width: 34ch;
  font-size: clamp(1.06rem, 0.98rem + 0.45vw, 1.32rem);
  line-height: 1.5; color: var(--ink-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3.4vw, 40px); }
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 520px) { .hero__actions .btn { flex: 0 0 auto; } }
.hero__clients {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin-top: 28px;
  font: 500 0.7rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.hero__clients b { color: var(--ink); font-weight: 600; }
.hero__clients i { font-style: normal; color: var(--accent); }

.hero__visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.stack {
  --spread: 40%;
  --stack-h: clamp(400px, 118vw, 560px);
  position: relative;
  width: min(100%, 470px);
  height: var(--stack-h);
  perspective: 1400px;
  touch-action: pan-y;
}
.stack__card {
  /* centred with margins, not translate: GSAP owns this element's transform */
  position: absolute; left: 50%; top: 50%;
  height: calc(var(--stack-h) * 0.92);
  width: calc(var(--stack-h) * 0.92 * 9 / 16);
  margin: calc(var(--stack-h) * -0.46) 0 0 calc(var(--stack-h) * -0.92 * 9 / 32);
  padding: 0; border: 0; border-radius: 24px; overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 2px 2px rgba(22, 19, 15, 0.05), 0 40px 70px -30px rgba(80, 40, 10, 0.45);
  transform-origin: 50% 85%;
  -webkit-tap-highlight-color: transparent;
}
.stack__card video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.stack__card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.stack__tag, .stack__time {
  position: absolute; top: 12px;
  padding: 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 0.62rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}
.stack__tag { left: 12px; }
.stack__time { right: 12px; background: var(--accent); }
.stack__lang { position: absolute; top: 42px; left: 12px; max-width: calc(100% - 24px); }
.stack__card:not(.is-front) .stack__tag, .stack__card:not(.is-front) .stack__time, .stack__card:not(.is-front) .stack__lang { opacity: 0; transition: opacity 0.3s; }
.stack__card.is-front .stack__tag, .stack__card.is-front .stack__time, .stack__card.is-front .stack__lang { opacity: 1; transition: opacity 0.4s 0.3s; }

.stack-ui {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
  width: min(100%, 470px);
}
.stack-ui__dots { display: flex; gap: 6px; }
.stack-ui__dots button {
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  display: grid; place-items: center;
}
.stack-ui__dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--ink-3); opacity: 0.45;
  transition: width 0.45s var(--ease-out), background-color 0.3s, opacity 0.3s;
}
.stack-ui__dots button.is-on::before { width: 22px; background: var(--accent); opacity: 1; }
.stack-ui__now {
  flex: 1 1 160px; min-width: 0;
  font-size: 0.92rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stack-ui__now span { font: 500 0.66rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-right: 4px; }
.stack-ui__now b { color: var(--ink); font-weight: 600; }
.stack-ui__play {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-weight: 600; font-size: 0.88rem;
  transition: background-color 0.3s;
}
.stack-ui__play .icon { width: 16px; height: 16px; color: var(--accent); }
@media (hover: hover) { .stack-ui__play:hover { background: var(--accent); } .stack-ui__play:hover .icon { color: var(--ink); } }

@media (min-width: 1024px) {
  .hero { padding-bottom: 88px; }
  .hero__inner { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); align-items: center; gap: 3vw; }
  .hero__title { font-size: min(8.6vw, 9.4rem); }
  .stack { --stack-h: min(66vh, 620px); --spread: 44%; }
  .hero__visual { padding-top: 10px; }
}

/* JS-only initial states (no flash before the intro plays) */
.js:not(.is-ready) .hero__inner,
.js:not(.is-ready) .viewfinder { visibility: hidden; }

/* ---------- Tapes / marquee ---------- */
.tapes { position: relative; overflow: clip; padding-block: clamp(44px, 8vw, 110px); }
.tape {
  position: relative;
  width: 112%; margin-left: -6%;
  padding-block: 0.72em 0.62em;
  font: 720 clamp(1.35rem, 0.9rem + 2.5vw, 3.1rem)/1 var(--font-display);
  font-stretch: 86%; letter-spacing: -0.03em; text-transform: uppercase;
  white-space: nowrap;
}
.tape--a { z-index: 2; background: var(--accent); color: var(--ink); transform: rotate(-2.4deg); box-shadow: 0 18px 40px -26px rgba(120, 40, 0, 0.6); }
.tape--b { z-index: 1; background: var(--butter); color: var(--ink); transform: rotate(1.8deg); margin-top: -0.4em; }
.tape__track { display: flex; width: max-content; will-change: transform; }
.tape__group { display: flex; align-items: center; gap: 0.55em; padding-right: 0.55em; }
.tape__star { width: 0.62em; height: 0.62em; fill: currentColor; }
.tape--b .tape__star { fill: var(--accent); }

/* ---------- Intro / manifesto ---------- */
.intro { padding-block: clamp(70px, 11vw, 170px) clamp(96px, 13vw, 190px); }
.intro__text {
  max-width: 21em;
  font-size: clamp(1.95rem, 0.95rem + 3.9vw, 4.7rem);
  line-height: 1.06; letter-spacing: -0.042em; font-weight: 640;
  text-wrap: pretty;
}
.chip {
  display: inline-block; width: 1.55em; height: 0.9em;
  vertical-align: -0.1em; margin-inline: 0.03em;
  border-radius: 999px; object-fit: cover;
  background: var(--paper-3);
  box-shadow: inset 0 0 0 1px rgba(22, 19, 15, 0.08);
}
.chip--wave {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.06em;
  background: var(--accent); padding-inline: 0.16em;
}
.chip--wave i {
  display: block; width: 0.075em; height: 42%; border-radius: 9px; background: var(--ink);
  animation: wave 1.017s var(--ease-io) infinite;
}
.chip--wave i:nth-child(2) { animation-delay: -0.15s; height: 64%; }
.chip--wave i:nth-child(3) { animation-delay: -0.3s; height: 30%; }
.chip--wave i:nth-child(4) { animation-delay: -0.45s; height: 72%; }
.chip--wave i:nth-child(5) { animation-delay: -0.6s; height: 50%; }
.chip--wave i:nth-child(6) { animation-delay: -0.75s; height: 36%; }
.chip--wave i:nth-child(7) { animation-delay: -0.9s; height: 58%; }

/* ---------- The wall (every edit playing at once, Vaishnavi up front) ---------- */
.wall { position: relative; padding-top: clamp(64px, 8vw, 120px); overflow: clip; }
.wall__head { display: grid; gap: 18px; margin-bottom: clamp(18px, 3vw, 36px); }
.wall__aside { max-width: 38ch; color: var(--ink-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }
@media (min-width: 900px) {
  .wall__head { grid-template-columns: 1fr auto; align-items: end; }
  .wall__aside { padding-bottom: 0.6em; }
}
.wall__stage {
  --rowh: clamp(150px, 24vh, 240px);
  --gap: clamp(10px, 1.1vw, 16px);
  position: relative; isolation: isolate;
  height: clamp(560px, 86vh, 880px);
  overflow: hidden;
  perspective: 1600px; perspective-origin: 50% 35%;
  background: radial-gradient(55% 60% at 50% 100%, #ffe3d2 0%, rgba(255, 227, 210, 0) 72%);
}
/* centred with negative margins, not translate: GSAP owns the transform */
.wall__plane {
  position: absolute; z-index: 0;
  left: -30%; right: -30%; top: 46%;
  margin-top: calc((3 * var(--rowh) + 2 * var(--gap)) / -2);
  display: grid; gap: var(--gap);
  transform: rotateX(12deg) rotateZ(-5deg) scale(1.08);
  will-change: transform;
}
.wall__row { height: var(--rowh); }
.wall__track {
  display: flex; gap: var(--gap); height: 100%; width: max-content;
  padding-right: var(--gap); /* makes the two halves exactly equal -> seamless loop */
  animation: wall-left 120s linear infinite;
  will-change: transform;
}
.wall__row:nth-child(2) .wall__track { animation-name: wall-right; }
.wall:not(.wall--js) .wall__row:hover .wall__track { animation-play-state: paused; }
@keyframes wall-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes wall-right { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }

.wall__tile {
  position: relative; flex: none;
  height: 100%; aspect-ratio: 9 / 16;
  padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 1px 1px rgba(22, 19, 15, 0.05), 0 14px 30px -18px rgba(70, 45, 20, 0.5);
  transition: transform 0.55s var(--ease-out), box-shadow 0.45s, filter 0.45s;
  -webkit-tap-highlight-color: transparent;
}
.wall__tile--wide { aspect-ratio: 16 / 9; }
.wall__tile video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.wall__tile::before { /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  transform: translateX(-130%);
}
.wall__tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: box-shadow 0.4s;
}
.wall__label {
  position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 8px;
  display: grid; gap: 1px; padding: 8px 9px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  text-align: left; color: var(--ink);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.wall__label b { font-size: 0.78rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wall__label i { font: italic 400 0.8rem var(--font-serif); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall__label .lang-pill { justify-self: start; margin-top: 4px; box-shadow: none; }
.wall__tile:hover, .wall__tile:focus-visible {
  z-index: 2;
  transform: translateY(-6px) scale(1.07);
  filter: brightness(1.08) saturate(1.12);
  box-shadow: 0 0 0 2px #fff, 0 0 26px 6px rgba(255, 128, 64, 0.75), 0 0 70px 14px rgba(255, 90, 31, 0.35), 0 26px 40px -16px rgba(120, 40, 0, 0.6);
  outline: none;
}
.wall__tile:hover::after, .wall__tile:focus-visible::after { box-shadow: inset 0 0 0 2px rgba(255, 90, 31, 0.95); }
.wall__tile:hover::before, .wall__tile:focus-visible::before { transform: translateX(130%); transition: transform 0.9s var(--ease-out); }
.wall__tile:hover .wall__label, .wall__tile:focus-visible .wall__label { opacity: 1; transform: none; }

.wall__fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--paper) 0%, rgba(246, 243, 238, 0) 13%, rgba(246, 243, 238, 0) 87%, var(--paper) 100%),
    linear-gradient(180deg, var(--paper) 0%, rgba(246, 243, 238, 0) 14%, rgba(246, 243, 238, 0) 80%, var(--paper) 100%);
}
.wall__halo {
  position: absolute; z-index: 2; pointer-events: none;
  left: 50%; bottom: -12%; width: min(60vw, 680px); aspect-ratio: 1; margin-left: calc(min(60vw, 680px) / -2);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9) 0%, rgba(255, 246, 238, 0.55) 42%, rgba(255, 240, 230, 0) 72%);
}
.wall__founder {
  --fw: min(44vw, 540px);
  position: absolute; z-index: 3; margin: 0;
  left: 50%; bottom: 0; width: var(--fw); margin-left: calc(var(--fw) / -2);
  pointer-events: none;
}
.wall__cutout {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 30px 34px rgba(70, 35, 10, 0.3));
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.wall__tag {
  position: absolute; top: 44%; left: 84%;
  display: grid; gap: 8px; padding: 12px 14px 12px 12px;
  border-radius: 18px; background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}
.wall__tag-name { display: grid; gap: 2px; padding-left: 14px; position: relative; }
.wall__tag-name::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.wall__tag-name b { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.wall__tag-name span { font: italic 400 0.92rem var(--font-serif); color: var(--ink-2); }
.wall__tag-live {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  padding: 6px 9px; border-radius: 999px; background: var(--paper-2);
  font: 600 0.62rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.wall__tag-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.2s steps(2, jump-none) infinite; }
@media (max-width: 1023px) {
  .wall__tag { left: 70%; top: 50%; }
}
@media (max-width: 719px) {
  .wall__stage { --rowh: clamp(118px, 36vw, 170px); height: clamp(470px, 132vw, 640px); }
  .wall__founder { --fw: 80vw; }
  .wall__halo { width: 96vw; margin-left: -48vw; bottom: -6%; opacity: 0.75; }
  .wall__tag { left: auto; right: -6%; top: auto; bottom: 6%; padding: 9px 11px 9px 10px; gap: 6px; }
  .wall__tag-name b { font-size: 0.92rem; }
  .wall__tag-name span { font-size: 0.8rem; }
  .wall__label { display: none; }
}
.wall__stage:not(.is-built) .wall__plane { opacity: 0; }
.wall__plane { transition: opacity 0.8s; }

/* ---------- Work (timeline) ---------- */
.work { position: relative; }
.work__pin { padding-block: clamp(36px, 6vw, 80px) clamp(64px, 8vw, 110px); }
.work__head { display: grid; gap: 18px; margin-bottom: 18px; }
.work__intro { max-width: 40ch; color: var(--ink-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }
@media (min-width: 900px) {
  .work__head { grid-template-columns: 1fr auto; align-items: end; }
  .work__intro { padding-bottom: 0.6em; }
}
.when-pinned, .when-reel { display: none; }
.work.is-pinned .when-pinned, .work.is-reel .when-reel { display: inline; }
.work.is-pinned .when-swipe, .work.is-reel .when-swipe { display: none; }

.work__viewport { position: relative; }
.work__track {
  position: relative;
  display: flex; align-items: flex-start; gap: 16px;
  padding: 50px calc(50% - min(32vw, 170px)) 12px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.work__track::-webkit-scrollbar { display: none; }

.work__ruler {
  position: absolute; left: 0; top: 0; height: 34px; width: 100%;
  pointer-events: none;
  border-bottom: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px);
  background-size: 100% 12px, 100% 6px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
}
.work__ruler .ruler-label {
  position: absolute; top: 4px;
  font: 500 0.6rem/1 var(--font-mono); letter-spacing: 0.04em; color: var(--ink-3);
  white-space: nowrap; transform: translateX(4px);
}
.work__ruler .ruler-label b { color: var(--ink); font-weight: 600; }

.work__playhead {
  position: absolute; z-index: 0; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(var(--accent), var(--accent)) top / 2px 50px no-repeat,
              linear-gradient(rgba(255, 90, 31, 0.35), rgba(255, 90, 31, 0.35)) top / 1px 100% no-repeat;
  pointer-events: none;
}
.work__tc {
  position: absolute; top: -2px; left: 50%; translate: -50% -100%;
  padding: 6px 9px; border-radius: 7px; background: var(--accent); color: var(--ink);
  font: 600 0.64rem/1 var(--font-mono); letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.work__tc::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; translate: -50% 0;
  border: 5px solid transparent; border-bottom: 0; border-top-color: var(--accent);
}

.clip {
  --tint: var(--paper-2);
  --tint-ink: var(--ink);
  position: relative; z-index: 1;
  flex: none; width: min(64vw, 340px);
  display: flex; flex-direction: column; gap: 16px;
  scroll-snap-align: center;
  text-decoration: none; color: var(--ink);
}
.clip--wide { width: min(86vw, 620px); }
.clip__media {
  position: relative; width: 100%; aspect-ratio: 9 / 16;
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--tint);
  box-shadow: var(--shadow);
  transition: box-shadow 0.5s, transform 0.7s var(--ease-out);
}
.clip--wide .clip__media { aspect-ratio: 16 / 9; }
.clip__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip.is-active .clip__media { box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
/* top-left of every reel: format/length badge, and under it the language the reel is shot in */
.clip__meta {
  position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  pointer-events: none;
}
.clip__badge {
  padding: 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 0.62rem/1 var(--font-mono); letter-spacing: 0.05em;
}
.lang-pill {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-width: 0;
  padding: 5px 9px 5px 6px; border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font: 700 0.6rem/1.25 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 6px 14px -8px rgba(120, 40, 0, 0.6);
}
.lang-pill .icon { width: 12px; height: 12px; flex: none; }
.lang-pill > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.clip__play {
  position: absolute; z-index: 3; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 14px; border: 0; background: transparent;
  border-radius: inherit;
}
.clip__play-icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  box-shadow: 0 12px 26px -12px rgba(120, 40, 0, 0.7);
  transition: transform 0.6s var(--ease-out);
}
.clip__play-icon .icon { width: 20px; height: 20px; margin-left: 3px; }
@media (hover: hover) {
  .clip__media:hover .clip__play-icon { transform: scale(1.12); }
  .clip__media:hover { transform: translateY(-4px); }
}
.clip__kicker {
  display: flex; gap: 10px; margin-bottom: 8px;
  font: 500 0.68rem/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.clip__kicker span { color: var(--accent-ink); font-weight: 700; }
.clip__title { font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.7rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 660; }
.clip__client { margin: 4px 0 12px; font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--ink-2); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li {
  padding: 6px 9px; border-radius: 999px;
  background: var(--tint); color: var(--tint-ink);
  font: 600 0.62rem/1 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase;
}

.clip--empty { color: var(--ink); }
.clip__drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; aspect-ratio: 9 / 16;
  border: 2px dashed rgba(22, 19, 15, 0.22); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(22, 19, 15, 0.025) 14px 28px);
  text-align: center; padding: 20px;
  transition: border-color 0.4s, background-color 0.4s;
}
.clip__plus {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); font-size: 2rem; font-weight: 400; line-height: 1;
  transition: transform 0.6s var(--ease-out);
}
.clip__drop-title { font-size: 1.5rem; font-weight: 680; letter-spacing: -0.03em; line-height: 1.05; }
.clip__drop-sub { display: inline-flex; align-items: center; gap: 6px; font: 500 0.7rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
@media (hover: hover) {
  .clip--empty:hover .clip__drop { border-color: var(--accent); background-color: var(--accent-soft); }
  .clip--empty:hover .clip__plus { transform: rotate(90deg); }
}

.work__foot { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.work__progress { position: relative; flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.work__progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.work__count { font: 500 0.78rem var(--font-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.work__count b { color: var(--ink); font-weight: 600; }
.work__arrows { display: flex; gap: 8px; }

/* laptop/desktop-only controls (hidden on phones, where the swipe layout above is used) */
.work__edge, .work__next { display: none; }

/* ---------- Pinned desktop timeline (.is-pinned, the main laptop/desktop experience) ----------
   The section pins and scrolling the page slides the timeline sideways. */
.work.is-pinned .work__pin {
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column;
  padding-block: calc(var(--header-h) + 3.5vh) 3.2vh;
}
/* The viewport is a size container: cards are sized from the height actually left over after
   the heading and controls, so nothing is ever cropped on short laptop screens. */
.work.is-pinned .work__viewport {
  flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center;
  container: workvp / size;
}
.work.is-pinned .work__track {
  /* default (short screens): info sits BESIDE each video, so the video can use almost the full height */
  --mh: clamp(200px, calc(100cqh - 64px), 560px);
  overflow: visible; scroll-snap-type: none;
  width: max-content; gap: clamp(36px, 4vw, 72px);
  align-items: flex-start;
  padding: 46px calc(50vw - var(--mh) * 9 / 32) 12px;
  will-change: transform;
}
.work.is-pinned .clip { flex-direction: row; align-items: flex-end; gap: 22px; width: auto; }
.work.is-pinned .clip__media { flex: none; width: calc(var(--mh) * 9 / 16); }
.work.is-pinned .clip--wide .clip__media { width: calc(var(--mh) * 0.66 * 16 / 9); }
.work.is-pinned .clip__info { flex: none; width: clamp(190px, 15vw, 250px); padding-bottom: 2px; }
.work.is-pinned .clip--empty { width: calc(var(--mh) * 9 / 16); }
.work.is-pinned .tags li { flex: none; white-space: nowrap; }
.work.is-pinned .tags { flex-wrap: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.work.is-pinned .clip__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
/* the playhead timecode sits inside the viewport (it was above it, and the viewport clips) */
.work.is-pinned .work__tc { top: 6px; translate: -50% 0; }
.work.is-pinned .work__tc::after { display: none; }
.work.is-pinned .work__arrows { display: none; }

/* tall screens: room for the classic layout, with the info stacked under each video */
@container workvp (min-height: 640px) {
  .work.is-pinned .work__track {
    --mh: min(calc(100cqh - 236px), 560px);
    padding-top: 52px;
  }
  .work.is-pinned .clip { flex-direction: column; align-items: stretch; gap: 16px; width: calc(var(--mh) * 9 / 16); }
  .work.is-pinned .clip--wide { width: calc(var(--mh) * 0.66 * 16 / 9); }
  .work.is-pinned .clip__media,
  .work.is-pinned .clip--wide .clip__media { width: 100%; }
  .work.is-pinned .clip__info { width: auto; padding-bottom: 0; }
  .work.is-pinned .clip__title { -webkit-line-clamp: 2; }
}

/* short windows: a more compact heading frees space for the videos */
@media (max-height: 820px) {
  .work.is-pinned .work__head .h2 { font-size: min(7.2rem, 1.3rem + 6.2vw, 10.5vh); }
  .work.is-pinned .work__head .eyebrow { margin-bottom: 0.8rem; }
  .work.is-pinned .work__foot { margin-top: 16px; }
}

/* ---------- Desktop reel (.is-reel: desktops with Reduce Motion on, or very short windows) ----------
   A free horizontal reel: drag, trackpad / Shift+wheel sideways, arrows or keyboard. The normal mouse wheel
   always keeps scrolling the PAGE, so visitors can move on to the next section at any time.
   --mh = video height, sized so the whole reel (ruler + videos + titles + controls) fits on one screen. */
.work.is-reel .work__viewport { --mh: clamp(300px, calc(100vh - 420px), 540px); }
.work.is-reel .work__track {
  gap: clamp(28px, 2.6vw, 48px);
  padding: 50px calc(50% - var(--mh) * 9 / 32) 16px;
  scroll-snap-type: none;
  cursor: grab;
  -webkit-user-select: none; user-select: none;
}
.work.is-reel.is-dragging .work__track { cursor: grabbing; }
.work.is-reel.is-dragging .clip__media { pointer-events: none; }
.work.is-reel .clip { width: calc(var(--mh) * 9 / 16); scroll-snap-align: none; }
.work.is-reel .clip--wide { width: calc(var(--mh) * 0.66 * 16 / 9); }
.work.is-reel .clip__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.work.is-reel .tags { flex-wrap: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.work.is-reel .tags li { flex: none; white-space: nowrap; }

/* soft fade on both edges: there is more to see */
.work.is-reel .work__viewport::before,
.work.is-reel .work__viewport::after {
  content: ""; position: absolute; z-index: 2; top: 34px; bottom: 0; width: clamp(40px, 6vw, 110px);
  pointer-events: none; transition: opacity 0.4s;
}
.work.is-reel .work__viewport::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.work.is-reel .work__viewport::after { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }
.work.is-reel.at-start .work__viewport::before,
.work.is-reel.at-end .work__viewport::after { opacity: 0; }

/* big round arrows on the reel's edges, centred on the videos */
.work.is-reel .work__edge {
  position: absolute; z-index: 3; top: calc(50px + var(--mh) / 2);
  display: grid; place-items: center;
  width: 58px; height: 58px; margin-top: -29px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.9); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: opacity 0.35s, transform 0.5s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.work.is-reel .work__edge .icon { width: 22px; height: 22px; }
.work.is-reel .work__edge--prev { left: max(14px, calc(var(--pad) - 10px)); }
.work.is-reel .work__edge--next { right: max(14px, calc(var(--pad) - 10px)); }
.work.is-reel .work__edge:disabled { opacity: 0; transform: scale(0.7); pointer-events: none; }
@media (hover: hover) {
  .work.is-reel .work__edge:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
}

/* "Skip to next section" (pinned) / "Next: Services" (reel): jump straight past the timeline */
.work.is-pinned .work__next,
.work.is-reel .work__next {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  height: 48px; padding: 0 6px 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 600 0.92rem/1 var(--font-display); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.5s var(--ease-out);
}
.work__next-icon {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
}
.work__next-icon .icon { width: 16px; height: 16px; animation: nudge 1.8s var(--ease-io) infinite; }
@media (hover: hover) {
  .work.is-pinned .work__next:hover,
  .work.is-reel .work__next:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-2px); }
}

/* short laptop windows: titles sit BESIDE each video so the whole reel still fits on screen */
@media (max-height: 779px) {
  .work.is-reel .work__viewport { --mh: clamp(240px, calc(100vh - 270px), 500px); }
  .work.is-reel .clip { flex-direction: row; align-items: flex-end; gap: 22px; width: auto; }
  .work.is-reel .clip__media { flex: none; width: calc(var(--mh) * 9 / 16); }
  .work.is-reel .clip--wide .clip__media { width: calc(var(--mh) * 0.66 * 16 / 9); }
  .work.is-reel .clip__info { flex: none; width: clamp(190px, 15vw, 240px); padding-bottom: 2px; }
  .work.is-reel .clip--empty { width: calc(var(--mh) * 9 / 16); }
  .work.is-reel .clip__title { -webkit-line-clamp: 3; }
  .work.is-reel .work__head .h2 { font-size: min(7.2rem, 1.3rem + 6.2vw, 10.5vh); }
  .work.is-reel .work__head .eyebrow { margin-bottom: 0.8rem; }
  .work.is-reel .work__foot { margin-top: 16px; }
}

/* ---------- Player (lightbox) ---------- */
.player { --ratio: 9 / 16; width: 100%; }
.player--inline { width: min(100%, calc(74svh * 9 / 16), 440px); }
.player__screen {
  position: relative; aspect-ratio: var(--ratio);
  border-radius: 26px; overflow: hidden; isolation: isolate;
  background: #eadcca;
  box-shadow: var(--shadow-lg);
}
.player__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.player--lightbox .player__video { object-fit: contain; }
.player__big {
  position: absolute; z-index: 2; left: 50%; bottom: 18px; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px 7px 7px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-weight: 650; font-size: 0.95rem; color: var(--ink); white-space: nowrap;
  box-shadow: 0 16px 30px -16px rgba(60, 30, 10, 0.5);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.player__big-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); }
.player__big-icon .icon { width: 18px; height: 18px; margin-left: 3px; }
.player--lightbox .player__big { bottom: 50%; translate: -50% 50%; padding: 8px; }
.player.is-full .player__big, .player.is-playing.is-full .player__big { opacity: 0; pointer-events: none; transform: translateY(12px); }
.player.is-full:not(.is-playing) .player__big { opacity: 1; pointer-events: auto; transform: none; }
.player__badge {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 0.6rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  transition: opacity 0.3s;
}
.player__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s steps(2, jump-none) infinite; }
.player.is-full .player__badge { opacity: 0; }

.player__bar {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 6px;
  border-radius: 999px; background: var(--card);
  box-shadow: var(--shadow);
}
.player__btn {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--paper-2); color: var(--ink);
  transition: background-color 0.3s;
}
.player__btn .icon { width: 18px; height: 18px; }
@media (hover: hover) { .player__btn:hover { background: var(--accent); } }
.player__scrub { position: relative; flex: 1; min-width: 60px; height: 40px; cursor: pointer; touch-action: none; }
.player__rail {
  position: absolute; left: 0; right: 0; top: 50%; height: 6px; translate: 0 -50%;
  border-radius: 9px; background: var(--paper-3); overflow: hidden;
}
.player__buffer, .player__fill { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); }
.player__buffer { background: rgba(22, 19, 15, 0.1); }
.player__fill { background: var(--ink); }
.player__marks { position: absolute; inset: 0; pointer-events: none; }
.player__marks .cut {
  position: absolute; top: 50%; width: 2px; height: 12px; translate: -50% -50%;
  border-radius: 2px; background: var(--accent); opacity: 0.85;
}
.player__marks .chap {
  position: absolute; top: 50%; width: 4px; height: 18px; translate: -50% -50%;
  border-radius: 3px; background: var(--ink);
  box-shadow: 0 0 0 2px var(--card);
}
.player__knob {
  position: absolute; top: 50%; left: 0; width: 16px; height: 16px; translate: -50% -50%;
  border-radius: 50%; background: var(--card); border: 3px solid var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}
.player__scrub:active .player__knob, .player__scrub.is-dragging .player__knob { transform: scale(1.25); }
.player__tc { flex: none; padding-inline: 4px; font: 600 0.7rem/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
@media (max-width: 380px) { .player__tc { display: none; } }

/* ---------- Services ---------- */
.services { position: relative; padding-block: clamp(96px, 12vw, 180px); }
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc__link {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 60px;
  grid-template-areas:
    "num title thumb"
    "num desc desc"
    "num tags arrow";
  column-gap: 12px; row-gap: 10px; align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.svc__link::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1;
  background: var(--card);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease-out);
}
.svc__num { grid-area: num; align-self: start; padding-top: 0.5em; font: 600 0.74rem var(--font-mono); color: var(--accent-ink); }
.svc__title {
  grid-area: title;
  font-size: clamp(1.75rem, 1.05rem + 2.9vw, 3.7rem); font-weight: 700; letter-spacing: -0.045em; line-height: 0.98;
  font-stretch: 88%;
  transition: transform 0.6s var(--ease-out);
}
.svc__desc { grid-area: desc; color: var(--ink-2); max-width: 46ch; }
.svc__tags { grid-area: tags; font: 500 0.68rem/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.svc__thumb {
  grid-area: thumb; justify-self: end;
  width: 56px; height: 56px; border-radius: 16px; overflow: hidden;
  background: var(--paper-3);
}
.svc__thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc__thumb--ratio { display: grid; place-items: center; background: var(--butter); }
.svc__thumb--ratio i { width: 18px; height: 30px; border: 2px solid var(--ink); border-radius: 5px; box-shadow: 6px 6px 0 -2px var(--accent); }
.svc__arrow {
  grid-area: arrow; justify-self: end;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  transition: transform 0.6s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.svc__arrow .icon { width: 18px; height: 18px; }
@media (min-width: 1024px) {
  .svc__link {
    grid-template-columns: 70px minmax(0, 1.15fr) minmax(0, 1fr) 150px 56px;
    grid-template-areas: "num title desc tags arrow";
    column-gap: 28px; padding: 34px 0;
  }
  .svc__num { padding-top: 0; align-self: center; }
  .svc__thumb { display: none; }
  .svc__arrow { width: 52px; height: 52px; }
}
@media (hover: hover) {
  .svc__link:hover::before { transform: scaleY(1); }
  .svc__link:hover .svc__title { transform: translateX(14px); }
  .svc__link:hover .svc__arrow { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
}
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 230px; aspect-ratio: var(--ratio, 9 / 16);
  border-radius: 20px; overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-lg);
  pointer-events: none; opacity: 0; visibility: hidden;
}
.svc-preview.is-wide { width: 380px; }
.svc-preview video { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (pointer: coarse) { .svc-preview { display: none; } }

/* ---------- Details (bento) ---------- */
.details { padding-block: clamp(40px, 6vw, 80px) clamp(96px, 12vw, 180px); }
.bento { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--beat, .tile--captions { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile--beat, .tile--captions { grid-column: span 2; }
}
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 14px 24px;
  border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line-2);
  box-shadow: 0 1px 1px rgba(22, 19, 15, 0.03);
}
.tile__viz {
  position: relative; overflow: hidden;
  height: 190px; margin-bottom: 12px;
  border-radius: calc(var(--radius-lg) - 8px);
}
.tile__title, .tile__text { padding-inline: 10px; }
.tile__title { font-size: 1.4rem; font-weight: 680; letter-spacing: -0.03em; line-height: 1.1; }
.tile__text { color: var(--ink-2); font-size: 0.98rem; }

/* beat */
.beat { background: #fff0e6; }
.beat__bars { position: absolute; inset: 44px 18px 30px; display: flex; align-items: center; gap: 3px; }
.beat__bars i { flex: 1; height: calc(var(--h, 0.5) * 100%); border-radius: 3px; background: rgba(22, 19, 15, 0.16); }
.beat__bars--played { clip-path: inset(0 100% 0 0); animation: played 4.068s linear infinite; }
.beat__bars--played i { background: var(--accent); }
.beat__cuts b {
  position: absolute; top: 36px; bottom: 22px; width: 2px; margin-left: -1px;
  left: calc(18px + (100% - 36px) * var(--k) / 8);
  background: var(--ink); opacity: 0.18; border-radius: 2px;
  animation: cutflash 4.068s linear infinite;
  animation-delay: calc(var(--k) * 4.068s / 8 - 4.068s);
}
.beat__head { position: absolute; inset: 30px 18px 16px; animation: head 4.068s linear infinite; }
.beat__head::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.beat__head::after { content: ""; position: absolute; left: -6px; top: -4px; border: 6px solid transparent; border-bottom: 0; border-top: 8px solid var(--ink); }
.beat__bpm {
  position: absolute; top: 12px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 0.66rem/1 var(--font-mono); letter-spacing: 0.06em;
}
.beat__bpm i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: thump 0.5085s var(--ease-out) infinite; }

/* captions */
.caps { background: #ece8ff; display: grid; place-items: center; padding: 18px; }
.caps__lang {
  position: absolute; top: 12px; left: 14px;
  padding: 6px 9px; border-radius: 999px; background: var(--card);
  font: 700 0.62rem/1 var(--font-mono); letter-spacing: 0.08em;
}
.caps__line {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.18em 0.24em;
  max-width: 14em; text-align: center;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 760; letter-spacing: -0.02em; line-height: 1.15;
}
.caps__line span {
  display: inline-block; padding: 0.02em 0.16em; border-radius: 0.24em;
  opacity: 0; transform: translateY(0.35em) scale(0.9);
  transition: opacity 0.25s, transform 0.45s var(--ease-out), background-color 0.25s, color 0.25s;
}
.caps__line span.on { opacity: 1; transform: none; }
.caps__line span.hl { background: linear-gradient(90deg, #6d3cff, #ff5a1f); color: #fff; }
.caps__line span.script { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* aspect ratios */
.ratio { background: #e2f4ea; display: grid; place-items: center; }
.ratio__box {
  display: grid; place-items: center;
  width: 62px; height: 110px;
  border: 2px solid var(--ink); border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  transition: width 0.8s var(--ease-out), height 0.8s var(--ease-out);
}
.ratio__label { font: 700 0.8rem var(--font-mono); }
.ratio__name { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font: 500 0.64rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }

/* LUT swatches */
.lut { background: #fff4d2; display: grid; place-items: center; align-content: center; gap: 18px; }
.lut__row { display: flex; gap: 8px; }
.lut__row i {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--raw);
  box-shadow: inset 0 0 0 1px rgba(22, 19, 15, 0.08);
  animation: lut 4s var(--ease-io) infinite;
}
.lut__row i:nth-child(2) { animation-delay: 0.08s; }
.lut__row i:nth-child(3) { animation-delay: 0.16s; }
.lut__row i:nth-child(4) { animation-delay: 0.24s; }
.lut__row i:nth-child(5) { animation-delay: 0.32s; }
.lut__label { position: relative; display: grid; font: 700 0.66rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.lut__label b { grid-area: 1 / 1; text-align: center; padding: 7px 11px; border-radius: 999px; background: var(--card); }
.lut__raw { animation: lutA 4s var(--ease-io) infinite; }
.lut__grd { animation: lutB 4s var(--ease-io) infinite; background: var(--accent) !important; }

/* watermark preview */
.wm { background: #e1edff; display: grid; place-items: center; }
.wm__frame {
  position: relative; height: 158px; aspect-ratio: 9 / 16;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 30px -16px rgba(20, 30, 60, 0.45);
}
.wm__frame img { width: 100%; height: 100%; object-fit: cover; }
.wm__pattern {
  position: absolute; inset: -70%;
  display: flex; flex-direction: column; justify-content: space-around;
  transform: rotate(-28deg);
  font: 800 7px/1 var(--font-display); letter-spacing: 0.14em; white-space: nowrap;
  color: rgba(255, 255, 255, 0.5);
}
.wm__pattern span { animation: wmmove 7s linear infinite; }
.wm__pattern span:nth-child(even) { animation-direction: reverse; }
.wm__lockup {
  position: absolute; left: 0; right: 0; top: 58%;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.wm__lockup b { font-size: 8.5px; letter-spacing: 0.14em; font-weight: 800; }
.wm__lockup small { font-size: 5.5px; letter-spacing: 0.4em; }

/* safe zones */
.safe { background: #ffe7dc; display: grid; place-items: center; }
.safe__phone {
  position: relative; height: 160px; aspect-ratio: 9 / 16;
  border: 2px solid var(--ink); border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}
.safe__zone { position: absolute; background: repeating-linear-gradient(135deg, rgba(255, 90, 31, 0.22) 0 5px, transparent 5px 10px); }
.safe__zone--top { left: 0; right: 0; top: 0; height: 14%; }
.safe__zone--bottom { left: 0; right: 0; bottom: 0; height: 24%; }
.safe__zone--side { right: 0; top: 40%; bottom: 24%; width: 18%; display: flex; flex-direction: column; align-items: center; justify-content: space-around; padding-block: 4px; }
.safe__zone--side i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); opacity: 0.7; }
.safe__title {
  position: absolute; left: 10%; right: 22%; top: 30%;
  padding: 4px 0; border: 1.5px dashed var(--ink); border-radius: 6px;
  font: 800 9px/1 var(--font-display); text-align: center; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--butter);
  animation: safeIn 4s var(--ease-out) infinite;
}

/* pause decorative loops when off-screen */
.tile:not(.is-inview) *,
.tile:not(.is-inview) *::before,
.tile:not(.is-inview) *::after { animation-play-state: paused !important; }

/* ---------- Process (stacking clips) ---------- */
.process { padding-block: clamp(96px, 12vw, 180px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step { position: sticky; top: calc(var(--header-h) + 16px + var(--i) * 40px); }
.step__card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 -10px 30px -20px rgba(70, 45, 20, 0.35), 0 1px 1px rgba(22, 19, 15, 0.03);
  transform-origin: 50% 0;
  will-change: transform;
}
.step__bar {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 14px;
  background: var(--c);
  font: 600 0.66rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.step__track { padding: 4px 6px; border-radius: 5px; background: var(--card); }
.step__file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0.01em; }
.step__tc { margin-left: auto; opacity: 0.65; font-variant-numeric: tabular-nums; }
.step__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 22px; padding: 22px 20px 16px; align-items: start; }
.step__num {
  /* solid fill: outlining a variable font exposes its internal contours and overlapping digits */
  font-size: clamp(3.2rem, 2.2rem + 4.4vw, 6.6rem); font-weight: 760; letter-spacing: -0.02em; line-height: 0.78;
  font-stretch: 80%;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--n, var(--ink));
}
.step__title { font-size: clamp(1.45rem, 1.05rem + 1.8vw, 2.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 10px; }
.step__text { color: var(--ink-2); max-width: 54ch; font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.1rem); }
.step__strip { height: 42px; margin: 4px 14px 14px; border-radius: 12px; background: var(--paper-2); }
.step__strip--film {
  background:
    repeating-linear-gradient(90deg, transparent 0 58px, var(--card) 58px 62px),
    linear-gradient(90deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c));
}
.step__strip--beats {
  background:
    repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(90deg, rgba(22, 19, 15, 0.16) 0 3px, transparent 3px 8px) 0 50% / 100% 46% no-repeat,
    color-mix(in srgb, var(--c) 45%, #fff);
}
.step__strip--grade { background: linear-gradient(90deg, #8f9aa3 0%, #b9a88e 30%, #d76000 70%, #f1d6ae 100%); }
.step__strip--wave {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20 Q 10 4 20 20 T 40 20 T 60 20 Q 70 30 80 20 T 100 20 Q 110 2 120 20 T 140 20 T 160 20 Q 170 34 180 20 T 200 20 Q 210 6 220 20 T 240 20 T 260 20 Q 270 32 280 20 T 300 20 Q 310 3 320 20 T 340 20 T 360 20 Q 370 30 380 20 T 400 20' fill='none' stroke='%2316130f' stroke-opacity='.55' stroke-width='2'/%3E%3C/svg%3E") 0 50% / 200px 100% repeat-x,
    color-mix(in srgb, var(--c) 55%, #fff);
}
@media (min-width: 900px) {
  .step__body { grid-template-columns: 180px minmax(0, 1fr); padding: 30px 30px 20px; }
  .step__strip { margin: 4px 20px 20px; height: 48px; }
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding-block: clamp(96px, 12vw, 180px);
  background:
    radial-gradient(80% 60% at 0% 10%, #ffe6d8 0%, transparent 60%),
    radial-gradient(60% 50% at 100% 90%, #ebe6ff 0%, transparent 60%),
    var(--paper);
}
.contact__inner { display: grid; gap: 56px; }
.contact__title {
  font-size: clamp(3rem, 1.3rem + 7.2vw, 7.6rem); font-weight: 760; line-height: 0.9; letter-spacing: -0.055em;
  font-stretch: 85%;
  margin-bottom: 22px;
}
.contact__title em { color: var(--accent-text); }
.contact__lede { max-width: 32ch; font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-2); }
.founder { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.founder__img {
  width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover; background: var(--paper-3);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent);
}
.founder__txt { display: flex; flex-direction: column; margin: 0; line-height: 1.25; }
.founder__txt b { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.025em; }
.founder__txt span { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--ink-2); }
.chip--face { object-position: 50% 30%; }
.contact__links { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.contact__link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 2px; border-bottom: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem); letter-spacing: -0.02em;
  transition: padding 0.5s var(--ease-out), color 0.3s;
  word-break: break-word;
}
.contact__link .icon { width: 22px; height: 22px; color: var(--accent); }
@media (hover: hover) { .contact__link:hover { padding-left: 12px; } }
.badge { position: relative; width: 148px; height: 148px; margin-top: 40px; display: none; }
.badge__ring { width: 100%; height: 100%; animation: spin 16s linear infinite; }
.badge__ring text { font: 600 13.4px var(--font-mono); letter-spacing: 3.1px; fill: var(--ink); }
.badge__core { position: absolute; inset: 31%; display: grid; place-items: center; border-radius: 50%; background: var(--accent); }
.badge__core .icon { width: 24px; height: 24px; }
@media (min-width: 1024px) {
  .contact__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: start; }
  .contact__head { position: sticky; top: calc(var(--header-h) + 36px); }
  .badge { display: block; }
  .badge__core .icon { transform: rotate(-90deg); }
}

.brief {
  display: grid; gap: 30px;
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
}
.brief__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.brief__legend { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 0; font: 600 0.74rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.brief__legend span { color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-opt span {
  display: inline-flex; align-items: center;
  min-height: 46px; padding: 0 17px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-weight: 560; font-size: 0.96rem;
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
  pointer-events: none;
}
.chip-opt .icon { width: 0; height: 16px; opacity: 0; transition: width 0.35s var(--ease-out), opacity 0.3s, margin 0.35s var(--ease-out); }
.chip-opt input:checked + span { background: var(--accent); border-color: var(--accent); }
.chip-opt input:checked + span .icon { width: 16px; opacity: 1; margin-right: 7px; }
.chip-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .chip-opt:hover span { border-color: var(--ink); } }
.chip-opt:active span { transform: scale(0.96); }

.brief__fields { display: grid; gap: 6px; }
.field { position: relative; }
.field input, .field textarea {
  display: block; width: 100%;
  padding: 26px 0 10px;
  border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink);
  font: 500 1.0625rem/1.4 var(--font-display);
  outline: none; resize: vertical;
  transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 96px; }
.field label {
  position: absolute; left: 0; top: 26px;
  color: var(--ink-3); pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.35s var(--ease-out), color 0.3s;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(0.76); color: var(--ink-2); }
.brief__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.brief__actions .btn { flex: 1 1 210px; }
.brief__actions .btn .icon { width: 18px; height: 18px; }
.brief__note { font: 500 0.7rem/1.5 var(--font-mono); color: var(--ink-3); }
.brief__note.is-pending { padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); font-size: 0.78rem; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: clip; padding-top: clamp(72px, 9vw, 130px); border-top: 1px solid var(--line); background: var(--paper); }
.footer__top { display: grid; gap: 44px; }
.footer__cta { display: grid; gap: 6px; text-decoration: none; color: var(--ink); width: fit-content; }
.footer__cta-small { font: 500 0.74rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.footer__cta-big {
  display: inline-flex; align-items: center; gap: 0.25em;
  font-size: clamp(2.3rem, 1.2rem + 4.4vw, 5rem); font-weight: 720; letter-spacing: -0.05em; line-height: 1;
}
.footer__cta-big .icon { width: 0.8em; height: 0.8em; color: var(--accent); transition: transform 0.6s var(--ease-out); }
@media (hover: hover) { .footer__cta:hover .icon { transform: rotate(45deg); } }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.footer__cols > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.footer__cols > div:first-child { grid-column: 1 / -1; }
.footer__cols a, .footer__clock { font-weight: 600; text-decoration: none; letter-spacing: -0.01em; word-break: break-word; }
.footer__cols a:hover { color: var(--accent); }
.footer__label { font: 500 0.66rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.footer__clock { font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1.1fr 1fr; align-items: end; }
  .footer__cols { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); }
  .footer__cols > div:first-child { grid-column: auto; }
}

.footer__mark {
  display: flex; flex-direction: column; align-items: center;
  margin-top: clamp(56px, 8vw, 110px);
  font-size: 28vw; font-weight: 760; line-height: 0.8; letter-spacing: -0.032em;
  font-stretch: 78%;
  user-select: none;
}
.fm-line { display: block; overflow: hidden; padding: 0.02em 0.06em 0.08em; white-space: nowrap; }
.fm-line--serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.035em; color: var(--accent-text); }
.fm-ch { display: inline-block; will-change: transform; }
@media (min-width: 900px) {
  .footer__mark { flex-direction: row; justify-content: center; gap: 0.14em; font-size: 16vw; }
}
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding-block: 24px calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font: 500 0.7rem/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}
.footer__tag { font-family: var(--font-serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1.15rem; color: var(--ink); }
.rewind {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font: 600 0.7rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.rewind .icon { width: 16px; height: 16px; color: var(--accent); }
@media (hover: hover) { .rewind:hover { background: var(--accent); } .rewind:hover .icon { color: var(--ink); } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
}
.lightbox[hidden] { display: none; }
.lightbox { overscroll-behavior: contain; }
.lightbox__backdrop {
  position: absolute; inset: 0;
  touch-action: none;
  background: rgba(246, 243, 238, 0.84);
  -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2);
  opacity: 0; transition: opacity 0.45s;
}
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox__dialog {
  --ar: 0.5625;
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  width: min(100%, calc((100svh - 215px) * var(--ar)));
  opacity: 0; transform: translateY(36px) scale(0.97);
  transition: opacity 0.4s, transform 0.7s var(--ease-out);
}
.lightbox[data-orientation="landscape"] .lightbox__dialog { width: min(100%, 1180px, calc((100svh - 215px) * var(--ar))); }
.lightbox.is-open .lightbox__dialog { opacity: 1; transform: none; }
.lightbox__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.lightbox__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 600 0.66rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.lightbox__kicker .lang-pill { box-shadow: none; }
.lightbox__title { font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.lightbox__close {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.lightbox__close .icon { width: 20px; height: 20px; }
@media (hover: hover) { .lightbox__close:hover { background: var(--accent); transform: rotate(90deg); } }
.player--lightbox .player__screen { background: #e9e1d4; }

/* ---------- Cursor, HUD, toast, grain ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none; display: none; }
.cursor__label {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  display: grid; place-items: center;
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  font: 700 0.7rem/1.1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
  transform: scale(0); transition: transform 0.45s var(--ease-out);
  box-shadow: 0 14px 30px -14px rgba(120, 40, 0, 0.7);
}
.cursor.is-active .cursor__label { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

.hud {
  position: fixed; left: 20px; bottom: 20px; z-index: 40;
  display: none; align-items: center; gap: 10px;
  padding: 9px 14px 9px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  font: 600 0.64rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
  pointer-events: none;
}
.hud.is-visible { opacity: 1; transform: none; }
.hud__rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.2s steps(2, jump-none) infinite; }
.hud__tc { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hud__bar { width: 70px; height: 3px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.hud__bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
@media (min-width: 1024px) and (hover: hover) { .hud { display: flex; } }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 140;
  translate: -50% 0;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 0.92rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: none; }

.grain {
  position: fixed; inset: -60px; z-index: 90; pointer-events: none;
  display: none;
  opacity: 0.06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@media (min-width: 1024px) and (hover: hover) { .grain { display: block; } }

/* ---------- Keyframes ---------- */
@keyframes blink { 0% { opacity: 1; } 100% { opacity: 0.15; } }
@keyframes nudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }
@keyframes wave { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1.25); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes played { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes head { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes cutflash { 0% { opacity: 1; background: var(--accent); transform: scaleY(1.12); } 14% { opacity: 0.22; background: var(--ink); transform: none; } 100% { opacity: 0.22; background: var(--ink); } }
@keyframes thump { 0% { transform: scale(1.5); } 60%, 100% { transform: scale(0.85); } }
@keyframes lut { 0%, 38% { background: var(--raw); } 50%, 88% { background: var(--grd); } 100% { background: var(--raw); } }
@keyframes lutA { 0%, 38% { opacity: 1; transform: none; } 46%, 92% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
@keyframes lutB { 0%, 40% { opacity: 0; transform: translateY(6px); } 50%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes wmmove { from { transform: translateX(0); } to { transform: translateX(-25%); } }
@keyframes safeIn {
  0%, 12% { transform: translate(0, 230%); background: #ffb3a1; }
  28%, 100% { transform: none; background: var(--butter); }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-18px, 12px); }
  40% { transform: translate(14px, -22px); }
  60% { transform: translate(-26px, -8px); }
  80% { transform: translate(20px, 18px); }
  100% { transform: translate(0, 0); }
}

/* ---------- No-JS / failsafe / reduced motion ---------- */
.no-js .stack__card:not(:first-child) { display: none; }
.is-failsafe .stack__card { position: absolute; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
  .wall__track { animation: none !important; }
}
