/* Interactive edition. The original light identity remains available. */
:root {
  --surface: #e9ede6;
  --surface-raised: #fff;
  --surface-subtle: #edf0e8;
  --panel: #12212a;
  --panel-text: #edf1ed;
  --panel-muted: #afbebc;
  --panel-line: #3c514f;
  --accent-ink: #12301a;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0c141b;
  --white: #121e28;
  --ink: #edf1ed;
  --muted: #a4b1b7;
  --blue: #64abe3;
  --blue-deep: #223f54;
  --green: #b6da72;
  --line: #2b3a44;
  --surface: #101b24;
  --surface-raised: #182833;
  --surface-subtle: #121e28;
  --panel: #121e28;
  --panel-text: #edf1ed;
  --panel-muted: #a4b1b7;
  --panel-line: #344752;
}
html[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] ::selection { color: #0c141b; background: #b6da72; }
html[data-theme="dark"] .site-header { background: rgba(12,20,27,.96); border-color: #2b3a44; }
html[data-theme="dark"] .skip-link { color: #0c141b; background: #edf1ed; }
html[data-theme="dark"] .muted { color: #8d9ea6; }
html[data-theme="dark"] .button, html[data-theme="dark"] .btn { background: var(--lime); border-color: var(--lime); color: #12212a; }
html[data-theme="dark"] .button:hover, html[data-theme="dark"] .btn:hover { color: #0c141b; background: #d0e9a3; border-color: #d0e9a3; }
html[data-theme="dark"] .button.secondary, html[data-theme="dark"] .button--secondary, html[data-theme="dark"] .btn-secondary { background: transparent; color: var(--ink); border-color: #7d929c; }
html[data-theme="dark"] .button.secondary:hover, html[data-theme="dark"] .button--secondary:hover, html[data-theme="dark"] .btn-secondary:hover { background: #182833; }
html[data-theme="dark"] .main-nav .nav-cta { border-color: #667b85; }
html[data-theme="dark"] .main-nav .nav-cta:hover { color: #0c141b; background: var(--lime); border-color: var(--lime); }
html[data-theme="dark"] .initials { color: #cce0dc; background: #182833; border-color: #49606a; }
html[data-theme="dark"] .hero-person div > span { color: #a4b1b7; }
html[data-theme="dark"] .workbench { background: #144e79; box-shadow: 8px 13px 0 #142630; }
html[data-theme="dark"] .request-paper { color: #12212a; background: #f0f1e9; box-shadow: 4px 5px 0 #0a3454; }
html[data-theme="dark"] .knowledge-row { background: #0c1922; color: #edf1ed; }
html[data-theme="dark"] .result-paper { color: #12212a; }
html[data-theme="dark"] .visual-caption p { color: #9daeb7; }
html[data-theme="dark"] .caption-line { border-color: #64abe3; }
html[data-theme="dark"] .operation-strip { background: #14232d; color: #edf1ed; border-block: 1px solid #293a44; }
html[data-theme="dark"] .service-list { border-color: #495b64; }
html[data-theme="dark"] .practice { background: #101b24; }
html[data-theme="dark"] .case-panel { background: #121e28; }
html[data-theme="dark"] .case-tabs { border-color: #344752; }
html[data-theme="dark"] .case-tabs button { border-color: #344752; color: #a4b1b7; }
html[data-theme="dark"] .case-tabs button:hover { background: #182833; }
html[data-theme="dark"] .case-tabs button[aria-selected="true"] { background: #1d3341; }
html[data-theme="dark"] .case-narrative > p:not(.example-note) { color: #a4b1b7; }
html[data-theme="dark"] .system-map { background: #121e28; border-color: #344752; }
html[data-theme="dark"] .map-label { color: #9bb3aa; }
html[data-theme="dark"] .system-map li { color: #edf1ed; background: #182833; border-color: #344752; }
html[data-theme="dark"] .system-map small { color: #a4b1b7; }
html[data-theme="dark"] .system-map li:nth-child(4) { color: #edf1ed; background: #1c362b; border-color: #4b6b4d; }
html[data-theme="dark"] .system-map li:last-child small { color: #bacbb5; }
html[data-theme="dark"] .map-foot { color: #aec0b3; border-color: #344752; }
html[data-theme="dark"] .process { background: #111e27; }
html[data-theme="dark"] .process-grid { border-color: #4a5b62; }
html[data-theme="dark"] .process-grid article + article { border-color: #344752; }
html[data-theme="dark"] .process-grid p { color: #a4b1b7; }
html[data-theme="dark"] .about-monogram { background: #194f74; color: #edf1ed; }
html[data-theme="dark"] .about-location { color: #a4b1b7; }
html[data-theme="dark"] .about-principles { border-color: #3b4d56; }
html[data-theme="dark"] .faq-list { border-color: #4a5b62; }
html[data-theme="dark"] .contact { background: #172d25; border-top: 1px solid #496044; }
html[data-theme="dark"] .contact h2 em { color: #b6da72; }
html[data-theme="dark"] .contact-copy > p:not(.eyebrow) { color: #b7c6b8; }
html[data-theme="dark"] .contact-mail { color: #edf1ed; border-color: #78946a; }
html[data-theme="dark"] .contact-mail:hover { color: #cce6a2; border-color: #b6da72; }
html[data-theme="dark"] .contact-person { color: #a8bea8; }
html[data-theme="dark"] .contact-form select, html[data-theme="dark"] .contact-form textarea { color: #edf1ed; background: #12221d; border-color: #587253; }
html[data-theme="dark"] .contact-form textarea::placeholder { color: #a6b7a4; }
html[data-theme="dark"] .contact-form option { color: #edf1ed; background: #12221d; }
html[data-theme="dark"] .contact-form select:focus, html[data-theme="dark"] .contact-form textarea:focus { outline-color: #b6da72; }
html[data-theme="dark"] .form-note { color: #afc1a8; }
html[data-theme="dark"] .form-status { color: #edf1ed; }
html[data-theme="dark"] .site-footer { color: #d8e0d8; background: #080f15; }
html[data-theme="dark"] .footer-main { border-color: #2b3a44; }
html[data-theme="dark"] .footer-main > span, html[data-theme="dark"] .footer-link { color: #afbebf; }
html[data-theme="dark"] .footer-bottom { color: #95a9b0; }
html[data-theme="dark"] .back-top:hover { color: #12212a; }
html[data-theme="dark"] .legal-dialog { color: #edf1ed; background: #121e28; border-color: #587069; box-shadow: 0 24px 100px rgba(0,0,0,.5); }
html[data-theme="dark"] .dialog-head { background: #121e28; }
html[data-theme="dark"] .dialog-close { border-color: #667b85; }
html[data-theme="dark"] .dialog-close:hover { color: #12212a; background: #b6da72; border-color: #b6da72; }
html[data-theme="dark"] .legal-dialog::backdrop { background: rgba(0,6,10,.8); }
html[data-theme="dark"] .noscript-note { color: #edf1ed; background: #182833; }

/* A quietly useful control bar rather than another navigation row. */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 65; pointer-events: none; }
.reading-progress > span { display: block; width: 0; height: 100%; background: var(--green); transform-origin: left center; }
.nav-wrap { gap: 22px; }
.wordmark { flex-shrink: 0; }
.main-nav { margin-left: auto; gap: 23px; }
.header-tools { display: flex; align-items: center; gap: 6px; border-left: 1px solid var(--line); padding-left: 14px; flex: 0 0 auto; }
.theme-toggle, .motion-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; background: transparent; color: var(--ink); border: 1px solid transparent; padding: 7px 8px; font-size: 9px; line-height: 1.3; white-space: nowrap; }
.theme-toggle:hover, .motion-toggle:hover { border-color: var(--line); background: var(--surface-subtle); }
.theme-toggle::before, .motion-toggle::before { content: none; }
.theme-toggle > span[aria-hidden], .motion-symbol { display: inline-block; font-size: 14px; line-height: 1; }
.motion-toggle[aria-pressed="false"]::before, html[data-motion="paused"] .motion-toggle::before { width: 0; height: 0; border: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid currentColor; }
.bench-run { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 16px; padding: 10px 13px; border: 1px solid #bad5e2; background: transparent; color: white; min-height: 37px; font-size: 10px; line-height: 1.3; }
.bench-run:hover { color: #12212a; background: #b6da72; border-color: #b6da72; }
.bench-run:focus-visible { outline-color: #b6da72; outline-offset: 4px; }
.bench-status { display: inline-block; font: 8px/1.6 "Courier New",monospace; color: #d6e6ed; max-width: 165px; vertical-align: middle; margin: 10px 0 0 12px; }
.workbench .request-paper, .workbench .knowledge-row, .workbench .result-paper { transition: opacity .35s, outline-color .35s, transform .45s; outline: 1px solid transparent; outline-offset: 4px; }
.workbench.is-playing[data-stage="1"] .request-paper { outline-color: #b6da72; transform: rotate(-2.6deg) translateY(-3px); }
.workbench.is-playing[data-stage="2"] .knowledge-row { outline-color: #b6da72; transform: rotate(-1.25deg) translateX(4px); }
.workbench.is-playing[data-stage="3"] .result-paper, .workbench[data-stage="3"] .result-paper { outline-color: #d8edb9; transform: rotate(0deg) translateY(-3px); }
.workbench.is-playing[data-stage="1"] .knowledge-row, .workbench.is-playing[data-stage="1"] .result-paper, .workbench.is-playing[data-stage="2"] .result-paper { opacity: .56; }
.workbench.is-playing .flow-connector { animation: connector-pass .8s ease-in-out 2; }
@keyframes connector-pass { 0%,100% { opacity:.5; } 50% { opacity:1; } }

/* The lab is an explorable operating example, not a promise of live results. */
.lab-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 22px; }
.case-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 19px; }
.case-filters button { position: relative; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.4; padding: 10px 0; }
.case-filters button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.case-filters button:hover { color: var(--ink); }
.case-filters button[aria-pressed="true"] { color: var(--ink); }
.case-filters button[aria-pressed="true"]::after { background: var(--green); }
.case-search { position: relative; width: min(250px, 35%); flex: 0 0 auto; }
.case-search > span[aria-hidden] { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: var(--muted); font-size: 21px; line-height: 1; pointer-events: none; }
.case-search label { display: block; font-size: 9px; line-height: 1.5; color: var(--muted); margin-bottom: 5px; }
.case-search input { display: block; width: 100%; height: 42px; background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 10px 13px 10px 35px; font-size: 11px; }
.case-search input::placeholder { color: var(--muted); opacity: 1; }
.case-search input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.lab-layout { display: grid; grid-template-columns: minmax(220px,.78fr) minmax(0,2fr); gap: 27px; align-items: start; }
.case-menu { border-top: 1px solid var(--line); }
.case-count { grid-column: 1 / -1; margin: 0; padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font: 8px/1.5 "Courier New",monospace; letter-spacing: .7px; }
.case-option { display: grid; grid-template-columns: 26px minmax(0,1fr) 12px; column-gap: 12px; text-align: left; width: 100%; padding: 20px 14px 20px 11px; border: 0; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; background: transparent; color: var(--ink); transition: background .2s, border-color .2s; }
.case-option:hover { background: var(--surface-subtle); }
.case-option[aria-pressed="true"] { background: var(--surface-raised); border-left-color: var(--green); }
.case-option-num { font: 10px/1.7 "Courier New",monospace; color: var(--blue); }
.case-option > span:last-child { font-size: 15px; color: var(--blue); line-height: 1.4; }
.case-option-title { display: block; font-size: 12px; font-weight: 600; line-height: 1.6; }
.case-option-area { display: block; font-size: 9px; line-height: 1.5; color: var(--muted); margin-top: 5px; }
.case-option[aria-pressed="true"] .case-option-title { color: var(--blue); }
.case-menu-empty, .case-empty, .lab-empty { grid-column: 1 / -1; font-size: 12px; color: var(--muted); padding: 25px 14px; }
.lab-stage { scroll-margin-top: 110px; min-width: 0; background: var(--panel); color: var(--panel-text); border: 1px solid var(--panel-line); padding: 34px 34px 26px; }
.lab-heading { margin-bottom: 27px; }
.lab-kicker { display: flex; align-items: center; justify-content: space-between; gap: 15px; font: 9px/1.5 "Courier New",monospace; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px; color: #b6da72; margin-bottom: 18px; }
.lab-kicker::before { content: ""; width: 5px; height: 5px; display: inline-block; background: #b6da72; flex: 0 0 auto; }
.lab-kicker > :first-child { margin-right: auto; }
.lab-heading h3 { font-size: clamp(29px,3.4vw,45px); line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 18px; max-width: 650px; }
.lab-description { font-size: 13px; line-height: 1.9; color: var(--panel-muted); margin: 0; max-width: 630px; }
.demo-canvas { border-top: 1px solid var(--panel-line); padding-top: 24px; }
.demo-input { border: 1px solid var(--panel-line); background: rgba(255,255,255,.025); padding: 16px 19px; margin-bottom: 25px; }
.demo-input-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #9bafb7; font: 8px/1.5 "Courier New",monospace; font-weight: 600; letter-spacing: 1.15px; text-transform: uppercase; }
.demo-input-head::after { content: "↙"; color: #b6da72; font: 18px/1 Arial,sans-serif; }
.demo-input blockquote { font-family: Georgia,"Times New Roman",serif; font-size: 20px; line-height: 1.45; font-style: italic; letter-spacing: -.35px; color: var(--panel-text); margin: 12px 0 2px; }
.demo-stage-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; position: relative; margin-bottom: 27px; }
.demo-stage-steps::before { content: ""; position: absolute; top: 15px; left: 15px; right: 15px; border-top: 1px solid #455b60; }
.demo-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: transparent; border: 0; padding: 0; color: var(--panel-text); text-align: left; min-width: 0; }
.demo-step .step-number { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #5b7179; border-radius: 50%; color: #b3c3c9; background: var(--panel); font: 10px/1 "Courier New",monospace; transition: background .25s, color .25s, border-color .25s; z-index: 1; }
.demo-step .step-copy { display: block; padding-right: 5px; }
.demo-step .step-copy small { display: block; color: #99aeb5; font: 7px/1.6 "Courier New",monospace; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 6px; }
.demo-step .step-copy strong { display: block; color: #c8d3d4; font-size: 10px; font-weight: 500; line-height: 1.65; }
.demo-step:hover .step-number, .demo-step:focus-visible .step-number { border-color: #b6da72; color: #b6da72; }
.demo-step[aria-current="step"] .step-number, .demo-step.is-active .step-number { background: #b6da72; border-color: #b6da72; color: #12212a; }
.demo-step[aria-current="step"] .step-copy strong, .demo-step.is-active .step-copy strong { color: #edf1ed; }
.demo-step[aria-current="step"] .step-copy small, .demo-step.is-active .step-copy small { color: #b6da72; }
.demo-step.is-complete .step-number { color: #b6da72; border-color: #7c9e63; background: #24382c; }
.demo-step:focus-visible { outline-color: #b6da72; outline-offset: 5px; }
.demo-step.is-active .step-number { animation: step-arrive .5s ease-out 1; }
@keyframes step-arrive { from { transform: scale(.8); } to { transform: scale(1); } }
.demo-output { position: relative; min-height: 157px; padding: 19px 21px; background: #1c3030; border: 1px solid #49645b; margin-bottom: 20px; transition: background .3s, border-color .3s; }
.output-eyebrow { display: flex; align-items: center; gap: 9px; color: #b6da72; font: 8px/1.5 "Courier New",monospace; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; margin: 0 0 11px; }
.output-eyebrow::before { content: ""; width: 5px; height: 5px; flex: 0 0 auto; background: #b6da72; }
#demo-output-text { color: #edf1ed; font-size: 13px; line-height: 1.8; margin: 0; white-space: pre-line; }
.demo-boundary { color: #adc2b6; font-size: 9px; line-height: 1.7; margin: 13px 0 0; padding-top: 12px; border-top: 1px solid #3f5951; }
.demo-output[data-state="idle"] { background: #17282d; border-style: dashed; border-color: #526871; }
.demo-output[data-state="idle"] .output-eyebrow { color: #b1c2c6; }
.demo-output[data-state="idle"] .output-eyebrow::before { background: #92a9b2; }
.demo-output[data-state="idle"] #demo-output-text { color: #c4d1d4; }
.demo-output[data-state="running"] { border-color: #84ab64; }
.demo-output[data-state="running"] .output-eyebrow::before { animation: output-work .8s ease-in-out 3; }
.demo-output[data-state="complete"] { background: #253c2e; border-color: #8caf6a; }
@keyframes output-work { 0%,100% { opacity:.35; } 50% { opacity:1; } }
.demo-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.demo-play.button { min-height: 43px; padding: 11px 16px; background: #b6da72; border-color: #b6da72; color: #12212a; font-size: 11px; gap: 20px; }
.demo-play.button:hover { background: #d0e9a3; border-color: #d0e9a3; }
.demo-play.button:focus-visible { outline-color: #b6da72; }
.demo-next, .demo-reset { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 10px 13px; background: transparent; color: #e1e9e4; border: 1px solid #5a7077; font-size: 10px; line-height: 1.5; }
.demo-next:hover, .demo-reset:hover { color: #b6da72; border-color: #8daf71; }
.demo-reset { border-color: transparent; color: #adc0c5; padding-inline: 8px; }
.demo-next:disabled, .demo-reset:disabled, .demo-play:disabled { opacity: .45; cursor: default; transform: none; }
.demo-progress { height: 2px; overflow: hidden; background: #31434c; margin: 21px 0 9px; }
.demo-progress > span { display: block; width: 0; height: 100%; background: #b6da72; transition: width .4s ease; }
.demo-status { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 17px; color: #a5b7be; font: 8px/1.5 "Courier New",monospace; margin: 0; }
.lab-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--panel-line); padding-top: 20px; margin-top: 23px; }
.lab-footer .example-note { margin: 0; max-width: 320px; color: #9aafb6; font-size: 8px; line-height: 1.8; }
.lab-footer .text-link { color: #edf1ed; font-size: 10px; border-color: #658069; gap: 15px; flex-shrink: 0; }
.lab-footer .text-link:hover { color: #b6da72; }
.lab-footer .text-link span { color: #b6da72; font-size: 17px; }

/* A transparent calculator: workload first, no invented savings claim. */
.routine-check { background: var(--surface-subtle); border-bottom: 1px solid var(--line); }
.routine-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10%; }
.routine-copy h2 { font-size: clamp(35px,4.5vw,62px); line-height: 1.09; letter-spacing: -.045em; margin-bottom: 24px; }
.routine-copy > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 480px; }
.routine-calculator { min-width: 0; border: 1px solid var(--line); padding: 30px 32px 25px; background: var(--paper); }
.range-field { margin-bottom: 29px; }
.range-field > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.range-field label { font-size: 12px; line-height: 1.6; }
.range-field output { color: var(--blue); font: 700 20px/1.2 Arial,sans-serif; letter-spacing: -.6px; }
.range-field input[type="range"] { grid-column: 1 / -1; display: block; width: 100%; margin: 0; height: 4px; accent-color: var(--green); cursor: pointer; }
.range-field input[type="range"]:focus-visible { outline-offset: 7px; }
.range-field input[type="range"] { appearance: none; height: 20px; background: linear-gradient(to right,var(--green) 0 var(--range-progress,25%),var(--line) var(--range-progress,25%) 100%) center / 100% 4px no-repeat; border: 0; }
.range-field input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.range-field input[type="range"]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; margin-top: -7px; background: var(--green); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--green); }
.range-field input[type="range"]::-moz-range-track { height: 4px; background: transparent; }
.range-field input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--green); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--green); }
.range-scale { display: flex; align-items: center; justify-content: space-between; gap: 20px; font: 8px/1.5 "Courier New",monospace; color: var(--muted); margin-top: 13px; }
.routine-result { border-top: 1px solid var(--line); padding-top: 23px; }
.routine-result > div { display: flex; align-items: flex-end; gap: 16px; }
.routine-result output { display: inline-block; color: var(--ink); font-size: clamp(57px,6vw,85px); font-weight: 400; line-height: 1; letter-spacing: -.07em; }
.routine-result > div > span { display: inline-block; padding-bottom: 5px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.routine-result > p { font-size: 10px; line-height: 1.8; color: var(--muted); margin: 13px 0 0; }
.routine-note { font-size: 9px; line-height: 1.8; color: var(--muted); margin: 19px 0 0; max-width: 440px; }

/* Scroll reveals run once. Functionality never relies on motion. */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .75s cubic-bezier(.2,.6,.3,1); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.reveal-ready [data-reveal="delay"] { transition-delay: .12s; }
html[data-motion="paused"] { scroll-behavior: auto; }
html[data-motion="paused"] *, html[data-motion="paused"] *::before, html[data-motion="paused"] *::after { animation: none !important; transition: none !important; }
html[data-motion="paused"] .reveal-ready [data-reveal], html[data-motion="paused"].reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; }

@media (max-width: 1180px) {
  .nav-wrap { gap: 16px; }
  .main-nav { gap: 17px; }
  .header-tools { padding-left: 9px; gap: 0; }
  .theme-toggle, .motion-toggle { font-size: 8px; gap: 5px; padding-inline: 6px; }
  .lab-layout { grid-template-columns: minmax(205px,.76fr) minmax(0,2fr); gap: 20px; }
  .lab-stage { padding: 28px 26px 23px; }
  .lab-footer { gap: 20px; }
  .lab-footer .example-note { max-width: 270px; font-size: 7px; }
  .lab-footer .text-link { font-size: 9px; gap: 10px; }
}
@media (max-width: 1000px) {
  .nav-wrap { min-height: 78px; }
  .wordmark { margin-right: auto; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; border: 0; background: transparent; color: var(--ink); font-size: 10px; font-weight: 600; order: 3; }
  .menu-icon { display: block; position: relative; width: 20px; height: 12px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .menu-icon::after { content: ""; position: absolute; top: 5px; left: 0; width: 100%; border-top: 1px solid var(--ink); }
  .menu-toggle[aria-expanded="true"] .menu-icon { height: 0; border-bottom: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { top: -1px; transform: rotate(90deg); }
  .header-tools { margin-left: 0; border: 0; padding-left: 0; order: 2; }
  .theme-toggle, .motion-toggle { font-size: 9px; }
  .main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; margin: 0; padding: 22px var(--gutter) 30px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > a { display: flex; align-items: center; justify-content: space-between; min-height: 53px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
  .main-nav .nav-cta { margin-top: 20px; min-height: 53px; padding-inline: 15px; font-size: 13px; }
  .lab-toolbar { flex-wrap: wrap; align-items: center; }
  .lab-layout { grid-template-columns: minmax(185px,.7fr) minmax(0,1.5fr); gap: 18px; }
  .case-option { padding-inline: 8px; gap: 8px; grid-template-columns: 22px minmax(0,1fr) 11px; }
  .case-option-title { font-size: 11px; }
  .case-option-area { font-size: 8px; }
  .lab-stage { padding-inline: 23px; }
  .lab-heading h3 { font-size: 32px; letter-spacing: -1.15px; }
  .lab-description { font-size: 12px; }
  .demo-stage-steps { gap: 7px; }
  .demo-step .step-copy strong { font-size: 9px; }
  .demo-step .step-copy small { font-size: 6.5px; letter-spacing: .5px; }
  .lab-footer { align-items: flex-start; flex-direction: column; gap: 13px; }
  .lab-footer .example-note { max-width: 430px; font-size: 8px; }
  .lab-footer .text-link { font-size: 10px; }
  .routine-layout { gap: 6%; }
  .routine-calculator { padding-inline: 25px; }
}
@media (max-width: 800px) {
  .nav-wrap { min-height: 75px; gap: 15px; }
  .main-nav { top: 75px; }
  .header-tools { gap: 1px; }
  .theme-toggle, .motion-toggle { font-size: 8px; padding-inline: 6px; }
  .lab-layout { grid-template-columns: 1fr; gap: 22px; }
  .case-menu { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); }
  .case-option { min-height: 82px; padding: 17px 15px 16px 13px; border-right: 1px solid var(--line); gap: 11px; grid-template-columns: 24px minmax(0,1fr) 12px; }
  .case-option-title { font-size: 12px; }
  .case-option-area { font-size: 9px; }
  .lab-stage { padding: 34px 30px 26px; }
  .lab-heading h3 { font-size: 39px; }
  .lab-description { font-size: 13px; max-width: 650px; }
  .demo-step .step-copy strong { font-size: 11px; }
  .demo-step .step-copy small { font-size: 8px; }
  .demo-input blockquote { font-size: 23px; }
  .demo-output { min-height: 153px; }
  #demo-output-text { font-size: 14px; }
  .demo-boundary { font-size: 10px; }
  .lab-footer { flex-direction: row; gap: 25px; align-items: center; }
  .lab-footer .example-note { max-width: 330px; font-size: 8px; }
  .routine-layout { grid-template-columns: 1fr; gap: 30px; }
  .routine-copy h2 { max-width: 650px; font-size: 43px; }
  .routine-copy > p:not(.eyebrow) { max-width: 600px; }
  .routine-calculator { max-width: 650px; padding: 31px 32px; }
  .routine-result output { font-size: 80px; }
  .routine-result > div > span { font-size: 14px; }
  .range-field label { font-size: 13px; }
  .routine-note { font-size: 10px; }
  html[data-theme="dark"] .process-grid article:nth-child(3), html[data-theme="dark"] .process-grid article:nth-child(4) { border-color: #344752; }
}
@media (max-width: 520px) {
  .nav-wrap { min-height: 76px; flex-wrap: wrap; row-gap: 0; padding-block: 12px; }
  .wordmark { font-size: 18px; gap: 7px; letter-spacing: -.7px; }
  .brand-mark { width: 23px; height: 26px; }
  .header-tools { gap: 1px; margin-left: auto; }
  .theme-toggle, .motion-toggle { padding: 5px; min-height: 29px; font-size: 7px; gap: 4px; }
  .theme-toggle::before { width: 9px; height: 9px; box-shadow: inset 4px 0 0 currentColor; }
  .motion-toggle::before { width: 6px; height: 7px; border-inline-width: 1.5px; }
  .motion-toggle[aria-pressed="false"]::before, html[data-motion="paused"] .motion-toggle::before { border-top-width: 4px; border-bottom-width: 4px; border-left-width: 6px; }
  .menu-toggle { gap: 8px; padding-block: 5px; font-size: 9px; margin-left: 6px; }
  .menu-toggle > span:first-child { display: none; }
  .menu-icon { width: 18px; }
  .main-nav { top: 76px; }
  .hero { padding-top: 43px; }
  .bench-run { margin-top: 14px; min-height: 34px; font-size: 9px; gap: 13px; padding: 9px 11px; }
  .bench-status { font-size: 7px; margin-left: 8px; max-width: 115px; }
  .lab-toolbar { gap: 16px; align-items: stretch; }
  .case-filters { gap: 4px 16px; width: 100%; }
  .case-filters button { font-size: 10px; padding-block: 8px; }
  .case-search { width: 100%; }
  .case-search input { height: 42px; font-size: 12px; }
  .case-search label { font-size: 9px; }
  .lab-layout { gap: 19px; }
  .case-menu { grid-template-columns: 1fr 1fr; }
  .case-option { min-height: 87px; padding: 14px 9px 13px 8px; grid-template-columns: 18px minmax(0,1fr) 9px; column-gap: 6px; }
  .case-option > span:last-child { font-size: 12px; }
  .case-option-num { font-size: 8px; padding-top: 1px; }
  .case-option-title { font-size: 10px; line-height: 1.55; }
  .case-option-area { font-size: 7px; line-height: 1.6; margin-top: 5px; }
  .lab-stage { padding: 26px 18px 23px; }
  .lab-kicker { font-size: 7px; letter-spacing: 1px; gap: 8px; margin-bottom: 17px; }
  .lab-heading { margin-bottom: 23px; }
  .lab-heading h3 { font-size: 31px; line-height: 1.17; letter-spacing: -1.2px; }
  .lab-description { font-size: 12px; line-height: 1.85; }
  .demo-canvas { padding-top: 20px; }
  .demo-input { padding: 14px 15px; margin-bottom: 23px; }
  .demo-input-head { font-size: 7px; letter-spacing: .8px; }
  .demo-input blockquote { font-size: 20px; line-height: 1.45; }
  .demo-stage-steps { grid-template-columns: 1fr 1fr; gap: 20px 17px; padding-bottom: 0; margin-bottom: 24px; }
  .demo-stage-steps::before { display: none; }
  .demo-step { flex-direction: row; align-items: flex-start; gap: 9px; }
  .demo-step .step-number { width: 25px; height: 25px; flex: 0 0 25px; font-size: 8px; }
  .demo-step .step-copy { padding-right: 0; }
  .demo-step .step-copy small { font-size: 6px; letter-spacing: .4px; margin-bottom: 4px; }
  .demo-step .step-copy strong { font-size: 9px; line-height: 1.65; }
  .demo-output { padding: 17px 15px; min-height: 165px; }
  .output-eyebrow { font-size: 7px; letter-spacing: .8px; }
  #demo-output-text { font-size: 12px; line-height: 1.85; }
  .demo-boundary { font-size: 8px; line-height: 1.8; margin-top: 14px; }
  .demo-controls { gap: 8px; }
  .demo-play.button { min-height: 40px; padding: 10px 12px; gap: 12px; font-size: 10px; }
  .demo-next, .demo-reset { min-height: 40px; padding: 9px 10px; font-size: 9px; }
  .demo-reset { padding-inline: 2px; }
  .demo-status { font-size: 7px; line-height: 1.65; }
  .lab-footer { align-items: flex-start; flex-direction: column; gap: 14px; padding-top: 18px; margin-top: 21px; }
  .lab-footer .example-note { font-size: 8px; max-width: none; }
  .lab-footer .text-link { font-size: 10px; }
  .routine-copy h2 { font-size: 35px; }
  .routine-copy > p:not(.eyebrow) { font-size: 13px; }
  .routine-calculator { padding: 25px 20px; }
  .range-field { gap: 15px; margin-bottom: 27px; }
  .range-field label { font-size: 11px; }
  .range-field output { font-size: 20px; }
  .routine-result output { font-size: 65px; }
  .routine-result > div > span { font-size: 11px; }
  .routine-result > p { font-size: 9px; }
  .routine-note { font-size: 9px; }
  html[data-theme="dark"] .process-grid article, html[data-theme="dark"] .process-grid article + article { border-color: #344752; }
}
@media (max-width: 360px) {
  .nav-wrap { column-gap: 7px; }
  .wordmark { font-size: 16px; gap: 6px; }
  .brand-mark { width: 21px; }
  .header-tools { gap: 0; }
  .theme-toggle, .motion-toggle { font-size: 6px; gap: 3px; padding-inline: 3px; }
  .theme-toggle::before { width: 8px; height: 8px; }
  .menu-toggle { margin-left: 3px; }
  .hero .eyebrow { font-size: 7px; letter-spacing: .8px; }
  .hero h1 { font-size: 57px; }
  .bench-status { max-width: 105px; margin-left: 5px; font-size: 6px; }
  .case-option { grid-template-columns: 16px minmax(0,1fr) 8px; gap: 4px; padding-inline: 6px; }
  .case-option-title { font-size: 9px; }
  .lab-stage { padding-inline: 15px; }
  .lab-heading h3 { font-size: 28px; }
  .demo-step { gap: 7px; }
  .demo-step .step-number { width: 23px; height: 23px; flex-basis: 23px; }
  .demo-step .step-copy strong { font-size: 8px; }
  .demo-controls { gap: 7px; }
  .demo-reset { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Readable simulation labels retain their size on small screens. */
.demo-step .step-copy small { font-size: 10px; line-height: 1.55; letter-spacing: .35px; }
.demo-step .step-copy strong { font-size: 12px; line-height: 1.7; }
.bench-status { font-size: 9px; }
.demo-status { font-size: 11px; line-height: 1.7; min-height: 20px; }
.lab-footer .example-note { font-size: 11px; line-height: 1.8; }
.lab-footer .text-link { font-size: 11px; }
.demo-boundary { font-size: 11px; line-height: 1.75; }
.lab-description { font-size: 14px; }
#demo-output-text { font-size: 14px; line-height: 1.85; }
.case-option-title { font-size: 12px; }
.case-option-area { font-size: 10px; }
@media (max-width: 520px) {
  .demo-step .step-copy strong { font-size: 11px; }
  .case-option { min-height: 107px; }
  .case-option-title { font-size: 11px; }
  .case-option-area { font-size: 9px; }
  .lab-description { font-size: 13px; }
  .demo-input-head { font-size: 8px; }
  .demo-status { min-height: 37px; }
  .theme-toggle > span[aria-hidden], .motion-symbol { font-size: 11px; }
}

/* One compact, predictable mobile masthead down to 320px. */
@media (max-width: 520px) {
  .nav-wrap { position: relative; display: flex; flex-wrap: nowrap; min-height: 68px; padding-block: 12px; column-gap: 8px; }
  .wordmark { flex: 0 1 auto; min-width: 0; margin-right: auto; font-size: 17px; gap: 6px; letter-spacing: -.75px; }
  .wordmark .brand-mark { width: 21px; height: 25px; flex: 0 0 21px; }
  .header-tools { flex: 0 0 auto; gap: 1px; margin-left: 0; padding-left: 0; border: 0; }
  .theme-label, .motion-label { display: none; }
  .theme-toggle, .motion-toggle { flex: 0 0 29px; width: 29px; min-width: 29px; height: 29px; min-height: 29px; padding: 0; gap: 0; }
  .theme-toggle > span[aria-hidden], .motion-symbol { font-size: 15px; }
  .menu-toggle { display: inline-flex; flex: 0 0 29px; width: 29px; height: 29px; justify-content: center; align-items: center; padding: 0; margin-left: 0; order: 3; }
  .menu-toggle > span:first-child { display: none; }
  .menu-icon { width: 19px; }
  .main-nav { position: absolute; top: 100%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); padding-inline: var(--gutter); z-index: 45; }
}
@media (max-width: 360px) {
  .nav-wrap { column-gap: 6px; }
  .wordmark { font-size: 15px; letter-spacing: -.7px; gap: 5px; }
  .wordmark .brand-mark { width: 19px; height: 23px; flex-basis: 19px; }
}
