/* Motore - site styles
   Palette: ink / bone / rosso. Type: Archivo (variable width), Instrument Serif italic, JetBrains Mono. */

:root {
  --ink: #0d0c0b;
  --ink-2: #151412;
  --ink-3: #1f1d1a;
  --bone: #efe9de;
  --bone-2: #d9d2c5;
  --paper: #e9e2d4;
  --mute: #8e877b;
  --mute-ink: #6b645a;
  --rosso: #f2361d;
  --rosso-deep: #c9240f;
  --line: rgba(239, 233, 222, 0.14);
  --line-ink: rgba(13, 12, 11, 0.16);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --f-chalk: "Caveat", "Marker Felt", cursive;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--rosso); color: var(--ink); }
:focus-visible { outline: 2px solid var(--rosso); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.1 0'/%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;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- type primitives ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rosso); }
.display {
  font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase;
  line-height: 0.9; letter-spacing: -0.012em; margin: 0;
}
.display em, .h2 em, .serif-i {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.01em;
}
.h2 {
  font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px, 6.2vw, 96px); line-height: 0.92; letter-spacing: -0.012em; margin: 18px 0 0;
}
.h2 em { font-size: 1.12em; line-height: 0.8; }
.lede { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--bone-2); max-width: 38em; }
.mono { font-family: var(--f-mono); }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; gap: 12px; height: var(--h); padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em; font-variation-settings: "wdth" 112;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:active { transform: scale(0.98); }
.btn-rosso { background: var(--rosso); color: var(--ink); }
.btn-rosso:hover { background: var(--bone); }
.btn-rosso .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--bone); background: rgba(239, 233, 222, 0.04); }
.btn-ghost:hover { border-color: var(--bone); }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink:hover { background: var(--rosso); color: var(--ink); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px; padding: 0 var(--gutter);
  transition: background 0.35s, border-color 0.35s, height 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(13, 12, 11, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); height: 64px; }
.nav .brand { display: flex; align-items: center; color: var(--bone); }
.nav .brand .wordmark { height: 19px; width: auto; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--bone-2); font-variation-settings: "wdth" 108; }
.nav ul a:hover { color: var(--bone); }
.nav .btn { --h: 42px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
.nav .btn .short { display: none; }
.wordmark .rec { animation: rec 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 120px 0 40px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero .ambient { position: absolute; inset: -10%; width: 120%; height: 120%; z-index: -2; filter: blur(70px) saturate(1.5); opacity: 0.42; transform: scale(1.1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 70% 40%, rgba(13,12,11,0.2), var(--ink) 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(52px, 6.7vw, 112px); margin: 22px 0 0; }
.hero h1 em { display: inline-block; font-size: 1.14em; line-height: 0.8; color: var(--bone); padding-right: 0.04em; }
.hero h1 .stop { color: var(--rosso); }
.hero .lede { margin: 26px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.offer { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.offer b { font-family: var(--f-sans); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 26px; letter-spacing: 0; color: var(--bone); }

.monitor { position: relative; margin-right: calc(-1 * var(--gutter)); }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 6px 0 0 6px; box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9); }
.screen video, .screen img { width: 100%; height: 100%; object-fit: cover; }
.hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: rgba(255,255,255,0.86); text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.hud .tl, .hud .tr, .hud .bl, .hud .br { position: absolute; display: flex; gap: 14px; align-items: center; }
.hud .tl { top: 18px; left: 22px; } .hud .tr { top: 18px; right: 22px; } .hud .bl { bottom: 16px; left: 22px; } .hud .br { bottom: 16px; right: 22px; }
.hud .recdot { width: 9px; height: 9px; border-radius: 50%; background: var(--rosso); box-shadow: 0 0 12px var(--rosso); animation: rec 1.2s steps(2) infinite; }
.corners { position: absolute; inset: 12px; pointer-events: none; }
.corners::before, .corners::after, .corners i::before, .corners i::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255,255,255,0.8); }
.corners::before { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.corners::after { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.corners i::before { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.corners i::after { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.letterbox::before, .letterbox::after { content: ""; position: absolute; left: 0; right: 0; height: 50%; background: #000; z-index: 2; transition: transform 1.1s var(--ease) 0.2s; }
.letterbox::before { top: 0; transform-origin: top; } .letterbox::after { bottom: 0; transform-origin: bottom; }
.is-ready .letterbox::before, .is-ready .letterbox::after { transform: scaleY(0); }

.subtitle { margin: 18px 0 0; min-height: 58px; text-align: center; padding-right: var(--gutter); }
.subtitle .it, .subtitle .en { display: block; transition: opacity 0.4s, transform 0.4s var(--ease); }
.subtitle .it { font-weight: 700; font-size: 20px; font-variation-settings: "wdth" 110; }
.subtitle .en { font-family: var(--f-serif); font-style: italic; font-size: 19px; color: var(--mute); }
.subtitle.swap .it, .subtitle.swap .en { opacity: 0; transform: translateY(6px); }

/* client strip */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients .wrap { display: flex; align-items: center; gap: clamp(20px, 5vw, 72px); min-height: 104px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.clients .label { flex: none; }
.clients ul { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 28px 48px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.clients li { color: var(--bone); opacity: 0.78; transition: opacity 0.25s; }
.clients li:hover { opacity: 1; }
.logo { display: block; height: 100%; width: auto; }
.logo-codex { height: 17px; } .logo-openme { height: 30px; } .logo-resine { height: 38px; } .logo-sumup { height: 30px; }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.sec { padding: clamp(88px, 12vw, 168px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head .lede { margin: 0; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px); }
.film { grid-column: span 6; display: flex; flex-direction: column; gap: 18px; }
.film.w8 { grid-column: span 8; } .film.w7 { grid-column: span 7; } .film.w5 { grid-column: span 5; } .film.w4 { grid-column: span 4; } .film.w12 { grid-column: span 12; }
.film.feature { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 44px); align-items: end; }
.film-screen {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 6px; overflow: hidden;
  background: var(--ink-3); cursor: pointer;
}
.film-screen img, .film-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.4s; }
.film-screen video { opacity: 0; }
.film-screen.playing video { opacity: 1; }
.film-screen:hover img, .film-screen:hover video { transform: scale(1.035); }
.film-screen .corners { inset: 14px; opacity: 0; transform: scale(1.04); transition: opacity 0.35s, transform 0.5s var(--ease); }
.film-screen:hover .corners, .film-screen:focus-visible .corners { opacity: 1; transform: none; }
.film-screen .tc { position: absolute; top: 26px; left: 30px; background: rgba(13,12,11,0.72); padding: 6px 10px; border-radius: 4px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: #fff; opacity: 0; transition: opacity 0.3s; display: flex; gap: 10px; align-items: center; text-shadow: 0 1px 8px rgba(0,0,0,0.7); }
.film-screen .tc::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rosso); }
.film-screen:hover .tc { opacity: 1; }
.play-chip {
  position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 12px;
  border-radius: 999px; background: rgba(13,12,11,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--bone); transition: background 0.25s, color 0.25s;
}
.play-chip::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--rosso) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M9 7l6 4-6 4z' fill='%230d0c0b'/%3E%3C/svg%3E") center/100% no-repeat; }
.film-screen:hover .play-chip { background: var(--bone); color: var(--ink); }
.film-meta .client { display: flex; align-items: center; gap: 14px; color: var(--bone); margin-bottom: 14px; min-height: 30px; }
.film-meta h3 { margin: 0; font-size: clamp(22px, 2vw, 30px); line-height: 1.08; font-weight: 700; font-variation-settings: "wdth" 108; letter-spacing: -0.01em; }
.film-meta p { margin: 10px 0 0; color: var(--bone-2); font-size: 16px; max-width: 36em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.tags li { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; }
.tags li.hot { border-color: var(--rosso); color: var(--rosso); }

/* sealed (embargoed) film: a countdown leader */
.sealed { cursor: default; background: #0a0908; }
.leader { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.leader .ring { position: relative; width: min(52%, 280px); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(239,233,222,0.5); display: grid; place-items: center; }
.leader .ring::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px solid rgba(239,233,222,0.3); }
.leader .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(239,233,222,0.2) 0deg, rgba(239,233,222,0.2) var(--a, 0deg), transparent var(--a, 0deg)); animation: sweep 1s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sweep { to { --a: 360deg; } }
.leader .num { position: relative; font-family: var(--f-sans); font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(48px, 7vw, 96px); line-height: 1; color: var(--bone); }
.leader .cross-h, .leader .cross-v { position: absolute; background: rgba(239,233,222,0.28); }
.leader .cross-h { left: 0; right: 0; top: 50%; height: 1px; } .leader .cross-v { top: 0; bottom: 0; left: 50%; width: 1px; }
.leader .stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  font-family: var(--f-mono); font-size: clamp(11px, 1.1vw, 14px); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rosso); border: 2px solid var(--rosso); padding: 8px 14px; border-radius: 4px; background: rgba(10,9,8,0.8); white-space: nowrap;
  top: 78%;
}

/* cursor follower over films */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: var(--rosso); color: var(--ink); display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0); transition: transform 0.25s var(--ease) , opacity 0.2s; opacity: 0;
}
.cursor.on { opacity: 1; transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- manifesto (rosso) ---------- */
.manifesto { background: var(--rosso); color: var(--ink); }
.manifesto .label { color: rgba(13,12,11,0.7); } .manifesto .label::before { background: var(--ink); }
.manifesto .big { font-size: clamp(30px, 4.3vw, 66px); line-height: 1.02; font-weight: 700; font-variation-settings: "wdth" 112; letter-spacing: -0.02em; margin: 26px 0 0; max-width: 22em; }
.manifesto .big em { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; font-size: 1.08em; }
.manifesto .big .word { opacity: 0.18; transition: opacity 0.35s; }
.manifesto .big .word.lit { opacity: 1; }
.numerals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 8vw, 110px); border-top: 2px solid var(--ink); }
.numerals > div { padding: 26px 26px 0 0; }
.numerals > div + div { padding-left: 26px; border-left: 1px solid rgba(13,12,11,0.25); }
.numerals .n { font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(46px, 5.8vw, 92px); line-height: 0.9; letter-spacing: -0.02em; white-space: nowrap; }
.numerals .n small { font-size: 0.4em; letter-spacing: 0; margin-left: 4px; }
.numerals h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 800; font-variation-settings: "wdth" 110; }
.numerals p { margin: 0; font-size: 15.5px; line-height: 1.5; color: rgba(13,12,11,0.82); }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--ink); }
.marquee .track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 70px); line-height: 1; padding-right: 0.6em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px var(--bone-2); }
.marquee span:nth-child(3n+2) { color: var(--bone); -webkit-text-stroke: 0; }
.marquee span:nth-child(3n+2)::after { content: ""; display: inline-block; width: 0.32em; height: 0.32em; background: var(--rosso); border-radius: 50%; margin-left: 0.6em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- what we make (bone) ---------- */
.make { background: var(--paper); color: var(--ink); }
.make .label { color: var(--mute-ink); }
.make .lede { color: #3d3833; }
.make-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.types { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-ink); counter-reset: t; }
.types li { border-bottom: 1px solid var(--line-ink); }
.types button {
  width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
  padding: 20px 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink);
}
.types .no { font-family: var(--f-mono); font-size: 12px; color: var(--mute-ink); }
.types .name { font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2.5vw, 38px); line-height: 1; letter-spacing: -0.01em; transition: color 0.2s, transform 0.35s var(--ease); display: inline-block; }
.types .len { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--mute-ink); white-space: nowrap; }
.types .desc { grid-column: 2 / 4; font-size: 16px; color: #3d3833; max-width: 34em; margin-top: 8px; display: none; }
.types li.on .name { color: var(--rosso-deep); transform: translateX(8px); }
.types li.on .desc { display: block; }
.make-preview { position: sticky; top: 96px; }
.make-preview .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--ink); display: grid; place-items: center; }
.make-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.make-preview video.portrait { object-fit: contain; background: #111; }
.make-preview .frame .corners { inset: 12px; }
.make-preview .frame .corners::before, .make-preview .frame .corners::after, .make-preview .frame .corners i::before, .make-preview .frame .corners i::after { border-color: rgba(255,255,255,0.75); }
.make-preview .caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute-ink); }
.make-preview .blurb { margin-top: 18px; font-size: 18px; line-height: 1.45; color: var(--ink); min-height: 3em; }
.make-preview .where { margin-top: 8px; font-size: 14px; color: var(--mute-ink); }
.frame .typecard { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(80% 80% at 30% 20%, #2a1310, var(--ink)); color: var(--bone); }
.frame .typecard b { font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3vw, 46px); line-height: 0.95; }
.frame .typecard b em { font-family: var(--f-serif); font-weight: 400; text-transform: none; color: var(--rosso); }

/* ---------- how it works: an edit timeline ---------- */
.how { background: var(--ink); }
.how-scroll { position: relative; height: 480vh; }
.how-stage { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 84px 0 28px; }
.how-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; flex: 1; min-height: 0; }
.steps { position: relative; min-height: 290px; }
.step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(18px); transition: opacity 0.45s, transform 0.6s var(--ease); pointer-events: none; }
.step.on { opacity: 1; transform: none; pointer-events: auto; }
.step .day { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rosso); }
.step h3 { font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 4.2vw, 64px); line-height: 0.92; margin: 12px 0 16px; }
.step p { color: var(--bone-2); font-size: 18px; margin: 0; max-width: 28em; }
.step .who { margin-top: 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.viewer { position: relative; aspect-ratio: 16 / 9; max-height: 52vh; width: 100%; margin-left: auto; border-radius: 8px; overflow: hidden; background: #070706; border: 1px solid var(--line); }
.viewer .pane { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; padding: clamp(14px, 2vw, 26px); }
.viewer .pane.on { opacity: 1; }
.viewer .vbar { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--mute); border-bottom: 1px solid var(--line); background: #0b0a09; z-index: 2; }
.viewer .vbar i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3a3632; margin-right: 6px; }
.pane-inner { position: absolute; inset: 30px 0 0 0; padding: clamp(14px, 2vw, 26px); }

/* pane 1: brief card */
.briefcard { height: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.briefcard .f { background: var(--ink-3); border-radius: 6px; padding: 10px 12px; min-width: 0; }
.briefcard .f.wide { grid-column: span 2; }
.briefcard .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.briefcard .v { font-size: clamp(12px, 1.05vw, 15px); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.briefcard .v.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--rosso); vertical-align: -2px; margin-left: 2px; animation: rec 0.9s steps(2) infinite; }
/* pane 2: script + frames */
.scriptpane { height: 100%; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
.script { background: #f3eee4; color: #1b1917; border-radius: 4px; padding: 12px 14px; font-family: var(--f-mono); font-size: clamp(9px, 0.78vw, 11.5px); line-height: 1.6; overflow: hidden; }
.script b { display: block; font-weight: 600; }
.script .tc { color: var(--rosso-deep); }
.script .vo { padding-left: 14%; }
.script mark { background: #ffd8cf; color: inherit; }
.looks { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px; }
.looks figure { position: relative; margin: 0; border-radius: 4px; overflow: hidden; }
.looks img { width: 100%; height: 100%; object-fit: cover; }
.looks figcaption { position: absolute; left: 6px; bottom: 6px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.08em; background: rgba(0,0,0,0.7); padding: 3px 6px; border-radius: 3px; }
.looks figure.ok { outline: 2px solid var(--rosso); outline-offset: -2px; }
.looks figure.ok figcaption { background: var(--rosso); color: var(--ink); }
/* pane 3: first cut */
.cutpane { padding: 0 !important; }
.cutpane video { position: absolute; inset: 30px 0 0 0; width: 100%; height: calc(100% - 30px); object-fit: cover; }
/* pane 4: notes */
.notespane img { position: absolute; inset: 30px 0 0 0; width: 100%; height: calc(100% - 30px); object-fit: cover; filter: brightness(0.7); }
.pin { position: absolute; display: flex; align-items: flex-start; gap: 8px; max-width: 46%; opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 0.4s, transform 0.5s var(--ease); }
.pane.on .pin { opacity: 1; transform: none; }
.pane.on .pin:nth-of-type(2) { transition-delay: 0.35s; } .pane.on .pin:nth-of-type(3) { transition-delay: 0.7s; }
.pin .dot { flex: none; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--rosso); color: var(--ink); font-family: var(--f-mono); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.pin .bubble { background: var(--bone); color: var(--ink); border-radius: 6px; padding: 7px 10px; font-size: clamp(11px, 0.95vw, 13.5px); line-height: 1.35; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.pin .bubble small { display: block; font-family: var(--f-mono); font-size: 10px; color: var(--mute-ink); letter-spacing: 0.06em; margin-bottom: 2px; }
.pin .bubble .done { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: 10px; color: #1f7a3a; letter-spacing: 0.06em; }
/* pane 5: masters */
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.files li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--ink-3); border-radius: 5px; padding: 8px 12px; font-family: var(--f-mono); font-size: clamp(10px, 0.85vw, 12.5px); opacity: 0; transform: translateX(-10px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.pane.on .files li { opacity: 1; transform: none; }
.pane.on .files li:nth-child(2) { transition-delay: 0.08s; } .pane.on .files li:nth-child(3) { transition-delay: 0.16s; } .pane.on .files li:nth-child(4) { transition-delay: 0.24s; } .pane.on .files li:nth-child(5) { transition-delay: 0.32s; } .pane.on .files li:nth-child(6) { transition-delay: 0.4s; }
.files .ck { width: 16px; height: 16px; border-radius: 50%; background: var(--rosso); }
.files .sz { color: var(--mute); }
.delivered { position: absolute; right: 26px; bottom: 34px; transform: rotate(-7deg); font-family: var(--f-mono); font-weight: 700; letter-spacing: 0.2em; font-size: clamp(12px, 1.2vw, 16px); color: var(--rosso); border: 2px solid var(--rosso); padding: 6px 12px; border-radius: 4px; }

/* the timeline itself */
.timeline { position: relative; border: 1px solid var(--line); border-radius: 8px; background: #0a0908; padding: 0 0 10px; user-select: none; }
.tl-ruler { position: relative; height: 30px; margin-left: 74px; border-bottom: 1px solid var(--line); }
.tl-ruler span { position: absolute; top: 8px; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); transform: translateX(-50%); }
.tl-ruler span::after { content: ""; position: absolute; left: 50%; top: 16px; width: 1px; height: 6px; background: var(--line); }
.tl-track { position: relative; display: flex; align-items: center; height: 36px; }
.tl-track + .tl-track { border-top: 1px solid rgba(239,233,222,0.05); }
.tl-track .tname { flex: none; width: 74px; padding-left: 14px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--mute); }
.tl-lane { position: relative; flex: 1; height: 26px; }
.clip { position: absolute; top: 0; bottom: 0; border-radius: 4px; display: flex; align-items: center; padding: 0 10px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; color: var(--ink); transition: filter 0.3s, box-shadow 0.3s; filter: saturate(0.35) brightness(0.62); }
.clip.on { filter: none; box-shadow: 0 0 0 2px var(--bone) inset; }
.clip.v { background: #c7bba6; } .clip.v:nth-child(2) { background: #d6b27d; } .clip.v:nth-child(3) { background: var(--rosso); } .clip.v:nth-child(4) { background: #d98f6f; } .clip.v:nth-child(5) { background: var(--bone); }
.clip.wave { background: #20322a; color: #9fd3b6; padding: 0; }
.clip.wave.m { background: #2b2536; color: #c3b3e6; }
.clip.wave svg { width: 100%; height: 100%; }
.clip.sub { background: #3a3326; color: #e7cf9a; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--rosso); left: 74px; z-index: 3; pointer-events: none; }
.playhead::before { content: ""; position: absolute; top: 0; left: -7px; width: 16px; height: 18px; background: var(--rosso); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
.playhead b.flip { left: auto; right: 10px; }
.playhead b { position: absolute; top: -26px; left: 10px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--rosso); white-space: nowrap; }

/* ---------- testimonials ---------- */
.notes-sec { background: var(--ink-2); }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); }
.quote { display: flex; flex-direction: column; gap: 28px; }
.quote blockquote { margin: 0; font-family: var(--f-serif); font-size: clamp(24px, 2.35vw, 36px); line-height: 1.18; letter-spacing: -0.005em; color: var(--bone); }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--f-sans); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 80px; line-height: 0.6; color: var(--rosso); margin-bottom: 14px; }
.quote figcaption { display: flex; align-items: center; gap: 18px; margin-top: auto; }
.filmstrip { position: relative; flex: none; width: 88px; height: 108px; background: #000; border-radius: 3px; padding: 10px 12px; }
.filmstrip::before, .filmstrip::after { content: ""; position: absolute; top: 4px; bottom: 4px; width: 5px; background: repeating-linear-gradient(to bottom, var(--ink-2) 0 5px, transparent 5px 11px); }
.filmstrip::before { left: 3px; } .filmstrip::after { right: 3px; }
.filmstrip .ph { width: 100%; height: 100%; border-radius: 2px; overflow: hidden; background: linear-gradient(160deg, #3a2c26, #171412); display: grid; place-items: center; font-variation-settings: "wdth" 125; font-weight: 800; font-size: 24px; color: var(--bone-2); }
.filmstrip .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.who-name { font-weight: 800; font-size: 18px; font-variation-settings: "wdth" 110; }
.who-role { color: var(--mute); font-size: 15px; }
.who-logo { margin-top: 8px; color: var(--bone-2); }

/* ---------- pricing (bone) ---------- */
.pricing { background: var(--bone); color: var(--ink); }
.pricing .label { color: var(--mute-ink); }
.pricing .lede { color: #3d3833; }
.cur { display: inline-flex; border: 1px solid var(--line-ink); border-radius: 999px; padding: 4px; gap: 2px; }
.cur button { width: 44px; height: 36px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-weight: 700; font-size: 16px; color: var(--mute-ink); }
.cur button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.quote-box { border-radius: 14px; background: #f7f3eb; box-shadow: 0 1px 0 rgba(13,12,11,0.06), 0 30px 80px -40px rgba(13,12,11,0.45); overflow: hidden; }
.qb-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: clamp(22px, 3vw, 40px) clamp(22px, 3vw, 44px) 10px; }
.qb-top .tier { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-ink); }
.qb-top .tier b { color: var(--rosso-deep); }
.qb-top .runtime { font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(30px, 3.4vw, 52px); line-height: 1; margin-top: 8px; }
.qb-top .runtime small { font-size: 0.42em; font-weight: 600; color: var(--mute-ink); letter-spacing: 0.02em; }
.price { font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(76px, 11vw, 176px); line-height: 0.8; letter-spacing: -0.03em; text-align: right; font-feature-settings: "tnum"; }
.price.talk { font-size: clamp(44px, 6vw, 96px); }
.scrub { position: relative; padding: 34px clamp(22px, 3vw, 44px) 26px; }
.scrub-zones { position: relative; height: 54px; border-radius: 8px; overflow: hidden; display: flex; background: #ebe5d9; }
.scrub-zones span { position: relative; height: 100%; border-right: 1px solid rgba(13,12,11,0.12); display: flex; align-items: flex-end; padding: 0 10px 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute-ink); transition: background 0.25s, color 0.25s; }
.scrub-zones span.on { background: var(--ink); color: var(--bone); }
.scrub-zones span.on b { color: var(--rosso); }
.scrub-zones b { font-weight: 600; margin-left: 6px; }
.scrub-ticks { position: relative; height: 22px; margin-top: 6px; }
.scrub-ticks i { position: absolute; top: 0; width: 1px; height: 6px; background: rgba(13,12,11,0.3); }
.scrub-ticks i.major { height: 10px; background: rgba(13,12,11,0.6); }
.scrub-ticks em { position: absolute; top: 11px; font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute-ink); transform: translateX(-50%); }
.scrub input[type="range"] { position: absolute; left: clamp(22px, 3vw, 44px); right: clamp(22px, 3vw, 44px); top: 26px; width: calc(100% - 2 * clamp(22px, 3vw, 44px)); height: 70px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: ew-resize; }
.scrub input[type="range"]::-webkit-slider-runnable-track { height: 70px; background: none; }
.scrub input[type="range"]::-moz-range-track { height: 70px; background: none; }
.scrub input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 4px; height: 70px; background: var(--rosso); border-radius: 2px; box-shadow: 0 0 0 5px rgba(242,54,29,0.18); }
.scrub input[type="range"]::-moz-range-thumb { width: 4px; height: 70px; background: var(--rosso); border: 0; border-radius: 2px; }
.scrub input[type="range"]:focus-visible { outline: none; }
.scrub input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(242,54,29,0.4); }
.qb-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line-ink); }
.qb-body > div { padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 44px); }
.qb-body > div + div { border-left: 1px solid var(--line-ink); }
.qb-body h4 { margin: 0 0 16px; font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-ink); }
.incl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.incl li { position: relative; padding-left: 24px; font-size: 15.5px; line-height: 1.35; }
.incl li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 7px var(--rosso); }
.addons { display: grid; gap: 10px; }
.addon { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-ink); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.addon:hover { border-color: rgba(13,12,11,0.4); }
.addon:has(input:checked), .addon.stepper.on { border-color: var(--ink); background: #efe9dd; }
.addon input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 999px; background: #d8d0c2; position: relative; cursor: pointer; margin: 0; transition: background 0.2s; }
.addon input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); }
.addon input[type="checkbox"]:checked { background: var(--rosso); }
.addon input[type="checkbox"]:checked::after { transform: translateX(16px); }
.addon .t { font-weight: 700; font-size: 15px; font-variation-settings: "wdth" 106; }
.addon .d { display: block; font-weight: 400; font-size: 13.5px; color: var(--mute-ink); margin-top: 1px; }
.addon .p { font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }
.step-ctl { display: inline-flex; align-items: center; gap: 4px; }
.step-ctl button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-ink); background: #fff; cursor: pointer; font-weight: 700; line-height: 1; }
.step-ctl output { min-width: 18px; text-align: center; font-family: var(--f-mono); font-size: 14px; }
.qb-total { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; justify-content: space-between; background: var(--ink); color: var(--bone); padding: 20px clamp(22px, 3vw, 44px); }
.qb-total .sum { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-2); }
.qb-total .tot { font-variation-settings: "wdth" 125; font-weight: 800; font-size: 34px; letter-spacing: -0.01em; font-feature-settings: "tnum"; }
.qb-total .right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.fine { margin: 18px 0 0; font-size: 14px; color: var(--mute-ink); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 72px); }
.faq-grid .sec-side { position: sticky; top: 100px; align-self: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 0; font-weight: 700; font-size: clamp(19px, 1.7vw, 24px); font-variation-settings: "wdth" 108; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--bone), var(--bone)) center/100% 2px no-repeat, linear-gradient(var(--bone), var(--bone)) center/2px 100% no-repeat; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: linear-gradient(var(--rosso), var(--rosso)) center/100% 2px no-repeat, linear-gradient(var(--rosso), var(--rosso)) center/2px 100% no-repeat; }
.faq details p { margin: 0 0 24px; color: var(--bone-2); max-width: 44em; }

/* ---------- the brief ---------- */
.brief { background: var(--ink); overflow: hidden; }
.azione { position: relative; font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase; font-size: clamp(72px, 17.5vw, 290px); line-height: 0.8; letter-spacing: -0.03em; margin: 0; white-space: nowrap; }
.azione .bang { color: var(--rosso); }
.azione-sub { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.2vw, 32px); color: var(--mute); margin: 10px 0 0; }
.brief-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); margin-top: clamp(48px, 6vw, 88px); align-items: start; }
.bform { display: grid; gap: 30px; }
.q { display: grid; gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.q > legend, .q > label { padding: 0; font-weight: 700; font-size: 19px; font-variation-settings: "wdth" 108; }
.q .hint { display: block; font-weight: 400; font-size: 14.5px; color: var(--mute); margin-top: 3px; font-variation-settings: "wdth" 100; }
.q .qn { font-family: var(--f-mono); font-size: 12px; color: var(--rosso); margin-right: 10px; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; font-variation-settings: "wdth" 106; transition: all 0.2s; }
.chips label:hover span { border-color: var(--bone-2); }
.chips input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chips input:focus-visible + span { outline: 2px solid var(--rosso); outline-offset: 2px; }
.field { width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; color: var(--bone); padding: 14px 16px; font: inherit; font-size: 16px; transition: border-color 0.2s; }
.field::placeholder { color: #6f695f; }
.field:focus { outline: none; border-color: var(--bone-2); }
textarea.field { min-height: 110px; resize: vertical; line-height: 1.5; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row3 label, .row2 label { display: grid; gap: 6px; font-size: 13px; font-family: var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); min-width: 0; }
select.field { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23efe9de' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
input[type="date"].field { color-scheme: dark; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 6px; }
.send .btn { --h: 58px; font-size: 16px; padding: 0 28px; }
.send small { color: var(--mute); font-size: 14px; }
.send small a { color: var(--bone-2); }
.sent-note { display: none; color: var(--bone-2); font-size: 15px; }
.sent-note.on { display: block; }

.slate-wrap { position: sticky; top: 100px; }
.slate { position: relative; background: #1a1917; border-radius: 10px; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9); color: #f4f1ea; }
.clapper { position: relative; height: 54px; transform-origin: 14px 54px; transform: rotate(-11deg); transition: transform 0.18s cubic-bezier(0.5, 0, 0.9, 0.4); }
.clapper.shut { transform: rotate(0); }
.clapper .bar, .slate .bar2 { position: absolute; left: 0; right: 0; height: 44px; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(115deg, #f4f1ea 0 34px, #141311 34px 68px); }
.clapper .bar { bottom: 6px; }
.slate .bar2 { position: relative; height: 40px; border-radius: 0; background: repeating-linear-gradient(65deg, #f4f1ea 0 34px, #141311 34px 68px); }
.slate .hinge { position: absolute; left: 6px; top: 40px; width: 16px; height: 16px; border-radius: 50%; background: #8f8a80; z-index: 2; }
.slate-body { padding: 18px 20px 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid #f4f1ea; }
.slate-body .cell { border-bottom: 1px solid rgba(244,241,234,0.4); padding: 10px 8px 10px 0; min-width: 0; }
.slate-body .cell.full { grid-column: 1 / -1; }
.slate-body .cell + .cell:not(.full) { padding-left: 10px; border-left: 1px solid rgba(244,241,234,0.4); }
.slate-body .cell.full + .cell { border-left: 0; padding-left: 0; }
.slate-body .k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #b9b3a8; }
.slate-body .v { font-family: var(--f-chalk); font-size: 30px; line-height: 1.05; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.slate-body .v.big { font-size: 38px; }
.slate-body .v.empty { color: #6d685f; }
.slate-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #b9b3a8; }
.slate-foot .wm { height: 13px; width: auto; color: #f4f1ea; }
.slate-note { margin-top: 16px; font-size: 14px; color: var(--mute); }

/* ---------- footer ---------- */
.foot { padding: clamp(60px, 8vw, 110px) 0 36px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot h5 { margin: 0 0 14px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--bone-2); }
.foot a:hover { color: var(--bone); }
.foot p { margin: 0; color: var(--bone-2); max-width: 22em; }
.foot-mark { margin-top: clamp(60px, 8vw, 120px); color: var(--bone); }
.foot-mark .wordmark { width: 100%; height: auto; }
.foot-base { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--mute); text-transform: uppercase; }

/* ---------- player dialog ---------- */
.player { width: min(1280px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 12px; background: #000; color: var(--bone); overflow: hidden; }
.player::backdrop { background: rgba(5,5,4,0.88); backdrop-filter: blur(6px); }
.player-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 16px 14px 22px; background: var(--ink-2); }
.player-bar .pt { font-weight: 800; font-variation-settings: "wdth" 115; font-size: 17px; }
.player-bar .pt small { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; color: var(--mute); margin-left: 10px; text-transform: uppercase; }
.versions { display: flex; gap: 6px; flex-wrap: wrap; }
.versions button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--bone-2); }
.versions button[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.player .x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 20px; line-height: 1; }
.player .x:hover { border-color: var(--rosso); color: var(--rosso); }
.player video { width: 100%; max-height: calc(94vh - 64px); background: #000; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav ul { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .monitor { margin-right: 0; }
  .screen { border-radius: 6px; }
  .subtitle { padding-right: 0; }
  .film.feature { grid-template-columns: 1fr; }
  .numerals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numerals > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .numerals > div { padding-bottom: 28px; }
  .quotes { grid-template-columns: 1fr; }
  .faq-grid, .brief-grid, .make-grid { grid-template-columns: 1fr; }
  .faq-grid .sec-side, .slate-wrap, .make-preview { position: static; }
  .make-preview { order: -1; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; }
  .film, .film.w8, .film.w7, .film.w5, .film.w4 { grid-column: span 12; }
  /* the edit timeline becomes a plain list of steps */
  .how-scroll { height: auto; }
  .how-stage { position: static; height: auto; padding: 0; }
  .how-top { display: block; }
  .steps { min-height: 0; display: grid; gap: 40px; }
  .step { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .how-viewer-col, .timeline { display: none; }
  .qb-body { grid-template-columns: 1fr; }
  .qb-body > div + div { border-left: 0; border-top: 1px solid var(--line-ink); }
  .qb-top { grid-template-columns: 1fr; }
  .price { text-align: left; }
  .scrub-zones span { font-size: 9.5px; padding: 0 5px 6px; }
  .scrub-zones b { display: block; margin: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav .btn .long { display: none; } .nav .btn .short { display: inline; }
  .nav .brand .wordmark { height: 16px; }
  .clients .wrap { display: grid; gap: 22px; }
  .clients ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; align-items: center; }
  .logo-codex { height: auto; width: 100%; max-width: 170px; }
  .scrub-zones span { font-size: 0; padding: 0; }
  .addon { grid-template-columns: auto minmax(0, 1fr); }
  .addon .p { grid-column: 2; }
  .hud .tr, .hud .br { display: none; }
  .clients ul { justify-content: flex-start; }
  .numerals { grid-template-columns: 1fr; }
  .numerals > div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(13,12,11,0.25); }
  .incl { grid-template-columns: 1fr; }
  .row3, .row2 { grid-template-columns: 1fr; }
  .types button { grid-template-columns: 30px minmax(0, 1fr); }
  .types .len { grid-column: 2; }
  .types .desc { grid-column: 2; }
  .foot-top { grid-template-columns: 1fr; }
  .slate-body .v { font-size: 25px; }
  .slate-body .v.big { font-size: 30px; }
  .cursor { display: none; }
}
@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; }
  .reveal { opacity: 1; transform: none; }
  .grain { display: none; }
}

/* =====================================================================
   v2: intro, kinetic headline, page timecode, menu, portraits, mobile
   ===================================================================== */

/* intro curtain: once per visit, removes itself even without JS */
.intro-curtain { display: none; }
.intro .intro-curtain { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; animation: ic-gone 0s linear 1.9s forwards; }
.intro-curtain .ic-top, .intro-curtain .ic-bot { position: absolute; left: 0; right: 0; height: 50.5%; background: #070706; }
.intro-curtain .ic-top { top: 0; animation: ic-up 0.75s cubic-bezier(0.7, 0, 0.2, 1) 1.05s forwards; }
.intro-curtain .ic-bot { bottom: 0; animation: ic-down 0.75s cubic-bezier(0.7, 0, 0.2, 1) 1.05s forwards; }
.intro-curtain .ic-mid { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px; color: var(--bone); animation: ic-fade 0.3s ease 0.95s forwards; }
.intro-curtain .ic-mid .wordmark { width: min(62vw, 520px); height: auto; opacity: 0; transform: scale(0.96); animation: ic-in 0.5s var(--ease) 0.1s forwards; }
.intro-curtain .ic-mid .rec { animation: rec 0.4s steps(2) infinite; }
.intro-curtain p { margin: 0; text-align: center; opacity: 0; animation: ic-in 0.4s ease 0.45s forwards; }
.intro-curtain p .it { display: block; font-weight: 700; font-size: 20px; font-variation-settings: "wdth" 110; }
.intro-curtain p .en { display: block; font-family: var(--f-serif); font-style: italic; font-size: 19px; color: var(--mute); }
@keyframes ic-up { to { transform: translateY(-101%); } }
@keyframes ic-down { to { transform: translateY(101%); } }
@keyframes ic-fade { to { opacity: 0; } }
@keyframes ic-in { to { opacity: 1; transform: none; } }
@keyframes ic-gone { to { visibility: hidden; } }

/* headline: words rise out of their own line */
.hero h1 .w { display: inline-block; vertical-align: top; clip-path: inset(-0.18em -3em -0.14em -0.3em); }
.hero h1 .w > span { display: inline-block; white-space: nowrap; }
.anim .hero h1 .w > span { transform: translateY(125%); animation: rise 0.9s var(--ease) forwards; }
.anim .hero h1 .w:nth-child(2) > span { animation-delay: 0.08s; }
.anim .hero h1 .w:nth-child(3) > span { animation-delay: 0.16s; }
.anim .hero h1 .w:nth-child(4) > span { animation-delay: 0.24s; }
.anim.intro .hero h1 .w > span { animation-delay: 1.15s; }
.anim.intro .hero h1 .w:nth-child(2) > span { animation-delay: 1.23s; }
.anim.intro .hero h1 .w:nth-child(3) > span { animation-delay: 1.31s; }
.anim.intro .hero h1 .w:nth-child(4) > span { animation-delay: 1.39s; }
@keyframes rise { to { transform: none; } }
.anim .hero .label, .anim .hero .lede, .anim .hero-cta, .anim .offer, .anim .monitor { opacity: 0; animation: fadeup 0.9s var(--ease) 0.35s forwards; }
.anim .hero .lede { animation-delay: 0.45s; } .anim .hero-cta { animation-delay: 0.55s; } .anim .offer { animation-delay: 0.65s; } .anim .monitor { animation-delay: 0.2s; }
.anim.intro .hero .label { animation-delay: 1.3s; } .anim.intro .hero .lede { animation-delay: 1.45s; } .anim.intro .hero-cta { animation-delay: 1.55s; } .anim.intro .offer { animation-delay: 1.65s; } .anim.intro .monitor { animation-delay: 1.2s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* the rotating last word: a slot reel */
.rot { display: inline-block; height: 0.9em; overflow: hidden; vertical-align: top; transition: width 0.6s var(--ease); }
.rot-track { display: flex; flex-direction: column; transition: transform 0.7s cubic-bezier(0.7, 0, 0.15, 1); }
.rot-track > span { display: block; height: 0.9em; line-height: 0.9; white-space: nowrap; }
.rot-track.blur { filter: blur(0.6px); }

/* section headings wipe in */
.anim .sec-head.reveal .h2, .anim .faq .sec-side.reveal .h2 { clip-path: inset(0 0 100% 0); transform: translateY(0.25em); transition: clip-path 1.1s var(--ease) 0.1s, transform 1.1s var(--ease) 0.1s; }
.anim .sec-head.reveal.in .h2, .anim .faq .sec-side.reveal.in .h2 { clip-path: inset(-20% -5% -25% -5%); transform: none; }

/* the page runs like a ninety-second film */
.pagetc { position: fixed; left: 18px; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px; background: rgba(13,12,11,0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--bone); opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.4s var(--ease); pointer-events: none; }
.pagetc.on { opacity: 1; transform: none; }
.pagetc .recdot { width: 8px; height: 8px; border-radius: 50%; background: var(--rosso); animation: rec 1.2s steps(2) infinite; }
.pagetc .dur { color: var(--mute); }
.pagetc i { position: relative; width: 70px; height: 3px; border-radius: 2px; background: rgba(239,233,222,0.18); overflow: hidden; }
.pagetc i b { position: absolute; inset: 0; background: var(--rosso); transform-origin: left; transform: scaleX(0); }

/* nav + menu */
.nav-right { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(13,12,11,0.5); cursor: pointer; position: relative; }
.menu-btn span:not(.sr-only) { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--bone); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--ink); padding: 96px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 8vw, 44px); line-height: 1; opacity: 0; transform: translateY(16px); animation: fadeup 0.5s var(--ease) forwards; }
.menu nav a i { font-style: normal; font-family: var(--f-mono); font-weight: 400; font-size: 12px; color: var(--mute); letter-spacing: 0.1em; }
.menu nav a.go { color: var(--rosso); }
.menu nav a:nth-child(2) { animation-delay: 0.04s; } .menu nav a:nth-child(3) { animation-delay: 0.08s; } .menu nav a:nth-child(4) { animation-delay: 0.12s; } .menu nav a:nth-child(5) { animation-delay: 0.16s; } .menu nav a:nth-child(6) { animation-delay: 0.2s; } .menu nav a:nth-child(7) { animation-delay: 0.24s; }
.menu-foot { margin: 28px 0 0; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em; }
.menu-foot a { color: var(--bone-2); }
body.menu-open { overflow: hidden; }

/* films: a slight tilt towards the pointer */
.film-screen { transform-style: preserve-3d; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.film-screen.tilt { box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9); }
.film-screen .glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 60% at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.12), transparent 60%); opacity: 0; transition: opacity 0.4s; z-index: 1; }
.film-screen.tilt .glare { opacity: 1; }

/* testimonials: portraits develop from black and white */
.quote figcaption { align-items: center; gap: 22px; }
.filmstrip { width: 132px; height: 164px; padding: 12px 16px; border-radius: 4px; box-shadow: 0 24px 60px -30px rgba(0,0,0,0.9); transform: rotate(-2.5deg); transition: transform 0.6s var(--ease); }
.quote:nth-child(2) .filmstrip { transform: rotate(2deg); }
.quote:hover .filmstrip { transform: rotate(0) scale(1.03); }
.filmstrip::before, .filmstrip::after { width: 7px; top: 6px; bottom: 6px; background: repeating-linear-gradient(to bottom, var(--ink-2) 0 6px, transparent 6px 13px); }
.filmstrip::before { left: 4px; } .filmstrip::after { right: 4px; }
.filmstrip .ph img { filter: grayscale(1) contrast(1.1) brightness(0.95); transition: filter 1.8s ease 0.3s; }
.quote.in .filmstrip .ph img { filter: none; }
.filmstrip .frame-no { position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 0.14em; color: #d6a24a; }
.quote blockquote .hl { color: var(--rosso); font-style: italic; }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent-note.ok { color: var(--bone); }
.sent-note.ok::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--rosso); margin-right: 10px; vertical-align: 1px; }

/* footer wordmark: the dot watches you */
.foot-mark .rec { transition: transform 0.25s ease-out; transform-box: fill-box; transform-origin: center; }

/* ---------- mobile, properly ---------- */
@media (max-width: 1100px) {
  .menu-btn { display: inline-block; }
  .pagetc { display: none; }
}
@media (max-width: 900px) {
  .hero { padding-top: 96px; align-items: flex-start; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { display: contents; }
  .hero .label { order: 1; } .hero h1 { order: 2; } .monitor { order: 3; margin-top: 26px; } .hero .lede { order: 4; } .hero-cta { order: 5; } .offer { order: 6; }
  .subtitle { margin-top: 12px; min-height: 50px; }
  /* how it works: each step carries its own screen */
  .viewer.mob { display: block; margin-top: 18px; max-height: none; aspect-ratio: 4 / 3; }
  .viewer.mob .pane { opacity: 1; }
  .viewer.mob .pin { max-width: 70%; }
  .viewer.mob .pin .bubble { font-size: 12px; }
  .viewer.mob .scriptpane { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .viewer.mob .looks { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .viewer.mob .script { font-size: 10px; max-height: 150px; }
  .steps { gap: 56px; }
  .step h3 { font-size: clamp(30px, 9vw, 44px); }
  /* what we make: the clip opens inside the row you tap */
  .make-grid { display: block; }
  .make-preview { position: static; margin: 4px 0 22px 0; }
  .make-preview .caption, .make-preview .blurb { display: none; }
  .types li.on .desc { margin-bottom: 14px; }
  .types .name { font-size: clamp(20px, 6vw, 30px); }
  .types button { padding: 18px 0; }
  .film-meta h3 { font-size: 24px; }
  .quote figcaption { flex-direction: row; }
  .filmstrip { width: 108px; height: 136px; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(44px, 13.4vw, 64px); }
  .hero .lede { margin-top: 22px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .screen { border-radius: 4px; }
  .hud { font-size: 10px; }
  .hud .tl { top: 12px; left: 14px; }
  .corners { inset: 8px; }
  .sec { padding: 76px 0; }
  .h2 { font-size: clamp(34px, 10.5vw, 52px); }
  .step-ctl button { width: 36px; height: 36px; font-size: 18px; }
  .chips span { height: 44px; }
  .btn { --h: 54px; }
  .send .btn { width: 100%; justify-content: center; }
  .qb-total .right { width: 100%; justify-content: space-between; }
  .azione { font-size: 17vw; }
  .manifesto .big { font-size: clamp(26px, 7.4vw, 36px); }
  .quote blockquote { font-size: 23px; }
  .grain { animation: none; }
  .foot-mark { margin-top: 56px; }
}
