/* Eureka Frames — site styles. One accent (lightbulb yellow); every case page re-tints --film to its own film's key colour. */
:root {
  --paper: #EEF0F4;
  --paper-2: #E3E6ED;
  --ink: #101116;
  --ink-2: #1B1D26;
  --muted: #595D6C;
  --muted-on-ink: #A4A8B8;
  --line: #CDD1DB;
  --accent: #FFD23F;
  --accent-ink: #101116;
  --film: #FFD23F;
  --display: "Clash Display", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 11vw, 150px);
  --max: 1360px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 0.95; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.visually-hidden, form.brief input.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--ink); pointer-events: none;
}
.nav .logo, .nav ul { pointer-events: auto; background: rgba(238, 240, 244, .78); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-radius: 999px; box-shadow: 0 1px 0 rgba(16,17,22,.06), 0 8px 24px -14px rgba(16,17,22,.35); }
.nav .logo { padding: 7px 16px 7px 9px; font-size: 18px; }
.nav ul { padding: 9px 20px; }
.nav .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: 0.01em; }
.logo svg { width: 28px; height: 28px; }
.nav ul { list-style: none; display: flex; gap: clamp(16px, 2.4vw, 34px); margin: 0; padding: 9px 20px; }
.nav a.link { text-decoration: none; font-weight: 500; font-size: 16px; position: relative; }
.logo span { white-space: nowrap; }
@media (max-width: 480px) { .nav .logo span { display: none; } .nav .logo { padding: 8px; } .nav ul { gap: 16px; padding: 9px 16px; } .nav a.link { font-size: 15px; } }
.nav a.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.nav a.link:hover::after, .nav a.link[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- timecode bar (signature) ---------- */
.tc {
  position: fixed; left: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 16px 9px 12px;
  box-shadow: 0 10px 30px -12px rgba(16, 17, 22, .55);
}
.tc .rec { width: 9px; height: 9px; border-radius: 50%; background: #FF4D3D; }
.tc .scrub { width: 120px; height: 4px; border-radius: 2px; background: #3A3D4C; overflow: hidden; }
.tc .scrub i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.tc .frame { color: var(--muted-on-ink); }
@media (max-width: 640px) { .tc .frame, .tc .scrub { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero .hero-anim { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }

.hero .wrap { width: 100%; padding-bottom: clamp(88px, 11vh, 120px); display: grid; gap: 22px; }
.wordmark { font-size: clamp(64px, 14.2vw, 232px); line-height: .84; letter-spacing: -0.035em; font-weight: 700; text-transform: uppercase; }
.wordmark .ln { display: block; overflow: hidden; padding-block: .04em; }
.wordmark .ln > span { display: inline-block; }
.wordmark .bulb { color: var(--accent); }
.hero .lede { max-width: 30ch; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; }
.hero-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; padding: 15px 24px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn svg { width: 18px; height: 18px; }

/* ---------- marquee ---------- */
.marquee { background: var(--accent); color: var(--accent-ink); overflow: hidden; border-block: 2px solid var(--ink); }
.marquee .track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 54px); padding: 16px 0; white-space: nowrap; display: flex; align-items: center; }
.marquee span::after { content: ""; width: .42em; height: .42em; margin-inline: .6em; background: var(--ink); border-radius: 2px; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--section); }
.section.ink { background: var(--ink); color: #fff; }
.h2 { font-size: clamp(44px, 7vw, 108px); letter-spacing: -0.025em; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 65ch; }
.section-head p { color: var(--muted); font-size: 19px; }
.ink .section-head p { color: var(--muted-on-ink); }

/* ---------- work index (big type list + floating preview) ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.index li { border-bottom: 2px solid var(--ink); }
.index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; padding: clamp(16px, 2.2vw, 26px) 0; text-decoration: none; position: relative; }
.index .t { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 5.2vw, 76px); line-height: 1; letter-spacing: -0.02em; transition: transform .45s cubic-bezier(.2,.7,.2,1), color .3s; }
.index .m { display: flex; gap: 18px; align-items: center; color: var(--muted); }
.index .field { font-weight: 700; color: var(--ink); }
.index a:hover .t, .index a:focus-visible .t { transform: translateX(18px); }
.index a::before { content: ""; position: absolute; inset: 0 -12px; background: var(--film-row, var(--accent)); transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.2,.7,.2,1); z-index: -1; border-radius: 6px; }
.index a:hover::before, .index a:focus-visible::before { transform: scaleY(1); }
.index li { position: relative; isolation: isolate; }
.preview { position: fixed; left: 0; top: 0; width: min(420px, 34vw); aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; pointer-events: none; z-index: 30; opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-3deg); transition: opacity .25s, transform .35s cubic-bezier(.2,.7,.2,1); box-shadow: 0 30px 60px -25px rgba(16,17,22,.55); background: var(--ink); }
.preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.preview.tall { width: min(240px, 20vw); aspect-ratio: 9/16; }
.preview video { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 820px) { .preview { display: none; } .index a { grid-template-columns: 1fr; } }

/* ---------- film strip (horizontal pan) ---------- */
.strip { overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(64px, 8vw, 110px); }
.strip-track { display: flex; gap: 22px; width: max-content; padding-inline: var(--gutter); }
.strip figure { margin: 0; width: clamp(260px, 30vw, 460px); display: grid; gap: 12px; }
.strip .frame-card { position: relative; border-radius: 10px; overflow: hidden; background: var(--ink-2); padding: 14px 14px; }
.strip .frame-card::before, .strip .frame-card::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,.22) 14px 26px); }
.strip .frame-card::before { top: 2px; } .strip .frame-card::after { bottom: 2px; }
.strip img { border-radius: 4px; aspect-ratio: 16/9; object-fit: cover; width: 100%; height: auto; }
.strip > .wrap { width: 100%; }
.strip .frame-card { display: block; }
.strip figcaption { display: flex; justify-content: space-between; gap: 16px; color: var(--muted-on-ink); }
.strip figcaption b { color: #fff; font-weight: 700; }

/* ---------- studio teaser: four verbs ---------- */
.verbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.verbs > div { padding: 26px 22px 6px 0; display: grid; gap: 10px; align-content: start; }
.verbs > div + div { padding-left: 22px; border-left: 2px solid var(--ink); }
.verbs h3 { font-size: clamp(30px, 3.2vw, 46px); }
.verbs p { color: var(--muted); font-size: 17px; }
@media (max-width: 900px) { .verbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .verbs > div:nth-child(3) { padding-left: 0; border-left: 0; } .verbs > div:nth-child(n+3) { border-top: 2px solid var(--ink); } }
@media (max-width: 560px) { .verbs { grid-template-columns: 1fr; } .verbs > div + div { padding-left: 0; border-left: 0; border-top: 2px solid var(--ink); } }

/* ---------- big CTA ---------- */
.cta { background: var(--accent); color: var(--accent-ink); padding-block: var(--section); }
.cta .wrap { display: grid; gap: 30px; justify-items: start; }
.cta h2 { font-size: clamp(52px, 9vw, 150px); letter-spacing: -0.03em; line-height: .9; }
.cta .btn { background: var(--ink); color: #fff; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--muted-on-ink); padding-block: 56px 96px; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- work page ---------- */
.page-head { padding-top: calc(68px + clamp(56px, 9vw, 120px)); padding-bottom: clamp(40px, 5vw, 64px); }
.page-head h1 { font-size: clamp(64px, 12vw, 190px); letter-spacing: -0.035em; line-height: .86; text-transform: uppercase; }
.page-head p { margin-top: 22px; color: var(--muted); font-size: 20px; max-width: 52ch; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button { font: 700 15px var(--body); border: 2px solid var(--ink); background: transparent; color: var(--ink); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.card { grid-column: span 6; display: grid; gap: 14px; text-decoration: none; align-content: start; }
.card.wide { grid-column: span 12; }
.grid { grid-auto-flow: row dense; }
.card.tall { grid-column: span 4; grid-row: span 2; grid-template-rows: 1fr auto auto; }
.card.side { grid-column: span 8; }
.card .media { position: relative; border-radius: 12px; overflow: hidden; background: var(--ink); aspect-ratio: 16/9; }
.card.tall .media { aspect-ratio: auto; min-height: 420px; }
.card .media img, .card .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.card .media video { opacity: 0; }
.card:hover .media video, .card:focus-visible .media video, .card.playing .media video { opacity: 1; }
.card:hover .media img { transform: scale(1.04); }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card h3 { font-size: clamp(26px, 2.6vw, 38px); }
.card .mono { color: var(--muted); }
.card[hidden] { display: none; }
@media (max-width: 820px) { .card, .card.tall, .card.side { grid-column: span 12; grid-row: auto; } .card.tall .media { aspect-ratio: 4/5; min-height: 0; } }

/* ---------- case page ---------- */
.case-hero { padding-top: calc(68px + clamp(40px, 7vw, 90px)); background: var(--film); color: var(--film-ink, var(--ink)); }
.case-hero .wrap { display: grid; gap: 24px; padding-bottom: clamp(40px, 5vw, 64px); }
.case-hero h1 { font-size: clamp(48px, 8.4vw, 132px); letter-spacing: -0.03em; line-height: .9; }
.case-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.case-meta span { font-family: var(--mono); font-size: 14px; }
.player { background: var(--film); padding-bottom: clamp(40px, 6vw, 80px); }
.player video { width: 100%; border-radius: 14px; background: #000; box-shadow: 0 40px 80px -40px rgba(16,17,22,.6); }
.player.tall .vids { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 28px; justify-content: center; }
.player.tall video { aspect-ratio: 9/16; }
.player.tall .vids figcaption { margin-top: 10px; font-family: var(--mono); font-size: 13px; }
@media (max-width: 640px) { .player.tall .vids { grid-template-columns: 1fr 1fr; gap: 12px; } }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.case-body h2 { font-size: clamp(36px, 4.4vw, 64px); position: sticky; top: 110px; }
.case-body .copy { display: grid; gap: 22px; font-size: 20px; max-width: 60ch; }
.case-body .copy h3 { font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.facts li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.facts li span:first-child { color: var(--muted); }
@media (max-width: 820px) { .case-body { grid-template-columns: 1fr; } .case-body h2 { position: static; } }
.next { display: block; text-decoration: none; background: var(--ink); color: #fff; padding-block: clamp(60px, 9vw, 120px); }
.next .wrap { display: grid; gap: 14px; }
.next .label { color: var(--muted-on-ink); }
.next h2 { font-size: clamp(48px, 9vw, 150px); letter-spacing: -0.03em; line-height: .9; transition: color .3s; }
.next:hover h2 { color: var(--accent); }

/* ---------- studio page ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.principles > div { padding: 32px 32px 32px 0; display: grid; gap: 12px; align-content: start; border-bottom: 2px solid var(--ink); }
.principles > div:nth-child(even) { padding-left: 32px; border-left: 2px solid var(--ink); }
.principles h3 { font-size: clamp(28px, 3vw, 42px); }
.principles p { color: var(--muted); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } .principles > div:nth-child(even) { padding-left: 0; border-left: 0; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 30px 0; border-top: 2px solid rgba(255,255,255,.18); align-items: baseline; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); color: var(--accent); font-size: 15px; }
.steps h3 { font-size: clamp(30px, 3.4vw, 50px); }
.steps p { color: var(--muted-on-ink); }
@media (max-width: 760px) { .steps li { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
form.brief { display: grid; gap: 18px; }
form.brief label { display: grid; gap: 8px; font-weight: 700; font-size: 15px; }
form.brief input, form.brief textarea, form.brief select { font: 400 17px var(--body); padding: 14px 16px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
form.brief textarea { min-height: 150px; resize: vertical; }
.form-note { color: var(--muted); font-size: 15px; }
.form-status { font-weight: 700; min-height: 1.6em; }
.form-status.ok { background: var(--accent); padding: 16px 18px; border-radius: 10px; }
.form-status.err { color: #B3261E; }
form.brief .opt { font-weight: 400; color: var(--muted); }
form.brief button[disabled] { opacity: .6; cursor: progress; }
.reach { display: grid; gap: 12px; }
.reach-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; background: #fff; transition: transform .25s cubic-bezier(.2,.7,.2,1); min-width: 0; }
.reach-row:hover { transform: translateY(-2px); }
.reach-row > span:last-child { display: grid; min-width: 0; }
.reach-row b { font-size: 15px; }
.reach-row > span:last-child > span { font-size: 18px; overflow-wrap: anywhere; }
.reach .ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 20px var(--body); }
.reach .ico.wa { background: #25D366; }
.reach .ico svg { width: 26px; height: 26px; }
.wa-float { position: fixed; right: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(16,17,22,.55); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.contact-side { display: grid; gap: 22px; }
.contact-side .big { font-family: var(--display); font-size: clamp(30px, 3.6vw, 52px); line-height: 1; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- motion: initial states are visible; JS adds the entrance only when allowed ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
  * { transition-duration: .01ms !important; }
}
@media (max-width: 760px) {
  .strip { min-height: 0; }
  .strip-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .strip-track::-webkit-scrollbar { display: none; }
  .strip figure { width: 82vw; scroll-snap-align: center; flex: none; }
}

/* headings balance (no lone last word like "Podcast clip / edit"); body copy only avoids orphans */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
/* work grid: a row of six 9:16 cards (KFC, Mona, Mr Beast, Hormozi, Feed drift, House A) in a grid of their own */
.talls { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: inherit; }
.talls .card.trio { grid-column: auto; }
.card.trio .media { aspect-ratio: 9/16; }
.card.trio h3 { font-size: clamp(20px, 1.95vw, 28px); }
.card.trio .row.mono { font-size: 11.5px; gap: 10px; }
/* phone: two per row, so the four 9:16 films are one screen and a half, not three and a half */
@media (max-width: 820px) { .talls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .talls .card.trio:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - var(--half-gap, 10px)); justify-self: center; } .card.trio { grid-column: span 6; } .card.trio .media { aspect-ratio: 9/16; } .card.trio h3 { font-size: 20px; } .card.trio .row.mono { font-size: 10.5px; flex-wrap: wrap; gap: 2px 8px; } }
/* Brandcrackers port: lower floor so the 9-letter wordmark fits a 360px phone */
.wordmark { font-size: clamp(48px, 14.2vw, 212px); }
/* play button over the poster; native controls only after the first press */
.pv { position: relative; }
.pv video { display: block; width: 100%; }
.pv-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border: 0; border-radius: 50%; background: var(--accent); color: #101116; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 34px -10px rgba(16,17,22,.6); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.pv-play:hover { transform: scale(1.08); }
.pv-play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.pv.on .pv-play { display: none; }
/* phones: keep the brand name visible (the hero no longer names the studio); drop the timecode bar that covers content */
@media (max-width: 480px) {
  .nav .logo span { display: inline; font-size: 15px; }
  .nav .logo { padding: 7px 12px 7px 8px; }
  .nav .logo svg { width: 22px; height: 22px; }
  .nav ul { gap: 12px; padding: 9px 13px; }
  .nav a.link { font-size: 14px; }
}
@media (max-width: 640px) { .tc { display: none; } }
@media (max-width: 640px) {
  /* wordmark spans the screen: "EXPLAINER" measures 5.61x its font size in Clash Display 700 */
  .wordmark { font-size: calc((100vw - 2 * var(--gutter, 16px)) / 5.7); }
  .hero .lede { font-size: 20px; }
  /* one solid bar instead of two floating pills once the page moves, so text never shows between them */
  .nav::before { content: ""; position: absolute; inset: 0; background: rgba(238, 240, 244, .9); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgba(16,17,22,.08); opacity: 0; transition: opacity .25s; }
  .nav.solid::before { opacity: 1; }
  .nav.solid .logo, .nav.solid ul { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav .wrap { position: relative; height: 60px; }
  .wa-float { width: 48px; height: 48px; }
  .wa-float svg { width: 26px; height: 26px; }
}
@media (max-width: 420px) {
  .nav .logo span { font-size: 14px; }
  .nav .logo { padding: 6px 10px 6px 7px; gap: 6px; }
  .nav .logo svg { width: 18px; height: 18px; }
  .nav ul { gap: 10px; padding: 9px 11px; }
  .nav a.link { font-size: 13px; }
}
@media (max-width: 370px) { .nav ul { gap: 8px; padding: 9px 10px; } .nav .logo { padding-right: 9px; } }
@media (max-width: 359px) { .nav .logo span { display: none; } }

/* ---- video wall (after cardboard.ai) */
.wall-wrap { --h: clamp(220px, 27vw, 347px); --g: 8px; width: min(100% - 2 * var(--gutter), 1760px); margin: clamp(8px, 2vw, 24px) auto 0; }
.wall { display: grid; gap: var(--g); padding: var(--g); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; }
.wall-row { overflow: hidden; border-radius: 12px; }
.wall-track { display: flex; width: max-content; will-change: transform; }
.wall-set { display: flex; gap: var(--g); padding-right: var(--g); }
.wt { position: relative; flex: none; height: var(--h); width: calc(var(--h) * var(--ar)); padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #0B0B10; cursor: pointer; color: #fff; text-align: left; font: inherit; }
.wt img, .wt video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wt video { opacity: 0; transition: opacity .4s; }
.wt video[src] { opacity: 1; }
.wt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,11,16,.78), rgba(11,11,16,.2) 45%, rgba(11,11,16,.2)); opacity: 0; transition: opacity .3s; }
.wt-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s cubic-bezier(.2,.7,.2,1); }
.wt-play svg { width: 24px; height: 24px; fill: var(--ink); margin-left: 3px; }
.wt-cap { position: absolute; z-index: 1; left: 14px; right: 14px; top: 12px; display: grid; gap: 4px; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
.wt-cap .mono { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.wt-cap b { font-weight: 700; font-size: 16px; line-height: 1.25; }
.wt-cap .s { display: none; }
.wt:hover::after, .wt:focus-visible::after { opacity: 1; }
.wt:hover .wt-play, .wt:focus-visible .wt-play { opacity: 1; transform: none; }
.wt:hover .wt-cap, .wt:focus-visible .wt-cap { opacity: 1; transform: none; }
.wt:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.wall-hint { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.wall-hint .tch { display: none; }
@media (hover: none) { .wall-hint .desk { display: none; } .wall-hint .tch { display: inline; } }
/* reduced motion: still rows, swipe sideways */
@media (prefers-reduced-motion: reduce) { .wall-row { overflow-x: auto; scrollbar-width: none; } .wall-row::-webkit-scrollbar { display: none; } }
/* phones: two-column grid, every film at its own shape */
@media (max-width: 760px) {
  .wall { display: block; columns: 2; column-gap: var(--g); border-radius: 16px; }
  .wall-row, .wall-track, .wall-set { display: contents; }
  .wt { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); margin-bottom: var(--g); break-inside: avoid; border-radius: 10px; }
  .wt::after { opacity: 1; background: linear-gradient(to bottom, rgba(11,11,16,.75), transparent 55%); }
  .wt-cap { opacity: 1; transform: none; left: 9px; right: 9px; top: 8px; }
  .wt-cap .mono, .wt-cap .l { display: none; }
  .wt-cap .s { display: block; }
  .wt-cap b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* the 9:16 GREYMARK cut is a second cut of a film already shown, so it drops here: KFC and NOIR/26 are the tall tiles and the columns end level */
  .wt[data-key="greymark-vertical"] { display: none; }
  .wall-hint { flex-wrap: wrap; gap: 4px 16px; font-size: 11px; }
  .wt-play { display: none; }
}
/* player */
.wall-dlg { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
.wall-dlg::backdrop { background: rgba(11,11,16,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wall-dlg[open] { display: grid; place-items: center; }
.wd-box { position: relative; width: min(100% - 32px, 1200px, (100svh - 260px) * 16 / 9); display: grid; gap: 16px; }
.wall-dlg.tall .wd-box { width: min(100% - 32px, (100svh - 330px) * 9 / 16, 460px); }
.wd-vid video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
.wall-dlg.tall .wd-vid video { aspect-ratio: 9 / 16; }
.wd-info { display: flex; justify-content: space-between; align-items: end; gap: 12px 28px; flex-wrap: wrap; color: #fff; }
.wd-field { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.wd-title { font-size: clamp(20px, 2vw, 28px); margin: 6px 0 4px; color: #fff; }
.wd-line { color: var(--muted-on-ink); font-size: 15px; max-width: 62ch; margin: 0; }
.wd-link { display: inline-flex; gap: 8px; align-items: center; color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; white-space: nowrap; }
.wd-link svg { width: 18px; height: 18px; }
.wd-x { position: absolute; right: 0; top: -52px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; display: grid; place-items: center; cursor: pointer; }
.wd-x svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.wall-dlg.tall .wd-info { display: grid; justify-items: start; }
@media (max-width: 760px) { .wd-line { display: none; } .wd-x { top: -48px; } }
