/* ============================================================ */
/* XENTROX — Productions Page                                   */
/* Page-specific styles: opener, grids, services, CTA, FAQ      */
/* ===========================================================*/

/* Nav brand motion is now canonical in shared.css */

/* -------------------------------------------------------- */
/* PRODUCTIONS OPENER — Decode Wordmark + Orbital Rings       */
/* Differentiated from Home:                                  */
/*   - Target word: "PRODUCTION" (10 chars vs 7)             */
/*   - ~35% smaller wordmark to fit longer word              */
/*   - Pink-dominant orbits (Home is cyan-dominant)           */
/*   - Core glow: pink-cyan mix (Home is cyan-pink)           */
/*   - Three words: Create · Capture · Deliver                */
/*   - Scroll-to-expand: wordmark scales, glow intensifies    */
/*   - XENTROX label: larger, more visible                    */
/* -------------------------------------------------------- */

/* Override shared intro tokens for Productions (~35% smaller) */
.prod-opener {
  --intro-wordmark-size: clamp(2.4rem, 12.5vw, 10rem);
  --intro-brand-label-size: clamp(0.7rem, 1.4vw, 1rem);
  --intro-pillars-size: clamp(0.55rem, 0.95vw, 0.68rem);
}

/* Override aurora — pink-dominant for Productions */
.prod-opener .hero-aurora {
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(255,47,163,0.2), transparent 60%),
    radial-gradient(ellipse 45% 35% at 80% 25%, rgba(0,184,255,0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 50% 70%, rgba(127,144,255,0.1), transparent 60%);
}

/* Override core glow — pink center, cyan edge */
.prod-opener .hero-core-glow {
  background: radial-gradient(circle, rgba(255,47,163,0.22) 0%, rgba(0,184,255,0.1) 35%, transparent 65%);
}

/* XENTROX brand label above wordmark — larger, more visible */
.prod-brand-label {
  position: relative;
  z-index: 10;
  font-size: var(--intro-brand-label-size);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-5);
  font-family: var(--font-mono);
}

/* Scroll-to-expand: wordmark scales up and glow intensifies on scroll */
.prod-opener .wordmark {
  transition: transform 0.1s linear;
  will-change: transform;
}
.prod-opener .hero-core-glow {
  transition: opacity 0.1s linear, transform 0.1s linear;
  will-change: opacity, transform;
}

/* Override wordmark stroke for Productions (pink tint) */
.prod-opener .wordmark {
  -webkit-text-stroke: 0.4px rgba(255,255,255,0.9);
  paint-order: stroke fill;
}

/* Glitch shake — pink/cyan swap for Productions */
.prod-opener.glitch-wrap[data-active="1"] .wordmark {
  animation: prodGlitchShake .55s steps(2) 2;
}
@keyframes prodGlitchShake {
  0% { transform: translate(0); }
  20% { transform: translate(-4px,1px); text-shadow: 3px 0 #00b8ff, -3px 0 #ff2fa3; }
  40% { transform: translate(4px,-1px); text-shadow: -3px 0 #00b8ff, 3px 0 #ff2fa3; }
  60% { transform: translate(-2px,2px); }
  100% { transform: translate(0); text-shadow: none; }
}

/* Glow text — pink-dominant for Productions */
.prod-opener .glow-text {
  text-shadow:
    0 0 20px rgba(255,47,163,0.35),
    0 0 60px rgba(255,47,163,0.18),
    0 0 120px rgba(0,184,255,0.12);
}

/* -------------------------------------------------------- */
/* SECTION HEADER — Divider + Label + Title + Description    */
/* Reused across all Productions sections for consistency    */
/* Pattern: line/divider → label → title → description       */
/* -------------------------------------------------------- */

.prod-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-8);
}

.prod-header-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-subtle) 20%, var(--border-accent) 50%, var(--border-subtle) 80%, transparent 100%);
  margin-bottom: var(--space-5);
}

.prod-header-line::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-pink));
  border-radius: 1px;
  box-shadow: 0 0 8px var(--color-primary-glow);
}

/* -------------------------------------------------------- */
/* CINEMATIC HEADING — Halo + Gradient Text                  */
/* HeyLeads-style: breathing halo aura + gradient fill       */
/* -------------------------------------------------------- */

@keyframes prodTextHaloPulse {
  0% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 6px rgba(0, 184, 255, 0.35));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 12px rgba(255, 47, 163, 0.55));
  }
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 6px rgba(0, 184, 255, 0.35));
  }
}

.cinematic-heading {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent-pink) 40%, var(--color-accent-violet) 75%, var(--color-primary) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: prodTextHaloPulse 4.5s ease-in-out infinite;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* -------------------------------------------------------- */
/* MEDIA TILE GRID — Top content section                     */
/* -------------------------------------------------------- */

/* The main content grid — mixed-size media tiles */
/* Fixed: standardized row height; tiles stretch to fill cells     */
/* Grid-auto-rows: 242px per row; no minmax conflicts              */
.media-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  grid-auto-rows: 242px; /* Increased by 10% from 220px */
  gap: var(--space-4);
  margin-top: var(--space-12);
}

/* Tile base */
.media-tile {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: transform var(--motion-slow) var(--ease-out-expo),
              border-color var(--motion-base) var(--ease-out-expo),
              box-shadow var(--motion-base) var(--ease-out-expo);
  cursor: pointer;
  align-self: stretch; /* ensure tile fills the full grid row height */
  height: 100%; /* fill grid cell */
}
.media-tile:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
  z-index: 2;
}

/* Tile image area */
.media-tile-img {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-panel));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-tile-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.08); /* +8% zoom expansion to fill frame */
  transform-origin: center center;
  transition: transform var(--motion-slow) var(--ease-out-expo);
}
.media-tile:hover .media-tile-img img {
  transform: scale(1.14);
}
.media-tile-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,0.012) 12px,
    rgba(255,255,255,0.012) 24px
  );
}
.media-tile-img span {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  letter-spacing: 0.08em;
}

/* Tile overlay — bottom info bar */
.media-tile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Glassmorphic client & project badge on top-right of media tile */
.media-tile-client-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 3;
  border: 1px solid rgba(0, 184, 255, 0.4);
  background: rgba(9, 10, 15, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.media-tile-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.media-tile-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}
.media-tile-title {
  font-size: 0.7rem;
  color: var(--text-body);
}

/* Tile size variants */
.media-tile--large {
  grid-column: span 8;
  grid-row: span 2;
}
.media-tile--medium {
  grid-column: span 4;
  grid-row: span 2;
}
.media-tile--wide {
  grid-column: span 6;
  grid-row: span 2;
}
.media-tile--tall {
  grid-column: span 4;
  grid-row: span 2;
}
.media-tile--small {
  grid-column: span 3;
  grid-row: span 1;
}
.media-tile--full {
  grid-column: span 12;
  grid-row: span 2;
}

/* Accent glow on hover — per tile */
.media-tile--cyan:hover { box-shadow: var(--shadow-neon-cyan); }
.media-tile--pink:hover { box-shadow: var(--shadow-neon-pink); }
.media-tile--violet:hover { box-shadow: var(--shadow-neon-violet); }

/* -------------------------------------------------------- */
/* VIDEO GRID — Enterprise-style, mixed vertical + horizontal */
/* Fixed: removed aspect-ratio/min-height conflicts          */
/* Grid-auto-rows: 200px per row; tiles stretch to fill     */
/* Packing: 12-col grid, deterministic bands, no overlap    */
/* -------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px; /* standardized row height — single source of truth */
  gap: var(--space-4);
  margin-top: var(--space-12);
}

/* Video tile base */
.video-tile {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: transform var(--motion-slow) var(--ease-out-expo),
              border-color var(--motion-base) var(--ease-out-expo),
              box-shadow var(--motion-base) var(--ease-out-expo);
  cursor: pointer;
  align-self: stretch; /* ensure tile fills the full grid row height */
  height: 100%; /* fill grid cell */
}
.video-tile:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
  z-index: 2;
}

/* Video tile inner — placeholder content */
.video-tile-inner {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-panel));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  overflow: hidden;
}
.video-tile-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.72;
  transition: transform var(--motion-slow) var(--ease-out-expo),
              opacity var(--motion-base) var(--ease-out-expo);
}
.video-tile:hover .video-tile-inner img {
  transform: scale(1.04);
  opacity: 0.9;
}
.video-tile-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,0.012) 12px,
    rgba(255,255,255,0.012) 24px
  );
}
.video-tile-inner span {
  position: relative;
  z-index: 1;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  letter-spacing: 0.08em;
}

/* Play button icon */
.video-tile-play {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  transition: background var(--motion-base) var(--ease-out-expo),
              transform var(--motion-base) var(--ease-out-expo);
}
.video-tile:hover .video-tile-play {
  background: rgba(255,255,255,0.15);
  transform: scale(1.1);
}

/* Video tile overlay — bottom info */
.video-tile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}
.video-tile-label {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--color-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.video-tile-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

/* ——— Size variants ——— */
/* NOTE: No aspect-ratio or min-height — grid row spans control height.
   Vertical = 3 cols × 2 rows (400px). Horizontal = 6 cols × 1 row (200px).
   Featured = 12 cols × 2 rows (400px). Tiles stretch to fill cells.     */

/* Vertical tile — spans 3 columns, 2 rows (400px tall) */
.video-tile--vertical {
  grid-column: span 3;
  grid-row: span 2;
}

/* Horizontal tile — spans 6 columns, 1 row (200px tall) */
.video-tile--horizontal {
  grid-column: span 6;
  grid-row: span 1;
}

/* Featured horizontal — full width, 2 rows (400px tall) for impact */
.video-tile--featured {
  grid-column: span 12;
  grid-row: span 2;
}

/* ——— Explicit row placement for deterministic bands ——— */
/* Each band is gapless: 2V + 2H pattern, alternating sides.         */
/* Grid: 12 columns × 200px auto-rows. V=3col×2row, H=6col×1row    */
/* Total: 3 bands × 4 tiles + 1 featured = 13 tiles                */

/* Band 1 (rows 1-2): 2V(left) + 2H(right stacked) — Pattern A */
/*   Row 1: V(1-3) + V(4-6) + H(7-12) */
/*   Row 2: V(1-3) + V(4-6) + H(7-12) */
.video-grid > .video-tile:nth-child(1) { grid-column: 1 / span 3; grid-row: 1 / span 2; }
.video-grid > .video-tile:nth-child(2) { grid-column: 4 / span 3; grid-row: 1 / span 2; }
.video-grid > .video-tile:nth-child(3) { grid-column: 7 / span 6; grid-row: 1; }
.video-grid > .video-tile:nth-child(4) { grid-column: 7 / span 6; grid-row: 2; }

/* Band 2 (rows 3-4): 2H(left stacked) + 2V(right) — Pattern B */
/*   Row 3: H(1-6) + V(7-9) + V(10-12) */
/*   Row 4: H(1-6) + V(7-9) + V(10-12) */
.video-grid > .video-tile:nth-child(5) { grid-column: 1 / span 6; grid-row: 3; }
.video-grid > .video-tile:nth-child(6) { grid-column: 1 / span 6; grid-row: 4; }
.video-grid > .video-tile:nth-child(7) { grid-column: 7 / span 3; grid-row: 3 / span 2; }
.video-grid > .video-tile:nth-child(8) { grid-column: 10 / span 3; grid-row: 3 / span 2; }

/* Band 3 (rows 5-6): 2V(left) + 2H(right stacked) — Pattern A */
/*   Row 5: V(1-3) + V(4-6) + H(7-12) */
/*   Row 6: V(1-3) + V(4-6) + H(7-12) */
.video-grid > .video-tile:nth-child(9) { grid-column: 1 / span 3; grid-row: 5 / span 2; }
.video-grid > .video-tile:nth-child(10) { grid-column: 4 / span 3; grid-row: 5 / span 2; }
.video-grid > .video-tile:nth-child(11) { grid-column: 7 / span 6; grid-row: 5; }
.video-grid > .video-tile:nth-child(12) { grid-column: 7 / span 6; grid-row: 6; }

/* Accent glow on hover */
.video-tile--cyan:hover { box-shadow: var(--shadow-neon-cyan); }
.video-tile--pink:hover { box-shadow: var(--shadow-neon-pink); }
.video-tile--violet:hover { box-shadow: var(--shadow-neon-violet); }

/* -------------------------------------------------------- */
/* SERVICES SECTION — Mid (matches live Xentrox Productions)  */
/* Live: label + divider → heading → 4-col grid of cards     */
/* Each card: Header → Description → Image (at bottom)       */
/* -------------------------------------------------------- */

/* SERVICES GRID & SERVICE BLOCK — now canonical in shared.css */

/* FAQ accordion-style (simple) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--motion-base) var(--ease-out-expo);
}
.faq-item:hover {
  border-color: var(--border-strong);
}
.faq-question {
  padding: var(--space-5) var(--space-6);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-toggle {
  font-size: 1rem;
  color: var(--text-subtle);
  transition: transform var(--motion-base) var(--ease-out-expo);
  flex-shrink: 0;
  margin-left: var(--space-3);
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--motion-slow) var(--ease-out-expo),
              padding var(--motion-slow) var(--ease-out-expo);
}
.faq-item.open .faq-answer {
  max-height: 200px;
}
.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* -------------------------------------------------------- */
/* CTA — Cinematic gradient + halo animation                 */
/* Reuses prodTextHaloPulse for breathing gradient text      */
/* Adds decorative glow orb + orbital ring                   */
/* -------------------------------------------------------- */

@keyframes prodCtaGlowPulse {
  0% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.15);
  }
  100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes prodCtaRingSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.productions-cta {
  position: relative;
  text-align: center;
  padding: var(--space-24) 0;
  overflow: hidden;
}

/* Background glow orb — breathing pulse */
.productions-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,184,255,0.1) 0%, rgba(255,47,163,0.06) 40%, transparent 70%);
  animation: prodCtaGlowPulse 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Decorative orbital ring */
.productions-cta-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(0,184,255,0.08);
  animation: prodCtaRingSpin 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.productions-cta-ring::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  border-radius: 50%;
  border: 1px solid rgba(255,47,163,0.06);
  animation: prodCtaRingSpin 20s linear infinite reverse;
}

/* Content sits above decorations */
.productions-cta > .container {
  position: relative;
  z-index: 1;
}

/* CTA title — larger cinematic heading with gradient + halo */
.cta-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent-pink) 30%, var(--color-accent-violet) 60%, var(--color-primary) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: prodTextHaloPulse 4.5s ease-in-out infinite;
}

/* CTA section header — tighter spacing for CTA context */
.productions-cta .prod-section-header {
  margin-bottom: var(--space-10);
}

/* CTA action buttons */
.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.productions-cta .btn {
  height: 44px;
  padding: 0 var(--space-6);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--motion-base) var(--ease-out-expo);
  text-decoration: none;
}

.productions-cta .btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
  box-shadow: 0 0 20px rgba(0, 184, 255, 0.25);
}

.productions-cta .btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 0 30px rgba(0, 184, 255, 0.5), 0 0 60px rgba(0, 184, 255, 0.25);
  transform: translateY(-2px);
  text-decoration: none;
}

.productions-cta .btn-outline {
  background: rgba(9, 10, 15, 0.6);
  border: 1px solid var(--border-strong);
  color: var(--text-heading);
  backdrop-filter: blur(8px);
}

.productions-cta .btn-outline:hover {
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 25px rgba(0, 184, 255, 0.35);
  transform: translateY(-2px);
  text-decoration: none;
}

.cta-btn-primary {
  position: relative;
  overflow: hidden;
}
.cta-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-pink));
  opacity: 0;
  transition: opacity var(--motion-base) var(--ease-out-expo);
  z-index: 0;
}
.cta-btn-primary:hover::before {
  opacity: 1;
}
.cta-btn-primary span,
.cta-btn-primary {
  position: relative;
  z-index: 1;
}

.cta-btn-secondary {
  border: 1px solid var(--border-accent);
  color: var(--color-primary);
  background: transparent;
  transition: all var(--motion-base) var(--ease-out-expo);
}
.cta-btn-secondary:hover {
  background: rgba(0,184,255,0.08);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-neon-cyan);
  text-decoration: none;
}

/* -------------------------------------------------------- */
/* PROJECTS GRID — clickable cards                          */
/* -------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--motion-slow) var(--ease-out-expo),
              border-color var(--motion-base) var(--ease-out-expo),
              box-shadow var(--motion-base) var(--ease-out-expo);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project-thumb-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-panel));
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-thumb-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,0.012) 12px,
    rgba(255,255,255,0.012) 24px
  );
}
.project-thumb-img span {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  letter-spacing: 0.08em;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--motion-base) var(--ease-out-expo);
}
.project-card:hover .project-card-overlay {
  opacity: 1;
}
.project-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-sm);
}

.project-info {
  padding: var(--space-4) var(--space-5);
}
.project-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}
.project-desc {
  font-size: 0.75rem;
  color: var(--text-body);
}

/* -------------------------------------------------------- */
/* PROJECT MODAL POPUP — single centered modal              */
/* -------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-slow) var(--ease-out-expo),
              visibility var(--motion-slow) var(--ease-out-expo);
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  width: 90vw;
  height: 88vh;
  max-width: 1440px;
  max-height: 92vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  transform: scale(0.95) translateY(12px);
  transition: transform var(--motion-slow) var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}
.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 10;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--motion-base) var(--ease-out-expo);
  line-height: 1;
}
.modal-close:hover {
  background: rgba(255,255,255,0.15);
}

.modal-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* ——— Image section with L/R arrows ——— */
.modal-image-section {
  position: relative;
  flex: 1;
  min-height: 0;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-panel));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal-image-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,0.012) 12px,
    rgba(255,255,255,0.012) 24px
  );
  pointer-events: none;
}

.modal-image-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-image-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.modal-image-placeholder span {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  letter-spacing: 0.08em;
}

/* L/R nav arrows — positioned on image */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--motion-base) var(--ease-out-expo),
              border-color var(--motion-base) var(--ease-out-expo);
  line-height: 1;
}
.modal-nav-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}
.modal-nav-prev {
  left: var(--space-5);
}
.modal-nav-next {
  right: var(--space-5);
}

.modal-image-counter {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  background: rgba(0,0,0,0.4);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}

/* ——— Info section: header + description ——— */
.modal-info-section {
  flex-shrink: 0;
  padding: var(--space-6) var(--space-8);
  background: var(--bg-panel);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}

.modal-project-name {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  text-align: left;
}

.modal-project-desc {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

/* ——— Video player frame inside modal ——— */
.modal-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

/* -------------------------------------------------------- */
/* CLIENT LOGO MARQUEE — Top and Bottom                      */
/* Matches live: "Trusted By Industry Leaders" label +       */
/* auto-scrolling row of gray placeholder logo pills         */
/* -------------------------------------------------------- */

.logo-marquee-section {
  padding: var(--space-16) 0;
  overflow: hidden;
}

.logo-marquee-label {
  text-align: center;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-subtle);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

.logo-marquee {
  overflow: hidden;
  position: relative;
  /* Fade edges */
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-marquee-track {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  animation: logo-marquee-scroll 40s linear infinite;
}
.logo-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes logo-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* MARQUEE LOGO PILL (Full-Bleed Chamfered Tile) */
.logo-pill {
  flex-shrink: 0;
  width: 108px;
  height: 108px;
  padding: 0 !important;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0 !important;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  -webkit-clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--motion-base) var(--ease-out-expo),
              background var(--motion-base) var(--ease-out-expo),
              transform var(--motion-base) var(--ease-out-expo);
}
.logo-pill:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.logo-pill img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
  display: block;
  filter: brightness(0.98) contrast(1.08);
  opacity: 0.92;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}
.logo-pill:hover img {
  opacity: 1;
  filter: brightness(1.15);
  transform: scale(1.06);
}
.logo-pill span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  letter-spacing: 0.08em;
}

/* -------------------------------------------------------- */
/* RESPONSIVE                                                */
/* -------------------------------------------------------- */
@media (max-width: 1024px) {
  .media-tile--large { grid-column: span 12; }
  .media-tile--medium { grid-column: span 6; }
  .media-tile--wide { grid-column: span 6; }
  .media-tile--tall { grid-column: span 6; }
  .media-tile--small { grid-column: span 4; }

  /* Video grid — tablet: reset explicit placement, use auto-flow */
  .video-grid {
    grid-auto-rows: 150px;
  }
  .video-grid > .video-tile {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .video-tile--vertical {
    grid-column: span 4;
    grid-row: span 2;
  }
  .video-tile--horizontal {
    grid-column: span 8;
    grid-row: span 1;
  }
  .video-tile--featured {
    grid-column: span 12;
    grid-row: span 2;
  }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }

  .logo-pill {
    width: 88px;
    height: 88px;
    padding: 0;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    -webkit-clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  }
  .logo-pill img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }
}

@media (max-width: 768px) {
  /* Productions opener — smaller wordmark on mobile */
  .prod-opener {
    --intro-wordmark-size: clamp(1.6rem, 10vw, 3.5rem);
    --intro-brand-label-size: clamp(0.65rem, 2vw, 0.85rem);
    --intro-pillars-size: clamp(0.5rem, 1.5vw, 0.6rem);
  }

  .media-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(160px, auto);
  }
  .media-tile--large,
  .media-tile--medium,
  .media-tile--wide,
  .media-tile--tall,
  .media-tile--small,
  .media-tile--full {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Video grid — mobile: reset explicit placement, single column */
  .video-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .video-grid > .video-tile {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .video-tile--vertical,
  .video-tile--horizontal,
  .video-tile--featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  /* Modal responsive */
  .modal-container {
    width: 96vw;
    height: 95vh;
  }
  .modal-info-section {
    padding: var(--space-5) var(--space-4);
  }
  .modal-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  .modal-nav-prev { left: var(--space-2); }
  .modal-nav-next { right: var(--space-2); }

  .logo-pill {
    width: 88px;
    height: 88px;
    padding: 0;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    -webkit-clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  }
  .logo-pill img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }
  .logo-marquee-section { padding: var(--space-10) 0; }

  /* CTA responsive */
  .productions-cta-glow {
    width: 300px;
    height: 300px;
  }
  .productions-cta-ring {
    width: 250px;
    height: 250px;
  }
  .cta-title {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }
}

/* MARQUEE LOGO PILL (Edge-to-Edge Full Bleed Chamfered Tile with Outline & Shadow Bed) */
.logo-pill {
  flex-shrink: 0;
  width: 108px !important;
  height: 108px !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: var(--bg-surface) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='108' height='108' viewBox='0 0 108 108' fill='none'%3E%3Cpolygon points='14,0.5 94,0.5 107.5,14 107.5,94 94,107.5 14,107.5 0.5,94 0.5,14' stroke='rgba(255,255,255,0.22)' stroke-width='1.2'/%3E%3C/svg%3E") !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  border: none !important;
  border-radius: 0 !important;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px) !important;
  -webkit-clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px) !important;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.85)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)) !important;
  transition: transform var(--motion-base) var(--ease-out-expo),
              filter var(--motion-base) var(--ease-out-expo),
              background-image var(--motion-base) var(--ease-out-expo) !important;
}

.logo-pill:hover {
  transform: translateY(-3px) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='108' height='108' viewBox='0 0 108 108' fill='none'%3E%3Cpolygon points='14,0.5 94,0.5 107.5,14 107.5,94 94,107.5 14,107.5 0.5,94 0.5,14' stroke='rgba(139,92,246,0.65)' stroke-width='1.5'/%3E%3C/svg%3E") !important;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 12px rgba(139, 92, 246, 0.35)) !important;
}

.logo-pill img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
  display: block;
  filter: brightness(0.98) contrast(1.08);
  opacity: 0.92;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.logo-pill:hover img {
  opacity: 1;
  filter: brightness(1.15);
  transform: scale(1.04);
}

/* ============================================================ */
/* PRODUCTIONS VIDEO GRID (.prod-video-grid) — Mirrors Studio   */
/* ============================================================ */
.prod-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.prod-video-card {
  background: #090a0f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.prod-video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 184, 255, 0.45);
  box-shadow: 0 12px 36px -8px rgba(0, 184, 255, 0.28), 0 0 24px rgba(255, 47, 163, 0.12);
}

.prod-video-card--featured {
  grid-column: 1 / -1;
}

.prod-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  background: #050508;
}
.prod-video-card--featured .prod-video-embed {
  min-height: 480px;
}
.prod-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.prod-video-info {
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: rgba(14, 15, 20, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.prod-video-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}
.prod-video-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(0, 184, 255, 0.08);
  border: 1px solid rgba(0, 184, 255, 0.25);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .prod-video-grid {
    grid-template-columns: 1fr;
  }
  .prod-video-card--featured .prod-video-embed,
  .prod-video-embed {
    min-height: 280px;
  }
  .prod-video-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================ */
/* PRODUCTIONS VERTICAL CINEMA GRID (9:16 Reels & Shorts)       */
/* ============================================================ */
.prod-subsection-header {
  text-align: center;
  max-width: 680px;
  margin: var(--space-12) auto var(--space-6);
}

.prod-subsection-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin: var(--space-3) 0 var(--space-2);
}

.prod-subsection-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.prod-vertical-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}

@media (max-width: 1200px) {
  .prod-vertical-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .prod-vertical-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .prod-vertical-grid {
    grid-template-columns: 1fr;
  }
}

.prod-vertical-card {
  position: relative;
  background: #090a0f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.prod-vertical-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 47, 163, 0.45);
  box-shadow: 0 12px 36px -8px rgba(255, 47, 163, 0.28), 0 0 24px rgba(0, 184, 255, 0.15);
  z-index: 2;
}

.prod-vertical-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 480px;
  background: #050508;
  overflow: hidden;
}

.prod-vertical-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* allows card click to bubble to parent lightbox modal */
}

.prod-vertical-info {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: rgba(14, 15, 20, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.prod-vertical-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}




/* ============================================================ */
/* VIDEO EMBED CLEAN CINEMA CROPPING (HIDE TOP BAR & CHROME)   */
/* ============================================================ */
.prod-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  background: #050508;
  overflow: hidden; /* crops out top header and bottom bar */
}

.prod-video-card--featured .prod-video-embed {
  min-height: 480px;
}

.prod-video-embed iframe {
  position: absolute;
  top: -14%; /* shifts top UI element (title, share, more videos) above crop */
  left: 0;
  width: 100%;
  height: 128%; /* scales vertically to cover completely without letterbox */
  border: 0;
  pointer-events: none; /* smooth background playback without player overlay */
}

.prod-video-card:hover .prod-video-embed iframe {
  transform: scale(1.02);
  transition: transform var(--motion-base) var(--ease-out-expo);
}

/* ============================================================ */
/* DELL 3D ANAMORPHIC — Zoom to fill letterbox bars             */
/* ============================================================ */
.prod-video-embed--zoom-dell iframe {
  transform: scale(1.045);
  transform-origin: center center;
}
.prod-video-card:hover .prod-video-embed--zoom-dell iframe {
  transform: scale(1.07);
  transition: transform var(--motion-base) var(--ease-out-expo);
}

/* ============================================================ */
/* SECTION SPACING STANDARDIZATION                              */
/* Matches the spacing rhythm of Vertical Commercials (48px/64px) */
/* ============================================================ */
.section {
  padding: var(--space-12) 0 !important;
}

.divider {
  margin: var(--space-8) 0 !important;
}

.prod-section-header {
  margin: 0 auto var(--space-8) !important;
}
