/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — mobile-first hamburger nav + fluid layouts
   ═══════════════════════════════════════════════════════════════════════ */

/* ── TABLET / SMALL DESKTOP (≤980px): switch to hamburger menu ──────── */
@media (max-width: 980px) {
  .nav-center { display: none; }
  /* Hide the inline nav button ONLY where a hamburger takes over. account.html
     and checkout.html run a stripped nav with no menu trigger, so hiding it
     unconditionally left those two pages with no navigation at all on a phone
     beyond the logo. If :has() is unsupported the button simply stays visible,
     which is the safe direction to fail. */
  .nav-right:has(.menu-trigger) .nav-buy { display: none; }
  .menu-trigger { display: inline-flex; }

  .drops-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 64px 7vw 56px; }

}

/* ── MOBILE (≤620px) ────────────────────────────────────────────────── */
@media (max-width: 620px) {
  nav { padding: 12px 18px; }
  .logo-word { font-size: 18px; }

  .cs-hero { padding: 100px 7vw 60px; min-height: auto; }
  .cs-logo { font-size: clamp(64px, 19vw, 120px); }
  .cs-tagline { font-size: 11px; letter-spacing: 2px; }

  .section-label { font-size: 8px; letter-spacing: 3px; }
  .drop-card { padding: 32px 26px; }

  .footer-main { flex-direction: column; gap: 20px; text-align: center; align-items: center; }
  .footer-socials { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .page-hero { padding: 56px 7vw 48px; }
  .page-hero-title { font-size: clamp(64px, 18vw, 120px); }

  .menu-links a { font-size: 18px; padding: 22px 10px; }
}

/* ── TOUCH DEVICES: NO LIVE BLUR ────────────────────────────────────── */
/* backdrop-filter is the single most expensive thing on this site for a phone,
   and the nav is the worst place to put it: position:sticky means the pixels
   behind it are different on every frame of every scroll, so the blur is
   re-resolved on every one of them. That is what makes the scroll back up to
   the header stutter — the header itself is the cost.
   Trading the blur for a nearly-opaque ground gets almost the same look on a
   dark-only palette (0.94 alpha over black leaves little to blur anyway) for
   none of the per-frame work. Desktops keep the real thing.
   Gated the same way the touch-target block below is, and for the same two
   reasons: real phones report `coarse`, and the width arm both covers small
   windows and makes this testable in a desktop emulator, which reports `fine`. */
@media (pointer: coarse), (max-width: 620px) {
  nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(5,4,10,0.94);
  }
  .scope-shape,
  .scope-shape:hover,
  .scope-shape:focus-visible {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
/* hardware.html's `.hw-frame` gets the same treatment, but in that page's own
   <style> block — it declares the rule after this file loads, so an override
   here would lose on source order. */

/* ── TOUCH TARGETS ──────────────────────────────────────────────────── */
/* Measured on a 320px viewport: the hamburger was 73×21, footer socials 18px
   tall, and standalone links 21–27px. WCAG 2.5.8 asks for 24px minimum and
   44px is the practical floor for a thumb, so every one of those was a miss.
   Gated on coarse pointer OR narrow width: real phones report coarse, and the
   width arm keeps it correct on small windows (and makes it testable in a
   desktop emulator, which reports `fine`).
   Only standalone links are touched — links running inline inside prose are
   left alone, since padding them out would wreck paragraph rhythm. */
@media (pointer: coarse), (max-width: 620px) {
  .menu-trigger,
  .menu-close {
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
  }

  .footer-socials a,
  .footer-legal,
  .footer-copy,
  .drop-link,
  .hero-pill,
  .motion-link,
  .buy-ghost,
  .account-link,
  .beta-note a,
  .menu-overlay-footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ── SMALL MOBILE (≤380px) ──────────────────────────────────────────── */
@media (max-width: 380px) {
  .logo-word { display: none; } /* tile only on very small screens */
  .cs-logo { font-size: 56px; }
}

/* ── LANDSCAPE PHONE: tighten vertical padding ──────────────────────── */
@media (max-height: 520px) and (orientation: landscape) {
  .cs-hero { min-height: auto; padding-top: 90px; padding-bottom: 40px; }
}
