:root {
  --lab-ink: #2a2226;
  --lab-paper: #fffefa;
  --lab-signal: #a6335d;
  --lab-proof: #54705f;
  --lab-boundary: #c28a2c;
  --lab-rule: #d2cbc1;
  --lab-muted: #6d6464;
  --lab-blue: #315b72;
  --lab-soft-blue: #e9f0f2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--lab-ink); background: var(--lab-paper); font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; line-height: 1.55; }
button, a { font: inherit; }
a { color: inherit; }
.skip-link { position: absolute; left: 14px; top: -60px; z-index: 100; padding: 10px 14px; color: var(--lab-paper); background: var(--lab-ink); }
.skip-link:focus { top: 14px; }
.lab-page { overflow: hidden; }
.hero, .section, .fact-rail { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: clamp(32px, 7vw, 96px); align-items: center; padding: clamp(62px, 10vw, 132px) 0 68px; }
.eyebrow, .section-label, .passport__head, .passport__route, .passport__foot, .workspace__meta, .trace-panel__head, th, dt, .stamp { font-family: "SFMono-Regular", Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; }
.eyebrow, .section-label { margin: 0 0 14px; color: var(--lab-proof); font-size: .7rem; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(2.9rem, 7vw, 6.5rem); line-height: .94; letter-spacing: -.065em; font-weight: 850; }
h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -.045em; }
h3 { margin-bottom: 8px; line-height: 1.08; }
.hero__lede { max-width: 650px; color: var(--lab-muted); font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.boundary-note { max-width: 610px; margin: 28px 0 0; padding-left: 14px; border-left: 3px solid var(--lab-boundary); color: var(--lab-muted); font-size: .9rem; }
.hero__actions, .workspace__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid transparent; border-radius: 2px; text-decoration: none; cursor: pointer; font-family: "SFMono-Regular", Consolas, monospace; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transition: transform .18s ease, background-color .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .fixture-tab:focus-visible { outline: 3px solid var(--lab-boundary); outline-offset: 3px; }
.button--primary { color: var(--lab-paper); background: var(--lab-signal); }
.button--primary:hover { background: #842447; }
.button--quiet { color: var(--lab-ink); border-color: var(--lab-rule); background: transparent; }
.button--quiet:hover { background: var(--lab-soft-blue); }
.button--dark { color: var(--lab-paper); border-color: rgba(255,254,250,.3); }
.button--dark:hover { background: rgba(255,254,250,.1); }
.button--light { color: var(--lab-ink); background: var(--lab-paper); }
.passport { border: 1px solid var(--lab-ink); background: var(--lab-ink); color: var(--lab-paper); box-shadow: 14px 14px 0 var(--lab-rule); transform: rotate(1.3deg); }
.passport__head, .passport__foot { display: flex; justify-content: space-between; gap: 16px; padding: 15px 18px; font-size: .66rem; }
.passport__head { border-bottom: 1px solid rgba(255,254,250,.25); color: rgba(255,254,250,.7); }
.passport__body { display: flex; min-height: 250px; align-items: center; gap: 22px; padding: 44px 30px; background: linear-gradient(135deg, #315b72, #1d3a4b); }
.passport__glyph { display: grid; width: 105px; height: 105px; place-items: center; border: 1px solid rgba(255,254,250,.75); border-radius: 50%; color: #f6e3a8; font-size: 5rem; line-height: 1; }
.passport__body b { display: block; font-size: 1.7rem; letter-spacing: -.04em; }
.passport__body small { display: block; margin-top: 5px; color: rgba(255,254,250,.7); }
.passport__route { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 18px; color: #f6e3a8; font-size: .62rem; }
.passport__route i { color: rgba(255,254,250,.45); font-style: normal; }
.passport__foot { color: rgba(255,254,250,.6); border-top: 1px solid rgba(255,254,250,.25); }
.passport__foot strong { color: #f6e3a8; }
.stamp { display: inline-flex; align-items: center; justify-content: center; min-width: 70px; padding: 4px 7px; border: 1px solid currentColor; border-radius: 2px; font-size: .6rem; font-weight: 900; line-height: 1.2; }
.stamp--ready { color: #a8d0b5; }
.fact-rail { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--lab-rule); }
.fact-rail div { padding: 22px 18px; border-right: 1px solid var(--lab-rule); }
.fact-rail div:last-child { border-right: 0; }
.fact-rail strong { display: block; color: var(--lab-signal); font-family: "SFMono-Regular", Consolas, monospace; font-size: 2rem; line-height: 1; }
.fact-rail span { display: block; margin-top: 7px; color: var(--lab-muted); font-size: .78rem; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-head > div { max-width: 670px; }
.section-intro { max-width: 390px; margin: 0; color: var(--lab-muted); }
.fixture-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--lab-rule); }
.fixture-tab { min-height: 86px; padding: 16px; border: 0; border-right: 1px solid var(--lab-rule); color: var(--lab-muted); background: transparent; text-align: left; cursor: pointer; }
.fixture-tab:last-child { border-right: 0; }
.fixture-tab span, .fixture-tab small { display: block; }
.fixture-tab span { color: var(--lab-ink); font-weight: 800; }
.fixture-tab small { margin-top: 6px; font-family: "SFMono-Regular", Consolas, monospace; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; }
.fixture-tab.is-active { color: var(--lab-paper); background: var(--lab-ink); }
.fixture-tab.is-active span { color: var(--lab-paper); }
.workspace { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr); gap: 0; border: 1px solid var(--lab-ink); border-top: 0; }
.workspace__main { padding: clamp(25px, 4vw, 48px); }
.workspace__meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; color: var(--lab-muted); font-size: .63rem; }
.workspace__main h3 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
.workspace__main > p { max-width: 680px; color: var(--lab-muted); }
.stage-list { margin-top: 28px; border-top: 1px solid var(--lab-rule); }
.stage-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; min-height: 63px; border-bottom: 1px solid var(--lab-rule); }
.stage-index { color: var(--lab-signal); font-family: "SFMono-Regular", Consolas, monospace; font-size: .75rem; }
.stage-label b, .stage-label small { display: block; }
.stage-label small { color: var(--lab-muted); font-size: .78rem; }
.stage-state { color: var(--lab-muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: .62rem; font-weight: 800; letter-spacing: .06em; }
.stage-row.is-pass .stage-state { color: var(--lab-proof); }
.stage-row.is-hold .stage-state { color: var(--lab-boundary); }
.stage-row.is-dedupe .stage-state { color: var(--lab-blue); }
.stage-row.is-skip { opacity: .5; }
.receipt { padding: clamp(25px, 4vw, 42px); color: var(--lab-paper); background: var(--lab-ink); }
.receipt__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.receipt .section-label { color: #f6e3a8; }
.receipt h3 { margin-top: 45px; font-size: 1.75rem; }
.receipt > p { min-height: 96px; color: rgba(255,254,250,.7); }
.receipt__facts { margin: 0; border-top: 1px solid rgba(255,254,250,.25); }
.receipt__facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,254,250,.25); }
.receipt dt { color: rgba(255,254,250,.55); font-size: .58rem; }
.receipt dd { margin: 0; color: #f6e3a8; font-family: "SFMono-Regular", Consolas, monospace; font-size: .66rem; text-align: right; }
.trace-panel { margin-top: 18px; border: 1px solid var(--lab-ink); background: var(--lab-soft-blue); }
.trace-panel__head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--lab-ink); font-size: .63rem; }
.trace-panel__head span:last-child { color: var(--lab-proof); }
.trace-log { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.trace-log li { display: grid; grid-template-columns: 32px 120px 1fr; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(42,34,38,.15); font-size: .82rem; }
.trace-log li:last-child { border-bottom: 0; }
.trace-log .trace-no { color: var(--lab-signal); font-family: "SFMono-Regular", Consolas, monospace; font-size: .65rem; }
.trace-log .trace-kind { color: var(--lab-muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: .62rem; text-transform: uppercase; }
.trace-empty { display: block !important; color: var(--lab-muted); }
.section--paper { width: 100%; padding-inline: max(20px, calc((100% - 1180px) / 2)); background: #f1eee8; }
.offer-grid { display: grid; grid-template-columns: minmax(210px, .7fr) repeat(2, minmax(0, 1fr)); gap: 18px; }
.offer-price, .offer-card { min-height: 100%; padding: 24px; border: 1px solid var(--lab-rule); background: var(--lab-paper); }
.offer-price { display: flex; flex-direction: column; justify-content: space-between; color: var(--lab-paper); background: var(--lab-ink); }
.offer-price span, .offer-price small { color: rgba(255,254,250,.68); font-family: "SFMono-Regular", Consolas, monospace; font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; }
.offer-price strong { display: block; margin: 24px 0; color: #f6e3a8; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.06em; line-height: 1; }
.offer-card h3 { color: var(--lab-signal); }
.offer-card ul { margin: 0; padding-left: 18px; }
.offer-card li + li { margin-top: 9px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 14px 13px; border-bottom: 1px solid var(--lab-rule); text-align: left; vertical-align: top; }
th { color: var(--lab-muted); font-size: .62rem; }
td { font-size: .82rem; }
.table-status { font-family: "SFMono-Regular", Consolas, monospace; font-size: .68rem; font-weight: 800; }
.table-status--pass { color: var(--lab-proof); }
.table-status--hold { color: var(--lab-boundary); }
.table-status--dedupe { color: var(--lab-blue); }
.section--dark { width: 100%; padding-inline: max(20px, calc((100% - 1180px) / 2)); color: var(--lab-paper); background: var(--lab-ink); }
.section--dark .section-intro, .section--dark .section-label { color: rgba(255,254,250,.65); }
.section--dark .section-label { color: #f6e3a8; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.boundary-grid > div { padding-top: 18px; border-top: 1px solid rgba(255,254,250,.3); }
.boundary-grid h3 { color: #f6e3a8; }
.boundary-grid ul { margin: 0; padding-left: 18px; color: rgba(255,254,250,.72); }
.boundary-grid li + li { margin-top: 9px; }
.section--signal { width: 100%; padding-inline: max(20px, calc((100% - 1180px) / 2)); color: var(--lab-paper); background: var(--lab-signal); }
.section--signal .section-label { color: #f6e3a8; }
.section--signal p:not(.section-label) { max-width: 620px; color: rgba(255,254,250,.82); }
.footer { display: flex; justify-content: space-between; gap: 18px; padding: 25px max(20px, calc((100% - 1180px) / 2)); color: var(--lab-muted); background: #f1eee8; font-family: "SFMono-Regular", Consolas, monospace; font-size: .62rem; }
.footer a:first-child { color: var(--lab-ink); font-weight: 800; text-decoration: none; }
.footer a:last-child { color: var(--lab-proof); }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .passport { max-width: 620px; width: 100%; }
  .section-head { display: block; }
  .section-intro { margin-top: 18px; }
  .fixture-tabs { 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(--lab-rule); }
  .workspace { grid-template-columns: 1fr; }
  .receipt { border-top: 1px solid rgba(255,254,250,.3); }
}
@media (max-width: 560px) {
  .hero, .section, .fact-rail { width: min(100% - 28px, 1180px); }
  h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .fact-rail { grid-template-columns: repeat(2, 1fr); }
  .fact-rail div:nth-child(2) { border-right: 0; }
  .fact-rail div:nth-child(-n+2) { border-bottom: 1px solid var(--lab-rule); }
  .fixture-tabs { grid-template-columns: 1fr; }
  .fixture-tab, .fixture-tab:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--lab-rule); }
  .fixture-tab:last-child { border-bottom: 0; }
  .workspace__meta { display: block; }
  .workspace__meta span + span { display: block; margin-top: 7px; }
  .trace-log li { grid-template-columns: 27px 1fr; gap: 8px; }
  .trace-log .trace-copy { grid-column: 2; }
  .boundary-grid { grid-template-columns: 1fr; gap: 28px; }
  .offer-grid { grid-template-columns: 1fr; }
  .footer { display: block; }
  .footer span, .footer a { display: block; margin-top: 8px; }
}
