/* machtuck.com — one stylesheet for every page.
   Type is the game's own: B612 (the cockpit face) for everything, Cinzel for faction names, as on the faction cards.
   The fonts are served from this site, so a visit sends nothing to a third party. */

@font-face { font-family: "B612"; src: url("/assets/fonts/B612/B612-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "B612"; src: url("/assets/fonts/B612/B612-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "B612"; src: url("/assets/fonts/B612/B612-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url("/assets/fonts/B612Mono/B612Mono-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/assets/fonts/Cinzel/Cinzel-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #07090d;
  --bg-raise: #0d1117;
  --ink: #e8e4dc;
  --ink-dim: #aaa59c;
  --ink-faint: #6e6a63;
  --line: rgba(232, 228, 220, 0.14);
  --accent: #e0893e;          /* the horizon in the title shot */
  --accent-ink: #160c04;
  --gutter: clamp(16px, 5vw, 72px);
  --bar-height: 68px;
  --strip-height: 28px;      /* the ship's status strip above the bar */
  --top-height: calc(var(--strip-height) + var(--bar-height));
  --font: "B612", "Helvetica Neue", Arial, sans-serif;
  --font-house: "Cinzel", Georgia, serif;
  --font-mono: "B612 Mono", "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top-height); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }

[hidden] { display: none !important; } /* the attribute wins over any display a class sets */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* ---------- type ---------- */
h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 21ch;
  text-wrap: balance;
}
h3 { font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.5; color: var(--ink); }

/* ---------- buttons: the corners are cut, like the game's panels ---------- */
.btn {
  --cut: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  font: 700 0.8rem/1 var(--font); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: #f0a25c; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: rgba(232, 228, 220, 0.08); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: rgba(232, 228, 220, 0.16); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 0.7rem; --cut: 7px; }
.btn--large { min-height: 58px; padding: 0 38px; font-size: 0.9rem; }
.btn[aria-disabled="true"] { background: rgba(232, 228, 220, 0.1); color: var(--ink-dim); cursor: default; }

/* ---------- the bar ---------- */
/* ---------- the ship's status strip ---------- */
.ship {
  position: fixed; inset: 0 0 auto; z-index: 51;
  display: flex; align-items: center; gap: 26px;
  height: var(--strip-height); padding: 0 var(--gutter);
  background: #04060a; box-shadow: 0 1px 0 var(--line);
  font: 400 0.66rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim); white-space: nowrap; overflow: hidden;
}
.ship b { font-weight: 400; color: var(--ink-faint); margin-right: 6px; }
.ship__state { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.ship__state i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.ship__item span { font-variant-numeric: tabular-nums; color: var(--ink); }
@media (max-width: 700px) {
  .ship__item--wide { display: none; }
  .ship { justify-content: space-between; gap: 12px; letter-spacing: 0.08em; }
}
@media (max-width: 480px) { .ship__long, .ship b { display: none; } }

.bar {
  position: fixed; top: var(--strip-height); left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--bar-height); padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  transition: background 0.3s, box-shadow 0.3s;
}
.bar.is-solid { background: rgba(7, 9, 13, 0.88); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bar__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.bar__brand img { width: 26px; height: auto; }
.bar__brand span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; }
.bar__brand b { color: var(--ink-dim); font-weight: 400; }
.bar__nav { display: flex; align-items: center; gap: 30px; }
.bar__nav a:not(.btn) {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-dim); transition: color 0.2s;
}
.bar__nav a:not(.btn):hover { color: var(--ink); }
.bar__menu { display: none; }

@media (max-width: 900px) {
  .bar__menu {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--ink); cursor: pointer;
  }
  .bar__menu-lines, .bar__menu-lines::before, .bar__menu-lines::after {
    display: block; width: 22px; height: 2px; background: currentColor; transition: transform 0.25s, background 0.25s;
  }
  .bar__menu-lines { position: relative; }
  .bar__menu-lines::before, .bar__menu-lines::after { content: ""; position: absolute; left: 0; }
  .bar__menu-lines::before { top: -7px; }
  .bar__menu-lines::after { top: 7px; }
  .bar__menu[aria-expanded="true"] .bar__menu-lines { background: transparent; }
  .bar__menu[aria-expanded="true"] .bar__menu-lines::before { transform: translateY(7px) rotate(45deg); }
  .bar__menu[aria-expanded="true"] .bar__menu-lines::after { transform: translateY(-7px) rotate(-45deg); }

  .bar__nav {
    position: fixed; inset: var(--top-height) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg); box-shadow: 0 1px 0 var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }
  .bar__nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.2s; }
  .bar__nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--ink); }
  .bar__nav .btn { margin-top: 20px; min-height: 48px; }
  .bar.is-open { background: var(--bg); }
}

/* ---------- the rail ---------- */
.rail {
  position: fixed; right: 26px; top: 50%; z-index: 40;
  display: flex; flex-direction: column; gap: 14px;
  transform: translateY(-50%);
}
.rail a {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  height: 18px; text-decoration: none;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint);
}
.rail a::after { content: ""; width: 14px; height: 2px; background: currentColor; transition: width 0.25s, background 0.25s; }
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity 0.25s, transform 0.25s; }
.rail a:hover span, .rail a.is-here span { opacity: 1; transform: none; }
.rail a.is-here { color: var(--ink); }
.rail a.is-here::after { width: 30px; background: var(--accent); }
@media (max-width: 1180px) { .rail { display: none; } }

/* ---------- hero: the title shot ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  background: #05070b;
}
/* A 16:9 stage that covers the screen, so every layer sits where the boot screen puts it
   (Assets/Resources/TitleShot/TitleShot_Layout.json). */
.hero__stage {
  /* When the screen is narrower than 16:9 the stage is cropped at the sides. The crop centres on 58.4%, midway
     between the title's left edge (24.4%) and the VIGIL's right edge (92.5%), so both stay in frame down to 5:4,
     and it never slides past either edge of the sky. */
  --stage-w: max(100%, max(100svh, 560px) * 16 / 9);
  position: absolute; top: 50%;
  left: clamp(calc(100% - var(--stage-w)), calc(50% - 0.584 * var(--stage-w)), 0px);
  width: var(--stage-w); aspect-ratio: 16 / 9;
  transform: translateY(-50%);
}
.hero__sky, .hero__sky img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__sky img { object-fit: cover; }
.hero__shadow { position: absolute; left: 64.71%; top: 84.03%; width: 35.29%; height: 15.97%; opacity: 0.9; }
.hero__vigil { position: absolute; left: 64.71%; top: 9.61%; width: 27.76%; height: 75.99%; object-fit: contain; }
.hero__copy { position: absolute; left: 24.39%; top: 55%; width: 40.46%; }
.hero__title img { width: 100%; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6)); }
/* The trademark sign sits at the top-right of REACH, whose letters end 95% across the title image and start 6% down. */
.hero__title { position: relative; }
.hero__title::after {
  content: "\2122"; position: absolute; left: 95.6%; top: 4%;
  font-size: clamp(0.7rem, 1.1vw, 1.15rem); line-height: 1; color: var(--ink); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.hero__line {
  margin: 1.2em 0 1.4em;
  font-size: clamp(0.85rem, 1.15vw, 1.05rem); font-style: italic; letter-spacing: 0.04em;
  color: var(--ink); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 2.4vw, 34px); }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 22%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero__cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 2;
  width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(232, 228, 220, 0.5); border-radius: 13px;
}
.hero__cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--ink); border-radius: 2px;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Tall and narrow screens: the stage would crop the title, so the layers stack instead. */
@media (max-aspect-ratio: 5/4) {
  .hero__stage { inset: 0; left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; }
  .hero__sky img { object-position: 58% 50%; }
  .hero__vigil { left: auto; right: -8%; top: auto; bottom: 7%; width: auto; height: 50%; }
  .hero__shadow { left: auto; right: -30%; top: auto; bottom: 2%; width: 120%; height: 12%; }
  .hero__copy { left: var(--gutter); right: var(--gutter); top: calc(var(--top-height) + 5svh); width: auto; }
  .hero__title { max-width: 560px; }
  .hero__line { font-size: 1rem; }
}

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }

.game__lead { display: grid; gap: 8px 48px; margin-top: 40px; max-width: 980px; color: var(--ink-dim); }
@media (min-width: 900px) { .game__lead { grid-template-columns: 1.1fr 1fr; } }

.pillars {
  list-style: none; margin: 72px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line);
}
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(5, 1fr); } }
.pillars li { position: relative; padding: 28px 24px 28px 0; }
.pillars li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.pillars__num { display: block; margin-bottom: 18px; color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; }
.pillars h3 { margin-bottom: 12px; font-size: 0.92rem; line-height: 1.35; }
.pillars p { margin: 0; color: var(--ink-dim); font-size: 0.92rem; }
@media (max-width: 700px) {
  .pillars li, .pillars li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

.facts {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.facts li {
  padding: 10px 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim);
}

/* the world */
.world { overflow: hidden; background: #05070b; }
.world__sky { position: absolute; inset: -10% 0; }
.world__sky img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0.38; }
.world__sky::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 30%, transparent 60%, var(--bg) 100%);
}
.world .wrap { position: relative; }
.world__body { display: grid; gap: 48px; margin-top: 40px; align-items: end; }
@media (min-width: 980px) { .world__body { grid-template-columns: 1fr 1fr; gap: 80px; } }
.world__text { max-width: 560px; color: var(--ink-dim); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); }
.stats div { padding: 26px 24px; background: rgba(7, 9, 13, 0.82); }
.stats dt { order: 2; color: var(--ink-dim); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.stats dd { margin: 0 0 6px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.stats div { display: flex; flex-direction: column-reverse; }

/* the map of The Reach: labels on the picture on wide screens, numbered pins and a legend on phones */
.reach-map { margin: clamp(56px, 8vw, 96px) 0 0; }
.reach-map__frame { position: relative; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.5); }
.reach-map__frame img { width: 100%; height: auto; }
.reach-map__pins { list-style: none; margin: 0; padding: 0; }
.reach-map__pins li {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px;
}
.reach-map__pins b {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(7, 9, 13, 0.82); box-shadow: 0 0 0 1.5px var(--ink);
  font: 700 0.7rem/1 var(--font-mono); color: var(--ink);
}
.reach-map__pins span {
  padding: 5px 9px; background: rgba(7, 9, 13, 0.78);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.reach-map__pins .is-heart b { box-shadow: 0 0 0 1.5px var(--accent), 0 0 18px var(--accent); color: var(--accent); }
.reach-map__pins .is-heart span { color: var(--accent); }
.reach-map figcaption { display: grid; gap: 6px 40px; margin-top: 22px; color: var(--ink-dim); }
.reach-map figcaption p { margin: 0; }
.reach-map__title { color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.reach-map__legend { display: none; }
@media (min-width: 900px) { .reach-map figcaption { grid-template-columns: auto 1fr; align-items: baseline; } }
@media (max-width: 760px) {
  .reach-map__pins span { display: none; }
  .reach-map__pins b { width: 20px; height: 20px; font-size: 0.66rem; }
  .reach-map__legend {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 10px 0 0; padding-left: 1.4em;
    font-size: 0.82rem; color: var(--ink);
  }
}

/* the crossing: a navigation chart drawn by assets/voyage.js at the container's own pixel size */
.voyage__awake { color: var(--accent); }
.voyage__intro { max-width: 680px; margin-top: 28px; color: var(--ink-dim); }
.voyage__panel { margin-top: 44px; border: 1px solid var(--line); background: #05070b; }
.voyage__head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 24px;
  padding: 20px 22px 0;
}
.voyage__heading p { margin: 0; font: 400 0.66rem/1.7 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.voyage__view-title { color: var(--accent) !important; }
.voyage__views { display: flex; border: 1px solid var(--line); }
.voyage__views button {
  padding: 9px 14px; border: 0; background: none; cursor: pointer; color: var(--ink-dim);
  font: 700 0.64rem/1 var(--font); letter-spacing: 0.18em; text-transform: uppercase;
}
.voyage__views button + button { border-left: 1px solid var(--line); }
.voyage__views button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.voyage__views button:not([aria-selected="true"]):hover { color: var(--ink); }

.voyage__chart { width: 100%; min-height: 250px; }
.voyage__chart svg { display: block; width: 100%; height: auto; }
.voyage__stars circle { fill: #cfd6e4; }
.voyage__route { stroke: rgba(232, 228, 220, 0.18); stroke-width: 1.5; }
.voyage__route-done { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.voyage__route-planned { fill: none; stroke: var(--accent); stroke-opacity: 0.45; stroke-width: 1.5; stroke-dasharray: 3 6; }
.voyage__tick { stroke: rgba(232, 228, 220, 0.5); stroke-width: 1; }
.voyage__tick-label, .voyage__now-label, .voyage__ref-label, .voyage__readout-label {
  fill: var(--ink-dim); font: 400 10px/1 var(--font-mono); letter-spacing: 0.14em;
}
.voyage__readout-label { fill: var(--ink); }
.voyage__now-label { fill: var(--accent); }
.voyage__body-name { fill: var(--ink); font: 700 13px/1 var(--font); letter-spacing: 0.2em; }
.voyage__body-sub { fill: var(--ink-dim); font: 400 11px/1 var(--font); letter-spacing: 0.06em; }
.voyage__body-date { fill: var(--ink-dim); font: 400 11px/1 var(--font-mono); letter-spacing: 0.16em; }
.voyage__halo { fill: currentColor; opacity: 0.16; }
.voyage__star { color: #f6d7a0; }
.voyage__star circle:not(.voyage__halo) { fill: #fff1d6; }
.voyage__star--cen { color: #f2b36b; }
.voyage__star--b, .voyage__star-b { color: #e58a4e; fill: #f0a46a; }
.voyage__now-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-opacity: 0.7; }
.voyage__orbit { fill: none; stroke: rgba(232, 228, 220, 0.22); stroke-width: 1; stroke-dasharray: 2 4; }
.voyage__heliopause { fill: none; stroke: rgba(122, 170, 230, 0.5); stroke-width: 1; stroke-dasharray: 2 5; }
.voyage__earth { fill: #5b8fd6; }
.voyage__planet { fill: #7fb3a2; }
.voyage__capture { fill: none; stroke: rgba(232, 228, 220, 0.3); stroke-width: 1; stroke-dasharray: 2 3; }
.voyage__proxima { fill: #e0644e; }
.voyage__ship-glow { fill: var(--accent); opacity: 0.18; }
.voyage__ship-ring { fill: #fff3e4; stroke: var(--accent); stroke-width: 1.5; }
.voyage__ship-tick { stroke: var(--accent); stroke-width: 1.5; }
.voyage__ship-label { fill: var(--accent); font: 700 10px/1 var(--font-mono); letter-spacing: 0.18em; }
.voyage__ship.is-planned .voyage__ship-ring { fill: transparent; }

.voyage__notes {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding: 0 22px 16px; font: 400 0.62rem/1.5 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
}
.voyage__notes p { margin: 0; }

.voyage__timeline { padding: 20px 22px 18px; border-top: 1px solid var(--line); }
.voyage__timeline-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; margin-bottom: 14px; }
.voyage__timeline-head p { margin: 0; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.voyage__timeline-head p + p { color: var(--ink-faint); font-weight: 400; letter-spacing: 0.06em; text-transform: none; font-size: 0.78rem; }
.voyage__controls { display: flex; align-items: center; gap: 14px; }
.voyage__scrubber { flex: 1; min-width: 0; margin: 0; accent-color: var(--accent); cursor: pointer; }
.voyage__play { min-width: 92px; }
.voyage__milestones {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px;
}
.voyage__milestone {
  width: 100%; padding: 8px 6px; border: 0; background: none; cursor: pointer; text-align: center; color: var(--ink-dim);
}
.voyage__milestone::before {
  content: ""; display: block; width: 9px; height: 9px; margin: 0 auto 9px; transform: rotate(45deg);
  background: var(--ink-faint);
}
.voyage__milestone b { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.voyage__milestone span { display: block; margin-top: 4px; font: 400 0.66rem/1 var(--font-mono); letter-spacing: 0.1em; }
.voyage__milestone.is-past::before { background: var(--ink-dim); }
.voyage__milestone.is-planned::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-faint); }
.voyage__milestone.is-planned b { color: var(--ink-dim); }
.voyage__milestone.is-current::before { background: var(--accent); box-shadow: none; }
.voyage__milestone.is-current b { color: var(--accent); }
.voyage__milestone.is-log::before { border-radius: 50%; transform: none; }
.voyage__controls .is-current { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }

.voyage__readouts {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
  border-top: 1px solid var(--line);
}
.voyage__readouts div { padding: 18px 22px; }
.voyage__readouts div + div { border-left: 1px solid var(--line); }
.voyage__readouts dt { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.voyage__readouts dd { margin: 8px 0 4px; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.voyage__readouts p { margin: 0; font-size: 0.74rem; color: var(--ink-dim); }

.voyage__phase { padding: 18px 22px 20px; border-top: 1px solid var(--line); }
.voyage__phase p { margin: 0; color: var(--ink-dim); max-width: 860px; }
.voyage__phase b { color: var(--ink); }
.voyage__phase-label { margin-bottom: 8px !important; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink) !important; }
.voyage__phase-note { margin-top: 10px !important; padding-left: 12px; border-left: 2px solid var(--accent); font-size: 0.86rem; }

@media (max-width: 760px) {
  .voyage__head, .voyage__timeline, .voyage__phase { padding-left: 16px; padding-right: 16px; }
  .voyage__notes { padding: 0 16px 14px; }
  .voyage__views { width: 100%; }
  .voyage__views button { flex: 1; padding: 10px 6px; }
  .voyage__readouts { grid-template-columns: 1fr 1fr; }
  .voyage__readouts div { padding: 14px 16px; }
  .voyage__readouts div:nth-child(3) { border-left: 0; }
  .voyage__readouts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .voyage__milestones { grid-template-columns: repeat(3, 1fr); }
  .voyage__milestone span { white-space: nowrap; font-size: 0.6rem; letter-spacing: 0.02em; }
  .voyage__controls { flex-wrap: wrap; }
  .voyage__scrubber { order: -1; flex-basis: 100%; }
}

/* the factions: an accordion on wide screens, a swipe row on phones */
.houses {
  list-style: none; margin: 56px 0 0; padding: 0 var(--gutter);
  display: flex; gap: 10px;
  max-width: 1400px; margin-left: auto; margin-right: auto;
  height: clamp(460px, 62vw, 680px);
}
.house {
  position: relative; flex: 1 1 0; min-width: 0;
  overflow: hidden; cursor: default;
  background: var(--bg-raise);
  transition: flex-grow 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.house img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s, filter 0.5s; filter: saturate(0.75) brightness(0.8); }
.house::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; z-index: 2; background: var(--house); }
.house::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 13, 0.95) 0%, rgba(7, 9, 13, 0.4) 40%, transparent 70%);
}
.house__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px 18px; transition: opacity 0.3s; }
.house__word { margin: 0 0 4px; color: var(--house); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; }
.house__name { font-family: var(--font-house); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.7rem); letter-spacing: 0.04em; white-space: nowrap; }
.house blockquote {
  margin: 0; max-height: 0; overflow: hidden; opacity: 0;
  color: var(--ink-dim); font-style: italic; font-size: 0.92rem; line-height: 1.5;
  transition: max-height 0.5s, opacity 0.4s, margin 0.5s;
}
@media (min-width: 821px) {
  .houses:hover .house, .houses:focus-within .house { flex-grow: 0.75; }
  .houses .house:hover, .houses .house:focus { flex-grow: 2.4; }
  /* A squeezed card is too narrow for its name; it shows its colour bar and picture until it is opened. */
  .houses:hover .house:not(:hover) .house__text, .houses:focus-within .house:not(:focus) .house__text { opacity: 0; }
  .house:hover img, .house:focus img { transform: scale(1.03); filter: none; }
  .house:hover blockquote, .house:focus blockquote { max-height: 9em; opacity: 1; margin-top: 12px; transition-delay: 0.15s; }
}
@media (max-width: 820px) {
  .houses {
    height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    gap: 12px; padding-bottom: 8px; scrollbar-width: none;
  }
  .houses::-webkit-scrollbar { display: none; }
  .house { flex: 0 0 78%; height: 128vw; max-height: 560px; scroll-snap-align: start; }
  .house img { filter: none; }
  .house blockquote { max-height: none; opacity: 1; margin-top: 10px; }
}
.factions__free { margin: 40px 0 0; color: var(--ink-dim); }
.factions__free b { color: var(--ink); letter-spacing: 0.08em; }

/* the studio */
.studio { background: linear-gradient(to bottom, var(--bg), #0a0d12 50%, var(--bg)); }
.studio__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .studio__grid { grid-template-columns: 0.8fr 1.2fr; gap: 80px; } }
.studio__mark { justify-self: center; width: min(62%, 300px); }
.studio__mark img { width: 100%; filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.7)); }
/* The shield's ink ends 95% across the image and 7% down. */
.studio__mark { position: relative; }
.studio__mark::after { content: "\2122"; position: absolute; left: 96%; top: 5%; font-size: 1rem; line-height: 1; color: var(--ink-dim); }
.studio__text p:not(.eyebrow):not(.lead) { color: var(--ink-dim); max-width: 560px; }
.studio__text .lead { margin-top: 28px; max-width: 600px; }
.values {
  list-style: none; margin: 88px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px;
  background: var(--line);
}
.values li { padding: 30px 26px; background: #0a0d12; }
.values h3 { margin-bottom: 10px; color: var(--accent); font-size: 0.8rem; }
.values p { margin: 0; color: var(--ink-dim); font-size: 0.92rem; }

/* join */
.join { overflow: hidden; padding: clamp(110px, 16vw, 200px) 0; border-top: 1px solid var(--line); }
.join__art { position: absolute; right: -4%; bottom: -12%; width: min(46%, 560px); opacity: 0.32; }
.join__art img { width: 100%; }
.join::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(224, 137, 62, 0.12), transparent 60%);
}
.join__inner { position: relative; }
.join h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); }
.join .lead { margin: 26px 0 36px; color: var(--ink-dim); }

/* footer */
.foot { padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.foot__brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.foot__brand img:first-child { width: 34px; }
.foot__wordmark { width: 200px; opacity: 0.9; }
.foot__brand::after { content: "\2122"; align-self: flex-start; margin-left: -14px; font-size: 0.625rem; line-height: 1; color: var(--ink-faint); }
.foot__small { color: var(--ink-faint); font-size: 0.75rem; text-align: right; }
.foot__small p { margin: 0; }
@media (max-width: 640px) { .foot__small { text-align: left; } }

.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; margin-bottom: 8px; }
.foot__links a {
  color: var(--ink-dim); text-decoration: none;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.foot__links a:hover { color: var(--ink); }
@media (max-width: 640px) { .foot__links { justify-content: flex-start; } }

/* ---------- the plain pages: privacy, terms, art & AI ---------- */
.doc-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--bar-height); padding: 0 var(--gutter); border-bottom: 1px solid var(--line);
}
.doc-bar__back {
  color: var(--ink-dim); text-decoration: none;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.doc-bar__back:hover { color: var(--ink); }
.doc { max-width: 780px; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(64px, 10vw, 120px); }
.doc h1 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); line-height: 1.1; text-transform: uppercase; margin-bottom: 12px; }
.doc h2 { max-width: none; margin: 40px 0 10px; font-size: 0.9rem; letter-spacing: 0.14em; }
.doc p { color: var(--ink-dim); }
.doc .lead { margin: 26px 0 8px; color: var(--ink); }
.doc a { color: var(--accent); }
.doc__date { color: var(--ink-faint); font-size: 0.8rem; }

/* ---------- motion: off when the visitor asks for less ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__cue span { animation: none; }
  .house, .house img, .house blockquote { transition: none; }
}
