:root {
  --paper: #f6f7f4;
  --paper-alt: #edf1ef;
  --surface: #ffffff;
  --ink: #0a1520;
  --ink-soft: #3d4f5f;
  --ink-muted: #536575;
  --abyss: #08131e;
  --abyss-card: #0e1d2d;
  --abyss-line: rgba(182, 206, 224, 0.16);
  --cyan: #2cc5ee;
  --cyan-deep: #0b8db3;
  --cyan-tint: #e8f8fd;
  --emerald: #0f8a52;
  --emerald-bg: #e7f7ef;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --line: #d7dfe4;
  --line-strong: #b8c6cf;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--paper); line-height: 1.58; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 86px; }
.frame { width: min(1220px, 92vw); margin: 0 auto; }
.mono-micro { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; }
.mono-micro.muted { color: var(--ink-muted); }
.mono-micro.cyan { color: var(--cyan); }
.index-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; color: var(--cyan-deep); margin-bottom: 14px; }
.index-tag-dark { color: var(--cyan); }
.top-rail { background: var(--paper); border-bottom: 1px solid var(--line); padding: 9px 0; }
.top-rail-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink-soft); }
.rail-left { display: flex; align-items: center; gap: 10px; }
.rail-sep { color: var(--line-strong); }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px rgba(15, 138, 82, 0.18); }
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(246, 247, 244, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { object-fit: contain; }
.brand-wordmark { font-family: var(--font-sans); font-weight: 800; font-size: 1.24rem; letter-spacing: -0.04em; color: var(--ink); }
.brand-tld { color: var(--cyan-deep); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a { position: relative; padding: 4px 0; transition: color 0.18s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.22s var(--ease-snap); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-ink, .btn-primary-cyan, .btn-outline-ink { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; padding: 11px 18px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; transition: transform 0.14s var(--ease-snap), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.btn-ink:active, .btn-primary-cyan:active, .btn-outline-ink:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #ffffff; }
.btn-ink:hover { background: #14273b; }
.btn-primary-cyan { background: var(--cyan); color: #05131f; padding: 13px 18px; font-weight: 700; white-space: nowrap; }
.btn-primary-cyan:hover { background: #42cff4; box-shadow: 0 8px 24px rgba(44, 197, 238, 0.28); }
.btn-outline-ink { background: transparent; color: var(--ink); border-color: var(--line-strong); padding: 13px 17px; white-space: nowrap; }
.btn-outline-ink:hover { border-color: var(--ink); background: rgba(10, 21, 32, 0.04); }
.menu-toggle { display: none; flex-direction: column; gap: 6px; background: transparent; border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px; cursor: pointer; }
.menu-toggle span { width: 20px; height: 1.5px; background: var(--ink); }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; padding: 18px 4vw 24px; background: var(--surface); border-top: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { font-weight: 600; font-size: 0.96rem; }
.mobile-cta { margin-top: 6px; }
.hero { padding: 54px 0 40px; }
.hero-top-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.hero-top-meta .index-tag { margin-bottom: 0; }
.hero-layout { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 44px; align-items: end; margin-bottom: 48px; }
.hero-headline-col h1 { font-size: clamp(2.65rem, 5.4vw, 4.7rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; color: var(--ink); }
.serif-accent { position: relative; display: inline-block; font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; font-size: 1.12em; padding-right: 4px; color: var(--ink); }
.glide-underline { position: absolute; left: -2px; bottom: -4px; width: 104%; height: 14px; }
.hero-summary { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 24px; }
.hero-summary strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-spec-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-cell { padding: 18px 20px 18px 0; border-right: 1px solid var(--line); padding-left: 20px; }
.spec-cell:first-child { padding-left: 0; }
.spec-cell:last-child { border-right: none; }
.spec-label { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 5px; }
.spec-val { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.sandbox-section { padding: 36px 0 92px; }
.sandbox-bar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 22px; }
.sandbox-title-group h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
.scenario-switcher { display: inline-flex; background: var(--paper-alt); border: 1px solid var(--line); border-radius: 8px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.scenario-btn { border: none; background: transparent; font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500; color: var(--ink-soft); padding: 8px 13px; border-radius: 5px; cursor: pointer; transition: background 0.18s ease, color 0.18s ease; }
.scenario-btn:hover { color: var(--ink); }
.scenario-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(10, 21, 32, 0.08); }
.sandbox-console { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; box-shadow: 0 22px 60px rgba(10, 21, 32, 0.06); }
.console-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.toolbar-left { display: flex; align-items: center; gap: 12px; }
.toolbar-badge { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: var(--paper-alt); color: var(--ink-soft); border: 1px solid var(--line); }
.toolbar-badge.running { background: var(--cyan-tint); color: var(--cyan-deep); border-color: rgba(44, 197, 238, 0.45); }
.toolbar-badge.done { background: var(--emerald-bg); color: var(--emerald); border-color: rgba(15, 138, 82, 0.3); }
.run-sim-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #ffffff; border: none; border-radius: 6px; padding: 9px 15px; font-family: var(--font-sans); font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: background 0.18s ease, transform 0.14s var(--ease-snap); }
.run-sim-btn:hover { background: #172e45; }
.run-sim-btn:disabled { opacity: 0.65; cursor: wait; }
.console-grid { display: grid; grid-template-columns: 0.92fr 1.16fr 0.92fr; min-height: 450px; }
.console-pane { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.console-pane:last-child { border-right: none; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.pane-head .mono-micro { font-size: 0.67rem; letter-spacing: 0.05em; white-space: nowrap; }
.chat-stage { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; background: #f4f7f5; }
.chat-bubble { max-width: 92%; padding: 11px 13px; border-radius: 10px; font-size: 0.84rem; line-height: 1.48; border: 1px solid var(--line); animation: bubbleIn 0.28s var(--ease-snap); }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chat-bubble.inbound { align-self: flex-start; background: var(--surface); color: var(--ink); border-bottom-left-radius: 3px; }
.chat-bubble.outbound { align-self: flex-end; background: #0d1f30; color: #edf6fb; border-color: #0d1f30; border-bottom-right-radius: 3px; }
.chat-meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 0.66rem; opacity: 0.72; margin-top: 6px; }
.chat-prompt-hint { margin-top: auto; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); text-align: center; }
.pane-graph { background: var(--surface); }
.node-graph { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.graph-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; text-align: left; transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s var(--ease-snap); }
.graph-step:hover { border-color: var(--line-strong); }
.graph-step.is-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.graph-step.is-active { border-color: var(--cyan); background: var(--cyan-tint); }
.graph-step.is-complete { border-color: rgba(15, 138, 82, 0.35); }
.graph-step-left { display: flex; align-items: center; gap: 10px; }
.node-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0; }
.graph-step.is-active .node-dot { background: var(--cyan); box-shadow: 0 0 0 4px rgba(44, 197, 238, 0.25); }
.graph-step.is-complete .node-dot { background: var(--emerald); }
.node-title { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.node-sub { display: block; font-family: var(--font-mono); font-size: 0.69rem; color: var(--ink-muted); }
.node-ms { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-muted); }
.graph-connector { width: 1px; height: 10px; background: var(--line-strong); margin-left: 17px; }
.node-inspector { border-top: 1px solid var(--line); background: #0a1520; color: #dbe8f2; padding: 12px 16px; }
.inspector-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.inspector-code { margin: 0; font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.5; color: #a9d6e8; overflow-x: auto; white-space: pre-wrap; }
.roster-stage { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.roster-slot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 7px; border: 1px solid var(--line); font-size: 0.8rem; transition: background 0.25s ease, border-color 0.25s ease; }
.roster-slot.locked { background: var(--paper); color: var(--ink-muted); }
.roster-slot.booked { background: var(--surface); color: var(--ink); }
.roster-slot.open { background: #ffffff; border-style: dashed; border-color: var(--line-strong); }
.roster-slot.just-booked { background: var(--emerald-bg); border-color: rgba(15, 138, 82, 0.45); border-style: solid; }
.slot-time { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; }
.slot-pill { font-family: var(--font-mono); font-size: 0.66rem; padding: 2px 7px; border-radius: 4px; font-weight: 600; }
.slot-pill.lock { background: var(--paper-alt); color: var(--ink-muted); }
.slot-pill.open { background: var(--cyan-tint); color: var(--cyan-deep); }
.slot-pill.ok { background: #d1fae5; color: var(--emerald); }
.emr-card { margin-top: auto; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font-size: 0.78rem; }
.emr-card-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.emr-line { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid rgba(215, 223, 228, 0.6); }
.emr-line:last-child { border-bottom: none; }
.emr-line span:first-child { color: var(--ink-muted); }
.emr-line span:last-child { font-weight: 600; color: var(--ink); text-align: right; }
.ledger-section { padding: 88px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: end; margin-bottom: 52px; }
.section-intro-split h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; line-height: 1.06; }
.serif-inline { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.12em; }
.section-intro-copy { font-size: 1rem; color: var(--ink-soft); line-height: 1.65; }
.spec-ledger { border-top: 1px solid var(--ink); }
.ledger-row { display: grid; grid-template-columns: 58px 0.85fr 1.35fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ledger-num { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 600; color: var(--ink-muted); padding-top: 4px; }
.ledger-title h3 { font-size: 1.28rem; margin-bottom: 10px; }
.ledger-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan-deep); background: var(--cyan-tint); padding: 4px 9px; border-radius: 4px; }
.contrast-pair { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; }
.contrast-label { display: block; font-family: var(--font-mono); font-size: 0.67rem; letter-spacing: 0.08em; margin-bottom: 6px; }
.contrast-before .contrast-label { color: var(--ink-muted); }
.contrast-before p { font-size: 0.9rem; color: var(--ink-muted); }
.contrast-after { padding-left: 20px; border-left: 2px solid var(--cyan); }
.contrast-after .contrast-label { color: var(--cyan-deep); font-weight: 600; }
.contrast-after p { font-size: 0.93rem; color: var(--ink); font-weight: 500; }
.instrument-section { padding: 88px 0 96px; }
.instrument-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 42px; }
.instrument-left h2 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); margin-bottom: 14px; }
.instrument-desc { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 24px; }
.currency-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; margin-bottom: 28px; }
.curr-btn { border: none; background: var(--paper); color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600; padding: 7px 14px; cursor: pointer; }
.curr-btn.active { background: var(--ink); color: #ffffff; }
.slider-stack { display: flex; flex-direction: column; gap: 22px; }
.slider-label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.slider-label-row label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.slider-readout { font-family: var(--font-mono); font-size: 0.86rem; font-weight: 600; color: var(--cyan-deep); }
.slider-control input[type="range"] { width: 100%; accent-color: var(--ink); cursor: pointer; }
.instrument-right { display: flex; flex-direction: column; gap: 16px; }
.meter-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.meter-primary { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.meter-primary .mono-micro { color: var(--cyan); }
.meter-big { font-family: var(--font-mono); font-size: clamp(2rem, 3.4vw, 2.85rem); font-weight: 600; letter-spacing: -0.03em; margin: 10px 0 8px; font-variant-numeric: tabular-nums; }
.meter-mid { font-family: var(--font-mono); font-size: 1.75rem; font-weight: 600; color: var(--ink); margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.meter-note { font-size: 0.82rem; color: var(--ink-muted); }
.meter-primary .meter-note { color: #9cb2c5; }
.meter-subgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.instrument-cta-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.inline-action { font-weight: 700; font-size: 0.92rem; color: var(--cyan-deep); }
.inline-action:hover { text-decoration: underline; }
.abyss-section { position: relative; background: var(--abyss); color: #eef5fa; padding-bottom: 96px; }
.abyss-wave { width: 100%; line-height: 0; margin-bottom: 64px; }
.abyss-wave svg { width: 100%; height: 48px; display: block; }
.abyss-header { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: end; margin-bottom: 48px; }
.abyss-header h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); color: #ffffff; }
.serif-accent-dark { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--cyan); font-size: 1.12em; }
.abyss-lead { color: #9ab0c4; font-size: 1rem; line-height: 1.65; }
.architecture-deck { display: grid; grid-template-columns: 0.85fr 1.15fr; border: 1px solid var(--abyss-line); border-radius: 12px; overflow: hidden; background: var(--abyss-card); margin-bottom: 52px; }
.arch-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--abyss-line); }
.arch-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px 24px; background: transparent; border: none; border-bottom: 1px solid var(--abyss-line); color: #9ab0c4; text-align: left; cursor: pointer; transition: background 0.18s ease, color 0.18s ease; }
.arch-tab:last-child { border-bottom: none; }
.arch-tab strong { font-size: 1.05rem; color: #e2edf6; }
.arch-tab-sub { font-size: 0.84rem; color: #7d96ac; }
.arch-tab:hover { background: rgba(255, 255, 255, 0.03); }
.arch-tab.active { background: rgba(44, 197, 238, 0.1); border-left: 3px solid var(--cyan); padding-left: 21px; }
.arch-tab.active .mono-micro { color: var(--cyan); }
.arch-viewer { padding: 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.arch-meta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--abyss-line); }
.arch-timeline { font-family: var(--font-mono); font-size: 0.74rem; color: var(--cyan); background: rgba(44, 197, 238, 0.12); padding: 4px 10px; border-radius: 4px; }
.arch-viewer h3 { font-size: 1.55rem; color: #ffffff; margin-bottom: 10px; }
.arch-viewer p { color: #a6bccf; font-size: 0.96rem; line-height: 1.65; }
.arch-deliverables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.arch-deliverables li { padding: 12px 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--abyss-line); font-size: 0.86rem; color: #dce9f5; }
.arch-stack-line { padding-top: 16px; border-top: 1px solid var(--abyss-line); display: flex; flex-wrap: wrap; gap: 8px; }
.arch-chip { font-family: var(--font-mono); font-size: 0.72rem; padding: 4px 9px; border-radius: 4px; border: 1px solid var(--abyss-line); color: #9ab0c4; }
.principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 36px; border-top: 1px solid var(--abyss-line); }
.principle h3 { font-size: 1.14rem; color: #ffffff; margin: 10px 0 8px; }
.principle p { font-size: 0.9rem; color: #93a9bd; }
.contact-section { padding: 96px 0; background: var(--paper); }
.contact-shell { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: start; }
.contact-editorial h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 16px; }
.contact-intro { font-size: 1rem; color: var(--ink-soft); margin-bottom: 34px; }
.expect-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.expect-list li { display: flex; gap: 16px; align-items: flex-start; }
.expect-num { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.expect-list strong { display: block; font-size: 0.96rem; margin-bottom: 2px; }
.expect-list p { font-size: 0.88rem; color: var(--ink-soft); }
.audit-form { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 34px; display: flex; flex-direction: column; gap: 20px; }
.form-header-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.field-label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 10px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip { border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-soft); font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: all 0.16s ease; }
.topic-chip:hover { border-color: var(--ink); color: var(--ink); }
.topic-chip.selected { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 11px 13px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 0.92rem; outline: none; transition: border-color 0.18s ease, background 0.18s ease; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { border-color: var(--ink); background: #ffffff; }
.input-group textarea { resize: vertical; min-height: 108px; }
.btn-submit { width: 100%; padding: 14px 20px; font-size: 0.95rem; }
.form-feedback { font-size: 0.88rem; min-height: 1.2em; }
.form-feedback.success { color: var(--emerald); font-weight: 600; }
.form-feedback.error { color: #b91c1c; font-weight: 500; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 52px 0 32px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.footer-note { margin-top: 12px; max-width: 360px; font-size: 0.9rem; color: var(--ink-soft); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 0.88rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1040px) {
  .hero-layout, .section-intro-split, .instrument-panel, .abyss-header, .architecture-deck, .contact-shell, .console-grid { grid-template-columns: 1fr; }
  .console-pane { border-right: none; border-bottom: 1px solid var(--line); }
  .console-pane:last-child { border-bottom: none; }
  .arch-tabs { border-right: none; border-bottom: 1px solid var(--abyss-line); }
  .ledger-row { grid-template-columns: 44px 1fr; }
  .ledger-body { grid-column: 1 / -1; }
  .hero-spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-cell:nth-child(2) { border-right: none; }
  .spec-cell:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .spec-cell:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .rail-hide-sm, .rail-sep, .nav-links, .nav-right .btn-ink { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-spec-strip, .contrast-pair, .meter-subgrid, .principles-grid, .arch-deliverables, .form-grid-2 { grid-template-columns: 1fr; }
  .spec-cell { padding-left: 0; border-right: none; border-bottom: 1px solid var(--line); }
  .spec-cell:last-child { border-bottom: none; }
  .instrument-panel, .audit-form, .arch-viewer { padding: 24px 20px; }
}