:root {
  --ink: #171815;
  --muted: #63645e;
  --paper: #f4f0e6;
  --paper-deep: #e9e2d3;
  --line: rgba(23, 24, 21, 0.18);
  --accent: #ef5b35;
  --accent-dark: #a8321b;
  --signal: #0f766e;
  --white: #fffdf7;
  --display: "Iowan Old Style", "Baskerville", "Songti SC", "STSong", serif;
  --body: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { color: var(--white); background: var(--accent); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.055;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  height: 76px;
  padding: 0 clamp(22px, 4vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 230, 0.9);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--ink);
  font-family: var(--display);
  font-size: 21px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: 0.08em; }
.brand small { margin-top: -2px; font: 9px/1.2 var(--mono); letter-spacing: 0.1em; color: var(--muted); }

nav { display: flex; gap: clamp(18px, 3vw, 42px); }
nav a {
  position: relative;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; background: var(--accent); transition: right 180ms ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }

.read-only-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  font: 10px var(--mono);
  letter-spacing: 0.06em;
}
.read-only-badge i, .simulation-notice i, .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.hero {
  min-height: calc(100vh - 76px);
  padding: clamp(58px, 8vw, 120px) clamp(22px, 6vw, 100px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(44px, 7vw, 120px);
  align-items: center;
  background-image:
    linear-gradient(rgba(23, 24, 21, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 21, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
}
.hero > * { min-width: 0; }

.eyebrow, .kicker { font: 11px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow b { padding: 5px 8px; color: var(--accent-dark); border: 1px solid rgba(239, 91, 53, 0.5); font-weight: 500; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.045em; }
h1 { margin: 28px 0 26px; font-size: clamp(56px, 7.3vw, 116px); line-height: 0.93; }
h1 span { color: var(--accent); font-style: italic; }
h2 { margin-bottom: 24px; font-size: clamp(42px, 5.2vw, 78px); line-height: 1; }
.hero-lead { max-width: 610px; font-size: clamp(17px, 1.6vw, 22px); color: #3f403b; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 38px 0 24px; }

.button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.button:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }
.button-primary { color: var(--white); background: var(--ink); }
.button-ghost { background: rgba(244, 240, 230, 0.76); }
.privacy-line { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.lock-icon { color: var(--signal); font-size: 20px; }

.hero-board {
  position: relative;
  min-height: 575px;
  padding: 22px;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: 18px 18px 0 rgba(23, 24, 21, 0.07);
  transform: rotate(1deg);
}
.hero-board::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 26px;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(214, 197, 157, 0.65);
  border-left: 1px dashed rgba(23, 24, 21, 0.25);
  border-right: 1px dashed rgba(23, 24, 21, 0.25);
}
.board-topline { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font: 10px var(--mono); letter-spacing: 0.1em; }
.raw-note { margin: 25px 0 12px; padding: 20px; background: #f8d85e; transform: rotate(-1.2deg); box-shadow: 5px 7px 0 rgba(23, 24, 21, 0.12); }
.note-tag { font: 9px var(--mono); letter-spacing: 0.14em; }
.raw-note p { margin: 10px 0 0; font-family: var(--display); font-size: 23px; line-height: 1.4; }
.decision-path { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0; }
.decision-path div { position: relative; padding: 0 9px; text-align: center; }
.decision-path div:not(:last-child)::after { content: "→"; position: absolute; right: -7px; top: 7px; color: var(--accent); }
.decision-path b { display: block; color: var(--accent); font: 17px var(--mono); }
.decision-path span { font-size: 11px; }
.final-slip { position: relative; padding: 23px; border: 1px solid var(--ink); background: var(--white); overflow: hidden; }
.slip-label { font: 9px var(--mono); letter-spacing: 0.13em; color: var(--muted); }
.final-slip > strong { display: block; margin: 8px 0 13px; font-family: var(--display); font-size: 25px; }
.final-slip ul { padding: 0; margin: 0; list-style: none; }
.final-slip li { padding: 5px 0; font-size: 12px; border-top: 1px dotted var(--line); }
.approved-stamp { position: absolute; right: 12px; bottom: 14px; padding: 8px; color: var(--accent-dark); border: 3px double var(--accent); border-radius: 50%; font: 9px/1.15 var(--mono); text-align: center; transform: rotate(-12deg); opacity: 0.75; }

.hero-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.hero-metrics div { min-height: 112px; padding: 20px; display: flex; align-items: flex-end; gap: 12px; border-right: 1px solid var(--line); }
.hero-metrics strong { font: 48px/1 var(--display); }
.hero-metrics span { padding-bottom: 5px; font-size: 12px; color: var(--muted); }

.ruled-section { position: relative; padding: clamp(88px, 11vw, 160px) clamp(22px, 7vw, 118px); border-top: 1px solid var(--ink); }
.section-index { position: absolute; top: 24px; left: clamp(22px, 3vw, 48px); color: var(--accent); font: 15px var(--mono); }
.section-heading { max-width: 860px; margin-bottom: 58px; }
.section-heading.narrow { max-width: 720px; }
.section-heading > p:last-child { max-width: 650px; color: var(--muted); font-size: 17px; }
.kicker { margin-bottom: 18px; color: var(--accent-dark); }

.demo-section { background: var(--ink); color: var(--white); }
.demo-section .section-index, .demo-section .kicker { color: #ff7957; }
.demo-section .section-heading > p:last-child { color: #b8b9b2; }
.demo-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 720px; border: 1px solid #4a4b45; background: #20211e; }
.case-picker { border-right: 1px solid #4a4b45; }
.case-picker-title { padding: 18px; color: #8d8e87; font: 10px var(--mono); letter-spacing: 0.11em; border-bottom: 1px solid #4a4b45; }
.case-button { width: 100%; padding: 20px 18px; display: block; color: #b5b6af; background: transparent; border: 0; border-bottom: 1px solid #383934; text-align: left; cursor: pointer; transition: background 160ms ease, color 160ms ease; }
.case-button:hover, .case-button:focus-visible { background: #2a2b27; color: white; }
.case-button.active { color: white; background: var(--accent); }
.case-button span, .case-button strong, .case-button small { display: block; }
.case-button span { margin-bottom: 9px; font: 9px var(--mono); letter-spacing: 0.1em; opacity: 0.75; }
.case-button strong { margin-bottom: 3px; font-size: 14px; }
.case-button small { font-size: 11px; opacity: 0.72; }
.simulation-notice { margin: 24px 18px; padding: 12px; display: flex; align-items: flex-start; gap: 12px; border: 1px dashed #4a4b45; color: #8d8e87; font: 10px/1.6 var(--mono); }
.simulation-notice i { margin-top: 4px; flex: none; background: #f8d85e; box-shadow: none; }
.chat-stage { min-width: 0; display: flex; flex-direction: column; }
.chat-toolbar { height: 56px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #4a4b45; color: #b8b9b2; font: 10px var(--mono); }
.chat-toolbar div { display: flex; align-items: center; gap: 10px; }
.chat-toolbar button { color: #d7d8d1; background: transparent; border: 0; cursor: pointer; font: 10px var(--mono); }
.chat-toolbar button:hover, .chat-toolbar button:focus-visible { color: #ff7957; }
.demo-session-status b { color: #f8d85e; font-weight: 500; }
#demo-counter { padding-left: 10px; border-left: 1px solid #4a4b45; color: #85867f; }
.demo-controls { gap: 14px !important; }
.transcript { flex: 1; max-height: 650px; padding: 24px clamp(18px, 4vw, 48px); overflow-y: auto; scrollbar-color: #555650 #20211e; }
.message { max-width: 82%; margin-bottom: 18px; opacity: 0; transform: translateY(8px); animation: message-in 300ms ease forwards; }
.message-meta { margin-bottom: 5px; color: #85867f; font: 9px var(--mono); letter-spacing: 0.08em; }
.message-phase { display: inline-block; margin-left: 7px; padding: 2px 5px; color: #171815; background: #f8d85e; letter-spacing: 0.04em; }
.message-bubble { padding: 15px 17px; border: 1px solid #51524c; background: #292a26; font-size: 14px; }
.message.user { margin-left: auto; }
.message.user .message-meta { text-align: right; }
.message.user .message-bubble { color: var(--ink); background: #e8dfcf; border-color: #e8dfcf; }
.message.agent .message-bubble strong { color: #ff7b59; }
.message.agent .message-bubble ul { padding-left: 18px; margin: 9px 0 0; }
.message.system { max-width: 100%; }
.message.system .message-bubble { padding: 9px 13px; color: #aaa; border-style: dashed; background: transparent; font: 10px var(--mono); }
.message.delivery { max-width: 100%; }
.message.delivery .message-bubble { border-color: #7dd3c7; background: #202b27; }
.delivery-title { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: #7dd3c7; font: 10px var(--mono); }
.delivery-manifest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0; margin: 0; list-style: none; }
.delivery-manifest li { padding: 8px 10px; border: 1px solid #46554f; color: #d9ded8; background: #26332e; font: 10px/1.45 var(--mono); overflow-wrap: anywhere; }
.delivery-result { display: flex; justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #46554f; color: #b8c2bd; font: 10px var(--mono); }
.delivery-result strong { color: #7dd3c7 !important; }
.demo-progress { height: 3px; background: #30312d; }
.demo-progress i { display: block; width: 0; height: 100%; background: var(--accent); transition: width 260ms ease; }

@keyframes message-in { to { opacity: 1; transform: translateY(0); } }

.capability-section { background: var(--paper); }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.capability-card { min-height: 310px; padding: 28px; display: flex; flex-direction: column; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transition: transform 180ms ease, background 180ms ease; }
.capability-card:hover { z-index: 2; transform: translate(-6px, -6px); background: var(--white); box-shadow: 7px 7px 0 var(--ink); }
.capability-card.accent-card { background: #f8d85e; }
.card-number { margin-left: auto; color: var(--accent); font: 14px var(--mono); }
.capability-card h3 { margin: 48px 0 18px; font-family: var(--display); font-size: 31px; font-weight: 500; }
.capability-card p { color: var(--muted); font-size: 14px; }
.capability-card b { margin-top: auto; font: 9px var(--mono); letter-spacing: 0.09em; }

.workflow-section { background: var(--paper-deep); }
.workflow-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr); gap: clamp(42px, 7vw, 100px); align-items: start; }
.workflow-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--ink); }
.workflow-list li { display: grid; grid-template-columns: 72px 1fr; padding: 21px 0; border-bottom: 1px solid var(--line); }
.workflow-list li > span { color: var(--accent); font: 12px var(--mono); }
.workflow-list b { font-family: var(--display); font-size: 23px; font-weight: 500; }
.workflow-list p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.quality-console { position: sticky; top: 105px; padding: 20px; color: #f7f3e8; background: var(--ink); box-shadow: 14px 14px 0 rgba(23, 24, 21, 0.14); }
.console-head { display: flex; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid #4e4f49; font: 10px var(--mono); letter-spacing: 0.08em; }
.review-stage { display: grid; grid-template-columns: 46px 1fr auto; gap: 13px; align-items: center; padding: 18px 0; border-bottom: 1px solid #383934; }
.review-stage > span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #6b6c65; font: 11px var(--mono); }
.review-stage b, .review-stage small { display: block; }
.review-stage b { font: 10px var(--mono); letter-spacing: 0.06em; }
.review-stage small { color: #969790; font-size: 10px; }
.review-stage i { color: #7dd3c7; font: normal 9px var(--mono); }
.hash-gate { margin-top: 18px; padding: 16px; border: 1px solid #4e4f49; background: #23241f; }
.hash-gate span, .hash-gate code, .hash-gate strong { display: block; }
.hash-gate span { color: #999a93; font: 9px var(--mono); }
.hash-gate code { margin: 10px 0; color: #f8d85e; font: 10px/1.5 var(--mono); overflow-wrap: anywhere; }
.hash-gate strong { color: #7dd3c7; font: 11px var(--mono); text-align: right; }

.deliverables-section { overflow: hidden; }
.file-stack { min-height: 520px; display: grid; grid-template-columns: 1.3fr repeat(3, 0.8fr); gap: 0; align-items: end; perspective: 1000px; }
.file-sheet { position: relative; min-height: 350px; padding: 34px 24px; border: 1px solid var(--ink); background: var(--paper-deep); box-shadow: 10px 10px 0 rgba(23, 24, 21, 0.08); transform: rotate(2deg) translateX(-10px); transition: transform 220ms ease; }
.file-sheet:nth-child(3) { transform: rotate(-2deg) translateX(-20px); background: #efeadf; }
.file-sheet:nth-child(4) { transform: rotate(1deg) translateX(-30px); }
.file-sheet:hover { z-index: 3; transform: translateY(-22px) rotate(0); }
.primary-file { z-index: 2; min-height: 470px; background: var(--white); transform: rotate(-1deg); }
.file-tab { position: absolute; top: -25px; left: -1px; padding: 6px 12px; border: 1px solid var(--ink); border-bottom: 0; background: inherit; font: 9px var(--mono); }
.file-sheet p { font: 9px var(--mono); letter-spacing: 0.1em; color: var(--muted); }
.file-sheet h3 { margin-top: 30px; font-family: var(--display); font-size: clamp(24px, 3vw, 40px); font-weight: 500; overflow-wrap: anywhere; }
.file-sheet ul { padding: 0; margin-top: 50px; list-style: none; }
.file-sheet li { padding: 9px 0; border-top: 1px dotted var(--line); font-size: 12px; }
.file-state { position: absolute; left: 24px; bottom: 22px; color: var(--accent-dark); font: 9px var(--mono); letter-spacing: 0.09em; }

.boundaries-section { color: var(--white); background: var(--accent); }
.boundaries-section .section-index, .boundaries-section .kicker { color: #521208; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255,255,255,0.55); }
.boundary-column { padding: clamp(26px, 4vw, 54px); }
.boundary-column + .boundary-column { border-left: 1px solid rgba(255,255,255,0.55); }
.boundary-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.55); }
.boundary-title span { font: 9px var(--mono); letter-spacing: 0.1em; }
.boundary-title b { font-family: var(--display); font-size: 28px; font-weight: 500; }
.boundary-column ul { padding: 0; margin: 20px 0 0; list-style: none; }
.boundary-column li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.boundary-column li::before { position: absolute; left: 0; font: 15px var(--mono); }
.does li::before { content: "+"; }
.does-not li::before { content: "×"; }
.does-not { background: rgba(86, 18, 8, 0.16); }

.evidence-section { background: var(--white); }
.case-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.result-card { min-height: 310px; padding: 25px; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--paper); }
.result-card > div { display: flex; align-items: center; justify-content: space-between; }
.result-card > div > span { font: 9px var(--mono); letter-spacing: 0.1em; }
.status { padding: 5px 7px; font: normal 9px var(--mono); border: 1px solid; }
.status.partial { color: #8d5800; }
.status.adopted { color: var(--signal); }
.status.review { color: var(--accent-dark); }
.result-card h3 { margin: 70px 0 18px; font-family: var(--display); font-size: 27px; font-weight: 500; }
.result-card p { color: var(--muted); font-size: 14px; }
.result-card small { margin-top: auto; padding-top: 16px; border-top: 1px dotted var(--line); color: var(--muted); }

.security-section { background: var(--paper-deep); }
.security-panel { position: relative; padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 70px; color: var(--white); background: var(--ink); overflow: hidden; }
.security-panel h2 { margin-bottom: 0; }
.security-panel ul { z-index: 1; padding: 0; margin: 0; list-style: none; }
.security-panel li { display: grid; grid-template-columns: 42px 1fr; padding: 15px 0; border-bottom: 1px solid #3e3f3a; }
.security-panel li span { color: #ff7957; font: 10px var(--mono); }
.security-seal { position: absolute; right: -22px; bottom: -35px; width: 165px; height: 165px; display: grid; place-items: center; border: 5px double var(--accent); border-radius: 50%; color: var(--accent); font: 13px/1.4 var(--mono); text-align: center; transform: rotate(-12deg); opacity: 0.6; }

.closing-section { min-height: 600px; padding: 110px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background-image: radial-gradient(circle at center, rgba(239,91,53,0.16), transparent 48%); }
.closing-section h2 { margin: 10px 0 20px; font-size: clamp(48px, 7vw, 94px); }
.closing-section > p:not(.kicker) { margin-bottom: 35px; color: var(--muted); }

footer { min-height: 120px; padding: 25px clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #d7d6ce; background: var(--ink); }
footer p, footer a { margin: 0; color: #999a93; font-size: 11px; }
.footer-brand .brand-mark { color: var(--ink); background: var(--paper); }
.footer-brand small { color: #777870; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms ease, transform 620ms cubic-bezier(.22,.8,.25,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.hero .reveal { opacity: 1; transform: none; }
.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 180ms; }

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

@media (max-width: 980px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-board { max-width: 660px; }
  .capability-grid, .case-results { grid-template-columns: repeat(2, 1fr); }
  .workflow-layout { grid-template-columns: 1fr; }
  .quality-console { position: static; }
  .file-stack { grid-template-columns: repeat(2, 1fr); gap: 42px 0; }
  .file-sheet, .file-sheet:nth-child(3), .file-sheet:nth-child(4) { transform: none; min-height: 310px; }
  .primary-file { min-height: 390px; }
  .security-panel { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { height: 66px; padding: 0 16px; }
  .read-only-badge { padding: 7px; font-size: 0; }
  .read-only-badge i { margin: 0; }
  .hero { min-height: auto; padding: 66px 18px 0; gap: 55px; }
  h1 { font-size: clamp(48px, 15.6vw, 76px); }
  .hero-copy { width: 100%; max-width: calc(100vw - 36px); overflow: hidden; }
  .hero-copy h1 span { display: block; font-size: 0.78em; overflow-wrap: anywhere; }
  .hero-lead, .privacy-line { max-width: calc(100vw - 36px); }
  h2 { font-size: clamp(40px, 12vw, 60px); }
  .hero-board { width: 100%; min-width: 0; min-height: 540px; padding: 16px; overflow: hidden; }
  .board-topline { gap: 16px; }
  .raw-note p { font-size: 19px; }
  .decision-path span { font-size: 9px; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .hero-metrics div { min-height: 92px; }
  .ruled-section { padding: 92px 18px; }
  .demo-shell { grid-template-columns: 1fr; }
  .case-picker { display: grid; grid-template-columns: repeat(3, 1fr); border-right: 0; border-bottom: 1px solid #4a4b45; }
  .case-picker-title, .simulation-notice { display: none; }
  .case-button { padding: 14px 10px; border-right: 1px solid #383934; }
  .case-button small { display: none; }
  .case-button strong { font-size: 11px; }
  .chat-stage { min-height: 540px; }
  .chat-toolbar { height: auto; min-height: 64px; padding: 10px 12px; gap: 8px; align-items: flex-start; }
  .demo-session-status { align-items: flex-start !important; flex-wrap: wrap; }
  .demo-controls { flex-direction: column; align-items: flex-end !important; gap: 5px !important; }
  .message { max-width: 94%; }
  .delivery-manifest { grid-template-columns: 1fr; }
  .capability-grid, .case-results, .boundary-grid { grid-template-columns: 1fr; }
  .boundary-column + .boundary-column { border-left: 0; border-top: 1px solid rgba(255,255,255,0.55); }
  .file-stack { grid-template-columns: 1fr; gap: 48px; }
  .file-sheet, .primary-file { min-height: 300px; }
  .security-panel { padding: 38px 22px 100px; gap: 30px; }
  footer { align-items: flex-start; flex-direction: column; }
}
