:root {
  --ink: #eef0e7;
  --ink-soft: #b8beb0;
  --ink-faint: #7e897f;
  --night: #090d0c;
  --night-raised: #0e1513;
  --slate: #131b19;
  --stone: #1a201d;
  --stone-light: #29302b;
  --line: rgba(220, 202, 157, 0.18);
  --line-strong: rgba(220, 202, 157, 0.34);
  --gold: #d4aa52;
  --gold-light: #efd082;
  --ember: #d76832;
  --ember-light: #f09a52;
  --moss: #839558;
  --teal: #6cc7ba;
  --danger: #e07a58;
  --good: #77c798;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --display: Georgia, "Times New Roman", serif;
  --ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 22% 6%, rgba(102, 126, 77, 0.08), transparent 30rem),
    linear-gradient(180deg, #080c0b 0%, #0b100e 45%, #080b0a 100%);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.055;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.22) 4px),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(0,0,0,.25) 6px);
  mix-blend-mode: soft-light;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

::selection {
  color: #12130f;
  background: var(--gold-light);
}

.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-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: #111;
  background: var(--gold-light);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(1280px, calc(100% - 56px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.muted {
  color: var(--ink-faint);
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  min-height: 78px;
  padding: 10px clamp(18px, 3vw, 46px);
  border-bottom: 1px solid transparent;
  transition: min-height 220ms ease, background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.scrolled {
  min-height: 66px;
  background: rgba(8, 12, 11, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(120%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 34px);
  justify-self: center;
}

.site-nav a,
.site-nav button {
  position: relative;
  padding: 10px 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav a::after,
.site-nav button::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 3px;
  left: 50%;
  height: 2px;
  background: var(--gold);
  transition: right 180ms ease, left 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav button:hover,
.site-nav button:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav button:hover::after,
.site-nav button:focus-visible::after {
  right: 0;
  left: 0;
}

.phase-chip {
  display: grid;
  justify-self: end;
  padding: 8px 14px 9px;
  border: 1px solid rgba(212, 170, 82, 0.28);
  color: var(--ink);
  background: rgba(12, 18, 16, 0.72);
  text-align: right;
  text-decoration: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.phase-chip span {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phase-chip strong {
  margin-top: 2px;
  font-size: 0.72rem;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: max(780px, 100svh);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0a0f0d;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/settlement-hero.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.025);
  animation: hero-breathe 18s ease-in-out infinite alternate;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 8, 8, .94) 0%, rgba(4, 8, 8, .78) 25%, rgba(4, 8, 8, .24) 58%, rgba(4, 8, 8, .12) 74%, rgba(4, 8, 8, .55) 100%),
    linear-gradient(180deg, rgba(3,6,5,.68) 0%, transparent 22%, transparent 70%, rgba(6,9,8,.9) 100%),
    radial-gradient(circle at 70% 45%, transparent 0 36%, rgba(3,6,5,.55) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  background: linear-gradient(transparent, #090d0c);
  pointer-events: none;
}

@keyframes hero-breathe {
  from { transform: scale(1.025) translate3d(0, 0, 0); }
  to { transform: scale(1.055) translate3d(-0.4%, -0.5%, 0); }
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(28px, 6vw, 110px);
  width: min(660px, calc(100% - 56px));
  transform: translateY(-50%);
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: -24px;
  left: -32px;
  width: 2px;
  height: 88px;
  background: linear-gradient(transparent, var(--gold), transparent);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.65rem, 7.7vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.87;
  text-wrap: balance;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.62);
}

.hero-lede {
  max-width: 590px;
  margin: 28px 0 0;
  color: #d6dbd0;
  font-size: clamp(1.02rem, 1.5vw, 1.23rem);
  line-height: 1.7;
  text-shadow: 0 3px 18px rgba(0,0,0,.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #15130c;
  background: linear-gradient(135deg, var(--gold-light), #b98735);
  box-shadow: 0 8px 28px rgba(183, 130, 48, 0.26);
}

.button-quiet {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(7, 12, 10, 0.58);
  backdrop-filter: blur(8px);
}

.button-quiet:hover,
.button-quiet:focus-visible {
  border-color: var(--gold);
  background: rgba(12, 18, 15, 0.88);
}

.hero-status {
  position: absolute;
  z-index: 3;
  right: clamp(28px, 5vw, 82px);
  bottom: 58px;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 14px;
  width: min(390px, calc(100% - 56px));
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(7, 12, 10, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.status-light {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(108,199,186,.12), 0 0 18px rgba(108,199,186,.8);
  animation: status-pulse 2s ease-out infinite;
}

@keyframes status-pulse {
  50% { box-shadow: 0 0 0 8px rgba(108,199,186,0), 0 0 20px rgba(108,199,186,.65); }
}

.hero-status div {
  display: grid;
}

.hero-status small {
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-status strong {
  margin-top: 2px;
  font-family: var(--display);
  font-size: 1rem;
}

.hero-status p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: .74rem;
  line-height: 1.5;
}

.hero-coordinate {
  position: absolute;
  right: clamp(28px, 5vw, 82px);
  bottom: 20px;
  display: flex;
  gap: 18px;
  color: rgba(225,230,216,.5);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.field-note {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(200px, 280px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 74px);
  padding-block: clamp(100px, 12vw, 170px);
}

.field-note-mark {
  color: rgba(212, 170, 82, .055);
  font-family: var(--display);
  font-size: clamp(12rem, 20vw, 19rem);
  line-height: .68;
  pointer-events: none;
  user-select: none;
}

.field-note-aside {
  padding-top: 9px;
  border-top: 1px solid var(--gold);
}

.field-note-aside span {
  display: block;
  color: var(--gold);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.field-note-aside strong {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.4;
}

.field-note-copy {
  max-width: 800px;
}

.display-copy {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.two-column-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  margin-top: 44px;
  color: var(--ink-soft);
}

.two-column-copy p {
  margin: 0;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent);
}

.proof-strip > div {
  display: grid;
  align-content: center;
  min-height: 154px;
  padding: 30px clamp(20px, 3.5vw, 60px);
  border-right: 1px solid var(--line);
}

.proof-strip > div:last-child {
  border-right: 0;
}

.proof-number {
  color: var(--gold-light);
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1;
}

.proof-label {
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: .65rem;
  font-weight: 780;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lives-section {
  padding-block: clamp(100px, 12vw, 170px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .65fr);
  align-items: end;
  gap: clamp(40px, 7vw, 110px);
  margin-bottom: 72px;
}

.section-heading h2,
.gameplay-heading h2,
.decision-copy h2,
.control-copy h2,
.roadmap-heading h2,
.closing-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5.7vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .98;
  text-wrap: balance;
}

.section-heading > p,
.gameplay-heading > p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
}

.life-ledger {
  border-top: 1px solid var(--line-strong);
}

.ledger-entry {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 130px;
  gap: 28px;
  align-items: start;
  padding: 32px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding-inline 180ms ease, background 180ms ease;
}

.ledger-entry:hover {
  padding-inline: 20px;
  background: linear-gradient(90deg, rgba(212, 170, 82, .045), transparent);
}

.ledger-index {
  color: var(--gold);
  font-family: var(--mono);
  font-size: .72rem;
}

.ledger-entry h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  font-weight: 500;
}

.ledger-entry p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.ledger-state {
  justify-self: end;
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.gameplay-section {
  padding: clamp(90px, 9vw, 140px) 0;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 25%, rgba(66, 100, 74, .13), transparent 35rem),
    #090e0c;
}

.gameplay-heading {
  display: grid;
  grid-template-columns: 1.15fr .65fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 48px;
}

.game-shell {
  width: min(1500px, calc(100% - 30px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(239, 208, 130, .42);
  background: #101512;
  box-shadow:
    0 0 0 5px #090c0b,
    0 0 0 6px rgba(239, 208, 130, .17),
    0 32px 100px rgba(0,0,0,.66);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
}

.game-shell-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(239,208,130,.26);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent),
    #141914;
}

.shell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shell-brand img {
  width: 40px;
  height: 40px;
}

.shell-brand span {
  color: #ddd8c6;
  font-family: var(--display);
  font-size: .9rem;
}

.resource-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.resource-ribbon > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(239,208,130,.15);
  color: #aeb6a9;
  background: rgba(0,0,0,.2);
  font-size: .63rem;
  text-transform: uppercase;
}

.resource-ribbon strong {
  color: #efe8d6;
  font-size: .72rem;
}

.resource-icon {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

.resource-icon.wood { background: #9b6039; }
.resource-icon.stone { background: #89918b; }
.resource-icon.food { background: #769044; }
.resource-icon.coin { border-radius: 50%; background: #d7ae4e; }

.game-tabs {
  display: flex;
  padding-inline: 10px;
  border-bottom: 1px solid rgba(239,208,130,.22);
  background: #0c110e;
}

.game-tabs button {
  position: relative;
  min-width: 118px;
  padding: 12px 16px;
  border: 0;
  color: #818c82;
  background: transparent;
  cursor: pointer;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.game-tabs button::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  background: transparent;
}

.game-tabs button:hover,
.game-tabs button:focus-visible {
  color: #d8ded4;
}

.game-tabs button[aria-selected="true"] {
  color: var(--gold-light);
  background: rgba(212,170,82,.06);
}

.game-tabs button[aria-selected="true"]::after {
  background: var(--gold);
}

.game-view {
  min-height: 760px;
}

.game-view[hidden] {
  display: none;
}

.settlement-screen {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: url("assets/settlement-hero.webp") center / cover;
}

.screen-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,6,5,.44), transparent 30%, transparent 70%, rgba(4,6,5,.38)),
    linear-gradient(180deg, rgba(4,6,5,.28), transparent 28%, transparent 70%, rgba(4,6,5,.45));
}

.stone-panel,
.addon-window {
  border: 1px solid rgba(229, 210, 158, .4);
  color: #e7e7dc;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 38%),
    linear-gradient(180deg, #1d231f, #111713);
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,.44),
    inset 0 0 28px rgba(0,0,0,.28),
    0 12px 38px rgba(0,0,0,.48);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.panel-header,
.addon-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid rgba(229,210,158,.28);
  color: #ede7d5;
  background: linear-gradient(180deg, #343a31, #252b25);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.panel-header b {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #241b0b;
  background: var(--gold);
}

.objective-panel {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 270px;
}

.matter {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(229,210,158,.11);
}

.matter:last-child { border-bottom: 0; }

.matter small,
.intent-block small,
.people-intro small,
.flow-node small,
.thought-title small,
.plan-chain small,
.expedition-panel > small,
.map-callout small {
  color: var(--gold);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.matter.urgent small { color: var(--danger); }
.matter.calm small { color: var(--teal); }

.matter strong {
  display: block;
  margin-top: 3px;
  font-family: var(--display);
  font-size: .93rem;
  font-weight: 500;
}

.matter p {
  margin: 4px 0 0;
  color: #a9b0a6;
  font-size: .66rem;
  line-height: 1.45;
}

.unit-panel {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 305px;
  overflow: hidden;
}

.unit-title {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  min-height: 112px;
  padding: 12px 12px 0;
  border-bottom: 1px solid rgba(229,210,158,.17);
  background: radial-gradient(circle at 20% 20%, rgba(212,170,82,.16), transparent 55%);
}

.unit-title img {
  align-self: end;
  width: 70px;
  height: 102px;
  object-fit: contain;
  object-position: bottom;
}

.unit-title div {
  align-self: center;
}

.unit-title small {
  color: var(--gold);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.unit-title h3 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
}

.unit-title p {
  margin: 0;
  color: #98a198;
  font-size: .66rem;
}

.need-bars {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.need-bars label {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 8px;
  color: #aab1aa;
  font-size: .61rem;
}

.need-bars meter {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 0;
  background: #080b09;
}

.need-bars meter::-webkit-meter-bar {
  border: 0;
  border-radius: 0;
  background: #080b09;
}

.need-bars meter::-webkit-meter-optimum-value {
  background: linear-gradient(90deg, #567049, #94a85c);
}

.need-bars meter::-moz-meter-bar {
  background: linear-gradient(90deg, #567049, #94a85c);
}

.intent-block {
  padding: 13px 14px;
  border-block: 1px solid rgba(229,210,158,.16);
  background: rgba(0,0,0,.16);
}

.intent-block strong {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 500;
}

.intent-block span {
  display: block;
  margin-top: 2px;
  color: #8e978f;
  font-size: .59rem;
}

.unit-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 10px;
}

.unit-actions button,
.game-button {
  padding: 8px 5px;
  border: 1px solid rgba(229,210,158,.22);
  color: #c6ccc2;
  background: #242a25;
  cursor: pointer;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.unit-actions button:hover,
.unit-actions button:focus-visible,
.game-button:hover,
.game-button:focus-visible {
  border-color: var(--gold);
  color: #fff7dc;
}

.unit-actions .accent {
  color: #201708;
  background: linear-gradient(#e3bd6b, #b68538);
}

.world-marker {
  position: absolute;
  display: grid;
  justify-items: center;
  color: #fff;
  filter: drop-shadow(0 3px 8px #000);
}

.world-marker span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #f1ddb1;
  border-radius: 50%;
  background: rgba(21,29,23,.86);
  font-family: var(--display);
}

.world-marker small {
  margin-top: 3px;
  padding: 1px 5px;
  color: #e8e2d2;
  background: rgba(0,0,0,.68);
  font-size: .55rem;
}

.marker-house { top: 31%; left: 62%; }
.marker-forge { top: 42%; left: 49%; }
.marker-forge span { border-color: var(--danger); color: #ffb082; }

.selection-ring {
  position: absolute;
  width: 58px;
  height: 30px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(108,199,186,.8), inset 0 0 12px rgba(108,199,186,.3);
  transform: rotate(-8deg);
  animation: ring-glow 1.9s ease-in-out infinite alternate;
}

.ring-one { top: 58%; left: 64%; }
.ring-two { top: 62%; left: 69%; animation-delay: -.7s; }

@keyframes ring-glow {
  to { box-shadow: 0 0 22px rgba(108,199,186,1), inset 0 0 16px rgba(108,199,186,.5); }
}

.build-ribbon {
  position: absolute;
  right: 50%;
  bottom: 22px;
  display: flex;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(229,210,158,.42);
  background: linear-gradient(#222822, #101510);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(0,0,0,.4);
  transform: translateX(50%);
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
}

.build-ribbon button {
  display: grid;
  justify-items: center;
  min-width: 104px;
  padding: 9px 10px;
  border: 1px solid rgba(229,210,158,.14);
  color: #dbe0d7;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}

.build-ribbon button:hover,
.build-ribbon button:focus-visible {
  border-color: var(--gold);
  background: rgba(212,170,82,.08);
}

.build-ribbon span {
  margin-top: 4px;
  font-family: var(--display);
  font-size: .75rem;
}

.build-ribbon small {
  color: #899288;
  font-size: .5rem;
}

.building-icon {
  position: relative;
  width: 30px;
  height: 22px;
  border: 2px solid #a37242;
  background: #674229;
}

.building-icon::before {
  content: "";
  position: absolute;
  right: -4px;
  bottom: 15px;
  left: -4px;
  height: 13px;
  border: 2px solid #785036;
  background: #3e2d24;
  transform: skewY(-16deg);
}

.building-icon.well {
  width: 25px;
  height: 18px;
  border-color: #949991;
  border-radius: 50%;
  background: #3e4a48;
}

.building-icon.well::before {
  height: 2px;
  border: 0;
  background: #9b7047;
  transform: none;
}

.building-icon.road {
  width: 34px;
  height: 18px;
  border: 0;
  background: repeating-linear-gradient(90deg, #837a62 0 8px, #59564b 9px 10px);
  transform: perspective(20px) rotateX(20deg);
}

.building-icon.road::before { display: none; }

.people-screen {
  display: grid;
  grid-template-columns: 1.1fr .8fr .8fr;
  grid-template-rows: auto 1fr;
  gap: 18px;
  min-height: 760px;
  padding: clamp(24px, 4vw, 60px);
  background:
    linear-gradient(rgba(8,13,10,.9), rgba(8,13,10,.92)),
    url("assets/meadow-grass.webp") center / 720px;
}

.people-intro {
  grid-column: 1 / -1;
  max-width: 760px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.people-intro h3 {
  margin: 2px 0 12px;
  font-family: var(--display);
  font-size: clamp(2rem,4vw,4rem);
  font-weight: 500;
  line-height: 1;
}

.people-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
}

.person-card {
  display: grid;
  grid-template-columns: minmax(90px, .6fr) 1fr;
  align-items: end;
  min-height: 350px;
  padding: 28px 20px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 15%, rgba(131,149,88,.18), transparent 45%),
    linear-gradient(160deg, #1b211b, #0d120f);
  box-shadow: inset 0 0 35px rgba(0,0,0,.3);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.person-card.selected {
  border-color: rgba(108,199,186,.5);
}

.person-card img {
  align-self: end;
  width: 100%;
  max-height: 310px;
  object-fit: contain;
  object-position: bottom;
}

.person-card > div {
  align-self: center;
  padding-bottom: 30px;
}

.person-card small {
  color: var(--gold);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.person-card strong {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
}

.person-card p {
  margin: 5px 0 15px;
  color: var(--ink-soft);
  font-size: .76rem;
}

.trait-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.trait-row span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: #9fa89f;
  font-size: .5rem;
  text-transform: uppercase;
}

.relationship-thread {
  align-self: stretch;
  padding: 30px;
  border-left: 1px solid var(--line);
}

.relationship-thread > div {
  position: relative;
  padding: 0 0 36px 28px;
  border-left: 1px solid rgba(212,170,82,.35);
}

.relationship-thread > div:last-child {
  border-left-color: transparent;
}

.thread-knot {
  position: absolute;
  top: 2px;
  left: -6px;
  width: 11px;
  height: 11px;
  border: 2px solid #0b100d;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 2px rgba(108,199,186,.3);
}

.thread-knot.warning {
  background: var(--danger);
  box-shadow: 0 0 0 2px rgba(224,122,88,.3);
}

.relationship-thread strong {
  font-family: var(--display);
  font-weight: 500;
}

.relationship-thread p {
  margin: 5px 0 0;
  color: var(--ink-faint);
  font-size: .7rem;
}

.map-screen {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: #11140f;
}

.map-screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
}

.map-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px 30px rgba(5,6,4,.75);
  pointer-events: none;
}

.map-pin {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 130px;
  padding: 8px 10px 8px 30px;
  border: 1px solid rgba(239,208,130,.36);
  color: #efe5cc;
  background: rgba(17,20,15,.84);
  box-shadow: 0 7px 20px rgba(0,0,0,.38);
}

.map-pin > span {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 11px;
  height: 11px;
  border: 2px solid #f4db9c;
  border-radius: 50% 50% 50% 0;
  background: var(--ember);
  transform: translateY(-60%) rotate(-45deg);
  box-shadow: 0 0 10px rgba(215,104,50,.7);
}

.map-pin strong {
  font-family: var(--display);
  font-size: .83rem;
  font-weight: 500;
}

.map-pin small {
  color: #a29d8b;
  font-size: .52rem;
}

.pin-home { top: 42%; left: 39%; }
.pin-mine { top: 28%; left: 14%; }
.pin-ruin { right: 25%; bottom: 29%; }

.expedition-panel {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: 24px;
  width: 292px;
  padding-bottom: 14px;
}

.expedition-panel > small,
.expedition-panel > h3,
.expedition-panel > p,
.expedition-panel > dl,
.expedition-panel > .formation-row,
.expedition-panel > .game-button {
  margin-inline: 14px;
}

.expedition-panel > small {
  display: block;
  margin-top: 14px;
}

.expedition-panel h3 {
  margin-top: 2px;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
}

.expedition-panel > p {
  color: #a5ada4;
  font-size: .68rem;
  line-height: 1.5;
}

.expedition-panel dl {
  border-block: 1px solid rgba(229,210,158,.14);
}

.expedition-panel dl div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: .63rem;
}

.expedition-panel dt {
  color: #8f988f;
}

.expedition-panel dd {
  margin: 0;
  color: #e0e3dc;
  font-weight: 700;
}

.danger-text {
  color: var(--danger) !important;
}

.formation-row {
  display: flex;
  gap: 8px;
  padding: 14px 0;
}

.formation-token {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(229,210,158,.28);
  border-radius: 50%;
  color: #d7ddcf;
  background: #282e27;
  font-family: var(--display);
}

.formation-token.lead {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,170,82,.1);
}

.expedition-panel .game-button {
  width: calc(100% - 28px);
}

.economy-screen {
  min-height: 760px;
  padding: clamp(24px, 4vw, 60px);
  background:
    radial-gradient(circle at 50% 0, rgba(212,170,82,.08), transparent 34rem),
    #0b100e;
}

.economy-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.economy-summary > span {
  display: grid;
  padding: 17px 20px;
  background: #141a16;
}

.economy-summary small {
  color: var(--ink-faint);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.economy-summary strong {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
}

.economy-summary em {
  color: var(--ink-faint);
  font-size: .55rem;
  font-style: normal;
  text-transform: uppercase;
}

.economy-summary .good { color: var(--good); }
.economy-summary .bad,
.mini-ledger .bad { color: var(--danger); }

.flow-board {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  align-items: center;
  margin-top: 54px;
}

.flow-node {
  display: grid;
  min-height: 130px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #1a211a, #101510);
  text-align: center;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.flow-node strong {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
}

.flow-node span {
  color: var(--ink-faint);
  font-size: .6rem;
}

.flow-node.source { border-color: rgba(131,149,88,.48); }
.flow-node.task { border-color: rgba(212,170,82,.46); }
.flow-node.storage { border-color: rgba(108,199,186,.44); }
.flow-node.demand { border-color: rgba(215,104,50,.45); }

.flow-arrow {
  position: relative;
  height: 1px;
  background: var(--gold);
}

.flow-arrow::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  border-width: 4px 0 4px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--gold);
}

.economy-ledgers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.mini-ledger {
  padding: 22px;
  border-top: 2px solid var(--gold);
  background: rgba(255,255,255,.025);
}

.mini-ledger h3 {
  margin: 0 0 15px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
}

.mini-ledger p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid rgba(229,210,158,.1);
  color: var(--ink-faint);
  font-size: .62rem;
}

.mini-ledger strong {
  color: var(--ink-soft);
  text-align: right;
}

.concept-note {
  width: min(1280px, calc(100% - 56px));
  margin: 22px auto 0;
  color: var(--ink-faint);
  font-size: .65rem;
  text-align: right;
}

.decision-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, .7fr);
  gap: clamp(55px, 9vw, 150px);
  align-items: center;
  padding-block: clamp(100px, 13vw, 190px);
}

.decision-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--ink-soft);
}

.thought-panel {
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 44%),
    #131916;
  box-shadow: var(--shadow), inset 0 0 50px rgba(0,0,0,.25);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.thought-title {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.thought-title img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(131,149,88,.08);
}

.thought-title strong {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
}

.thought-axis {
  display: grid;
  grid-template-columns: 92px 1fr 28px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: .65rem;
}

.thought-axis > i {
  height: 8px;
  overflow: hidden;
  background: #080b09;
}

.thought-axis > i b {
  display: block;
  width: var(--score);
  height: 100%;
  background: linear-gradient(90deg, #63774e, var(--gold));
}

.thought-axis > strong {
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: .65rem;
}

.plan-chain {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}

.plan-chain ol {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: plan;
}

.plan-chain li {
  counter-increment: plan;
  position: relative;
  padding-left: 34px;
  color: var(--ink-soft);
  font-size: .72rem;
}

.plan-chain li::before {
  content: counter(plan);
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: .55rem;
}

.plan-chain li.complete {
  color: var(--good);
  text-decoration: line-through;
  text-decoration-color: rgba(119,199,152,.45);
}

.plan-chain li.complete::before {
  content: "✓";
  border-color: var(--good);
  color: var(--good);
}

.control-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.control-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7,11,9,.95), rgba(7,11,9,.73)),
    url("assets/meadow-grass.webp") center / 720px;
}

.control-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 55%, rgba(131,149,88,.14), transparent 28rem);
}

.control-inner {
  display: grid;
  grid-template-columns: .75fr 1.1fr;
  gap: clamp(55px, 9vw, 150px);
  align-items: center;
  padding-block: clamp(100px, 12vw, 170px);
}

.control-copy p:not(.eyebrow) {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--ink-soft);
}

.control-steps {
  border-top: 1px solid var(--line-strong);
}

.control-steps article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  padding: 21px 8px;
  border-bottom: 1px solid var(--line);
}

.control-steps article > span {
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.6rem;
}

.control-steps h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
}

.control-steps p {
  margin: 2px 0 0;
  color: var(--ink-faint);
  font-size: .76rem;
}

.addons-section,
.workshop-section {
  padding-block: clamp(100px, 12vw, 170px);
}

.addon-workbench {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 610px;
  border: 1px solid var(--line-strong);
  background: #080c0a;
  box-shadow: var(--shadow);
}

.addon-stage {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-right: 1px solid var(--line-strong);
  touch-action: none;
}

.stage-world {
  position: absolute;
  inset: 0;
  opacity: .75;
  background:
    linear-gradient(rgba(5,8,6,.18), rgba(5,8,6,.64)),
    url("assets/settlement-hero.webp") 60% center / cover;
}

.stage-world::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 55% 45%, transparent, rgba(3,5,4,.58));
}

.addon-window {
  --drag-x: 0px;
  --drag-y: 0px;
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 2;
  width: 220px;
  transform: translate(var(--drag-x), var(--drag-y));
}

.addon-window.dragging {
  z-index: 6;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.5));
}

.addon-title {
  width: 100%;
  cursor: grab;
  text-align: left;
}

.addon-title:active {
  cursor: grabbing;
}

.addon-title i {
  color: #7b847a;
  font-style: normal;
  letter-spacing: -2px;
}

.addon-body {
  padding: 11px 13px;
}

.addon-body p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(229,210,158,.1);
  color: #9fa89f;
  font-size: .64rem;
}

.addon-body p:last-child {
  border-bottom: 0;
}

.addon-body strong,
.addon-body b {
  color: #e8ebdf;
}

.addon-body .warning-row strong {
  color: var(--danger);
}

.watch-addon {
  width: 190px;
}

.watch-addon .addon-body > small {
  color: var(--ink-faint);
  font-size: .55rem;
  text-transform: uppercase;
}

.watch-addon .large {
  display: block;
  color: var(--good);
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
}

.household-addon {
  width: 290px;
}

.pulse-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pulse-row > span {
  color: var(--ink-soft);
  font-size: .57rem;
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-radius: 50%;
}

.pulse-dot.good { background: var(--good); }
.pulse-dot.warn { background: var(--gold); }
.pulse-dot.bad { background: var(--danger); }

.drag-note {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 1;
  margin: 0;
  color: rgba(238,240,231,.48);
  font-size: .6rem;
}

.code-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(108,199,186,.06), transparent 22rem),
    #0b100e;
}

.code-title,
.code-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: .62rem;
}

.code-title i {
  padding: 2px 6px;
  border: 1px solid rgba(108,199,186,.25);
  color: var(--teal);
  font-style: normal;
}

.code-card pre {
  margin: 0;
  overflow: auto;
  padding: clamp(22px, 3vw, 38px);
  color: #c6cec5;
  font-family: var(--mono);
  font-size: clamp(.68rem, .8vw, .82rem);
  line-height: 1.85;
  tab-size: 2;
}

.code-card code {
  font-family: inherit;
}

.code-keyword { color: #d6a45b; }
.code-fn { color: #7dcbbc; }
.code-string { color: #a8bd75; }
.code-number { color: #df8969; }

.code-foot {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.code-foot span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: #8c978d;
  font-family: var(--ui);
  font-size: .52rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.breadth-section {
  position: relative;
  isolation: isolate;
  min-height: 820px;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.breadth-map,
.breadth-overlay {
  position: absolute;
  inset: 0;
}

.breadth-map {
  z-index: -3;
  background: url("assets/world-map.webp") center / cover;
}

.breadth-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6,9,7,.96) 0%, rgba(6,9,7,.8) 40%, rgba(6,9,7,.16) 72%, rgba(6,9,7,.38) 100%),
    linear-gradient(180deg, rgba(6,9,7,.58), transparent 25%, transparent 75%, rgba(6,9,7,.8));
}

.breadth-content {
  display: grid;
  grid-template-columns: .75fr 1fr;
  align-items: center;
  min-height: 820px;
}

.breadth-copy {
  max-width: 650px;
}

.breadth-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .95;
}

.breadth-copy > p:not(.eyebrow) {
  margin: 28px 0 0;
  color: #c5c9bd;
}

.breadth-copy ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.breadth-copy li {
  position: relative;
  padding-left: 16px;
  color: #d9ddcf;
  font-size: .75rem;
}

.breadth-copy li::before {
  content: "";
  position: absolute;
  top: .7em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.map-callout {
  justify-self: end;
  align-self: end;
  width: min(330px, 100%);
  margin-bottom: 70px;
  padding: 24px;
  border: 1px solid rgba(239,208,130,.34);
  background: rgba(9,12,9,.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.map-callout h3 {
  margin: 3px 0 16px;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
}

.map-callout dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.map-callout dl div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: .67rem;
}

.map-callout dt {
  color: var(--ink-faint);
}

.map-callout dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.map-callout > p {
  margin: 14px 0 0;
  color: var(--ink-faint);
  font-size: .58rem;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.tool-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  min-height: 270px;
  padding: clamp(26px,4vw,50px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0 0, rgba(212,170,82,.08), transparent 19rem),
    #101512;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.tool-card.wide {
  grid-column: 1 / -1;
}

.tool-monogram {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--line-strong);
  color: var(--gold-light);
  background: rgba(212,170,82,.04);
  font-family: var(--display);
  font-size: 2.4rem;
  transform: rotate(45deg);
}

.tool-monogram::first-letter {
  transform: rotate(-45deg);
}

.tool-card small {
  color: var(--gold);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tool-card h3 {
  margin: 3px 0 12px;
  font-family: var(--display);
  font-size: clamp(1.8rem,3vw,3rem);
  font-weight: 500;
}

.tool-card p {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
}

.roadmap-section {
  padding-block: clamp(58px, 7vw, 92px);
  border-block: 1px solid var(--line);
  background:
    linear-gradient(rgba(8,12,10,.94), rgba(8,12,10,.96)),
    url("assets/meadow-grass.webp") center / 800px;
}

.roadmap-heading {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: end;
  margin-bottom: 28px;
}

.roadmap-heading h2 {
  max-width: 900px;
  font-size: clamp(2.35rem,4vw,4.2rem);
}

.roadmap-count {
  flex: 0 0 auto;
  display: grid;
  padding-left: 22px;
  border-left: 1px solid var(--gold);
}

.roadmap-count span {
  color: var(--gold);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.roadmap-count strong {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 1rem;
}

.roadmap-count small {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: .56rem;
}

.roadmap-frame {
  padding: 26px 28px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(12,17,14,.9);
  box-shadow: var(--shadow);
}

.roadmap-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(11, minmax(82px, 1fr));
  gap: 0;
  min-width: 1020px;
}

.roadmap-track::before,
.roadmap-track::after {
  content: "";
  position: absolute;
  top: 23px;
  right: 4%;
  left: 4%;
  height: 3px;
}

.roadmap-track::before {
  background: #29322d;
}

.roadmap-track::after {
  right: auto;
  width: var(--road-progress, 27.6%);
  background: linear-gradient(90deg, var(--teal), var(--gold-light));
  box-shadow: 0 0 12px rgba(108,199,186,.34);
}

.road-node {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  padding: 0 5px;
  border: 0;
  color: var(--ink-faint);
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.road-orb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid #3d4842;
  border-radius: 50%;
  color: #8f9a91;
  background: #151d19;
  box-shadow: 0 0 0 5px rgba(12,17,14,.95);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.road-node.complete .road-orb {
  border-color: #a8eee1;
  color: #12302c;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(12,17,14,.95), 0 0 22px rgba(108,199,186,.25);
}

.road-node.active .road-orb {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: #1c211b;
  box-shadow: 0 0 0 5px rgba(12,17,14,.95), 0 0 24px rgba(212,170,82,.4);
  animation: active-road 2.2s ease-in-out infinite alternate;
}

@keyframes active-road {
  to { box-shadow: 0 0 0 5px rgba(12,17,14,.95), 0 0 33px rgba(212,170,82,.65); }
}

.road-node:hover .road-orb,
.road-node:focus-visible .road-orb,
.road-node.selected .road-orb {
  border-color: var(--gold-light);
  color: #16130d;
  background: var(--gold-light);
  transform: translateY(-4px);
  box-shadow: 0 0 0 5px rgba(12,17,14,.95), 0 0 30px rgba(212,170,82,.4);
}

.road-node strong {
  margin-top: 8px;
  color: #dce0d7;
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 500;
}

.road-node small {
  max-width: 95px;
  margin-top: 2px;
  color: #78827a;
  font-size: .5rem;
  line-height: 1.2;
}

.roadmap-track-scroll {
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-color: var(--gold) #121713;
}

.roadmap-detail {
  display: grid;
  grid-template-columns: 150px minmax(250px, .65fr) minmax(380px, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  padding: 17px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}

.roadmap-detail > span {
  color: var(--gold);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.roadmap-detail h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
}

.roadmap-detail p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .72rem;
}

.roadmap-help {
  margin: 12px 0 0;
  color: var(--ink-faint);
  font-size: .58rem;
  text-align: center;
}

.patch-modal {
  --patch-modal-top: clamp(18px, 6dvh, 64px);
  width: min(760px, calc(100% - 34px));
  max-height: calc(100dvh - var(--patch-modal-top) - 18px);
  margin: var(--patch-modal-top) auto 18px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(210, 174, 98, .5);
  border-radius: 3px;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(29, 34, 29, .97), rgba(8, 13, 11, .97));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .58),
    inset 0 0 0 3px rgba(9, 14, 12, .85),
    inset 0 0 0 4px rgba(210, 174, 98, .18);
  backdrop-filter: blur(20px);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.patch-modal::backdrop {
  background: rgba(2, 6, 5, .78);
  backdrop-filter: blur(7px);
}

.patch-modal[open] {
  display: flex;
  flex-direction: column;
  animation: patch-modal-enter 180ms ease-out;
}

@keyframes patch-modal-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }
}

.patch-window-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(210, 174, 98, .32);
  background: linear-gradient(180deg, rgba(81, 70, 43, .52), rgba(22, 27, 23, .88));
}

.patch-window-bar > div,
.patch-window-bar > div > span:last-child {
  display: flex;
  align-items: center;
}

.patch-window-bar > div > span:last-child {
  align-items: flex-start;
  flex-direction: column;
}

.patch-window-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: 11px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  background: #111713;
  font-family: var(--display);
  font-size: 1.25rem;
}

.patch-window-bar small {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: .48rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.patch-window-bar strong {
  margin-top: 1px;
  color: #fff6df;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
}

.patch-window-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(212, 170, 82, .3);
  color: var(--ink-soft);
  background: rgba(4, 8, 7, .45);
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.patch-window-close:hover,
.patch-window-close:focus-visible {
  border-color: var(--gold);
  color: var(--gold-light);
}

.patch-window-intro {
  flex: 0 0 auto;
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: #c7cec4;
  font-size: .68rem;
  line-height: 1.5;
}

.patch-notes-list {
  flex: 0 1 auto;
  display: grid;
  max-height: min(520px, calc(100dvh - var(--patch-modal-top) - 214px));
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: max-height 180ms ease;
  scrollbar-color: var(--gold) #111713;
}

.patch-notes-list:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: -3px;
}

.patch-modal-expanded .patch-notes-list {
  max-height: calc(100dvh - var(--patch-modal-top) - 214px);
}

.patch-note {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  column-gap: 15px;
  padding: 17px 18px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}

.patch-note:last-child {
  border-bottom: 0;
}

.patch-note:hover {
  background: rgba(212, 170, 82, .055);
}

.patch-note > div {
  grid-row: 1 / span 2;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: .48rem;
  letter-spacing: .05em;
  line-height: 1.35;
  text-transform: uppercase;
}

.patch-note > div span {
  display: inline-block;
  padding: 4px 6px;
  border: 1px solid rgba(212, 170, 82, .34);
  color: var(--gold-light);
  background: rgba(212, 170, 82, .08);
}

.patch-note h3 {
  margin: 0 0 6px;
  color: #fff4d8;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.1;
}

.patch-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .64rem;
  line-height: 1.5;
}

.patch-window-controls {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(210, 174, 98, .24);
  background: rgba(7, 12, 10, .84);
}

.patch-window-controls[hidden] {
  display: none;
}

.patch-notes-toggle {
  min-width: min(320px, 100%);
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid rgba(212, 170, 82, .38);
  color: var(--gold-light);
  background: rgba(212, 170, 82, .07);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.patch-notes-toggle:hover,
.patch-notes-toggle:focus-visible {
  border-color: var(--gold-light);
  color: #fff6df;
  background: rgba(212, 170, 82, .14);
}

.closing-section {
  position: relative;
  overflow: hidden;
}

.closing-grass {
  position: absolute;
  inset: 0;
  opacity: .24;
  background:
    linear-gradient(90deg, rgba(8,11,9,.95), rgba(8,11,9,.68), rgba(8,11,9,.9)),
    url("assets/meadow-grass.webp") center / 760px;
}

.closing-inner {
  position: relative;
  display: grid;
  grid-template-columns: .55fr 1.2fr;
  gap: clamp(50px,10vw,150px);
  align-items: center;
  min-height: 720px;
  padding-block: 90px;
}

.closing-logo {
  justify-self: center;
  width: min(330px, 80%);
  filter: drop-shadow(0 28px 50px rgba(0,0,0,.7));
}

.closing-copy {
  max-width: 820px;
}

.closing-copy h2 {
  font-size: clamp(2.7rem,5.3vw,5.8rem);
}

.closing-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--ink-soft);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 110px;
  padding: 24px clamp(22px,4vw,60px);
  border-top: 1px solid var(--line);
  background: #070a08;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer img {
  width: 44px;
  height: 44px;
}

.site-footer span {
  display: grid;
  line-height: 1.2;
}

.site-footer strong {
  font-family: var(--display);
  font-weight: 500;
}

.site-footer small,
.site-footer p,
.site-footer a {
  color: var(--ink-faint);
  font-size: .58rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer a {
  justify-self: end;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold-light);
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .phase-chip {
    display: none;
  }

  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 42px;
    place-content: center;
    justify-self: end;
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(8,12,10,.7);
    cursor: pointer;
  }

  .nav-toggle > span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav.open {
    position: absolute;
    top: 66px;
    right: 18px;
    display: grid;
    min-width: 220px;
    padding: 14px 20px;
    border: 1px solid var(--line-strong);
    background: rgba(8,12,10,.98);
    box-shadow: var(--shadow);
  }

  .hero-copy {
    top: 46%;
  }

  .field-note {
    grid-template-columns: 100px 220px 1fr;
  }

  .field-note-mark {
    font-size: 10rem;
  }

  .unit-panel {
    width: 275px;
  }

  .objective-panel {
    width: 240px;
  }

  .build-ribbon button {
    min-width: 86px;
  }

  .people-screen {
    grid-template-columns: repeat(2, 1fr);
  }

  .relationship-thread {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .addon-workbench {
    grid-template-columns: 1fr;
  }

  .addon-stage {
    min-height: 520px;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }
}

@media (max-width: 860px) {
  .section-shell {
    width: min(100% - 34px, 1280px);
  }

  .hero {
    min-height: 880px;
  }

  .hero-image {
    background-position: 60% center;
  }

  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(4,8,8,.94), rgba(4,8,8,.48) 78%, rgba(4,8,8,.58)),
      linear-gradient(180deg, rgba(3,6,5,.62), transparent 25%, rgba(5,8,6,.22) 62%, rgba(5,8,6,.94));
  }

  .hero-copy {
    top: 42%;
    left: 24px;
    width: calc(100% - 48px);
  }

  .hero h1 {
    font-size: clamp(3.4rem, 13vw, 6rem);
  }

  .hero-status {
    right: 24px;
    bottom: 54px;
    width: calc(100% - 48px);
  }

  .hero-coordinate {
    right: 24px;
    bottom: 18px;
  }

  .field-note {
    grid-template-columns: 90px 1fr;
  }

  .field-note-copy {
    grid-column: 1 / -1;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-strip > div:nth-child(2) {
    border-right: 0;
  }

  .proof-strip > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading,
  .gameplay-heading,
  .decision-section,
  .control-inner,
  .breadth-content,
  .closing-inner {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .gameplay-heading {
    gap: 28px;
  }

  .ledger-entry {
    grid-template-columns: 48px 1fr;
  }

  .ledger-state {
    grid-column: 2;
    justify-self: start;
  }

  .game-shell-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-ribbon {
    justify-content: flex-start;
  }

  .game-tabs {
    overflow-x: auto;
  }

  .game-view,
  .settlement-screen,
  .people-screen,
  .map-screen,
  .economy-screen {
    min-height: 820px;
  }

  .objective-panel {
    top: 14px;
    left: 14px;
    width: 220px;
  }

  .unit-panel {
    top: 14px;
    right: 14px;
    width: 260px;
  }

  .build-ribbon {
    right: 12px;
    left: 12px;
    overflow-x: auto;
    transform: none;
  }

  .build-ribbon button {
    flex: 0 0 92px;
  }

  .people-screen {
    grid-template-columns: 1fr;
  }

  .relationship-thread {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .economy-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-board {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .flow-arrow {
    justify-self: center;
    width: 1px;
    height: 22px;
  }

  .flow-arrow::after {
    top: auto;
    right: -4px;
    bottom: 0;
    border-width: 6px 4px 0;
    border-color: var(--gold) transparent transparent;
  }

  .economy-ledgers {
    grid-template-columns: 1fr;
  }

  .breadth-content {
    align-content: center;
    gap: 40px;
    padding-block: 90px;
  }

  .map-callout {
    justify-self: start;
    align-self: auto;
    margin: 0;
  }

  .workshop-grid {
    grid-template-columns: 1fr;
  }

  .tool-card.wide {
    grid-column: auto;
  }

  .roadmap-heading {
    align-items: start;
    flex-direction: column;
  }

  .roadmap-count {
    margin-top: 10px;
  }

  .roadmap-detail {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .roadmap-help {
    text-align: left;
  }

  .closing-inner {
    text-align: center;
  }

  .closing-copy {
    margin-inline: auto;
  }

  .closing-copy p:not(.eyebrow) {
    margin-inline: auto;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 66px;
    padding-inline: 14px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-copy {
    top: 39%;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .hero-lede {
    font-size: .95rem;
  }

  .patch-note {
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 10px;
    padding-inline: 14px;
  }

  .hero-coordinate span:last-child {
    display: none;
  }

  .field-note {
    grid-template-columns: 1fr;
  }

  .field-note-mark {
    position: absolute;
    top: 70px;
    right: 0;
    opacity: .6;
  }

  .field-note-aside,
  .field-note-copy {
    grid-column: auto;
  }

  .two-column-copy {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip > div {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ledger-entry {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .game-shell {
    width: calc(100% - 12px);
  }

  .shell-brand span {
    font-size: .72rem;
  }

  .game-view,
  .settlement-screen {
    min-height: 980px;
  }

  .objective-panel {
    right: 12px;
    left: 12px;
    width: auto;
  }

  .unit-panel {
    top: 370px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .world-marker,
  .selection-ring {
    display: none;
  }

  .people-screen {
    padding: 20px;
  }

  .person-card {
    grid-template-columns: 105px 1fr;
    min-height: 290px;
    padding-inline: 10px;
  }

  .person-card img {
    max-height: 250px;
  }

  .map-screen {
    min-height: 860px;
  }

  .map-screen > img {
    object-position: 40% center;
  }

  .expedition-panel {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .map-pin {
    transform: scale(.8);
  }

  .pin-home { top: 37%; left: 20%; }
  .pin-mine { top: 20%; left: 4%; }
  .pin-ruin { right: 2%; bottom: 48%; }

  .economy-screen {
    padding: 20px;
  }

  .economy-summary {
    grid-template-columns: 1fr 1fr;
  }

  .decision-section {
    padding-inline: 0;
  }

  .addon-stage {
    min-height: 590px;
  }

  .resource-addon {
    width: 190px;
  }

  .watch-addon {
    --x: calc(100% - 182px) !important;
    --y: 19% !important;
    width: 170px;
  }

  .household-addon {
    --x: 9% !important;
    width: 240px;
  }

  .code-card pre {
    font-size: .62rem;
  }

  .breadth-section,
  .breadth-content {
    min-height: 960px;
  }

  .breadth-overlay {
    background:
      linear-gradient(180deg, rgba(6,9,7,.95) 0%, rgba(6,9,7,.78) 55%, rgba(6,9,7,.4) 100%);
  }

  .breadth-copy ul {
    grid-template-columns: 1fr;
  }

  .tool-card {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 24px 18px;
  }

  .tool-monogram {
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
  }

  .roadmap-frame {
    padding-inline: 16px;
  }

  .closing-logo {
    width: 210px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer a {
    justify-self: start;
  }

  .site-footer p {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
