/* Castle Lanes: a lane commander's war ledger. */

@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/Cinzel.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("/assets/fonts/AlegreyaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("/assets/fonts/AlegreyaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "MedievalSharp";
  src: url("/assets/fonts/MedievalSharp.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ground: #120d09;
  --ground-2: #1a130d;
  --ground-3: #231a12;
  --ink: #f1e7d6;
  --ink-2: #cdbca2;
  --ink-3: #a8967c;
  --rule: rgba(214, 168, 100, 0.2);
  --rule-strong: rgba(214, 168, 100, 0.42);
  --bronze: #b0884f;
  --gold: #eab85c;
  --gold-hi: #f6d48c;
  --ember: #e0702a;
  --cherry: #a33a1a;
  --tint: var(--gold);

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --text: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif;
  --hand: "MedievalSharp", "Cinzel", Georgia, serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --radius: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #5a442b var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--text);
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}

::selection { background: var(--ember); color: #160e08; }

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

a { color: var(--gold); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-hi); }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  letter-spacing: 0.01em;
  color: var(--ink);
}
h3 { font-size: 1.25rem; letter-spacing: 0.02em; }
p { margin: 0; }

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

.section-lede {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 1.1875rem;
  text-wrap: pretty;
}

.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: 50;
  padding: 0.6rem 1rem; background: var(--gold); color: #1a1008;
  font-weight: 700; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 1rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font: 700 1.0625rem/1.1 var(--text);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out), color 180ms;
}
.btn-icon { width: 1.25rem; height: 1.25rem; flex: none; }

.btn-gold {
  color: #1d1208;
  background: linear-gradient(180deg, #f3cd7f 0%, var(--gold) 55%, #cf9a43 100%);
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.65), inset 0 -2px 0 rgba(120, 70, 20, 0.45), 0 10px 24px -10px rgba(0, 0, 0, 0.7);
}
.btn-gold:hover {
  color: #1d1208;
  background: linear-gradient(180deg, #f8daa0 0%, #f0c46e 55%, #d9a54c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.75), inset 0 -2px 0 rgba(120, 70, 20, 0.45), 0 14px 30px -10px rgba(0, 0, 0, 0.8);
  transform: translateY(-1px);
}
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
  color: var(--ink);
  background: rgba(234, 184, 92, 0.08);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.btn-ghost:hover { color: var(--gold-hi); background: rgba(234, 184, 92, 0.14); }

.btn-small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9875rem; color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--rule-strong); }
.btn-small:hover { color: #1d1208; background: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }

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

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem var(--gutter);
  background: rgba(18, 13, 9, 0.86);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font: 700 1.125rem/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.brand:hover { color: var(--gold-hi); }
.brand-mark { width: 2.75rem; height: auto; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55)); }

.top nav { margin-left: auto; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms, border-color 160ms;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--gold); }

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

.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(60rem 26rem at 18% 100%, rgba(224, 112, 42, 0.16), transparent 70%),
    radial-gradient(40rem 20rem at 85% 0%, rgba(163, 58, 26, 0.12), transparent 70%),
    var(--ground);
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(3.25rem, 11vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--gold);
  text-shadow: 0 2px 0 #4a2a10, 0 14px 34px rgba(0, 0, 0, 0.6);
}

.pitch {
  margin-top: 1.25rem;
  font: 600 clamp(1.375rem, 3vw, 2rem)/1.25 var(--display);
  color: var(--ink);
  max-width: 34ch;
}

.lede {
  margin-top: 1rem;
  max-width: 38rem;
  color: var(--ink-2);
  font-size: 1.1875rem;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.link-quiet { color: var(--ink-2); font-weight: 700; }
.link-quiet:hover { color: var(--gold-hi); }

.platform-note {
  margin-top: 1rem;
  font-size: 0.9875rem;
  color: var(--ink-3);
}

.hero-band {
  position: relative;
  margin: clamp(-2.5rem, -3vw, -1rem) 0 0;
  z-index: 1;
}
.hero-band img {
  width: 100%;
  max-height: 40rem;
  aspect-ratio: 1278 / 446;
  object-fit: cover;
  object-position: 30% 50%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 82%, transparent 100%);
  animation: dawn 1600ms var(--ease-out) both;
}
.hero-band::after {
  /* the low horizon band of ember light under the lane */
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(18, 13, 9, 0.85));
  pointer-events: none;
}

@keyframes dawn {
  from { filter: brightness(0.5) saturate(0.6) sepia(0.35); }
  to { filter: none; }
}

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

.trailer { padding-block: clamp(2.5rem, 5vw, 4rem) var(--section); }
.trailer-frame {
  /* the whole player fits under the sticky header when the hero link jumps here */
  max-width: max(20rem, calc((100svh - 14rem) * 16 / 9));
  margin: 1.75rem 0 0;
}
.trailer-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #0c0806;
  box-shadow: inset 0 0 0 1px var(--rule), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.trailer-frame figcaption {
  max-width: 46rem;
  margin-top: 0.9rem;
  color: var(--ink-3);
  font-size: 0.9375rem;
  text-wrap: pretty;
}
.trailer-frame figcaption a { color: var(--ink-2); }
.trailer-frame figcaption a:hover { color: var(--gold-hi); }

/* How it plays -------------------------------------------------------- */

.how { padding-block: var(--section); border-top: 1px solid var(--rule); }

.steps {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  position: relative;
}
.steps::before {
  /* the lane every step walks along */
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 0;
  top: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ember) 60%, rgba(224, 112, 42, 0));
  opacity: 0.55;
}
.steps li { position: relative; }
.step-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ground);
  box-shadow: inset 0 0 0 1px var(--rule-strong), 0 0 0 6px var(--ground);
  font: 700 1rem/1 var(--display);
  color: var(--gold);
  position: relative;
}
.steps h3 { margin-top: 1.25rem; font-size: 1.3125rem; color: var(--ink); }
.steps p { margin-top: 0.6rem; color: var(--ink-2); font-size: 1.0625rem; }

.concept { margin: 4rem 0 0; }
.concept img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.concept figcaption { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ink-3); }

/* Factions ------------------------------------------------------------- */

.factions {
  --tint: #7fa6dc;
  padding-block: var(--section);
  background:
    radial-gradient(70rem 30rem at 50% 0%, color-mix(in srgb, var(--tint) 12%, transparent), transparent 70%),
    var(--ground-2);
  border-block: 1px solid var(--rule);
  transition: --tint 400ms;
}
.factions[data-faction="grove"] { --tint: #9cc066; }
.factions[data-faction="ember"] { --tint: #ec7d36; }

.faction-tabs {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.faction-tabs[hidden] { display: none; }
.faction-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 240, 210, 0.04);
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink-2);
  font: 700 1.125rem/1 var(--display);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 200ms, box-shadow 200ms, color 200ms;
}
.faction-tabs button img { width: 3rem; height: 3rem; border-radius: 8px; }
.faction-tabs button:hover { color: var(--ink); background: rgba(255, 240, 210, 0.07); }
.faction-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 70%, transparent);
}

.faction { margin-top: 2.5rem; }
.faction-vanguard { --tint: #7fa6dc; }
.faction-grove { --tint: #9cc066; }
.faction-ember { --tint: #ec7d36; }
.faction:focus-visible { outline-offset: 8px; }
.js-tabs .faction[hidden] { display: none; }
.js-tabs .faction { animation: reink 520ms var(--ease-out) both; }

@keyframes reink {
  from { opacity: 0.35; filter: saturate(0.4); }
  to { opacity: 1; filter: none; }
}

.faction-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem 2rem;
}
.faction-hero {
  width: 10rem;
  height: 10rem;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px color-mix(in srgb, var(--tint) 25%, transparent));
}
.faction-head h3 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); color: var(--tint); }
.motto {
  margin-top: 0.5rem;
  font: 400 clamp(1.1875rem, 2.2vw, 1.4375rem)/1.35 var(--hand);
  color: var(--ink);
}
.faction-head p:last-child { margin-top: 0.75rem; max-width: 42rem; color: var(--ink-2); text-wrap: pretty; }

.roll {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
  font-size: 1.0625rem;
}
.roll thead th {
  padding: 0 1rem 0.6rem 0;
  text-align: left;
  font: 700 0.8125rem/1 var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule-strong);
}
.roll tbody tr { border-bottom: 1px solid var(--rule); }
.roll tbody th,
.roll td {
  padding: 0.75rem 1rem 0.75rem 0;
  vertical-align: middle;
  text-align: left;
  color: var(--ink-2);
  font-weight: 400;
}
.roll tbody th { display: flex; align-items: center; gap: 1rem; }
.roll tbody th img { width: 4rem; height: 4rem; flex: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55)); }
.roll tbody th span { display: grid; }
.roll b { color: var(--ink); font-size: 1.125rem; }
.roll small { color: color-mix(in srgb, var(--tint) 55%, var(--ink-2)); font-size: 0.9375rem; }
.roll td img {
  display: inline-block;
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.6rem;
  vertical-align: middle;
  border-radius: 4px;
}
.gold {
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-weight: 700;
  margin-left: 0.4rem;
}
.gold::after { content: " g"; font-weight: 400; color: var(--ink-3); }

.roster-note { margin-top: 2rem; color: var(--ink-3); font-size: 0.9875rem; }

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

.features { padding-block: var(--section); }

.matrix {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem 4rem;
  align-items: center;
  margin-top: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--rule);
}
.matrix-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--gold); }
.matrix-copy p { margin-top: 1rem; color: var(--ink-2); text-wrap: pretty; }

.matrix-table { overflow-x: auto; }
.matrix-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
}
.matrix-table caption {
  caption-side: bottom;
  padding-top: 0.75rem;
  text-align: left;
  color: var(--ink-3);
  font-size: 0.875rem;
}
.matrix-table thead td { background: none; }
.matrix-table thead th {
  padding: 0 0 0.4rem;
  font: 700 0.75rem/1.1 var(--text);
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-align: center;
}
.matrix-table thead th img,
.matrix-table tbody th img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  margin-inline: auto;
}
.matrix-table thead th span { display: block; margin-top: 0.35rem; }
.matrix-table tbody th {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-right: 0.5rem;
  font-weight: 700;
  color: var(--ink-2);
  text-align: left;
  white-space: nowrap;
}
.matrix-table tbody th img { margin: 0; }
.matrix-table td {
  padding: 0.55rem 0.25rem;
  text-align: center;
  color: var(--ink-2);
  background: rgba(255, 240, 210, 0.035);
  border-radius: 6px;
}
.matrix-table td.hi { color: #1d1208; background: var(--gold); font-weight: 700; }
.matrix-table td.mid-lo { color: var(--ink-3); }
.matrix-table td.lo { color: #e9a184; background: rgba(163, 58, 26, 0.22); }

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-list li {
  padding: 2.25rem 2rem 2.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.feature-list li:nth-child(3n + 2),
.feature-list li:nth-child(3n + 3) { padding-left: 2rem; border-left: 1px solid var(--rule); }
.feature-list li:nth-last-child(-n + 3) { border-bottom: 0; }
.feature-list h3 { font-size: 1.1875rem; color: var(--ink); }
.feature-list p { margin-top: 0.6rem; color: var(--ink-2); font-size: 1.0625rem; }

/* Gallery -------------------------------------------------------------- */

.gallery {
  padding-block: var(--section);
  background: var(--ground-2);
  border-block: 1px solid var(--rule);
}
.shots {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.shot-wide { grid-column: span 2; grid-row: span 2; }
.shots a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--ground-3);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 500ms var(--ease-out), filter 300ms;
  filter: saturate(0.9);
}
.shots a:hover img,
.shots a:focus-visible img { transform: scale(1.03); filter: none; }
.shots a:focus-visible { outline-offset: 3px; }

/* Lightbox */
.lightbox {
  width: min(96vw, 82rem);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #0c0806;
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}
.lightbox::backdrop { background: rgba(8, 5, 3, 0.86); }
.lightbox[open] { animation: lb-in 260ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.98); } }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; height: auto; max-height: calc(94vh - 7rem); object-fit: contain; background: #000; }
.lightbox figcaption { padding: 0.9rem 1.25rem 0; color: var(--ink-2); font-size: 1rem; }
.lightbox-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem 1rem; }
.lightbox-bar button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 240, 210, 0.06);
  color: var(--ink);
  cursor: pointer;
}
.lightbox-bar button:hover { background: rgba(234, 184, 92, 0.18); color: var(--gold-hi); }
.lightbox-bar svg { width: 1.375rem; height: 1.375rem; }
.lb-count { color: var(--ink-3); font-size: 0.9375rem; font-variant-numeric: tabular-nums; margin-right: auto; padding-inline: 0.5rem; order: -1; }

/* Download ------------------------------------------------------------ */

.download {
  padding-block: var(--section);
  background:
    radial-gradient(50rem 24rem at 20% 0%, rgba(224, 112, 42, 0.12), transparent 70%),
    var(--ground);
}
.platforms {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  align-items: start;
}
.platform {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--ground-2);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.platform-win {
  background: linear-gradient(180deg, rgba(234, 184, 92, 0.1), rgba(234, 184, 92, 0.02)), var(--ground-2);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.platform h3 { font-size: 1.5rem; color: var(--ink); }
.platform p { color: var(--ink-2); }
.platform .meta { color: var(--ink-3); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.platform .fine { color: var(--ink-3); font-size: 0.9375rem; text-wrap: pretty; }
.platform .soon { color: var(--ink-2); padding: 0.75rem 1rem; border-radius: 8px; background: rgba(255, 240, 210, 0.04); }
.platform-mac p { color: var(--ink-3); }
.js-linux-ready { display: grid; gap: 0.9rem; justify-items: start; width: 100%; }
.js-linux-ready[hidden] { display: none; }

.hash {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.hash-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-3); }
.hash code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 0.8125rem/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--ink-2);
  user-select: all;
}
.copy {
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border: 0;
  border-radius: 6px;
  background: rgba(234, 184, 92, 0.14);
  color: var(--gold);
  font: 700 0.875rem/1 var(--text);
  cursor: pointer;
}
.copy:hover { background: rgba(234, 184, 92, 0.24); color: var(--gold-hi); }

/* Roadmap -------------------------------------------------------------- */

.roadmap { padding-block: var(--section); border-top: 1px solid var(--rule); }
.road {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.45rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--ember) 50%, rgba(224, 112, 42, 0.15) 75%, rgba(224, 112, 42, 0));
}
.road-stage { position: relative; padding-top: 2rem; }
.road-stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--ground);
  box-shadow: inset 0 0 0 2px var(--ink-3);
}
.road-stage.is-done::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(234, 184, 92, 0.18); }
.road-stage.is-now::before { background: var(--ember); box-shadow: 0 0 0 4px rgba(224, 112, 42, 0.25); }
.road-stage h3 { font-size: 1.25rem; color: var(--ink); }
.road-stage.is-now h3 { color: var(--ember); }
.road-stage ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.road-stage li { color: var(--ink-2); padding-left: 1.1rem; position: relative; }
.road-stage li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.4rem;
  height: 2px;
  background: var(--bronze);
}

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

.foot {
  padding-block: 3.5rem 4rem;
  background: #0d0906;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 0.9375rem;
}
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 4rem; }
.foot p { margin-top: 0.75rem; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--gold-hi); }
.foot .brand { color: var(--gold); }
.credits p:first-child { margin-top: 0; }

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1060px) {
  .nav-links { gap: 1.1rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .steps::before { display: none; }
  .matrix { grid-template-columns: minmax(0, 1fr); }
  .platforms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .platform-mac { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .top nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .feature-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature-list li,
  .feature-list li:nth-child(3n + 2),
  .feature-list li:nth-child(3n + 3) { padding: 2rem 1.5rem 2rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .feature-list li:nth-child(2n) { padding-left: 1.5rem; padding-right: 0; border-left: 1px solid var(--rule); }
  .feature-list li:nth-last-child(-n + 2) { border-bottom: 0; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-wide { grid-column: 1 / -1; grid-row: auto; }
  .road { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .road::before { left: 0.45rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold), var(--ember) 50%, rgba(224, 112, 42, 0.1)); }
  .road-stage { padding: 0 0 0 2.25rem; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .brand span { font-size: 1rem; }
  .hero-band { margin-top: 1.5rem; }
  .hero-band img { aspect-ratio: 4 / 3; object-position: 52% 50%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 86%, transparent 100%); }
  .hero-band::after { height: 22%; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 2.25rem; }
  .steps li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1.25rem; }
  .steps li .step-mark { grid-row: span 2; }
  .steps h3 { margin-top: 0.6rem; }
  .faction-tabs { gap: 0.5rem; }
  .faction-tabs button { flex: 1; flex-direction: column; gap: 0.4rem; padding: 0.6rem 0.25rem; font-size: 0.9375rem; }
  .faction-head { grid-template-columns: minmax(0, 1fr); }
  .faction-hero { width: 8rem; height: 8rem; }
  .roll thead { display: none; }
  .roll, .roll tbody, .roll tr { display: block; }
  .roll tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.4rem 1rem; padding: 1rem 0; }
  .roll tbody th { grid-column: 1 / -1; padding: 0; }
  .roll td { display: block; padding: 0; font-size: 1rem; }
  .roll td[data-label="Trained at"] { grid-column: 1 / -1; }
  .roll td[data-label="Trained at"]::before { content: "Trained at "; color: var(--ink-3); }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .feature-list li,
  .feature-list li:nth-child(2n),
  .feature-list li:nth-child(3n + 2),
  .feature-list li:nth-child(3n + 3) { padding: 1.75rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .feature-list li:last-child { border-bottom: 0; }
  .matrix-table { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .matrix-table table { min-width: 33rem; }
  .matrix-table caption { position: sticky; left: 0; max-width: calc(100vw - 2 * var(--gutter)); }
  .matrix-table td { padding: 0.5rem 0.15rem; font-size: 0.875rem; }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .platform { padding: 1.5rem; }
  .platform .btn { width: 100%; justify-content: center; }
}

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

/* 404 ------------------------------------------------------------------- */

.lost {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(40rem 22rem at 50% 70%, rgba(224, 112, 42, 0.14), transparent 70%),
    var(--ground);
}
.lost-main {
  width: min(100% - 2 * var(--gutter), 36rem);
  padding-block: 4rem;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.lost h1 { font-size: clamp(2.5rem, 8vw, 4rem); color: var(--gold); margin-top: 1.5rem; }
.lost p { color: var(--ink-2); font-size: 1.1875rem; }

/* Legal pages (imprint, privacy) ----------------------------------------- */

.legal {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 4rem;
  background:
    radial-gradient(48rem 20rem at 20% 0%, rgba(234, 184, 92, 0.08), transparent 70%),
    var(--ground);
}
.legal-wrap { max-width: 46rem; }
.legal-kicker {
  margin: 0 0 0.75rem;
  font: 600 0.8125rem/1.4 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.legal-kicker a { color: var(--ink-3); text-decoration: none; }
.legal-kicker a:hover { color: var(--gold-hi); }
.legal h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); color: var(--gold); }
.legal-lede { margin-top: 1rem; font-size: 1.25rem; color: var(--ink-2); max-width: 38rem; }
.legal-meta { margin-top: 0.75rem; color: var(--ink-3); font-size: 0.9375rem; }
.legal-summary {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--ground-2);
}
.legal-summary h2 { font-size: 1.375rem; margin: 0; }
.legal-summary ul { margin: 0.75rem 0 0; padding-left: 1.25rem; color: var(--ink-2); }
.legal-summary li + li { margin-top: 0.35rem; }
.legal-toc { margin-top: 2rem; }
.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2 16rem;
  column-gap: 2rem;
  color: var(--ink-3);
}
.legal-toc li { break-inside: avoid; padding-block: 0.15rem; }
.legal-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 5rem;
}
.legal-block h2 { font-size: clamp(1.5rem, 3.5vw, 1.875rem); margin: 0; }
.legal-block h3 { font-size: 1.125rem; margin-top: 1.5rem; color: var(--ink); }
.legal-block p, .legal-block ul, .legal-block address { margin-top: 0.85rem; color: var(--ink-2); }
.legal-block ul { padding-left: 1.25rem; }
.legal-block li + li { margin-top: 0.4rem; }
.legal-block address { font-style: normal; line-height: 1.7; }
.legal-block strong { color: var(--ink); }
.legal code {
  font-size: 0.9em;
  padding: 0.05em 0.35em;
  border-radius: 3px;
  background: var(--ground-3);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.foot-legal p { margin: 0; }
.lost .lost-legal { font-size: 0.9375rem; color: var(--ink-3); }
.lost-legal a { color: var(--ink-2); }
