:root {
  --ink: #080908;
  --paper: #f1f0ec;
  --white: #fff;
  --sage: #afb8a7;
  --sage-deep: #727d6d;
  --amber: #d6b76b;
  --blue: #8da9b5;
  --line-dark: rgba(8, 9, 8, .17);
  --line-light: rgba(255, 255, 255, .16);
  --muted-dark: rgba(8, 9, 8, .58);
  --muted-light: rgba(255, 255, 255, .6);
  --sans: 'Archivo Narrow', 'Arial Narrow', Arial, sans-serif;
  --serif: 'Playfair Display SC', Georgia, serif;
  --ease: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
ul { list-style: none; }
.serif { font-family: var(--serif); font-weight: 400; }
.meta { font-size: 11px; font-weight: 500; letter-spacing: 1.7px; text-transform: uppercase; }
.skip-link { position: fixed; left: 18px; top: -60px; z-index: 1000; padding: 10px 14px; background: var(--white); color: var(--ink); transition: top .2s; }
.skip-link:focus { top: 18px; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 80; height: 74px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; color: var(--white); background: rgba(8, 9, 8, .94); border-bottom: 1px solid var(--line-light); }
.wordmark { font-size: 16px; }
.site-nav { display: flex; gap: 30px; align-items: center; }
.site-nav a { font-family: var(--serif); font-size: 13px; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--sage); }
.menu-button { display: none; width: 38px; height: 38px; border: 0; background: transparent; position: relative; cursor: pointer; }
.menu-button span { position: absolute; left: 7px; right: 7px; height: 1px; background: var(--white); transition: transform .25s, top .25s; }
.menu-button span:first-child { top: 15px; }
.menu-button span:last-child { top: 23px; }
.menu-button[aria-expanded='true'] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-button[aria-expanded='true'] span:last-child { top: 19px; transform: rotate(-45deg); }
.mobile-nav { position: fixed; inset: 74px 0 auto; z-index: 79; padding: 20px; background: var(--ink); color: var(--white); border-bottom: 1px solid var(--line-light); }
.mobile-nav a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line-light); font-family: var(--serif); font-size: 18px; }

.intro { padding: 142px 40px 0; min-height: 78vh; display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); }
.intro-label { padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); color: var(--sage-deep); }
.intro-main { display: grid; grid-template-columns:minmax(0, 1.65fr) minmax(280px, .65fr); gap: 7vw; align-items: end; padding: 7vh 0 9vh; }
.intro h1 { font-size: clamp(48px, 7.3vw, 112px); line-height: .94; letter-spacing: 0; max-width: 1050px; }
.intro-copy { max-width: 430px; padding-bottom: 6px; }
.intro-copy > p:first-child { font-size: clamp(18px, 2vw, 27px); line-height: 1.25; }
.role-line { margin-top: 26px; color: var(--sage-deep); }
.intro-ledger { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.intro-ledger div { min-height: 92px; padding: 20px 20px 20px 0; display: flex; flex-direction: column; border-right: 1px solid var(--line-dark); }
.intro-ledger div + div { padding-left: 20px; }
.intro-ledger div:last-child { border-right: 0; }
.intro-ledger strong { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.intro-ledger span { margin-top: auto; color: var(--muted-dark); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

.capability-band { padding: 11vh 40px; background: #d8d9d2; color: var(--ink); border-top: 1px solid var(--line-dark); }
.capability-band > header { display: grid; grid-template-columns: .55fr 1fr .85fr; gap: 5vw; align-items: end; padding-bottom: 58px; }
.capability-band > header .meta { align-self: start; color: var(--sage-deep); }
.capability-band > header h2 { font-size: clamp(46px, 6.2vw, 92px); line-height: .9; }
.capability-band > header p { max-width: 420px; color: var(--muted-dark); font-size: 19px; line-height: 1.45; }
.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.capability-grid section { min-height: 270px; padding: 22px 24px 30px 0; border-right: 1px solid var(--line-dark); }
.capability-grid section + section { padding-left: 24px; }
.capability-grid section:last-child { border-right: 0; }
.capability-grid span { color: var(--sage-deep); font-size: 11px; letter-spacing: 1.5px; }
.capability-grid h3 { margin-top: 54px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.capability-grid p { margin-top: 22px; color: var(--muted-dark); font-size: 15px; line-height: 1.65; }

.project-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); background: var(--ink); color: var(--white); border-top: 1px solid var(--line-light); }
.project-index { position: sticky; top: 74px; height: calc(100vh - 74px); padding: 34px 28px 28px 40px; display: flex; flex-direction: column; border-right: 1px solid var(--line-light); background: var(--ink); }
.index-eyebrow { color: var(--sage); margin-bottom: 30px; }
.project-link { display: grid; grid-template-columns: 30px 1fr; gap: 2px 8px; padding: 18px 0; color: rgba(255,255,255,.46); border-top: 1px solid var(--line-light); transition: color .25s, padding .25s var(--ease); }
.project-link:last-child { border-bottom: 1px solid var(--line-light); }
.project-link span { grid-row: 1 / 3; padding-top: 4px; font-size: 10px; letter-spacing: 1.5px; }
.project-link strong { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.project-link small { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
.project-link:hover, .project-link.active { color: var(--white); padding-left: 10px; }
.project-link.active strong { color: var(--sage); }
.index-note { margin-top: auto; color: var(--muted-light); }
.index-note .meta { color: var(--sage); }
.index-note p { margin-top: 12px; font-size: 13px; line-height: 1.5; }
.project-content { min-width: 0; }
.case-study { padding: 11vh 6vw 12vh; border-bottom: 1px solid var(--line-light); }
.case-header { display: grid; grid-template-columns: 1fr auto; align-items: start; }
.case-number { color: var(--sage); }
.status { justify-self: end; display: inline-flex; align-items: center; min-height: 26px; padding: 5px 9px; border: 1px solid currentColor; color: var(--sage); font-size: 10px; font-weight: 500; line-height: 1; letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; }
.status--concept { color: var(--amber); }
.status--development { color: var(--blue); }
.status--experiment { color: #c3a5b2; }
.status--research { color: #b6ac92; }
.case-header h2 { grid-column: 1 / -1; margin-top: 42px; font-size: clamp(58px, 8.2vw, 126px); line-height: .86; }
.case-deck { grid-column: 1 / -1; max-width: 790px; margin: 32px 0 54px; color: rgba(255,255,255,.76); font-size: clamp(20px, 2.4vw, 34px); line-height: 1.2; }
.case-facts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.45fr 1.25fr 1fr; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.case-facts div { min-height: 104px; padding: 18px 18px 18px 0; border-right: 1px solid var(--line-light); }
.case-facts div + div { padding-left: 18px; }
.case-facts div:last-child { border-right: 0; }
.case-facts dt { margin-bottom: 10px; color: var(--sage); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.case-facts dd { color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.4; }

.system-visual { margin: 64px 0; min-height: 540px; border: 1px solid var(--line-light); background: #101210; overflow: hidden; }
.system-screenshot { margin: 64px 0; border: 1px solid var(--line-light); background: #0c0d0c; overflow: hidden; }
.shot-preview { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; overflow: hidden; }
.shot-preview img { display: block; transition: transform .7s var(--ease), filter .3s ease; }
.shot-preview:hover img, .shot-preview:focus-visible img { transform: scale(1.012); filter: brightness(.92); }
.shot-expand { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.54); background: rgba(8,9,8,.76); color: var(--white); font-size: 17px; }
.system-screenshot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.system-screenshot--dashboard img { aspect-ratio: 80 / 63; object-position: top; }
.system-screenshot figcaption { min-height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line-light); color: var(--muted-light); font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; }
.system-screenshot--light { background: #ecece7; }
.system-screenshot--light figcaption { color: var(--muted-dark); border-top-color: var(--line-dark); }
.product-views { margin: -30px 0 64px; }
.product-views--standalone { margin: 64px 0; }
.product-views__head { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--sage); border-bottom: 1px solid var(--line-light); }
.product-views__head span:last-child { color: var(--muted-light); }
.product-view-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--line-light); }
.product-view-grid--single { grid-template-columns: minmax(0, 1fr); }
.product-view { min-width: 0; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: #ecece7; }
.product-view img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.product-view figcaption { min-height: 48px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted-light); background: var(--ink); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }
.product-view-grid--single .product-view img { aspect-ratio: 16 / 9; object-fit: contain; }
.product-view-grid--portrait .product-view img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.shot-dialog { width: min(94vw, 1560px); max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 1px solid var(--line-light); background: #050605; color: var(--white); overflow: hidden; }
.shot-dialog::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(5px); }
.shot-dialog figure { display: flex; flex-direction: column; max-height: calc(100vh - 34px); }
.shot-dialog img { display: block; width: 100%; max-height: calc(100vh - 84px); object-fit: contain; background: #050605; }
.shot-dialog figcaption { min-height: 50px; padding: 0 62px 0 18px; display: flex; align-items: center; color: var(--sage); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; border-top: 1px solid var(--line-light); }
.shot-dialog-close { position: absolute; right: 9px; bottom: 7px; z-index: 2; width: 36px; height: 36px; border: 1px solid var(--line-light); background: #050605; color: var(--white); cursor: pointer; font-size: 21px; }
.visual-topline { height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-light); color: var(--sage); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.gate-flow { min-height: 488px; padding: 70px 40px; display: grid; grid-template-columns: minmax(120px,.65fr) 80px minmax(310px,1.6fr) 80px minmax(120px,.65fr); align-items: center; }
.node { min-height: 140px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgba(255,255,255,.25); background: #151815; }
.node-code { margin-bottom: auto; color: var(--sage); font-size: 10px; }
.node strong { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.node small { margin-top: 7px; color: var(--muted-light); text-transform: uppercase; letter-spacing: 1px; }
.flow-line { position: relative; color: var(--muted-light); font-size: 9px; letter-spacing: 1px; text-align: center; text-transform: uppercase; }
.flow-line i { display: block; height: 1px; margin-bottom: 10px; background: var(--sage); position: relative; }
.flow-line i::after { content: ''; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--sage); border-right: 1px solid var(--sage); transform: rotate(45deg); }
.gateway { border: 1px solid var(--sage); background: #0b0d0b; box-shadow: 0 0 60px rgba(175,184,167,.08); }
.gateway-head { height: 66px; padding: 0 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-light); }
.shield-mark { width: 32px; height: 38px; display: grid; place-items: center; background: var(--sage); color: var(--ink); font-family: var(--serif); clip-path: polygon(50% 0,100% 16%,92% 75%,50% 100%,8% 75%,0 16%); }
.gateway-head strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.live-dot { margin-left: auto; color: var(--sage); font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; }
.live-dot::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--sage); }
.defense-grid { display: grid; grid-template-columns: 1fr 1fr; padding: 16px; gap: 8px; }
.defense-grid span { padding: 12px; background: #171a17; border-left: 2px solid var(--sage); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.gateway-log { margin: 0 16px 16px; padding: 14px; display: grid; grid-template-columns: 1fr auto; background: rgba(175,184,167,.08); }
.gateway-log span, .gateway-log small { color: var(--muted-light); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.gateway-log strong { color: var(--sage); font-size: 11px; letter-spacing: 1.3px; }
.gateway-log small { grid-column: 1 / -1; margin-top: 10px; }

.orb-visual, .inventory-visual { min-height: 0; }
.orb-stage { min-height: 610px; padding: 44px 4%; display: grid; grid-template-columns: .8fr 1.25fr .8fr; gap: 4%; align-items: stretch; background: #0d0f0d; }
.orb-title { display: flex; flex-direction: column; justify-content: space-between; padding: 10px 0 22px; }
.orb-title span { color: var(--sage); }
.orb-title strong { font-size: clamp(40px, 5vw, 74px); font-weight: 400; line-height: .9; }
.orb-pipeline { display: flex; flex-direction: column; justify-content: center; list-style: none; border-top: 1px solid var(--line-light); }
.orb-pipeline li { position: relative; min-height: 82px; padding: 15px 10px 12px 56px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line-light); }
.orb-pipeline li::after { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 1px; background: var(--sage); }
.orb-pipeline li span { position: absolute; left: 0; top: 17px; color: var(--sage); font-size: 9px; letter-spacing: 1.2px; }
.orb-pipeline li strong { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.orb-pipeline li small { margin-top: 5px; color: var(--muted-light); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.orb-record { align-self: center; padding: 22px; border: 1px solid var(--sage); background: rgba(175,184,167,.06); }
.orb-record > span { color: var(--sage); }
.orb-record div { min-height: 72px; margin-top: 12px; padding: 10px 0; display: flex; align-items: end; justify-content: space-between; border-top: 1px solid var(--line-light); }
.orb-record div strong { font-family: var(--serif); font-size: 32px; font-weight: 400; }
.orb-record div small { color: var(--muted-light); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.orb-record p { margin-top: 18px; color: var(--muted-light); font-size: 11px; line-height: 1.55; }
.system-visual > figcaption { min-height: 48px; padding: 0 18px; display: flex; align-items: center; color: var(--muted-light); border-top: 1px solid var(--line-light); font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; }

.inventory-stage { min-height: 610px; padding: 44px 4%; display: grid; grid-template-columns: .72fr 1.45fr; grid-template-rows: 1fr auto; gap: 30px 4%; background: #d8d9d2; color: var(--ink); }
.inventory-summary { display: flex; flex-direction: column; }
.inventory-summary > span { color: var(--sage-deep); }
.inventory-summary strong { margin-top: auto; font-size: clamp(42px, 5.4vw, 78px); font-weight: 400; line-height: .9; }
.inventory-summary p { max-width: 290px; margin-top: 24px; color: var(--muted-dark); }
.inventory-ledger { border-top: 1px solid var(--line-dark); }
.inventory-ledger > div { min-height: 86px; padding: 13px 0; display: grid; grid-template-columns: 1fr 1.1fr 78px; gap: 18px; align-items: center; border-bottom: 1px solid var(--line-dark); }
.inventory-ledger .ledger-head { min-height: 38px; color: var(--sage-deep); font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; }
.inventory-ledger strong { font-family: var(--serif); font-size: 17px; font-weight: 400; }
.inventory-ledger span { color: var(--muted-dark); font-size: 11px; }
.inventory-ledger em { justify-self: end; padding: 5px 7px; border: 1px solid currentColor; font-size: 8px; font-style: normal; letter-spacing: 1px; text-transform: uppercase; }
.decision--watch { color: #7c6b37; }
.decision--reject { color: #805e5e; }
.decision--research { color: #536d5b; }
.decision--correct { color: #566b75; }
.inventory-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.inventory-metrics div { min-height: 98px; padding: 14px 18px 14px 0; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line-dark); }
.inventory-metrics div + div { padding-left: 18px; }
.inventory-metrics div:last-child { border-right: 0; }
.inventory-metrics strong { font-family: var(--serif); font-size: 30px; font-weight: 400; }
.inventory-metrics span { color: var(--muted-dark); font-size: 9px; letter-spacing: 1.1px; text-transform: uppercase; }

.wandrize-flow { min-height: 488px; padding: 60px 6%; display: grid; grid-template-columns: 1fr 160px 1fr; gap: 34px; align-items: center; background: linear-gradient(90deg,transparent 49.9%,rgba(255,255,255,.035) 50%); }
.profile-sheet, .country-stack { border: 1px solid var(--line-light); background: #f0efe9; color: var(--ink); }
.sheet-head { padding: 16px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line-dark); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
.sheet-head b { color: var(--sage-deep); }
.answer-row { display: flex; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--line-dark); font-size: 13px; }
.answer-row:last-child { border-bottom: 0; }
.answer-row span { color: var(--muted-dark); }
.engine-core { height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--sage); color: var(--sage); }
.engine-core::before, .engine-core::after { content: ''; position: absolute; }
.engine-core span, .engine-core small { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.engine-core strong { margin: 12px 0; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.engine-core small { max-width: 120px; color: var(--muted-light); }
.country-stack { padding: 8px 16px; }
.country-stack div { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 18px 0 24px; border-bottom: 1px solid var(--line-dark); font-size: 12px; }
.country-stack div:last-child { border-bottom: 0; }
.country-stack strong { color: var(--sage-deep); }
.country-stack i { position: absolute; left: 0; right: 0; bottom: 12px; height: 2px; background: rgba(8,9,8,.12); }
.country-stack i::after { content: ''; display: block; width: var(--score); height: 100%; background: var(--sage-deep); }

.audit-flow { min-height: 488px; padding: 54px 6%; display: grid; grid-template-columns: .8fr 1.4fr 1fr; gap: 28px; align-items: center; }
.url-input { padding: 20px; border: 1px solid var(--line-light); }
.url-input span { display: block; color: var(--sage); font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; }
.url-input strong { display: block; margin: 14px 0 18px; font-size: 15px; font-weight: 400; }
.url-input i { display: block; height: 2px; background: var(--sage); }
.analysis-bank { display: grid; gap: 8px; }
.analysis-bank span { padding: 13px 15px; display: flex; justify-content: space-between; border: 1px solid var(--line-light); color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.analysis-bank b { color: var(--sage); }
.report-output { min-height: 280px; padding: 24px; background: var(--paper); color: var(--ink); }
.report-score { display: flex; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
.report-score small { align-self: start; margin-right: auto; letter-spacing: 1px; text-transform: uppercase; }
.report-score strong { font-family: var(--serif); font-size: 66px; font-weight: 400; line-height: .8; }
.report-score span { color: var(--muted-dark); }
.report-lines { margin: 30px 0; display: grid; gap: 11px; }
.report-lines i { display: block; height: 5px; background: rgba(8,9,8,.12); }
.report-lines i:nth-child(1) { width: 82%; }.report-lines i:nth-child(2) { width: 100%; }.report-lines i:nth-child(3) { width: 68%; }.report-lines i:nth-child(4) { width: 90%; }
.report-output > b { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }

.case-sections { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.case-sections section { padding: 28px 30px 0 0; }
.case-sections section + section { padding-left: 30px; border-left: 1px solid var(--line-light); }
.case-sections h3, .evidence-block h3 { margin-bottom: 14px; color: var(--sage); font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }
.case-sections p { color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.58; }
.evidence-block { margin-top: 70px; }
.section-heading { padding-bottom: 14px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line-light); color: var(--sage); }
.status-note { color: var(--muted-light); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.evidence-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-light); }
.metric { min-height: 150px; padding: 24px 20px 18px 0; display: flex; flex-direction: column; border-right: 1px solid var(--line-light); }
.metric + .metric { padding-left: 20px; }
.metric:last-child { border-right: 0; }
.metric strong { font-family: var(--serif); font-size: clamp(32px, 4vw, 56px); font-weight: 400; line-height: 1; }
.metric span { margin-top: auto; color: var(--muted-light); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.evidence-list li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-light); color: rgba(255,255,255,.72); }
.evidence-list span { color: var(--sage); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
.evidence-state { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.evidence-state div { min-height: 132px; padding: 20px 20px 18px 0; display: flex; flex-direction: column; border-right: 1px solid var(--line-light); }
.evidence-state div + div { padding-left: 20px; }
.evidence-state div:last-child { border-right: 0; }
.evidence-state span { color: var(--sage); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
.evidence-state strong { margin-top: 18px; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.evidence-state small { margin-top: auto; color: var(--muted-light); font-size: 11px; line-height: 1.4; letter-spacing: .8px; text-transform: uppercase; }
.evidence-link { min-height: 54px; padding: 0 2px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--sage); border-bottom: 1px solid var(--sage); font-family: var(--serif); font-size: 17px; }
.evidence-link:hover { color: var(--white); }
.case-action { width: 100%; margin-top: 48px; padding: 18px 0; display: flex; justify-content: space-between; border: 0; border-top: 1px solid var(--sage); border-bottom: 1px solid var(--sage); background: transparent; color: var(--white); cursor: pointer; font-family: var(--serif); font-size: 20px; text-align: left; transition: color .2s, padding .25s var(--ease); }
.case-action:hover { color: var(--sage); padding-left: 12px; padding-right: 12px; }

.lab { padding: 12vh 40px; background: var(--paper); }
.lab-header { display: grid; grid-template-columns: 1.4fr .6fr; gap: 6vw; align-items: end; padding-bottom: 52px; border-bottom: 1px solid var(--line-dark); }
.lab-header > .meta { grid-column: 1 / -1; color: var(--sage-deep); }
.lab-header h2 { font-size: clamp(50px, 7vw, 100px); line-height: .9; }
.lab-header p { max-width: 450px; color: var(--muted-dark); font-size: 17px; }
.lab-filters { padding: 24px 0; display: flex; gap: 24px; border-bottom: 1px solid var(--line-dark); }
.lab-filters button { padding: 4px 0; border: 0; background: none; color: var(--muted-dark); cursor: pointer; font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; }
.lab-filters button:hover, .lab-filters button.active { color: var(--ink); border-bottom: 1px solid var(--ink); }
.lab-item { display: grid; grid-template-columns: 70px 1.35fr .65fr; gap: 30px; align-items: center; min-height: 152px; border-bottom: 1px solid var(--line-dark); transition: opacity .25s; }
.lab-item[hidden] { display: none; }
.lab-id { color: var(--sage-deep); }
.lab-item h3 { margin-bottom: 8px; font-family: var(--serif); font-size: clamp(20px, 2vw, 29px); font-weight: 400; }
.lab-item p { max-width: 700px; color: var(--muted-dark); }
.lab-evidence { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.lab-evidence small { max-width: 240px; margin-top: 12px; color: var(--muted-dark); font-size: 11px; letter-spacing: .7px; text-transform: uppercase; }
.lab .status { justify-self: auto; }

.principles { padding: 12vh 40px; background: #d8d9d2; }
.principles > .meta { color: var(--sage-deep); }
.principles > h2 { margin: 48px 0 70px; font-size: clamp(52px, 8vw, 118px); line-height: .88; }
.principle-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.principle-list div { min-height: 250px; padding: 24px 28px 0 0; border-right: 1px solid var(--line-dark); }
.principle-list div + div { padding-left: 28px; }
.principle-list div:last-child { border-right: 0; }
.principle-list span { color: var(--sage-deep); font-size: 11px; }
.principle-list h3 { margin: 52px 0 14px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.principle-list p { max-width: 350px; color: var(--muted-dark); }

.contact { min-height: 72vh; padding: 80px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--ink); color: var(--white); }
.contact .meta { color: var(--sage); }
.contact h2 { margin: 30px 0 38px; font-size: clamp(52px, 8vw, 116px); line-height: .9; }
.contact a { padding-bottom: 8px; border-bottom: 1px solid var(--sage); color: var(--sage); font-size: 17px; letter-spacing: 1px; }
.contact a:hover { color: var(--white); }
.site-footer { min-height: 72px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: var(--muted-light); border-top: 1px solid var(--line-light); font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; }

.receipt-page { padding-top: 74px; background: var(--ink); color: var(--white); }
.receipt-intro { min-height: 62vh; padding: 10vh 40px 8vh; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: 7vw; align-items: end; border-bottom: 1px solid var(--line-light); }
.receipt-intro .meta { align-self: start; grid-column: 1 / -1; color: var(--sage); }
.receipt-intro h1 { font-size: clamp(54px, 8.5vw, 126px); line-height: .86; }
.receipt-intro p { max-width: 440px; color: rgba(255,255,255,.72); font-size: 20px; }
.receipt-index { padding: 0 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line-light); }
.receipt-index a { min-height: 92px; padding: 18px 18px 16px 0; display: flex; flex-direction: column; border-right: 1px solid var(--line-light); }
.receipt-index a + a { padding-left: 18px; }
.receipt-index a:last-child { border-right: 0; }
.receipt-index span { color: var(--sage); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
.receipt-index strong { margin-top: auto; font-family: var(--serif); font-size: 18px; font-weight: 400; }
.receipt { padding: 10vh 40px; border-bottom: 1px solid var(--line-light); }
.receipt-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.receipt-head h2 { grid-column: 1 / -1; margin-top: 30px; font-size: clamp(48px, 7vw, 98px); line-height: .9; }
.receipt-deck { max-width: 760px; margin-top: 26px; color: rgba(255,255,255,.72); font-size: clamp(19px, 2.2vw, 28px); line-height: 1.25; }
.receipt-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.receipt-grid section { min-height: 220px; padding: 24px 26px 22px 0; border-right: 1px solid var(--line-light); }
.receipt-grid section + section { padding-left: 26px; }
.receipt-grid section:last-child { border-right: 0; }
.receipt-grid h3, .receipt-source h3 { color: var(--sage); font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }
.receipt-grid strong { display: block; margin: 34px 0 16px; font-family: var(--serif); font-size: 27px; font-weight: 400; }
.receipt-grid p { color: var(--muted-light); }
.receipt-source { margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line-light); }
.receipt-source ul { margin-top: 18px; }
.receipt-source li { padding: 12px 0; display: grid; grid-template-columns: 140px 1fr; gap: 24px; border-bottom: 1px solid var(--line-light); color: rgba(255,255,255,.72); }
.receipt-source span { color: var(--sage); font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; }
.receipt-source code { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.receipt-back { min-height: 58px; margin-top: 36px; display: inline-flex; align-items: center; gap: 16px; color: var(--sage); border-bottom: 1px solid var(--sage); font-family: var(--serif); font-size: 17px; }

.dossier { width: min(960px, calc(100vw - 40px)); max-height: calc(100vh - 40px); margin: auto; border: 1px solid var(--sage); background: var(--ink); color: var(--white); }
.dossier::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.dossier-bar { min-height: 58px; padding: 0 16px 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-light); color: var(--sage); }
.dossier-close { width: 38px; height: 38px; border: 1px solid var(--line-light); background: transparent; color: var(--white); cursor: pointer; font-size: 22px; }
.dossier-body { padding: 44px; }
.dossier-body > .status { justify-self: start; }
.dossier-body h2 { margin: 28px 0 18px; font-size: clamp(44px, 7vw, 80px); line-height: .9; }
.dossier-intro { max-width: 680px; color: rgba(255,255,255,.7); font-size: 20px; }
.dossier-columns { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.dossier-columns section { padding: 22px 22px 0 0; }
.dossier-columns section + section { padding-left: 22px; border-left: 1px solid var(--line-light); }
.dossier-columns h3, .dossier-disclosure strong { margin-bottom: 15px; color: var(--sage); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.dossier-columns li { margin-bottom: 12px; color: rgba(255,255,255,.68); font-size: 13px; }
.dossier-columns li::before { content: '/'; margin-right: 8px; color: var(--sage); }
.dossier-disclosure { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-light); }
.dossier-disclosure p { margin-top: 10px; color: var(--muted-light); font-size: 13px; }

@media (max-width: 1100px) {
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-grid section:nth-child(2) { border-right: 0; }
  .capability-grid section:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .project-shell { grid-template-columns: 240px minmax(0,1fr); }
  .project-index { padding-left: 24px; }
  .case-study { padding-left: 4vw; padding-right: 4vw; }
  .gate-flow { grid-template-columns: 1fr 46px 1.7fr 46px 1fr; padding-left: 24px; padding-right: 24px; }
  .wandrize-flow { grid-template-columns: 1fr 120px 1fr; gap: 18px; }
}

@media (max-width: 820px) {
  .site-header { height: 66px; padding: 0 20px; }
  .site-nav { display: none; }
  .menu-button { display: block; }
  .mobile-nav { top: 66px; }
  .intro { padding: 112px 20px 0; min-height: auto; }
  .intro-main { grid-template-columns: 1fr; gap: 32px; padding: 54px 0; }
  .intro h1 { font-size: clamp(46px, 14vw, 72px); }
  .intro-ledger { grid-template-columns: 1fr; }
  .intro-ledger div, .intro-ledger div + div { min-height: 72px; padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .intro-ledger div { flex-direction: row; align-items: center; justify-content: space-between; }
  .intro-ledger span { margin: 0; }
  .capability-band { padding: 80px 20px; }
  .capability-band > header { grid-template-columns: 1fr; gap: 26px; }
  .capability-band > header h2 { font-size: clamp(44px, 13vw, 70px); }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid section, .capability-grid section + section { min-height: 0; padding: 24px 0 34px; border-right: 0; border-top: 1px solid var(--line-dark); }
  .capability-grid h3 { margin-top: 30px; }
  .project-shell { grid-template-columns: 1fr; }
  .project-index { position: relative; top: auto; height: auto; padding: 32px 20px; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .index-note { display: none; }
  .case-study { padding: 72px 20px 86px; }
  .case-header h2 { max-width: 100%; margin-top: 34px; font-size: clamp(42px, 13vw, 72px); overflow-wrap: anywhere; }
  .case-deck { margin-bottom: 38px; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .case-facts div:nth-child(2) { border-right: 0; }
  .case-facts div:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .system-visual { min-height: 0; margin: 44px 0; }
  .system-screenshot { margin: 44px 0; }
  .system-screenshot img { aspect-ratio: 16 / 10; }
  .system-screenshot--dashboard img { aspect-ratio: 80 / 63; }
  .system-screenshot figcaption { display: block; padding: 12px 14px; line-height: 1.6; }
  .system-screenshot figcaption span { display: block; }
  .product-views { margin: -20px 0 44px; }
  .product-view-grid { grid-template-columns: 1fr; }
  .product-view figcaption { min-height: 44px; }
  .product-view-grid--single .product-view img { aspect-ratio: 16 / 10; }
  .product-view-grid--portrait .product-view img { aspect-ratio: 4 / 5; }
  .gate-flow, .wandrize-flow, .audit-flow { min-height: 0; padding: 28px 18px; grid-template-columns: 1fr; gap: 18px; }
  .flow-line { transform: rotate(90deg); width: 60px; justify-self: center; }
  .node { min-height: 100px; }
  .wandrize-flow { background: none; }
  .engine-core { height: 120px; }
  .report-output { min-height: 250px; }
  .case-sections { grid-template-columns: 1fr; }
  .case-sections section, .case-sections section + section { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
  .section-heading { display: block; }
  .status-note { display: block; margin-top: 8px; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .evidence-list li { grid-template-columns: 90px 1fr; gap: 12px; }
  .evidence-state { grid-template-columns: 1fr; }
  .evidence-state div, .evidence-state div + div { min-height: 110px; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .evidence-state div:last-child { border-bottom: 0; }
  .lab, .principles { padding: 80px 20px; }
  .lab-header { grid-template-columns: 1fr; gap: 26px; }
  .lab-header > .meta { grid-column: auto; }
  .lab-filters { gap: 16px; overflow-x: auto; }
  .lab-filters button { flex: 0 0 auto; }
  .lab-item { grid-template-columns: 44px 1fr; gap: 16px; padding: 25px 0; }
  .lab-evidence { grid-column: 2; align-items: flex-start; text-align: left; }
  .principle-list { grid-template-columns: 1fr; }
  .principle-list div, .principle-list div + div { min-height: 0; padding: 24px 0 36px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .principle-list h3 { margin-top: 28px; }
  .contact { padding: 70px 20px; }
  .site-footer { padding: 0 20px; }
  .receipt-page { padding-top: 66px; }
  .receipt-intro { min-height: auto; padding: 72px 20px 60px; grid-template-columns: 1fr; gap: 30px; }
  .receipt-intro .meta { grid-column: auto; }
  .receipt-index { padding: 0 20px; grid-template-columns: 1fr; }
  .receipt-index a, .receipt-index a + a { min-height: 68px; padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .receipt { padding: 72px 20px; }
  .receipt-head { grid-template-columns: 1fr; }
  .receipt-head h2 { grid-column: auto; }
  .receipt-grid { grid-template-columns: 1fr; }
  .receipt-grid section, .receipt-grid section + section { min-height: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .receipt-source li { grid-template-columns: 1fr; gap: 8px; }
  .dossier-body { padding: 28px 22px; }
  .dossier-columns { grid-template-columns: 1fr; }
  .dossier-columns section, .dossier-columns section + section { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
  .orb-stage, .inventory-stage { min-height: 0; padding: 32px 20px; grid-template-columns: 1fr; }
  .orb-title { min-height: 210px; }
  .orb-pipeline { grid-row: 2; }
  .orb-record { grid-row: 3; }
  .inventory-summary { min-height: 280px; }
  .inventory-ledger > div { grid-template-columns: 1fr 80px; }
  .inventory-ledger > div > span { grid-column: 1 / -1; grid-row: 2; }
  .inventory-ledger .ledger-head { display: none; }
  .inventory-metrics { grid-template-columns: 1fr 1fr; }
  .inventory-metrics div:nth-child(2) { border-right: 0; }
  .inventory-metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
}

@media (max-width: 460px) {
  .wordmark { font-size: 14px; }
  .case-facts { grid-template-columns: 1fr; }
  .case-facts div, .case-facts div + div { min-height: auto; padding: 16px 0; border-right: 0; border-top: 1px solid var(--line-light); }
  .evidence-grid { grid-template-columns: 1fr; }
  .metric, .metric + .metric { min-height: 112px; padding: 18px 0; border-right: 0; border-top: 1px solid var(--line-light); }
  .metric span { margin-top: 22px; }
  .evidence-list li { display: block; }
  .evidence-list span { display: block; margin-bottom: 8px; }
  .lab-item { grid-template-columns: 1fr; }
  .lab-evidence { grid-column: auto; }
  .site-footer { min-height: 92px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
