@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 118%;
  font-display: optional;
}

:root {
  --bone: #EFEDE6;
  --ink: #111;
  --accent: #FB4E1D;
  --retro-red: #B83215;
  --retro-orange: #DA5914;
  --retro-gold: #FFBB22;
  --ink-2: #333;
  --ink-3: #555;
  --muted-light: #B8B8B8;
  --sand: #DAD7CE;
  --gutter: clamp(20px, 3vw, 48px);
  --max: 1600px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .2, 1);
  --ease-rv: cubic-bezier(.2, .75, .15, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 200; background: var(--ink); color: var(--bone); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
.mono { font-variant-numeric: tabular-nums; }
.small { font-size: 13px; }
.meta { font-size: 14px; color: var(--ink-3); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

/* Display type */
.display, .hero-title, .contact-title,
.work-client, .founder h3, .h-sub, .testimonial blockquote {
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 96px);
  line-height: .9;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--bone);
  border-bottom: 2px solid var(--ink);
}
body.scrolled .site-header { background: rgba(239, 237, 230, .96); }

.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark > :is(img, svg) { display: block; width: clamp(148px, 18vw, 224px); height: auto; }
.nav-row { display: flex; align-items: stretch; height: var(--nav-h); }
.nav-links { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.nav-links a, .nav-cta, .menu-btn, .btn, .footer-row {
  font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 0 28px; margin-right: calc(-1 * var(--gutter));
  background: var(--ink); color: var(--bone);
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--accent); color: var(--ink); }
.nav-cta:focus-visible { outline-offset: -5px; }
/* With Rive, the dot morphs into an arrow on hover instead of the button flooding orange. */
.cta-mark { display: none; position: absolute; left: 19px; top: calc(50% - 8px); width: 28px; height: 16px; pointer-events: none; }
.nav-cta.rive .dot { visibility: hidden; }
.nav-cta.rive .cta-mark { display: block; }
.nav-cta.rive:hover { background: #000; color: var(--bone); }
.mobile-nav { display: none; }
.menu-btn { display: flex; align-items: center; padding: 12px 0; min-height: 44px; list-style: none; cursor: pointer; }
.menu-btn::-webkit-details-marker { display: none; }
.mobile-nav[open] .menu-btn span:first-child,
.mobile-nav:not([open]) .menu-btn span:last-child,
.mobile-nav:not([open]) > .mobile-menu { display: none; }

.mobile-menu {
  position: fixed; inset: calc(var(--mobile-nav-h, var(--nav-h)) + 2px) 0 0 0; z-index: 49;
  background: var(--bone);
  padding: 24px var(--gutter);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior-y: contain;
}
.mobile-menu a {
  font-size: 48px; font-weight: 800; font-stretch: 115%; text-transform: uppercase;
  letter-spacing: -0.02em; padding: 14px 0; border-bottom: 2px solid var(--ink);
}
.mobile-menu a.accent { color: var(--accent); }
.mobile-menu a.small { margin-top: 24px; font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; border: 0; }

@media (max-width: 819px) {
  .site-header { --mobile-nav-h: var(--nav-h); }
  body.scrolled .site-header { --mobile-nav-h: 52px; }
  .site-header .nav { height: var(--mobile-nav-h); }
  .site-header .wordmark { display: flex; align-items: center; min-height: 44px; }
  .nav-row { display: none; }
  .mobile-nav { display: block; }
}

@media (max-width: 819px) and (prefers-reduced-motion: no-preference) {
  .site-header .nav { transition: height .2s var(--ease-out); }
  .mobile-menu { transition: top .2s var(--ease-out); }
  .mobile-nav[open] .mobile-menu a { animation: mobile-menu-enter .15s ease-out; }
  @keyframes mobile-menu-enter {
    from { transform: translateY(-4px); }
    to { transform: translateY(0); }
  }
}

/* ---------- Image slots (placeholders until approved stills arrive) ---------- */
.slot {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 16px;
  background: var(--sand);
  color: var(--ink-3);
  font-size: 13px;
}
.slot--dark { background: #1a1a1a; color: #6b6b6b; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.filled span { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  border: 0; cursor: pointer; font-weight: 700;
  transition: background .2s, color .2s;
}
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--bone); }
.btn--ghost-light { border: 2px solid var(--bone); color: var(--bone); background: none; }
.btn--ghost-light:hover { background: var(--bone); color: var(--ink); }
.btn--dark { min-height: 56px; padding: 0 36px; background: var(--ink); color: var(--bone); }
.btn--dark:hover { background: var(--bone); color: var(--ink); }
.tri { width: 0; height: 0; border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.btn-square {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; min-height: 52px;
  background: none; border: 2px solid var(--bone); color: var(--bone);
  cursor: pointer; transition: background .2s;
}
.btn-square:hover { background: rgba(239, 237, 230, .15); }
.ico-pause { display: inline-flex; gap: 4px; }
.ico-pause i { width: 3px; height: 14px; background: var(--bone); }
.ico-play { display: none; width: 0; height: 0; margin-left: 3px; border-left: 11px solid var(--bone); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.btn-square.paused .ico-pause { display: none; }
.btn-square.paused .ico-play { display: inline-block; }
.btn-square { position: relative; }
.pp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
.btn-square.rive .pp-canvas { display: block; }
.btn-square.rive .ico-pause, .btn-square.rive .ico-play { display: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh);
  display: grid; grid-template-rows: 1fr auto; padding-top: calc(var(--nav-h) + 32px);
  background: var(--ink); color: var(--bone); overflow: hidden;
}
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-poster img, .hero-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity .3s ease; }
.hero-video.ready { opacity: 1; }
@media (min-width: 820px) { .hero-video { transition-duration: .65s; } }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(17,17,17,.9) 0%, rgba(17,17,17,.5) 34%, rgba(17,17,17,0) 62%);
}
.hero-body { position: relative; grid-row: 2; min-width: 0; }
.hero-body .wrap { padding-bottom: clamp(24px, 3vw, 40px); }
.hero-title {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-size: clamp(48px, 8.4vw, 156px);
  line-height: .86; letter-spacing: -0.035em;
  text-wrap: balance; max-width: 14ch; overflow-wrap: anywhere;
}
.hero-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px 48px; align-items: end;
  position: relative; padding-top: 20px;
}
.hero-row::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--bone);
}
.hero-sub { margin: 0; max-width: 460px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 819px) {
  .hero { min-height: 100svh; }
  .hero-title {
    font-size: min(clamp(48px, 8.4vw, 156px), calc((100vw - 2 * var(--gutter)) / 9.7));
    max-width: none;
  }
  .hero-actions { justify-content: flex-start; }
}
.hero-actions .btn-square[hidden] { display: inline-flex !important; visibility: hidden; }
.hero-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(239, 237, 230, .18); pointer-events: none; opacity: 0;
}
.hero-video.ready ~ .hero-progress { opacity: 1; }
.hero-progress div { height: 100%; width: 0; background: var(--accent); }

/* The sunrise is drawn with CSS so the opening can start on the first paint. */
.hero-intro { display: none; position: absolute; inset: 0; pointer-events: none; }
@media (min-width: 820px) and (prefers-reduced-motion: no-preference) {
  :is(.intro-starting, .intro-revealing) .hero-intro { display: block; }
  .intro-starting :is(.hero-video, .hero-progress) { opacity: 0; transition: none; }
  .hero-intro-curtain {
    position: absolute; inset: 0 0 50%;
    background: var(--ink);
    transition: transform .9s var(--ease-io) .18s;
  }
  .hero-intro-curtain:nth-child(2) { inset: 50% 0 0; }
  .intro-revealing .hero-intro-curtain:first-child { transform: translateY(-101%); }
  .intro-revealing .hero-intro-curtain:nth-child(2) { transform: translateY(101%); }
  .hero-intro-sun {
    position: absolute; left: 50%; top: 32%;
    width: clamp(80px, 15svh, 140px); aspect-ratio: 1;
    transform: translate(-50%, -50%);
  }
  .hero-intro-disc {
    display: block; width: 100%; height: 100%; border-radius: 50%;
    background: linear-gradient(var(--retro-red) 0 33.333%, var(--retro-orange) 33.333% 66.667%, var(--retro-gold) 66.667%);
  }
  .intro-starting .hero-intro-sun { animation: sunrise-bounce .8s both; }
  .intro-starting.intro-spin .hero-intro-disc { animation: sunrise-bounce-spin .8s both; }
  .intro-revealing .hero-intro-disc { animation: sunrise-release .55s ease-in-out both; }
  @keyframes sunrise-bounce {
    0% { transform: translate(-50%, calc(-50% - 42px)); animation-timing-function: ease-in; }
    34% { transform: translate(-50%, calc(-50% + 8px)) scale(1.09, .9); animation-timing-function: ease-out; }
    62% { transform: translate(-50%, calc(-50% - 15px)) scale(.98, 1.03); animation-timing-function: ease-in; }
    81% { transform: translate(-50%, calc(-50% + 3px)) scale(1.035, .96); animation-timing-function: ease-out; }
    100% { transform: translate(-50%, -50%); }
  }
  @keyframes sunrise-bounce-spin {
    0% { transform: rotate(-22deg); animation-timing-function: cubic-bezier(.2, .65, .3, 1); }
    67% { transform: rotate(365deg); animation-timing-function: ease-out; }
    100% { transform: rotate(360deg); }
  }
  @keyframes sunrise-release {
    0% { opacity: 1; transform: rotate(0) scale(1); }
    52% { opacity: 1; transform: rotate(165deg) scale(1.08); }
    100% { opacity: 0; transform: rotate(360deg) scale(.78); }
  }
}

/* ---------- Work ---------- */
.brand-strip { background: var(--ink); }
.brand-logos {
  --logo-columns: 6;
  --logo-gap: clamp(14px, 2vw, 28px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px var(--logo-gap);
  margin-block: 0; padding-block: clamp(30px, 3.3vw, 48px) clamp(20px, 2.4vw, 34px); list-style: none;
}
.brand-logos li {
  flex: 0 0 calc((100% - (var(--logo-columns) - 1) * var(--logo-gap)) / var(--logo-columns));
  min-width: 0; min-height: 44px; display: grid; place-items: center;
}
.brand-logos img { display: block; max-width: min(86%, 104px); max-height: 32px; width: auto; height: auto; object-fit: contain; opacity: .68; }
.brand-logo-wide img { max-width: min(90%, 144px); }
@media (max-width: 719px) {
  .brand-logos { --logo-columns: 4; row-gap: 8px; }
  .brand-logos .brand-logo-wide { flex-basis: calc((200% - 2 * var(--logo-gap)) / 4); }
  .brand-logos li { min-height: 36px; }
  .brand-logos img { max-height: 27px; }
}
.work { position: relative; background: var(--ink); color: var(--bone); scroll-margin-top: var(--nav-h); }
.work-inner { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(80px, 9vw, 136px); }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.work-list { margin-top: clamp(8px, 1vw, 16px); }
.work-row {
  width: 100%; background: none; border: 0;
  border-bottom: 1px solid rgba(239, 237, 230, .3);
  padding: clamp(14px, 1.4vw, 22px) 0;
  color: var(--bone); font: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
  transition: opacity .35s ease;
}
.work.hovering .work-row:not(.on) { opacity: .32; }
.work-client {
  min-width: 0;
  font-size: clamp(24px, 3.3vw, 60px);
  letter-spacing: -0.04em; line-height: .92;
  overflow-wrap: break-word;
  transition: color .25s ease, transform .45s var(--ease-out);
}
.work-row.on .work-client { color: var(--accent); transform: translateX(10px); }
.work-meta { font-size: 14px; color: var(--muted-light); }
.work-card { display: none; }
.work-case-link { margin: 24px 0 0; font-weight: 650; }
.work-case-link a, .work-fallback a { text-decoration: underline; text-underline-offset: 4px; }
.work-fallback { display: grid; gap: 12px; margin: 0; padding-inline-start: 20px; }

/* Crew Home case study */
.case-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding-block: 24px; font-weight: 650;
}
.case-header a:not(.wordmark) { text-decoration: underline; text-underline-offset: 4px; }
.case-hero, .case-creative { background: var(--ink); color: var(--bone); }
.case-intro, .case-section { padding-block: clamp(48px, 6vw, 96px); }
.case-intro { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.case-hero-logo { margin: 0; }
.case-hero-logo img { display: block; width: clamp(110px, 13vw, 174px); height: auto; }
.case-hero-metric {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  margin: clamp(18px, 3vw, 32px) 0; font-size: clamp(16px, 2vw, 22px); font-weight: 650;
}
.case-hero-metric strong { color: var(--accent); font-size: clamp(58px, 7.2vw, 108px); line-height: .9; letter-spacing: -.065em; }
.case-hero-summary { max-width: 33ch; margin: 0 0 14px; font-size: clamp(18px, 2vw, 24px); line-height: 1.35; }
.case-stat-group a { text-decoration: underline; text-underline-offset: 3px; }
.case-hero-film, .case-film-grid section { min-width: 0; }
.case-hero-film-caption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.case-hero-film-caption h2 { margin: 0; font-size: clamp(18px, 2vw, 24px); }
.case-film-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.case-film-title time { color: var(--muted-light); font-size: 14px; font-variant-numeric: tabular-nums; }
.case-distribution > div {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
  padding-block: 16px 22px; border-top: 1px solid var(--muted-light);
}
.case-distribution h2 { margin: 0; color: var(--muted-light); font-size: 14px; font-weight: 650; }
.case-distribution ul {
  display: flex; flex-wrap: wrap; gap: 10px clamp(17px, 2.6vw, 34px); margin: 0; padding: 0;
  list-style: none; color: white; opacity: .64; font-weight: 650;
}
.case-distribution li { display: flex; align-items: center; gap: 5px; min-height: 32px; font-size: 15px; }
.case-distribution img { display: block; width: auto; height: clamp(17px, 2vw, 22px); }
.case-distribution img[alt="Disney+"], .case-distribution img[alt="Paramount+"] { height: clamp(22px, 2.6vw, 30px); }
.case-product, .case-outcome { display: grid; gap: clamp(24px, 5vw, 72px); align-items: start; }
.case-copy p { max-width: 55ch; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.55; }
.case-link { display: inline-block; text-decoration: underline; text-underline-offset: 4px; font-weight: 650; }
.case-app-screens {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px);
  align-items: start; width: min(100%, 440px); justify-self: center;
}
.case-app-screens figure, .case-quote, .case-client-chart { margin: 0; }
.case-app-screens img { display: block; width: 100%; height: auto; border: 1px solid var(--sand); }
.case-app-screens figcaption, .case-bts-gallery figcaption {
  margin-top: 10px; color: var(--ink-3); font-size: 14px; line-height: 1.4;
}
.case-film-overview, .case-film-grid { display: grid; gap: clamp(24px, 5vw, 72px); align-items: start; }
.case-film-grid { margin-top: clamp(28px, 4vw, 56px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--ink-3); }
.case-film-grid h3 { font-size: clamp(22px, 3vw, 34px); }
.case-film-grid p { max-width: 52ch; line-height: 1.5; }
.case-deliverables h3 { margin: 0 0 14px; font-size: 18px; }
.case-deliverables dl { display: grid; gap: 12px; margin: 0; }
.case-deliverables dt { font-weight: 650; }
.case-deliverables dd { max-width: 54ch; margin: 4px 0 0; color: var(--muted-light); line-height: 1.45; }
.case-video-source { color: var(--muted-light); font-size: 14px; }
.case-video-source a { color: var(--bone); }
.case-video {
  display: block; width: 100%; height: auto; background: var(--ink); object-fit: contain;
}
.case-films .case-video { margin-top: 16px; }
.case-quote blockquote { margin: 0; max-width: 31ch; font-size: clamp(19px, 2.25vw, 29px); font-weight: 650; }
.case-quote blockquote p { margin: 0 0 10px; line-height: 1.25; }
.case-quote figcaption { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 14px; }
.case-quote figcaption img { width: 38px; height: 38px; border-radius: 50%; }
.case-process-layout {
  display: grid; gap: clamp(24px, 3vw, 44px);
  margin-top: clamp(24px, 4vw, 52px);
}
.case-process-stage {
  display: grid; align-items: start; gap: 18px clamp(28px, 4vw, 60px);
  border-top: 1px solid var(--sand); padding-top: 16px;
}
.case-process-stage h3 { margin: 0 0 7px; font-size: 18px; }
.case-stage-copy p { margin: 0; max-width: 58ch; line-height: 1.55; }
.case-stage-quote { margin: 16px 0 0; border-left: 3px solid var(--retro-red); padding-left: 12px; }
.case-stage-quote blockquote { margin: 0; font-weight: 650; line-height: 1.35; }
.case-stage-quote figcaption { margin-top: 4px; color: var(--ink-3); font-size: 14px; }
.case-bts-gallery { display: grid; gap: clamp(16px, 2vw, 26px); }
.case-bts-gallery figure { margin: 0; }
.case-bts-gallery img { display: block; width: 100%; height: auto; }
.case-process-stage .case-bts-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-studio { margin-top: clamp(38px, 6vw, 88px); padding-top: clamp(26px, 3vw, 48px); border-top: 1px solid var(--sand); }
.case-studio-intro { display: grid; gap: 16px clamp(28px, 4vw, 60px); align-items: start; }
.case-studio-intro p { margin: 0 0 12px; }
.case-studio h4 { margin: clamp(22px, 4vw, 48px) 0 14px; font-size: 16px; }
.case-studio-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.case-studio-gallery img[src$="production-monitor.webp"] { object-position: center 58%; }
.case-studio-gallery img[src$="living-room-lighting.webp"] { object-position: center 42%; }
.case-results { border-top: 1px solid var(--sand); }
.case-outcome { margin-top: clamp(22px, 4vw, 52px); }
.case-result-metric { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 20px; font-weight: 650; }
.case-result-metric strong { color: var(--retro-red); font-size: clamp(48px, 5vw, 74px); line-height: .9; letter-spacing: -.06em; }
.case-result-metric small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 14px; font-weight: 400; }
.case-footprint { grid-column: 1 / -1; }
.case-stat-group { min-width: 0; border-top: 2px solid var(--ink); padding-top: 16px; }
.case-stat-group h3 { margin: 0 0 16px; font-size: 17px; }
.case-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 126px), 1fr)); gap: 18px; margin: 0; }
.case-stat-grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 5px; }
.case-stat-grid dt, .case-stat-note { color: var(--ink-3); font-size: 14px; line-height: 1.4; }
.case-stat-grid dd {
  margin: 0; font-size: clamp(25px, 3.5vw, 44px); font-weight: 800;
  letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums;
}
.case-stat-note { margin: 16px 0 0; }
.case-client-chart dl { display: grid; gap: 18px; margin: 0; }
.case-client-chart dt { font-size: 14px; font-weight: 650; }
.case-client-chart dd { margin: 5px 0 0; font-size: clamp(18px, 2vw, 24px); font-weight: 800; font-variant-numeric: tabular-nums; }
.case-chart-track { display: block; height: 10px; margin-top: 7px; background: var(--sand); }
.case-chart-track span { display: block; width: var(--bar-width); height: 100%; background: var(--retro-red); }
.case-cta { background: var(--accent); color: var(--ink); }
.case-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.case-cta .h-sub { max-width: 22ch; }
.case-cta p { margin: 12px 0 0; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.45; }
.case-cta :focus-visible { outline-color: var(--ink); }
@media (max-width: 579px) {
  .case-filming-gallery figure:first-child { grid-column: 1 / -1; }
}
@media (min-width: 580px) {
  .case-studio-gallery, .case-process-stage .case-filming-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .case-intro { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .case-product, .case-outcome, .case-film-overview, .case-film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-product > .case-copy { align-self: center; }
}
@media (min-width: 1060px) {
  .case-process-stage, .case-studio-intro { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}

.campaign { margin-top: clamp(48px, 6vw, 88px); }
.campaign h3 { margin: 0; }
.campaign .work-meta { margin: 10px 0 0; }
.campaign-description { margin: 12px 0 20px; max-width: 56ch; line-height: 1.5; }
.campaign-films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .campaign-films { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.campaign-film { display: grid; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: var(--bone); font: inherit; text-align: left; cursor: pointer; }
.campaign-poster { display: block; position: relative; aspect-ratio: 16 / 9; background: #222; }
.campaign-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }

.social-work { margin-top: clamp(56px, 8vw, 112px); }
.social-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.social-head h3 { margin: 0; }
.social-controls { display: flex; gap: 8px; }
.social-controls .btn {
  display: grid; place-items: center; width: 44px; min-height: 44px;
  padding: 0; border-width: 1px; font-size: 20px; line-height: 1;
}
.social-controls [aria-disabled="true"] { opacity: .38; cursor: default; }
.social-controls [aria-disabled="true"]:hover { background: none; color: var(--bone); }
.social-rail {
  position: relative; display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(152px, 20vw, 246px);
  gap: 12px; margin: 0; padding: 4px 4px 16px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px;
  scrollbar-color: var(--muted-light) var(--ink);
}
.social-rail li { scroll-snap-align: start; }
.social-rail a { display: block; position: relative; aspect-ratio: 9 / 16; background: #222; }
.social-rail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumbnail-play {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--accent); color: var(--ink);
}
.social-rail a:focus-visible .thumbnail-play,
.campaign-film:focus-visible .thumbnail-play { background: var(--bone); }
@media (hover: hover) and (pointer: fine) {
  .social-rail a:hover .thumbnail-play,
  .campaign-film:hover .thumbnail-play { background: var(--bone); }
}
@media (prefers-reduced-motion: no-preference) {
  .thumbnail-play { transition: background-color .15s ease; }
  .thumbnail-play .tri { transition: transform .15s ease; }
  .social-rail a:focus-visible .thumbnail-play .tri,
  .campaign-film:focus-visible .thumbnail-play .tri { transform: translateX(2px); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .social-rail a:hover .thumbnail-play .tri,
  .campaign-film:hover .thumbnail-play .tri { transform: translateX(2px); }
}

/* Preview player: clip + Rive viewfinder (Fit.Fill, 16:9 artboard) + HTML timecode and play button */
.player { position: sticky; top: calc(var(--nav-h) + 32px); }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #1a1a1a; overflow: hidden; }
.player-posters > div { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.player-posters > div.on { opacity: 1; }
.player-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02); transition: opacity .5s ease, transform 1.6s ease;
}
.player-frame video.on { opacity: 1; transform: scale(1); }
.player-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vf-tc {
  position: absolute; left: calc(40 / 800 * 100%); top: calc(40 / 450 * 100%);
  transform: translateY(-50%);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--bone);
  text-shadow: 0 1px 4px #000;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.player.on .vf-tc { opacity: .9; transition-delay: .3s; }
.player-play {
  position: absolute; left: 50%; top: 50%;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 22px;
  background: var(--accent); color: var(--ink); border: 0; cursor: pointer;
  font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  transform: translate(-50%, -50%) scale(.92); opacity: 0;
  transition: opacity .35s ease, transform .5s var(--ease-out), background .2s;
}
.player.on .player-play, .player-play:focus-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: .15s, .15s, 0s; }
.player-play:hover { background: var(--bone); }
.player-cap { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font-size: 14px; color: var(--muted-light); }
.player-cap span:first-child { color: var(--bone); font-weight: 600; }

@media (max-width: 899px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .player { display: none; }
  .work-row > .work-meta { display: none; }
  .work-card { display: flex; flex-direction: column; gap: 12px; }
  .work-card .frame { position: relative; aspect-ratio: 16 / 9; background: #222; overflow: hidden; }
  .work-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
  .work-card video.on { opacity: 1; }
  .work-card .badge {
    position: absolute; right: 12px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
    background: var(--accent); color: var(--ink);
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  }
  .work-client { font-size: clamp(28px, 7vw, 48px); }
  .work-row.on .work-client { transform: none; }
}

.site-header { transition: background .25s ease; }

/* Instagram */
.ig { width: 18px; height: 18px; display: block; flex: none; }
.nav-ig { display: inline-flex; align-items: center; padding: 6px 0; transition: color .2s; }
.nav-ig:hover { color: var(--accent); }
.ig-link { display: inline-flex; align-items: center; gap: 10px; }
.contact-ig { align-self: flex-start; font-size: 15px; font-weight: 600; }
.contact-ig span { text-decoration: underline; text-underline-offset: 4px; }
.contact-ig .ig { width: 18px; height: 18px; }
.mobile-menu a.ig-link { margin-top: 8px; }
.footer-links .ig-link .ig { width: 15px; height: 15px; }

/* ---------- Sections ---------- */
.section { padding-top: clamp(80px, 10vw, 152px); scroll-margin-top: var(--nav-h); }
@media (prefers-reduced-motion: no-preference) {
  .reveal.armed.seen { transition: opacity .35s ease, transform .35s var(--ease-rv); }
  .reveal.armed:not(.seen) { opacity: 0; transform: translateY(10px); }
}
.founder p { margin: 0; max-width: 540px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

.h-sub { margin: 0; max-width: 18ch; font-size: clamp(28px, 3vw, 48px); line-height: .95; letter-spacing: -0.03em; text-wrap: balance; }

/* Production timeline */
.timeline-title { max-width: 18ch; }
.timeline { margin-top: clamp(28px, 4vw, 52px); }
.timeline-endpoints { display: flex; justify-content: space-between; gap: 16px; font-weight: 650; }
.timeline-waypoints { position: relative; margin-block: 8px 18px; }
.timeline-track { position: absolute; inset: 16px 0 auto; height: 3px; background: var(--sand); }
.timeline-bar { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--timeline-progress, 0)); transform-origin: left; transition: transform .65s var(--ease-out); }
.timeline.armed:not(.seen) .timeline-bar { transform: scaleX(0); transition: none; }
.timeline-stages { position: relative; display: grid; grid-template-columns: repeat(var(--timeline-stages, 6), minmax(0, 1fr)); }
.timeline-stages button {
  display: grid; justify-items: center; align-content: start; gap: 6px;
  min-width: 0; min-height: 48px; padding: 9px 0 4px; background: none; border: 0;
  color: var(--ink-3); font: inherit; font-size: clamp(12px, 1.3vw, 16px); font-weight: 650; cursor: pointer;
}
.timeline-stages button::before { content: ""; width: 17px; height: 17px; border: 2px solid #918c81; border-radius: 50%; background: var(--bone); }
.timeline-stages button:is(:hover, [aria-pressed="true"]) { color: var(--ink); }
.timeline-stages button:hover::before { border-color: var(--ink); }
.timeline-stages button[aria-pressed="true"]::before {
  background-color: var(--retro-red); background-origin: border-box; background-repeat: no-repeat;
  border-color: transparent;
}
.timeline-stages button:nth-child(n+3)[aria-pressed="true"]::before {
  background-image: linear-gradient(var(--retro-red) 50%, var(--retro-orange) 50%);
}
.timeline-stages button:last-child[aria-pressed="true"]::before {
  background-image: linear-gradient(var(--retro-red) 0 33.333%, var(--retro-orange) 33.333% 66.667%, var(--retro-gold) 66.667%);
}
.timeline-detail { min-height: 100px; max-width: 66ch; }
.timeline-detail h3 { margin: 0 0 5px; font-size: clamp(20px, 2vw, 28px); }
.timeline-detail p { margin: 0; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); }
.timeline-total { margin: 8px 0 0; font-size: 14px; font-weight: 650; color: var(--ink-3); }
.timeline-copy { max-width: 62ch; padding-inline-start: 24px; }
.timeline-copy li + li { margin-top: 16px; }
.timeline-copy h3, .timeline-copy p { margin: 0; }

/* Crew Home testimonial */
.testimonial-band { margin-top: clamp(56px, 8vw, 112px); padding-block: clamp(52px, 7vw, 96px); background: var(--ink); color: var(--bone); }
.testimonial { margin-block: 0; text-align: center; }
.testimonial blockquote { max-width: 29ch; margin: 0 auto; font-size: clamp(28px, 4vw, 58px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.testimonial p { margin: 0; }
.testimonial figcaption { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 2vw, 24px); margin-top: 24px; color: var(--muted-light); text-align: left; }
.testimonial figcaption img { display: block; width: clamp(62px, 7vw, 96px); height: auto; }

/* About */
.about-title {
  max-width: 25ch; margin: 0 auto clamp(30px, 4vw, 54px);
  font-size: clamp(30px, 4.2vw, 60px); text-align: center;
}
.founders {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start;
  max-width: 1040px; margin-inline: auto; gap: 48px clamp(40px, 7vw, 96px);
}
@media (max-width: 819px) {
  .founders { max-width: 520px; grid-template-columns: minmax(0, 1fr); }
}
.founder { display: flex; flex-direction: column; }
.portrait {
  position: relative; inset: auto; width: min(90%, 380px); aspect-ratio: 6 / 5;
  align-self: center; overflow: hidden; margin-bottom: 18px;
}
.portrait--steven img { object-position: 50% 24%; }
.portrait--max img { object-position: 50% top; }
.founder-text { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 3px solid var(--ink); }
.founder h3 { margin: 0; font-size: clamp(26px, 2.4vw, 36px); font-stretch: 115%; letter-spacing: -0.02em; line-height: 1; }
.founder-text > :is(h3, .meta) { text-align: center; }
.founder p { margin-top: 6px; max-width: 520px; line-height: 1.6; }
.founder-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }
.founder-links a, .favorites-toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--ink); transition: background .2s ease, border-color .2s ease;
}
.founder-links a:hover, .favorites-toggle:is(:hover, [aria-expanded="true"]) { border-color: var(--accent); background: var(--accent); }
.founder-links svg { display: block; width: 21px; height: 21px; }
.favorites-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: auto; padding: 0 12px; background: none; color: var(--ink);
  font-size: 14px; font-weight: 650; cursor: pointer;
}
.favorites-toggle svg { width: 25px; }
@media (320px <= width <= 360px) {
  .founder-links { display: grid; grid-template-columns: repeat(4, 44px) max-content; gap: 4px; }
  .favorites-toggle { padding-inline: 4px; gap: 4px; font-size: 12px; }
  .favorites-toggle svg { width: 21px; }
}
.favorites-panel {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .42s var(--ease-out), opacity .25s ease, visibility .42s step-end;
}
.favorites-panel.is-open {
  grid-template-rows: 1fr; opacity: 1; visibility: visible;
  transition: grid-template-rows .42s var(--ease-out), opacity .25s ease, visibility 0s;
}
.favorites-panel-clip { min-height: 0; overflow: hidden; }
.favorites-shelf { margin-top: 12px; padding: clamp(10px, 2.2vw, 18px) clamp(12px, 3vw, 24px); border: 1px solid var(--sand); background: #e8e5dd; }
.vhs-stack {
  position: relative; width: min(100%, 400px); margin-inline: auto;
  --vhs-pull: clamp(8px, 1.45vw, 20px);
  --vhs-duration: .32s;
}
.vhs-stack img { display: block; width: 100%; height: auto; aspect-ratio: var(--vhs-ratio); }
.vhs-steven {
  --vhs-ratio: 1024 / 706;
  --vhs-top-slice: polygon(.6% 20.5%, 3% 18%, 25.5% 18%, 26.7% 22.6%, 30% 25%, 69% 22.6%, 73% 20.6%, 74% 18%, 96% 18%, 99.4% 20.5%, 99.4% 40.5%, 97.5% 42.6%, 2.5% 42.6%, .6% 40.5%);
}
.vhs-max {
  --vhs-ratio: 1024 / 709;
  --vhs-top-slice: polygon(1% 19.5%, 4% 17.2%, 25.5% 17.2%, 26.7% 21.8%, 30% 24.7%, 68.5% 21.6%, 71.8% 19.7%, 72.5% 17.2%, 96% 17.2%, 99% 19.5%, 99% 37.5%, 97% 39.5%, 3% 39.5%, 1% 37.5%);
}
.vhs-stack a {
  position: absolute; inset: var(--start) 0 calc(100% - var(--end));
  border-radius: 8px;
  --vhs-slice: inset(var(--start) .45% calc(100% - var(--end)) round 7px);
  --vhs-x: 0px;
  --vhs-y: 0px;
  --vhs-visible: 0;
  --vhs-hide-delay: var(--vhs-duration);
}
.vhs-stack a:first-of-type { --vhs-slice: var(--vhs-top-slice); }
/* Keep the link in place and move only the clipped artwork. */
.vhs-stack a::before, .vhs-stack a::after {
  content: "";
  position: absolute; inset: 0 0 auto;
  aspect-ratio: var(--vhs-ratio);
  clip-path: var(--vhs-slice);
  pointer-events: none;
  opacity: var(--vhs-visible);
  transition: opacity 0s var(--vhs-hide-delay), transform var(--vhs-duration) var(--ease-out);
}
.vhs-stack a::before {
  background: linear-gradient(90deg, #19110c, #493322 12%);
  transform: translateY(calc(-1 * var(--start)));
}
.vhs-stack a::after {
  background: var(--vhs-art, none) 0 0 / 100% 100% no-repeat;
  transform: translate(var(--vhs-x), calc(-1 * var(--start) + var(--vhs-y)));
}
.vhs-stack a:is(:focus-visible, :active) {
  z-index: 1;
  --vhs-x: var(--vhs-pull);
  --vhs-y: -2px;
  --vhs-visible: 1;
  --vhs-hide-delay: 0s;
}
.vhs-stack a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vhs-rive {
  position: absolute; z-index: 1; inset-inline-end: 3%; top: 50%;
  width: 28px; height: 16px; pointer-events: none;
  opacity: 0;
  translate: var(--vhs-x) calc(-50% + var(--vhs-y));
  transition: opacity .15s ease, translate var(--vhs-duration) var(--ease-out);
}
.vhs-stack a:focus-visible .vhs-rive.ready { opacity: 1; }
@media (hover: hover) {
  .vhs-stack:not(:has(a:focus-visible)) a:hover {
    z-index: 1;
    --vhs-x: var(--vhs-pull);
    --vhs-y: -2px;
    --vhs-visible: 1;
    --vhs-hide-delay: 0s;
  }
  .vhs-stack a:hover .vhs-rive.ready { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .vhs-stack a::before, .vhs-stack a::after { content: none; }
  .vhs-stack a:is(:hover, :focus-visible, :active) { outline: 2px solid var(--accent); outline-offset: 1px; }
}

/* ---------- Contact ---------- */
.contact { position: relative; margin-top: clamp(80px, 10vw, 152px); background: var(--accent); color: var(--ink); scroll-margin-top: var(--nav-h); }
.contact-racing-stripes {
  position: absolute; inset: auto 0 0 auto;
  width: clamp(138px, 40vw, 600px); height: clamp(81px, 23vw, 340px);
  pointer-events: none;
}
.contact-racing-stripes span {
  position: absolute; inset: 0;
  background-image: linear-gradient(135deg,
    transparent 0 var(--start), var(--stripe) var(--start) var(--end), transparent var(--end));
  background-position: 75% 75%; background-size: 145% 145%;
}
.contact-racing-stripes span:nth-child(1) { --stripe: var(--retro-red); --start: 70%; --end: 75.5%; }
.contact-racing-stripes span:nth-child(2) { --stripe: var(--retro-orange); --start: 75.5%; --end: 81%; }
.contact-racing-stripes span:nth-child(3) { --stripe: var(--retro-gold); --start: 81%; --end: 86.5%; }
@media (max-width: 819px) {
  .contact-racing-stripes { width: clamp(138px, 28vw, 215px); height: clamp(81px, 16vw, 123px); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .contact-racing-stripes.has-race span { opacity: 0; }
}
.contact-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(60px, 8vw, 120px);
}
@media (max-width: 819px) { .contact-inner { grid-template-columns: 1fr; } }
.contact-title { margin: 0; font-size: clamp(44px, 5.8vw, 112px); line-height: .86; letter-spacing: -0.04em; text-wrap: balance; }
@media (max-width: 359px) { .contact-title { font-size: clamp(30px, 11vw, 40px); } }
.contact-direct { display: flex; flex-direction: column; gap: 12px; }
.contact :focus-visible { outline-color: var(--ink); }
.contact-email { font-size: clamp(20px, 2vw, 28px); font-weight: 700; border-bottom: 3px solid var(--ink); align-self: flex-start; padding-bottom: 4px; }
.contact-book { align-self: flex-start; margin-bottom: 12px; }
.contact-loc { font-size: 15px; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer-inner { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 32px; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.footer-mark { display: block; position: relative; width: min(100%, 860px); padding-bottom: clamp(8px, 2.65vw, 23px); }
.footer-mark > svg { display: block; width: 100%; height: auto; }
.footer-wordmark { position: relative; z-index: 1; }
.footer-mark > .footer-racing-stripes {
  position: absolute; inset: 0 auto auto 0; width: 102%;
  overflow: visible; pointer-events: none;
}
.footer-racing-stripes path {
  fill: none; stroke-width: 11.5; stroke-linecap: round; opacity: 0;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.footer-racing-stripes path:nth-of-type(1) { stroke: var(--retro-red); }
.footer-racing-stripes path:nth-of-type(2) { stroke: var(--retro-orange); }
.footer-racing-stripes path:nth-of-type(3) { stroke: var(--retro-gold); }
.footer-mark-dot { transform-box: fill-box; transform-origin: center; }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  padding-top: 18px; border-top: 3px solid var(--ink); font-size: 13px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: #0B0B0B; color: var(--bone);
  display: flex; flex-direction: column; padding: clamp(16px, 3vw, 40px);
  transition: background .6s ease;
}
.modal-bar { transition: opacity .4s ease .35s; }
.modal.expanding { background: rgba(10, 10, 10, 0); transition: none; }
.modal.expanding .modal-bar { opacity: 0; transition: none; }
.modal-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #262626; }
.np { display: flex; align-items: center; gap: 14px; min-width: 0; }
.eq { width: 32px; height: 24px; flex: none; }
.np-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.np-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.np-title { font-size: clamp(16px, 1.5vw, 22px); font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-meta { margin-left: 10px; padding-left: 18px; border-left: 1px solid #333; font-size: 13px; color: var(--muted-light); white-space: nowrap; }
.modal-close {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 1.5px solid rgba(239, 237, 230, .45); color: var(--bone);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  min-height: 44px; padding: 0 16px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.modal-close:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.modal-close .x { position: relative; width: 12px; height: 12px; }
.modal-close .x::before, .modal-close .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; }
.modal-close .x::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close .x::after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (max-width: 639px) {
  .np-meta { display: none; }
  .np-title { white-space: normal; line-height: 1.1; overflow-wrap: anywhere; }
  .modal-close { flex: none; }
}
.modal-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 0; padding: 24px 0; }
.modal-frame { width: min(100%, calc((100vh - 200px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; position: relative; overflow: hidden; }
.modal-frame video, .modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.modal-frame:has(iframe:not([hidden])) { min-height: 200px; min-width: min(100%, 200px); }
.modal-trailer-link { color: var(--muted-light); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.modal-trailer-link:hover { color: var(--bone); }
.modal-stage:has(.modal-playlist:not([hidden])) .modal-frame {
  width: min(100%, calc(max(100px, 100dvh - 225px) * 16 / 9));
}
.modal-playlist {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 384px); gap: 8px;
}
.modal-playlist button {
  display: grid; min-width: 0; gap: 4px; padding: 4px;
  border: 1px solid transparent; background: none; color: var(--muted-light);
  font-size: 12px; text-align: center; cursor: pointer;
}
.modal-playlist img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.modal-playlist button:hover { color: var(--bone); border-color: var(--muted-light); }
.modal-playlist button[aria-pressed="true"] { color: var(--bone); border-color: var(--accent); }
.modal.expanding .modal-playlist, .modal.expanding .modal-trailer-link { opacity: 0; }
.modal-pending { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #1A1A1A; text-align: center; padding: 24px; font-size: 18px; }
.modal-pending > span { max-width: 420px; }
.accent-text { font-size: 14px; color: var(--accent); }
.modal-pending b { font-weight: 600; }

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