:root {
  color-scheme: light;
  --ink: #17202a;
  --ink-strong: #0d1117;
  --muted: #596579;
  --soft: #7a8597;
  --paper: #f7f4ee;
  --paper-2: #ece7dd;
  --panel: #fffdf8;
  --panel-cool: #f3f7fb;
  --line: #d7cdbd;
  --line-strong: #afa390;
  --accent: #1f5f96;
  --accent-2: #6d4fc2;
  --green: #28745a;
  --red: #a64b42;
  --gold: #c48916;
  --region: #fff3c8;
  --shadow-soft: 0 20px 70px rgb(23 32 42 / 0.10);
  --shadow-card: 0 12px 32px rgb(23 32 42 / 0.08);
  --radius-xl: 30px;
  --radius: 20px;
  --measure: 68ch;
  --font-ui: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-display-serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --font-display-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-family: var(--font-ui);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, #fffdf8 0, var(--paper) 38rem),
    linear-gradient(180deg, var(--paper), #f1ece4 62%, #f8f6f1);
  font-size: clamp(17px, 0.28vw + 16px, 20px);
  line-height: 1.72;
  overflow-wrap: break-word;
}
button, a, summary { font: inherit; }
a { color: var(--accent); text-underline-offset: 0.18em; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(4rem, 9vh, 7rem) max(24px, calc((100vw - 1380px) / 2)) clamp(5rem, 10vh, 8rem);
}
.hero h1 {
  margin: 0;
  max-width: 19ch;
  font-family: var(--font-display-sans);
  font-size: clamp(3rem, 5.55vw, 5.95rem);
  font-weight: 560;
  line-height: 1.13;
  letter-spacing: -0.018em;
  color: #111927;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
.hero-lede { max-width: 820px; margin: 1.5rem 0 0; font-size: clamp(1.25rem, 1.25vw + 0.9rem, 1.75rem); line-height: 1.55; color: #3f4956; text-wrap: pretty; }

.hero-lede a {
  color: inherit;
  text-decoration-color: rgb(31 95 150 / 0.38);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  border-radius: 0.2em;
}
.hero-lede a:hover,
.hero-lede a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
  background: rgb(31 95 150 / 0.08);
}
.kicker, .eyebrow { margin: 0 0 0.8rem; color: var(--accent); font-size: 0.82rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.45; }
.presenter-card, .evidence-card, .source-card, .qa-box, .synthetic-console { background: rgb(255 253 248 / 0.95); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); }
.presenter-card { padding: clamp(1.2rem, 2vw, 1.8rem); align-self: center; }
.presenter-card h2 { margin: 0 0 0.65rem; font-size: 1.35rem; }
.presenter-card p { margin: 0.55rem 0; }
.privacy-note, .caveat, .source-line { color: var(--muted); font-size: 0.98rem; line-height: 1.62; }
.progress-nav { position: sticky; top: 0; z-index: 10; display: grid; gap: 0.55rem; padding: 0.8rem max(18px, calc((100vw - 1380px) / 2)); backdrop-filter: blur(18px); background: rgb(247 244 238 / 0.9); border-block: 1px solid rgb(215 205 189 / 0.82); }
.progress-nav ol { display: flex; gap: 0.45rem; overflow-x: auto; margin: 0; padding: 0 8.8rem 0.1rem 0; list-style: none; scrollbar-width: thin; }
.progress-nav a { display: inline-flex; gap: 0.42rem; align-items: center; min-width: max-content; padding: 0.42rem 0.72rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: clamp(0.78rem, 0.2vw + 0.72rem, 0.92rem); line-height: 1.25; }
.progress-nav a[aria-current="true"] { background: var(--ink); color: var(--panel); }
.nav-num { opacity: 0.62; font-variant-numeric: tabular-nums; }
.progress-meter { height: 4px; background: #ded7c8; border-radius: 999px; overflow: hidden; }
.progress-meter span { display: block; height: 100%; inline-size: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.scene { min-height: 92vh; display: grid; grid-template-columns: minmax(460px, 0.82fr) minmax(0, 1.18fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(4rem, 8vh, 6rem) max(24px, calc((100vw - 1380px) / 2)); border-top: 1px solid rgb(215 205 189 / 0.65); }
.scene:nth-of-type(odd) { background: linear-gradient(180deg, rgb(255 253 248 / 0.38), rgb(236 231 221 / 0.26)); }
.scene-copy { max-width: 720px; }
.scene h2 { margin: 0; max-width: 18ch; font-family: var(--font-display-sans); font-size: clamp(2.4rem, 3.9vw, 4.15rem); font-weight: 560; line-height: 1.17; letter-spacing: -0.018em; color: #111927; text-wrap: balance; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.lede { max-width: var(--measure); font-size: clamp(1.14rem, 0.65vw + 1rem, 1.42rem); line-height: 1.72; color: #28323f; text-wrap: pretty; }
.scene-visual { min-width: 0; }
.sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.sequence article { min-height: 220px; padding: 1.35rem; border-radius: var(--radius-xl); border: 1px solid var(--line); background: linear-gradient(180deg, #fffdf8, #f4efe5); display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-card); }
.sequence h3 { font-size: 1.55rem; line-height: 1.18; margin: 0; }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr); gap: 1.4rem; align-items: stretch; }
.plot { position: relative; min-height: 550px; aspect-ratio: 16 / 10; margin-left: 5.6rem; width: calc(100% - 5.6rem); border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background-color: #fffdf8; background-image: linear-gradient(to right, transparent calc(33.333% - 1px), #e5dfd0 33.333%, transparent calc(33.333% + 1px)), linear-gradient(to right, transparent calc(66.666% - 1px), #e5dfd0 66.666%, transparent calc(66.666% + 1px)), linear-gradient(to top, transparent calc(33.333% - 1px), #e5dfd0 33.333%, transparent calc(33.333% + 1px)), linear-gradient(to top, transparent calc(66.666% - 1px), #e5dfd0 66.666%, transparent calc(66.666% + 1px)); border-radius: 0 var(--radius-xl) 0 0; box-shadow: var(--shadow-card); }
.personal-region { position: absolute; inset: 0 0 56% 62%; padding: 1rem; display: flex; align-items: flex-start; justify-content: flex-end; color: #6a4a0d; background: var(--region); border-left: 1px dashed #9e7417; border-bottom: 1px dashed #9e7417; font-weight: 850; text-align: right; line-height: 1.25; }
.axis { position: absolute; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #263241; }
.axis.x { bottom: -2.7rem; left: 50%; transform: translateX(-50%); }
.axis.y { left: -7.35rem; top: 50%; transform: rotate(-90deg); transform-origin: center; }
.ticks { position: absolute; color: var(--muted); font-size: 0.78rem; line-height: 1.2; }
.ticks-x { left: 0; right: 0; bottom: -1.55rem; display: grid; grid-template-columns: repeat(3, 1fr); }
.ticks-x span:nth-child(2) { text-align: center; } .ticks-x span:nth-child(3) { text-align: right; }
.ticks-y { left: -5.2rem; width: 4.5rem; top: 0; bottom: 0; display: grid; grid-template-rows: repeat(3, 1fr); align-items: center; text-align: right; }
.map-point { position: absolute; left: var(--x); bottom: var(--y); width: 1.5rem; height: 1.5rem; transform: translate(-50%, 50%); border: 3px solid #fff; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--ink), 0 4px 12px rgb(0 0 0 / 0.22); }
.map-point:nth-of-type(odd) { background: var(--green); }
.map-point[aria-pressed="true"] { background: var(--gold); box-shadow: 0 0 0 4px var(--ink), 0 8px 18px rgb(0 0 0 / 0.26); }
.map-point span { position: absolute; top: calc(1.75rem + var(--label-dy, 0rem)); left: calc(50% + var(--label-dx, 0rem)); transform: translateX(-50%); width: max-content; max-width: 10rem; color: var(--ink); font-size: 0.76rem; font-weight: 850; line-height: 1.25; text-align: center; }
.evidence-card { padding: 1.35rem; align-self: stretch; box-shadow: var(--shadow-card); }
.evidence-card h3 { margin: 0.2rem 0 0.5rem; font-size: 1.6rem; line-height: 1.2; }
dl { display: grid; grid-template-columns: 7.2rem 1fr; gap: 0.45rem 0.8rem; }
dt { color: var(--muted); font-weight: 850; } dd { margin: 0; }
.mini-sources { display: grid; gap: 0.45rem; margin-top: 1rem; font-size: 0.9rem; line-height: 1.4; }
.layer-stack { display: grid; gap: 0.8rem; }
.layer { padding: 1rem 1.15rem; display: grid; grid-template-columns: minmax(8rem, 0.38fr) 1fr; gap: 1rem; align-items: center; border-left: 4px solid var(--accent); background: rgb(255 253 248 / 0.84); border-radius: 18px; box-shadow: var(--shadow-card); }
.layer span { font-weight: 900; } .layer p { margin: 0; color: var(--muted); line-height: 1.5; }
.action-button, .ghost-button, .source-open { margin-top: 1rem; border: 0; border-radius: 999px; padding: 0.78rem 1.05rem; background: var(--ink); color: var(--panel); font-weight: 850; line-height: 1.2; }
.ghost-button { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.continuity-strip { display: grid; gap: 1rem; }
.continuity-item { padding: 1.25rem 1.35rem; border-left: 5px solid var(--accent); background: rgb(255 253 248 / 0.86); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.continuity-item span { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 850; }
.continuity-item strong { display: block; margin: 0.2rem 0; font-size: 1.45rem; line-height: 1.25; }
.architecture { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr) auto minmax(0, 1fr); gap: 0.85rem; align-items: stretch; }
.arch-col { padding: 1.15rem; border-radius: var(--radius-xl); border: 1px solid var(--line); background: rgb(255 253 248 / 0.88); box-shadow: var(--shadow-card); }
.arch-core { background: linear-gradient(180deg, #eef6fb, #fffdf8); border-color: rgb(31 95 150 / 0.35); }
.arch-col h3 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.arch-col p { margin: 0.55rem 0; padding: 0.62rem 0.72rem; border-radius: 14px; background: rgb(236 231 221 / 0.72); line-height: 1.38; }
.arrow { display: flex; align-items: center; font-size: 2rem; color: var(--muted); }
.architecture .privacy-note { grid-column: 1 / -1; }
.security-boundary { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.untrusted, .trusted { min-height: 260px; padding: 1.4rem; border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-card); }
.boundary-line { writing-mode: vertical-rl; text-transform: uppercase; letter-spacing: 0.13em; font-weight: 900; color: var(--red); }
.security-boundary .caveat { grid-column: 1 / -1; }
.failure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.failure-card { padding: 1.25rem; border-radius: var(--radius-xl); border: 1px solid var(--line); background: linear-gradient(180deg, #fffdf8, #f6f2ea); box-shadow: var(--shadow-card); }
.failure-card h3 { margin: 0 0 0.85rem; font-size: 1.38rem; line-height: 1.2; }
.failure-card p { margin: 0.78rem 0; line-height: 1.62; }
.failure-card strong { color: var(--ink-strong); }
.takeaway-panel { padding: 1.3rem; display: grid; gap: 1rem; }
.takeaway-panel > p { display: flex; gap: 1rem; align-items: baseline; margin: 0; font-size: clamp(1.18rem, 0.7vw + 1rem, 1.45rem); line-height: 1.38; font-weight: 850; }
.takeaway-panel > p span { color: var(--gold); }
.synthetic-console { padding: 1rem; box-shadow: none; }
.console-log { min-height: 160px; margin: 0; padding-left: 1.2rem; }
.console-log li { margin: 0.5rem 0; } .console-log span { display: block; color: var(--muted); }
.button-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.qa-box { padding: 0.9rem 1rem; box-shadow: none; }
.source-open { position: fixed; right: 1.15rem; bottom: 1.15rem; z-index: 20; box-shadow: var(--shadow-soft); }
.fullscreen-toggle { position: fixed; right: 1.15rem; bottom: 4.7rem; z-index: 20; display: inline-flex; gap: 0.45rem; align-items: center; padding: 0.68rem 0.9rem; border: 1px solid var(--line); background: rgb(255 253 248 / 0.92); color: var(--ink); font-weight: 850; line-height: 1.2; border-radius: 999px; box-shadow: var(--shadow-soft); backdrop-filter: blur(14px); }
.fullscreen-toggle[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.fullscreen-toggle:hover { background: rgb(255 253 248 / 1); }
.fullscreen-icon { font-size: 1.08em; line-height: 1; }
.is-fullscreen body { background: var(--paper); }
.is-fullscreen body::before { opacity: 0.45; }
.is-fullscreen .hero { min-height: 100svh; align-items: center; padding-block: clamp(2rem, 6vh, 5rem); }
.is-fullscreen .scene { min-height: 100svh; padding-block: clamp(2rem, 6vh, 4.5rem); align-items: center; }
.is-fullscreen .progress-nav { opacity: 0; transform: translateY(-95%); pointer-events: none; background: rgb(247 244 238 / 0.82); transition: opacity 160ms ease, transform 160ms ease; }
.is-fullscreen .progress-nav:focus-within, .is-fullscreen .progress-nav:hover { opacity: 1; transform: translateY(0); pointer-events: auto; }
.is-fullscreen .source-open, .is-fullscreen .fullscreen-toggle { opacity: 0.86; }
.is-fullscreen #map {
  --map-safe-right: 9.25rem;
  --map-safe-bottom: 6.4rem;
  min-height: 100svh;
  grid-template-columns: minmax(18rem, 0.64fr) minmax(0, 1.36fr);
  gap: clamp(1.1rem, 2.4vw, 2rem);
  align-items: center;
  padding: clamp(1.5rem, 4vh, 3.2rem) max(calc(24px + var(--map-safe-right)), calc((100vw - 1380px) / 2 + var(--map-safe-right))) max(clamp(1.5rem, 4vh, 3.2rem), var(--map-safe-bottom)) max(86px, calc((100vw - 1380px) / 2));
  overflow: hidden;
}
.is-fullscreen #map .scene-copy { max-width: 34rem; }
.is-fullscreen #map h2 { max-width: 14ch; }
.is-fullscreen #map .map-grid { min-width: 0; grid-template-columns: 1fr; gap: 0.75rem; align-self: center; }
.is-fullscreen #map .evidence-card { display: none; }
.is-fullscreen #map .plot {
  width: min(100%, calc((100svh - var(--map-safe-bottom) - clamp(3rem, 8vh, 6.4rem)) * 1.28));
  min-height: 0;
  aspect-ratio: 16 / 10;
  justify-self: end;
  margin: 0 0 2.65rem 4.3rem;
}
@media (min-width: 1121px) and (max-height: 820px) {
  .is-fullscreen .hero h1 { font-size: clamp(2.7rem, 4.8vw, 5rem); line-height: 1.14; }
  .is-fullscreen .scene h2 { font-size: clamp(2.1rem, 3.2vw, 3.45rem); line-height: 1.18; }
  .is-fullscreen .lede, .is-fullscreen .hero-lede { line-height: 1.5; }
  .is-fullscreen #map { grid-template-columns: 1fr; align-content: start; gap: 0.75rem; padding-top: 1.35rem; }
  .is-fullscreen #map .scene-copy { max-width: min(100%, 72rem); }
  .is-fullscreen #map .scene-copy .kicker, .is-fullscreen #map .scene-copy .source-line { display: none; }
  .is-fullscreen #map .scene-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: none; }
  .is-fullscreen #map .scene-copy .lede { max-width: 78rem; margin-block: 0.45rem 0; font-size: clamp(1rem, 0.42vw + 0.88rem, 1.18rem); line-height: 1.45; }
  .is-fullscreen #map .map-grid { align-self: start; }
  .is-fullscreen #map .plot { justify-self: center; width: min(calc(100vw - var(--map-safe-right) - 11rem), calc((100svh - var(--map-safe-bottom) - 10.8rem) * 1.46)); }
}
@media (min-width: 1121px) and (min-height: 821px) {
  .is-fullscreen #map .plot { width: min(calc(100vw - var(--map-safe-right) - 38rem), calc((100svh - var(--map-safe-bottom) - 8.4rem) * 1.46)); }
}

.source-drawer { width: min(980px, calc(100vw - 2rem)); max-height: 86vh; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--paper); color: var(--ink); padding: 0; }
.source-drawer::backdrop { background: rgb(0 0 0 / 0.35); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; position: sticky; top: 0; background: rgb(247 244 238 / 0.96); padding: 1rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.45rem; }
.source-list { display: grid; gap: 1rem; padding: 1rem; }
.source-card { padding: 1rem; box-shadow: none; overflow-wrap: anywhere; border-radius: var(--radius); }
.source-card h3 { margin: 0.2rem 0; line-height: 1.22; }
.no-js { max-width: 920px; margin: 3rem auto; padding: 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 1120px) {
  .hero, .scene, .map-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 4rem; }
  .scene { min-height: auto; }
  .architecture, .security-boundary, .sequence { grid-template-columns: 1fr; }
  .failure-grid { grid-template-columns: 1fr; }
  .arrow { justify-content: center; transform: rotate(90deg); min-height: 1.8rem; }
  .plot { max-width: 900px; }
}
@media (max-width: 640px) {
  body { overflow-x: hidden; font-size: 17px; line-height: 1.65; }
  .hero, .scene { padding-inline: 24px; }
  .hero { padding-top: 4rem; padding-bottom: 5.5rem; }
  .hero h1, .scene h2 { font-size: clamp(2.2rem, 9.2vw, 3.1rem); line-height: 1.18; letter-spacing: -0.008em; max-width: 100%; overflow-wrap: normal; }
  .hero-lede { font-size: 1.12rem; max-width: 100%; }
  .presenter-card { width: 100%; padding: 1rem; border-radius: 24px; }
  .progress-nav { padding-inline: 18px; }
  .progress-nav ol { padding-right: 7.5rem; }
  .progress-nav a { font-size: 0.82rem; padding: 0.38rem 0.55rem; }
  .scene { padding-block: 4rem; }
  .lede { font-size: 1.06rem; }
  .sequence article { min-height: 0; }
  .plot { min-height: 0; aspect-ratio: auto; margin: 0; width: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-xl); display: grid; gap: 0.55rem; background-image: none; }
  .personal-region, .axis, .ticks { position: static; transform: none; display: block; text-align: left; background: transparent; border: 0; padding: 0; }
  .axis.y::before { content: 'Y: '; } .axis.x::before { content: 'X: '; }
  .ticks-x, .ticks-y { display: flex; gap: 0.35rem; flex-wrap: wrap; }
  .ticks span { padding: 0.18rem 0.45rem; border-radius: 999px; background: #efe8d8; }
  .map-point { position: static; transform: none; width: auto; height: auto; min-height: 2.5rem; border-radius: 16px; border: 1px solid var(--line); box-shadow: none; display: flex; align-items: center; justify-content: flex-start; padding: 0.45rem 0.7rem; background: #fffdf8; color: var(--ink); }
  .map-point::before { content: ''; width: 0.78rem; height: 0.78rem; margin-right: 0.5rem; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); }
  .map-point[aria-pressed="true"] { background: #fff3c8; box-shadow: inset 0 0 0 2px var(--ink); }
  .map-point span { position: static; transform: none; width: auto; left: auto; top: auto; max-width: none; font-size: 0.86rem; text-align: left; }
  dl { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 1fr; gap: 0.25rem; }
  .architecture { gap: 0.65rem; }
  .arch-col, .failure-card, .continuity-item { padding: 1rem; border-radius: 22px; }
  .source-open { right: 0.7rem; bottom: 0.65rem; padding: 0.68rem 0.85rem; font-size: 0.9rem; }
  .fullscreen-toggle { right: 0.7rem; bottom: 4.15rem; max-width: 8rem; font-size: 0.86rem; }
  .source-drawer { width: calc(100vw - 1rem); max-height: 82vh; }
  .drawer-head { padding: 0.8rem; }
  .source-list { padding: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }
@media print {
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }
  .progress-nav, .source-open, .fullscreen-toggle, { display: none; }
  .hero, .scene { min-height: auto; break-inside: avoid; grid-template-columns: 1fr; padding: 1.1cm; }
  details { display: block; }
  .source-drawer { display: block; position: static; width: auto; max-height: none; border: 0; }
  .plot, .failure-card, .arch-col, .presenter-card { box-shadow: none; }
}
.hero > *, .scene > *, .presenter-card, .scene-copy, .scene-visual { min-width: 0; }
.presenter-card p, .hero-lede, .privacy-note, .lede { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .kicker, .eyebrow { font-size: 0.78rem; letter-spacing: 0.10em; overflow-wrap: anywhere; }
  .hero h1 { font-size: clamp(2.05rem, 8.6vw, 2.75rem); }
  .hero-lede, .privacy-note, .presenter-card p { overflow-wrap: anywhere; }
  .presenter-card { max-width: calc(100vw - 48px); }
  .progress-nav { overflow: hidden; }
  .source-open { bottom: 1rem; max-width: 6.8rem; white-space: normal; }
}
@media (max-width: 640px) {
  .hero, .scene { padding-inline: 20px; }
  .hero-lede, .privacy-note { max-width: calc(100vw - 40px); }
  .presenter-card { max-width: calc(100vw - 40px); }
}
@media (max-width: 420px) {
  .hero, .scene { padding-inline: 18px; }
  .hero h1 { font-size: clamp(1.95rem, 8.2vw, 2.55rem); letter-spacing: -0.006em; }
  .hero-lede, .privacy-note, .presenter-card p { font-size: 1rem; line-height: 1.62; max-width: calc(100vw - 36px); word-break: normal; overflow-wrap: anywhere; }
  .presenter-card { max-width: calc(100vw - 36px); }
  .source-open, .fullscreen-toggle { inline-size: 3rem; min-inline-size: 3rem; block-size: 3rem; padding: 0; border-radius: 50%; overflow: hidden; text-indent: -999px; }
  .source-open::after { content: 'S'; display: grid; place-items: center; width: 100%; height: 100%; text-indent: 0; }
  .fullscreen-toggle::after { content: 'F'; display: grid; place-items: center; width: 100%; height: 100%; text-indent: 0; }
}
@media (max-width: 420px) {
  html, body, #app, .hero, .scene, .progress-nav { width: 100%; max-width: 100vw; overflow-x: hidden; }
  .hero *, .scene *, .presenter-card *, .progress-nav * { max-width: 100%; }
  .hero-lede, .privacy-note, .presenter-card p { word-break: break-word; }
  .progress-nav ol { max-width: 100%; }
}
@media (max-width: 420px) {
  .hero h1, .hero-lede, .privacy-note, .presenter-card, .presenter-card p { max-width: min(21rem, calc(100vw - 40px)); }
}
@media (max-width: 420px) {
  .hero .hero-lede, .hero .privacy-note, .hero .presenter-card, .hero .presenter-card p { width: calc(100vw - 72px) !important; max-width: calc(100vw - 72px) !important; }
  .hero h1 { width: calc(100vw - 72px) !important; max-width: calc(100vw - 72px) !important; }
}
@media (max-width: 420px) {
  .hero .hero-lede, .hero .privacy-note, .hero .presenter-card, .hero .presenter-card p, .hero h1 { width: min(18rem, calc(100vw - 96px)) !important; max-width: min(18rem, calc(100vw - 96px)) !important; }
  .hero-lede, .privacy-note, .presenter-card p { overflow-wrap: normal; word-break: normal; }
}
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: linear-gradient(90deg, rgb(31 95 150 / 0.055) 0 1px, transparent 1px 100%) 0 0 / 72px 72px; }
@media (max-width: 420px) {
  body::before { background-size: 72px 72px; }
}
@media (max-width: 420px) {
  .hero { padding-inline: 18px 54px; }
  .hero .hero-lede, .hero .privacy-note, .hero .presenter-card, .hero .presenter-card p, .hero h1 { width: auto !important; max-width: none !important; }
}
@media (max-width: 420px) {
  .hero { display: block; padding-inline: 20px; }
  .hero > div, .hero h1, .hero-lede, .privacy-note, .presenter-card, .presenter-card p { width: 100% !important; max-width: 100% !important; }
  .presenter-card { margin-top: 2.5rem; }
  .source-open { right: 0.5rem; }
}
@media (max-width: 420px) {
  body { font-size: 15.5px; }
  .hero h1 { font-size: clamp(1.85rem, 7.2vw, 2.25rem); }
  .hero-lede, .privacy-note, .presenter-card p { font-size: 0.92rem; line-height: 1.58; }
  .presenter-card h2 { font-size: 1.2rem; }
}
@media (max-width: 420px) {
  body, #app { inline-size: 100vw; max-inline-size: 100vw; overflow-x: clip; }
  .progress-nav ol { contain: inline-size; }
}
@media (max-width: 700px) {
  .hero { display: block; padding-inline: 20px; }
  .hero > div, .hero h1, .hero-lede, .privacy-note, .presenter-card, .presenter-card p { width: 100% !important; max-width: 100% !important; }
  .hero h1 { font-size: clamp(2rem, 7.4vw, 3rem); letter-spacing: -0.006em; }
  .hero-lede, .privacy-note, .presenter-card p { font-size: 1rem; line-height: 1.6; word-break: normal; overflow-wrap: normal; }
  .presenter-card { margin-top: 2.5rem; }
  .source-open { inline-size: 3rem; min-inline-size: 3rem; block-size: 3rem; padding: 0; border-radius: 50%; overflow: hidden; text-indent: -999px; right: 0.55rem; }
  .source-open::after { content: 'S'; display: grid; place-items: center; width: 100%; height: 100%; text-indent: 0; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(2rem, 6.3vw, 2.45rem); line-height: 1.14; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(1.9rem, 5.6vw, 2.18rem); line-height: 1.18; letter-spacing: -0.006em; }
  .scene h2 { font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.18; letter-spacing: -0.006em; }
}
@media (max-width: 700px) {
  .hero-lede, .privacy-note { max-inline-size: 28ch !important; }
  .presenter-card { max-inline-size: 29ch !important; }
  .presenter-card p { max-inline-size: 26ch !important; }
}
@media (max-width: 640px) {
  .plot .axis.y, .plot .axis.x { position: static !important; transform: none !important; writing-mode: horizontal-tb !important; }
}
html, body { max-width: 100%; overflow-x: clip; }
@media (max-width: 1380px) {
  .map-grid { grid-template-columns: 1fr; }
  .plot { width: 100%; max-width: 100%; }
}
@media (max-width: 1380px) {
  .scene { grid-template-columns: 1fr; }
  .scene-copy { max-width: 760px; }
}


/* Visual upgrade integration: semantic scene grammars */
.hero-credits { align-self: center; max-width: 28rem; }

.credits-list { display: grid; gap: 0.72rem; margin: 1rem 0; }
.credits-list dt { color: var(--muted); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.credits-list dd { margin: -0.54rem 0 0; font-family: var(--font-display-sans); font-size: clamp(1.15rem, 1.1vw, 1.45rem); font-weight: 760; color: var(--ink); }
.credits-list a { color: inherit; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
.credits-list a:hover, .credits-list a:focus-visible { color: var(--accent); }
.compact-controls { padding-top: 0.7rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: 0.94rem; }
.taxonomy-ladder { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr) minmax(0, 1.14fr); align-items: end; }
.taxonomy-step { position: relative; overflow: hidden; }
.taxonomy-step:nth-child(2) { min-height: 265px; }
.taxonomy-step:nth-child(3) { min-height: 315px; background: linear-gradient(180deg, #eef6fb, #fffdf8); border-color: rgb(31 95 150 / 0.35); }
.step-number, .stage-index, .gate-index, .incident-number, .boundary-label { color: var(--accent); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.taxonomy-caveat { grid-column: 1 / -1; margin: 0.25rem 0 0; }
.continuity-timeline { position: relative; padding-left: 1.3rem; }
.continuity-timeline::before { content: ''; position: absolute; left: 0.18rem; top: 0.4rem; bottom: 0.4rem; width: 3px; border-radius: 999px; background: linear-gradient(var(--accent), var(--gold)); }
.continuity-timeline .continuity-item { position: relative; }
.continuity-timeline .continuity-item::before { content: ''; position: absolute; left: -1.55rem; top: 1.3rem; width: 0.78rem; height: 0.78rem; border-radius: 50%; background: var(--panel); border: 3px solid var(--accent); }
.anatomy-diagram { display: grid; gap: 1rem; margin: 0; }
.anatomy-flow { counter-reset: anatomy; }
.anatomy-stage { border-left-width: 0; border-top: 4px solid var(--accent); }
.verification-loop, .model-swap-control, .architecture-guardrails { padding: 1rem; border: 1px dashed rgb(31 95 150 / 0.42); border-radius: var(--radius); background: rgb(243 247 251 / 0.72); }
.verification-loop p, .model-swap-control p { margin: 0.25rem 0 0; color: var(--muted); line-height: 1.45; }
.model-swap-invariant { display: grid; gap: 0.2rem; }
.blueprint-pipeline { position: relative; margin: 0; }
.pipeline-stage { min-height: 285px; }
.pipeline-items { display: grid; gap: 0.45rem; }
.pipeline-arrow { font-size: clamp(1.5rem, 2vw, 2.4rem); }
.architecture-guardrails { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: center; }
.guardrail-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.threat-list { display: flex; flex-wrap: wrap; gap: 0.42rem; align-items: flex-start; max-width: 100%; }
.guardrail-list span, .threat-list span { padding: 0.3rem 0.5rem; border-radius: 999px; background: #efe8d8; color: var(--ink); font-weight: 750; font-size: 0.84rem; line-height: 1.15; white-space: nowrap; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.architecture-caveat { grid-column: 1 / -1; }
.threat-control-boundary { grid-template-columns: minmax(168px, 0.95fr) minmax(280px, 1.05fr) minmax(0, 0.88fr); }
.boundary-controls { padding: 1rem; border-radius: var(--radius-xl); background: linear-gradient(180deg, #fff8eb, #fffdf8); border: 1px solid rgb(164 75 66 / 0.22); box-shadow: var(--shadow-card); }
.control-gates { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.control-gate { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2rem 0.5rem; align-items: baseline; padding: 0.75rem; border-radius: 16px; background: rgb(255 253 248 / 0.86); border-left: 4px solid var(--red); }
.control-gate p { grid-column: 1 / -1; }
.control-gate p, .threat-note, .acceptance-check { margin: 0.3rem 0 0; line-height: 1.45; color: var(--muted); }
.incident-ledger { align-items: stretch; }
.incident-receipt { display: flex; flex-direction: column; }
.incident-head { border-bottom: 1px dashed var(--line); margin-bottom: 0.85rem; }
.incident-timeline { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.incident-step { padding: 0.68rem 0.72rem; border-radius: 15px; background: rgb(236 231 221 / 0.52); }
.incident-step p { margin: 0.25rem 0 0; }
.incident-sources { margin-top: auto; }
.verification-demo h3 { margin: 0.2rem 0 0.35rem; font-size: 1.25rem; }
.verification-status { margin: 0; color: var(--green); font-weight: 850; }
@media (max-width: 1120px) {
  .taxonomy-ladder, .threat-control-boundary { grid-template-columns: 1fr; }
  .taxonomy-step:nth-child(n) { min-height: 0; }
  .architecture-guardrails { display: grid; }
}
@media (min-width: 1121px) and (max-height: 820px) {
  .pipeline-stage, .untrusted, .trusted { min-height: 210px; }
  .control-gate, .arch-col p, .incident-step { padding-block: 0.48rem; }
  .failure-card p { margin-block: 0.45rem; }
}
@media (max-width: 640px) {
  .continuity-timeline { padding-left: 0.9rem; }
  .continuity-timeline .continuity-item::before { left: -1.18rem; }
  .boundary-controls, .verification-loop, .model-swap-control { padding: 0.9rem; }
  .guardrail-list, .threat-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .threat-list span { padding-inline: 0.46rem; font-size: 0.82rem; }
}


/* First-fix pass: keep section 03 within one presentation viewport without changing copy. */
@media (min-width: 1121px) and (max-height: 940px) {
  #design {
    grid-template-columns: minmax(390px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(1.4rem, 3vw, 3rem);
    padding-block: clamp(2.4rem, 5vh, 4rem);
  }
  #design .scene-copy { max-width: 610px; }
  #design h2 { font-size: clamp(2.1rem, 3.2vw, 3.4rem); }
  #design .lede { font-size: clamp(1.04rem, 0.45vw + 0.95rem, 1.22rem); line-height: 1.52; }
  #design .source-line { font-size: 0.9rem; line-height: 1.38; }
  #design .harness-lens { gap: 0.58rem; }
  #design .layer-stack { gap: 0.48rem; }
  #design .layer { padding: 0.62rem 0.82rem; grid-template-columns: minmax(6.6rem, 0.32fr) 1fr; gap: 0.55rem; }
  #design .layer p { line-height: 1.32; }
  #design .verification-loop, #design .model-swap-control { padding: 0.72rem 0.82rem; }
  #design .verification-loop p, #design .model-swap-control p, #design figcaption { font-size: 0.93rem; line-height: 1.34; }
  #design .action-button { margin-top: 0.5rem; padding: 0.62rem 0.9rem; }
}

/* Correction pass: projector fullscreen controls must not cover semantic cards. */
.is-fullscreen .source-open,
.is-fullscreen .fullscreen-toggle {
  inline-size: 3rem;
  min-inline-size: 3rem;
  block-size: 3rem;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  text-indent: -999px;
  opacity: 0.9;
}
.is-fullscreen .source-open::after,
.is-fullscreen .fullscreen-toggle::after {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  text-indent: 0;
}
.is-fullscreen .source-open::after { content: 'S'; }
.is-fullscreen .fullscreen-toggle::after { content: 'F'; }
@media (min-width: 1121px) and (max-height: 820px) {
  .is-fullscreen .taxonomy-ladder { gap: 0.8rem; }
  .is-fullscreen .taxonomy-step:nth-child(2) { min-height: 230px; }
  .is-fullscreen .taxonomy-step:nth-child(3) { min-height: 260px; }
}
.is-fullscreen .source-open,
.is-fullscreen .fullscreen-toggle {
  display: grid;
  place-items: center;
  font-size: 0;
  text-indent: 0;
}
.is-fullscreen .source-open::after,
.is-fullscreen .fullscreen-toggle::after {
  font-size: 1rem;
  line-height: 1;
  color: currentColor;
}

/* First-fix acceptance overrides: section 02 axes and section 03 target desktop fit. */
@media (min-width: 641px) {
  .axis.y { left: -10.2rem; }
}
@media (min-width: 641px) and (max-width: 1120px) {
  .plot { margin-left: 7.2rem; width: calc(100% - 7.2rem); }
  .axis.y { left: -11rem; }
  .ticks-y { left: -5.4rem; }
  .map-point span { max-width: 8.4rem; }
}
@media (min-width: 1121px) and (max-height: 940px) {
  #design.scene {
    grid-template-columns: minmax(360px, 0.62fr) minmax(0, 1.38fr);
    gap: clamp(1rem, 2.2vw, 2.4rem);
    min-height: 92vh;
    padding-block: clamp(2rem, 4vh, 3.3rem);
  }
  #design .scene-copy { max-width: 560px; }
  #design h2 { font-size: clamp(2rem, 2.8vw, 3.15rem); }
  #design .lede { font-size: clamp(1rem, 0.38vw + 0.92rem, 1.15rem); line-height: 1.45; }
  #design .source-line { font-size: 0.86rem; line-height: 1.3; }
  #design .harness-lens { gap: 0.44rem; }
  #design .layer-stack { gap: 0.38rem; }
  #design .layer { padding-block: 0.48rem; }
  #design .verification-loop, #design .model-swap-control { padding-block: 0.58rem; }
}
@media (min-width: 760px) and (max-width: 1120px) and (max-height: 940px) {
  #design.scene {
    grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1.45fr);
    gap: 1.1rem;
    min-height: 92vh;
    padding-block: 2rem;
  }
  #design .scene-copy { max-width: 330px; }
  #design h2 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); max-width: 10ch; }
  #design .lede { font-size: 0.98rem; line-height: 1.38; }
  #design .source-line { font-size: 0.78rem; line-height: 1.24; }
  #design .kicker { margin-bottom: 0.45rem; }
  #design .harness-lens { gap: 0.36rem; }
  #design .layer-stack { gap: 0.32rem; }
  #design .layer { grid-template-columns: minmax(5.7rem, 0.3fr) 1fr; gap: 0.44rem; padding: 0.42rem 0.58rem; border-radius: 14px; }
  #design .layer p { line-height: 1.24; font-size: 0.9rem; }
  #design .stage-index, #design .stage-title { font-size: 0.74rem; }
  #design .verification-loop, #design .model-swap-control { padding: 0.5rem 0.58rem; border-radius: 14px; }
  #design .verification-loop p, #design .model-swap-control p, #design figcaption { font-size: 0.84rem; line-height: 1.24; }
  #design .action-button { margin-top: 0.3rem; padding: 0.48rem 0.68rem; font-size: 0.88rem; }
}
@media (min-width: 641px) and (max-width: 960px) {
  #map .plot {
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    display: grid;
    gap: 0.55rem;
    background-image: none;
  }
  #map .personal-region, #map .axis, #map .ticks {
    position: static;
    transform: none;
    display: block;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 0;
    width: auto;
  }
  #map .axis.y::before { content: 'Y: '; }
  #map .axis.x::before { content: 'X: '; }
  #map .ticks-x, #map .ticks-y { display: flex; gap: 0.35rem; flex-wrap: wrap; }
  #map .ticks span { padding: 0.18rem 0.45rem; border-radius: 999px; background: #efe8d8; }
  #map .map-point { position: static; transform: none; width: auto; height: auto; min-height: 2.3rem; border-radius: 16px; border: 1px solid var(--line); box-shadow: none; display: flex; align-items: center; justify-content: flex-start; padding: 0.42rem 0.68rem; background: #fffdf8; color: var(--ink); }
  #map .map-point::before { content: ''; width: 0.72rem; height: 0.72rem; margin-right: 0.5rem; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); }
  #map .map-point[aria-pressed="true"] { background: #fff3c8; box-shadow: inset 0 0 0 2px var(--ink); }
  #map .map-point span { position: static; transform: none; width: auto; left: auto; top: auto; max-width: none; font-size: 0.86rem; text-align: left; }
}


/* Detail pass 2: tighter public deck geometry for section 02 and section 04 review screens.
   Marker color is unified in detail pass 3 below. */
@media (min-width: 1121px) and (max-height: 940px) {
  html:not(.is-fullscreen) #map.scene {
    grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(1rem, 2vw, 2.2rem);
    padding-block: clamp(2rem, 4vh, 3.2rem);
  }
  html:not(.is-fullscreen) #map .scene-copy { max-width: 520px; }
  html:not(.is-fullscreen) #map h2 { font-size: clamp(2rem, 2.8vw, 3.15rem); }
  html:not(.is-fullscreen) #map .lede { font-size: clamp(1rem, 0.38vw + 0.92rem, 1.15rem); line-height: 1.45; }
  html:not(.is-fullscreen) #map .source-line { font-size: 0.86rem; line-height: 1.3; }
  html:not(.is-fullscreen) #map .map-grid { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; align-items: start; }
  html:not(.is-fullscreen) #map .evidence-card { display: none; }
  html:not(.is-fullscreen) #map .plot { min-height: 0; height: min(52vh, 520px); aspect-ratio: auto; }
}
@media (min-width: 760px) and (max-width: 1120px) and (max-height: 940px) {
  html:not(.is-fullscreen) #map.scene, html:not(.is-fullscreen) #need.scene {
    grid-template-columns: minmax(285px, 0.54fr) minmax(0, 1.46fr);
    gap: 1.05rem;
    min-height: 92vh;
    padding-block: 2rem;
  }
  html:not(.is-fullscreen) #map .scene-copy, html:not(.is-fullscreen) #need .scene-copy { max-width: 330px; }
  html:not(.is-fullscreen) #map h2, html:not(.is-fullscreen) #need h2 { font-size: clamp(1.72rem, 3.25vw, 2.2rem); max-width: 12ch; }
  html:not(.is-fullscreen) #map .lede, html:not(.is-fullscreen) #need .lede { font-size: 0.96rem; line-height: 1.36; }
  html:not(.is-fullscreen) #map .source-line, html:not(.is-fullscreen) #need .source-line { font-size: 0.76rem; line-height: 1.22; }
  html:not(.is-fullscreen) #map .kicker, html:not(.is-fullscreen) #need .kicker { margin-bottom: 0.42rem; }
  html:not(.is-fullscreen) #map .map-grid { gap: 0.55rem; }
  html:not(.is-fullscreen) #map .evidence-card { display: none; }
  html:not(.is-fullscreen) #need .continuity-timeline { gap: 0.52rem; padding-left: 0.92rem; }
  html:not(.is-fullscreen) #need .continuity-item { padding: 0.68rem 0.82rem; border-radius: 16px; }
  html:not(.is-fullscreen) #need .continuity-item::before { left: -1.2rem; top: 0.9rem; width: 0.58rem; height: 0.58rem; border-width: 2px; }
  html:not(.is-fullscreen) #need .continuity-item span { font-size: 0.68rem; }
  html:not(.is-fullscreen) #need .continuity-item strong { font-size: 1.02rem; line-height: 1.18; margin: 0.12rem 0; }
  html:not(.is-fullscreen) #need .continuity-item p { margin: 0.18rem 0 0; font-size: 0.9rem; line-height: 1.28; }
}

/* Section 03 continuity / Theseus framing. */
#design .scene-copy { align-self: center; }
#design h2 { max-width: 16ch; }
#design .lede { max-width: 34rem; }
.continuity-lens { display: grid; gap: 0.78rem; margin: 0; }
.continuity-stack { display: grid; gap: 0.58rem; }
.continuity-layer { padding: 0.86rem 0.98rem; border-radius: 18px; border: 1px solid var(--line); border-top: 4px solid var(--accent); background: rgb(255 253 248 / 0.9); box-shadow: var(--shadow-card); }
.continuity-layer .layer-head { display: flex; gap: 0.58rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.36rem; }
.continuity-layer h3 { margin: 0; font-size: 0.84rem; line-height: 1.2; letter-spacing: 0.12em; text-transform: uppercase; }
.continuity-layer p { margin: 0; color: var(--muted); line-height: 1.38; }
.model-layer { background: linear-gradient(180deg, #eef6fb, #fffdf8); border-color: rgb(31 95 150 / 0.28); }
.model-state-badge { margin-left: auto; padding: 0.22rem 0.52rem; border-radius: 999px; background: var(--ink); color: var(--panel); font-size: 0.78rem; font-weight: 850; line-height: 1.2; }
.model-swap-line { display: flex; gap: 0.45rem; align-items: baseline; font-family: var(--font-display-sans); font-size: clamp(1.25rem, 1vw + 1rem, 1.8rem); color: var(--ink) !important; }
.model-slot-label { color: var(--accent); }
.harness-layer { border-top-color: var(--gold); }
.continuity-layer-core { border-top-color: var(--green); }
.theseus-experiment { display: grid; gap: 0.62rem; padding: 0.82rem; }
.experiment-head { display: flex; gap: 0.72rem; align-items: center; flex-wrap: wrap; }
.experiment-head .action-button { margin-top: 0; }
.experiment-head strong { line-height: 1.28; }
.swap-result-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0.58rem; }
.change-card { padding: 0.66rem 0.72rem; border-radius: 15px; background: rgb(255 253 248 / 0.72); border: 1px solid rgb(215 205 189 / 0.74); }
.change-card h4 { margin: 0 0 0.34rem; color: var(--ink); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.theseus-list { margin: 0; padding-left: 1.05rem; color: var(--muted); font-size: 0.9rem; line-height: 1.34; }
.theseus-list li { margin: 0.16rem 0; }
.preserved-card { border-color: rgb(40 116 90 / 0.24); }
.changed-card { border-color: rgb(164 75 66 / 0.20); }
.continuity-caveat { margin: 0; padding: 0.72rem 0.86rem; border-radius: 16px; background: rgb(236 231 221 / 0.52); }
.continuity-caveat strong { display: block; color: var(--ink); }
@media (min-width: 1121px) and (max-height: 940px) {
  #design.scene { grid-template-columns: minmax(360px, 0.56fr) minmax(0, 1.44fr); }
  #design h2 { font-size: clamp(1.78rem, 2.25vw, 2.65rem); max-width: 15ch; }
  #design .lede { font-size: clamp(0.96rem, 0.28vw + 0.9rem, 1.08rem); line-height: 1.4; }
  #design .continuity-lens { gap: 0.48rem; }
  #design .continuity-stack { gap: 0.42rem; }
  #design .continuity-layer { padding: 0.54rem 0.68rem; border-radius: 15px; }
  #design .continuity-layer .layer-head { margin-bottom: 0.22rem; }
  #design .continuity-layer h3, #design .change-card h4 { font-size: 0.74rem; }
  #design .continuity-layer p { font-size: 0.92rem; line-height: 1.24; }
  #design .model-swap-line { font-size: 1.22rem; }
  #design .theseus-experiment { padding: 0.56rem 0.64rem; gap: 0.42rem; }
  #design .experiment-head { gap: 0.5rem; }
  #design .experiment-head strong { font-size: 0.9rem; }
  #design .swap-result-grid { gap: 0.42rem; }
  #design .change-card { padding: 0.46rem 0.54rem; }
  #design .theseus-list { font-size: 0.8rem; line-height: 1.2; }
  #design .continuity-caveat { padding: 0.5rem 0.62rem; font-size: 0.82rem; line-height: 1.22; }
  #design .source-line { font-size: 0.76rem; }
}
@media (max-width: 1120px) {
  .swap-result-grid { grid-template-columns: 1fr; }
  #design h2 { max-width: 18ch; }
}
@media (min-width: 760px) and (max-width: 1120px) and (max-height: 940px) {
  #design.scene { grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1.52fr); }
  #design h2 { max-width: 14ch; font-size: clamp(1.55rem, 2.8vw, 2.05rem); }
  #design .lede { font-size: 0.9rem; line-height: 1.3; }
  #design .continuity-layer { padding: 0.44rem 0.54rem; }
  #design .continuity-layer p { font-size: 0.8rem; line-height: 1.18; }
  #design .model-swap-line { font-size: 1rem; }
  #design .model-state-badge { font-size: 0.68rem; }
  #design .experiment-head strong { font-size: 0.78rem; }
  #design .theseus-list { font-size: 0.72rem; line-height: 1.14; }
  #design .continuity-caveat { font-size: 0.72rem; line-height: 1.16; }
}
@media (max-width: 640px) {
  .model-state-badge { margin-left: 0; }
  .model-swap-line { display: block; }
  .theseus-list { font-size: 0.92rem; }
}

/* Detail pass 3: restore section 03 shared typography; compact only structure, not left copy scale. */
.map-point[data-combined="true"] {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px rgb(31 95 150 / 0.16), 0 4px 12px rgb(0 0 0 / 0.22);
}
.map-point[data-combined="true"][aria-pressed="true"] {
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 8px rgb(31 95 150 / 0.16), 0 8px 18px rgb(0 0 0 / 0.26);
}
@media (min-width: 1121px) and (max-height: 940px) {
  #design.scene {
    grid-template-columns: minmax(430px, 0.68fr) minmax(0, 1.32fr);
    gap: clamp(1rem, 2vw, 2.2rem);
    padding-block: clamp(1.6rem, 3.2vh, 2.5rem);
  }
  #design .scene-copy { max-width: 620px; }
  #design h2 {
    font-size: clamp(2rem, 2.8vw, 3.15rem);
    line-height: 1.17;
    max-width: 16ch;
  }
  #design .lede {
    font-size: clamp(1rem, 0.38vw + 0.92rem, 1.15rem);
    line-height: 1.45;
    max-width: 34rem;
  }
  #design .source-line { font-size: 0.86rem; line-height: 1.3; }
  #design .kicker { margin-bottom: 0.42rem; }
  #design .continuity-lens { gap: 0.32rem; }
  #design .continuity-stack { gap: 0.28rem; }
  #design .continuity-layer { padding: 0.42rem 0.58rem; border-radius: 14px; }
  #design .continuity-layer .layer-head { margin-bottom: 0.14rem; gap: 0.42rem; }
  #design .continuity-layer h3, #design .change-card h4 { font-size: 0.7rem; }
  #design .continuity-layer p { font-size: 0.82rem; line-height: 1.16; }
  #design .model-state-badge { font-size: 0.66rem; padding: 0.16rem 0.42rem; }
  #design .model-swap-line { font-size: 1rem; }
  #design .theseus-experiment { padding: 0.42rem 0.52rem; gap: 0.3rem; }
  #design .experiment-head { gap: 0.45rem; }
  #design .experiment-head strong { font-size: 0.78rem; line-height: 1.18; }
  #design .experiment-head .action-button { padding: 0.46rem 0.7rem; font-size: 0.82rem; }
  #design .swap-result-grid { gap: 0.32rem; }
  #design .change-card { padding: 0.36rem 0.46rem; }
  #design .theseus-list { font-size: 0.7rem; line-height: 1.13; padding-left: 0.88rem; }
  #design .theseus-list li { margin: 0.08rem 0; }
  #design .continuity-caveat { padding: 0.38rem 0.5rem; font-size: 0.72rem; line-height: 1.14; }
}
@media (min-width: 760px) and (max-width: 1120px) and (max-height: 940px) {
  #design.scene { grid-template-columns: minmax(285px, 0.54fr) minmax(0, 1.46fr); }
  #design .scene-copy { max-width: 330px; }
  #design h2 { font-size: clamp(1.72rem, 3.25vw, 2.2rem); line-height: 1.17; max-width: 14ch; }
  #design .lede { font-size: 0.96rem; line-height: 1.36; }
  #design .source-line { font-size: 0.76rem; line-height: 1.22; }
}

/* Detail pass 3: Section 07 accessible single-card switcher. */
.failure-switcher { display: grid; gap: 0.85rem; }
.failure-controls { display: grid; grid-template-columns: auto 1fr auto auto; gap: 0.65rem; align-items: center; }
.failure-tabs { display: flex; justify-content: center; gap: 0.42rem; }
.failure-tab {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgb(255 253 248 / 0.9);
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
}
.failure-tab[aria-selected="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.failure-status { color: var(--muted); font-weight: 850; font-size: 0.94rem; white-space: nowrap; }
.failure-viewport { min-width: 0; }
.failure-switcher .failure-card { max-width: min(100%, 760px); margin-inline: auto; }
.failure-switcher .incident-head { margin-bottom: 0.65rem; }
.failure-switcher .incident-timeline { gap: 0.42rem; }
.failure-switcher .incident-step { padding: 0.54rem 0.68rem; }
.failure-switcher .failure-card p { margin: 0.45rem 0; }
@media (min-width: 1121px) and (max-height: 940px) {
  #failures.scene {
    grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(1rem, 2.1vw, 2.2rem);
    padding-block: clamp(1.8rem, 3.5vh, 2.8rem);
  }
  #failures .scene-copy { max-width: 540px; }
  #failures h2 { font-size: clamp(2rem, 2.8vw, 3.15rem); }
  #failures .lede { font-size: clamp(1rem, 0.38vw + 0.92rem, 1.15rem); line-height: 1.45; }
  #failures .source-line { font-size: 0.86rem; line-height: 1.3; }
  #failures .failure-switcher { gap: 0.58rem; }
  #failures .failure-card { padding: 0.85rem; border-radius: 22px; }
  #failures .failure-card h3 { font-size: 1.16rem; margin-bottom: 0.45rem; }
  #failures .incident-step { padding: 0.42rem 0.54rem; }
  #failures .incident-step p, #failures .caveat, #failures .incident-sources { font-size: 0.82rem; line-height: 1.24; }
  #failures .failure-card p { margin: 0.28rem 0; }
  #failures .failure-tab { width: 2rem; height: 2rem; }
  #failures .ghost-button { margin-top: 0; padding: 0.55rem 0.76rem; font-size: 0.86rem; }
}
@media (max-width: 640px) {
  .failure-controls { grid-template-columns: auto auto auto; justify-content: start; }
  .failure-tabs { order: 1; }
  .failure-prev { order: 2; }
  .failure-next { order: 3; }
  .failure-status { grid-column: 1 / -1; order: 4; }
}

/* Detail pass 3: Section 08 closes with takeaways, not a demo/discussion box. */
.closing-takeaways { padding: 0; gap: 1rem; }
.takeaway-list { display: grid; gap: 0.9rem; }
.takeaway-list > p { display: flex; gap: 1rem; align-items: baseline; margin: 0; padding: 1rem 1.1rem; border-radius: var(--radius); background: rgb(255 253 248 / 0.86); border: 1px solid var(--line); box-shadow: var(--shadow-card); font-size: clamp(1.1rem, 0.52vw + 1rem, 1.34rem); line-height: 1.38; font-weight: 850; }
.takeaway-list .human-takeaway { border-color: rgb(196 137 22 / 0.42); background: linear-gradient(180deg, #fff8e7, #fffdf8); font-size: clamp(1.24rem, 0.8vw + 1.02rem, 1.56rem); }
.takeaway-num { color: var(--gold); font-variant-numeric: tabular-nums; }
.takeaway-copy { display: inline; }
.human-note { display: inline-block; margin-left: 0.72rem; padding: 0.18rem 0.5rem; border-radius: 999px; background: rgb(31 95 150 / 0.1); color: var(--accent); font-size: 0.64em; font-style: normal; font-weight: 900; white-space: nowrap; vertical-align: middle; }
.closing-takeaways .synthetic-console { padding: 0.85rem 1rem; }
.closing-takeaways .console-log { min-height: 0; }
.deck-credit { padding: 0.65rem 0.8rem; color: var(--muted); font-size: 0.9rem; text-align: right; }
.deck-credit a { color: inherit; font-weight: 850; }
@media (min-width: 1121px) and (max-height: 940px) {
  #takeaways.scene {
    grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(1rem, 2.2vw, 2.5rem);
    padding-block: clamp(2rem, 4vh, 3rem);
  }
  #takeaways .scene-copy { max-width: 540px; }
  #takeaways h2 { font-size: clamp(2rem, 2.8vw, 3.15rem); }
  #takeaways .lede { font-size: clamp(1rem, 0.38vw + 0.92rem, 1.15rem); line-height: 1.45; }
  #takeaways .source-line { font-size: 0.86rem; line-height: 1.3; }
  #takeaways .takeaway-list { gap: 0.62rem; }
  #takeaways .takeaway-list > p { padding: 0.72rem 0.86rem; font-size: clamp(1.02rem, 0.4vw + 0.92rem, 1.16rem); line-height: 1.28; }
  #takeaways .takeaway-list .human-takeaway { font-size: clamp(1.12rem, 0.55vw + 0.95rem, 1.32rem); }
  #takeaways .synthetic-console { padding: 0.65rem 0.78rem; }
  #takeaways .console-log { font-size: 0.86rem; line-height: 1.3; }
  #takeaways .console-log li { margin: 0.32rem 0; }
  #takeaways .deck-credit { font-size: 0.78rem; padding-block: 0.35rem; }
}
@media (max-width: 640px) {
  .human-note { display: table; margin: 0.45rem 0 0; white-space: normal; }
  .deck-credit { text-align: left; }
}

/* Section 08 care log: public-safe, manually selected growth events. */
.care-log {
  display: grid;
  gap: 0.72rem;
  border-color: rgb(31 95 150 / 0.2);
  background:
    radial-gradient(circle at 12% 0%, rgb(251 210 93 / 0.18), transparent 34%),
    linear-gradient(180deg, rgb(255 253 248 / 0.97), rgb(246 242 234 / 0.94));
}
.care-log-heading {
  margin: -0.45rem 0 0;
  font-size: clamp(1.45rem, 1.4vw + 1rem, 2.25rem);
  line-height: 1.05;
}
.care-log-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.care-log-tab {
  position: relative;
  overflow: hidden;
  min-height: 2.8rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgb(31 95 150 / 0.24);
  border-radius: 999px;
  background: rgb(255 253 248 / 0.86);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 8px 18px rgb(20 29 40 / 0.08);
}
.care-log-tab::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.32rem;
  background: var(--gold);
  opacity: 0;
}
.care-log-tab:hover { background: #fff8e7; }
.care-log-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--panel);
  border-color: var(--ink);
}
.care-log-tab[aria-selected="true"]::before { opacity: 1; }
.care-log-status {
  margin: -0.14rem 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}
.care-log-card {
  display: grid;
  gap: 0.44rem;
  padding: 0.88rem 0.95rem;
  border: 1px solid rgb(31 95 150 / 0.16);
  border-radius: var(--radius);
  background: rgb(255 253 248 / 0.88);
  box-shadow: var(--shadow-card);
}
.care-log-date {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.care-log-card h3 {
  margin: 0;
  font-size: clamp(1.22rem, 0.75vw + 1rem, 1.68rem);
  line-height: 1.15;
}
.care-log-tag {
  justify-self: start;
  margin: 0;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  background: rgb(31 95 150 / 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}
.care-log-body {
  margin: 0;
  font-size: clamp(0.98rem, 0.3vw + 0.92rem, 1.12rem);
  line-height: 1.46;
}
.care-log-note {
  margin: 0.1rem 0 0;
  font-size: 0.84rem;
  line-height: 1.38;
}
.care-log-closing {
  margin: 0;
  padding-top: 0.12rem;
  color: var(--ink-strong);
  font-family: var(--font-display-sans);
  font-size: clamp(1rem, 0.35vw + 0.92rem, 1.16rem);
  font-weight: 820;
  line-height: 1.34;
}
@media (min-width: 1121px) and (max-height: 940px) {
  #takeaways .care-log { gap: 0.52rem; }
  #takeaways .care-log-heading { font-size: clamp(1.32rem, 1vw + 0.95rem, 1.82rem); }
  #takeaways .care-log-controls { gap: 0.38rem; }
  #takeaways .care-log-tab { min-height: 2.24rem; padding: 0.48rem 0.62rem; font-size: 0.86rem; }
  #takeaways .care-log-card { gap: 0.28rem; padding: 0.62rem 0.72rem; }
  #takeaways .care-log-date, #takeaways .care-log-status, #takeaways .care-log-note, #takeaways .care-log-tag { font-size: 0.76rem; }
  #takeaways .care-log-card h3 { font-size: clamp(1.04rem, 0.45vw + 0.92rem, 1.3rem); }
  #takeaways .care-log-body { font-size: 0.88rem; line-height: 1.31; }
  #takeaways .care-log-closing { font-size: 0.9rem; line-height: 1.27; }
}
@media (max-width: 640px) {
  .care-log-controls { grid-template-columns: 1fr; }
  .care-log-tab { border-radius: 18px; text-align: left; }
}
