/* ==========================================================================
   PLAINADS — Showcase + Private Screening Room
   Zero build · zero border-radius · 1px hairlines · one easing curve.
   Type: Archivo (variable width) for display + UI, JetBrains Mono for metadata.
   ========================================================================== */

/* Animatable runtime ratio for the rate ruler (0..1 of 120s). */
@property --r {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.125;
}

:root {
  --black: #0a0a09;
  --surface: #131311;
  --bone: #ebe7df;
  --bone-dim: rgba(235, 231, 223, 0.8);
  --muted: #8c887f; /* 5.6:1 on --black — AA for small text */
  --line: rgba(235, 231, 223, 0.14);
  --line-strong: rgba(235, 231, 223, 0.34);
  --red: #d9381e;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* One easing language: expo-out for every entrance, hover and matte. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(20px, 2.4vw, 36px);
  --max: 1680px;
  --pad: max(var(--gutter), calc((100% - var(--max)) / 2));
  --header-h: 60px;
}

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

html {
  background-color: var(--black);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  background-color: var(--black);
  overflow-x: clip;
}

::selection {
  background: var(--bone);
  color: var(--black);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: var(--bone);
  color: var(--black);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: none;
}

/* --------------------------------------------------------------------------
   Type primitives
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-stretch: 68%;
  font-weight: 760;
  line-height: 0.88;
  letter-spacing: -0.004em;
  text-transform: uppercase;
}

.display .tone {
  font-weight: 340;
}

.eyebrow,
.mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.tally {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--red);
  flex: none;
}

/* Masked line reveal — each .mask clips its .mask-in child. */
.mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.mask-in {
  display: block;
}

.text-link {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.35s var(--ease);
}

.text-link:hover {
  text-decoration-color: var(--bone);
}

.rates-note .text-link,
.approve-note .text-link {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
}

/* --------------------------------------------------------------------------
   Buttons & controls (44px minimum hit area everywhere)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bone);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.btn--solid {
  background-color: var(--bone);
  border-color: var(--bone);
  color: var(--black);
}

.btn--solid:hover {
  background-color: #fff;
  border-color: #fff;
}

.btn--line {
  background-color: rgba(10, 10, 9, 0.4);
}

.btn--line:hover {
  background-color: var(--bone);
  border-color: var(--bone);
  color: var(--black);
}

.btn--sm {
  min-height: 44px;
  padding: 0 16px;
}

.btn-meta {
  opacity: 0.6;
}

.arrow {
  display: inline-block;
  transition: transform 0.45s var(--ease);
}

.btn:hover .arrow,
.btn:focus-visible .arrow {
  transform: translate3d(4px, 0, 0);
}

.icon-play {
  width: 10px;
  height: 12px;
  flex: none;
  fill: currentColor;
}

.ctl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bone);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.ctl:hover {
  background-color: var(--bone);
  border-color: var(--bone);
  color: var(--black);
}

.ctl:hover .muted {
  color: inherit;
  opacity: 0.6;
}

.ctl--play {
  min-width: 84px;
}

.ctl--mute {
  min-width: 92px;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--line-strong);
}

.seg-btn {
  min-height: 44px;
  min-width: 64px;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.seg-btn:hover {
  color: var(--bone);
}

.seg-btn[aria-pressed="true"] {
  background-color: var(--bone);
  color: var(--black);
}

/* Seek bar: 44px hit area, 2px hairline */
.scrub {
  position: relative;
  flex: 1 1 auto;
  min-width: 80px;
  height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.scrub-line {
  position: relative;
  width: 100%;
  height: 2px;
  background-color: var(--line-strong);
  transition: transform 0.3s var(--ease);
}

.scrub:hover .scrub-line,
.scrub:focus-visible .scrub-line {
  transform: scaleY(2);
}

.scrub-fill {
  position: absolute;
  inset: 0;
  background-color: var(--bone);
  transform-origin: left center;
  transform: scaleX(0);
}

.time {
  min-width: 11ch;
  text-align: center;
  color: var(--bone-dim);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: var(--pad);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(10, 10, 9, 0.72), rgba(10, 10, 9, 0));
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.site-header.is-scrolled {
  background-color: rgba(10, 10, 9, 0.96);
  border-bottom-color: var(--line);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  white-space: nowrap;
}

.brand-mark {
  font-family: var(--display);
  font-stretch: 68%;
  font-weight: 800;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color 0.35s var(--ease);
}

.nav-link:hover {
  color: var(--bone);
}

.nav .btn {
  margin-left: 8px;
  gap: 0;
}

/* --------------------------------------------------------------------------
   01 / HERO — clean graded footage loop, responsive poster, scope-open intro
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--black);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--black) url("./videos/hero-poster-16x9.jpg") center / cover no-repeat;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.9s var(--ease);
}

/* Poster (CSS background) shows until the first real frame — no black flash. */
.js .hero-video:not(.is-playing) {
  opacity: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 10, 9, 0.5) 0%,
      rgba(10, 10, 9, 0) 20%,
      rgba(10, 10, 9, 0) 36%,
      rgba(10, 10, 9, 0.62) 64%,
      rgba(10, 10, 9, 0.94) 100%
    ),
    linear-gradient(to right, rgba(10, 10, 9, 0.5) 0%, rgba(10, 10, 9, 0) 62%);
}

/* Anamorphic mattes: the frame opens from 2.39:1 scope to full-bleed on load. */
.hero-matte {
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  height: max(0px, calc((100% - 41.84vw) / 2));
  background-color: var(--black);
  pointer-events: none;
  transform: scaleY(0);
}

.hero-matte--top {
  top: 0;
  transform-origin: top center;
}

.hero-matte--bottom {
  bottom: 0;
  transform-origin: bottom center;
}

.hero-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-content: end;
  align-items: end;
  padding: calc(var(--header-h) + 24px) var(--pad) clamp(32px, 6vh, 72px);
}

.hero-copy {
  grid-column: 1 / 10;
}

.hero-eyebrow {
  margin-bottom: clamp(16px, 2.4vh, 24px);
  color: var(--bone-dim);
}

.hero-title {
  font-size: clamp(3.4rem, 7.4vw, 8.75rem);
}

.hero-lede {
  max-width: 31em;
  margin-top: clamp(18px, 3vh, 28px);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.45;
  color: var(--bone-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3.4vh, 32px);
}

.hero-aside {
  grid-column: 10 / 13;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
  padding-bottom: 2px;
}

.now {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bone-dim);
}

.now-title {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.now-meta {
  font-size: 14px;
  color: var(--bone-dim);
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
  margin-right: -2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}

.motion-toggle:hover {
  color: var(--bone);
}

.motion-toggle::before {
  content: "";
  width: 8px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.motion-toggle[data-state="paused"]::before {
  width: 0;
  height: 0;
  border-right: 0;
  border-left: 9px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ---- Intro choreography (CSS-only, so it can never block the page) ---- */
.intro .hero-matte {
  animation: intro-matte 1.4s var(--ease) 0.12s both;
}

.intro .hero-media {
  animation: intro-settle 2s var(--ease) both;
}

.intro .hero-title .mask-in {
  animation: intro-rise 1.15s var(--ease) both;
  animation-delay: 0.28s;
}

.intro .hero-title .mask + .mask .mask-in {
  animation-delay: 0.38s;
}

.intro .intro-fade {
  animation: intro-fade 1s var(--ease) both;
  animation-delay: var(--d, 0.6s);
}

.intro .site-header {
  animation: intro-fade-plain 1s var(--ease) 0.5s both;
}

@keyframes intro-matte {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(0);
  }
}

@keyframes intro-settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: none;
  }
}

@keyframes intro-rise {
  from {
    transform: translate3d(0, 105%, 0);
  }
  to {
    transform: none;
  }
}

@keyframes intro-fade {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes intro-fade-plain {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scroll reveals for section titles (only once app.js is running). */
.reveal-ready [data-reveal] .mask-in {
  transform: translate3d(0, 105%, 0);
  transition: transform 1.15s var(--ease);
}

.reveal-ready [data-reveal] .mask + .mask .mask-in {
  transition-delay: 0.08s;
}

.reveal-ready [data-reveal].is-inview .mask-in {
  transform: none;
}

/* --------------------------------------------------------------------------
   02 / REEL — one film, every screen (scrubbed matte reframe on desktop)
   -------------------------------------------------------------------------- */
.reel {
  position: relative;
  border-top: 1px solid var(--line);
  background-color: var(--black);
}

.reel-sticky {
  padding: calc(var(--header-h) + clamp(40px, 7vh, 88px)) var(--pad) clamp(56px, 9vh, 104px);
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
}

.reel-rail {
  grid-column: 1 / 5;
}

.reel-title {
  margin-top: 18px;
  font-size: clamp(2.75rem, 4.6vw, 5.25rem);
}

.reel-steps {
  list-style: none;
  margin: clamp(28px, 4.5vh, 44px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.reel-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.6s var(--ease);
}

.reel-step-k {
  grid-row: span 2;
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.6s var(--ease);
}

.reel-step-t {
  font-size: clamp(1.2rem, 1.55vw, 1.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.reel-step-m {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.reel-step.is-active .reel-step-k {
  color: var(--red);
}

.is-scrub .reel-step:not(.is-active) {
  opacity: 0.42;
}

.reel-note {
  margin-top: 20px;
  max-width: 30em;
  font-size: 15px;
  color: var(--bone-dim);
}

.reel-rail .seg {
  margin-top: 28px;
}

.reel-stage {
  grid-column: 5 / 13;
  min-width: 0;
}

.reel-frame {
  position: relative;
  width: 100%;
  max-width: calc((100svh - var(--header-h) - 200px) * 16 / 9);
  margin-left: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #000;
}

.reel-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 1px solid var(--line);
  pointer-events: none;
}

.reel-cut {
  position: absolute;
  inset: 0;
  display: block;
  background-color: #000;
  cursor: pointer;
}

.reel-cut video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Center 9:16 window inside the 16:9 aperture: (9/16)^2 of the width. */
.reel-cut--9x16 {
  left: 50%;
  right: auto;
  width: 31.64%;
  transform: translateX(-50%);
  visibility: hidden;
}

.reel-frame.is-vertical .reel-cut--16x9 {
  visibility: hidden;
}

.reel-frame.is-vertical .reel-cut--9x16 {
  visibility: visible;
  transition: visibility 0s linear 0.42s; /* hard cut once mattes land */
}

.reel-matte {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 34.18%;
  background-color: var(--black);
  pointer-events: none;
  transition: transform 0.7s var(--ease);
}

.reel-matte--l {
  left: 0;
  border-right: 1px solid var(--line-strong);
  transform: translate3d(-101%, 0, 0);
}

.reel-matte--r {
  right: 0;
  border-left: 1px solid var(--line-strong);
  transform: translate3d(101%, 0, 0);
}

.reel-frame.is-vertical .reel-matte {
  transform: none;
}

.is-scrub .reel-matte,
.is-scrub .reel-frame.is-vertical .reel-cut--9x16 {
  transition: none;
}

.reel-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background-color: rgba(10, 10, 9, 0.82);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

@media (hover: hover) {
  .reel-chip {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
  }

  .reel-frame:hover .reel-chip,
  .reel-frame:focus-within .reel-chip {
    opacity: 1;
    transform: none;
  }
}

.reel-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  max-width: calc((100svh - var(--header-h) - 200px) * 16 / 9);
  margin: 14px 0 0 auto;
  font-size: 14px;
  color: var(--bone-dim);
}

.reel-caption strong {
  font-weight: 600;
  color: var(--bone);
}

.reel-caption .mono {
  color: var(--muted);
  white-space: nowrap;
}

/* Desktop scrub mode: native sticky pin (no pin-spacer, no resize jumps). */
@media (min-width: 900px) {
  .reel.is-scrub {
    height: 210vh;
  }

  .reel.is-scrub .reel-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: calc(var(--header-h) + 24px) 32px;
  }
}

/* --------------------------------------------------------------------------
   03 / RATES — runtime ruler + ledger
   -------------------------------------------------------------------------- */
.rates {
  --r: 0.125;
  padding: clamp(96px, 14vh, 168px) var(--pad) clamp(56px, 8vh, 96px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 0;
  transition: --r 0.8s var(--ease);
}

.rates-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(48px, 8vh, 88px);
}

.rates-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 18px;
}

.rates-title {
  grid-column: 1 / 8;
  font-size: clamp(2.9rem, 5.8vw, 6.25rem);
}

.rates-lede {
  grid-column: 8 / 13;
  max-width: 30em;
  padding-bottom: 0.3em;
  font-size: 16px;
  color: var(--bone-dim);
}

.ruler {
  position: relative;
  padding-top: 30px;
  overflow-x: clip;
}

.ruler-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  pointer-events: none;
  transform: translate3d(calc(var(--r) * 100%), 0, 0);
}

.ruler-head::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background-color: var(--red);
}

.ruler-head-label {
  position: absolute;
  top: 0;
  left: 0;
  padding-inline: 10px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  transform: translate3d(calc(var(--r) * -100%), 0, 0);
}

.ruler-track {
  position: relative;
  height: 22px;
  border-bottom: 1px solid var(--line-strong);
  background-image:
    linear-gradient(to right, var(--line-strong) 1px, transparent 1px),
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 25% 14px, calc(100% / 24) 7px;
  background-position: 0 100%, 0 100%;
  background-repeat: repeat-x;
}

.ruler-track::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 14px;
  background-color: var(--line-strong);
}

.ruler-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background-color: var(--bone);
  transform-origin: left center;
  transform: scaleX(var(--r));
}

.ruler-labels {
  position: relative;
  height: 16px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.ruler-labels span {
  position: absolute;
  top: 0;
  left: calc(var(--p) * 100%);
  transform: translateX(-50%);
}

.ruler-labels span:first-child {
  transform: none;
}

.ruler-labels span:last-child {
  transform: translateX(-100%);
}

.ledger {
  list-style: none;
  margin: clamp(28px, 4vh, 44px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.tier {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
  padding: clamp(18px, 2.6vh, 26px) 0;
  border-bottom: 1px solid var(--line);
}

.tier-runtime {
  grid-column: 1 / 4;
  font-size: clamp(2.1rem, 3.5vw, 3.6rem);
}

.tier-use {
  grid-column: 4 / 8;
  font-size: 16px;
  color: var(--bone-dim);
}

.tier-price {
  grid-column: 8 / 11;
  justify-self: end;
  font-size: clamp(2.1rem, 3.5vw, 3.6rem);
  font-variant-numeric: tabular-nums;
}

.tier-price small {
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bone-dim);
}

.tier-cta {
  grid-column: 11 / 13;
  justify-self: end;
  min-width: 132px;
}

.tier.is-active .tier-cta {
  background-color: var(--bone);
  border-color: var(--bone);
  color: var(--black);
}

.rates-note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--bone-dim);
}

/* --------------------------------------------------------------------------
   04 / PROCESS
   -------------------------------------------------------------------------- */
.process {
  padding: clamp(40px, 6vh, 72px) var(--pad) clamp(96px, 14vh, 160px);
}

.process-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
  border-top: 1px solid var(--line);
}

.process-step {
  padding-top: 22px;
}

.process-n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.process-step h3 {
  margin: 14px 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.process-step p {
  max-width: 22em;
  font-size: 15px;
  color: var(--bone-dim);
}

/* --------------------------------------------------------------------------
   05 / CLOSING + FOOTER
   -------------------------------------------------------------------------- */
.closing {
  padding: clamp(96px, 16vh, 200px) var(--pad) clamp(64px, 10vh, 112px);
  border-top: 1px solid var(--line);
}

.closing-title {
  margin: 18px 0 clamp(32px, 5vh, 48px);
  font-size: clamp(3.6rem, 11.5vw, 13rem);
  line-height: 0.84;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 18px var(--pad) calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-bar .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   THEATER — sound-on player (opens like a gate)
   -------------------------------------------------------------------------- */
.theater {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 0 var(--pad) env(safe-area-inset-bottom);
  background-color: var(--black);
  visibility: hidden;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
}

.theater.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s var(--ease), visibility 0s;
}

.has-theater,
.has-theater body {
  overflow: hidden;
}

.theater-top,
.theater-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theater-top {
  justify-content: space-between;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.theater-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.theater-title > span:not(.tally) {
  white-space: nowrap;
}

.theater-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 20px;
}

.theater-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background-color: #000;
  cursor: pointer;
}

.theater-controls {
  min-height: 76px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   PRIVATE SCREENING ROOM (/preview/template.html)
   -------------------------------------------------------------------------- */
.screening {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.screening-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding-inline: var(--pad);
  border-bottom: 1px solid var(--line);
}

.screening-client {
  text-align: center;
}

.screening-client strong {
  font-weight: 500;
  color: var(--bone);
}

.screening-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.screening-main {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 48px;
  align-items: start;
  padding: clamp(28px, 5vh, 56px) var(--pad) clamp(48px, 7vh, 80px);
}

.player {
  grid-column: 1 / 9;
  min-width: 0;
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--surface);
}

.player-box {
  position: absolute;
  inset: 0;
  margin-inline: auto;
  background-color: #000;
}

.player[data-format="9x16"] .player-box {
  width: auto;
  height: 100%;
  aspect-ratio: 9 / 16;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
  cursor: pointer;
}

.player-stage:fullscreen {
  aspect-ratio: auto;
  background-color: #000;
}

.player-bigplay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(to bottom, rgba(10, 10, 9, 0.1), rgba(10, 10, 9, 0.5));
  transition: opacity 0.5s var(--ease), visibility 0s linear 0s;
}

.player-bigplay-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid var(--bone);
  background-color: rgba(10, 10, 9, 0.55);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.player-bigplay-icon .icon-play {
  width: 18px;
  height: 22px;
  margin-left: 4px;
}

.player-bigplay:hover .player-bigplay-icon,
.player-bigplay:focus-visible .player-bigplay-icon {
  background-color: var(--bone);
  color: var(--black);
}

.player.has-started .player-bigplay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.approve {
  grid-column: 9 / 13;
}

.approve-title {
  margin-top: 16px;
  font-size: clamp(2.75rem, 4.2vw, 4.5rem);
}

.approve-lede {
  margin-top: 18px;
  font-size: 15px;
  color: var(--bone-dim);
}

.approve-options {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.approve-option {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 14px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.approve-option .display {
  font-size: clamp(1.9rem, 2.4vw, 2.5rem);
}

.approve-option .btn {
  grid-column: 1 / -1;
  justify-content: space-between;
}

.approve-note {
  margin-top: 20px;
  font-size: 15px;
  color: var(--bone-dim);
}

.screening-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px var(--pad) calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   TABLET & MOBILE (< 900px)
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  :root {
    --header-h: 56px;
  }

  .brand-sub,
  .nav-link--wide {
    display: none;
  }

  .nav-link {
    padding: 0 12px;
  }

  .nav .btn {
    margin-left: 4px;
    padding: 0 14px;
  }

  /* Hero */
  .hero-inner {
    row-gap: 22px;
  }

  .hero-copy,
  .hero-aside {
    grid-column: 1 / -1;
  }

  .hero-aside {
    justify-self: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 0 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .hero-aside .now,
  .hide-sm {
    display: none;
  }

  .hero-scrim {
    background:
      linear-gradient(
        to bottom,
        rgba(10, 10, 9, 0.55) 0%,
        rgba(10, 10, 9, 0.1) 16%,
        rgba(10, 10, 9, 0.38) 42%,
        rgba(10, 10, 9, 0.8) 66%,
        rgba(10, 10, 9, 0.95) 100%
      );
  }

  .now-title {
    margin-top: 0;
    font-size: 14px;
  }

  .now-meta {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  /* Reel */
  .reel-grid {
    display: block;
  }

  .reel-stage {
    margin-top: 32px;
  }

  .reel-frame {
    max-width: none;
    margin-inline: auto;
  }

  .reel-frame.is-vertical {
    width: min(100%, calc(72svh * 9 / 16));
    aspect-ratio: 9 / 16;
  }

  .reel-frame.is-vertical .reel-cut--9x16 {
    left: 0;
    width: 100%;
    transform: none;
    transition: none;
  }

  .reel-matte {
    display: none;
  }

  .reel-caption {
    flex-direction: column;
    gap: 4px;
    max-width: none;
  }

  /* Rates */
  .rates-title,
  .rates-lede {
    grid-column: 1 / -1;
  }

  .rates-lede {
    margin-top: 20px;
  }

  .ruler-labels span[data-hide-sm] {
    display: none;
  }

  .tier {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
    padding: 20px 0;
  }

  .tier-runtime {
    grid-area: 1 / 1;
  }

  .tier-price {
    grid-area: 1 / 2;
  }

  .tier-use {
    grid-area: 2 / 1;
    font-size: 15px;
  }

  .tier-cta {
    grid-area: 2 / 2;
    min-width: 112px;
  }

  /* Process */
  .process-list {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .process-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 8px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
  }

  .process-n {
    padding-top: 3px;
  }

  .process-step h3 {
    margin: 0 0 6px;
    font-size: 18px;
  }

  .closing-actions .btn {
    flex: 1 1 100%;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .footer-bar > span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
  }

  /* Theater */
  .theater-controls {
    flex-wrap: wrap;
    row-gap: 4px;
    padding-block: 10px;
  }

  .theater-controls .scrub {
    order: -1;
    flex: 1 1 100%;
  }

  .theater-controls .time {
    margin-right: auto;
  }

  .theater-title > span.theater-name {
    white-space: normal;
  }

  /* Screening room */
  .screening-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 2px;
    padding-block: 8px;
  }

  .screening-client {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
    padding-bottom: 6px;
  }

  .screening-main {
    display: block;
    padding-top: 20px;
  }

  .player[data-format="9x16"] .player-stage {
    aspect-ratio: auto;
    height: min(72svh, 160vw);
  }

  .player-controls {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .player-controls .scrub {
    order: -1;
    flex: 1 1 100%;
  }

  .player-controls .time {
    margin-right: auto;
  }

  .approve {
    margin-top: 44px;
  }

  .player-bigplay {
    gap: 10px;
  }

  .player-bigplay-icon {
    width: 60px;
    height: 60px;
  }

  .player-bigplay-icon .icon-play {
    width: 13px;
    height: 16px;
    margin-left: 3px;
  }

  .screening-foot {
    flex-direction: column;
  }
}

@media (max-width: 899px) and (orientation: portrait) {
  .hero-media {
    background-image: url("./videos/hero-poster-9x16.jpg");
  }
}

@media (max-width: 380px) {
  .nav-link {
    padding: 0 8px;
  }

  .nav-price {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   REDUCED MOTION — no intro, no scrub, no transitions; content identical.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}
