:root {
  --canvas: #f4f0e6;
  --canvas-deep: #ebe5d6;
  --patch: #191612;
  --ink: #17140f;
  --ink-soft: #5d564a;
  --ink-faint: #9a9285;
  --on-dark: #f4f0e6;
  --on-dark-soft: #a9a091;
  --rust: #b03a1d;
  --rust-lift: #cf4a26;
  --gold: #b4862f;
  --rule: rgba(23, 20, 15, 0.12);
  --rule-dark: rgba(244, 240, 230, 0.14);

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Archivo', system-ui, sans-serif;
  --mono: 'Space Mono', monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --bar: 76px;

  --logo-base: #f4f0e6;
  --logo-liquid-1: #cf4a26;
  --logo-liquid-2: #191612;
  --logo-liquid-hi: #e0b04c;
  --logo-liquid-3: #6d2011;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html:not(.js) { scroll-behavior: smooth; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ── Type ─────────────────────────────────────────────── */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.2vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.lead.narrow { max-width: 46ch; }

/* ── Scroll progress ──────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--rust);
  z-index: 60;
  will-change: transform;
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar);
  z-index: 50;
  transition: transform .55s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.stuck {
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
}

.site-header.hide { transform: translateY(-100%); }

.header-inner {
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 11px; }

.logo-mark { width: 38px; height: 38px; object-fit: contain; }

.logo-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.main-nav { display: flex; align-items: center; gap: 30px; }

.main-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
  transition: color .35s var(--ease);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--rust);
  transition: right .45s var(--ease);
}

.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.header-clock {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.nav-shop {
  background: var(--patch);
  color: var(--on-dark);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}

.nav-shop:hover { background: var(--rust); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--bar) + 40px) var(--gutter) 96px;
  overflow: hidden;
}

.dust {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .5;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: clamp(28px, 4vh, 44px);
}

/* Height-aware so the emblem never pushes the cue into the content */
.emblem-stage { width: min(84vw, 460px, 46svh); }

.emblem-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  padding: clamp(22px, 4vw, 38px);
  background:
    radial-gradient(120% 100% at 30% 15%, #262019 0%, transparent 60%),
    var(--patch);
  box-shadow: 0 40px 80px -40px rgba(25, 18, 8, .55), 0 2px 0 rgba(255,255,255,.04) inset;
}

.logo-reveal { position: relative; width: 100%; height: 100%; }

.logo-reveal-source {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
}

.logo-reveal-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  cursor: none;
}

.hero-tagline {
  margin-top: clamp(26px, 4vh, 40px);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  letter-spacing: 0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  min-height: 1.1em;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 0.82em;
  background: var(--rust);
  margin-left: 5px;
}

html.js .caret { animation: blink 1.05s steps(1) infinite; }
.caret.done { animation: none; opacity: 0; transition: opacity .7s var(--ease); }

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-actions {
  margin-top: clamp(32px, 5vh, 52px);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .4s var(--ease);
}

.btn-primary { background: var(--rust); color: #fff; border-color: var(--rust); }
.btn-primary:hover { background: var(--rust-lift); border-color: var(--rust-lift); transform: translateY(-2px); }

.btn-ghost { border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color .4s var(--ease);
}

.scroll-cue:hover { color: var(--rust); }
html.js .scroll-cue svg { animation: bob 2.8s var(--ease) infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .45; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* Hero arrival */
html.js [data-hero] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.3s var(--ease);
}

html.js .emblem-stage[data-hero] { transform: translateY(24px) scale(.94); filter: blur(14px); }
html.js [data-hero].lit { opacity: 1; transform: none; filter: none; }
html.js .scroll-cue[data-hero] { transform: translateX(-50%) translateY(18px); }
html.js .scroll-cue[data-hero].lit { transform: translateX(-50%); }

/* ── Reveal system ────────────────────────────────────── */
html.js .rv {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * 95ms);
}

html.js .rv.in { opacity: 1; transform: none; }

/* ── Sections ─────────────────────────────────────────── */
.section { padding: clamp(90px, 16vh, 190px) 0; }

.about { background: var(--canvas-deep); }

.about-body {
  margin-top: clamp(36px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
}

/* Odometer meter */
.meter {
  margin-top: clamp(56px, 9vh, 104px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}

.meter-cell {
  padding: clamp(28px, 4vw, 44px) 0 0;
  border-right: 1px solid var(--rule);
  padding-right: 20px;
}

.meter-cell:last-child { border-right: 0; }

.meter-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.meter-label {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── Crew ─────────────────────────────────────────────── */
.team .lead { margin-top: 24px; }

.crew {
  margin-top: clamp(52px, 8vh, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.rider-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--patch);
}

.rider-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
  filter: saturate(.82) contrast(1.03);
}

.rider:hover .rider-photo img { transform: scale(1.07); filter: saturate(1) contrast(1.03); }

.rider-name {
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.005em;
}

.rider-role {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
}

.rider-bio {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* ── Horizontal rail gallery ──────────────────────────── */
.rail {
  position: relative;
  height: 420vh;
  background: var(--patch);
  color: var(--on-dark);
}

.rail-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.rail-head {
  padding: 0 var(--gutter);
  margin-bottom: clamp(28px, 5vh, 52px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.rail-head .display { color: var(--on-dark); }

.rail-hint {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  padding-bottom: 8px;
}

.rail-track {
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  padding: 0 var(--gutter);
  will-change: transform;
}

.shot {
  flex: 0 0 auto;
  width: clamp(240px, 34vw, 460px);
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #241f19;
}

.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ── Press ────────────────────────────────────────────── */
.clips {
  margin-top: clamp(48px, 8vh, 88px);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.clip-lead { grid-row: span 2; }

.clip-img {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--canvas-deep);
}

.clip-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.clip-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.05;
  color: var(--rust);
}

.clip-text {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.clip:not(.clip-lead) {
  padding: clamp(24px, 3vw, 34px);
  background: var(--canvas-deep);
  border-radius: 8px;
}

/* ── Shop ─────────────────────────────────────────────── */
.shop { background: var(--canvas-deep); text-align: center; }
.shop .display, .shop .lead { margin-inline: auto; }
.shop .lead { margin-top: 22px; }

.seam {
  margin: clamp(48px, 8vh, 84px) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seam-patch {
  width: clamp(96px, 13vw, 134px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--patch);
  display: grid;
  place-items: center;
  padding: 18px;
  box-shadow: 0 22px 40px -22px rgba(25,18,8,.5);
  position: relative;
  z-index: 1;
}

.seam-patch img { filter: invert(1) brightness(1.06); }

.seam-partner {
  background: transparent;
  border: 1px dashed var(--rule);
  box-shadow: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.25;
}

.seam-line {
  width: clamp(40px, 6vw, 76px);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 7px, transparent 7px 13px);
  margin-inline: -4px;
}

/* ── Join ─────────────────────────────────────────────── */
.join-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.5fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.join-intro { position: sticky; top: calc(var(--bar) + 40px); }
.join-intro .lead { margin-top: 22px; }

.enroll {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  background: var(--patch);
  color: var(--on-dark);
  border-radius: 12px;
  padding: clamp(26px, 3.5vw, 42px);
  box-shadow: 0 40px 80px -46px rgba(25,18,8,.5);
}

.enroll-head {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-dark);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 18px;
}

.field.full { grid-column: 1 / -1; }

.enroll label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

.enroll input,
.enroll select,
.enroll textarea {
  background: rgba(244, 240, 230, .05);
  border: 1px solid var(--rule-dark);
  border-radius: 5px;
  padding: 13px 14px;
  color: var(--on-dark);
  font-family: var(--body);
  font-size: 14px;
  width: 100%;
  resize: vertical;
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}

.enroll input::placeholder,
.enroll textarea::placeholder { color: #7d7566; }

.enroll select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a9a091' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

.enroll select option { background: var(--patch); color: var(--on-dark); }

.enroll input:focus,
.enroll select:focus,
.enroll textarea:focus {
  outline: none;
  border-color: var(--rust-lift);
  background: rgba(244, 240, 230, .08);
}

.row { display: flex; gap: 8px; }
.code { flex: 0 0 80px; padding-left: 11px !important; padding-right: 28px !important; }

.enroll .btn { margin-top: 30px; justify-self: start; }

.hidden-field { position: absolute; left: -9999px; }

/* ── Footer + membership card ─────────────────────────── */
.site-footer {
  background: var(--patch);
  color: var(--on-dark);
  padding: clamp(64px, 11vh, 120px) 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.card {
  position: relative;
  aspect-ratio: 1.586 / 1;
  border-radius: 16px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 18%, rgba(244,240,230,.09), transparent 58%),
    linear-gradient(135deg, #2a241d 0%, #17130e 62%, #0e0b07 100%);
  border: 1px solid rgba(244, 240, 230, .12);
  box-shadow: 0 30px 60px -26px rgba(0,0,0,.7);
  transition: transform .18s var(--ease), opacity 1.05s var(--ease);
  will-change: transform;
}

.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 220px at var(--gx, 50%) var(--gy, 30%),
    rgba(255, 244, 214, .34), rgba(224, 176, 76, .12) 42%, transparent 72%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  mix-blend-mode: screen;
}

.card:hover .card-glare, .card:focus-within .card-glare { opacity: 1; }

.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-emblem { width: 34px; height: 34px; filter: invert(1) brightness(1.1); opacity: .9; }

.card-eyebrow, .card-serial, .card-status {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

.card-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.015em;
}

.card-sub {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.footer-side { display: flex; flex-direction: column; gap: 26px; }

.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }

.footer-links a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  transition: color .35s var(--ease);
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: #7d7566;
  letter-spacing: 0.04em;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 980px) {
  .clips { grid-template-columns: 1fr; }
  .clip-lead { grid-row: auto; }
  .join-grid { grid-template-columns: 1fr; }
  .join-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { max-width: 360px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--bar); left: 0; right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 26px var(--gutter) 32px;
    transform: translateY(-115%);
    opacity: 0;
    pointer-events: none;
    transition: transform .5s var(--ease), opacity .4s var(--ease);
  }

  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { font-size: 15px; }

  .nav-toggle { display: flex; }
  .header-clock { display: none; }

  .about-body { grid-template-columns: 1fr; }
  .crew { grid-template-columns: 1fr; max-width: 420px; }

  .meter { grid-template-columns: 1fr; }
  .meter-cell { border-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 26px; }
  .meter-cell:last-child { border-bottom: 0; }

  /* Rail becomes a native horizontal swipe strip */
  .rail { height: auto; }
  .rail-sticky { position: static; height: auto; padding: clamp(72px, 12vh, 110px) 0; }
  .rail-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    transform: none !important;
  }
  .shot { scroll-snap-align: center; width: 78vw; }
}

@media (max-width: 560px) {
  .logo-text { display: none; }
  .nav-shop { padding: 9px 16px; }
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html.js .rv,
  html.js [data-hero] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  html.js .scroll-cue[data-hero] { transform: translateX(-50%) !important; }
  .dust { display: none; }
  .caret { animation: none !important; }
  html.js .scroll-cue svg { animation: none !important; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
