:root {
  color-scheme: dark;
  --ink: #e7f4ee;
  --muted: #9eb7ad;
  --dim: #71877f;
  --paper: #071311;
  --panel: #0c1b18;
  --panel-2: #10231e;
  --line: #244138;
  --line-bright: #3d6659;
  --acid: #b8f34a;
  --cyan: #70ead1;
  --orange: #ffb26b;
  --red: #ff7b73;
  --white: #f7fff9;
  --shadow: 0 26px 70px rgba(0, 0, 0, .34);
  --radius: 18px;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

img { max-width: 100%; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(112, 234, 209, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 234, 209, .025) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: var(--sans);
  line-height: 1.55;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(112, 234, 209, .12), transparent 27rem),
    radial-gradient(circle at 94% 19%, rgba(184, 243, 74, .08), transparent 25rem);
  content: "";
  pointer-events: none;
}

a { color: inherit; }
button, textarea, input { font: inherit; }
button { color: inherit; }

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  color: #071311;
  background: var(--acid);
  font-weight: 800;
  transform: translateY(-150%);
}

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

.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;
}

.masthead {
  border-bottom: 1px solid rgba(61, 102, 89, .54);
  background: rgba(7, 19, 17, .86);
  backdrop-filter: blur(12px);
}

.masthead__inner,
.hero,
.inspector,
.model,
.author,
.site-footer {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.masthead__inner {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -.02em;
}

.wordmark small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wordmark__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #071311;
  background: var(--acid);
  border-radius: 9px 2px 9px 2px;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 900;
}

.privacy-flag {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.privacy-flag span {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(112, 234, 209, .12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .7fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  min-height: 660px;
  padding-block: 5.5rem 6rem;
}

.hero > *,
.section-heading > *,
.workbench > *,
.author > *,
.profile-hero > *,
.profile-statement > *,
.method > *,
.project-feature > *,
.milestones > * { min-width: 0; }

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, h3, h4, p { margin-top: 0; }

h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: clamp(3rem, 7.4vw, 6.8rem);
  line-height: .92;
  letter-spacing: -.075em;
}

h2 {
  margin-bottom: .8rem;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1;
  letter-spacing: -.05em;
}

h3 {
  margin-bottom: .55rem;
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.25;
}

.lede {
  max-width: 750px;
  margin-bottom: 2rem;
  color: #bdd0c8;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: .78rem 1rem;
  cursor: pointer;
  font-weight: 760;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover { transform: translateY(-1px); }

.button--primary {
  color: #071311;
  background: var(--acid);
  box-shadow: 0 9px 30px rgba(184, 243, 74, .11);
}

.button--primary:hover { background: #ccff6b; }

.button--quiet {
  color: var(--ink);
  background: #132a24;
  border-color: var(--line);
}

.button--quiet:hover,
.button--ghost:hover { border-color: var(--line-bright); }

.button--ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.text-link {
  padding: .65rem .25rem;
  color: var(--muted);
  text-underline-offset: 4px;
}

.text-link:hover { color: var(--white); }

.hero__diagram {
  position: relative;
  padding: 1.3rem;
  background: rgba(12, 27, 24, .88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero__diagram::before {
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(112, 234, 209, .14);
  border-radius: 12px;
  content: "";
  pointer-events: none;
}

.diagram-label {
  position: relative;
  margin: .6rem .8rem 1rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.clock-chain {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.clock-chain::before {
  position: absolute;
  left: 26px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(var(--cyan), var(--acid));
  content: "";
}

.clock-chain li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  padding: .92rem .6rem;
}

.clock-chain li > span {
  z-index: 1;
  grid-row: 1 / 3;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  align-self: center;
  color: #071311;
  background: var(--cyan);
  border: 5px solid var(--panel);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 800;
}

.clock-chain li:last-child > span { background: var(--acid); }
.clock-chain strong { font-size: .98rem; }
.clock-chain small { color: var(--muted); }

.diagram-note {
  position: relative;
  margin: 1rem .8rem .5rem;
  padding-top: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .86rem;
}

.inspector,
.model { padding-block: 5.5rem; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading > p {
  max-width: 440px;
  margin-bottom: .4rem;
  color: var(--muted);
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.editor-panel,
.results-panel { padding: clamp(1.2rem, 3vw, 2rem); }

.editor-panel { border-right: 1px solid var(--line); }
.results-panel { background: rgba(16, 35, 30, .72); }

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-heading > div {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.panel-heading h3 { margin: 0; }

.step-number {
  color: var(--acid);
  font-family: var(--mono);
  font-size: .72rem;
}

.local-badge {
  padding: .25rem .5rem;
  color: var(--cyan);
  background: rgba(112, 234, 209, .07);
  border: 1px solid rgba(112, 234, 209, .2);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .09em;
}

#envelope-input {
  display: block;
  width: 100%;
  min-height: 500px;
  resize: vertical;
  padding: 1rem;
  color: #d9f7ea;
  background: #06100e;
  border: 1px solid var(--line);
  border-radius: 9px;
  caret-color: var(--acid);
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.55;
  tab-size: 2;
}

#envelope-input:focus { border-color: var(--cyan); }

.field-help {
  margin: .65rem 0 1rem;
  color: var(--dim);
  font-size: .76rem;
}

.thresholds {
  margin-block: 1rem;
  border-block: 1px solid var(--line);
}

.thresholds summary {
  padding: .9rem 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.threshold-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  padding-bottom: 1rem;
}

.threshold-grid label { display: grid; gap: .45rem; }

.threshold-grid label > span {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  color: var(--muted);
  font-size: .75rem;
}

.threshold-grid output {
  color: var(--cyan);
  font-family: var(--mono);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--acid);
}

.button--inspect {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 1rem;
}

.icon-button {
  min-width: 48px;
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.icon-button:hover { color: var(--white); border-color: var(--line-bright); }

.status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 90px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 9px;
}

.status-banner--idle { border-left-color: var(--dim); }
.status-banner--pass { border-left-color: var(--acid); background: rgba(184, 243, 74, .045); }
.status-banner--review { border-left-color: var(--orange); background: rgba(255, 178, 107, .045); }
.status-banner--fail { border-left-color: var(--red); background: rgba(255, 123, 115, .045); }

.status-kicker {
  display: block;
  margin-bottom: .15rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.status-banner strong { display: block; color: var(--white); }

.status-score {
  color: var(--white);
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-block: 1rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.metrics > div { padding: .8rem; background: #0c1c18; }
.metrics span { display: block; color: var(--dim); font-size: .68rem; }
.metrics strong { color: var(--white); font-family: var(--mono); font-size: .84rem; }

.timeline {
  position: relative;
  min-height: 155px;
  padding: 1.2rem .6rem 0;
  background: #081512;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline__track {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 62px;
  height: 2px;
  background: var(--line-bright);
}

.timeline-node {
  position: absolute;
  top: 45px;
  width: 78px;
  margin-left: -39px;
  text-align: center;
}

.timeline-node::before {
  display: block;
  width: 12px;
  height: 12px;
  margin: 11px auto 13px;
  background: var(--cyan);
  border: 4px solid #081512;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--cyan);
  content: "";
}

.timeline-node strong,
.timeline-node span { display: block; }
.timeline-node strong { color: var(--white); font-size: .7rem; }
.timeline-node span { color: var(--dim); font-family: var(--mono); font-size: .59rem; }

.empty-state {
  position: relative;
  margin-top: 44px;
  color: var(--dim);
  text-align: center;
  font-size: .8rem;
}

.result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 0 .8rem;
}

.result-toolbar h4 { margin: 0; font-size: .86rem; }

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
}

.filter {
  min-height: 32px;
  padding: .3rem .55rem;
  color: var(--dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: .68rem;
}

.filter:hover,
.filter.is-active { color: var(--ink); border-color: var(--line); }
.filter span { font-family: var(--mono); }

.check-list {
  display: grid;
  max-height: 515px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: var(--line-bright) transparent;
}

.check-list__empty { padding: 2rem; color: var(--dim); text-align: center; }

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
}

.check > * { min-width: 0; }

.check[hidden] { display: none; }

.check__mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  margin-top: .05rem;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 900;
}

.check--pass .check__mark { color: var(--acid); background: rgba(184, 243, 74, .09); }
.check--warning .check__mark { color: var(--orange); background: rgba(255, 178, 107, .09); }
.check--error .check__mark { color: var(--red); background: rgba(255, 123, 115, .09); }

.check__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.check__header strong { color: var(--white); font-size: .82rem; overflow-wrap: anywhere; }
.check__code { color: var(--dim); font-family: var(--mono); font-size: .63rem; overflow-wrap: anywhere; }
.check p { margin: .25rem 0 0; color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }

.model { border-top: 1px solid var(--line); }

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.model-grid article {
  min-height: 260px;
  padding: 1.5rem;
  background: rgba(12, 27, 24, .76);
  border-right: 1px solid var(--line);
}

.model-grid article:last-child { border-right: 0; }
.model-grid article:hover { background: rgba(16, 35, 30, .9); }

.model-index {
  display: block;
  margin-bottom: 4.7rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
}

.model-grid p { color: var(--muted); font-size: .88rem; }

.author {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) minmax(240px, .65fr);
  gap: clamp(1.8rem, 5vw, 4.5rem);
  align-items: center;
  margin-block: 4rem 7rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  background: var(--acid);
  border-radius: var(--radius);
  color: #102016;
}

.author__portrait-wrap {
  position: relative;
  transform: rotate(-2.4deg);
}

.author__portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 52% 24%;
  border: 8px solid #f0f7e7;
  border-radius: 4px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .24);
}

.portrait-note {
  position: absolute;
  right: -12px;
  bottom: 14px;
  padding: .35rem .55rem;
  color: var(--white);
  background: #071311;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
}

.author .eyebrow { color: #29462b; }
.author h2 { color: #071311; }
.author__role { font-weight: 800; }
.author__role a { text-underline-offset: 4px; }
.author__copy > p:last-child { margin-bottom: 0; }

.profile-link {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  color: #102016;
  font-weight: 820;
  text-underline-offset: 4px;
}

.author__quote {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(7, 19, 17, .3);
}

.author__quote blockquote {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(230px, .5fr) minmax(0, 1.5fr);
  gap: 2rem;
  padding-block: 2.3rem 3.5rem;
  color: var(--dim);
  border-top: 1px solid var(--line);
  font-size: .78rem;
}

.site-footer strong { color: var(--muted); }
.site-footer p { margin: .25rem 0 0; }
.disclosure { max-width: 790px; }
.noscript { padding: 1rem; color: #071311; background: var(--orange); text-align: center; }

/* Founder profile */
.profile-page .masthead {
  position: relative;
  z-index: 5;
}

.nav-tool-link {
  padding: .55rem .7rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: .69rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-tool-link:hover { color: var(--white); border-color: var(--line-bright); }

.profile-hero,
.profile-statement,
.practice,
.method,
.project-feature,
.milestones {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .65fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  min-height: 720px;
  padding-block: 5.5rem 6rem;
}

.profile-hero h1 {
  max-width: 790px;
  margin-bottom: 1.8rem;
}

.profile-deck {
  max-width: 760px;
  margin-bottom: 2rem;
  color: #bdd0c8;
  font-size: clamp(1.08rem, 1.9vw, 1.34rem);
}

.profile-deck a {
  color: var(--acid);
  font-weight: 800;
  text-underline-offset: 4px;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2rem;
  border-block: 1px solid var(--line);
}

.profile-facts span {
  padding: 1rem 1rem 1rem 0;
  color: var(--muted);
  font-size: .8rem;
}

.profile-facts strong {
  display: block;
  margin-bottom: .15rem;
  color: var(--white);
  font-family: var(--mono);
  font-size: .83rem;
}

.profile-hero__portrait {
  position: relative;
  margin: 0;
  transform: rotate(1.8deg);
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: .7rem;
  background: #e9efe6;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.portrait-frame::after {
  position: absolute;
  right: -14px;
  bottom: 54px;
  width: 62px;
  height: 62px;
  background: var(--acid);
  border: 8px solid var(--paper);
  border-radius: 50%;
  content: "";
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 51% 24%;
  filter: saturate(.92) contrast(1.02);
}

.profile-hero__portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem .7rem 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.profile-statement {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.15fr) minmax(260px, .65fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: start;
  padding-block: 5rem;
  border-block: 1px solid var(--line);
}

.statement-number {
  color: var(--line-bright);
  font-family: var(--mono);
  font-size: 2.3rem;
}

.profile-statement h2 { font-size: clamp(2rem, 4.4vw, 4rem); }
.profile-statement > p:last-child { margin-top: 2.1rem; color: var(--muted); }

.practice,
.method,
.project-feature,
.milestones { padding-block: 5.5rem; }

.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.practice-grid article {
  min-height: 330px;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  background: rgba(12, 27, 24, .78);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practice-grid article:nth-child(2n) { border-right: 0; }
.practice-grid article:nth-last-child(-n+2) { border-bottom: 0; }
.practice-grid .model-index { margin-bottom: 4.2rem; }
.practice-grid h3 { max-width: 400px; font-size: clamp(1.2rem, 2vw, 1.6rem); }
.practice-grid p { max-width: 490px; color: var(--muted); }

.practice-grid ul {
  margin: 1.3rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: #bdd0c8;
  font-family: var(--mono);
  font-size: .7rem;
}

.practice-grid li { margin-block: .4rem; }
.practice-grid li::before { color: var(--acid); content: "+ "; }

.method {
  display: grid;
  grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 7vw, 7rem);
  border-top: 1px solid var(--line);
}

.method__intro { position: sticky; top: 2rem; align-self: start; }
.method__intro p:last-child { max-width: 430px; color: var(--muted); }

.method-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.method-steps li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.method-steps > li > span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: .75rem;
}

.method-steps h3 { margin-bottom: .4rem; font-size: 1.25rem; }
.method-steps p { max-width: 600px; margin: 0; color: var(--muted); }

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  padding-inline: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--acid);
  border-radius: var(--radius);
  color: #102016;
}

.project-feature .eyebrow { color: #31542f; }
.project-feature h2 { color: #071311; }
.project-feature__copy p:not(.eyebrow) { max-width: 560px; }
.project-feature .button--primary { color: var(--white); background: #071311; box-shadow: none; }
.project-feature .button--primary:hover { background: #14231d; }

.project-feature__preview {
  background: #071311;
  border: 1px solid #305047;
  border-radius: 10px;
  box-shadow: 0 25px 45px rgba(7, 19, 17, .28);
  overflow: hidden;
  transform: rotate(1deg);
}

.preview-top,
.preview-verdict {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .66rem;
}

.preview-live { color: var(--cyan); }
.project-feature pre { margin: 0; padding: 1.4rem; color: #d9f7ea; overflow: auto; font-family: var(--mono); font-size: .76rem; line-height: 1.65; }
.preview-verdict { align-items: center; border-top: 1px solid var(--line); border-bottom: 0; }
.preview-verdict strong { color: var(--acid); }

.milestones {
  display: grid;
  grid-template-columns: minmax(260px, .65fr) minmax(300px, .8fr);
  gap: 2rem 5rem;
  align-items: end;
}

.milestones > p { margin-bottom: .7rem; color: var(--muted); }

.milestone-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.milestone-list span {
  padding: 1.2rem 1rem;
  color: var(--white);
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .77rem;
  text-align: center;
}

.milestone-list span:last-child { border-right: 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__diagram { width: min(100%, 520px); transform: none; }
  .workbench { grid-template-columns: 1fr; }
  .editor-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .model-grid { grid-template-columns: 1fr 1fr; }
  .model-grid article:nth-child(2) { border-right: 0; }
  .model-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .author { grid-template-columns: 190px 1fr; }
  .author__quote { grid-column: 1 / -1; padding: 1.5rem 0 0; border-top: 1px solid rgba(7, 19, 17, .3); border-left: 0; }
  .profile-hero { grid-template-columns: 1fr minmax(260px, .55fr); gap: 3rem; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-facts span { border-bottom: 1px solid var(--line); }
  .profile-facts span:last-child { border-bottom: 0; }
  .profile-statement { grid-template-columns: 54px 1fr; }
  .profile-statement > p:last-child { grid-column: 2; margin-top: 0; }
  .method { grid-template-columns: 1fr; }
  .method__intro { position: static; }
  .project-feature { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .masthead__inner,
  .hero,
  .inspector,
  .model,
  .author,
  .site-footer { width: min(100% - 1.25rem, 1180px); }

  .masthead__inner { min-height: 66px; }
  .privacy-flag { font-size: 0; }
  .privacy-flag span { font-size: initial; }
  .hero { padding-block: 4rem; gap: 3rem; }
  .hero__actions { align-items: flex-start; flex-direction: column; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.6rem); }
  .section-heading { grid-template-columns: 1fr; gap: .5rem; }
  .inspector, .model { padding-block: 4rem; }
  #envelope-input { min-height: 420px; font-size: .72rem; }
  .threshold-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .result-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-group { justify-content: flex-start; }
  .timeline-node { width: 62px; margin-left: -31px; }
  .model-grid { grid-template-columns: 1fr; }
  .model-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .model-grid article:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .model-grid article:last-child { border-bottom: 0; }
  .model-index { margin-bottom: 2rem; }
  .author { grid-template-columns: 1fr; }
  .author__portrait-wrap { width: min(72%, 250px); margin-inline: auto; }
  .author__quote { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr; }
  .nav-tool-link { font-size: 0; border: 0; }
  .nav-tool-link span { font-size: 1.1rem; }
  .profile-hero,
  .profile-statement,
  .practice,
  .method,
  .project-feature,
  .milestones { width: min(100% - 1.25rem, 1180px); }
  .profile-hero { grid-template-columns: 1fr; min-height: auto; padding-block: 4rem; }
  .profile-hero__portrait { width: min(78%, 320px); margin-inline: auto; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-statement { grid-template-columns: 1fr; padding-block: 4rem; }
  .statement-number { display: none; }
  .profile-statement > p:last-child { grid-column: auto; }
  .practice,
  .method,
  .milestones { padding-block: 4rem; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .practice-grid article:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .practice-grid article:last-child { border-bottom: 0; }
  .practice-grid .model-index { margin-bottom: 2.2rem; }
  .project-feature { padding-block: 3rem; }
  .project-feature__preview { transform: none; }
  .milestones { grid-template-columns: 1fr; }
  .milestone-list { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .milestone-list span:nth-child(2) { border-right: 0; }
  .milestone-list span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  :root { color-scheme: light; }
  body { color: #15211d; background: #fff; }
  .masthead, .hero__actions, .button-row, .thresholds, .button--inspect, .icon-button, .filter-group { display: none !important; }
  .hero { min-height: auto; padding-block: 2rem; }
  .workbench { display: block; box-shadow: none; }
  .editor-panel { display: none; }
  .results-panel, .model-grid article { color: #15211d; background: #fff; }
  h1, h2, h3, .status-banner strong, .metrics strong, .check__header strong { color: #071311; }
}
