/* The Age of Iteration website: the game's own palette, type and pixel glyphs, around its live map. */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin-wght-normal.a30ddcd349.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans-latin-wght-normal.9fea608a94.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The game's interface tokens, from src/styles.css. */
  --shell: #171c2d;
  --surface: #202638;
  --raised: #292d43;
  --icon-surface: #333046;
  --text: #f3e5cc;
  --muted: #aeb8ca;
  --border: #45465d;
  --accent: #d5b48b;
  --accent-hot: #ecd2ad;
  --accent-border: #9f866c;
  --on-accent: #251f2c;
  --shadow: #070c19;
  /* The page behind them, and the glow of the map's lit windows. */
  --ink: #12172b;
  --ember: #f2b25c;
  --radius: 18px;
  --wide: 72rem;
  --narrow: 42rem;
  --gutter: 1.25rem;
  --heading: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 90rem 38rem at 50% -8rem, #2a2a48, transparent 70%),
    linear-gradient(var(--shell), var(--ink) 34rem);
  background-color: var(--ink);
  background-repeat: no-repeat;
  color: var(--text);
  font: 450 17px/1.6 var(--body);
}

.home {
  background: var(--ink);
}

main {
  flex: 1;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-hot);
}

:focus-visible {
  outline: 3px solid var(--accent-hot);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 750;
  margin: 3rem 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

p,
li {
  margin: 0 0 0.75rem;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 650;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: var(--narrow);
}

/* The game's pixel glyphs: 16 art pixels, drawn at one or two screen pixels each. */
.glyph {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Header and footer */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.home .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.wordmark:hover {
  color: var(--text);
}

.wordmark img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

.site-nav a[aria-current='page'] {
  box-shadow: inset 0 -2px var(--accent);
}

.home .wordmark,
.home .site-nav a {
  text-shadow: 0 1px 12px var(--shadow);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: var(--shell);
  color: var(--muted);
  font-size: 0.95rem;
}

.home .site-footer {
  margin-top: 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--text);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 0;
}

/* Scenes: the live map, with a poster of the same view over it until it draws */

.scene {
  position: relative;
}

.scene__view {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #1b2135;
}

.scene__poster,
.scene__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.scene__poster {
  z-index: 1;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.scene__poster.is-covering {
  opacity: 1;
}

.scene--framed .scene__view {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 5px var(--shadow),
    0 36px 80px -36px #000;
}

/* The store badge: Google's own "Get it on Google Play" file, unaltered and scaled by width only */

.store-badge {
  margin: 0;
  line-height: 0;
}

.store-badge a {
  display: inline-block;
}

.store-badge img {
  display: block;
  width: 12.5rem;
  height: auto;
  /* The file carries Google's required clear space, so it is trimmed with margins, never cropped. */
  margin: -0.9rem -1.1rem;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(36rem, 100svh, 62rem);
  overflow: hidden;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero .scene__view {
  position: absolute;
  inset: 0;
}

.hero__scene::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgb(18 23 43 / 0.85), transparent 8rem),
    linear-gradient(to top, var(--ink), rgb(18 23 43 / 0.6) 7rem, transparent 30%),
    radial-gradient(
      ellipse 72rem 52rem at 0% 100%,
      rgb(18 23 43 / 0.94),
      rgb(18 23 43 / 0.72) 48%,
      transparent 82%
    );
}

/* An upright screen keeps the part of the hero's view with the town hall in it. */
@media (orientation: portrait) {
  .hero .scene__poster {
    object-position: 74% 50%;
  }
}

.hero__copy {
  position: relative;
  padding-top: 8rem;
  padding-bottom: clamp(2.5rem, 7vh, 4.5rem);
  pointer-events: none;
  text-shadow:
    0 1px 3px var(--shadow),
    0 2px 18px var(--shadow);
}

.hero__copy > * {
  max-width: 36rem;
}

.hero__copy a,
.hero__copy .store-badge {
  pointer-events: auto;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 1.5rem + 4.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: clamp(1.08rem, 0.98rem + 0.45vw, 1.3rem);
  line-height: 1.5;
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  text-shadow: none;
}

/* The price facts in one column and the rest in the next, one column on a phone. */
.facts {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  justify-content: start;
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.facts li::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

/* Sections */

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .kicker {
  justify-content: center;
}

.section-head h2,
.feature h2,
.price h2 {
  margin: 0;
  font-size: clamp(2rem, 1.25rem + 2.6vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

/* The five ages: the steps scroll past a view of the valley that follows them */

.ages {
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(2rem, 6vh, 4rem);
  background: radial-gradient(ellipse 60rem 40rem at 75% 40%, rgb(42 42 72 / 0.55), transparent 70%);
}

.ages__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78vh;
  margin: 0;
  transition: opacity 0.45s ease;
}

.step:first-child {
  justify-content: flex-start;
  min-height: 62vh;
  padding-top: 2rem;
}

.ages:has(.step.is-current) .step:not(.is-current) {
  opacity: 0.32;
}

.step__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.7rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step__label span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--heading);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0;
}

.step__label em {
  padding: 0.12rem 0.55rem;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.1em;
}

.step h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.step p {
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.step .step__gate {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.95rem;
  line-height: 1.45;
}

.step__gate .glyph {
  margin-top: 2px;
  color: var(--accent);
}

.step__gate strong {
  color: var(--text);
}

.ages__stage {
  position: sticky;
  top: max(1.5rem, calc(50vh - 17rem));
  align-self: start;
}

.ages .scene__view {
  aspect-ratio: 1000 / 760;
  max-height: 68vh;
}

/* The era timeline, drawn as the game draws it */
.era {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.era::before,
.era::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 10%;
  width: 80%;
  height: 1px;
  background: var(--border);
}

.era::after {
  width: calc(var(--age, 0) * 20%);
  background: var(--accent);
  transition: width 0.6s var(--ease-out);
}

.era li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.era span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--shell);
  color: var(--muted);
  font-family: var(--heading);
  font-size: 0.66rem;
  font-weight: 750;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.era span .glyph {
  display: none;
}

.era small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.25;
  text-align: center;
}

.era .is-past span {
  background: var(--surface);
  color: var(--accent);
}

.era .is-past b {
  display: none;
}

.era .is-past .glyph {
  display: block;
}

.era .is-current span {
  border-color: var(--accent-border);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 4px var(--shadow);
}

.era .is-current small {
  color: var(--accent);
  font-weight: 650;
}

/* Features: a line of copy beside a live view */

.feature {
  padding: clamp(3.5rem, 9vh, 6.5rem) 0;
}

.feature__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.feature--flip .feature__copy {
  order: 2;
}

.feature__copy h2 {
  margin-bottom: 1rem;
}

.feature__copy p:not(.kicker) {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.scene[data-scene='roads'] .scene__view {
  aspect-ratio: 640 / 420;
}

.scene[data-scene='colony'] .scene__view {
  aspect-ratio: 700 / 480;
}

/* The throughput switch, the game's own view of what each road carries */
.switch {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.35rem 1rem 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgb(23 28 45 / 0.9);
  color: var(--text);
  font: 600 0.9rem/1 var(--body);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgb(7 12 25 / 0.6);
}

.switch[hidden] {
  display: none;
}

.switch:hover {
  border-color: var(--accent-border);
}

.switch__track {
  position: relative;
  flex: none;
  width: 2.25rem;
  height: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--shell);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.switch__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.3rem - 6px);
  height: calc(1.3rem - 6px);
  border-radius: 50%;
  background: var(--muted);
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s ease;
}

.switch[aria-pressed='true'] .switch__track {
  border-color: var(--accent-border);
  background: var(--accent);
}

.switch[aria-pressed='true'] .switch__track::after {
  background: var(--on-accent);
  transform: translateX(0.95rem);
}

/* Calm by design */

.calm {
  padding: clamp(4rem, 10vh, 7rem) 0;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  margin: 0;
  padding: 1.5rem 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(var(--surface), rgb(32 38 56 / 0.4));
}

/* The game's brand symbol: a rounded chip with the glyph in the accent */
.tile__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 48px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px 14px 17px 17px;
  background: var(--icon-surface);
  color: var(--accent);
}

.tile__icon .glyph {
  width: 32px;
  height: 32px;
}

.tile h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 750;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Price */

.price {
  padding: clamp(2rem, 6vh, 4rem) 0 clamp(4.5rem, 12vh, 8rem);
}

.price__card {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1.25rem, 5vw, 3.75rem);
  border: 1px solid var(--accent-border);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 36rem 16rem at 50% 0%, rgb(213 180 139 / 0.16), transparent 70%), var(--surface);
  box-shadow:
    0 0 0 5px var(--shadow),
    0 40px 100px -40px #000;
  text-align: center;
}

.price__amount {
  margin: 1.1rem 0 1.9rem;
  color: var(--accent);
  font-family: var(--heading);
  font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price h2 span,
.price__amount span {
  display: block;
}

.price__amount span {
  margin-top: 0.55rem;
  color: var(--text);
  font-size: 0.4em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.chips li {
  margin: 0;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--shell);
  font-size: 0.9rem;
}

/* Prose pages: privacy and support */

.prose {
  padding-top: 1.5rem;
}

.prose h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  letter-spacing: -0.03em;
}

.prose h2 {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 2.25rem 0 0.5rem;
}

.prose .meta {
  color: var(--muted);
  margin-bottom: 2rem;
}

.prose ol,
.prose ul {
  padding-left: 1.4rem;
}

.contact {
  font-size: 1.2rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* The press kit: a prose page wide enough for its pictures */

.press {
  max-width: 56rem;
}

.fact-sheet {
  display: grid;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.fact-sheet div {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 0.7rem 1.1rem;
}

.fact-sheet div + div {
  border-top: 1px solid var(--border);
}

.fact-sheet dt {
  color: var(--muted);
}

.fact-sheet dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.press__short {
  color: var(--accent-hot);
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.prose .press__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.press__features li,
.press__downloads li,
.press__shots li {
  margin: 0;
}

.press__features p {
  color: var(--muted);
  margin: 0;
}

.press__trailer {
  margin: 0;
}

.press__trailer video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--shadow);
}

.press figcaption,
.press__downloads p,
.press__shots p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose .press__downloads,
.prose .press__shots {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .press__downloads {
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  align-items: end;
}

.prose .press__shots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.press__downloads img,
.press__shots img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--ink);
}

.press__downloads .press__icon {
  width: 8.5rem;
  border-radius: 24%;
}

.press__downloads h3 {
  margin-top: 0.75rem;
}

.not-found {
  padding: 4rem 0 2rem;
  text-align: center;
}

.not-found img {
  margin: 0 auto 1.5rem;
  width: 128px;
  height: 128px;
  border-radius: 24px;
}

/* Tablets and phones */

@media (max-width: 63.99rem) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 47.99rem) {
  .feature__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature--flip .feature__copy {
    order: 0;
  }

  /* The view sticks to the top of the screen and the steps scroll up beneath it. */
  .ages__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .ages__stage {
    order: -1;
    top: 0;
    z-index: 1;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0.75rem var(--gutter) 0.25rem;
    background: var(--ink);
  }

  /* The steps fade in below the stage rather than cut off at its edge. */
  .ages__stage::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 1.5rem;
    background: linear-gradient(var(--ink), transparent);
    pointer-events: none;
  }

  .ages .scene__view {
    aspect-ratio: auto;
    height: 34svh;
    max-height: none;
  }

  .era {
    margin-top: 0.9rem;
  }

  /* Each step about fills the screen below the stage, and is read in its middle. */
  .step,
  .step:first-child {
    justify-content: center;
    min-height: calc(66svh - 4.5rem);
    padding: 1.5rem 0;
  }
}

@media (max-width: 39.99rem) {
  :root {
    --gutter: 1.1rem;
  }

  body {
    font-size: 16px;
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero__scene {
    position: relative;
    z-index: 0;
    height: 60svh;
    min-height: 22rem;
  }

  .hero__scene::after {
    background:
      linear-gradient(rgb(18 23 43 / 0.85), transparent 6rem),
      linear-gradient(to top, var(--ink), rgb(18 23 43 / 0.6) 7rem, transparent 50%);
  }

  .hero__copy {
    margin-top: -5.5rem;
    padding-top: 0;
    padding-bottom: 3rem;
  }

  .tiles,
  .prose .press__features,
  .prose .press__shots {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact-sheet div {
    grid-template-columns: minmax(0, 1fr);
  }

  .era small {
    font-size: 0.68rem;
  }
}

@media (max-width: 29.99rem) {
  .facts {
    grid-template-rows: none;
    grid-auto-flow: row;
  }
}

/* Motion */

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

  .hero__copy > * {
    animation: rise 0.9s var(--ease-out) both;
  }

  .hero__copy > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero__copy > :nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero__copy > :nth-child(4) {
    animation-delay: 0.24s;
  }

  @supports (animation-timeline: view()) {
    .section-head,
    .feature__copy,
    .feature__scene,
    .tile,
    .price__card {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
