:root {
  color-scheme: dark;
  --ink: #10151b;
  --paper: #f2f0ea;
  --gold: #d9b68b;
  --muted: #bbc3c5;
  --line: #41494e;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 1rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .3em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.wrap { width: min(1600px, 100% - clamp(2rem, 11vw, 13rem)); margin-inline: auto; }
.site-header { padding: 1.1rem clamp(1rem, 4vw, 4.5rem); display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font: 400 1.65rem/1 var(--serif); letter-spacing: -.045em; white-space: nowrap; }
.brand em { color: var(--gold); font-weight: 400; margin-left: .18em; }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; text-decoration: none; }
.site-header nav a:hover { color: var(--gold); }
.skip-link { position: absolute; z-index: 10; left: 1rem; top: -6rem; padding: .8rem 1rem; color: var(--ink); background: var(--paper); }
.skip-link:focus { top: 1rem; }
.eyebrow { margin: 0 0 1.5rem; color: var(--gold); font-size: .875rem; letter-spacing: .14em; line-height: 1.7; text-transform: uppercase; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; text-wrap: balance; }
h1 em, h2 em { color: var(--gold); font-weight: 400; }
h1 { margin-bottom: 2rem; font-size: clamp(3.1rem, 6.6vw, 7.6rem); line-height: .98; }
h2 { margin-bottom: 0; font-size: clamp(2.5rem, 4.9vw, 5.4rem); line-height: 1.05; }
h3 { margin-bottom: .85rem; font-weight: 500; font-size: 1rem; line-height: 1.5; }
p { margin-bottom: 1.25rem; }
.hero { padding-block: clamp(4rem, 8vw, 9rem) clamp(5rem, 9vw, 10rem); display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(15rem, .8fr); align-items: end; gap: clamp(2rem, 6vw, 7rem); }
.hero-intro { max-width: 40rem; font: 400 clamp(1.25rem, 1.9vw, 1.65rem)/1.55 var(--serif); color: var(--paper); }
.hero-note { color: var(--muted); max-width: 38rem; font-size: .95rem; margin-bottom: 0; }
.case-index { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.case-index .eyebrow { color: var(--muted); }
.case-index a { display: block; padding: 1.25rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.case-index a span { display: block; font: 400 1.8rem/1.15 var(--serif); }
.case-index small { display: block; margin-top: .5rem; font-size: .875rem; color: var(--muted); }
.case-index a:hover span { color: var(--gold); }
.case { padding-block: clamp(3.5rem, 6vw, 7rem); border-top: 1px solid var(--line); }
.case-header { margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.case-context, .case-close { display: grid; grid-template-columns: 1fr 1.45fr; gap: clamp(2rem, 6vw, 7rem); }
.case-context { margin-bottom: 2.8rem; }
.case-context p, .case-close p { max-width: 61ch; color: var(--muted); }
.case-context h3, .case-close h3 { color: var(--gold); }
.case-close { margin-top: 2.5rem; }
.case-close p:last-child { margin-bottom: 0; }
.tools p { font-size: .95rem; }
.review-demo { padding: clamp(1rem, 2.8vw, 3rem); background: var(--paper); color: var(--ink); }
.review-demo :focus-visible { outline-color: #6e4024; }
.demo-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; }
.demo-heading .eyebrow { color: #5d5142; margin-bottom: .65rem; }
.demo-heading h3, .document-flow > h3, .agent-flow > h3 { font: 400 clamp(1.7rem, 2.5vw, 2.7rem)/1.12 var(--serif); letter-spacing: -.025em; }
#flag-filter { flex: none; padding: .75rem 1rem; min-height: 48px; color: var(--ink); background: transparent; border: 1px solid #696963; border-radius: 0; font-size: .875rem; }
#flag-filter:hover, #flag-filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
#flag-filter:disabled { opacity: .65; }
.illustration-label { margin-top: 1.5rem; margin-bottom: .6rem; font-weight: 600; }
.table-note, .demo-footnote { max-width: 115ch; font-size: .875rem; color: #4b5155; }
.review-status { margin-block: 1.4rem .8rem; font-size: .875rem; font-weight: 500; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .875rem; font-variant-numeric: tabular-nums; }
thead { border-top: 1px solid #777d7d; border-bottom: 1px solid #777d7d; }
th, td { padding: 1rem .65rem; text-align: right; vertical-align: top; overflow-wrap: anywhere; }
thead th { font-weight: 500; font-size: .875rem; }
th:first-child { text-align: left; width: 25%; }
th:nth-child(2) { width: 6%; }
tbody th { font-weight: 500; }
tbody tr { border-bottom: 1px solid #c8cbc7; }
td small, th small { display: block; margin-top: .35rem; font-size: .8125rem; line-height: 1.5; font-weight: 400; color: #4b5155; }
.item-name { display: block; }
.flag-label { display: block; margin-top: .65rem; font-size: .8125rem; font-weight: 600; line-height: 1.5; color: #823528; }
.flagged { background: #eae0d2; }
.loss .margin { color: #823528; font-weight: 600; }
.loss .margin small { color: #823528; font-weight: 400; }
.margin { white-space: normal; }
.cell-label { display: none; }
tr[hidden] { display: none !important; }
.demo-footnote { margin: 1.3rem 0 0; }
.document-flow, .agent-flow { padding: clamp(1.25rem, 3.2vw, 3.5rem); border: 1px solid var(--line); }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 6rem); margin-top: 2.5rem; }
.comparison h4 { font-size: 1rem; font-weight: 500; margin-bottom: 1.5rem; }
.before { color: var(--muted); }
.after h4 { color: var(--gold); }
.comparison ol { margin: 0; padding: 0; list-style: none; }
.comparison li { position: relative; border-top: 1px solid var(--line); padding: 1.2rem 0; min-height: 5rem; }
.comparison li + li::before { content: "↓"; position: absolute; left: .5rem; top: -.9rem; background: var(--ink); padding-inline: .5rem; color: var(--gold); }
.flow-caption, .concept-note { color: var(--muted); font-size: .875rem; max-width: 80ch; }
.flow-caption { border-top: 1px solid var(--line); margin: 2rem 0 0; padding-top: 1.25rem; }
.agent-steps { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.agent-steps li { padding: 1.5rem; border-top: 1px solid var(--line); position: relative; display: grid; grid-template-columns: .65fr 1fr 1.35fr; align-items: baseline; gap: 1.5rem; }
.agent-steps li:last-child { border-bottom: 1px solid var(--line); }
.step-kind { display: block; color: var(--muted); font-size: .875rem; }
.agent-steps strong { font-weight: 500; display: block; font-size: 1.05rem; }
.agent-steps p { color: var(--muted); font-size: .875rem; margin: 0; }
.agent-steps .human-step { background: #232c32; box-shadow: inset 0 3px var(--gold); }
.human-step .step-kind { color: var(--gold); }
.agent-steps li::after { content: "↓"; color: var(--gold); position: absolute; left: 1.5rem; bottom: -.7rem; z-index: 1; background: var(--ink); line-height: 1; padding: .25rem .5rem; }
.agent-steps li:last-child::after { display: none; }
.contact { padding-block: clamp(4rem, 8vw, 8rem) 2rem; border-top: 1px solid var(--line); }
.contact > p:not(.eyebrow):not(.privacy-note) { max-width: 60ch; color: var(--muted); margin-top: 2rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; margin-block: 2rem 5rem; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: .5rem; color: var(--gold); font-size: 1.05rem; overflow-wrap: anywhere; }
.footer-line { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; color: var(--muted); font-size: .875rem; }
.footer-line a { display: inline-flex; min-height: 44px; align-items: center; }
.privacy-note { font-size: .8125rem; color: var(--muted); margin: 1rem 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; }
  .case-index { max-width: 42rem; }
  .case-context, .case-close { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .demo-heading { align-items: start; flex-direction: column; }
  .agent-steps li { grid-template-columns: 1fr 1.5fr; }
  .agent-steps li p { grid-column: 2; }
}
@media (max-width: 900px) {
  .case-context, .case-close, .comparison { grid-template-columns: 1fr; }
  .case-context { gap: 1.25rem; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: 1fr 1fr; padding: 1.2rem 0; gap: 1rem; border-top: 1px solid #b1b5b2; border-bottom: 0; }
  tbody tr.flagged { margin-inline: -.4rem; padding-inline: .4rem; }
  tbody th, tbody td { width: auto; text-align: left; padding: 0; min-width: 0; }
  tbody th:first-child { width: auto; grid-column: 1 / -1; }
  tbody td:last-child { grid-column: 1 / -1; }
  .cell-label { display: block; font-size: .8125rem; font-weight: 400; color: #4b5155; margin-bottom: .25rem; }
  .review-status { border-top: 1px solid #777d7d; padding-top: 1rem; }
  .agent-steps li { grid-template-columns: 1fr; gap: .65rem; }
  .agent-steps li p { grid-column: auto; }
}
@media (min-width: 601px) and (max-width: 900px) {
  tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  tbody tr { padding: 1.2rem .8rem; border: 1px solid #b1b5b2; }
  tbody tr.flagged { margin-inline: 0; padding-inline: .8rem; }
}
@media (max-width: 440px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 0; }
  .site-header nav { width: 100%; justify-content: space-between; }
  .hero { padding-top: 3rem; }
  h1 { font-size: clamp(2.9rem, 12vw, 3.8rem); }
  .eyebrow { letter-spacing: .09em; }
  .review-demo { margin-inline: -.25rem; }
  #flag-filter { width: 100%; text-align: center; }
  .contact-links { display: grid; gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
