:root {
  --ink: #171a17;
  --paper: #f3f1eb;
  --surface: #fffdf8;
  --muted: #676b65;
  --rule: rgba(23, 26, 23, 0.18);
  --green: #187a36;
  --phosphor: #32ed55;
  --orange: #b9482f;
  --max: 1180px;
}

* { box-sizing: border-box; }
/* Not smooth. A smooth-behaviour fragment jump was a silent no-op on these
   pages — clicking the hero's "Read the case study" moved 0px, while the same
   jump under `auto` moves the full 1207px. scroll-behavior only governs
   programmatic and fragment scrolling, so a reader's own wheel and keyboard
   scrolling is unaffected by this either way. */
html { scroll-behavior: auto; }
/* The site header is sticky and 71px tall, so a fragment target landing at its
   own offsetTop sits underneath it. 96px clears the header and leaves air. */
main[id], main [id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 14, 11, 0.96);
  color: #f5f5ee;
  border-bottom: 1px solid rgba(50, 237, 85, 0.3);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 70px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.brand small, .site-nav a, .eyebrow, dt, .status-label, .section-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand small { color: var(--phosphor); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 12px 11px;
  color: #d4d8d1;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--phosphor); }

main { overflow: hidden; }
.hero, .section, .project-grid, .footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}
.hero {
  padding: clamp(64px, 10vw, 108px) 0 clamp(64px, 9vw, 108px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(44px, 7vw, 108px);
  align-items: center;
}
.hero--single { grid-template-columns: 1fr; max-width: 930px; margin-left: max(20px, calc((100vw - var(--max)) / 2)); }
.eyebrow, .section-index { color: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 12ch;
  margin-bottom: 32px;
  font-size: clamp(56px, 9.2vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}
.hero--single h1 { max-width: 14ch; }
.lede {
  max-width: 63ch;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.hero-media {
  justify-self: end;
  width: min(100%, 440px);
  padding: 18px;
  background: #111511;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(20, 23, 20, 0.2);
}
.hero-media img { width: 100%; max-height: 620px; object-fit: contain; border-radius: 16px; }
.hero-media--portrait img { aspect-ratio: 0.716; object-fit: cover; object-position: center top; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 700;
}
.button--quiet { background: transparent; color: var(--ink); }
.button:hover { background: var(--green); border-color: var(--green); color: white; }

.facts {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto clamp(64px, 9vw, 108px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.facts div { padding: 22px; background: var(--surface); }
dt { margin-bottom: 8px; color: var(--orange); }
dd { margin: 0; font-weight: 650; line-height: 1.4; }

.status-note {
  max-width: 760px;
  margin: 24px 0 0;
  padding: 16px 24px;
  border-left: 4px solid var(--orange);
  background: rgba(185, 72, 47, 0.08);
  color: #4d4c47;
}
.status-label { display: block; margin-bottom: 4px; color: var(--orange); }

.section {
  padding: clamp(64px, 9vw, 108px) 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(264px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(32px, 7vw, 108px);
}
/* One section per screen, with a sliver of the next showing. min-height is a
   floor, so it is self-selecting: sections already taller than 90svh are
   untouched and only the short ones get lifted. svh rather than dvh - a floor
   that changed as mobile chrome hides would reflow the page mid-scroll.
   Gated to the two-column layout: below the breakpoint sections stack and are
   naturally taller than the floor, and the ones that are not (About's short
   closers) would stretch a lone heading across a near-empty phone screen. */
@media (min-width: 801px) {
  .section {
    min-height: 90svh;
    align-content: center;
  }
}
.section-copy { max-width: 760px; }
.section h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.section h3 {
  margin-bottom: 8px;
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.section p, .section li { color: #4f534e; }
.section strong { color: var(--ink); }
.section ul, .section ol { padding-left: 1.25em; }
.section li + li { margin-top: 12px; }
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.card {
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--rule);
}
.card p:last-child { margin-bottom: 0; }
/* The metric under a measure: how the question above it would actually be
   counted. Mono and quiet so the question stays the thing you read first. */
.card-metric {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.card ul { margin: 0; padding-left: 1.1em; }
.card li + li { margin-top: 8px; }
.timeline-card > h3:not(:first-child) { margin-top: 30px; }

.timeline-story {
  margin-top: 22px;
  border-block: 1px solid var(--rule);
}
.timeline-story summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.timeline-story summary::-webkit-details-marker { display: none; }
.timeline-story summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.timeline-story-mark { flex: 0 0 auto; color: var(--orange); font-size: 24px; line-height: 1; transition: transform 180ms ease; }
.timeline-story[open] .timeline-story-mark { transform: rotate(45deg); }
.timeline-story-body { padding: 8px 0 30px; }
.confidential-note {
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  background: rgba(185, 72, 47, 0.08);
}
.story-grid, .story-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.story-grid { margin-top: 30px; }
.story-grid h4, .story-range h4 { margin: 7px 0; font-size: 20px; line-height: 1.25; }
.story-kicker {
  margin-bottom: 0;
  color: var(--green) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.story-range { margin-top: 30px; grid-template-columns: minmax(0, 1fr); gap: 0; }
.story-range article {
  padding: 20px 0;
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  border-top: 1px solid var(--rule);
}
.story-range h4, .story-range p { margin: 0; }
.story-range p, .story-grid p, .story-boundary { font-size: 15px; line-height: 1.58; }
.story-range p { color: var(--ink); }
.story-boundary { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); }

.media-row {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.media-row figure { margin: 0; padding: 16px; background: var(--surface); border: 1px solid var(--rule); }
.media-row img { width: 100%; max-height: 610px; object-fit: contain; background: #e8e7e1; }
figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }

.goals { list-style: none; padding: 0 !important; counter-reset: goals; }
.goals li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.goals b, .goals em { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.goals em { color: var(--orange); font-size: 12px; text-transform: uppercase; font-style: normal; }

.project-grid {
  padding: 0 0 clamp(80px, 10vw, 130px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.project-card { overflow: hidden; background: var(--surface); border: 1px solid var(--rule); }
.project-card img { width: 100%; height: 330px; object-fit: cover; object-position: center top; background: #111; }
.project-card-copy { padding: 26px; }
.project-card h2 { margin-bottom: 10px; font-size: 36px; letter-spacing: -0.04em; }
.project-card p { color: var(--muted); }

.site-footer { background: #0b0e0b; color: #e9ece6; }
.footer-inner {
  padding: 64px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.footer-inner h2 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 48px); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--phosphor); }

@media (max-width: 800px) {
  body { font-size: 16px; }
  .header-inner { min-height: auto; padding: 14px 0; align-items: flex-start; }
  .brand { flex-direction: column; gap: 0; }
  .brand small { font-size: 9px; }
  .site-nav { max-width: 65%; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a { padding: 7px; font-size: 10px; }
  .hero, .section { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .hero-media { justify-self: start; width: min(100%, 380px); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { gap: 16px; }
  .split, .media-row, .project-grid, .story-grid, .story-range { grid-template-columns: 1fr; }
  .story-range article { grid-template-columns: 1fr; gap: 6px; }
  .project-card img { height: 280px; }
  .goals li { grid-template-columns: 40px minmax(0, 1fr); }
  .goals em { grid-column: 2; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  /* scroll-behavior is already auto above, so there is nothing to unwind here. */
  .timeline-story-mark { transition: none; }
}
