/* ============================================================
   MS AGENCY — MOBILE FIXES (site-d7, CR7 mobile pass)
   Everything in this file lives inside max-width media queries,
   so the desktop rendering is untouched by construction.
   Linked AFTER style.css; it only overrides on phones.

   Fixed here (verified against 390x844 + 360x800 screenshots):
   M1  Orbit ringline follows the JS mobile ellipse (tall oval) via
       --orw / --orh / --oct, set per-frame by home.js.
   M2  Tap targets >= 44px: pill links, contact button, sound pill,
       work rail tabs, top logo.
   M3  Pill nav breathes at 360px (tighter horizontal padding).
   M4  About tile: taller tile + smaller badge = clear gaps around
       the identity badge, never touching "THE ART DIRECTOR".
   ============================================================ */

@media (max-width: 760px) {
  /* M1 — the orbit ringline matches the mobile ellipse (home.js sets
     the vars; desktop never reads them: this rule is mobile-only,
     and on desktop the vars equal the style.css values anyway). */
  .orbit-ringline {
    width: var(--orw, 170%);
    height: var(--orh, 50%);
    top: var(--oct, 24%);
  }

  /* M2 — tap targets >= 44px. */
  .pill-link,
  .pill-contact {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .sound-pill {
    width: 44px;
    height: 44px;
  }
  .top-logo {
    padding: 10px 0;
  }
  .rail-btn {
    min-height: 44px;
  }

  /* M4 — the identity badge gets real air: taller tile, smaller
     badge, so the ring never clips and never touches the label. */
  .tile-about {
    min-height: 264px;
  }
  .badge-float {
    height: min(150px, 100%);
  }
}

@media (max-width: 400px) {
  /* M3 — the pill nav at 360px: same links, same 44px height,
     slightly tighter sides so the pill breathes in the viewport. */
  .pill-link {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 11px;
  }
  .pill-contact {
    padding-left: 12px;
    padding-right: 12px;
  }
  .pill-chip {
    width: 30px;
    height: 30px;
  }
}
