:root {
  --paper: #fffefa;
  --paper-deep: #f0ece5;
  --ink: #2a2226;
  --muted: #71686b;
  --rule: #d2cbc1;
  --signal: #a6335d;
  --signal-soft: #f1c5d3;
  --proof: #54705f;
  --proof-soft: #dce8de;
  --boundary: #c28a2c;
  --dark: #332a30;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); }
a { color: inherit; }
button { font: inherit; }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 12px 16px; background: var(--signal); color: white; font-weight: 800; text-decoration: none; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.ops-page { min-height: 100vh; }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr); gap: clamp(44px, 8vw, 128px); align-items: center; width: min(1280px, calc(100% - 48px)); min-height: 670px; margin: 0 auto; padding: 92px 0 64px; }
.hero__copy { max-width: 700px; }
.eyebrow, .section-label { margin: 0 0 16px; color: var(--signal); font: 800 .73rem/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.055em; }
h1 { max-width: 10ch; margin-bottom: 28px; font-size: clamp(3.55rem, 7vw, 7.3rem); line-height: .88; }
h2 { max-width: 12ch; margin-bottom: 0; font-size: clamp(2.75rem, 5vw, 5.4rem); line-height: .92; }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.9rem); line-height: 1.05; letter-spacing: -.035em; }
.hero__lede { max-width: 640px; margin-bottom: 28px; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.28rem); line-height: 1.62; }
.hero__actions, .workspace__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid transparent; cursor: pointer; font-weight: 850; text-decoration: none; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .fixture-tab:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.button--primary { background: var(--signal); color: white; }
.button--primary:hover { background: #852746; }
.button--quiet { border-color: var(--rule); background: transparent; color: var(--ink); }
.button--quiet:hover { background: var(--paper-deep); }
.button--dark { border-color: rgba(255,254,250,.32); color: var(--paper); }
.button--dark:hover { background: rgba(255,254,250,.1); }
.button--light { background: var(--paper); color: var(--ink); }
.boundary-note { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }

.console { border: 1px solid var(--ink); background: var(--dark); color: var(--paper); box-shadow: 16px 16px 0 var(--signal-soft); }
.console__top, .console__footer { display: flex; justify-content: space-between; gap: 16px; padding: 15px 18px; color: rgba(255,254,250,.66); font: 700 .68rem/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: .07em; text-transform: uppercase; }
.console__top { border-bottom: 1px solid rgba(255,254,250,.18); }
.console__footer { border-top: 1px solid rgba(255,254,250,.18); }
.console__footer strong { color: var(--signal-soft); }
.status-pill { display: inline-flex; min-height: 22px; align-items: center; padding: 0 8px; border: 1px solid currentColor; color: var(--muted); font: 800 .62rem/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .07em; }
.status-pill--ready { color: var(--signal-soft); }
.pipeline-preview { padding: 30px 22px 28px; }
.preview-step { display: grid; grid-template-columns: 34px 1fr 20px; gap: 14px; align-items: center; min-height: 74px; border-bottom: 1px solid rgba(255,254,250,.16); }
.preview-step:last-child { border-bottom: 0; }
.step-number { color: var(--signal-soft); font: 800 .68rem/1 "SFMono-Regular", Consolas, monospace; }
.preview-step b, .preview-step small { display: block; }
.preview-step b { font-size: 1rem; }
.preview-step small { margin-top: 5px; color: rgba(255,254,250,.55); font-size: .78rem; }
.preview-step i { color: var(--signal-soft); font-style: normal; font-size: 1.2rem; }
.preview-step--last i { color: #9dd3ae; }

.metric-rail { display: grid; grid-template-columns: repeat(4, 1fr); width: min(1280px, calc(100% - 48px)); margin: 0 auto; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.metric-rail > div { min-height: 116px; padding: 22px 20px; border-right: 1px solid var(--rule); }
.metric-rail > div:last-child { border-right: 0; }
.metric-rail strong, .metric-rail span { display: block; }
.metric-rail strong { color: var(--signal); font: 800 2.1rem/1 "SFMono-Regular", Consolas, monospace; letter-spacing: -.08em; }
.metric-rail span { margin-top: 10px; color: var(--muted); font-size: .78rem; }

.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 116px 0; }
.section-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(260px, .62fr); gap: 60px; align-items: end; margin-bottom: 44px; }
.section-head--compact { margin-bottom: 34px; }
.section-intro { max-width: 440px; margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.7; }

.lab-controls { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.fixture-tab { min-height: 88px; padding: 14px 16px; border: 0; border-right: 1px solid var(--rule); background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.fixture-tab:last-child { border-right: 0; }
.fixture-tab span, .fixture-tab small { display: block; }
.fixture-tab span { color: var(--ink); font-weight: 850; }
.fixture-tab small { margin-top: 7px; font-size: .73rem; }
.fixture-tab.is-active { background: var(--ink); color: var(--paper); }
.fixture-tab.is-active span { color: var(--signal-soft); }

.workspace { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 0; border-bottom: 1px solid var(--ink); }
.workspace__main { padding: 34px 44px 38px 0; }
.workspace__meta, .trace-panel__head { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font: 700 .68rem/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.workspace__meta { margin-bottom: 20px; }
.workspace__meta span:last-child { color: var(--proof); }
.workspace__main h3 { margin-bottom: 12px; }
.workspace__main > p { max-width: 640px; margin-bottom: 28px; color: var(--muted); line-height: 1.65; }
.stage-list { border-top: 1px solid var(--rule); margin-bottom: 30px; }
.stage-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; min-height: 66px; border-bottom: 1px solid var(--rule); }
.stage-index { color: var(--signal); font: 800 .72rem/1 "SFMono-Regular", Consolas, monospace; }
.stage-label b, .stage-label small { display: block; }
.stage-label b { font-size: .92rem; }
.stage-label small { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.stage-state { color: var(--muted); font: 800 .66rem/1 "SFMono-Regular", Consolas, monospace; }
.stage-row.is-running { background: #fbf5f7; }
.stage-row.is-running .stage-state { color: var(--signal); }
.stage-row.is-pass .stage-state { color: var(--proof); }
.stage-row.is-hold .stage-state, .stage-row.is-retry .stage-state { color: var(--boundary); }
.receipt { min-height: 100%; padding: 34px 0 34px 34px; border-left: 1px solid var(--ink); background: var(--paper-deep); }
.receipt__head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.receipt__head .section-label { margin-bottom: 0; }
.receipt h3 { margin: 38px 0 12px; }
.receipt > p { color: var(--muted); font-size: .9rem; line-height: 1.62; }
.receipt__facts { margin: 30px 0 0; border-top: 1px solid var(--rule); }
.receipt__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.receipt__facts dt, .receipt__facts dd { margin: 0; font: 700 .69rem/1.3 "SFMono-Regular", Consolas, monospace; }
.receipt__facts dt { color: var(--muted); text-transform: uppercase; }
.receipt__facts dd { color: var(--ink); text-align: right; }
.receipt__facts dd.is-signal { color: var(--signal); }
.receipt__facts dd.is-proof { color: var(--proof); }
.trace-panel { margin-top: 24px; border: 1px solid var(--ink); background: var(--dark); color: var(--paper); }
.trace-panel__head { padding: 14px 18px; border-bottom: 1px solid rgba(255,254,250,.18); color: rgba(255,254,250,.62); }
.trace-panel__head span:last-child { color: var(--signal-soft); }
.trace-log { min-height: 122px; max-height: 226px; overflow: auto; margin: 0; padding: 16px 18px 18px 42px; font: .76rem/1.7 "SFMono-Regular", Consolas, monospace; }
.trace-log li { padding-left: 7px; color: rgba(255,254,250,.75); }
.trace-log li::marker { color: var(--signal-soft); }
.trace-log li strong { color: #9dd3ae; }
.trace-log .trace-hold strong { color: #f0c77a; }
.trace-empty { color: rgba(255,254,250,.45); }

.section--paper { width: 100%; max-width: none; padding-right: max(24px, calc((100% - 1180px) / 2)); padding-left: max(24px, calc((100% - 1180px) / 2)); background: var(--paper-deep); }
.benchmark-grid { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: stretch; max-width: 920px; }
.benchmark-block { display: grid; grid-template-columns: auto 1fr; gap: 7px 15px; padding: 26px; border: 1px solid var(--rule); }
.benchmark-block--before { background: var(--paper); }
.benchmark-block--after { border-color: var(--proof); background: var(--proof-soft); }
.benchmark-label { grid-column: 1 / -1; color: var(--muted); font: 700 .67rem/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: .05em; text-transform: uppercase; }
.benchmark-block strong { color: var(--ink); font: 800 4.2rem/.9 "SFMono-Regular", Consolas, monospace; letter-spacing: -.12em; }
.benchmark-block > span:not(.benchmark-label) { align-self: end; color: var(--muted); font-size: .8rem; }
.benchmark-block p { grid-column: 1 / -1; margin: 14px 0 0; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.benchmark-arrow { display: grid; place-items: center; color: var(--signal); font-size: 2rem; }

.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { padding: 17px 15px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
thead th { color: var(--muted); font: 700 .66rem/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
tbody th { min-width: 130px; font-weight: 850; }
tbody td { color: var(--muted); }
.table-status { font: 800 .66rem/1.2 "SFMono-Regular", Consolas, monospace; }
.table-status--pass, .table-status--dedupe { color: var(--proof); }
.table-status--hold, .table-status--retry { color: var(--boundary); }

.section--dark { width: 100%; max-width: none; padding-right: max(24px, calc((100% - 1180px) / 2)); padding-left: max(24px, calc((100% - 1180px) / 2)); background: var(--dark); color: var(--paper); }
.section--dark .section-label { color: var(--signal-soft); }
.section--dark .section-intro { color: rgba(255,254,250,.68); }
.architecture-flow { display: grid; grid-template-columns: 1fr 42px 1fr 42px 1fr 42px 1fr; align-items: center; border-top: 1px solid rgba(255,254,250,.25); border-bottom: 1px solid rgba(255,254,250,.25); }
.architecture-flow > div { min-height: 144px; padding: 22px 16px 20px 0; }
.architecture-flow > div + div { padding-left: 16px; }
.architecture-flow span, .architecture-flow strong, .architecture-flow small { display: block; }
.architecture-flow span { color: var(--signal-soft); font: 800 .65rem/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; }
.architecture-flow strong { margin-top: 28px; font-size: 1.05rem; }
.architecture-flow small { margin-top: 6px; color: rgba(255,254,250,.54); font-size: .72rem; line-height: 1.4; }
.architecture-flow > i { color: var(--signal-soft); font-style: normal; text-align: center; font-size: 1.35rem; }
.architecture-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 30px; }
.architecture-notes p { margin: 0; color: rgba(255,254,250,.65); font-size: .84rem; line-height: 1.6; }
.architecture-notes b { color: var(--paper); }

.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.boundary-grid > div { padding: 28px 30px 0 0; }
.boundary-grid > div + div { padding-right: 0; padding-left: 30px; border-left: 1px solid var(--rule); }
.boundary-grid h3 { font-size: 1.25rem; }
.boundary-grid ul { margin: 0; padding: 0; list-style: none; }
.boundary-grid li { padding: 12px 0 12px 17px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .86rem; line-height: 1.5; }
.boundary-grid li::before { display: inline-block; width: 10px; margin-left: -17px; color: var(--proof); content: "↳"; font-weight: 900; }

.final-cta { width: 100%; max-width: none; padding-right: max(24px, calc((100% - 1180px) / 2)); padding-left: max(24px, calc((100% - 1180px) / 2)); background: var(--signal); color: white; }
.final-cta .section-label { color: var(--signal-soft); }
.final-cta h2 { max-width: 10ch; margin-bottom: 22px; }
.final-cta p:not(.section-label) { max-width: 620px; color: rgba(255,255,255,.78); font-size: 1rem; line-height: 1.65; }
.footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 28px max(24px, calc((100% - 1180px) / 2)); background: var(--ink); color: rgba(255,254,250,.64); font-size: .76rem; }
.footer a:first-child { color: var(--paper); font-weight: 850; text-decoration: none; }
.footer a:last-child { text-decoration: none; }
.footer a:hover { color: var(--signal-soft); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 78px; }
  .hero__copy { max-width: 760px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .workspace { grid-template-columns: 1fr; }
  .workspace__main { padding-right: 0; }
  .receipt { min-height: auto; padding: 30px 0; border-top: 1px solid var(--ink); border-left: 0; }
  .benchmark-grid { grid-template-columns: 1fr; gap: 16px; }
  .benchmark-arrow { transform: rotate(90deg); }
}
@media (max-width: 650px) {
  .hero, .section, .metric-rail { width: min(100% - 32px, 1180px); }
  .hero { padding-top: 58px; padding-bottom: 50px; }
  h1 { font-size: clamp(3.45rem, 16vw, 5.2rem); }
  h2 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .console { box-shadow: 8px 8px 0 var(--signal-soft); }
  .metric-rail { grid-template-columns: repeat(2, 1fr); }
  .metric-rail > div:nth-child(2) { border-right: 0; }
  .metric-rail > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .section { padding: 82px 0; }
  .lab-controls { grid-template-columns: repeat(2, 1fr); }
  .fixture-tab:nth-child(2) { border-right: 0; }
  .fixture-tab:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .workspace__main { padding-top: 26px; }
  .architecture-flow { grid-template-columns: 1fr; padding: 0; }
  .architecture-flow > div, .architecture-flow > div + div { min-height: 0; padding: 20px 0; border-bottom: 1px solid rgba(255,254,250,.18); }
  .architecture-flow > i { padding: 8px; transform: rotate(90deg); }
  .architecture-flow > i:last-child { display: none; }
  .architecture-notes, .boundary-grid { grid-template-columns: 1fr; gap: 0; }
  .boundary-grid > div, .boundary-grid > div + div { padding: 26px 0 0; border-left: 0; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
