/* ============================================================ */
/* XENTROX — Studio Page                                        */
/* Page-specific styles: opener, CTA glow, color overrides,      */
/*   3x3 services matrix, & 6 dedicated portfolio showcases      */
/* Shared patterns: prod-section-header, cinematic-heading,      */
/*   service-block, FAQ, logo-marquee, CTA base → shared.css     */
/* ============================================================ */

/* -------------------------------------------------------- */
/* STUDIO OPENER — Decode Wordmark + Orbital Rings           */
/* Differentiated from Productions:                           */
/*   - Target word: "STUDIO" (6 chars vs 10)                 */
/*   - Slightly larger wordmark for shorter word              */
/*   - Violet-dominant orbits (Productions is pink-dominant)  */
/*   - Core glow: violet-cyan mix                             */
/*   - Three words: Space · Light · Capture                   */
/* -------------------------------------------------------- */

/* Override shared intro tokens for Studio */
.studio-opener {
  --intro-wordmark-size: clamp(3rem, 14vw, 12rem);
  --intro-brand-label-size: clamp(0.7rem, 1.4vw, 1rem);
  --intro-pillars-size: clamp(0.55rem, 0.95vw, 0.68rem);
}

/* Override aurora — violet-dominant for Studio */
.studio-opener .hero-aurora {
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(139,92,246,0.22), 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.12), transparent 60%);
}

/* Override core glow — violet center, cyan edge */
.studio-opener .hero-core-glow {
  background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, rgba(0,184,255,0.12) 35%, transparent 65%);
}

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

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

/* Glitch shake — violet/cyan for Studio */
.studio-opener.glitch-wrap[data-active="1"] .wordmark {
  animation: studioGlitchShake .55s steps(2) 2;
}
@keyframes studioGlitchShake {
  0% { transform: translate(0); }
  20% { transform: translate(-4px,1px); text-shadow: 3px 0 #8b5cf6, -3px 0 #39e0ff; }
  40% { transform: translate(4px,-1px); text-shadow: -3px 0 #8b5cf6, 3px 0 #39e0ff; }
  60% { transform: translate(-2px,2px); }
  100% { transform: translate(0); text-shadow: none; }
}

/* Glow text — violet-dominant for Studio */
.studio-opener .glow-text {
  text-shadow:
    0 0 20px rgba(139,92,246,0.35),
    0 0 60px rgba(139,92,246,0.18),
    0 0 120px rgba(0,184,255,0.12);
}

/* -------------------------------------------------------- */
/* SECTION HEADER — Violet accent override                    */
/* Shared base: shared.css .prod-section-header               */
/* Override: header line gradient → violet → cyan             */
/* -------------------------------------------------------- */

.prod-header-line::after {
  background: linear-gradient(90deg, var(--color-accent-violet), var(--color-primary));
  box-shadow: 0 0 8px rgba(139,92,246,0.5);
}

/* -------------------------------------------------------- */
/* CINEMATIC HEADING — Violet-dominant gradient               */
/* Shared base: shared.css .cinematic-heading                 */
/* Override: violet gradient + violet halo animation           */
/* -------------------------------------------------------- */

@keyframes studioTextHaloPulse {
  0% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.35));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 12px rgba(0, 184, 255, 0.55));
  }
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.35));
  }
}

/* .cinematic-heading uses the unified site-wide gradient in shared.css */

/* -------------------------------------------------------- */
/* 1. STUDIO BLUF POSITIONING BANNER                         */
/* -------------------------------------------------------- */

.studio-bluf-banner {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-left: 3px solid #a78bfa;
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-6);
  color: var(--text-primary, var(--text-heading, #ffffff));
  font-size: var(--text-base, 1rem);
  line-height: 1.7;
  text-align: left;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.studio-bluf-banner strong {
  color: #a78bfa;
  font-weight: 700;
}

/* -------------------------------------------------------- */
/* 2. STUDIO SERVICES — 3×3 Balanced Matrix                   */
/* -------------------------------------------------------- */

/* SERVICE BLOCK — inherits canonical Productions .services-grid & .service-block from shared.css */
.studio-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}

/* -------------------------------------------------------- */
/* 3. MEDIA TILE GRID — Zero Clipping & Min-Height >= 360px   */
/* -------------------------------------------------------- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(360px, auto);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.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;
  height: 100%;
  min-height: 360px;
}
.media-tile:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
  z-index: 2;
}

.media-tile-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  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::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;
}
.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;
}
.media-tile-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.media-tile:hover .media-tile-img img {
  transform: scale(1.04);
}

.media-tile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(to top, rgba(5, 5, 10, 0.92) 0%, rgba(5, 5, 10, 0.55) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  pointer-events: none;
}
.media-tile-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: #a78bfa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.media-tile-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Tile size variants — NONE ever collapse below 360px */
.media-tile--large {
  grid-column: span 8;
  grid-row: span 1;
  min-height: 440px;
}
.media-tile--large .media-tile-img {
  min-height: 440px;
}
.media-tile--tall {
  grid-column: span 4;
  grid-row: span 1;
  min-height: 440px;
}
.media-tile--tall .media-tile-img {
  min-height: 440px;
}
.media-tile--medium {
  grid-column: span 4;
  grid-row: span 1;
  min-height: 380px;
}
.media-tile--wide {
  grid-column: span 6;
  grid-row: span 1;
  min-height: 380px;
}
.media-tile--small {
  grid-column: span 4;
  grid-row: span 1;
  min-height: 360px;
}
.media-tile--full {
  grid-column: span 12;
  grid-row: span 1;
  min-height: 420px;
}

/* Accent glow on hover */
.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); }

/* -------------------------------------------------------- */
/* 4. DEDICATED STUDIO PORTFOLIO SHOWCASE GRIDS              */
/* -------------------------------------------------------- */

/* --- 4A. VR, Unreal & Rigging Video Grid (.studio-video-grid) --- */
.studio-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.studio-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;
}
.studio-video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 12px 36px -8px rgba(139, 92, 246, 0.28), 0 0 24px rgba(0, 184, 255, 0.12);
}

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

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

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

.studio-video-embed iframe {
  position: absolute;
  top: -14%;
  left: 0;
  width: 100%;
  height: 128%;
  border: 0;
  pointer-events: none;
}

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

.studio-video-info {
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #090a0f;
}
.studio-video-title {
  font-size: var(--text-lg, 1.05rem);
  font-weight: 700;
  color: var(--text-primary, var(--text-heading, #ffffff));
  letter-spacing: -0.01em;
  margin: 0;
}
.studio-video-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs, 0.7rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- 4B. Interactive 3D Sketchfab Configurators (.studio-sketchfab-grid) --- */
.studio-sketchfab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.sketchfab-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;
}
.sketchfab-card:hover {
  border-color: rgba(0, 184, 255, 0.42);
  box-shadow: 0 12px 36px -8px rgba(0, 184, 255, 0.24), 0 0 24px rgba(139, 92, 246, 0.14);
}

.sketchfab-card-header {
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}
.sketchfab-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #39e0ff;
  background: rgba(0, 184, 255, 0.1);
  border: 1px solid rgba(0, 184, 255, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.sketchfab-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

.sketchfab-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 480px;
  background: #050508;
}
.sketchfab-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sketchfab-card-footer {
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- 4C. Shared Studio Portfolio Card (.studio-portfolio-card) --- */
.studio-portfolio-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #090a0f;
  cursor: pointer;
  min-height: 360px;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}
.studio-portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 14px 36px -8px rgba(139, 92, 246, 0.32), 0 0 24px rgba(0, 184, 255, 0.14);
  z-index: 2;
}
.studio-portfolio-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.studio-portfolio-card:hover img {
  transform: scale(1.04);
}

/* Multi-slide badge on portfolio cards */
.studio-slide-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(9, 10, 15, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(167, 139, 250, 0.35);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  pointer-events: none;
}

/* --- 4D. Unreal 2×2 Widescreen Grid (.unreal-shots-grid) --- */
.unreal-shots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.unreal-shots-grid .studio-portfolio-card {
  aspect-ratio: 16 / 9;
  min-height: 340px;
}

/* --- 4E. 3D Assets & Surface Details Grid (.studio-assets-grid) --- */
/* Unified section supporting 3-column top row (3D modeling) and 2-column bottom row (surface texturing) */
.studio-assets-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.studio-assets-grid .studio-portfolio-card {
  grid-column: span 2; /* 3 cards in row 1: 2+2+2 = 6 cols */
  aspect-ratio: 1 / 1;
  min-height: 380px;
}
.studio-assets-grid .studio-portfolio-card--row2 {
  grid-column: span 3; /* 2 cards in row 2: 3+3 = 6 cols */
  aspect-ratio: 16 / 10;
  min-height: 380px;
}

/* Legacy fallback support */
.studio-texturing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.studio-texturing-grid .studio-portfolio-card {
  aspect-ratio: 1 / 1;
  min-height: 380px;
}

/* -------------------------------------------------------- */
/* 5. MODAL DOTS & LIGHTBOX ENHANCEMENTS                     */
/* -------------------------------------------------------- */

.modal-dots {
  position: absolute;
  bottom: var(--space-12);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.modal-dot.active {
  background: #a78bfa;
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.8);
}

/* -------------------------------------------------------- */
/* 6. CTA — Violet glow + ring overrides                     */
/* Shared base: shared.css CTA patterns                       */
/* -------------------------------------------------------- */

@keyframes studioCtaGlowPulse {
  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 studioCtaRingSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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

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

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

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

/* CTA title — violet gradient */
.cta-title {
  background: linear-gradient(90deg, var(--color-accent-violet) 0%, var(--color-primary) 30%, var(--color-accent-violet) 60%, var(--color-accent-violet) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: studioTextHaloPulse 4.5s ease-in-out infinite;
}

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

/* CTA action buttons — violet gradient */
.cta-btn-primary::before {
  background: linear-gradient(90deg, var(--color-accent-violet), var(--color-primary));
}

.cta-btn-secondary {
  border-color: var(--border-accent);
  color: var(--color-accent-violet);
}
.cta-btn-secondary:hover {
  background: rgba(139,92,246,0.08);
  border-color: var(--color-accent-violet);
  box-shadow: var(--shadow-neon-violet);
}

/* -------------------------------------------------------- */
/* 7. RESPONSIVE BREAKPOINTS                                 */
/* -------------------------------------------------------- */

@media (max-width: 1024px) {
  .services-grid,
  .studio-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .studio-assets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .studio-assets-grid .studio-portfolio-card {
    grid-column: span 1;
  }
  .studio-assets-grid .studio-portfolio-card--row2 {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  .media-tile--large { grid-column: span 12; min-height: 380px; }
  .media-tile--medium { grid-column: span 6; min-height: 360px; }
  .media-tile--wide { grid-column: span 6; min-height: 360px; }
  .media-tile--tall { grid-column: span 6; min-height: 380px; }
  .media-tile--small { grid-column: span 6; min-height: 360px; }
}

@media (max-width: 992px) {
  .studio-sketchfab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Studio opener — smaller wordmark on mobile */
  .studio-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);
  }

  .studio-video-grid,
  .studio-sketchfab-grid,
  .unreal-shots-grid,
  .studio-assets-grid,
  .studio-texturing-grid {
    grid-template-columns: 1fr;
  }
  .studio-assets-grid .studio-portfolio-card,
  .studio-assets-grid .studio-portfolio-card--row2 {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
    min-height: 300px;
  }

  .studio-video-card--featured .studio-video-embed {
    min-height: 300px;
  }
  .studio-video-embed {
    min-height: 300px;
  }
  .sketchfab-embed-wrap {
    min-height: 380px;
  }

  .studio-portfolio-card,
  .unreal-shots-grid .studio-portfolio-card,
  .studio-assets-grid .studio-portfolio-card,
  .studio-texturing-grid .studio-portfolio-card {
    min-height: 300px;
  }

  .studio-video-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .media-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(300px, auto);
  }
  .media-tile,
  .media-tile-img,
  .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;
    min-height: 300px;
  }

  /* CTA responsive */
  .studio-cta-glow {
    width: 300px;
    height: 300px;
  }
  .studio-cta-ring {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 640px) {
  .services-grid,
  .studio-services-grid {
    grid-template-columns: 1fr;
  }
}

/* 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);
}

/* ============================================================ */
/* SECTION SPACING STANDARDIZATION                              */
/* Matches the spacing rhythm of Productions / Video Discovery  */
/* ============================================================ */
.section {
  padding: var(--space-12) 0 !important;
}

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

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

/* ============================================================ */
/* STUDIO PORTFOLIO LIGHTBOX MODAL (#mediaModal)                */
/* ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 4, 12, 0.92);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-container {
  position: relative;
  width: min(94vw, 1320px);
  height: auto;
  max-height: 94vh;
  background: #050814;
  border: 1px solid rgba(57, 224, 255, 0.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 36px 96px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(5, 8, 20, 0.82);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.modal-close:hover {
  background: rgba(255, 47, 163, 0.28);
  border-color: #ff2fa3;
  transform: scale(1.06);
}
.modal-body {
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: 94vh;
  overflow: hidden;
}
.modal-image-section {
  position: relative;
  width: 100%;
  height: 76vh;
  max-height: 76vh;
  background: #020308;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal-image-viewport,
.modal-image-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-image-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  display: block;
}
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(5, 8, 20, 0.82);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.modal-nav-btn:hover {
  background: rgba(57, 224, 255, 0.24);
  border-color: #39e0ff;
}
.modal-nav-prev { left: 20px; }
.modal-nav-next { right: 20px; }
.modal-image-counter {
  position: absolute;
  top: 20px;
  left: 24px;
  bottom: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(5, 8, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  color: #f8fafc;
  z-index: 16;
}
.modal-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 8, 20, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 15;
}
.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal-dot.active {
  background: #39e0ff;
  transform: scale(1.25);
}
.modal-info-section {
  flex: 0 0 auto;
  padding: 1.15rem 1.75rem 1.3rem;
  background: #060916;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.modal-project-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.25rem 0 0.35rem;
  line-height: 1.25;
}
.modal-project-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
  margin: 0;
}
