:root {
  color-scheme: dark;
  --ink: #f7f4f6;
  --muted: #a4a6b0;
  --faint: #6f7380;
  --paper: #0b0c10;
  --paper-soft: #10121a;
  --panel: rgba(18, 20, 29, 0.76);
  --line: rgba(221, 226, 242, 0.14);
  --line-strong: rgba(221, 226, 242, 0.28);
  --blue: #9bcaff;
  --violet: #c8afff;
  --peach: #ffddc7;
  --green: #7fe0b2;
  --amber: #ffd987;
  --shell: min(1240px, calc(100vw - 64px));
  --radius: 24px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 4%, rgba(91, 112, 171, .16), transparent 30%),
    radial-gradient(circle at 20% 24%, rgba(120, 89, 166, .07), transparent 24%),
    var(--paper);
  color: var(--ink);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.012), transparent 48%, rgba(255,255,255,.012));
  content: "";
  pointer-events: none;
}

.page-grid {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
  pointer-events: none;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 20px; padding: 10px 16px; border-radius: 10px; background: white; color: #111; transition: top .2s ease; }
.skip-link:focus { top: 20px; }
.section-shell { width: var(--shell); margin-inline: auto; }
.section-rule { border-top: 1px solid var(--line); }

.site-header {
  position: fixed;
  z-index: 30;
  top: 20px;
  left: 50%;
  display: flex;
  width: min(1280px, calc(100vw - 36px));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 26px;
  border: 1px solid transparent;
  border-radius: 20px;
  transform: translateX(-50%);
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(10, 11, 16, .82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .32);
  backdrop-filter: blur(22px) saturate(120%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.mira-wordmark {
  background: linear-gradient(112deg, #edf6ff, #d8cbff 56%, #fff0e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: .34em;
  line-height: 1;
}
.mira-live-face {
  position: relative;
  display: inline-block;
  width: 58px;
  aspect-ratio: 450 / 320;
  flex: none;
  filter: drop-shadow(0 0 12px rgba(173, 189, 255, .18));
}
.mira-live-face::before {
  position: absolute;
  z-index: 4;
  top: -9px;
  left: 50%;
  min-width: 24px;
  color: #eef5ff;
  content: "";
  font: 800 10px/1 var(--mono);
  letter-spacing: -.08em;
  text-align: center;
  text-shadow: 0 0 7px currentColor, 0 0 15px currentColor;
  transform: translate(-50%, -3px) scale(.7);
  opacity: 0;
  pointer-events: none;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}
.mira-live-face::after {
  position: absolute;
  z-index: 4;
  bottom: -7px;
  left: 50%;
  min-width: 58px;
  color: #858a98;
  content: "";
  font: 700 6px/1 var(--mono);
  letter-spacing: .11em;
  text-align: center;
  text-shadow: 0 0 7px rgba(155,202,255,.24);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: color .2s ease, opacity .2s ease;
}
.mira-live-face[data-reaction-active="true"]:not([data-expression="idle"])::before { opacity: .96; transform: translate(-50%, 0) scale(1); }
.mira-live-face[data-reaction-active="true"]:not([data-expression="idle"])::after { opacity: 1; }
.mira-live-face[data-expression="attentive"]::before { color: var(--blue); content: "!!"; animation: mira-state-pop 1.5s ease-in-out infinite; }
.mira-live-face[data-expression="thinking"]::before { color: var(--amber); content: "???"; animation: mira-state-float 1.15s ease-in-out infinite; }
.mira-live-face[data-expression="looking"]::before { color: var(--blue); content: "⌕"; font-size: 14px; animation: mira-state-scan 1.1s ease-in-out infinite; }
.mira-live-face[data-expression="recalling"]::before { color: var(--violet); content: "↺"; font-size: 14px; animation: mira-state-recall 1.2s ease-in-out infinite; }
.mira-live-face[data-expression="remembering"]::before { color: var(--green); content: "✦"; font-size: 13px; animation: mira-state-spark 1s ease-in-out infinite; }
.mira-live-face[data-expression="reused"]::before { color: #b7d5ff; content: "∞"; font-size: 14px; animation: mira-state-float 1.25s ease-in-out infinite; }
.mira-live-face[data-expression="uncertain"]::before { color: var(--violet); content: "?"; font-size: 13px; animation: mira-state-float 1.35s ease-in-out infinite; }
.mira-live-face[data-expression="conflict"]::before { color: #ff8e95; content: "××"; animation: mira-state-shake .7s ease-in-out infinite; }
.mira-live-face[data-expression="happy"]::before { color: var(--green); content: "✓"; font-size: 13px; animation: mira-state-pop 1.5s ease-in-out infinite; }
.mira-live-face[data-expression="attentive"]::after { color: var(--blue); content: "OBSERVE"; }
.mira-live-face[data-expression="thinking"]::after { color: var(--amber); content: "THINKING"; }
.mira-live-face[data-expression="looking"]::after { color: var(--blue); content: "SEARCH"; }
.mira-live-face[data-expression="recalling"]::after { color: var(--violet); content: "RECALL"; }
.mira-live-face[data-expression="remembering"]::after { color: var(--green); content: "REMEMBER"; }
.mira-live-face[data-expression="reused"]::after { color: #b7d5ff; content: "REUSE"; }
.mira-live-face[data-expression="uncertain"]::after { color: var(--violet); content: "UNCERTAIN"; }
.mira-live-face[data-expression="conflict"]::after { color: #ff8e95; content: "CONFLICT"; }
.mira-live-face[data-expression="happy"]::after { color: var(--green); content: "DONE"; }
.mira-live-face > img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mira-eye {
  position: absolute;
  z-index: 2;
  top: 59.4%;
  width: 13%;
  height: 17.5%;
  transform: translate(-50%, -50%);
  transition: top .22s ease, transform .22s ease;
}
.mira-eye-left { left: 36.7%; }
.mira-eye-right { left: 63.8%; }
.mira-eye > i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px rgba(255,255,255,.82);
  transform-origin: center;
  animation: mira-eye-blink 9.6s ease-in-out infinite;
  transition: width .22s ease, height .22s ease, border .22s ease, border-radius .22s ease, background .22s ease, box-shadow .22s ease, clip-path .22s ease, transform .22s ease;
}
.mira-live-face[data-expression="attentive"] .mira-eye > i { transform: scale(1.2); animation: mira-eye-alert 7.2s ease-in-out infinite; }
.mira-live-face[data-expression="thinking"] .mira-eye > i { height: 2px; border-radius: 999px; animation: none; transform: translateY(2px); }
.mira-live-face[data-expression="thinking"] .mira-eye-right > i { transform: translateY(0) rotate(-8deg); }
.mira-live-face[data-expression="uncertain"] .mira-eye > i { animation: none; }
.mira-live-face[data-expression="uncertain"] .mira-eye-left > i { transform: scale(.78); }
.mira-live-face[data-expression="uncertain"] .mira-eye-right > i { height: 2px; border-radius: 999px; transform: rotate(-12deg) translateY(2px); }
.mira-live-face[data-expression="conflict"] .mira-eye > i { height: 2px; border-radius: 999px; animation: none; }
.mira-live-face[data-expression="conflict"] .mira-eye-left > i { transform: rotate(24deg); }
.mira-live-face[data-expression="conflict"] .mira-eye-right > i { transform: rotate(-24deg); }
.mira-live-face[data-expression="looking"] .mira-eye > i { width: 72%; height: 44%; border-radius: 55%; opacity: .9; animation: mira-eye-look .9s steps(2, end) 3; }
.mira-live-face[data-expression="recalling"] .mira-eye > i { width: 82%; height: 82%; background: #eee7ff; box-shadow: 0 0 9px rgba(200,175,255,.92); animation: mira-eye-recall 1.2s ease-in-out infinite; }
.mira-live-face[data-expression="remembering"] .mira-eye > i,
.mira-live-face[data-expression="reused"] .mira-eye > i {
  width: 112%;
  height: 72%;
  border-radius: 0;
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 78% 100%, 50% 38%, 22% 100%);
  animation: mira-eye-happy .72s ease-in-out 2;
}
.mira-live-face[data-expression="remembering"] .mira-eye > i { background: #eafff4; box-shadow: 0 0 9px rgba(127,224,178,.9); }
.mira-live-face[data-expression="reused"] .mira-eye > i { background: #edf5ff; box-shadow: 0 0 9px rgba(155,202,255,.9); }
.mira-live-face[data-expression="happy"] .mira-eye > i {
  width: 112%;
  height: 72%;
  border-radius: 0;
  box-shadow: 0 0 8px rgba(255,255,255,.78);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 78% 100%, 50% 38%, 22% 100%);
  animation: mira-eye-happy .72s ease-in-out 2;
}
@keyframes mira-eye-blink { 0%, 43%, 47%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.08); } }
@keyframes mira-eye-alert { 0%, 24%, 42%, 66%, 100% { transform: scale(1.2) scaleY(1); } 29%, 36%, 71%, 78% { transform: scale(1.2) scaleY(.07); } }
@keyframes mira-eye-look { 0%, 42% { transform: translateX(-38%) scaleY(.82); } 48%, 92% { transform: translateX(38%) scaleY(.82); } 100% { transform: translateX(-38%) scaleY(.82); } }
@keyframes mira-eye-recall { 0%, 100% { transform: translate(-12%, 3%) scale(.9); } 50% { transform: translate(12%, -3%) scale(1.05); } }
@keyframes mira-eye-happy { 0%, 100% { transform: translateY(1px) scale(1); } 50% { transform: translateY(-1px) scale(1.18); } }
@keyframes mira-state-float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -3px); } }
@keyframes mira-state-pop { 0%, 100% { transform: translate(-50%, 0) scale(.94); } 50% { transform: translate(-50%, -1px) scale(1.08); } }
@keyframes mira-state-scan { 0%, 100% { transform: translate(-62%, 0); opacity: .72; } 50% { transform: translate(-38%, 0); opacity: 1; } }
@keyframes mira-state-recall { 0% { transform: translate(-50%, 0) rotate(-18deg) scale(.88); } 50% { transform: translate(-50%, -2px) rotate(16deg) scale(1.08); } 100% { transform: translate(-50%, 0) rotate(-18deg) scale(.88); } }
@keyframes mira-state-spark { 0%, 100% { transform: translate(-50%, 1px) scale(.72); opacity: .62; } 50% { transform: translate(-50%, -2px) scale(1.18); opacity: 1; } }
@keyframes mira-state-shake { 0%, 100% { transform: translate(-50%, 0) rotate(0); } 33% { transform: translate(calc(-50% - 1px), 0) rotate(-5deg); } 66% { transform: translate(calc(-50% + 1px), 0) rotate(5deg); } }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: #c1c2ca; font-size: 13px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: white; }
.site-nav a[data-demo-nav] { position: relative; }
.site-nav a[data-demo-nav]::before { position: absolute; top: 50%; left: -11px; width: 5px; height: 5px; border-radius: 50%; background: transparent; content: ""; transform: translateY(-50%); }
.site-nav a[data-demo-nav].is-online { color: #e9fff6; animation: demo-nav-shimmer 2.8s ease-in-out infinite; }
.site-nav a[data-demo-nav].is-online::before { background: var(--green); box-shadow: 0 0 10px rgba(127,224,178,.9); animation: demo-nav-dot 1.9s ease-in-out infinite; }
@keyframes demo-nav-shimmer { 0%, 100% { text-shadow: 0 0 0 rgba(127,224,178,0); } 50% { text-shadow: 0 0 13px rgba(127,224,178,.68), 0 0 24px rgba(155,202,255,.25); } }
@keyframes demo-nav-dot { 50% { transform: translateY(-50%) scale(1.45); opacity: .55; } }
.site-nav .nav-contact { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); }
.nav-toggle { display: none; }

.hero {
  display: grid;
  min-height: 980px;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 96px;
  padding-top: 148px;
  padding-bottom: 70px;
}
.hero-copy { align-self: center; }
.eyebrow { display: flex; margin: 0 0 25px; align-items: center; gap: 10px; color: #a7a9b3; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px rgba(127, 224, 178, .8); }
.brand-claim { margin: 0 0 24px; color: #f1edf5; font-size: 14px; font-weight: 720; letter-spacing: -.01em; }
.brand-claim span { color: #8e919d; font-weight: 500; }
.hero h1 { max-width: 830px; margin: 0; font-size: clamp(54px, 6.3vw, 92px); font-weight: 700; letter-spacing: -.065em; line-height: 1.08; }
.hero h1 span, .section-intro h2 span, .position-copy em {
  background: linear-gradient(112deg, var(--blue) 4%, var(--violet) 52%, var(--peach) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.hero-lead { max-width: 670px; margin: 32px 0 0; color: #adafba; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.8; }
.hero-actions { display: flex; margin-top: 40px; gap: 12px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 16px; padding: 0 21px; border: 1px solid var(--line); border-radius: 13px; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: #ece9f1; background: #ece9f1; color: #11131a; }
.button-secondary { background: rgba(255,255,255,.025); }
.button-secondary:hover { border-color: var(--line-strong); background: rgba(255,255,255,.055); }

.runtime-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(28, 31, 43, .82), rgba(10, 12, 18, .9));
  box-shadow: 0 42px 120px rgba(0, 0, 0, .38), inset 0 1px rgba(255,255,255,.04);
}
.runtime-card::before {
  position: absolute;
  width: 290px;
  height: 290px;
  top: -180px;
  right: -90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet), var(--peach));
  content: "";
  filter: blur(90px);
  opacity: .16;
}
.runtime-head, .runtime-foot { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 22px; color: #7e828f; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.runtime-head { border-bottom: 1px solid var(--line); }
.runtime-core { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 18px; padding: 28px 22px; border-bottom: 1px solid var(--line); }
.runtime-face { width: 76px; filter: drop-shadow(0 0 18px rgba(161, 194, 255, .26)); }
.runtime-core small { display: block; margin-bottom: 4px; color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.runtime-core strong { font-size: 22px; letter-spacing: -.025em; }
.status-chip { padding: 5px 9px; border: 1px solid rgba(127, 224, 178, .36); border-radius: 999px; background: rgba(127, 224, 178, .07); color: var(--green); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.runtime-steps { margin: 0; padding: 8px 22px; list-style: none; }
.runtime-steps li { position: relative; display: grid; min-height: 70px; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; align-content: center; padding-left: 18px; border-bottom: 1px solid rgba(255,255,255,.065); }
.runtime-steps li:last-child { border-bottom: 0; }
.runtime-steps li::before { position: absolute; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #575b68; content: ""; box-shadow: 0 0 0 5px rgba(255,255,255,.02); }
.runtime-steps li.is-on::before { background: var(--blue); box-shadow: 0 0 13px rgba(155, 202, 255, .72); }
.runtime-steps li > span { grid-row: 1 / 3; align-self: center; color: #5f6370; font-family: var(--mono); font-size: 9px; }
.runtime-steps strong { font-size: 13px; letter-spacing: .01em; }
.runtime-steps small { color: #818491; font-size: 11px; }
.runtime-foot { border-top: 1px solid var(--line); }
.runtime-foot span:first-child { color: var(--amber); }
.runtime-foot span:last-child { letter-spacing: 0; }
.hero-ledger { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); align-self: end; margin: 60px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-ledger div { min-height: 116px; padding: 24px 28px; border-left: 1px solid var(--line); }
.hero-ledger div:first-child { padding-left: 0; border-left: 0; }
.hero-ledger dt { font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: -.04em; }
.hero-ledger dd { margin: 8px 0 0; color: #777b87; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.position { display: grid; grid-template-columns: 230px 1fr; gap: 70px; padding-block: 160px; }
.position-index, .section-intro > div { display: flex; align-items: baseline; gap: 18px; color: #717581; font-family: var(--mono); }
.position-index span, .section-intro > div span { color: var(--blue); font-size: 10px; }
.position-index p, .section-intro > div p { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.position-kicker { margin: 0 0 24px; color: var(--blue); font-size: 14px; font-weight: 750; }
.position-copy h2 { margin: 0; font-size: clamp(48px, 6vw, 82px); font-weight: 680; letter-spacing: -.06em; line-height: 1.1; }
.position-copy > p:last-child { max-width: 690px; margin: 42px 0 0; color: var(--muted); font-size: 17px; line-height: 1.85; }

.system-section, .evidence-section, .lineage-section { padding-block: 150px; }
.section-intro { display: grid; grid-template-columns: 220px minmax(0, 1fr) 360px; align-items: end; gap: 70px; margin-bottom: 70px; }
.section-intro h2 { margin: 0; font-size: clamp(44px, 5vw, 68px); font-weight: 680; letter-spacing: -.055em; line-height: 1.13; }
.section-intro > p { margin: 0 0 7px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.section-intro.compact { grid-template-columns: 220px 1fr; }
.section-intro.compact h2 { max-width: 760px; }
.circuit { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.circuit li { position: relative; display: grid; min-height: 190px; grid-template-columns: 40px 1fr; align-items: end; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); }
.circuit li::after { position: absolute; top: 30px; right: 28px; color: #3f4350; content: "↘"; font-family: var(--mono); }
.circuit li:nth-child(3n)::after, .circuit li:last-child::after { content: "↓"; }
.circuit li > span { color: #616571; font-family: var(--mono); font-size: 10px; }
.circuit strong, .circuit small { display: block; }
.circuit strong { margin-bottom: 8px; font-size: 21px; letter-spacing: -.025em; }
.circuit small { color: #858895; font-size: 12px; }
.circuit-caption { display: flex; margin-top: 30px; justify-content: space-between; gap: 20px; color: #777b87; font-size: 11px; }
.circuit-caption code { color: var(--blue); font-family: var(--mono); }

.evidence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.evidence-card { position: relative; min-height: 340px; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, rgba(25, 28, 38, .72), rgba(13, 15, 21, .84)); }
.evidence-card::after { position: absolute; width: 240px; height: 240px; right: -160px; bottom: -170px; border-radius: 50%; background: var(--violet); content: ""; filter: blur(80px); opacity: .08; }
.evidence-wide { min-height: 430px; grid-row: span 2; }
.evidence-meta { display: flex; justify-content: space-between; color: #6f7380; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.evidence-meta span:first-child { color: var(--blue); }
.evidence-card h3 { max-width: 600px; margin: 74px 0 20px; font-size: clamp(24px, 3vw, 42px); font-weight: 650; letter-spacing: -.045em; line-height: 1.25; }
.evidence-card:not(.evidence-wide) h3 { margin-top: 52px; font-size: 26px; }
.evidence-card p { max-width: 580px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.evidence-result { position: absolute; right: 34px; bottom: 30px; left: 34px; display: flex; padding-top: 19px; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.evidence-result span { color: #666a76; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.evidence-result strong { color: var(--green); font-family: var(--mono); font-size: 10px; font-weight: 500; }
.section-action { display: flex; margin-top: 34px; align-items: center; justify-content: space-between; gap: 30px; }
.section-action p { margin: 0; color: #7f828e; font-size: 13px; }
.section-action a { color: var(--blue); font-size: 13px; font-weight: 750; text-decoration: none; }
.section-action a span { margin-left: 12px; }

.lineage { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lineage li { display: grid; min-height: 120px; grid-template-columns: 150px 190px 1fr 100px; align-items: center; gap: 26px; border-bottom: 1px solid var(--line); transition: background .22s ease, padding .22s ease; }
.lineage li:hover { padding-inline: 18px; background: rgba(255,255,255,.018); }
.lineage time, .lineage li > span { color: #747884; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.lineage strong { font-size: 25px; letter-spacing: -.025em; }
.lineage p { margin: 0; color: #9a9da8; font-size: 14px; }
.lineage li > span { justify-self: end; }
.lineage .is-current strong, .lineage .is-current > span { color: var(--green); }

.closing { display: grid; grid-template-columns: 1fr 420px; gap: 100px; padding-block: 170px; }
.closing h2 { margin: 0; font-size: clamp(48px, 6vw, 80px); font-weight: 680; letter-spacing: -.06em; line-height: 1.12; }
.closing-copy { align-self: end; }
.closing-copy p { margin: 0 0 30px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.site-footer { display: grid; min-height: 180px; grid-template-columns: 1fr auto; align-items: center; gap: 30px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; color: #777b87; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.site-footer > div { display: flex; align-items: center; gap: 24px; }
.site-footer a { color: #a5a8b2; font-size: 12px; text-decoration: none; }
.site-footer small { color: #646873; font-family: var(--mono); font-size: 9px; }

/* Research ledger */
.ledger-page { background: var(--paper); }
.ledger-header { padding-top: 170px; padding-bottom: 100px; }
.ledger-header h1 { max-width: 970px; margin: 0; font-size: clamp(58px, 8vw, 112px); font-weight: 680; letter-spacing: -.075em; line-height: .98; }
.ledger-header h1 span { display: block; background: linear-gradient(112deg, var(--blue), var(--violet) 54%, var(--peach)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ledger-header > p:not(.eyebrow) { max-width: 710px; margin: 38px 0 0; color: var(--muted); font-size: 18px; line-height: 1.85; }
.ledger-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ledger-summary div { min-height: 120px; padding: 25px 28px; border-left: 1px solid var(--line); }
.ledger-summary div:first-child { padding-left: 0; border-left: 0; }
.ledger-summary strong { display: block; font-family: var(--mono); font-size: 26px; font-weight: 500; }
.ledger-summary span { color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.ledger-block { padding-block: 130px; }
.ledger-block-head { display: grid; grid-template-columns: 210px 1fr; gap: 70px; margin-bottom: 54px; }
.ledger-block-head > span { color: var(--blue); font-family: var(--mono); font-size: 10px; }
.ledger-block-head h2 { max-width: 760px; margin: 0; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.05em; line-height: 1.15; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.method-grid article { min-height: 250px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.012); }
.method-grid span { color: var(--blue); font-family: var(--mono); font-size: 10px; }
.method-grid h3 { margin: 70px 0 12px; font-size: 21px; }
.method-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.ledger-list { margin: 0; padding: 0; list-style: none; }
.ledger-entry { display: grid; grid-template-columns: 130px 160px 1fr 130px; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); }
.ledger-entry:last-child { border-bottom: 1px solid var(--line); }
.ledger-entry time, .ledger-entry .entry-id, .ledger-entry .entry-state { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.ledger-entry time { color: #757985; }
.ledger-entry .entry-id { color: var(--blue); }
.ledger-entry h3 { margin: 0 0 9px; font-size: 22px; letter-spacing: -.03em; }
.ledger-entry p { max-width: 680px; margin: 0; color: var(--muted); font-size: 13px; }
.ledger-entry .entry-state { justify-self: end; color: var(--green); }
.ledger-entry .entry-state.open { color: var(--amber); }
.ledger-entry .entry-state.frozen { color: var(--violet); }
.ledger-entry .entry-state.failed { color: #ff9d93; }
.ledger-entry .entry-state.stopped { color: #a5a8b2; }
.lineage-note { margin-top: 34px; color: #747884; font-size: 12px; }
.ledger-contact { display: grid; grid-template-columns: 1fr 380px; align-items: end; gap: 80px; }
.ledger-contact h2 { margin: 0; font-size: clamp(44px, 6vw, 78px); letter-spacing: -.06em; line-height: 1.1; }
.ledger-contact p { margin: 0 0 26px; color: var(--muted); }

[data-reveal], [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  :root { --shell: min(100% - 40px, 860px); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 58px; padding-top: 180px; }
  .runtime-card { width: min(100%, 620px); }
  .hero-ledger { margin-top: 30px; }
  .position { grid-template-columns: 160px 1fr; gap: 40px; }
  .section-intro { grid-template-columns: 150px 1fr; gap: 40px; }
  .section-intro > p { grid-column: 2; }
  .section-intro.compact { grid-template-columns: 150px 1fr; }
  .closing { grid-template-columns: 1fr 340px; gap: 50px; }
  .ledger-block-head { grid-template-columns: 150px 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 30px, 620px); }
  .site-header { top: 10px; min-height: 60px; padding-inline: 18px; }
  .brand { gap: 7px; }
  .brand .mira-live-face { width: 48px; }
  .mira-wordmark { font-size: 15px; letter-spacing: .28em; }
  .nav-toggle { display: grid; width: 40px; height: 40px; place-content: center; gap: 5px; border: 0; background: transparent; }
  .nav-toggle span:not(.sr-only) { width: 19px; height: 1px; background: white; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; top: 68px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(10, 11, 16, .96); backdrop-filter: blur(20px); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px; }
  .site-nav .nav-contact { border: 0; border-radius: 8px; }
  .hero { padding-top: 140px; padding-bottom: 50px; }
  .hero h1 { font-size: clamp(45px, 13vw, 66px); }
  .hero-actions { flex-direction: column; }
  .runtime-card { border-radius: 22px; }
  .runtime-core { grid-template-columns: 65px 1fr; }
  .runtime-face { width: 62px; }
  .status-chip { grid-column: 2; width: fit-content; }
  .hero-ledger { grid-template-columns: repeat(2, 1fr); }
  .hero-ledger div:nth-child(3) { border-left: 0; }
  .hero-ledger div:first-child, .hero-ledger div:nth-child(3) { padding-left: 0; }
  .hero-ledger div { min-height: 100px; padding: 20px; border-bottom: 1px solid var(--line); }
  .hero-ledger div:nth-child(n+3) { border-bottom: 0; }
  .position, .section-intro, .section-intro.compact, .ledger-block-head { grid-template-columns: 1fr; gap: 28px; }
  .position, .system-section, .evidence-section, .lineage-section, .ledger-block { padding-block: 96px; }
  .position-copy h2 { font-size: 46px; }
  .section-intro > p { grid-column: 1; }
  .circuit { grid-template-columns: 1fr; }
  .circuit li { min-height: 145px; }
  .circuit li:nth-child(3n)::after { content: "↘"; }
  .circuit-caption { display: block; overflow-wrap: anywhere; }
  .circuit-caption span { display: block; margin-top: 10px; }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-card, .evidence-wide { min-height: 340px; grid-row: auto; }
  .section-action { display: block; }
  .section-action a { display: inline-block; margin-top: 18px; }
  .lineage li { grid-template-columns: 90px 1fr auto; gap: 15px; padding: 23px 0; }
  .lineage p { grid-column: 2 / -1; }
  .closing { grid-template-columns: 1fr; gap: 40px; padding-block: 110px; }
  .site-footer { grid-template-columns: 1fr; align-content: center; gap: 15px; padding-block: 50px; }
  .site-footer > div { flex-wrap: wrap; }
  .ledger-header { padding-top: 150px; }
  .ledger-summary, .method-grid { grid-template-columns: 1fr; }
  .ledger-summary div { min-height: 92px; padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .ledger-summary div:last-child { border-bottom: 0; }
  .ledger-entry { grid-template-columns: 80px 1fr; gap: 10px 20px; }
  .ledger-entry > div { grid-column: 1 / -1; padding-top: 12px; }
  .ledger-entry .entry-state { grid-column: 2; grid-row: 1; }
  .ledger-contact { grid-template-columns: 1fr; gap: 35px; }
}

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

/* WHY · JOURNEY · HORIZON */
.story-page .site-nav a.is-active { color: white; }
.story-page .site-nav a.is-active::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 4px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  content: "";
}
.story-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 72px;
  padding-block: 150px 80px;
}
.story-hero::after {
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  top: 13%;
  right: -16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 175, 255, .12), transparent 68%);
  content: "";
  filter: blur(10px);
}
.story-hero-mark {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: #727682;
  font-family: var(--mono);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.story-hero-mark span { font-size: 9px; letter-spacing: .25em; }
.story-hero-mark strong { margin-top: 20px; color: #c7c9d1; font-size: 12px; letter-spacing: .34em; }
.story-hero-copy { max-width: 940px; }
.story-hero h1, .chapter-hero h1 {
  margin: 0;
  font-size: clamp(58px, 7.2vw, 108px);
  font-weight: 650;
  letter-spacing: -.072em;
  line-height: 1.02;
}
.story-hero h1 span, .chapter-hero h1 span {
  background: linear-gradient(112deg, var(--blue), var(--violet) 52%, var(--peach));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.story-hero-lead { max-width: 680px; margin: 36px 0 0; color: #b6b8c1; font-size: clamp(18px, 2vw, 25px); line-height: 1.62; }
.story-hero-truth { margin: 30px 0 0; color: #777b87; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; line-height: 1.8; }
.hero-path { margin: 25px 0 0; color: #666b78; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.chapter-links { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chapter-links a { position: relative; display: grid; min-height: 118px; grid-template-columns: 38px 1fr; align-content: center; padding: 20px 24px; border-left: 1px solid var(--line); text-decoration: none; transition: background .22s ease; }
.chapter-links a:first-child { border-left: 0; }
.chapter-links a:hover { background: rgba(255,255,255,.035); }
.chapter-links a > span { grid-row: 1 / 3; color: var(--blue); font-family: var(--mono); font-size: 9px; }
.chapter-links strong { font-size: 17px; letter-spacing: .08em; }
.chapter-links small { color: #777b87; font-size: 11px; }
.story-chapter { display: grid; grid-template-columns: 210px 1fr; gap: 72px; padding-block: 150px; }
.chapter-number { color: #727682; font-family: var(--mono); }
.chapter-number span { color: var(--blue); font-size: 10px; }
.chapter-number p { margin: 10px 0 0; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.chapter-copy { max-width: 850px; }
.chapter-kicker { margin: 0 0 24px; color: var(--blue) !important; font-size: 14px !important; font-weight: 720; }
.chapter-copy h2 { margin: 0; font-size: clamp(42px, 5.6vw, 74px); font-weight: 640; letter-spacing: -.06em; line-height: 1.12; }
.chapter-copy > p { max-width: 730px; margin: 34px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.chapter-copy blockquote { margin: 52px 0; padding-left: 28px; border-left: 2px solid var(--violet); color: #e7e2ee; font-size: clamp(20px, 2.6vw, 32px); font-weight: 540; line-height: 1.55; }
.text-link { display: inline-flex; margin-top: 42px; align-items: center; gap: 18px; color: var(--blue); font-size: 13px; font-weight: 760; text-decoration: none; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.chapter-facts { display: grid; max-width: 730px; grid-template-columns: repeat(3, 1fr); margin-top: 52px; border-block: 1px solid var(--line); }
.chapter-facts div { padding: 24px; border-left: 1px solid var(--line); }
.chapter-facts div:first-child { padding-left: 0; border-left: 0; }
.chapter-facts strong, .chapter-facts span { display: block; }
.chapter-facts strong { font-family: var(--mono); font-size: 24px; font-weight: 500; }
.chapter-facts span { margin-top: 5px; color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.recent-notes { padding-block: 150px; }
.story-section-head { display: grid; grid-template-columns: minmax(0, 1fr) 370px; align-items: end; gap: 70px; margin-bottom: 58px; }
.story-section-head > div > span, .journey-intro span, .horizon-rule span { color: var(--blue); font-family: var(--mono); font-size: 9px; letter-spacing: .13em; }
.story-section-head h2, .journey-intro h2, .research-door h2, .horizon-rule h2 { margin: 12px 0 0; font-size: clamp(38px, 5vw, 64px); font-weight: 640; letter-spacing: -.055em; line-height: 1.13; }
.story-section-head > p { margin: 0 0 7px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.note-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.note-preview-grid-full { grid-template-columns: repeat(2, 1fr); }
.generation-filter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin: 34px 0 15px; }
.generation-filter button { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border: 1px solid var(--line); border-radius: 15px; color: #8e929d; background: rgba(15,17,24,.72); font: 600 11px/1 var(--sans); cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.generation-filter button:hover { transform: translateY(-2px); color: var(--text); border-color: var(--line-strong); }
.generation-filter button[aria-pressed="true"] { color: var(--text); border-color: rgba(153,190,255,.55); background: linear-gradient(135deg, rgba(97,142,225,.2), rgba(164,132,235,.1)); }
.generation-filter strong { color: var(--blue); font: 700 10px/1 var(--mono); }
.generation-caption { margin: 0 0 24px; color: #737784; font: 10px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.note-preview-card { position: relative; display: flex; min-height: 370px; flex-direction: column; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(24,27,37,.7), rgba(12,14,20,.88)); text-decoration: none; transition: transform .22s ease, border-color .22s ease; }
.note-preview-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.note-preview-meta { display: flex; justify-content: space-between; gap: 20px; color: #737784; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.note-preview-meta span:first-child { color: var(--blue); }
.note-preview-meta span:last-child { max-width: 58%; text-align: right; overflow-wrap: anywhere; }
.note-preview-card > small { margin-top: 55px; color: #747884; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.note-preview-card h3 { margin: 12px 0 17px; font-size: 25px; letter-spacing: -.035em; line-height: 1.28; }
.note-preview-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.note-preview-foot { display: flex; margin-top: auto; padding-top: 28px; align-items: center; justify-content: space-between; color: #747884; font-family: var(--mono); font-size: 9px; }
.note-preview-foot span { color: var(--blue); font-size: 18px; }
.loading-copy { grid-column: 1 / -1; color: var(--faint); }
.story-closing { padding-block: 160px; text-align: center; }
.story-closing .eyebrow { justify-content: center; }
.story-closing h2 { margin: 0; font-size: clamp(50px, 7vw, 94px); font-weight: 650; letter-spacing: -.065em; line-height: 1.05; }
.story-closing p:not(.eyebrow) { margin: 34px 0 0; color: var(--muted); font-size: 15px; }
.home-proof, .home-applications { padding-block: 140px; }
.home-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.home-proof-grid article { min-height: 205px; padding: 30px; border-left: 1px solid var(--line); }
.home-proof-grid article:first-child { padding-left: 0; border-left: 0; }
.home-proof-grid small, .home-proof-grid strong, .home-proof-grid span { display: block; }
.home-proof-grid small { color: var(--blue); font-family: var(--mono); font-size: 9px; }
.home-proof-grid strong { margin-top: 42px; font-family: var(--mono); font-size: 28px; font-weight: 500; }
.home-proof-grid span { margin-top: 8px; color: var(--faint); font-size: 11px; }
.application-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.application-tags > span { display: flex; min-height: 48px; align-items: center; gap: 18px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; color: #c2c4cc; font-size: 13px; }
.application-tags i { color: var(--blue); font-family: var(--mono); font-size: 8px; font-style: normal; letter-spacing: .07em; }

/* Proof and applications */
.proof-architecture, .proof-results, .application-levels { padding-block: 140px; }
.architecture-path { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.architecture-path li { position: relative; min-height: 190px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.architecture-path li::after { position: absolute; top: 27px; right: 22px; color: #505460; content: "→"; }
.architecture-path li:last-child::after { content: "↺"; color: var(--blue); }
.architecture-path span, .architecture-path strong, .architecture-path small { display: block; }
.architecture-path span { color: #5f6370; font-family: var(--mono); font-size: 9px; }
.architecture-path strong { margin-top: 72px; font-size: 17px; }
.architecture-path small { margin-top: 7px; color: #777b87; font-size: 10px; line-height: 1.6; }
.proof-caveat { margin: 25px 0 0; color: #777b87; font-size: 12px; }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.proof-grid article { min-height: 440px; padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(24,27,37,.7), rgba(12,14,20,.88)); }
.proof-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--mono); font-size: 9px; }
.proof-meta span { color: var(--blue); }
.proof-meta em { color: var(--green); font-style: normal; }
.proof-grid h3 { margin: 60px 0 24px; font-size: 30px; letter-spacing: -.04em; }
.metric-pair { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 0 25px; border-block: 1px solid var(--line); }
.metric-pair div { padding: 18px; border-left: 1px solid var(--line); }
.metric-pair div:first-child { padding-left: 0; border-left: 0; }
.metric-pair strong, .metric-pair span { display: block; }
.metric-pair strong { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.metric-pair span { margin-top: 6px; color: #777b87; font-size: 9px; }
.proof-grid p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.proof-grid article > a { display: inline-flex; margin-top: 15px; color: var(--blue); font-size: 11px; text-decoration: none; }
.direction-metric { display: grid; grid-template-columns: 80px 1fr; margin-bottom: 25px; border-block: 1px solid var(--line); }
.direction-metric code, .direction-metric span { padding: 12px 0; border-bottom: 1px solid var(--line); }
.direction-metric code:nth-last-child(-n+2), .direction-metric span:nth-last-child(-n+2) { border-bottom: 0; }
.direction-metric code { color: var(--blue); font-family: var(--mono); }
.direction-metric span { color: #9da0aa; font-family: var(--mono); font-size: 10px; }
.proof-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-block: 130px; }
.proof-limits > div > span { color: var(--blue); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.proof-limits h2 { margin: 13px 0 0; font-size: clamp(40px, 5vw, 62px); letter-spacing: -.055em; line-height: 1.12; }
.proof-limits ul { margin: 0; padding: 0; list-style: none; }
.proof-limits li { padding: 17px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.proof-limits li:last-child { border-bottom: 1px solid var(--line); }
.proof-limits > div > p { color: var(--muted); font-size: 15px; line-height: 1.85; }
.proof-limits .button { margin-top: 22px; }
.level-row { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.level-row > div { min-height: 120px; padding: 26px; border-left: 1px solid var(--line); }
.level-row > div:first-child { padding-left: 0; border-left: 0; }
.level-row strong, .level-row span { display: block; }
.level-row strong { color: var(--blue); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.level-row span { margin-top: 13px; color: #777b87; font-size: 11px; }
.application-list { padding-bottom: 130px; }
.application-list article { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding-block: 90px; border-top: 1px solid var(--line); }
.application-list article:last-child { border-bottom: 1px solid var(--line); }
.application-title { display: grid; grid-template-columns: 45px 1fr; gap: 20px; }
.application-title > span { color: var(--blue); font-family: var(--mono); font-size: 9px; }
.application-title h2 { margin: 18px 0 0; font-size: clamp(32px, 4.3vw, 53px); letter-spacing: -.05em; line-height: 1.12; }
.application-detail > p { margin: 0 0 36px; color: #c7c9d0; font-size: 18px; line-height: 1.7; }
.application-detail dl { margin: 0; }
.application-detail dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.application-detail dl > div:last-child { border-bottom: 1px solid var(--line); }
.application-detail dt { color: var(--blue); font-family: var(--mono); font-size: 9px; }
.application-detail dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* Live semantic-memory demo */
.home-demo { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; padding-block: 120px; }
.home-demo-state { display: flex; align-items: flex-start; gap: 13px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.home-demo-state::before, .demo-live-dot { width: 9px; height: 9px; flex: none; margin-top: 4px; border-radius: 50%; background: #666a75; box-shadow: 0 0 0 5px rgba(255,255,255,.025); content: ""; transition: background .3s ease, box-shadow .3s ease; }
.home-demo-state[data-state="online"]::before { background: var(--green); box-shadow: 0 0 18px rgba(127,224,178,.7); }
.home-demo-state[data-state="maintenance"]::before { background: var(--amber); box-shadow: 0 0 15px rgba(255,217,135,.36); }
.home-demo h2 { max-width: 700px; margin: 0; font-size: clamp(39px, 5vw, 66px); letter-spacing: -.055em; line-height: 1.1; }
.home-demo-copy > p { max-width: 690px; margin: 27px 0 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.home-demo-copy .button { margin-top: 28px; }

.demo-hero { min-height: 690px; }
.demo-stage { padding-block: 105px 135px; }
.demo-state-panel { display: grid; min-height: 290px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; padding: 42px; border: 1px solid var(--line-strong); border-radius: 27px; background: linear-gradient(145deg, rgba(25,28,39,.82), rgba(11,13,19,.92)); box-shadow: 0 38px 100px rgba(0,0,0,.24); transition: border-color .35s ease, background .35s ease; }
.demo-state-panel[data-demo-state="online"] { border-color: rgba(127,224,178,.25); background: linear-gradient(145deg, rgba(19,39,35,.54), rgba(11,13,19,.94)); }
.demo-state-panel[data-demo-state="maintenance"] { border-color: rgba(255,217,135,.18); }
.demo-state-label { display: flex; margin: 0 0 46px; align-items: center; gap: 13px; color: #9ea1ab; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.demo-state-panel[data-demo-state="online"] .demo-live-dot { background: var(--green); box-shadow: 0 0 20px rgba(127,224,178,.75); }
.demo-state-panel[data-demo-state="maintenance"] .demo-live-dot { background: var(--amber); box-shadow: 0 0 16px rgba(255,217,135,.42); }
.demo-state-copy h2 { margin: 0; font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.05em; line-height: 1.1; }
.demo-state-copy > p:not(.demo-state-label) { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.demo-state-copy > small { display: block; margin-top: 24px; color: #676b77; font-family: var(--mono); font-size: 9px; }
.demo-retry { min-height: 48px; padding: 0 19px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255,255,255,.025); color: var(--ink); font-size: 11px; font-weight: 750; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.demo-retry:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.055); }
.demo-state-actions { display: flex; align-items: center; gap: 8px; }
.demo-workbench { margin-top: 42px; }
.demo-workbench[hidden] { display: none; }
.demo-workbench-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 80px; padding: 50px 0; }
.demo-workbench-intro span, .demo-boundary > div > span { color: var(--blue); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.demo-workbench-intro h2, .demo-boundary h2 { margin: 12px 0 0; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.045em; line-height: 1.14; }
.demo-workbench-intro > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.demo-query-layout { display: grid; grid-template-columns: .8fr 1.2fr; border: 1px solid var(--line-strong); border-radius: 25px; overflow: hidden; background: rgba(255,255,255,.012); }
.demo-query { padding: 31px; border-right: 1px solid var(--line); }
.demo-query fieldset { margin: 0; padding: 0; border: 0; }
.demo-query legend, .demo-composer label { display: block; margin-bottom: 15px; color: #777b87; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.demo-question-list { display: grid; gap: 14px; }
.demo-pair { display: grid; gap: 7px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.008); }
.demo-pair > small { padding: 1px 4px 5px; color: #686c78; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.demo-question-list button { min-height: 54px; padding: 0 17px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.016); color: #aeb0b9; text-align: left; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.demo-question-list button:hover { color: white; border-color: var(--line-strong); }
.demo-question-list button.is-selected { border-color: rgba(155,202,255,.44); background: rgba(155,202,255,.07); color: var(--blue); }
.demo-question-list button.is-next { border-color: rgba(127,224,178,.38); color: #dff9eb; box-shadow: inset 0 0 0 1px rgba(127,224,178,.08), 0 0 18px rgba(127,224,178,.07); animation: demo-next-question 2.2s ease-in-out infinite; }
@keyframes demo-next-question { 50% { border-color: rgba(127,224,178,.7); box-shadow: inset 0 0 0 1px rgba(127,224,178,.12), 0 0 23px rgba(127,224,178,.14); } }
.demo-composer { margin-top: 30px; }
.demo-composer > div { display: grid; gap: 9px; }
.demo-composer input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #0b0d13; color: #d7d8de; font: 13px/1.4 var(--mono); }
.demo-composer button { min-height: 52px; border: 0; border-radius: 11px; background: #eeedf2; color: #11131a; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .2s ease, opacity .2s ease; }
.demo-composer button:hover { transform: translateY(-1px); }
.demo-composer button:disabled { opacity: .42; cursor: wait; transform: none; }
.demo-output { min-height: 580px; background: linear-gradient(145deg, rgba(18,20,29,.62), rgba(7,9,14,.82)); }
.demo-output > header { display: flex; min-height: 61px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 27px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 9px; }
.demo-output > header span { color: var(--green); letter-spacing: .1em; }
.demo-output > header > div { display: flex; align-items: center; gap: 15px; }
.demo-output > header small { color: #747884; }
.demo-memory-reset { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: #8f939e; font: 8px/1 var(--mono); letter-spacing: .05em; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.demo-memory-reset:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.035); color: #e4e5e9; }
.demo-memory-reset:disabled { opacity: .35; cursor: wait; }
.demo-output-body { padding: 32px; }
.demo-output-placeholder { max-width: 500px; margin: 0; color: #777b87; font-size: 14px; line-height: 1.8; }
.demo-progress { display: flex; align-items: center; gap: 13px; color: #a7a9b3; font-size: 13px; }
.demo-progress i { width: 9px; height: 9px; flex: none; border: 1px solid var(--blue); border-radius: 50%; box-shadow: 0 0 12px rgba(155,202,255,.65); animation: demo-pulse 1.2s ease-in-out infinite; }
@keyframes demo-pulse { 50% { transform: scale(1.45); opacity: .35; } }
.demo-route { display: grid; grid-template-columns: repeat(2, 1fr); margin: 30px 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.demo-route > div { min-height: 82px; padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-route dt { color: #646976; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.demo-route dd { margin: 10px 0 0; color: #e0e2e8; font-family: var(--mono); font-size: 11px; line-height: 1.5; }
.demo-route.is-reused dd { color: var(--green); }
.demo-answer { margin-top: 33px; }
.demo-answer > small, .demo-evidence > small { color: var(--blue); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.demo-answer > p { margin: 17px 0 0; color: #eff0f4; font-size: 20px; line-height: 1.8; white-space: pre-wrap; }
.demo-reuse-note { margin-top: 24px; padding: 15px 17px; border: 1px solid rgba(127,224,178,.24); border-radius: 11px; background: rgba(127,224,178,.045); color: #c7ead8; font-size: 12px; line-height: 1.7; }
.demo-evidence { margin-top: 45px; padding-top: 28px; border-top: 1px solid var(--line); }
.demo-evidence article { padding: 21px 0; border-bottom: 1px solid var(--line); }
.demo-evidence article strong { display: block; color: var(--blue); font-size: 12px; }
.demo-evidence article p { display: -webkit-box; margin: 11px 0 0; overflow: hidden; color: #9fa2ac; font-size: 12px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.demo-evidence article small { display: block; margin-top: 11px; color: #656a76; font-family: var(--mono); font-size: 9px; }
.demo-boundary { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-block: 125px; }
.demo-boundary ul { margin: 0; padding: 0; list-style: none; }
.demo-boundary li { display: grid; grid-template-columns: 95px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.demo-boundary li:last-child { border-bottom: 1px solid var(--line); }
.demo-boundary li strong { color: var(--blue); font-family: var(--mono); font-size: 9px; }
.demo-boundary li span { color: var(--muted); font-size: 13px; line-height: 1.75; }
.demo-source-note { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 25px; border-top: 1px solid var(--line); color: #757986; font-size: 11px; }
.demo-source-note a { color: var(--blue); text-underline-offset: 3px; }

/* Chapter pages */
.chapter-hero { min-height: 760px; padding-top: 210px; padding-bottom: 110px; }
.chapter-label { margin: 0 0 38px; color: #858995; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.chapter-label span { margin-right: 18px; color: var(--blue); }
.chapter-hero h1 { max-width: 1120px; }
.chapter-deck { max-width: 760px; margin: 42px 0 0; color: var(--muted); font-size: 19px; line-height: 1.85; }
.prose-story { display: grid; grid-template-columns: 220px minmax(0, 740px); justify-content: space-between; gap: 80px; padding-block: 130px; }
.prose-aside { color: var(--faint); font-family: var(--mono); font-size: 10px; }
.prose-aside span { color: var(--blue); letter-spacing: .12em; }
.prose-aside p { max-width: 170px; margin-top: 16px; line-height: 1.8; }
.prose-body section { padding: 0 0 110px; }
.prose-body p { margin: 0 0 28px; color: #b2b4bd; font-size: 19px; line-height: 1.95; }
.prose-body .prose-lead { color: var(--ink); font-size: 27px; line-height: 1.65; }
.prose-statement { padding: 50px 0 0 !important; border-top: 1px solid var(--line); }
.prose-statement p { color: var(--blue); font-size: clamp(31px, 4vw, 50px); font-weight: 620; letter-spacing: -.04em; line-height: 1.35; }
.prose-statement strong { display: block; margin-top: 48px; font-size: 20px; line-height: 1.7; }
.chapter-next { padding-block: 92px; }
.chapter-next > span { color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.chapter-next a { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; margin-top: 23px; text-decoration: none; }
.chapter-next small { display: block; color: var(--blue); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.chapter-next strong { display: block; margin-top: 9px; font-size: clamp(30px, 5vw, 60px); letter-spacing: -.05em; line-height: 1.15; }
.chapter-next i { color: var(--blue); font-size: 36px; font-style: normal; transition: transform .2s ease; }
.chapter-next a:hover i { transform: translateX(7px); }
.journey-intro, .research-door, .horizon-rule { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-block: 120px; }
.journey-intro > div:last-child, .research-door > div:last-child { align-self: end; }
.journey-intro p, .research-door p { margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.timeline-section, .horizon-work { padding-block: 140px; }
.research-timeline { margin: 0; padding: 0; list-style: none; }
.research-timeline > li { display: grid; grid-template-columns: 170px 1fr; min-height: 330px; }
.timeline-rail { position: relative; border-right: 1px solid var(--line); color: #797d89; font-family: var(--mono); font-size: 10px; }
.timeline-rail span { position: absolute; top: 6px; right: -5px; width: 9px; height: 9px; border: 2px solid var(--paper); border-radius: 50%; background: #5e626e; box-shadow: 0 0 0 1px var(--line-strong); }
.research-timeline .is-current .timeline-rail span { background: var(--green); box-shadow: 0 0 14px rgba(127,224,178,.8); }
.research-timeline article { padding: 0 0 90px 72px; }
.timeline-meta { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.timeline-meta strong { font-size: 25px; }
.timeline-meta em { color: #737784; font-family: var(--mono); font-size: 9px; font-style: normal; letter-spacing: .1em; }
.is-current .timeline-meta em { color: var(--green); }
.research-timeline h3 { max-width: 720px; margin: 46px 0 17px; font-size: clamp(29px, 4vw, 46px); letter-spacing: -.045em; line-height: 1.2; }
.research-timeline p { max-width: 760px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.research-timeline article > a { display: inline-flex; margin-top: 23px; color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.timeline-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 30px; }
.timeline-links a { padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; color: #bfc1ca; font-size: 11px; text-decoration: none; }
.timeline-links a:hover { border-color: var(--line-strong); color: white; }
.research-door > div:last-child .button { margin-top: 20px; }
.horizon-statement { padding-block: 140px; text-align: center; }
.horizon-statement p { max-width: 870px; margin: 0 auto; color: #c9cad1; font-size: clamp(32px, 5vw, 62px); font-weight: 610; letter-spacing: -.05em; line-height: 1.25; }
.horizon-statement strong { display: block; margin-top: 48px; color: var(--blue); font-size: 16px; }
.horizon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.horizon-grid article { min-height: 340px; padding: 31px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.013); }
.horizon-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.horizon-grid small { color: var(--faint); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.state { font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.state-progress { color: var(--blue); }.state-verified { color: var(--green) !important; }.state-experimental { color: var(--violet); }.state-failed { color: #ff9d93; }.state-planned { color: var(--amber); }
.horizon-grid h3 { margin: 65px 0 18px; font-size: 27px; letter-spacing: -.035em; line-height: 1.28; }
.horizon-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.horizon-grid article > a { display: inline-flex; margin-top: 20px; color: var(--blue); font-size: 11px; text-decoration: none; }
.horizon-rule ul { margin: 0; padding: 0; list-style: none; }
.horizon-rule li { padding: 17px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.horizon-rule li:last-child { border-bottom: 1px solid var(--line); }

/* Research index and individual notes */
.record-principles, .category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.record-principles article, .category-grid article { min-height: 260px; padding: 29px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.012); }
.record-principles span { color: var(--blue); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.record-principles h3, .category-grid h3 { margin: 70px 0 13px; font-size: 21px; letter-spacing: -.025em; }
.record-principles p, .category-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.note-schema { display: grid; grid-template-columns: repeat(4, 1fr); margin: 34px 0 0; padding: 0; list-style-position: inside; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.note-schema li { min-height: 82px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #9a9da8; font-size: 11px; }
.category-grid article { min-height: 230px; }
.category-grid small { color: var(--blue); font-family: var(--mono); font-size: 9px; }
.category-grid h3 { margin-top: 52px; }
.research-note { max-width: 1120px; }
.note-header { min-height: 830px; padding-top: 190px; padding-bottom: 90px; }
.note-back { display: inline-block; margin-bottom: 55px; color: #8a8e99; font-family: var(--mono); font-size: 10px; text-decoration: none; }
.note-header h1 { max-width: 980px; margin: 0; font-size: clamp(54px, 7vw, 96px); font-weight: 650; letter-spacing: -.068em; line-height: 1.04; }
.note-header h1 span { background: linear-gradient(112deg, var(--blue), var(--violet) 52%, var(--peach)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.note-deck { max-width: 720px; margin: 38px 0 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.note-meta { display: grid; grid-template-columns: repeat(4, 1fr); margin: 78px 0 0; border-block: 1px solid var(--line); }
.note-meta > div { min-height: 102px; padding: 22px; border-left: 1px solid var(--line); }
.note-meta > div:first-child { padding-left: 0; border-left: 0; }
.note-meta dt { color: var(--faint); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.note-meta dd { margin: 13px 0 0; font-family: var(--mono); font-size: 11px; }
.note-content { width: min(780px, 100%); margin-left: auto; }
.note-content section { position: relative; padding: 100px 0; border-top: 1px solid var(--line); }
.note-index { position: absolute; top: 106px; left: -120px; color: var(--blue); font-family: var(--mono); font-size: 10px; }
.note-content h2 { margin: 0 0 35px; font-size: clamp(31px, 4vw, 48px); letter-spacing: -.045em; line-height: 1.2; }
.note-content p, .note-content li { color: #b1b3bc; font-size: 16px; line-height: 1.9; }
.note-content ul { padding-left: 22px; }
.note-content li { margin: 9px 0; }
.note-content code { font-family: var(--mono); }
.note-content pre { padding: 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: #08090d; color: var(--blue); font-size: 12px; line-height: 1.8; }
.observation-callout, .residual-callout { margin: 30px 0; padding: 28px; border: 1px solid rgba(127,224,178,.25); border-radius: 16px; background: rgba(127,224,178,.045); }
.observation-callout strong, .residual-callout strong { display: block; margin-bottom: 12px; color: var(--green); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.observation-callout p { margin: 0; color: #d6d8dd; }
.residual-callout { border-color: rgba(255,217,135,.24); background: rgba(255,217,135,.04); }
.residual-callout strong { color: var(--amber); }
.residual-callout code { color: #e9d49f; font-size: 12px; overflow-wrap: anywhere; }
.table-wrap { margin: 30px 0; overflow-x: auto; }
.note-content table { width: 100%; border-collapse: collapse; font-size: 12px; }
.note-content th, .note-content td { padding: 15px; border: 1px solid var(--line); text-align: left; }
.note-content th { color: #d9dbe0; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.note-content td { color: #a8aab4; }

/* The face should feel alive without constantly blinking. */
.mira-eye > i { animation: mira-eye-blink 12.8s ease-in-out infinite; }
.mira-live-face[data-expression="attentive"] .mira-eye > i { animation: mira-eye-alert 11.6s ease-in-out infinite; }
@keyframes mira-eye-blink { 0%, 57%, 59%, 100% { transform: scaleY(1); } 58% { transform: scaleY(.08); } }
@keyframes mira-eye-alert { 0%, 63%, 65%, 100% { transform: scale(1.2) scaleY(1); } 64% { transform: scale(1.2) scaleY(.07); } }

@media (max-width: 1050px) {
  .site-nav { gap: 17px; }
  .site-nav a { font-size: 12px; }
  .story-hero { grid-template-columns: 120px 1fr; gap: 45px; }
  .story-chapter { grid-template-columns: 150px 1fr; gap: 40px; }
  .note-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .note-preview-grid .note-preview-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .chapter-links { grid-template-columns: repeat(3, 1fr); }
  .chapter-links a:nth-child(4) { border-top: 1px solid var(--line); border-left: 0; }
  .chapter-links a:nth-child(5) { border-top: 1px solid var(--line); }
  .architecture-path { grid-template-columns: repeat(3, 1fr); }
  .demo-query-layout { grid-template-columns: 1fr; }
  .demo-query { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .story-page .site-nav a.is-active::after { display: none; }
  .story-hero { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding-top: 145px; }
  .story-hero-mark { display: block; align-self: auto; border-right: 0; writing-mode: initial; transform: none; }
  .story-hero-mark strong { display: block; margin: 7px 0 0; }
  .story-hero h1, .chapter-hero h1 { font-size: clamp(44px, 13vw, 66px); }
  .story-hero-lead { font-size: 18px; }
  .chapter-links { grid-template-columns: 1fr; }
  .chapter-links a { min-height: 86px; border-top: 1px solid var(--line); border-left: 0; }
  .chapter-links a:first-child { border-top: 0; }
  .story-chapter { grid-template-columns: 1fr; gap: 35px; padding-block: 95px; }
  .chapter-copy h2 { font-size: 43px; }
  .chapter-facts { grid-template-columns: 1fr; }
  .chapter-facts div, .chapter-facts div:first-child { padding: 18px 0; border-top: 1px solid var(--line); border-left: 0; }
  .chapter-facts div:first-child { border-top: 0; }
  .recent-notes, .timeline-section, .horizon-work { padding-block: 95px; }
  .story-section-head, .journey-intro, .research-door, .horizon-rule, .proof-limits { grid-template-columns: 1fr; gap: 34px; }
  .note-preview-grid, .note-preview-grid-full, .horizon-grid, .record-principles, .category-grid { grid-template-columns: 1fr; }
  .generation-filter { display: flex; margin-inline: -2px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
  .generation-filter::-webkit-scrollbar { display: none; }
  .generation-filter button { min-width: 128px; min-height: 54px; flex: 0 0 auto; }
  .note-preview-grid .note-preview-card:last-child:nth-child(odd) { grid-column: auto; }
  .story-closing { padding-block: 105px; }
  .chapter-hero { min-height: auto; padding-top: 160px; padding-bottom: 90px; }
  .prose-story { grid-template-columns: 1fr; gap: 55px; padding-block: 90px; }
  .prose-aside p { max-width: 260px; }
  .prose-body section { padding-bottom: 78px; }
  .research-timeline > li { grid-template-columns: 75px 1fr; min-height: 280px; }
  .research-timeline article { padding: 0 0 75px 27px; }
  .timeline-meta { display: block; }
  .timeline-meta em { display: block; margin-top: 5px; }
  .research-timeline h3 { margin-top: 30px; font-size: 30px; }
  .timeline-links { grid-template-columns: 1fr; }
  .note-schema { grid-template-columns: repeat(2, 1fr); }
  .note-header { min-height: auto; padding-top: 150px; }
  .note-meta { grid-template-columns: repeat(2, 1fr); }
  .note-meta > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .note-meta > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .note-content { width: 100%; }
  .note-index { position: static; display: block; margin-bottom: 15px; }
  .note-content section { padding-block: 78px; }
  .home-proof, .home-applications, .proof-architecture, .proof-results, .application-levels { padding-block: 95px; }
  .home-proof-grid, .proof-grid, .level-row { grid-template-columns: 1fr; }
  .home-proof-grid article, .home-proof-grid article:first-child, .level-row > div, .level-row > div:first-child { min-height: 150px; padding: 24px 0; border-top: 1px solid var(--line); border-left: 0; }
  .home-proof-grid article:first-child, .level-row > div:first-child { border-top: 0; }
  .application-tags { display: grid; }
  .architecture-path { grid-template-columns: 1fr; }
  .architecture-path li { min-height: 140px; }
  .architecture-path strong { margin-top: 40px; }
  .application-list { padding-bottom: 95px; }
  .application-list article { grid-template-columns: 1fr; gap: 38px; padding-block: 70px; }
  .application-detail dl > div { grid-template-columns: 1fr; gap: 8px; }
  .home-demo, .demo-workbench-intro, .demo-boundary { grid-template-columns: 1fr; gap: 36px; }
  .home-demo, .demo-stage, .demo-boundary { padding-block: 90px; }
  .demo-hero { min-height: auto; }
  .demo-state-panel { min-height: 340px; grid-template-columns: 1fr; align-items: start; gap: 28px; padding: 28px; }
  .demo-state-label { margin-bottom: 35px; }
  .demo-state-actions { flex-wrap: wrap; justify-self: start; }
  .demo-query { padding: 22px; }
  .demo-output { min-height: 480px; }
  .demo-output-body { padding: 24px; }
  .demo-answer > p { font-size: 17px; }
}
