:root {
  color-scheme: light;
  --ink: #0a0b09;
  --ink-soft: #151712;
  --paper: #f2ede1;
  --paper-deep: #e7dfcf;
  --white: #fffdf7;
  --muted: #68645a;
  --line: #c9b98e;
  --signal: #e8b932;
  --signal-deep: #a86d0b;
  --good: #315b46;
  --danger: #8b3025;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; min-height: 100vh; overflow-x: hidden; background-color: var(--paper); background-image: linear-gradient(rgba(16, 17, 14, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 17, 14, .045) 1px, transparent 1px); background-size: 48px 48px; }
body::before { content: ""; position: fixed; z-index: 1000; pointer-events: none; inset: 0; opacity: .045; background-image: repeating-linear-gradient(116deg, transparent 0 5px, rgba(10, 11, 9, .22) 5px 6px); }
a { color: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: rgba(168, 109, 11, .2); }
button { font: inherit; }
img { display: block; max-width: 100%; }
.visually-hidden { width: 1px; height: 1px; padding: 0; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1100; top: 8px; left: 8px; padding: 10px 14px; color: var(--ink); background: var(--signal); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--signal-deep); outline-offset: 4px; }
.section-shell { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.anchored-section { scroll-margin-top: 24px; }
.eyebrow { margin: 0 0 16px; font: 600 .68rem/1.5 Consolas, monospace; text-transform: uppercase; }

.demo-bar { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 7px clamp(20px, 4vw, 64px); color: #f4eee0; background: var(--ink); font: 500 .64rem/1.4 Consolas, monospace; text-transform: uppercase; }
.demo-bar span:first-child { display: flex; align-items: center; gap: 10px; }
.demo-bar i { width: 7px; height: 7px; display: inline-block; background: var(--signal); box-shadow: 0 0 0 4px rgba(232, 185, 50, .16); }
.site-header { height: 88px; padding: 0 clamp(20px, 4vw, 64px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; position: relative; z-index: 30; background: rgba(242, 237, 225, .94); border-bottom: 1px solid var(--ink); backdrop-filter: blur(12px); }
.brand { width: max-content; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand > img:first-child { width: 42px; height: 42px; border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--signal-deep); transition: transform .2s ease, box-shadow .2s ease; }
.brand:hover > img:first-child { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--signal-deep); }
.wordmark { width: clamp(150px, 16vw, 222px); height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 10px 12px 8px; border-bottom: 2px solid transparent; text-decoration: none; font-size: .77rem; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="true"] { border-color: var(--signal-deep); }
.source-link { justify-self: end; padding: 11px 0; text-decoration: none; border-bottom: 1px solid var(--ink); font: 600 .72rem Consolas, monospace; text-transform: uppercase; }
.source-link span { color: var(--signal-deep); }
.nav-toggle { display: none; padding: 10px 12px; border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; font: 600 .7rem Consolas, monospace; text-transform: uppercase; }

.hero { min-height: clamp(690px, calc(100vh - 120px), 880px); padding: clamp(70px, 8vw, 124px) clamp(28px, 6vw, 104px) clamp(66px, 8vw, 112px); position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); align-items: center; gap: clamp(56px, 8vw, 128px); color: var(--paper); background: var(--ink); }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(116deg, transparent 0 68%, rgba(232, 185, 50, .07) 68% 68.25%, transparent 68.25%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .25; background-image: linear-gradient(rgba(242, 237, 225, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 237, 225, .09) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, black, transparent 86%); }
.hero-rail { position: absolute; inset: 0 auto 0 0; width: 30px; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; color: rgba(242, 237, 225, .5); border-right: 1px solid rgba(242, 237, 225, .17); font: 600 .53rem Consolas, monospace; writing-mode: vertical-rl; transform: rotate(180deg); }
.hero-copy { max-width: 930px; animation: reveal .7s cubic-bezier(.2, .7, .2, 1) both; }
.kicker { margin: 0 0 28px; display: flex; align-items: center; gap: 12px; color: #d2ccbf; font: 500 .68rem Consolas, monospace; text-transform: uppercase; }
.signal-dot { width: 7px; height: 7px; flex: 0 0 7px; background: var(--signal); box-shadow: 0 0 0 5px rgba(232, 185, 50, .13); }
.hero h1 { margin: 0; max-width: 950px; font: 600 7.1rem/.97 "Aptos Display", "Segoe UI", sans-serif; text-wrap: balance; }
.hero h1 em { display: block; }
.hero h1 em, .section-heading h2 em, .boundary-section h2 em { color: var(--signal); font-style: normal; }
.hero-summary { max-width: 720px; margin: 32px 0 0; color: #c9c3b7; font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.75; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; padding: 13px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid currentColor; text-decoration: none; font: 600 .68rem/1 Consolas, monospace; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translate(-2px, -2px); }
.button.signal { color: var(--ink); background: var(--signal); border-color: var(--signal); box-shadow: 5px 5px 0 rgba(168, 109, 11, .55); }
.button.signal:hover { box-shadow: 8px 8px 0 rgba(168, 109, 11, .55); }
.button.ghost { color: var(--paper); background: transparent; border-color: rgba(242, 237, 225, .55); }
.button.ghost:hover { color: var(--ink); background: var(--paper); }
.hero-note { max-width: 670px; margin: 27px 0 0; padding-left: 15px; color: #99958c; border-left: 2px solid var(--signal-deep); font: 400 .7rem/1.65 Consolas, monospace; }
.control-card { min-width: 0; align-self: center; border: 1px solid rgba(242, 237, 225, .3); background: rgba(16, 17, 14, .74); box-shadow: 11px 11px 0 rgba(232, 185, 50, .14); backdrop-filter: blur(12px); animation: reveal .7s .16s cubic-bezier(.2, .7, .2, 1) both; }
.control-head, .control-foot { min-height: 42px; padding: 12px 15px; display: flex; justify-content: space-between; gap: 18px; color: #aaa498; border-bottom: 1px solid rgba(242, 237, 225, .18); font: 500 .57rem Consolas, monospace; text-transform: uppercase; }
.control-head span:last-child { color: var(--signal); }
.control-card ol { margin: 0; padding: 8px 18px; list-style: none; }
.control-card li { min-height: 73px; display: grid; grid-template-columns: 31px 1fr 11px; align-items: center; gap: 12px; border-bottom: 1px solid rgba(242, 237, 225, .12); }
.control-card li:last-child { border: 0; }
.control-card li > span { color: #77756e; font: 500 .62rem Consolas, monospace; }
.control-card strong { display: block; color: #eee8db; font-size: .86rem; }
.control-card small { display: block; margin-top: 5px; color: #8f8b82; font: 400 .62rem Consolas, monospace; }
.control-card li > i { width: 8px; height: 8px; border: 1px solid #66645e; border-radius: 50%; }
.control-card li.complete > i { background: var(--good); border-color: #739783; }
.control-card li.active { position: relative; }
.control-card li.active::before { content: ""; position: absolute; left: -18px; width: 2px; height: 45px; background: var(--signal); }
.control-card li.active > i { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 5px rgba(232, 185, 50, .12); }
.control-foot { border-top: 1px solid rgba(242, 237, 225, .18); border-bottom: 0; color: #77746d; }

.status-strip { min-height: 116px; padding: 22px clamp(28px, 6vw, 104px); display: grid; grid-template-columns: minmax(180px, .55fr) 1.45fr; align-items: center; gap: 36px; color: var(--ink); background: var(--signal); border-block: 1px solid var(--ink); }
.status-strip > p { margin: 0; font: 600 .7rem Consolas, monospace; text-transform: uppercase; }
.status-strip ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.status-strip li { min-height: 58px; padding: 5px 18px; border-left: 1px solid rgba(10, 11, 9, .34); font-size: .77rem; font-weight: 700; }
.status-strip li span { display: block; margin-bottom: 10px; opacity: .62; font: 500 .57rem Consolas, monospace; text-transform: uppercase; }

.system-section { padding: 130px 0 120px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .55fr); align-items: end; gap: clamp(52px, 9vw, 150px); }
.section-heading h2, .boundary-section h2 { margin: 0; font: 600 5.9rem/.98 "Aptos Display", "Segoe UI", sans-serif; text-wrap: balance; }
.section-heading h2 em { color: var(--signal-deep); }
.section-heading > p { margin: 0 0 6px; color: var(--muted); font-size: .98rem; line-height: 1.8; }
.architecture-map { margin-top: 72px; display: grid; grid-template-columns: minmax(230px, .7fr) 80px minmax(0, 1.4fr); border: 1px solid var(--ink); background: rgba(255, 253, 247, .5); box-shadow: 9px 9px 0 var(--line); }
.architecture-origin { min-height: 450px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; color: var(--paper); background: var(--ink); }
.architecture-origin > span, .architecture-map li > span { font: 500 .65rem Consolas, monospace; }
.architecture-origin p { margin: auto 0 14px; color: var(--signal); font: 500 .66rem Consolas, monospace; text-transform: uppercase; }
.architecture-origin h3 { margin: 0; font-size: 2.5rem; line-height: 1.15; }
.architecture-origin small { margin-top: 25px; color: #99958c; font: 400 .64rem/1.6 Consolas, monospace; }
.beam-path { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--signal); border-right: 1px solid var(--ink); }
.beam-path::before, .beam-path::after { content: ""; position: absolute; width: 1px; height: 120%; background: rgba(10, 11, 9, .45); transform: rotate(17deg); }
.beam-path::before { left: 28px; }.beam-path::after { right: 24px; }
.beam-path i { position: absolute; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }
.beam-path i:nth-child(1) { top: 20%; }.beam-path i:nth-child(2) { top: 49%; }.beam-path i:nth-child(3) { top: 78%; }
.architecture-map ol { margin: 0; padding: 0; display: grid; grid-template-rows: repeat(5, 1fr); list-style: none; }
.architecture-map li { min-height: 90px; padding: 18px 26px; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 14px; border-bottom: 1px solid rgba(10, 11, 9, .22); }
.architecture-map li:last-child { border: 0; }
.architecture-map li > span { color: var(--signal-deep); }
.architecture-map li p { margin: 0 0 5px; color: var(--muted); font: 500 .59rem Consolas, monospace; text-transform: uppercase; }
.architecture-map li strong { font-size: .92rem; }
.architecture-map li small { display: block; margin-top: 6px; color: var(--muted); font: 400 .62rem Consolas, monospace; }
.principles-grid { margin-top: 96px; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--ink); }
.principles-grid article { min-height: 330px; padding: 30px clamp(25px, 3vw, 44px) 38px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--ink); }
.principles-grid article:last-child { border: 0; }
.principle-number { color: var(--signal-deep); font: 500 .65rem Consolas, monospace; }
.principles-grid h3 { margin: 0; font-size: 2rem; line-height: 1.15; }
.principles-grid article p:last-child { margin: 20px 0 0; color: var(--muted); line-height: 1.7; }

.agents-section { padding: 126px 0 136px; color: var(--paper); background: var(--ink); position: relative; overflow: hidden; }
.agents-section::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(90deg, transparent 0 49%, var(--signal) 49% 50%, transparent 50%); background-size: 28px 28px; mask-image: linear-gradient(120deg, transparent 30%, black 100%); }
.agents-section .section-shell { position: relative; }
.section-heading.inverse .eyebrow { color: var(--signal); }
.section-heading.inverse > p { color: #aaa59b; }
.agent-grid { margin-top: 74px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(242, 237, 225, .35); border-left: 1px solid rgba(242, 237, 225, .35); }
.agent-card { min-height: 420px; padding: 27px 30px 34px; position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; border-right: 1px solid rgba(242, 237, 225, .35); border-bottom: 1px solid rgba(242, 237, 225, .35); background: rgba(10, 11, 9, .83); }
.agent-card.agent-wide { grid-column: span 2; min-height: 385px; }
.agent-card::before { content: ""; position: absolute; inset: auto 0 0 auto; width: 44%; height: 1px; background: var(--signal); transform: rotate(-28deg); transform-origin: right; opacity: .55; }
.agent-top { display: flex; justify-content: space-between; gap: 20px; color: #8f8b82; font: 500 .6rem Consolas, monospace; text-transform: uppercase; }
.agent-top span:first-child { color: var(--signal); }
.agent-orbit { width: 142px; height: 142px; place-self: center; position: relative; display: grid; place-items: center; border: 1px solid rgba(242, 237, 225, .23); border-radius: 50%; }
.agent-orbit::before, .agent-orbit::after { content: ""; position: absolute; border: 1px solid rgba(232, 185, 50, .33); border-radius: 50%; }
.agent-orbit::before { inset: 16px; }.agent-orbit::after { inset: 37px; background: rgba(232, 185, 50, .05); }
.agent-orbit i { position: absolute; width: 178px; height: 1px; background: linear-gradient(90deg, transparent, var(--signal), transparent); transform: rotate(-34deg); }
.agent-orbit b { z-index: 1; color: var(--paper); font: 600 1rem Consolas, monospace; }
.agent-card.agent-wide .agent-orbit { position: absolute; right: 12%; top: 50%; transform: translateY(-50%); width: 190px; height: 190px; }
.agent-card > div:last-child { position: relative; z-index: 1; max-width: 620px; }
.agent-card h3 { margin: 0; font-size: 3rem; line-height: 1.03; }
.agent-card p { max-width: 560px; margin: 15px 0 0; color: #a8a398; line-height: 1.65; }
.agent-card ul { margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.agent-card li { padding: 7px 9px; color: #b9b4aa; border: 1px solid rgba(242, 237, 225, .2); font: 500 .56rem Consolas, monospace; text-transform: uppercase; }

.workflows-section { padding: 130px 0 140px; }
.view-tabs { margin-top: 68px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }
.view-tabs button { min-height: 62px; padding: 15px; border: 0; border-right: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; font: 600 .66rem Consolas, monospace; text-transform: uppercase; }
.view-tabs button:last-child { border: 0; }
.view-tabs button[aria-selected="true"] { color: var(--ink); background: var(--signal); box-shadow: inset 0 -4px 0 var(--ink); }
.workflow-stage { min-height: 610px; border: 1px solid var(--ink); border-top: 0; background: var(--white); box-shadow: 10px 10px 0 var(--line); }
.workflow-frame { min-height: 610px; display: grid; grid-template-columns: 250px 1fr; animation: view-in .32s ease both; }
.workflow-sidebar { padding: 26px 22px; color: var(--paper); background: var(--ink); }
.mini-brand { padding: 24px 18px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid rgba(242, 237, 225, .18); font: 600 .62rem Consolas, monospace; }
.mini-brand img { width: 28px; height: 28px; }
.sidebar-links { padding: 18px 12px; display: grid; gap: 5px; }
.sidebar-links span { padding: 11px; color: #9a968d; font-size: .67rem; }
.sidebar-links span.active { color: var(--ink); background: var(--signal); font-weight: 700; }
.sidebar-boundary { margin-top: 50px; padding: 15px; color: #979289; border: 1px solid rgba(242, 237, 225, .2); font: 400 .6rem/1.6 Consolas, monospace; }
.workflow-content { min-width: 0; padding: 38px clamp(25px, 4vw, 54px) 50px; }
.workflow-toolbar { padding-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #cbc4b6; }
.workflow-toolbar p { margin: 0; color: var(--muted); font: 500 .62rem Consolas, monospace; text-transform: uppercase; }
.static-badge { padding: 8px 10px; color: #73500e; background: #f5dc91; border: 1px solid #a87510; font: 600 .57rem Consolas, monospace; text-transform: uppercase; }
.workflow-title { margin: 35px 0 0; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.workflow-title h3 { margin: 0; font-size: 3.6rem; line-height: 1; }
.workflow-title p { max-width: 440px; margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.65; }
.metric-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-card { min-height: 122px; padding: 18px; border: 1px solid #c9c1b3; background: #f8f4eb; }
.metric-card span { color: var(--muted); font: 500 .58rem Consolas, monospace; text-transform: uppercase; }
.metric-card strong { display: block; margin-top: 22px; font-size: 1.8rem; }
.metric-card strong, .workflow-table, .queue-column > p, .hash-row { font-variant-numeric: tabular-nums; }
.metric-card small { color: var(--muted); }
.workflow-table { margin-top: 18px; overflow-x: auto; border: 1px solid #c9c1b3; }
.workflow-table table { width: 100%; min-width: 600px; border-collapse: collapse; table-layout: fixed; font-size: .68rem; }
.workflow-table col:nth-child(1) { width: 34%; }
.workflow-table col:nth-child(2) { width: 23%; }
.workflow-table col:nth-child(3) { width: 23%; }
.workflow-table col:nth-child(4) { width: 20%; }
.workflow-table th, .workflow-table td { height: 48px; padding: 12px 15px; text-align: left; border-bottom: 1px solid #d6cfc2; }
.workflow-table th { color: var(--muted); background: #eee8dc; font: 500 .56rem Consolas, monospace; text-transform: uppercase; }
.workflow-table tbody tr:last-child td { border-bottom: 0; }
.case-code { font-family: Consolas, monospace; }
.status-pill { width: max-content; padding: 5px 7px; color: #604914; background: #f1dda3; font: 600 .54rem Consolas, monospace; text-transform: uppercase; }
.readonly-form { margin-top: 34px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.form-preview, .next-panel, .audit-panel { padding: 25px; border: 1px solid #c9c1b3; background: #f8f4eb; }
.field-preview { margin-bottom: 18px; }
.field-preview > span { display: block; margin-bottom: 8px; color: #4e4b45; font: 600 .61rem Consolas, monospace; text-transform: uppercase; }
.fake-control { min-height: 45px; padding: 13px; color: #8c877e; border: 1px solid #bdb5a7; background: #eee9df; font-size: .72rem; }
.fake-control.tall { min-height: 95px; }
.locked-action { width: 100%; min-height: 47px; border: 1px solid #76726b; color: #76726b; background: #dad5cb; cursor: not-allowed; font: 600 .62rem Consolas, monospace; text-transform: uppercase; }
.next-panel h4, .audit-panel h4 { margin: 0; font-size: 1.15rem; }
.next-panel ol { margin: 22px 0 0; padding-left: 20px; color: var(--muted); font-size: .75rem; line-height: 2; }
.notice-box { margin-top: 23px; padding: 13px; color: #6c4a0c; border-left: 3px solid var(--signal-deep); background: #f4e7bd; font: 500 .62rem/1.6 Consolas, monospace; }
.queue-board { margin-top: 33px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.queue-column { min-height: 300px; padding: 15px; border: 1px solid #c9c1b3; background: #f0eadf; }
.queue-column > p { margin: 0 0 14px; display: flex; justify-content: space-between; color: var(--muted); font: 600 .57rem Consolas, monospace; text-transform: uppercase; }
.queue-item { margin-bottom: 10px; padding: 14px; border: 1px solid #c4bcaf; background: var(--white); }
.queue-item span { color: var(--signal-deep); font: 600 .56rem Consolas, monospace; }
.queue-item strong { display: block; margin-top: 9px; font-size: .73rem; }
.queue-item small { display: block; margin-top: 12px; color: var(--muted); }
.audit-layout { margin-top: 34px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.hash-chain { margin-top: 23px; display: grid; gap: 12px; }
.hash-row { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; }
.hash-row > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--paper); background: var(--ink); font: 500 .57rem Consolas, monospace; }
.hash-row code { display: block; padding: 12px; overflow: hidden; color: #5f5b53; border: 1px solid #d3ccbf; background: #eee9df; font: 400 .61rem Consolas, monospace; white-space: nowrap; text-overflow: ellipsis; }
.integrity-mark { margin: 26px 0; padding: 22px; color: #d9d3c8; background: var(--ink); }
.integrity-mark span { color: var(--signal); font: 600 .59rem Consolas, monospace; text-transform: uppercase; }
.integrity-mark strong { display: block; margin-top: 12px; font-size: 1.4rem; }
.integrity-mark p { margin: 12px 0 0; color: #979289; font-size: .7rem; line-height: 1.6; }
.noscript-note { margin: 15px 0 0; padding: 12px; border: 1px solid var(--danger); }

.boundary-section { padding: 128px 0; color: var(--paper); background: #151712; border-block: 1px solid var(--ink); }
.boundary-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(400px, 1.15fr); gap: clamp(70px, 10vw, 160px); }
.boundary-section .eyebrow { color: var(--signal); }
.boundary-lede { max-width: 600px; margin: 32px 0 0; color: #aaa59b; font-size: 1rem; line-height: 1.8; }
.boundary-list { border-top: 1px solid rgba(242, 237, 225, .28); }
.boundary-list article { padding: 25px 0; display: grid; grid-template-columns: 40px 1fr; gap: 18px; border-bottom: 1px solid rgba(242, 237, 225, .28); }
.boundary-list article > span { color: var(--signal); }
.boundary-list h3 { margin: 0; font-size: 1.1rem; }
.boundary-list p { margin: 9px 0 0; color: #9d988e; font-size: .83rem; line-height: 1.7; }
.source-cta { padding: 130px 24px; text-align: center; background: var(--signal); border-bottom: 1px solid var(--ink); }
.source-cta h2 { margin: 0; font-size: 6.6rem; line-height: .98; }
.source-cta > p:not(.eyebrow) { max-width: 660px; margin: 28px auto; line-height: 1.75; }
.source-cta .button.signal { color: var(--paper); background: var(--ink); border-color: var(--ink); box-shadow: 6px 6px 0 rgba(10, 11, 9, .24); }
.site-footer { min-height: 285px; padding: 52px clamp(24px, 5vw, 76px); display: grid; grid-template-columns: 1.35fr .65fr .65fr .8fr; gap: 46px; color: #aaa59b; background: var(--ink); font-size: .72rem; line-height: 1.7; }
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand > img { border: 1px solid var(--signal); }
.footer-brand div > img { width: 210px; height: auto; padding: 6px; filter: invert(91%) sepia(9%) saturate(326%); background: var(--paper); }
.footer-brand p { margin: 14px 0 0; }
.footer-label { margin: 0 0 17px; color: var(--signal); font: 600 .59rem Consolas, monospace; text-transform: uppercase; }
.footer-end { display: flex; flex-direction: column; justify-content: space-between; text-align: right; }
.footer-end p { margin: 0; }

@keyframes reveal { from { opacity: 0; transform: translateY(16px); } }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { position: absolute; top: 87px; right: 20px; width: min(300px, calc(100vw - 40px)); padding: 13px; display: none; align-items: stretch; background: var(--paper); border: 1px solid var(--ink); box-shadow: 7px 7px 0 var(--signal-deep); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 13px; }
  .source-link { display: none; }
  .nav-toggle { display: block; justify-self: end; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 5.6rem; }
  .control-card { width: min(100%, 590px); }
  .status-strip { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .section-heading h2, .boundary-section h2 { font-size: 4.6rem; }
  .architecture-origin h3 { font-size: 2.1rem; }
  .agent-card h3 { font-size: 2.5rem; }
  .workflow-title h3 { font-size: 3rem; }
  .source-cta h2 { font-size: 5.2rem; }
  .section-heading > p { max-width: 700px; }
  .architecture-map { grid-template-columns: minmax(220px, .7fr) 60px minmax(0, 1.3fr); }
  .boundary-layout { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-end { text-align: left; gap: 30px; }
}

@media (max-width: 780px) {
  .anchored-section { scroll-margin-top: 78px; }
  .section-shell { width: min(100% - 32px, 1320px); }
  .demo-bar span:last-child { display: none; }
  .site-header { height: 78px; padding-inline: 16px; }
  .site-header { position: sticky; top: 0; }
  .wordmark { width: 142px; }
  .site-nav { top: 77px; right: 16px; }
  .hero { min-height: auto; padding: 74px 28px 70px 44px; grid-template-columns: minmax(0, 1fr); }
  .hero-rail { width: 24px; }
  .hero-copy { min-width: 0; max-width: 100%; }
  .hero-actions { display: grid; }
  .status-strip { padding-inline: 22px; }
  .status-strip ul { grid-template-columns: 1fr 1fr; }
  .status-strip li:nth-child(3) { border-top: 1px solid rgba(10, 11, 9, .34); }
  .status-strip li:nth-child(4) { border-top: 1px solid rgba(10, 11, 9, .34); }
  .system-section, .workflows-section { padding-block: 92px; }
  .hero h1 { font-size: 4.3rem; overflow-wrap: anywhere; }
  .section-heading h2, .boundary-section h2 { font-size: 3.5rem; }
  .architecture-origin h3 { font-size: 2rem; }
  .principles-grid h3 { font-size: 1.7rem; }
  .agent-card h3 { font-size: 2.4rem; }
  .workflow-title h3 { font-size: 2.7rem; }
  .source-cta h2 { font-size: 4.1rem; }
  .architecture-map { display: block; }
  .architecture-origin { min-height: 320px; }
  .beam-path { height: 54px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .beam-path::before, .beam-path::after { width: 120%; height: 1px; transform: rotate(8deg); }
  .beam-path::before { left: -10%; top: 18px; }.beam-path::after { right: -10%; top: 38px; }
  .beam-path i { top: 22px !important; }
  .beam-path i:nth-child(1) { left: 20%; }.beam-path i:nth-child(2) { left: 49%; }.beam-path i:nth-child(3) { left: 78%; }
  .principles-grid { grid-template-columns: 1fr; }
  .principles-grid article { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .agents-section { padding-block: 92px; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-card, .agent-card.agent-wide { grid-column: auto; min-height: 390px; }
  .agent-card.agent-wide .agent-orbit { position: relative; right: auto; top: auto; transform: none; width: 142px; height: 142px; }
  .view-tabs { grid-template-columns: 1fr 1fr; }
  .view-tabs button:nth-child(2) { border-right: 0; }
  .view-tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .workflow-frame { grid-template-columns: 1fr; }
  .workflow-sidebar { display: none; }
  .workflow-title { display: block; }
  .workflow-title p { margin-top: 18px; }
  .metric-grid, .readonly-form, .audit-layout { grid-template-columns: 1fr; }
  .queue-board { grid-template-columns: 1fr; }
  .boundary-section { padding-block: 92px; }
  .source-cta { padding-block: 95px; }
  .site-footer { grid-template-columns: 1fr; }
}

@supports (padding: max(0px)) {
  .demo-bar, .site-header, .hero, .status-strip, .source-cta, .site-footer {
    padding-left: max(var(--safe-left, 0px), env(safe-area-inset-left));
    padding-right: max(var(--safe-right, 0px), env(safe-area-inset-right));
  }
  .demo-bar { --safe-left: clamp(20px, 4vw, 64px); --safe-right: clamp(20px, 4vw, 64px); }
  .site-header { --safe-left: clamp(20px, 4vw, 64px); --safe-right: clamp(20px, 4vw, 64px); }
  .hero { --safe-left: clamp(28px, 6vw, 104px); --safe-right: clamp(28px, 6vw, 104px); }
  .status-strip { --safe-left: clamp(28px, 5vw, 76px); --safe-right: clamp(28px, 5vw, 76px); }
  .source-cta { --safe-left: 24px; --safe-right: 24px; }
  .site-footer { --safe-left: clamp(24px, 5vw, 76px); --safe-right: clamp(24px, 5vw, 76px); }
}

@media (max-width: 430px) {
  .brand > img:first-child { width: 38px; height: 38px; }
  .wordmark { width: 116px; }
  .hero h1 { font-size: 2.7rem; }
  .section-heading h2, .boundary-section h2 { font-size: 2.8rem; }
  .agent-card h3 { font-size: 1.9rem; }
  .workflow-title h3 { font-size: 2.2rem; }
  .source-cta h2 { font-size: 3rem; }
  .hero-summary { font-size: .94rem; }
  .status-strip ul { grid-template-columns: 1fr; }
  .status-strip li { border-top: 1px solid rgba(10, 11, 9, .34); }
  .architecture-map li { padding-inline: 17px; }
  .agent-card { padding-inline: 20px; }
  .workflow-content { padding-inline: 17px; }
  .workflow-toolbar { align-items: flex-start; flex-direction: column; }
}

@supports (padding: max(0px)) {
  @media (max-width: 780px) {
    .site-header { --safe-left: 16px; --safe-right: 16px; }
    .hero { --safe-left: 44px; --safe-right: 28px; }
    .status-strip { --safe-left: 22px; --safe-right: 22px; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}