/* ==========================================================================
   EYE CARE — PC INTERACTIVE 3D HERO (DESKTOP ONLY: >= 769px)
   Full-Bleed 100vw Edge-to-Edge Ultra-HD Composition
   Sharp Static Resting Image + 0.15s Ease Cross-Fade to Interactive Video
   ========================================================================== */

/* Strictly Desktop Only: Hide completely on mobile & tablet viewports (< 769px) */
@media (max-width: 768px) {
  #pc-hero-interactive {
    display: none !important;
  }
}

/* On Desktop Viewports (>= 769px), hide the mobile portrait hero */
@media (min-width: 769px) {
  #mobile-hero-interactive {
    display: none !important;
  }

  /* Purge legacy scroll-driven scrubbing hero completely on desktop */
  #hero {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* PC Hero Section Container: Full-bleed edge-to-edge directly beneath fixed header */
  .pc-hero-section {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    margin: 0 !important;
    /* Exact clearance for fixed desktop navbar (60px) with zero horizontal padding */
    padding: 60px 0 0 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    overflow: hidden !important;
    display: block !important;
    box-sizing: border-box !important;
    z-index: 20 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transition: none !important;
  }

  /* PC Hero Inner Wrapper: Unconstrained full-bleed 100% width */
  .pc-hero-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    border: none !important;
    transition: none !important;
  }

  /* Interactive Stage Container:
     Full-bleed 100% width edge-to-edge (no max-width, no side borders).
     Locks 16:9 native aspect ratio so full "EYE CARE" lettering & character align 1:1. */
  .pc-hero-stage-container {
    position: relative !important;
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: #ffffff !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: block !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    transition: none !important;
  }

  /* Soft bottom-only feather so the studio floor melts seamlessly into the pure white page
     without creating any side borders or cut edges */
  .pc-hero-stage-container::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: clamp(32px, 5vw, 72px) !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%) !important;
    pointer-events: none !important;
    z-index: 5 !important;
  }

  /* Shared Asset Rules: Exact 1:1 framing alignment between static image and video canvas */
  .pc-hero-asset {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    background-color: #ffffff !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    backface-visibility: hidden !important;
  }

  /* Default Resting Static Image: Always razor-sharp 4K and visible underneath */
  .pc-hero-poster {
    z-index: 1 !important;
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
    image-rendering: -webkit-optimize-contrast;
    transition: none !important;
  }

  /* Interactive Video Canvas: Hidden (opacity: 0) at rest, 0.15s ease cross-fade on hover */
  .pc-hero-canvas {
    z-index: 2 !important;
    opacity: 0;
    transition: opacity 0.15s ease !important;
    will-change: opacity, contents;
  }

  .pc-hero-canvas.is-active {
    opacity: 1;
  }

  /* Desktop Mouse Interaction Surface: Spans entire hero area cleanly */
  .pc-hero-hover-surface {
    position: absolute !important;
    inset: 0 !important;
    z-index: 10 !important;
    cursor: default !important;
    background: transparent !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    transition: none !important;
  }
}
