:root {
  --ink: #0f130f;
  --felt: #12301f;
  --felt-deep: #0b1f14;
  --bone: #efe7d6;
  --paper: #f5efe2;
  --paper-2: #ebe2cf;
  --oxblood: #8c2a1e;
  --oxblood-ink: #6e1f16;
  --brass: #b48c4f;
  --muted: #8d9387;
  --rule: rgba(239, 231, 214, 0.18);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 56px);
}
.wordmark { font: italic 600 26px/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; }
.wordmark span { color: var(--oxblood); font-style: normal; }
.nav ul { display: flex; gap: clamp(14px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav a.l { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; opacity: 0.85; }
.nav a.l:hover { opacity: 1; color: var(--paper); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(11, 15, 11, 0) 35%, rgba(11, 15, 11, 0.72) 100%),
    linear-gradient(180deg, rgba(11, 15, 11, 0.55) 0%, rgba(11, 15, 11, 0) 28%, rgba(11, 15, 11, 0.86) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 0 clamp(16px, 4vw, 56px) clamp(48px, 9vh, 110px); max-width: 1180px; }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.hero h1 {
  font: 500 clamp(44px, 7.4vw, 104px)/0.98 var(--serif); letter-spacing: -0.025em;
  margin: 18px 0 22px; max-width: 13ch;
}
.hero h1 em { color: #e9c9a0; }
.hero p.lede { font-size: clamp(17px, 1.6vw, 21px); max-width: 52ch; color: #e6ddc9; margin: 0 0 32px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px;
  font: 600 13px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--bone);
}
.btn.solid { background: var(--oxblood); border-color: var(--oxblood); color: var(--paper); }
.btn.solid:hover { background: var(--oxblood-ink); }
.btn.ghost:hover { background: rgba(239, 231, 214, 0.08); }

/* ---------- ledger strip ---------- */
.strip { background: var(--felt-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip .cell { padding: 30px clamp(16px, 3vw, 40px); border-right: 1px solid var(--rule); }
.strip .cell:last-child { border-right: 0; }
.strip .num { font: 500 clamp(30px, 3.6vw, 46px)/1 var(--serif); color: var(--paper); }
.strip .lab { font: 400 13px/1.45 var(--mono); color: var(--muted); margin-top: 10px; letter-spacing: 0.02em; }

/* ---------- generic sections ---------- */
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }
section { position: relative; }
.paper { background: var(--paper); color: var(--ink); }
.paper .eyebrow { color: var(--oxblood); }
h2 { font: 500 clamp(34px, 4.4vw, 60px)/1.04 var(--serif); letter-spacing: -0.02em; margin: 14px 0 22px; }
h3 { font: 600 clamp(22px, 2vw, 28px)/1.2 var(--serif); margin: 10px 0 12px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(72px, 10vw, 140px); }
.split.rev { grid-template-columns: 1fr 1.05fr; }
.split.rev .media { order: 2; }
.media { position: relative; }
.media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.tag {
  position: absolute; left: 14px; top: 14px; background: var(--paper); color: var(--ink);
  font: 600 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 10px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.tag.red { background: var(--oxblood); color: var(--paper); }
.caption { font: 400 12px/1.5 var(--mono); color: #6f7569; margin-top: 10px; }
.prose p { margin: 0 0 16px; max-width: 58ch; }
.prose p.big { font: 400 clamp(19px, 1.7vw, 23px)/1.5 var(--serif); }
.src { font: 400 12px/1.5 var(--mono); color: #6f7569; }
.src a { color: var(--oxblood); }

/* ---------- method exhibits ---------- */
.method { background: var(--paper-2); color: var(--ink); padding: clamp(72px, 10vw, 140px) 0; }
.method .head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.method .eyebrow { color: var(--oxblood); }
.exhibits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.exhibit { background: var(--paper); border: 1px solid #d8ccb3; }
.exhibit img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.exhibit .body { padding: 22px 22px 26px; }
.exhibit .n { font: 600 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--oxblood); }
.exhibit p { margin: 0; font-size: 16px; }

/* ---------- proof ---------- */
.proof { background: var(--felt) url("felt-1600.webp") center / cover; padding: clamp(80px, 11vw, 150px) 0; }
.proof::before { content: ""; position: absolute; inset: 0; background: rgba(8, 20, 13, 0.58); }
.proof .wrap { position: relative; }
.proof-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.board { background: var(--paper); color: var(--ink); padding: 28px clamp(18px, 3vw, 34px) 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.board h4 { font: 600 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--oxblood); margin: 0 0 18px; }
.board table { width: 100%; border-collapse: collapse; font: 400 15px/1.3 var(--mono); }
.board td { padding: 11px 0; border-bottom: 1px solid #ddd2bb; }
.board td:last-child { text-align: right; font-weight: 600; }
.board tr.us td { color: var(--oxblood); }
.board tr.mark td { font-style: italic; color: #565b51; }
.board .note { font: 400 12px/1.55 var(--mono); color: #5e6358; margin-top: 16px; }
.chart { margin-top: 26px; }
.chart svg { width: 100%; height: auto; display: block; }

/* ---------- deliverables ---------- */
.deliver ul { list-style: none; padding: 0; margin: 22px 0 0; }
.deliver li { padding: 16px 0 16px 34px; border-top: 1px solid #d5c9b0; position: relative; }
.deliver li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 12px; height: 12px; border: 2px solid var(--oxblood); transform: rotate(45deg); }
.deliver li strong { font-family: var(--serif); font-size: 19px; font-weight: 600; display: block; margin-bottom: 2px; }

/* ---------- markets band ---------- */
.band { position: relative; min-height: 78vh; display: grid; align-items: center; overflow: hidden; }
.band picture, .band picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 15, 11, 0.9) 0%, rgba(11, 15, 11, 0.62) 46%, rgba(11, 15, 11, 0.1) 100%); }
.band .wrap { position: relative; z-index: 2; width: 100%; }
.band .prose { max-width: 560px; }
.band p { color: #e3d9c4; }

/* ---------- pilot ---------- */
.pilot { padding: clamp(80px, 11vw, 150px) 0; }
.pilot-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.pilot-grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.steps { counter-reset: s; margin: 26px 0 34px; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; gap: 6px; padding: 18px 0; border-top: 1px solid #d5c9b0; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 26px/1 var(--serif); color: var(--oxblood); }
form.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
form.contact label { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #5b6056; display: grid; gap: 7px; }
form.contact .full { grid-column: 1 / -1; }
form.contact input, form.contact textarea {
  font: 400 16px/1.4 var(--sans); padding: 13px 14px; border: 1px solid #c9bb9d;
  background: #fbf8f1; color: var(--ink); border-radius: 0;
}
form.contact textarea { min-height: 120px; resize: vertical; }
form.contact .hp { position: absolute; left: -9999px; }
form.contact button { justify-self: start; cursor: pointer; }
.form-msg { font: 400 13px/1.4 var(--mono); grid-column: 1 / -1; min-height: 1.4em; color: var(--oxblood); }

/* ---------- footer ---------- */
footer { background: var(--felt-deep); padding: 46px 0; border-top: 1px solid var(--rule); font: 400 13px/1.6 var(--mono); color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--bone); }

/* ---------- write-up page ---------- */
.article-hero { position: relative; min-height: 64vh; display: grid; align-items: end; overflow: hidden; }
.article-hero picture, .article-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 15, 11, 0.5), rgba(11, 15, 11, 0.9)); }
.article-hero .wrap { position: relative; z-index: 2; padding-bottom: 56px; }
.article-hero h1 { font: 500 clamp(38px, 5.6vw, 76px)/1.02 var(--serif); letter-spacing: -0.02em; margin: 14px 0 0; max-width: 18ch; }
.article { background: var(--paper); color: var(--ink); padding: clamp(56px, 8vw, 110px) 0; }
.article .col { max-width: 720px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 0px); }
.article h2 { font-size: clamp(28px, 3.2vw, 40px); margin-top: 56px; }
.article p, .article li { font: 400 19px/1.65 var(--serif); }
.article .meta { font: 400 13px/1.5 var(--mono); color: #5d6257; }
.article figure { margin: 40px 0; }
.article figure img { width: 100%; }
.article figcaption { font: 400 12px/1.5 var(--mono); color: #6b7065; margin-top: 10px; }
.article table { width: 100%; border-collapse: collapse; font: 400 14px/1.35 var(--mono); margin: 22px 0; }
.article th, .article td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #d9cdb4; }
.article th { font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--oxblood); }
.article td.r, .article th.r { text-align: right; }
.article .callout { border-left: 3px solid var(--oxblood); padding: 6px 0 6px 20px; margin: 28px 0; font-style: italic; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split, .split.rev, .proof-grid, .pilot-grid { grid-template-columns: 1fr; }
  .split.rev .media { order: 0; }
  .exhibits { grid-template-columns: 1fr; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip .cell { border-right: 0; border-bottom: 1px solid var(--rule); }
  .nav ul { display: none; }
  form.contact { grid-template-columns: 1fr; }
  .pilot-grid img { aspect-ratio: 3 / 2; }
}
