@import url("/css/phase9-conversion.css?v=20260905-phase9-1");

/* Phase 8: intentional tablet and mobile UX, not desktop shrink-down. */

/* Desktop header: keep the primary navigation visually centered independent of the unequal logo and CTA widths. */
@media (min-width: 1180px) {
  .nav__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 24px;
  }
  .nav__logo { justify-self: start; }
  .nav__links { flex: none; justify-self: center; }
  .nav__actions { justify-self: end; }
}

/* Shared touch and responsive safeguards */
@media (max-width: 1024px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: clip; }

  .nav__toggle,
  .nav__mobile-link,
  .nav__mobile-sublink,
  .nav__mobile-social a,
  .nav__mobile-email,
  .hero__demo-cta,
  .commercial-actions a,
  .commercial-text-link,
  .commercial-faq summary,
  .audio-player__play,
  .audio-player__download,
  .audio-player__vol,
  .contact__button,
  .contact__input,
  .contact__select {
    min-height: 44px;
  }

  /* Service/specialty/case pages: true tablet composition */
  .commercial-intro { padding-top: 132px; padding-bottom: 58px; }
  .commercial-intro__grid { grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr); gap: clamp(28px, 4vw, 52px); }
  .commercial-intro__portrait img { max-height: 600px; }
  .commercial-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commercial-grid--three > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .specialty-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specialty-links > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .case-study-page .commercial-intro__grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr); gap: 36px; }
  .commercial-section { padding-block: 70px; }

  /* Homepage: simplify density while preserving the cinematic direction */
  .hero__content { width: min(100%, 900px); padding-inline: clamp(24px, 5vw, 56px); }
  .hero__eyebrow { max-width: 760px; }
  .hero__subtext { max-width: 680px; }
  .hero__demos { max-width: 760px; }
  .tagline__players { gap: 14px; }

  .contact__form { width: min(100%, 860px); margin-inline: auto; }
  .contact__input,
  .contact__textarea,
  .contact__select { font-size: 16px; }
}

/* Tablet portrait / small tablet */
@media (max-width: 900px) {
  .commercial-intro__grid,
  .case-study-page .commercial-intro__grid {
    grid-template-columns: 1fr;
  }

  /* Do not remove the talent image on tablet. Recompose it below the copy. */
  .commercial-intro__portrait {
    display: block !important;
    width: min(72vw, 430px);
    margin: 8px auto 0;
    overflow: hidden;
  }
  .commercial-intro__portrait img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: center bottom;
    transform: none;
  }
  .black-male-page .commercial-intro__portrait { transform: none; }
  .black-male-page .commercial-intro__portrait img { transform: none; }

  .commercial-intro__copy { max-width: 760px; }
  .commercial-page h1 br,
  .commercial-page h2 br { display: none; }

  .commercial-grid--two { grid-template-columns: 1fr; gap: 34px; }
  .case-study-facts { max-width: 720px; }

  .hero__content { padding-inline: 32px; }
  .hero__headline { max-width: 760px; }
  .hero__subtext { max-width: 620px; }
}

/* Mobile: purpose-built single-column experience */
@media (max-width: 640px) {
  .commercial-intro { padding-top: 112px; padding-bottom: 46px; }
  .commercial-intro__copy { width: 100%; }
  .commercial-breadcrumb { margin-bottom: 22px; }
  .commercial-page .section-badge { margin-bottom: 14px; }
  .commercial-page h1 { margin-bottom: 18px; line-height: 1.06; }
  .commercial-page h2 { margin-bottom: 20px; line-height: 1.08; }
  .commercial-lead { margin-bottom: 14px; }

  .commercial-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    margin-top: 24px;
  }
  .commercial-actions .hero__demo-cta,
  .commercial-actions .commercial-text-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .commercial-intro__portrait {
    width: min(88vw, 360px);
    margin-top: 18px;
  }
  .commercial-intro__portrait img { max-height: 430px; }

  .commercial-section { padding-block: 52px; }
  .commercial-grid--three,
  .specialty-links,
  .specialty-proof-grid,
  .studio-photo-grid { grid-template-columns: 1fr; }
  .commercial-grid--three > :last-child:nth-child(odd),
  .specialty-links > :last-child:nth-child(odd) { grid-column: auto; }

  .commercial-credit { padding: 22px; }
  .commercial-credit h3 { min-height: 0; font-size: 25px; }
  .specialty-links a { min-height: 58px; padding: 16px; }
  .commercial-faq details { padding: 18px 0; }
  .commercial-faq summary { display: flex; align-items: center; }
  .case-study-facts { padding: 20px; }
  .case-study-facts dl > div { grid-template-columns: 1fr; gap: 4px; }

  /* Homepage mobile hierarchy */
  .hero { min-height: 100svh; }
  .hero__content {
    width: 100%;
    padding: 116px 20px 52px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
  }
  .hero__eyebrow { max-width: 100%; font-size: clamp(12px, 3.5vw, 15px); line-height: 1.45; }
  .hero__headline { max-width: 100%; }
  .hero__hl-line { display: block; }
  .hero__subtext { max-width: 34ch; font-size: 15px; line-height: 1.55; }
  .hero__demos { width: 100%; max-width: none; }
  .tagline__players { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
  .audio-player { width: 100%; max-width: none; }
  .audio-player__bar-wrapper { width: 100%; }
  .audio-player__waveform { min-width: 0; }
  .hero__demo-cta { width: 100%; justify-content: center; text-align: center; }

  /* Reduce visual noise rather than merely scaling it down. */
  .hero__panel--2,
  .hero__panel--3 { opacity: .45; }
  .film-grain { opacity: .45; }

  /* Forms designed around thumb reach and mobile keyboards */
  .contact__form { display: grid; grid-template-columns: 1fr !important; gap: 16px; }
  .contact__form-group,
  .contact__form-group--full { grid-column: 1 / -1 !important; }
  .contact__input,
  .contact__textarea,
  .contact__select {
    width: 100%;
    min-height: 50px;
    padding-inline: 14px;
    font-size: 16px;
  }
  .contact__textarea { min-height: 150px; padding-block: 14px; }
  .contact__submit,
  .contact__button { width: 100%; }
  .contact__alternatives { display: grid; grid-template-columns: 1fr; }
  .contact__alternatives a { justify-content: center; text-align: center; }

  .footer__contact-links { flex-direction: column; align-items: center; gap: 4px; }
}

/* Small phones */
@media (max-width: 390px) {
  .hero__content { padding-inline: 16px; }
  .commercial-page h1 { font-size: clamp(28px, 9vw, 35px); }
  .commercial-page h2 { font-size: clamp(25px, 8vw, 32px); }
  .commercial-intro__portrait { width: 92vw; }
  .audio-player__time { min-width: 38px; }
}
