/* FlyCraft — flycraftgame.com
   One sheet. The page is an engineer's drawing board: blueprint paper sheets (torn at the bottom)
   pinned on a plywood board, with notes on lined notebook paper taped on top. */

@font-face {
  font-family: "Pusab";
  src: url("../fonts/pusab.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kronika";
  src: url("../fonts/kronika.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Digit";
  src: url("../fonts/digit.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #29abe2;
  --blue-deep: #1c86b8;
  --blue-ink: #0b2e45;
  --dash: #1f5fa8;
  --red: #ed1c24;
  --red-hi: #ff4a4a;
  --red-lo: #a00000;
  --logo-hi: #ff534d;
  --logo-lo: #fb0007;
  --wood: #c69969;
  --wood-ink: #3b2412;
  --paper: #fdfcf7;
  --paper-line: #bcd7ec;
  --paper-shadow: #c0beb3;
  --ink: #1c1a17;
  --ink-soft: #55504a;
  --outline: #111;
  --cloud: #d1faff;
  --ribbon: #8f1722;
  --ribbon-dark: #480c11;
  --night: #06090d;
  --font-display: "Pusab", "Titan One", Impact, "Arial Black", sans-serif;
  --font-body: "Kronika", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-digit: "Digit", "Kronika", "Trebuchet MS", sans-serif;
  --wrap: 1180px;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --shadow-hard: 5px 6px 0 rgba(0, 0, 0, 0.28);
  --sticker-outline:
    -0.05em -0.05em 0 var(--outline), 0.05em -0.05em 0 var(--outline),
    -0.05em 0.05em 0 var(--outline), 0.05em 0.05em 0 var(--outline),
    0 -0.06em 0 var(--outline), 0 0.06em 0 var(--outline),
    -0.06em 0 0 var(--outline), 0.06em 0 0 var(--outline),
    0.12em 0.13em 0 var(--outline);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--blue) url("../assets/blueprint-tile.png") repeat;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--wrap));
  margin-inline: auto;
}

/* ---------- Type ---------- */

.sticker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  line-height: 1.02;
  color: #fff;
  text-shadow: var(--sticker-outline);
  letter-spacing: 0.01em;
}

.title {
  margin: 0 0 0.45em;
  font-size: clamp(1.9rem, 4vw, 3rem);
  text-align: center;
}

.sub {
  max-width: 62ch;
  margin: 0 auto 2.2rem;
  text-align: center;
  font-size: 1.1rem;
}
.board .sub {
  color: var(--wood-ink);
}
.sky .sub {
  color: var(--blue-ink);
}

/* Wordmark treatment: white → red gradient fill, white outline, hard black shadow (the logo). */
.wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
  -webkit-text-stroke: 0.14em #fff;
  text-shadow: 0.1em 0.11em 0 var(--outline);
}
.wordmark::after {
  content: attr(data-text) / "";
  position: absolute;
  inset: 0;
  z-index: 1;
  color: transparent;
  -webkit-text-stroke: 0;
  text-shadow: none;
  background: linear-gradient(180deg, #fff 12%, var(--logo-hi) 42%, var(--logo-lo) 88%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.6rem;
  padding: 0.5rem 1.5rem 0.55rem 1.25rem;
  border: 3px solid #fff;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-display);
  color: #fff;
  background: linear-gradient(180deg, var(--red-hi) 0%, var(--red) 46%, var(--red-lo) 100%);
  box-shadow:
    0 0 0 3px #1a4f8a,
    inset 0 12px 10px -8px rgba(255, 255, 255, 0.7),
    inset 0 -6px 8px -6px rgba(0, 0, 0, 0.35),
    5px 7px 0 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px #1a4f8a,
    inset 0 12px 10px -8px rgba(255, 255, 255, 0.75),
    inset 0 -6px 8px -6px rgba(0, 0, 0, 0.35),
    6px 9px 0 3px rgba(0, 0, 0, 0.3);
}
.btn:active {
  transform: translateY(2px);
  box-shadow:
    0 0 0 3px #1a4f8a,
    inset 0 12px 10px -8px rgba(255, 255, 255, 0.5),
    3px 4px 0 3px rgba(0, 0, 0, 0.3);
}
.btn svg {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.55));
}
.btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  text-shadow: 2px 2px 0 var(--outline);
  text-align: left;
}
.btn__text small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}
.btn__text strong {
  font-weight: 400;
  font-size: 1.15rem;
  font-style: italic;
}
.btn--small {
  min-height: 2.75rem;
  padding: 0.3rem 1.1rem;
  font-style: italic;
  font-size: 1rem;
  text-shadow: 2px 2px 0 var(--outline);
  box-shadow:
    0 0 0 2px #1a4f8a,
    inset 0 10px 8px -8px rgba(255, 255, 255, 0.7),
    3px 4px 0 2px rgba(0, 0, 0, 0.3);
}
.btn--small:hover,
.btn--small:active {
  box-shadow:
    0 0 0 2px #1a4f8a,
    inset 0 10px 8px -8px rgba(255, 255, 255, 0.7),
    3px 4px 0 2px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.35rem 1.1rem 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.28);
}
.btn-ghost:hover {
  background: #fff;
  text-decoration: underline;
}
.btn-ghost .play-dot {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--red-hi), var(--red-lo));
  display: grid;
  place-items: center;
  flex: none;
}
.btn-ghost .play-dot svg {
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.15rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 1rem 1.2rem;
  align-items: center;
}

/* ---------- Header ---------- */

.top {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0 0.4rem;
}
.top__brand {
  font-size: 1.55rem;
  text-decoration: none;
  margin-right: auto;
}
.top__nav {
  display: flex;
  gap: 1.3rem;
  align-items: center;
}
.top__nav a:not(.btn) {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  text-shadow: 1px 1px 0 var(--outline), -1px -1px 0 var(--outline), 1px -1px 0 var(--outline), -1px 1px 0 var(--outline), 2px 2px 0 var(--outline);
}
.top__nav a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 860px) {
  .top__nav a:not(.btn) {
    display: none;
  }
}

/* ---------- Surfaces ---------- */

.sky {
  position: relative;
  background: var(--blue) url("../assets/blueprint-tile.png") repeat;
  color: #fff;
}
.sky--plate {
  background: var(--blue) url("../assets/blueprint-plate.webp") center top / cover no-repeat;
}
.sky--plate-bottom {
  background-position: center bottom;
}

.board {
  position: relative;
  background: var(--wood) url("../assets/wood-tile.jpg") repeat;
  color: var(--wood-ink);
}

/* Torn bottom edge of a blueprint sheet: white paper fibres over the board below. */
.torn {
  padding-bottom: 3.5rem;
}
.torn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 44px;
  background: url("../assets/torn.svg") repeat-x left top / 600px 44px;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.25));
  pointer-events: none;
  z-index: 2;
}

section {
  padding: 4rem 0;
}

/* Lined notebook paper card, taped on. */
.card {
  position: relative;
  padding: 1.5rem 1.4rem 1.4rem;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 1.95rem, var(--paper-line) 1.95rem calc(1.95rem + 1px));
  border-radius: 3px;
  box-shadow: var(--shadow-hard);
}
.card--plain {
  background-image: none;
}
.card--tilt-l {
  transform: rotate(-1.1deg);
}
.card--tilt-r {
  transform: rotate(0.9deg);
}
.tape {
  position: absolute;
  top: -17px;
  left: 50%;
  width: 66px;
  transform: translateX(-50%) rotate(-4deg);
  pointer-events: none;
  z-index: 3;
}
.tape--left {
  left: 6%;
  transform: rotate(-38deg);
}
.tape--right {
  left: auto;
  right: 6%;
  transform: rotate(38deg);
}
.card h3 {
  margin: 0.2rem 0 0.3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.05;
  color: #d8121a;
  text-shadow: 1.5px 1.5px 0 rgba(0, 0, 0, 0.22);
}
.card p {
  margin: 0;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 1.5rem 0 4.5rem;
}
.hero__art {
  margin: 0;
}
.hero__art img {
  width: 100%;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.16));
}
.hero > * {
  min-width: 0;
}
.hero__copy {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}
.hero__title {
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
}
.hero__note {
  max-width: 34rem;
  padding-top: 2.3rem;
  transform: rotate(-0.8deg);
  font-size: 1.05rem;
}
.hero__note p + p {
  margin-top: 0.7rem;
}
.hero__note .fine {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-top: 0.8rem;
    text-align: center;
  }
  .hero__copy {
    justify-items: center;
  }
  .hero__note {
    text-align: left;
  }
  .store-row {
    justify-content: center;
  }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  padding-top: 1.1rem;
}
.step__pic {
  margin: 0 0 0.9rem;
  border: 3px solid #fff;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.18);
  background: #fff;
}
.step__pic img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.step__badge {
  position: absolute;
  right: -14px;
  top: -14px;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  transform: rotate(8deg);
}
.step__n {
  font-family: var(--font-digit);
  font-size: 1.6rem;
  color: var(--dash);
  line-height: 1;
}
@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
}

.board .props {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.props--pencil {
  right: max(0px, calc(50% - var(--wrap) / 2 - 70px));
  top: 120px;
  width: 130px;
  transform: rotate(24deg);
}
.props--compass {
  left: max(0px, calc(50% - var(--wrap) / 2 - 90px));
  bottom: 60px;
  width: 150px;
  transform: rotate(-16deg);
}
@media (max-width: 1360px) {
  .board .props {
    display: none;
  }
}

/* ---------- Trailer ---------- */

.trailer-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 0.6rem;
}
.trailer {
  position: relative;
  padding: 0.75rem;
  background: #fff;
  box-shadow: var(--shadow-hard);
}
.trailer__box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--night);
  overflow: hidden;
}
.trailer__box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.trailer__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
}
.trailer__play img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trailer__play .play-big {
  position: relative;
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  border: 4px solid #fff;
  background: linear-gradient(180deg, var(--red-hi) 0%, var(--red) 45%, var(--red-lo) 100%);
  box-shadow: 0 0 0 3px #1a4f8a, 5px 7px 0 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease;
}
.trailer__play:hover .play-big {
  transform: scale(1.06);
}
.trailer__play .play-big svg {
  width: 2.4rem;
  height: 2.4rem;
  margin-left: 0.35rem;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.5));
}
.trailer__play .play-label {
  position: relative;
  margin-top: 8.2rem;
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  text-shadow: var(--sticker-outline);
}
.trailer__play:focus-visible {
  outline-offset: -6px;
}
.trailer__note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--wood-ink);
}

/* ---------- Screenshots ---------- */

.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem 1.6rem;
  list-style: none;
  padding: 0.5rem 0 0;
  margin: 0;
}
.shot {
  position: relative;
  flex: 0 1 calc(33.333% - 1.1rem);
  margin: 0;
  padding: 0.6rem 0.6rem 0.8rem;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-hard);
}
.shot:nth-child(odd) {
  transform: rotate(-1.3deg);
}
.shot:nth-child(even) {
  transform: rotate(1.1deg);
}
.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--blue);
}
.shot figcaption {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.95rem;
}
@media (max-width: 760px) {
  .shots {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.6rem 0.4rem 1.2rem;
    scroll-padding-inline: 0.4rem;
  }
  .shot {
    flex: 0 0 min(84%, 420px);
    scroll-snap-align: center;
  }
  .shot:nth-child(odd),
  .shot:nth-child(even) {
    transform: none;
  }
}

/* ---------- Parts catalogue ---------- */

.sheet {
  position: relative;
  padding: clamp(1.2rem, 3vw, 2.4rem) clamp(1rem, 3vw, 2.4rem);
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 1.95rem, var(--paper-line) 1.95rem calc(1.95rem + 1px));
  box-shadow: var(--shadow-hard);
  border-radius: 3px;
}
.parts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
  gap: 0.2rem 2.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.part {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.2rem 0.9rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 2px dashed rgba(31, 95, 168, 0.35);
}
.part__icon {
  position: relative;
  width: 64px;
  height: 64px;
  grid-row: span 2;
}
.part__icon img {
  position: absolute;
  inset: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease;
}
.part__icon img + img {
  opacity: 0;
}
.part--locked:hover .part__icon img + img,
.part--locked:focus-within .part__icon img + img {
  opacity: 1;
}
.part__name {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.1;
  color: var(--ink);
}
.part__desc {
  grid-column: 2;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.part__unlock {
  grid-column: 3;
  grid-row: 1 / span 2;
  text-align: right;
  line-height: 1;
  min-width: 4.6rem;
}
.part__unlock small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}
.part__unlock b {
  font-family: var(--font-digit);
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--dash);
}
.part__unlock em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.part__unlock--start b {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: #1b8a3c;
}
@media (max-width: 560px) {
  .part {
    grid-template-columns: 56px 1fr;
  }
  .part__icon,
  .part__icon img {
    width: 56px;
    height: 56px;
  }
  .part__icon {
    grid-row: span 3;
  }
  .part__unlock {
    grid-column: 2;
    grid-row: auto;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    text-align: left;
    min-width: 0;
    margin-top: 0.2rem;
  }
  .part__unlock small {
    display: inline;
    margin: 0;
  }
  .part__unlock b {
    font-size: 1.35rem;
  }
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.6rem;
  list-style: none;
  padding: 0.5rem 0 0;
  margin: 0;
}
.feature {
  padding-top: 1.4rem;
  text-align: center;
}
.feature img {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.6rem;
  object-fit: contain;
}
.feature p {
  font-size: 0.98rem;
}
@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ---------- Story ---------- */

.story-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem clamp(1.2rem, 4vw, 2.6rem) 1.8rem;
}
.story-card .lede {
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0.3rem 0 0 1.9rem;
  border-left: 5px dashed var(--dash);
}
.timeline li {
  position: relative;
  padding: 0 0 1.4rem;
}
.timeline li:last-child {
  padding-bottom: 0.2rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.9rem - 12px);
  top: 0.35rem;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  background: #fff;
  border: 3px solid var(--dash);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
}
.timeline time {
  display: block;
  font-family: var(--font-digit);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--dash);
  margin-bottom: 0.25rem;
}
.timeline time span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 0.3rem;
}
.timeline strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: #d8121a;
  display: block;
  margin-bottom: 0.15rem;
}

/* ---------- Press ---------- */

.press-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.files {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}
.files li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 2px dashed rgba(31, 95, 168, 0.35);
}
.files a {
  color: var(--dash);
  font-weight: 400;
  text-underline-offset: 3px;
}
.files a {
  flex: 0 0 auto;
}
.files span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: right;
  min-width: 0;
}
.press-art {
  align-self: center;
  padding: 0.6rem;
  background: #fff;
  box-shadow: var(--shadow-hard);
  transform: rotate(1.4deg);
}
.press-art img {
  background: var(--blue) url("../assets/blueprint-tile.png");
}
@media (max-width: 800px) {
  .press-grid {
    grid-template-columns: 1fr;
  }
  .press-art {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ---------- Bottom CTA ---------- */

.cta {
  text-align: center;
  padding: 3.5rem 0 4.5rem;
}
.cta__title {
  margin: 0.4rem 0 1.4rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}
.cta .store-row {
  justify-content: center;
}
.cta__sub {
  margin: 1.4rem auto 0;
  max-width: 40rem;
  color: #fff;
  text-shadow: 1px 1px 0 var(--outline), -1px -1px 0 var(--outline), 1px -1px 0 var(--outline), -1px 1px 0 var(--outline), 2px 2px 0 var(--outline);
  font-size: 1.05rem;
}

/* Herbie: body + head + two pupils, composed exactly as the game does (body 180 units,
   head 107.7×87 at (32.85, 4.5), pupils 12 at (16,8) and (64,8), reach 16 / 10). */
.herbie {
  position: relative;
  width: var(--size, 220px);
  aspect-ratio: 1;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
}
.herbie img {
  position: absolute;
  pointer-events: none;
}
.herbie__body {
  inset: 0;
  width: 100%;
  height: 100%;
}
.herbie__head {
  left: 38.3%;
  top: 23.3%;
  width: 59.8%;
}
.herbie__eye {
  width: 6.67%;
  height: 6.67%;
  top: 42.2%;
  will-change: transform;
}
.herbie__eye--l {
  left: 55.6%;
}
.herbie__eye--r {
  left: 82.2%;
}
.cta .herbie {
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.18));
  margin-bottom: 0.5rem;
}

/* ---------- Footer ---------- */

.foot {
  padding: 2.4rem 0 2rem;
  font-size: 0.95rem;
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.9rem;
}
.foot a {
  color: var(--wood-ink);
  text-underline-offset: 3px;
}
.foot p {
  margin: 0.3rem 0;
  text-align: center;
}

/* ---------- Privacy page ---------- */

.legal {
  max-width: 860px;
  margin: 0 auto;
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin: 0.5rem 0 0.4rem;
}
.legal .meta {
  text-align: center;
  color: var(--blue-ink);
  margin-bottom: 2rem;
}
.legal .sheet {
  background-image: none;
  line-height: 1.6;
}
.legal h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: #d8121a;
  margin: 1.8rem 0 0.5rem;
}
.legal h2:first-child {
  margin-top: 0;
}
.legal ul {
  padding-left: 1.3rem;
}
.legal a {
  color: var(--dash);
}

/* ---------- Motion ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .trailer__play .play-big {
    transition: none;
  }
}
