/*
 * Homepage layout ("Precision / HUD"). The reusable pieces (labels, crosshairs, laser line, marquee, cards, buttons,
 * outline type, grid) live in hud.css; this file only places them. Mobile-first at 360px, then 48rem / 64rem / 80rem.
 * Colours are tokens (dark sections use the brand's dark palette via data-theme="dark"); no new hues.
 */

/* ---------- shared section frame ---------- */
.home-sec { position: relative; overflow: clip; padding-block: var(--section-y); --crosshair-inset: var(--space-4); }
@media (min-width: 64rem) { .home-sec { --crosshair-inset: var(--space-6); } }

/* section head: label, split heading, lead, action */
.home-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin-bottom: var(--space-8); }
.home-head__title { margin: 0; font-size: var(--fs-h2); line-height: var(--leading-display); color: var(--color-text-strong); }
.home-head__title--md { font-size: var(--fs-h2); }
.home-head__lead { margin: 0; max-width: 42ch; color: var(--color-muted-text); font-size: var(--type-base); }
.home-head__action { display: flex; }
@media (min-width: 64rem) {
  .home-head:not(.home-head--aside) { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-5); margin-bottom: var(--space-12); }
  .home-head:not(.home-head--aside) > .section-label { grid-column: 1 / -1; }
  .home-head:not(.home-head--aside) > .home-head__title { grid-column: 1 / 9; grid-row: 2 / 4; align-self: end; }
  .home-head:not(.home-head--aside) > .home-head__lead { grid-column: 9 / -1; grid-row: 2; align-self: end; }
  .home-head:not(.home-head--aside) > .home-head__action { grid-column: 9 / -1; grid-row: 3; align-self: end; }
}

/* asymmetric split: sticky heading on the left, content on the right */
@media (min-width: 64rem) {
  .home-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .home-split > .home-head { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + var(--space-8)); margin-bottom: 0; }
  .home-split > :not(.home-head) { grid-column: 6 / -1; }
}

/* ---------- hero (dark, full screen; the HUD header floats over it) ---------- */
.hx {
  --crosshair-inset: var(--space-4);
  position: relative; overflow: clip; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--header-h) + var(--space-3));
}
/* subtle grid: hairline columns + faint rows, a soft red glow behind the products */
.hx__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 72% 48%, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent 72%);
}
.hx__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to bottom, color-mix(in srgb, var(--color-text) 7%, transparent) 1px, transparent 1px);
  background-size: 100% 4rem;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
/* the laser line: one sweep down the hero on load (CSS only), then gone */
.hx__sweep { position: absolute; inset: 0; z-index: 3; pointer-events: none; transform: translateY(-100%); animation: hx-sweep 1.9s var(--ease) 0.25s both; }
.hx__sweep::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7rem; background: linear-gradient(to top, color-mix(in srgb, var(--color-accent) 16%, transparent), transparent); }
.hx__sweep::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0.125rem;
  background: linear-gradient(90deg, transparent, var(--color-accent) 8%, var(--color-accent) 92%, transparent);
  box-shadow: 0 0 0.75rem color-mix(in srgb, var(--color-accent) 80%, transparent), 0 0 2rem color-mix(in srgb, var(--color-accent) 45%, transparent);
}
@keyframes hx-sweep { 0% { transform: translateY(-100%); opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }

/* the bottom bar is the hero's lower edge: no bottom markers over the ticker */
.hx > .crosshair--bl, .hx > .crosshair--br { display: none; }
.hx__inner { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; row-gap: var(--space-5); padding-bottom: var(--space-5); }

/* headline: each line slides up out of its own mask on load */
.hx__title { display: grid; margin: 0; font-size: var(--fs-hero); line-height: var(--leading-mega); color: var(--color-text); text-wrap: initial; }
.hx__line { display: block; overflow: hidden; padding-block: 0.05em; margin-block: -0.05em; }
/* block words: each line box is exactly line-height tall in any font, so the font swap never moves the photo */
.hx__word { display: block; --outline-color: var(--color-text); animation: hx-rise 0.9s var(--ease) both; animation-delay: calc(0.1s + var(--i, 0) * 0.1s); }
.hx__word.type-outline { -webkit-text-stroke-width: 0.014em; }
@keyframes hx-rise { from { transform: translateY(108%); } }
.hx__sub { margin: 0; max-width: 40ch; font-size: var(--type-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--color-muted-text); animation: hx-fade 0.8s var(--ease) 0.4s both; }
.hx__sub-mark { color: var(--color-primary); }
@keyframes hx-fade { from { opacity: 0; transform: translateY(0.5rem); } }
.hx__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hx__cta .hud-btn { flex: 1 1 0; min-width: 0; padding-inline: var(--space-3); }

/* product stage: one edge-to-edge product on phones */
.hx__stage { position: relative; }
.hx__item { position: relative; display: block; color: inherit; text-decoration: none; }
.hx__item:not(.hx__item--1) { display: none; }
.hx__frame { --crosshair-inset: var(--space-3); position: relative; display: block; aspect-ratio: 16 / 10; background: var(--color-text); }
.hx__item--1 .hx__frame { margin-inline: calc(var(--gutter) * -1); }
.hx__frame img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-4); mix-blend-mode: multiply; }
.hx__tag { display: none; }

/* phones: the three products as a swipeable row */
.hx__row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: var(--space-3);
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.hx__row::-webkit-scrollbar { display: none; }
.hx__row > li { scroll-snap-align: start; min-width: 0; }
.hx__chip { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; gap: var(--space-3); min-height: var(--control); padding: var(--space-2); color: inherit; text-decoration: none; border: 1px solid var(--hud-line-strong); }
.hx__chip-media { display: block; aspect-ratio: 4 / 3; background: var(--color-text); }
.hx__chip-media img { width: 100%; height: 100%; object-fit: contain; padding: 0.25rem; mix-blend-mode: multiply; }
.hx__chip-body { display: grid; gap: 0.125rem; min-width: 0; font-size: var(--type-2xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--color-muted-text); }
.hx__chip-idx { color: var(--color-primary); }
.hx__chip-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-hud-display); font-size: var(--type-base); font-weight: 600; line-height: var(--leading-tight); letter-spacing: 0; color: var(--color-text); }
.hx__chip-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-2); }
.hx__chip-row > :first-child { color: var(--color-text); font-weight: 600; }

/* bottom bar: scroll cue + live stats ticker */
.hx__bottom { position: relative; z-index: 1; display: flex; border-top: 1px solid var(--hud-line-strong); }
.hx__scroll { display: none; }
.hx__ticker { flex: 1; min-width: 0; display: flex; align-items: stretch; }
.hx__live { flex: none; display: inline-flex; align-items: center; gap: var(--space-2); padding-inline: var(--gutter) var(--space-3); border-right: 1px solid var(--hud-line); font-size: var(--type-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-primary); }
.hx__live-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; animation: hx-pulse 1.6s var(--ease) infinite; }
@keyframes hx-pulse { 50% { opacity: 0.2; } }
.hx__ticker .marquee { flex: 1; min-width: 0; border: 0; padding-block: var(--space-3); }

@keyframes hx-scroll {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (min-width: 48rem) {
  .hx__row { grid-auto-columns: calc((100% - var(--gutter) * 2 - var(--space-3) * 2) / 3); }
  .hx__scroll {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); flex: none;
    min-width: var(--tap); padding: var(--space-3) var(--gutter); border-right: 1px solid var(--hud-line);
    font-size: var(--type-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-muted-text); text-decoration: none;
  }
  .hx__scroll-line { position: relative; width: 1px; height: 1.75rem; overflow: hidden; background: var(--hud-line-strong); }
  .hx__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--color-primary); animation: hx-scroll 1.8s var(--ease) infinite; }
  .hx__live { padding-left: var(--space-4); }
}

/* desktop: copy left, a layered three-product cluster right with floating spec tags */
@media (min-width: 64rem) {
  .hx { --crosshair-inset: var(--space-6); padding-top: calc(var(--header-h) + var(--space-6)); }
  .hx__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: center; padding-bottom: var(--space-8); }
  .hx__title { grid-column: 1 / 7; grid-row: 1; align-self: end; font-size: var(--fs-hero); }
  .hx__copy { grid-column: 1 / 7; grid-row: 2; align-self: start; }
  .hx__cta .hud-btn { flex: none; padding-inline: var(--space-6); }
  .hx__stage { grid-column: 7 / -1; grid-row: 1 / 3; align-self: center; aspect-ratio: 5 / 4; margin-right: calc(var(--gutter) * -0.5); }
  .hx__row { display: none; }
  .hx__item, .hx__item:not(.hx__item--1) { position: absolute; display: block; will-change: transform; }
  .hx__item--1 { left: 2%; top: 16%; width: 64%; z-index: 2; }
  .hx__item--2 { right: 0; top: 0; width: 40%; z-index: 1; }
  .hx__item--3 { right: 6%; bottom: 0; width: 42%; z-index: 3; }
  .hx__item--1 .hx__frame { margin-inline: 0; }
  .hx__item--2 .hx__frame, .hx__item--3 .hx__frame { aspect-ratio: 4 / 3; }
  .hx__frame { outline: 1px solid transparent; outline-offset: 0.375rem; box-shadow: 0 1.5rem 3rem -1.5rem var(--color-background); transition: outline-color var(--dur) var(--ease); }
  .hx__frame img { padding: var(--space-5); }
  .hx__tag {
    position: absolute; display: grid; gap: var(--space-1); width: max-content; max-width: 15rem; padding: var(--space-2) var(--space-3);
    font-size: var(--type-2xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--color-muted-text);
    background: color-mix(in srgb, var(--color-background) 88%, transparent); border: 1px solid var(--hud-line-strong);
    transition: border-color var(--dur) var(--ease);
  }
  .hx__tag::before { content: ""; position: absolute; top: 50%; width: var(--space-4); height: 1px; background: var(--color-primary); }
  .hx__tag-head { display: flex; gap: var(--space-2); }
  .hx__tag-idx { color: var(--color-primary); }
  .hx__tag-name { font-family: var(--font-hud-display); font-size: var(--fs-lead); font-weight: 600; line-height: var(--leading-tight); letter-spacing: 0; color: var(--color-text); }
  .hx__tag-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-4); }
  .hx__tag-price { color: var(--color-text); font-weight: 600; }
  .hx__item--1 .hx__tag { left: calc(-1 * var(--space-8)); top: calc(100% - var(--space-6)); }
  .hx__item--1 .hx__tag::before { display: none; }
  .hx__item--2 .hx__tag { right: calc(100% + var(--space-4)); top: 0; }
  .hx__item--2 .hx__tag::before { left: 100%; }
  .hx__item--3 .hx__tag { right: 0; top: calc(100% + var(--space-4)); }
  .hx__item--3 .hx__tag::before { left: auto; right: var(--space-4); top: calc(-1 * var(--space-4)); width: 1px; height: var(--space-4); }
  .hx__live { padding-left: var(--space-6); }
}
@media (min-width: 64rem) and (hover: hover) {
  .hx__item:hover .hx__frame { outline-color: var(--color-primary); }
  .hx__item:hover .hx__tag { border-color: var(--color-primary); }
}

@media (prefers-reduced-motion: reduce) {
  .hx__sweep { display: none; }
  .hx__word, .hx__sub, .hx__live-dot, .hx__scroll-line::after { animation: none; }
  .hx__frame, .hx__tag { transition: none; }
}

/* ---------- category rail: one compact strip under the marquee (unnumbered) ---------- */
.home-rail { --rail-pad: max(var(--gutter), calc((100vw - var(--container)) / 2)); position: relative; padding-block: var(--space-6); background: var(--color-background); color: var(--color-text); border-bottom: 1px solid var(--hud-line); }
.home-rail__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-4); }
/* the title keeps one line; on phones the arrows and "All equipment" wrap below it */
.home-rail__title, .home-rail__all { white-space: nowrap; }
.home-rail__title { margin: 0; font-size: var(--fs-h3); line-height: var(--leading-display); color: var(--color-text-strong); }
.home-rail__nav { display: flex; align-items: center; gap: var(--space-2); }
.home-rail__btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 1px solid var(--hud-line-strong); background: transparent; color: var(--color-text-strong); cursor: pointer; transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.home-rail__btn[hidden] { display: none; }
.home-rail__btn:disabled { opacity: 0.35; cursor: default; }
.home-rail__btn .icon { width: 1.25rem; height: 1.25rem; }
.home-rail__viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-pad); scrollbar-width: none; }
.home-rail__viewport::-webkit-scrollbar { display: none; }
.home-rail__viewport.is-draggable { cursor: grab; }
.home-rail__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.home-rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 17rem); gap: var(--space-3); width: max-content; margin: 0; padding: 0 var(--rail-pad); list-style: none; }
.home-rail__item { display: flex; scroll-snap-align: start; }
@media (min-width: 48rem) { .home-rail__track { grid-auto-columns: 18rem; } }
@media (min-width: 64rem) {
  .home-rail { padding-block: var(--space-8); }
  .home-rail__title { font-size: var(--fs-h3); }
  .home-rail__track { grid-auto-columns: 19rem; gap: var(--space-4); }
  .home-rail .cat-card { grid-template-columns: 9rem minmax(0, 1fr); height: 11rem; }
  .home-rail .cat-card__name { font-size: var(--fs-h3); }
  /* more than 8 categories: two rows of shorter cards, still one strip */
  .home-rail__track--rows { grid-template-rows: repeat(2, auto); }
  .home-rail__track--rows .cat-card { grid-template-columns: 7rem minmax(0, 1fr); height: 8.5rem; }
  .home-rail__track--rows .cat-card__name { font-size: var(--fs-lead); }
}
@media (hover: hover) {
  .home-rail__btn:not(:disabled):hover { border-color: var(--color-primary); color: var(--color-primary); }
}

/* ---------- 01 bestsellers: a scroll-snap row; on desktop home.js pins the section and slides the track ---------- */
.home-best .home-head { margin-bottom: var(--space-8); }
.best-rail { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.best-rail::-webkit-scrollbar { display: none; }
.best-rail__track {
  display: flex; gap: var(--space-4); width: max-content; margin: 0; list-style: none;
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.best-rail__item { display: flex; flex: none; width: min(82vw, 22rem); scroll-snap-align: center; }
.best-rail__progress { position: relative; height: 1px; margin-top: var(--space-6); background: var(--hud-line-strong); }
.best-rail__progress span { position: absolute; inset: 0; background: var(--color-primary); transform-origin: left; transform: scaleX(var(--p, 0.08)); }
.best-rail__count { font-size: var(--type-sm); letter-spacing: var(--tracking-mono); color: var(--color-muted-text); }
.best-rail__count span { color: var(--color-primary); }
@media (min-width: 48rem) { .best-rail__item { width: 22rem; scroll-snap-align: start; } .best-rail { scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); } }
@media (min-width: 64rem) {
  .best-rail__item { width: 24rem; }
  .best-rail.is-pinned { overflow: visible; scroll-snap-type: none; }
  .best-rail.is-pinned .best-rail__track { will-change: transform; }
}

/* ---------- 02 new arrivals: bento (one big tile, four small) ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.bento > :first-child { grid-column: 1 / -1; }
@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
  .bento > :first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
}

/* ---------- 03 sets (dark): feature card + two compact cards ---------- */
.sets-grid { display: grid; gap: var(--space-4); }
@media (min-width: 48rem) {
  .sets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sets-grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .sets-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
  .sets-grid > :first-child { grid-column: 1 / 9; grid-row: 1 / 3; }
  .sets-grid > :nth-child(n + 2) { grid-column: 9 / -1; }
}

/* ---------- 04 numbers: huge counters (asymmetric: two wide, three narrow on desktop) ---------- */
.numbers { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; border-top: 1px solid var(--hud-line-strong); }
.numbers__item { display: grid; align-content: end; gap: var(--space-2); min-width: 0; padding-block: var(--space-5); border-bottom: 1px solid var(--hud-line); }
.numbers__label { display: flex; gap: var(--space-3); font-family: var(--font-hud-mono); font-size: var(--type-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-muted-text); }
.numbers__index { color: var(--color-primary); }
.numbers__value { display: flex; align-items: baseline; margin: 0; font-family: var(--font-hud-display); font-size: var(--fs-stat); font-weight: 600; line-height: 0.85; color: var(--color-text-strong); font-variant-numeric: tabular-nums; }
.numbers__n { display: inline-block; }
.numbers__suffix { color: var(--color-primary); }
@media (min-width: 48rem) {
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
}
@media (min-width: 64rem) {
  .numbers { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .numbers__item { grid-column: span 2; padding-block: var(--space-8); }
  .numbers__item:nth-child(-n + 2) { grid-column: span 3; }
  .numbers__item .numbers__value { font-size: var(--fs-stat); }
  .numbers__item:nth-child(-n + 2) .numbers__value { font-size: var(--fs-stat); }
}

/* ---------- 05 why us: three oversized statements, offset ---------- */
.why { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hud-line-strong); }
.why__item { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-3) var(--space-4); padding-block: var(--space-8); border-bottom: 1px solid var(--hud-line); }
.why__num { grid-row: 1 / span 2; font-family: var(--font-hud-mono); font-size: var(--type-xs); color: var(--color-primary); }
.why__title { margin: 0; font-size: var(--fs-h3); line-height: var(--leading-display); color: var(--color-text-strong); overflow-wrap: break-word; }
.why__text { margin: 0; max-width: 44ch; font-size: var(--type-lg); line-height: var(--leading-snug); color: var(--color-muted-text); }
@media (min-width: 64rem) {
  .why__item { grid-template-columns: 4rem minmax(0, 8fr) minmax(0, 4fr); align-items: end; column-gap: var(--gutter); padding-block: var(--space-12); }
  .why__num { grid-row: auto; align-self: start; }
  .why__title { font-size: var(--fs-h3); }
  .why__item:nth-child(2) .why__title { padding-left: 12%; }
  .why__item:nth-child(3) .why__title { padding-left: 4%; }
}

/* ---------- 06 reviews: featured quotes, a swipe row on phones, a 3-column grid from 64rem ---------- */
.quotes-grid { display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 22rem); gap: var(--space-4); margin: 0; padding: 0 0 var(--space-2); list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.quotes-grid::-webkit-scrollbar { display: none; }
.quotes-grid > li { display: flex; scroll-snap-align: start; }
.quotes-grid .quote-card { width: 100%; }
@media (min-width: 64rem) { .quotes-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }

/* ---------- 07 from the pressroom: offset cards ---------- */
.press { display: grid; gap: var(--space-5); }
@media (min-width: 48rem) { .press { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); } }
@media (min-width: 64rem) {
  .press { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .press__item:nth-child(2) { margin-top: var(--space-16); }
  .press__item:nth-child(3) { margin-top: var(--space-8); }
}

/* ---------- FAQ ---------- */
.home-faq { border-top: 1px solid var(--hud-line-strong); }
.home-faq__item { border-bottom: 1px solid var(--hud-line); }
.home-faq__q {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) var(--tap); align-items: center; gap: var(--space-3);
  min-height: var(--control); padding-block: var(--space-4); list-style: none;
  font-family: var(--font-hud-display); font-size: var(--fs-h3); font-weight: 600; line-height: var(--leading-tight); text-transform: uppercase; color: var(--color-text-strong);
}
.home-faq__q::-webkit-details-marker { display: none; }
.home-faq__num { font-size: var(--type-2xs); font-weight: 500; color: var(--color-primary); }
.home-faq__icon { position: relative; width: var(--tap); height: var(--tap); border: 1px solid var(--hud-line-strong); transition: transform var(--dur) var(--ease), border-color var(--dur-fast) var(--ease); }
.home-faq__icon::before, .home-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; translate: -50% -50%; }
.home-faq__icon::before { width: 0.875rem; height: 1px; }
.home-faq__icon::after { width: 1px; height: 0.875rem; }
.home-faq__item[open] .home-faq__icon { transform: rotate(45deg); border-color: var(--color-primary); color: var(--color-primary); }
.home-faq__a { padding: 0 0 var(--space-6) calc(2.25rem + var(--space-3)); }
.home-faq__a p { margin: 0; color: var(--color-muted-text); }
@media (hover: hover) {
  .home-faq__q:hover .home-faq__text { color: var(--color-primary); }
}

/* ---------- final call to action: a full-bleed dark band that runs into the (dark) footer ---------- */
.home-cta { padding-block: clamp(5rem, 3rem + 8vw, 10rem); }
.home-cta__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.home-cta__title { margin: 0; font-size: var(--fs-h2); line-height: var(--leading-display); color: var(--color-text); }
.home-cta__title .type-outline { display: block; }
.home-cta__text { margin: 0; max-width: 40ch; font-size: var(--type-lg); line-height: var(--leading-snug); color: var(--color-muted-text); }
.home-cta__buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (min-width: 64rem) {
  .home-cta__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-8); }
  .home-cta__grid > .section-label, .home-cta__title { grid-column: 1 / -1; }
  .home-cta__text { grid-column: 1 / 6; }
  .home-cta__buttons { grid-column: 7 / -1; justify-content: flex-end; align-self: end; }
}
.site-main:has(.home-cta) ~ .site-footer { margin-top: 0; border-top: 1px solid var(--color-border); }

@media (prefers-reduced-motion: reduce) {
  .cat-row__name, .cat-follow, .home-faq__icon { transition: none; }
}


/* ---------- phones and tablets: sticky action bar, hero sized to the small viewport ---------- */
:root { --quick-bar-h: 0rem; }
.quick-bar { display: none; }
@media (max-width: 63.999rem) {
  :root { --quick-bar-h: calc(3.5rem + env(safe-area-inset-bottom, 0rem)); }
  .quick-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
    display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); grid-template-rows: 3.5rem; gap: 1px; box-sizing: border-box;
    height: var(--quick-bar-h); padding-bottom: env(safe-area-inset-bottom, 0rem);
    background: var(--color-border); box-shadow: 0 -1px 0 var(--color-border);
  }
  .quick-bar__btn {
    display: flex; align-items: center; justify-content: center; gap: var(--space-2); height: 100%; padding-inline: var(--space-2); white-space: nowrap;
    font-family: var(--font-hud-mono); font-size: var(--type-xs); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase;
    color: var(--color-text); background: var(--color-background); text-decoration: none;
  }
  .quick-bar__btn .icon { width: 1.125rem; height: 1.125rem; }
  /* dark-theme red with black text (5.25:1) */
  .quick-bar__btn--primary { background: var(--color-primary); color: var(--color-background); }
  /* nothing sits under the bar: the footer ends above it, the consent banner floats over it */
  .site-footer { padding-bottom: var(--quick-bar-h); }
  .consent { bottom: calc(var(--quick-bar-h) + var(--space-3)); }

  /* the hero fills the small viewport (browser bars showing) above the bar, and its content fits inside it */
  .hx { min-height: calc(100vh - var(--quick-bar-h)); min-height: calc(100svh - var(--quick-bar-h)); }
  /* full width (16:10), but never taller than a third of the small viewport */
  .hx__frame { aspect-ratio: auto; height: min(62.5vw, 32svh); }
}
@media (min-width: 48rem) and (max-width: 63.999rem) {
  .hx__frame { height: min(62.5vw, 28svh); }
}
/* short screens: drop the swipe row and tighten the spacing so the photo, buttons and ticker still fit */
@media (max-width: 63.999rem) and (max-height: 47.5rem) {
  .hx { padding-top: calc(var(--header-h) + var(--space-1)); }
  .hx__inner { row-gap: var(--space-3); padding-bottom: var(--space-3); }
  .hx__row { display: none; }
  .hx__frame { height: min(62.5vw, 34svh); }
  .hx__cta { margin-top: var(--space-3); }
}
@media (max-width: 63.999rem) and (max-height: 41rem) {
  .hx__frame { height: min(62.5vw, 30svh); }
}
@media (max-width: 63.999rem) and (max-height: 36rem) {
  .hx__frame { height: min(62.5vw, 24svh); }
  .hx__sub { display: none; }
}

/* desktop hero cluster: hud.js-free pointer parallax, eased by --ease */
@media (min-width: 64rem) {
  .hx__item { transition: translate 0.9s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  .hx__item, .hud-btn.magnetic-btn, .magnetic-btn__label { transition: none; }
}

/* sets section: link to every set under the cards */
.home-sets__all { margin-top: var(--space-6); }
