/* ==========================================================================
   1TAKE COLLECTIVE (1TC) - AWWWARDS RESPONSIVE REFINEMENTS
   Master cross-breakpoint design orchestrator for mobile, tablet, and touch screens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. TOUCH & POINTER GUARDS (Mobile & Touch Devices)
   -------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse), (max-width: 900px) {
  /* Disable desktop cursor tracking follower box to prevent touch glitches */
  .floating-media-follower {
    display: none !important;
  }
}

@media (hover: none), (max-width: 768px) {
  /* Ensure still titles and tags are permanently visible without phantom hover */
  .still-curtain {
    opacity: 1 !important;
    background: linear-gradient(180deg, transparent 35%, rgba(3, 15, 18, 0.92) 100%) !important;
    padding: 1.25rem 1rem !important;
  }

  .still-title {
    font-size: 1.05rem !important;
  }
}

/* --------------------------------------------------------------------------
   1. TABLETS & SMALLER LAPTOPS (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --header-height: 76px;
    --container-width: 92vw;
  }

  .hero-portal {
    width: clamp(320px, 55vw, 560px);
  }

  .card-panoramic {
    width: clamp(440px, 68vw, 640px);
  }

  .card-vertical-reel {
    width: clamp(260px, 38vw, 360px);
  }

  .cinema-stage {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cinema-player-box {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stills-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   2. TABLETS & LARGE SMARTPHONES (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --container-width: 92vw;
  }

  .site-header {
    padding: 0 1.25rem;
  }

  .brand-stamp-icon {
    width: 32px;
    height: 32px;
  }

  .brand-logotype-svg {
    height: 20px;
  }

  .header-nav {
    display: none;
  }

  .hero-bg-headline {
    font-size: clamp(2rem, 9.5vw, 3.8rem);
  }

  .hero-headline-top {
    top: 18vh;
  }

  .hero-headline-bottom {
    bottom: 15vh;
  }

  .hero-portal {
    width: clamp(280px, 84vw, 440px);
  }

  .philosophy-manifesto {
    font-size: clamp(1.6rem, 5.5vw, 2.5rem);
  }

  .proof-ticker-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .horizontal-scroll-stage {
    height: 320vh;
  }

  .card-panoramic {
    width: 84vw;
  }

  .card-vertical-reel {
    width: 68vw;
  }

  .index-row {
    padding: 1.5rem 0.75rem;
  }

  .index-cell-title {
    font-size: 1.3rem;
  }

  .concierge-form {
    padding: 1.75rem 1.25rem;
  }

  .horizontal-header {
    top: calc(var(--header-height) + 1.25rem);
    left: 1.25rem;
  }

  .horizontal-title {
    font-size: 1.6rem;
  }

  .index-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .stills-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .telemetry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   3. MOBILE SMARTPHONES (max-width: 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Flagship Exhibition Cards Mobile Ratio & Breathing Room */
  .card-panoramic {
    width: 86vw;
    max-width: 390px;
    aspect-ratio: 4 / 3;
    min-height: 380px;
  }

  .card-vertical-reel {
    width: 78vw;
    max-width: 320px;
    aspect-ratio: 9 / 16;
    min-height: 460px;
  }

  .card-info-curtain {
    padding: 1.25rem;
  }

  .card-curtain-title {
    font-size: 1.25rem;
    line-height: 1.15;
  }

  .card-curtain-sub {
    font-size: 0.82rem;
  }

  .card-metrics-strip {
    gap: 0.35rem;
    margin-top: 0.5rem;
  }

  .card-metrics-strip span {
    font-size: 0.62rem;
    padding: 0.2rem 0.5rem;
  }

  /* Crew BTS Player & Live HUD Telemetry Stacking */
  .bts-stage video {
    aspect-ratio: 4 / 3;
    min-height: 260px;
  }

  .bts-hud-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .bts-hud-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .bts-hud-overlay {
    padding: 1rem;
  }

  .bts-live-indicator {
    font-size: 0.65rem;
    padding: 0.25rem 0.65rem;
  }

  .telemetry-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .crew-roster-strip {
    gap: 0.4rem;
    padding-top: 1.5rem;
    margin-top: 2rem;
  }

  .roster-tag {
    font-size: 0.68rem;
    padding: 0.25rem 0.6rem;
  }

  /* Stills Gallery & Filter Bar (Single Column on Phone) */
  .stills-filter-bar {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .stills-filter-btn {
    font-size: 0.68rem;
    padding: 0.4rem 0.85rem;
  }

  .stills-masonry-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .still-card.span-wide {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }

  .stills-lightbox {
    padding: 1rem;
  }

  .stills-lightbox-img {
    max-height: 72vh;
  }

  .stills-lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .stills-lightbox-caption {
    font-size: 0.75rem;
    margin-top: 0.6rem;
  }

  /* Concierge Form Fields (Prevent iOS Auto-Zoom) */
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .concierge-form {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .field-input,
  .field-textarea {
    font-size: 16px !important; /* 16px prevents iOS Safari auto-zoom on focus */
    padding: 0.85rem 1rem;
  }

  .onboard-chips {
    gap: 0.4rem;
  }

  .onboard-chip {
    font-size: 0.65rem;
    padding: 0.45rem 0.85rem;
  }

  .concierge-form .cta-pill-btn {
    width: 100%;
    text-align: center;
    padding: 0.9rem 1.5rem;
  }

  #whatsapp-bridge-btn {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
  }

  /* Cinema Modal Theater on Phones */
  .cinema-stage {
    border-radius: 14px;
    max-height: 94vh;
  }

  .cinema-sidebar {
    padding: 1.5rem 1.25rem;
  }

  #modal-project-title {
    font-size: 1.6rem !important;
  }

  .modal-chapter-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    min-height: 38px;
  }

  .modal-metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 1rem 0;
  }

  .cinema-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
    z-index: 100;
  }

  /* Colossal Brand Footer */
  .footer-wordmark {
    font-size: clamp(2.4rem, 11.5vw, 5.5rem);
    line-height: 1.1;
    padding: 0.2em 0;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-bottom-bar > div:last-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   4. COMPACT SMARTPHONES & IPHONE SE (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  /* Hero Typography (Eliminates horizontal overflow on 360px–390px screens) */
  .hero-bg-headline {
    font-size: clamp(1.5rem, 7.6vw, 2.1rem);
    letter-spacing: -0.02em;
  }

  .hero-portal-overlay {
    padding: 1rem;
  }

  .hero-portal-meta {
    font-size: 0.62rem;
  }

  .hero-portal-play-cue {
    font-size: 1rem;
    gap: 0.5rem;
  }

  .cue-circle {
    width: 34px;
    height: 34px;
  }

  .cue-circle svg {
    width: 14px;
    height: 14px;
  }

  .hero-scroll-indicator {
    bottom: 1.5rem;
    font-size: 0.65rem;
  }

  .cta-pill-btn {
    padding: 0.55rem 1rem;
    font-size: 0.72rem;
  }

  .proof-ticker-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .horizontal-header {
    top: calc(var(--header-height) + 0.85rem);
    left: 1rem;
  }

  .horizontal-title {
    font-size: 1.4rem;
  }

  .horizontal-track {
    padding-left: 1rem;
    gap: 1.25rem;
  }

  .vip-link-box {
    padding: 1.1rem;
  }

  .vip-box-val {
    font-size: 0.92rem;
  }

  /* The Signature Archive Table (Vertical Title & Location Stacking) */
  .index-row {
    grid-template-columns: 28px 1fr;
    row-gap: 0.35rem;
    padding: 1.15rem 0.25rem;
  }

  .index-cell-title {
    font-size: 1.12rem;
    grid-column: 2;
    white-space: normal;
    line-height: 1.25;
  }

  .index-cell-location {
    grid-column: 2;
    font-size: 0.65rem;
    color: var(--c-muted-blue);
  }

  .index-cell-type,
  .index-cell-action {
    display: none;
  }

  /* Editorial Preloader Compact Tuning */
  .preloader-top span:nth-child(2) {
    display: none;
  }

  .preloader-title {
    font-size: clamp(2.4rem, 12vw, 4.5rem);
  }

  .preloader-counter {
    font-size: 3.5rem;
  }
}
