/* Quiet navigation; the films and typography carry the identity. */
header.site-header { padding: 8px 0; border: 0; gap: 0; }
header.site-header::after { display: none; }
nav.main-nav { gap: 24px; }
.nav-item, .nav-item.active, .nav-item:hover { padding: 8px 0; border: 0; border-radius: 0; background: none; color: var(--muted); transform: none; letter-spacing: .04em; }
.nav-item.active, .nav-item:hover { color: var(--fg); }
.nav-item.active { text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--s-accent); }
.btn { padding: 9px 12px; border-radius: 2px; min-height: 34px; letter-spacing: .04em; }
.btn-secondary, .btn-secondary:hover { background: transparent; border-color: transparent; padding-inline: 0; }
.btn-secondary:hover { text-decoration: underline; text-underline-offset: 5px; }
.filter-chip, .filter-chip.active, .filter-chip:hover { padding: 8px 0; border: 0; background: none; color: var(--muted); border-radius: 0; }
.filter-chip.active { color: var(--fg); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--s-accent); }
.filter-group { gap: 20px; }
.page-utilities { display: flex; justify-content: flex-end; padding: 12px 0 0; }
.page-utilities .theme-icon-btn { width: 32px; height: 32px; border: 0; background: transparent; }
.page-utilities .theme-icon-btn svg { width: 16px; height: 16px; }
.bat-work { padding: 64px 0 48px; }
.bat-intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; margin-bottom: 28px; }
.bat-intro h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.bat-intro p, .bat-projects p { margin: 0; color: var(--dim); font-size: .875rem; line-height: 1.75; }
.bat-cinema { margin: 0; }
.bat-cinema video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: #fff; border-radius: 4px; }
.bat-cinema figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 0; font-size: .75rem; color: var(--muted); line-height: 1.6; }
.bat-cinema button { min-width: 44px; min-height: 44px; flex-shrink: 0; }
.bat-projects { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 28px; padding: 32px 0; }
.bat-projects h4 { font-size: 1rem; margin: 0 0 12px; }
/* The same reel moves from a full-screen prologue into its permanent frame. */
html.intro-pending { overflow: hidden; }
.intro-pending .shell { visibility: hidden; }
.intro-pending #blueprintCanvas { visibility: hidden; }
.intro-pending #cinemaStage { visibility: visible; position: fixed; inset: 0; width: 100vw; height: 100svh; border: 0; border-radius: 0; z-index: 1000; transition: none; }
.intro-pending #main-content { perspective: none; }
.intro-pending #top { transform: none !important; }
.intro-pending .cinema-hud-bar { visibility: hidden; }
.intro-pending .cinema-logo-rig { width: clamp(220px, 32vw, 540px); }
/* Prologue (2026-11-10): black, bold caps, one phrase group at a time with hard cuts,
   then a hard cut to the full-screen reel with the name, then the shared-stage transition. */
.entrance { position: fixed; inset: 0; z-index: 1001; display: grid; place-items: center; padding: 5vw; background: #000; pointer-events: none; }
.entrance p { margin: 0; color: #fff; font: 900 clamp(3.5rem, 13vw, 15rem)/.92 var(--ti-font); letter-spacing: -.055em; word-spacing: .14em; text-align: center; text-wrap: balance; }
html.intro-pending:not(.intro-reel)::after { content: ''; position: fixed; inset: 0; z-index: 1000; background: #000; }
.entrance .g { display: none; }
.entrance .g.on { display: inline; }
.entrance .c-look { color: #fa1556; }
.entrance .c-move { color: #9b6bff; }
.entrance .c-compute { color: #1fe08f; }
.entrance-skip { position: fixed; bottom: 24px; right: 28px; z-index: 1002; color: #fff; background: #0a0a0b; border: 0; font: 500 12px var(--ti-font); padding: 12px; cursor: pointer; }
@media (max-width: 640px) {
  nav.main-nav { width: 100%; justify-content: space-between; gap: 4px 12px; }
  .nav-item { font-size: 12px; letter-spacing: 0; }
  .bat-intro, .bat-projects { grid-template-columns: 1fr; gap: 24px; }
  .bat-work { padding-top: 44px; }
  .entrance { padding: 20px; }
  .entrance p { font-size: clamp(3rem, 17vw, 6.5rem); }
}
@media (pointer: coarse) {
  .btn, .nav-item, .filter-chip, .page-utilities .theme-icon-btn { min-height: 44px; }
  .page-utilities .theme-icon-btn { min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) { .entrance, .entrance-skip { display: none; } }
html.intro-pending #main-content { perspective: none !important; }
html.intro-pending #top { container-type: normal; backface-visibility: visible; }
.intro-pending .cinema-logo-img { width: 100%; }
.intro-pending .cinema-logo-slice { display: none; }
.intro-pending .cinema-logo-rig { transform: none; }
.intro-pending .cinema-logo-rig::after { display: none; }
.intro-pending .cinema-logo-wrap { mix-blend-mode: difference; }
.intro-pending .cinema-logo-img { filter: invert(1); }
.nav-item { min-width: 24px; justify-content: center; }
@media (pointer: coarse) { .nav-item { min-width: 44px; } }

/* ==========================================================================
   Open opening (Todd, 2026-11-08): the reel runs full-bleed like the z17 banner,
   and the intro (headline, lead, actions, stats) sits on top of it.
   ≥ 961px: overlay. ≤ 960px: the reel stays 16:9 and the intro follows below it.
   ========================================================================== */
.cinema-logo-section.is-open { position: relative; width: 100vw; margin-left: calc(50% - 50vw); padding-top: 0; container-type: normal; }
.is-open .cinema-stage,
.is-open .cinema-stage.is-expanded { height: clamp(720px, calc(100svh - 64px), 1080px); border: 0; border-radius: 0; transition: none; }
.is-open .cinema-bg-video.is-wide-source { object-fit: cover; }
.is-open .cinema-stage::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,11,0) 32%, rgba(10,10,11,.66) 60%, rgba(10,10,11,.95) 100%),
              linear-gradient(90deg, rgba(10,10,11,.6) 0%, rgba(10,10,11,0) 58%); }
/* The name keeps its place: centred in the upper part of the frame, above the intro. */
.is-open .cinema-logo-wrap,
.is-open .cinema-stage[data-reel-state="2"] .cinema-logo-wrap { inset: 0 0 50% 0; align-items: center; justify-content: center; padding: 24px; }
.is-open .cinema-hud-bar { top: 16px; bottom: auto; right: var(--shell-gutter); z-index: 4; }

.hero.hero-over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; max-width: var(--shell-max); margin: 0 auto;
  padding: 0 var(--shell-gutter) clamp(36px, 5vw, 72px); border: 0; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr); gap: 48px; color: #f4f4f5; }
.hero-over h1 { font-size: clamp(2.75rem, 5.2vw, 5.25rem); line-height: 1.0; letter-spacing: -0.045em; color: #f4f4f5; max-width: 15ch; }
.hero-over h1 .dim { color: #b4b4be; }
.hero-over .hero-lead { color: #d4d4d8; font-size: clamp(1rem, 1.2vw, 1.125rem); max-width: 56ch; }
.hero-over .hero-text-link { color: #d4d4d8; text-decoration-color: rgba(255,255,255,.35); }
.hero-over .btn-secondary { color: #f4f4f5; }
.hero-over .btn-primary { background: #f4f4f5; color: #0a0a0b; border-color: #f4f4f5; }
.hero-over .hero-panel { background: rgba(10,10,11,.62); border-color: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hero-over .stat-num, .hero-over .hero-clients strong { color: #f4f4f5; }
.hero-over .stat-label { color: #a1a1aa; }
.hero-over .hero-clients { color: #d4d4d8; }
.hero-over .hero-stats-grid { border-bottom-color: rgba(255,255,255,.12); }
.cinema-logo-section.is-open { background: #0a0a0b; } /* the stage is ink-dark in both themes */
.hero-over h1 .accent, .hero-over .stat-num span { color: #fa1556; }
.hero-over .hero-text-link:hover { color: #fff; text-decoration-color: #fa1556; }

@media (max-width: 1199px) {
  .is-open .cinema-stage,
  .is-open .cinema-stage.is-expanded { height: calc(100vw * 9 / 16); min-height: 0; }
  .is-open .cinema-stage::after { display: none; }
  .is-open .cinema-logo-wrap,
  .is-open .cinema-stage[data-reel-state="2"] .cinema-logo-wrap { inset: 0; }
  .hero.hero-over { position: static; padding: 36px var(--shell-gutter) 40px; grid-template-columns: minmax(0, 1fr); gap: 32px; color: var(--fg); }
  .hero-over h1 { color: var(--fg); font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .hero-over h1 .dim { color: var(--muted); }
  .hero-over .hero-lead, .hero-over .hero-text-link, .hero-over .hero-clients { color: var(--link); }
  .hero-over .btn-secondary { color: var(--fg); }
  .hero-over .btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
  .hero-over .hero-panel { background: var(--card); border-color: var(--edge); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-over .stat-num, .hero-over .hero-clients strong { color: var(--fg); }
  .hero-over .stat-label { color: var(--muted); }
  .hero-over .hero-stats-grid { border-bottom-color: var(--edge); }
  .cinema-logo-section.is-open { background: var(--bg); }
  .hero-over h1 .accent, .hero-over .stat-num span { color: var(--accent-ink); }
}
