@font-face {
  font-family: Barlow;
  src: url("assets/barlow-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: DejaVu;
  src: url("assets/dejavu.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #101311;
  --graphite: #1d252c;
  --sand: #d6d2c4;
  --moss: #3e4827;
  --ivory: #f5f2e9;
  --canvas: #101311;
  --surface: #17201e;
  --panel: #202825;
  --text: #f5f2e9;
  --bike-photo-background: radial-gradient(ellipse at 50% 58%, #f1eee6, #d6d5cc);
  --bike-photo-border: #a9aaa1;
  --muted: #d0cec2;
  --line: #abb1a55e;
  --accent: #d1d9b4;
  --topbar: 4.7rem;
  --gutter: clamp(1.25rem, 5.2vw, 5.6rem);
  --width: 94rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #f1eee4;
  --surface: #e6e3d8;
  --panel: #f4f1e8;
  --text: #1d252c;
  --muted: #3d463e;
  --line: #57614e69;
  --accent: #3e4827;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--topbar) + .6rem); }
body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font: 1rem/1.65 DejaVu, "DejaVu Sans", sans-serif;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h2, h3, .hero-signature, .era-signature {
  font-family: Barlow, "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: .93;
}
h2 { font-size: clamp(3rem, 6.1vw, 6.1rem); }
h3 { font-size: clamp(2.35rem, 3.6vw, 3.8rem); }

.layout {
  max-width: var(--width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section-space { padding-block: clamp(3.55rem, 6.5vw, 6.75rem); }
.eyebrow {
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.quiet-link {
  display: inline-block;
  text-underline-offset: .33em;
  text-decoration-thickness: 1px;
}
.quiet-link:hover { text-decoration-thickness: 2px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .68rem 1.2rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: .9375rem;
  line-height: 1.3;
  transition: color .18s, background-color .18s, border-color .18s;
}
.button-hero { color: var(--graphite); background: var(--sand); }
.button-hero:hover { background: var(--ivory); }
.button-nav { border-color: var(--text); }
.button-nav:hover { background: var(--text); color: var(--canvas); }
.skip {
  position: fixed;
  top: .65rem;
  left: .65rem;
  z-index: 5;
  padding: .65rem .9rem;
  transform: translateY(-175%);
  background: var(--panel);
  color: var(--text);
}
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(.85rem, 2.2vw, 2.45rem);
  min-height: calc(var(--topbar) - 1px);
}
.wordmark { display: inline-block; width: clamp(7.5rem, 11vw, 10rem); padding-block: .65rem; }
:root[data-theme="light"] .wordmark img { filter: brightness(0) saturate(100%); }
.nav-desktop, .header-actions { display: flex; align-items: center; }
.nav-desktop { gap: clamp(.9rem, 2.2vw, 2.1rem); }
.nav-desktop a { font-size: .875rem; text-decoration: none; white-space: nowrap; }
.nav-desktop a:hover { text-decoration: underline; text-underline-offset: .35em; }
.header-actions { gap: clamp(.8rem, 1.8vw, 1.65rem); justify-content: end; }
.header-actions .button { white-space: nowrap; }
.theme-toggle {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .3rem .1rem;
  border: 0;
  background: none;
  font-size: .875rem;
  cursor: pointer;
}
.theme-toggle:hover { text-decoration: underline; text-underline-offset: .35em; }
.theme-icon {
  width: .9rem;
  height: .9rem;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
:root[data-theme="light"] .theme-icon {
  background: linear-gradient(90deg, transparent 50%, currentColor 50%);
}
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { display: flex; align-items: center; cursor: pointer; min-height: 2.75rem; font-size: .875rem; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav {
  position: absolute;
  right: 0;
  top: calc(100% + .62rem);
  min-width: min(15.5rem, 78vw);
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  background: var(--canvas);
  box-shadow: 0 .65rem 1.8rem #0004;
}
.nav-mobile nav a { display: block; text-decoration: none; padding: .63rem .35rem; }
.nav-mobile nav a:hover { text-decoration: underline; }

.hero, .tests { isolation: isolate; position: relative; overflow: hidden; color: var(--ivory); }
.hero {
  display: grid;
  align-items: center;
  min-height: clamp(36rem, calc(91svh - var(--topbar)), 49rem);
  background: var(--ink);
}
.hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 10%;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% 88%;
  filter: saturate(.85) contrast(1.045);
  transform-origin: 64% 77%;
  transform: scale(var(--hero-depth, 1));
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #101311 6%, #101311ef 23%, #1013119c 41%, #1013110c 72%),
    linear-gradient(0deg, #101311db, #10131123 24%, transparent 63%, #10131139);
}
.hero-content { width: 100%; padding-block: clamp(4.6rem, 8vw, 8.4rem); }
.hero-signature {
  margin-block: 1.05rem 1.35rem;
  font-size: clamp(5rem, 11vw, 11rem);
  letter-spacing: -.025em;
  line-height: .79;
  text-transform: uppercase;
}
.hero-signature span { display: block; }
.hero-intro { max-width: 40ch; color: #ebe8de; font-size: clamp(1rem, 1.45vw, 1.22rem); }
.hero-actions { display: flex; align-items: center; gap: .85rem 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-actions .quiet-link { padding-block: .6rem; font-size: .9375rem; }
.hero a:focus-visible, .tests a:focus-visible { outline-color: var(--ivory); }
.hero-controls { margin-top: .85rem; }
.hero-motion-hint { margin-top: .45rem; max-width: 42ch; color: var(--ivory); font-size: .875rem; }
.hero-play {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  min-height: 2.85rem;
  padding: .48rem .82rem;
  color: var(--ivory);
  border: 1px solid #e9e6d9ac;
  background: #101311ed;
  cursor: pointer;
  font-size: .875rem;
}
.hero-play:disabled { cursor: default; }
.hero-play:not(:disabled):hover { background: var(--ivory); color: var(--ink); }
.hero-play:focus-visible { outline-color: var(--ivory); }
.play-glyph {
  width: .8rem;
  height: .85rem;
  background: currentColor;
  clip-path: polygon(16% 0, 100% 50%, 16% 100%);
}
.hero-play[data-playing] .play-glyph { clip-path: inset(9%); }

.models { background: var(--surface); border-block: 1px solid var(--line); }
.models-intro { display: grid; grid-template-columns: 1.31fr .69fr; align-items: end; gap: 1.15rem 3rem; }
.models-intro p, .material-content p { color: var(--muted); max-width: 47ch; }
.models-intro p { padding-bottom: .35rem; }
.terrain {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.terrain legend { padding: 0; font-size: .9375rem; }
.terrain-options { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; }
.terrain-options button {
  min-height: 2.75rem;
  padding: .45rem .9rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  font-size: .875rem;
  cursor: pointer;
}
.terrain-options button:hover { border-color: var(--text); }
.terrain-options button:focus-visible { outline-color: var(--accent); }
.terrain-options button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--canvas); }
.terrain-result { min-height: 1.55rem; margin-top: .35rem; color: var(--accent); font-size: .875rem; }
.terrain-result a { margin-inline-start: .5rem; }

.model-tools { margin-top: 2.2rem; }
.compare {
  border-block: 1px solid var(--line);
  margin-top: .65rem;
}
.compare summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: .6rem .72rem;
  cursor: pointer;
  font-size: .9375rem;
}
.compare summary:hover { background: var(--panel); }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after {
  content: "";
  width: .5rem;
  height: .5rem;
  flex: none;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  margin-right: .15rem;
}
.compare[open] summary::after { transform: rotate(225deg); }
.compare-content { padding-bottom: .65rem; }
.compare table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  font-size: .875rem;
  line-height: 1.45;
}
.compare th, .compare td { padding: .6rem .72rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { color: var(--muted); font-weight: 400; }
.compare td { color: var(--muted); }
.compare th:first-child { width: 23%; }
.compare th a { text-underline-offset: .25em; }

.model-grid { display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: clamp(.8rem, 1.65vw, 1.65rem); margin-top: 1.35rem; }
.model { min-width: 0; background: var(--panel); border: 1px solid var(--line); }
.model:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.model[data-recommended] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.model-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.model-link:focus-visible { outline-offset: 3px; }
.model-photo {
  display: grid;
  place-items: center;
  height: clamp(10rem, 18vw, 18rem);
  overflow: hidden;
  background: var(--bike-photo-background);
  border-bottom: 1px solid var(--bike-photo-border);
}
.model-photo img { height: 100%; object-fit: contain; padding: .75rem 1.15rem .4rem; transition: transform .2s ease; }
@media (hover: hover) { .model-link:hover .model-photo img { transform: scale(1.027); } }
.model-body { flex: 1; display: flex; flex-direction: column; padding: clamp(1.05rem, 2vw, 1.55rem); }
.model-body .eyebrow { color: var(--muted); letter-spacing: .1em; }
.model-body h3 { margin: .25rem 0 .55rem; text-transform: uppercase; }
.model-body h3 + p { color: var(--muted); margin-bottom: .8rem; line-height: 1.5; }
.model-body .quiet-link { margin-top: auto; text-decoration: underline; font-size: .875rem; }
.model-link:hover .quiet-link { text-decoration-thickness: 2px; }

@media (min-width: 1020px) {
  .model-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .model:first-child { grid-row: span 2; }
  .model:first-child .model-photo { flex: 1; min-height: 17rem; height: auto; }
  .model:first-child .model-body { flex: 0 0 auto; }
  .model:first-child h3 { font-size: clamp(3.65rem, 5vw, 5.25rem); }
  .model:not(:first-child) .model-link {
    display: grid;
    grid-template-columns: minmax(0, .98fr) minmax(0, 1fr);
  }
  .model:not(:first-child) .model-photo {
    height: auto;
    min-height: 12rem;
    border-bottom: 0;
    border-right: 1px solid var(--bike-photo-border);
  }
  .model:not(:first-child) .model-body { padding: 1.1rem 1.25rem; }
  .model:not(:first-child) h3 { font-size: clamp(2.15rem, 3.2vw, 3.25rem); }
}

.material { background: var(--canvas); }
.material-layout {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(1.65rem, 6vw, 6.4rem);
  padding-block: clamp(3.8rem, 6.5vw, 6.75rem);
}
.material-photo { aspect-ratio: 1.34; object-fit: cover; filter: saturate(.65); }
.material-content p { margin-block: 1.1rem .95rem; }

.era { background: #171a17; color: var(--ivory); border-block: 1px solid #a0a6954a; }
.era-layout {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
  align-items: center;
  gap: .7rem 3.2rem;
  padding-block: clamp(3rem, 5.4vw, 5.65rem);
}
.era-content { grid-area: 1 / 1; }
.era-content .eyebrow { color: var(--sand); }
.era-content h2 { margin-top: .5rem; font-size: clamp(4.6rem, 8.75vw, 9rem); text-transform: uppercase; }
.era-signature { color: var(--sand); font-size: clamp(2rem, 3.5vw, 3.7rem); text-transform: uppercase; margin: .4rem 0 .95rem; }
.era-content p:last-child { color: #e3dfd4; max-width: 40ch; }
.era-photo {
  grid-area: 1 / 2;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #141512;
  border: 1px solid #a0a6954a;
}
.era-terrain { grid-column: 1 / -1; margin-top: clamp(1.2rem, 3vw, 2.5rem); }
.era-terrain h3 { margin-bottom: 1rem; color: var(--sand); font-size: clamp(1.65rem, 2.2vw, 2.3rem); }
.era-terrain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.55rem, 1.45vw, 1.35rem); }
.era-terrain figure { min-width: 0; margin: 0; border: 1px solid #a0a6954a; background: #20231e; }
.era-terrain img { aspect-ratio: 8 / 5; object-fit: cover; filter: saturate(.64) brightness(.86); }
.era-terrain figcaption { padding: .48rem .65rem; font-size: .875rem; line-height: 1.35; }

.tests { min-height: min(29rem, 85svh); display: grid; align-items: center; }
.tests-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.tests::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #101311f5 4%, #101311c7 32%, #1013114b 72%, #10131123),
              linear-gradient(0deg, #1013119c, transparent 63%);
}
.tests-content { width: 100%; padding-block: clamp(3.65rem, 7.3vw, 7.35rem); }
.tests h2 { margin-block: .55rem .95rem; }
.tests h2 + p { max-width: 43ch; color: #efede4; margin-bottom: 1.35rem; }

.site-footer { background: var(--canvas); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.15rem; padding-block: 1.25rem; font-size: .875rem; }
.photo-credits { border-top: 1px solid var(--line); width: 100%; padding-block: .7rem .25rem; color: var(--muted); }
.photo-credits summary { cursor: pointer; width: fit-content; min-height: 2rem; }
.photo-credits ul { margin: .3rem 0 .6rem; padding-left: 1.35rem; }
.photo-credits li { margin-block: .2rem; }

@media (max-width: 890px) {
  :root { --topbar: 4.2rem; }
  .site-header-inner { grid-template-columns: 1fr auto; }
  .nav-desktop, .header-actions .button-nav { display: none; }
  .nav-mobile { display: block; }
}
@media (max-width: 700px) {
  .hero { min-height: clamp(34rem, calc(91svh - var(--topbar)), 44rem); }
  .hero-photo { inset-inline-start: 0; }
  .hero-photo img { object-position: 54% 68%; }
  .hero::after {
    background: linear-gradient(90deg, #101311bb, #1013116a 62%, #10131129),
                linear-gradient(0deg, #101311ca, transparent 56%, #10131142);
  }
  .hero-content { padding-block: 3rem; }
  .hero-signature { font-size: clamp(4.15rem, 15vw, 7rem); }
  .models-intro, .model-grid, .material-layout, .era-layout { grid-template-columns: 1fr; }
  .model-tools { margin-top: 1.55rem; }
  .terrain-result { min-height: 2.9rem; }
  .compare th, .compare td { padding-inline: .4rem; }
  .compare th:first-child { width: 28%; }
  .model-grid { margin-top: .65rem; }
  .model-photo { height: auto; aspect-ratio: 1.66; }
  .model-photo img { max-width: 30rem; }
  .material-content { grid-row: 1; }
  .era-content, .era-photo { grid-area: auto; }
  .era-content { grid-row: 1; }
  .era-layout { gap: 1.15rem; }
  .era-terrain { margin-top: .6rem; }
  .era-terrain figcaption { padding-inline: .42rem; }
  .tests::after { background: linear-gradient(90deg, #101311e6, #101311b2 68%, #10131179); }
}
@media (max-width: 365px) {
  .hero-actions { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .header-actions { gap: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .hero-photo img, .model-link:hover .model-photo img { transform: none; }
}

.sar-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ivory);
  background: #131814;
}
.sar-landscape {
  position: absolute;
  z-index: -2;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  filter: saturate(.72);
}
.sar-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #101311f7 0%, #101311ed 21%, #101311af 49%, #1013112e 85%),
    linear-gradient(0deg, #101311 0%, #10131124 57%, #10131135 100%);
}
.sar-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.6rem);
  min-height: min(690px, 79svh);
  padding-block: clamp(3rem, 6vw, 6.3rem);
}
.sar-intro { max-width: 36rem; }
.sar-back { margin-bottom: clamp(1.45rem, 3.3vw, 3rem); font-size: .875rem; }
.sar-intro h1 {
  margin-block: .65rem 1.25rem;
  font: 700 clamp(4.5rem, 9.6vw, 10rem)/.81 Barlow, "Arial Narrow", sans-serif;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.sar-intro h1 span { display: block; color: var(--sand); font-size: .54em; letter-spacing: 0; line-height: 1; }
.sar-lead { max-width: 43ch; color: #ebe8de; text-wrap: pretty; }
.sar-product {
  min-width: 0;
  padding: clamp(.75rem, 2.4vw, 2rem);
  background: var(--bike-photo-background);
  border: 1px solid var(--bike-photo-border);
}
.sar-product img { filter: drop-shadow(0 .4rem .65rem #0003); }
.sar-terrain { background: var(--surface); border-block: 1px solid var(--line); }
.sar-terrain-layout { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(1.3rem, 5vw, 5rem); }
.sar-trail { margin: 0; }
.sar-trail img { aspect-ratio: 8 / 5; object-fit: cover; filter: saturate(.7) brightness(.9); }
.sar-observations { display: grid; gap: .8rem; margin: 1.3rem 0 0; }
.sar-observations div { border-top: 1px solid var(--line); padding-top: .72rem; }
.sar-observations dt { color: var(--text); font-weight: 700; }
.sar-observations dd { margin: .12rem 0 0; color: var(--muted); }
.sar-centres-intro { color: var(--muted); margin: .8rem 0 1.55rem; }
.sar-centre-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.55rem); }
.sar-centre {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: .8rem;
  padding: clamp(1.1rem, 2.6vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--panel);
}
.sar-centre p { color: var(--muted); }
.sar-official { margin-top: 1.15rem; font-size: .875rem; }
@media (max-width: 700px) {
  .sar-hero-inner, .sar-terrain-layout, .sar-centre-grid { grid-template-columns: 1fr; }
  .sar-hero-inner { min-height: 0; }
  .sar-hero::after { background: linear-gradient(180deg, #101311d9 0%, #101311dd 34%, #10131138 73%, #101311a3 100%); }
  .sar-intro h1 { font-size: clamp(4rem, 14.5vw, 7.2rem); }
  .sar-product { width: min(100%, 32rem); justify-self: center; }
  .sar-notes { grid-row: 1; }
}
