@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
}

@font-face {
  font-family: "Courier Prime";
  src: url("assets/fonts/courier-prime-400-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: optional;
}

@font-face {
  font-family: "Courier Prime";
  src: url("assets/fonts/courier-prime-700-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: optional;
}

:root {
  --cream: #e5dcc8;
  --cream-copy: rgba(229, 220, 200, 0.78);
  --cream-muted: rgba(229, 220, 200, 0.6);
  --line: rgba(229, 220, 200, 0.14);
  --line-strong: rgba(229, 220, 200, 0.28);
  --darker: #1a1518;
  --dark: #2d2427;
  --forest: #1e342a;
  --forest-light: #315844;
  --amber: #c87d18;
  --green: #6faf82;
  --crimson: #4e0416;
  --max: 1120px;
  --content: 760px;
  --header-height: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

.legacy-fragment-anchor {
  display: block;
  width: 1px;
  height: 1px;
  margin-bottom: -1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  scroll-margin-top: calc(var(--header-height) + 22px);
}

body {
  min-width: 0;
  margin: 0;
  color: var(--cream);
  background: var(--darker);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -20;
  pointer-events: none;
  background-image: radial-gradient(rgba(229, 220, 200, 0.035) 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  opacity: 0.45;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Author-level layout rules must never override HTML's hidden state. */
[hidden] {
  display: none !important;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

::selection {
  color: var(--darker);
  background: var(--amber);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 12px 16px;
  color: var(--darker);
  background: var(--cream);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 150ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.preview-flag {
  position: absolute;
  top: calc(var(--header-height) + 14px);
  right: 14px;
  bottom: auto;
  z-index: 1000;
  max-width: calc(100% - 28px);
  padding: 9px 12px;
  color: var(--cream);
  background: rgba(26, 21, 24, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.44);
  font: 700 10px/1 "Courier Prime", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(26, 21, 24, 0.91);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-shell {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 43px;
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-sub {
  margin-top: 3px;
  color: var(--amber);
  font: 400 8px/1 "Courier Prime", monospace;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  flex: 0 0 44px;
  padding: 0;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  width: 18px;
  height: 1px;
  display: block;
  background: currentColor;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--cream-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 150ms ease, background-color 150ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cream);
  background: rgba(229, 220, 200, 0.055);
}

.inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.narrow {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(84px, 10vw, 132px);
}

.section-label,
.kicker,
.stage,
.field-note,
.chapter-number {
  color: var(--amber);
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-label,
.kicker {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.4;
}

.stage {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 12px;
  line-height: 1.4;
}

.stage::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.access-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 22px;
}

.access-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  color: var(--cream);
  background: rgba(229, 220, 200, 0.055);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: 700 12px/1.25 "Courier Prime", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.access-tag.is-free {
  color: #bde0c7;
  background: rgba(111, 175, 130, 0.12);
  border-color: rgba(111, 175, 130, 0.56);
}

.access-tag.is-paid {
  color: #f1c078;
  background: rgba(198, 123, 22, 0.13);
  border-color: rgba(198, 123, 22, 0.62);
}

.access-tag.is-prototype {
  color: var(--cream-copy);
  border-style: dashed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  color: var(--cream);
  background: var(--forest);
  border-color: rgba(229, 220, 200, 0.14);
}

.btn-primary:hover {
  color: #fff;
  background: var(--forest-light);
  border-color: rgba(229, 220, 200, 0.32);
}

.btn-secondary {
  color: var(--cream);
  background: rgba(26, 21, 24, 0.48);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: rgba(229, 220, 200, 0.08);
  border-color: var(--cream);
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 150ms ease, border-color 150ms ease;
}

.text-link:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  padding: clamp(88px, 12vw, 150px) 24px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.slides,
.slide,
.slides::after {
  position: absolute;
  inset: 0;
}

.slides { z-index: -2; }

.slide {
  opacity: 0;
  background-position: center 45%;
  background-size: cover;
  z-index: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide.outgoing {
  opacity: 1;
  z-index: 1;
}

.slide-a {
  background-image: radial-gradient(ellipse 80% 60% at 30% 50%, rgba(30, 52, 42, 0.88), rgba(15, 21, 18, 0.36) 70%), url("assets/species-red-panda-768.webp");
}

.slide-b {
  background-image: radial-gradient(ellipse 65% 80% at 50% 30%, rgba(20, 40, 30, 0.82), rgba(13, 26, 20, 0.28) 70%), url("assets/species-barred-owl-768.webp");
  background-position: center 60%;
}

.slide-c {
  background-image: radial-gradient(ellipse 70% 70% at 60% 50%, rgba(45, 18, 20, 0.83), rgba(21, 13, 16, 0.28) 70%), url("assets/species-bengal-tiger-768.webp");
}

.slides::after {
  content: "";
  z-index: 3;
  background: linear-gradient(to bottom, rgba(26, 21, 24, 0.55), rgba(26, 21, 24, 0.44) 38%, rgba(26, 21, 24, 0.75) 78%, var(--darker));
}

.hero-content {
  width: min(920px, 100%);
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 24px;
  font-size: clamp(46px, 7vw, 96px);
}

.hero h1 em {
  color: var(--amber);
  font-style: normal;
}

.hero-copy {
  max-width: 650px;
  margin: 0 auto;
  color: var(--cream-copy);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
}

.hero .btn-row,
.credo {
  justify-content: center;
}

.credo {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.credo span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream-muted);
  font: 400 11px/1.4 "Courier Prime", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.credo span::before {
  content: "";
  width: 17px;
  height: 1px;
  background: var(--amber);
}

.page-hero {
  position: relative;
  min-height: 66svh;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(110px, 15vw, 190px) clamp(70px, 9vw, 110px);
  isolation: isolate;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(26, 21, 24, 0.96) 0%, rgba(26, 21, 24, 0.74) 53%, rgba(26, 21, 24, 0.44) 100%), linear-gradient(to top, var(--darker), transparent 55%);
}

.page-hero.portfolio {
  background-image: url("assets/material-process-texture.svg");
}

.page-hero.trade {
  background-image: url("assets/habitat-jungle-stream-768.webp");
}

.page-hero.ideas {
  background-image: url("assets/habitat-mossy-trail-768.webp");
}

.page-hero.field-notes {
  background-image: url("assets/habitat-tropical-canopy-768.webp");
  background-position: center 44%;
}

.page-hero.marker {
  background-image: url("assets/habitat-rainforest-interior-768.webp");
}

.page-hero.pot {
  background-image: url("assets/material-process-texture.svg");
}

.page-hero-copy {
  max-width: 800px;
}

.page-hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 86px);
}

.page-hero .lede {
  max-width: 670px;
  margin: 0;
  color: var(--cream-copy);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 32px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  color: var(--cream-muted);
  font: 400 11px/1.5 "Courier Prime", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-line strong {
  color: var(--cream);
  font-weight: 700;
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1fr);
  gap: clamp(50px, 9vw, 120px);
  align-items: start;
}

.split-intro h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 64px);
}

.prose {
  color: var(--cream-copy);
  font-size: 16px;
}

.prose p {
  margin: 0;
}

.prose p + p,
.prose ul + p,
.prose p + ul {
  margin-top: 18px;
}

.prose strong {
  color: var(--cream);
  font-weight: 600;
}

.truth-line {
  margin-top: clamp(48px, 8vw, 90px);
  margin-left: auto;
  max-width: 900px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.truth-line p {
  margin: 0;
  font-size: clamp(21px, 2.6vw, 31px);
  line-height: 1.5;
}

.truth-line span {
  color: var(--cream-copy);
}

.story-list {
  border-bottom: 1px solid var(--line);
}

.story {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border-top: 1px solid var(--line);
}

.story.reverse .story-visual { order: 2; }

.story-visual {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
}

.story-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 15, 17, 0.93), rgba(18, 15, 17, 0.16) 68%);
}

.story-visual.creations { background-image: url("assets/material-process-texture.svg"); }
.story-visual.technologies { background-image: radial-gradient(circle at 52% 36%, rgba(198, 123, 22, 0.16), transparent 38%), url("assets/material-process-texture.svg"); }
.story-visual.outreach { background-image: url("assets/species-barred-owl-768.webp"); }

.story-title {
  position: absolute;
  z-index: 1;
  left: clamp(25px, 4vw, 52px);
  right: clamp(25px, 4vw, 52px);
  bottom: clamp(28px, 5vw, 55px);
}

.story-title h3 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
}

.story-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 76px);
  background: rgba(17, 22, 19, 0.56);
}

.story-copy p {
  margin: 0;
  color: var(--cream-copy);
}

.story-copy p + p { margin-top: 18px; }
.story-copy strong { color: var(--cream); }

.project-ledger {
  border-top: 1px solid var(--line);
}

.project-chapter {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(30px, 7vw, 92px);
  padding-block: clamp(72px, 9vw, 112px);
  border-bottom: 1px solid var(--line);
}

.chapter-index {
  align-self: start;
}

.chapter-number {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(31px, 4vw, 49px);
  letter-spacing: -0.04em;
}

.chapter-index .stage {
  color: var(--cream-muted);
  line-height: 1.7;
  letter-spacing: 0.12em;
}

.chapter-body {
  min-width: 0;
}

.chapter-body h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 5vw, 62px);
}

.chapter-body .summary {
  max-width: 760px;
  margin: 0;
  color: var(--cream-copy);
  font-size: clamp(17px, 1.8vw, 20px);
}

.evidence-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  margin-top: 38px;
  background: var(--line);
  border: 1px solid var(--line);
}

.evidence-row > div {
  min-width: 0;
  padding: 24px;
  background: var(--darker);
}

.evidence-row h3 {
  margin-bottom: 10px;
  color: var(--amber);
  font: 700 10px/1.4 "Courier Prime", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.evidence-row p {
  margin: 0;
  color: var(--cream-copy);
}

.audience-river {
  margin: 46px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.audience-river li {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 0.68fr);
  gap: 30px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.audience-river strong {
  font-size: clamp(18px, 2vw, 23px);
}

.audience-river span {
  color: var(--cream-copy);
}

.notice {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(135deg, rgba(78, 4, 22, 0.33), rgba(30, 52, 42, 0.42));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.notice::before {
  content: "Boundary";
  display: block;
  margin-bottom: 14px;
  color: var(--amber);
  font: 700 10px/1.4 "Courier Prime", monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.notice h2 {
  max-width: 800px;
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 45px);
}

.notice p {
  max-width: 900px;
  margin: 0;
  color: var(--cream-copy);
}

.notice p + p { margin-top: 14px; }
.notice strong { color: var(--cream); }

.prompt-list,
.check-list,
.hypothesis-list {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.prompt-list li,
.check-list li,
.hypothesis-list li {
  position: relative;
  padding: 20px 0 20px 38px;
  color: var(--cream-copy);
  border-bottom: 1px solid var(--line);
}

.prompt-list li::before,
.check-list li::before,
.hypothesis-list li::before {
  position: absolute;
  left: 0;
  top: 20px;
  color: var(--amber);
  font-family: "Courier Prime", monospace;
}

.prompt-list li::before { content: "→"; }
.check-list li::before { content: "□"; }
.hypothesis-list li::before { content: "+"; }

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.form-context {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.form-context h2 {
  margin-bottom: 18px;
  font-size: clamp(33px, 4vw, 51px);
}

.form-context p {
  margin: 0;
  color: var(--cream-copy);
}

.form-context p + p { margin-top: 16px; }

.idea-form {
  min-width: 0;
  padding: clamp(26px, 5vw, 52px);
  background: rgba(45, 36, 39, 0.56);
  border: 1px solid var(--line);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.form-note {
  margin: 0 0 30px;
  padding-bottom: 20px;
  color: var(--cream-copy);
  border-bottom: 1px solid var(--line);
  font: 400 12px/1.7 "Courier Prime", monospace;
}

.field {
  min-width: 0;
  margin-bottom: 25px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.honeypot-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 9px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--cream-muted);
  font-size: 14px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--cream);
  background: rgba(26, 21, 24, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: rgba(229, 220, 200, 0.46);
}

.checkbox-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--amber);
}

.checkbox-row label {
  color: var(--cream-copy);
  font-size: 14px;
}

.checkbox-row + .checkbox-row {
  margin-top: 16px;
}

.field-note-form [name="photo-description"] {
  min-height: 96px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.form-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--amber);
  font: 700 11px/1.6 "Courier Prime", monospace;
  letter-spacing: 0.06em;
}

.review-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: var(--line);
  border: 1px solid var(--line);
}

.review-path article {
  padding: 24px;
  background: rgba(26, 21, 24, 0.94);
}

.review-path h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.review-path p {
  margin: 0;
  color: var(--cream-copy);
  font-size: 14px;
}

.build-notes {
  margin-top: 34px;
  background: rgba(26, 21, 24, 0.58);
  border: 1px solid var(--line);
}

.build-notes > summary {
  padding: 20px 24px;
  color: var(--cream);
  cursor: pointer;
  font-weight: 700;
}

.build-notes > summary::marker { color: var(--amber); }

.build-notes-body {
  padding: 0 24px 26px;
  color: var(--cream-copy);
}

.build-notes-body p:first-child { margin-top: 0; }

.system-map {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 0.25fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--line);
  border: 1px solid var(--line);
}

.system-main,
.system-aside {
  min-width: 0;
  padding: clamp(30px, 5vw, 58px);
  background: var(--darker);
}

.system-main {
  display: grid;
  gap: 1px;
  background: var(--line);
  padding: 0;
}

.system-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(28px, 4vw, 46px);
  background: var(--darker);
}

.system-step .step-number {
  color: var(--amber);
  font: 700 13px/1.4 "Courier Prime", monospace;
  letter-spacing: 0.14em;
}

.system-step h3 {
  margin-bottom: 10px;
  font-size: clamp(23px, 3vw, 33px);
}

.system-step p,
.system-aside p {
  margin: 0;
  color: var(--cream-copy);
}

.system-aside {
  background: var(--forest);
}

.system-aside h3 {
  margin-bottom: 14px;
  font-size: 24px;
}

.specimen {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 40px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 32%, rgba(198, 123, 22, 0.18), transparent 24%), linear-gradient(145deg, var(--forest), var(--dark));
  border: 1px solid var(--line);
}

.specimen::after {
  content: "concept study · not production geometry";
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: var(--cream-muted);
  font: 400 9px/1.4 "Courier Prime", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marker-plate {
  width: min(360px, 100%);
  padding: 36px 30px 28px;
  color: var(--darker);
  background: var(--cream);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  transform: rotate(-2deg);
}

.marker-relief {
  height: 92px;
  margin-bottom: 24px;
  background: radial-gradient(ellipse at 54% 50%, var(--forest) 0 18%, transparent 19%), radial-gradient(ellipse at 41% 43%, var(--forest) 0 14%, transparent 15%), radial-gradient(ellipse at 60% 59%, var(--forest) 0 12%, transparent 13%);
  opacity: 0.9;
}

.marker-plate strong,
.marker-plate em {
  display: block;
}

.marker-plate strong {
  font-size: 25px;
  line-height: 1.1;
}

.marker-plate em {
  margin-top: 6px;
  font-family: "Courier Prime", monospace;
  font-size: 13px;
}

.qr-study {
  width: 54px;
  height: 54px;
  margin: 23px 0 0 auto;
  background: repeating-conic-gradient(var(--darker) 0 25%, transparent 0 50%) 50% / 12px 12px;
  border: 5px solid var(--darker);
  box-shadow: inset 0 0 0 4px var(--cream);
}

.test-gate {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(30px, 6vw, 80px);
  margin-top: 46px;
  padding: clamp(28px, 5vw, 54px);
  background: var(--forest);
  border: 1px solid var(--line-strong);
}

.test-gate .gate-number {
  color: var(--amber);
  font: 700 clamp(42px, 7vw, 82px)/1 "Courier Prime", monospace;
  letter-spacing: -0.08em;
}

.test-gate h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 43px);
}

.test-gate p {
  margin: 0;
  color: var(--cream-copy);
}

.section-rail {
  position: fixed;
  top: 50%;
  right: 16px;
  z-index: 80;
  width: 132px;
  display: grid;
  padding: 12px;
  background: rgba(21, 17, 20, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.section-rail > span {
  padding: 8px 9px 10px;
  color: var(--amber);
  font: 700 9px/1.3 "Courier Prime", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-rail a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 9px;
  color: var(--cream-muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
  text-decoration: none;
}

.section-rail a:hover,
.section-rail a[aria-current="location"] {
  color: var(--cream);
  background: rgba(229, 220, 200, 0.06);
}

.section-rail a[aria-current="location"]::before {
  content: "";
  width: 13px;
  height: 1px;
  margin-right: 7px;
  background: var(--amber);
}

.direction-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 7vw, 78px);
  background: var(--line);
  border: 1px solid var(--line);
}

.direction-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(36px, 6vw, 68px);
}

.direction-creations { background: var(--dark); }
.direction-digital { background: var(--forest); }

.direction-panel h3 {
  max-width: 480px;
  margin-bottom: 20px;
  font-size: clamp(31px, 4vw, 52px);
}

.direction-panel > p:not(.stage) {
  max-width: 560px;
  margin: 0 0 26px;
  color: var(--cream-copy);
}

.direction-panel .text-link { margin-top: auto; }

.proof-section {
  background: linear-gradient(145deg, rgba(78, 4, 22, 0.12), rgba(30, 52, 42, 0.2));
}

.proof-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  margin-top: clamp(48px, 7vw, 78px);
  background: var(--dark);
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.proof-visual { min-height: 480px; overflow: hidden; }

.proof-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 68px);
}

.proof-copy h3 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4vw, 50px);
}

.proof-copy > p:not(.stage) {
  margin: 0;
  color: var(--cream-copy);
}

.proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof-metrics div { min-width: 0; padding: 18px; background: var(--darker); }
.proof-metrics dt { color: var(--amber); font: 700 30px/1 "Courier Prime", monospace; }
.proof-metrics dd { margin: 9px 0 0; color: var(--cream-muted); font-size: 11px; line-height: 1.4; }

.learning-preview { background: var(--forest); }

.page-hero.learning {
  background-image: url("assets/species-bengal-tiger-768.webp");
  background-position: center 42%;
}

.learning-ledger {
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.learning-chapter {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(30px, 7vw, 92px);
  padding-block: clamp(72px, 9vw, 112px);
  border-bottom: 1px solid var(--line);
}

.species-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  background: var(--line);
  border: 1px solid var(--line);
}

.species-notes > div { min-width: 0; padding: 26px; background: var(--darker); }
.species-notes h3 { margin-bottom: 12px; color: var(--amber); font-size: 18px; }
.species-notes p { margin: 0; color: var(--cream-copy); font-size: 14px; }

.field-notes-region {
  margin-top: clamp(48px, 8vw, 88px);
}

.field-notes-feed {
  display: grid;
  gap: 30px;
}

.field-note-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(45, 36, 39, 0.62);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.field-note-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--forest);
}

.field-note-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.field-note-card-copy {
  max-width: 880px;
  padding: clamp(30px, 6vw, 66px);
}

.field-note-card h2,
.field-notes-empty h2 {
  margin-bottom: 18px;
  font-size: clamp(31px, 5vw, 55px);
}

.field-note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 30px;
  padding-block: 16px;
  color: var(--cream-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font: 400 11px/1.5 "Courier Prime", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-note-body {
  color: var(--cream-copy);
  font-size: clamp(16px, 1.8vw, 19px);
}

.field-note-body p {
  margin: 0;
}

.field-note-body p + p {
  margin-top: 18px;
}

.field-notes-empty {
  padding: clamp(34px, 7vw, 76px);
  background: linear-gradient(135deg, rgba(30, 52, 42, 0.76), rgba(45, 36, 39, 0.48));
  border: 1px solid var(--line-strong);
}

.field-notes-empty p {
  max-width: 720px;
  margin: 0;
  color: var(--cream-copy);
  font-size: clamp(16px, 1.8vw, 19px);
}

.field-notes-empty .btn {
  margin-top: 28px;
}

.footer-boundary {
  padding-block: 30px;
  color: var(--cream-muted);
  background: rgba(21, 17, 20, 0.96);
  border-top: 1px solid var(--line-strong);
}

.footer-boundary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
}

.footer-boundary p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.footer-boundary strong,
.footer-boundary a {
  color: var(--cream);
}

.footer-boundary a {
  font-weight: 700;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 56px 0 90px;
  background: #151114;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
}

.footer-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-copy {
  max-width: 620px;
  margin: 0;
  color: var(--cream-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 20px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--cream-copy);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover { color: var(--amber); }

@media (max-width: 900px) {
  :root { --header-height: 66px; }

  .nav-shell {
    width: min(var(--max), calc(100% - 28px));
  }

  .nav-toggle { display: grid; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: -14px;
    right: -14px;
    display: none;
    align-items: stretch;
    padding: 10px 14px 18px;
    background: rgba(26, 21, 24, 0.99);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
  }

  .nav-links.open { display: block; }

  .nav-links a {
    width: 100%;
    min-height: 48px;
    border-bottom: 1px solid rgba(229, 220, 200, 0.08);
  }

  .split-intro,
  .form-shell,
  .review-path {
    grid-template-columns: 1fr;
  }

  .story { grid-template-columns: 1fr; }
  .story.reverse .story-visual { order: 0; }
  .story-visual { min-height: 390px; }
  .form-context { position: static; }
  .system-map { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-boundary-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .direction-split,
  .proof-feature { grid-template-columns: 1fr; }
  .proof-visual { min-height: 380px; }
  .species-notes { grid-template-columns: 1fr; }
  .learning-chapter { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 1500px) {
  .section-rail {
    position: static;
    width: min(var(--max), calc(100% - 48px));
    display: flex;
    align-items: stretch;
    margin: 26px auto 0;
    padding: 0;
    overflow-x: auto;
    transform: none;
    scrollbar-width: thin;
  }

  .section-rail > span,
  .section-rail a { flex: 0 0 auto; }
  .section-rail > span { display: flex; align-items: center; padding-inline: 16px; }
  .section-rail a { padding-inline: 16px; border-top: 0; border-left: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .inner,
  .narrow {
    width: min(var(--max), calc(100% - 34px));
  }

  .brand img { height: 38px; }
  .brand-name { font-size: 13px; }
  .brand-sub { font-size: 10px; letter-spacing: 0.14em; }
  .preview-flag { display: none; }

  .hero {
    min-height: calc(100svh - var(--header-height));
    padding-inline: 17px;
  }

  .hero h1 { font-size: clamp(40px, 13vw, 56px); }
  .hero-copy { font-size: 15px; }

  .slide-b,
  .slide-c {
    background-image: none;
  }

  .hero .btn-row,
  .page-hero .btn-row,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero .btn,
  .page-hero .btn,
  .form-actions .btn {
    width: 100%;
  }

  .credo {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .page-hero {
    min-height: 72svh;
    padding-top: 90px;
  }

  .page-hero h1 { font-size: clamp(42px, 13vw, 60px); }

  .story-visual { min-height: 310px; }
  .story-title h3 { font-size: 36px; }
  .story-copy { padding: 34px 0 52px; background: transparent; }

  .project-chapter { grid-template-columns: 1fr; gap: 14px; }
  .chapter-index { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
  .chapter-number { margin: 0; }
  .chapter-index .stage { max-width: 180px; margin: 0; text-align: right; }
  .chapter-index .stage::before { display: none; }

  .evidence-row { grid-template-columns: 1fr; }
  .audience-river li { grid-template-columns: 1fr; gap: 8px; }
  .idea-form { padding-inline: 20px; }
  .field-note-card-copy,
  .field-notes-empty { padding-inline: 22px; }
  .field-note-meta { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .system-step { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .specimen { min-height: 360px; padding: 26px 18px 52px; }
  .marker-plate { padding: 28px 22px 24px; }
  .test-gate { grid-template-columns: 1fr; }
  .status-line { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .section-rail { width: calc(100% - 34px); }
  .proof-visual { min-height: 280px; }
  .proof-metrics { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .slide { transform: none; }
  .btn:active { transform: none; }
}

/* ==========================================================================
   Responsive image upgrades  (appended 2026-08-14)
   Kestrel's rules above are untouched; these override only the resolution.
   Cause of the blur: 768px files were being painted at 1100-1920px.
   Revert by deleting this block, or restore styles.css.pre-images.bak
   ========================================================================== */

@media (min-width: 800px) {
  .slide-a { background-image: radial-gradient(ellipse 80% 60% at 30% 50%, rgba(30, 52, 42, 0.88), rgba(15, 21, 18, 0.36) 70%), url("assets/species-red-panda-1280.webp"); }
}

@media (min-width: 800px) {
  .slide-b { background-image: radial-gradient(ellipse 65% 80% at 50% 30%, rgba(20, 40, 30, 0.82), rgba(13, 26, 20, 0.28) 70%), url("assets/species-barred-owl-1280.webp"); }
}
@media (min-width: 1400px) {
  .slide-b { background-image: radial-gradient(ellipse 65% 80% at 50% 30%, rgba(20, 40, 30, 0.82), rgba(13, 26, 20, 0.28) 70%), url("assets/species-barred-owl-1920.webp"); }
}

@media (min-width: 800px) {
  .page-hero.trade { background-image: url("assets/habitat-jungle-stream-1280.webp"); }
}
@media (min-width: 1400px) {
  .page-hero.trade { background-image: url("assets/habitat-jungle-stream-1600.webp"); }
}

@media (min-width: 800px) {
  .page-hero.ideas { background-image: url("assets/habitat-mossy-trail-1280.webp"); }
}
@media (min-width: 1400px) {
  .page-hero.ideas { background-image: url("assets/habitat-mossy-trail-1600.webp"); }
}

@media (min-width: 800px) {
  .page-hero.field-notes { background-image: url("assets/habitat-tropical-canopy-1280.webp"); }
}
@media (min-width: 1400px) {
  .page-hero.field-notes { background-image: url("assets/habitat-tropical-canopy-1600.webp"); }
}

@media (min-width: 800px) {
  .page-hero.marker { background-image: url("assets/habitat-rainforest-interior-1280.webp"); }
}
@media (min-width: 1400px) {
  .page-hero.marker { background-image: url("assets/habitat-rainforest-interior-1600.webp"); }
}

@media (min-width: 800px) {
  .story-visual.outreach { background-image: url("assets/species-barred-owl-1280.webp"); }
}
@media (min-width: 1400px) {
  .story-visual.outreach { background-image: url("assets/species-barred-owl-1920.webp"); }
}


/* --------------------------------------------------------------------------
   Real product photography for the legacy portfolio hero  (2026-08-14)
   Pot Maker deliberately retains the abstract material texture declared above.
   Its third-party starting reference appears only in the attributed figure.
   -------------------------------------------------------------------------- */

.page-hero.portfolio {
  background-image:
    linear-gradient(180deg, rgba(18,15,17,.72), rgba(18,15,17,.88)),
    url("assets/products/giant-panda-768.webp");
}
@media (min-width: 800px) {
  .page-hero.portfolio {
    background-image:
      linear-gradient(180deg, rgba(18,15,17,.72), rgba(18,15,17,.88)),
      url("assets/products/giant-panda-1200.webp");
  }
}

/* --------------------------------------------------------------------------
   About page visuals  (2026-08-14)
   .page-hero.about was the ONLY hero on the site with no background image.
   Composites are nature + animal, softened into the background.

   LICENSING - composited from unencumbered sources only:
     habitat-mossy-trail  Olympic National Park, Quinault rainforest - public domain
     species-barred-owl   Tina Rataj-Berard - CC0 1.0
     species-red-panda    Mathias Appel - CC0 1.0
   Deliberately NOT used: snow-leopard (CC BY-SA 2.0), giant-panda (CC BY-SA 4.0),
   jungle-stream (CC BY-SA 4.0). Blending a share-alike photo would make the
   composite a derivative and force the same licence onto a commercial page.
   -------------------------------------------------------------------------- */

.page-hero.about {
  background-image:
    linear-gradient(180deg, rgba(18,15,17,.58), rgba(18,15,17,.86)),
    url("assets/about-hero-blend-768.webp");
  background-size: cover;
  background-position: center;
}
@media (min-width: 800px) {
  .page-hero.about { background-image:
    linear-gradient(180deg, rgba(18,15,17,.58), rgba(18,15,17,.86)),
    url("assets/about-hero-blend-1280.webp"); }
}
@media (min-width: 1400px) {
  .page-hero.about { background-image:
    linear-gradient(180deg, rgba(18,15,17,.58), rgba(18,15,17,.86)),
    url("assets/about-hero-blend-1600.webp"); }
}

.section.about-manifesto {
  background-image:
    linear-gradient(180deg, rgba(18,15,17,.72), rgba(18,15,17,.90)),
    url("assets/about-manifesto-blend-768.webp");
  background-size: cover;
  background-position: center;
}
@media (min-width: 800px) {
  .section.about-manifesto { background-image:
    linear-gradient(180deg, rgba(18,15,17,.72), rgba(18,15,17,.90)),
    url("assets/about-manifesto-blend-1280.webp"); }
}
@media (min-width: 1400px) {
  .section.about-manifesto { background-image:
    linear-gradient(180deg, rgba(18,15,17,.72), rgba(18,15,17,.90)),
    url("assets/about-manifesto-blend-1600.webp"); }
}
