/*
 * ridecari.com: the homepage (docs/designs/website-story.md).
 *
 * Two layouts of ONE page. The base rules are the plain one: hero, then the seven
 * steps stacked as ordinary sections, then the footer. It is what you get with no
 * script, with `prefers-reduced-motion`, and before the script has started. When
 * the story engine starts it puts `engine` on <html>, and the `.engine` rules
 * below pin the steps into one full-screen scene over the map.
 *
 * Colours are Cari's dark palette (packages/design-tokens/src/palette.ts); the
 * site is dark only.
 */

:root {
  color-scheme: dark;
  --canvas: #0a0b0d;
  --card: #15171b;
  --raised2: #1f2228;
  --line: #2a2e36;
  --line2: #1a1d23;
  --ink: #f5f7fa;
  --ink2: #9ca3af;
  --mute: #81899c;
  --mint: #36f1a5;
  --mintink: #0a0b0d;
  --soft: #e6ebf2;
  --danger: #f87171;
  --adisp: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --disp: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--canvas);
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 14px / 1.4 var(--body);
  -webkit-font-smoothing: antialiased;
}
[hidden] {
  display: none !important;
}
.site {
  position: relative;
  overflow-x: clip;
}
.site * {
  box-sizing: border-box;
}
.site svg {
  display: block;
}
.site a {
  color: inherit;
}
.site :focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 99px;
  background: var(--mint);
  color: var(--mintink);
  font: 600 13px var(--body);
}
.skip:focus {
  top: 12px;
}
.wm {
  height: 22px;
  width: auto;
}
.wm-ink {
  fill: #f5f7fa;
}
.wm-dot {
  fill: #36f1a5;
}
.wordmark {
  display: inline-block;
  line-height: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--mint);
  color: var(--mintink) !important;
  font: 500 14.5px var(--body);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
}
.btn.sm {
  height: 36px;
  padding: 0 18px;
  font-size: 12.5px;
}
.lab {
  font: 600 10px var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------------------------------------------------------------- nav + hero */
.nav {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
}
.hero {
  position: relative;
  overflow: hidden;
  background: var(--canvas);
  height: 94vh;
  height: 94svh;
  min-height: 560px;
}
.hmap {
  position: absolute;
  inset: 0;
  /* the glow is the map's column only, so it ends on the page colour at the column's edge and the margin is plain page colour */
  background: radial-gradient(ellipse at 50% 55%, #0e1116 0%, #0a0b0d 70%) 50% 0 / min(100%, 1680px)
    100% no-repeat var(--canvas);
}
.hero canvas,
.bgcv {
  position: absolute;
  top: 0;
  /* the map is at most 1680px wide and centred: a wider window adds margin only */
  left: max(0px, calc((100% - 1680px) / 2));
  width: min(100%, 1680px);
  height: 100%;
  display: block;
}
.hero canvas {
  opacity: 0;
  transition: opacity 0.6s;
}
.hero canvas.on {
  opacity: 1;
}
.hero canvas {
  pointer-events: none;
}
.vig {
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(0px, calc((100% - 1680px) / 2));
  width: min(100%, 1680px);
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(10, 11, 13, 0) 45%,
    rgba(10, 11, 13, 0.75) 100%
  );
}
/* a long, gradual fade at the top (under the nav) and the bottom (under the headline) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 11, 13, 0.96) 0%,
    rgba(10, 11, 13, 0.72) 10%,
    rgba(10, 11, 13, 0.36) 22%,
    rgba(10, 11, 13, 0.1) 36%,
    rgba(10, 11, 13, 0) 46%,
    rgba(10, 11, 13, 0.92) 100%
  );
}
.hero .copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 22px 56px;
}
.kick {
  display: block;
  margin: 0 0 18px;
  font: 500 10.5px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.kick::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 10px;
  vertical-align: 1px;
}
.hero h1 {
  font: 500 40px / 1.04 var(--disp);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hero .sub {
  margin: 0 0 24px;
  color: var(--ink2);
  font-weight: 400;
  font-size: 15px;
  max-width: 30ch;
}
.hint {
  position: static;
  margin: 28px 0 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font: 500 10.5px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Phone hero (below 900px: phones and upright tablets; docs/designs/website-story.md): exactly one
   screen tall, text at the bottom, the map anchored to it (story.js phoneFocusY). The bottom
   padding is the safe-area inset plus 72px: the toolbar is about 50px, and the 600px minimum can
   make a very short phone's hero taller than its small viewport, so the hint must clear it anyway. */
@media (max-width: 899.98px) {
  .hero {
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    max-height: 900px;
  }
  .hero .copy {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
  }
}

/* ------------------------------------------------- the steps: the plain layout */
.story {
  position: relative;
  background: var(--canvas);
}
.scene {
  display: none;
}
.pbl {
  margin: 0;
  padding: 56px 22px 0;
  text-align: center;
  font: 500 10.5px / 1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.pb {
  display: none;
}
.step {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 22px;
  text-align: center;
}
.step + .step {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tt,
.fin .fh,
.wl h2,
.pr .ph {
  margin: 0;
  font: 500 28px / 1.04 var(--disp);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.sb,
.wl .soon {
  margin: 12px auto 0;
  font: 400 15px / 1.45 var(--body);
  color: var(--ink2);
  max-width: 34ch;
}
.pc {
  margin: 28px auto 0;
  max-width: 380px;
  text-align: left;
}
.cd {
  padding: 16px;
  border-radius: 24px;
  background: rgba(14, 16, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cd.end {
  padding: 18px 18px 16px;
}

/* the cards: pieces of the rider app, drawn the way the app draws them */
.field {
  height: 52px;
  border-radius: 16px;
  background: rgba(16, 18, 22, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  font: 500 17px var(--body);
}
.field svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink2);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  flex: none;
}
.field .ph {
  color: var(--mute);
}
.caret {
  display: inline-block;
  width: 2px;
  height: 20px;
  margin-left: 1px;
  background: var(--mint);
  vertical-align: -4px;
}
.prow {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  font: 500 14px var(--body);
}
.prow .sp {
  flex: 1;
}
.prow svg.ch {
  width: 16px;
  height: 16px;
  stroke: var(--mute);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.locdot {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--mint);
  display: grid;
  place-items: center;
}
.locdot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}
.rec2 {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  font: 500 14px var(--body);
  border-bottom: 1px solid var(--line2);
}
.rec2:last-child {
  border-bottom: 0;
}
.rec2 svg {
  width: 18px;
  height: 18px;
  stroke: var(--mute);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.rec2 span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd .top {
  display: flex;
  justify-content: space-between;
}
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 2px;
}
.rb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--raised2);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.rb svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
}
.roll {
  display: block;
  flex: 1;
  height: 64px;
  overflow: hidden;
  text-align: center;
}
.roll .strip {
  display: block;
  /* at rest the roll shows its last number; the story rolls it up from the first */
  transform: translateY(calc(-64px * (var(--n) - 1)));
}
.roll i {
  display: block;
  height: 64px;
  font: 700 56px / 64px var(--adisp);
  font-style: normal;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.rail {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: var(--raised2);
  margin: 10px 4px 6px;
}
.rail .fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  border-radius: 4px;
  background: var(--mint);
}
.rail .thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(54, 241, 165, 0.25);
}
.cta2 {
  height: 56px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--mintink);
  display: grid;
  place-items: center;
  font: 600 16px var(--body);
  box-shadow: 0 12px 30px -10px rgba(54, 241, 165, 0.5);
}

.bhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.bhead h3 {
  margin: 0;
  font: 600 19px / 1.2 var(--body);
}
.bbar {
  height: 3px;
  border-radius: 3px;
  background: var(--raised2);
  margin: 8px 0 6px;
  overflow: hidden;
}
.bbar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--mint);
}
.avt {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--raised2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font: 700 16px var(--adisp);
  font-style: normal;
}
.bid {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.bid:last-child {
  border-bottom: 0;
}
.bid.pick {
  background: rgba(54, 241, 165, 0.08);
  box-shadow: inset 0 0 0 1px rgba(54, 241, 165, 0.6);
  border-radius: 14px;
  padding: 0 10px;
}
.bid .avt {
  width: 36px;
  height: 36px;
  font-size: 14px;
}
.bid .who {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.bid .who b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 14px var(--body);
}
.bid .who small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 400 12.5px var(--body);
  color: var(--ink2);
}
.bid .amtc {
  flex: none;
  text-align: right;
}
.bid .amtc small {
  display: block;
  font: 400 10.5px var(--body);
  color: var(--mute);
}
.bid .amtc b {
  display: block;
  font: 700 19px / 1.1 var(--adisp);
}
.choose {
  flex: none;
  width: 76px;
  height: 38px;
  border-radius: 99px;
  background: var(--mint);
  color: var(--mintink);
  display: grid;
  place-items: center;
  font: 600 13px var(--body);
}

.end .top {
  display: flex;
  justify-content: space-between;
}
.end .rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 12px;
  gap: 10px;
}
.end .who2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 16px var(--body);
  min-width: 0;
}
.end .who2 .avt {
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.end .stars {
  display: flex;
  gap: 2px;
  flex: none;
}
.end .stars svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #7c8493;
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition: fill 0.15s, stroke 0.15s;
}
.end .stars svg.on {
  fill: var(--mint);
  stroke: var(--mint);
}
.end .rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  transform-origin: 0 50%;
  margin: 4px 0 12px;
}
.end .tot2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.end .tot2 .lab {
  color: var(--ink2);
}
.end .tot2 b {
  font: 700 34px / 1 var(--adisp);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.end .rcp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  margin-top: 14px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  font: 600 14px var(--body);
}
.end .rcp svg {
  width: 16px;
  height: 16px;
  stroke: var(--mute);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* step 5: the equation leads, the receipt backs it up */
.fin {
  container-type: inline-size;
}
.fin .eq {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12.5px;
  margin: 22px 0 0;
  font: 700 min(45px, 12.4cqw) / 1 var(--adisp);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fin .eq b {
  font-weight: 700;
}
.fin .eq .ep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fin .eq .ep span {
  font: 500 10.5px / 1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.fin .eq i {
  font-style: normal;
  font-weight: 500;
  color: var(--mute);
  line-height: 1;
}
.fin .eq .m {
  color: var(--mint);
}
.fin .eq .c {
  color: var(--soft);
}
.fin .frc {
  width: 100%;
  max-width: 330px;
  margin: 26px auto 0;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(14, 16, 20, 0.552);
  border: 1px solid rgba(255, 255, 255, 0.066);
  text-align: left;
  zoom: 0.85;
}
.fin .frc > * {
  opacity: 0.6;
}
.frc .rh {
  display: flex;
  justify-content: space-between;
}
.frc .rp {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 10px 0 8px;
  font: 500 14px var(--body);
  color: var(--ink2);
}
.frc .rp b {
  font: 700 30px / 1 var(--adisp);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.frc .rl {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  font: 500 14px var(--body);
}
.frc .rl span {
  flex: 1;
}
.frc .rl b {
  font: 600 15px var(--body);
  font-variant-numeric: tabular-nums;
}
.frc .rl i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.frc .k1,
.frc .split .a {
  background: var(--mint);
}
.frc .k2,
.frc .split .b {
  background: var(--soft);
}
.frc .split {
  display: flex;
  gap: 3px;
  height: 8px;
  margin-top: 10px;
}
.frc .split i {
  display: block;
  height: 100%;
  border-radius: 4px;
}
.frc .split .a {
  flex: none;
}
.frc .split .b {
  flex: 1;
}

/* step 6: the waitlist */
.wl .wbox {
  width: 100%;
  max-width: 380px;
  margin: 24px auto 0;
  text-align: left;
}
.wform {
  display: grid;
  gap: 12px;
}
.seg2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  min-width: 0;
  padding: 4px;
  gap: 4px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.seg2 input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg2 label {
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--ink2);
  font: 600 14px var(--body);
  cursor: pointer;
}
.seg2 input:checked + label {
  background: var(--raised2);
  color: var(--ink);
}
.seg2 input:focus-visible + label {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
.wform input[type="email"],
.wform input[type="text"] {
  height: 52px;
  width: 100%;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
  padding: 0 16px;
  font: 500 16px var(--body);
}
.wform input::placeholder {
  color: var(--mute);
}
.wform .btn {
  width: 100%;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.wl-error {
  margin: 0 0 12px;
  color: var(--danger);
  font: 500 14px / 1.4 var(--body);
  text-align: center;
}
.done {
  margin: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  font: 600 15px var(--body);
}
.done::before {
  content: "";
  width: 11px;
  height: 6px;
  margin: -3px 12px 0 0;
  border-left: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}
.wcue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  font: 500 10.5px / 1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute) !important;
  text-decoration: none;
}

/* step 7: how the price is set */
.pr .ph {
  margin-bottom: 22px;
}
.pcards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
.pcard {
  text-align: left;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(14, 16, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.11);
}
.pcard h3 {
  font: 600 19px / 1.2 var(--body);
  margin: 10px 0 6px;
  color: var(--ink);
}
.pcard p {
  margin: 0 0 12px;
  font: 400 14px / 1.45 var(--body);
  color: var(--ink2);
}
.chip2 {
  display: inline-block;
  font: 500 10px / 1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--mute);
}
.chip2.on {
  border-color: rgba(54, 241, 165, 0.55);
  color: var(--mint);
}
.tiers,
.mini {
  margin: 0;
  display: grid;
}
.tiers div,
.mini div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font: 500 14px var(--body);
  color: var(--ink2);
}
.tiers dd {
  margin: 0;
  font: 700 18px var(--adisp);
  color: var(--ink);
}
.mini b {
  font: 700 16px var(--adisp);
  color: var(--ink);
}
.mini b.m {
  color: var(--mint);
  font: 600 13px var(--body);
}
.pr .btn {
  margin-top: 28px;
}

/* ---------------------------------------------------------------------- footer */
.foot {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 28px 22px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--canvas);
  text-align: center;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}
.foot nav a {
  color: var(--ink2);
  font: 500 13px var(--body);
  text-decoration: none;
}
.foot small {
  color: var(--mute);
  font-size: 12px;
}

/* ------------------------------------------------------------ wide screens */
@media (min-width: 900px) {
  /* Content column: everything on top of the map sits in a centred column at
     most 1680px wide; the map stays full-bleed. --col-l is the space left of
     the column (0 on a window 1680px or narrower). */
  :root {
    --col-w: min(100vw, 1680px);
    --col-l: max(0px, calc((100vw - 1680px) / 2));
  }
  .nav {
    padding: 30px calc(72px + var(--col-l));
  }
  .wm {
    height: 28px;
  }
  .hero {
    height: 100vh;
    height: 100svh;
  }
  .hero .copy {
    padding: 0 calc(72px + var(--col-l)) 240px calc(96px + var(--col-l));
  }
  .kick {
    font-size: 12px;
  }
  .hero h1 {
    font-size: 90px;
    max-width: 16ch;
    margin-bottom: 18px;
  }
  .hero .sub {
    font-size: 21px;
    max-width: 36ch;
    margin-bottom: 32px;
  }
  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(10, 11, 13, 0.9) 0%,
      rgba(10, 11, 13, 0.55) 12%,
      rgba(10, 11, 13, 0.22) 26%,
      rgba(10, 11, 13, 0.06) 38%,
      rgba(10, 11, 13, 0) 46%,
      rgba(10, 11, 13, 0.9) 100%
    );
  }
  .tt,
  .fin .fh,
  .wl h2,
  .pr .ph {
    font-size: 44px;
  }
  .sb,
  .wl .soon {
    font-size: 18px;
  }
  .fin .eq {
    gap: 22.5px;
    font-size: min(84px, 12cqw);
  }
  .fin .frc {
    max-width: 400px;
  }
  .pcards {
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    gap: 18px;
  }
  .pcard {
    padding: 22px 24px;
  }
  .pcard h3 {
    font-size: 24px;
  }
  .pcard p {
    font-size: 15px;
  }
  .foot {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 36px 72px 48px;
  }
  .foot nav {
    gap: 28px;
  }
}

/* ------------------------------------------------ the pinned scene (script on) */
.engine .story {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.engine .scene {
  display: block;
  position: absolute;
  inset: 0;
}
.engine #cv-amb {
  pointer-events: none;
}
.engine .step {
  display: contents;
}
.engine .cap,
.engine .pc,
.engine .fin > *,
.engine .wl > *,
.engine .pr .ph,
.engine .pr .pcard,
.engine .pr .btn {
  opacity: 0;
  visibility: hidden;
}
.engine .cap {
  position: absolute;
  z-index: 12;
  pointer-events: none;
  left: 22px;
  top: 116px;
  width: calc(100% - 44px);
  text-align: left;
  will-change: transform, opacity;
}
.engine .cap .tt {
  display: block;
}
.engine .cap .sb {
  display: block;
  margin: 12px 0 0;
}
.engine .pbl {
  position: absolute;
  z-index: 12;
  left: 22px;
  top: 70px;
  padding: 0;
  text-align: left;
  pointer-events: none;
}
.engine .pb {
  display: flex;
  position: absolute;
  z-index: 12;
  left: 22px;
  top: 90px;
  width: calc(100% - 44px);
  gap: 6px;
  pointer-events: none;
}
.pb i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.pb i b {
  display: block;
  height: 100%;
  width: 0;
  background: #f5f7fa;
}
.engine .pc {
  position: absolute;
  z-index: 8;
  left: 14px;
  right: 14px;
  bottom: 74px;
  margin: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: 50% 60%;
}
.engine .stg,
.engine .rw {
  will-change: transform, opacity;
}
.engine .fin,
.engine .wl,
.engine .pr {
  display: flex;
  position: absolute;
  inset: 0;
  z-index: 9;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: none;
  margin: 0;
  padding: 0 22px;
  border: 0;
  text-align: center;
  pointer-events: none;
}
.engine .fin > * + * {
  margin-top: 22px;
}
.engine .fin .frc {
  margin-top: 25.88px;
}
.engine .fin .fh {
  max-width: 14ch;
  font-size: 30px;
  margin: 0;
}
.engine .wl h2 {
  max-width: 14ch;
  font-size: 32px;
}
.engine .wl .wbox {
  pointer-events: auto;
}
.engine .wl .wcue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  margin: 0;
  pointer-events: auto;
}
.engine .wl .soon {
  max-width: 30ch;
}
.engine .pr .ph {
  font-size: 30px;
}
.engine .pr .btn {
  pointer-events: auto;
  margin-top: 20px;
}
.engine .pr .pcards {
  opacity: 1;
  visibility: visible;
}
.engine .hint {
  display: flex;
}

@media (min-width: 900px) {
  .engine .cap {
    left: calc(96px + var(--col-l));
    top: 34%;
    width: 520px;
  }
  .engine .cap .tt {
    font-size: 72px;
  }
  .engine .cap .sb {
    font-size: 21px;
    margin-top: 16px;
  }
  .engine .pbl {
    left: calc(96px + var(--col-l));
    top: calc(34% - 64px);
    font-size: 12px;
    letter-spacing: 0.18em;
  }
  .engine .pb {
    left: calc(96px + var(--col-l));
    top: calc(34% - 40px);
    width: 420px;
    gap: 8px;
  }
  /* One card position for every step. Its centre sits at 57% of the width, but
     never nearer the text than 180px: 96 (text left) + 520 (text) + 180 (gap)
     + 210 (half the 365px card at 1.15x, rounded up) = 1006px. The box is 1300px
     wide around that centre, so a narrow window pushes the card right, not into
     the words. +120px lowers it. */
  .engine .pc {
    --pc-cx: calc(var(--col-l) + max(0.57 * var(--col-w), 1006px));
    left: calc(var(--pc-cx) - 650px);
    right: auto;
    width: 1300px;
    top: 120px;
    bottom: -120px;
    justify-content: center;
    align-items: center;
  }
  .engine .pc .cd {
    width: 365px;
    flex: none;
    zoom: 1.15;
  }
  .engine .fin > * + * {
    margin-top: 28px;
  }
  .engine .fin .frc {
    margin-top: 32.94px;
  }
  .engine .fin .fh {
    font-size: 64px;
    max-width: 16ch;
  }
  .engine .wl h2 {
    font-size: 64px;
    max-width: 18ch;
  }
  .engine .wl .soon {
    font-size: 20px;
    max-width: 40ch;
  }
  .engine .wl .wbox {
    max-width: 420px;
  }
  .engine .pr .ph {
    font-size: 56px;
    max-width: none;
    margin-bottom: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Past 1680px the map is a centred column: its two sides fade into the page. The fade is a
   mask on the map's own layers (canvases and vignette), so nothing is ever painted over the
   text, buttons or cards. */
@media (min-width: 1681px) {
  .hero canvas,
  .bgcv,
  .vig {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 min(12%, 202px),
      #000 calc(100% - min(12%, 202px)),
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 min(12%, 202px),
      #000 calc(100% - min(12%, 202px)),
      transparent 100%
    );
  }
}
