/* ==========================================================================
   HEYSILVA.COM — POST-PRODUCTION & VISUAL DIRECTION PORTFOLIO
   Bespoke NLE Interface + Molten Chromatic Dark Theme
   ========================================================================== */

:root {
  /* Base Obsidian & Studio Panel Colours (Crimson Halftone Baked Palette) */
  --bg-void: #040406;
  --bg-studio: #08090e;
  --bg-panel: #0c0d14;
  --bg-panel-solid: #0d0e15;
  --bg-panel-elevated: #141622;
  --bg-track: #090a10;

  /* Borders & Specular Highlights */
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(255, 56, 56, 0.5);
  --border-glow: rgba(255, 110, 30, 0.38);

  /* Crimson Halftone Chromatic Palette */
  --accent-crimson: #ff1e3a;
  --accent-ember: #ff4b1f;
  --accent-amber: #ff9c1a;
  --accent-gold: #ffd23f;
  --accent-cyan: #2ad8f5;
  --accent-cobalt: #224ec2;
  --accent-magenta: #e62e6b;

  /* Text Hierarchy */
  --text-primary: #f8f9fc;
  --text-secondary: #a8b0bd;
  --text-muted: #687080;

  /* Typography */
  --font-display: 'Syne', 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --header-height: 88px;
  --container-max: 1380px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-void);
  color: var(--text-primary);
  overflow-x: hidden;
  padding-top: var(--header-height);
  position: relative;
  isolation: isolate;
}

main,
.nle-footer {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   AMBIENT STAGE (PRE-FEATHERED RADIAL ORBS — ZERO BLUR FILTER / ZERO BLEND MODE)
   ========================================================================== */

.ambient-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 110% 90% at 50% 15%, #240911 0%, #0b0711 55%, #040406 100%);
  contain: strict;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.ambient-orb--1 {
  width: max(96vw, 1380px);
  height: max(96vw, 1380px);
  top: -32%;
  left: -24%;
  background: radial-gradient(
    circle,
    rgba(255, 30, 58, 0.46) 0%,
    rgba(255, 78, 28, 0.28) 28%,
    rgba(255, 132, 26, 0.12) 52%,
    transparent 74%
  );
  animation: driftOrb1 11s ease-in-out infinite alternate;
}

.ambient-orb--2 {
  width: max(92vw, 1320px);
  height: max(92vw, 1320px);
  top: -18%;
  right: -26%;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.42) 0%,
    rgba(42, 216, 245, 0.24) 30%,
    rgba(230, 46, 107, 0.1) 54%,
    transparent 74%
  );
  animation: driftOrb2 13s ease-in-out infinite alternate;
}

.ambient-orb--3 {
  width: max(100vw, 1440px);
  height: max(100vw, 1440px);
  bottom: -36%;
  left: -8%;
  background: radial-gradient(
    circle,
    rgba(255, 156, 26, 0.38) 0%,
    rgba(230, 46, 107, 0.24) 32%,
    rgba(255, 30, 58, 0.1) 56%,
    transparent 75%
  );
  animation: driftOrb3 12s ease-in-out infinite alternate;
}

@keyframes driftOrb1 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(34vw, 24vh, 0);
  }
  100% {
    transform: translate3d(14vw, 42vh, 0);
  }
}

@keyframes driftOrb2 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-36vw, 28vh, 0);
  }
  100% {
    transform: translate3d(-18vw, -22vh, 0);
  }
}

@keyframes driftOrb3 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(28vw, -30vh, 0);
  }
  100% {
    transform: translate3d(-22vw, -16vh, 0);
  }
}

/* Dedicate 100% of frame budget to Showreel decoding while actively playing */
body.is-playing-showreel .ambient-orb,
body.is-playing-showreel .text-gradient-animated,
body.is-playing-showreel .btn--primary,
body.is-playing-showreel .rec-dot {
  animation-play-state: paused !important;
}

/* Subtle NLE Grid Overlay */
.studio-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: 64px 64px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
}

/* ==========================================================================
   SHRINKING FIXED HEADER & ANIMATED HEYSILVA.COM SVG LOGO
   ========================================================================== */

.nle-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background: rgba(6, 7, 11, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Modern Web Guidance: shrinking-header-on-scroll */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes shrinkHeader {
      to {
        height: 64px;
        background: rgba(5, 6, 9, 0.98);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
      }
    }

    .nle-header {
      animation: shrinkHeader auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 140px;
    }
  }
}

.nle-header__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo (White "hey" + Gradient "silva" + White ".com") */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
  contain: layout style paint;
}

.brand-logo__svg {
  height: 46px;
  width: auto;
  display: block;
  overflow: visible;
  transition: transform 0.2s ease;
}

.brand-logo:hover .brand-logo__svg {
  transform: scale(1.03);
}

.logo-white {
  fill: #ffffff;
}

.logo-silva-gradient {
  fill: url(#silvaAnimatedGrad);
}

/* Top NLE Telemetry HUD */
.nle-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  contain: layout style paint;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-crimson);
  box-shadow: 0 0 10px var(--accent-crimson);
  animation: pulseRec 1.4s ease-in-out infinite;
}

@keyframes pulseRec {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.82); }
}

#workspace-showreel,
#workspace-works,
#workspace-about,
#workspace-contact {
  scroll-margin-top: 84px;
}

.nle-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.nle-nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nle-nav__link span {
  color: var(--accent-ember);
  opacity: 0.75;
  font-size: 0.68rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nle-nav__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nle-nav__link.is-active {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 30, 58, 0.22), rgba(255, 110, 26, 0.18));
  border-color: rgba(255, 92, 36, 0.55);
  box-shadow: 0 0 16px rgba(255, 58, 30, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.nle-nav__link.is-active span {
  color: var(--accent-gold);
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   BUTTONS & INTERACTIVE CONTROLS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, #ff2a1f 0%, #ff6b1a 48%, #ffae19 100%);
  background-size: 200% 200%;
  color: #050507;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(255, 74, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: gradientShift 5s ease infinite;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 74, 26, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn--whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #4df08b;
  border-color: rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: #4df08b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.22);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 174, 25, 0.5);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 0.8rem;
  border-radius: 8px;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ==========================================================================
   CONTAINER & SECTION COMMONS
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.nle-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-amber);
  background: rgba(255, 142, 26, 0.1);
  border: 1px solid rgba(255, 142, 26, 0.28);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.text-gradient-animated {
  background: linear-gradient(90deg, #ff2a1f, #ff8c1a, #ffd447, #38e2f8, #ff2a1f);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flowTextGradient 7s linear infinite;
}

@keyframes flowTextGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Modern Web Guidance: defer-rendering-heavy-content (ONLY below the fold) */
.below-fold-section {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 750px;
}

/* Modern Web Guidance: scroll-entry-exit-effects */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes nlePanelEnter {
      from {
        opacity: 0;
        transform: translateY(36px) scale(0.97);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .scroll-reveal-card {
      animation: nlePanelEnter auto ease-out backwards;
      animation-timeline: view(block);
      animation-range: entry 5% cover 24%;
    }
  }
}

/* ==========================================================================
   HERO WORKSPACE & SHOWREEL PROGRAM MONITOR
   ========================================================================== */

.hero-workspace {
  padding: 36px 0 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 32px;
  align-items: stretch;
}

.hero-copy-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 42px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.hero-copy-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-crimson), var(--accent-amber), var(--accent-cyan), transparent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.68;
  margin-bottom: 28px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

/* Quick NLE Metadata Specs inside Hero */
.hero-specs-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.spec-cell {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.spec-cell__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.spec-cell__value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Program Monitor (Right Hero Column) */
.program-monitor {
  background: var(--bg-panel-solid);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75), 0 0 60px rgba(255, 74, 26, 0.12);
}

.monitor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #07080c;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.monitor-window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.win-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.win-dot--red { background: #ff453a; }
.win-dot--amber { background: #ffd60a; }
.win-dot--green { background: #32d74b; }

.monitor-title-badge {
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.monitor-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nle-mini-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nle-mini-btn:hover,
.nle-mini-btn.is-active {
  color: var(--accent-amber);
  border-color: var(--accent-amber);
  background: rgba(255, 174, 25, 0.12);
}

/* Video.js Wrapper & Safe Margins Overlay */
.monitor-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  contain: layout style paint;
}

.monitor-viewport .video-js {
  width: 100% !important;
  height: 100% !important;
  font-family: var(--font-mono);
}

/* Custom Video.js NLE Theme Overrides */
.vjs-theme-silva .vjs-big-play-button {
  width: 78px !important;
  height: 78px !important;
  line-height: 76px !important;
  border-radius: 50% !important;
  background: rgba(10, 11, 16, 0.92) !important;
  border: 2px solid var(--accent-amber) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65) !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.vjs-theme-silva:hover .vjs-big-play-button {
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-amber)) !important;
  color: #050507 !important;
  transform: translate(-50%, -50%) scale(1.09) !important;
}

.vjs-theme-silva .vjs-control-bar {
  background: rgba(5, 6, 10, 0.92) !important;
  height: 44px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vjs-theme-silva .vjs-play-progress {
  background: linear-gradient(90deg, var(--accent-crimson), var(--accent-amber), var(--accent-cyan)) !important;
}

/* Safe Margins & Rule-of-Thirds Overlay inside Program Monitor */
.safe-guides-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.safe-guides-overlay.is-visible {
  opacity: 1;
}

.safe-guides-action {
  position: absolute;
  inset: 5%;
  border: 1px dashed rgba(56, 226, 248, 0.45);
}

.safe-guides-title {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255, 174, 25, 0.4);
}

.safe-guides-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
}

.safe-guides-crosshair::before,
.safe-guides-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 42, 31, 0.7);
}

.safe-guides-crosshair::before {
  top: 11px;
  left: 0;
  right: 0;
  height: 1px;
}

.safe-guides-crosshair::after {
  left: 11px;
  top: 0;
  bottom: 0;
  width: 1px;
}

/* Monitor Transport & Timecode Bar */
.monitor-transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #0a0c12;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.transport-tc {
  color: var(--accent-amber);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 174, 25, 0.08);
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 174, 25, 0.22);
  contain: layout style paint;
}

.transport-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   INTERACTIVE MULTI-TRACK NLE TIMELINE (SEQUENCE 01)
   ========================================================================== */

.nle-timeline-panel {
  margin-top: 0;
  background: var(--bg-panel-solid);
  border-top: 1px solid var(--border-subtle);
  border-radius: 0;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  contain: layout style paint;
}

.timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  background: #07080d;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.timeline-tools-left,
.timeline-tools-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-body {
  position: relative;
  padding: 0;
  user-select: none;
  cursor: pointer;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.timeline-ruler {
  display: flex;
  justify-content: space-between;
  padding: 6px 16px 6px 130px;
  background: #0b0d14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.timeline-tracks {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.timeline-track {
  display: grid;
  grid-template-columns: 120px 1fr;
  flex: 1;
  min-height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.track-header {
  background: #0d0f17;
  border-right: 1px solid var(--border-subtle);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.track-lane {
  position: relative;
  background: #08090e;
  padding: 5px 8px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow: hidden;
}

.timeline-clip {
  height: auto;
  min-height: 32px;
  border-radius: 5px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}

.timeline-clip:hover {
  filter: brightness(1.22);
  transform: scaleY(1.06);
}

.timeline-clip--lut {
  width: 100%;
  background: linear-gradient(90deg, rgba(224, 54, 123, 0.35), rgba(56, 226, 248, 0.35));
  border: 1px solid rgba(56, 226, 248, 0.5);
}

.timeline-clip--v2 {
  background: rgba(37, 88, 196, 0.42);
  border: 1px solid rgba(56, 226, 248, 0.45);
}

.timeline-clip--master {
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 42, 31, 0.58), rgba(255, 140, 26, 0.58));
  border: 1px solid rgba(255, 174, 25, 0.65);
}

.timeline-clip--audio {
  width: 100%;
  background: rgba(45, 185, 110, 0.24);
  border: 1px solid rgba(77, 240, 139, 0.4);
  color: #80f5ab;
  position: relative;
}

/* Playhead Scrubber Line (Zero-Layout Composited Transform) */
.timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--accent-crimson);
  pointer-events: none;
  z-index: 10;
  will-change: transform;
  transform: translate3d(120px, 0, 0);
}

.timeline-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -6px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--accent-crimson);
}

/* ==========================================================================
   INTERACTIVE COLOUR GRADING & LUMETRI SLIDERS DECK
   ========================================================================== */

.colour-lab-section {
  padding: 56px 0;
}

.lumetri-deck {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.sliders-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lut-presets-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.lut-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lut-chip:hover,
.lut-chip.is-active {
  background: linear-gradient(90deg, rgba(255, 42, 31, 0.22), rgba(255, 174, 25, 0.22));
  border-color: var(--accent-amber);
  color: var(--text-primary);
}

.slider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.slider-control {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.slider-control__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-bottom: 8px;
}

.slider-control__name {
  color: var(--text-secondary);
}

.slider-control__val {
  color: var(--accent-amber);
  font-weight: 600;
}

/* Custom Colour Grading Range Input */
.nle-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;
  cursor: ew-resize;
}

.nle-slider--temp {
  background: linear-gradient(90deg, #2558c4, #e5e7eb, #ff8c1a);
}

.nle-slider--contrast {
  background: linear-gradient(90deg, #2a2d37, #ffffff);
}

.nle-slider--sat {
  background: linear-gradient(90deg, #525866, #ff2a1f, #ffae19, #38e2f8);
}

.nle-slider--glow {
  background: linear-gradient(90deg, #161822, #ff5e1a, #ffd447);
}

.nle-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent-crimson);
  box-shadow: 0 0 10px rgba(255, 42, 31, 0.8);
  cursor: grab;
}

/* Right Side of Lumetri Deck: Scopes & Moodboard Sphere Canvas */
.scopes-column {
  background: #07080d;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.scopes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.scopes-canvas-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.scope-box {
  background: #040508;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.scope-box canvas {
  width: 100%;
  height: 150px;
  display: block;
}

.scope-box__caption {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   SELECTED WORKS — VIMEO PORTFOLIO BIN (16:9 & 9:16 REELS)
   ========================================================================== */

.portfolio-section {
  padding: 64px 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 9px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover,
.filter-tab.is-active {
  background: linear-gradient(135deg, rgba(255, 42, 31, 0.2), rgba(255, 174, 25, 0.2));
  border-color: var(--accent-amber);
  color: var(--text-primary);
}

.portfolio-subhead {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 28px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portfolio-subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* Widescreen 16:9 Grid */
.vimeo-grid-widescreen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}

/* Vertical 9:16 Social & Motion Reels Grid */
.vimeo-grid-vertical {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.clip-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  contain: layout style paint;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.clip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 140, 26, 0.45);
}

.clip-card__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: #07080d;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.clip-card__code {
  color: var(--accent-cyan);
  font-weight: 600;
}

.clip-card__embed {
  position: relative;
  width: 100%;
  background: #000;
}

.clip-card__embed--16x9 {
  aspect-ratio: 16 / 9;
}

.clip-card__embed--9x16 {
  aspect-ratio: 9 / 16;
  max-height: 540px;
}

.clip-card__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Click-to-Play Lightweight Vimeo Facade */
.vimeo-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #050609;
  cursor: pointer;
  display: block;
  overflow: hidden;
}

.vimeo-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.88;
}

.vimeo-facade:hover img {
  transform: scale(1.03);
  opacity: 1;
}

.vimeo-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(8, 9, 14, 0.88);
  border: 2px solid var(--accent-amber);
  color: #ffffff;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.vimeo-facade:hover .vimeo-facade__play {
  background: var(--accent-crimson);
  border-color: var(--accent-amber);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.08);
}

.clip-card__footer {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(10, 12, 18, 0.9);
  border-top: 1px solid var(--border-subtle);
}

.clip-card__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.clip-card__meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   ABOUT ME SECTION (WITH ICON.JPG DIRECTOR'S VIEWFINDER)
   ========================================================================== */

.about-section {
  padding: 72px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 40px;
  align-items: center;
}

.portrait-viewfinder {
  position: relative;
  background: var(--bg-panel-solid);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.7);
}

.portrait-viewfinder::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-amber), var(--accent-cyan), var(--accent-cobalt));
  z-index: -1;
  opacity: 0.45;
}

.viewfinder-hud-top,
.viewfinder-hud-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  padding: 6px 4px;
}

.portrait-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #050507;
}

.portrait-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.portrait-viewfinder:hover .portrait-frame__img {
  transform: scale(1.04);
}

/* Viewfinder Focus Corner Brackets */
.vf-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--accent-amber);
  border-style: solid;
  pointer-events: none;
  z-index: 3;
}

.vf-bracket--tl { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.vf-bracket--tr { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.vf-bracket--bl { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; }
.vf-bracket--br { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }

.about-inspector {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px;
}

.about-bio-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.about-metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 26px 0;
}

.meta-node {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
}

.meta-node__key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

.meta-node__val {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* Moodboard Visual Reference Showcase Strip inside About */
.moodboard-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.mood-card {
  position: relative;
  height: 86px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.mood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.mood-card:hover img {
  transform: scale(1.08);
  opacity: 1;
}

.mood-card span {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  background: rgba(0, 0, 0, 0.78);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--text-primary);
}

/* ==========================================================================
   CONTACT / RENDER EXPORT QUEUE SECTION
   ========================================================================== */

.contact-section {
  padding: 64px 0 96px;
}

.export-panel {
  background: linear-gradient(145deg, rgba(18, 20, 30, 0.92), rgba(9, 10, 15, 0.96));
  border: 1px solid rgba(255, 140, 26, 0.32);
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 60px rgba(255, 74, 26, 0.12);
}

.export-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
}

.export-grid > *,
.hero-grid > *,
.about-grid > * {
  min-width: 0;
}

.direct-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
  width: 100%;
  min-width: 0;
}

.contact-channel-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
  width: 100%;
  min-width: 0;
}

.contact-channel-card:hover {
  border-color: var(--accent-amber);
  background: rgba(255, 174, 25, 0.08);
  transform: translateX(4px);
}

.channel-info {
  min-width: 0;
  flex: 1 1 200px;
}

.channel-info__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}

.channel-info__handle {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 3.5vw, 1.12rem);
  font-weight: 700;
  display: block;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Interactive Project Export Configurator */
.render-queue-box {
  background: #07080d;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 26px;
}

.rq-field {
  margin-bottom: 16px;
}

.rq-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.rq-select,
.rq-input {
  width: 100%;
  background: #0e1018;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 11px 14px;
  border-radius: 8px;
  outline: none;
}

.rq-select:focus,
.rq-input:focus {
  border-color: var(--accent-amber);
}

.rq-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

/* ==========================================================================
   LIGHT-DISMISS SOURCE MONITOR MODAL (<dialog closedby="any">)
   ========================================================================== */

.cinema-dialog {
  margin: auto;
  width: min(1040px, 92vw);
  background: #08090e;
  color: var(--text-primary);
  border: 1px solid rgba(255, 174, 25, 0.4);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.cinema-dialog::backdrop {
  background-color: rgba(3, 4, 7, 0.92);
}

.cinema-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #050609;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.cinema-dialog__body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.cinema-dialog__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.nle-footer {
  border-top: 1px solid var(--border-subtle);
  background: #050609;
  padding: 28px 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nle-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  :root {
    --header-height: 112px;
  }

  .nle-header {
    height: auto !important;
    min-height: 96px;
    padding: 8px 0;
  }

  .nle-header__inner {
    flex-wrap: wrap;
    padding: 0 16px;
    gap: 8px 12px;
  }

  .brand-logo {
    order: 1;
  }

  .header-actions {
    order: 2;
    gap: 8px;
  }

  .nle-hud-pill {
    display: none;
  }

  .nle-nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px;
    gap: 4px;
  }

  .nle-nav::-webkit-scrollbar {
    display: none;
  }

  .nle-nav__link {
    flex: 1 0 auto;
    justify-content: center;
    padding: 6px 10px;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .hero-grid,
  .lumetri-deck,
  .about-grid,
  .export-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .brand-logo__svg {
    height: 32px;
  }

  .header-actions .btn--sm {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .nle-nav__link {
    padding: 5px 8px;
    font-size: 0.66rem;
  }

  .nle-nav__link span {
    display: none;
  }

  .vimeo-grid-widescreen,
  .vimeo-grid-vertical,
  .slider-grid,
  .about-metadata-grid,
  .rq-actions {
    grid-template-columns: 1fr;
  }

  .hero-copy-panel,
  .about-inspector,
  .export-panel {
    padding: 24px 16px;
  }

  .monitor-topbar,
  .monitor-transport {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .timeline-ruler {
    padding-left: 88px;
    font-size: 0.58rem;
  }

  .timeline-track {
    grid-template-columns: 80px 1fr;
  }

  .timeline-playhead {
    left: 80px;
  }

  .contact-channel-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }

  .channel-info {
    flex: none;
    width: 100%;
  }

  .contact-card-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .contact-card-actions .btn,
  .contact-channel-card > .btn {
    flex: 1;
    width: 100%;
    text-align: center;
  }
}
