@import url('fonts.css');

/* ============================================================
   TOKENS
   Cool graphite ground + cool ink + one warm accent.
   Nothing ships that isn't defined here.
   ============================================================ */
:root {
  /* ground — the walls of a showroom after hours. Held a degree cool so the
     orange accent reads as a light source against it.

     Lifted about three steps from the original near-black on 2026-08-19: the
     client found it heavy to look at for any length of time. The hue
     relationship is unchanged (blue >= green > red), so it is the same room
     with the lights turned up, not a different palette. Every ink pairing was
     re-checked against WCAG afterwards and the weakest is 4.95:1 on the page
     ground — the hairlines and --ink-3 were raised at the same time, because
     a lighter ground eats exactly the contrast they depend on. */
  /* 2026-10-31: the brand colours — black, yellow and white. Black ground,
     #FFD400 yellow as the one accent, white for ink and badges. The token
     names (--amber, --blue) are kept so every rule follows. */
  /* 2026-10-31 (evening): light and plain, after Jason pointed at a
     conventional white RC shop as the reference. White ground, black ink,
     #FFD400 yellow for fills only. Yellow text is unreadable on white, so
     accent TEXT uses --amber-text (a dark gold) and accent BORDERS use
     --amber-line (black). Dark bands (header, hero banner, footer) re-point
     the tokens locally with .on-dark. The old token names are kept so every
     rule follows. */
  --void: #ffffff;
  --surface: #f6f6f4;
  --raised: #f0f0ee;

  --lift: #ffffff;
  --bloom: transparent;

  --ink: #111111;
  --ink-2: #464646;
  --ink-3: #6a6a6a;

  --line: rgba(17, 17, 17, 0.14);
  --line-soft: rgba(17, 17, 17, 0.08);
  --line-grid: #e7e7e5;

  --amber: #ffd400;
  --amber-deep: #f0c400;
  --amber-glow: rgba(255, 212, 0, 0.35);
  --on-amber: #111111;
  --amber-text: #7a6000;
  --amber-line: #111111;

  /* the old "blue" pair now means black fills: active chips, focus */
  --blue: #111111;
  --blue-deep: #000000;
  --blue-ink: #7a6000;
  --blue-glow: rgba(17, 17, 17, 0.12);
  --on-blue: #ffffff;

  /* product photos are white-background studio shots; a faint grey plate
     keeps every card the same shape without a visible box */
  --plate: #f4f4f2;
  --plate-edge: #e7e7e5;

  --deep: #0d0d0d;
  --paper: #f6f6f4;
  --amber-ink: #7a6000;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.05), 0 8px 24px -12px rgba(17, 17, 17, 0.18);

  /* type */
  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* spacing scale — 4 8 12 16 24 32 48 64 96 128 160 */
  --s1: 0.25rem;  --s2: 0.5rem;   --s3: 0.75rem;  --s4: 1rem;
  --s6: 1.5rem;   --s8: 2rem;     --s12: 3rem;    --s16: 4rem;
  --s24: 6rem;    --s32: 8rem;    --s40: 10rem;

  /* rhythm */
  --section-y: clamp(4.5rem, 10vw, 11rem);
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --maxw: 1440px;
  --measure: 63ch;

  /* ---- motion ----
     One scale, mirrored in assets/js/motion.js as MRC.T so CSS transitions
     and GSAP timelines cannot drift apart.

     The VALUES are this site's own, not a borrowed set. 260ms was already
     doing the work of a UI step in ten places and the client has signed off
     on how that feels; renaming it costs nothing, retiming it would change a
     page that is already approved. The scale is named after the job, so the
     next person picks a token instead of inventing a number. */

  /* easings */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);        /* entrances  — GSAP power3.out */
  --ease-emph: cubic-bezier(0.22, 1, 0.36, 1);  /* hero beats — GSAP expo.out   */
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);    /* exits, deliberately faster   */

  /* durations, by job */
  --d-micro: 160ms;    /* colour shifts, underlines                 */
  --d-ui: 260ms;       /* hovers, links, buttons — the common case  */
  --d-pop: 320ms;      /* chips, dropdowns, small panels            */
  --d-modal: 420ms;    /* cart drawer, menu sheet                   */
  --d-section: 620ms;  /* section reveals                           */
  --d-image: 900ms;    /* photo wipes — slower than the type, on purpose */

  /* travel distances for entrances */
  --o-sm: 8px;
  --o-md: 16px;
  --o-lg: 24px;

  /* kept: older rules still reference these two */
  --fast: 180ms;
  --slow: 640ms;

  --z-header: 40;
  --z-drawer: 90;
  --z-scrim: 80;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

/* Components below set `display`, which would otherwise beat the `hidden`
   attribute's user-agent rule and leave hidden blocks on screen. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* the masthead is sticky and 75px tall — without this an anchor jump
     parks the target's heading underneath it */
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  position: relative;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--blue); color: var(--on-blue); }

:focus-visible {
  outline: 2px solid var(--amber-line);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s4); top: -100%;
  z-index: 100; background: var(--amber); color: var(--on-amber);
  padding: var(--s3) var(--s4);
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.skip-link:focus { top: var(--s4); }

/* ============================================================
   TYPE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.t-display {
  font-size: clamp(3.1rem, 9.2vw, 8.2rem);
  letter-spacing: -0.042em;
  line-height: 0.92;
}

.t-h2 {
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  letter-spacing: -0.035em;
  line-height: 1.0;
}

.t-h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { margin: 0 0 var(--s4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* Descriptive copy runs in the display face, not the neutral body grotesque.
   Instrument Sans is deliberately characterless — excellent for form labels
   and long reading, but it makes short marketing lines read like filler.
   Space Grotesk has the quirks (that single-storey a, the flat terminals)
   that make a sentence look written rather than generated. Already loaded
   for headings, so this costs nothing. */
.lede {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  color: var(--ink-2);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

/* mono is for metadata only: labels, prices, specs, counts, addresses */
.label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.label--amber { color: var(--amber-text); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 6rem); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* ============================================================
   HEADER
   ============================================================ */
.masthead {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--void) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease),
              background var(--fast) var(--ease);
}
.masthead.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--void) 96%, transparent);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: var(--s8);
  height: 74px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--s2);
  white-space: nowrap;
  min-height: 44px;          /* home link, thumb-sized */
}
.wordmark__slash { color: var(--amber-text); }
.wordmark__sub {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding-top: 2px;
}

.nav {
  display: flex;
  gap: var(--s6);
  margin-left: auto;
  align-items: center;
}

.nav__link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding-block: var(--s2);
  transition: color var(--fast) var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--blue-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-ui) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: var(--ink); }
.nav__link[aria-current='page']::after { transform: scaleX(1); }

/* margin-left:auto, not a flex gap: once the nav collapses into the
   slide-out on phones there is nothing left between the wordmark and these,
   and they drift into the middle of the header. */
.masthead__actions {
  display: flex; align-items: center; gap: var(--s2);
  margin-left: auto;
}

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--ink-2);
  position: relative;
  transition: color var(--fast) var(--ease);
}
.icon-btn:hover { color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }

.cart-count {
  position: absolute; top: 6px; right: 4px;
  min-width: 17px; height: 17px;
  padding-inline: 4px;
  display: grid; place-items: center;
  background: var(--amber); color: var(--on-amber);
  font-family: var(--mono); font-size: 0.625rem; font-weight: 700;
  border-radius: 9px;
  transform: scale(0);
  transition: transform var(--d-ui) var(--ease);
}
.cart-count.is-on { transform: scale(1); }

.nav-toggle { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: var(--s3);
  min-height: 48px;
  padding: 0 var(--s6);
  font-family: var(--mono);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color var(--fast) var(--ease),
              color var(--fast) var(--ease),
              background var(--fast) var(--ease);
}
.btn:hover { border-color: var(--ink-2); }

/* The one button that has to look like the point of the page. Everywhere else
   on this site the accent points rather than decorates — here it is allowed to
   behave like the light source the palette says it is: a low resting glow, a
   sweep across the face on hover, and a real press. */
.btn--primary {
  position: relative;
  overflow: hidden;
  background: var(--amber);
  border-color: var(--amber);
  color: var(--on-amber);
  font-weight: 700;
  /* sits in the dark rather than on top of it */
  box-shadow: 0 6px 24px -8px var(--amber-glow);
  transition: background var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              box-shadow var(--d-ui) var(--ease),
              transform 120ms var(--ease);
}
.btn--primary:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  box-shadow: 0 10px 34px -8px var(--amber-glow);
}
.btn--primary:active { transform: translateY(1px); }

/* the sweep — one pass of light across the face, not a shimmer loop */
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg,
              transparent 20%,
              rgba(255, 255, 255, 0.28) 50%,
              transparent 80%);
  transform: translateX(-100%);
  transition: transform var(--d-section) var(--ease);
}
.btn--primary:hover::before { transform: translateX(100%); }

/* the arrow has to outrun the sweep, so it sits above it */
.btn--primary > * { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .btn--primary::before { display: none; }
}

.btn--block { width: 100%; justify-content: center; }
/* Smaller type and tighter sides, but never a smaller target — 44px stands. */
.btn--sm {
  min-height: 44px;
  padding: 0 var(--s4);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}

.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:hover { border-color: var(--line); }

.btn__arrow { transition: transform 260ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* text link with a drawn underline */
.tlink {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  display: inline-flex; align-items: center; gap: var(--s2);
  /* small mono type, thumb-sized target */
  min-height: 44px;
  padding-block: var(--s2);
}
.tlink::after {
  content: ''; position: absolute; left: 0; bottom: var(--s2);
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-ui) var(--ease);
}
.tlink:hover { color: var(--amber-text); }
.tlink:hover::after { transform: scaleX(1); }

/* ============================================================
   HERO — asymmetric, image bleeds off the right edge
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(3rem, 7vw, 6.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  /* the lighting and grid below are drawn beyond the copy's own box */
  isolation: isolate;
}

/* ---- the room ----
   The page wash behind this is deliberately faint — 5.5% orange over near
   black — which is right for the length of the site and far too little for
   the one screen a visitor lands on. Read as flat black in practice.

   Two lights, the way the car was photographed: a warm key off the right
   wall where the neon is, and a cool rim from the upper left so the dark
   side of everything has an edge. Sized in vmax so the falloff crosses the
   whole frame rather than sitting in a corner. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58vmax 44vmax at 76% 34%, rgba(255, 212, 0, 0.17), transparent 66%),
    radial-gradient(46vmax 38vmax at 12% 16%, rgba(255, 255, 255, 0.05), transparent 68%),
    radial-gradient(80vmax 50vmax at 50% 120%, rgba(0, 0, 0, 0.55), transparent 70%);
  /* the floor shadow used to stop dead at the section's bottom edge and draw
     a horizontal seam above whatever came next; fade the whole room out */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

/* ---- the drawing ----
   "Built to scale" is the whole idea and the page was not cashing it. A
   measuring grid, faint enough to be atmosphere rather than decoration,
   masked out toward the edges so it never reads as a tiled background. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(245, 245, 245, 0.05) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(to bottom, rgba(245, 245, 245, 0.05) 0 1px, transparent 1px 92px);
  -webkit-mask-image: radial-gradient(72% 62% at 46% 44%, #000 12%, transparent 78%);
  mask-image: radial-gradient(72% 62% at 46% 44%, #000 12%, transparent 78%);
}

/* ---- the dimension line ----
   A scale drawing annotates what it measures. This one measures the heading
   and states the range the shop actually stocks, which is the joke in the
   headline made literal. Visible from the first frame — it is not part of
   the chrome that fades up with the finished car. */
.hero__dim {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s6);
  color: var(--ink-3);
}
.hero__dim-rule {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  position: relative;
}
/* the end ticks, as on a drawing */
.hero__dim-rule::before,
.hero__dim-rule::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 1px; height: 7px;
  background: currentColor;
}
.hero__dim-rule::before { left: 0; }
.hero__dim-rule::after { right: 0; }
/* both rules draw outward from the label */
.hero__dim-rule:first-child { transform-origin: right center; }
.hero__dim-rule:last-child { transform-origin: left center; }
.hero__dim-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
}

/* ---- the hero is an ordinary section again ----
   This used to be a 220vh scroll driver with a sticky pin inside it, because
   the car was scrubbed against scroll position. The build plays itself on
   load now, so all of that is gone: no extra height, no pin, no sticky, and
   no scroll-behavior override to stop smooth scrolling fighting a scrubbed
   playhead. The hero is as tall as its content. */
.hero-scroll { position: relative; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__eyebrow { margin-bottom: var(--s6); }

.hero__title { margin-bottom: var(--s6); perspective: 700px; }
.hero__title em {
  font-style: normal;
  display: block;
  color: var(--amber-text);
}

/* The hero heading is split into masked WORDS by motion.js and played by the
   hero timeline in home.js — see MOTION SYSTEM at the end of this file. */

.hero__lede { max-width: 46ch; margin-bottom: var(--s8); }

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* the mono stat strip under the hero */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 6vw, 5rem);
}
/* Every cell but the first sits immediately right of a divider, and with no
   left padding the number was pressed against that rule. The first cell
   keeps a flush left edge so the strip still lines up with the page. */
.stat {
  padding: var(--s6) var(--s4) 0 var(--s6);
  border-right: 1px solid var(--line-soft);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
  /* a <dd> carries a 40px indent by default, so the number sat well right of
     its own <dt> label. Reset it — margin-inline, not margin-left, so it
     also holds in RTL. */
  margin: 0 0 var(--s2);
}
.stat__k {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* the hero photograph, bleeding past the right gutter */
/* ============================================================
   THE STAGE — hero car, cut out and lit.
   Three layers on one perspective: the neon bleeding off the wall,
   the pool of light it stands in, and the car itself. The car tilts
   toward the pointer; nothing else moves with it, which is what sells
   the depth.
   ============================================================ */
.stage {
  position: relative;
  margin: 0;
  margin-right: calc(var(--gutter) * -0.5);
  aspect-ratio: 4 / 3.05;
  display: grid;
  place-items: center;
  perspective: 1200px;
  perspective-origin: 50% 45%;
}

/* the neon, seen through the window */
.stage__glow {
  position: absolute;
  inset: 4% 0 18%;
  background:
    radial-gradient(58% 52% at 62% 42%, var(--amber-glow), transparent 68%),
    radial-gradient(38% 34% at 34% 34%, rgba(255, 255, 255, 0.06), transparent 70%);
  filter: blur(26px);
  opacity: 0.85;
  pointer-events: none;
}

/* the pool of light the car stands in */
.stage__pool {
  position: absolute;
  left: 8%; right: 8%; bottom: 15%;
  height: 16%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 212, 0, 0.2), transparent 72%);
  filter: blur(16px);
  pointer-events: none;
}

.stage__tilt {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  /* the lean is written by GSAP quickTo in home.js, which already eases —
     a CSS transition here would ease it twice and lag behind the pointer */
  will-change: transform;
}

/* idle drift — barely there. If you notice it, it's too much. */
.stage__float {
  position: relative;
  transform-style: preserve-3d;
  animation: hover 11s ease-in-out infinite;
}
@keyframes hover {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -6px, 0); }
}

.stage__car {
  position: relative;
  width: 100%;
  height: auto;
  /* the car is lit from the neon side, so it casts away from it */
  filter: drop-shadow(-14px 26px 26px rgba(0, 0, 0, 0.7))
          drop-shadow(0 2px 0 rgba(255, 220, 60, 0.16));
  transform: translateZ(60px);
}

/* ---- the car, in four cut layers ----
   tools/split_hero.py claims every opaque pixel exactly once, so these four
   stacked at rest are the original photograph pixel for pixel. They only
   ever converge — never far enough apart to ask what is behind the shell,
   because a photograph has no answer to that.

   The resting state is the finished car: parts at zero offset, sitting on
   .stage__car pixel for pixel. That is what no-JS gets, and it is what the
   build animates *to* — so if the script never runs, nothing is missing. */
.stage__part {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: auto;
  transform: translate3d(0, 0, 60px);
  filter: drop-shadow(-14px 26px 26px rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

/* ---- the build ----
   Where each part flies in from. Per-part custom properties rather than four
   sets of transform rules, so the choreography can be read as a table and
   retuned in one place. home.js reads these into its GSAP timeline (x/y as
   a percentage of the part's own box, z in px, rotation, and a start delay),
   so the table stays the single source of truth for both breakpoints. */
.stage__part[data-part="wheels"]  { --fx: -30%; --fy:  28%; --fz: -30px; --frot:  -9deg; --d:   0ms; }
.stage__part[data-part="chassis"] { --fx:  -4%; --fy:  30%; --fz: -22px; --frot:   7deg; --d: 110ms; }
.stage__part[data-part="shell"]   { --fx: -14%; --fy: -19%; --fz:  40px; --frot:  -5deg; --d: 220ms; }
.stage__part[data-part="spoiler"] { --fx: -24%; --fy: -24%; --fz:  60px; --frot:  12deg; --d: 330ms; }

/* THE PRE-PAINT HOLD.

   home.js runs at the end of <body>, so without this the browser paints
   the finished hero and then GSAP pulls it apart to build it. These pieces
   are held back from the very first frame instead, and released by
   .is-ready — which home.js adds only after every from-state is already
   applied inline, so lifting it can never flash anything.

   Gated on no-preference so a visitor who asked for less motion never has
   anything hidden, on .js so no-JS sees the page, and on :not(.motion-off)
   so a missing GSAP (or the head failsafe) shows everything. */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.motion-off) .hero:not(.is-ready) :is(
    .hero__eyebrow, .hero__title, .hero__dim, .hero__cta, .stat-strip,
    .stage__glow, .stage__car, .stage__part, .stage__tag, .stage__reflection
  ) { opacity: 0; }
}

/* showroom floor: the car doubled, flipped and faded out */
.stage__reflection {
  position: absolute;
  left: 0; top: 100%;
  width: 100%; height: auto;
  transform: scaleY(-1) translateZ(20px);
  transform-origin: top;
  opacity: 0.16;
  filter: blur(2px);
  -webkit-mask-image: linear-gradient(to top, transparent 42%, #000 96%);
  mask-image: linear-gradient(to top, transparent 42%, #000 96%);
  pointer-events: none;
}

.stage__tag {
  position: absolute;
  left: 0; bottom: 0;
  display: flex; align-items: baseline; gap: var(--s3);
  padding: var(--s2) var(--s4) var(--s2) 0;
}
.stage__tag-scale {
  font-family: var(--mono);
  font-size: 1.05rem; font-weight: 700;
  color: var(--amber-text);
  letter-spacing: -0.02em;
}
.stage__tag-name {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Catalogue shots are white-background studio work: multiplying them onto
   the plate maps that white to --plate, so every image in the grid sits on
   exactly the same ground. */
.card__frame, .terrain__plate { isolation: isolate; position: relative; }
.card__frame img, .terrain__plate img { mix-blend-mode: multiply; }


/* ============================================================
   PRODUCT GRID — 2026-10-31: plain white cards, after Jason's reference
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--s4);
}

.card {
  background: #fff;
  border: 1px solid var(--line-grid);
  border-radius: var(--radius);
  padding: var(--s3) var(--s3) var(--s4);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--d-ui) var(--ease), border-color var(--d-ui) var(--ease);
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line); }

.card__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--plate);
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: var(--s4);
}
.card__frame img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform var(--slow) var(--ease);
}
.card:hover .card__frame img { transform: scale(1.04); }

.card__scale {
  position: absolute;
  bottom: var(--s2); left: var(--s2);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  pointer-events: none;
}
.card__scale:empty { display: none; }

.card__flag {
  position: absolute;
  top: var(--s2); right: var(--s2);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--amber);
  color: var(--on-amber);
}

.card__flag--offer {
  right: auto; left: var(--s2);
  background: var(--ink); color: #fff;
}

.card__brand {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 var(--s1) var(--s2);
}

.card__name {
  font-family: var(--body);
  font-size: 0.9875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
  margin: 0 var(--s1) var(--s2);
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__name::after {
  content: '';
  position: absolute; inset: 0;
}

.card__spec {
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin: 0 var(--s1) var(--s4);
  line-height: 1.45;
}

.card__foot {
  margin: auto var(--s1) 0;
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
}

/* "was" price — only rendered when pricing.compareAt is set in the catalogue */
.card__prices { display: flex; align-items: baseline; gap: var(--s2); }
.card__was {
  font-size: 0.8125rem;
  color: var(--ink-3);
  text-decoration-thickness: 1px;
}
.card__price { font-family: var(--display); font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.card__stock {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f7a45;
}
.card__stock--low { color: var(--amber-text); }

/* ============================================================
   TERRAIN BLOCKS
   ============================================================ */
.terrains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: transparent;
}

.terrain {
  position: relative;
  background: transparent;
  box-shadow: 0 0 0 1px var(--line-grid);
  padding: var(--s6) var(--s6) var(--s8);
  display: flex;
  flex-direction: column;
  transition: background var(--d-pop) var(--ease);
}
.terrain:hover { background: rgba(245, 245, 245, 0.035); }

.terrain__plate {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--plate);
  margin-bottom: var(--s6);
}
.terrain__plate img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--d-image) var(--ease);
}
.terrain:hover .terrain__plate img { transform: scale(1.04); }

/* ============================================================
   FLOATING VARIANT — no plate; the car sits on the showroom floor.
   Must come after the plated rules above: same specificity, so source
   order decides which background and object-fit win.
   Applied only where every card in the group has a cut-out.
   ============================================================ */
.card__frame--float,
.terrain__plate--float {
  background: transparent;
  isolation: auto;
}
.card__frame--float img,
.terrain__plate--float img {
  mix-blend-mode: normal;
  object-fit: contain;
  padding: 8%;
  filter: drop-shadow(-6px 14px 14px rgba(0, 0, 0, 0.6));
  transform: none;
  transition: transform var(--slow) var(--ease);
}
/* a pool of light under each car, same idea as the hero */
.card__frame--float::after,
.terrain__plate--float::after {
  background: radial-gradient(46% 22% at 50% 84%,
              rgba(255, 212, 0, 0.16), transparent 70%);
}
.card:hover .card__frame--float img,
.terrain:hover .terrain__plate--float img {
  transform: translateY(-5px);
}

.terrain__count {
  position: absolute; top: var(--s3); right: var(--s3);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 5px 8px;
  background: var(--void);
  color: var(--amber-text);
}

.terrain__body { position: relative; }
.terrain__n {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--amber-text);
  display: block;
  margin-bottom: var(--s3);
}
.terrain__name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 var(--s3);
}
.terrain__desc {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  max-width: 34ch;
  margin: 0 0 var(--s4);
}

/* ============================================================
   SCALE BANDS — three routes into the catalogue, one line each.
   Sits under the rail; replaces a whole section of prose.
   ============================================================ */
/* Pulled outward by exactly one band's padding, so the first band's text
   still lines up with the shell edge while the hover panel has room to
   breathe around it. Without this the highlight starts flush against the
   text and reads as a rendering fault rather than a hover state. */
/* These are links to a filtered catalogue, but as three unstructured text
   blocks in a wide row they read as a caption and sat in a lot of empty
   section. They get the same hairline cell the product grid and the terrain
   blocks already use — the page has one way of drawing a clickable cell, and
   this is it — plus enough height to be worth the room the section takes. */
.bands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-inline: 0;
}
.band {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  background: transparent;
  box-shadow: 0 0 0 1px var(--line-grid);
  padding: var(--s8) var(--s6) var(--s8);
  transition: background var(--d-pop) var(--ease);
}
.band:hover,
.band:focus-visible { background: rgba(245, 245, 245, 0.035); }

.band__n {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--amber-text);
  display: block;
  margin-bottom: var(--s3);
}
.band__name {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 var(--s3);
}
.band__note {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  /* pinned to the floor of the cell so all three align regardless of the
     name's length, the way the card foot does */
  margin: auto 0 0;
  padding-right: var(--s8);
}

/* the affordance the cells were missing — nothing said these were links */
.band__go {
  position: absolute;
  right: var(--s6); bottom: var(--s8);
  color: var(--ink-3);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--d-ui) var(--ease), transform var(--d-ui) var(--ease),
              color var(--d-ui) var(--ease);
}
.band:hover .band__go,
.band:focus-visible .band__go {
  opacity: 1;
  transform: none;
  color: var(--amber-text);
}
/* Touch has no hover to reveal it, so it simply stays. */
@media (hover: none) {
  .band__go { opacity: 1; transform: none; }
}

/* ============================================================
   STORE / VISIT
   ============================================================ */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s8);
}
/* the icons in the secondary two, sized to the mono label beside them */
.visit__actions .btn svg { width: 16px; height: 16px; }
.dl { margin: 0; border-top: 1px solid var(--line); }
.dl__row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: var(--s4);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line-soft);
}
.dl dt {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.dl dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink);
}
.dl dd a { border-bottom: 1px solid var(--line); transition: border-color var(--fast) var(--ease); }
.dl dd a:hover { border-bottom-color: var(--amber-line); color: var(--amber-text); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: var(--s16) var(--s8); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--s8);
  margin-bottom: var(--s16);
}
.footer__col h4 {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 var(--s4);
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.footer__list a {
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: color var(--fast) var(--ease);
}
.footer__list a:hover { color: var(--amber-text); }

.footer__mark { margin-bottom: var(--s4); }
.footer__note { font-size: 0.9375rem; color: var(--ink-2); max-width: 40ch; }

.footer__base {
  display: flex; justify-content: space-between; gap: var(--s6);
  flex-wrap: wrap;
  padding-top: var(--s6);
  border-top: 1px solid var(--line-soft);
}
.footer__base p {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin: 0;
  max-width: none;
}

/* ============================================================
   REVEAL — fires once, transform + opacity only
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* GSAP drives reveals when present; a CSS transition on the same property
   would ease every inline write a second time */
html.has-gsap .reveal:not(.is-in) { transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  /* the stage holds its pose — no float, no tilt */
  .stage__float { animation: none; }
  .stage__tilt { transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   RESPONSIVE — composed, not squeezed
   ============================================================ */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    color: var(--ink);
  }
  .nav {
    position: fixed;
    inset: 74px 0 auto;
    background: var(--void);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s4) var(--gutter) var(--s8);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--d-ui) var(--ease), transform var(--d-ui) var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link {
    font-size: 1rem;
    padding-block: var(--s4);
    border-bottom: 1px solid var(--line-soft);
    letter-spacing: 0.1em;
  }
  .nav__link::after { display: none; }

  .hero__grid { grid-template-columns: 1fr; gap: var(--s8); }
  /* Words then car, not car then words: the sequence is that the heading
     lands and the car builds under it, which the old mobile order — car
     above the copy — gave away before it happened. Full width and no
     negative margin, because the parts need the room to fly in from. */
  .stage {
    order: 0;
    margin-inline: 0;
    aspect-ratio: 5 / 3.4;
    perspective: 900px;
  }
  .stage__reflection { display: none; }
  .stage__tag { position: static; padding: var(--s3) 0 0; }
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 0; }
  .hero__grid { gap: var(--s6); }

  /* A phone has no horizontal room to throw parts into — the stage runs the
     full width, so the desktop offsets push the wing clean off the left
     edge. Squeeze x and open up y instead: portrait has height to spend, and
     every desktop dx is negative (correct there, where the stage bleeds off
     the right gutter) which would otherwise pile the whole explosion against
     one side. Recentred, not just scaled. */
  .stage__part[data-part="wheels"]  { --fx: -1.6%; --fy:  41%; }
  .stage__part[data-part="chassis"] { --fx:  4.1%; --fy:  44%; }
  .stage__part[data-part="shell"]   { --fx:  1.9%; --fy: -28%; }
  .stage__part[data-part="spoiler"] { --fx: -0.3%; --fy: -35%; }

  /* A drop-shadow is a blur pass over the whole alpha channel, and there are
     four of them here. Cheap enough now that they only move once, but the
     glow and the floor pool already ground the car on a small screen. */
  .stage__part { filter: none; }
  .stat { padding-block: var(--s4); border-bottom: 1px solid var(--line-soft); }
  .stat:nth-child(2n) { border-right: 0; padding-left: var(--s4); }

  .terrains { grid-template-columns: 1fr; }
  .terrain { min-height: 300px; }
  /* one line, no wrap — the copy was shortened to suit */
  .terrain__desc { max-width: none; white-space: nowrap; font-size: 0.875rem; }

  /* Two across instead of one. Halves the scroll through the featured line
     and the catalogue, which is most of the page on a phone. */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Footer link lists go two-up for the same reason. */
  .footer__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }

  /* One row of three, not a stack. The explainer above already says what
     desk, shelf and track mean, so each cell only has to carry the name and
     its scale range — which is also the thing you tap to filter. Keeps the
     whole section to about one thumb-flick. */
  .bands {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s1);
    margin-inline: 0;
  }
  .band {
    padding: var(--s4) var(--s2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* the desktop cell is a tall hairline box; here it stays a compact tap
       target, so the height floor and the corner arrow both come off */
    min-height: 0;
  }
  .band__n { font-size: 0.5625rem; letter-spacing: 0.06em; margin-bottom: var(--s2); }
  .band__name { font-size: 1.375rem; margin-bottom: 0; }
  .band__note { display: none; }
  .band__go { display: none; }

  /* stack the three actions to full width rather than wrapping two-and-one */
  .visit__actions { display: grid; grid-template-columns: 1fr; }
  .visit__actions .btn { justify-content: center; }

  .visit { grid-template-columns: 1fr; gap: var(--s8); }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .masthead__inner { height: 64px; }
  .nav { inset-block-start: 64px; }
  .wordmark__sub { display: none; }

  /* reduce, don't compress: 4 stats become 2 */
  .stat-strip .stat:nth-child(n + 3) { display: none; }

  /* Two-up on phones. Briefly tried one-up for the larger photograph; on a
     real handset the scroll cost was worse than the gain — you see half as
     much of a 51-car catalogue per screen. Reverted 2026-08-20 after looking
     at it on the device, which is the only place this question can be
     settled.

     This grid is shared by the catalogue and by the homepage's featured row,
     so both stay two-up together. */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Tighter than the desktop inset because two cards now share the width.
     Not 0 — that puts the card's own hairline hard against the product name. */
  .card { padding-inline: var(--s3); }
  .card__name { font-size: 0.9375rem; }

  /* Square again. At two-up the frame is short enough that the extra height
     reads as presence rather than as scroll. */
  .card__frame { aspect-ratio: 1 / 1; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--s8); }
  .dl__row { grid-template-columns: 1fr; gap: var(--s1); }
}

/* Out of stock is a state the shopkeeper controls from the admin, so it has
   to be unmistakable on the card, not a subtle grey. */
.card__stock--out { color: #b3261e; }
.card__frame:has(+ .card__brand) { position: relative; }
.card:has(.card__stock--out) .card__frame img { opacity: 0.45; filter: grayscale(0.6); }

/* ==========================================================================
   MOTION SYSTEM — GSAP + ScrollTrigger over Lenis (2026-09 redesign)

   CSS holds only mask geometry and the footer wordmark. Every tween lives in
   motion.js (headings, copy, footer), app.js (block reveals, magnetic
   buttons) or home.js (the landing sequence), and each is skipped under
   reduced motion, where the page is simply its final state.
   ========================================================================== */

/* Word masks. The padding / negative-margin pair gives descenders and the
   display face's tight tracking room inside the clip without moving the
   text by a pixel. */
.mw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0.07em 0.14em;
  margin: -0.12em -0.07em -0.14em;
}
.mw__i { display: inline-block; }

/* ---- footer wordmark ----
   Injected by app.js, aria-hidden. One tone above the ground so it reads as
   something cut into the floor rather than printed on top of it. */
.footer__giant {
  overflow: hidden;
  margin-top: var(--s12);
  line-height: 0.8;
  user-select: none;
  pointer-events: none;
}
.footer__giant span {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 12.6vw, 13rem);
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: #1c1c1c;
  padding-bottom: 0.06em;
}
.footer__giant i { font-style: normal; color: var(--amber-text); opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  .mw__i, .footer__giant span { transform: none !important; }
}


/* ============================================================
   FLOATING WHATSAPP
   WhatsApp's own green, because that is what people look for. A pill with
   a label on a laptop, a round thumb-sized button on a phone. Sits under
   the cart drawer and its scrim.
   ============================================================ */
.wa-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px;
  padding: 0 22px 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-family: var(--body);
  font-size: 0.9375rem; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease), background var(--d-micro);
  animation: wa-in 520ms var(--ease) 900ms both;
}
/* out-specifies the tap-target rule for wa.me links in pages.css, which
   would otherwise make this a 44px-line-height inline block */
a.wa-float[href][target] { display: inline-flex; line-height: 1.2; }
.wa-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.wa-float:hover {
  background: #1fbe5b;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(37, 211, 102, 0.16);
}
.wa-float:active { transform: translateY(0) scale(0.97); }
.wa-float:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes wa-in { from { opacity: 0; transform: translateY(16px) scale(0.92); } }

@media (max-width: 760px) {
  a.wa-float[href][target] {
    width: 58px; height: 58px; min-height: 0;
    padding: 0; justify-content: center;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .wa-float svg { width: 30px; height: 30px; }
  .wa-float__t {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; transition: none; }
}


/* ============================================================
   SHOP FRONT — 2026-10-31 (evening)
   Jason's layout (Home · Catalogue · About us) in a plain white shop, with
   black bands for the header and footer. .on-dark re-points the tokens so
   every component inside a black band keeps working unchanged.
   ============================================================ */
.on-dark, .masthead, .footer {
  --void: #0d0d0d;
  --surface: #161616;
  --raised: #1f1f1f;
  --ink: #ffffff;
  --ink-2: #cfcfcf;
  --ink-3: #a0a0a0;
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.09);
  --line-grid: #2a2a2a;
  --amber-text: var(--amber);
  --amber-line: var(--amber);
  --blue-ink: var(--amber);
  color: var(--ink);
}

/* buttons: rounded, sentence case, readable at a glance */
.btn {
  border-radius: 10px;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.btn svg { width: 18px; height: 18px; }
.btn--ghost { background: transparent; }

/* ---- top strip ---- */
.topbar {
  background: var(--amber);
  color: var(--on-amber);
  font-size: 0.8125rem;
  font-weight: 600;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  min-height: 36px;
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .topbar__inner { justify-content: center; }
  .topbar .topbar__inner > a[href] { display: none; }
}

/* ---- header ---- */
.masthead,
.masthead.is-stuck { background: #0d0d0d; border-bottom-color: #0d0d0d; }
.masthead__inner { height: 68px; }
.wordmark { font-size: 1.25rem; }
/* Jason's logos (2026-10-31): the wordmark in the header, the round badge
   at the foot of the page. Cut out of their black backgrounds. */
.wordmark__logo { height: 34px; width: auto; }
.footer__badge { width: 132px; height: auto; }
@media (max-width: 900px) {
  .wordmark__logo { height: 28px; }
  .footer__badge { width: 112px; }
}
.wordmark__sub { letter-spacing: 0.14em; }
.nav { gap: var(--s8); margin-left: 0; }
/* 2026-11-01: the menu sits hard left and the logo in the middle of the
   header, as on Smithllery; the home hero's big mark flies into that slot */
.masthead__inner { position: relative; }
/* the header runs closer to the window edges than the page does: menu far
   left, search, profile and cart far right (Jason, 2026-11-01) */
.masthead .shell { max-width: none; padding-inline: clamp(16px, 2.5vw, 36px); }
.masthead .wordmark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.nav__link {
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.nav__link::after { height: 2px; background: var(--amber); }
.masthead__actions .icon-btn svg { width: 21px; height: 21px; }

/* header search — a box on a laptop, an icon that drops a full-width box
   under the header on a phone. Submits to the catalogue as ?q= */
.hsearch {
  margin-left: auto;
  display: flex; align-items: center;
  width: min(240px, 22vw);
  height: 38px;
  border-radius: 999px;
  background: #1f1f1f;
  border: 1px solid #2c2c2c;
  padding-left: var(--s4);
}
.hsearch:focus-within { border-color: var(--amber); }
.hsearch input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  color: #fff; font: inherit; font-size: 0.8125rem;
}
.hsearch input::placeholder { color: #9a9a9a; }
.hsearch input::-webkit-search-cancel-button { display: none; }
.hsearch button { width: 38px; height: 36px; display: grid; place-items: center; color: #fff; }
.hsearch svg { width: 18px; height: 18px; }
.masthead .hsearch + .masthead__actions { margin-left: var(--s6); }
/* the icons' 44px tap boxes are wider than the glyphs; pull the row out so
   the cart lines up with the page's right edge */
.masthead__actions { margin-right: -10px; gap: 0; }
.search-toggle { display: none !important; }
@media (max-width: 1180px) { .masthead .wordmark__sub { display: none; } }
@media (max-width: 1040px) { .nav { gap: var(--s6); } .hsearch { width: 180px; } }
@media (max-width: 900px) {
  .search-toggle { display: grid !important; }
  .hsearch {
    display: none;
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
    width: auto; height: 48px;
    background: #fff; border-color: var(--line); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.35);
  }
  .hsearch.is-open { display: flex; }
  .hsearch input { color: #111; font-size: 1rem; }
  .hsearch input::placeholder { color: #6a6a6a; }
  .hsearch button { color: #111; }
  .masthead .hsearch + .masthead__actions { margin-left: auto; }
}

/* Catalogue drop-down: hover or keyboard focus on a laptop, an indented
   list inside the ≡ menu on a phone */
.nav__group { position: relative; display: flex; align-items: center; }
/* every top-level link is the same box, so text and underline line up */
.nav > .nav__link, .nav__group > .nav__link { display: block; }
.nav__sub {
  position: absolute; top: 100%; left: -16px;
  min-width: 180px;
  padding: var(--s2);
  background: #fff; color: #111;
  border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
  display: grid;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--d-micro) var(--ease), transform var(--d-micro) var(--ease), visibility 0s linear var(--d-micro);
}
.nav__group::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav__group:hover .nav__sub,
.nav__group:focus-within .nav__sub {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav__sub a {
  padding: 9px 12px; border-radius: 8px;
  font-size: 0.9375rem; font-weight: 600;
}
.nav__sub a:hover { background: var(--amber); }
.icon-btn[aria-current='page'] { color: var(--amber); }
@media (max-width: 900px) {
  /* hangs off the header itself, so it lands right under it whether or not
     the yellow strip above has scrolled away */
  .masthead .nav { position: absolute; inset: 100% 0 auto; margin-left: 0; gap: 0; }
  /* on a phone the menu folds into ≡, so the logo goes back to the left */
  .masthead .wordmark { position: static; transform: none; }
  .masthead .nav__link { letter-spacing: 0; display: block; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; color: inherit; box-shadow: none; min-width: 0;
    padding: 0 0 var(--s2) var(--s4);
    border-bottom: 1px solid var(--line-soft); border-radius: 0;
  }
  /* a column, not the laptop's row: otherwise the list sits beside the
     word "Catalogue" and the two overlap */
  .nav__group { display: block; }
  .nav__group > .nav__link { border-bottom: 0; }
  .nav__group::after { display: none; }
  .nav__sub a { display: block; color: var(--ink-2); padding: 12px 0; }
  .nav__sub a:hover { background: none; color: var(--amber); }
}

/* ---- sections ---- */
.sec { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.sec--grey { background: var(--surface); }
.sec__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s6);
}
.sec__title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.sec__head .tlink { white-space: nowrap; }

/* ---- category tabs (catalogue) ---- */
.tabs {
  display: flex; gap: var(--s2);
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 var(--s8);
  padding-bottom: 2px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px;
  padding: 0 var(--s4);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  background: #fff;
  transition: background var(--d-micro) var(--ease), color var(--d-micro) var(--ease), border-color var(--d-micro) var(--ease);
}
.tab:hover { border-color: var(--ink); }
.tab__n { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); }
.tab[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab[aria-pressed='true'] .tab__n { color: var(--amber); }

/* ---- About: Jason ---- */
.owner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: var(--s6) clamp(1rem, 3vw, 2rem);
}
.owner__photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--plate); position: sticky; top: 120px; }
.owner__photo img { width: 100%; height: auto; }
.owner__copy .sec__title { margin: var(--s3) 0 var(--s6); }
.owner__copy p { color: var(--ink-2); max-width: 54ch; }
.owner__copy .sec__title { font-size: clamp(1.75rem, 2.8vw, 2.4rem); margin: 0; }
.owner__sub { margin: var(--s3) 0 var(--s6); }
.owner__sign { color: var(--ink) !important; font-weight: 700; margin-top: var(--s6); }
.owner__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }
@media (max-width: 760px) {
  .owner { grid-template-columns: 1fr; }
  .owner__photo { max-width: 520px; }
}

/* ---- facts strip (About us; moved off the home page 2026-10-31) ---- */
.perks {
  list-style: none; margin: var(--s8) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-grid);
  border-radius: var(--radius);
}
.perks li {
  padding: var(--s4) var(--s6);
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.4;
}
.perks li + li { border-left: 1px solid var(--line-grid); }
.perks b { display: block; color: var(--ink); font-size: 0.9375rem; }

@media (max-width: 1080px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks li:nth-child(3) { border-left: 0; }
  .perks li:nth-child(n + 3) { border-top: 1px solid var(--line-grid); }
}
@media (max-width: 620px) {
  .perks li { padding: var(--s3) var(--s4); font-size: 0.8125rem; }
}

/* ---- About: contact cards ---- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: var(--s6);
}
.ccard {
  display: flex; flex-direction: column; gap: var(--s1);
  padding: var(--s6);
  background: #fff;
  border: 1px solid var(--line-grid);
  border-radius: var(--radius);
  transition: box-shadow var(--d-ui) var(--ease), border-color var(--d-ui) var(--ease);
}
.ccard:hover { box-shadow: var(--shadow); border-color: var(--line); }
/* beats the phone tap-target rule for tel:/mailto:/wa.me links in pages.css */
.contact-cards a.ccard[href] { display: flex; min-height: 0; line-height: 1.5; }
.ccard__ic {
  width: 44px; height: 44px; margin-bottom: var(--s3);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--amber); color: var(--on-amber);
}
.ccard__ic svg { width: 20px; height: 20px; }
.ccard__k { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.ccard__v { font-weight: 700; font-size: 1.0625rem; }
.ccard__d { font-size: 0.875rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 1080px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .contact-cards { grid-template-columns: 1fr; gap: var(--s3); }
  .contact-cards a.ccard[href] {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s4);
    padding: var(--s4);
  }
  .ccard__ic { grid-row: 1 / span 3; margin: 0; }
}

.openline {
  display: inline-flex; align-items: center; gap: var(--s3);
  margin: var(--s6) 0 0;
  font-size: 0.875rem; font-weight: 600;
  color: var(--ink-2);
}
.openline__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.openline.is-open .openline__dot { background: #1f8a4c; box-shadow: 0 0 0 4px rgba(31, 138, 76, 0.16); }

/* ---- footer ---- */
.footer { background: #0d0d0d; border-top: 0; padding-block: var(--s8) var(--s6); }
/* 2026-11-01: one short row on every page — badge, the help links, small
   contact icons — and the copyright line. Jason asked for it pared down. */
.footer__row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--s6) var(--s8);
}
/* laptop: help links on the left, the badge in the middle, icons on the
   right. Source order stays badge, links, icons; the grid places them. */
@media (min-width: 761px) {
  .footer__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .footer__mark { grid-column: 2; grid-row: 1; justify-self: center; }
  .footer__links { grid-column: 1; grid-row: 1; justify-self: start; }
  .footer__social { grid-column: 3; grid-row: 1; justify-self: end; }
}
.footer .footer__badge { width: 72px; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.footer__links a { color: var(--ink-2); font-size: 0.9375rem; }
.footer__links a:hover { color: var(--amber); }
.footer__social { display: flex; gap: var(--s2); }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink);
  transition: background var(--d-micro) var(--ease), color var(--d-micro) var(--ease), border-color var(--d-micro) var(--ease);
}
.footer__social a:hover { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }
.footer__social svg { width: 18px; height: 18px; }
/* beats the phone tap-target rule for tel:/mailto:/wa.me links in pages.css */
.footer .footer__social a[href] { display: grid; min-height: 0; line-height: 1; }
.footer__copy { margin: var(--s6) 0 0; font-size: 0.8125rem; color: var(--ink-3); }
@media (max-width: 760px) {
  .footer__row { flex-direction: column; align-items: center; text-align: center; }
  .footer__links { justify-content: center; }
  .footer__copy { text-align: center; }
}
main { padding-bottom: clamp(2rem, 5vw, 4rem); }
main:has(> .sec--grey:last-child) { padding-bottom: 0; }

.tlink { font-family: var(--body); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; text-transform: none; }


/* ============================================================
   MOTION — 2026-11-01. Small and purposeful, built on the tokens above.
   Nothing scroll-scrubbed or pinned: those were the "glitches" Jason saw.
   The global reduced-motion rule further up stills all of it.
   ============================================================ */

/* press feedback on everything you tap */
.btn, .tab { transition-property: border-color, color, background, box-shadow, transform; }
.btn:active, .tab:active { transform: scale(0.97); transition-duration: var(--d-micro); }
.card, .ccard { transition: box-shadow var(--d-ui) var(--ease), border-color var(--d-ui) var(--ease),
                            transform var(--d-micro) var(--ease); }
.card:active, .ccard:active { transform: scale(0.985); }

/* a fresh set of cards rises into place instead of swapping in a frame.
   --d is the stagger shop.js already sets (0–240ms, first row only).
   `backwards` releases the transform the moment it ends, so press and
   hover still work. */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.shop .card { animation: cardIn var(--d-ui) var(--ease) backwards; animation-delay: var(--d, 0ms); }

/* phone search box drops out of the header */
.hsearch { transform-origin: top center; transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
@starting-style {
  .hsearch.is-open { opacity: 0; transform: translateY(-6px); }
}


/* ============================================================
   REELS — Instagram reels as silent loops (home, events)
   ============================================================ */
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.reel {
  position: relative; display: block;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  isolation: isolate;
}
.reel__v { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--slow) var(--ease); }
.reel::after {
  content: ''; position: absolute; inset: 55% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.reel__cta {
  position: absolute; left: var(--s4); bottom: var(--s4); z-index: 1;
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: #111;
  font-size: 0.8125rem; font-weight: 700;
  transition: background var(--d-micro) var(--ease), transform var(--d-ui) var(--ease);
}
.reel__cta svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .reel:hover .reel__v { transform: scale(1.03); }
  .reel:hover .reel__cta { background: var(--amber); transform: translateY(-2px); }
}

.reel__tag {
  position: absolute; left: var(--s4); top: var(--s4); z-index: 1;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(13, 13, 13, 0.75); color: #fff;
  font-size: 0.75rem; font-weight: 700;
}
@media (max-width: 900px) {
  .reels {
    grid-template-columns: repeat(3, 72%);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  }
  .reels::-webkit-scrollbar { display: none; }
  /* Without this the snapping lines the first reel up with the screen edge and
     ignores the padding, so it sat hard against the left side. */
  .reels { scroll-padding-inline: var(--gutter); }
  .reel { scroll-snap-align: start; }
}

/* ============================================================
   EVENTS — 2026-11-01, from Jason's sketch
   ============================================================ */
.asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s6); }
.ask {
  display: grid; gap: var(--s2); align-content: start;
  padding: var(--s6);
  background: #0d0d0d; color: #fff;
  border-radius: var(--radius);
  transition: transform var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease);
}
.ask__t { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.ask__d { color: #cfcfcf; font-size: 0.9375rem; }
.ask__go { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s4); color: var(--amber); font-weight: 700; }
.ask__go svg { width: 16px; height: 16px; transition: transform var(--d-ui) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .ask:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .ask:hover .ask__go svg { transform: translateX(4px); }
}
.ask:active { transform: scale(0.98); transition-duration: var(--d-micro); }
#event-reels .reels { margin-top: var(--s6); }

.evlist { display: grid; gap: var(--s6); margin-top: var(--s6); }
.ev { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s8); align-items: center; }
.ev__photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--plate); }
.ev__photo img { width: 100%; height: auto; display: block; }
.ev__name { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0 0 var(--s3); }
.ev__text { color: var(--ink-2); max-width: 52ch; }
.evnames { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s3); }
.evnames li {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 700;
}
@media (max-width: 900px) {
  .asks { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 1fr; gap: var(--s4); }
}

/* lifted by home.js when it would cover the hero's Instagram / YouTube buttons */
.wa-float { translate: 0 calc(-1 * var(--lift, 0px)); transition-property: background, transform, box-shadow, translate; }



/* ============================================================
   PHONE POLISH — 2026-11-11
   ============================================================ */
@media (max-width: 760px) {
  /* the floating WhatsApp button never moves with the scroll */
  .wa-float { translate: none; transition-property: background, box-shadow; animation: none; }
  /* the product page's fixed Add to cart bar sits under it */
  body.has-buyfix a.wa-float[href][target] { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---- PHONE AUDIT 2026-11-11: the WhatsApp button is smaller, steps aside
   while you read downward, and is gone on the checkout (the pay bar owns the
   bottom edge there). ---- */
@media (max-width: 760px) {
  a.wa-float[href][target] {
    width: 52px; height: 52px;
    right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .wa-float svg { width: 27px; height: 27px; }
  .wa-float { transition-property: background, box-shadow, opacity, transform; transition-duration: 200ms, 200ms, 220ms, 260ms; }
  .wa-float.is-away { opacity: 0; transform: translateY(18px) scale(0.9); pointer-events: none; }
  body:has(#co-form:not([hidden])) a.wa-float[href][target] { display: none; }
  body.has-buyfix a.wa-float[href][target] { bottom: calc(88px + env(safe-area-inset-bottom)); }
}


/* ============================================================
   PAGE TRANSITION — circle reveal (2026-11-13; was a tile dissolve)
   Every same-site navigation: the old page stays put and the new page opens
   over it as a growing circle, from where you tapped. assets/js/vt.js drives
   the circle. Browsers without cross-document View Transitions (Firefox)
   simply load the next page as before.
   ============================================================ */
:root { --d-circle: 650ms; }

@view-transition { navigation: auto; }

/* no cross-fade of the browser's own: the old page holds, the circle does the rest */
::view-transition-group(root) { animation: none; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
