/* ============================================================
   over:heat — styles.css
   Broadcast-grade, dark-first. Tokens + component styles that
   extend Tailwind utilities.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Surface */
  --bg-base: #0B0B0D;
  --bg-surface: #141417;
  --bg-elev: #1C1C21;
  --bg-inset: #08080A;

  /* Borders */
  --border-hairline: #26262C;
  --border-strong: #3A3A44;

  /* Text */
  --text-hi: #F5F5F2;
  --text-mid: #B8B8B2;
  --text-low: #7A7A74;
  --text-inverse: #0B0B0D;

  /* Brand */
  --brand-heat: #FF3B1F;
  --brand-heat-600: #D8311A;
  --brand-ember: #FF8A3D;
  --brand-signal: #E8E25A;
  --brand-cool: #2E6EF7;

  /* System */
  --success: #4ADE80;
  --warning: #F5B042;
  --error:   #FF5A5A;

  /* Gradients */
  --heat-grad: linear-gradient(135deg, #FF3B1F 0%, #FF8A3D 55%, #E8E25A 100%);
  --cool-grad: linear-gradient(135deg, #2E6EF7 0%, #6AA6FF 100%);

  /* Layout */
  --max-width: 1280px;
  --nav-h: 72px;

  /* Type */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;
}

/* ---------- 2. BASE ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-base);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip` (not `hidden`) prevents a scroll container from forming,
     which would otherwise break `position: sticky` on the nav. */
  overflow-x: clip;
  color-scheme: dark;
}

/* Film grain overlay on hero only (no DOM cost) */
.grain::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  z-index: 1;
}

/* ---------- 3. TYPOGRAPHY ---------- */
.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw + 1rem, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.t-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 4vw + 1rem, 4rem); line-height: 1.05; letter-spacing: -0.025em; }
.t-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 3vw + .5rem, 3rem); line-height: 1.1;  letter-spacing: -0.02em; }
.t-h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.375rem, 1.5vw + .75rem, 2rem); line-height: 1.2; letter-spacing: -0.015em; }
.t-h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;  line-height: 1.25; letter-spacing: -0.01em; }
.t-h5 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.3; }

.t-body-l { font-size: 1.125rem; line-height: 1.6; }
.t-body   { font-size: 1rem;     line-height: 1.6; }
.t-small  { font-size: .875rem;  line-height: 1.5; }
.t-micro  { font-size: .75rem;   line-height: 1.4; font-weight: 500; letter-spacing: .02em; }
.t-overline {
  font-size: .6875rem; line-height: 1.2;
  font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-low);
}
.t-mono-tc {
  font-family: var(--font-mono);
  font-size: .8125rem; line-height: 1;
  font-weight: 500; letter-spacing: .02em;
}

/* Hero headline: heat-colored period */
.hero-headline .dot { color: var(--brand-heat); }

/* Selective word accent — gradient fill on one or two hero words. Max 1 per viewport. */
.t-accent {
  background: var(--heat-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.t-accent--cool {
  background: var(--cool-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
/* Italic body-font emphasis inside display headlines */
.t-headline-em {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 0.92em;
  color: var(--text-mid);
}
/* Mono numeric inside display headlines — broadcast timecode nod */
.t-headline-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.88em;
  color: var(--brand-signal);
  letter-spacing: 0;
  vertical-align: 0.04em;
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 8px;
  padding: .875rem 1.5rem;
  min-height: 44px;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--brand-heat); outline-offset: 2px; }
.btn-sm { padding: .625rem 1rem; font-size: .875rem; }
.btn-lg { padding: 1.125rem 2rem; font-size: 1.125rem; }

.btn-primary { background: var(--brand-heat); color: var(--text-inverse); }
/* Explicit color on every state — prevents the generic `a:hover` from repainting button text invisible. */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:visited { color: var(--text-inverse); }
.btn-primary:hover { background: var(--brand-heat-600); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: inset 0 2px 6px rgba(0,0,0,.25); }
.btn-primary[disabled] { opacity: .4; pointer-events: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-hi);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover,
.btn-ghost:focus,
a.btn-ghost:hover,
a.btn-ghost:focus,
a.btn-ghost:visited { color: var(--text-hi); }
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--text-hi); }
.btn-ghost:active { background: var(--bg-inset); }

.btn-link {
  color: var(--brand-heat);
  background: transparent;
  padding: .25rem 0;
  min-height: 0;
  font-weight: 600;
}
.btn-link .arrow { transition: transform .15s ease; display: inline-block; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-link:hover .arrow { transform: translateX(4px); }

/* Audience-variant button (used on Personal sub-grid) */
.btn-primary.cool { background: var(--brand-cool); }
.btn-primary.cool:hover { background: #2a63de; }

/* ---------- 5. NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--bg-base) 70%, transparent);
  border-bottom: 1px solid var(--border-hairline);
  transition: height .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nav[data-scrolled="true"] {
  --nav-h: 56px;
  background: color-mix(in srgb, var(--bg-base) 86%, transparent);
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 var(--border-hairline), 0 8px 24px rgba(0,0,0,.35);
}
/* Mobile scrolled-state CTA pill inline next to hamburger */
.nav-cta-scrolled { display: none !important; }
.nav[data-scrolled="true"] .nav-cta-scrolled { display: inline-flex !important; }
@media (min-width: 768px) {
  .nav-cta-scrolled { display: none !important; }
  .nav[data-scrolled="true"] .nav-cta-scrolled { display: none !important; }
}
.nav a { color: var(--text-mid); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav a:hover { color: var(--text-hi); }
.nav a.active { color: var(--text-hi); }
.nav a.active::after {
  content: ''; display: block; height: 2px; margin-top: 4px; border-radius: 2px;
  background: var(--heat-grad);
  background-size: 200% 100%;
  animation: nav-grad-drift 6s ease-in-out infinite;
}
@keyframes nav-grad-drift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .nav a.active::after { animation: none; } }

.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; color: var(--text-hi); display: inline-flex; align-items: center; gap: .5rem; }
.wordmark .colon { color: var(--brand-heat); }
.rec-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-heat);
  animation: rec-pulse 1.6s ease-in-out infinite;
}
@keyframes rec-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }

/* Hamburger → overlay */
.hamburger { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-hi); position: relative; transition: transform .2s ease, opacity .2s ease; }
.hamburger span::before, .hamburger span::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--text-hi); transition: transform .2s ease, top .2s ease; }
.hamburger span::before { top: -7px; } .hamburger span::after { top: 7px; }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg-base) 96%, var(--brand-heat) 6%);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem;
  transform: translateY(-100%);
  transition: transform .25s ease;
  visibility: hidden;
}
.nav-overlay[data-open="true"] { transform: translateY(0); visibility: visible; }
.nav-overlay a { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 5vw, 2.5rem); color: var(--text-hi); padding: .75rem 0; border-bottom: 1px solid var(--border-hairline); text-decoration: none; letter-spacing: -0.02em; }
.nav-overlay a:hover { color: var(--brand-heat); }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  max-height: 900px;
  background: var(--bg-base);
  overflow: hidden;
}
@media (max-height: 780px) {
  .hero { min-height: auto; }
  .hero > .container.section-pad { padding-top: 2rem; padding-bottom: 2rem; }
}
.hero::after {
  content: '';
  position: absolute; inset: auto -10% -30% auto;
  width: 70%; height: 60%;
  background: radial-gradient(closest-side, rgba(255,59,31,.12), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 2; }
.hero-media {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid var(--border-hairline);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  background: var(--bg-inset);
  overflow: hidden;
  position: relative;
}
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-overlay {
  position: absolute; top: 12px; left: 12px;
  background: rgba(8,8,10,.7);
  color: var(--brand-signal);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .02em;
  z-index: 2;
  border: 1px solid var(--border-hairline);
}
.tc-overlay .rec { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-heat); margin-right: 6px; vertical-align: middle; animation: rec-pulse 1.6s infinite; }

/* Play-overlay (when autoplay suppressed) */
.hero-play {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(8,8,10,.35);
  cursor: pointer; z-index: 3;
  border: 0; color: var(--text-hi);
}
.hero-media[data-autoplay="false"] .hero-play { display: flex; }
.hero-play span {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--brand-heat); color: var(--text-inverse);
  display: grid; place-items: center; font-size: 28px;
  transition: transform .15s ease;
}
.hero-play:hover span { transform: scale(1.05); }

/* Hero headline line-rise entrance */
.hero-headline { overflow: hidden; }
.hero-headline > * {
  display: inline-block;
  animation: line-rise .75s cubic-bezier(.2,.8,.2,1) .2s both;
}
.hero-headline .t-accent { animation: line-rise .75s cubic-bezier(.2,.8,.2,1) .45s both; }
.hero-headline .dot { animation: line-rise .75s cubic-bezier(.2,.8,.2,1) .55s both; }
@keyframes line-rise {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-headline > *, .hero-headline .t-accent, .hero-headline .dot { animation: none; }
}

/* Hero TC slate */
.hero-slate {
  color: var(--text-low);
  margin: 0 0 1rem 0;
  padding-left: 18px;
  position: relative;
}
.hero-slate::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 10px; height: 1px; background: var(--brand-heat);
  transform: translateY(-50%);
}

/* ---------- 7. AUDIENCE ENTRY CARDS ---------- */
.aud-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: 200px;
  padding: 2rem;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  position: relative;
  overflow: hidden;
  color: var(--text-hi);
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.aud-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent, var(--brand-heat));
  transition: width .2s ease;
}
.aud-card[data-variant="brand"] { --accent: var(--brand-heat); }
.aud-card[data-variant="personal"] { --accent: var(--brand-cool); }
.aud-card:hover { background: var(--bg-elev); transform: translateY(-2px); box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 25%, transparent); }
.aud-card:hover::before { width: 5px; }
.aud-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.aud-card .arrow { font-size: 1.75rem; color: var(--text-mid); transition: transform .15s ease, color .15s ease; }
.aud-card:hover .arrow { transform: translateX(6px); color: var(--text-hi); }
@media (max-width: 639px) { .aud-card { min-height: 140px; padding: 1.5rem; } }

/* ---------- 8. LOGO STRIP ---------- */
.logo-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}
.logo-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--text-low);
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .15s ease;
}
.logo-item:hover { color: var(--text-hi); }

/* ---------- 9. WORK GRID ---------- */
.filter-chip {
  padding: .5rem 1rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-mid);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter-chip:hover { color: var(--text-hi); border-color: var(--border-strong); }
.filter-chip[aria-pressed="true"] {
  background: var(--brand-heat);
  border-color: var(--brand-heat);
  color: var(--text-inverse);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 1023px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width:  639px) { .work-grid { grid-template-columns: 1fr; } }

.work-tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  aspect-ratio: 4 / 5;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: var(--text-hi);
}
.work-tile.size-wide   { aspect-ratio: 16 / 10; grid-column: span 2; }
.work-tile.size-tall   { aspect-ratio: 4 / 5; }
.work-tile.size-square { aspect-ratio: 1 / 1; }
@media (max-width: 1023px) { .work-tile.size-wide { grid-column: span 2; } }
@media (max-width:  639px) { .work-tile.size-wide { grid-column: span 1; aspect-ratio: 16 / 10; } }

.work-tile img, .work-tile video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.work-tile:hover img, .work-tile:hover video { transform: scale(1.04); }
.work-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 45%, transparent 75%);
  pointer-events: none;
}
.work-meta {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2;
  display: flex; flex-direction: column; gap: 6px;
}
.work-tile .work-cat {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  color: var(--brand-signal); letter-spacing: .04em; text-transform: uppercase;
}
.work-tile .work-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  line-height: 1.2; color: var(--text-hi);
}
.work-tile .work-year { font-family: var(--font-mono); font-size: .75rem; color: var(--text-mid); }

.work-tile.ph {
  background: linear-gradient(135deg, #141417, #1C1C21);
  display: grid; place-items: center;
}
.work-tile.ph .ph-mark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--text-low); letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--brand-heat), var(--brand-ember), var(--brand-signal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .7;
}

/* ---------- 10. SERVICE CARDS ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 1023px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width:  639px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  min-height: 320px;
  padding: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--accent, var(--brand-heat)); box-shadow: 0 14px 40px color-mix(in srgb, var(--accent, var(--brand-heat)) 20%, transparent); }
.svc-card[data-aud="brand"]    { --accent: var(--brand-heat); }
.svc-card[data-aud="personal"] { --accent: var(--brand-cool); }
.svc-card:hover .svc-icon { background: color-mix(in srgb, var(--accent) 10%, var(--bg-inset)); }
.svc-icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--bg-inset);
  display: grid; place-items: center;
  color: var(--accent, var(--brand-heat));
  transition: background-color .2s ease;
}
.svc-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.svc-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.svc-card li { display: flex; gap: .5rem; color: var(--text-mid); font-size: .9375rem; }
.svc-card li::before {
  content: '✓'; color: var(--accent, var(--brand-heat));
  font-weight: 700; flex-shrink: 0;
}

/* ---------- 11. PROCESS ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 1023px) { .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width:  479px) { .process-steps { grid-template-columns: 1fr; } }
.process-step {
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  position: relative;
  display: flex; flex-direction: column; gap: .75rem;
}
.process-step .step-n {
  font-family: var(--font-mono);
  color: var(--brand-heat);
  font-size: .875rem;
  letter-spacing: .04em;
}

/* ---------- 12. PRICING ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 1023px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width:  639px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.price-card {
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 1.25rem;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.price-card.featured {
  padding: 2.5rem 2rem;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
    var(--feature-grad, var(--heat-grad)) border-box;
  transform-origin: center;
}
@media (min-width: 1024px) {
  .price-card.featured { transform: scale(1.03); }
  .price-card.featured:hover { transform: scale(1.03) translateY(-4px); box-shadow: 0 20px 50px color-mix(in srgb, var(--accent, var(--brand-heat)) 25%, transparent); }
}
.price-card.featured:hover { transform: translateY(-4px); box-shadow: 0 20px 50px color-mix(in srgb, var(--accent, var(--brand-heat)) 25%, transparent); }
.price-card[data-aud="personal"] { --accent: var(--brand-cool); --feature-grad: var(--cool-grad); }
.price-card[data-aud="brand"]    { --accent: var(--brand-heat); --feature-grad: var(--heat-grad); }

.price-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--accent, var(--brand-heat));
  color: var(--text-inverse);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
}
.price-title { color: var(--text-hi); }
.price-card.featured .price-title { color: var(--accent, var(--brand-heat)); }
.price-amount {
  font-family: var(--font-display); font-weight: 700; font-size: 2.75rem;
  line-height: 1; color: var(--text-hi);
  letter-spacing: -0.02em;
}
.price-card.featured .price-amount { color: var(--accent, var(--brand-heat)); }
.price-unit { color: var(--text-low); font-size: .875rem; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .625rem; border-top: 1px solid var(--border-hairline); padding-top: 1.25rem; }
.price-card li { display: flex; gap: .5rem; color: var(--text-mid); font-size: .9375rem; }
.price-card li::before { content: '✓'; color: var(--accent, var(--brand-heat)); font-weight: 700; flex-shrink: 0; }
.price-card .btn { width: 100%; margin-top: auto; }

/* ---------- 13. TESTIMONIALS ---------- */
.testimonial-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: clamp(1rem, 5vw, 3rem);
  padding: 1rem clamp(1rem, 5vw, 3rem) 2rem;
  margin: 0 calc(-1 * clamp(1rem, 5vw, 3rem));
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.testimonial-track::-webkit-scrollbar { height: 6px; }
.testimonial-track::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.testimonial {
  flex: 0 0 420px;
  max-width: 90vw;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 1.75rem 2rem 1.75rem 2.25rem;
  position: relative;
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.testimonial .quote-mark {
  position: absolute; top: -0.25rem; left: 1rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 9rem; line-height: 0.8;
  background: var(--heat-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  opacity: 0.55;
  pointer-events: none;
}
.testimonial-quote { position: relative; z-index: 1; padding-top: 1.5rem; }
.testimonial-attr { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-heat), var(--brand-ember));
  display: grid; place-items: center;
  color: var(--text-inverse); font-weight: 700; font-size: .875rem;
  flex-shrink: 0;
}
.testimonial-logo {
  position: absolute; right: 1.5rem; bottom: 1.5rem;
  color: var(--text-low);
  font-family: var(--font-display); font-weight: 600; font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase;
  transition: color .15s ease;
}
.testimonial:hover .testimonial-logo { color: var(--text-hi); }

/* ---------- 14. CREW / STUDIO ---------- */
.crew-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.crew-row.reverse .crew-media { order: 2; }
@media (max-width: 1023px) {
  .crew-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .crew-row.reverse .crew-media { order: 0; }
}
.crew-media {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  display: grid; place-items: center;
}
.crew-media img { width: 100%; height: 100%; object-fit: cover; }
.crew-media.ph { background: linear-gradient(135deg, #141417, #1C1C21); }
.crew-media.ph .ph-mark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--brand-heat), var(--brand-ember), var(--brand-signal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .7;
}
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 639px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 1rem 0;
  border-top: 1px solid var(--border-hairline);
}
.stat .n {
  font-family: var(--font-display); font-weight: 700; font-size: 2.25rem;
  letter-spacing: -0.02em; line-height: 1;
  background: var(--heat-grad);
  background-size: 200% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  transition: background-position 1.2s ease .2s;
}
.stat-row:hover .stat .n { background-position: 0% 50%; }
.stat .l { font-size: .8125rem; color: var(--text-low); margin-top: .5rem; }

.team-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 2rem; }
@media (max-width: 639px) { .team-list { grid-template-columns: 1fr; } }
.team-item { display: flex; justify-content: space-between; gap: 1rem; padding: .625rem 0; border-bottom: 1px solid var(--border-hairline); }
.team-item .r { color: var(--text-low); font-size: .875rem; }
.team-item .n { color: var(--text-hi); font-weight: 500; }

/* ---------- 15. BTS ---------- */
.bts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 1023px) { .bts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width:  479px) { .bts-grid { grid-template-columns: 1fr; } }
.bts-tile {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
}
.bts-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.65) contrast(1.08);
  transition: transform .5s ease, filter .3s ease;
}
.bts-tile:hover img { filter: saturate(1) contrast(1); transform: scale(1.04); }
.bts-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent 55%);
  pointer-events: none;
}
.bts-meta { position: absolute; left: .75rem; bottom: .75rem; z-index: 2; font-family: var(--font-mono); font-size: .75rem; color: var(--brand-signal); letter-spacing: .04em; }
.bts-meta .sub { color: var(--text-mid); display: block; font-family: var(--font-body); font-size: .75rem; margin-top: 4px; }

/* ---------- 16. FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
@media (max-width: 767px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item { border-bottom: 1px solid var(--border-hairline); padding: 1rem 0; }
.faq-q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  background: transparent; border: 0; padding: .5rem 0;
  color: var(--text-hi); font-family: var(--font-display); font-weight: 600; font-size: 1.125rem;
  cursor: pointer;
}
.faq-q:focus-visible { outline: 2px solid var(--brand-heat); outline-offset: 4px; border-radius: 4px; }
.faq-q .plus { color: var(--brand-heat); transition: transform .2s ease; font-size: 1.25rem; }
.faq-item[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, margin-top .25s ease;
  color: var(--text-mid);
}
.faq-item[aria-expanded="true"] .faq-a { max-height: 320px; margin-top: .75rem; }

/* ---------- 17. CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.form-field { display: flex; flex-direction: column; gap: .375rem; }
.form-field label { font-size: .8125rem; color: var(--text-low); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
/* Form accent tied to audience. Overridden via form[data-aud="personal"]. */
form#quote-form { --form-accent: var(--brand-heat); }
form#quote-form[data-aud="personal"] { --form-accent: var(--brand-cool); }

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: .875rem 1rem;
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.25;
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--form-accent);
  background: var(--bg-elev);
}
.form-field.error input, .form-field.error select, .form-field.error textarea { border-color: var(--error); }
.form-hint { font-size: .8125rem; color: var(--text-low); }
.form-error { font-size: .8125rem; color: var(--error); min-height: 1em; }

/* Select: custom chevron + placeholder dimming */
.form-field select {
  padding: .875rem 2.75rem .875rem 1rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23B8B8B2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
/* Chevron stays one color (background-image can't transition) — border change on focus is the affordance. */
.form-field select:required:invalid { color: var(--text-low); }
.form-field select option { color: var(--text-hi); background: var(--bg-surface); }
.form-field select option[value=""][disabled] { color: var(--text-low); }

/* Date input: hide default Chrome/Edge calendar indicator but keep it clickable */
.form-field input[type="date"] { position: relative; }
.form-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0; position: absolute; right: 0; width: 44px; height: 100%; cursor: pointer;
}

/* Field flash: highlight when audience toggle reorders / re-accents a field */
@keyframes field-flash {
  0%   { border-color: var(--border-hairline); box-shadow: 0 0 0 0 transparent; background-color: var(--bg-surface); }
  25%  { border-color: var(--form-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--form-accent) 40%, transparent); background-color: color-mix(in srgb, var(--form-accent) 12%, var(--bg-surface)); }
  60%  { border-color: var(--form-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--form-accent) 25%, transparent); }
  100% { border-color: var(--border-hairline); box-shadow: 0 0 0 0 transparent; background-color: var(--bg-surface); }
}
.field-flash { animation: field-flash 1s ease-out; }
@media (prefers-reduced-motion: reduce) { .field-flash { animation: none; } }

/* Brief textarea placeholder cross-fade on audience swap */
.form-field textarea::placeholder { color: var(--text-low); transition: color .18s ease; }
.form-field textarea.ph-swap::placeholder { color: transparent; }

.aud-toggle { display: inline-flex; background: var(--bg-inset); padding: 4px; border-radius: 8px; border: 1px solid var(--border-hairline); }
.aud-toggle label {
  padding: .5rem 1rem;
  font-size: .875rem; font-weight: 500;
  color: var(--text-mid); cursor: pointer;
  border-radius: 6px;
  transition: background-color .15s ease, color .15s ease;
}
.aud-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.aud-toggle label:has(input:checked) { background: var(--brand-heat); color: var(--text-inverse); }
.aud-toggle label.cool:has(input:checked) { background: var(--brand-cool); color: var(--text-hi); }
.aud-toggle label:focus-within { outline: 2px solid var(--brand-heat); outline-offset: 2px; }

.contact-side ul { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-side a { color: var(--text-hi); text-decoration: none; font-weight: 500; }
.contact-side a:hover { color: var(--brand-heat); }

.form-success {
  border: 1px solid var(--success);
  background: color-mix(in srgb, var(--success) 8%, transparent);
  color: var(--text-hi);
  padding: 1rem 1.25rem; border-radius: 10px;
  display: none;
}
.form-success[data-show="true"] { display: block; }

/* ---------- 18. FOOTER ---------- */
.footer { background: var(--bg-base); border-top: 1px solid var(--border-hairline); color: var(--text-mid); }
.footer a { color: var(--text-mid); text-decoration: none; }
.footer a:hover { color: var(--text-hi); }

.footer-manifesto {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-mid);
  max-width: 32ch;
  margin-top: .5rem;
}
.footer-manifesto .t-accent { background: var(--heat-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.footer-endcard {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  color: var(--text-low);
  padding-top: 1rem;
  margin-top: 2.5rem;
  border-top: 1px dashed var(--border-hairline);
}
.footer-endcard .eos { color: var(--brand-heat); letter-spacing: .12em; font-weight: 500; }

/* Nav wordmark shrink on scroll */
.nav[data-scrolled="true"] .wordmark { font-size: 1rem; }
.nav .wordmark { transition: font-size .2s ease; }

/* ---------- 19. STICKY QUOTE PILL ---------- */
.quote-pill {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 40;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.quote-pill[data-show="true"] { opacity: 1; transform: translateY(0); pointer-events: auto; }
.quote-pill .btn { box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* ---------- 20. UTILITY ---------- */
.container { width: 100%; max-width: var(--max-width); margin-left: auto; margin-right: auto; padding-left: clamp(1rem, 3vw, 2rem); padding-right: clamp(1rem, 3vw, 2rem); }
.section-pad   { padding-top: clamp(3rem, 6vw, 6rem); padding-bottom: clamp(3rem, 6vw, 6rem); }
.section-pad-l { padding-top: clamp(4rem, 7vw, 7rem); padding-bottom: clamp(4rem, 7vw, 7rem); }
.section-pad-s { padding-top: clamp(2.5rem, 5vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 5rem); }
.section-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; gap: 2rem; flex-wrap: wrap; }
.section-label .tc { font-family: var(--font-mono); color: var(--text-low); font-size: .8125rem; letter-spacing: .04em; }

.section-label-head { display: flex; align-items: flex-start; gap: 1.25rem; }
.section-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  user-select: none;
  transform: translateY(-0.05em);
  flex-shrink: 0;
}
@media (max-width: 639px) { .section-num { font-size: 2.75rem; } }

/* Reveal stagger — each grid cascades its children in */
.svc-grid .reveal.in              { transition-delay: 0s; }
.svc-grid .reveal:nth-child(2).in { transition-delay: .08s; }
.svc-grid .reveal:nth-child(3).in { transition-delay: .16s; }

.pricing-grid .reveal.in              { transition-delay: 0s; }
.pricing-grid .reveal:nth-child(2).in { transition-delay: .1s; }
.pricing-grid .reveal:nth-child(3).in { transition-delay: .2s; }

.process-steps .reveal:nth-child(1).in { transition-delay: 0s; }
.process-steps .reveal:nth-child(2).in { transition-delay: .06s; }
.process-steps .reveal:nth-child(3).in { transition-delay: .12s; }
.process-steps .reveal:nth-child(4).in { transition-delay: .18s; }
.process-steps .reveal:nth-child(5).in { transition-delay: .24s; }

.work-grid .reveal:nth-child(2).in { transition-delay: .09s; }
.work-grid .reveal:nth-child(3).in { transition-delay: .18s; }
.work-grid .reveal:nth-child(4).in { transition-delay: .27s; }

@media (prefers-reduced-motion: reduce) {
  [class*="reveal"] { transition-delay: 0s !important; }
}

/* Seam stripe — film-leader accent between contact and footer */
.seam-stripe {
  height: 2px;
  background:
    linear-gradient(90deg, transparent 0%, var(--brand-heat) 12%, var(--brand-ember) 50%, var(--brand-signal) 88%, transparent 100%);
  opacity: 0.75;
  margin: 0 auto;
  max-width: var(--max-width);
  width: calc(100% - 2rem);
}

/* Seam chip at Proof section top */
#proof { position: relative; }
.seam-chip {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-low);
  letter-spacing: .08em;
  white-space: nowrap;
  z-index: 3;
}

/* Work tile dim state (ready for filter toggle) */
.work-tile[data-dim="true"] img {
  filter: grayscale(1) contrast(1.05) brightness(0.7);
  transition: filter .25s ease;
}
.work-tile[data-dim="true"] { opacity: 0.5; pointer-events: none; }

/* FAQ radial background tints */
#faq {
  background-image:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--brand-heat) 5%, transparent) 0%, transparent 40%),
    radial-gradient(circle at 100% 80%, color-mix(in srgb, var(--brand-cool) 4%, transparent) 0%, transparent 50%);
}

/* Whitespace nudges */
.logo-strip .section-pad-s { padding-top: 1.75rem; padding-bottom: 1.75rem; }
@media (max-width: 639px) { .price-card.featured { padding: 2rem; } }

.divider { height: 1px; background: var(--border-hairline); border: 0; }

/* Visually hidden */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Link wrappers */
a { color: var(--brand-heat); }
a:hover { color: var(--brand-heat-600); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Button-styled work tiles: reset default button chrome, inherit work-tile look */
button.work-tile {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 0;
}
button.work-tile:focus-visible { outline: 2px solid var(--brand-heat); outline-offset: 3px; }

/* Link-only work tiles: small "ask" overline chip */
.work-tile .work-ask {
  color: var(--text-low);
  margin-top: 2px;
  transition: color .15s ease;
}
.work-tile:hover .work-ask { color: var(--brand-heat); }

/* ---------- 21. CASE MODAL ---------- */
.case-modal { position: fixed; inset: 0; z-index: 80; display: none; }
.case-modal[data-open="true"] { display: grid; place-items: center; padding: .5rem; }
.case-scrim { position: absolute; inset: 0; background: rgba(8,8,10,.72); backdrop-filter: blur(6px) saturate(120%); -webkit-backdrop-filter: blur(6px) saturate(120%); }
.case-panel {
  position: relative;
  width: min(1600px, 99vw);
  max-height: 99svh;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0,0,0,.65);
  overflow-y: auto;
  overflow-x: hidden;
}
.case-close {
  position: sticky; top: 16px; float: right; margin: 16px 16px 0 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-elev); border: 1px solid var(--border-hairline);
  color: var(--text-hi); font-size: 24px; cursor: pointer;
  z-index: 2; display: grid; place-items: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.case-close:hover { background: var(--brand-heat); color: var(--text-inverse); border-color: var(--brand-heat); }
.case-header { padding: 32px; border-bottom: 1px solid var(--border-hairline); }
.case-header .t-h2 { margin: 0 0 .25rem 0; }
.case-meta-line { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.case-meta-line .case-client { color: var(--text-hi); font-weight: 500; }
.case-meta-line .case-year { color: var(--text-low); }
.case-synopsis { margin: 16px 0 0 0; max-width: 72ch; }
.case-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; padding: 32px; }
@media (max-width: 767px) { .case-body { grid-template-columns: 1fr; gap: 20px; padding: 20px; } }
/* Hero slot sizes to the media. Fixed max-height so tall portrait images
   don't push the layout. object-fit: contain shows full frame with a dark letterbox. */
.case-hero-slot {
  background: var(--bg-inset);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  max-height: min(72vh, 720px);
}
.case-hero-slot img, .case-hero-slot video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  background: var(--bg-inset);
}
.case-thumbs { display: flex; gap: 12px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.case-thumb {
  flex: 0 0 88px; height: 88px; border-radius: 8px;
  border: 1px solid var(--border-hairline);
  overflow: hidden; opacity: .6; cursor: pointer;
  background: transparent; padding: 0;
  transition: opacity .15s ease, outline-color .15s ease;
}
.case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Inset shadow — the highlight sits inside the thumb so the parent's
   `overflow-x: auto` can't clip it at the scroll edges. */
.case-thumb[aria-pressed="true"] { opacity: 1; border-color: transparent; box-shadow: inset 0 0 0 2px var(--brand-heat); }
.case-thumb:hover { opacity: 1; }
.case-thumb.is-video { position: relative; }
.case-thumb.is-video::after {
  content: '▶'; position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--text-hi); font-size: 1.25rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  pointer-events: none;
}
.case-credits {
  background: var(--bg-elev); border: 1px solid var(--border-hairline);
  border-radius: 12px; padding: 24px; align-self: start;
}
.case-credits-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 12px 0 0 0; }
.case-credits-list dt { color: var(--text-low); font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.case-credits-list dd { margin: 0 0 8px 0; color: var(--text-hi); font-weight: 500; }
.case-footer {
  position: sticky; bottom: 0;
  display: flex; justify-content: flex-end; gap: 12px;
  padding: 20px 32px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
}
@media (max-width: 639px) {
  .case-footer { flex-direction: column-reverse; padding: 16px 20px; }
  .case-footer .btn { width: 100%; }
}

/* Scroll-lock — lock both html and body. `<html>` is the usual scroll root
   so locking body alone doesn't stop page scroll. */
html.case-open, body.case-open { overflow: hidden; }

/* Motion */
.case-scrim { opacity: 0; transition: opacity .18s ease-out; }
.case-panel { opacity: 0; transform: translateY(8px) scale(.985); transition: opacity .22s cubic-bezier(.2,.8,.2,1), transform .22s cubic-bezier(.2,.8,.2,1); }
.case-modal[data-open="true"] .case-scrim { opacity: 1; }
.case-modal[data-open="true"] .case-panel { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .case-scrim, .case-panel { transition: opacity .08s linear; transform: none; }
}
