:root {
  --ink: #19322c;
  --deep: #173f35;
  --green: #2f7d64;
  --mint: #dcebe3;
  --paper: #f5f1e6;
  --paper-2: #ece6d7;
  --amber: #bf7b2c;
  --red: #9e3f3c;
  --line: rgba(25, 50, 44, .22);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; }
button, a { font: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--deep); color: var(--paper); }

.paper-grain { position: fixed; inset: 0; pointer-events: none; opacity: .16; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
.skip-link { position: absolute; top: -60px; left: 16px; background: var(--deep); color: white; padding: 10px 14px; z-index: 100; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 15; min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 10px max(24px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid var(--line); background: rgba(245,241,230,.94); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; letter-spacing: .05em; }
.brand img { border-radius: 50%; }
.brand small { font: 10px var(--mono); opacity: .55; border-left: 1px solid var(--line); padding-left: 10px; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.site-header nav a:hover { color: var(--green); }
.static-badge { justify-self: end; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.static-badge i, .chat-title small i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #30a271; box-shadow: 0 0 0 4px rgba(48,162,113,.13); margin-right: 5px; }

.hero { max-width: var(--max); min-height: 730px; margin: 0 auto; padding: 100px 24px 84px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 82px; }
.eyebrow { margin: 0 0 18px; font: 700 11px var(--mono); letter-spacing: .15em; color: var(--green); }
.hero h1, .section-heading h2, .final-section h2 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -.035em; }
.hero h1 { font-size: clamp(48px, 6.2vw, 84px); }
.lede { max-width: 630px; margin: 32px 0; font-size: 18px; line-height: 1.9; color: rgba(25,50,44,.78); }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 23px; border: 1px solid var(--deep); text-decoration: none; font-size: 14px; font-weight: 700; }
.button-primary { color: var(--paper); background: var(--deep); box-shadow: 6px 6px 0 var(--amber); transition: transform .2s, box-shadow .2s; }
.button-primary:hover { transform: translate(3px,3px); box-shadow: 3px 3px 0 var(--amber); }
.text-link { font-weight: 700; text-underline-offset: 5px; }
.hero-note { margin: 30px 0 0; font: 11px var(--mono); color: rgba(25,50,44,.55); }

.hero-ledger { border: 1px solid var(--ink); background: #efe9da; box-shadow: 18px 20px 0 rgba(23,63,53,.12); transform: rotate(1deg); }
.ledger-head { display: flex; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--ink); font: 10px var(--mono); letter-spacing: .07em; }
.identity-row { display: flex; gap: 20px; align-items: center; padding: 30px 26px 25px; }
.identity-row img { border: 1px solid var(--ink); border-radius: 50%; }
.identity-row h2 { margin: 0 0 6px; font: 700 25px var(--serif); }
.identity-row p { margin: 0; font-size: 13px; opacity: .65; }
.ledger-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--ink); }
.ledger-grid div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ledger-grid dt { font: 10px var(--mono); opacity: .55; }
.ledger-grid dd { margin: 6px 0 0; font-size: 13px; font-weight: 700; }
.ledger-rule { display: flex; align-items: center; gap: 14px; padding: 18px; }
.ledger-rule span { width: 36px; height: 2px; background: var(--amber); }
.ledger-rule p { margin: 0; font: 13px var(--serif); font-weight: 700; }

.manifesto { background: var(--deep); color: var(--paper); display: grid; grid-template-columns: repeat(4,1fr); padding: 0 max(24px, calc((100vw - var(--max)) / 2)); }
.manifesto p { margin: 0; padding: 25px 8px 25px 0; font: 17px var(--serif); border-right: 1px solid rgba(255,255,255,.16); }
.manifesto span { display: none; }

.demo-section, .capability-section, .standards-section, .proof-section, .privacy-section { padding: 120px max(24px, calc((100vw - var(--max)) / 2)); }
.section-heading { display: grid; grid-template-columns: 1fr 1.15fr; column-gap: 70px; margin-bottom: 56px; }
.section-heading .eyebrow { grid-column: 1; }
.section-heading h2 { grid-column: 1; font-size: clamp(38px,4.5vw,62px); }
.section-heading > p:last-child { grid-column: 2; grid-row: 2; align-self: end; margin: 0; max-width: 510px; color: rgba(25,50,44,.7); }
.section-heading.compact { display: block; }
.section-heading.compact h2 { font-size: clamp(36px,4vw,56px); }
.section-heading.compact > p:last-child { margin-top: 22px; }

.demo-section { background: #e9e3d4; }
.demo-layout { display: grid; grid-template-columns: 240px minmax(460px, 1fr) 250px; min-height: 660px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 10px 12px 0 var(--deep); }
.case-index { border-right: 1px solid var(--ink); display: flex; flex-direction: column; }
.case-tab { display: grid; grid-template-columns: 38px 1fr; gap: 10px; width: 100%; padding: 22px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.case-tab b { font: 11px var(--mono); color: var(--amber); }
.case-tab span { font-weight: 700; }
.case-tab small { display: block; margin-top: 4px; font: 10px var(--mono); opacity: .52; }
.case-tab:hover, .case-tab.active { background: var(--deep); color: var(--paper); }
.local-only { margin-top: auto; padding: 20px; border-top: 1px solid var(--ink); }
.local-only strong { font: 10px var(--mono); color: var(--green); }
.local-only p { margin: 8px 0 0; font-size: 11px; line-height: 1.7; opacity: .65; }

.chat-stage { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.chat-chrome { display: flex; align-items: center; justify-content: space-between; min-height: 67px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-title { display: flex; gap: 10px; align-items: center; }
.chat-title img { border-radius: 50%; }
.chat-title strong, .chat-title small { display: block; }
.chat-title strong { font-size: 13px; }
.chat-title small { font-size: 10px; opacity: .55; }
.demo-label { font: 9px var(--mono); border: 1px solid var(--line); padding: 5px 7px; }
.chat-body { padding: 26px; overflow-y: auto; max-height: 530px; background-image: linear-gradient(rgba(25,50,44,.035) 1px, transparent 1px); background-size: 100% 32px; }
.message { display: flex; gap: 10px; margin-bottom: 22px; animation: messageIn .32s ease both; }
.message.user { justify-content: flex-end; }
.message-avatar { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--deep); color: white; display: grid; place-items: center; font: 10px var(--mono); }
.message.agent .message-avatar { background: var(--green); }
.bubble { max-width: 82%; padding: 13px 15px; border: 1px solid var(--line); background: #fffdf5; font-size: 13px; white-space: pre-line; }
.message.user .bubble { order: -1; background: var(--deep); color: white; border-color: var(--deep); }
.bubble strong { font-family: var(--serif); }
.bubble .tag { display: inline-block; margin: 6px 4px 0 0; padding: 2px 6px; font: 9px var(--mono); border: 1px solid currentColor; opacity: .8; }
.chat-footer { display: flex; gap: 10px; padding: 13px; border-top: 1px solid var(--line); }
.fake-input { flex: 1; min-height: 42px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); color: rgba(25,50,44,.42); font-size: 12px; }
.next-button { min-width: 98px; border: 1px solid var(--deep); background: var(--deep); color: white; cursor: pointer; font-size: 12px; font-weight: 700; }
.next-button:hover { background: var(--green); }

.reasoning-panel { border-left: 1px solid var(--ink); padding: 22px 18px; background: #efe9da; }
.panel-kicker { margin: 0 0 18px; font: 10px var(--mono); letter-spacing: .12em; }
.reasoning-panel ol { margin: 0; padding: 0; list-style: none; }
.reasoning-panel li { position: relative; padding: 0 0 24px 25px; font-size: 12px; color: rgba(25,50,44,.42); }
.reasoning-panel li::before { content: ""; position: absolute; left: 0; top: 4px; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; }
.reasoning-panel li::after { content: ""; position: absolute; left: 4px; top: 13px; height: calc(100% - 8px); border-left: 1px solid var(--line); }
.reasoning-panel li:last-child::after { display: none; }
.reasoning-panel li.active { color: var(--amber); font-weight: 700; }
.reasoning-panel li.done { color: var(--green); }
.reasoning-panel li.done::before { background: var(--green); }
.process-result { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.process-result span { font: 10px var(--mono); color: var(--amber); }
.process-result p { margin: 7px 0 0; font-size: 11px; line-height: 1.7; }

.capability-section { background: var(--deep); color: var(--paper); }
.capability-section .eyebrow { color: #82c8ae; }
.capability-table { border-top: 1px solid rgba(255,255,255,.35); }
.cap-row { display: grid; grid-template-columns: 1fr 1.5fr 1.35fr .65fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.16); align-items: center; font-size: 13px; }
.cap-head { font: 10px var(--mono); letter-spacing: .1em; opacity: .55; }
.cap-row b { justify-self: end; font: 10px var(--mono); color: #9de0c5; }

.standard-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.standard-grid article { min-height: 270px; padding: 28px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.standard-grid .standard-primary { grid-row: span 2; min-height: 540px; background: var(--mint); }
.standard-no { margin: 0; font: 11px var(--mono); color: var(--amber); }
.standard-grid h3 { margin: 80px 0 18px; font: 700 25px var(--serif); }
.standard-primary h3 { margin-top: 190px; font-size: 34px; }
.standard-grid article > p:not(.standard-no) { font-size: 14px; color: rgba(25,50,44,.7); }
.standard-grid ul { padding: 0; margin: 0; list-style: none; }
.standard-grid li { padding: 5px 0; border-bottom: 1px dotted var(--line); font-size: 13px; }
.status-line { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 11px; }
.status-line i { flex: 1; height: 1px; background: var(--amber); }

.boundary-section { display: grid; grid-template-columns: 1.2fr .8fr; }
.boundary-do { padding: 105px max(24px, calc((100vw - var(--max)) / 2)) 105px max(24px, calc((100vw - var(--max)) / 2)); padding-right: 70px; background: #2f765f; color: white; }
.boundary-do .eyebrow { color: #cde8dc; }
.boundary-do h2 { margin: 0 0 48px; font: 700 clamp(38px,4vw,56px)/1.2 var(--serif); }
.boundary-do ul { margin: 0; padding: 0; list-style: none; }
.boundary-do li { display: flex; gap: 20px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.boundary-do li span { font: 10px var(--mono); opacity: .6; }
.boundary-alert { padding: 105px 50px; background: #9b443f; color: white; }
.boundary-alert .eyebrow { color: #f0cdb8; }
.boundary-alert h3 { margin: 100px 0 22px; font: 700 31px/1.35 var(--serif); }
.boundary-alert p:not(.eyebrow) { opacity: .78; }
.boundary-alert strong { display: block; margin-top: 35px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.35); }

.proof-section { background: #ebe5d6; }
.proof-layout { display: grid; grid-template-columns: 1.45fr .55fr; gap: 28px; align-items: start; }
.proof-layout figure { margin: 0; border: 1px solid var(--ink); background: white; }
.proof-layout figure img { width: 100%; max-height: 720px; object-fit: cover; object-position: top; }
.proof-layout figcaption { padding: 12px 15px; border-top: 1px solid var(--line); font: 10px var(--mono); }
.proof-data { border-top: 1px solid var(--ink); }
.proof-data div { padding: 19px 0; border-bottom: 1px solid var(--line); }
.proof-data span, .proof-data small { display: block; }
.proof-data span { font-size: 12px; }
.proof-data strong { display: block; font: 700 36px var(--serif); }
.proof-data small { font: 10px var(--mono); opacity: .55; }
.proof-data > p { margin: 28px 0 0; padding: 18px; background: var(--deep); color: white; font-size: 12px; }

.privacy-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 85px; align-items: center; }
.privacy-copy h2 { margin: 0; font: 700 clamp(38px,4vw,58px)/1.18 var(--serif); }
.privacy-copy > p:not(.eyebrow) { margin: 26px 0; color: rgba(25,50,44,.72); }
.privacy-copy ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.privacy-copy li { border: 1px solid var(--line); padding: 5px 9px; font: 10px var(--mono); }
.privacy-map { border: 1px solid var(--ink); padding: 28px; background: #efe9da; }
.map-node { padding: 22px; border: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: center; }
.map-node span { font: 700 18px var(--serif); }
.map-node small { font: 10px var(--mono); }
.map-node.static { background: var(--deep); color: white; }
.map-arrow { height: 72px; display: grid; place-items: center; position: relative; }
.map-arrow::before { content: ""; position: absolute; height: 100%; border-left: 1px solid var(--ink); }
.map-arrow span { z-index: 1; background: var(--paper-2); padding: 3px 7px; font: 9px var(--mono); }
.map-wall { margin: 26px 0; padding: 8px; text-align: center; color: white; background: repeating-linear-gradient(135deg,var(--red) 0 10px,#7f322f 10px 20px); font: 10px var(--mono); letter-spacing: .15em; }
.private-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; opacity: .5; }
.private-list span { padding: 10px; border: 1px dashed var(--ink); text-align: center; font: 11px var(--mono); text-decoration: line-through; }

.final-section { padding: 120px 24px; text-align: center; background: var(--paper-2); border-top: 1px solid var(--line); }
.final-section img { margin: 0 auto 22px; border-radius: 50%; }
.final-section h2 { font-size: clamp(42px,5vw,68px); margin-bottom: 38px; }

footer { min-height: 80px; padding: 20px max(24px,calc((100vw - var(--max))/2)); display: flex; justify-content: space-between; align-items: center; background: var(--deep); color: var(--paper); font: 10px var(--mono); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .13s; }
@keyframes messageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 60px; padding-top: 72px; }
  .hero-ledger { max-width: 620px; }
  .manifesto { grid-template-columns: 1fr 1fr; }
  .demo-layout { grid-template-columns: 190px 1fr; }
  .reasoning-panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ink); }
  .reasoning-panel ol { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
  .reasoning-panel li { padding: 0; }
  .reasoning-panel li::before, .reasoning-panel li::after { display: none; }
  .proof-layout, .privacy-section { grid-template-columns: 1fr; }
  .boundary-do { padding-left: 40px; }
}

@media (max-width: 720px) {
  .site-header { padding: 9px 16px; }
  .brand small, .static-badge { display: none; }
  .hero { min-height: auto; padding: 65px 18px; }
  .hero h1 { font-size: 47px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .manifesto { grid-template-columns: 1fr; padding: 10px 18px; }
  .manifesto p { padding: 14px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .demo-section, .capability-section, .standards-section, .proof-section, .privacy-section { padding: 80px 18px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 40px; }
  .section-heading > p:last-child { margin-top: 22px; }
  .demo-layout { display: block; box-shadow: 6px 7px 0 var(--deep); }
  .case-index { border-right: 0; }
  .case-tab { padding: 15px; }
  .local-only { display: none; }
  .chat-body { min-height: 470px; }
  .reasoning-panel ol { grid-template-columns: 1fr 1fr; }
  .cap-row { grid-template-columns: 1fr 1fr; }
  .cap-row span:nth-child(3) { display: none; }
  .cap-row b { justify-self: start; }
  .standard-grid { display: block; }
  .standard-grid .standard-primary { min-height: 320px; }
  .standard-primary h3 { margin-top: 90px; }
  .boundary-section { grid-template-columns: 1fr; }
  .boundary-do, .boundary-alert { padding: 75px 24px; }
  .boundary-alert h3 { margin-top: 60px; }
  .ledger-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}

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