/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1500px) {
  .header-container,
  .main-content {
    width: 72%;
  }
}

@media (max-width: 1300px) {
  .header-container,
  .main-content {
    width: 80%;
  }
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1050px) {
  .header-container,
  .main-content {
    width: 90%;
  }
  .hero-split-row {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-sticky-header {
    width: calc(100% + 36px);
    margin-left: -18px;
    margin-right: -18px;
    max-width: calc(100% + 36px);
  }
}

@media (max-width: 900px) {
  .carousel-track-container {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 768px) {
  .header-container,
  .main-content {
    width: 94%;
    max-width: 100%;
  }
  .hero-intro-stage {
    height: 52vh;
    min-height: 380px;
    max-height: 480px;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
  .gallery-sticky-header {
    width: calc(100% + 24px);
    margin-left: -12px;
    margin-right: -12px;
    max-width: calc(100% + 24px);
  }
}

/* ==========================================================================
   True Mobile Optimization (Phones: Galaxy S24 Ultra, iPhone, Pixel, etc.)
   ========================================================================== */

@media (max-width: 640px) {
  .header-container {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 1rem;
    box-sizing: border-box;
  }

  .brand-logo-img {
    height: 76px;
    max-width: min(84vw, 290px);
  }

  .hero-intro-stage {
    height: 44vh;
    min-height: 320px;
    max-height: 420px;
  }

  .main-content {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem 4rem;
    gap: 2rem;
    overflow: visible;
    box-sizing: border-box;
  }

  .hero-split-row {
    gap: 1.75rem;
  }

  .hero-narrative-col {
    width: 100%;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.85rem;
    max-width: 100%;
  }

  .hero-headline {
    font-size: clamp(1.22rem, 5vw, 1.45rem);
    line-height: 1.3;
  }

  .hero-subtext {
    font-size: 0.86rem;
    line-height: 1.5;
    margin-top: 0.65rem;
  }

  .hero-chips-row {
    gap: 0.4rem;
    margin-top: 0.85rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-chip {
    padding: 0.32rem 0.75rem;
    font-size: 0.74rem;
  }

  /* Highlight Carousel: Mobile Friendly Proportions */
  .hero-carousel-col {
    width: 100%;
  }

  .carousel-wrapper {
    border-radius: var(--radius-inner);
  }

  .carousel-track-container {
    aspect-ratio: 16 / 10;
    min-height: 240px;
  }

  .carousel-overlay {
    padding: 0.9rem 1rem;
  }

  .carousel-caption {
    width: 100%;
    max-width: 100%;
  }

  .carousel-badge-row {
    gap: 0.35rem;
    margin-bottom: 0.25rem;
  }

  .carousel-slide-tag {
    font-size: 0.64rem;
    padding: 0.22rem 0.6rem;
  }

  .carousel-wave-badge,
  .carousel-category-badge {
    font-size: 0.62rem;
    padding: 0.18rem 0.5rem;
  }

  .carousel-slide-title {
    font-size: 1.02rem;
    line-height: 1.25;
    margin-bottom: 0.2rem;
  }

  .carousel-slide-desc {
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
  }

  .carousel-play-btn {
    padding: 0.38rem 0.9rem;
    font-size: 0.76rem;
    margin-top: 0.3rem;
  }

  .carousel-nav {
    display: none;
  }

  .carousel-indicators {
    display: none !important;
  }

  :root {
    --docked-header-height: 76px;
  }

  .header-blur-backdrop {
    height: 105px;
  }

  /* Sticky Gallery Header: Compact & Clean on Mobile */
  .gallery-sticky-header {
    width: calc(100% + 16px);
    margin-left: -8px;
    margin-right: -8px;
    max-width: calc(100% + 16px);
    padding: 0.75rem 0.85rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-inner);
    box-sizing: border-box;
  }

  .gallery-title-lockup .section-title {
    font-size: 1.2rem;
  }

  .gallery-sticky-header .section-desc {
    display: none; /* Hide hover prompt on touch devices */
  }

  .gallery-sticky-header.is-stuck {
    padding: 0.5rem 0.75rem;
  }

  .gallery-sticky-header.is-stuck .gallery-header-row {
    display: none; /* Auto-collapse title lockup while scrolling feed to give viewer full screen room */
  }

  .gallery-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .search-box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.5rem 0.9rem;
  }

  .search-box input {
    min-width: 0;
    width: 100%;
    font-size: 0.84rem;
  }

  .filter-pills {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.45rem;
    padding-bottom: 0.35rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.76rem;
    padding: 0.36rem 0.85rem;
  }

  .video-counter {
    display: none !important;
  }

  /* Single Column Feed for All Phone Viewports */
  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .video-card {
    border-radius: var(--radius-inner);
  }

  .video-card-body {
    padding: 0.85rem 0.95rem 1rem;
    gap: 0.45rem;
  }

  .video-title {
    font-size: 0.96rem;
    line-height: 1.35;
  }

  .video-meta-row {
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: space-between;
    align-items: center;
  }

  .video-wave-tag,
  .video-category-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }

  .video-click-prompt {
    font-size: 0.72rem;
  }
}

@media (max-width: 360px) {
  .hero-headline {
    font-size: 1.15rem;
  }
  .gallery-title-lockup .section-title {
    font-size: 1.08rem;
  }
  .hero-chip {
    font-size: 0.68rem;
    padding: 0.25rem 0.6rem;
  }
}


