:root {
  --ink: #15150f;
  --paper: #f5f2e8;
  --paper-deep: #ebe7d9;
  --accent: #b93616;
  --accent-deep: #741812;
  --accent-glow: #ff8a4c;
  --muted: #68685d;
  --rule: #d3cfc0;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; padding: 10px 14px; background: var(--accent); color: white; z-index: 20; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.dots { height: 11px; background-image: radial-gradient(var(--rule) 1.6px, transparent 1.6px); background-position: center; background-size: 12px 11px; }

header { padding: 28px 0 22px; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.logo { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: .1em; color: var(--accent); text-decoration: none; text-transform: uppercase; }
.logo-mark { display: inline-block; margin-right: 8px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.nav-links a:hover { color: var(--accent); }

.case-hero { padding: clamp(72px, 9vw, 126px) 0 clamp(58px, 7vw, 92px); }
.kicker { margin-bottom: 24px; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 1100px; font-family: var(--mono); font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -.052em; text-transform: uppercase; }
h1 .accent { color: var(--accent); }
.standfirst { max-width: 790px; margin-top: 34px; font-size: clamp(20px, 2vw, 25px); line-height: 1.45; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 52px; border: 1px solid var(--ink); }
.metric { min-height: 142px; padding: 22px; }
.metric + .metric { border-left: 1px solid var(--ink); }
.metric strong { display: block; font-family: var(--mono); font-size: clamp(27px, 3vw, 39px); line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.metric span { display: block; margin-top: 18px; font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.case-section { display: grid; grid-template-columns: 250px 1fr; gap: clamp(40px, 8vw, 118px); padding: clamp(64px, 8vw, 108px) 0; }
.section-label { position: relative; padding-top: 8px; font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.section-label::before { content: ""; display: block; width: 34px; height: 2px; margin-bottom: 20px; background: var(--accent); }
.section-body { max-width: 780px; }
h2 { max-width: 760px; font-family: var(--mono); font-size: clamp(29px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -.04em; text-transform: uppercase; }
.section-body > p { margin-top: 25px; font-size: 20px; line-height: 1.58; color: #3e3e36; }
.build-list, .outcome-list { margin-top: 30px; border-top: 2px solid var(--ink); list-style: none; }
.build-list li, .outcome-list li { position: relative; padding: 18px 18px 18px 52px; border-bottom: 1px solid var(--rule); font-size: 18px; line-height: 1.5; }
.build-list li::before, .outcome-list li::before { position: absolute; left: 12px; top: 20px; font-family: var(--mono); font-size: 10px; color: var(--accent); }
.build-list li:nth-child(1)::before, .outcome-list li:nth-child(1)::before { content: "01"; }
.build-list li:nth-child(2)::before, .outcome-list li:nth-child(2)::before { content: "02"; }
.build-list li:nth-child(3)::before, .outcome-list li:nth-child(3)::before { content: "03"; }
.build-list li:nth-child(4)::before, .outcome-list li:nth-child(4)::before { content: "04"; }
.build-list li:nth-child(5)::before, .outcome-list li:nth-child(5)::before { content: "05"; }
.build-list li:nth-child(6)::before, .outcome-list li:nth-child(6)::before { content: "06"; }
.build-list li:nth-child(7)::before, .outcome-list li:nth-child(7)::before { content: "07"; }

.workflow-section { padding: clamp(64px, 7vw, 94px) 0; background: var(--ink); color: var(--paper); }
.workflow-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 34px; margin-bottom: 46px; }
.workflow-head h2 { max-width: 820px; }
.workflow-head p { max-width: 260px; font-family: var(--mono); font-size: 9px; line-height: 1.6; color: #b5b0a2; letter-spacing: .05em; text-transform: uppercase; }
.flow { display: flex; align-items: stretch; overflow-x: auto; padding: 5px 0 16px; scrollbar-color: var(--accent) #29291f; }
.flow-step { position: relative; flex: 0 0 174px; min-height: 150px; padding: 19px; border: 1px solid #4a493f; }
.flow-step + .flow-step { margin-left: 30px; }
.flow-step + .flow-step::before { content: "→"; position: absolute; left: -23px; top: 59px; font-family: var(--mono); color: #777467; }
.flow-step.agent { border-color: var(--accent); background: #261812; }
.flow-step.human { border-color: var(--paper); }
.flow-step .type { font-family: var(--mono); font-size: 8px; color: var(--accent-glow); letter-spacing: .09em; text-transform: uppercase; }
.flow-step.auto .type { color: #bf9b83; }
.flow-step.human .type { color: var(--paper); }
.flow-step strong { display: block; margin-top: 28px; font-family: var(--mono); font-size: 13px; line-height: 1.35; text-transform: uppercase; }
.workflow-key { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #36362c; font-family: var(--mono); font-size: 8px; color: #b5b0a2; letter-spacing: .06em; text-transform: uppercase; }
.key-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border: 1px solid currentColor; }
.key-agent { color: var(--accent-glow); }
.key-auto { color: #bf9b83; }
.key-human { color: var(--paper); }
.workflow-description { margin-top: 24px; font-size: 18px; color: #cfcbbe; }

.claim-note { margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--paper-deep); font-family: var(--mono); font-size: 10px; line-height: 1.65; color: var(--muted); }

.final-cta { position: relative; overflow: hidden; padding: clamp(70px, 8vw, 104px) 0; background: linear-gradient(135deg, #c84a1f 0%, #a72d18 58%, #741812 100%); color: white; }
.final-cta::before { content: "P"; position: absolute; right: -2vw; bottom: -21vw; font-family: var(--mono); font-size: 44vw; font-weight: 600; line-height: 1; color: rgba(255,255,255,.06); pointer-events: none; }
.final-inner { position: relative; z-index: 1; }
.final-cta .kicker { color: rgba(255,255,255,.72); }
.final-cta h2 { max-width: 900px; }
.final-cta p { max-width: 650px; margin-top: 24px; font-size: 21px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 32px; padding: 13px 24px; border: 2px solid white; background: white; color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
.btn:hover { border-color: var(--ink); background: var(--ink); color: white; transform: translateY(-2px); }

footer { padding: 34px 0 40px; }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 20px; font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--rule); }

@media (max-width: 900px) {
  .wrap { width: min(100% - 36px, 760px); }
  .case-section { grid-template-columns: 1fr; gap: 30px; }
  .section-label { padding-top: 0; }
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: 112px; }
  .metric + .metric { border-top: 1px solid var(--ink); border-left: 0; }
  .workflow-head { display: block; }
  .workflow-head p { margin-top: 20px; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 520px); }
  header { padding-top: 21px; }
  .logo { font-size: 19px; }
  .nav-links a:not(:last-child) { display: none; }
  .case-hero { padding-top: 62px; }
  h1 { font-size: clamp(36px, 10.5vw, 52px); }
  .standfirst { font-size: 19px; }
  .section-body > p { font-size: 18px; }
  .build-list li, .outcome-list li { padding-left: 45px; font-size: 17px; }
  .workflow-head h2 { font-size: 30px; }
  .flow-step { flex-basis: 150px; min-height: 140px; }
  .foot { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
