/* ── Design tokens ───────────────────────────────────────────── */

/* Simien palette: highland green, warm teff paper, a coral sun for
   illustration accents. Saffron stays reserved for the 5% offer. */

:root {
  --ink:          #13221f;
  --ink-soft:     #4a5a55;
  --walia:        #0f4a42;
  --walia-deep:   #0b2f2a;
  --forest:       #0e3a34;
  --ridge-far:    #164d43;
  --ridge-mid:    #113f37;
  --sun:          #e2683c;
  --mist:         #a9c8bd;
  --ibex:         #6b5a46;
  --ibex-light:   #7d6a52;
  --ibex-shade:   #4c3f31;
  --ibex-dark:    #3e3328;
  --ibex-far:     #30271f;
  --horn:         #9a7a52;
  --horn-dark:    #5e4930;
  --rim-light:    #d1aa70;
  --bike-body:    #f6f1e7;
  --bike-tyre:    #ece4d6;
  --bike-metal:   #a9c8bd;
  --steel:        #8f9c98;
  --saffron:      #f0a03c;
  --paper:        #f6f1e7;
  --card:         #fffcf6;
  --stone:        #ebe2d1;
  --line:         #d9ccb6;

  --sans:         "DM Sans", system-ui, sans-serif;
  --display:      "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;

  --radius:       16px;
  --radius-sm:    10px;
  --wrap:         1180px;
  --gutter:       clamp(1.25rem, 4vw, 3rem);
}

/* ── Reset & base ─────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

/* Elements switched off by main.js stay off even when a rule sets their
   display. */
[hidden] {
  display: none !important;
}

/* ── Typography ───────────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--display);
  font-variation-settings: "wdth" 90;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.8rem, 6vw + 1rem, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 3.4vw + 0.6rem, 3.3rem);
}

h3 {
  font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem);
  line-height: 1.2;
}

p {
  max-width: 68ch;
}

a {
  color: var(--walia);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--walia);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--sun);
}

.section--dark .eyebrow,
.section--forest .eyebrow,
.hero .eyebrow {
  color: var(--mist);
}

.lead {
  font-size: clamp(1.0625rem, 1vw + 0.8rem, 1.25rem);
  color: var(--ink-soft);
  margin-top: 1rem;
  max-width: 58ch;
}

/* ── Layout ───────────────────────────────────────────────────── */

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ── Section modifiers ────────────────────────────────────────── */

.section--dark {
  background: var(--walia-deep);
  color: var(--paper);
}

.section--dark a {
  color: var(--paper);
}

.section--forest {
  background: var(--forest);
  color: var(--paper);
}

.section--forest a {
  color: var(--paper);
}

.section--stone {
  background: var(--stone);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* Continues the section above without a second gap (Our Bikes: the
   drawings of the range lead straight into the model cards). */
.section--flush-top {
  padding-top: 0;
}

.section--flush-bottom {
  padding-bottom: 0;
}

/* ── Buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--walia);
  background: var(--walia);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--walia-deep);
  border-color: var(--walia-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--walia);
}

.btn--ghost:hover {
  background: var(--walia);
  color: var(--paper);
}

.section--dark .btn--ghost,
.section--forest .btn--ghost,
.hero .btn--ghost {
  border-color: var(--mist);
  color: var(--paper);
}

.section--dark .btn--ghost:hover,
.section--forest .btn--ghost:hover,
.hero .btn--ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--walia-deep);
}

.btn--saffron {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--ink);
}

.btn--saffron:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.section .btn--saffron:hover,
.preorder-layout .btn--saffron:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.section--dark .btn--saffron:hover,
.hero .btn--saffron:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.section--dark .btn--saffron,
.section--forest .btn--saffron {
  color: var(--ink);
}

.btn--block {
  display: flex;
  width: 100%;
  text-align: center;
}

/* ── Skip link ────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  padding: 0.5em 1em;
  background: var(--walia);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.875rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 999;
}

.skip-link:focus {
  top: 0;
}

/* ── Offer strip ──────────────────────────────────────────────── */

.offer-strip {
  background: var(--saffron);
  color: var(--ink);
  text-align: center;
  padding: 0.55rem var(--gutter);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
}

.offer-strip p {
  max-width: none;
}

/* ── Header ───────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  height: 60px;
  width: auto;
}

@media (max-width: 760px) {
  .brand__logo {
    height: 44px;
  }
}

/* ── Navigation ───────────────────────────────────────────────── */

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.site-nav__link {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 0.25em 0;
  border-bottom: 2px solid transparent;
}

.site-nav__link:hover {
  color: var(--walia);
  border-bottom-color: var(--line);
}

.site-nav__link[aria-current="page"] {
  color: var(--walia);
  border-bottom-color: var(--sun);
}

.site-nav__cta {
  display: inline-block;
  background: var(--saffron);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6em 1.25em;
  border-radius: 999px;
}

.site-nav__cta:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ── Nav toggle (mobile) ──────────────────────────────────────── */

.nav-toggle {
  display: none;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  background: none;
  border: 2px solid var(--walia);
  border-radius: 999px;
  color: var(--walia);
  padding: 0.4em 1.1em;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem var(--gutter) 1.5rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ── Footer ───────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  background: var(--walia-deep);
  color: var(--paper);
  padding-block: 0 1.5rem;
  margin-top: auto;
}

/* The footer scene sits on the dark green of the hero, so the bike and
   the ibex read against the same sky on every page. */
.site-footer__ridge {
  height: clamp(150px, 17vw, 240px);
  background: var(--walia-deep);
  overflow: hidden;
}

.site-footer__ridge svg {
  width: 100%;
  height: 100%;
}

.site-footer > .wrap {
  padding-top: 2.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--ridge-far);
}

.site-footer__col h3 {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
  color: var(--mist);
}

.site-footer__col p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--stone);
  margin-bottom: 0.4rem;
}

.site-footer__col ul {
  list-style: none;
}

.site-footer__col li {
  margin-bottom: 0.4rem;
}

.site-footer__col a {
  color: var(--stone);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-footer__col a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.site-footer__identity {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.5rem;
}

/* The horn sweeps out to the right above an empty corner, so the name
   tucks in under it instead of starting after the whole image box. */
.site-footer__identity .site-footer__mark + .site-footer__brand {
  align-self: flex-end;
  margin-left: -20px;
  padding-bottom: 6px;
}

.site-footer__mark {
  width: 64px;
  height: auto;
  flex: none;
}

.site-footer__identity .site-footer__brand {
  margin-bottom: 0;
}

.site-footer__col .site-footer__brand {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  font-variation-settings: "wdth" 85;
  color: var(--paper);
  margin-bottom: 0.25rem;
}

.site-footer__col .site-footer__line {
  font-family: var(--display);
  font-size: 1.125rem;
  color: var(--mist);
  margin-bottom: 0.75rem;
}

.site-footer__bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--mist);
}

.site-footer__bottom p {
  margin-inline: auto;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ── Focus ────────────────────────────────────────────────────── */

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

/* ── Reduced motion ───────────────────────────────────────────── */

@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;
  }
}

/* ── Drawings ─────────────────────────────────────────────────── */

/* Line illustrations injected by main.js. Strokes use currentColor, so a
   drawing takes the text colour of whatever contains it. */

.drawing {
  width: 100%;
  height: auto;
  overflow: visible;
}

.drawing .ln {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawing .thin {
  stroke-width: 1.2;
}

.drawing .spoke {
  stroke-width: 0.7;
  opacity: 0.55;
}

.drawing .heavy {
  stroke-width: 5;
}

.drawing .accent {
  stroke: var(--sun);
}

.drawing .knobs {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-dasharray: 2 5;
}

.drawing .ground {
  stroke-width: 1.2;
  opacity: 0.35;
}

.drawing .battery {
  fill: var(--sun);
  fill-opacity: 0.15;
}

.drawing--ridge {
  height: 100%;
}

.ridge--far {
  fill: var(--ridge-far);
}

.ridge--mid {
  fill: var(--ridge-mid);
}

.ridge--near {
  fill: var(--walia-deep);
}

.drawing .ridge-line {
  stroke: var(--mist);
  stroke-width: 1.2;
  opacity: 0.6;
}

.drawing--topo .topo {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.drawing--trail {
  height: 100%;
}

.drawing--trail .ridge-line {
  fill: none;
  stroke: var(--mist);
  stroke-width: 1.2;
  opacity: 0.6;
}

.trail-edge {
  fill: none;
}

/* Ibex: shaded flat planes, warm light along the back and the horns. */
.ibex-coat { fill: var(--ibex); }
.ibex-light { fill: var(--ibex-light); }
.ibex-shade { fill: var(--ibex-shade); }
.ibex-dark { fill: var(--ibex-dark); }
.ibex-far { fill: var(--ibex-far); }
.ibex-eye { fill: var(--ink); }
.ibex-horn { fill: var(--horn); }

.ibex-rim,
.ibex-horn-rim {
  fill: none;
  stroke: var(--rim-light);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.ibex-horn-rim {
  stroke-width: 1.4;
}

.ibex-horn-line {
  fill: none;
  stroke: var(--horn-dark);
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* Mountain bike: white, so it stands out against the night-green sky. */
.bike-tyre {
  fill: none;
  stroke: var(--bike-tyre);
  stroke-width: 12;
}

.bike-tyre-rim {
  fill: none;
  stroke: var(--mist);
  stroke-width: 1.5;
  opacity: 0.4;
}

.bike-rim,
.bike-spokes {
  fill: none;
  stroke: var(--bike-metal);
  stroke-width: 2;
}

.bike-spokes {
  stroke-width: 1.5;
}

.bike-hub {
  fill: none;
  stroke: var(--sun);
  stroke-width: 3;
}

.bike-frame,
.bike-fork,
.bike-parts,
.bike-crank {
  fill: none;
  stroke: var(--bike-body);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bike-frame { stroke-width: 10; }
.bike-fork { stroke-width: 9; }
.bike-parts { stroke-width: 7; }
.bike-crank { stroke-width: 6; }

.bike-shine {
  fill: none;
  stroke: var(--rim-light);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.drawing--icon .ln {
  stroke-width: 2;
}

/* Draw-on, set up by main.js only when motion is allowed. */
.drawing.is-pending .ln {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.drawing.is-pending .knobs {
  opacity: 0;
}

.drawing.is-pending.is-drawn .ln {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.6, 0, 0.2, 1);
}

.drawing.is-pending.is-drawn .knobs {
  opacity: 1;
  transition: opacity 0.6s 1.4s;
}

/* ── Tibeb band ───────────────────────────────────────────────── */

/* A woven border inspired by the tibeb on Ethiopian cotton: one coral
   row of diamonds between two thin rules. */

.tibeb {
  height: 18px;
  background: var(--sun);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M0 1h36M0 17h36' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M9 4l5 5-5 5-5-5zM27 6l3 3-3 3-3-3z' fill='black'/%3E%3C/svg%3E") repeat-x center / 36px 18px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M0 1h36M0 17h36' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M9 4l5 5-5 5-5-5zM27 6l3 3-3 3-3-3z' fill='black'/%3E%3C/svg%3E") repeat-x center / 36px 18px;
}

/* ── Price states ─────────────────────────────────────────────── */

.price-tbc {
  font-style: normal;
  color: var(--ink-soft);
  font-weight: 500;
}

.price-stack {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
}

.price-was {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Coming soon: a grey pill, used on cards, tables, bike pages. Grey on
   purpose, so it never competes with the saffron pre-order offer. */
.soon-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3em 0.8em;
  white-space: nowrap;
}

.soon-badge--hero {
  color: var(--paper);
  background: transparent;
  border-color: var(--mist);
  margin-bottom: 0.9rem;
}

/* ── Photo placeholders ───────────────────────────────────────── */

.shot {
  position: relative;
  margin: 0;
  background: var(--stone);
  aspect-ratio: var(--ratio, 16/9);
  overflow: hidden;
  border-radius: var(--radius);
}

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

.shot.is-missing img {
  display: none;
}

/* Missing photo: a quiet drawn mountain and the shot brief, instead of an
   empty box. The caption tells the photographer what belongs here. */
.shot.is-missing {
  background: var(--stone);
}

.shot.is-missing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--line);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Cpath d='M8 66 L38 30 L54 46 L72 22 L112 66' fill='none' stroke='black' stroke-width='2.5' stroke-linejoin='round'/%3E%3Ccircle cx='88' cy='22' r='7' fill='black'/%3E%3C/svg%3E") no-repeat center 42% / min(34%, 180px);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Cpath d='M8 66 L38 30 L54 46 L72 22 L112 66' fill='none' stroke='black' stroke-width='2.5' stroke-linejoin='round'/%3E%3Ccircle cx='88' cy='22' r='7' fill='black'/%3E%3C/svg%3E") no-repeat center 42% / min(34%, 180px);
}

.shot.is-missing::after {
  content: "Photo to come · " attr(data-shot);
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
}

/* ── Visually hidden ──────────────────────────────────────────── */

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

/* ── Home: Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  background: var(--walia-deep);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.hero__topo {
  position: absolute;
  width: min(900px, 120vw);
  right: -18%;
  top: -22%;
  color: var(--ridge-far);
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: min(78vh, 760px);
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(7rem, 14vw, 11rem);
}

.hero__title {
  color: var(--paper);
}

.hero__title em {
  font-style: normal;
  color: var(--sun);
}

.hero__sub {
  font-size: clamp(1.0625rem, 1vw + 0.8rem, 1.3rem);
  max-width: 34ch;
  color: var(--stone);
  margin: 1.25rem 0 2rem;
}

.hero__art {
  position: relative;
  color: var(--paper);
}

.hero__sun {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  right: 6%;
  top: -14%;
  border-radius: 50%;
  background: var(--sun);
}

.hero__art .drawing--bike {
  position: relative;
}

.hero__ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: clamp(110px, 16vw, 220px);
  z-index: -1;
}

.hero__ridge svg {
  width: 100%;
  height: 100%;
}

.hero > .tibeb {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__art {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }
}

/* ── Home: Banner ─────────────────────────────────────────────── */

.banner {
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ── Home: Model grid ─────────────────────────────────────────── */

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .model-grid {
    grid-template-columns: 1fr;
  }
}

.model-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.model-card:hover {
  border-color: var(--walia);
}

.model-card {
  position: relative;
}

.model-card__badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1;
}

/* Coming soon: the photo fades to grey and the copy steps back. */
.model-card--soon .shot img {
  filter: grayscale(1);
  opacity: 0.5;
}

.model-card--soon .model-card__name,
.model-card--soon .model-card__category {
  color: var(--ink-soft);
}

.model-card--soon .model-card__price::after {
  background: var(--ink-soft);
}

.model-card .shot {
  border-radius: 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.model-card .shot img {
  object-fit: contain;
  padding: 0.75rem;
  mix-blend-mode: multiply;
}

.model-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.4rem;
}

.model-card__category {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--walia);
  margin-bottom: 0.35rem;
}

.model-card__name {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.model-card__blurb {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 1.1rem;
}

.model-card__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.model-card__price::after {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  background: var(--walia);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10h13M11 4.5l5.5 5.5-5.5 5.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10h13M11 4.5l5.5 5.5-5.5 5.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Home: Stats ──────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ridge-far);
  border: 1px solid var(--ridge-far);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.stats > div {
  background: var(--walia-deep);
  padding: 1.5rem 1.25rem;
}

.stats__value {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  font-variation-settings: "wdth" 85;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--paper);
  display: block;
  margin-bottom: 0.4rem;
}

.stats__label {
  font-size: 0.875rem;
  color: var(--mist);
}

/* ── Home: Workshop ───────────────────────────────────────────── */

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

@media (max-width: 760px) {
  .workshop {
    grid-template-columns: 1fr;
  }
}

/* Keeps the frame and the ibex drawing in view when the wide photo is
   cropped to 4:3. */
#workshop .shot img {
  object-position: 47% center;
}

.workshop h2 {
  margin-bottom: 1.25rem;
}

.workshop p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.workshop__link {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Frame build: the five workshop steps, animated by main.js */

.build {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.build__head {
  margin-bottom: 1.25rem;
}

.build__title {
  font-size: clamp(1.6rem, 2.4vw + 0.5rem, 2.2rem);
}

.build__stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 0;
}

.build__svg {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.build__svg line,
.build__svg rect,
.build__svg circle {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.build__svg rect {
  stroke-width: 2;
}

.build__svg polyline,
.build__svg path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.build__svg .bd-head {
  fill: var(--card);
  stroke: var(--ink);
}

/* Our Bikes reuses the frame-build layout for the riding scenes, as the
   section's own opening rather than a block below other content. */
.build--ride {
  margin-top: 0;
}

.bd-walia { stroke: var(--walia); }
.bd-steel { stroke: var(--steel); }
.bd-sun { stroke: var(--sun); }
.bd-ink { stroke: var(--ink); }
.bd-mist { stroke: var(--mist); }
.build__svg .bd-fill-sun { fill: var(--sun); stroke: none; }
.build__svg .bd-fill-walia { fill: var(--walia); stroke: none; }

.build__steps {
  list-style: none;
  counter-reset: build;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

.build__steps li {
  counter-increment: build;
}

.build__steps button {
  width: 100%;
  height: 100%;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6em 0.75em;
  cursor: pointer;
}

.build__steps button::before {
  content: counter(build) ". ";
  color: var(--sun);
}

.build__steps button[aria-current="step"] {
  background: var(--walia);
  border-color: var(--walia);
  color: var(--paper);
}

.build__steps button[aria-current="step"]::before {
  color: var(--paper);
}

@media (max-width: 760px) {
  .build__steps {
    grid-template-columns: 1fr;
  }

  .build__steps button {
    text-align: left;
    border-radius: var(--radius-sm);
  }
}

/* ── Home: Steps ──────────────────────────────────────────────── */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
}

.steps li::before {
  content: "Step " counter(step);
  position: absolute;
  top: 1.6rem;
  right: 1.4rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.steps__icon {
  width: 3.25rem;
  height: 3.25rem;
  color: var(--walia);
  margin-bottom: 1.25rem;
}

.steps h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.steps p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ── Home: Why build ──────────────────────────────────────────── */

.why-build {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 760px) {
  .why-build {
    grid-template-columns: 1fr;
  }
}

.why-build__text {
  color: var(--stone);
  margin-top: 1.25rem;
}

/* ── Home: CTA band ───────────────────────────────────────────── */

.cta-band {
  position: relative;
  background: var(--walia-deep);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta-band__topo {
  position: absolute;
  width: min(760px, 140vw);
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  color: var(--ridge-far);
  z-index: -1;
}

.cta-band h2 {
  color: var(--paper);
  margin-bottom: 0.9rem;
}

.cta-band p {
  color: var(--stone);
  margin-bottom: 2rem;
  max-width: 50ch;
  margin-inline: auto;
}

.cta-band__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Bikes: Lineup ────────────────────────────────────────────── */

.lineup {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  color: var(--walia);
}

.range-divider {
  margin-block: clamp(1.75rem, 3.5vw, 2.5rem);
}

.lineup__item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.lineup__name {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  display: block;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.25rem;
}

@media (max-width: 760px) {
  .lineup {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Bikes: Comparison table ──────────────────────────────────── */

.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare-table th,
.compare-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.875rem;
}

.compare-table thead th {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--walia);
}

.compare-table tbody th {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* ── Bikes: Sizing ────────────────────────────────────────────── */

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

@media (max-width: 760px) {
  .sizing {
    grid-template-columns: 1fr;
  }
}

/* ── Bike pages: Hero ─────────────────────────────────────────── */

/* The model's line drawing fills the hero until a photo exists; once the
   photo loads it covers the drawing, with no change to the markup. */

.bike-hero {
  position: relative;
  min-height: min(72vh, 680px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--walia-deep);
  isolation: isolate;
}

.bike-hero__art {
  position: absolute;
  z-index: -2;
  width: min(760px, 92vw);
  right: max(var(--gutter), 50% - 600px);
  top: 50%;
  translate: 0 -58%;
  color: var(--paper);
}

.bike-hero__art::before {
  content: "";
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  right: 4%;
  top: -16%;
  border-radius: 50%;
  background: var(--sun);
}

.bike-hero__art .drawing--bike {
  position: relative;
}

/* Coming soon: the drawing and its sun go quiet. */
.bike-hero--soon .bike-hero__art {
  filter: grayscale(1);
  opacity: 0.45;
}

.bike-hero__ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(70px, 9vw, 130px);
  z-index: -3;
}

.bike-hero__ridge svg {
  width: 100%;
  height: 100%;
}

.bike-hero .shot {
  position: absolute;
  inset: 0;
  --ratio: 1;
  border-radius: 0;
  z-index: -1;
}

.bike-hero .shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bike-hero .shot.is-missing {
  background: transparent;
}

.bike-hero .shot.is-missing::before,
.bike-hero .shot.is-missing::after {
  display: none;
}

.bike-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--walia-deep) 0%, transparent 50%);
}

.bike-hero .shot.is-missing ~ .bike-hero__overlay {
  display: none;
}

.bike-hero__content {
  position: relative;
  z-index: 1;
  padding-block: 3rem calc(clamp(70px, 9vw, 130px) + 1.5rem);
}

.bike-hero__category {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mist);
  margin-bottom: 0.5rem;
}

.bike-hero__title {
  color: var(--paper);
  font-size: clamp(3.5rem, 10vw, 8rem);
  margin-bottom: 0.75rem;
}

.bike-hero__pitch {
  color: var(--stone);
  font-size: clamp(1.0625rem, 1vw + 0.8rem, 1.25rem);
  max-width: 44ch;
}

@media (max-width: 760px) {
  .bike-hero {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .bike-hero__art {
    position: relative;
    z-index: 0;
    width: auto;
    right: auto;
    top: auto;
    translate: none;
    margin: 3rem var(--gutter) 0;
  }
}

/* ── Bike pages: Story + Price ────────────────────────────────── */

.story-price {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

@media (max-width: 760px) {
  .story-price {
    grid-template-columns: 1fr;
  }
}

.story-price__text h2 {
  margin-bottom: 1.25rem;
}

.story-price__text p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.story-price__list {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
}

.story-price__list li {
  display: flex;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.story-price__list li::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.5em;
  rotate: 45deg;
  background: var(--sun);
}

/* ── Price panel ──────────────────────────────────────────────── */

.price-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: 6rem;
}

.price-panel__badge {
  display: inline-block;
  background: var(--saffron);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.price-panel__name {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.price-panel__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
}

.price-panel__row--label {
  color: var(--ink-soft);
}

.price-panel__divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0.75rem 0;
}

.price-panel__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
  margin-top: 1rem;
}

.price-panel__total-label {
  font-family: var(--sans);
  font-weight: 600;
}

.price-panel__total-value {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-panel__note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin: 1rem 0;
}

.price-panel .btn {
  margin-top: 1.25rem;
}

.price-panel--soon .soon-badge {
  margin-bottom: 1rem;
}

/* ── Bike pages: Gallery ──────────────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* ── Bike pages: Spec table ───────────────────────────────────── */

.specs {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.9375rem;
}

.specs th,
.specs td {
  padding: 0.8rem 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.specs th {
  font-weight: 500;
  color: var(--ink-soft);
  width: 40%;
}

.specs td {
  font-weight: 600;
}

/* ── Pre-order page ───────────────────────────────────────────── */

.preorder-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 760px) {
  .preorder-layout {
    grid-template-columns: 1fr;
  }
}

.preorder-header {
  margin-bottom: 0;
}

.preorder-header__badge {
  display: inline-block;
  background: var(--saffron);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45em 1em;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.preorder-header h1 {
  margin-bottom: 0.75rem;
}

.preorder-header p {
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Page intro with a drawing (pre-order, contact, our bikes) */

.page-intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.page-intro__art {
  color: var(--walia);
}

@media (max-width: 760px) {
  .page-intro {
    grid-template-columns: 1fr;
  }

  .page-intro__art {
    max-width: 380px;
  }
}

/* Partnership page */

.partner-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.partner-points li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
}

.partner-points h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.partner-points p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .partner-points {
    grid-template-columns: 1fr;
  }
}

/* Form */

.form {
  display: grid;
  gap: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.form label {
  display: block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75em 0.95em;
  font-family: var(--sans);
  font-size: 0.9375rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--walia);
  outline-offset: 1px;
  border-color: var(--walia);
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.form__checkbox input {
  width: auto;
  margin-top: 0.3em;
  accent-color: var(--walia);
}

.form__checkbox label {
  font-weight: 400;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.form .btn {
  justify-self: start;
}

/* Confirmation or error after sending; the coloured edge carries the
   state so the text itself stays in the ink colour. */
.form__status {
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--stone);
  border-left: 4px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1rem;
  max-width: none;
}

.form__status[data-state="ok"] {
  border-left-color: var(--walia);
}

.form__status[data-state="error"] {
  border-left-color: var(--sun);
}

/* Calculator panel */

.calc-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: 6rem;
}

.calc-panel__badge {
  display: inline-block;
  background: var(--saffron);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.calc-panel__title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.calc-panel__row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9375rem;
}

.calc-panel__row--label {
  color: var(--ink-soft);
}

.calc-panel__row--save {
  color: var(--walia);
  font-weight: 600;
}

.calc-panel__divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0.75rem 0;
}

.calc-panel__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px solid var(--ink);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.calc-panel__total-label {
  font-family: var(--sans);
  font-weight: 600;
}

.calc-panel__total-value {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.calc-panel__note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}

/* FAQ */

.faq {
  list-style: none;
  padding: 0;
  max-width: 72ch;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.5rem 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--walia);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
