/**
 * SYNC — Cinematic Hero Section Stylesheet
 * 1920 x 675 px Visual Composition for Professional Film & Location Sound
 */

/* ========================================================
   HERO MAIN WRAPPER & 1920x675 COMPOSITION
   ======================================================== */
.hero-cinematic {
  position: relative;
  width: 100%;
  /* 1920 x 675 px visual composition ratio: 1920 / 675 = 2.844:1 */
  aspect-ratio: 1920 / 675;
  min-height: 640px;
  max-height: 820px;
  background-color: #050608;
  overflow: hidden;
  display: flex;
  align-items: center;
  user-select: none;
}

@media (max-width: 1200px) {
  .hero-cinematic {
    aspect-ratio: auto;
    min-height: 600px;
  }
}

@media (max-width: 991px) {
  .hero-cinematic {
    aspect-ratio: auto;
    min-height: 560px;
    padding: 60px 0 70px;
  }
}

@media (max-width: 576px) {
  .hero-cinematic {
    aspect-ratio: auto;
    min-height: 520px;
    padding: 45px 0 65px;
  }
}

/* Fallback Static Background (Instant First Paint & Reduced Motion) */
.hero-fallback-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero/hero-master-fallback.jpg');
  background-size: cover;
  background-position: center right;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* ========================================================
   EQUIPMENT VISUAL STAGES (PHOTOREALISTIC LAYERS)
   ======================================================== */
.hero-stages-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  perspective: 1200px;
}

.hero-stage-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center right;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04) translate3d(0, 0, 0);
  filter: blur(4px) brightness(0.9);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 3.5s cubic-bezier(0.1, 0.9, 0.2, 1),
              filter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.hero-stage-item.stage-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1.0) translate3d(0, 0, 0);
  filter: blur(0px) brightness(1.0);
}

.hero-stage-item.stage-exit {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98) translate3d(-12px, 0, 0);
  filter: blur(3px) brightness(0.8);
}

/* Stage image assignments */
.stage-studio {
  background-image: url('../images/hero/step-1-studio-dark.jpg');
}
.stage-recorder {
  background-image: url('../images/hero/step-2-field-recorder.jpg');
}
.stage-mixer {
  background-image: url('../images/hero/step-3-mixer-faders.jpg');
}
.stage-wireless {
  background-image: url('../images/hero/step-4-wireless-systems.jpg');
}
.stage-boom {
  background-image: url('../images/hero/step-5-boom-microphone.jpg');
}
.stage-master {
  background-image: url('../images/hero/step-6-master-rig.jpg');
}

/* ========================================================
   CINEMATIC STUDIO LIGHTING & ANAMORPHIC FLARES
   ======================================================== */
.hero-lighting-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* Ambient studio beam sweep */
.studio-beam {
  position: absolute;
  top: -20%;
  right: 15%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(140, 190, 255, 0.07) 0%, rgba(140, 190, 255, 0.02) 45%, transparent 70%);
  transform: rotate(-15deg);
  filter: blur(40px);
  animation: studioBeamDrift 14s infinite alternate ease-in-out;
}

@keyframes studioBeamDrift {
  0% { transform: rotate(-15deg) translate3d(0, 0, 0); opacity: 0.6; }
  50% { transform: rotate(-12deg) translate3d(-30px, 15px, 0); opacity: 0.85; }
  100% { transform: rotate(-18deg) translate3d(20px, -10px, 0); opacity: 0.5; }
}

/* Subtle anamorphic lens streak */
.anamorphic-streak {
  position: absolute;
  top: 42%;
  right: 10%;
  width: 65%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(110, 180, 255, 0.45) 50%, transparent);
  filter: blur(1.5px);
  opacity: 0.4;
  animation: streakPulse 6s infinite ease-in-out;
}

@keyframes streakPulse {
  0%, 100% { opacity: 0.2; transform: scaleX(0.85); }
  50% { opacity: 0.55; transform: scaleX(1.15); }
}

/* ========================================================
   BACKGROUND AUDIO SPECTRUM & WAVEFORM CANVAS
   ======================================================== */
.hero-audio-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.38;
}

/* ========================================================
   CINEMATIC DARK VIGNETTE & TEXT PROTECTION MASK
   Keeps 35-40% of composition visually clean for text
   ======================================================== */
.hero-vignette-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  /* Multi-stop gradient shielding left 35-40% for pure text legibility */
  background:
    /* Left text reading zone */
    linear-gradient(to right,
      #050608 0%,
      rgba(5, 6, 8, 0.98) 25%,
      rgba(5, 6, 8, 0.90) 38%,
      rgba(5, 6, 8, 0.55) 52%,
      rgba(5, 6, 8, 0.15) 75%,
      rgba(5, 6, 8, 0.35) 100%
    ),
    /* Top and bottom subtle film border darkening */
    linear-gradient(to bottom,
      rgba(5, 6, 8, 0.75) 0%,
      transparent 18%,
      transparent 80%,
      rgba(5, 6, 8, 0.95) 100%
    );
}

@media (max-width: 991px) {
  .hero-vignette-overlay {
    background:
      linear-gradient(to bottom,
        rgba(5, 6, 8, 0.92) 0%,
        rgba(5, 6, 8, 0.88) 45%,
        rgba(5, 6, 8, 0.45) 75%,
        rgba(5, 6, 8, 0.95) 100%
      ),
      linear-gradient(to right,
        rgba(5, 6, 8, 0.95) 0%,
        rgba(5, 6, 8, 0.75) 60%,
        rgba(5, 6, 8, 0.3) 100%
      );
  }
}

/* ========================================================
   WEBSITE TEXT OVERLAY AREA (HTML/CSS OVERLAYS)
   ======================================================== */
.hero-text-overlay {
  position: relative;
  z-index: 4;
  width: 100%;
  pointer-events: auto;
}

.hero-text-column {
  max-width: 640px;
}

/* Live REC & Timecode Broadcast Tag */
.hero-broadcast-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(14, 18, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tag-rec-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ff3344;
}

.rec-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff3344;
  box-shadow: 0 0 10px #ff3344;
  animation: recBlinkAnimation 1.6s infinite ease-in-out;
}

@keyframes recBlinkAnimation {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.tag-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.18);
}

.tag-timecode {
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f0f2f5;
}

.tag-format {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #8c93a0;
}

/* Primary Headline: SYNC IS EVERYTHING */
.hero-cinematic-title {
  font-family: var(--font-display, "Syncopate", "Inter", sans-serif);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
}

.hero-cinematic-title .title-accent {
  background: linear-gradient(135deg, #ffffff 20%, #d8a760 70%, #ffd488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

/* Subtitle: Professional Sound Solutions for Film, OTT & Television */
.hero-cinematic-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 400;
  line-height: 1.55;
  color: #9ca3af;
  margin-bottom: 28px;
  max-width: 520px;
}

/* Production Specifications Telemetry Bar */
.hero-specs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding: 14px 0;
  margin-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
}

.spec-item-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-item-label {
  color: #6b7280;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.spec-item-value {
  color: #e5e7eb;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.spec-item-value .val-highlight {
  color: #d8a760;
}

/* Call to Action Buttons */
.hero-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-hero-primary {
  font-family: var(--font-display, sans-serif);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 4px;
  background: #ffffff;
  color: #060709;
  border: 1px solid #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-hero-primary:hover {
  background: #d8a760;
  border-color: #d8a760;
  color: #060709;
  box-shadow: 0 6px 26px rgba(216, 167, 96, 0.45);
  transform: translateY(-2px);
}

.btn-hero-outline {
  font-family: var(--font-display, sans-serif);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 4px;
  background: rgba(18, 22, 28, 0.4);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ========================================================
   EQUIPMENT REVEAL SCRUBBER / STAGE CONTROLLER (BOTTOM)
   ======================================================== */
.hero-stage-controller {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
}

.stage-controller-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: auto;
}

/* Equipment Stage Nav Pills */
.stage-pills-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.stage-pills-list::-webkit-scrollbar {
  display: none;
}

.stage-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 12, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 5px 12px;
  color: #8c93a0;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stage-pill-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.stage-pill-btn.active {
  background: rgba(22, 26, 34, 0.95);
  border-color: #d8a760;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(216, 167, 96, 0.25);
}

.stage-pill-btn .pill-num {
  font-weight: 700;
  color: #d8a760;
}

.stage-pill-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: #d8a760;
  transition: width 0.1s linear;
}

.stage-pill-btn.active .stage-pill-progress {
  /* Dynamic width driven by JS */
}

/* Play/Pause Control Button */
.stage-playback-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 12, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 5px 10px;
  color: #8c93a0;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.stage-playback-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* Scroll To Change Equipment Cue & Controller */
.hero-scroll-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 12, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 5px 12px;
  color: #8c93a0;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  user-select: none;
}

.hero-scroll-control:hover,
.hero-scroll-control.scroll-active {
  border-color: #d8a760;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(216, 167, 96, 0.35);
  transform: translateY(-1px);
}

.scroll-mouse-symbol {
  width: 14px;
  height: 20px;
  border-radius: 7px;
  border: 1.5px solid currentColor;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-wheel-pip {
  width: 2px;
  height: 4px;
  background-color: #d8a760;
  border-radius: 2px;
  position: absolute;
  top: 3px;
  animation: mouseWheelScroll 1.5s infinite ease-in-out;
}

@keyframes mouseWheelScroll {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(6px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

.scroll-stage-count {
  color: #d8a760;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ========================================================
   LIVE ACTIVE EQUIPMENT TELEMETRY HUD (ON DESKTOP)
   ======================================================== */
.hero-telemetry-hud {
  position: absolute;
  top: 34px;
  right: 36px;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

@media (max-width: 991px) {
  .hero-telemetry-hud {
    display: none;
  }
}

.hud-panel {
  background: rgba(10, 12, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 10px 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono, monospace);
  min-width: 220px;
}

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: #8c93a0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.hud-header .hud-live-tag {
  color: #22c55e;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hud-header .hud-live-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* Micro Audio Level Meter Bars */
.hud-meters {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-meter-channel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: #adb5bd;
}

.hud-meter-track {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.hud-meter-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(to right, #22c55e 65%, #eab308 85%, #ef4444 100%);
  border-radius: 2px;
  transition: width 0.08s ease-out;
}

.hud-meter-val {
  width: 32px;
  text-align: right;
  font-size: 0.6rem;
  color: #9ca3af;
}

/* Active Stage Gear Name Badge */
.hud-gear-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 18, 24, 0.9);
  border: 1px solid rgba(216, 167, 96, 0.35);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.7rem;
  color: #d8a760;
  backdrop-filter: blur(10px);
}

/* ========================================================
   COMPREHENSIVE MOBILE RESPONSIVE ENGINE (HERO)
   ======================================================== */
@media (max-width: 991px) {
  .hero-content-inner {
    padding-top: 15px;
  }

  .hero-cinematic-title {
    font-size: clamp(2rem, 6.8vw, 3.2rem);
    letter-spacing: -0.025em;
    margin-bottom: 14px;
  }

  .hero-cinematic-subtitle {
    font-size: 0.96rem;
    max-width: 100%;
    margin-bottom: 22px;
  }

  .hero-telemetry-hud {
    display: none !important;
  }

  .hero-specs-grid {
    gap: 16px 24px;
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  .hero-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    padding: 10px 0;
    margin-bottom: 22px;
  }

  .hero-stage-controller {
    bottom: 12px;
  }

  .stage-controller-inner {
    gap: 8px;
    width: 100%;
  }

  .stage-pills-list {
    gap: 6px;
    padding: 4px 2px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .stage-pill-btn {
    padding: 5px 10px;
    font-size: 0.65rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .hero-scroll-control {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .hero-cinematic-title {
    font-size: clamp(1.75rem, 8.2vw, 2.35rem);
    line-height: 1.12;
  }

  .hero-cinematic-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .tag-rec-indicator {
    font-size: 0.68rem;
  }

  .tag-timecode {
    font-size: 0.7rem;
  }

  .tag-format {
    font-size: 0.65rem;
  }

  .hero-cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 18px;
    font-size: 0.82rem;
  }

  .hero-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
    font-size: 0.68rem;
  }
}

@media (max-width: 380px) {
  .hero-specs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ========================================================
   ACCESSIBILITY: PREFERS-REDUCED-MOTION
   ======================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-stage-item {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }

  .stage-active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .studio-beam,
  .anamorphic-streak,
  .rec-pulse-dot {
    animation: none !important;
  }

  .hero-audio-canvas {
    display: none !important;
  }

  .stage-pill-progress {
    display: none !important;
  }
}
