/* ============================================================
   RIVET & ROAD - custom steel bicycles, Bexley Junction, est. 2009
   Identity: "Gran Fondo Poster" - vintage cycling-race poster look.
   Cream paper, racing green, rosso corsa red, chrome detail.
   Bodoni Moda (display, opsz) / Albert Sans (body).
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* color: OKLCH, poster-paper palette */
  --paper:        oklch(95.5% 0.021 85);
  --paper-deep:   oklch(91.5% 0.032 82);
  --ink:          oklch(24% 0.028 150);
  --ink-soft:     oklch(34% 0.03 150);
  --green:        oklch(38% 0.095 150);
  --green-deep:   oklch(29% 0.08 152);
  --rosso:        oklch(55% 0.2 27);
  --rosso-deep:   oklch(46% 0.17 27);
  --chrome:       oklch(72% 0.012 250);
  --chrome-dim:   oklch(58% 0.014 250);
  --saddle:       oklch(46% 0.075 75);
  --cream-card:   oklch(97.5% 0.014 90);
  --line:         oklch(80% 0.03 90);
  --line-strong:  oklch(66% 0.05 95);

  /* type */
  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-body: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --font-optical-display: 40;

  /* scale (fluid) */
  --step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.8rem);
  --step--1: clamp(0.88rem, 0.85rem + 0.15vw, 0.98rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1: clamp(1.22rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.55rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.6rem + 4vw, 4.6rem);
  --step-5: clamp(3.2rem, 1.4rem + 7vw, 6.4rem);

  /* space (4px base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 1rem; --s-4: 1.5rem;
  --s-5: 2.5rem; --s-6: 4rem; --s-7: 6.5rem;

  /* misc */
  --radius: 3px;
  --wrap: 74rem;
  --wrap-narrow: 46rem;
  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --spin: 0s; /* set live by JS: wheel rotation speed */
}

[data-theme="night"] {
  --paper:        oklch(20% 0.02 150);
  --paper-deep:   oklch(16% 0.018 150);
  --ink:          oklch(90% 0.02 85);
  --ink-soft:     oklch(76% 0.025 85);
  --green:        oklch(62% 0.1 150);
  --green-deep:   oklch(48% 0.08 152);
  --rosso:        oklch(63% 0.19 27);
  --rosso-deep:   oklch(52% 0.16 27);
  --chrome:       oklch(68% 0.012 250);
  --chrome-dim:   oklch(52% 0.014 250);
  --saddle:       oklch(60% 0.08 75);
  --cream-card:   oklch(24% 0.022 150);
  --line:         oklch(34% 0.03 150);
  --line-strong:  oklch(48% 0.04 150);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 430;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: none;
  font-variation-settings: "opsz" var(--font-optical-display);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rosso-deep); }
::selection { background: var(--rosso); color: var(--paper); }
:focus-visible { outline: 3px solid var(--rosso); outline-offset: 3px; border-radius: 2px; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-deep); color: var(--paper);
  padding: 0.75rem 1.25rem; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }
.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.wrap-narrow { width: min(var(--wrap-narrow), 88vw); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.sr-only:focus-within { position: static; width: auto; height: auto; clip: auto; }

/* ---------- 3. Page-transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: rr-out 220ms var(--ease-inout) both; }
::view-transition-new(root) { animation: rr-in 260ms var(--ease-inout) both; }
@keyframes rr-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes rr-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 300ms var(--ease-out), border-color 300ms;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px oklch(24% 0.03 150 / 0.35); border-color: var(--line-strong); }
.header-inner {
  display: flex; align-items: center; gap: var(--s-4);
  min-height: var(--header-h); width: min(var(--wrap), 92vw); margin-inline: auto;
}
.wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 0.6rem; white-space: nowrap;
}
.wordmark .badge {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--green-deep); color: var(--paper);
  display: grid; place-items: center; font-size: 0.72rem; letter-spacing: 0.06em;
  font-family: var(--font-body); font-weight: 800;
  animation: badge-spin 14s linear infinite;
}
@keyframes badge-spin { to { transform: rotate(360deg); } }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: var(--s-2); padding: 0; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: var(--step--1);
  padding: 0.45rem 0.7rem; border-radius: var(--radius);
  background-image: linear-gradient(var(--rosso), var(--rosso));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%;
  transition: background-size 260ms var(--ease-out), color 200ms;
}
.site-nav a:hover, .site-nav a:focus-visible { background-size: 100% 2px; color: var(--rosso-deep); }
.site-nav a[aria-current="page"] { color: var(--rosso-deep); background-size: 100% 2px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0.5rem 0.8rem; font-weight: 700; cursor: pointer; }
@media (max-width: 56rem) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--paper); border-bottom: 2px solid var(--green-deep);
    padding: var(--s-4); transform: translateY(-130%); transition: transform 340ms var(--ease-inout);
    box-shadow: 0 30px 60px -30px oklch(0% 0 0 / 0.4);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 0.9rem 0.5rem; font-size: var(--step-1); border-bottom: 1px solid var(--line); }
}
.theme-toggle {
  background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.35rem 0.85rem; cursor: pointer; font-size: var(--step--2); font-weight: 700;
  color: var(--ink); transition: background 200ms, color 200ms, transform 150ms;
}
.theme-toggle:hover { background: var(--green-deep); color: var(--paper); }
.theme-toggle:active { transform: scale(0.95); }

/* ---------- 5. Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 750; font-size: var(--step--1);
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  padding: 0.85rem 1.6rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 160ms var(--ease-out), box-shadow 200ms, background 200ms, color 200ms;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, oklch(100% 0 0 / 0.25) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 500ms var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary { background: var(--rosso); color: var(--paper); }
.btn-primary:hover { background: var(--rosso-deep); transform: translateY(-2px); box-shadow: 0 12px 24px -12px oklch(46% 0.17 27 / 0.6); }
.btn-primary:active { transform: translateY(0); }
.btn-green { background: var(--green-deep); color: var(--paper); }
.btn-green:hover { background: var(--green); transform: translateY(-2px); box-shadow: 0 12px 24px -12px oklch(38% 0.095 150 / 0.6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--rosso); color: var(--rosso-deep); transform: translateY(-2px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.chip {
  display: inline-block; font-size: var(--step--2); font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.chip-green { background: var(--green-deep); color: var(--paper); }
.chip-rosso { background: var(--rosso); color: var(--paper); }
.chip-line { border: 1px solid var(--line-strong); color: var(--ink-soft); }
.chip-sold { background: var(--ink); color: var(--paper); }

/* ---------- 6. Forms & states ---------- */
.field { display: grid; gap: 0.35rem; margin-bottom: var(--s-4); }
.field label { font-weight: 700; font-size: var(--step--1); letter-spacing: 0.02em; }
.field .hint { font-size: var(--step--2); color: var(--ink-soft); }
.input, .select, .textarea {
  width: 100%; background: var(--cream-card);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.75rem 0.9rem; transition: border-color 200ms, box-shadow 200ms, background 200ms;
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-soft); }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible {
  outline: none; border-color: var(--rosso);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--rosso) 25%, transparent);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--rosso-deep); background: color-mix(in oklch, var(--rosso) 7%, var(--cream-card)); }
.error-msg { color: var(--rosso-deep); font-size: var(--step--2); font-weight: 700; min-height: 1.2em; }
.form-note { font-size: var(--step--2); color: var(--ink-soft); border-left: 3px solid var(--line-strong); padding-left: 0.8rem; }
.form-note strong { color: var(--ink); }
.toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translate(-50%, 8rem);
  background: var(--ink); color: var(--paper); padding: 0.8rem 1.3rem;
  border-radius: var(--radius); font-weight: 650; font-size: var(--step--1);
  z-index: 150; box-shadow: 0 18px 40px -18px oklch(0% 0 0 / 0.5);
  transition: transform 380ms var(--ease-out), opacity 300ms; opacity: 0;
}
.toast.is-live { transform: translate(-50%, 0); opacity: 1; }
.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid color-mix(in oklch, var(--paper) 40%, transparent);
  border-top-color: var(--paper); animation: rr-spin 700ms linear infinite;
}
@keyframes rr-spin { to { transform: rotate(360deg); } }
.empty-state {
  border: 2px dashed var(--line-strong); border-radius: var(--radius);
  padding: var(--s-6) var(--s-4); text-align: center; color: var(--ink-soft);
}
.error-state { border: 2px solid var(--rosso-deep); background: color-mix(in oklch, var(--rosso) 8%, var(--paper)); padding: var(--s-4); border-radius: var(--radius); }

/* ---------- 7. Footer ---------- */
.site-footer {
  margin-top: var(--s-7); background: var(--green-deep); color: var(--paper);
  padding: var(--s-6) 0 var(--s-4);
  border-top: 6px solid var(--rosso);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-5); }
@media (max-width: 56rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--s-3); color: oklch(88% 0.03 85); }
.site-footer a { color: var(--paper); text-decoration-color: oklch(88% 0.03 85 / 0.5); }
.site-footer a:hover { color: oklch(92% 0.04 60); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.footer-note { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid oklch(88% 0.03 85 / 0.25); font-size: var(--step--2); color: oklch(88% 0.03 85 / 0.8); }
.fiction-disclosure { font-size: var(--step--2); color: oklch(88% 0.03 85 / 0.75); }

/* ---------- 8. Motion signature: wheels, chain, speed lines ---------- */
.wheel { display: block; }
.wheel .rim { transform-origin: 50% 50%; animation: rr-spin var(--spin, 0s) linear infinite; }
.wheel.is-fast .rim, .wheel:hover .rim { animation-duration: 0.9s; }
.chain-path { stroke-dasharray: 10 6; animation: chain-run 1.2s linear infinite; }
@keyframes chain-run { to { stroke-dashoffset: -16; } }
.speedline {
  position: absolute; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--rosso), transparent);
  transform-origin: left center; transform: scaleX(0); opacity: 0.85;
}
.speedline.is-live { animation: speed-run 900ms var(--ease-out) both; }
@keyframes speed-run {
  0% { transform: scaleX(0); opacity: 0; }
  30% { opacity: 0.85; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ---------- 9. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--s-7) * 0.9) 0 var(--s-6);
  background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in oklch, var(--rosso) 16%, transparent), transparent 60%),
    radial-gradient(900px 420px at 0% 110%, color-mix(in oklch, var(--green) 22%, transparent), transparent 55%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in oklch, var(--ink) 10%, transparent) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.35;
  mask-image: linear-gradient(to bottom, oklch(0% 0 0), transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s-6); align-items: center; }
@media (max-width: 56rem) { .hero-grid { grid-template-columns: 1fr; } }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--step--2); font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rosso-deep); margin-bottom: var(--s-3);
}
.hero-kicker::before { content: ""; width: 2.4rem; height: 3px; background: var(--rosso); }
.hero h1 { font-size: var(--step-5); margin-bottom: var(--s-4); }
.hero h1 em { font-style: italic; color: var(--green-deep); font-weight: 560; }
.hero .lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 34rem; margin-bottom: var(--s-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.hero-aside { position: relative; }
.hero-poster {
  border: 3px solid var(--ink); border-radius: var(--radius);
  background: var(--cream-card); padding: var(--s-4);
  box-shadow: 14px 14px 0 var(--green-deep);
  transform: rotate(1.2deg); transition: transform 400ms var(--ease-out), box-shadow 400ms;
}
.hero-poster:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 18px 20px 0 var(--rosso-deep); }
.hero-poster .poster-top {
  font-size: var(--step--2); letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 800; color: var(--rosso-deep); border-bottom: 2px solid var(--ink); padding-bottom: 0.6rem; margin-bottom: 1rem;
  display: flex; justify-content: space-between;
}
.hero-poster .poster-title { font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; line-height: 1; }
.hero-poster .poster-title .year { color: var(--rosso); }
.hero-poster dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin-top: 1rem; font-size: var(--step--1); }
.hero-poster dt { font-weight: 800; text-transform: uppercase; font-size: var(--step--2); letter-spacing: 0.08em; color: var(--ink-soft); }
.ticker {
  border-block: 2px solid var(--ink); background: var(--green-deep); color: var(--paper);
  overflow: hidden; white-space: nowrap; padding: 0.65rem 0;
}
.ticker-track { display: inline-block; animation: ticker-roll 28s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker-roll { to { transform: translateX(-50%); } }
.ticker span { font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; font-size: var(--step--2); padding-inline: 1.6rem; }
.ticker .sep { color: var(--rosso); padding-inline: 0; }

/* ---------- 10. Sections & reveals ---------- */
.section { padding: var(--s-6) 0; }
.section-alt { background: var(--paper-deep); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: var(--s-5); }
.section-head h2 { font-size: var(--step-3); margin-bottom: var(--s-2); }
.section-head h2 .r-num {
  font-family: var(--font-body); font-size: var(--step--2); font-weight: 800;
  letter-spacing: 0.2em; color: var(--rosso-deep); display: block; margin-bottom: 0.4rem;
}
.section-head p { color: var(--ink-soft); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out); }
.stagger.is-in > *:nth-child(1) { transition-delay: 60ms; }
.stagger.is-in > *:nth-child(2) { transition-delay: 140ms; }
.stagger.is-in > *:nth-child(3) { transition-delay: 220ms; }
.stagger.is-in > *:nth-child(4) { transition-delay: 300ms; }
.stagger.is-in > *:nth-child(5) { transition-delay: 380ms; }
.stagger.is-in > *:nth-child(6) { transition-delay: 460ms; }
.stagger.is-in > *, .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal, .stagger > * { opacity: 1; transform: none; animation: rise both ease-out; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes rise { from { opacity: 0; transform: translateY(30px); } }
    .stagger > *:nth-child(2) { animation-range: entry 8% entry 60%; }
    .stagger > *:nth-child(3) { animation-range: entry 16% entry 66%; }
  }
}

/* ---------- 11. Catalog cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 68rem) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .card-grid { grid-template-columns: 1fr; } }
.model-card {
  background: var(--cream-card); border: 2px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform 300ms var(--ease-out), box-shadow 300ms;
}
.model-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 10px 12px 0 var(--rosso); }
.model-card:focus-visible { outline: 3px solid var(--rosso); outline-offset: 3px; }
.model-card .card-visual {
  background: var(--green-deep); padding: var(--s-4); position: relative; overflow: hidden;
  display: grid; place-items: center; min-height: 11rem;
}
.model-card .card-visual svg { width: 88%; color: var(--paper); }
.model-card .card-visual .corner-num {
  position: absolute; top: 0.6rem; left: 0.8rem; font-family: var(--font-display);
  font-size: var(--step-3); font-weight: 800; color: oklch(100% 0 0 / 0.22); line-height: 1;
}
.model-card .card-body { padding: var(--s-4); display: grid; gap: 0.55rem; }
.model-card h3 { font-size: var(--step-2); }
.model-card .model-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.model-card .model-desc { color: var(--ink-soft); font-size: var(--step--1); }
.model-card .price-row { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.model-card .price { font-family: var(--font-display); font-size: var(--step-1); font-weight: 800; }
.model-card .price small { font-family: var(--font-body); font-size: var(--step--2); color: var(--ink-soft); font-weight: 600; }

/* ---------- 12. Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.spec-table th, .spec-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.spec-table th { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--step--2); color: var(--ink-soft); background: var(--paper-deep); }
.spec-table tbody tr { transition: background 160ms; }
.spec-table tbody tr:hover { background: color-mix(in oklch, var(--green) 8%, transparent); }
.spec-table td strong { font-weight: 750; }
.spec-table .unit { color: var(--ink-soft); font-size: var(--step--2); }

/* ---------- 13. Split feature, quote, stats ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
@media (max-width: 56rem) { .feature-row { grid-template-columns: 1fr; } }
.feature-row.reverse .feature-copy { order: 2; }
@media (max-width: 56rem) { .feature-row.reverse .feature-copy { order: 0; } }
.feature-copy h2 { font-size: var(--step-3); margin-bottom: var(--s-3); }
.feature-copy p { color: var(--ink-soft); margin-bottom: var(--s-3); }
.feature-visual { position: relative; }
.quote-band {
  background: var(--ink); color: var(--paper); padding: var(--s-6) 0;
  position: relative; overflow: hidden;
}
.quote-band blockquote { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); max-width: 46rem; margin-inline: auto; text-align: center; }
.quote-band blockquote::before, .quote-band blockquote::after { color: var(--rosso); font-style: normal; font-weight: 800; }
.quote-band cite { display: block; margin-top: var(--s-3); text-align: center; font-style: normal; font-size: var(--step--1); color: oklch(88% 0.02 85 / 0.8); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); text-align: center; }
@media (max-width: 56rem) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat b { font-family: var(--font-display); font-size: var(--step-4); font-weight: 800; display: block; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; color: var(--ink-soft); }

/* ---------- 14. Timeline ---------- */
.timeline { list-style: none; padding: 0; position: relative; display: grid; gap: var(--s-4); }
.timeline::before { content: ""; position: absolute; left: 0.45rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: linear-gradient(var(--green-deep), var(--rosso)); }
.timeline li { position: relative; padding-left: 2.2rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem; width: 1rem; height: 1rem;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--rosso);
}
.timeline .t-year { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); color: var(--green-deep); }
.timeline p { color: var(--ink-soft); max-width: 42rem; }

/* ---------- 15. Journal ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
@media (max-width: 48rem) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--cream-card); border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: var(--s-4); text-decoration: none; color: inherit; display: grid; gap: 0.6rem; transition: transform 280ms var(--ease-out), border-color 200ms, box-shadow 280ms; }
.post-card:hover { transform: translateY(-4px); border-color: var(--green-deep); box-shadow: 8px 8px 0 var(--line); }
.post-card time { font-size: var(--step--2); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rosso-deep); }
.post-card h3 { font-size: var(--step-1); }
.post-card p { color: var(--ink-soft); font-size: var(--step--1); }
.prose { max-width: 42rem; }
.prose p { margin-bottom: var(--s-4); color: color-mix(in oklch, var(--ink) 88%, var(--paper)); }
.prose h2 { font-size: var(--step-2); margin: var(--s-5) 0 var(--s-2); }
.prose ul { margin: 0 0 var(--s-4) 1.2rem; color: var(--ink-soft); }
.prose .pull {
  border-block: 3px double var(--ink); padding: var(--s-3) 0; margin: var(--s-4) 0;
  font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--green-deep);
}

/* ---------- 16. Subpage hero, breadcrumbs ---------- */
.page-hero { padding: var(--s-6) 0 var(--s-5); border-bottom: 3px solid var(--ink); position: relative; overflow: hidden; }
.page-hero::after {
  content: attr(data-num); position: absolute; right: 2vw; top: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 16vw;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklch, var(--ink) 18%, transparent);
  line-height: 0.9; pointer-events: none;
}
.page-hero h1 { font-size: var(--step-4); max-width: 16ch; }
.page-hero .lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 40rem; margin-top: var(--s-3); }
.crumbs { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--s-3); }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--rosso-deep); }
.crumbs .here { color: var(--rosso-deep); }

/* ---------- 17. FAQ ---------- */
.faq-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-item button {
  all: unset; display: flex; justify-content: space-between; gap: var(--s-3);
  width: 100%; padding: var(--s-3) 0.25rem; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: var(--step-0);
}
.faq-item button:hover { color: var(--rosso-deep); }
.faq-item button:focus-visible { outline: 3px solid var(--rosso); outline-offset: -3px; }
.faq-item .sign { font-family: var(--font-display); font-size: var(--step-2); font-weight: 800; color: var(--rosso); transition: transform 260ms var(--ease-out); flex-shrink: 0; }
.faq-item[data-open="true"] .sign { transform: rotate(45deg); }
.faq-item .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-inout); }
.faq-item[data-open="true"] .a { grid-template-rows: 1fr; }
.faq-item .a > div { overflow: hidden; }
.faq-item .a p { padding: 0 0 var(--s-3); color: var(--ink-soft); max-width: 44rem; }

/* ---------- 18. Tours & routes ---------- */
.route-card {
  border: 2px solid var(--ink); border-radius: var(--radius); background: var(--cream-card);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-bottom: var(--s-4);
  transition: box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.route-card:hover { transform: translateY(-3px); box-shadow: 10px 10px 0 var(--green-deep); }
@media (max-width: 56rem) { .route-card { grid-template-columns: 1fr; } }
.route-card .route-info { padding: var(--s-4); display: grid; gap: 0.6rem; align-content: start; }
.route-card .route-map { background: var(--green-deep); position: relative; min-height: 13rem; display: grid; place-items: center; }
.route-card .route-map svg { width: 92%; color: var(--paper); }
.route-card .route-map .route-path { stroke-dasharray: 6 5; }
.route-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: var(--step--1); }
.route-meta b { font-variant-numeric: tabular-nums; }

/* ---------- 19. Apparel & heritage ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
@media (max-width: 68rem) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 36rem) { .product-grid { grid-template-columns: 1fr; } }
.product {
  background: var(--cream-card); border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  padding: var(--s-3); display: grid; gap: 0.5rem; transition: transform 260ms var(--ease-out), box-shadow 260ms;
}
.product:hover { transform: translateY(-4px); box-shadow: 6px 8px 0 var(--line); }
.product .p-visual { background: var(--paper-deep); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; min-height: 8rem; }
.product .p-visual svg { width: 46%; color: var(--green-deep); }
.product h3 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 750; }
.product .p-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 56rem) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 36rem) { .archive-grid { grid-template-columns: 1fr; } }
.archive-card { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--cream-card); }
.archive-card .a-head { background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; display: flex; justify-content: space-between; font-size: var(--step--2); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.archive-card .a-body { padding: var(--s-3); }
.archive-card .a-body svg { width: 100%; color: var(--green-deep); margin-bottom: 0.7rem; }
.archive-card p { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- 20. 404 ---------- */
.notfound { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: var(--s-6) 0; }
.notfound h1 { font-size: var(--step-5); color: var(--rosso); }
.notfound .nf-code { font-size: var(--step--2); letter-spacing: 0.3em; text-transform: uppercase; font-weight: 800; color: var(--ink-soft); }
.notfound p { color: var(--ink-soft); max-width: 30rem; margin: var(--s-3) auto var(--s-4); }
.notfound .wheel { margin: 0 auto var(--s-3); width: 7rem; }

/* ---------- 21. Utilities ---------- */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 56rem) { .split-2 { grid-template-columns: 1fr; } }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); }
.notice-strip {
  background: var(--saddle); color: var(--paper); padding: 0.55rem 0;
  text-align: center; font-size: var(--step--2); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.notice-strip a { color: inherit; }
.skel { background: linear-gradient(90deg, var(--line) 25%, var(--paper-deep) 50%, var(--line) 75%); background-size: 200% 100%; animation: skel-shimmer 1.2s linear infinite; border-radius: var(--radius); min-height: 1rem; }
@keyframes skel-shimmer { to { background-position: -200% 0; } }

/* ---------- 22. Reduced motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .wheel .rim { animation: none !important; }
  .ticker-track { animation: none !important; }
  .speedline { display: none; }
}
@media (prefers-contrast: more) {
  :root { --line: var(--ink); --line-strong: var(--ink); --ink-soft: var(--ink); }
}
@media print {
  .site-header, .site-nav, .ticker, .btn, .theme-toggle, .notice-strip, .toast { display: none !important; }
  body { background: white; color: black; }
  .site-footer { background: white; color: black; border-color: black; }
  a { color: black; text-decoration: underline; }
}

/* ---------- 23. Appendix: component extras ---------- */
.big-bike { width: min(100%, 30rem); margin-inline: auto; }
.timeline-item .t-num {
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-2);
  color: var(--rosso); display: block; line-height: 1; margin-bottom: 0.3rem;
}
.timeline-item { position: relative; padding-left: 2.4rem; border-left: 2px solid var(--line-strong); padding-bottom: var(--s-4); }
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before {
  content: ""; position: absolute; left: -0.55rem; top: 0.3rem;
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--green-deep);
}
.timeline-item h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.timeline-item p { color: var(--ink-soft); max-width: 36rem; }
.ledger-note { font-size: var(--step--1); color: var(--ink-soft); max-width: 22rem; }
details { border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 0.6rem 0.9rem; background: var(--cream-card); }
details[open] { border-color: var(--green-deep); }
summary { cursor: pointer; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em; background: var(--paper-deep);
  border: 1px solid var(--line); border-radius: 3px; padding: 0.1em 0.4em;
}
.kv-list { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.kv-list li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; border-bottom: 1px dotted var(--line-strong); padding-bottom: 0.55rem; }
.kv-list b { text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--step--2); color: var(--ink-soft); }
.bike-svg { width: 100%; height: auto; }
.bike-svg .rim { transform-box: fill-box; }
.feature-visual .bike-svg { color: var(--green-deep); }
.hero-aside .bike-svg { color: var(--ink); margin-top: var(--s-3); }
.p-visual .wheel { color: var(--green-deep); opacity: 0.85; }
.notfound .wheel { color: var(--rosso); }
.swatch { box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.12); }
.ticker .sep { opacity: 0.85; }
.section-alt .hero-poster { box-shadow: 12px 12px 0 var(--line-strong); }
.form-note code { background: transparent; border: none; padding: 0; }
.btn-primary::after, .btn-green::after { mix-blend-mode: overlay; }
@media (max-width: 40rem) {
  .kv-list li { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero-poster { transform: none !important; }
  .page-hero::after { font-size: 28vw; opacity: 0.6; }
  .stat b { font-size: var(--step-3); }
}
@media (min-width: 90rem) {
  .hero-poster { font-size: 1.05rem; }
  .section { padding-block: var(--s-7) calc(var(--s-6) + 1rem); }
}
::marker { color: var(--rosso); }
/* focus ring for summary inside details */
details summary:focus-visible { outline: 3px solid var(--rosso); outline-offset: 2px; border-radius: 2px; }
/* selection on dark theme */
[data-theme="night"] ::selection { background: var(--green); color: var(--paper); }
[data-theme="night"] .btn::after { mix-blend-mode: normal; }
[data-theme="night"] .hero::before { opacity: 0.22; }
[data-theme="night"] .hero-poster { box-shadow: 14px 14px 0 var(--rosso-deep); }
[data-theme="night"] .ticker { border-block-color: var(--line-strong); }
/* print: keep posters readable */
@media print {
  .hero-poster, .route-card, .archive-card { box-shadow: none !important; transform: none !important; break-inside: avoid; }
  .wheel .rim, .chain-path { animation: none !important; }
  .speedline { display: none !important; }
}
