/* ──────────────────────────────────────────────
   Sourashis Ghosh Roy — portfolio
   Retro pop: cream paper, plum, mustard, teal and
   vermilion, halftone print, dark camera gear.
   Two families: Shrikhand (display) and
   Inter Tight (text + every label / readout).
   ────────────────────────────────────────────── */
:root {
  /* the pop palette */
  --cream: #f5e9d3;
  --plum: #86374a;
  --plum-d: #5a2233;
  --mustard: #eaa93a;
  --saffron: #e5762c;
  --vermilion: #dd4f33;
  --teal: #1f5048;
  --teal-d: #163b35;

  /* paper (default theme) */
  --bg: var(--cream);
  --surface: #ecdcc0;
  --surface-2: #e2cfaf;
  --fg: #24170f;
  --fg-2: #50392b;
  --mute: #7d6552;
  --line: rgba(36, 23, 15, 0.16);
  --line-2: rgba(36, 23, 15, 0.32);
  --accent-txt: #b13c22;
  --pop: #c4432a;
  --shadow: var(--mustard);

  /* signal colours */
  --tally: #e5432d;
  --amber: var(--mustard);

  /* gear (monitors, slate) */
  --g-bg: #1f1511;
  --g-surface: #2b1f19;
  --g-fg: #f5e9d3;
  --g-fg-2: #d6c6ab;
  --g-mute: #a08c76;
  --g-line: rgba(245, 233, 211, 0.14);

  --display: "Shrikhand", "Cooper Black", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;

  /* spacing: one 8px scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --gut: clamp(16px, 4vw, 56px);
  --wrap: min(1320px, 100% - 2 * var(--gut));
  --hud: 64px;
  --r-m: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
}

/* anything that is a piece of camera gear, or a dark room */
/* section themes, all on the same tokens */
.t-plum, .t-teal {
  --fg: var(--cream); --fg-2: rgba(245, 233, 211, 0.86); --mute: rgba(245, 233, 211, 0.66);
  --line: rgba(245, 233, 211, 0.18); --line-2: rgba(245, 233, 211, 0.38);
  --accent-txt: var(--mustard); --pop: var(--mustard);
  background: var(--bg); color: var(--fg);
}
.t-plum { --bg: var(--plum); --surface: #722e3f; --surface-2: #7c3445; --shadow: var(--plum-d); }
.t-teal { --bg: var(--teal); --surface: var(--teal-d); --surface-2: #245a51; --shadow: var(--teal-d); }

.on-dark, .monitor, .bin, .slate-body, .slate-done {
  --bg: var(--g-bg);
  --surface: var(--g-surface);
  --surface-2: #2c2922;
  --fg: var(--g-fg);
  --fg-2: var(--g-fg-2);
  --mute: var(--g-mute);
  --line: var(--g-line);
  --line-2: rgba(241, 236, 226, 0.28);
  --accent-txt: #ff8a6b;
  color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hud); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
[hidden] { display: none !important; }
::selection { background: var(--tally); color: #fff; }
:focus-visible { outline: 2px solid var(--tally); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: var(--wrap); margin-inline: auto; }
/* labels and readouts: the same sans, small caps-style */
.lbl {
  font-family: var(--sans); font-size: 11px; font-weight: 500; line-height: 1.35;
  letter-spacing: 0.14em; text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.k { color: var(--mute); }
/* section kicker: a short rule in the section's accent, then the label */
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--mute); }
.kicker::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--pop); }
em { font-style: normal; color: var(--pop); }
strong { font-weight: 600; color: var(--fg); }

h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 5vw, 76px); line-height: 1.04; letter-spacing: 0;
  margin-top: var(--s2); text-wrap: balance;
  text-shadow: 3px 3px 0 var(--shadow);
}
h3 { font-family: var(--sans); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }

/* halftone print, laid over photographs */
.halftone { position: relative; }
.halftone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: 0.32;
  background: radial-gradient(circle at center, #24170f 0 0.9px, transparent 1.4px) 0 0 / 4px 4px;
}

.skip { position: fixed; left: 16px; top: 12px; z-index: 300; padding: 10px 16px; background: var(--fg); color: var(--bg); border-radius: 99px; transform: translateY(-200%); }
.skip:focus { transform: none; }

.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: 0.08; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -2%); } 80% { transform: translate(3%, 3%); }
}

/* ── Buttons: one family ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 99px;
  font-size: 15px; font-weight: 600; white-space: nowrap; box-shadow: 3px 3px 0 var(--shadow);
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--shadow); }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { background: var(--tally); color: #fff; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-tally { background: var(--tally); color: #fff; }
.btn-tally:hover { background: var(--mustard); color: var(--g-bg); }
.slate .btn { --shadow: var(--mustard); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 16px; }

/* ── Iris (load) ── */
.iris { position: fixed; inset: 0; z-index: 250; pointer-events: none; }
.iris svg { width: 100%; height: 100%; display: block; }
.iris .blades { transform-box: fill-box; transform-origin: center; animation: iris 1.5s 0.25s var(--ease) both; }
@keyframes iris { from { transform: scale(0.01) rotate(0deg); } to { transform: scale(1) rotate(60deg); } }

/* ── HUD ── */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hud);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 max(var(--gut), calc((100% - 1320px) / 2));
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.hud { background: rgba(245, 233, 211, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.hud.is-scrolled { box-shadow: 0 8px 24px -16px rgba(36, 23, 15, 0.4); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; justify-self: start; }
.brand-name { font-family: var(--display); font-size: 22px; line-height: 1; color: var(--plum); }
.tally { width: 10px; height: 10px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 10px rgba(229, 67, 45, 0.6); animation: blink 1.6s infinite; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.3; } }
.nav { display: flex; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px; font-size: 14px; font-weight: 500; transition: background 0.2s, color 0.2s; }
.nav a:hover { background: var(--surface-2); }
.nav a.is-active { background: var(--fg); color: var(--bg); }
.hud-read { justify-self: end; display: flex; gap: 24px; color: var(--mute); }
.hud-read b { color: var(--fg); font-weight: 600; margin-left: 6px; }

/* ── 1. HERO ── */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--hud) + 32px) 0 96px;
  --mx: 62%; --my: 40%; --r: clamp(220px, 26vw, 380px);
}
.wall { position: absolute; inset: -3%; }
.wall-layer {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-content: start;
}
.wall-layer img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.wall-soft { filter: grayscale(1) contrast(1.25) brightness(1.15) blur(4px); }
.wall .wash { position: absolute; inset: 0; background: var(--plum); mix-blend-mode: multiply; }
.wall .dots { position: absolute; inset: 0; mix-blend-mode: multiply; opacity: 0.45;
  background: radial-gradient(circle at center, var(--plum-d) 0 1.2px, transparent 1.8px) 0 0 / 6px 6px; }
.wall-sharp {
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, #000 45%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, #000 45%, transparent 100%);
}
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--plum) 0%, var(--plum) 24%, rgba(134, 55, 74, 0.75) 44%, rgba(134, 55, 74, 0) 66%),
    linear-gradient(to right, rgba(134, 55, 74, 0.6) 0%, rgba(134, 55, 74, 0) 55%);
}
.vf { position: absolute; inset: calc(var(--hud) + 16px) var(--gut) 64px; pointer-events: none; }
.vf .c { position: absolute; width: 32px; height: 32px; border: 0 solid rgba(245, 233, 211, 0.7); }
.vf .tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.vf .tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.vf .bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.vf .br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

.af-box {
  position: absolute; left: 0; top: 0; width: 132px; height: 92px; pointer-events: none; z-index: 2;
  transform: translate(calc(var(--ax, 62vw) - 50%), calc(var(--ay, 40vh) - 50%));
  transition: transform 0.45s var(--ease);
}
.af-box::before, .af-box::after, .af-box span::before, .af-box span::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid #fff; transition: border-color 0.3s;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.45));
}
.af-box::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.af-box::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.af-box span::before { top: 0; right: 0; border-width: 2px 2px 0 0; }
.af-box span::after { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.af-box i {
  position: absolute; left: 0; top: calc(100% + 8px); font-style: normal; font-size: 10px; white-space: nowrap;
  padding: 3px 7px; border-radius: 3px; background: var(--g-bg); color: var(--g-fg);
}
.af-box.is-locked::before, .af-box.is-locked::after, .af-box.is-locked span::before, .af-box.is-locked span::after { border-color: var(--tally); }
.af-box.is-locked i { background: var(--tally); color: #fff; }

.hero-body { position: relative; z-index: 3; }
.eyebrow { color: var(--accent-txt); margin-bottom: 24px; animation: fade 1s 0.8s both; }
.name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(54px, 9vw, 148px); line-height: 1; letter-spacing: 0;
  color: var(--cream);
  text-shadow: 3px 3px 0 var(--saffron), 7px 7px 0 var(--plum-d);
}
.name > span { display: inline-block; padding-right: 0.06em; animation: rise 1.2s 0.9s var(--ease) both; }
.name > span:nth-child(2) { animation-delay: 1.02s; }
.name em { color: var(--mustard); }
.sticker {
  position: absolute; right: 0; top: -12px; width: 148px; height: 148px; display: grid; place-items: center; text-align: center;
  background: var(--mustard); color: var(--plum-d); transform: rotate(-10deg);
  clip-path: polygon(50% 0%, 61% 13%, 77% 6%, 80% 22%, 96% 25%, 90% 40%, 100% 50%, 90% 60%, 96% 75%, 80% 78%, 77% 94%, 61% 87%, 50% 100%, 39% 87%, 23% 94%, 20% 78%, 4% 75%, 10% 60%, 0% 50%, 10% 40%, 4% 25%, 20% 22%, 23% 6%, 39% 13%);
  animation: fade 1s 1.5s both;
}
.sticker b { display: block; font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 0.9; }
.sticker span { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 560px) auto; justify-content: space-between; align-items: end;
  gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-2);
  animation: fade 1s 1.3s both;
}
.lede { color: var(--fg-2); font-size: clamp(16px, 1.35vw, 19px); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
@keyframes rise { from { transform: translateY(30%); opacity: 0; filter: blur(10px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.exposure {
  position: absolute; left: 0; right: 0; bottom: 24px; z-index: 3; margin-inline: auto;
  display: flex; align-items: center; gap: 32px; color: var(--mute); font-size: 10.5px;
}
.exposure b { color: var(--fg); font-weight: 600; margin-right: 6px; }
.exposure i { font-style: normal; }
.exposure .hint { margin-left: auto; color: var(--fg-2); }

/* ── Monitor (shared chrome) ── */
.monitor { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(26, 23, 18, 0.45); }
.mon-top, .mon-bot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 40px; padding: 0 16px; font-size: 10.5px; color: var(--mute);
}
.mon-top { border-bottom: 1px solid var(--line); }
.mon-bot { border-top: 1px solid var(--line); }
.mon-top b, .mon-bot b { color: var(--fg); font-weight: 600; }
.rec-dot { color: var(--tally); }
.mon-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }

/* ── 2. STORY ── */
.story { padding: var(--s8) 0 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 72px; grid-template-areas: "copy mon"; }
.story-copy { grid-area: copy; }
.story-monitor { grid-area: mon; align-self: start; position: sticky; top: max(calc(var(--hud) + 24px), calc(50svh - 240px)); }
.acts { margin-top: var(--s6); display: grid; gap: 34svh; padding-bottom: 38svh; }
.act {
  position: relative; padding: var(--s1) 0 var(--s1) var(--s4);
  opacity: 0.35; transition: opacity 0.5s;
}
.act::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--line-2); transition: background 0.5s; }
.act.is-on { opacity: 1; }
.act.is-on::before { background: var(--tally); }
.act-n { color: var(--accent-txt); }
.act h3 { font-size: clamp(26px, 2.4vw, 34px); margin: var(--s2) 0 var(--s1); }
.act p { color: var(--fg-2); max-width: 42ch; }

.layer { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease); }
.layer.is-on { opacity: 1; }
.layer img { width: 100%; height: 100%; object-fit: cover; }

/* Act I — boards */
.l-board { background: #f7eedd; display: grid; place-items: center; padding: 6%; }
.board { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.board figure { display: grid; gap: 8px; }
.board figcaption { color: #3b382f; font-size: 9px; letter-spacing: 0.08em; }
.sk {
  aspect-ratio: 16 / 9; border: 1.5px solid #23211c; border-radius: 2px; background-color: #fffdf8;
  background-repeat: no-repeat; background-size: 100% 100%;
  transform: translateY(6px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s;
}
.l-board.is-on .sk { transform: none; opacity: 1; }
.l-board.is-on figure:nth-child(2) .sk { transition-delay: 0.12s; }
.l-board.is-on figure:nth-child(3) .sk { transition-delay: 0.24s; }
.sk-ws { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' fill='none' stroke='%2323211c' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M0 58 L160 58'/%3E%3Cpath d='M18 58v-30h50v30M92 58v-36h46v36' stroke-dasharray='3 3'/%3E%3Cg%3E%3Ccircle cx='24' cy='66' r='3.2'/%3E%3Ccircle cx='40' cy='70' r='3.2'/%3E%3Ccircle cx='58' cy='65' r='3.2'/%3E%3Ccircle cx='76' cy='71' r='3.2'/%3E%3Ccircle cx='96' cy='66' r='3.2'/%3E%3Ccircle cx='114' cy='70' r='3.2'/%3E%3Ccircle cx='132' cy='65' r='3.2'/%3E%3C/g%3E%3Cpath d='M74 14 l12 8 -12 8z' fill='%2323211c'/%3E%3C/svg%3E"); }
.sk-mcu { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' fill='none' stroke='%2323211c' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M53 0v90M107 0v90M0 30h160M0 60h160' stroke-width='.6' stroke-dasharray='2 3'/%3E%3Cellipse cx='80' cy='34' rx='13' ry='16'/%3E%3Cpath d='M50 90c2-20 14-30 30-30s28 10 30 30'/%3E%3Cpath d='M74 33h4M84 33h4M76 42q4 3 8 0'/%3E%3C/svg%3E"); }
.sk-cu { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' fill='none' stroke='%2323211c' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M20 70l30-30h90l-20 30z'/%3E%3Cpath d='M44 58h70M38 64h70M52 52h66' stroke-dasharray='4 3'/%3E%3Cpath d='M58 70c-6-14 2-26 14-26M104 70c6-14-2-26-14-26'/%3E%3Cpath d='M128 18l10 6M132 12l4 10' /%3E%3C/svg%3E"); }

/* Act II — viewfinder */
.vf-thirds {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, transparent 33.2%, rgba(255, 255, 255, 0.3) 33.2% 33.4%, transparent 33.4% 66.6%, rgba(255, 255, 255, 0.3) 66.6% 66.8%, transparent 66.8%),
    linear-gradient(to bottom, transparent 33.2%, rgba(255, 255, 255, 0.3) 33.2% 33.4%, transparent 33.4% 66.6%, rgba(255, 255, 255, 0.3) 66.6% 66.8%, transparent 66.8%);
}
.lock { position: absolute; left: 41%; top: 12%; width: 18%; height: 34%; transform: scale(1.5); opacity: 0; transition: transform 0.7s 0.2s var(--ease), opacity 0.3s 0.2s; }
.l-shoot.is-on .lock { transform: none; opacity: 1; }
.lock::before, .lock::after, .lock span::before, .lock span::after { content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid var(--amber); }
.lock::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.lock::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.lock span::before { top: 0; right: 0; border-width: 2px 2px 0 0; }
.lock span::after { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.hist {
  position: absolute; left: 3%; bottom: 14%; width: 18%; height: 14%;
  display: flex; align-items: flex-end; gap: 2px; padding: 6px; background: rgba(0, 0, 0, 0.55); border-radius: 3px;
}
.hist i { flex: 1; background: rgba(241, 236, 226, 0.85); height: var(--h, 40%); }
.hist i:nth-child(1) { --h: 10%; } .hist i:nth-child(2) { --h: 22%; } .hist i:nth-child(3) { --h: 38%; } .hist i:nth-child(4) { --h: 52%; }
.hist i:nth-child(5) { --h: 70%; } .hist i:nth-child(6) { --h: 84%; } .hist i:nth-child(7) { --h: 92%; } .hist i:nth-child(8) { --h: 78%; }
.hist i:nth-child(9) { --h: 66%; } .hist i:nth-child(10) { --h: 58%; } .hist i:nth-child(11) { --h: 62%; } .hist i:nth-child(12) { --h: 48%; }
.hist i:nth-child(13) { --h: 34%; } .hist i:nth-child(14) { --h: 22%; } .hist i:nth-child(15) { --h: 12%; } .hist i:nth-child(16) { --h: 6%; }
.vf-read {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between;
  padding: 10px 3%; font-size: 10px; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Act III — timeline */
.l-cut { display: grid; grid-template-rows: 1fr auto; background: var(--surface); }
.viewer { position: relative; overflow: hidden; }
.viewer img { filter: contrast(1.06) saturate(1.12); }
.timeline { position: relative; padding: 10px 3%; display: grid; gap: 6px; background: var(--g-bg); border-top: 1px solid var(--line); }
.track { display: flex; gap: 2px; height: 30px; }
.track span { width: var(--w); border-radius: 2px; background: var(--surface-2) center / cover no-repeat; border: 1px solid rgba(255, 255, 255, 0.12); }
.track.a { height: 18px; }
.track.a span {
  background: repeating-linear-gradient(to right, rgba(230, 161, 58, 0.75) 0 2px, transparent 2px 4px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 15%, #000 50%, transparent 85%);
          mask-image: linear-gradient(to bottom, transparent 15%, #000 50%, transparent 85%);
  border: 0;
}
.playhead { position: absolute; top: 4px; bottom: 4px; left: 3%; width: 2px; background: var(--tally); box-shadow: 0 0 8px var(--tally); }
.l-cut.is-on .playhead { animation: playhead 4s linear infinite; }
@keyframes playhead { from { left: 3%; } to { left: 97%; } }

.prog { flex: 1; max-width: 240px; height: 2px; background: var(--line); position: relative; }
.prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 33.3%; background: var(--amber); transition: width 0.5s var(--ease); }

/* ── 3. WORK — the screening room ── */
.work, .about, .contact { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.work { padding: calc(var(--hud) + var(--s5)) 0 var(--s6); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s3) var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 99px; font-size: 14px; font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.chip span { font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--fg); transform: translateY(-1px); }
.chip:active { transform: scale(0.98); }
.chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip.is-on span { color: inherit; opacity: 0.55; }

.deck { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.work .monitor { box-shadow: none; }
.play-monitor .mon-screen img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.25s; }
.play-monitor .mon-screen:hover img { transform: scale(1.025); }
.play-monitor .mon-screen.is-swapping img { opacity: 0.35; }
.play-monitor iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.big-play {
  position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(23, 21, 15, 0.55); border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.big-play:hover { transform: scale(1.06); background: var(--tally); border-color: var(--tally); }
.big-play:active { transform: scale(0.97); }
.tri { width: 0; height: 0; margin-left: 5px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.pm-tc { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: 3px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 10.5px; pointer-events: none; }
.is-playing .pm-tc, .is-playing .big-play { display: none; }

.pm-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s3); padding-top: var(--s3); }
.pm-meta h3 { font-size: clamp(24px, 2.2vw, 32px); margin-top: var(--s1); max-width: 26ch; text-wrap: balance; }
.pm-side { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }
.link-yt { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat; transition: background-size 0.3s var(--ease), color 0.2s; }
.link-yt:hover { background-size: 100% 1px; color: var(--amber); }

.roles { display: flex; gap: 6px; }
.role { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; padding: 4px 8px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--fg); }
.role.direct { border-color: var(--accent-txt); color: var(--accent-txt); }
.role.edit { border-color: var(--amber); color: var(--amber); }

.bin { position: relative; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.bin-inner { position: absolute; inset: 0; display: flex; flex-direction: column; }
.bin-head { display: flex; justify-content: space-between; height: 40px; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--mute); font-size: 10.5px; flex-shrink: 0; }
.bin-list { overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(245, 233, 211, 0.22) transparent; overscroll-behavior: contain; }
.bin-list::-webkit-scrollbar { width: 10px; }
.bin-list::-webkit-scrollbar-track { background: transparent; }
.bin-list::-webkit-scrollbar-thumb { background: rgba(245, 233, 211, 0.2); border: 3px solid transparent; border-radius: 99px; background-clip: padding-box; }
.bin-list::-webkit-scrollbar-thumb:hover { background-color: rgba(245, 233, 211, 0.35); }
html { scrollbar-color: var(--plum) var(--cream); }
.clip {
  position: relative; width: 100%; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line); transition: background 0.2s;
}
.clip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--tally); transform: scaleY(0); transition: transform 0.3s var(--ease); }
.clip:hover, .clip.is-on { background: var(--surface-2); }
.clip.is-on::before { transform: none; }
.clip-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: var(--surface-2); }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.clip:hover .clip-thumb img { transform: scale(1.03); }
.clip-thumb .dur { position: absolute; right: 4px; bottom: 4px; padding: 1px 4px; border-radius: 2px; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 9.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.clip-title { font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip-sub { margin-top: 4px; font-size: 9.5px; color: var(--mute); }

/* ── 4. ABOUT ── */
.about { padding: calc(var(--hud) + var(--s5)) 0 var(--s7); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.about-copy h2 { margin-bottom: var(--s4); }
.about-copy p:not(.lbl) { color: var(--fg-2); font-size: 18px; max-width: 48ch; }
.about-copy p:not(.lbl) + p { margin-top: var(--s2); }
.ledger { border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.ledger-head { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ledger li h3 { font-size: 20px; }
.ledger li .num { font-family: var(--display); font-size: 30px; color: var(--pop); line-height: 1; text-align: right; grid-row: span 2; align-self: center; }
.ledger li .num small { display: block; font-family: var(--sans); font-size: 10px; font-weight: 500; color: var(--mute); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; }
.ledger li .roles { margin-top: 4px; }
.ledger li.total { background: var(--surface-2); }
.ledger li.total h3 { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); align-self: center; }
.vault { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; flex-wrap: wrap;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(26, 23, 18, 0.035) 14px 28px); }
.vault p:not(.lbl) { color: var(--fg-2); font-size: 15px; margin-top: 4px; }
.vault-tag { color: var(--accent-txt); }

/* ── 5. CONTACT — the slate is the form ── */
.contact {
  --bg: var(--mustard); --fg: #2a160f; --fg-2: rgba(42, 22, 15, 0.82); --mute: rgba(42, 22, 15, 0.68);
  --line: rgba(42, 22, 15, 0.2); --line-2: rgba(42, 22, 15, 0.4); --pop: var(--plum); --shadow: var(--saffron);
  background: var(--bg); color: var(--fg);
  padding: calc(var(--hud) + var(--s5)) 0 var(--s7);
}
.contact-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s3) var(--s5); flex-wrap: wrap; }
.contact-lede { max-width: 38ch; color: var(--fg-2); font-size: 18px; padding-bottom: 6px; }

.slate { --arm: -3.2deg; position: relative; margin-top: var(--s4); padding-top: 92px; }
.clapper { position: relative; height: 56px; border-radius: 8px 8px 0 0; background: repeating-linear-gradient(-60deg, var(--g-fg) 0 30px, var(--g-bg) 30px 60px); }
.clapper i {
  position: absolute; left: 0; right: 0; bottom: 100%; height: 56px; margin-bottom: 4px; border-radius: 8px;
  background: repeating-linear-gradient(60deg, var(--g-fg) 0 30px, var(--g-bg) 30px 60px);
  transform-origin: 10px 100%; transform: rotate(var(--arm)); transition: transform 0.35s var(--ease);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}
.slate:focus-within .clapper i { transform: rotate(calc(var(--arm) * 1.4)); }
.slate.is-clap .clapper i { animation: clap 0.45s var(--ease); }
@keyframes clap { 0% { transform: rotate(calc(var(--arm) * 1.4)); } 35% { transform: rotate(0deg); } 100% { transform: rotate(var(--arm)); } }

.slate-body, .slate-done {
  background: var(--g-bg); border: 2px solid var(--g-fg); border-top: 0; border-radius: 0 0 12px 12px;
  box-shadow: 0 50px 90px -40px rgba(23, 21, 15, 0.7);
}
.slate-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: rgba(241, 236, 226, 0.3); }
.cell { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 16px; background: var(--g-bg); transition: background 0.2s; }
.cell:focus-within { background: var(--g-surface); }
.cell > label, .cell legend, .cell-lbl { font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-mute); transition: color 0.2s; }
.cell legend { float: left; width: 100%; margin-bottom: 12px; }
.cell:focus-within > label, .cell:focus-within legend, .cell:focus-within .cell-lbl, .cell.is-open .cell-lbl { color: var(--amber); }
.cell.is-open { background: var(--g-surface); z-index: 5; }
.c-prod { grid-column: span 8; } .c-client { grid-column: span 4; }
.c-format { grid-column: span 12; }
.c-date, .c-city, .c-budget { grid-column: span 4; }
.c-brief { grid-column: span 12; }
.c-name, .c-email { grid-column: span 6; }
.c-foot { grid-column: span 12; border-radius: 0 0 10px 10px; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.cell input, .cell select, .cell textarea {
  width: 100%; min-height: 44px; background: transparent; border: 0; outline: none; color: var(--g-fg);
  font-family: var(--sans); font-size: 22px; font-weight: 500; line-height: 1.25; padding: 0;
}
.c-prod input { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); color: var(--mustard); }
.cell textarea { resize: none; overflow: hidden; font-size: 19px; font-weight: 400; line-height: 1.45; min-height: 56px; }
.cell ::placeholder { color: rgba(241, 236, 226, 0.32); }

/* ── custom pickers (date, budget) ── */
.picker {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  width: 100%; min-height: 44px; text-align: left; color: var(--g-fg);
  font-size: 22px; font-weight: 500; line-height: 1.25; border-radius: 6px;
}
.picker-val.is-empty { color: rgba(245, 233, 211, 0.32); }
.picker-ico {
  flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%;
  fill: none; stroke: var(--g-fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(245, 233, 211, 0.07); transition: background 0.2s, transform 0.25s var(--ease), stroke 0.2s;
}
.picker:hover .picker-ico { background: rgba(245, 233, 211, 0.14); }
.picker[aria-expanded="true"] .picker-ico { background: var(--mustard); stroke: var(--g-bg); }
#budget-btn[aria-expanded="true"] .picker-ico { transform: rotate(180deg); }

.pop {
  position: absolute; left: var(--s2); top: calc(100% - 6px); z-index: 30;
  padding: var(--s1); border-radius: 14px;
  background: #2f2219; border: 1px solid rgba(245, 233, 211, 0.16);
  box-shadow: 5px 5px 0 var(--mustard), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  color: var(--g-fg); transform-origin: top left; animation: pop 0.18s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }

/* calendar */
.cal { width: 328px; padding: var(--s2); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s2); }
.cal-title { font-family: var(--display); font-size: 22px; line-height: 1; color: var(--mustard); }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(245, 233, 211, 0.07); transition: background 0.2s, transform 0.2s var(--ease);
}
.cal-nav button:hover:not(:disabled) { background: rgba(245, 233, 211, 0.16); }
.cal-nav button:active:not(:disabled) { transform: scale(0.94); }
.cal-nav button:disabled { opacity: 0.25; cursor: default; }
.cal-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { height: 28px; display: grid; place-items: center; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g-mute); }
.cal-day {
  aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; min-height: 40px;
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--g-fg);
  transition: background 0.15s, color 0.15s;
}
.cal-day:hover:not(:disabled) { background: rgba(245, 233, 211, 0.1); }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--mustard); }
.cal-day.is-sel { background: var(--mustard); color: var(--g-bg); font-weight: 700; }
.cal-day.is-weekend:not(.is-sel) { color: var(--g-fg-2); }
.cal-day:disabled { opacity: 0.22; cursor: default; }
.cal-day:focus-visible { outline: 2px solid var(--g-fg); outline-offset: 1px; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid rgba(245, 233, 211, 0.12); }
.cal-foot button { min-height: 36px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--g-fg-2); transition: background 0.2s, color 0.2s; }
.cal-foot button:hover { background: rgba(245, 233, 211, 0.1); color: var(--g-fg); }
.cal-foot .cal-flex { color: var(--mustard); }

/* dropdown menu */
.menu { min-width: min(300px, calc(100% - 2 * var(--s2))); list-style: none; outline: none; }
.menu li {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  min-height: 44px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  font-size: 15px; font-weight: 500; transition: background 0.15s;
}
.menu li::after { content: ""; width: 14px; height: 8px; border: solid var(--mustard); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -2px); opacity: 0; }
.menu li[aria-selected="true"] { color: var(--mustard); }
.menu li[aria-selected="true"]::after { opacity: 1; }
.menu li:hover, .menu li.is-active { background: rgba(245, 233, 211, 0.09); }
.cell.is-bad > label { color: #ff7a63; }
.err { font-size: 13px; color: #ff7a63; min-height: 0; }
.err:empty { display: none; }

.pills { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px;
  border: 1px solid rgba(241, 236, 226, 0.28); color: var(--g-fg); font-size: 14px; font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.pills label:hover span { border-color: var(--g-fg); transform: translateY(-1px); }
.pills input:checked + span { background: var(--g-fg); color: var(--g-bg); border-color: var(--g-fg); }
.pills input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }

.slate-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.slate-meta dt { font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-mute); }
.slate-meta dd { font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--g-fg); font-variant-numeric: tabular-nums; }

.slate-done { padding: clamp(32px, 5vw, 64px); min-height: 420px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.slate-done .lbl { color: var(--amber); }
.slate-done h3 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.6vw, 54px); color: var(--mustard); }
.slate-done p:not(.lbl) { color: var(--g-fg-2); max-width: 52ch; font-size: 17px; }
.slate-done a { color: var(--g-fg); border-bottom: 1px solid var(--amber); }
.slate-done .btn { align-self: flex-start; margin-top: 8px; }

/* ── FOOTER ── */
.foot { border-top: 0; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; color: var(--mute); font-size: 10.5px; }
.foot-row a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-row a:hover { color: var(--fg); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hud-read .mode { display: none; }
  .story-grid { gap: 0 40px; }
  .deck { grid-template-columns: 1fr; }
  .bin { height: 520px; }
}
@media (max-width: 900px) {
  :root { --hud: 60px; }
  .hud { grid-template-columns: auto 1fr; gap: 12px; }
  .hud-read { display: none; }
  .nav { justify-self: end; }
  .hero-foot { grid-template-columns: 1fr; }
  .sticker { top: -40px; }
  .exposure .hint { display: none; }

  .story { padding-top: 96px; }
  .story-grid { grid-template-columns: 1fr; grid-template-areas: none; }
  .story-copy { display: contents; }
  .story-monitor { grid-area: auto; position: sticky; top: calc(var(--hud) + 12px); z-index: 2; margin-top: 32px; }
  .story-copy > .k { order: 1; } .story-copy > h2 { order: 2; } .story-monitor { order: 3; } .acts { order: 4; }
  .acts { margin-top: 8px; }
  .acts { gap: 40svh; padding-bottom: 24svh; margin-top: var(--s4); }
  .act { padding-left: var(--s3); opacity: 0.55; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .work, .about, .contact { min-height: 0; padding: 96px 0; }
  .c-prod, .c-client, .c-date, .c-city, .c-budget, .c-name, .c-email { grid-column: span 6; }
  .c-prod { grid-column: span 12; }
  .c-budget { grid-column: span 12; }
  .slate { --arm: -6deg; padding-top: 96px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-name { display: none; }
  .nav a { padding: 0 12px; font-size: 13px; }
  .wall-layer { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .hero { --r: 190px; }
  .hero { padding-bottom: 80px; }
  .cta .btn { flex: 1 1 100%; }
  .exposure { gap: 16px; }
  .hide-s { display: none; }
  .af-box { width: 96px; height: 68px; }
  .af-box i { display: none; }
  .sticker { width: 104px; height: 104px; top: -132px; }
  .sticker b { font-size: 32px; }
  .sticker span { font-size: 8px; }
  .mon-bot .prog { display: none; }
  .board figcaption { font-size: 7px; }
  .hist { display: none; }
  .track { height: 20px; }
  .track.a { height: 12px; }
  .pm-meta { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .big-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .clip { grid-template-columns: 96px minmax(0, 1fr); padding: 10px 12px; }
  .bin { height: 480px; }

  .slate { --arm: -8deg; padding-top: 72px; margin-top: 32px; }
  .clapper, .clapper i { height: 40px; }
  .slate-body > .cell { grid-column: span 12; }
  .cell { padding: 16px 16px 14px; }
  .cell input, .picker { font-size: 20px; }
  .pop { left: var(--s1); right: var(--s1); }
  .cal { width: auto; }
  .c-prod input { font-size: 32px; }
  .c-foot { flex-direction: column; align-items: stretch; }
  .c-foot .btn { width: 100%; }
  .slate-meta { gap: 8px 20px; }
  .slate-meta dd { font-size: 20px; }
  .foot-row { flex-wrap: wrap; justify-content: center; padding: 12px 0; }
  .foot-row span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .iris { display: none; }
}
