:root {
  --ink: #18211f;
  --ink-soft: #4f5b58;
  --muted: #6b7673;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #edf1ee;
  --accent: #1f6b62;
  --accent-strong: #15534d;
  --accent-soft: #dcebe7;
  --line: #d4dcda;
  --line-strong: #aebbb7;
  --danger: #a2392d;
  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  color-scheme: light;
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); line-break: strict; margin: 0; overflow-wrap: normal; word-break: normal; }
a { color: inherit; }
button, input { color: inherit; font: inherit; }
button { border-radius: 0; }
h1, h2, h3, h4, p { margin-top: 0; }

.skip-link { background: var(--ink); color: var(--surface); left: 1rem; padding: 0.7rem 1rem; position: fixed; top: 0; transform: translateY(-140%); z-index: 100; }
.skip-link:focus { top: 1rem; transform: translateY(0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.site-header { background: rgba(245, 247, 244, 0.96); border-bottom: 1px solid var(--line); }
.header-inner { align-items: center; display: grid; gap: 1.5rem; grid-template-columns: auto 1fr auto; margin: 0 auto; max-width: var(--max); min-height: 72px; padding: 0 var(--gutter); }
.wordmark { align-items: center; display: inline-flex; font-size: 0.84rem; font-weight: 760; gap: 0.65rem; letter-spacing: 0.03em; text-decoration: none; }
.wordmark-mark { align-items: center; border: 1px solid var(--ink); display: inline-flex; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.69rem; height: 1.85rem; justify-content: center; letter-spacing: -0.04em; width: 1.85rem; }
.header-role { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.64rem; letter-spacing: 0.08em; margin: 0; text-transform: uppercase; }
nav { align-items: center; display: flex; gap: 1.45rem; }
nav a { color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.64rem; letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; }
nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.35rem; }

.hero { display: grid; gap: clamp(3rem, 8vw, 7rem); grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr); margin: 0 auto; max-width: var(--max); padding: clamp(3.5rem, 5vw, 4.5rem) var(--gutter) clamp(3.5rem, 5vw, 4.5rem); }
.section-label, .project-domain { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.7rem, 4.6vw, 4.2rem); font-weight: 650; letter-spacing: -0.05em; line-height: 1.1; margin: 1.3rem 0 1.7rem; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-statement { color: var(--ink-soft); font-size: clamp(1.03rem, 1.8vw, 1.25rem); line-height: 1.9; margin-bottom: 0; max-width: 48rem; }
.hero-context { align-self: end; border-top: 1px solid var(--line-strong); padding-top: 1rem; }
.hero-context > p { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.64rem; letter-spacing: 0.08em; margin-bottom: 0.45rem; text-transform: uppercase; }
.hero-context ul { list-style: none; margin: 0; padding: 0; }
.hero-context li { border-bottom: 1px solid var(--line); font-size: 0.75rem; font-weight: 650; padding: 0.7rem 0; }
.hero-context li span { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.61rem; margin-right: 0.65rem; }
.hero-context a, .text-link { color: var(--accent-strong); display: inline-flex; font-size: 0.74rem; font-weight: 700; gap: 0.7rem; margin-top: 1rem; text-underline-offset: 0.25rem; }

.section { border-top: 1px solid var(--line); padding: clamp(4.5rem, 8vw, 7rem) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.section-heading { align-items: end; display: grid; gap: clamp(2rem, 7vw, 6rem); grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr); margin-bottom: clamp(2.75rem, 6vw, 4.75rem); }
.section-heading h2 { font-size: clamp(2.15rem, 4.3vw, 3.8rem); font-weight: 630; letter-spacing: -0.045em; line-height: 1.18; margin: 0.9rem 0 0; }
.section-heading > p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.9; margin-bottom: 0; }
.compact-heading { align-items: start; }
.compact-heading h2 { font-size: clamp(2rem, 3.7vw, 3.25rem); }

.selected-work { background: var(--surface-soft); padding-top: clamp(3.25rem, 4.5vw, 4rem); }
.selected-work > .section-heading { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.case-study, .work-card { background: var(--surface); border: 1px solid var(--line-strong); min-width: 0; }
.case-header, .work-card header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 0.85rem 1.15rem; }
.case-header p, .work-card header p, .work-card header span { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.61rem; letter-spacing: 0.07em; margin: 0; text-transform: uppercase; }
.noc-overview { display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr); }
.noc-introduction { border-right: 1px solid var(--line); padding: clamp(2rem, 4.5vw, 3.75rem); }
.noc-introduction h3 { font-size: clamp(3.7rem, 6vw, 5.4rem); font-weight: 610; letter-spacing: -0.065em; line-height: 0.98; margin: 1rem 0 1.6rem; white-space: nowrap; }
.project-lede { color: var(--ink-soft); font-size: 1rem; line-height: 1.85; margin-bottom: 2rem; }
.project-status { align-items: center; color: var(--accent-strong); display: flex; font-size: 0.76rem; font-weight: 700; margin: 0; }
.project-status span, .status-dot { background: var(--accent); border-radius: 50%; display: inline-block; flex: 0 0 auto; height: 0.48rem; margin-right: 0.55rem; width: 0.48rem; }
.control-path { align-content: center; padding: clamp(2rem, 4vw, 3.5rem); }
.control-path > p { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.63rem; letter-spacing: 0.08em; margin-bottom: 1.2rem; text-transform: uppercase; }
.control-path ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.control-path li { border-left: 1px solid var(--line); min-width: 0; padding: 0.75rem; }
.control-path li:last-child { border-right: 1px solid var(--line); }
.control-path span, .control-path strong, .control-path small { display: block; }
.control-path span { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.58rem; }
.control-path strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.69rem; margin: 1rem 0 0.45rem; overflow-wrap: anywhere; }
.control-path small { color: var(--muted); font-size: 0.65rem; line-height: 1.55; }
.noc-evidence-details { border-top: 1px solid var(--line); }
.noc-evidence-details > summary { display: none; }
.noc-evidence { display: grid; grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr); }
.evidence-intro { background: #fafbf9; border-right: 1px solid var(--line); padding: clamp(1.75rem, 3.5vw, 3rem); }
.evidence-intro h4 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 620; line-height: 1.55; margin: 1rem 0; }
.evidence-intro > p:last-child { color: var(--muted); font-size: 0.77rem; line-height: 1.7; margin: 0; }
.evidence-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.evidence-list div { border-bottom: 1px solid var(--line); min-width: 0; padding: 1.25rem 1.4rem; }
.evidence-list div:nth-last-child(-n + 2) { border-bottom: 0; }
.evidence-list div:nth-child(odd) { border-right: 1px solid var(--line); }
.evidence-list dt, .work-card dt { color: var(--accent-strong); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.evidence-list dd, .work-card dd { color: var(--ink-soft); font-size: 0.79rem; line-height: 1.68; margin: 0.45rem 0 0; }
.evidence-list .limit-item { background: var(--accent-soft); }

.secondary-work { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.25rem; }
.work-card { padding-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.work-card > h3, .work-card > p, .work-card > dl, .work-card > a { margin-left: clamp(1.5rem, 3vw, 2.5rem); margin-right: clamp(1.5rem, 3vw, 2.5rem); }
.work-card > h3 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 620; letter-spacing: -0.045em; margin-bottom: 1rem; margin-top: clamp(1.7rem, 3vw, 2.5rem); }
.work-card > p { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.8; }
.work-card dl { border-top: 1px solid var(--line); margin-bottom: 0; margin-top: 1.5rem; }
.work-card dl div { border-bottom: 1px solid var(--line); display: grid; gap: 1rem; grid-template-columns: 5.5rem 1fr; padding: 0.85rem 0; }
.work-card dd { margin-top: 0; }

.capabilities { background: var(--paper); }
.capability-grid { border-left: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.capability-grid li { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: grid; gap: 1rem; grid-template-columns: 1.7rem 1fr; min-width: 0; padding: clamp(1.4rem, 3vw, 2.2rem); }
.capability-grid span, .principle-grid > li > span, .supporting-grid > article > span { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.62rem; }
.capability-grid h3 { font-size: 0.95rem; line-height: 1.4; margin-bottom: 0.7rem; }
.capability-grid p { color: var(--muted); font-size: 0.8rem; line-height: 1.68; margin: 0; }

.engineering-evidence { background: var(--surface-soft); }
.evidence-source-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 1rem; }
.evidence-source-heading p { color: var(--muted); font-size: 0.67rem; margin: 0; }
.evidence-source-heading > div > p { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.07em; text-transform: uppercase; }
.evidence-source-heading h3 { font-size: 1rem; margin: 0.35rem 0 0; }
.runtime-panel { background: var(--surface); border: 1px solid var(--line-strong); display: grid; grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr); }
.runtime-status { align-items: center; border-right: 1px solid var(--line); display: flex; gap: 0.5rem; padding: 1.5rem; }
.runtime-status strong, .runtime-status small { display: block; }
.runtime-status strong { font-size: 0.78rem; }
.runtime-status small { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.61rem; margin-top: 0.3rem; }
.runtime-counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.runtime-counters div { border-right: 1px solid var(--line); min-width: 0; padding: 1.25rem; }
.runtime-counters div:last-child { border-right: 0; }
.runtime-counters dt { color: var(--muted); font-size: 0.62rem; line-height: 1.45; }
.runtime-counters dd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.35rem; margin: 0.55rem 0 0; }
.implementation-evidence { border-left: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.25rem; }
.implementation-evidence article { background: var(--surface); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; padding: clamp(1.35rem, 2.5vw, 2rem); }
.implementation-evidence article > p:first-child { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.implementation-evidence h3 { font-size: 1rem; line-height: 1.45; margin: 1.2rem 0 0.7rem; }
.implementation-evidence article > p:not(:first-child) { color: var(--muted); font-size: 0.77rem; line-height: 1.72; }
.implementation-evidence code { color: var(--accent-strong); font-size: 0.61rem; overflow-wrap: anywhere; }

.principles { background: var(--paper); }
.principle-grid { display: grid; gap: 1px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.principle-grid li { background: var(--accent-soft); min-width: 0; padding: clamp(1.5rem, 3vw, 2.5rem); }
.principle-grid h3 { font-size: 1.1rem; margin: 1.5rem 0 0.7rem; }
.principle-grid p { color: var(--ink-soft); font-size: 0.8rem; line-height: 1.75; margin: 0; }

.supporting-work { background: var(--surface); }
.supporting-grid { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.supporting-grid article { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; padding: 1.5rem; }
.supporting-grid article:first-child { border-left: 1px solid var(--line); }
.supporting-grid h3 { font-size: 0.92rem; line-height: 1.4; margin: 1.4rem 0 0.65rem; }
.supporting-grid p { color: var(--muted); font-size: 0.76rem; line-height: 1.72; margin: 0; }

.office-hours { background: var(--paper); display: grid; gap: clamp(2.5rem, 7vw, 6rem); grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr); }
.office-hours-intro h2 { font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 620; letter-spacing: -0.055em; margin: 1rem 0 0.4rem; }
.demo-subtitle { font-size: 0.95rem; font-weight: 650; margin-bottom: 1.8rem; }
.office-hours-intro > p:not(.section-label, .demo-subtitle) { color: var(--ink-soft); font-size: 0.83rem; line-height: 1.85; }
.demo-boundary { border-left: 2px solid var(--accent); margin-top: 1.7rem; padding-left: 1rem; }
.demo-boundary p:first-child { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.61rem; letter-spacing: 0.07em; text-transform: uppercase; }
.demo-boundary p:last-child { color: var(--muted); font-size: 0.72rem; line-height: 1.7; margin: 0; }
.booking-card { background: var(--surface); border: 1px solid var(--line-strong); padding: clamp(1.4rem, 3.5vw, 2.5rem); }
.booking-card-heading { align-items: end; display: flex; justify-content: space-between; }
.booking-card-heading span { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; }
.booking-card-heading h3 { font-size: 1.2rem; margin: 0.35rem 0 0; }
.booking-card-heading p { color: var(--muted); font-size: 0.67rem; margin: 0; }
.slot-list { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.4rem 0 2rem; min-height: 100px; }
.slot-button { background: var(--surface); border: 1px solid var(--line); cursor: pointer; min-width: 0; padding: 0.85rem; text-align: left; }
.slot-button strong, .slot-button span { display: block; }
.slot-button strong { font-size: 0.76rem; }
.slot-button span { color: var(--muted); font-size: 0.67rem; margin-top: 0.25rem; }
.slot-button:hover { border-color: var(--accent); }
.slot-button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.slot-button:disabled { cursor: not-allowed; opacity: 0.48; text-decoration: line-through; }
.loading-message, .empty-message { color: var(--muted); font-size: 0.76rem; grid-column: 1 / -1; line-height: 1.6; }
form { border-top: 1px solid var(--line); padding-top: 1.8rem; }
.form-heading { margin-bottom: 1.2rem; }
.field-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; }
input:not([type="checkbox"]) { background: var(--surface); border: 1px solid var(--line-strong); display: block; min-height: 44px; margin-top: 0.45rem; padding: 0.55rem 0.65rem; width: 100%; }
.consent-row { align-items: start; display: flex; font-size: 0.66rem; font-weight: 400; gap: 0.7rem; letter-spacing: 0; line-height: 1.65; margin: 1.35rem 0; }
.consent-row input { accent-color: var(--accent); flex: 0 0 auto; height: 1rem; margin-top: 0.2rem; width: 1rem; }
.field-error { color: var(--danger); display: block; font-size: 0.62rem; font-weight: 600; min-height: 1em; padding-top: 0.3rem; }
.form-error { background: #f8e8e5; border-left: 2px solid var(--danger); font-size: 0.72rem; line-height: 1.55; margin: 1rem 0; padding: 0.8rem; }
.button { align-items: center; border: 1px solid var(--ink); cursor: pointer; display: inline-flex; font-size: 0.72rem; font-weight: 700; gap: 1rem; justify-content: space-between; min-height: 46px; padding: 0.75rem 1rem; text-decoration: none; }
.button-primary { background: var(--ink); color: var(--surface); }
.button-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button-quiet { background: var(--surface); }
.button:disabled { cursor: wait; opacity: 0.55; }
.submit-button { margin-top: 0.25rem; width: 100%; }
.success-state { padding: clamp(2rem, 6vw, 4rem) clamp(0rem, 3vw, 2rem); text-align: center; }
.success-mark { align-items: center; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 50%; color: var(--accent-strong); display: inline-flex; font-size: 1.3rem; height: 3.25rem; justify-content: center; margin-bottom: 1.6rem; width: 3.25rem; }
.success-state h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 620; line-height: 1.4; margin: 1rem auto; max-width: 35rem; }
.success-state > p:not(.section-label) { color: var(--ink-soft); line-height: 1.7; }
.success-note { font-size: 0.72rem; margin: 1.5rem auto; max-width: 31rem; }
.success-state code { background: var(--surface-soft); display: block; font-size: 0.68rem; margin: 0.8rem auto 1.7rem; overflow-wrap: anywhere; padding: 0.75rem; }

footer { align-items: center; border-top: 1px solid var(--line); display: flex; font-size: 0.64rem; justify-content: space-between; margin: 0 auto; max-width: var(--max); padding: 2rem var(--gutter); }
footer p { color: var(--muted); margin: 0; }
[hidden] { display: none !important; }

@media (max-width: 980px) {
  .header-inner { gap: 1rem; grid-template-columns: auto 1fr; }
  .header-role { display: none; }
  .header-inner nav { justify-self: end; }
  .hero { gap: 3rem; grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr); }
  .control-path ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .control-path li { border-bottom: 1px solid var(--line); }
  .control-path li:nth-child(3) { border-right: 1px solid var(--line); }
  .control-path li:nth-child(n + 4) { border-bottom: 0; }
  .capability-grid, .implementation-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .runtime-panel { grid-template-columns: 1fr; }
  .runtime-status { border-bottom: 1px solid var(--line); border-right: 0; }
  .supporting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supporting-grid article:nth-child(3) { border-left: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .header-inner { align-items: start; grid-template-columns: 1fr; padding-bottom: 0.8rem; padding-top: 0.8rem; }
  .header-inner nav { border-top: 1px solid var(--line); gap: 0.5rem; justify-content: space-between; justify-self: stretch; padding-top: 0.7rem; }
  nav a { font-size: 0.59rem; }
  .hero { gap: 2.25rem; grid-template-columns: 1fr; padding-bottom: 3.25rem; padding-top: 3.25rem; }
  .hero-context { align-self: start; display: grid; grid-template-columns: 1fr auto; }
  .hero-context > p, .hero-context ul { grid-column: 1 / -1; }
  .section-heading, .noc-overview, .noc-evidence, .office-hours { grid-template-columns: 1fr; }
  .section-heading { align-items: start; gap: 1.4rem; }
  .section-heading > p { max-width: 42rem; }
  .noc-introduction, .evidence-intro { border-bottom: 1px solid var(--line); border-right: 0; }
  .secondary-work, .capability-grid, .principle-grid { grid-template-columns: 1fr; }
  .implementation-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-hours-intro { max-width: 42rem; }
  footer { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 520px) {
  .header-inner nav a:nth-child(2) { display: none; }
  .hero { gap: 1.9rem; padding-bottom: 2.8rem; padding-top: 2.8rem; }
  .hero h1 { font-size: clamp(2.15rem, 9.4vw, 2.3rem); letter-spacing: -0.04em; line-height: 1.13; }
  .desktop-break { display: none; }
  .hero-statement { font-size: 0.94rem; }
  .hero-context { display: block; }
  .hero-context ul { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-context li { font-size: 0.7rem; line-height: 1.45; min-width: 0; padding: 0.65rem 0.35rem; }
  .hero-context li:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; }
  .hero-context li:nth-child(even) { padding-right: 0; }
  .hero-context a { margin-top: 1.1rem; }
  .section { padding-bottom: 3.25rem; padding-top: 3.25rem; }
  .section-heading { margin-bottom: 2.5rem; }
  .section-heading h2 { font-size: 2.05rem; }
  .selected-work { padding-top: 3.25rem; }
  .noc-introduction { padding: 1.5rem; }
  .noc-introduction h3 { font-size: 3.25rem; }
  .control-path { padding: 1.5rem; }
  .control-path ol { grid-template-columns: 1fr; }
  .control-path li, .control-path li:nth-child(n + 4) { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
  .control-path li:last-child { border-bottom: 0; }
  .control-path li { display: grid; gap: 0.75rem; grid-template-columns: 1.5rem 5rem 1fr; }
  .control-path strong { margin: 0; }
  .evidence-list { grid-template-columns: 1fr; }
  .evidence-list div, .evidence-list div:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .evidence-list div:nth-child(odd) { border-right: 0; }
  .evidence-list div:last-child { border-bottom: 0; }
  .noc-evidence-details > summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; list-style: none; padding: 1.05rem 1.5rem; }
  .noc-evidence-details > summary::-webkit-details-marker { display: none; }
  .noc-evidence-details > summary::after { color: var(--accent); content: "+"; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; margin-left: 1rem; }
  .noc-evidence-details[open] > summary::after { content: "−"; }
  .noc-evidence-details > summary span, .noc-evidence-details > summary strong { display: block; }
  .noc-evidence-details > summary span { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; }
  .noc-evidence-details > summary strong { font-size: 0.75rem; font-weight: 650; margin-top: 0.25rem; }
  .work-card dl div { grid-template-columns: 1fr; }
  .runtime-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .runtime-counters div { border-bottom: 1px solid var(--line); }
  .runtime-counters div:nth-child(2) { border-right: 0; }
  .runtime-counters div:nth-last-child(-n + 2) { border-bottom: 0; }
  .implementation-evidence, .supporting-grid { grid-template-columns: 1fr; }
  .supporting-grid article, .supporting-grid article:nth-child(3) { border-left: 1px solid var(--line); }
  .evidence-source-heading { align-items: start; flex-direction: column; gap: 0.7rem; }
  .slot-list, .field-grid { grid-template-columns: 1fr; }
  .booking-card-heading { align-items: start; gap: 0.7rem; }
  .booking-card-heading > p { text-align: right; }
  .evidence-list dd, .work-card > p, .work-card dd, .capability-grid p, .implementation-evidence article > p:not(:first-child), .principle-grid p, .supporting-grid p, .office-hours-intro > p:not(.section-label, .demo-subtitle) { font-size: 0.82rem; }
  .capability-grid li, .principle-grid li, .supporting-grid article { padding: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
