/* COLOSSUS landing page. The game's own rule is the page's rule: cyan marks what you can act on. */

@font-face {
  font-family: 'Cinzel';
  src: url('fonts/cinzel-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('fonts/cinzel-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/garamond-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/garamond-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/garamond-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --night: #0e131a;
  --deep: #121922;
  --panel: #161d27;
  --rain: #6f86a8;
  --line: rgba(111, 134, 168, 0.28);
  --line-strong: rgba(111, 134, 168, 0.55);
  --bone: #e6dfcf;
  --bone-dim: rgba(230, 223, 207, 0.72);
  --bone-faint: rgba(230, 223, 207, 0.5);
  --core: #6ff3ff;
  --core-dim: rgba(111, 243, 255, 0.16);
  --ember: #ff7a2a;
  --lava: #e2502a;
  --blood: #a3262c;
  --gold: #e0b25a;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --text: 'EB Garamond', Garamond, Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --slant: 12deg;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--text);
  font-size: 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
video,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: var(--bone);
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  line-height: 1.12;
}
p {
  margin: 0 0 0.9em;
}
:focus-visible {
  outline: 2px solid var(--core);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 8px 14px;
  background: var(--panel);
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ------------------------------------------------------------------ buttons: cyan means act */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-decoration: none;
  padding: 14px 26px 13px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-strike {
  color: #e9feff;
  border-color: rgba(111, 243, 255, 0.85);
  background: linear-gradient(rgba(111, 243, 255, 0.16), rgba(111, 243, 255, 0.05));
  box-shadow: 0 0 22px rgba(111, 243, 255, 0.22), inset 0 0 12px rgba(111, 243, 255, 0.12);
  text-shadow: 0 0 10px rgba(111, 243, 255, 0.6);
}
.btn-strike:hover {
  background: linear-gradient(rgba(111, 243, 255, 0.3), rgba(111, 243, 255, 0.12));
  box-shadow: 0 0 32px rgba(111, 243, 255, 0.38), inset 0 0 14px rgba(111, 243, 255, 0.2);
}
.btn-quiet {
  color: var(--bone);
  border-color: var(--line-strong);
  background: rgba(14, 19, 26, 0.55);
}
.btn-quiet:hover {
  border-color: var(--bone-dim);
}
.btn-small {
  font-size: 14px;
  padding: 8px 18px 7px;
}

/* ------------------------------------------------------------------ top bar */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  background: linear-gradient(rgba(10, 14, 19, 0.82), rgba(10, 14, 19, 0));
  transition: background 0.3s;
}
.bar.solid {
  background: rgba(10, 14, 19, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3em;
  text-decoration: none;
  text-transform: uppercase;
}
.bar-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 17px;
}
.bar-links a {
  text-decoration: none;
  color: var(--bone-dim);
}
.bar-links a:hover {
  color: var(--bone);
}
@media (max-width: 900px) {
  .bar-links {
    display: none;
  }
  .bar .btn-small {
    margin-left: auto;
  }
}

/* ------------------------------------------------------------------ the ruin rises (scroll-scrubbed hero) */

.rise {
  position: relative;
  height: 340vh;
}
.rise-stick {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #0b1016;
}
.rise-still,
.rise-canvas,
.rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.rise-still {
  object-fit: cover;
}
.rise-canvas {
  opacity: 0;
}
.rise.live .rise-canvas {
  opacity: 1;
}
.rain {
  pointer-events: none;
  mix-blend-mode: screen;
}
.rise-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 16, 0.78), rgba(8, 11, 16, 0.3) 46%, rgba(8, 11, 16, 0) 70%),
    linear-gradient(0deg, rgba(8, 11, 16, 0.85), rgba(8, 11, 16, 0) 42%);
}
.rise-copy {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(40px, 9vh, 110px);
  width: min(660px, calc(100% - 2 * var(--gutter)));
}
.wordmark {
  font-weight: 700;
  font-size: clamp(54px, 10.5vw, 168px);
  letter-spacing: 0.12em;
  line-height: 0.95;
  margin: 0 0 22px -0.04em;
  white-space: nowrap;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
}
/* each letter is a stone: it rises into place as the golem assembles (driven by the scroll) */
.wordmark span {
  display: inline-block;
  transform: translateY(calc((1 - var(--k, 1)) * 0.55em)) rotate(calc((1 - var(--k, 1)) * var(--tilt, 0deg)));
  opacity: calc(0.12 + 0.88 * var(--k, 1));
  color: var(--bone);
}
/* every line sits in the same grid cell, so the box is as tall as the longest line */
.ledes {
  display: grid;
  max-width: 34ch;
}
.lede {
  grid-area: 1 / 1;
  margin: 0;
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.38;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s, transform 0.5s;
}
.lede.on {
  opacity: 1;
  transform: none;
}
.cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 58px 0 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s, transform 0.6s;
  pointer-events: none;
}
.cta.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
/* the game's own STRIKE marker, pointing at the one button that matters */
.btn-marked {
  position: relative;
}
.strike-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  pointer-events: none;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--core);
  text-shadow: 0 0 10px rgba(111, 243, 255, 0.8);
}
.strike-tag i {
  display: block;
  width: 14px;
  height: 14px;
  margin: 2px auto 0;
  border-right: 3px solid var(--core);
  border-bottom: 3px solid var(--core);
  transform: rotate(45deg);
  filter: drop-shadow(0 0 5px var(--core));
  animation: bob 0.7s ease-in-out infinite alternate;
}
@keyframes bob {
  from { translate: 0 0; }
  to { translate: 0 5px; }
}
.fine {
  font-size: 16px;
  color: var(--bone-dim);
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s;
}
.cta.on + .fine {
  opacity: 1;
}
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 9vh, 110px);
  margin: 0;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--bone-dim);
  writing-mode: vertical-rl;
  transition: opacity 0.4s;
}
.scroll-cue::after {
  content: '';
  display: block;
  width: 1px;
  height: 64px;
  margin: 14px auto 0;
  background: linear-gradient(var(--bone-dim), rgba(230, 223, 207, 0));
  animation: drip 1.8s ease-in infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.scroll-cue.gone {
  opacity: 0;
}
.rise-meter {
  position: absolute;
  top: 18vh;
  bottom: 18vh;
  right: calc(var(--gutter) / 2);
  width: 1px;
  background: var(--line);
}
.rise-meter i {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0;
  background: var(--core);
  box-shadow: 0 0 8px var(--core);
}

/* ------------------------------------------------------------------ section heads */

.sec-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.sec-head h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.sec-head p {
  color: var(--bone-dim);
  font-size: 21px;
}

/* ------------------------------------------------------------------ the rule */

.rule {
  padding: clamp(90px, 14vh, 160px) 0;
  background:
    linear-gradient(var(--night), rgba(14, 19, 26, 0)) top / 100% 120px no-repeat,
    var(--deep);
  border-bottom: 1px solid var(--line);
}
.rule-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
/* set like an inscription cut into a lintel */
.inscription {
  font-size: clamp(34px, 4.6vw, 66px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.05em;
  color: #d9d2c2;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.08);
}
.rule-text {
  color: var(--bone-dim);
  font-size: 20px;
}
@media (max-width: 860px) {
  .rule-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ how the fight goes */

.fight {
  padding: clamp(90px, 14vh, 150px) 0 60px;
}
.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(28px, 4vw, 64px);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  min-height: 72vh;
  padding: 16vh 0 0;
  opacity: 0.34;
  transition: opacity 0.35s;
}
.step:first-child {
  padding-top: 10vh;
}
.step:last-child {
  min-height: 60vh;
}
.step.is-active {
  opacity: 1;
}
.step h3 {
  font-size: clamp(25px, 2.3vw, 32px);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.step p {
  max-width: 44ch;
}
.step-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--bone-faint);
}
.phase-num {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--rain);
  border: 1px solid var(--line-strong);
}
.step[data-phase='2'] .phase-num {
  color: var(--ember);
  border-color: rgba(255, 122, 42, 0.5);
}
.step[data-phase='3'] .phase-num {
  color: #ff6a45;
  border-color: rgba(255, 90, 60, 0.55);
}
.step[data-phase='4'] .phase-num {
  color: var(--gold);
  border-color: rgba(224, 178, 90, 0.5);
}
.step .clip-inline {
  display: none;
}

.stage {
  position: sticky;
  top: calc(50vh - 0.5 * min(8 / 13 * (min(1240px, 100vw) - 2 * var(--gutter)) * 9 / 16, 64vh) - 10px);
  align-self: start;
}
.stage-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 64vh;
  background: #0a0e13;
  outline: 1px solid var(--line);
  outline-offset: 6px;
}
.stage-shots {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* wipes at the slant of the rain */
  clip-path: polygon(0 0, 0 0, calc(0% - 20%) 100%, calc(0% - 20%) 100%);
  transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.25, 1), opacity 0s linear 0.7s;
}
.shot.is-active {
  opacity: 1;
  z-index: 2;
  clip-path: polygon(0 0, 120% 0, 100% 100%, -20% 100%);
  transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.25, 1), opacity 0s;
}
.shot.was-active {
  opacity: 1;
  z-index: 1;
  clip-path: polygon(0 0, 120% 0, 100% 100%, -20% 100%);
  transition: none;
}
.shot video,
.clip-inline video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 16px;
  color: var(--bone-dim);
}
.stage-ticks {
  display: flex;
  gap: 6px;
}
.stage-ticks button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.stage-ticks button::before {
  content: '';
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border: 1px solid var(--bone-faint);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.stage-ticks button:hover::before {
  border-color: var(--core);
}
.stage-ticks button[aria-current='true']::before {
  background: var(--core);
  border-color: var(--core);
  box-shadow: 0 0 8px var(--core);
}

@media (max-width: 960px) {
  .story {
    grid-template-columns: 1fr;
  }
  .stage {
    display: none;
  }
  .step {
    min-height: 0;
    padding: 0 0 72px;
    opacity: 1;
  }
  .step:first-child {
    padding-top: 0;
  }
  .step .clip-inline {
    display: block;
    margin: 18px 0 0;
  }
}

/* ------------------------------------------------------------------ inline clips */

.clip-inline {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #0a0e13;
  outline: 1px solid var(--line);
  outline-offset: 5px;
}

/* ------------------------------------------------------------------ the whole fight */

.watch {
  padding: clamp(90px, 14vh, 150px) 0;
  background: var(--deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.player {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #0a0e13;
  outline: 1px solid var(--line);
  outline-offset: 6px;
}
.player video {
  width: 100%;
  height: 100%;
}
.timeline {
  position: relative;
  height: 56px;
  margin-top: 26px;
}
.tl-bands {
  position: absolute;
  left: 0;
  right: 0;
  top: 25px;
  height: 6px;
  display: flex;
}
.tl-bands span {
  height: 100%;
  opacity: 0.55;
}
.tl-bands span[data-phase='1'] {
  background: var(--rain);
}
.tl-bands span[data-phase='2'] {
  background: var(--ember);
}
.tl-bands span[data-phase='3'] {
  background: var(--lava);
}
.tl-fill {
  position: absolute;
  left: 0;
  top: 25px;
  height: 6px;
  width: 0;
  background: var(--bone);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.tl-ticks {
  position: absolute;
  inset: 0;
}
.tick {
  position: absolute;
  top: 12px;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.tick::before {
  content: '';
  width: 11px;
  height: 11px;
  transform: rotate(45deg);
  background: var(--night);
  border: 2px solid var(--c, var(--bone));
  transition: background 0.2s, box-shadow 0.2s;
}
.tick:hover::before,
.tick.is-now::before {
  background: var(--c, var(--bone));
  box-shadow: 0 0 10px var(--c, var(--bone));
}
.tick span {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  font-size: 15px;
  padding: 3px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.tick span.to-left {
  left: auto;
  right: 4px;
  translate: 0 0;
}
.tick span.to-right {
  left: 4px;
  translate: 0 0;
}
.tick:hover span,
.tick:focus-visible span {
  opacity: 1;
}
.now {
  min-height: 1.6em;
  margin: 6px 0 0;
  font-size: 19px;
  color: var(--bone-dim);
}
.now b {
  font-weight: 600;
  color: var(--bone);
}
.tally {
  margin-top: 18px;
  font-size: 17px;
  color: var(--bone-faint);
  max-width: 70ch;
}

/* ------------------------------------------------------------------ losing */

.fallen {
  padding: clamp(80px, 12vh, 130px) 0;
}
.fallen-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.fallen h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: 0.04em;
  color: #e4a49c;
  margin-bottom: 20px;
}
.fallen p {
  color: var(--bone-dim);
  max-width: 42ch;
}
@media (max-width: 860px) {
  .fallen-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ greybox to finished */

.stages {
  padding: clamp(90px, 14vh, 150px) 0;
  background: var(--deep);
  border-top: 1px solid var(--line);
}
.compare-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.compare-tabs button {
  font-family: var(--text);
  font-size: 18px;
  color: var(--bone-dim);
  background: none;
  border: 1px solid var(--line);
  padding: 7px 16px;
  cursor: pointer;
}
.compare-tabs button[aria-selected='true'] {
  color: var(--bone);
  border-color: var(--bone-dim);
  background: rgba(230, 223, 207, 0.06);
}
.compare {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0e13;
  outline: 1px solid var(--line);
  outline-offset: 6px;
  user-select: none;
  touch-action: pan-y;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cmp-before {
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
}
.cmp-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 2px;
  margin-left: -1px;
  background: var(--core);
  box-shadow: 0 0 10px rgba(111, 243, 255, 0.7);
  pointer-events: none;
}
.cmp-line i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  translate: -50% -50%;
  transform: rotate(45deg);
  background: var(--night);
  border: 2px solid var(--core);
  box-shadow: 0 0 12px rgba(111, 243, 255, 0.7);
}
.cmp-label {
  position: absolute;
  top: 14px;
  padding: 4px 12px;
  font-size: 16px;
  background: rgba(10, 14, 19, 0.78);
  border: 1px solid var(--line);
  pointer-events: none;
}
.cmp-label-l {
  left: 14px;
}
.cmp-label-r {
  right: 14px;
}
.cmp-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:has(.cmp-range:focus-visible) {
  outline-color: var(--core);
}
.compare-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 22px;
  font-size: 18px;
  color: var(--bone-dim);
}
.compare-left label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.compare-left input {
  accent-color: var(--core);
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------------ controls */

.controls {
  padding: clamp(90px, 14vh, 150px) 0;
}
.controls-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 6vw, 96px);
}
.controls h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.controls-note {
  color: var(--bone-dim);
  max-width: 56ch;
  margin-bottom: 28px;
}
.keys {
  width: 100%;
  border-collapse: collapse;
  font-size: 19px;
}
.keys th {
  text-align: left;
  font-family: var(--text);
  font-weight: 400;
  font-style: italic;
  font-size: 16px;
  color: var(--bone-faint);
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--line);
}
.keys td {
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid rgba(111, 134, 168, 0.14);
  vertical-align: middle;
}
.keys td:first-child {
  white-space: nowrap;
}
.keys td:last-child {
  color: var(--bone-dim);
  white-space: nowrap;
}
/* keycaps cut from stone */
kbd {
  display: inline-block;
  min-width: 30px;
  margin-right: 5px;
  padding: 3px 9px 2px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--bone);
  background: linear-gradient(#2a323d, #1c232d);
  border: 1px solid #3a4452;
  border-bottom-width: 3px;
  border-radius: 3px;
}
.keys .or {
  margin: 0 7px 0 2px;
  color: var(--bone-faint);
  font-style: italic;
  font-size: 16px;
}
.floor h3 {
  font-size: 24px;
  letter-spacing: 0.04em;
  margin: 10px 0 22px;
}
.legend {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.legend li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.legend b {
  font-weight: 600;
}
.sw {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
}
.sw-red {
  border: 3px solid #ff3a2e;
  background: rgba(255, 46, 34, 0.25);
}
.sw-shock {
  border: 3px dashed #ff9d90;
}
.sw-fire {
  background: radial-gradient(circle, #ffd27a, #ff9a18 60%, rgba(255, 154, 24, 0) 72%);
}
.sw-core {
  background: radial-gradient(circle, #e8ffff, var(--core) 55%, rgba(111, 243, 255, 0) 72%);
}
.floor-note {
  font-size: 18px;
  color: var(--bone-dim);
}
@media (max-width: 960px) {
  .controls-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .keys {
    font-size: 17px;
  }
  .keys th:last-child,
  .keys td:last-child {
    display: none;
  }
}

/* ------------------------------------------------------------------ how it was made */

.making {
  padding: clamp(90px, 14vh, 150px) 0;
  background: var(--deep);
  border-top: 1px solid var(--line);
}
.milestones {
  list-style: none;
  margin: 0 0 72px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  counter-reset: none;
}
.milestones img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  outline: 1px solid var(--line);
  outline-offset: 4px;
  margin-bottom: 18px;
}
.milestones h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 21px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.milestones h3 span {
  font-size: 15px;
  color: var(--rain);
}
.milestones p {
  font-size: 17px;
  color: var(--bone-dim);
  margin-bottom: 8px;
}
.milestones .rounds {
  font-style: italic;
  color: var(--bone-faint);
}
@media (max-width: 1080px) {
  .milestones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .milestones {
    grid-template-columns: 1fr 1fr;
  }
}
.making-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
}
.loop h3 {
  font-size: 24px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.loop p {
  color: var(--bone-dim);
  max-width: 60ch;
}
.facts {
  margin: 0;
}
.facts div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--rain);
  margin-bottom: 4px;
}
.facts dd {
  margin: 0;
  font-size: 18px;
  color: var(--bone-dim);
}
@media (max-width: 860px) {
  .making-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ last call and footer */

.last {
  padding: clamp(110px, 18vh, 200px) 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(111, 243, 255, 0.1), rgba(111, 243, 255, 0) 60%),
    var(--night);
}
.last h2 {
  font-size: clamp(34px, 5vw, 70px);
  letter-spacing: 0.06em;
  margin-bottom: 40px;
}
.foot {
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--bone-faint);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}
.foot a {
  color: var(--bone-dim);
  margin-left: 18px;
}
.foot p {
  margin: 0;
}

/* ------------------------------------------------------------------ reduced motion: no scrub, no rain, no autoplay */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rise {
    height: auto;
  }
  .rise-stick {
    position: relative;
    height: 100vh;
  }
  .scroll-cue,
  .rise-meter,
  .rain {
    display: none;
  }
  .lede,
  .cta,
  .fine {
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
  }
  .lede:not(:last-child) {
    display: none;
  }
  .strike-tag i {
    animation: none;
  }
  .shot,
  .shot.is-active {
    transition: none;
  }
}

/* phones: the wordmark fits the width */
@media (max-width: 560px) {
  .wordmark {
    font-size: 12.4vw;
    letter-spacing: 0.06em;
  }
  .btn {
    font-size: 15px;
    padding: 12px 18px 11px;
  }
}
