/* Icy Tower: Roadster Edition — site styles.
   One world: a 2001 freeware README.TXT, set on a character-cell grid. */

@font-face { font-family: "Cousine"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/cousine-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cousine"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/cousine-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cousine"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/cousine-400-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Cousine"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/cousine-700-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

/* ---------- tokens ---------- */
:root {
  --ground: #13142a;      /* tower stone, night */
  --ground-2: #1b1d3b;    /* raised stone */
  --ink: #e9eef6;         /* ice white */
  --ink-2: #aab3d1;       /* tinted secondary */
  --rule: #3b3e6e;
  --sel: #bfe9f5;         /* cold-gas cyan: the selection block */
  --sel-ink: #0f1131;
  --tail: #ff4040;        /* tail-light bar, hairlines only */
  --puff: 191 233 245;    /* rgb triplet for gas puffs */
  --shadow: 0 10px 30px -12px rgb(0 0 0 / .6);
  --cell: 0.6em;          /* Cousine advance width */
  --gutter: 16px;
  --wrap: 1200px;
  --step: clamp(4.5rem, 11vh, 8.5rem);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: #f3f6fa; --ground-2: #e3e9f3; --ink: #15161a; --ink-2: #464d6c; --rule: #c2c9dc;
    --sel: #23265e; --sel-ink: #f3f6fa; --tail: #d01c1c; --puff: 120 196 222;
    --shadow: 0 10px 30px -14px rgb(35 38 94 / .45);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ground: #f3f6fa; --ground-2: #e3e9f3; --ink: #15161a; --ink-2: #464d6c; --rule: #c2c9dc;
  --sel: #23265e; --sel-ink: #f3f6fa; --tail: #d01c1c; --puff: 120 196 222;
  --shadow: 0 10px 30px -14px rgb(35 38 94 / .45);
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 clamp(15px, 0.35vw + 13.6px, 17px)/1.65 "Cousine", "Courier New", ui-monospace, monospace;
  font-variant-numeric: tabular-nums; overflow-x: clip;
}
::selection { background: var(--sel); color: var(--sel-ink); }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: .28em; }
a:hover { text-decoration-color: var(--sel); }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 3px; border-radius: 1px; }
img { max-width: 100%; height: auto; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
b { font-weight: 700; }
sup { font-size: .7em; line-height: 0; }
sup a { text-decoration: none; color: var(--ink-2); padding: 0 .15ch; }
sup a:hover { color: var(--ink); }
[lang="he"] bdi { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: var(--gutter); top: -4rem; z-index: 50; background: var(--sel); color: var(--sel-ink); padding: .4rem 1ch; text-decoration: none; }
.skip:focus { top: .5rem; }
html { scrollbar-color: var(--rule) var(--ground); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--rule); border: 3px solid var(--ground); }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 2ch;
  padding: .55rem max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
  font-size: .875rem;
}
.bar__brand { display: inline-flex; align-items: center; gap: 1ch; text-decoration: none; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.bar__brand img { width: 46px; height: auto; }
[dir="rtl"] .bar__brand img, [dir="rtl"] .menu__car { transform: scaleX(-1); }
.bar__dim { color: var(--ink-2); font-weight: 400; }
.bar__nav { display: flex; gap: 2.5ch; margin-inline-start: auto; }
.bar__nav a { text-decoration: none; color: var(--ink-2); }
.bar__nav a:hover { color: var(--ink); }
.bar__tools { display: flex; gap: .5ch; }
.tool {
  font: inherit; color: var(--ink); background: none; border: 0; cursor: pointer;
  padding: .3rem .8ch; min-height: 44px; min-width: 44px; border-radius: 2px;
}
.tool:hover { background: var(--ground-2); }
.tool__light { display: none; }
:root[data-theme="light"] .tool__dark { display: none; }
:root[data-theme="light"] .tool__light { display: inline; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .tool__dark { display: none; }
  :root:not([data-theme]) .tool__light { display: inline; }
}
@media (max-width: 899px) { .bar__nav { display: none; } .bar__tools { margin-inline-start: auto; } }

.disclaimer { max-width: var(--wrap); margin: 0 auto; padding: .7rem var(--gutter) 0; color: var(--ink-2); font-size: .8rem; line-height: 1.5; }
.foot__disc { color: var(--ink-2); font-size: .8rem; margin-top: 1.4rem !important; }

/* ---------- title screen ---------- */
.title {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 4vw, 4.5rem);
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 3rem) var(--gutter) clamp(2rem, 6vh, 4rem);
  min-height: calc(100svh - 3.2rem); align-items: center;
}
.title__presents + .title__h { margin-top: 0; }
.title__text { min-width: 0; }
.title__presents { margin: 0 0 1.25rem; color: var(--ink-2); font-size: .9rem; }
.title__h { margin: 0; font-weight: 400; container-type: inline-size; }
.banner {
  /* ANSI Shadow block art: system monospace faces carry the box-drawing and block glyphs */
  margin: 0; font: 400 min(calc(100cqi / 44 / 0.62), 26px) / 1 ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  color: var(--ink); white-space: pre; overflow: visible; direction: ltr; text-align: left; font-variant-ligatures: none;
  letter-spacing: 0;
}
.banner i { font-style: normal; color: var(--ink-2); opacity: .55; } /* shadow strokes recede; solid letters lead */
.title__edition {
  display: block; margin-top: 1.1rem; font-weight: 700;
  font-size: clamp(1rem, 2.6cqi, 1.5rem); letter-spacing: .05em; color: var(--sel);
  border-top: 2px solid var(--tail); padding-top: .9rem; width: fit-content; max-width: 100%;
}
:root[data-theme="light"] .title__edition { color: var(--sel); }
.title__pitch { margin: 1.6rem 0 0; max-width: 54ch; font-size: clamp(1rem, 1.1vw + .6rem, 1.2rem); line-height: 1.6; text-wrap: pretty; }
.title__req { margin: 1.4rem 0 0; color: var(--ink-2); font-size: .875rem; max-width: 60ch; }

/* the title-screen menu: Harold pointed at the selection; here the Roadster does */
.menu { position: relative; margin-top: 2.2rem; padding-inline-start: calc(61px + 1.5ch); }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; justify-items: start; }
.menu__item {
  display: inline-block; text-decoration: none; font-weight: 700; letter-spacing: .04em;
  font-size: clamp(1.15rem, 1.4vw + .7rem, 1.7rem); line-height: 1.2;
  padding: .2em 16px; color: var(--ink); min-height: 44px;
  transition: background-color .18s ease-out, color .18s ease-out;
}
.menu__item.is-on { background: var(--sel); color: var(--sel-ink); box-shadow: var(--shadow); }
.menu__sub { display: block; margin: .2em 0 .1em; font-size: clamp(.72rem, .25vw + .66rem, .82rem); font-weight: 400; letter-spacing: 0; line-height: 1.35; color: var(--ink-2); }
.menu__item.is-on .menu__sub { color: var(--sel-ink); opacity: .8; }
.menu li:nth-child(n+4) .menu__item { font-size: clamp(.95rem, .6vw + .75rem, 1.15rem); font-weight: 400; color: var(--ink-2); }
.menu li:nth-child(n+4) .menu__item.is-on { color: var(--sel-ink); }
.menu__car {
  position: absolute; inset-inline-start: 0; top: 0; width: 61px; height: 21px;
  translate: 0 var(--y, 14px); transition: translate .32s cubic-bezier(.16, 1, .3, 1);
}
html:not(.js) .menu__car { display: none; }
@media (max-width: 599px) {
  .menu { padding-inline-start: calc(42px + 1ch); }
  .menu__car { width: 42px; height: auto; }
  .menu__item { padding-inline: 10px; }
}
html:not(.js) .menu { padding-inline-start: 0; }

/* the tower shaft: the video column */
.shaft { position: relative; margin: 0; height: min(calc(100svh - 7.5rem), 800px); aspect-ratio: 2 / 3; justify-self: end; align-self: center;
  background: #262848; box-shadow: var(--shadow); }
.shaft::before { /* tail-light hairline atop the shaft */
  content: ""; position: absolute; inset: -6px 0 auto; height: 2px; background: var(--tail); }
.shaft__video { display: block; width: 100%; height: 100%; object-fit: cover; background: #262848; }
.shaft__sound {
  position: absolute; inset-inline: 0; bottom: 1rem; margin: 0 auto; width: fit-content;
  font: 700 .875rem/1 "Cousine", monospace; letter-spacing: .03em; cursor: pointer;
  background: var(--ground); color: var(--ink); border: 1px solid var(--rule); padding: .85rem 1.4ch; min-height: 44px;
  box-shadow: var(--shadow);
}
.shaft__sound:hover { background: var(--sel); color: var(--sel-ink); border-color: var(--sel); }
.shaft.is-full .shaft__sound { display: none; }

@media (max-width: 899px) {
  .title { grid-template-columns: 1fr; min-height: 0; gap: 3rem; }
  .shaft { justify-self: stretch; height: auto; width: 100%; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 899px) and (min-width: 600px) { .shaft { max-width: 460px; } }

/* parity receipt under the downloads */
.parity { margin: 1rem 0 0; font-size: .875rem; }
.parity a { display: inline-block; text-decoration: none; color: var(--ink-2); border: 1px solid var(--rule); padding: .45rem 1.2ch; }
.parity a:hover { border-color: var(--sel); color: var(--ink); }
.parity__n { font-weight: 700; color: var(--sel-ink); background: var(--sel); padding: 0 .5ch; margin-inline-end: .8ch; }
.proof { margin: 2rem 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.proof div { display: grid; grid-template-columns: 11ch 1fr; gap: 2ch; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.proof dt { font-weight: 700; letter-spacing: .06em; }
.proof dd { margin: 0; }
.proof dd b { background: var(--sel); color: var(--sel-ink); padding: 0 .5ch; margin-inline-end: .6ch; }
.proof__all dt { color: var(--sel); }
:root[data-theme="light"] .proof__all dt { color: var(--sel); }
.proof code { font: inherit; font-weight: 700; letter-spacing: .02em; overflow-wrap: anywhere; }
.req { margin: 0 0 1.2rem; color: var(--ink-2); font-size: .9rem; }
.doc__h3--first { margin-top: 0; }
@media (max-width: 599px) { .proof div { grid-template-columns: 1fr; gap: .3rem; } }

/* phone: the teaser sits right under the tagline, as a small square window into the shaft */
@media (max-width: 899px) {
  .title { gap: 0; }
  .title__text { display: contents; }
  .title__presents { order: 1; } .title__h { order: 2; } .title__pitch { order: 3; }
  .shaft { order: 4; margin-top: 1.8rem; aspect-ratio: 4 / 3; width: 100%; max-width: 520px; justify-self: center; }
  .menu { order: 5; } .title__req { order: 6; } .parity { order: 7; }
  .shaft__video { object-position: 50% 45%; }
  .shaft__sound { bottom: .75rem; font-size: .8rem; padding: .7rem 1.2ch; }
}

/* ---------- readme sections ---------- */
.rule { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 1.2em; overflow: hidden; color: var(--rule); }
.rule::before, .foot__rule::before { content: "=========================================================================================================================================================================="; white-space: pre; display: block; overflow: hidden; }
.doc { max-width: var(--wrap); margin: 0 auto; padding: var(--step) var(--gutter) 0; }
.doc__h { margin: 0; font-size: clamp(1.5rem, 1.8vw + .9rem, 2.4rem); font-weight: 700; letter-spacing: .06em; line-height: 1.15; }
.doc__h::after { /* the ===== underline, exactly as long as the word */
  content: ""; display: block; height: .5em; margin-top: .2em; width: 100%; max-width: 100%;
  background: linear-gradient(var(--rule), var(--rule)) 0 30% / 100% 2px no-repeat,
              linear-gradient(var(--rule), var(--rule)) 0 70% / 100% 2px no-repeat;
}
.doc__h { width: fit-content; max-width: 100%; }
.doc__meta { margin: .75rem 0 0; color: var(--ink-2); font-size: .875rem; }
.doc__body { margin-top: 2rem; padding-inline-start: 4ch; max-width: calc(68ch + 4ch); }
.doc__body > p { margin: 0 0 1.2em; text-wrap: pretty; }
.doc__h3 { margin: calc(var(--step) * .6) 0 1.2rem; font-size: 1rem; letter-spacing: .08em; font-weight: 700; }
.doc__h3::before { content: "-- "; color: var(--ink-2); }
.doc--wide .doc__h3, .doc--wide .tablewrap, .doc--wide .fx, .doc--wide .sources, .doc--wide .note--wide, .doc--wide .flipstrip { margin-inline-start: 4ch; }
@media (max-width: 599px) {
  .doc__body { padding-inline-start: 0; }
  .doc--wide .doc__h3, .doc--wide .tablewrap, .doc--wide .fx, .doc--wide .sources, .doc--wide .note--wide, .doc--wide .flipstrip { margin-inline-start: 0; }
}

/* keys */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(17ch, 1fr)); gap: 1.1rem 2ch; margin: 0 0 2.4rem; }
.keys div { display: flex; flex-direction: column; gap: .45rem; }
.keys dt { display: flex; gap: .6ch; }
.keys dd { margin: 0; color: var(--ink-2); }
kbd {
  display: inline-grid; place-items: center; min-width: 3.2ch; height: 2.1em; padding: 0 .7ch;
  font: 700 .95rem/1 "Cousine", monospace; color: var(--ink);
  background: var(--ground-2); border: 1px solid var(--rule); border-bottom-width: 4px; border-radius: 3px;
  box-shadow: 0 6px 12px -8px rgb(0 0 0 / .5);
}
.kbd--wide { min-width: 12ch; }
.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: .9rem; }
.rules li { counter-increment: r; position: relative; padding-inline-start: 4ch; }
.rules li::before { content: counter(r) "."; color: var(--ink-2); position: absolute; inset-inline-start: 0; }
.rewards, .doc__body > .rewards { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3ch 1.6ch; margin: 2.4rem 0 0; font-weight: 700; line-height: 1.1; }
.rewards span:nth-child(1) { font-size: .95rem; color: var(--ink-2); }
.rewards span:nth-child(2) { font-size: 1.15rem; color: var(--ink-2); }
.rewards span:nth-child(3) { font-size: 1.4rem; }
.rewards span:nth-child(4) { font-size: 1.7rem; }
.rewards span:nth-child(5) { font-size: 2.05rem; }
.rewards span:nth-child(6) { font-size: 2.5rem; background: var(--sel); color: var(--sel-ink); padding: 0 .4ch; }

.doc__body > .climbers { margin: 0 0 2.2rem; }

/* installing */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 1.1rem; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 4.5ch; }
.steps li::before { content: "[" counter(s) "]"; color: var(--ink-2); position: absolute; inset-inline-start: 0; }
.steps code { font: inherit; font-weight: 700; overflow-wrap: anywhere; unicode-bidi: isolate; }
.note, .doc__body > .note { margin: 1.8rem 0 0; padding: 1rem 2ch; background: var(--ground-2); border: 1px dashed var(--rule); color: var(--ink); font-size: .95rem; }
.other { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5ch; align-items: center; }
.other p { margin: 0; }

/* text-mode block buttons */
.block {
  display: inline-block; text-decoration: none; font-weight: 700; letter-spacing: .03em;
  padding: .75rem 1.2ch; border: 1px solid var(--ink); color: var(--ink); min-height: 44px;
  transition: background-color .18s ease-out, color .18s ease-out, border-color .18s ease-out;
}
.block:hover, .block:focus-visible { background: var(--sel); border-color: var(--sel); color: var(--sel-ink); }
.block--sel { background: var(--sel); border-color: var(--sel); color: var(--sel-ink); box-shadow: var(--shadow); }
.block--sel:hover, .block--sel:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--ground); }

/* the roadster */
.flipstrip { margin: 2.6rem 0 0; }
.flipstrip__row { --s: 1; display: grid; grid-template-columns: repeat(8, calc(72px * var(--s))); gap: 0; width: fit-content; max-width: 100%; }
.flipstrip__row span { width: calc(72px * var(--s)); height: calc(72px * var(--s));
  background: url("../img/car-flip.png") calc(var(--f) * -72px * var(--s)) 0 / calc(576px * var(--s)) calc(72px * var(--s)) no-repeat;
  image-rendering: pixelated; }
[dir="rtl"] .flipstrip__row { direction: ltr; }
@media (min-width: 1240px) { .flipstrip__row { --s: 2; } }
@media (max-width: 640px) { .flipstrip__row { grid-template-columns: repeat(4, calc(72px * var(--s))); } }
.flipstrip figcaption { margin-top: .9rem; color: var(--ink-2); font-size: .875rem; max-width: 72ch; }

.tablewrap { max-width: calc(100% - 4ch); }
.nozzles { width: 100%; border-collapse: collapse; font-size: .95rem; }
.nozzles th, .nozzles td { text-align: start; vertical-align: top; padding: .85rem 1.5ch .85rem 0; border-bottom: 1px solid var(--rule); }
.nozzles thead th { color: var(--ink-2); font-weight: 400; border-bottom: 2px solid var(--ink); font-size: .85rem; letter-spacing: .04em; }
.nozzles tbody th { white-space: nowrap; }
.nozzles .n { color: var(--sel); }
:root[data-theme="light"] .nozzles .n { color: var(--sel); }
@media (max-width: 760px) {
  .tablewrap { max-width: 100%; }
  .nozzles thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nozzles, .nozzles tbody, .nozzles tr, .nozzles th, .nozzles td { display: block; }
  .nozzles tr { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
  .nozzles th, .nozzles td { border: 0; padding: .15rem 0; }
  .nozzles tbody th { font-size: 1.1rem; margin-bottom: .4rem; }
  .nozzles td::before { content: attr(data-label) ": "; color: var(--ink-2); }
}

.fx { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 2ch; }
.fx__item { margin: 0; }
.fx__item img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #262848; }
.fx__item p { margin: .9rem 0 0; font-size: .875rem; line-height: 1.55; color: var(--ink-2); }
.fx__item b { display: block; color: var(--ink); letter-spacing: .04em; margin-bottom: .2rem; font-size: .95rem; }
@media (max-width: 1100px) { .fx { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fx { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.5ch; } }
.note--wide { max-width: 72ch; }
.sources { margin: 0; padding: 0; list-style: none; counter-reset: src; display: grid; gap: .6rem; font-size: .875rem; color: var(--ink-2); max-width: 90ch; }
.sources li { counter-increment: src; position: relative; padding-inline-start: 5ch; }
.sources li::before { content: "[" counter(src) "]"; position: absolute; inset-inline-start: 0; }
.sources a { color: var(--ink); }
.sources li:target { background: var(--ground-2); outline: 1px dashed var(--rule); }

/* credits: the one drenched field — credit before glory */
.credits { margin-top: var(--step); background: var(--sel); color: var(--sel-ink); }
.credits ::selection { background: var(--sel-ink); color: var(--sel); }
.credits__in { max-width: var(--wrap); margin: 0 auto; padding: var(--step) var(--gutter); }
.credits .doc__h::after { background: linear-gradient(currentColor, currentColor) 0 30% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 70% / 100% 2px no-repeat; opacity: .5; }
.credits a { text-decoration-color: currentColor; }
.credits a:hover { text-decoration-thickness: 3px; }
.credits :focus-visible { outline-color: var(--sel-ink); }
.credits__lead { margin: 2.2rem 0 1rem; font-weight: 700; font-size: clamp(1.6rem, 3.2vw + .6rem, 3.4rem); line-height: 1.1; letter-spacing: .02em; }
.credits__c { display: block; font-size: .55em; margin-top: .3em; letter-spacing: 0; }
.credits__in > p { max-width: 70ch; }
.block--inv { border-color: currentColor; color: inherit; font-size: 1.05rem; }
.block--inv:hover, .block--inv:focus-visible { background: var(--sel-ink); color: var(--sel); border-color: var(--sel-ink); }
.quote { margin: 2.6rem 0 1.4rem; padding: 1.4rem 3ch; border: 1px solid currentColor; max-width: 72ch; }
.quote p { margin: 0; font-weight: 700; }
.quote footer { margin-top: .9rem; font-size: .85rem; opacity: .8; }
.credits__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4ch; margin-top: 1rem; }
.credits__cols p { font-size: .925rem; }
.credits .doc__h3::before { color: inherit; opacity: .6; }
@media (max-width: 760px) { .credits__cols { grid-template-columns: 1fr; } }

/* final words */
.final { max-width: var(--wrap); margin: 0 auto; padding: var(--step) var(--gutter); }
.final__h { margin: 0; max-width: 24ch; font-size: clamp(1.7rem, 3.4vw + .6rem, 3.6rem); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.final__sub { margin: 1.2rem 0 0; color: var(--ink-2); font-size: 1.1rem; }
.final__cta { display: flex; flex-wrap: wrap; gap: 1rem 2ch; margin: 2.6rem 0 0; }
.foot { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 3rem; color: var(--ink-2); font-size: .875rem; }
.foot__rule { margin: 0 0 1.4rem; height: 1.3em; overflow: hidden; color: var(--rule); font: inherit; }
.foot__rule::before { content: "--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------"; }
.foot p { margin: 0 0 .6rem; }
.foot a { color: var(--ink); }
.foot__end { text-align: center; margin-top: 2.6rem !important; letter-spacing: .1em; }

/* ---------- the climb: the Roadster scales the page margin ---------- */
.climb { display: none; }
@media (min-width: 1360px) {
  .js .climb { display: block; position: fixed; inset-inline-end: 18px; top: 5rem; bottom: 1.5rem; width: 72px; z-index: 5; pointer-events: none; }
  .climb__track { position: absolute; inset-inline-start: 50%; top: 0; bottom: 2.6rem; width: 0; border-inline-start: 2px dotted var(--rule); }
  .climb__car { position: absolute; left: 0; top: 0; width: 72px; height: 72px; translate: 0 var(--cy, 0px); transition: translate .5s cubic-bezier(.16, 1, .3, 1); }
  .climb__sprite { position: absolute; inset: 0; background: url("../img/car-flip.png") 0 0 / 576px 72px no-repeat; image-rendering: pixelated; }
  [dir="rtl"] .climb__sprite { transform: scaleX(-1); }
  .climb.is-flipping .climb__sprite { animation: flip .56s steps(8) 1; }
  .climb__floor { position: absolute; bottom: 0; left: 50%; translate: -50% 0; direction: ltr; font-size: .72rem; color: var(--ink-2); white-space: nowrap; background: var(--ground); padding: .2rem .8ch; border: 1px solid var(--rule); }
  .climb__num { display: inline-flex; color: var(--ink); font-weight: 700; }
  .climb__num i { font-style: normal; display: inline-block; }
  .climb__num i.roll { animation: roll .28s cubic-bezier(.16, 1, .3, 1); }
  .puff { position: absolute; width: 18px; height: 18px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgb(var(--puff) / .9), rgb(var(--puff) / 0) 70%);
    animation: puff .9s cubic-bezier(.16, 1, .3, 1) forwards; }
}
@keyframes flip { from { background-position: 0 0; } to { background-position: -576px 0; } }
@keyframes roll { from { transform: translateY(-60%); opacity: 0; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes puff { 0% { transform: translate(0, 0) scale(.6); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(2.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .bar, .climb, .shaft, .menu__car { display: none !important; } body { background: #fff; color: #000; } }
