/* EvalSim — an editorial report built from an executable workflow. */
:root {
  --paper: #f5f4ee; --white: #fffef9; --ink: #1b2523; --muted: #59635c;
  --lime: #daf087; --dark: #17221f; --dark-panel: #21302a; --dark-line: #405249;
  --light-muted: #c3d0c6; --error: #ffc0ad; --sage: #e6eadd; --line: #ced3c7;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --radius: 0; --section-space: clamp(4rem, 8vw, 7.5rem); --ease: cubic-bezier(.2,.8,.2,1);
  font-size: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
html:not(.js) { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
::selection { background: var(--lime); color: var(--ink); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; }
button, a, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled, button[aria-disabled="true"] { cursor: default; opacity: .55; }
:where(button, a, summary):focus-visible { outline: 3px solid #546d23; outline-offset: 4px; }
.demo-section :where(button, a, summary):focus-visible { outline-color: var(--lime); }
:where(main, section, #lab, #demo-trace)[tabindex]:focus { outline: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 550; text-wrap: balance; }
p { font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 1.03; letter-spacing: -.045em; }
h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.025em; }
img { display: block; max-width: 100%; }
.container { width: min(84rem, calc(100% - 4rem)); margin-inline: auto; container-type: inline-size; }
.skip-link { position: fixed; top: .75rem; left: 1.25rem; z-index: 200; padding: .875rem 1rem; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.75rem; font-weight: 650; letter-spacing: -.055em; flex-shrink: 0; }
.wordmark-period { color: #708936; }
.brand-mark { display: flex; flex-direction: column; justify-content: space-between; width: 1.375rem; height: 1.375rem; margin-right: .75rem; transform: skewY(-10deg); }
.brand-mark i { display: block; width: 100%; height: .25rem; background: var(--ink); }
.brand-mark i:nth-child(2) { width: 73%; }
.nav-links { min-width: 0; flex-wrap: wrap; display: flex; align-items: center; justify-content: flex-end; gap: 1.75rem; font-size: .9375rem; }
.nav-links > a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-block: .75rem; }
.nav-cta { gap: 1.5rem; background: var(--sage); padding-inline: 1rem; }
.menu-toggle { display: none; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 1.5rem; max-width: 100%; min-height: 3.5rem; padding: 1rem 1.25rem; font-size: 1rem; line-height: 1.3; font-weight: 550; transition: transform 160ms var(--ease), background 160ms; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-lime { background: var(--lime); color: var(--ink); }
.text-link, .member-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 100%; min-height: 44px; padding-block: .5rem; font-size: 1rem; line-height: 1.4; }
.text-link:hover, .member-link:hover, .nav-links > a:hover { text-decoration: underline; text-underline-offset: .3em; }
.button:hover { background: #35483d; color: var(--paper); }
.button-lime:hover { background: #e6f8a8; color: var(--ink); }
:where(.button, .nav-cta, .menu-toggle, .mode-button, .scenario-button, .trace-event, .reset-button, .export-button, .compare-button, .show-final-button):active:not(:disabled):not([aria-disabled="true"]) { transform: scale(.98); transition-duration: 60ms; }
.hero { padding-block: clamp(2.25rem, 4vw, 4rem) var(--section-space); }
.hero h1 { max-width: 19ch; font-size: clamp(3rem, 7.5vw, 7rem); line-height: .98; letter-spacing: -.06em; text-wrap: balance; }
.hero-intro { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); align-items: end; gap: 4rem; margin-top: 2.5rem; }
.hero-description { max-width: 40rem; font-size: 1.25rem; }
.hero-action-block { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; }
.hero-visual { display: grid; grid-template-columns: minmax(0,42%) minmax(0,58%); margin: 3.5rem 0 0; background: var(--sage); }
.visual-context { padding: clamp(1.5rem, 3vw, 3rem); display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.visual-context h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); }
.visual-context > p { max-width: 32rem; }
.hero-future { margin-top: auto; font-size: .875rem; color: var(--muted); }
.hero-future strong { font-weight: 600; color: var(--ink); }
.preview-sheet { min-width: 0; background: var(--dark); color: var(--paper); padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.preview-request { display: flex; flex-direction: column; gap: .5rem; }
.preview-request > span { font-size: .875rem; color: var(--light-muted); }
.preview-request strong { font-size: 1.5rem; font-weight: 500; letter-spacing: -.025em; }
.preview-paths { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.preview-path { padding: 1.5rem; background: var(--dark-panel); }
.preview-path > span { display: block; font-size: .875rem; }
.preview-path > strong { display: block; margin: 1rem 0 .5rem; font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 500; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.preview-unsafe > strong { color: var(--error); }
.preview-guarded > strong { color: var(--lime); }
.preview-path p { margin-top: 1rem; font-size: .875rem; color: var(--light-muted); }
.preview-caption { font-size: .8125rem; color: var(--light-muted); }
/* Controls stay beside the condition they operate on, including on mobile. */
.demo-section { padding-block: var(--section-space); background: var(--dark); color: var(--paper); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem 3rem; }
.section-heading > p { max-width: 27rem; font-size: 1rem; color: var(--ink); line-height: 1.6; }
.demo-heading { margin-bottom: 2rem; }
.demo-heading h2 span { color: var(--lime); }
.demo-heading > p { color: var(--light-muted); }
.example-disclosure { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; margin-bottom: 1rem; color: var(--light-muted); font-size: .8125rem; line-height: 1.6; }
.example-disclosure strong { color: #e8efdf; font-weight: 550; }
.example-disclosure > span:last-child { margin-left: auto; }
.example-dot, .local-indicator i { width: .3rem; height: .3rem; background: var(--lime); border-radius: 50%; flex-shrink: 0; }
.lab { --run-progress: 0; background: var(--dark-panel); border: 0; border-radius: 0; overflow: hidden; }
.lab-titlebar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--dark-line); } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
.lab-title { display: flex; align-items: center; gap: .75rem; min-width: 0; color: #dee8d9; font: .8125rem/1.5 var(--sans); overflow-wrap: anywhere; }
.local-indicator { display: flex; align-items: center; gap: .5rem; font: .8125rem/1.5 var(--sans); color: #c9d7bd; }
.scenario-toolbar { padding: .5rem; background: #15211c; border-bottom: 1px solid var(--dark-line); } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
.scenario-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem; }
.scenario-button { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 3rem; padding: .75rem; border: 1px solid transparent; border-radius: .375rem; background: transparent; color: #becbb9; text-align: left; font: .75rem/1.4 var(--mono); transition: background 150ms, color 150ms, transform 150ms; } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
.scenario-button span { font: 500 .8125rem/1.4 var(--sans); }
.scenario-button.active { color: var(--lime); background: #2d3d2a; border-color: #576e42; }
.scenario-button:hover { background: #29392d; color: #eff7e5; }
.lab-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); }
.fixture-panel, .trace-panel, .outcome-panel { min-width: 0; padding: 1.5rem; }
.fixture-panel { border-right: 1px solid var(--dark-line); } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
.panel-heading { color: var(--light-muted); font: 550 .8125rem/1.5 var(--sans); }
.fixture-panel h4 { margin: 1.25rem 0 .75rem; font-size: 1.375rem; line-height: 1.2; letter-spacing: -.025em; }
.fixture-panel > p { color: var(--light-muted); font-size: 1rem; line-height: 1.65; }
.fixture-data { margin: 1.25rem 0 0; }
.fixture-data > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; margin-bottom: .75rem; font-size: .8125rem; }
.fixture-data dt { color: var(--light-muted); }
.fixture-data dd { margin: 0; text-align: right; color: #edf3e5; font: .8125rem/1.5 var(--sans); overflow-wrap: anywhere; }
.mode-label { margin-top: 1.5rem; color: var(--light-muted); font: .8125rem/1.5 var(--sans); letter-spacing: .04em; }
.mode-controls { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .25rem; margin-top: .75rem; background: #14201b; border: 1px solid #4c6045; border-radius: .5rem; } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
.mode-button { min-width: 0; min-height: 44px; padding: .75rem .375rem; background: transparent; color: #cfdcc5; border-radius: .3rem; font-size: .8125rem; line-height: 1.4; font-weight: 550; transition: background 150ms, color 150ms, transform 150ms; }
.mode-button.active { background: #dce6ce; color: var(--ink);  }
.mode-button:hover:not(.active) { background: #2a3a2d; }
.fixture-panel .mode-description { min-height: 2.75rem; margin-top: .75rem; color: #c3d2b8; font-size: .8125rem; }
.lab-controls { margin-top: 1rem; padding-top: 1.125rem; border-top: 1px solid var(--dark-line); } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
.run-controls { display: flex; align-items: stretch; flex-wrap: wrap; gap: .5rem; }
.run-controls .button { flex: 1; min-height: 3rem; padding: .75rem .875rem; font-size: .8125rem; gap: .5rem; }
.reset-button { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; min-width: 44px; min-height: 44px; padding: .5rem; border-radius: .375rem; background: transparent; color: #d2dfc7; font-size: 1.25rem; }
.reset-button span { font-size: .8125rem; }
.reset-button:hover { background: #304233; }
.run-progress { height: 3px; margin-top: 1rem; background: #40513f; border-radius: 2px; overflow: hidden; }
.run-progress-fill { display: block; width: 100%; height: 100%; background: var(--lime); transform: scaleX(var(--run-progress)); transform-origin: left; transition: transform 160ms var(--ease); }
.lab[data-run-state="fail"] .run-progress-fill { background: var(--error); }
.run-status { min-height: 2.875rem; padding-top: .75rem; color: #c6d5b9; font: .8125rem/1.6 var(--sans); overflow-wrap: anywhere; }
.run-status.is-fail { color: var(--error); }
.run-status.is-pass { color: var(--lime); }
.trace-panel { display: flex; flex-direction: column; border-right: 1px solid var(--dark-line); scroll-margin-top: 6rem; } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
.panel-heading-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .375rem .75rem; }
.mono-label { font: .8125rem/1.5 var(--sans); color: #c2d0b9; }
.trace { flex: 1; min-height: 9rem; margin: 1rem -.375rem 0; padding: 0; list-style: none; }
.trace-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 9rem; padding: 1rem; text-align: center; }
.trace-empty strong { max-width: 16rem; color: #e0ead5; font-size: 1rem; font-weight: 500; line-height: 1.6; }
.trace-empty > span:last-child { margin-top: .75rem; color: var(--light-muted); font-size: .8125rem; line-height: 1.7; }
.trace-item { position: relative; }
.trace-item:not(:last-child)::after { content: ""; position: absolute; top: 1.75rem; bottom: -.25rem; left: 1.0625rem; width: 1px; background: #51634a; }
.trace-event { position: relative; display: flex; align-items: flex-start; gap: .75rem; width: 100%; min-height: 44px; padding: .75rem .5rem .75rem .375rem; margin-bottom: .25rem; text-align: left; color: var(--paper); background: transparent; border: 1px solid transparent; border-radius: .375rem; transition: background 140ms, border-color 140ms, transform 140ms; } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
.trace-event:hover { background: #283c2e; }
.trace-event.selected { background: #2c3d2e; border-color: #607653; }
.trace-event:disabled { opacity: 1; }
.trace-event:disabled:hover { background: transparent; }
.trace-event.selected:disabled:hover { background: #2c3d2e; }
.event-index { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 1.375rem; height: 1.375rem; flex-shrink: 0; background: #263829; border: 1px solid #687e59; border-radius: 50%; color: #d2e3c1; font: .75rem var(--mono); } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
.trace-event.warning .event-index { color: #ffd4b7; border-color: #ae805e; background: #463a2b; }
.trace-event.error .event-index { color: #ffd9cb; border-color: #bd8068; background: #503a2e; }
.event-body { min-width: 0; flex: 1; }
.event-title { display: block; font: .8125rem/1.5 var(--sans); overflow-wrap: anywhere; }
.event-detail { display: block; margin-top: .25rem; color: var(--light-muted); font-size: .8125rem; line-height: 1.55; }
.trace-footer { padding-top: .75rem; }
.trace-inspection { min-height: 2.75rem; color: #c3d2b8; font: .8125rem/1.65 var(--sans); }
.show-final-button, .compare-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: .75rem .875rem; border: 1px solid #60744f; border-radius: .375rem; background: #2d3f2b; color: var(--lime); font-size: .8125rem; font-weight: 550; } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
.show-final-button { margin-top: .75rem; }
.show-final-button:hover, .compare-button:hover { background: #3a4e32; }
.outcome-panel { background: #213025; }
.state-metric { margin-top: 1.625rem; }
.state-metric > span { color: #c8d6bc; font-size: .8125rem; }
.state-metric > strong { display: block; margin: .5rem 0 .75rem; font-size: 3.25rem; font-weight: 500; line-height: 1.15; letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.state-metric > strong > span { font-size: .6em; color: #c1d0b5; }
.state-metric > strong.failure, .state-metric > strong.failure > span { color: var(--error); }
.state-metric small { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem .5rem; color: #c1d0b5; font: .8125rem/1.6 var(--sans); }
.state-metric small > span { color: #e0ebd6; }
.state-details { padding-top: 1.25rem; margin: 1.5rem 0; border-top: 1px solid #516344; } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
.state-details > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; margin-bottom: .75rem; }
.state-details dt { color: #cad7bf; font-size: .8125rem; }
.state-details dd { margin: 0; font: .8125rem/1.5 var(--sans); }
.state-details dd.negative { color: var(--error); }
.assertions { list-style: none; padding: 0; margin: 1rem 0 0; }
.assertions li { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .75rem; color: #e0ead5; font-size: .8125rem; line-height: 1.55; }
.assertions li > span { width: .875rem; flex-shrink: 0; font: .8125rem/1.55 var(--mono); }
.assertions .pass > span { color: var(--lime); }
.assertions .fail { color: var(--error); }
.assertions .pending { color: var(--light-muted); }
.lab-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 1.5rem; padding: 1rem 1.5rem; border-top: 1px solid var(--dark-line); background: #19271f; } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
.compare-action { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.lab-footer-note { font-size: .8125rem; color: var(--light-muted); }
.export-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: .75rem .875rem; background: transparent; border: 1px solid #546b48; border-radius: .375rem; color: #dce8d1; font-size: .8125rem; } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
.export-button > span { font-size: 1.125rem; }
.export-button:hover:not(:disabled) { color: var(--lime); background: #2d402b; }
.demo-footnote { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; margin-top: 1.25rem; color: #c1ceb7; font: .8125rem/1.7 var(--sans); }
.demo-footnote > span:first-child { max-width: 43rem; display: flex; gap: .75rem; }
.noscript-note { margin-top: 1.5rem; color: var(--paper); font-size: 1rem; }


.fixture-details { margin-top: 1rem; }
.fixture-details summary { display: flex; align-items: center; gap: .75rem; min-height: 44px; width: fit-content; cursor: pointer; color: #d6e1cd; font-size: .8125rem; list-style: none; }
.fixture-details summary::-webkit-details-marker { display: none; }
.fixture-details summary::after { content: '+'; font-size: 1.125rem; }
.fixture-details[open] summary::after { content: '−'; }
.fixture-details .fixture-data { margin-top: .5rem; }
.outcome-summary { margin-top: .5rem; font-size: 1rem; line-height: 1.6; color: #e3ebdb; }
.lab[data-run-state='ready'] .outcome-summary { color: var(--light-muted); }
.demo-section summary:focus-visible { outline-color: var(--lime); }


/* The same 42% editorial axis connects the engagement, research and proof. */
.approach-section { display: grid; grid-template-columns: 42% 58%; padding-block: var(--section-space); }
.approach-intro { padding-right: 4rem; }
.approach-intro p { max-width: 29rem; margin-top: 2rem; }
.approach-intro .text-link { margin-top: 1.5rem; }
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.25rem; }
.process li { display: grid; grid-template-columns: .85fr 1fr; gap: 2rem; }
.process h3 { font-size: 1.5rem; max-width: 17ch; }
.process p { max-width: 35ch; }
.research-section { padding-block: var(--section-space); background: var(--sage); }
.research-section .section-heading { display: grid; grid-template-columns: 42% 58%; gap: 0; align-items: start; }
.research-section .section-heading > p { font-size: 1.125rem; max-width: 41rem; }
.research-progression { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; list-style: none; padding: 0; margin: 3.5rem 0; }
.research-progression li { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.stage-status { font-size: .875rem; color: var(--muted); }
.stage-status.available { color: var(--ink); font-weight: 600; }
.research-progression h3 { font-size: 1.625rem; }
.research-progression p { max-width: 38rem; margin-top: .75rem; }
.training-loop { background: var(--paper); padding: 2.5rem; }
.loop-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.loop-heading h3 { font-size: 1.5rem; }
.loop-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; list-style: none; padding: 0; margin: 2.25rem 0; }
.loop-steps h4 { font-size: 1.25rem; letter-spacing: -.02em; }
.loop-steps p { margin-top: .75rem; }
.research-question { max-width: 58rem; }
.research-question strong { display: block; margin-bottom: .5rem; font-weight: 600; }
.research-note { max-width: 58rem; margin-top: 1rem; font-size: .875rem; color: var(--muted); }
.evidence-section { display: grid; grid-template-columns: 42% 58%; padding-block: var(--section-space); align-items: center; }
.evidence-section h2 { font-size: clamp(2rem, 3.3vw, 3rem); }
.delivery-proof { display: flex; align-items: center; gap: 2.5rem; }
.delivery-number { font-size: clamp(7rem, 12vw, 11rem); line-height: .9; font-weight: 550; letter-spacing: -.08em; }
.delivery-statement { font-size: clamp(1.25rem, 2vw, 1.875rem); line-height: 1.2; letter-spacing: -.025em; }
.delivery-proof div > p:last-child { margin-top: 1rem; max-width: 28rem; }
.team-section { padding-block: 0 var(--section-space); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; margin-top: 3rem; }
.team-member { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.member-portrait { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--sage); }
.member-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform 420ms var(--ease); }
.member-portrait:hover img { transform: scale(1.035); }
/* Arhaan’s LinkedIn photo is a full-body frame; crop around the portrait. */
.team-member:first-child .member-portrait img { transform: translate(-16%, -10%) scale(2.4); transform-origin: 66% 48%; }
.team-member:first-child .member-portrait:hover img { transform: translate(-16%, -10%) scale(2.45); }
.member-heading { margin-top: 1.5rem; }
.team-member h3 { font-size: clamp(1.5rem, 2vw, 1.875rem); }
.member-role { display: block; margin-top: .5rem; font-size: .9375rem; color: var(--muted); }
.team-member p { margin-block: 1.25rem 1rem; max-width: 36ch; }
.member-link { margin-top: auto; }
.contact-section { padding-block: var(--section-space); background: var(--lime); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }
.contact-inner h2 { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -.05em; }
.contact-bottom { width: 100%; min-width: 0; max-width: 33rem; justify-self: end; }
.contact-bottom > p { font-size: 1.125rem; margin-bottom: 2rem; }
.contact-bottom > div { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.contact-note { font-size: .8125rem; }
.footer { padding-block: 2.5rem 1.5rem; }
.footer-main, .footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.footer-main { padding-bottom: 1.5rem; }
.footer-main p { font-size: .9375rem; }
.footer-bottom { color: var(--muted); font-size: .875rem; }
.footer-bottom > span, .footer-bottom > a, .privacy summary { display: inline-flex; align-items: center; min-height: 44px; }
.privacy { max-width: 32rem; }
.privacy summary { cursor: pointer; }
.privacy p { margin-top: 1rem; font-size: .875rem; }
/* Motion helps follow a response, never gates reading or interaction. */
@keyframes arrive { from { transform: translateY(12px); } to { transform: translateY(0); } }
.hero h1, .hero-description, .hero-action-block, .hero-visual { animation: arrive 600ms var(--ease) both; }
.reveal-arrive { animation: arrive 480ms var(--ease) both; }

@media (max-width: 75rem) {
  .nav-links { gap: 1rem; }
  .lab-body { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); }
  .trace-panel { border-right: 0; }
  .outcome-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; }
  .outcome-panel > .panel-heading-row { grid-column: 1 / -1; }
  .state-metric { grid-column: 1; grid-row: 2 / 4; margin-top: .5rem; }
  .state-details { grid-column: 2; grid-row: 2; padding-top: 0; margin: .5rem 0; border: 0; }
  .check-heading, .assertions { grid-column: 2; }
  .assertions { margin: 0; }
  .process li { display: block; }
  .process p { margin-top: .75rem; max-width: 40ch; }
  .preview-path { padding: 1rem; }
}
@media (max-width: 56rem) {
  .container { width: calc(100% - 3rem); }
  .nav-links { gap: .75rem; font-size: .8125rem; }
  .nav-cta { padding-inline: .75rem; gap: .5rem; }
  .hero-intro { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .hero-action-block { justify-content: flex-start; }
  .hero-visual { grid-template-columns: 1fr 1.2fr; }
  .visual-context { padding: 1.5rem; }
  .preview-sheet { padding: 1.25rem; }
  .preview-paths { grid-template-columns: 1fr; }
  .preview-path { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1rem; align-items: baseline; }
  .preview-path strong { margin: 0; grid-row: 1 / 3; grid-column: 2; font-size: 2rem; text-align: right; }
  .preview-path p { grid-column: 1 / -1; margin-top: .5rem; }
  .approach-intro { padding-right: 2rem; }
  .research-progression { gap: 2.5rem; }
  .loop-steps { grid-template-columns: 1fr 1fr; }
  .team-grid { gap: 1.25rem; }
  .team-member h3 { font-size: 1.375rem; }
  .delivery-proof { gap: 1.5rem; }
}
@media (max-width: 45rem) {
  html { scroll-padding-top: 5.5rem; }
  .container { width: calc(100% - min(2.5rem,40px)); }
  .nav { min-height: 4.5rem; flex-wrap: wrap; gap: 0; }
  .nav-links { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .375rem .75rem; padding-bottom: .75rem; font-size: .9375rem; }
  .nav-links > a { padding: .75rem; }
  html:not(.js) .header { position: relative; }
  .js .menu-toggle { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; width: 44px; height: 44px; padding: 11px; background: var(--sage); margin-left: auto; }
  .menu-toggle > span { width: 20px; height: 2px; background: var(--ink); transition: transform 180ms var(--ease); }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .js .nav-links { min-width: 0; flex-wrap: wrap; display: flex; flex-direction: column; position: absolute; top: 100%; left: 1rem; right: 1rem; padding: .75rem; background: var(--paper); box-shadow: 0 12px 32px #1b25231f; opacity: 0; visibility: hidden; transform: translateY(-.375rem); transform-origin: top right; transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms; } /* taste-skill-ignore: The expanded navigation is a floating menu. */
  .js .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .hero { padding-top: 1.75rem; }
  .hero h1 { font-size: clamp(2rem, 8.1vw, 3.75rem); max-width: none; line-height: 1.06; letter-spacing: -.05em; }
  .hero-intro { margin-top: 1.75rem; }
  .hero-description { font-size: 1.0625rem; }
  .hero-action-block { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .hero-visual { display: flex; flex-direction: column; margin-top: 3rem; }
  .visual-context { padding: 1.5rem; gap: 1rem; }
  .visual-context h2 { font-size: 2rem; }
  .visual-context h2 br { display: none; }
  .hero-future { font-size: .875rem; }
  .preview-sheet { padding: 1.25rem; }
  .preview-request strong { font-size: 1.25rem; }
  .preview-paths { grid-template-columns: 1fr 1fr; }
  .preview-path { display: block; padding: .75rem; }
  .preview-path > strong { font-size: clamp(1.5rem,7vw,1.875rem); margin: .75rem 0 .5rem; text-align: left; }
  .preview-path > span, .preview-path p { font-size: .8125rem; }
  h2 { font-size: clamp(2rem, 8.6vw, 3rem); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1.25rem; max-width: 32rem; font-size: 1rem; }
  .example-disclosure > span:last-child { margin-left: 0; flex-basis: 100%; }
  .lab-titlebar { padding: 1rem; gap: .375rem; }
  .scenario-toolbar { padding: .375rem; }
  .scenario-selector { gap: .25rem; }
  .scenario-button { padding: .75rem .375rem; }
  .scenario-button span { font-size: .8125rem; }
  .lab-body { display: block; }
  .fixture-panel, .trace-panel, .outcome-panel { padding: 1.25rem min(1.125rem,24px); border-right: 0; }
  .fixture-panel { border-bottom: 1px solid var(--dark-line); } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
  .fixture-panel h4 { max-width: 25rem; font-size: 1.5rem; margin-top: .75rem; }
  .fixture-panel .mode-description { min-height: 0; font-size: .875rem; }
  .mode-label { margin-top: 1rem; }
  .mode-button { font-size: .875rem; }
  .run-controls .button { font-size: .875rem; }
  .reset-button { padding-inline: .875rem; }
  .run-status { min-height: 2.25rem; }
  .trace, .trace-empty { min-height: 7rem; }
  .event-detail, .event-title { font-size: .8125rem; }
  .trace-event { padding-block: .75rem; }
  .outcome-panel { display: block; }
  .state-metric { margin-top: 1.25rem; }
  .state-details { margin: 1.25rem 0; padding-top: 1.25rem; border-top: 1px solid #516344; } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
  .assertions { margin-top: 1rem; }
  .lab-footer { padding: 1rem 1.125rem; }
  .compare-action, .export-button { width: 100%; }
  .compare-action { align-items: stretch; flex-direction: column; gap: .75rem; }
  .approach-section { display: block; }
  .approach-intro { padding: 0; }
  .approach-intro p { margin-top: 1.5rem; }
  .process { margin-top: 2.5rem; gap: 1.75rem; }
  .process h3 { max-width: none; font-size: 1.375rem; }
  .research-section .section-heading { display: block; }
  .research-section .section-heading > p { font-size: 1rem; }
  .research-progression { grid-template-columns: minmax(0,1fr); gap: 2rem; margin-block: 2.5rem; }
  .research-progression li { gap: .5rem; }
  .training-loop { padding: 1.5rem; }
  .loop-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .loop-steps li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; }
  .loop-steps p { margin-top: 0; }
  .evidence-section { display: block; }
  .delivery-proof { margin-top: 2rem; gap: 1.5rem; }
  .delivery-number { font-size: 6rem; }
  .delivery-statement { font-size: 1.25rem; }
  .team-grid { grid-template-columns: 1fr; gap: 3rem; margin-top: 2rem; }
  .member-portrait { aspect-ratio: 1; }
  .team-member h3 { font-size: 1.625rem; }
  .team-member p { max-width: none; }
  .contact-inner { display: block; }
  .contact-inner h2 { font-size: clamp(2.75rem, 12vw, 4rem); }
  .contact-bottom { margin-top: 2rem; }
  .contact-bottom > p { font-size: 1rem; }
  .footer-main > p { flex-basis: 100%; }
  .privacy { order: 3; flex-basis: 100%; max-width: none; }
  .footer-bottom > a { margin-left: auto; }
}
@media (max-width: 23rem) { .container { width: calc(100% - 2rem); } .hero h1 { font-size: 1.875rem; } }
@supports (width: 1cqi) {
  .lab { container-type: inline-size; }
  @container (max-width: 48rem) {
    .lab-body { display: block; }
    .fixture-panel, .trace-panel { border-right: 0; border-bottom: 1px solid var(--dark-line); } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
    .outcome-panel { display: block; }
    .state-details { margin: 1.5rem 0; }
    .assertions { margin-top: 1rem; }
    .lab-footer { align-items: stretch; flex-direction: column; }
  }

  @container (max-width: 30rem) {
    .hero-visual { display: flex; flex-direction: column; }
    .preview-path { min-width: 0; }
  }
  @container (max-width: 14rem) {
    .button { gap: .75rem; padding-inline: .75rem; }
    .hero h1 { font-size: 1.625rem; }
    .research-progression h3 { font-size: 1.25rem; }
    .preview-paths { grid-template-columns: 1fr; }
    .loop-steps li { display: block; }
    .loop-steps p { margin-top: .5rem; }
    h2, .contact-inner h2, .visual-context h2 { font-size: 1.5rem; }
    .visual-context, .preview-sheet, .training-loop { padding: .75rem; }
    .preview-request strong { font-size: 1rem; }
    .preview-path > strong { font-size: 1.5rem; }
    .scenario-selector, .mode-controls { grid-template-columns: 1fr; }
    .scenario-button { justify-content: flex-start; }
    .run-controls .button { flex-basis: 100%; }
    .run-controls .reset-button { flex: 1; }
    .lab-titlebar, .lab-footer { padding-inline: .75rem; }
    .delivery-proof { display: block; }
    .delivery-number { margin-bottom: 1rem; }
    .team-member h3, .process h3 { overflow-wrap: anywhere; }
  }
}
@media (prefers-reduced-transparency: reduce) { .header { background: var(--paper); backdrop-filter: none; } } /* taste-skill-ignore: Explicitly removes transparency for accessibility. */
@media (prefers-contrast: more) {
  :root { --muted: #38483c; --light-muted: #e4eedc; --dark-line: #8b9d7a; }
  .header { background: var(--paper); border-bottom: 2px solid var(--ink); }
  .scenario-button.active, .trace-event.selected { border-color: var(--lime); }
  .button:disabled, button[aria-disabled="true"] { opacity: .75; }
}
@media (forced-colors: active) {
  .button, .mode-button, .scenario-button, .trace-event { border: 1px solid ButtonText; } /* taste-skill-ignore: Functional demo controls, records and event trace, or forced-colors accessibility. */
  .mode-button.active, .scenario-button.active, .trace-event.selected { outline: 2px solid Highlight; outline-offset: -3px; }
  .run-progress-fill { background: Highlight; forced-color-adjust: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  :where(.button, .nav-cta, .menu-toggle, .mode-button, .scenario-button, .trace-event, .reset-button, .export-button, .compare-button, .show-final-button):active { transform: none !important; }
  .member-portrait:hover img { transform: none; }
  .team-member:first-child .member-portrait:hover img { transform: translate(-16%, -10%) scale(2.4); }
  .js .nav-links { transform: none; }
}
@media print {
  .header { position: static; }
  .button, .menu-toggle, .nav-links, .lab-controls, .lab-footer, .privacy { display: none !important; }
  .container { width: 100%; }
  .hero-visual, .lab { break-inside: avoid; }
  .demo-section, .contact-section { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
