/* Space Cat. A poster, a scrapbook and a launch: photo cut-outs, stickers and thick ink lines. */

:root {
  --paper: #fbf2e1;
  --white: #fffdf7;
  --ink: #14203a;
  --sky: #5fb0f5;
  --sky-pale: #c4e3fb;
  --sky-photo: #86a8d1; /* top of the token image */
  --orange: #f4581c;
  --orange-deep: #c93c08;
  --yellow: #ffd22e;

  --display: "Bagel Fat One", "Arial Rounded MT Bold", "Arial Black", sans-serif;
  --body: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --pixel: "Pixelify Sans", "Courier New", monospace;

  --line: 3px solid var(--ink);

  /* --s is the side of the square launch-site picture, --px its left edge */
  /* on tall screens the picture stops short of the title above it */
  --s: min(140vw, calc(100svh - 150px), calc(100svh - 50vw));
  --px: calc((100vw - var(--s)) / 2 - var(--s) * 0.03);
}

@media (min-width: 900px) and (min-aspect-ratio: 11/10) {
  :root {
    --s: clamp(600px, 100svh, 1100px);
    --px: calc(77vw - var(--s) * 0.53);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 60;
  padding: 10px 14px;
  background: var(--white);
  border: var(--line);
  border-radius: 12px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
}

.wrap {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- shared pieces ---------- */

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 9.5vw, 4.25rem);
  line-height: 1;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 700;
}

.heading {
  position: relative;
  margin-bottom: 36px;
}

.heading p {
  margin-top: 10px;
  font-size: 1.3rem;
  font-weight: 500;
}

.heading-center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: var(--line);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: 700 1.0625rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}

.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--ink);
}

.btn:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--ink);
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--ink);
}

.btn-white {
  background: var(--white);
}

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 1rem;
  box-shadow: 0 4px 0 var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link {
  padding: 8px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.card {
  background: var(--white);
  border: var(--line);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  border: var(--line);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font: 700 1rem/1.25 var(--body);
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  rotate: -3deg;
}

.tag-blue {
  background: var(--sky);
}

.tag-orange {
  background: #ff9a4d;
}

.tag-white {
  background: var(--white);
}

.doodle {
  position: absolute;
  overflow: visible;
  fill: none;
  stroke: var(--orange);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.logo {
  font: 400 1.75rem/1 var(--display);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.logo span {
  color: var(--orange-deep);
}

/* a ripped paper edge along the top of a section, in that section's own colour */
.token,
.buy,
.orbit,
.foot,
.thanks {
  position: relative;
}

.token::before,
.buy::before,
.orbit::before,
.foot::before,
.thanks::before {
  content: "";
  position: absolute;
  inset: -17px 0 auto;
  height: 18px;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 18' preserveAspectRatio='none'%3E%3Cpath d='M0 18L0 9L10 5L19 10L31 3L42 9L54 6L63 12L77 4L88 8L98 3L111 10L122 6L132 11L145 4L157 9L167 6L178 12L191 5L201 9L210 6L220 9L220 18Z'/%3E%3C/svg%3E") 0 0 / 220px 18px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 18' preserveAspectRatio='none'%3E%3Cpath d='M0 18L0 9L10 5L19 10L31 3L42 9L54 6L63 12L77 4L88 8L98 3L111 10L122 6L132 11L145 4L157 9L167 6L178 12L191 5L201 9L210 6L220 9L220 18Z'/%3E%3C/svg%3E") 0 0 / 220px 18px repeat-x;
}

/* ---------- poster ---------- */

.poster {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100svh;
  min-height: 600px;
  background: var(--sky-photo);
}

.poster-scene {
  position: absolute;
  inset: auto 0 0;
  height: var(--s);
  z-index: 0;
}

/* the picture, with its edge columns stretched out to the sides of the screen */
.poster-sky {
  position: absolute;
  inset: 0;
  background:
    url("assets/sky-l.png") left top / max(0px, calc(var(--px) + var(--s) * 0.13)) 100% no-repeat,
    url("assets/sky-r.png") right top / max(0px, calc(100% - var(--px) - var(--s) * 0.87)) 100% no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #0000, #000 12%);
  mask-image: linear-gradient(to bottom, #0000, #000 12%);
}

.poster-plate,
.poster-tower {
  position: absolute;
  left: var(--px);
  bottom: 0;
  width: var(--s);
  height: var(--s);
}

.poster-plate {
  background: url("assets/pad.jpg") center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(to right, #0000, #000 12%, #000 88%, #0000);
  mask-image: linear-gradient(to right, #0000, #000 12%, #000 88%, #0000);
}

.poster-title {
  position: absolute;
  z-index: 1;
  left: 4vw;
  top: calc(12px + 7vw);
  font-family: var(--display);
  font-weight: 400;
  font-size: 27.5vw;
  line-height: 0.84;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
  transform: rotate(-5deg);
  transform-origin: 0 0;
  text-shadow:
    0.012em 0.012em 0 var(--orange), 0.024em 0.024em 0 var(--orange), 0.036em 0.036em 0 var(--orange),
    0.048em 0.048em 0 var(--orange), 0.06em 0.06em 0 var(--orange), 0.072em 0.072em 0 var(--orange),
    0.1em 0.12em 0 #14203a55;
}

.poster-title span {
  display: block;
}

.poster-title span + span {
  margin-left: 0.62em;
}

/* the tower again, on its own, so the title runs behind it */
.poster-tower {
  z-index: 2;
  background: url("assets/tower.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* the cat where the token image has her: her sticker spans 181..365 across and 0..415 down, of 512 */
.pad-cat {
  position: absolute;
  z-index: 3;
  left: calc(var(--px) + var(--s) * 181 / 512);
  bottom: calc(var(--s) * 97 / 512);
  width: calc(var(--s) * 184 / 512);
  height: calc(var(--s) * 415 / 512);
  max-width: none;
}

.poster-photo,
.poster .doodle {
  display: none;
}

.ticket {
  position: absolute;
  z-index: 5;
  left: 16px;
  right: 16px;
  bottom: 18px;
}

.ticket-lede {
  display: none;
}

.ticket .actions {
  justify-content: center;
}

.liftoff {
  position: absolute;
  z-index: 4;
  left: calc(var(--px) + var(--s) * 0.56);
  bottom: calc(var(--s) * 0.4);
  padding: 8px 18px;
  border: var(--line);
  border-radius: 14px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font: 400 clamp(1.5rem, calc(var(--s) * 0.05), 2.75rem) / 1 var(--display);
  white-space: nowrap;
  transform: translateX(-50%) rotate(-7deg) scale(0);
  visibility: hidden;
}

.has-launched .liftoff {
  visibility: visible;
  transform: translateX(-50%) rotate(-7deg) scale(1);
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

/* ---------- polaroids ---------- */

.polaroid {
  padding: 8px 8px 6px;
  background: var(--white);
  border: var(--line);
  border-radius: 6px;
  box-shadow: 5px 5px 0 var(--ink);
}

.polaroid-img {
  aspect-ratio: 1;
  background: center / cover no-repeat;
  border: 2px solid var(--ink);
}

.polaroid figcaption {
  padding-top: 4px;
  text-align: center;
  font: 600 1rem/1.3 var(--body);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--paper);
  border-block: var(--line);
}

.nav nav {
  display: none;
}

/* ---------- story ---------- */

.story {
  padding: 72px 0 84px;
}

.doodle-head {
  width: 44px;
  height: 44px;
  left: -6px;
  top: -40px;
}

.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 16px;
}

.shot {
  position: relative;
  padding: 8px 8px 12px;
  background: var(--white);
  border: var(--line);
  border-radius: 6px;
  box-shadow: 5px 5px 0 var(--ink);
  rotate: -1.5deg;
}

.shot:nth-child(even) {
  rotate: 1.5deg;
}

.shot-stack {
  grid-column: 1 / -1;
  rotate: 0.6deg;
}

.shot-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--ink);
  background: center / cover no-repeat;
}

.shot .tag {
  position: absolute;
  left: -8px;
  top: -16px;
}

.shot p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 500;
}

.shot-plan .shot-img {
  background-size: 200%;
  background-position: 36% 62%;
}

.shot-delivery .shot-img {
  background: var(--yellow);
}

.shot-delivery img {
  position: absolute;
  left: 22%;
  top: 6%;
  width: 56%;
  max-width: none;
}

.shot-stack .shot-img {
  aspect-ratio: 16 / 11;
  background-position: 50% 22%;
}

.shot-count .shot-img {
  background-size: 430%;
  background-position: 53% 1%;
}

.shot-count b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
  font: 700 clamp(1.5rem, 8vw, 2.6rem) / 1 var(--pixel);
  color: var(--yellow);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
}

.shot-liftoff .shot-img {
  background-size: 270%;
  background-position: 53% 100%;
}

.doodle-board-a,
.doodle-board-b {
  display: none;
}

/* ---------- map ---------- */

.map-section {
  padding: 0 0 96px;
}

.map {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: var(--line);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
  background: linear-gradient(#1b2a5e 0%, #2f5fb8 26%, #5fb0f5 58%, #c4e3fb 100%);
}

.map-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-path path {
  fill: none;
  stroke: var(--white);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 2 12;
  vector-effect: non-scaling-stroke;
}

.path-wide {
  display: none;
}

.map-star {
  position: absolute;
  width: 14px;
  aspect-ratio: 1;
  background: var(--white);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.s1 { left: 8%; top: 5%; }
.s2 { left: 24%; top: 13%; width: 9px; }
.s3 { left: 44%; top: 6%; width: 11px; }
.s4 { left: 52%; top: 22%; width: 8px; }
.s5 { left: 90%; top: 30%; width: 10px; }
.s6 { left: 12%; top: 24%; width: 8px; }

.map-art {
  position: absolute;
}

.art-moon { left: 58%; top: 2.5%; width: 30%; }
.art-sat { left: 6%; top: 27%; width: 34%; rotate: -14deg; }
.c1 { left: 44%; top: 56%; width: 50%; }
.c2 { display: none; }
.art-dish { left: 66%; top: 46.5%; width: 18%; }

.map-ground {
  position: absolute;
  inset: auto 0 0;
  height: 11%;
  background: #8aa860;
  border-top: var(--line);
}

.map-tower {
  position: absolute;
  left: 7%;
  bottom: 96%;
  height: 290%;
  aspect-ratio: 147 / 427;
  background: url("assets/tower.webp") 32.3% 100% / 348% auto no-repeat;
}

.stop {
  position: absolute;
  z-index: 2;
  translate: -50% -50%;
  cursor: pointer;
  font-size: 1.0625rem;
  transition: scale 0.15s;
}

.stop:hover {
  scale: 1.06;
}

.stop[aria-pressed="true"] {
  scale: 1.12;
  box-shadow: 3px 3px 0 var(--ink), 0 0 0 5px var(--white);
}

.stop-pad { left: 44%; top: 82%; }
.stop-control { left: 68%; top: 66%; rotate: 3deg; }
.stop-ledger { left: 30%; top: 44%; }
.stop-manual { left: 70%; top: 21%; rotate: 4deg; }

.map-cat {
  position: absolute;
  z-index: 3;
  left: 22%;
  top: 68%;
  height: 21%;
  width: auto;
  max-width: none;
  translate: -50% -50%;
  rotate: 8deg;
  pointer-events: none;
  transition: left 0.7s cubic-bezier(0.5, 0, 0.2, 1), top 0.7s cubic-bezier(0.5, 0, 0.2, 1);
}

.stop-card-wrap {
  position: relative;
  margin: 74px 0 0;
}

.peek {
  position: absolute;
  pointer-events: none;
}

.peek-left {
  left: 14px;
  bottom: calc(100% - 9px);
  width: 124px;
}

.stop-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  align-items: center;
  padding: 18px;
}

.stop-badge {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: var(--line);
  border-radius: 14px;
  font: 700 1.5rem/1 var(--pixel);
  rotate: -4deg;
}

.stop-text p {
  margin-top: 4px;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.stop-card .btn {
  grid-column: 1 / -1;
}

/* ---------- token ---------- */

.token {
  padding: 78px 0 96px;
  background: var(--sky);
}

.doodle-inline {
  position: static;
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  vertical-align: 0.3em;
  stroke: var(--white);
  stroke-width: 6;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}

.pill {
  min-height: 44px;
  padding: 0 18px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 600 1.0625rem/1 var(--body);
  cursor: pointer;
}

.pill:hover {
  background: #fff3c2;
}

.pill[aria-pressed="true"] {
  background: var(--yellow);
  box-shadow: 0 4px 0 var(--ink);
}

.token-grid {
  display: grid;
  gap: 40px;
}

.frame-wrap {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  padding-top: 34px;
}

.bubble {
  position: absolute;
  z-index: 2;
  left: -4px;
  top: 0;
  max-width: 78%;
  padding: 8px 16px;
  background: var(--white);
  border: var(--line);
  border-radius: 20px;
  font-weight: 600;
  line-height: 1.25;
  rotate: -4deg;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -11px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-right: var(--line);
  border-bottom: var(--line);
  transform: rotate(45deg) skew(12deg, 12deg);
}

.frame {
  padding: 10px 10px 14px;
  background: var(--white);
  border: var(--line);
  border-radius: 8px;
  box-shadow: 7px 7px 0 var(--ink);
  rotate: 2.5deg;
}

.frame-sky {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 2px solid var(--ink);
  background:
    radial-gradient(60px 22px at 22% 30%, #fff 98%, #0000) no-repeat,
    radial-gradient(80px 26px at 80% 54%, #fff 98%, #0000) no-repeat,
    radial-gradient(50px 18px at 30% 76%, #fff 98%, #0000) no-repeat,
    linear-gradient(#7fc0f7, #d6ecfc);
}

.frame-cat {
  position: absolute;
  left: 50%;
  bottom: 13%;
  height: 66%;
  aspect-ratio: 184 / 415;
  translate: -50% calc(var(--lift, 0) * -30%);
  transition: translate 0.25s ease-out;
}

.frame-cat img {
  width: 100%;
  height: 100%;
  max-width: none;
}

.frame-cat canvas,
.cat canvas {
  position: absolute;
  left: 24%;
  top: 95%;
  width: 40%;
  image-rendering: pixelated;
}

@media (prefers-reduced-motion: no-preference) {
  .frame.is-shaking .frame-cat {
    animation: rumble 0.12s linear infinite;
  }
}

@keyframes rumble {
  0%, 100% { margin-left: 0; }
  25% { margin-left: -2px; }
  75% { margin-left: 2px; }
}

.token-cards {
  display: grid;
  gap: 26px;
  align-content: start;
}

.fact-card {
  padding: 22px 22px 24px;
}

.fact-figure {
  font: 400 clamp(2rem, 9vw, 3.25rem) / 1 var(--display);
  color: var(--orange-deep);
  overflow-wrap: anywhere;
}

.fact-card h3 {
  margin-top: 10px;
}

.fact-card h3 + p {
  margin-top: 6px;
}

.thrust-card {
  padding: 16px 20px 18px;
}

.thrust-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.thrust-head label {
  font-weight: 700;
  font-size: 1.2rem;
}

.thrust-hint {
  font-size: 1rem;
}

.thrust-pct {
  margin-left: auto;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--orange-deep);
  color: #fff;
  font: 700 1rem/1.5 var(--pixel);
}

#thrust {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 4px 0 0;
  background: none;
  cursor: pointer;
}

#thrust::-webkit-slider-runnable-track {
  height: 14px;
  border: var(--line);
  border-radius: 999px;
  background: linear-gradient(to right, var(--orange) var(--fill, 20%), var(--paper) var(--fill, 20%));
}

#thrust::-moz-range-track {
  height: 8px;
  border: var(--line);
  border-radius: 999px;
  background: linear-gradient(to right, var(--orange) var(--fill, 20%), var(--paper) var(--fill, 20%));
}

#thrust::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -11px;
  border: var(--line);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 3px 0 var(--ink);
}

#thrust::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: var(--line);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 3px 0 var(--ink);
}

.thrust-ends {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 1rem;
}

.thrust-ends #thrust-word {
  font-weight: 700;
}

.note {
  max-width: 44rem;
  margin: 44px auto 0;
  text-align: center;
  font-size: 1rem;
}

/* ---------- how to buy ---------- */

.buy {
  padding: 78px 0 96px;
  background: var(--paper);
}

.buy .heading {
  display: inline-block;
}

.doodle-under {
  position: static;
  width: 100%;
  height: 14px;
  margin-top: 4px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 34px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 34px 20px 20px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: -24px;
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: var(--line);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  font: 700 1.6rem/1 var(--pixel);
  rotate: -6deg;
}

.steps li:nth-child(even)::before {
  background: var(--sky);
  rotate: 5deg;
}

.steps p {
  margin-top: 6px;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.contract {
  margin-top: 44px;
  padding: 16px 20px;
  display: grid;
  gap: 8px;
  justify-items: start;
  background: var(--sky-pale);
  border: var(--line);
  border-radius: 22px;
}

.contract-label {
  font-weight: 700;
}

.contract-value {
  font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  font-size: 0.9375rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* ---------- call to action ---------- */

.orbit {
  background: var(--orange);
  padding: 56px 0 0;
}

.orbit-inner {
  display: grid;
  gap: 8px;
}

.orbit h2 {
  margin-bottom: 22px;
}

.doodle-orbit {
  width: 46px;
  height: 46px;
  right: 22px;
  top: -8px;
  stroke: var(--white);
}

.peek-orbit {
  position: static;
  justify-self: end;
  width: 170px;
  margin-right: 8px;
}

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

.foot {
  background: var(--paper);
  padding-top: 56px;
}

.foot-inner {
  display: grid;
  gap: 18px;
  padding-bottom: 64px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 26px;
  font-weight: 600;
}

.foot-links li:has([hidden]) {
  display: none;
}

.foot-links a {
  display: inline-block;
  padding: 8px 0;
}

.foot-small {
  max-width: 64ch;
  font-size: 1rem;
}

.thanks {
  background: var(--sky-pale);
  padding: 34px 20px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.thanks img {
  width: 120px;
  flex: none;
}

.thanks div {
  padding-bottom: 30px;
}

.thanks-big {
  font: 400 clamp(1.9rem, 7vw, 3rem) / 1.05 var(--display);
}

/* ---------- the flying cat ---------- */

.cat {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  pointer-events: none;
  /* script.js sets the size and the transform; the pivot is the top of her head */
  transform-origin: 46% 5%;
}

.cat img {
  width: 100%;
  height: 100%;
  max-width: none;
}

.cat-cursor,
.cat-cursor * {
  cursor: none !important;
}

/* ---------- wide screens ---------- */

@media (min-width: 900px) and (min-aspect-ratio: 11/10) {
  .poster {
    height: var(--s);
  }

  .poster-sky {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .poster-title {
    left: 3vw;
    top: 12svh;
    font-size: min(19vw, 34svh);
  }

  .poster-photo {
    display: block;
    position: absolute;
    z-index: 4;
    right: 2.5vw;
    bottom: 9svh;
    width: clamp(140px, 12.5vw, 200px);
    rotate: 7deg;
  }

  .poster .doodle {
    display: block;
    z-index: 4;
    stroke: var(--white);
    stroke-width: 4;
  }

  .doodle-a { width: 50px; height: 50px; left: 4vw; top: 52svh; rotate: 14deg; }
  .doodle-b { width: 56px; height: 56px; left: 2vw; top: 6svh; rotate: -20deg; }
  .doodle-c { width: 40px; height: 60px; left: 40vw; bottom: 12svh; rotate: 12deg; stroke: var(--yellow); }

  .ticket {
    left: 4vw;
    right: auto;
    bottom: 6svh;
    width: 400px;
    padding: 18px 20px 22px;
    background: var(--paper);
    border: var(--line);
    border-radius: 22px;
    box-shadow: 6px 6px 0 var(--ink);
    rotate: -2deg;
  }

  .ticket-lede {
    display: block;
    margin-bottom: 14px;
    font-weight: 500;
    line-height: 1.35;
  }

  .ticket .actions {
    justify-content: flex-start;
  }

  .nav {
    height: 72px;
    padding: 0 max(28px, calc((100vw - 1120px) / 2));
  }

  .nav nav {
    display: flex;
    gap: 30px;
    font-weight: 600;
  }

  .nav nav a {
    padding: 10px 0;
    text-decoration: none;
  }

  .nav nav a:hover {
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 3px;
  }

  .story {
    padding: 110px 0 120px;
  }

  .heading {
    margin-bottom: 52px;
  }

  .board {
    grid-template-columns: 1fr 1.25fr 1.25fr 1fr;
    grid-template-areas:
      "plan stack stack count"
      "delivery stack stack liftoff";
    gap: 44px 34px;
    align-items: center;
  }

  .shot-plan { grid-area: plan; rotate: -3deg; }
  .shot-delivery { grid-area: delivery; rotate: 2.5deg; }
  .shot-stack { grid-area: stack; rotate: -1deg; }
  .shot-count { grid-area: count; rotate: 3deg; }
  .shot-liftoff { grid-area: liftoff; rotate: -2.5deg; }

  .shot-stack .shot-img {
    aspect-ratio: 1;
    background-position: center;
  }

  .shot-stack p {
    font-size: 1.125rem;
  }

  .doodle-board-a,
  .doodle-board-b {
    display: block;
    width: 80px;
    height: 54px;
    stroke: var(--ink);
    stroke-width: 4;
  }

  .doodle-board-a { left: 21%; top: 30%; rotate: -24deg; }
  .doodle-board-b { right: 20%; bottom: 3%; rotate: 150deg; }

  .map-section {
    padding-bottom: 130px;
  }

  .map {
    aspect-ratio: 16 / 9;
  }

  .path-wide { display: inline; }
  .path-tall { display: none; }

  .art-moon { left: 78%; top: 5%; width: 13%; }
  .art-sat { left: 49%; top: 9%; width: 15%; }
  .c1 { left: 27%; top: 53%; width: 24%; }
  .c2 { display: block; left: 66%; top: 60%; width: 20%; }
  .art-dish { left: 43%; top: 38%; width: 7.5%; }

  .map-ground { height: 14%; }
  .map-tower { left: 7%; height: 300%; }

  .stop { font-size: 1.15rem; }
  .stop-pad { left: 22%; top: 80%; }
  .stop-control { left: 36%; top: 67%; }
  .stop-ledger { left: 57%; top: 40%; }
  .stop-manual { left: 84%; top: 34%; }

  .map-cat { height: 26%; }

  .stop-card-wrap {
    width: min(100%, 860px);
    margin: 88px auto 0;
  }

  .peek-left {
    width: 150px;
    left: 26px;
    bottom: calc(100% - 11px);
  }

  .stop-card {
    grid-template-columns: auto 1fr auto;
    padding: 20px 24px;
  }

  .stop-card .btn {
    grid-column: auto;
  }

  .token {
    padding: 110px 0 120px;
  }

  .token-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    max-width: 940px;
    margin: 0 auto;
  }

  .buy {
    padding: 110px 0 120px;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .contract {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px 16px 14px 24px;
    border-radius: 999px;
  }

  .orbit {
    padding-top: 70px;
  }

  .orbit-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .orbit-inner > div {
    padding-bottom: 64px;
  }

  .peek-orbit {
    width: 260px;
    margin-right: 40px;
  }

  .doodle-orbit {
    right: 330px;
    top: 4px;
  }

  .foot-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 48px;
  }

  .foot-links {
    justify-content: flex-end;
  }

  .foot-small {
    grid-column: 1 / -1;
  }

  .thanks img {
    width: 170px;
  }
}
