/* Morgan Media Agency mobile fixes, 2026-11-21.
   Additive only. Every rule sits inside a max-width media query that can never
   match a 1440px desktop, so desktop rendering is untouched.
   860px is the site's own mobile breakpoint (header, bottom bar, footer). */

@media (max-width: 860px) {

  /* [F1] Header: EN / ES toggle and menu button, 44px hit areas.
     The visible pill keeps its 32px height; the transparent buttons extend
     past it vertically so the touch target is 44x44. */
  .site-header__util--right .lang-toggle {
    grid-template-columns: 44px 44px;
  }
  .lang-toggle button {
    min-width: 44px;
    height: 44px;
    margin-block: -8px;
    font-size: 12px;
  }
  .menu-btn {
    min-width: 44px;
    margin-left: -5px;
    padding: 0 9px;
  }

  /* [F2] Accessibility button: docked beside the bottom action bar so it no
     longer floats over page content. The bar gives up 60px on the right;
     the button sits in that slot, vertically centred on the bar. */
  .mobile-bar {
    right: 72px;
  }
  .a11y {
    right: 12px;
    bottom: calc(10px + var(--safe-b) + 10px);
  }
  .a11y__btn {
    width: 48px;
    height: 48px;
  }

  /* [F3] Bottom action bar labels */
  .mobile-bar__item {
    font-size: 13px;
  }

  /* [F4] Footer: links get a 44px row, headings and legal text a small bump */
  .site-footer ul {
    gap: 0;
  }
  .site-footer ul a,
  .site-footer__brand p a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
  }
  .site-footer__h {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .site-footer__legal {
    font-size: 14px;
  }

  /* [F5] Standalone text links ("See details", "Book a call", "See the
     results"): 44px tall. The hover underline stays on the text baseline. */
  .text-link {
    min-height: 44px;
    padding-block: 9px;
    background-origin: content-box;
  }
  /* Links that sit inside a sentence stay inline so the paragraph keeps its
     line spacing; vertical padding grows the hit area only. */
  .close__direct .text-link,
  .bkp__skip .text-link,
  .head-center p .text-link,
  .legal p a,
  .legal li a {
    display: inline;
    min-height: 0;
    padding-block: 12px;
  }
  /* About hero contact links keep their underline 2px under the text;
     the extra hit area is added above. */
  .abh__contact a {
    display: inline-block;
    padding-top: 17px;
    margin-top: -17px;
  }

  /* [F7] Mono eyebrows and labels: 12px to 13px, tracking and colour kept */
  /* the Black Friday card label (.ho__label) keeps its own larger size */
  .eyebrow:not(.ho__label),
  .mono,
  .page-head__kicker {
    font-size: 13px;
  }

  /* [F8] Home hero */
  .hero__eyebrow {
    font-size: 14px;
  }
  .hero__fig-unit {
    font-size: 14px;
  }

  /* [F6] Booking form: step tabs, contact links, fine print */
  .bk__steps button {
    min-height: 44px;
    font-size: 13px;
    line-height: 1.3;
  }
  .bk__steps .mono {
    font-size: 12px;
  }
  .bk__day .mono {
    font-size: 12px;
  }
  .bk__fine {
    font-size: 14px;
  }

  /* [F9] Work page */
  .wg__num,
  .wg__end-open {
    font-size: max(12px, 1.7cqi);
  }
  .wg__cat,
  .wg__big-label,
  .wg__metrics dt,
  .wg__quote footer {
    font-size: max(13px, 2.3cqi);
  }
  .wg__caption-detail {
    font-size: 12px;
  }
  /* "Start yours": underline stays 4px under the text, hit area grows upward */
  .wg__all {
    padding-top: 18px;
    margin-top: -18px;
    font-size: 13px;
  }
  .ws__meta div,
  .ws__index {
    font-size: 12px;
  }
  /* tablet only: these show when the card is wider than 480px */
  .wg__context {
    font-size: max(13px, 1.7cqi);
  }
  .wg__pending li {
    font-size: max(12px, 1.3cqi);
  }
  /* with the larger chips, stack the context line above them so it is
     not squeezed into a one word column */
  .wg__foot:has(.wg__pending) {
    grid-template-columns: minmax(0, 1fr);
  }
  .wg__foot .wg__pending {
    justify-content: flex-start;
  }
  .wg.is-3d .wg__swipe {
    font-size: 12px;
  }

  /* [F10] About page: service chips at tablet width (40px in the base CSS) */
  .sm__nodes button {
    min-height: 44px;
  }

  /* [F10] About page: hero name card */
  .abh__portrait figcaption {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 14px;
  }
  .abh__portrait figcaption strong {
    white-space: nowrap;
  }
  .abh__portrait figcaption span:last-child {
    text-align: left;
  }

  /* [F11] Home testimonials: fade the peeking card instead of a hard cut */
  .tq__voices {
    --tq-fade: 88px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--tq-fade)), #0000);
    mask-image: linear-gradient(90deg, #000 calc(100% - var(--tq-fade)), #0000);
    /* trailing space so the last card can scroll fully clear of the fade;
       card width stays 64% of the original track width */
    padding-right: var(--tq-fade);
    grid-auto-columns: minmax(calc((100% + var(--tq-fade)) * .64), 1fr);
  }

  /* [F11] Results rows: hold the outline figures on the page gutter.
     The scroll drift slid rows up to 7px past the left gutter on phones. */
  .rr__drift {
    transform: none !important;
  }

  /* Services page */
  .sx__cat {
    font-size: 13px;
  }
  .svh__detail {
    font-size: 14px;
  }

  /* [P2 A] Home hero: no Morgan Media logo reveal on phones and tablet.
     .hero__portal is the masked logo layer GSAP scales up and shrinks away;
     it exists only for that reveal. The scroll timeline is left exactly as
     it is (it only writes transform and opacity on the hidden layer), so the
     road scene, the copy exit and the Results section keep their timing. */
  .hero__portal {
    display: none;
  }

  /* [P2 B] Home hero headline: three natural lines instead of one word per
     line. 10.1vw keeps "Colorado's trusted" (8.7em wide) inside the page
     gutters at every phone width, then "digital marketing" and "experts."
     Never larger than the site's own mobile size. */
  .hero__headline,
  .hero__headline:lang(es) {
    font-size: min(clamp(44px, 13.2vw, 92px), 10.1vw);
  }

  /* [P2 C] About hero title: "Outcomes obsessed." on one line on phones and
     tablet (it broke word by word up to 860px). Capped at the site's size. */
  .abh__title .display-xl {
    font-size: min(clamp(44px, 12.4vw, 96px), 9.2vw);
  }
}

/* About page service chips: the site shrinks them to 11px / 34px under 600px */
@media (max-width: 600px) {
  /* Give the ring the full panel width so 44px chips do not collide,
     and set the caption under the ring instead of over the "SEO" chip. */
  .sm {
    width: 100%;
    margin-bottom: 160px;
  }
  .sm__nodes li {
    width: max-content;
  }
  .sm__nodes button {
    min-height: 44px;
    max-width: 120px;
    font-size: 13px;
  }
  .sm__caption {
    top: calc(100% + 20px);
    bottom: auto;
  }
  .bk__steps button {
    font-size: 13px;
  }

  /* [P2 C] Display headings on phones: each authored line span reads as one
     line instead of breaking word by word. Small size steps only, capped at
     the site's own size, so hierarchy and tracking stay as designed. */

  /* Home "Results across / clients." (42px to 39px at 390, 430 unchanged) */
  .rr__title {
    font-size: min(42px, 10vw);
  }
  /* Home why title: "Emotionally intelligent." on one line */
  .why__title.display-l {
    font-size: min(40px, 8.7vw);
  }
  /* Services "Everything it takes / to get you in front / of buyers." */
  .page-head__title.svh__title .display-xl {
    font-size: min(48px, 10.2vw);
  }
}
