@font-face {
  font-family: Geist;
  src: url("assets/geist-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f7f1;
  --ink: #171d19;
  --muted: #4e5c51;
  --line: #cdd6cc;
  --mist: #e9f1eb;
  --green: #205743;
  --night: #152b24;
  --lime: #caedb2;
  --mono: "Courier Prime", "Courier New", monospace;
  --padding: clamp(20px, 5vw, 72px);
  --section: clamp(62px, 8.4vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.58 Geist, "Segoe UI", sans-serif;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid #2e8b66;
  outline-offset: 5px;
}
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3, h4 { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
[id] { scroll-margin-top: 30px; }
.shell { width: min(100% - var(--padding) * 2, 1376px); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 2;
  inset: 10px auto auto 10px;
  padding: 9px 14px;
  color: white;
  background: var(--night);
  translate: 0 -160%;
}
.skip-link:focus { translate: 0; }

.site-header { border-bottom: 1px solid var(--line); }
.masthead {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.masthead a, .site-footer a { text-decoration: none; }
.masthead a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-brand { font-weight: 650; }
.site-brand span { padding-right: 5px; }
.masthead-links {
  display: flex;
  gap: clamp(15px, 2.8vw, 38px);
  color: var(--muted);
  font-size: .9rem;
}
.header-play {
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 650;
  color: var(--green);
}
.header-play span { padding-left: 3px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 76px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 106px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font: 500 .76rem/1.45 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.signal {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: currentColor;
}
h1, h2, h3, h4 { font-weight: 610; line-height: 1.03; letter-spacing: -.058em; }
h1 { font-size: clamp(47px, 6.2vw, 107px); margin-top: 17px; }
.hero-lede {
  margin-block: 24px 12px;
  max-width: 38ch;
  color: var(--muted);
  font-size: clamp(17px, 1.65vw, 22px);
  line-height: 1.49;
}
.byline { font-size: .86rem; font-weight: 520; }
.byline span { margin-inline: 4px; color: var(--green); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: fit-content;
  min-height: 50px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 5px;
  text-decoration: none;
  font-size: .92rem;
  line-height: 1.25;
  font-weight: 650;
}
.hero .button { margin-top: 24px; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #2b5545; }
.button-outline { border-color: #71877a; }
.button-outline:hover { background: #f7faf4; }
.hero-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #eef1e7;
  box-shadow: 0 24px 52px -31px #23443150;
}
.hero-frame a, .world-frame a, .evidence a { display: block; }
[data-enlarge] { cursor: zoom-in; }
.hero-frame a:focus-visible { outline-offset: -5px; }
.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 49% 50%;
  background: #dce7d7;
}
.hero-frame figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  font-size: .83rem;
  font-weight: 570;
}
.figure-label {
  font: 500 .72rem/1.4 var(--mono);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .06em;
}

h2 { font-size: clamp(39px, 5vw, 78px); text-wrap: balance; }
h3 { font-size: clamp(28px, 3.25vw, 49px); }
h4 { font-size: clamp(23px, 2.3vw, 34px); margin-block: 8px 14px; }
.section { padding-block: var(--section); }
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .75fr);
  gap: 25px clamp(28px, 7vw, 105px);
  align-items: end;
  margin-bottom: clamp(26px, 3.9vw, 55px);
}
.section-intro h2 { margin-top: 12px; }
.section-intro > p {
  color: var(--muted);
  font-size: clamp(16px, 1.47vw, 20px);
  max-width: 43ch;
}
.concepts-band {
  background: var(--mist);
  border-block: 1px solid var(--line);
  padding-block: var(--section);
}
.world-board {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid #b8cbbd;
  border-radius: 15px;
  padding: 12px;
  gap: 12px;
}
.world-frame {
  overflow: hidden;
  border-radius: 6px;
  align-self: start;
  background: #c8d7cc;
}
.world-frame a:focus-visible { outline-offset: -5px; }
.world-frame img { width: 100%; aspect-ratio: 1672 / 941; }
.world-note {
  align-self: center;
  padding: 20px clamp(10px, 2vw, 30px);
}
.world-note h3 { margin-block: 9px 16px; overflow-wrap: anywhere; }
.world-note > p:last-child { color: var(--muted); }
.world-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.world-option {
  display: block;
  height: 100%;
  text-decoration: none;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: #293b30;
  background: #f3f6f1;
}
.world-option:hover { border-color: #4b7e65; }
.world-option[aria-current="true"] {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
.world-option img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.world-option span {
  display: block;
  padding: 7px 9px;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.25;
}

.build-pair, .hud-pair, .tuning-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 28px);
}
.evidence { min-width: 0; }
.evidence a {
  width: 100%;
  overflow: hidden;
  border-radius: 7px;
  background: #dce6db;
}
.evidence a:focus-visible { outline-offset: -5px; }
.evidence img { width: 100%; }
.evidence figcaption {
  padding-block: 9px 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}
.evidence figcaption strong { display: block; color: var(--ink); font-weight: 650; }
.build-pair img, .hud-pair img { aspect-ratio: 16 / 9; object-fit: cover; }
.inline-route { color: var(--muted); margin-top: 24px; }
.inline-route a { color: var(--green); font-weight: 620; text-underline-offset: 4px; }

.workflow-band {
  color: #eef6ed;
  background:
    radial-gradient(ellipse at 80% 0, #2e5242 0%, transparent 62%),
    var(--night);
  padding-block: var(--section);
}
.workflow {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
}
.workflow .eyebrow { color: var(--lime); }
.workflow-intro h2 { margin-block: 13px 22px; }
.workflow-intro > p:not(.eyebrow) { max-width: 49ch; color: #e0ebe0; margin-top: 15px; }
.flow {
  display: grid;
  position: relative;
  gap: 20px;
  isolation: isolate;
}
.flow-cap {
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline: 10%;
  padding: 14px 16px;
  background: #dbeed4;
  border-radius: 7px;
  color: var(--night);
}
.flow-cap div, .flow-tracks li { display: grid; gap: 1px; }
.flow-cap div span, .flow-tracks span { font-size: .79rem; }
.flow-dot { width: 10px; height: 10px; border-radius: 50%; background: #276b4d; flex: 0 0 auto; }
.flow-tracks {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.flow-tracks::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(-20px - 7px);
  bottom: calc(-20px - 7px);
  inset-inline: 12%;
  background: repeating-linear-gradient(90deg, #8fb7a342 0 1px, transparent 1px 33.3%);
}
.flow-tracks li {
  justify-items: center;
  text-align: center;
  min-width: 0;
  padding: 12px 5px;
  border-radius: 5px;
  border: 1px solid #749986;
  background: #29483c;
}
.flow-tracks strong { font-size: .87rem; }
.flow-tracks span { color: #d9e6dc; }
.flow-feedback {
  text-align: center;
  color: #d6e8da;
  font-size: .88rem;
}
.flow-feedback span { font-size: 1.2em; margin-right: 4px; color: var(--lime); }

.playtest .section-intro { margin-bottom: 30px; }
.case {
  border-top: 1px solid var(--line);
  padding-block: clamp(30px, 4.3vw, 64px);
}
.case:last-child { padding-bottom: 0; }
.case-heading { margin-bottom: 24px; }
.case-heading h3 { margin-bottom: 12px; }
.case-heading p { color: var(--muted); max-width: 70ch; }
.case-heading p + p { margin-top: .8rem; }
.case-hud > .case-heading {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 12px clamp(25px, 5vw, 70px);
  align-items: start;
}
.hud-studies { margin-top: 23px; }
.hud-studies summary {
  width: fit-content;
  cursor: pointer;
  font-size: .94rem;
  font-weight: 620;
  color: var(--green);
  padding-block: 6px;
}
.hud-variants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 13px;
}
.hud-variants a {
  display: grid;
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #293931;
}
.case-skills {
  display: grid;
  grid-template-columns: minmax(0, .67fr) minmax(0, 1fr);
  gap: 18px clamp(25px, 5vw, 78px);
  align-items: center;
}
.case-skills .case-heading { margin-bottom: 0; }
.case-tuning .case-heading p { max-width: 74ch; }
.tuning-workbench {
  display: grid;
  grid-template-columns: minmax(0, .28fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 60px);
  align-items: end;
  padding: clamp(14px, 3vw, 34px);
  border: 1px solid #b9cdbd;
  border-radius: 10px;
  background: #ebf2ea;
}
.tuning-panel { max-width: 260px; }
.tuning-comparison p:not(.eyebrow) { color: var(--muted); margin-bottom: 12px; }
.tuning-comparison .evidence figcaption strong { font-variant-numeric: tabular-nums; }

.closing-band { background: #dcebdd; border-block: 1px solid #bdcec0; }
.closing {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 82px);
  padding-block: clamp(42px, 6vw, 92px);
}
.closing h2 { margin-block: 13px 16px; }
.closing p:not(.eyebrow) { color: var(--muted); max-width: 41ch; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.site-footer, .site-footer div, .site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 19px;
}
.site-footer { justify-content: space-between; padding-block: 22px; font-size: .86rem; }
.site-footer a { font-weight: 590; }
.site-footer span { color: var(--muted); }

dialog {
  border: 1px solid #5b7769;
  border-radius: 10px;
  padding: 44px 12px 12px;
  width: max-content;
  max-width: min(96vw, 1400px);
  max-height: 93vh;
  color: #fff;
  background: #14241d;
}
dialog::backdrop { background: #0a1711dd; }
dialog img {
  max-width: 100%;
  max-height: calc(92vh - 57px);
  object-fit: contain;
}
.dialog-close {
  position: absolute;
  top: 6px;
  right: 7px;
  padding: 5px 10px;
  border: 1px solid #5b7769;
  border-radius: 4px;
  font: 580 .9rem/1.4 Geist, sans-serif;
  background: #e9f2e6;
  color: #14241d;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .hero-frame img { aspect-ratio: 6 / 5; }
  .world-board { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
  .flow-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-tracks::before { background: linear-gradient(90deg, transparent calc(50% - .5px), #8fb7a360 50%, transparent calc(50% + .5px)); }
}
@media (max-width: 730px) {
  .hero, .section-intro, .workflow, .case-skills, .closing, .case-hud > .case-heading {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero { gap: 28px; }
  .hero-frame img { aspect-ratio: 16 / 9; }
  .desktop-break { display: none; }
  h1 { max-width: 12ch; font-size: clamp(48px, 11.5vw, 80px); }
  .masthead { min-height: 0; flex-wrap: wrap; gap: 9px 12px; padding-block: 13px; }
  .masthead-links { order: 1; flex-basis: 100%; flex-wrap: wrap; row-gap: 6px; }
  .section-intro { gap: 16px; }
  .world-board { grid-template-columns: minmax(0, 1fr); }
  .world-note { padding: 8px 6px; }
  .world-note h3 { margin-bottom: 7px; }
  .world-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .world-option span { padding: 6px 5px; font-size: .72rem; }
  .flow-tracks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tuning-workbench { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .tuning-panel { max-width: 225px; }
}
@media (max-width: 470px) {
  .world-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .build-pair, .hud-pair, .hud-variants { grid-template-columns: minmax(0, 1fr); }
  .hud-variants { gap: 18px; }
  .flow-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-cap { margin-inline: 3%; padding: 12px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
