:root {
  color-scheme: light;
  --ink: #14211f;
  --ink-soft: #3f514c;
  --muted: #6c7b76;
  --paper: #f4f2e9;
  --paper-deep: #e9e6dc;
  --surface: #fffef8;
  --surface-cool: #eef4f0;
  --forest: #102a25;
  --forest-deep: #091d19;
  --teal: #197b6d;
  --teal-bright: #48b7a6;
  --teal-soft: #d9eee8;
  --cyan: #8be4ef;
  --gold: #d6a34f;
  --gold-soft: #f4e7ca;
  --lavender: #d7d7ff;
  --line: #d1d8d2;
  --line-dark: rgb(255 255 255 / 0.14);
  --shadow: 0 24px 70px rgb(20 43 37 / 0.12);
  --shadow-soft: 0 12px 32px rgb(20 43 37 / 0.08);
  --radius: 28px;
  --radius-small: 16px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  --serif: Iowan Old Style, "Noto Serif TC", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--sans); }
body, button, input { font: inherit; }
a { color: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 100; top: 0.75rem; left: 0.75rem; padding: 0.7rem 1rem; transform: translateY(-150%); color: white; background: var(--teal); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(1480px, 92vw); margin-inline: auto; }
.section { padding-block: clamp(5rem, 9vw, 9rem); scroll-margin-top: 5.5rem; }
.eyebrow { margin: 0 0 0.8rem; color: var(--teal); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.section-heading h2 { max-width: 900px; margin: 0; font: 500 clamp(2.25rem, 4vw, 4.7rem)/1.05 var(--serif); letter-spacing: -0.045em; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); align-items: end; gap: clamp(2rem, 8vw, 9rem); margin-bottom: clamp(2.4rem, 5vw, 4.5rem); }
.split-heading > p { max-width: 560px; margin: 0 0 0.3rem; color: var(--muted); font-size: 1rem; line-height: 1.85; }

.site-header { position: sticky; z-index: 40; top: 0; color: white; background: rgb(9 29 25 / 0.93); border-bottom: 1px solid var(--line-dark); backdrop-filter: blur(18px); }
.header-inner { width: min(1560px, 96vw); min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: inline-grid; flex: 0 0 auto; place-items: center; border: 1px solid rgb(255 255 255 / 0.42); border-radius: 11px; color: var(--cyan); font: 700 1.2rem/1 var(--serif); box-shadow: inset 0 0 24px rgb(107 235 220 / 0.08); }
.brand-copy { display: grid; gap: 0.12rem; }
.brand-copy strong { font-size: 0.96rem; letter-spacing: -0.015em; }
.brand-copy small { color: #99ada7; font-size: 0.68rem; letter-spacing: 0.015em; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 0.3rem; }
.site-nav a { padding: 0.55rem 0.75rem; color: #bccdc8; border-radius: 8px; font-size: 0.83rem; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: white; background: rgb(255 255 255 / 0.08); outline: none; }

.workspace-entry { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.workspace-entry small { display: block; margin-bottom: 0.14rem; font-size: 0.61rem; font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; }
.workspace-entry-header { padding: 0.6rem 0.85rem; color: #102a25; background: #a8e6d9; border: 1px solid #cbf3ea; border-radius: 11px; font-size: 0.79rem; font-weight: 780; box-shadow: 0 8px 20px rgb(0 0 0 / 0.18); transition: transform 160ms ease, background 160ms ease; }
.workspace-entry-header > span:first-child { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: white; background: var(--forest); }
.workspace-entry-header:hover { transform: translateY(-1px); background: #c5f2e9; }

.hero-section { position: relative; overflow: hidden; color: white; background: var(--forest-deep); }
.hero-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 18% 28%, rgb(66 167 147 / 0.19), transparent 29rem), linear-gradient(112deg, transparent 35%, rgb(16 54 49 / 0.66) 100%); }
.hero-section::after { content: ""; position: absolute; right: 0; bottom: 0; width: 42%; height: 42%; pointer-events: none; opacity: 0.18; background-image: linear-gradient(rgb(137 228 215 / 0.26) 1px, transparent 1px), linear-gradient(90deg, rgb(137 228 215 / 0.26) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to top left, black, transparent 75%); }
.hero-grid { position: relative; z-index: 1; min-height: min(910px, calc(100vh - 78px)); display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.76fr); align-items: center; gap: clamp(3rem, 7vw, 8rem); padding-block: clamp(4.5rem, 8vw, 8rem); }
.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; color: #9db3ad; font-size: 0.75rem; }
.status-badge { display: inline-flex; align-items: center; gap: 0.38rem; width: fit-content; padding: 0.34rem 0.56rem; border: 1px solid transparent; border-radius: 999px; font-size: 0.66rem; font-weight: 820; letter-spacing: 0.055em; text-transform: uppercase; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 13%, transparent); }
.status-current { color: #146b5f; background: #dcefe9; border-color: #b7dcd3; }
.hero-section .status-current, .light-heading .status-current { color: #9ce9db; background: rgb(63 172 151 / 0.14); border-color: rgb(123 229 209 / 0.24); }
.status-target { color: #6a57ad; background: #eae7fb; border-color: #d0c9ef; }
.status-pilot { color: #896017; background: var(--gold-soft); border-color: #e2cb9b; }
.hero-copy .eyebrow { color: #7acabc; }
.hero-copy h1 { max-width: 960px; margin: 0; font: 500 clamp(3.4rem, 5.4vw, 7rem)/0.94 var(--serif); letter-spacing: -0.06em; white-space: nowrap; }
.hero-copy h1 em { color: #a9e4d8; font-style: normal; }
.hero-lead { max-width: 800px; margin: 1.65rem 0 0; color: #b7c9c4; font-size: clamp(1rem, 1.35vw, 1.24rem); line-height: 1.85; }
.hero-action-groups { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.25rem; }
.workspace-entry-hero { min-width: min(100%, 390px); padding: 0.9rem 1rem; color: #08201b; background: #9de4d6; border: 1px solid #c8f6ec; border-radius: 15px; font-weight: 820; box-shadow: 0 16px 36px rgb(0 0 0 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.65); transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.workspace-entry-hero:hover { transform: translateY(-2px); background: #c5f5eb; box-shadow: 0 22px 44px rgb(0 0 0 / 0.36); }
.workspace-entry-icon { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #a9e8db; background: var(--forest); font: 700 1rem var(--serif); }
.workspace-entry-arrow { margin-left: auto; font-size: 1.25rem; }
.learn-actions { display: grid; grid-template-columns: repeat(2, auto); align-content: center; gap: 0.36rem 0.45rem; padding: 0.62rem 0.8rem; border: 1px solid rgb(255 255 255 / 0.14); border-radius: 15px; background: rgb(255 255 255 / 0.035); }
.learn-actions > span { grid-column: 1 / -1; color: #849c96; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.learn-actions a { padding: 0.36rem 0.42rem; color: #c9d8d4; font-size: 0.78rem; text-decoration: none; border-radius: 6px; }
.learn-actions a:hover { color: white; background: rgb(255 255 255 / 0.08); }
.proof-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 840px; margin: 2.5rem 0 0; padding: 1.15rem 0 0; border-top: 1px solid rgb(255 255 255 / 0.13); list-style: none; }
.proof-list li { display: grid; gap: 0.25rem; padding-right: 1rem; }
.proof-list li + li { padding-left: 1rem; border-left: 1px solid rgb(255 255 255 / 0.12); }
.proof-list strong { color: #eefbf7; font-size: 0.77rem; }
.proof-list span { color: #829892; font-size: 0.7rem; line-height: 1.5; }

.hero-visual { position: relative; max-width: 640px; justify-self: end; margin: 0; overflow: hidden; border: 1px solid rgb(255 255 255 / 0.18); border-radius: 30px; background: #071228; box-shadow: 0 35px 90px rgb(0 0 0 / 0.38); }
.hero-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06), inset 0 -140px 120px rgb(4 15 29 / 0.72); }
.hero-visual img { width: 100%; aspect-ratio: 0.93; object-fit: cover; object-position: 68% center; }
.hero-visual-overlay { position: absolute; z-index: 2; top: 1.15rem; right: 1.15rem; left: 1.15rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.65rem; color: #aebedb; background: rgb(4 17 35 / 0.78); border: 1px solid rgb(132 180 241 / 0.22); border-radius: 12px; backdrop-filter: blur(12px); font-size: 0.66rem; }
.hero-visual-overlay strong { color: white; }
.hero-visual-overlay i { color: #6ccde0; font-style: normal; }
.hero-visual figcaption { position: absolute; z-index: 3; right: 1.4rem; bottom: 1.4rem; left: 1.4rem; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 1.2rem; color: white; }
.figure-index { color: #7cd7e5; font: 760 0.61rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.hero-visual figcaption p { max-width: 330px; justify-self: end; margin: 0; color: #cfdaec; font: 500 0.9rem/1.6 var(--serif); text-align: right; }

.problem-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.problem-grid { display: grid; grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(180px, 0.75fr)); }
.problem-grid > * { min-height: 190px; margin: 0; padding: 2rem 1.8rem; }
.problem-grid > * + * { border-left: 1px solid var(--line); }
.problem-intro { color: var(--ink-soft); font: 500 clamp(1.15rem, 1.7vw, 1.55rem)/1.6 var(--serif); }
.problem-intro span { display: block; margin-bottom: 0.8rem; color: var(--teal); font: 800 0.66rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.problem-grid article { position: relative; }
.problem-number { color: var(--teal); font: 800 0.66rem var(--sans); }
.problem-grid h2 { margin: 1.6rem 0 0.45rem; font: 600 1.15rem var(--serif); }
.problem-grid article p { margin: 0; color: var(--muted); font-size: 0.83rem; line-height: 1.7; }

.responsibility-map { overflow: hidden; border: 1px solid #cbd4ce; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.map-lane { display: grid; grid-template-columns: 180px 1fr; min-height: 124px; }
.lane-label { display: grid; align-content: center; gap: 0.28rem; padding: 1.5rem; color: #d8e4df; background: #18352f; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.lane-label span { font-weight: 780; }
.lane-label small { color: #8fa79f; font-size: 0.65rem; letter-spacing: 0.05em; }
.lane-content { min-width: 0; padding: 1.35rem; border-bottom: 1px solid var(--line); }
.actor-row, .product-row, .infra-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.actor-card { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 0.05rem 0.75rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fafbf7; }
.actor-card > span { grid-row: 1 / span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--teal); font-size: 0.72rem; font-weight: 820; }
.actor-card strong { font-size: 0.9rem; }
.actor-card small, .product-card small, .infra-row small { color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
.target-card { border-style: dashed !important; background: #f6f4fb !important; }
.target-card > span:not(.status-dot) { color: #6654a2; background: #e8e4f7; }
.map-arrow { height: 42px; display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--teal); background: #edf2ee; border-bottom: 1px solid var(--line); font-size: 1rem; }
.map-arrow span { color: #83918c; font-size: 0.57rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.product-card { display: flex; align-items: center; gap: 0.85rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fafbf7; }
.product-card .status-dot { width: 10px; height: 10px; flex: 0 0 auto; border: 2px solid white; border-radius: 50%; background: #9ca9a5; box-shadow: 0 0 0 2px #cbd4d0; }
.product-card.current-card { border-color: #a6d6cc; background: var(--teal-soft); }
.product-card.current-card .status-dot { background: var(--teal); box-shadow: 0 0 0 2px #75bbae; }
.product-card strong, .infra-row strong { display: block; margin-bottom: 0.25rem; font-size: 0.86rem; }
.map-kernel .lane-content { padding: 0; }
.kernel-card { display: grid; grid-template-columns: minmax(280px, 0.75fr) 1.25fr; align-items: stretch; color: white; background: linear-gradient(115deg, #102d27, #17483f); }
.kernel-title { display: flex; align-items: center; gap: 1rem; padding: 1.45rem; border-right: 1px solid rgb(255 255 255 / 0.12); }
.kernel-title strong { display: block; margin-bottom: 0.28rem; }
.kernel-title small { color: #91ada5; font-size: 0.72rem; }
.brand-mark-light { width: 46px; height: 46px; color: #8fe0d1; }
.kernel-primitives { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; gap: 0.5rem; padding: 1.2rem; }
.kernel-primitives span { padding: 0.72rem 0.35rem; border: 1px solid rgb(151 226 212 / 0.24); border-radius: 10px; color: #bde8df; background: rgb(255 255 255 / 0.045); font-size: 0.72rem; font-weight: 720; text-align: center; }
.infra-row > div { padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #f5f7f3; }
.map-infrastructure .lane-content, .map-infrastructure .lane-label { border-bottom: 0; }
.architecture-boundary-note { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 1.4rem; margin-top: 1rem; padding: 1.25rem 1.45rem; border: 1px solid #d9c492; border-radius: 14px; background: #f5ead0; }
.architecture-boundary-note strong { color: #785515; font-size: 0.78rem; }
.architecture-boundary-note p { margin: 0; color: #675b3f; font-size: 0.82rem; line-height: 1.75; }

.roundtrip-section { color: white; background: var(--forest); }
.light-heading .eyebrow { color: #83d7c7; }
.light-heading h2 { color: white; }
.light-heading > p { color: #9fb5af; }
.roundtrip-flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.roundtrip-flow::before { content: ""; position: absolute; top: 20px; right: 8%; left: 8%; height: 1px; background: linear-gradient(90deg, #59a99a, #d3a957); }
.roundtrip-flow li { position: relative; display: grid; grid-template-rows: 42px auto; gap: 1.2rem; padding: 0 1.05rem; }
.roundtrip-flow li > span { position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #5d8d82; border-radius: 50%; color: #a9e7db; background: var(--forest); font-size: 0.67rem; font-weight: 800; }
.roundtrip-flow strong { color: white; font: 600 1.25rem var(--serif); }
.roundtrip-flow p { margin: 0.55rem 0 0; color: #a5b8b3; font-size: 0.8rem; line-height: 1.7; }
.roundtrip-flow code { color: #9de3d6; }

.mechanism-showcase { overflow: hidden; border: 1px solid #cbd4ce; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.mechanism-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); background: #edf0eb; }
.mechanism-tabs button { position: relative; min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.14rem 0.65rem; padding: 1.1rem; color: var(--muted); background: transparent; border: 0; border-right: 1px solid var(--line); cursor: pointer; text-align: left; }
.mechanism-tabs button:last-child { border-right: 0; }
.mechanism-tabs button > span { grid-row: 1 / span 2; color: #8a9893; font-size: 0.64rem; font-weight: 820; }
.mechanism-tabs button strong { color: var(--ink-soft); font-size: 0.82rem; }
.mechanism-tabs button small { overflow: hidden; font-size: 0.67rem; text-overflow: ellipsis; white-space: nowrap; }
.mechanism-tabs button[aria-selected="true"] { color: var(--teal); background: var(--surface); }
.mechanism-tabs button[aria-selected="true"]::after { content: ""; position: absolute; right: 12%; bottom: 0; left: 12%; height: 3px; border-radius: 999px 999px 0 0; background: var(--teal); }
.mechanism-tabs button[aria-selected="true"] strong { color: var(--teal); }
.mechanism-tabs button:focus-visible { z-index: 1; outline: 3px solid rgb(25 123 109 / 0.24); outline-offset: -3px; }
.mechanism-panel { display: grid; grid-template-columns: minmax(320px, 0.74fr) minmax(560px, 1.26fr); min-height: 620px; }
.mechanism-copy { padding: clamp(2rem, 4vw, 4rem); border-right: 1px solid var(--line); }
.mechanism-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; color: var(--muted); font-size: 0.69rem; }
.mechanism-copy h3 { margin: 1.45rem 0 1rem; font: 600 clamp(2rem, 3.1vw, 3.5rem)/1.08 var(--serif); letter-spacing: -0.04em; }
.mechanism-lead { margin: 0; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.85; }
.feature-list { display: grid; gap: 0; margin: 1.7rem 0; }
.feature-list > div { display: grid; grid-template-columns: 72px 1fr; gap: 0.8rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.feature-list > div:last-child { border-bottom: 1px solid var(--line); }
.feature-list dt { color: var(--teal); font-size: 0.71rem; font-weight: 800; }
.feature-list dd { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.65; }
.feature-list code { color: var(--teal); }
.text-link { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--teal); font-size: 0.79rem; font-weight: 800; text-decoration: none; }
.text-link span { transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(4px); }
.mechanism-visual { min-width: 0; min-height: 560px; background: #e9efeb; }

.document-demo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.9fr) auto minmax(0, 1fr); align-items: center; gap: 0.55rem; padding: clamp(1rem, 2.6vw, 2.5rem); background: radial-gradient(circle at 50% 50%, #fbfbf6, #dde8e2); }
.code-window { min-width: 0; overflow: hidden; border: 1px solid #bfcac4; border-radius: 13px; background: #102722; box-shadow: var(--shadow-soft); }
.window-bar { height: 34px; display: flex; align-items: center; gap: 5px; padding: 0 0.7rem; color: #81958f; background: #18372f; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.window-bar span { width: 7px; height: 7px; border-radius: 50%; background: #5c7971; }
.window-bar b { margin-left: auto; font-size: 0.57rem; font-weight: 650; }
.code-window pre { margin: 0; padding: 1rem; overflow: auto; color: #b4e2d9; font-size: clamp(0.56rem, 0.72vw, 0.72rem); line-height: 1.65; tab-size: 2; }
.xml-window { background: #101c2b; }
.xml-window .window-bar { background: #17273c; }
.xml-window pre { color: #c0d8f2; }
.demo-connector { display: grid; justify-items: center; gap: 0.3rem; color: #71958b; font-size: 1.2rem; }
.demo-connector span { color: #80908b; font-size: 0.54rem; letter-spacing: 0.06em; text-transform: uppercase; writing-mode: vertical-rl; }
.form-window { display: grid; gap: 0.75rem; padding: 1rem; border: 1px solid #bdcbc5; border-radius: 14px; background: #fffef9; box-shadow: var(--shadow-soft); }
.form-window > small { color: var(--teal); font-size: 0.58rem; font-weight: 820; letter-spacing: 0.08em; text-transform: uppercase; }
.form-window label { display: grid; gap: 0.3rem; color: var(--muted); font-size: 0.61rem; }
.form-window input { width: 100%; min-width: 0; padding: 0.55rem; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; font-size: 0.7rem; }
.step-chip { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem; border: 1px solid #d4ddd8; border-radius: 8px; color: var(--ink-soft); background: #f6f8f5; font-size: 0.66rem; }
.step-chip span { color: var(--teal); font-size: 0.56rem; font-weight: 800; }

.identity-demo { position: relative; display: grid; align-content: center; gap: 1rem; padding: clamp(1.5rem, 4vw, 4rem); overflow: hidden; background: radial-gradient(circle at 76% 20%, rgb(80 170 150 / 0.22), transparent 18rem), #e8efea; }
.identity-demo::before { content: ""; position: absolute; inset: 0; opacity: 0.55; background-image: linear-gradient(#cad6d0 1px, transparent 1px), linear-gradient(90deg, #cad6d0 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(130deg, black, transparent 80%); }
.identity-route, .identity-document, .identity-result { position: relative; z-index: 1; }
.identity-route { width: fit-content; display: grid; gap: 0.25rem; padding: 0.75rem 1rem; border: 1px solid #b9c9c2; border-radius: 12px; background: rgb(255 254 248 / 0.88); box-shadow: var(--shadow-soft); }
.identity-route small, .identity-result span { color: var(--teal); font-size: 0.59rem; font-weight: 820; letter-spacing: 0.08em; text-transform: uppercase; }
.identity-route code { color: var(--ink-soft); font-size: 0.72rem; }
.identity-document { width: min(500px, 88%); justify-self: end; display: grid; gap: 0.55rem; padding: 1.2rem; border: 1px solid #b9c8c1; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.doc-header { display: flex; align-items: center; gap: 0.8rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.doc-header span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--teal); background: var(--teal-soft); font-size: 0.7rem; font-weight: 820; }
.doc-line { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem; border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-size: 0.76rem; }
.doc-line > i { width: 8px; height: 8px; border: 2px solid #9badA6; border-radius: 50%; }
.doc-line.active { color: var(--ink); background: #dff1eb; border-color: #9ccfc3; box-shadow: 0 0 0 4px rgb(42 145 126 / 0.08); }
.doc-line.active > i { border-color: var(--teal); background: var(--teal); }
.doc-line code { color: var(--teal); font-size: 0.69rem; }
.doc-line b { margin-left: auto; color: var(--teal); font-size: 1rem; }
.identity-result { width: fit-content; display: grid; gap: 0.2rem; margin-top: -1.7rem; padding: 0.8rem 1rem; color: white; background: var(--forest); border-radius: 12px; box-shadow: var(--shadow-soft); }
.identity-result code { color: #ace4d9; font-size: 0.72rem; }
.identity-result small { color: #92a9a3; font-size: 0.62rem; }

.reference-demo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: center; align-items: center; gap: 1rem; padding: clamp(2rem, 4vw, 4rem); background: #e8eee9; }
.reference-node { min-width: 0; display: grid; gap: 0.5rem; padding: 1.3rem; border: 1px solid #b9c8c1; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.reference-node > span { color: var(--muted); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.reference-node strong { font: 600 1.1rem var(--serif); }
.reference-node code { padding: 0.55rem; overflow-wrap: anywhere; color: var(--teal); background: var(--teal-soft); border-radius: 7px; font-size: 0.67rem; }
.target-node { border-color: #87c8bb; }
.reference-line { display: grid; justify-items: center; gap: 0.3rem; color: var(--teal); }
.reference-line span, .backlink-line span { color: var(--muted); font-size: 0.57rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.reference-line i { font-size: 1.5rem; font-style: normal; }
.backlink-line { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.7rem; color: #7663af; background: #e5e2f5; border: 1px dashed #b9b0dc; border-radius: 10px; }
.backlink-line i { font-style: normal; }
.visual-boundary { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.68rem; line-height: 1.6; text-align: center; }

.projection-demo { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); grid-template-rows: auto 1fr; gap: 1rem; padding: clamp(1.5rem, 3vw, 3rem); background: radial-gradient(circle at 78% 30%, #fafffc, #dfe8e3); }
.projection-source { grid-row: 1 / 3; display: grid; align-content: center; gap: 0.45rem; padding: 1.2rem; color: white; background: var(--forest); border-radius: 18px; box-shadow: var(--shadow-soft); text-align: center; }
.projection-source::after { content: "→"; margin-top: 0.6rem; color: #86d8c9; font-size: 1.4rem; }
.projection-source span { color: #8eaaa2; font-size: 0.61rem; font-weight: 820; letter-spacing: 0.08em; text-transform: uppercase; }
.projection-source strong { font: 600 1.35rem var(--serif); }
.projection-source code { color: #9edfd3; font-size: 0.68rem; }
.projection-switch { justify-self: center; display: inline-flex; padding: 0.3rem; border: 1px solid #c3cec8; border-radius: 999px; background: rgb(255 255 255 / 0.8); }
.projection-switch button { min-width: 76px; padding: 0.48rem 0.8rem; color: var(--muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer; font-size: 0.7rem; font-weight: 760; }
.projection-switch button.active { color: white; background: var(--teal); box-shadow: 0 5px 15px rgb(25 123 109 / 0.2); }
.projection-stage { position: relative; min-height: 360px; overflow: hidden; border: 1px solid #c0cbc5; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.projection-view { position: absolute; inset: 0; padding: 1.5rem; }
.form-view { display: grid; align-content: center; gap: 1rem; }
.form-view label { display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.62rem; font-weight: 760; }
.form-view label span { padding: 0.72rem; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 0.77rem; }
.form-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.5rem; }
.form-steps i { height: 70px; border: 1px solid #cbd7d1; border-left: 4px solid var(--teal); border-radius: 8px; background: #f4f7f4; }
.graph-view { background: #f5f7f4; }
.graph-view svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph-view svg path { fill: none; stroke: #5b8278; stroke-width: 2; }
.graph-node { position: absolute; z-index: 1; width: 84px; padding: 0.65rem 0.45rem; border: 1px solid #8fc6ba; border-radius: 9px; color: #174c42; background: #d9eee8; font-size: 0.67rem; font-weight: 760; text-align: center; box-shadow: 0 6px 15px rgb(28 82 69 / 0.08); }
.graph-node.n1 { top: 18%; left: 6%; }
.graph-node.n2 { top: 18%; left: 37%; }
.graph-node.n3 { top: 18%; right: 7%; }
.graph-node.n4 { right: 4%; bottom: 17%; border-color: #d0b46f; color: #6d4f12; background: #f3e6c3; }
.search-view { display: grid; align-content: center; gap: 1rem; }
.search-query { display: flex; align-items: center; gap: 0.55rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: #f5f7f4; font-size: 0.7rem; }
.search-query span { color: var(--teal); font-weight: 820; }
.search-query code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result { display: flex; align-items: center; gap: 0.8rem; padding: 1rem; border: 1px solid #a8d3c8; border-radius: 12px; background: #e5f2ee; }
.search-result > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--teal); font-size: 0.63rem; font-weight: 800; }
.search-result strong, .search-result small { display: block; }
.search-result strong { margin-bottom: 0.2rem; font-size: 0.78rem; }
.search-result small { color: var(--muted); font-size: 0.61rem; }
.search-view p { margin: 0; color: var(--muted); font-size: 0.65rem; line-height: 1.6; }

.governance-demo { display: grid; align-content: center; gap: 1.3rem; padding: clamp(1.5rem, 4vw, 4rem); background: #e8eee9; }
.request-card, .commit-card { width: fit-content; min-width: 250px; display: grid; gap: 0.25rem; padding: 0.9rem 1.1rem; border: 1px solid #bccac4; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-soft); }
.request-card span, .commit-card span { color: var(--teal); font-size: 0.6rem; font-weight: 820; letter-spacing: 0.07em; text-transform: uppercase; }
.request-card code { color: var(--ink-soft); font-size: 0.71rem; }
.governance-gates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem; }
.governance-gates > div { display: grid; gap: 0.28rem; padding: 1rem 0.7rem; border: 1px solid #becbc5; border-radius: 12px; background: #f8faf6; text-align: center; }
.governance-gates span { width: 28px; height: 28px; display: grid; place-items: center; justify-self: center; margin-bottom: 0.35rem; border-radius: 50%; color: white; background: var(--teal); font-size: 0.62rem; font-weight: 820; }
.governance-gates strong { font-size: 0.75rem; }
.governance-gates small { color: var(--muted); font-size: 0.58rem; }
.commit-card { justify-self: end; color: white; background: var(--forest); border-color: #315a51; }
.commit-card span { color: #92dacd; }
.commit-card strong { font: 600 1rem var(--serif); }
.commit-card small { color: #94aaa4; font-size: 0.62rem; }

.projection-layer-section { color: white; background: #0d2420; }
.two-layer-diagram { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 1rem; }
.canonical-layer, .derived-layer { min-width: 0; padding: clamp(1.4rem, 3vw, 2.5rem); border: 1px solid rgb(255 255 255 / 0.16); border-radius: 22px; background: rgb(255 255 255 / 0.045); }
.canonical-layer { background: linear-gradient(145deg, rgb(53 143 126 / 0.2), rgb(255 255 255 / 0.035)); border-color: rgb(111 213 194 / 0.25); }
.layer-heading { display: grid; grid-template-columns: auto 1fr; gap: 0.16rem 0.9rem; align-items: baseline; }
.layer-heading > span { grid-row: 1 / span 2; color: #75cdbd; font-size: 0.6rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.layer-heading strong { font: 600 clamp(1.4rem, 2vw, 2rem) var(--serif); }
.layer-heading small { color: #7f9790; font-size: 0.63rem; }
.xml-fragment { margin-top: 1.5rem; padding: 1.2rem; overflow-x: auto; color: #d5e2de; background: #071915; border: 1px solid rgb(255 255 255 / 0.09); border-radius: 12px; font-size: 0.72rem; line-height: 1.8; }
.xml-fragment i { color: #80d4c4; font-style: normal; }
.canonical-layer ul, .derived-layer ul { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.canonical-layer li, .derived-layer li { padding: 0.4rem 0.55rem; color: #9fb2ac; background: rgb(255 255 255 / 0.055); border: 1px solid rgb(255 255 255 / 0.08); border-radius: 7px; font-size: 0.62rem; }
.layer-rebuild { display: grid; align-content: center; justify-items: center; gap: 0.5rem; color: #83d4c5; }
.layer-rebuild span, .layer-rebuild small { color: #789088; font-size: 0.55rem; font-weight: 760; letter-spacing: 0.06em; text-transform: uppercase; }
.layer-rebuild b { font-size: 1.6rem; font-weight: 400; }
.projection-rows { display: grid; gap: 0.55rem; margin-top: 1.5rem; }
.projection-rows > div { display: grid; grid-template-columns: 80px 1fr; gap: 0.7rem; padding: 0.7rem 0.8rem; border: 1px solid rgb(255 255 255 / 0.11); border-radius: 9px; background: rgb(255 255 255 / 0.04); }
.projection-rows span { color: #a69de6; font-size: 0.58rem; font-weight: 820; }
.projection-rows strong { color: #d6dfdd; font: 600 0.72rem var(--sans); }
.authority-rail { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.2rem; padding: 0.8rem 1rem; border: 1px solid #8a6f3c; border-radius: 11px; color: #dfbb72; background: rgb(144 103 39 / 0.16); }
.authority-rail span { font-size: 0.66rem; font-weight: 820; text-transform: uppercase; }
.authority-rail p { margin: 0; color: #b9a886; font-size: 0.68rem; }
.metadata-and-boundary { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 1rem; margin-top: 1rem; }
.metadata-and-boundary details, .projection-boundaries { border: 1px solid rgb(255 255 255 / 0.13); border-radius: 16px; background: rgb(255 255 255 / 0.035); }
.metadata-and-boundary summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem; cursor: pointer; list-style: none; }
.metadata-and-boundary summary::-webkit-details-marker { display: none; }
.metadata-and-boundary summary span { display: grid; gap: 0.25rem; }
.metadata-and-boundary summary strong { font-size: 0.85rem; }
.metadata-and-boundary summary small { color: #839891; font-size: 0.65rem; }
.metadata-and-boundary summary i { color: #8fd8cb; font-style: normal; transition: transform 180ms ease; }
.metadata-and-boundary details[open] summary i { transform: rotate(45deg); }
.metadata-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; padding: 0 1.2rem 1.2rem; }
.metadata-grid article { padding: 0.8rem; border: 1px solid rgb(255 255 255 / 0.1); border-radius: 9px; background: rgb(255 255 255 / 0.035); }
.metadata-grid code { color: #91dbce; font-size: 0.67rem; }
.metadata-grid p { margin: 0.35rem 0 0; color: #92a7a1; font-size: 0.66rem; line-height: 1.55; }
.metadata-note { margin: 0; padding: 1rem 1.2rem; color: #a7b8b3; background: rgb(0 0 0 / 0.12); border-radius: 0 0 16px 16px; font-size: 0.67rem; line-height: 1.65; }
.metadata-note strong { color: #dac085; }
.projection-boundaries { padding: 1.2rem; }
.projection-boundaries > strong { color: #e4efeC; font-size: 0.82rem; }
.projection-boundaries ul { display: grid; gap: 0.55rem; margin: 1rem 0; padding-left: 1.2rem; color: #91a59f; font-size: 0.67rem; line-height: 1.6; }
.projection-boundaries a { color: #8dd9cb; font-size: 0.68rem; font-weight: 760; text-decoration: none; }

.pattern-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.pattern-card { min-height: 440px; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: transform 180ms ease, box-shadow 180ms ease; }
.pattern-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.pattern-featured { color: white; background: var(--forest); border-color: var(--forest); }
.pattern-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pattern-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #b7c7c0; border-radius: 13px; color: var(--teal); background: var(--surface-cool); font: 650 0.9rem var(--serif); }
.pattern-featured .pattern-icon { color: #9fe5d8; background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.16); }
.pattern-featured .status-current { color: #9be4d7; background: rgb(111 207 189 / 0.11); border-color: rgb(111 207 189 / 0.2); }
.pattern-label { margin: 2.1rem 0 0.65rem; color: var(--teal); font-size: 0.63rem; font-weight: 820; letter-spacing: 0.08em; text-transform: uppercase; }
.pattern-featured .pattern-label { color: #8bd4c6; }
.pattern-card h3 { margin: 0; font: 600 1.55rem/1.25 var(--serif); }
.pattern-card > p:not(.pattern-label) { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.75; }
.pattern-featured > p:not(.pattern-label) { color: #9db2ac; }
.pattern-card ul { display: grid; gap: 0.45rem; margin: 1.1rem 0 1.5rem; padding-left: 1.1rem; color: var(--ink-soft); font-size: 0.72rem; line-height: 1.5; }
.pattern-featured ul { color: #b5c7c2; }
.pattern-card a { margin-top: auto; color: var(--teal); font-size: 0.74rem; font-weight: 820; text-decoration: none; }
.pattern-featured a { color: #96dfd1; }

.status-section { color: white; background: #172b3b; }
.status-grid { display: grid; grid-template-columns: minmax(280px, 0.68fr) minmax(600px, 1.32fr); gap: clamp(2rem, 7vw, 8rem); align-items: start; }
.status-intro .eyebrow { color: #8cb9dd; }
.status-intro h2 { margin: 0; font: 500 clamp(2.3rem, 3.6vw, 4.2rem)/1.05 var(--serif); letter-spacing: -0.045em; }
.status-intro > p:last-child { margin: 1.2rem 0 0; color: #9cafbd; font-size: 0.84rem; line-height: 1.8; }
.status-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.status-columns article { padding: 1.5rem; border: 1px solid rgb(255 255 255 / 0.13); border-radius: 19px; background: rgb(255 255 255 / 0.045); }
.status-columns article > div { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem; padding-bottom: 1.1rem; border-bottom: 1px solid rgb(255 255 255 / 0.11); }
.status-columns h3 { margin: 0; font: 600 1rem var(--serif); }
.status-columns ul { display: grid; gap: 0.8rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.status-columns li { position: relative; padding-left: 1.1rem; color: #acbdc8; font-size: 0.72rem; line-height: 1.55; }
.status-columns li::before { content: ""; position: absolute; top: 0.48rem; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #7dd2c2; }
.target-column li::before { background: #b4a5ea; }
.target-column .status-target { color: #c6b9f4; background: rgb(146 126 213 / 0.13); border-color: rgb(190 173 245 / 0.22); }

.example-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.example-card { position: relative; min-height: 320px; display: flex; flex-direction: column; padding: 1.6rem; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); text-decoration: none; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.example-card::after { content: ""; position: absolute; right: -70px; bottom: -80px; width: 190px; height: 190px; opacity: 0.6; border: 1px solid #b7d9d0; border-radius: 50%; box-shadow: 0 0 0 28px rgb(122 196 180 / 0.08), 0 0 0 56px rgb(122 196 180 / 0.05); }
.example-card:hover { transform: translateY(-4px); border-color: #99cfc3; box-shadow: var(--shadow-soft); }
.example-time { width: fit-content; padding: 0.35rem 0.55rem; color: var(--teal); background: var(--teal-soft); border-radius: 999px; font-size: 0.62rem; font-weight: 800; }
.example-card i { margin-top: 2.2rem; color: #a1afaA; font-size: 0.68rem; font-style: normal; font-weight: 820; }
.example-card h3 { max-width: 340px; margin: 0.65rem 0 0; font: 600 1.45rem/1.3 var(--serif); }
.example-card p { max-width: 420px; margin: 0.8rem 0 1.5rem; color: var(--muted); font-size: 0.76rem; line-height: 1.7; }
.example-card strong { position: relative; z-index: 1; margin-top: auto; color: var(--teal); font-size: 0.74rem; }

.workspace-launch { position: relative; overflow: hidden; padding-block: clamp(4rem, 7vw, 7rem); color: white; background: #0b211c; }
.workspace-launch::before { content: "X"; position: absolute; right: -4vw; bottom: -18vw; color: rgb(151 232 216 / 0.035); font: 700 42vw/1 var(--serif); }
.workspace-launch-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(2rem, 8vw, 9rem); }
.workspace-launch .eyebrow { color: #83d7c7; }
.workspace-launch h2 { max-width: 780px; margin: 0; font: 500 clamp(2.3rem, 4vw, 4.7rem)/1.05 var(--serif); letter-spacing: -0.045em; }
.workspace-launch p:not(.eyebrow) { max-width: 760px; margin: 1.2rem 0 0; color: #9db2ac; font-size: 0.85rem; line-height: 1.8; }
.workspace-entry-footer { min-width: min(100%, 430px); padding: 1.2rem 1.25rem; color: var(--forest-deep); background: #a4e8da; border: 1px solid #cdf6ee; border-radius: 18px; font-size: 1rem; font-weight: 850; box-shadow: 0 20px 45px rgb(0 0 0 / 0.3); transition: transform 180ms ease, background 180ms ease; }
.workspace-entry-footer:hover { transform: translateY(-3px); background: #c8f5ec; }
.workspace-entry-footer .workspace-entry-icon { width: 46px; height: 46px; }
.workspace-entry-footer .workspace-entry-arrow { font-size: 1.5rem; }

.site-footer { color: #93a7a1; background: #061511; border-top: 1px solid var(--line-dark); }
.footer-grid { min-height: 150px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.footer-grid > div { display: flex; align-items: center; gap: 0.8rem; }
.footer-grid p { margin: 0; }
.footer-grid strong, .footer-grid small { display: block; }
.footer-grid strong { color: #dce8e4; font-size: 0.82rem; }
.footer-grid small { margin-top: 0.18rem; color: #6f8580; font-size: 0.62rem; }
.footer-grid nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.45rem; }
.footer-grid nav a { padding: 0.45rem; color: #8fa29d; font-size: 0.68rem; text-decoration: none; }
.footer-grid nav a:hover { color: white; }
.footer-note { max-width: 260px; color: #637872; font-size: 0.64rem; line-height: 1.55; text-align: right; }

[data-reveal] { opacity: 1; transform: none; }
.js-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.js-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .site-nav { order: 3; grid-column: 1 / -1; justify-content: flex-start; margin-top: -0.8rem; padding-bottom: 0.5rem; overflow-x: auto; }
  .site-header { position: relative; }
  .hero-grid { min-height: auto; grid-template-columns: minmax(0, 1fr) minmax(370px, 0.72fr); }
  .section { scroll-margin-top: 1rem; }
  .mechanism-panel { grid-template-columns: 1fr; }
  .mechanism-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .mechanism-visual { min-height: 500px; }
  .pattern-grid { grid-template-columns: repeat(2, 1fr); }
  .pattern-card { min-height: 390px; }
  .status-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 760px); max-width: none; justify-self: stretch; }
  .hero-visual img { aspect-ratio: 1.45; object-position: 65% center; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .problem-grid > * + * { border-left: 0; }
  .problem-grid > * { border-bottom: 1px solid var(--line); }
  .problem-grid > *:nth-child(even) { border-left: 1px solid var(--line); }
  .split-heading { grid-template-columns: 1fr; gap: 1.4rem; }
  .map-lane { grid-template-columns: 140px 1fr; }
  .actor-row, .product-row, .infra-row { grid-template-columns: 1fr; }
  .kernel-card { grid-template-columns: 1fr; }
  .kernel-title { border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 0.12); }
  .roundtrip-flow { grid-template-columns: 1fr; gap: 1rem; }
  .roundtrip-flow::before { top: 3%; bottom: 3%; left: 20px; width: 1px; height: auto; }
  .roundtrip-flow li { grid-template-columns: 42px 1fr; grid-template-rows: auto; }
  .mechanism-tabs { overflow-x: auto; grid-template-columns: repeat(5, minmax(155px, 1fr)); }
  .two-layer-diagram { grid-template-columns: 1fr; }
  .layer-rebuild { grid-template-columns: auto auto auto; }
  .layer-rebuild b { transform: rotate(90deg); }
  .metadata-and-boundary { grid-template-columns: 1fr; }
  .example-paths { grid-template-columns: 1fr; }
  .example-card { min-height: 270px; }
  .workspace-launch-grid { grid-template-columns: 1fr; }
  .workspace-entry-footer { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; padding-block: 2rem; }
  .footer-grid nav { justify-content: flex-start; }
  .footer-note { text-align: left; }
}

@media (max-width: 720px) {
  .page-shell { width: min(92vw, 620px); }
  .section { padding-block: 4.7rem; }
  .header-inner { width: 92vw; grid-template-columns: auto minmax(0, 1fr); gap: 0.65rem; padding-block: 0.8rem; }
  .brand-copy small { display: none; }
  .workspace-entry-header { grid-row: 1; grid-column: 2; justify-self: end; }
  .brand { grid-row: 1; grid-column: 1; width: fit-content; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; width: 100%; min-width: 0; justify-self: stretch; margin: 0; padding-bottom: 0; }
  .site-nav a { flex: 0 0 auto; white-space: nowrap; }
  .hero-grid { padding-block: 4rem; }
  .hero-copy h1 { font-size: clamp(2.5rem, 10.5vw, 3.4rem); white-space: normal; }
  .hero-lead { font-size: 0.98rem; }
  .hero-action-groups { display: grid; }
  .workspace-entry-hero { min-width: 0; width: 100%; }
  .learn-actions { width: 100%; grid-template-columns: 1fr 1fr; }
  .proof-list { grid-template-columns: 1fr; gap: 0.9rem; }
  .proof-list li, .proof-list li + li { padding: 0; border: 0; }
  .hero-visual img { aspect-ratio: 1; }
  .hero-visual figcaption { grid-template-columns: 1fr; }
  .hero-visual figcaption p { justify-self: start; text-align: left; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-grid > *:nth-child(even) { border-left: 0; }
  .problem-grid > * { min-height: auto; padding: 1.5rem; }
  .map-lane { grid-template-columns: 1fr; }
  .lane-label { padding: 0.8rem 1rem; }
  .lane-label small { display: none; }
  .kernel-primitives { grid-template-columns: repeat(2, 1fr); }
  .architecture-boundary-note { grid-template-columns: 1fr; gap: 0.5rem; }
  .mechanism-tabs { grid-template-columns: repeat(5, 140px); }
  .mechanism-panel { min-height: 0; }
  .mechanism-copy { padding: 1.5rem; }
  .mechanism-copy h3 { font-size: 2.2rem; }
  .mechanism-visual { min-height: 520px; }
  .document-demo { grid-template-columns: 1fr; align-content: center; }
  .demo-connector { grid-template-columns: auto auto; justify-content: center; }
  .demo-connector span { writing-mode: horizontal-tb; }
  .demo-connector { transform: rotate(90deg); margin-block: -0.3rem; }
  .reference-demo { grid-template-columns: 1fr; }
  .reference-line { grid-template-columns: auto auto; justify-content: center; }
  .reference-line i { transform: rotate(90deg); }
  .projection-demo { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .projection-source { grid-row: auto; }
  .projection-source::after { display: none; }
  .projection-stage { min-height: 310px; }
  .governance-gates { grid-template-columns: repeat(2, 1fr); }
  .two-layer-diagram { gap: 0.75rem; }
  .metadata-grid { grid-template-columns: 1fr; }
  .pattern-grid { grid-template-columns: 1fr; }
  .pattern-card { min-height: 360px; }
  .status-columns { grid-template-columns: 1fr; }
  .workspace-entry-footer { min-width: 0; width: 100%; }
}

@media (max-width: 480px) {
  .workspace-entry-header { padding: 0.54rem 0.65rem; font-size: 0.7rem; }
  .workspace-entry-header small { display: none; }
  .workspace-entry-header > span:first-child { width: 28px; height: 28px; }
  .site-nav a { padding-inline: 0.55rem; font-size: 0.76rem; }
  .hero-copy h1 { font-size: clamp(2.35rem, 10.5vw, 2.8rem); }
  .status-line > span:last-child { width: 100%; }
  .workspace-entry-hero { padding: 0.85rem; font-size: 0.88rem; }
  .learn-actions { grid-template-columns: 1fr; }
  .learn-actions > span { grid-column: auto; }
  .hero-visual-overlay { display: none; }
  .hero-visual figcaption { right: 1rem; bottom: 1rem; left: 1rem; }
  .section-heading h2 { font-size: 2.35rem; }
  .kernel-primitives { grid-template-columns: 1fr; }
  .feature-list > div { grid-template-columns: 1fr; gap: 0.3rem; }
  .identity-document { width: 100%; }
  .identity-result { max-width: 100%; }
  .identity-result code { overflow-wrap: anywhere; }
  .projection-switch { width: 100%; }
  .projection-switch button { min-width: 0; flex: 1; }
  .request-card, .commit-card { min-width: 0; width: 100%; }
  .authority-rail { grid-template-columns: 1fr; gap: 0.35rem; }
  .workspace-entry-footer { font-size: 0.88rem; }
}

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