/* ══════════════════════════════════════════════════════════════
   AirPods Apple Website — scroll-controlled hero film
   Design system: near-black, one restrained teal-mint accent, huge
   tight-tracked display type. All animated properties are
   opacity / transform so the film stays on the compositor.
   The page background is the SAME #0b0b0d the film is composited
   onto, so the released pin hands over with no tonal step.
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0b0b0d;               /* == the film's composited background */
  --bg-2: #0b0b0d;
  --ink: #111113;
  --accent: #4fc6a8;           /* restrained teal-mint — echoes the green
                                   status light and the H2 card's glow. 9.6:1
                                   on --bg, so it is safe at 11px.        */
  --text: #f4f4f5;
  --dim: rgba(244, 244, 245, 0.55);
  --stage-h: 100vh;              /* overwritten by JS in px         */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;     /* iOS must not inflate our type */
  text-size-adjust: 100%;
}

html.menu-lock { overflow: hidden; }   /* menu open — page behind must not scroll */

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* keyboard users must always see where they are */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #050506; }

/* ── loader ──────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity 0.9s ease;
}
#loader.done { opacity: 0; pointer-events: none; }
#loader .mark {
  font-size: 14px; letter-spacing: 0.55em; text-indent: 0.55em;
  color: var(--accent); text-transform: uppercase; font-weight: 600;
}
#loader .bar {
  width: 190px; height: 1px; background: rgba(79, 198, 168, 0.22);
  overflow: hidden; position: relative;
}
#loader .bar i {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: var(--accent); transition: width 0.18s linear;
}
#loader #loadmsg {
  font-size: 11px; letter-spacing: 0.28em; text-indent: 0.28em;
  text-transform: uppercase; color: rgba(244, 244, 245, 0.35);
}

/* ── sticky nav ──────────────────────────────────────────── */
#brandnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px calc(clamp(16px, 4vw, 44px) + env(safe-area-inset-right, 0px))
              16px calc(clamp(16px, 4vw, 44px) + env(safe-area-inset-left, 0px));
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  background: rgba(5, 5, 6, 0.72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 244, 245, 0.07);
  opacity: 0; pointer-events: none;
  transform: translate3d(0, -100%, 0);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#brandnav.on { opacity: 1; pointer-events: auto; transform: translate3d(0, 0, 0); }
#brandnav .mark {
  font-size: 13px; letter-spacing: 0.42em; text-indent: 0.42em;
  color: var(--accent); text-transform: uppercase; font-weight: 600;
  text-decoration: none;
}
#brandnav .links { display: flex; gap: clamp(14px, 2.4vw, 34px); }
#brandnav a {
  color: var(--dim); text-decoration: none;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  transition: color 0.25s ease;
}
#brandnav a:hover { color: var(--text); }
#brandnav .navcta {
  border: 1px solid rgba(79, 198, 168, 0.6); border-radius: 100px;
  padding: 8px 20px; color: var(--accent);
}
#brandnav .navcta:hover { background: var(--accent); color: #050506; }

/* .menu is a wrapper only — display:contents makes it invisible to the
   desktop flex layout, so the bar is laid out exactly as before.
   On phones it becomes the full-screen menu panel (see ≤861px block). */
#brandnav .menu { display: contents; }
#menubtn { display: none; }

/* ── hero title — laid over the film's dark opening frames,
      recedes as the first scroll begins (opacity driven by JS) ── */
#herotitle {
  position: absolute; z-index: 3;
  left: calc(clamp(20px, 5vw, 58px) + env(safe-area-inset-left, 0px));
  bottom: calc(clamp(56px, 11vh, 96px) + env(safe-area-inset-bottom, 0px));
  /* wide enough that the headline sets on ONE line at desktop, and the
     two lead sentences each fit — a narrow box orphans a word per line */
  max-width: min(760px, 88vw);
  pointer-events: none;
  will-change: opacity, transform;
}
/* The opening frame has a white product on a near-black field and the
   headline crosses it. A soft scrim — fading out exactly where the copy
   ends — keeps white type legible without putting it in a box. It is a
   child of the title, so it dissolves with the title on the first
   scroll and never touches the rest of the film. */
#herotitle::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -110px; bottom: -110px;
  left: -55vw; right: -4vw;
  background: linear-gradient(to right,
    rgba(5, 5, 6, 0.92) 0%,
    rgba(5, 5, 6, 0.88) 46%,
    rgba(5, 5, 6, 0.75) 64%,
    rgba(5, 5, 6, 0.60) 78%,
    rgba(5, 5, 6, 0.42) 90%,
    rgba(5, 5, 6, 0) 100%);
  /* feather the top and bottom too — a gradient alone would leave a
     hard horizontal rule across the frame */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 82%, transparent 100%);
  pointer-events: none;
}
#herotitle .kicker {
  font-size: 11px; letter-spacing: 0.4em; text-indent: 0.4em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 22px;
}
#herotitle h1 {
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 700; letter-spacing: -0.055em; line-height: 0.9;
  text-wrap: balance;            /* if it must break on a phone, break evenly */
  text-shadow: 0 2px 34px rgba(5, 5, 6, 0.85), 0 0 10px rgba(5, 5, 6, 0.6);
}
#herotitle .lead {
  margin-top: 20px; color: rgba(244, 244, 245, 0.8);
  font-size: clamp(15px, 1.5vw, 20px); line-height: 1.7;
  max-width: 54ch;
  text-wrap: pretty;             /* never strand a single word on the last line */
}
@media (max-width: 700px) {
  #herotitle { bottom: calc(clamp(64px, 13vh, 110px) + env(safe-area-inset-bottom, 0px)); max-width: 86vw; }
  #herotitle .kicker { margin-bottom: 14px; font-size: 10px; }
  #herotitle .lead { margin-top: 14px; line-height: 1.55; }
}

/* ── the pinned film ─────────────────────────────────────── */
#track {
  position: relative;
  height: 1000vh;              /* fallback until JS measures the film */
}
#stage {
  position: sticky; top: 0;
  height: var(--stage-h);      /* exact px from JS — no vh drift */
  width: 100%;
  overflow: hidden;
  background: var(--bg-2);     /* == the film's own background: no seam */
  isolation: isolate;          /* keep blend modes inside the stage */
}
#hero {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;           /* fills the viewport, always centred */
  object-position: 50% 50%;
  display: block;
  background: var(--bg-2);
}

/* vignette — fades away as the film brightens, so the final
   frame is held completely untouched before the pin releases */
#grade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 78% at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 16%, transparent 80%, rgba(0, 0, 0, 0.42));
  opacity: 1;
  will-change: opacity;
}

/* HUD — difference-blended so it stays legible over both the
   near-black opening and the light-grey closing frames */
#hud {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
}
.hud-top {
  position: absolute;
  left: calc(clamp(18px, 4vw, 46px) + env(safe-area-inset-left, 0px));
  right: calc(clamp(18px, 4vw, 46px) + env(safe-area-inset-right, 0px));
  top: calc(clamp(18px, 4vh, 42px) + env(safe-area-inset-top, 0px));
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0.82;
}
.hud-mark { font-weight: 700; letter-spacing: 0.45em; }

#chapters {
  position: absolute;
  left: calc(clamp(18px, 5vw, 58px) + env(safe-area-inset-left, 0px));
  bottom: clamp(48px, 11vh, 96px);
}
.chapter {
  position: absolute; left: 0; bottom: 0; white-space: nowrap;
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(28px, 4.4vw, 62px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  opacity: 0;
  will-change: opacity, transform;
}
.chapter i {
  font-style: normal; font-size: clamp(10px, 1vw, 13px);
  font-weight: 600; letter-spacing: 0.28em; opacity: 0.75;
  transform: translateY(-0.35em);
}

#cue {
  position: absolute; left: 50%;
  bottom: calc(clamp(20px, 4vh, 34px) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.34em; text-indent: 0.34em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#cue i {
  display: block; width: 34px; height: 1px; background: currentColor;
  transform-origin: left center;
  animation: sweep 1.7s ease-in-out infinite;
}
@keyframes sweep {
  0%, 100% { transform: translate3d(0, 0, 0) scaleX(0.4); opacity: 0.4; }
  50% { transform: translate3d(14px, 0, 0) scaleX(1); opacity: 1; }
}

/* ── emphasis band (the H2 beat) — a single restrained glow,
      enough to separate it from the sections either side ──── */
.bp-emphasis {
  background: radial-gradient(56% 68% at 30% 50%,
              rgba(79, 198, 168, 0.075), rgba(79, 198, 168, 0) 72%);
}

/* transparent product cut-outs are already on our black — no mask,
   no radius, and never allowed to distort (both max-* set, so the
   browser shrinks them preserving aspect ratio) */
.bp-split img.contain {
  -webkit-mask-image: none; mask-image: none;
  border-radius: 0;
  width: auto; height: auto;
  max-width: min(100%, 640px);
  max-height: 54vh;
  margin-inline: auto;
}

/* ── product detail: markers + hairlines, nothing more ──── */
.bp-detail { text-align: center; }
.callout-stage {
  position: relative;
  width: 100%; max-width: 640px;
  margin: clamp(34px, 7vh, 70px) auto 0;
}
.callout-stage > img {
  width: auto; height: auto;
  max-width: min(100%, 460px);
  max-height: 58vh;
  margin-inline: auto;
}
.callouts { list-style: none; position: absolute; inset: 0; }
.callouts li {
  position: absolute; left: var(--x); top: var(--y);
  display: flex; align-items: center; gap: 9px;
  transform: translate(-4.5px, -50%);      /* pin the DOT on the anchor */
  text-align: left; white-space: nowrap;
}
/* right-hand callouts reach back towards the product instead of
   running off the figure */
.callouts li:nth-child(even) {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 4.5px), -50%);
}
.callouts .dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 198, 168, 0.16);
}
.callouts .line {
  flex: none; width: clamp(16px, 2.6vw, 30px); height: 1px;
  background: linear-gradient(to right, rgba(79, 198, 168, 0.9), rgba(79, 198, 168, 0.25));
}
.callouts li:nth-child(even) .line {
  background: linear-gradient(to left, rgba(79, 198, 168, 0.9), rgba(79, 198, 168, 0.25));
}
.callouts .txt { display: flex; flex-direction: column; gap: 3px; }
.callouts b {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(5, 5, 6, 0.9);
}
.callouts em {
  font-style: normal; font-size: 11px; line-height: 1.3;
  color: rgba(244, 244, 245, 0.62);
  text-shadow: 0 1px 10px rgba(5, 5, 6, 0.9);
}
/* the leader draws itself in once the figure has revealed —
   transform only, so it never touches layout */
.callouts .line { transform: scaleX(0); transition: transform 0.55s ease 0.3s; }
.callouts .line { transform-origin: left center; }
.callouts li:nth-child(even) .line { transform-origin: right center; }
.callout-stage.in .callouts .line { transform: scaleX(1); }

/* ── cinematic band — the film again, edge to edge ──────── */
.bp.bp-cinematic {
  max-width: none;
  padding: clamp(60px, 12vh, 140px) 0;
}
.reel-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  max-height: 82vh; overflow: hidden; background: var(--bg-2);
}
.reel-frame video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.reel-grade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 82% at 50% 50%, transparent 46%, rgba(0, 0, 0, 0.5) 100%);
}
.reel-caption {
  position: absolute;
  left: calc(clamp(18px, 4vw, 54px) + env(safe-area-inset-left, 0px));
  bottom: calc(clamp(16px, 4vh, 38px) + env(safe-area-inset-bottom, 0px));
  font-size: 11px; letter-spacing: 0.3em; text-indent: 0.3em;
  text-transform: uppercase; color: rgba(244, 244, 245, 0.75);
}

/* ── final showcase ─────────────────────────────────────── */
.bp-showcase { text-align: center; }
.bp-showcase .showcase-img {
  width: auto; height: auto;
  max-width: min(78vw, 640px); max-height: 46vh;
  margin: 0 auto clamp(26px, 5vh, 54px);
  border-radius: 8px;
  /* the closing frame of the film, feathered into the page so it reads
     as a moment rather than a pasted rectangle */
  -webkit-mask-image: radial-gradient(ellipse 74% 76% at 50% 50%, #000 54%, transparent 100%);
  mask-image: radial-gradient(ellipse 74% 76% at 50% 50%, #000 54%, transparent 100%);
}
.bp-showcase h2 { max-width: 16ch; margin: 0 auto; }
.bp-showcase .kicker { margin-bottom: 14px; }

.bp-specs .spec-note {
  margin-top: 26px; max-width: 62ch;
  font-size: 12px; line-height: 1.75; color: var(--dim);
}
.bp-ctaband .cta { margin-top: 34px; }

.kicker {
  font-size: 11px; letter-spacing: 0.36em; text-indent: 0.36em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}

/* ── brand sections ──────────────────────────────────────── */
.bp {
  position: relative; max-width: 1500px; margin: 0 auto;
  padding: clamp(70px, 15vh, 170px) clamp(20px, 7vw, 90px);
}
.bp h2 {
  font-weight: 650; letter-spacing: -0.03em; line-height: 1.0;
  font-size: clamp(32px, 4.6vw, 66px);
}
.bp h2 .accent { color: var(--accent); }
.bp p.lead {
  color: var(--dim); font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.75; max-width: 46ch;
}
.bp .kicker { color: var(--accent); }

[data-reveal] {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity 0.85s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.85s cubic-bezier(0.2, 0.6, 0.2, 1);
}
[data-reveal].in { opacity: 1; transform: translate3d(0, 0, 0); }

.bp-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 80px); align-items: center;
}
.bp-split img {
  width: 100%; border-radius: 8px;
  -webkit-mask-image: radial-gradient(ellipse 88% 88% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 88% at 50% 50%, #000 58%, transparent 100%);
}
.bp-split.flip > :first-child { order: 2; }
.bp-split h2 { margin-bottom: 18px; }
@media (max-width: 860px) {
  .bp-split { grid-template-columns: 1fr; }
  .bp-split.flip > :first-child { order: 0; }
}

.bp-manifesto { text-align: center; padding-top: clamp(90px, 20vh, 220px); padding-bottom: clamp(90px, 20vh, 220px); }
.bp-manifesto h2 { font-size: clamp(38px, 7vw, 108px); max-width: 15ch; margin: 0 auto; }

.bp-specs { display: flex; justify-content: center; }
.bp-specs > div { width: 100%; max-width: 780px; }
.bp-specs table { width: 100%; border-collapse: collapse; }
.bp-specs td {
  padding: 16px 8px; border-bottom: 1px solid rgba(244, 244, 245, 0.1);
  font-size: clamp(13px, 1.15vw, 16px);
}
.bp-specs td:first-child {
  color: var(--dim); letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px;
}
.bp-specs td:last-child { text-align: right; }

.bp-ctaband { text-align: center; }
.bp-ctaband .lead { margin-left: auto; margin-right: auto; }

.cta {
  display: inline-block; padding: 15px 40px;
  border: 1px solid var(--accent); border-radius: 100px;
  color: var(--accent); text-decoration: none;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.cta:hover { background: var(--accent); color: #050506; transform: translate3d(0, -2px, 0); }

/* ── footer ──────────────────────────────────────────────── */
.bp-footer { border-top: 1px solid rgba(244, 244, 245, 0.08); padding: clamp(50px, 9vh, 100px) clamp(20px, 7vw, 90px) calc(50px + env(safe-area-inset-bottom, 0px)); }
.bp-footer .cols {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(24px, 5vw, 60px); max-width: 1500px; margin: 0 auto;
}
.bp-footer .footmark {
  letter-spacing: 0.42em; text-indent: 0.42em; text-transform: uppercase;
  color: var(--accent); font-size: 13px; font-weight: 600;
}
.bp-footer .lead { margin-top: 16px; font-size: 13px; line-height: 1.7; color: var(--dim); max-width: 34ch; }
.bp-footer h3 {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(244, 244, 245, 0.58); margin-bottom: 16px;
}
.bp-footer a {
  display: block; color: var(--dim); text-decoration: none;
  font-size: 14px; margin-bottom: 11px; transition: color 0.25s;
}
.bp-footer a:hover { color: var(--text); }
.bp-footer .fine {
  margin-top: clamp(40px, 8vh, 80px); text-align: center;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244, 244, 245, 0.56);
}
@media (max-width: 860px) { .bp-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ── motion preferences ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .callouts .line { transform: none; transition: none; }
  #cue i { animation: none; }
  #brandnav { transition: none; }
  #menubtn span { transition: none; }
  #brandnav .menu { transition: none; }
  #loader { transition: none; }
  .cta { transition: none; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE / TOUCH — responsive overrides only.
   Nothing is removed or simplified; every rule below refines what
   the desktop stylesheet already defines.
   Existing breakpoints: 860px, 700px.  Added here: 861px (nav),
   480px (type floor), 400px (footer), plus height/orientation.
   env(safe-area-inset-*) is 0 everywhere except notched phones,
   so the first block below is a no-op on desktop.
   ══════════════════════════════════════════════════════════ */

.bp, .bp-footer, .bp.bp-cinematic {
  padding-left: calc(clamp(20px, 7vw, 90px) + env(safe-area-inset-left, 0px));
  padding-right: calc(clamp(20px, 7vw, 90px) + env(safe-area-inset-right, 0px));
}
/* …except the cinematic band, which must stay edge to edge */
.bp.bp-cinematic { padding-left: 0; padding-right: 0; }
.bp-specs td { overflow-wrap: break-word; }

/* detail callouts stay attached to the product on small screens:
   the marker and its leader shorten, nothing is dropped */
@media (max-width: 700px) {
  .callouts li { gap: 7px; }
  .callouts .line { width: 14px; }
  .callouts b, .callouts em { font-size: 11px; }
  .callout-stage { max-width: 100%; }
  .callout-stage > img { max-height: 50vh; }
  .reel-frame { aspect-ratio: 16 / 9; max-height: none; }
  .reel-caption { font-size: 11px; }
}

@media (max-width: 861px) {
  #brandnav { gap: 10px; }

  #brandnav .mark {
    position: relative; z-index: 3;
    display: inline-flex; align-items: center;
    min-height: 44px; padding-right: 6px;
  }

  #menubtn {
    position: relative; z-index: 3;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 6px;
    width: 48px; height: 48px;
    margin: -6px -8px -6px 0;      /* optical alignment, still inside the gutter */
    padding: 0; background: none; border: 0; border-radius: 14px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  #menubtn span {
    display: block; width: 22px; height: 1.5px;
    background: var(--text);
    transition: transform 0.32s ease, opacity 0.32s ease;
  }
  #brandnav.menu-open #menubtn span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  #brandnav.menu-open #menubtn span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

  /* The bar itself grows into the menu. No position:fixed, so the bar's
     own transform and backdrop-filter can never trap the panel. */
  #brandnav.menu-open {
    height: 100vh;
    height: 100dvh;
    align-items: flex-start;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: rgba(5, 5, 6, 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
  }

  #brandnav .menu {
    display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start;
    position: absolute; inset: 0; z-index: 1;
    gap: clamp(2px, 1.2vh, 12px);
    padding: calc(74px + env(safe-area-inset-top, 0px))
            calc(24px + env(safe-area-inset-right, 0px))
            calc(28px + env(safe-area-inset-bottom, 0px))
            calc(24px + env(safe-area-inset-left, 0px));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.32s ease, visibility 0.32s ease;
  }
  #brandnav.menu-open .menu { opacity: 1; visibility: visible; pointer-events: auto; }

  #brandnav .links {
    flex-direction: column; align-items: stretch;
    gap: 0; width: 100%;
  }
  #brandnav .links a {
    display: flex; align-items: center;
    min-height: 54px; width: 100%;
    font-size: clamp(26px, 7.5vw, 40px);
    font-weight: 600; letter-spacing: -0.015em;
    text-transform: none; color: var(--text);
    border-bottom: 1px solid rgba(244, 244, 245, 0.09);
  }
  #brandnav .links a:last-child { border-bottom: 0; }

  #brandnav .navcta {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px;
    margin-top: clamp(14px, 3vh, 30px);
    padding: 14px 34px;
    font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
    border: 1px solid var(--accent); border-radius: 100px;
    color: var(--accent);
  }

  /* comfortable tap targets everywhere else */
  .bp-footer a {
    display: flex; align-items: center;
    min-height: 44px; margin-bottom: 0; padding: 2px 0;
    font-size: 15px;
  }
  .cta {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 15px 34px;
  }
}

/* legibility floor for phones and tablets — nothing below 11px.
   Desktop (>861px) keeps its original 10px labels, unchanged. */
@media (max-width: 861px) {
  .hud-top { font-size: 11px; }
  #cue { font-size: 11px; }
  .bp-footer h3 { font-size: 11px; }
  .bp-footer .fine { font-size: 11px; letter-spacing: 0.12em; }
  .chapter i { font-size: 11px; }
}

@media (max-width: 480px) {
  .kicker { font-size: 12px; }
  #herotitle .kicker { font-size: 11px; }
  .bp-specs td:first-child { font-size: 12px; }
}

@media (max-width: 400px) {
  .bp-footer .cols { grid-template-columns: 1fr; gap: 32px; }
}

/* short landscape (phone rotated): keep the hero from crowding the HUD */
@media (orientation: landscape) and (max-height: 500px) {
  #herotitle { bottom: calc(clamp(44px, 10vh, 74px) + env(safe-area-inset-bottom, 0px)); }
  #herotitle h1 { font-size: clamp(42px, 10vh, 84px); }
  #herotitle .lead { margin-top: 10px; line-height: 1.45; }
  #chapters { bottom: clamp(34px, 9vh, 68px); }
  #cue { bottom: calc(clamp(14px, 5vh, 28px) + env(safe-area-inset-bottom, 0px)); }

  #brandnav .menu { justify-content: flex-start; }
  #brandnav .links a { min-height: 46px; font-size: clamp(22px, 4.4vh, 34px); }
  #brandnav .navcta { min-height: 46px; margin-top: 14px; padding: 12px 28px; }
}
