/* ==========================================================================
   Bike 88 — site.css
   Design system + components. Authored for bike88.us
   Brand: gradient #FBB03B -> #D4145A, corporate black #191919
   ========================================================================== */

/* ---------- Fonts ---------------------------------------------------- */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-latin.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-latin-ext.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var-latin.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var-latin-ext.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens --------------------------------------------------- */

:root {
  /* Brand */
  --brand-amber: #fbb03b;
  --brand-crimson: #d4145a;
  --brand-black: #191919;
  --brand-gradient: linear-gradient(115deg, var(--brand-amber) 0%, #f7643f 48%, var(--brand-crimson) 100%);

  /* Surfaces */
  --bg: #0b0b0d;
  --bg-raised: #141417;
  --bg-sunken: #08080a;
  --surface: #17171b;
  --surface-hi: #1e1e24;
  --line: #2a2a31;
  --line-soft: #202027;

  /* Text — all pairings below meet WCAG AA on --bg */
  --ink: #f4f4f5;        /* 18.1:1 */
  --ink-muted: #a8a8b3;  /*  7.4:1 */
  --ink-dim: #7d7d88;    /*  4.6:1 */
  --ink-invert: #0b0b0d;

  /* Interactive — amber clears AA on dark; crimson is decorative only */
  --accent: #fbb03b;
  --accent-hover: #ffc463;

  /* Type */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.42rem);
  --step-2: clamp(1.44rem, 1.32rem + 0.6vw, 1.85rem);
  --step-3: clamp(1.73rem, 1.53rem + 0.98vw, 2.4rem);
  --step-4: clamp(2.07rem, 1.76rem + 1.55vw, 3.13rem);
  --step-5: clamp(2.49rem, 2.01rem + 2.38vw, 4.07rem);
  --step-6: clamp(2.99rem, 2.27rem + 3.58vw, 5.29rem);

  /* Space */
  --gap-xs: 0.5rem;
  --gap-sm: 0.875rem;
  --gap: 1.25rem;
  --gap-md: 2rem;
  --gap-lg: 3.5rem;
  --gap-xl: 5.5rem;
  --section-y: clamp(4rem, 3rem + 5vw, 8rem);

  --measure: 66ch;
  --shell: 1200px;
  --shell-wide: 1360px;
  --radius: 4px;
  --radius-lg: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base --------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-6); font-weight: 800; }
h2 { font-size: var(--step-4); font-weight: 700; }
h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: var(--step-1); font-weight: 600; font-stretch: 105%; }

p { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

strong { font-weight: 650; color: var(--ink); }
small { font-size: var(--step--1); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--gap-md) 0; }

ul, ol { padding-left: 1.15rem; margin: 0 0 1.1em; max-width: var(--measure); }
li { margin-bottom: 0.4em; }
li::marker { color: var(--ink-dim); }

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

::selection { background: var(--brand-crimson); color: #fff; }

/* ---------- Layout --------------------------------------------------- */

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}
.shell-wide { width: min(100% - 2.5rem, var(--shell-wide)); margin-inline: auto; }
@media (max-width: 640px) {
  .shell, .shell-wide { width: min(100% - 2rem, var(--shell)); }
}

section { position: relative; }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-sunken { background: var(--bg-sunken); }
.section-raised { background: var(--bg-raised); }
.section + .section-raised,
.section-raised + .section { border-top: 1px solid var(--line-soft); }

.stack > * + * { margin-top: var(--gap); }
.stack-lg > * + * { margin-top: var(--gap-lg); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--ink-invert);
  padding: 0.7rem 1.1rem;
  font-weight: 650;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Typographic helpers -------------------------------------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 var(--gap-sm);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--brand-gradient);
  flex: none;
}
.eyebrow-plain::before { display: none; }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-muted);
  font-weight: 350;
  max-width: 56ch;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--ink-muted); }
.dim { color: var(--ink-dim); }
.tnum { font-variant-numeric: tabular-nums; }

.section-head { max-width: 62ch; margin-bottom: var(--gap-lg); }

/* ---------- Buttons -------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 650;
  font-stretch: 105%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-bd: transparent;
  --btn-fg: #14060a;
  background: var(--brand-gradient);
  position: relative;
}
.btn-primary:hover { --btn-fg: #14060a; filter: brightness(1.08); }

.btn-ghost { --btn-bd: var(--line); --btn-fg: var(--ink); }
.btn-ghost:hover { --btn-bd: var(--ink-dim); background: var(--surface); color: var(--ink); }

.btn-quiet {
  --btn-bd: transparent;
  --btn-fg: var(--ink-muted);
  padding-inline: 0;
}
.btn-quiet:hover { --btn-fg: var(--accent); background: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--gap-sm); align-items: center; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 650;
  font-stretch: 103%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}
.arrow-link::after {
  content: '→';
  transition: transform 0.2s var(--ease);
}
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Header --------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  min-height: 72px;
}
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 30px; width: auto; }

.nav { margin-left: auto; }
.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  max-width: none;
}
.nav li { margin: 0; }
.nav a {
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 600;
  font-stretch: 102%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  padding-block: 0.35rem;
  position: relative;
  transition: color 0.18s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); }
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand-gradient);
}
.header-cta { flex: none; }
/* .nav a sets a muted colour; buttons inside the nav must keep their own. */
.nav li a.btn { color: var(--btn-fg); padding-block: 0.7rem; }
.nav li a.btn-ghost:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }
.nav-toggle[aria-expanded='true'] .icon-open { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  /* The CTA is the only route to /contact now, so it has to live inside the
     mobile menu rather than being hidden with the desktop header. */
  .nav li.header-cta { border-top: 0; }
  .nav li.header-cta a.btn { margin-top: var(--gap); width: 100%; }
  .nav {
    position: fixed;
    inset: 72px 0 auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: var(--gap) 0 var(--gap-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .nav[data-open='true'] { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(100% - 2rem, var(--shell));
    margin-inline: auto;
  }
  .nav li + li { border-top: 1px solid var(--line-soft); }
  .nav a { display: block; padding: 0.95rem 0; font-size: 0.95rem; }
  .nav a[aria-current='page']::after { display: none; }
  /* `.nav a` above sets display:block and would flatten the button's flex
     centring, so restore it here rather than relying on .btn's own value. */
  .nav li.header-cta a.btn { display: flex; }
}

/* ---------- Hero ----------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 9vw, 9.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  top: -30%;
  right: -10%;
  width: min(900px, 85vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%,
    color-mix(in srgb, var(--brand-crimson) 30%, transparent) 0%,
    color-mix(in srgb, var(--brand-amber) 12%, transparent) 42%,
    transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-inner { max-width: 42rem; }
.hero h1 { font-size: var(--step-5); max-width: 15ch; margin-bottom: var(--gap); }
.hero .lede { margin-bottom: var(--gap-md); max-width: 46ch; }

.hero-tagline {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--gap);
}

.hero-mark {
  position: absolute;
  z-index: -1;
  right: clamp(-120px, -4vw, 0px);
  top: 50%;
  translate: 0 -50%;
  width: min(460px, 42vw);
  opacity: 0.07;
  pointer-events: none;
}
@media (max-width: 900px) { .hero-mark { display: none; } }

/* ---------- Stat / trust bar ----------------------------------------- */

.statbar {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-sunken);
}
.statbar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.stat {
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem) clamp(1rem, 0.6rem + 1.4vw, 2rem);
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 720px) {
  .stat { border-left: 0; border-top: 1px solid var(--line-soft); padding-inline: 0; }
  .stat:first-child { border-top: 0; }
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 750;
  font-stretch: 110%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: var(--step--1);
  color: var(--ink-dim);
  line-height: 1.45;
  margin: 0;
}

/* ---------- Cards / grids -------------------------------------------- */

.grid { display: grid; gap: var(--gap); }
/* Minimums are tuned so a 1200px shell resolves to exactly 2 / 3 / 4 columns,
   which keeps the 6- and 8-item sets from leaving orphans on the last row. */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-muted); font-size: var(--step--1); line-height: 1.6; }

.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover {
  border-color: color-mix(in srgb, var(--brand-amber) 45%, var(--line));
  background: var(--surface-hi);
  transform: translateY(-3px);
  color: inherit;
}
.card-link::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--brand-gradient);
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.3s var(--ease);
}
.card-link:hover::after { scale: 1 1; }

.card-index {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-bottom: 1.6rem;
  display: block;
}

.card-cta {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  gap: 0.4rem;
}
.card-cta::after { content: '→'; transition: transform 0.2s var(--ease); }
.card-link:hover .card-cta::after { transform: translateX(4px); }

/* Feature card: gradient rule along the top edge only.
   Done with a pseudo-element because `border-image` paints all four sides. */
.card-feature::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--brand-gradient);
}

/* ---------- Category tiles (photo-free) ------------------------------ */

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: clamp(1.3rem, 1rem + 1vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tile::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.tile::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -30%;
  top: -46%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand-gradient);
  opacity: 0.09;
  filter: blur(44px);
  transition: opacity 0.3s var(--ease);
}
.tile:hover {
  border-color: color-mix(in srgb, var(--brand-amber) 50%, var(--line));
  transform: translateY(-3px);
  color: inherit;
}
.tile:hover::after { opacity: 0.32; }

.tile-name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 750;
  font-stretch: 114%;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.tile-note {
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin: 0.45rem 0 0;
  line-height: 1.5;
}
.tile-num {
  position: absolute;
  top: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  left: clamp(1.3rem, 1rem + 1vw, 1.8rem);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}

/* ---------- Spec / definition list ----------------------------------- */

.spec {
  border-top: 1px solid var(--line);
  margin: 0;
  max-width: none;
}
.spec > div {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) 1fr;
  gap: var(--gap);
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 640px) {
  .spec > div { grid-template-columns: 1fr; gap: 0.2rem; }
}
.spec dt {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.spec dd { margin: 0; color: var(--ink); }
.spec dd p { font-size: inherit; }

/* ---------- Checklist ------------------------------------------------ */

.checklist { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.75rem;
  color: var(--ink-muted);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--brand-gradient);
}
.checklist strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Split / prose -------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 5vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split-sticky { position: sticky; top: 7rem; }
@media (max-width: 880px) { .split-sticky { position: static; } }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--gap-lg); margin-bottom: var(--gap); font-size: var(--step-3); }
.prose h3 { margin-top: var(--gap-md); margin-bottom: 0.6rem; font-size: var(--step-1); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-muted); }
.prose strong { color: var(--ink); }

.page-head { padding-block: clamp(3rem, 2.2rem + 4vw, 6rem) var(--gap-lg); }
.page-head h1 { font-size: var(--step-5); margin-bottom: var(--gap); }

/* ---------- Callout -------------------------------------------------- */

.callout {
  position: relative;
  border: 1px solid var(--line);
  border-left: 0;
  background: var(--surface);
  padding: clamp(1.2rem, 1rem + 0.8vw, 1.7rem);
  border-radius: 0 var(--radius) var(--radius) 0;
}
/* Accent rule on the left edge only — see the note on .card-feature. */
.callout::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--brand-gradient);
}
.callout p { font-size: var(--step--1); color: var(--ink-muted); }
.callout p:first-child { margin-top: 0; }

.note {
  font-size: var(--step--1);
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: var(--measure);
}

/* ---------- CTA band ------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-sunken);
  border-block: 1px solid var(--line-soft);
}
.cta-band::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse 70% 130% at 78% 50%,
    color-mix(in srgb, var(--brand-crimson) 22%, transparent),
    transparent 70%);
}
.cta-band h2 { margin-bottom: var(--gap); max-width: 20ch; }

/* ---------- Forms ---------------------------------------------------- */

.form { display: grid; gap: var(--gap); max-width: 620px; }
.field { display: grid; gap: 0.45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

label {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
label .req { color: var(--brand-amber); }

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-dim); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-amber) 18%, transparent);
}
input::placeholder, textarea::placeholder { color: #5d5d68; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23a8a8b3' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: var(--step--1);
  display: none;
}
.form-status[data-state='ok'] {
  display: block;
  border-color: color-mix(in srgb, var(--brand-amber) 45%, var(--line));
  background: color-mix(in srgb, var(--brand-amber) 9%, transparent);
  color: var(--ink);
}
.form-status[data-state='error'] {
  display: block;
  border-color: color-mix(in srgb, var(--brand-crimson) 55%, var(--line));
  background: color-mix(in srgb, var(--brand-crimson) 12%, transparent);
  color: var(--ink);
}

/* ---------- Contact rail --------------------------------------------- */

.contact-rail { display: grid; gap: var(--gap-md); }
.rail-title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  font-stretch: 105%;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.4rem;
}
.contact-block p { font-size: var(--step--1); color: var(--ink-muted); margin: 0; }
.contact-block a { color: var(--accent); }

/* ---------- Footer --------------------------------------------------- */

.site-footer {
  background: var(--bg-sunken);
  border-top: 1px solid var(--line);
  padding-block: var(--gap-xl) var(--gap-md);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--gap-lg) var(--gap-md);
}
.footer-brand img { height: 28px; margin-bottom: var(--gap); }
.footer-brand p { font-size: var(--step--1); color: var(--ink-dim); max-width: 34ch; }

/* Footer column labels name a <nav> landmark rather than acting as document
   headings — using <h5> here created an h2 -> h5 jump on every page. */
.footer-col-title {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 var(--gap-sm);
  max-width: none;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  font-size: var(--step--1);
  color: var(--ink-muted);
  text-decoration: none;
}
.footer-col a:hover { color: var(--accent); text-decoration: underline; }

.footer-legal {
  margin-top: var(--gap-xl);
  padding-top: var(--gap);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm) var(--gap-md);
  align-items: baseline;
  justify-content: space-between;
}
.footer-legal p { font-size: var(--step--1); color: var(--ink-dim); margin: 0; max-width: none; }
.footer-legal .entity { font-variant-numeric: tabular-nums; }

/* ---------- Utilities ------------------------------------------------ */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.center { text-align: center; margin-inline: auto; }
.center p, .center .lede { margin-inline: auto; }
.flow-tight > * + * { margin-top: var(--gap-sm); }
.pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-dim);
}
.pill-live { border-color: color-mix(in srgb, var(--brand-amber) 50%, var(--line)); color: var(--brand-amber); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: var(--step--1); }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line-soft); }
th {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-bottom-color: var(--line);
}
td { color: var(--ink-muted); }

/* ---------- Print ---------------------------------------------------- */

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .hero::before, .hero::after, .hero-mark { display: none; }
  a { color: #000; }
}
