/* A quiet field and three explorable operating models. */
body { isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: -24px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(86, 74, 61, .18) .75px, transparent .95px);
  background-size: 24px 24px; background-position: 12px 12px;
  animation: field-drift 48s ease-in-out infinite alternate;
  will-change: transform;
}
.dot-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
html.dot-field-ready body::before { opacity: 0; }
@keyframes field-drift { from { transform: translate3d(-2px, -1px, 0); } to { transform: translate3d(3px, 2px, 0); } }
.hero-controls { display: flex; align-items: center; gap: 26px; }
.approach { background: rgba(235, 229, 217, .78); }
.project-layout > * { min-width: 0; }
.interactive-figure { width: 100%; }
.diagram-panel {
  --node-line: #d7d0c3; --wire: #b8a999;
  border: 1px solid #d7d0c3; border-radius: 4px;
  background: #fbf8f1; overflow: hidden;
  position: relative; isolation: isolate;
}
.diagram-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-bottom: 1px solid #d7d0c3; color: #6f6a62; font: 11px/1.5 var(--mono); }
.diagram-heading span:first-child { color: var(--blue-deep); }
.diagram-heading span:last-child { text-align: right; }
.map-canvas { position: relative; width: 100%; max-width: 660px; margin-inline: auto; }
.erp-canvas { aspect-ratio: 5 / 4; min-height: 410px; }
.map-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire, .signal, .orbit-guide, .direction-arrow { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.wire { stroke: var(--wire); }
.signal { stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 99; opacity: .72; animation: signal-travel 14s linear infinite; animation-delay: var(--signal-delay, 0s); animation-play-state: paused; }
@keyframes signal-travel { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.diagram-panel.is-visible .signal { animation-play-state: running; }
.map-port { fill: #fffaf2; stroke: #b8a999; stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-node {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 8px 12px; color: #38332e; border: 1px solid var(--node-line); border-radius: 5px;
  background: rgba(255, 252, 246, .97); font: 400 14px/1.35 var(--sans); text-align: center;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.node-icon { width: 25px; height: 25px; flex-shrink: 0; color: #766f66; }
.node-index { position: absolute; top: 8px; left: 9px; font: 9px/1 var(--mono); color: #8c8277; }
.node-name { max-width: 100%; }
.map-node:hover, .decision-node:hover { border-color: #ef9b89; background: #fff5f0; }
.map-node[aria-pressed="true"], .decision-node[aria-pressed="true"] { border-color: var(--blue); background: #fff0eb; box-shadow: 0 0 0 3px #f05a3d12; color: #9f321f; }
.map-node[aria-pressed="true"] .node-icon, .decision-node[aria-pressed="true"] .node-icon { color: var(--blue); }
.map-node:focus-visible, .decision-node:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; z-index: 2; }
.erp-input, .erp-output { width: 26%; height: 18.75%; }
.erp-input { top: 6.25%; }
.erp-output { top: 75%; }
.input-a, .output-a { left: 3%; }
.input-b, .output-b { left: 37%; }
.input-c, .output-c { left: 71%; }
.erp-core { left: 30%; top: 39.5833%; width: 40%; height: 22.0833%; gap: 9px; }
.erp-core .node-name { max-width: 160px; font-size: 16px; letter-spacing: -.025em; }
.erp-core .node-icon { width: 29px; height: 29px; }
.erp-core .node-index { font-size: 9px; }
.diagram-detail { margin: 0 26px; padding: 23px 0 22px; border-top: 1px solid #d7d0c3; min-height: 141px; }
.diagram-detail h4 { font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: -.025em; color: #3b342e; margin-bottom: 7px; }
.diagram-detail p { font-size: 13px; line-height: 1.8; color: #6f665d; max-width: 550px; }
.diagram-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #d7d0c3; padding: 14px 26px; font: 10px/1.7 var(--mono); color: #756c62; background: #f7f1e8bd; }
.diagram-footer > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.diagram-footer i { display: inline-block; width: 5px; height: 5px; background: var(--blue); border-radius: 50%; flex-shrink: 0; }
.diagram-footer > span:last-child { text-align: right; }
.growth-canvas { aspect-ratio: 5 / 4; max-width: 620px; margin-block: 12px 8px; }
.orbit-guide { stroke: #ddd3c6; stroke-dasharray: 2 5; }
.direction-arrow { stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; }
.orbit-node { background: #fffaf3; width: 26%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); gap: 9px; padding: 16px; }
.orbit-node .node-name { max-width: 115px; }
.orbit-node .node-index { top: 14%; left: 50%; transform: translateX(-50%); font-size: 9px; }
.orbit-node .node-icon { margin-top: 9px; }
.brand-node { left: 50%; top: 16.25%; }
.route-node { left: 77%; top: 50%; }
.finance-node { left: 23%; top: 50%; }
.economics-node { left: 50%; top: 83.75%; }
.pnl-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #7b7167; font: 10px/1.5 var(--mono); }
.pnl-center span { display: block; }
.pnl-center strong { display: block; font: 500 calc(30px + 6pt)/1.5 var(--serif); color: var(--blue); font-style: italic; }
.channel-key { display: flex; justify-content: center; gap: 24px; padding: 13px 20px 22px; font: 10px/1.5 var(--mono); color: #756c62; }
.channel-key span::before { content: ""; display: inline-block; vertical-align: 1px; width: 4px; height: 4px; border: 1px solid #c2b5a7; margin-right: 6px; }
.decision-flow { position: relative; display: grid; gap: 18px; padding: 32px 28px 32px 58px; }
.decision-flow::before { content: ""; position: absolute; top: 61px; bottom: 61px; left: 31px; width: 1px; background: #b8a999; }
.decision-node { position: relative; min-height: 66px; width: 100%; display: grid; grid-template-columns: 20px 28px 1fr auto; align-items: center; gap: 13px; border: 1px solid var(--node-line); border-radius: 5px; padding: 14px 17px; text-align: left; background: #fffaf3ed; color: #38332e; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.decision-node::before { content: ""; position: absolute; right: 100%; top: 50%; width: 27px; height: 1px; background: #b8a999; }
.decision-port { position: absolute; left: -31px; top: calc(50% - 3px); width: 7px; height: 7px; background: #fffaf2; border: 1px solid #b8a999; border-radius: 50%; }
.decision-node[aria-pressed="true"] .decision-port { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px #f05a3d18; }
.decision-index { font: 10px/1 var(--mono); color: #7283a0; }
.decision-name { font-size: 14px; line-height: 1.4; }
.decision-tag { font: 9px/1.5 var(--mono); color: #697a97; white-space: nowrap; }
.human-gate { border-color: #ef9b89; background: #fff0eb; }
.human-gate .decision-tag { color: #9f321f; padding: 3px 6px; border: 1px solid #efb5a8; border-radius: 2px; }
.contact { position: relative; isolation: isolate; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(circle, #f05a3d30 .65px, transparent .9px); background-size: 24px 24px; }
html[data-motion="paused"] body::before, html[data-motion="paused"] .diagram-panel .signal,
html[data-page-hidden] body::before, html[data-page-hidden] .diagram-panel .signal { animation-play-state: paused; }
@media (min-width: 761px) and (max-width: 1100px) {
  .diagram-heading { padding: 20px 18px; font-size: 10px; }
  .diagram-heading span:last-child { max-width: 100px; }
  .diagram-detail { margin-inline: 18px; min-height: 167px; }
  .diagram-footer { padding-inline: 18px; flex-wrap: wrap; gap: 4px 12px; }
  .decision-flow { padding: 28px 18px 28px 46px; }
  .decision-flow::before { left: 23px; }
  .decision-node { grid-template-columns: 17px 23px 1fr; gap: 5px 8px; padding: 12px 10px; }
  .decision-node::before { width: 23px; }
  .decision-port { left: -27px; }
  .decision-tag { grid-column: 3; justify-self: start; }
  .decision-index, .decision-node .node-icon { grid-row: 1 / span 2; }
  .map-node { font-size: 12px; padding-inline: 5px; }
  .erp-core .node-name { font-size: 14px; }
  .orbit-node { width: 29%; padding: 9px 8px; gap: 5px; }
  .orbit-node .node-index { display: none; }
  .orbit-node .node-icon { margin-top: 0; width: 22px; height: 22px; }
  .pnl-center strong { font-size: calc(26px + 6pt); }
}
@media (max-width: 760px) {
  .hero-foot { align-items: start; gap: 18px; }
  .hero-controls { flex-direction: column; align-items: flex-end; gap: 10px; }
  .hero-foot > span:first-child { max-width: 180px; }
  .hero-foot .edition { max-width: none; }
  .diagram-heading { padding: 20px; font-size: 10px; }
  .diagram-detail { margin-inline: 20px; padding-block: 20px; min-height: 153px; }
  .diagram-footer { padding: 13px 20px; flex-wrap: wrap; gap: 3px 15px; }
  .diagram-footer > span:last-child { text-align: left; }
  .erp-canvas { min-height: 420px; }
  .erp-input, .erp-output { width: 30%; }
  .input-a, .output-a { left: 1%; }
  .input-b, .output-b { left: 35%; }
  .input-c, .output-c { left: 69%; }
  .erp-core { left: 27%; width: 46%; }
  .map-node { font-size: 13px; gap: 6px; padding: 14px 5px 10px; }
  .node-index { font-size: 8px; top: 7px; left: 7px; }
  .erp-core .node-name { font-size: 15px; max-width: 140px; }
  .orbit-node { width: 28%; padding: 10px; gap: 5px; }
  .orbit-node .node-name { max-width: 105px; }
  .orbit-node .node-index { display: none; }
  .orbit-node .node-icon { width: 22px; height: 22px; margin-top: 0; }
  .pnl-center { font-size: 9px; }
  .pnl-center strong { font-size: calc(25px + 6pt); }
  .decision-flow { padding: 26px 20px 26px 48px; gap: 16px; }
  .decision-flow::before { left: 25px; }
  .decision-node { grid-template-columns: 17px 25px 1fr; gap: 3px 8px; padding: 12px; min-height: 72px; }
  .decision-node::before { width: 23px; }
  .decision-port { left: -27px; }
  .decision-index, .decision-node .node-icon { grid-row: 1 / span 2; }
  .decision-tag { grid-column: 3; justify-self: start; }
  .decision-name { font-size: 14px; }
  .human-gate .decision-tag { padding: 1px 5px; margin-left: -5px; }
}
@media (max-width: 370px) {
  .diagram-heading { padding: 17px 15px; gap: 10px; }
  .diagram-heading span:last-child { max-width: 98px; }
  .diagram-detail { margin-inline: 15px; min-height: 173px; }
  .diagram-footer { padding-inline: 15px; }
  .erp-canvas { min-height: 425px; }
  .map-node { font-size: 12px; }
  .erp-core .node-name { font-size: 14px; }
  .orbit-node { width: 29%; padding: 7px; font-size: 12px; gap: 4px; }
  .orbit-node .node-icon { width: 20px; height: 20px; }
  .pnl-center { font-size: 8px; }
  .pnl-center strong { font-size: calc(23px + 6pt); }
  .channel-key { gap: 14px; padding-top: 10px; }
  .decision-flow { padding-left: 39px; padding-right: 15px; }
  .decision-flow::before { left: 19px; }
  .decision-node { padding-inline: 9px; grid-template-columns: 14px 21px 1fr; gap: 3px 6px; }
  .decision-node::before { width: 20px; }
  .decision-port { left: -24px; }
  .decision-node .node-icon { width: 21px; }
  .decision-name { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, .signal { animation: none !important; }
  body::before { will-change: auto; }
  .signal { display: none; }
}
