:root {
  --ink: #111820;
  --paper: #f3f0e8;
  --paper-light: #fbfaf6;
  --coral: #b83a22;
  --blue: #244fb8;
  --green: #18795b;
  --rule: #817c72;
  --muted: #5f5b54;
  --display: "Arial Narrow", "Aptos Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: Aptos, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --page: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { color: var(--paper-light); background: var(--blue); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: var(--page);
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.wordmark { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; width: max-content; font-weight: 750; text-decoration: none; }
.wordmark-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); font: 800 .72rem/1 var(--mono); }
nav { display: flex; gap: 28px; font-size: .92rem; }
nav a, .header-contact { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
nav a:hover, .header-contact:hover { text-decoration: underline; }
.header-contact { justify-self: end; font-weight: 700; }

main > section { width: var(--page); margin-inline: auto; }
.hero {
  min-height: 680px;
  padding: clamp(72px, 9vw, 126px) 0 92px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}
.status { display: flex; align-items: center; gap: 10px; margin: 0 0 30px; font-weight: 700; font-size: .88rem; }
.status span { width: 11px; height: 11px; border: 2px solid var(--coral); border-radius: 50%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-stretch: condensed; letter-spacing: -.04em; }
h1 { max-width: 720px; margin-bottom: 28px; font-size: clamp(3.8rem, 7.4vw, 7.2rem); line-height: .88; }
.hero-intro { max-width: 620px; margin-bottom: 34px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 20px; color: #fff; background: var(--ink); border: 2px solid var(--ink); font-weight: 750; text-decoration: none; }
.button:hover { color: var(--ink); background: transparent; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }
.stage-note { margin: 18px 0 0; color: var(--muted); font-size: .88rem; }

.preflight-stack { position: relative; min-height: 490px; isolation: isolate; }
.sheet { position: absolute; padding: 24px; background: var(--paper-light); border: 1px solid var(--ink); box-shadow: 8px 9px 0 rgba(17,24,32,.13); }
.sheet-header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 34px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); font: 700 .7rem/1.2 var(--mono); }
.sheet p { margin-bottom: 0; }
.sheet-title { font: 800 1.35rem/1.1 var(--display); }
.sheet-brief { top: 2px; right: 15%; width: 68%; min-height: 250px; transform: rotate(2deg); }
.sheet-brief mark { padding: 0 3px; background: rgba(36,79,184,.16); }
.sheet-subtitle { z-index: 2; top: 146px; left: 0; width: 77%; min-height: 250px; transform: rotate(-1.5deg); }
.subtitle-row { display: grid; grid-template-columns: 105px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dotted var(--rule); }
.subtitle-row time, .evidence { font: .72rem/1.4 var(--mono); }
.subtitle-row p { margin: 0; }
.subtitle-row.flagged { border-left: 4px solid var(--coral); padding-left: 12px; }
del { color: #6d2a1e; text-decoration-thickness: 2px; }
ins { color: #0d6147; text-decoration: none; border-bottom: 2px solid var(--green); }
.sheet-review { z-index: 3; right: 0; bottom: 0; width: 62%; min-height: 180px; transform: rotate(1deg); border-left: 5px solid var(--coral); }
.sheet-review .sheet-header { margin-bottom: 20px; }
.sheet-review strong { color: #8f2c19; }
.pin { position: absolute; padding: 5px 8px; color: #fff; font: 700 .64rem/1 var(--mono); }
.pin-blue { right: -9px; bottom: 18px; background: var(--blue); }
.pin-coral { right: -9px; top: 78px; background: var(--coral); }

.section-heading > p, .finding-id, .contact-kicker { margin-bottom: 10px; font: 750 .74rem/1.2 var(--mono); }
.section-heading h2 { max-width: 720px; margin-bottom: 0; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .95; }
.failure-strip { padding: 74px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.failure-strip .section-heading { display: grid; grid-template-columns: 1fr 2fr; align-items: end; margin-bottom: 50px; }
.failure-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.failure-list li { padding: 0 30px; border-left: 1px solid var(--rule); }
.failure-list li:first-child { padding-left: 0; border-left: 0; }
.failure-list strong { display: block; margin-bottom: 8px; font-size: 1.08rem; }
.failure-list span { color: var(--muted); }

.workflow { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; padding: 120px 0; }
.workflow-steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.workflow-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--rule); }
.workflow-steps li:last-child { border-bottom: 1px solid var(--rule); }
.step-number { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink); font: 700 .9rem/1 var(--mono); }
.workflow-steps h3 { margin-bottom: 8px; font-size: 1.18rem; }
.workflow-steps p { max-width: 590px; margin-bottom: 0; color: var(--muted); }

.walkthrough { width: 100%; padding: 90px max(20px, calc((100% - 1180px) / 2)) 104px; color: #fff; background: var(--ink); }
.walkthrough-heading { max-width: 1180px; margin: 0 auto 52px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.walkthrough .section-heading h2 { max-width: 630px; }
.demo-label { max-width: 360px; margin: 0; padding: 10px 13px; border: 1px solid #bcbab4; font: .73rem/1.4 var(--mono); }
.review-board { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 280px 1fr; border: 1px solid #9c9a94; background: #171f28; }
.asset-rail { border-right: 1px solid #696d70; }
.rail-title { display: flex; justify-content: space-between; margin: 0; padding: 20px; border-bottom: 1px solid #696d70; font-weight: 700; }
.rail-title span { color: #c9c6bd; font: .7rem var(--mono); }
.asset-rail ul { margin: 0; padding: 0; list-style: none; }
.asset { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid #434950; }
.asset.active { padding-left: 16px; border-left: 4px solid #7fa0ff; background: #202b38; }
.file-type { color: #bfc7d1; font: .68rem var(--mono); }
.asset strong, .asset small { display: block; }
.asset small { margin-top: 3px; color: #bfc1bd; }
.review-detail { padding: clamp(22px, 4vw, 48px); }
.finding-header { display: flex; justify-content: space-between; gap: 30px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid #696d70; }
.finding-header h3 { max-width: 600px; margin: 0; font: 750 clamp(1.6rem, 3vw, 2.6rem)/1.05 var(--display); }
.finding-id { color: #bfc7d1; }
.decision-badge { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 700; font-size: .8rem; }
.decision-badge span { display: grid; place-items: center; width: 24px; height: 24px; color: #fff; background: var(--coral); }
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 34px 0; border: 1px solid #696d70; }
.diff-grid article { padding: 24px; }
.diff-grid article + article { border-left: 1px solid #696d70; }
.diff-header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 34px; color: #c5c8cc; font: .7rem var(--mono); }
.diff-grid p { margin-bottom: 0; font-size: 1.2rem; }
.diff-grid mark { padding: 2px 4px; color: #fff; background: #763426; border-bottom: 2px solid #ff8068; }
.review-note { display: grid; grid-template-columns: 34px 1fr; gap: 18px; margin-bottom: 32px; }
.annotation-mark { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: var(--blue); font: 700 .78rem var(--mono); }
.review-note h4 { margin-bottom: 6px; }
.review-note p { max-width: 680px; margin-bottom: 0; color: #cfd2d4; }
.source-trail { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 20px; border-top: 1px solid #696d70; color: #c7c8c6; font-size: .75rem; }
.source-trail code { padding: 4px 7px; color: #fff; background: #293542; }

.claude-role { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding: 120px 0; border-bottom: 1px solid var(--rule); }
.role-copy { font-size: 1.15rem; }
.role-copy p { max-width: 680px; }
.role-copy p:last-child { margin-bottom: 0; }
.scope { padding: 110px 0; }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 52px 0 30px; border-top: 1px solid var(--ink); }
.scope-grid div { padding: 28px 30px 28px 0; border-bottom: 1px solid var(--rule); }
.scope-grid div:nth-child(even) { padding-left: 30px; border-left: 1px solid var(--rule); }
.scope-grid dt { margin-bottom: 10px; font-weight: 750; }
.scope-grid dd { margin: 0; color: var(--muted); }
.boundary-note { max-width: 850px; margin: 0; padding-left: 16px; border-left: 4px solid var(--coral); }

.roadmap { padding: 110px 0; border-top: 1px solid var(--ink); }
.roadmap-track { display: grid; grid-template-columns: repeat(3, 1fr); margin: 58px 0 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.roadmap-track li { position: relative; padding: 30px 34px 0 0; }
.roadmap-track li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; }
.roadmap-track li.current::before { background: var(--coral); }
.roadmap-track span { font: 700 .72rem var(--mono); }
.roadmap-track h3 { margin: 17px 0 8px; }
.roadmap-track p { max-width: 310px; color: var(--muted); }

.contact { width: 100%; padding: 100px max(20px, calc((100% - 1180px) / 2)); color: #fff; background: var(--blue); }
.contact h2 { max-width: 820px; margin-bottom: 26px; font-size: clamp(3rem, 7vw, 6.7rem); line-height: .9; }
.contact > p:not(.contact-kicker, .email-label) { max-width: 700px; margin-bottom: 30px; font-size: 1.15rem; }
.button-light { color: var(--ink); background: #fff; border-color: #fff; }
.button-light:hover { color: #fff; border-color: #fff; }
.email-label { margin: 20px 0 0; font-size: .9rem; }
.email-label span { font-family: var(--mono); user-select: text; }
footer { width: var(--page); min-height: 110px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: center; font-size: .82rem; }
footer p { margin: 0; color: var(--muted); }

.error-page {
  width: min(880px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 60px 0;
}
.error-page h1 { max-width: 820px; }
.error-page p:not(.status) { max-width: 520px; margin-bottom: 30px; font-size: 1.1rem; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .preflight-stack { max-width: 620px; width: 100%; margin: 0 auto; }
  .failure-strip .section-heading, .workflow, .claude-role { grid-template-columns: 1fr; gap: 42px; }
  .failure-list { grid-template-columns: 1fr; }
  .failure-list li, .failure-list li:first-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .review-board { grid-template-columns: 1fr; }
  .asset-rail { border-right: 0; border-bottom: 1px solid #696d70; }
  .asset-rail ul { display: grid; grid-template-columns: 1fr 1fr; }
  .walkthrough-heading { display: block; }
  .demo-label { margin-top: 30px; }
  footer { grid-template-columns: 1fr 1fr; padding: 30px 0; }
  footer > p:first-of-type { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 600px) {
  :root { --page: calc(100% - 28px); }
  .site-header { min-height: 66px; }
  .header-contact { font-size: .78rem; }
  .wordmark > span:last-child { display: none; }
  .hero { padding: 62px 0 68px; gap: 54px; }
  h1 { font-size: clamp(3.25rem, 18vw, 4.6rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .preflight-stack { min-height: 460px; }
  .sheet { padding: 18px; }
  .sheet-header { margin-bottom: 22px; }
  .sheet-brief { right: 2%; width: 88%; }
  .sheet-subtitle { top: 140px; width: 96%; }
  .sheet-review { width: 87%; }
  .subtitle-row { grid-template-columns: 82px 1fr; gap: 8px; }
  .failure-strip, .workflow, .claude-role, .scope, .roadmap { padding: 76px 0; }
  .section-heading h2 { font-size: clamp(2.5rem, 14vw, 3.7rem); }
  .workflow-steps li { grid-template-columns: 44px 1fr; gap: 14px; }
  .step-number { width: 38px; height: 38px; }
  .walkthrough { padding-top: 70px; padding-bottom: 72px; }
  .asset-rail ul { grid-template-columns: 1fr; }
  .finding-header { display: block; }
  .decision-badge { margin-top: 20px; }
  .diff-grid { grid-template-columns: 1fr; }
  .diff-grid article + article { border-left: 0; border-top: 1px solid #696d70; }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-grid div:nth-child(even) { padding-left: 0; border-left: 0; }
  .roadmap-track { grid-template-columns: 1fr; border-top: 0; border-left: 3px solid var(--ink); }
  .roadmap-track li { padding: 0 0 38px 26px; }
  .roadmap-track li::before { top: 3px; left: -9px; }
  .contact { padding-top: 76px; padding-bottom: 76px; }
  footer { grid-template-columns: 1fr; gap: 16px; }
  footer > p:first-of-type { grid-column: auto; grid-row: auto; }
  .error-page { width: calc(100% - 28px); }
}

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

@media (forced-colors: active) {
  .status span, .roadmap-track li::before { forced-color-adjust: none; }
  mark { color: CanvasText; background: Canvas; outline: 2px solid LinkText; }
}
