/* ==========================================================================
   ALPHA BEAST FITNESS — design system
   Ground: near-black and brand red used as *grounds*, not accents.
   Geometry: square. No radius anywhere. 3px structural strokes, 1px hairlines.
   Type: Archivo variable — condensed heavy for display, normal for body.
   ========================================================================== */

/* ---- tokens ------------------------------------------------------------ */
:root {
  --ink: #0a0a0b;          /* page ground */
  --ink-2: #121214;        /* raised surface */
  --ink-3: #1b1b1e;        /* hairline-ish surface */
  --red: #c60000;          /* brand red, sampled from the logo */
  --red-hot: #e8151d;      /* lifted red — small text/links on black only */
  --bone: #efede7;         /* light ground */
  --paper: #ffffff;
  --mute: #8d8d92;         /* body copy on dark */
  --mute-ink: #55555c;     /* body copy on light */

  --rule: 1px;
  --stroke: 3px;

  /* vertical space is generous, horizontal gutters stay tight */
  --pad-section: clamp(5rem, 9vw, 9.5rem);
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --rail: 1320px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0.05, 0, 1);
  --t: 0.5s; /* house tempo */
}

/* ---- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink);      /* kills the white flash between pages */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* must live on <html>, not <body>: overflow set on body propagates to the
     viewport and makes the whole document unscrollable. */
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: var(--stroke) solid var(--red-hot); outline-offset: 3px; }

/* cross-document transitions — a dark multi-page site must never flash white */
@view-transition { navigation: auto; }

/* ---- type -------------------------------------------------------------- */
.display, h1, h2 {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-variation-settings: "wdth" 66;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.d1 { font-size: clamp(3.1rem, 12.5vw, 11rem); }
.d2 { font-size: clamp(2.6rem, 8.5vw, 7rem); }
.d3 { font-size: clamp(2rem, 5.2vw, 4rem); }
h3 {
  font-variation-settings: "wdth" 78;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}
p { max-width: 62ch; }
/* inherits the ground's colour — hard-setting white made .lede invisible on
   .on-bone and unreadable on .on-red */
.lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: inherit; }
.body-mute { color: var(--mute); }
.label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-variation-settings: "wdth" 100;
  color: var(--mute);
}
.num {
  font-variant-numeric: tabular-nums;
  font-variation-settings: "wdth" 70;
  font-weight: 800;
}

/* ---- layout ------------------------------------------------------------ */
.rail { max-width: var(--rail); margin-inline: auto; padding-inline: var(--gutter); }
.rail-wide { max-width: 1680px; margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--pad-section); position: relative; }
.sec-tight { padding-block: clamp(2.5rem, 4vw, 4rem); }

/* ground flips — red and bone are grounds in their own right */
.on-red { background: var(--red); color: #0a0a0b; }
.on-red .label, .on-red .body-mute { color: #0a0a0b; opacity: 0.72; }
.on-bone { background: var(--bone); color: var(--ink); }
.on-bone .label, .on-bone .body-mute { color: var(--mute-ink); }
.on-ink-2 { background: var(--ink-2); }

/* section head: a hairline, a label, a heading. Repeated everywhere. */
.sec-head { border-top: var(--rule) solid currentColor; padding-top: 18px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head .label { display: block; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.on-ink .sec-head, section:not(.on-red):not(.on-bone) .sec-head { border-top-color: #2a2a2e; }

/* ---- buttons: notched arrow chip, square, 3px stroke ------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 4px 4px 4px 20px;
  background: var(--red);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background var(--t) var(--ease-io), color var(--t) var(--ease-io);
}
.btn .chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--paper);
  color: var(--red);
  transition: transform var(--t) var(--ease-io), background var(--t) var(--ease-io), color var(--t) var(--ease-io);
}
.btn .chip svg { width: 15px; height: 15px; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:hover .chip { background: var(--red); color: var(--paper); transform: rotate(45deg); }

/* NB: `background: currentColor` inside .chip resolves against the chip's OWN
   color, not the parent's — which silently paints a dark arrow on a dark chip.
   These are set explicitly per ground instead. */
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 var(--stroke) currentColor; }
.btn-ghost .chip { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-ghost:hover .chip { background: var(--red); color: var(--paper); }
.on-bone .btn-ghost { color: var(--ink); }
.on-bone .btn-ghost .chip { background: var(--ink); color: var(--bone); }
.on-bone .btn-ghost:hover { background: var(--ink); color: var(--bone); }
.on-bone .btn-ghost:hover .chip { background: var(--red); color: var(--paper); }
.on-red .btn-ghost { color: #0a0a0b; }
.on-red .btn-ghost .chip { background: #0a0a0b; color: var(--paper); }
.on-red .btn-ghost:hover { background: #0a0a0b; color: var(--paper); }
.on-red .btn { background: var(--ink); color: var(--paper); }
.on-red .btn .chip { background: var(--paper); color: var(--ink); }
.on-red .btn:hover { background: var(--paper); color: var(--ink); }

/* text link with a rule that wipes on hover.
   inline-flex + min-height keeps the tap target legal without visually
   inflating the link. */
.tlink { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; padding-bottom: 4px; }
.tlink::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform var(--t) var(--ease-io); }
.tlink:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---- header ------------------------------------------------------------ */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 14px var(--gutter);
  transition: background var(--t) var(--ease-io), border-color var(--t) var(--ease-io);
  border-bottom: var(--rule) solid transparent;
}
.hdr.is-stuck { background: rgba(10, 10, 11, 0.86); backdrop-filter: blur(14px); border-bottom-color: #26262a; }
.hdr-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hdr-brand img { width: 34px; height: auto; }
/* The wordmark slot the hero locks up into.
   Visible by DEFAULT so inner pages (which have no hero lockup) always show
   the brand — and so a JS failure can never leave the header nameless. Only
   when a lockup actually exists does it start hidden and wait for the hand-off. */
.hdr-word {
  font-variation-settings: "wdth" 66; font-weight: 800; text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1; white-space: nowrap;
  opacity: 1; transition: opacity 0.28s linear;
}
html.has-lockup .hdr-word { opacity: 0; }
html.has-lockup .hdr-word.is-on { opacity: 1; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #c9c9ce; transition: color 0.3s var(--ease-io); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 0 var(--red-hot); }
.hdr-cta { display: inline-flex; }
.burger { display: none; width: 44px; height: 44px; place-items: center; }
.burger span { display: block; width: 22px; height: var(--stroke); background: currentColor; }
.burger span + span { margin-top: 5px; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 70; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 80px var(--gutter) 40px;
  transform: translateY(-100%); transition: transform 0.55s var(--ease-io);
  overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); }
.drawer a { font-variation-settings: "wdth" 66; font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 11vw, 3.4rem); line-height: 1.02; border-bottom: var(--rule) solid #26262a; padding-block: 12px; }
.drawer-close { position: absolute; top: 14px; right: var(--gutter); width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.6rem; }
.drawer-foot { margin-top: 28px; }

/* ---- hero -------------------------------------------------------------
   Split: type owns the left, the real neon room owns the right and bleeds off
   the edge. EJ stays legible — he is the product, so his face never sits under
   the headline. The wordmark runs full width along the foot and is the element
   that later docks into the header. */
.hero {
  min-height: 100svh; position: relative; padding: 0; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto; align-content: end;
}
.hero-media { position: absolute; inset: 0 0 0 42%; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 34% 46%; will-change: transform; }
/* feather the photo's left edge into the type field instead of a hard seam */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--ink) 0%, rgba(10,10,11,0.86) 12%, rgba(10,10,11,0.25) 42%, transparent 72%),
    linear-gradient(to top, var(--ink) 0%, rgba(10,10,11,0.35) 34%, transparent 62%);
}
/* the neon in the photograph breathes — the light source is real, so is the flicker */
.hero-glow {
  position: absolute; inset: 0 0 0 42%; z-index: -1; pointer-events: none;
  background: radial-gradient(52% 42% at 58% 42%, rgba(255,214,188,0.18), transparent 70%);
  mix-blend-mode: screen;
  animation: breathe 5.5s var(--ease-io) infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.5; } 45% { opacity: 1; } 72% { opacity: 0.74; } }

.hero-inner { width: 100%; padding: 132px var(--gutter) clamp(20px, 3.4vh, 40px); display: grid; align-content: end; gap: clamp(24px, 4vh, 52px); }
.hero-card { max-width: 30rem; }
.hero-card h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); margin-bottom: 20px; }
.hero-card .lede { color: #cdcdd3; margin-bottom: 28px; max-width: 27rem; font-size: clamp(1rem, 1.25vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

/* the oversized wordmark that docks into the header.
   z-index sits ABOVE the fixed header so it visibly travels into the bar
   rather than sliding underneath it. */
.lockup { display: block; width: 100%; margin-top: clamp(28px, 5vh, 64px); line-height: 0.8; position: relative; z-index: 61; }
.lockup-word {
  display: block;
  font-variation-settings: "wdth" 62;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.55rem, 13.4vw, 14rem);
  letter-spacing: -0.035em;
  white-space: nowrap;
  transform-origin: 0% 0%;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* ---- the red detonation slab ------------------------------------------ */
.slab { padding-block: clamp(6rem, 14vw, 13rem); }
.slab .d1 { max-width: 16ch; }
.slab-meta { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: baseline; }

/* ---- press row: six real logos, static, quiet ------------------------- */
.press { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(18px, 3vw, 46px); align-items: center; }
.press img { width: 100%; max-height: 30px; object-fit: contain; opacity: 0.55; filter: grayscale(1); transition: opacity var(--t) var(--ease-io); }
.press a:hover img, .press li:hover img { opacity: 1; }
.press-note { margin-top: 22px; }

/* ---- transformations: horizontal rail --------------------------------- */
/* sits outside .rail so it already spans full width — no negative margins,
   which would push the box past the viewport and create a horizontal scrollbar */
.rail-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(258px, 27vw);
  gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail-scroll::-webkit-scrollbar { display: none; }
.rail-scroll > * { scroll-snap-align: start; }
.tcard { background: var(--ink-2); border-top: var(--stroke) solid var(--red); }
.tcard img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tcard figcaption { padding: 16px 18px 20px; }
.tcard .tcard-k { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-variation-settings: "wdth" 70; font-weight: 800; letter-spacing: -0.02em; }

/* ---- testimonial cards ------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px; }
.quote { background: var(--ink-2); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; border-top: var(--stroke) solid var(--red); }
.quote blockquote { font-variation-settings: "wdth" 82; font-weight: 700; text-transform: uppercase; font-size: clamp(1.05rem, 1.7vw, 1.32rem); line-height: 1.15; letter-spacing: -0.01em; }
.quote p { color: var(--mute); font-size: 0.94rem; }
.quote footer { margin-top: auto; padding-top: 6px; }
.quote .who { font-weight: 700; }
.quote .role { color: var(--mute); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---- numbered index (pillars / coaching) ------------------------------ */
.index { border-top: var(--rule) solid #2a2a2e; }
.on-bone .index, .on-red .index { border-top-color: currentColor; }
.index li { border-bottom: var(--rule) solid #2a2a2e; }
.on-bone .index li, .on-red .index li { border-bottom-color: currentColor; }
.index-row {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 8px 28px;
  padding-block: clamp(22px, 3vw, 34px); align-items: start;
  width: 100%; text-align: left;
  transition: background var(--t) var(--ease-io), padding-inline var(--t) var(--ease-io);
}
.index-row:hover { background: rgba(255, 255, 255, 0.04); padding-inline: 14px; }
.on-bone .index-row:hover, .on-red .index-row:hover { background: rgba(0, 0, 0, 0.06); }
.index-n { font-variation-settings: "wdth" 70; font-weight: 800; font-size: 0.95rem; color: var(--red-hot); padding-top: 4px; }
.on-red .index-n { color: #0a0a0b; }
.index-b h3 { margin-bottom: 8px; }
.index-b p { color: var(--mute); }
.on-bone .index-b p { color: var(--mute-ink); }
.on-red .index-b p { color: rgba(10, 10, 11, 0.78); }

/* ---- record: big numerals --------------------------------------------- */
.record { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px; }
.record li { background: var(--ink-2); padding: clamp(26px, 3vw, 40px); border-top: var(--stroke) solid var(--red); }
.record .n { display: block; font-size: clamp(3rem, 6.6vw, 5.6rem); line-height: 0.86; letter-spacing: -0.04em; margin-bottom: 14px; }
.record .k { color: var(--mute); font-size: 0.88rem; }

/* ---- split (EJ / studio) ---------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: clamp(28px, 5vw, 70px); align-items: center; }
.split-media img { width: 100%; }
.stack > * + * { margin-top: 18px; }
.spec { border-top: var(--rule) solid #2a2a2e; }
.spec div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: var(--rule) solid #2a2a2e; }
.on-bone .spec, .on-bone .spec div { border-color: rgba(0, 0, 0, 0.16); }
.spec dt { color: var(--mute); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; padding-top: 3px; }
.on-bone .spec dt { color: var(--mute-ink); }
.spec dd { margin: 0; font-weight: 600; }
/* on the red ground a translucent black label muddies into the field — the
   term needs to be solid ink and separated by weight, not by opacity */
.on-red .spec, .on-red .spec div { border-color: rgba(10, 10, 11, 0.3); }
.on-red .spec dt { color: #0a0a0b; opacity: 0.82; font-weight: 700; }
.on-red .spec dd { color: #0a0a0b; }

/* ---- form -------------------------------------------------------------
   On a red ground the form lives in its own black panel: label text stays
   legible, and the block reads as a deliberate object rather than fields
   floating on colour. */
.form-panel { background: var(--ink); color: var(--paper); padding: clamp(22px, 2.8vw, 38px); }
.form-panel .field label { color: var(--mute); }
.form-panel .form-note { color: var(--mute); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; background: var(--ink-2); color: var(--paper);
  border: var(--rule) solid #33333a; font: inherit; font-size: 0.98rem;
  transition: border-color 0.3s var(--ease-io);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red-hot); outline: none; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-note { color: var(--mute); font-size: 0.84rem; }
.form-status { font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }

/* ---- footer ------------------------------------------------------------ */
.ftr { border-top: var(--rule) solid #26262a; padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.ftr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 34px; }
.ftr h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mute); font-weight: 700; margin-bottom: 14px; }
.ftr li + li { margin-top: 2px; }
.ftr li a { display: inline-flex; align-items: center; min-height: 34px; }
.ftr a:hover { color: var(--red-hot); }
.ftr-base { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 22px; border-top: var(--rule) solid #26262a; display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; color: var(--mute); font-size: 0.8rem; }

/* sticky mobile action bar */
.mbar { position: fixed; inset: auto 0 0 0; z-index: 55; display: none; grid-template-columns: 1fr 1fr; gap: var(--rule); background: #26262a; border-top: var(--rule) solid #26262a; }
.mbar a { padding: 15px 8px; text-align: center; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: var(--ink); }
.mbar a.primary { background: var(--red); }

/* ==========================================================================
   MOTION
   The resting state in CSS is always the FINAL state. The from-state only
   exists under html.motion, which motion.js adds last — after the observer is
   wired, inside a try/catch. If the JS throws or never runs, the page is
   simply visible. Nothing here can produce a blank screen.
   ========================================================================== */
.reveal { opacity: 1; transform: none; transition: opacity 0.62s var(--ease), transform 0.62s var(--ease); }
html.motion .reveal { opacity: 0.001; transform: translateY(26px); }
html.motion .reveal.is-in { opacity: 1; transform: none; }
html.motion .reveal:nth-child(2) { transition-delay: 0.06s; }
html.motion .reveal:nth-child(3) { transition-delay: 0.12s; }
html.motion .reveal:nth-child(4) { transition-delay: 0.18s; }

/* hero lines: hand-authored spans, CSS keyframes, fill-mode backwards.
   No library, and nothing depends on a scroll trigger firing. */
.ln { display: block; overflow: hidden; }
.ln > span { display: block; animation: lnUp 0.9s var(--ease) backwards; }
.ln:nth-child(1) > span { animation-delay: 0.08s; }
.ln:nth-child(2) > span { animation-delay: 0.18s; }
.ln:nth-child(3) > span { animation-delay: 0.28s; }
@keyframes lnUp { from { transform: translateY(102%); } to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.motion .reveal { opacity: 1; transform: none; }
  .ln > span { animation: none; }
  .hero-glow { animation: none; opacity: 0.8; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---- breakpoints ------------------------------------------------------- */
@media (max-width: 1000px) {
  .press { grid-template-columns: repeat(3, 1fr); gap: 26px 30px; }
  .press img { max-height: 26px; }
}
@media (max-width: 1100px) {
  .hero-media, .hero-glow { inset: 0 0 0 34%; }
  .hero-card { max-width: 25rem; }
}
@media (max-width: 860px) {
  .nav, .hdr-cta { display: none; }
  .burger { display: grid; }
  .mbar { display: grid; }
  body { padding-bottom: 52px; }
  .hero { min-height: 94svh; }
  /* on a phone the photo goes full-bleed behind a heavy scrim — a 34% column
     is too narrow to read as a photograph */
  .hero-media, .hero-glow { inset: 0; }
  .hero-media img { object-position: 26% 38%; }
  .hero-media::after {
    background:
      linear-gradient(to top, var(--ink) 6%, rgba(10,10,11,0.82) 34%, rgba(10,10,11,0.5) 62%, rgba(10,10,11,0.72) 100%);
  }
  .hero-card { max-width: none; }
  .hero-inner { padding-top: 104px; }
  .split { gap: 30px; }
  .spec div { grid-template-columns: 6.6rem minmax(0, 1fr); gap: 12px; }
  .index-row { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 6px 16px; }
  .rail-scroll { grid-auto-columns: 74vw; }
}
@media (max-width: 520px) {
  .press { grid-template-columns: repeat(2, 1fr); }
  .record li { padding: 22px; }
}

/* touch: every interactive element clears 44px on a coarse pointer */
@media (pointer: coarse) {
  /* min-height does nothing on an inline box — these have to become flex */
  .ftr li a, .spec dd a { display: inline-flex; align-items: center; min-height: 44px; }
  .nav a { padding-block: 12px; }
}
