@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  --ground: #07090b;
  --ink: #e8ecf0;
  --ink-2: #a3aeb9;
  --ink-3: #7d8894;
  --line: rgba(232, 236, 240, 0.14);
  --m-light: #81c4ff;
  --m-light-hi: #a9d7ff;
  --m-dark: #16588e;
  --m-red: #e7222e;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --mono-stretch: 87.5%;

  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

@media (max-width: 760px) {
  :root { --nav-h: 56px; }
}

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

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  /* the native bar is replaced by .scrollbar (JS); without JS the native one stays */
}
.js { scrollbar-width: none; }
.js::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--m-light); color: var(--ground); }

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

a { color: inherit; }
button { font: inherit; color: inherit; }

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

.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ------------------------------------------------------------------ canvas */

.tunnel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100lvh;
  display: block;
  z-index: 0;
  background: radial-gradient(120% 80% at 50% 38%, #10161c 0%, var(--ground) 70%);
}

.no-webgl .tunnel { background: radial-gradient(90% 60% at 50% 40%, #13202c, var(--ground) 70%); }

/* one fixed scrim so copy always reads over the scene */
.scrim {
  position: fixed;
  inset: auto 0 0 0;
  height: 60lvh;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 9, 11, 0) 0%, rgba(7, 9, 11, 0.7) 42%, rgba(7, 9, 11, 0.93) 100%);
}
@media (min-width: 1024px) and (min-aspect-ratio: 1/1) {
  .scrim {
    inset: 0 auto 0 0;
    width: 60vw;
    height: auto;
    background: linear-gradient(90deg, rgba(7, 9, 11, 0.88) 0%, rgba(7, 9, 11, 0.55) 55%, rgba(7, 9, 11, 0) 100%);
  }
}

/* --------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__stripes { display: inline-flex; gap: 3px; transform: skewX(-20deg); }
.brand__stripes i { display: block; width: 5px; height: 18px; }
.brand__stripes i:nth-child(1) { background: var(--m-light); }
.brand__stripes i:nth-child(2) { background: var(--m-dark); }
.brand__stripes i:nth-child(3) { background: var(--m-red); }
.brand__name {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.brand__tag {
  font-stretch: 112%;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 3px 7px 2px;
}

.nav__menu {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 2px 0 12px;
  background: none;
  border: 0;
  cursor: pointer;
  font-stretch: 112%;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.nav__menu-label { position: relative; display: inline-grid; overflow: hidden; height: 1.3em; }
.nav__menu-label > span { grid-area: 1 / 1; transition: transform 0.6s var(--ease-out); }
.nav__menu-label > span:last-child { transform: translateY(110%); }
.menu-open .nav__menu-label > span:first-child { transform: translateY(-110%); }
.menu-open .nav__menu-label > span:last-child { transform: none; }
.burger { position: relative; width: 26px; height: 14px; }
.burger i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.6s var(--ease-out);
}
.burger i:first-child { top: 2px; }
.burger i:last-child { top: 10px; transform: scaleX(0.62); transform-origin: 100% 50%; }
.nav__menu:hover .burger i:last-child { transform: scaleX(1); }
/* open: the bars cross into an X, and the hover must not undo it */
.menu-open .nav__menu .burger i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav__menu .burger i:last-child { transform: translateY(-4px) rotate(-45deg); transform-origin: 50% 50%; }
/* hover: each arm of the X runs out through one end and draws back in from the other */
.menu-open .nav__menu:hover .burger i:first-child { animation: x-run-a 0.75s var(--ease-out); }
.menu-open .nav__menu:hover .burger i:last-child { animation: x-run-b 0.75s var(--ease-out) 0.08s backwards; }
@keyframes x-run-a {
  0% { transform: translateY(4px) rotate(45deg) translateX(0) scaleX(1); }
  45% { transform: translateY(4px) rotate(45deg) translateX(13px) scaleX(0); }
  46% { transform: translateY(4px) rotate(45deg) translateX(-13px) scaleX(0); }
  100% { transform: translateY(4px) rotate(45deg) translateX(0) scaleX(1); }
}
@keyframes x-run-b {
  0% { transform: translateY(-4px) rotate(-45deg) translateX(0) scaleX(1); }
  45% { transform: translateY(-4px) rotate(-45deg) translateX(13px) scaleX(0); }
  46% { transform: translateY(-4px) rotate(-45deg) translateX(-13px) scaleX(0); }
  100% { transform: translateY(-4px) rotate(-45deg) translateX(0) scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { .menu-open .nav__menu:hover .burger i { animation: none !important; } }
.nav__menu:hover { color: var(--m-light); }
@media (max-width: 760px) { .nav__menu-label { display: none; } }

/* --------------------------------------------------------------------- hud */

.hud {
  position: fixed;
  z-index: 5;
  top: calc(var(--nav-h) + 30px);
  right: var(--gutter);
  display: grid;
  gap: 18px;
  justify-items: end;
  font-family: var(--mono);
  font-stretch: var(--mono-stretch);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.hud__cell { display: grid; gap: 2px; justify-items: end; }
.hud__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hud__value { font-size: 26px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.hud__value small { font-size: 12px; margin-left: 5px; color: var(--ink-2); letter-spacing: 0; }
/* the readout belongs to the airflow and pressure runs only */
.hud.is-off { opacity: 0 !important; }
.hud__note {
  order: -1;
  margin: 0;
  font-family: var(--font);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@media (max-width: 760px) {
  .hud {
    top: calc(var(--nav-h) + 32px);
    left: var(--gutter);
    right: var(--gutter);
    grid-template-columns: auto auto 1fr;
    justify-items: start;
    align-items: end;
    gap: 12px 36px;
  }
  .hud__cell { justify-items: start; gap: 6px; }
  .hud__value { font-size: 22px; }
  .hud__note { grid-column: 1 / -1; }
}

/* ----------------------------------------------------------------- hotspot */

.hotspot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  will-change: transform;
}
.hotspot.is-on { opacity: 1; }
.hotspot__ring {
  position: absolute;
  left: -13px;
  top: -13px;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--m-light);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(129, 196, 255, 0.45);
}
/* a short technical callout: from the ring's edge, 45 degrees out, then a shelf to the label */
.hotspot__leader { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; }
.hotspot__leader polyline { fill: none; stroke: var(--m-light); stroke-width: 1; stroke-dasharray: 3 3; }
.hotspot__ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--m-light);
}
.hotspot__ring::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid var(--m-light);
  animation: hotspot-pulse 1.8s var(--ease-out) infinite;
}
@keyframes hotspot-pulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(2.6); opacity: 0; }
}
.hotspot__label {
  position: absolute;
  left: 0;
  top: 0;
  padding: 5px 8px 4px;
  font-family: var(--mono);
  font-stretch: var(--mono-stretch);
  font-size: 11px;
  color: var(--ink);
  background: rgba(7, 9, 11, 0.72);
  border: 1px solid rgba(129, 196, 255, 0.4);
  white-space: nowrap;
}
/* the beat number ties the pin on the car to its caption */
.hotspot__label b { font-weight: 500; color: var(--m-light); margin-right: 8px; }
@media (prefers-reduced-motion: reduce) { .hotspot__ring::after { animation: none; opacity: 0; } }

/* airspeed becomes the headline while the tunnel spins up */
.hud__cell:first-child .hud__value { transform-origin: 100% 0; transition: transform 0.9s var(--ease-out); }
.hud.is-big .hud__cell:first-child .hud__value { transform: scale(2.3); }
.hud.is-big .hud__cell:first-child { margin-bottom: 30px; }
@media (max-width: 760px) {
  .hud__cell:first-child .hud__value { transform-origin: 0 0; }
  .hud__cell:nth-child(2) { transition: opacity 0.5s var(--ease-out); }
  .hud.is-big .hud__cell:nth-child(2) { opacity: 0; }
  .hud.is-big .hud__cell:first-child { margin-bottom: 0; }
}

/* --------------------------------------------------------------- laser tag */

.laser-tag {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;
  display: grid;
  gap: 2px;
  padding: 6px 9px 5px;
  font-family: var(--mono);
  font-stretch: var(--mono-stretch);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  line-height: 1.3;
  color: var(--m-light);
  background: rgba(7, 9, 11, 0.72);
  border: 1px solid rgba(129, 196, 255, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -100%, 0);
  will-change: transform, opacity;
}
.laser-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--m-light), rgba(129, 196, 255, 0));
}
.laser-tag__label { color: var(--ink); font-size: 12px; }

/* ------------------------------------------------------------------ loader */

.loader {
  position: fixed;
  inset: 0;
  z-index: 40;
  color: var(--ink);
  pointer-events: none;
}
.loader__bg { position: absolute; inset: 0; background: var(--ground); pointer-events: auto; }
/* the exit runs on the compositor: give the moving parts their own layers up front */
.loader__bg, .loader__edge, .loader__mark { will-change: transform; }
/* the wipe edge: a slanted light line that runs across as the black lifts */
.loader__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--m-light);
  box-shadow: 0 0 16px 1px rgba(129, 196, 255, 0.55);
  transform-origin: 0 100%;
  opacity: 0;
}
/* the nav logo, drawn big: each stripe fills bottom-up as a third of the load */
.loader__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  gap: 3px;
  /* position, skew and scale are set from JS so the mark can fly to the nav */
}
/* until the scripts arrive (three.js on a cold cache), an inline script sizes it the same way */
.loader__mark.is-pre { transform: translate(-50%, -50%) skewX(-20deg) scale(var(--s, 6)); }
.loader__mark i { position: relative; display: block; width: 5px; height: 18px; background: rgba(232, 236, 240, 0.07); }
.loader__mark i::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  transform: scaleY(var(--p, 0));
}
.loader__mark i:nth-child(1)::after { background: var(--m-light); }
.loader__mark i:nth-child(2)::after { background: var(--m-dark); }
.loader__mark i:nth-child(3)::after { background: var(--m-red); }
.loader__caption,
.loader__count {
  position: absolute;
  bottom: max(5vh, 28px);
  margin: 0;
  font-family: var(--mono);
  font-stretch: var(--mono-stretch);
  font-size: 12px;
  line-height: 1;
}
.loader__caption { left: var(--gutter); color: var(--ink-3); }
.loader__count { right: var(--gutter); font-variant-numeric: tabular-nums; color: var(--ink); }
.loader.is-gone { display: none; }
.no-js .loader { display: none; }
html.is-loading .nav .brand__stripes { visibility: hidden; }

/* -------------------------------------------------------------------- menu */

.menu {
  position: fixed;
  inset: 0;
  z-index: 9; /* under the nav, so the burger becomes the close control */
  overflow: hidden;
}
.menu[hidden] { display: none; }
/* three M stripes sweep in, the black panel lands last */
.menu__sweep i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45vh;
  right: -45vh;
  transform: skewX(-20deg);
}
.menu__sweep i:nth-child(1) { background: var(--m-light); }
.menu__sweep i:nth-child(2) { background: var(--m-dark); }
.menu__sweep i:nth-child(3) { background: var(--m-red); }
.menu__sweep i:nth-child(4) {
  background: rgba(7, 9, 11, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.menu__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + clamp(24px, 6vh, 64px)) var(--gutter) max(5vh, 28px);
  overflow-y: auto;
}
.menu__list { list-style: none; margin: 0; padding: 0; }
/* room on the left so the slanted mark is not cut flat by the clip */
.menu__list li { overflow: hidden; padding: 0 0 0.06em 24px; margin-left: -24px; }
.menu__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.04em 0;
  text-decoration: none;
  font-stretch: 125%;
  font-weight: 800;
  /* sized by width and by the height left after the nav and the menu foot, so four lines always fit */
  font-size: clamp(2.2rem, min(13vw, (100svh - 330px) / 4.7), 8rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink-3);
  transition: color 0.5s var(--ease-out);
}
/* a small copy of the logo rises in front of the hovered or current chapter, the title steps aside */
.menu__mark {
  position: absolute;
  left: 0;
  top: 50%;
  display: flex;
  gap: 0.05em;
  height: 0.62em;
  margin-top: -0.31em;
  overflow: hidden;
  transform: skewX(-20deg);
}
.menu__mark i { display: block; width: 0.1em; height: 100%; transform: translateY(105%); transition: transform 0.5s var(--ease-out); }
.menu__mark i:nth-child(1) { background: var(--m-light); }
.menu__mark i:nth-child(2) { background: var(--m-dark); transition-delay: 0.04s; }
.menu__mark i:nth-child(3) { background: var(--m-red); transition-delay: 0.08s; }
.menu__title { display: inline-block; transition: transform 0.6s var(--ease-out); }
.menu__list a:hover,
.menu__list a:focus-visible,
.menu__list a.is-current { color: var(--ink); outline: none; }
.menu__list a:hover .menu__title,
.menu__list a:focus-visible .menu__title,
.menu__list a.is-current .menu__title { transform: translateX(0.62em); }
.menu__list a:hover .menu__mark i,
.menu__list a:focus-visible .menu__mark i,
.menu__list a.is-current .menu__mark i { transform: none; }
/* while another chapter is hovered, the current one gives the mark back */
.menu__list:hover a.is-current:not(:hover) { color: var(--ink-3); }
.menu__list:hover a.is-current:not(:hover) .menu__title { transform: none; }
.menu__list:hover a.is-current:not(:hover) .menu__mark i { transform: translateY(105%); }
.menu__foot { display: grid; gap: 18px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.menu__models { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu__label { font-family: var(--mono); font-stretch: var(--mono-stretch); font-size: 12px; color: var(--ink-3); }
.menu__chips { display: flex; gap: 10px; padding: 0 8px; }
/* slanted plates, cut like the main CTA */
.menu__chips button {
  position: relative;
  isolation: isolate;
  min-width: 70px;
  height: 44px;
  padding: 0 16px;
  background: none;
  border: 0;
  cursor: pointer;
  font-stretch: 125%;
  font-style: italic;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  transition: color 0.25s var(--ease-out);
}
.menu__chips button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(232, 236, 240, 0.28);
  transform: skewX(-20deg);
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.menu__chips button:hover { color: var(--ground); }
.menu__chips button:hover::before { background: var(--m-light); border-color: var(--m-light); }
.menu__chips button:active { transform: translateY(1px); }
@media (min-width: 1024px) {
  .menu__foot { grid-template-columns: auto 1fr; align-items: center; column-gap: 56px; }
  .menu__models { justify-content: flex-start; gap: 24px; }
  .menu__note { justify-self: end; text-align: right; }
}
.menu__note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); max-width: 60ch; }

/* ------------------------------------------------------------ scrollbar */

/* a hairline on the right edge; the thumb wakes up while scrolling and can be dragged */
.scrollbar {
  position: fixed;
  z-index: 8;
  top: 8px;
  right: 3px;
  bottom: 8px;
  width: 12px;
  display: none;
  cursor: grab;
}
@media (pointer: fine) { .js .scrollbar { display: block; } }
.scrollbar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 3px;
  width: 1px;
  background: rgba(232, 236, 240, 0.06);
  transition: background-color 0.3s var(--ease-out);
}
.scrollbar__thumb {
  position: absolute;
  top: 0;
  right: 2px;
  width: 3px;
  background: var(--ink-2);
  opacity: 0.3;
  transform-origin: 100% 50%;
  transition: opacity 0.5s var(--ease-out), width 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
  will-change: transform;
}
.scrollbar.is-active .scrollbar__thumb { opacity: 1; }
.scrollbar:hover::before { background: rgba(232, 236, 240, 0.12); }
.scrollbar:hover .scrollbar__thumb,
.scrollbar.is-drag .scrollbar__thumb { opacity: 1; width: 6px; background: var(--m-light); }
.scrollbar.is-drag { cursor: grabbing; }
.menu-open .scrollbar { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- rail */

.rail {
  position: fixed;
  z-index: 5;
  right: var(--gutter);
  bottom: max(9vh, 56px);
  display: flex;
  gap: 14px;
}
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-items: end; }
.rail a {
  font-stretch: 112%;
  font-weight: 650;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.35s var(--ease-out), transform 0.5s var(--ease-out);
}
.rail a:hover { color: var(--ink); }
.rail a.is-current { color: var(--ink); transform: translateX(-6px); }
.rail__track { order: 2; position: relative; width: 1px; background: var(--line); }
.rail__fill { position: absolute; inset: 0; background: var(--m-light); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
@media (max-width: 1023px), (max-aspect-ratio: 1/1) {
  .rail { left: 0; right: 0; top: var(--nav-h); bottom: auto; height: 2px; }
  .rail ol { display: none; }
  .rail__track { order: 0; width: 100%; height: 2px; background: rgba(232, 236, 240, 0.08); }
  .rail__fill { transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
}

/* -------------------------------------------------------------- chapters */

.story { position: relative; z-index: 2; }

.chapter { position: relative; height: calc(var(--vh-unit, 1vh) * 100); }

.stick {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) max(9vh, 56px);
  pointer-events: none;
}
.stick > * { pointer-events: auto; }

.copy { max-width: 38rem; }
.copy--hero { max-width: 52rem; }

.display {
  margin: 0;
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.5rem, 10.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.display--2 { font-size: clamp(2.1rem, 8.4vw, 4.4rem); line-height: 1; }
.display--3 { font-size: clamp(1.9rem, 7.4vw, 3.6rem); line-height: 1.02; }
#hero-title { max-width: 11ch; }

.lede,
.body {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* split words for the mask reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.w > span { display: inline-block; will-change: transform; }

/* --------------------------------------------------------------------- cta */

.cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 15px 30px 15px 20px;
  color: var(--ground);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out);
}
/* The fill is one long slanted gradient: blue | livery edge | white | livery edge | blue.
   JS (main.js, "CTA hover") slides it so the livery always travels left to right: in on
   hover, on through and out on leave. Without JS the button is plain light blue. */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--m-light);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.cta__fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  background: linear-gradient(110deg,
    var(--m-light) 0 30%, var(--m-red) 30% 31.2%, var(--m-dark) 31.2% 32.4%,
    var(--ink) 32.4% 63%, var(--m-red) 63% 64.2%, var(--m-dark) 64.2% 65.4%,
    var(--m-light) 65.4% 100%);
  background-size: 400% 100%;
  background-position: 100% 0;
  pointer-events: none;
}

/* label and arrow each have a twin for the roll; GSAP moves them */
.cta__roll { display: inline-grid; overflow: hidden; line-height: 1.3; }
.cta__text { grid-area: 1 / 1; display: block; }
.cta__icon { display: inline-grid; overflow: hidden; }
.cta__icon .icon { grid-area: 1 / 1; }
.cta:active { transform: translateY(1px) scale(0.99); }

.cta--small { margin-top: 20px; padding: 12px 26px 12px 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.link {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 600;
}

/* Text links: a faint resting rule; on hover a bright line draws in from the left, and on
   leave it runs on out to the right. The draw layer is anchored right at rest and left on
   hover; only its size transitions, so the anchor flips while it is invisible or full width.
   Backgrounds on an inline box follow every wrapped line, unlike a pseudo-element. */
.link,
.footer__base a {
  --rule: rgba(129, 196, 255, 0.35);
  --draw: var(--m-light);
  text-decoration: none;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--draw), var(--draw)), linear-gradient(var(--rule), var(--rule));
  background-size: 0% 1px, 100% 1px;
  background-position: 100% 100%, 0 100%;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.55s var(--ease-out), color 0.3s var(--ease-out);
}
.link:hover,
.link:focus-visible,
.footer__base a:hover,
.footer__base a:focus-visible { background-size: 100% 1px, 100% 1px; background-position: 0 100%, 0 100%; }
.link:hover { color: var(--m-light); }

/* ------------------------------------------------------------------- beats */

.beats { position: relative; max-width: 36rem; }
.beat { grid-area: 1 / 1; align-self: end; }
.beats { display: grid; }
.beat { transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), filter 0.5s var(--ease-out); }
.beat:not(.is-active) { opacity: 0; transform: translateY(18px); filter: blur(6px); pointer-events: none; }
.beat__num {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-stretch: var(--mono-stretch);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 11vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--m-light);
}
.beat__num span { font-size: 0.34em; letter-spacing: 0; margin-left: 0.3em; color: var(--ink-3); vertical-align: 0.15em; }
.beat-index { display: flex; gap: 6px; margin-top: 26px; }

/* -------------------------------------------------------- pressure legend */

/* the caption doubles as the colour key for the pressure paint */
.key { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; max-width: 34ch; }
.key li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 2px; align-items: baseline; }
.key b { font-stretch: 112%; font-weight: 700; font-size: 15px; color: var(--ink); }
.key li > span:last-child { grid-column: 2; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.key__swatch { grid-row: 1 / span 2; align-self: start; margin-top: 4px; width: 28px; height: 12px; transform: skewX(-20deg); }
.key__swatch--high { background: linear-gradient(90deg, var(--ink), var(--m-red)); }
.key__swatch--low { background: linear-gradient(90deg, var(--m-light), var(--m-dark)); }
.beat-index i { display: block; width: 26px; height: 2px; background: var(--line); transition: background-color 0.4s var(--ease-out); }
.beat-index i.is-active { background: var(--m-light); }

/* ------------------------------------------------------------------ lineup */

/* the model names are the selector, set in display type */
.tabs { display: flex; gap: clamp(18px, 6vw, 40px); }
.tab {
  position: relative;
  min-height: 48px;
  padding: 0 0 12px;
  background: none;
  border: 0;
  cursor: pointer;
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.6rem, 12vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink-3);
  transition: color 0.35s var(--ease-out);
}
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab__mark { position: absolute; left: 0; right: 0.1em; bottom: 0; display: flex; gap: 3px; height: 5px; }
.tab__mark i { flex: 1; transform: skewX(-20deg) scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease-out); }
.tab__mark i:nth-child(1) { background: var(--m-light); }
.tab__mark i:nth-child(2) { background: var(--m-dark); transition-delay: 0.05s; }
.tab__mark i:nth-child(3) { background: var(--m-red); transition-delay: 0.1s; }
.tab[aria-selected="true"] .tab__mark i { transform: skewX(-20deg) scaleX(1); }

.board { margin-top: 18px; max-width: 32rem; }
.board__name {
  margin: 0 0 14px;
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(1rem, 4.2vw, 1.25rem);
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.board__rows {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.board__row { display: grid; gap: 4px; align-content: start; }
.board__row--hero,
.board__row--wide { grid-column: 1 / -1; }
.board__row dt { font-size: 13px; color: var(--ink-3); }
.board__row dd {
  margin: 0;
  font-family: var(--mono);
  font-stretch: var(--mono-stretch);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: pre;
}
/* horsepower is the number people repeat, so it gets the size */
.board__row--hero dd { font-size: clamp(2.8rem, 13vw, 4.6rem); font-weight: 400; letter-spacing: -0.05em; line-height: 0.95; }
.board__row--wide dd { font-size: clamp(0.95rem, 4vw, 1.15rem); }
.flap { display: inline-block; width: 1ch; text-align: center; }
.flap.is-flipping { color: var(--m-light); }
.board__note { margin: 14px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); max-width: 46ch; }
/* phones: the block stays short so the car keeps a clear band between the nav and the tabs */
@media (max-width: 760px) {
  .tab { font-size: clamp(2.2rem, 10vw, 3.2rem); padding-bottom: 10px; }
  .board { margin-top: 12px; }
  .board__name { margin-bottom: 10px; }
  .board__rows { padding-top: 12px; gap: 10px 20px; }
  .board__row dd { font-size: clamp(1.1rem, 4.6vw, 1.35rem); }
  .board__row--hero dd { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .board .cta--small { margin-top: 18px; }
  .board__note { margin-top: 12px; font-size: 11px; }
  #lineup .stick { padding-bottom: max(5vh, 32px); }
}

/* ------------------------------------------------------------------- close */

.copy--close .display { max-width: 13ch; }

/* ------------------------------------------------------------------ footer */

.footer {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 12vh, 140px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--ground);
  color: var(--ink-3);
  font-size: 12px;
  overflow: hidden;
}
/* the side livery of the car: three bands whose ends line up on one 20-degree cut */
.footer__livery {
  --h: clamp(12px, 2.4vw, 26px);
  --gap: clamp(4px, 0.7vw, 8px);
  --run: calc((var(--h) + var(--gap)) * 0.364);
  display: grid;
  gap: var(--gap);
  margin: 0 calc(var(--gutter) * -1) clamp(40px, 7vh, 80px);
}
.footer__livery i {
  display: block;
  height: var(--h);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--h) * 0.364) 100%, 0 100%);
  transform-origin: 0 50%;
}
.footer__livery i:nth-child(1) { width: 82%; background: var(--m-light); }
.footer__livery i:nth-child(2) { width: calc(82% - var(--run)); background: var(--m-dark); }
.footer__livery i:nth-child(3) { width: calc(82% - var(--run) * 2); background: var(--m-red); }

.footer__sig { display: grid; gap: 12px; }
/* both studios on one line; the underline draws in and leaves left to right, like the other links */
.footer__amp { color: var(--ink-3); }
.footer__handle a { color: inherit; text-decoration: none; background: linear-gradient(var(--m-light), var(--m-light)) 100% 100% / 0 0.06em no-repeat; transition: background-size 0.6s var(--ease-out); }
.footer__handle a:hover,
.footer__handle a:focus-visible { background-size: 100% 0.06em; background-position: 0 100%; outline: none; }
.footer__label { margin: 0; font-family: var(--mono); font-stretch: var(--mono-stretch); font-size: 12px; color: var(--ink-3); }
.footer__handle {
  margin: 0;
  font-stretch: 125%;
  font-weight: 800;
  /* the whole line is ~17em wide, so it is sized to fill the gutters exactly */
  font-size: min(9rem, calc((100vw - var(--gutter) * 2) / 17.3));
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  white-space: nowrap;
  padding-bottom: 0.06em;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-top: clamp(40px, 7vh, 72px);
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer__nav a,
.footer__up {
  font-stretch: 112%;
  font-weight: 650;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}
.footer__nav a:hover,
.footer__up:hover { color: var(--ink); }
.footer__up {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.footer__base { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; padding-top: 20px; }
.footer__base p { margin: 0; max-width: 62ch; line-height: 1.55; }
.footer__base a { --rule: rgba(232, 236, 240, 0.18); --draw: var(--ink); color: var(--ink-2); padding-bottom: 2px; }
.footer__base a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .footer__base { grid-template-columns: 1fr; }
  /* two by two links, "Top" holds the right edge across both rows instead of wrapping onto its own line */
  .footer__nav { display: grid; grid-template-columns: auto auto 1fr; gap: 0 32px; padding: 10px 0; }
  .footer__nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer__up { grid-column: 3; grid-row: 1 / span 2; justify-self: end; margin-left: 0; }
}

/* the fixed instruments step out of the way once the footer takes the screen */
.hud, .rail { transition: opacity 0.4s var(--ease-out); }
.at-footer .hud,
.at-footer .rail { opacity: 0 !important; pointer-events: none; }

/* ----------------------------------------------------------- intro states */

.js [data-intro] { opacity: 0; }
.js .w > span { transform: translateY(110%) skewY(7deg); }
.js [data-reveal] { opacity: 0; pointer-events: none; transition: opacity 0.45s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; pointer-events: auto; transition-duration: 0.2s; }
[data-reveal] { position: relative; }
[data-reveal]::before {
  content: "";
  position: absolute;
  left: 0;
  top: -22px;
  width: min(100%, 22rem);
  height: 1px;
  background: linear-gradient(90deg, var(--m-light), rgba(129, 196, 255, 0));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
[data-reveal].is-in::before { transform: scaleX(1); transition: transform 1.1s var(--ease-out); }
.js [data-reveal] .body,
.js [data-reveal] .key,
.js [data-reveal] .tabs,
.js [data-reveal] .board,
.js [data-reveal] .actions,
.js [data-reveal] .beat-index { opacity: 0; transform: translateY(14px); }

.is-in .w > span { transform: none; transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.is-in .body,
.is-in .key,
.is-in .tabs,
.is-in .board,
.is-in .actions,
.is-in .beat-index {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.8s var(--ease-out) 0.25s, transform 0.9s var(--ease-out) 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-intro],
  .js .w > span,
  .js [data-reveal].is-in,
  .js [data-reveal] .body,
  .js [data-reveal] .key,
  .js [data-reveal] .tabs,
  .js [data-reveal] .board,
  .js [data-reveal] .actions,
  .js [data-reveal] .beat-index { opacity: 1; transform: none; }
  .beat { transition: opacity 0.2s linear; }
  .beat:not(.is-active) { transform: none; filter: none; }
}
