@font-face {
  font-family: Volt;
  src: url(assets/display.ttf) format("truetype");
  font-display: swap;
  font-weight: 800;
  font-style: italic;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: #eae9e2;
  color: #20221f;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #b82d1f;
  outline-offset: 5px;
}
.skip {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 50;
  background: #fff;
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
header {
  height: 100px;
  padding: 24px 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
}
.logo {
  font-weight: 900;
  font-size: 38px;
  letter-spacing: -3px;
  font-style: italic;
}
.logo sup {
  font: 11px Arial;
  vertical-align: top;
  letter-spacing: 0;
}
.header-note {
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 1px;
  margin-left: auto;
  margin-right: 7vw;
}
.pill {
  border: 1px solid #888d7f;
  border-radius: 30px;
  padding: 13px 19px;
  font-size: 12px;
  display: flex;
  gap: 34px;
  min-height: 44px;
}
.pill:hover {
  background: #20221f;
  color: #fff;
}
.chapter {
  min-height: 100svh;
  position: relative;
  padding: 120px 4vw 50px;
  pointer-events: none;
}
.chapter a,
.chapter button,
.chapter input,
.config-panel {
  pointer-events: auto;
}
#stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.fallback-bike {
  position: absolute;
  right: 9vw;
  top: 33vh;
  font-family: Volt;
  font-size: 22vw;
  color: #d9311c;
}
.fallback-bike small {
  font: 14px Arial;
  display: block;
  color: #20221f;
}
.webgl .fallback-bike {
  display: none;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  display: flex;
  gap: 36px;
  align-items: center;
}
.eyebrow:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #dc3421;
  display: inline-block;
}
.eyebrow span {
  color: #6c6f65;
  font-size: 9px;
}
h1,
h2 {
  font-family: Volt, Impact, sans-serif;
  font-style: italic;
  font-weight: 800;
  line-height: 0.79;
  letter-spacing: -0.045em;
  margin: 32px 0;
}
h1 {
  font-size: clamp(90px, 13.6vw, 220px);
  position: relative;
  z-index: -2;
  max-width: 70vw;
}
h1 em,
h2 em {
  color: #d63522;
  font-style: inherit;
}
.hero {
  height: 110svh;
}
.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  bottom: 11vh;
  left: 4vw;
  right: 4vw;
}
.hero-bottom p {
  font-size: 13px;
  line-height: 1.5;
}
.round-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #888d7f;
  border-radius: 50%;
  font-size: 24px;
}
.round-link:hover {
  background: #d63522;
  color: #fff;
  border-color: #d63522;
}
.micro {
  font-size: 9px;
  line-height: 1.9;
  letter-spacing: 1px;
}
.side-note {
  position: absolute;
  right: 3vw;
  top: 25vh;
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 2px;
}
.inside {
  min-height: 140svh;
}
.section-copy {
  max-width: 36vw;
}
h2 {
  font-size: clamp(70px, 8.5vw, 136px);
}
.section-copy p {
  max-width: 265px;
  font-size: 14px;
  line-height: 1.8;
}
.part-list {
  margin-top: 40px;
  font-size: 10px;
}
.part-list > span {
  display: flex;
  gap: 30px;
  border-top: 1px solid #bec0b5;
  padding: 16px 0;
  color: #8b8d82;
  font-size: 12px;
}
.part-list b {
  color: #20221f;
  font-weight: 400;
  letter-spacing: 1px;
}
.model-label {
  position: absolute;
  right: 6vw;
  bottom: 20vh;
  font-size: 9px;
  letter-spacing: 2px;
}
.ride {
  height: 130svh;
}
.ride-heading h2 {
  font-size: 12vw;
}
.ride-copy {
  position: absolute;
  bottom: 26vh;
  left: 4vw;
  font-size: 18px;
  line-height: 1.4;
}
.text-link {
  display: block;
  border-bottom: 1px solid;
  font-size: 11px;
  padding: 15px 0;
}
.spec-strip {
  position: absolute;
  bottom: 4vh;
  left: 4vw;
  right: 4vw;
  border-top: 1px solid #92978a;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 25px;
}
.spec-strip > div {
  display: flex;
  align-items: center;
  gap: 22px;
}
.spec-strip strong {
  font-family: Volt;
  font-size: 68px;
  font-style: italic;
}
.spec-strip span {
  font-size: 9px;
  letter-spacing: 1px;
  max-width: 110px;
  line-height: 1.7;
}
.configure {
  min-height: 125svh;
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: start;
  gap: 8vw;
  padding-top: 140px;
}
.config-intro h2 {
  font-size: 8vw;
}
.config-intro p {
  font-size: 13px;
  line-height: 1.8;
}
.config-panel {
  background: rgba(242, 241, 233, 0.94);
  padding: 28px;
  border: 1px solid #b7bbae;
  backdrop-filter: blur(10px);
}
.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  letter-spacing: 1px;
  border-bottom: 1px solid #c4c7b8;
  padding-bottom: 23px;
}
.panel-top output {
  color: #a82a1d;
  letter-spacing: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0;
}
legend {
  font-size: 11px;
  margin-bottom: 16px;
}
.swatches {
  display: flex;
  gap: 18px;
}
.swatch {
  background: var(--swatch);
  height: 44px;
  width: 44px;
  border-radius: 50%;
  border: 3px solid #f2f1e9;
  box-shadow: 0 0 0 1px #b4b8a9;
}
.swatch.active {
  box-shadow: 0 0 0 2px #20221f;
}
.views {
  display: flex;
  border-block: 1px solid #c4c7b8;
  padding-block: 12px;
  gap: 8px;
}
.views button {
  background: none;
  border: 0;
  font-size: 12px;
  padding: 7px 4px;
  flex: 1;
  color: #75796c;
  min-height: 44px;
}
.views button.selected {
  color: #20221f;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  padding: 22px 0;
}
.toggle input {
  width: 18px;
  height: 18px;
  margin-left: auto;
  accent-color: #d63522;
}
.switch {
  display: none;
}
.range-tool label {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.range-tool output {
  font-size: 12px;
  color: #a82a1d;
}
input[type="range"] {
  width: 100%;
  accent-color: #d63522;
  margin: 8px 0;
  height: 44px;
}
.range-result {
  display: flex;
  gap: 15px;
  align-items: center;
}
.range-result strong {
  font-family: Volt;
  font-size: 80px;
  font-style: italic;
  line-height: 1;
}
.range-result span {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 1px;
}
.range-tool p {
  font-size: 12px;
  line-height: 1.7;
  color: #6d7165;
}
.save {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  background: #d63522;
  color: #fff;
  padding: 18px 16px;
  font-size: 11px;
  margin-top: 20px;
}
.save:hover {
  background: #ad2a1d;
}
.save-status {
  font-size: 10px;
  min-height: 12px;
  margin-bottom: 0;
}
footer {
  background: #20221f;
  color: #eae9e2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 60px 4vw;
  z-index: 2;
}
footer > p {
  font-family: Volt;
  font-size: 4vw;
  font-style: italic;
}
footer > span {
  font-size: 9px;
  line-height: 1.7;
}
footer > a:last-child {
  font-size: 10px;
}
.progress {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  z-index: 10;
}
.progress i {
  display: block;
  background: #d63522;
  width: 0;
  height: 100%;
}
@media (min-width: 1600px) {
  .config-panel {
    width: 400px;
    justify-self: end;
  }
  .configure {
    grid-template-columns: 1fr 400px;
  }
}
@media (max-width: 700px) {
  header {
    height: 80px;
    padding: 20px 6vw;
  }
  .logo {
    font-size: 29px;
  }
  .header-note {
    display: none;
  }
  .pill {
    padding: 10px 15px;
    font-size: 12px;
    gap: 16px;
    min-height: 44px;
  }
  .chapter {
    padding: 110px 6vw 40px;
  }
  .hero {
    height: 110svh;
  }
  .eyebrow {
    font-size: 8px;
    gap: 15px;
    letter-spacing: 1px;
  }
  .eyebrow span {
    font-size: 7px;
  }
  h1 {
    font-size: 20vw;
    max-width: 100%;
    margin-top: 28px;
    z-index: auto;
  }
  h1 em {
    display: block;
  }
  .hero-bottom {
    left: 6vw;
    right: 6vw;
    bottom: 9vh;
  }
  .hero-bottom p {
    font-size: 10px;
  }
  .micro {
    font-size: 7px;
  }
  .round-link {
    width: 44px;
    height: 44px;
  }
  .side-note {
    display: none;
  }
  .inside {
    min-height: 135svh;
  }
  .section-copy {
    max-width: 100%;
  }
  .section-copy h2 {
    font-size: 14vw;
    line-height: 0.85;
  }
  .section-copy p {
    font-size: 12px;
    max-width: 240px;
  }
  .part-list {
    max-width: 70%;
    margin-top: 25px;
  }
  .part-list > span {
    padding: 12px 0;
    font-size: 12px;
  }
  .model-label {
    bottom: 5vh;
    font-size: 8px;
  }
  .ride {
    height: 115svh;
  }
  .ride-heading h2 {
    font-size: 18vw;
  }
  .ride-copy {
    bottom: 30vh;
    left: 6vw;
    font-size: 15px;
  }
  .spec-strip {
    left: 6vw;
    right: 6vw;
    gap: 12px;
  }
  .spec-strip > div {
    display: block;
  }
  .spec-strip strong {
    font-size: 48px;
  }
  .spec-strip span {
    display: block;
    font-size: 7px;
    line-height: 1.5;
    max-width: 90px;
  }
  .configure {
    display: block;
    padding-top: 70px;
    min-height: 155svh;
  }
  .config-intro h2 {
    font-size: 18vw;
  }
  .config-intro p {
    font-size: 12px;
  }
  .config-panel {
    margin-top: 43svh;
    padding: 22px;
  }
  .panel-top {
    font-size: 8px;
  }
  footer {
    flex-wrap: wrap;
    padding: 40px 6vw;
  }
  footer > p {
    font-size: 8vw;
  }
  footer > span {
    width: 70%;
    font-size: 8px;
  }
  .fallback-bike {
    top: 45vh;
    right: 20vw;
    font-size: 30vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* The first frame is a racing poster; the object occupies the centre. */
.hero h1 {
  text-align: center;
  max-width: none;
  font-size: 17vw;
  line-height: 0.81;
  margin-top: 20px;
  letter-spacing: -0.055em;
  transform: translateX(calc(var(--ride, 0) * -180px));
}
.hero h1 em {
  font-size: 0.8em;
}
.hero {
  padding-top: 110px;
}
.hero-bottom {
  bottom: 7vh;
}
.velocity-lines {
  position: absolute;
  inset: 50% -5% 12%;
  transform: rotate(-16deg);
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.velocity-lines i {
  position: absolute;
  top: 35%;
  left: 0;
  height: 1px;
  width: 100%;
  background: #9d9e92;
  transform: translateX(calc(var(--ride, 0) * 300px));
}
.velocity-lines i:nth-child(2) {
  top: 50%;
  height: 12px;
  background: #d63522;
  opacity: 0.7;
}
.velocity-lines i:nth-child(3) {
  top: 70%;
}
.config-panel {
  backdrop-filter: none;
  background: #f2f1e9;
}
.ride-heading {
  transform: translateX(calc((var(--ride, 0) - 0.6) * -100px));
}
@media (max-width: 700px) {
  .hero h1 {
    font-size: 26vw;
    margin-top: 42px;
    line-height: 0.85;
  }
  .hero h1 em {
    font-size: 0.74em;
  }
  .hero {
    padding-top: 100px;
  }
  .hero-bottom {
    bottom: 7vh;
  }
  .velocity-lines {
    inset: 50% -30% 16%;
  }
  .ride-heading {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .ride-heading,
  .velocity-lines i {
    transform: none;
  }
}

.hero {
  height: 100svh;
  overflow: clip;
}
.ride {
  overflow: clip;
}

/* Mobile reading and touch layout. */
#save-status {
  font-size: 12px;
}
@media (max-width: 700px) {
  .config-panel {
    padding: 20px;
  }
  .views button {
    font-size: 12px;
    min-height: 44px;
  }
  .config-panel label {
    font-size: 13px;
  }
  .range-tool output {
    font-size: 12px;
  }
  .range-tool p {
    font-size: 12px;
  }
  .toggle {
    min-height: 44px;
    font-size: 13px;
  }
  .save {
    font-size: 13px;
    min-height: 48px;
  }
  #save-status {
    font-size: 12px;
  }
  .hero-bottom p {
    font-size: 12px;
    max-width: 150px;
  }
  .hero-bottom {
    gap: 12px;
  }
  .spec-strip span {
    font-size: 10px;
  }
  .config-panel .swatches {
    gap: 12px;
    flex-wrap: wrap;
  }
  .part-list > span {
    font-size: 12px;
  }
}
@media (max-height: 700px) and (max-width: 700px) {
  .hero {
    padding-top: 100px;
  }
  .hero h1 {
    font-size: 20vw;
  }
  .hero-bottom {
    bottom: 28px;
  }
  .hero-bottom .micro {
    display: none;
  }
  .inside {
    min-height: 130svh;
  }
  .ride {
    height: 120svh;
  }
  .ride-copy {
    bottom: 30vh;
    font-size: 13px;
  }
  .spec-strip strong {
    font-size: 38px;
  }
  .config-panel {
    margin-top: 38svh;
  }
  .configure {
    min-height: 150svh;
  }
}
@media (max-height: 500px) and (min-width: 701px) {
  header {
    height: 65px;
    padding: 12px 4vw;
  }
  .hero {
    padding-top: 80px;
  }
  .hero h1 {
    font-size: 18vh;
  }
  .hero-bottom {
    bottom: 18px;
  }
  .hero-bottom p {
    font-size: 12px;
  }
  .hero-bottom .micro {
    font-size: 10px;
  }
  .inside {
    min-height: 135svh;
  }
  .section-copy {
    max-width: 45%;
  }
  .section-copy h2 {
    font-size: 14vh;
  }
  .section-copy p {
    font-size: 13px;
  }
  .ride-heading h2 {
    font-size: 22vh;
  }
  .ride-copy {
    font-size: 16px;
    bottom: 28%;
  }
  .spec-strip strong {
    font-size: 44px;
  }
  .spec-strip span {
    font-size: 10px;
  }
  .configure {
    min-height: 160svh;
    padding-top: 85px;
  }
  .config-intro h2 {
    font-size: 15vh;
  }
  .config-panel {
    margin-top: 0;
  }
}

/* Road and poster share the same native-scroll journey as the bicycle. */
#stage {
  overflow: hidden;
}
.velocity-lines {
  transform: rotate(calc(-16deg + var(--route-bend, 0) * 3deg));
}
.velocity-lines i {
  left: -25%;
  width: 160%;
  transform: translateX(var(--road-shift, 0px));
}
.inside .model-label {
  transform: translateX(calc(var(--route-bend, 0) * 20px));
}
@media (prefers-reduced-motion: reduce) {
  .velocity-lines,
  .velocity-lines i,
  .inside .model-label {
    transform: none;
  }
}
