:root {
  --paper: #f6f0e5;
  --paper-bright: #fffdf8;
  --ink: #142321;
  --ink-soft: #42514e;
  --line: #cfc5b4;
  --line-dark: #8e887c;
  --ai: #0e604d;
  --ai-light: #dcefe8;
  --ai-mid: #79ac9d;
  --human: #8a5c06;
  --human-light: #f1dfba;
  --human-mid: #d1aa5c;
  --shadow: rgba(42, 36, 27, 0.14);
  --max: 1180px;
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(58, 51, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 51, 40, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-size: 1rem;
  line-height: 1.65;
}

button,
a {
  font: inherit;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}

.site-header {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.profile-return {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .5rem;
  color: var(--ink-soft);
  font-size: .75rem;
}
.profile-return a { min-height: 36px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.profile-return a:hover { color: var(--ai); }

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.site-nav a,
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ai);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}
.site-header > .button {
  justify-self: end;
}
.mobile-menu {
  display: none;
  position: relative;
  justify-self: end;
  z-index: 15;
}
.mobile-menu summary {
  min-height: 42px;
  padding: 0.5rem 0.8rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-menu summary::after {
  content: "+";
  margin-left: 0.55rem;
  color: var(--ai);
  font-size: 1.2rem;
  line-height: 1;
}
.mobile-menu[open] summary::after {
  content: "−";
}
.mobile-menu nav {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: min(78vw, 280px);
  padding: 0.65rem;
  display: grid;
  border: 1px solid var(--line-dark);
  background: var(--paper-bright);
  box-shadow: 8px 8px 0 rgba(14, 96, 77, 0.18);
}
.mobile-menu nav a {
  min-height: 44px;
  padding: 0.65rem 0.7rem;
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.mobile-menu nav a:hover,
.mobile-menu nav a:focus-visible {
  color: var(--ai);
  background: var(--ai-light);
}
.mobile-menu nav .mobile-install {
  margin-top: 0.35rem;
  color: white;
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.72rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: white;
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--ai-mid);
  text-decoration: none;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}
.button:hover,
.button:focus-visible {
  background: var(--ai);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--human-mid);
}
.button-small {
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  box-shadow: 3px 3px 0 var(--ai-mid);
}
.text-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--ink);
  font-weight: 750;
  text-underline-offset: 0.28rem;
}
.text-link:hover,
.text-link:focus-visible {
  color: var(--ai);
}

/* Typography and common layout */
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
h1 em {
  color: var(--ai);
  font-weight: inherit;
}
h2 {
  font-size: clamp(2.5rem, 4.2vw, 4rem);
}
h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}
p {
  margin: 1rem 0;
}
code {
  padding: 0.1em 0.3em;
  background: rgba(14, 96, 77, 0.07);
  border-radius: 2px;
  overflow-wrap: anywhere;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.42;
}
:focus-visible {
  outline: 3px solid var(--ai);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.js-only {
  display: none !important;
}
.js-ready .js-only {
  display: revert !important;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--ai);
  font-size: 0.76rem;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 800;
}
.eyebrow-mark {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 0.35rem;
  transform: rotate(45deg);
  background: var(--human-mid);
}
.owner-label {
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  font-weight: 850;
}
.owner-human {
  color: var(--human);
}
.owner-ai {
  color: var(--ai);
}
.section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding-block: 5.5rem;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.section-heading > p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 390px;
}
.section-heading.compact {
  grid-template-columns: 1fr;
  gap: 0;
}
.hero {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  display: grid;
  align-items: center;
}
.hero-lede {
  color: var(--ink-soft);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.hero-meta {
  color: var(--ink-soft);
  font-weight: 600;
}
/* Repository-first hero */
.hero {
  min-height: auto;
  grid-template-columns: 0.95fr 1.1fr;
  gap: 3rem;
  padding-block: 3.5rem 4rem;
}
h1 {
  font-size: clamp(3.2rem, 4.7vw, 4.5rem);
  line-height: 1.03;
}
.hero-lede {
  font-size: 1.05rem;
  margin-top: 1.5rem;
}
.hero-actions {
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.hero-actions .text-link {
  font-size: 0.9rem;
}
.hero-meta {
  font-size: 0.85rem;
  margin-top: 1.6rem;
}
.project-meta {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
}
.repo-map {
  margin: 0;
  padding: 1.5rem;
  background: #eee7d9;
  border: 1px solid var(--line);
  box-shadow: 9px 9px 0 #dfd8cb;
}
.map-request {
  position: relative;
  background: var(--human-light);
  border: 1px solid var(--human-mid);
  padding: 0.9rem 1.15rem;
  color: var(--human);
}
.map-request p {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0.45rem 0 0;
  color: var(--ink);
  max-width: 95%;
}
.folded-paper::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 25px;
  height: 25px;
  background: linear-gradient(45deg, #d1aa5c 49%, #eee7d9 51%);
}
.map-arrow {
  display: block;
  text-align: center;
  color: var(--ai);
  line-height: 1.5;
}
.map-pm {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  align-items: center;
  padding: 0.65rem;
  color: white;
  background: var(--ai);
  font-size: 0.8rem;
}
.role-chip {
  display: inline-block;
  width: fit-content;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--ai-mid);
  background: var(--ai-light);
  color: var(--ai);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.map-pm .role-chip {
  background: transparent;
  color: white;
}
.map-repositories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding-top: 1rem;
  position: relative;
}
.repo-paper {
  padding: 0.8rem 0.65rem;
  background: var(--paper-bright);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--ai);
  box-shadow: 3px 3px 0 #ded8ca;
}
.repo-caption {
  display: block;
  color: var(--ink-soft);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  font-weight: 800;
}
.repo-paper > strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.9rem;
}
.repo-paper > code {
  display: block;
  padding: 0;
  font-size: 0.59rem;
  background: none;
  margin: 0.2rem 0 0.9rem;
  overflow-wrap: anywhere;
}
.repo-paper > p {
  font-size: 0.72rem;
  line-height: 1.5;
  margin: 0.65rem 0 0.1rem;
}
.map-gate {
  padding: 0.75rem 0.2rem;
  font-size: 0.7rem;
  text-align: center;
  color: var(--ai);
  border-bottom: 1px dashed var(--ai-mid);
}
.map-checks {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.6rem;
  background: var(--ai-light);
  color: var(--ai);
  font-size: 0.77rem;
  font-weight: 700;
}
.map-accept {
  border: 1px solid var(--human-mid);
  background: var(--human-light);
  padding: 0.7rem 1rem;
  color: var(--human);
}
.map-accept strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--ink);
}
.repo-map figcaption {
  margin-top: 0.9rem;
  font-size: 0.67rem;
  text-align: center;
  color: var(--ink-soft);
}
.repo-map figcaption .legend-human {
  background: none;
  color: var(--human);
}
.repo-map figcaption .legend-ai {
  background: none;
  color: var(--ai);
  margin-left: 0.6rem;
}
.repo-map figcaption small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.65rem;
}

.definition {
  padding: 1.15rem max(1rem, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  color: white;
  background: var(--ink);
  font-size: 0.92rem;
}
.definition p {
  margin: 0;
}
.definition p:last-child {
  color: #d0dbd8;
}

.intro-video {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 3rem;
  border-bottom: 1px solid var(--line);
}
.intro-video h2 {
  font-size: clamp(2.4rem, 3.5vw, 3.3rem);
}
.intro-video-copy > p:not(.eyebrow) {
  color: var(--ink-soft);
  margin-block: 1.3rem;
}
.intro-film {
  margin: 0;
  padding: 0.65rem;
  border: 1px solid var(--line-dark);
  background: var(--paper-bright);
  box-shadow: 7px 7px 0 #dfd8cb;
  min-width: 0;
}
.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: var(--ink);
}
.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.intro-film figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.8rem 0.25rem 0.2rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.intro-film figcaption a {
  color: var(--ai);
  text-underline-offset: 0.2rem;
}
@media (max-width: 800px) {
  .intro-video {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .intro-video-copy {
    max-width: 600px;
  }
}

/* A single, illustrative delivery with a persistent repository map. */
.workflow-shell {
  border: 1px solid var(--line-dark);
  background: var(--paper-bright);
  box-shadow: 7px 7px 0 #e8e0d1;
}
.demo-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.demo-heading p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.demo-heading strong {
  display: block;
  color: var(--human);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.quiet-button {
  padding: 0.55rem 0.85rem;
  min-height: 44px;
  border: 1px solid var(--line-dark);
  background: var(--paper-bright);
  font-size: 0.83rem;
  font-weight: 700;
}
.quiet-button:hover:not(:disabled),
.quiet-button:focus-visible {
  background: var(--ai-light);
}
[data-play] {
  white-space: nowrap;
}
[data-play][aria-pressed="true"] {
  background: var(--ai);
  color: white;
}
.js-ready .stage-rail {
  display: grid !important;
}
.stage-rail {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-dark);
}
.stage-tab {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  position: relative;
  min-height: 88px;
  padding: 0.8rem 0.75rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: #f8f4ec;
  text-align: left;
}
.stage-tab:last-child {
  border-right: 0;
}
.stage-tab > span {
  font-size: 0.72rem;
}
.stage-tab strong {
  color: var(--ink);
  font-size: 0.8rem;
}
.stage-tab::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}
.stage-tab:hover::after,
.stage-tab.is-active::after {
  transform: scaleX(1);
}
.stage-tab.is-active.owner-human {
  background: var(--human-light);
}
.stage-tab.is-active.owner-ai {
  background: var(--ai-light);
}
.stage-tab:focus-visible {
  outline-offset: -4px;
}
.repo-tracker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 1.2rem 1.4rem;
  background: #efeadd;
  border-bottom: 1px solid var(--line);
}
.repo-tracker > div {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-dark);
  padding: 0.65rem 0.8rem;
  background: #f9f6ee;
}
.repo-tracker .repo-caption {
  font-size: 0.58rem;
}
.repo-tracker code {
  display: block;
  padding: 0;
  margin-top: 0.2rem;
  background: none;
  font-size: 0.7rem;
}
.repo-tracker strong {
  display: block;
  font-size: 0.73rem;
  margin-top: 0.45rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.repo-tracker .is-working {
  border-color: var(--ai-mid);
  border-left-color: var(--ai);
  background: var(--ai-light);
}
.repo-tracker .is-blocked {
  border-color: var(--human-mid);
  border-left-color: var(--human);
  background: var(--human-light);
}
.repo-tracker .is-blocked strong {
  color: var(--human);
}
.stage-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 2.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
html:not(.js-ready) .stage-panel + .stage-panel {
  border-top: 1px solid var(--line);
}
.js-ready .stage-panel {
  min-height: 380px;
}
.owner-line {
  margin: 0 0 1rem;
  color: var(--ai);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}
.owner-human .owner-line {
  color: var(--human);
}
.stage-panel h3 {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.stage-copy > p:not(.owner-line) {
  color: var(--ink-soft);
  font-size: 0.93rem;
}
.handoff-summary {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.5rem 0.8rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  margin: 1.3rem 0 0;
}
.handoff-summary dt {
  color: var(--ai);
  font-weight: 800;
}
.handoff-summary dd {
  margin: 0;
  color: var(--ink-soft);
}
.example-paper {
  position: relative;
  padding: 1.4rem;
  border: 1px solid var(--ai-mid);
  background: #eef5ef;
  box-shadow: 5px 5px 0 #dce4d9;
}
.example-paper::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
  background: linear-gradient(
    45deg,
    var(--ai-mid) 49%,
    var(--paper-bright) 51%
  );
}
.example-paper.human-paper {
  border-color: var(--human-mid);
  background: var(--human-light);
  box-shadow: 5px 5px 0 #e6d7b8;
}
.example-paper.human-paper::after {
  background: linear-gradient(
    45deg,
    var(--human-mid) 49%,
    var(--paper-bright) 51%
  );
}
.paper-label {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  font-weight: 800;
  color: var(--ai);
  padding-right: 0.5rem;
}
.human-paper .paper-label {
  color: var(--human);
}
.example-paper blockquote {
  margin: 1rem 0;
  font-family: Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.25;
}
.example-paper > p {
  font-size: 0.84rem;
}
.example-paper .example-heading {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.35;
}
.artifact-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}
.artifact-list li {
  display: grid;
  grid-template-columns: 3.3rem 1fr;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #b6ccc2;
  font-size: 0.82rem;
}
.artifact-list span {
  color: var(--ai);
  font-size: 0.7rem;
  font-weight: 800;
}
.artifact-list code {
  font-size: 0.75rem;
  padding: 0;
  background: none;
}
.assignment {
  display: flex;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 0 0.25rem;
}
.assignment + .assignment {
  border-top: 1px solid #b6ccc2;
  margin-top: 0.65rem;
}
.assignment strong {
  font-size: 0.9rem;
}
.assignment p {
  font-size: 0.8rem;
  margin: 0.3rem 0;
}
.gate-note {
  padding: 0.65rem;
  border: 1px dashed var(--ai);
  color: var(--ai);
  margin-bottom: 0;
}
.handoff-detail {
  margin-top: 1rem;
  font-size: 0.8rem;
}
summary {
  cursor: pointer;
}
.handoff-detail summary,
.scenario summary {
  font-weight: 750;
  color: var(--ai);
  min-height: 36px;
  padding-block: 0.35rem;
}
.handoff-detail p {
  font-size: 0.79rem;
  margin: 0.5rem 0 0;
}
.scenario {
  margin-top: 0.85rem;
  border-top: 1px solid #b6ccc2;
}
.scenario summary {
  padding: 0.8rem 0 0.15rem;
  font-size: 0.82rem;
}
.scenario-result {
  border-left: 3px solid var(--human);
  margin-top: 0.8rem;
  padding: 0.9rem;
  background: #fff8e8;
  font-size: 0.8rem;
}
.scenario-result strong {
  color: var(--human);
}
.scenario-result p:last-child {
  margin-bottom: 0;
}
.scenario-result ol {
  padding-left: 1rem;
}
.scenario-result li + li {
  margin-top: 0.4rem;
}
.route {
  display: block;
  color: var(--ai);
  font-weight: 700;
  font-size: 0.73rem;
}
.review-list {
  padding-left: 1rem;
  font-size: 0.87rem;
}
.review-list li {
  padding-block: 0.35rem;
}
.acceptance-note {
  border-top: 1px solid var(--human-mid);
  padding-top: 0.8rem;
  font-weight: 650;
  margin-bottom: 0;
}
.js-ready .stage-controls {
  display: flex !important;
}
.stage-controls {
  padding: 1rem 1.4rem;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.stage-controls > span {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.restart-button {
  margin-left: auto;
  padding: 0.55rem 0.2rem;
  border: 0;
  min-height: 44px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.decision-note {
  padding: 1rem 1.4rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  border-top: 1px dashed var(--human-mid);
  color: var(--human);
  background: #faf1df;
  align-items: center;
}
.decision-note p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--ink-soft);
}

/* Evidence and people behind the workflow. */
.safeguards {
  border-top: 1px solid var(--line);
}
.safeguard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--line-dark);
  border-top: 1px solid var(--line-dark);
}
.safeguard-grid article {
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1.3rem;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.25);
}
.benefit-index {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--ai);
  letter-spacing: 0.07em;
}
.safeguard-grid h3 {
  margin-top: 2rem;
  font-family: Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
}
.safeguard-grid p {
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.safeguard-detail {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.73rem;
  color: var(--ai);
  border-top: 1px solid var(--line);
}
.section-footnote {
  font-size: 0.8rem;
  color: var(--ink-soft);
  max-width: 830px;
  margin: 1.3rem 0 0;
}
.team {
  padding-top: 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.team-grid article {
  padding: 1.6rem;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}
.team-grid .team-lead {
  border-color: var(--ai-mid);
  background: var(--ai-light);
}
.team-grid h3 {
  margin-top: 1.2rem;
  font-size: 1.1rem;
}
.team-grid p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}
.model-details {
  border-block: 1px solid var(--line-dark);
  margin-top: 1.5rem;
}
.model-details summary {
  padding: 1rem 0;
  font-weight: 700;
}
.model-details > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.model-details p {
  margin: 0;
}

/* Setup prompts are the source of truth for copy actions. */
.setup {
  width: 100%;
  padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  color: #eef5f2;
  background: var(--ink);
}
.setup h2 {
  font-size: clamp(2.5rem, 4vw, 3.7rem);
}
.setup .eyebrow {
  color: #91c9b9;
}
.setup-intro > p {
  color: #bac9c5;
}
.setup-requirements {
  margin-top: 2rem;
  padding: 1.2rem;
  border: 1px solid #53625e;
}
.setup-requirements ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: #bac9c5;
  font-size: 0.85rem;
}
.setup-requirements li + li {
  margin-top: 0.6rem;
}
.setup code {
  color: #d8e5e1;
  background: #0c1917;
}
.setup-location {
  margin-top: 1.8rem;
}
.setup-location p,
.setup-location a {
  font-size: 0.84rem;
  color: #bac9c5;
}
.setup-location a {
  color: #a0dac9;
}
.setup-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #53625e;
}
.setup-steps > li {
  padding: 1.8rem 0;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.8rem;
  border-bottom: 1px solid #53625e;
}
.step-number {
  color: #91c9b9;
  font-size: 0.75rem;
  font-weight: 800;
}
.setup-steps p {
  color: #bac9c5;
  font-size: 0.9rem;
}
.setup .text-link {
  color: white;
  font-size: 0.9rem;
}
.prompt-card {
  position: relative;
  margin-top: 1rem;
  padding: 1.1rem;
  border: 1px solid #61716d;
  background: #0c1917;
}
.prompt-label {
  display: block;
  color: #91c9b9;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.prompt-card pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d8e5e1;
  font-size: 0.8rem;
  line-height: 1.7;
}
.prompt-card code {
  padding: 0;
}
.copy-button {
  margin-top: 1rem;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  color: white;
  border: 1px solid #71817c;
  background: #203532;
  font-size: 0.78rem;
  font-weight: 700;
}
.copy-button:hover,
.copy-button:focus-visible {
  border-color: #b7dbd1;
  background: var(--ai);
}
.single-repo {
  margin-top: 1.2rem;
  color: #d8e5e1;
  font-size: 0.85rem;
}
.single-repo summary {
  padding-block: 0.35rem;
  font-weight: 700;
}
.setup-footnote {
  grid-column: 2;
  margin: -2.5rem 0 0 2.8rem;
  color: #bac9c5;
  font-size: 0.84rem;
}
.setup-footnote a {
  color: white;
}
.setup :focus-visible {
  outline-color: #91c9b9;
}

.faq {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 4rem;
}
.faq .section-heading {
  align-self: start;
}
.faq-list {
  border-top: 1px solid var(--line-dark);
}
.faq-list details {
  border-bottom: 1px solid var(--line-dark);
}
.faq-list summary {
  position: relative;
  padding: 1.1rem 2.2rem 1.1rem 0;
  list-style: none;
  font-size: 1rem;
  font-weight: 650;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
  top: 0.8rem;
  color: var(--ai);
  font-size: 1.5rem;
  font-weight: 400;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list details p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.closing {
  text-align: center;
  border-top: 1px solid var(--line);
}
.closing img {
  margin: 0 auto 1.5rem;
}
.closing .hero-actions {
  justify-content: center;
}
.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--line-dark);
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-brand strong,
.footer-brand span {
  display: block;
}
.footer-brand strong {
  color: var(--ink);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}
.site-footer p {
  margin: 0;
}
.toast {
  position: fixed;
  z-index: 20;
  right: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--ink);
  border: 1px solid #6f8d85;
  box-shadow: 5px 5px 0 var(--ai-mid);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}
.toast.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 0.75rem;
  }
  .site-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-copy {
    max-width: 700px;
  }
  .repo-map {
    width: min(100%, 680px);
    justify-self: center;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .section-heading > p {
    max-width: 630px;
  }
  .stage-rail {
    overflow-x: auto;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
  }
  .safeguard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .setup,
  .faq {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .setup-intro {
    max-width: 700px;
  }
  .setup-footnote {
    grid-column: 1;
    margin: -1rem 0 0 2.8rem;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 700px) {
  .stage-panel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.4rem;
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .repo-tracker {
    padding: 0.75rem;
    gap: 0.4rem;
  }
  .repo-tracker > div {
    padding: 0.5rem;
  }
  .repo-tracker code {
    font-size: 0.6rem;
  }
  .repo-tracker strong {
    font-size: 0.65rem;
  }
  .repo-tracker .repo-caption {
    font-size: 0.52rem;
  }
  .decision-note {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .model-details > div {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    grid-template-columns: 1fr auto;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .site-header > .button {
    display: none;
  }
  .hero {
    gap: 2rem;
    padding-block: 2.5rem 3rem;
  }
  h1 {
    font-size: clamp(2.7rem, 11.7vw, 4.2rem);
  }
  h2 {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }
  .hero-lede {
    font-size: 1rem;
  }
  .hero-actions {
    gap: 1.3rem;
  }
  .hero-meta {
    font-size: 0.8rem;
  }
  .repo-map {
    padding: 0.9rem;
    box-shadow: 5px 5px 0 #dfd8cb;
  }
  .map-repositories {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .repo-paper {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 0.5rem;
  }
  .repo-caption {
    grid-column: 1/-1;
    font-size: 0.63rem;
  }
  .repo-paper > strong {
    font-size: 1rem;
  }
  .repo-paper > code {
    grid-column: 1;
    margin: 0.15rem 0 0;
    font-size: 0.65rem;
  }
  .repo-paper > .role-chip {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: end;
  }
  .repo-paper > p {
    grid-column: 2;
    grid-row: 3;
    margin: 0.15rem 0 0;
    text-align: right;
    font-size: 0.68rem;
  }
  .repo-paper br {
    display: none;
  }
  .map-gate {
    font-size: 0.68rem;
  }
  .map-pm {
    font-size: 0.75rem;
  }
  .definition {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    font-size: 0.8rem;
  }
  .section {
    padding-block: 3.5rem;
  }
  .section-heading {
    margin-bottom: 1.8rem;
  }
  .team {
    padding-top: 0;
  }
  .demo-heading {
    flex-wrap: wrap;
    padding: 1rem;
  }
  .demo-heading p {
    font-size: 0.72rem;
  }
  .repo-tracker {
    grid-template-columns: 1fr;
  }
  .repo-tracker > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem 0.6rem;
    align-items: center;
  }
  .repo-tracker .repo-caption {
    grid-column: 1;
    font-size: 0.56rem;
  }
  .repo-tracker code {
    grid-column: 1;
    margin: 0;
  }
  .repo-tracker strong {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
    font-size: 0.65rem;
  }
  .stage-panel {
    padding: 1.3rem 1rem;
  }
  .stage-panel h3 {
    font-size: 1.9rem;
  }
  .stage-controls {
    gap: 0.6rem;
    padding: 0.8rem;
  }
  .stage-controls > span {
    order: -1;
    width: 100%;
    text-align: center;
  }
  .stage-controls .quiet-button {
    flex: 1;
  }
  .restart-button {
    margin-left: 0;
  }
  .safeguard-grid {
    grid-template-columns: 1fr;
  }
  .safeguard-grid h3 {
    margin-top: 1rem;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .team-grid article {
    padding: 1.2rem;
  }
  .team-grid h3 {
    margin-top: 0.75rem;
  }
  .setup-steps > li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .setup-footnote {
    margin-left: 0;
  }
  .prompt-card {
    padding: 0.9rem;
  }
  .prompt-card pre {
    font-size: 0.75rem;
  }
  .copy-button {
    width: 100%;
  }
  .faq {
    gap: 1rem;
  }
  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
