/* NOTE (Antigravity 2026-11-25): Чистовая дизайн-система Brandy Studio (Aira Editorial Monochrome + 35mm Film Grain + Apple Highlights Cinema Carousels).
   Убраны все табы-переключатели и браузерные оранжевые focus-обводки. Все работы и кейсы листаются живыми каруселями. */

@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/PlayfairDisplay-Variable.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bone-white: #FAFAFB;
  --paper-canvas: #F5F3EE;
  --paper-cloud: #ECE9E1;
  --paper-ash: #E2DFD6;
  --paper-line: #D8D4CA;
  --stone-muted: #6E6B64;
  --graphite-ink: #2C2C2B;
  --deep-coal: #1F1F1F;
  --obsidian: #111111;
  --midnight-ink: #0C0A08;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --rail-gutter: max(32px, calc((100vw - 1240px) / 2 + 32px));
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Никаких стандартных оранжевых focus-рамок при клике мышью */
button:focus,
a:focus,
div:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bone-white), 0 0 0 4px var(--deep-coal);
}

html {
  scroll-behavior: smooth;
  background-color: var(--midnight-ink);
  color: var(--deep-coal);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--paper-canvas);
}

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

/* ==========================================================================
   35mm ANALOG FILM GRAIN OVERLAY
   ========================================================================== */
.film-grain-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 90;
  opacity: 0.21;
  mix-blend-mode: soft-light;
}

/* ==========================================================================
   PILL & CIRCLE CONTROLS (999px)
   ========================================================================== */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 22px;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    color 200ms var(--ease-out),
    opacity 200ms var(--ease-out);
}

.pill-btn:active {
  transform: scale(0.97);
}

.pill-bone {
  background-color: var(--bone-white);
  color: var(--obsidian);
  border-color: var(--bone-white);
}

.pill-coal {
  background-color: var(--deep-coal);
  color: var(--bone-white);
  border-color: var(--deep-coal);
}

.pill-glass-outline {
  background-color: rgba(18, 14, 10, 0.44);
  color: var(--bone-white);
  border-color: rgba(250, 250, 251, 0.24);
  backdrop-filter: blur(12px);
}

.pill-paper-outline {
  background-color: transparent;
  color: var(--deep-coal);
  border-color: #C6C1B6;
}

.circle-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #C8C3B8;
  background-color: var(--bone-white);
  color: var(--deep-coal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition:
    transform 160ms var(--ease-out),
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    opacity 180ms var(--ease-out);
}

.circle-nav-btn:active {
  transform: scale(0.94);
}

.circle-nav-btn:disabled {
  opacity: 0.34;
  cursor: default;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .pill-bone:hover {
    background-color: #ECEAE4;
    border-color: #ECEAE4;
  }
  .pill-coal:hover {
    background-color: #080808;
  }
  .pill-glass-outline:hover {
    background-color: rgba(250, 250, 251, 0.12);
    border-color: rgba(250, 250, 251, 0.48);
  }
  .pill-paper-outline:hover {
    border-color: var(--deep-coal);
    background-color: rgba(31, 31, 31, 0.04);
  }
  .circle-nav-btn:not(:disabled):hover {
    background-color: var(--deep-coal);
    border-color: var(--deep-coal);
    color: var(--bone-white);
  }
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 75;
  padding: 16px 0;
  --nav-dot-bg: #0E0B08;
  transition:
    background-color 260ms var(--ease-out),
    border-color 260ms var(--ease-out),
    padding 260ms var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background-color: rgba(245, 243, 238, 0.9);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--paper-line);
  padding: 11px 0;
  --nav-dot-bg: #F5F3EE;
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--bone-white);
  text-decoration: none;
  transition: color 220ms var(--ease-out);
}

.site-nav.is-scrolled .brand-wordmark {
  color: var(--obsidian);
}

.brand-serif {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 450;
  color: rgba(250, 250, 251, 0.86);
  text-decoration: none;
  transition: color 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.site-nav.is-scrolled .nav-links a {
  color: var(--deep-coal);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    opacity: 0.65;
  }
}

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

.pill-primary-adaptive {
  background-color: var(--bone-white);
  color: var(--obsidian);
  border-color: var(--bone-white);
  padding: 9px 18px;
  min-height: 38px;
  font-size: 13.5px;
}

.site-nav.is-scrolled .pill-primary-adaptive {
  background-color: var(--deep-coal);
  color: var(--bone-white);
  border-color: var(--deep-coal);
}

.pill-outline-adaptive {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--bone-white);
  border-color: rgba(250, 250, 251, 0.2);
  padding: 8px 14px;
  min-height: 38px;
  font-size: 13px;
}

.site-nav.is-scrolled .pill-outline-adaptive {
  background-color: transparent;
  color: var(--deep-coal);
  border-color: var(--paper-line);
}

/* ==========================================================================
   1. HERO SECTION: 35mm CHIAROSCURO + LIVE VIDEO IN HAND-HELD IPHONE
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100svh;
  background-color: #0B0806;
  color: var(--bone-white);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  user-select: none;
}

.hero-plate-bg {
  z-index: 1;
}

.hero-phone-screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 360px;
  height: 780px;
  transform-origin: 0 0;
  z-index: 2;
  background-color: #070707;
  border-radius: 50px;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
}

.hero-phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(0.98);
}

.phone-top-chrome {
  position: absolute;
  top: 14px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: rgba(250, 250, 251, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.phone-island {
  width: 96px;
  height: 25px;
  border-radius: 999px;
  background-color: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-bars {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
}

.phone-reel-hud {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 22px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.36) 0%, rgba(10, 8, 6, 0.78) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.phone-reel-author {
  font-size: 13px;
  font-weight: 600;
  color: #FAFAFB;
  letter-spacing: -0.01em;
}

.phone-reel-caption {
  margin-top: 2px;
  font-size: 11.5px;
  color: rgba(250, 250, 251, 0.72);
}

.phone-glass-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 244, 224, 0.14) 0%,
    rgba(255, 244, 224, 0.03) 28%,
    rgba(255, 255, 255, 0) 52%
  );
  pointer-events: none;
}

.hero-plate-fg {
  z-index: 3;
  pointer-events: none;
}

.hero-left-scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 7, 5, 0.90) 0%, rgba(9, 7, 5, 0.72) 34%, rgba(9, 7, 5, 0.12) 58%, rgba(9, 7, 5, 0) 76%),
    linear-gradient(180deg, rgba(9, 7, 5, 0.45) 0%, rgba(9, 7, 5, 0) 22%, rgba(9, 7, 5, 0.46) 100%);
}

/* Аккуратный карусельный степпер и звуковой блок рядом с телефоном */
.hero-whispers {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.whisper-card {
  pointer-events: auto;
  position: absolute;
  background: rgba(28, 21, 15, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 246, 232, 0.13);
  border-radius: 999px;
  color: var(--bone-white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.whisper-stepper {
  top: 10.2%;
  right: 3.2%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
}

.stepper-arrow {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(250, 250, 251, 0.16);
  background: rgba(250, 250, 251, 0.08);
  color: var(--bone-white);
  font-size: 17px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 150ms var(--ease-out), background-color 180ms var(--ease-out);
}

.stepper-arrow:active {
  transform: scale(0.92);
}

@media (hover: hover) and (pointer: fine) {
  .stepper-arrow:hover {
    background: rgba(250, 250, 251, 0.2);
  }
}

.stepper-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  font-size: 12.5px;
  white-space: nowrap;
}

.stepper-count {
  font-variant-numeric: tabular-nums;
  color: rgba(250, 250, 251, 0.56);
}

.stepper-title {
  font-weight: 500;
  color: var(--bone-white);
}

.whisper-bottom {
  bottom: 23%;
  right: 3.2%;
  border-radius: 16px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  max-width: 292px;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms var(--ease-out),
    border-color 200ms var(--ease-out);
}

.whisper-bottom:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .whisper-bottom:hover {
    background: rgba(38, 29, 21, 0.82);
    border-color: rgba(255, 246, 232, 0.28);
  }
}

.whisper-voice-copy strong {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bone-white);
  line-height: 1.3;
}

.whisper-voice-copy small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(250, 250, 251, 0.58);
  line-height: 1.35;
}

.whisper-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  flex-shrink: 0;
}

.whisper-eq i {
  display: block;
  width: 2.5px;
  height: 5px;
  border-radius: 99px;
  background-color: currentColor;
  opacity: 0.72;
  transition: height 160ms var(--ease-out), opacity 160ms var(--ease-out);
}

.whisper-eq i:nth-child(2) { height: 10px; }
.whisper-eq i:nth-child(3) { height: 7px; }
.whisper-eq i:nth-child(4) { height: 12px; }

.whisper-eq.is-playing i {
  opacity: 1;
  animation: eqBounce 0.75s var(--ease-in-out) infinite alternate;
}
.whisper-eq.is-playing i:nth-child(2) { animation-delay: 0.14s; }
.whisper-eq.is-playing i:nth-child(3) { animation-delay: 0.28s; }
.whisper-eq.is-playing i:nth-child(4) { animation-delay: 0.08s; }

@keyframes eqBounce {
  0% { height: 4px; }
  100% { height: 14px; }
}

.hero-content-wrap {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 132px 32px 72px;
  pointer-events: none;
}

.hero-copy {
  max-width: 550px;
  pointer-events: auto;
}

.editorial-display {
  margin: 0;
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums proportional-nums;
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.editorial-display span,
.editorial-h2 span {
  display: block;
}

.tone-bright { color: var(--bone-white); }
.tone-muted-dark { color: #A79F93; }
.tone-ink { color: var(--deep-coal); }
.tone-stone { color: #847F76; }

.hero-lead {
  margin: 22px 0 30px;
  max-width: 470px;
  font-size: 16px;
  line-height: 1.54;
  letter-spacing: -0.008em;
  color: rgba(250, 250, 251, 0.74);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   2. OPEN CINEMA REELS CAROUSEL (Apple Highlights × Submagic)
   ========================================================================== */
.broadsheet-section {
  position: relative;
  padding: 96px 0;
  scroll-margin-top: 76px;
  background-color: var(--paper-canvas);
  color: var(--deep-coal);
}

.broadsheet-grid-bg {
  background-image:
    linear-gradient(to right, rgba(31, 31, 31, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 31, 31, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  border-bottom: 1px solid var(--paper-line);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.carousel-head-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.editorial-h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums proportional-nums;
  font-weight: 400;
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.02em;
}

.carousel-sub {
  margin: 14px 0 0;
  max-width: 520px;
  font-size: 15.5px;
  line-height: 1.52;
  color: var(--stone-muted);
}

.carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.carousel-counter {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--stone-muted);
  margin-right: 6px;
}

/* Лента от левой направляющей контейнера до правого края вьюпорта (peek-эффект) */
.reels-rail-viewport,
.cases-rail-viewport {
  width: 100%;
  overflow: hidden;
}

.reels-rail,
.cases-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px var(--rail-gutter) 16px var(--rail-gutter);
  scroll-padding-left: var(--rail-gutter);
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.reels-rail::-webkit-scrollbar,
.cases-rail::-webkit-scrollbar {
  display: none;
}

.reels-rail.is-dragging,
.cases-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.reel-slide {
  flex: 0 0 296px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background-color: var(--obsidian);
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.11);
  cursor: pointer;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .reel-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.17);
  }
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.reel-top-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(14, 11, 8, 0.62);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(250, 250, 251, 0.16);
  color: var(--bone-white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.reel-audio-btn {
  position: absolute;
  left: 12px;
  bottom: 14px;
  padding: 7px 13px;
  min-height: 36px;
  font-size: 12.5px;
  background: rgba(14, 11, 8, 0.74);
  backdrop-filter: blur(12px);
  color: var(--bone-white);
  border-color: rgba(250, 250, 251, 0.22);
}

.reel-slide.is-unmuted .reel-audio-btn,
.case-phone-wrap.is-unmuted .reel-audio-btn {
  background: var(--bone-white);
  color: var(--obsidian);
  border-color: var(--bone-white);
}

.reel-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(250, 250, 251, 0.16);
  pointer-events: none;
}

.reel-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--bone-white);
}

.reel-caption {
  padding: 0 4px;
}

.reel-caption h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--obsidian);
}

.reel-caption p {
  margin: 5px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--stone-muted);
}

/* Apple-style капсульные индикаторы слайдов */
.apple-dots-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}

.apple-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background-color: #C9C4B8;
  cursor: pointer;
  transition: width 260ms var(--ease-out), background-color 220ms var(--ease-out);
}

.apple-dot.is-active {
  width: 32px;
  background-color: var(--deep-coal);
}

/* Инвертированная тёмная полоса параметров (#111111) под каруселью */
.studio-specs-strip {
  position: relative;
  margin-top: 40px;
  border-radius: 22px;
  background-color: var(--obsidian);
  color: var(--bone-white);
  padding: 32px 36px;
  overflow: hidden;
}

.specs-ambient-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
}

.specs-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.spec-cell strong {
  display: block;
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums proportional-nums;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  color: var(--bone-white);
}

.spec-cell span {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(250, 250, 251, 0.7);
}

/* ==========================================================================
   3. CONFIRMED CASES DOSSIER CAROUSEL (63.8M+)
   ========================================================================== */
.cases-header-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--paper-line);
  margin-bottom: 32px;
}

.cases-head-right {
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

.monument-stat {
  max-width: 320px;
}

.monument-number {
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--obsidian);
}

.monument-caption {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.42;
  color: var(--stone-muted);
}

.case-dossier-slide {
  flex: 0 0 min(940px, calc(100vw - 64px));
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 36px;
  padding: 30px;
  border-radius: 22px;
  background-color: var(--paper-cloud);
  border: 1px solid var(--paper-line);
  align-items: center;
}

.case-media-stage {
  display: grid;
  grid-template-columns: 186px 1fr;
  gap: 14px;
  align-items: center;
}

.case-phone-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--obsidian);
  aspect-ratio: 9 / 16;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.case-reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.case-ig-proof {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background-color: #FFFFFF;
  border: 1px solid var(--paper-line);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-ig-proof img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  pointer-events: none;
}

.case-person-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.case-avatar {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--paper-line);
}

.case-client-name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--obsidian);
}

.case-client-handle {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--stone-muted);
}

.case-summary {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.54;
  color: var(--graphite-ink);
}

.case-metrics-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 22px;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  align-items: baseline;
}

.case-metric-primary strong {
  display: block;
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--obsidian);
}

.case-metric-secondary strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--deep-coal);
}

.case-metric-primary span,
.case-metric-secondary span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--stone-muted);
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   4. MIDNIGHT BROADSHEET PIPELINE & FINALE (#0E0C0A)
   ========================================================================== */
.midnight-section {
  background-color: #0E0C0A;
  color: var(--bone-white);
  padding: 96px 0 48px;
  scroll-margin-top: 76px;
}

.midnight-head {
  margin-bottom: 44px;
}

.pipeline-ledger {
  list-style: none;
  margin: 0 0 68px;
  padding: 0;
  border-top: 1px solid rgba(250, 250, 251, 0.12);
}

.pipeline-item {
  display: grid;
  grid-template-columns: 64px 320px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(250, 250, 251, 0.12);
  align-items: baseline;
}

.pipeline-step-num {
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 22px;
  color: #A79F93;
}

.pipeline-step-title {
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums proportional-nums;
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--bone-white);
}

.pipeline-step-desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.56;
  color: rgba(250, 250, 251, 0.68);
  max-width: 560px;
}

.finale-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 64px 48px;
  border: 1px solid rgba(250, 250, 251, 0.12);
  background-color: #15110D;
}

.finale-bg-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.finale-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(14, 12, 10, 0.48) 0%, rgba(14, 12, 10, 0.86) 100%);
}

.finale-inner {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.finale-sub {
  margin: 20px 0 30px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(250, 250, 251, 0.76);
  max-width: 540px;
}

.finale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 250, 251, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(250, 250, 251, 0.52);
}

.footer-disc {
  max-width: 720px;
}

/* ==========================================================================
   MODAL PRESENTATION PLAYER
   ========================================================================== */
.pres-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.pres-modal[hidden] {
  display: none;
}

.pres-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.82);
  backdrop-filter: blur(14px);
}

.pres-dialog {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  border-radius: 20px;
  overflow: hidden;
  background: #0D0B09;
  border: 1px solid rgba(250, 250, 251, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.pres-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  color: var(--bone-white);
  font-size: 14px;
  border-bottom: 1px solid rgba(250, 250, 251, 0.1);
}

.pres-dialog video {
  width: 100%;
  max-height: 78vh;
  background: #000;
}

/* ==========================================================================
   DIRECTOR 60FPS MOTION ENGINE (?director=1)
   ========================================================================== */
body.is-director #siteNav,
body.is-director #siteMain {
  display: none;
}

.director-root {
  min-height: 100vh;
  background-color: #0B0907;
  color: var(--bone-white);
  display: flex;
  flex-direction: column;
}

.director-root[hidden] {
  display: none;
}

.director-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(250, 250, 251, 0.12);
  background: #120F0C;
  z-index: 10;
}

body.is-headless-render .director-toolbar { display: none; }

.director-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.director-chip {
  padding: 7px 14px;
  min-height: 36px;
  font-size: 13px;
  background: rgba(250, 250, 251, 0.08);
  color: rgba(250, 250, 251, 0.8);
  border-color: rgba(250, 250, 251, 0.15);
}

.director-chip.is-active {
  background: var(--bone-white);
  color: var(--obsidian);
  border-color: var(--bone-white);
}

.director-canvas-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 20px;
}

body.is-headless-render .director-canvas-wrap { padding: 0; }

.director-stage {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background-color: #100C09;
  border: 1px solid rgba(250, 250, 251, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
}

.director-stage.aspect-16x9 {
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 36px;
  padding: 40px 48px;
}

body.is-headless-render .director-stage {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  border: none;
  padding: 64px 56px;
}

.director-bg-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transform: scale(1.06);
}

.director-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 9, 7, 0.78) 0%, rgba(12, 9, 7, 0.44) 48%, rgba(12, 9, 7, 0.92) 100%);
}

.director-header-row,
.director-headline-block,
.director-phone-card,
.director-metrics-strip,
.director-progress-track {
  position: relative;
  z-index: 2;
}

.director-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.director-brand {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--bone-white);
}

.director-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(250, 250, 251, 0.1);
  border: 1px solid rgba(250, 250, 251, 0.18);
  font-size: 12.5px;
  color: var(--bone-white);
}

.director-serif {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums proportional-nums;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--bone-white);
}

.director-serif-muted {
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums proportional-nums;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #B4ACA0;
}

.director-phone-card {
  width: 68%;
  margin: 14px auto;
  aspect-ratio: 9 / 16;
  max-height: 52%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 236, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  background: #070707;
}

.director-stage.aspect-16x9 .director-phone-card {
  grid-column: 2;
  grid-row: 1 / 4;
  max-height: 100%;
  width: 62%;
  align-self: center;
}

.director-phone-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(250, 250, 251, 0.16);
}

.d-metric strong {
  display: block;
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400;
  font-size: 24px;
  color: var(--bone-white);
}

.d-metric span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: rgba(250, 250, 251, 0.68);
}

.director-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(250, 250, 251, 0.12);
}

.director-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--bone-white);
}

/* ==========================================================================
   RESPONSIVE MOBILE & TABLET (390px -> 1024px, 0px overflow)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --rail-gutter: 20px;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }

  .hero-content-wrap {
    order: 1;
    padding: 104px 20px 28px;
    background: linear-gradient(180deg, #0B0806 0%, #120D09 100%);
  }

  .hero-stage {
    position: relative;
    order: 2;
    height: 490px;
    width: 100%;
  }

  .hero-plate {
    object-position: 73% 50%;
  }

  .hero-left-scrim {
    background: linear-gradient(180deg, #120D09 0%, rgba(18, 13, 9, 0) 20%, rgba(11, 8, 6, 0.55) 100%);
  }

  .whisper-stepper {
    top: 10px;
    left: 12px;
    right: 12px;
    justify-content: space-between;
  }

  .whisper-bottom {
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
  }

  .carousel-head-bar,
  .cases-header-grid,
  .cases-head-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .reel-slide {
    flex: 0 0 264px;
  }

  .specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .case-dossier-slide {
    flex: 0 0 calc(100vw - 40px);
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }

  .pipeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .broadsheet-section,
  .midnight-section {
    padding: 68px 0;
  }

  .container,
  .nav-inner {
    padding: 0 20px;
  }

  .studio-specs-strip,
  .finale-card {
    padding: 24px 20px;
  }
}

@media (max-width: 520px) {
  .brand-serif { font-size: 20px; }
  .pill-primary-adaptive { padding: 8px 13px; font-size: 12.5px; }
  .specs-grid { grid-template-columns: 1fr; }
  .case-media-stage { grid-template-columns: 1fr 1fr; gap: 10px; }
  .case-metrics-row { grid-template-columns: 1fr; gap: 12px; }
}

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