/*
 * Aster Reach — the public site.
 *
 * The visual world is the approved identity in brand-kit/ and the typographic
 * voice the atlas and the first-time journey already use: Oxanium for display,
 * Geist for reading, Geist Mono for stamps and coordinates. Hairlines at 1px,
 * no corner radius, no glow, no gradient fills on controls.
 */

@font-face {
  font-family: Oxanium;
  src: url('fonts/Oxanium-Variable.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url('fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: GeistMono;
  src: url('fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* brand-kit/manifest.json */
  --navy: #061b36;
  --cyan: #60d3ff;
  --gold: #ffd052;
  --paper: #f7faff;
  --ink: #081c36;

  /* The page's own field: one step deeper than the brand navy, so navy panels
     sit forward of the ground rather than merging with it. */
  --field: #040f20;
  --panel: #07192f;
  --raised: #0b2240;

  /* Text on the field. Muted is tinted from the ground's hue, never gray. */
  --text: #f7faff;
  --muted: #b6c6dc;
  --faint: #8ea4c0;

  --line: rgba(182, 198, 220, 0.22);
  --line-strong: rgba(182, 198, 220, 0.4);

  --display: Oxanium, system-ui, sans-serif;
  --body: Geist, system-ui, sans-serif;
  --mono: GeistMono, ui-monospace, monospace;

  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 72px);
  --shell: 1560px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--field);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

/* The browser's own surfaces belong to the design too. */
::selection {
  background: var(--gold);
  color: var(--navy);
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
html {
  scrollbar-color: var(--line-strong) var(--field);
}
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--field);
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--field);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

img,
svg {
  display: block;
  max-width: 100%;
  /* Every image carries width/height attributes so the page reserves its space
     before the bytes land. Those attributes are presentational hints, and a
     hinted height beats `aspect-ratio`, so the crops below need this. Rules
     that set an explicit height come later and still win. */
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}

/* ---------- shared atoms ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.stamp {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}
.stamp--cyan {
  color: var(--cyan);
}
.stamp--gold {
  color: var(--gold);
}

.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
}

.prose {
  max-width: var(--measure);
}
.prose p + p {
  margin-top: 1.1em;
}

/* Controls. Flat fills, square corners, no glow. */
.action {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 17px 34px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.action--primary {
  background: var(--gold);
  color: var(--navy);
}
.action--primary:hover,
.action--primary:focus-visible {
  background: var(--paper);
}
.action--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.action--ghost:hover,
.action--ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}
.action[disabled] {
  cursor: progress;
  background: var(--line-strong);
  color: var(--field);
}
.action[disabled]:hover {
  background: var(--line-strong);
}

.link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link:hover,
.link:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- masthead ---------- */

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding: 18px var(--gutter);
  background: linear-gradient(180deg, rgba(4, 15, 32, 0.92), rgba(4, 15, 32, 0));
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead[data-stuck='true'] {
  background: var(--field);
  border-bottom-color: var(--line);
}
.masthead__mark {
  height: 30px;
  width: auto;
  flex: none;
}
.masthead__nav {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  margin-left: auto;
}
.masthead__nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.masthead__nav a:hover,
.masthead__nav a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--cyan);
}
.masthead__nav a[aria-current='page'] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.masthead__cta {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--cyan);
  color: var(--navy);
  padding: 11px 18px;
  transition: background 0.2s var(--ease);
}
.masthead__cta:hover,
.masthead__cta:focus-visible {
  background: var(--paper);
}
.masthead__cta-short {
  display: none;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.skip:focus {
  left: 0;
}

/* ---------- the hero: a tall scroll track with a fixed stage ---------- */

.hero {
  position: relative;
  /* The descent reads over five screens; the stage stays put while it runs. */
  height: 500vh;
}
.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero__plate,
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__plate {
  object-fit: cover;
  object-position: 50% 42%;
}
.hero__canvas {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__stage[data-scene='live'] .hero__canvas {
  opacity: 1;
}
.hero__stage[data-scene='live'] .hero__plate {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
/* The copy needs a readable ground without dimming the type. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(4, 15, 32, 0.94) 0 26%,
      rgba(4, 15, 32, 0.72) 44%,
      rgba(4, 15, 32, 0.08) 72%
    ),
    linear-gradient(0deg, rgba(4, 15, 32, 0.9) 0 8%, transparent 42%);
}

.hero__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter) 0 calc(var(--gutter) + 86px);
  max-width: min(760px, 62vw);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.hero__title {
  font-size: clamp(50px, 7.4vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  max-width: 13ch;
}
.hero__title em {
  font-style: normal;
  color: var(--gold);
}
.hero__support {
  margin-top: 26px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
}
.hero__invitation {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(16px, 1.3vw, 19px);
  letter-spacing: 0.01em;
  color: var(--text);
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
/* The copy clears the frame once the descent begins; the world takes the stage. */
.hero__stage[data-phase='descending'] .hero__copy {
  opacity: 0;
  transform: translateY(-24px);
  pointer-events: none;
}

/* The descent rail: the beats of the scene, down the left edge. */
.hero__rail {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}
.hero__beat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.4s var(--ease);
}
.hero__beat::before {
  content: '';
  width: 1px;
  height: 26px;
  background: var(--line-strong);
  transition: background 0.4s var(--ease), width 0.4s var(--ease);
}
.hero__beat[data-on='true'] {
  color: var(--cyan);
}
.hero__beat[data-on='true']::before {
  background: var(--cyan);
  width: 3px;
}
.hero__beat span {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.hero__beat[data-on='true'] span {
  opacity: 1;
  transform: none;
}

.hero__hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  transition: opacity 0.5s var(--ease);
}
.hero__stage[data-phase='descending'] .hero__hint {
  opacity: 0;
}
.hero__hint::after {
  content: '';
  width: 1px;
  height: 22px;
  background: linear-gradient(var(--cyan), transparent);
}

/* ---------- sections ---------- */

.section {
  position: relative;
  padding: clamp(80px, 11vh, 150px) 0;
}
.section--tight {
  padding-block: clamp(56px, 8vh, 100px);
}
.section--panel {
  background: var(--panel);
  border-block: 1px solid var(--line);
}
.section__head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.section__title {
  font-size: clamp(34px, 4vw, 60px);
}
@media (min-width: 900px) {
  .section__head--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 48px;
  }
}

/* The hex divider: a sample of the world chart's own tiling, repeated across
   the page as a rule. Flat-top cells, 24 wide, on a 30px pitch. */
.hexrule {
  width: 100%;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='20'%3E%3Cpath d='M3 1.5 L15 1.5 L21 10 L15 18.5 L3 18.5 L-3 10 Z' fill='none' stroke='%23b6c6dc' stroke-opacity='.45' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- pillars ---------- */

.pillars {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 860px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pillar {
  background: var(--field);
  padding: clamp(28px, 3vw, 44px);
}
.pillar__title {
  font-size: clamp(23px, 2vw, 30px);
  margin-bottom: 14px;
}
.pillar__body {
  color: var(--muted);
  font-size: 16px;
}

/* ---------- society index ---------- */

.societies {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 720px) {
  .societies {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .societies {
    grid-template-columns: repeat(3, 1fr);
  }
}

.society {
  position: relative;
  display: block;
  background: var(--field);
  overflow: hidden;
  isolation: isolate;
}
.society__art {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.society:hover .society__art,
.society:focus-visible .society__art {
  transform: scale(1.04);
  filter: saturate(1.05);
}
.society__body {
  padding: 24px clamp(20px, 2vw, 30px) 30px;
  border-top: 1px solid var(--line);
}
.society__principle {
  color: var(--accent, var(--cyan));
}
.society__name {
  font-size: clamp(24px, 2vw, 31px);
  margin: 0 0 10px;
}
.society__tagline {
  color: var(--muted);
  font-size: 16px;
}
.society__meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.society__meta b {
  color: var(--text);
  font-weight: 500;
}
/* The faction's own accent, one hairline wide, is the only colour it gets in the index. */
.society::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--accent, var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 2;
}
.society:hover::before,
.society:focus-visible::before {
  transform: scaleX(1);
}

/* ---------- wide feature (world lore, fleet) ---------- */

.feature {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 980px) {
  .feature {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
  .feature--flip > :first-child {
    order: 2;
  }
}
.feature__art {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  background: var(--panel);
}
.feature__body {
  background: var(--field);
  padding: clamp(28px, 3.4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature__title {
  font-size: clamp(28px, 2.8vw, 42px);
  margin: 12px 0 16px;
}
.feature__kind {
  margin-top: 10px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.feature__text {
  color: var(--muted);
}
.feature__footer {
  margin-top: 28px;
}

/* ---------- fleet strip ---------- */

.fleet {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 700px) {
  .fleet {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .fleet {
    grid-template-columns: repeat(4, 1fr);
  }
}
.berth {
  display: block;
  background: var(--field);
  position: relative;
  overflow: hidden;
}
.berth__art {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.berth:hover .berth__art,
.berth:focus-visible .berth__art {
  transform: scale(1.04);
}
.berth__body {
  padding: 20px 22px 26px;
  border-top: 1px solid var(--line);
}
.berth__name {
  font-size: 21px;
  margin: 8px 0 8px;
}
.berth__epithet {
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
}
.berth__faction {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------- status ---------- */

.status {
  display: grid;
  gap: clamp(28px, 4vw, 60px);
}
@media (min-width: 940px) {
  .status {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: start;
  }
}
.status__body p + p {
  margin-top: 1.1em;
}
.status__note {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 15px;
}

/* ---------- interest form ---------- */

.signup {
  background: var(--raised);
  border: 1px solid var(--line-strong);
  padding: clamp(26px, 3vw, 40px);
}
.signup__title {
  font-size: clamp(24px, 2.2vw, 32px);
}
.signup__body {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}
.signup__row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.signup__label {
  display: block;
  margin-bottom: 8px;
}
.signup__field {
  flex: 1 1 240px;
}
.signup input[type='email'] {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line-strong);
  padding: 16px 18px;
  transition: border-color 0.2s var(--ease);
}
.signup input[type='email']::placeholder {
  color: var(--faint);
}
.signup input[type='email']:hover {
  border-color: var(--muted);
}
.signup input[type='email']:focus-visible {
  border-color: var(--cyan);
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.signup input[type='email'][aria-invalid='true'] {
  border-color: #ffb4a8;
}
.signup__fine {
  margin-top: 16px;
  color: var(--faint);
  font-size: 14px;
}
.signup__message {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.signup__message[data-tone='ok'] {
  color: var(--cyan);
}
.signup__message[data-tone='error'] {
  color: #ffb4a8;
}

/* ---------- dossier pages ---------- */

.dossier {
  position: relative;
}
.dossier__plate {
  position: relative;
  height: min(78vh, 760px);
  min-height: 420px;
  overflow: hidden;
}
/* Direct child only: the emblem sits deeper inside the head and keeps its own size. */
.dossier__plate > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The head sits on the artwork, so the artwork gives it a ground rather than
   the type giving up contrast. */
.dossier__plate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
      0deg,
      var(--field) 0 6%,
      rgba(4, 15, 32, 0.92) 20%,
      rgba(4, 15, 32, 0.62) 42%,
      rgba(4, 15, 32, 0.14) 70%,
      rgba(4, 15, 32, 0.5)
    ),
    linear-gradient(90deg, rgba(4, 15, 32, 0.6) 0 34%, transparent 62%);
}
.dossier__head {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding-bottom: clamp(32px, 5vh, 64px);
}
.dossier__emblem {
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
}
.dossier__title {
  font-size: clamp(42px, 6vw, 86px);
  letter-spacing: -0.03em;
}
/* What this is, read after its name rather than announced above it. */
.dossier__kind {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.dossier__tagline {
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 26px);
  color: var(--accent, var(--gold));
  max-width: 24ch;
}

.facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 680px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}
.fact {
  background: var(--field);
  padding: 24px clamp(18px, 2vw, 30px) 28px;
}
.fact__value {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  margin-top: 10px;
}
.fact__note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.columns {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
}
@media (min-width: 940px) {
  .columns {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }
}

.aside {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(24px, 2.4vw, 34px);
}
.aside + .aside {
  margin-top: 20px;
}
.aside__title {
  font-size: 20px;
  margin-bottom: 14px;
}
.aside__text {
  color: var(--muted);
  font-size: 16px;
}
.aside dl {
  margin: 0;
  display: grid;
  gap: 14px;
}
.aside dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.aside dd {
  margin: 4px 0 0;
  color: var(--text);
}

.quote {
  border-left: 1px solid var(--accent, var(--gold));
  padding-left: clamp(20px, 2.4vw, 32px);
  margin: 0;
}
.quote p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.quote footer {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.missions {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 900px) {
  .missions {
    grid-template-columns: repeat(3, 1fr);
  }
}
.mission {
  background: var(--field);
  padding: clamp(24px, 2.4vw, 34px);
}
.mission__title {
  font-size: 21px;
  margin: 12px 0 12px;
}
.mission__text {
  color: var(--muted);
  font-size: 15px;
}
.mission__text + .mission__text {
  margin-top: 10px;
}

.timeline {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 820px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
  }
}
.era {
  background: var(--field);
  padding: clamp(22px, 2.2vw, 30px);
}
.era__name {
  font-size: 19px;
  margin: 10px 0 10px;
}
.era__text {
  color: var(--muted);
  font-size: 15px;
}

/* A grid whose item count does not divide its columns. The 1px-gap-over-a-line-
   background trick paints every empty track, so these collapse their own
   borders instead and leave unfilled tracks as ground. */
.cells {
  display: grid;
  gap: 0;
  background: none;
  border: 0;
  grid-template-columns: repeat(auto-fit, minmax(var(--cell, 280px), 1fr));
}
.cells > * {
  border: 1px solid var(--line);
  margin-right: -1px;
  margin-bottom: -1px;
}

/* ---------- pager ---------- */

.pager {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .pager {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pager a {
  background: var(--field);
  padding: clamp(26px, 3vw, 40px) var(--gutter);
  transition: background 0.25s var(--ease);
}
.pager a:hover,
.pager a:focus-visible {
  background: var(--panel);
}
.pager__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  margin-top: 10px;
}
.pager a:last-child {
  text-align: right;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(50px, 7vh, 86px) 0 44px;
}
.footer__top {
  display: grid;
  gap: 40px;
}
@media (min-width: 880px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}
.footer__mark {
  height: 62px;
  width: auto;
}
.footer__nav {
  display: grid;
  gap: 10px;
  justify-items: start;
}
@media (min-width: 880px) {
  .footer__nav {
    justify-items: end;
  }
}
.footer__nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: var(--cyan);
}
.footer__fine {
  margin-top: clamp(36px, 5vh, 58px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
  max-width: 76ch;
}
.footer__fine p + p {
  margin-top: 10px;
}

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  [data-reveal][data-shown='true'] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }
  .hero {
    height: 320vh;
  }
  .hero__copy {
    padding-left: var(--gutter);
    padding-bottom: 96px;
    max-width: none;
    justify-content: flex-end;
  }
  .hero__scrim {
    background: linear-gradient(0deg, rgba(4, 15, 32, 0.96) 0 34%, rgba(4, 15, 32, 0.25) 72%, rgba(4, 15, 32, 0.55));
  }
  .hero__rail {
    display: none;
  }
  .masthead__nav {
    display: none;
  }
  .masthead__cta {
    margin-left: auto;
    padding: 10px 14px;
    letter-spacing: 0.14em;
  }
  .masthead__cta-long {
    display: none;
  }
  .masthead__cta-short {
    display: inline;
  }
  .dossier__plate {
    height: 66vh;
  }
}

/* ---------- the Veyra chart ---------- */

.chart {
  margin: clamp(32px, 5vh, 56px) 0 clamp(28px, 4vh, 44px);
}
.chart__svg {
  width: 100%;
  height: auto;
  background: var(--panel);
  border: 1px solid var(--line);
}
.chart__caption {
  margin-top: 16px;
  color: var(--faint);
  font-size: 14px;
  max-width: 76ch;
}
