@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/portfolio/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
}

/* Shared public presentation. The lab engines own their charts and state colors. */
:root, body.atlas-page {
  --bg: #faf9f6;
  --surface: #fff;
  --ink: #1b1b1a;
  --muted: #585955;
  --line: #d8d7d1;
  --soft: #efeee9;
  --accent: #80400c;
  --highlight: #edaa63;
  --chart: #355c72;
  --compare: #636e73;
  --node: #fff;
  --shadow: none;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}
:root[data-theme=dark], :root[data-theme=dark] body.atlas-page {
  --bg: #191a19;
  --surface: #202120;
  --ink: #f7f6f1;
  --muted: #c1c0b9;
  --line: #41423e;
  --soft: #2b2c29;
  --accent: #efb47a;
  --chart: #a7c8de;
  --compare: #b5c0c4;
  --node: #202120;
}
body { line-height: 1.6; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: #f4c699; color: #211d17; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap, .atlas-page .header {
  width: min(78rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding-inline: 0;
}
.masthead { border-bottom: 1px solid var(--line); }
.header, .atlas-page .header {
  gap: 2rem;
  height: 5rem;
  min-height: 0;
  border: 0;
  background: transparent;
}
.header .brand {
  gap: .65rem;
  color: var(--ink);
  font-size: 1.18rem;
  letter-spacing: -.045em;
}
.header .brand::before {
  content: "";
  width: 1.15rem;
  height: 1.05rem;
  background: var(--accent);
  clip-path: polygon(0 70%, 69% 0, 100% 0, 30% 70%, 58% 70%, 100% 28%, 100% 62%, 62% 100%, 0 100%);
}
.header nav { gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.header nav a, .header .nav-toggle { font-size: 1rem; }
.header nav a[aria-current] { color: var(--ink); text-decoration: none; }
.header nav a[aria-current]::after {
  background: var(--accent);
  bottom: .2rem;
  height: 2px;
}
/* Draw the theme control consistently even on devices without the symbol font. */
.header .icon-btn { width: 44px; border: 0; background: transparent; color: var(--ink); font-size: 0; }
.header .icon-btn::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
[data-theme=dark] .header .icon-btn::before { transform: rotate(180deg); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.8rem; }
.button, .text-link, .text-btn { font-size: 1rem; font-weight: 500; }
.button { min-height: 3.15rem; padding: .75rem 1.35rem; border-radius: .35rem; }
.text-link { text-decoration: none; min-height: 44px; }
.text-link:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .26em; }
.button.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* The amber layer of the material study sets the accent for the portfolio. */
.overview-page .masthead, .intro-band {
  --ink: #fffaf4;
  --muted: #cec9c0;
  --accent: #f3b97d;
  --line: #383636;
  background: #141516;
  color: var(--ink);
}
.overview-page .masthead { border-color: var(--line); }
.intro-band { position: relative; overflow: clip; }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  align-items: center;
  gap: 1.5rem;
  padding-block: clamp(4rem, 6.6vw, 6.4rem);
}
.intro-copy { position: relative; z-index: 1; }
.intro-copy .intro-role {
  display: block; color: #edbd90; font: 500 1.0625rem/1.4 'DM Sans',sans-serif;
  margin-bottom: 1.15rem; letter-spacing: .005em;
}
.intro-copy h1, .page-intro h1, .contact-page h1, .atlas-page .workspace-heading h1 {
  font-size: clamp(2.75rem, 5.3vw, 5.35rem);
  line-height: 1.04; letter-spacing: -.052em; font-weight: 500;
}
.intro-copy h1 { font-size: clamp(3.15rem, 5.9vw, 5.75rem); line-height: 1.02; }
.intro-copy h1 em, .contact-opening h1 em {
  font: italic 400 1.13em/.92 'Instrument Serif', Georgia, serif;
  letter-spacing: -.026em;
}
.intro-copy h1 em { color: #f1d0ad; }
.intro-copy .hero-description {
  max-width: 36ch; margin-top: 1.4rem; font-size: clamp(1.1875rem, 1.6vw, 1.45rem);
  line-height: 1.53; color: #dedbd5;
}
.intro-copy .actions { margin-top: 1.8rem; }
.intro-copy .button.primary { background: #f8f3ea; color: #1c1917; border-color: #f8f3ea; }
.intro-copy .button.primary:hover { background: #f3d3af; border-color: #f3d3af; }
.intro-copy .text-link { color: #faf6f0; }
.material-study {
  position: relative; min-width: 0; isolation: isolate;

}
.intro-art {
  display: block; width: 112%; max-width: none; margin-left: -6%; height: auto;
  mask-image: radial-gradient(ellipse 65% 64% at center, black 50%, transparent 92%);
}
.study-list { padding-block: clamp(3rem, 5.8vw, 6rem) clamp(2.8rem, 4.7vw, 5rem); }
.work-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: clamp(1.4rem, 2.6vw, 2.4rem);
}
.work-head h2, .field-note h2 {
  font-size: clamp(2rem, 3.65vw, 3.5rem); line-height: 1.12; letter-spacing: -.055em;
}
.work-head p { color: var(--muted); font-size: 1.0625rem; }
.study-spread { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.4rem,3.1vw,3.2rem); }
.work-study { display: flex; flex-direction: column; min-width: 0; color: var(--ink); }
.study-plate {
  position: relative; display: grid; align-items: center; isolation: isolate;
  overflow: hidden; border-radius: .55rem; aspect-ratio: 2.05; container-type: inline-size;
}
.signal-plate {
  color: #def9fa;
  background: radial-gradient(ellipse at 72% 80%, #28616d75, transparent 52%),
    linear-gradient(113deg,#0a1e30 5%,#122c43 59%,#273653);
}
.signal-readout {
  align-self: start; z-index: 1; padding: 5.2% 6.5% 0; display: grid; line-height: 1.2;
}
.signal-readout span, .receipt-heading span { font-size: clamp(.9rem,3cqw,1.12rem); font-weight: 500; }
.signal-readout strong {
  font: 500 clamp(2rem,9.3cqw,3.75rem)/1.09 Manrope,sans-serif; letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.signal-readout strong small { font-size: .48em; color: #aad0d7; letter-spacing: -.02em; }
.signal-readout span:last-child { color: #b8d2dc; margin-top: .12rem; }
.signal-plate svg { position: absolute; inset: auto 6.5% 9%; width: 87%; height: 45%; overflow: visible; }
.signal-grid { fill: none; stroke: #b5d1dd; stroke-opacity: .16; stroke-dasharray: 3 4; }
.signal-line { fill: none; stroke: #94f5eb; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.signal-guide { fill: none; stroke: #a6f4ed; stroke-dasharray: 3 3; opacity: .55; }
.signal-peak { fill: #f6fffd; stroke: #7ee2d7; stroke-width: 2.5; }
.event-plate {
  justify-items: center;
  background: radial-gradient(ellipse at 40% 0%, #fad9aa, transparent 72%),
    linear-gradient(145deg,#d99b6e,#be7858 68%,#955742);
}
.batch-receipt {
  position: relative; width: 66%; max-width: 21rem; padding: 4% 5%;
  background: #fff4df; color: #342b26; border-radius: 2px;
  transform: rotate(-3deg); box-shadow: 0 1.2rem 1.75rem -.95rem #663214a8;
}
.batch-receipt::after {
  content: ''; position: absolute; inset: calc(100% - 1px) 0 auto; height: 6px;
  background: linear-gradient(135deg,#fff4df 25%,transparent 25%) -5px 0 / 10px 10px,
    linear-gradient(225deg,#fff4df 25%,transparent 25%) -5px 0 / 10px 10px;
}
.receipt-heading { display:flex; align-items:baseline; justify-content:space-between; gap:.4rem; flex-wrap:wrap; }
.receipt-heading strong { font-size: clamp(.9rem,3cqw,1.15rem); }
.receipt-strip { display: grid; grid-template-columns: 8fr 1fr 1fr; gap: 2px; margin-block: 5% 4%; height: 7px; }
.receipt-strip i { background: #526c5b; }
.receipt-strip i:nth-child(2) { background: #ae5a39; }
.receipt-strip i:last-child { background: #827369; }
.receipt-line {
  display: flex; align-items: baseline; justify-content: space-between;
  font: 400 clamp(.9rem,3cqw,1.1rem)/1.55 var(--mono); letter-spacing: -.025em;
}
.receipt-line b { font-weight: 500; }
.study-copy { display: grid; grid-template-rows: auto 1fr auto; flex: 1; justify-items: start; padding: 1.35rem 0 0; }
.study-copy h3 { font-size: clamp(1.8rem,3vw,2.75rem); letter-spacing: -.046em; }
.study-copy p { max-width: 47ch; margin-top: .45rem; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); }
.study-action, .field-note .text-link, .intro-copy .text-link {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 500;
  text-decoration: underline; text-underline-offset: .28em; text-decoration-thickness: 1px;
}
.study-action { color: var(--accent); margin-top: .55rem; font-size: 1.0625rem; }
.field-note {
  display: grid; grid-template-columns: .85fr 1.4fr; gap: 2rem;
  border-top: 1px solid var(--line); padding-block: clamp(2.5rem,5vw,5rem);
}
.field-note p { max-width: 48ch; font-size: clamp(1.3rem,2.1vw,1.8rem); line-height: 1.48; letter-spacing:-.025em; }
.field-note a { margin-top:.7rem; color:var(--accent); }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.8rem 2.4rem;
  border-top: 1px solid var(--line);
}
.footer-signature { display: grid; gap: .15rem; }
.footer-signature>a { font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.footer-signature small { color: var(--muted); font-size: .875rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; color: var(--muted); }

/* The resume reads like a document, with a margin for organizations and dates. */
.page-intro, .contact-page { padding-block: clamp(3rem, 7vw, 6.8rem) 3rem; }
.page-intro h1, .contact-page h1 { margin: 0 0 1.3rem; }
.page-intro>p:not(.section-label), .contact-page .contact-intro, .atlas-page .workspace-subtitle {
  max-width: 55ch;
  font-size: clamp(1.1875rem, 1.7vw, 1.45rem);
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.section-label { font-size: 1rem; color: var(--accent); font-weight: 600; margin-bottom: .65rem; }
.resume-index { display: flex; flex-wrap: wrap; gap: 0 2rem; border-block: 1px solid var(--line); padding-block: .45rem; }
.resume-index a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; }
.background-content { max-width: 78rem; padding-bottom: 4rem; }
.background-section { padding-block: 2.8rem; border-top: 0; border-bottom: 1px solid var(--line); }
.background-section-heading { margin-bottom: 1.5rem; }
.background-section-heading h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.experience, .technical-range>div {
  display: grid;
  grid-template-columns: minmax(10.5rem, .55fr) minmax(0, 1.6fr);
  gap: .5rem clamp(2rem, 5vw, 5rem);
  padding-block: 1.8rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.experience:last-child, .technical-range>div:last-child { border: 0; }
.experience-meta { grid-column: 1; grid-row: 1/5; display: flex; flex-direction: column; justify-content: start; gap: .35rem; font-size: .98rem; }
.experience-meta span:first-child { font-weight: 600; }
.experience h3, .experience>p, .experience>ul { grid-column: 2; margin: 0; }
.background-section .experience h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.background-section .experience p, .background-section .experience li, .technical-range dd,
.education-perspective, .background-section>p, .education-grid p, .credential-list li {
  font-size: 1.125rem;
  line-height: 1.65;
}
.experience ul { max-width: 68ch; padding-left: 1.3rem; }
.experience li { margin-block: .45rem; color: var(--muted); }
.technical-range { display: block; }
.technical-range>div { padding-block: 1rem; }
.technical-range dt { font-size: 1.125rem; font-weight: 600; }
.technical-range dd { margin: 0; color: var(--muted); }
.education-grid { margin-top: 1.5rem; gap: 2rem; }
.education-grid>div, .credential-list li { padding: 0; border: 0; background: none; }
.education-grid h3 { font-size: 1.4rem; }
.education-grid span, .credential-list code { font-size: .94rem; color: var(--muted); }
.credential-list { display: flex; flex-wrap: wrap; gap: .6rem 2rem; }
.credential-list code { padding: 0; background: none; }
.background-closing { padding-top: 2rem; }
.contact-page-body .contact-page {
  min-height: min(65vh, 43rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}
.contact-action { margin-top: 1.75rem; }
.contact-action .fine-print { font-size: 1rem; margin-top: .65rem; }
.contact-alternatives { flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.privacy-page .contact-page { width: min(44rem, calc(100% - 2 * var(--gutter))); min-height: 0; padding-bottom: 4rem; }
.privacy-page h1 { font-size: clamp(2.45rem, 5.7vw, 4.4rem); }
.privacy-page h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.privacy-page main p { max-width: none; margin-top: 1rem; font-size: 1.125rem; line-height: 1.7; }
.privacy-page main p a { text-decoration: underline; text-underline-offset: .16em; }
.privacy-page #privacy-controls { padding-block: 1.2rem; border-bottom: 1px solid var(--line); }

.event-intro { padding-bottom: 1rem; }
.study-context { max-width: 68ch; font-size: 1rem; color: var(--muted); margin-top: 1rem; }
.study-context summary { display: list-item; list-style-position: inside; width: fit-content; cursor: pointer; padding-block: .6rem; min-height: 44px; }
.study-context>div { padding-block: .35rem .8rem; }
.study-context p+p { margin-top: .75rem; }
.event-stats { background: var(--soft); color: var(--ink); border-radius: .35rem; }
.event-stats strong { font-size: 2rem; color: var(--ink); }
.event-stats span { font-size: .94rem; color: var(--muted); }
.event-stats>div { border-color: var(--line); }
.event-pipeline, .event-ledger, .dead-letter-panel, .atlas-page .atlas-panel, .atlas-page .atlas-kpis { box-shadow: none; border-radius: .35rem; }
.scenario-pill { border-radius: .35rem; font-size: 1rem; }
.scenario-pill small, .scenario-label, .event-workspace .fine-print { font-size: .94rem; }
.scenario-announcement:empty { display: none; }
.atlas-page .atlas-rail { background: var(--bg); border-color: var(--line); }
.atlas-page .atlas-wordmark { color: var(--ink); }
.atlas-page .atlas-main { min-width: 0; padding-top: clamp(2rem, 4vw, 4rem); }
.atlas-page .workspace-heading { padding-bottom: .25rem; }
.atlas-page .workspace-subtitle { margin-top: .85rem; }
.atlas-page .scenario-pill small, .atlas-page .filter-field label, .atlas-page .atlas-note { font-size: .9rem; }
.simulation-status i, .atlas-page .snapshot-dot { animation: none; }
.telemetry-choice { background: var(--surface); color: var(--ink); border-color: var(--line); gap: .75rem; border-radius: .5rem; }
.telemetry-choice p, .telemetry-choice button, .telemetry-choice a { font: 500 .94rem/1.45 'DM Sans', sans-serif; }
.telemetry-choice button { min-height: 44px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.telemetry-choice button+button { background: var(--surface); color: var(--ink); border-color: var(--line); }
.telemetry-choice a { color: var(--ink); }
.telemetry-choice :focus-visible { outline-color: var(--accent); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .batch-receipt { transition: transform .28s ease-out; }
  .work-study:is(:hover,:focus-visible) .batch-receipt { transform: translateY(-3px) rotate(-1deg); }
  .signal-peak { transition: stroke-width .22s ease; }
  .work-study:is(:hover,:focus-visible) .signal-peak { stroke-width: 5; }
  .work-study:is(:hover,:focus-visible) .study-action { text-decoration-thickness: 2px; }
}
@media (max-width: 900px) {
  .header, .atlas-page .header { flex-wrap: wrap; height: auto; min-height: 4.35rem; gap: .4rem .8rem; padding-block: .6rem; }
  .enhanced .header .nav-toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; margin-left: auto; border: 0; padding: .4rem; color: var(--ink); }
  .header .icon-btn { order: 2; }
  .header nav { order: 3; flex-basis: 100%; flex-wrap: wrap; margin: 0; padding-block: .35rem; border-top: 1px solid var(--line); gap: .2rem 1.5rem; }
  .enhanced .header nav { display: none; }
  .enhanced .header[data-menu-open=true] nav { display: flex; }
  .site-footer { align-items: start; }
  .site-footer nav { gap: 0 1rem; }
}
@media (max-width: 700px) {
  .intro-grid { grid-template-columns: minmax(0,1fr); gap: .35rem; padding-block: 2.6rem .65rem; min-height: auto; }
  .intro-copy h1 { font-size: clamp(2.45rem, 10.6vw, 3.8rem); }
  .intro-copy .hero-description { margin-top: 1.1rem; max-width: 39ch; }
  .intro-copy .actions { margin-top: 1.25rem; }
  .material-study { width: min(100%, 27rem); margin-inline: auto; background: none; }
  .intro-art { width: 100%; margin: 0; }
  .work-head { display: block; }
  .work-head p { margin-top: .4rem; }
  .study-spread, .field-note { grid-template-columns: minmax(0,1fr); gap: 1.35rem; }
  .study-spread { row-gap: 2.25rem; }
  .study-copy { padding-top: .9rem; }
  .batch-receipt { width: 75%; }
  .site-footer { flex-direction: column; }
  .site-footer nav { gap: 0 1.15rem; }
  .experience, .technical-range>div { display: block; }
  .experience-meta { margin-bottom: .8rem; }
  .experience h3, .experience p { margin-bottom: .65rem; }
  .technical-range dt { margin-bottom: .35rem; }
  .education-grid { grid-template-columns: 1fr; }
  .credential-list, .background-closing { flex-direction: column; align-items: start; }
  .resume-index { gap: 0 1.15rem; }
  .atlas-page .workspace-heading h1 { font-size: 2.65rem; }
  .scenario-bar .scenario-pill, .event-workspace select, .atlas-page select { min-height: 44px; }
  .event-workspace .pipeline-inspector p, .atlas-page .section-heading p:not([class]), .study-context { font-size: 1.0625rem; }
}
/* At reading distance on a phone, use a larger type scale and let tools reflow. */
@media screen and (max-width: 700px) and (orientation: portrait) {
  :root {
    font-size: 125%;
    --label-size: .9rem;
    --reading-size: 1.125rem;
  }
  :root, body.atlas-page { --gutter: clamp(16px, 5vw, 28px); }
  body { font-size: 1rem; }
  .header, .atlas-page .header { gap: .25rem .45rem; min-height: 3.5rem; }
  .header .brand { font-size: 1.1rem; gap: .45rem; }
  .header nav a, .header .nav-toggle, .contact-page .contact-alternatives a { font-size: 1rem; }
  .intro-grid { padding-top: 1.85rem; }
  .intro-copy h1, .page-intro h1, .contact-page h1, .resume-page .page-intro h1 {
    font-size: clamp(2.25rem, 11.5vw, 3.1rem);
  }
  .intro-copy .hero-description, .page-intro>p:not(.section-label),
  .contact-page .contact-intro, .atlas-page .workspace-subtitle { font-size: 1.2rem; line-height: 1.5; }
  .intro-copy .actions { gap: .25rem .85rem; }
  .button { min-height: 2.45rem; padding: .55rem .95rem; }
  .footer-signature small, .contact-page .contact-status, .contact-page .fine-print { font-size: var(--label-size); }
  .contact-page .contact-address { overflow-wrap: anywhere; }
  .intro-copy .intro-role { font-size: .9rem; margin-bottom: .9rem; }
  .intro-copy h1 { font-size: clamp(1.82rem, 11.8vw, 3.1rem); }
  .intro-copy .hero-description { font-size: 1.12rem; }
  .study-plate { aspect-ratio: 1.8; }
  .study-copy p { font-size: 1.05rem; }
  .field-note p { font-size: 1.15rem; }
  .study-action, .field-note .text-link { font-size: 1rem; }
  .telemetry-choice { flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
  .telemetry-choice p { flex-basis: 100%; }
  .telemetry-choice :is(p, button, a) { font-size: var(--label-size); }
  .telemetry-choice button { white-space: normal; }

  .scenario-bar { flex-wrap: wrap; }
  .scenario-bar .scenario-pill { flex: 1 1 100%; text-align: start; }
  .event-workspace .pipeline-steps { display: grid; grid-template-columns: 1fr; gap: .5rem; }
  .event-workspace .pipeline-steps button { width: 100%; text-align: start; padding: .65rem .8rem; }
  .event-workspace .step-connector { display: none; }
  .event-pipeline .demo-toolbar, .event-paging { flex-wrap: wrap; gap: .5rem; }
  .event-workspace :is(.simulation-status, .event-accounting, .step-number, .step-state, .pipeline-steps small,
    .code-window pre, .code-window>div, .receipt-id, .receipt-outcome, .receipt-action, .event-paging span,
    .event-paging button, .scenario-announcement, .event-selection) { font-size: var(--label-size); line-height: 1.5; }
  .event-workspace .pipeline-steps strong, .event-workspace .event-rules summary { font-size: 1.1rem; }
  .event-workspace :is(.event-rules p, .event-empty, .rejection-reason, .pipeline-inspector p:not(.eyebrow)) {
    font-size: 1rem; line-height: 1.55;
  }
  .event-workspace .event-rules code { font-size: 1em; overflow-wrap: anywhere; }

  /* Atlas uses reading, control and annotation sizes across the linked tools. */
  .atlas-page :is(.section-heading, .panel-heading, .selection-line, .toolbar-actions, .map-topline,
    .journey-step-controls, .journey-pagination, .product-heading, .dialog-footer, .incident-callout) {
    flex-wrap: wrap; gap: .5rem;
  }
  .atlas-page :is(.workspace-heading, .section-heading) .synthetic-label { position: static; white-space: normal; }
  .atlas-page .workspace-heading { display: grid; padding-top: 0; }
  .atlas-page :is(.atlas-toolbar, .journey-toolbar, .chart-inspector) {
    display: grid; grid-template-columns: minmax(0,1fr); gap: .65rem;
  }
  .atlas-page .journey-toolbar>p { grid-row: auto; }
  .atlas-page .atlas-kpis, .atlas-page .journey-ledger {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  }
  .atlas-page .workspace-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .atlas-page :is(.workspace-nav>a, .atlas-button, .atlas-segmented button, select, input,
    .chart-inspector .atlas-button, .chart-inspector input, .matrix-service, .map-node strong,
    .journey-node>strong, .ledger-event strong, .service-identity strong, .scenario-disclosure summary,
    .command-result strong) { font-size: 1rem; }
  .atlas-page :is(.atlas-button, .atlas-segmented button, .workspace-nav>a) {
    white-space: normal; line-height: 1.35; max-width: 100%; min-height: 44px;
  }
  .atlas-page :is(.journey-step-controls, .journey-toolbar) button,
  .atlas-page .command-trigger { font-size: 1rem !important; }
  .atlas-page :is(.section-heading p:not([class]), .panel-intro, .model-assumptions p,
    .journey-stage-inspector>p:not(.atlas-kicker), .service-inspector>p:not(.atlas-kicker),
    .explorer-note, .map-caption, .scenario-heading p, .scenario-results p, .scenario-disclosure>p,
    .journey-ledger-heading p, .journey-toolbar>p, .detail-description, .study-context p) {
    font-size: 1rem; line-height: 1.55;
  }
  .atlas-page .journey-definitions p { font-size: 1rem !important; }
  .atlas-page :is(.workspace-nav, .mini-label, .atlas-kicker, .synthetic-label, .kpi-label, .kpi-change,
    .atlas-kpis small, .target-tag, .metric-unit, .filter-field label, .atlas-toolbar legend, .selection-line p,
    .scenario-announcement, .incident-callout p, .chart-inspector label, .chart-inspector output,
    .chart-legend, .chart-text, .chart-note, .chart-tooltip, .map-topline, .failure-label, .reliability-foot,
    .matrix-key, .matrix-footer p, .matrix-dates>span, .model-tag, .range-limits, .scenario-control label,
    .scenario-results small, .scenario-results>div>span, .scenario-legend span, .scenario-name small, .scenario-value small,
    .node-code, .node-status, .node-relation, .inspector-metrics span, .inspector-relations, .inspector-relations strong,
    .sort-field, .explorer-tools>span, .service-identity small, td, .detail-meta, .detail-stats span,
    .detail-day, .detail-day span, .dialog-footer, .command-result small, .model-assumptions summary, .model-assumptions a,
    .journey-node-top, .journey-node-count small, .journey-node-kind, .journey-reconciliation, .journey-pagination,
    .journey-toolbar label, .journey-step-controls, .journey-code>span, .journey-code pre, .product-heading>span,
    .product-total>span, .product-measures span, .ledger-outcome, .ledger-index) { font-size: var(--label-size); }
  .atlas-page tbody td::before { font-size: var(--label-size); white-space: normal; }
  .atlas-page :is(.panel-heading h2, .service-inspector h3, .journey-stage-inspector h3,
    .journey-ledger-heading h3, .journey-product h3, .scenario-heading h3) { font-size: 1.3rem; }
  .atlas-page .dependency-map { display: grid; height: auto; gap: .45rem; background-image: none; }
  .atlas-page .map-connections { display: none; }
  .atlas-page .map-node { position: static; transform: none; width: 100%; padding: .6rem .75rem; }
  .atlas-page .node-relation { display: block; white-space: normal; }
  .atlas-page .journey-node { grid-template-columns: 1.5rem minmax(0,1fr); }
  .atlas-page .journey-node-count { grid-column: 2; grid-row: 3; text-align: start; }
  .atlas-page .journey-node-count small { display: inline; }
  .atlas-page #volume-chart { font-size: var(--label-size); }
  .atlas-page .matrix-row { grid-template-columns: 7rem repeat(var(--days), minmax(2.75rem,1fr)); }
  .atlas-page .scenario-row { grid-template-columns: minmax(0,1fr); gap: .6rem; }
  .atlas-page .scenario-name { font-size: 1rem; }
  .atlas-page .scenario-value { white-space: normal; text-align: start; }
  .atlas-page .scenario-composition { grid-row: 3; width: 100%; }
  .atlas-page .detail-daily { grid-template-columns: repeat(auto-fit, minmax(5rem,1fr)); }
  .atlas-page .detail-stats, .atlas-page .product-measures { grid-template-columns: repeat(auto-fit, minmax(min(100%,7rem),1fr)); }
}
/* Secondary pages inherit the reading scale and keep their primary action close. */
@media screen {
  .header nav a[aria-current="page"] { text-decoration: none; }
  .resume-summary { max-width: 46ch; color: var(--muted); font-size: clamp(1.15rem,1.7vw,1.42rem); line-height: 1.55; }
  .resume-summary .role-title { font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
  .resume-intro .actions { margin-top: 1.25rem; }
  .contact-opening em { color: var(--accent); }
  .contact-methods { border-left: 2px solid var(--accent); padding-left: clamp(1.2rem,3vw,3rem); min-width: 0; }
  .contact-methods .contact-action, .contact-methods #contact-ready { margin-top: 0; }
  .contact-methods .contact-alternatives { margin-top: .9rem; }
  .contact-methods .contact-alternatives a { font-size: 1rem; text-decoration: underline; text-underline-offset:.25em; }
  .privacy-page .contact-page { width:min(46rem,calc(100% - 2 * var(--gutter))); }
  .privacy-page .privacy-heading + p { font-size: 1.27rem; line-height: 1.55; }
  .privacy-page main h2 { margin-top: 2.4rem; letter-spacing: -.035em; }
  .privacy-page #privacy-controls {
    padding: 0 0 1.8rem; gap:.6rem; border-bottom: 1px solid var(--line);
  }
  .privacy-page #privacy-controls p { margin: .45rem 0 .3rem; }
  .privacy-page #privacy-controls button { font-size: 1rem; }
  .event-intro, .atlas-page .workspace-heading { position: relative; }
  .event-intro::before, .atlas-page .workspace-heading::before {
    content: ""; display: block; width: 2.75rem; height: 4px;
    background: #ad6440; border-radius: 2px; margin-bottom: 1rem;
  }
  .atlas-page .workspace-heading { display: block; }
  .atlas-page .workspace-heading::before { background: #448187; }
  .scenario-bar .scenario-reset { align-self: center; background: transparent; border-color:transparent; text-decoration: underline; text-underline-offset:.25em; }
  .scenario-bar .scenario-pill[aria-pressed="true"] { box-shadow: inset 3px 0 var(--accent); }
  .event-stats { background: var(--soft); border: 0; }
  .event-stats strong { font-family: Manrope,sans-serif; font-weight: 500; }
  .atlas-page .workspace-nav a { text-wrap: pretty; }
}
@media screen and (min-width: 901px) {
  .resume-intro { display:grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.4fr); align-items:center; column-gap:2rem; }
  .resume-intro .actions { grid-column:2; }
  .resume-intro h1 { margin:0; }
  .contact-page-body .contact-page { display:grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); align-items:center; gap:clamp(3rem,7vw,7rem); }
}
@media screen and (max-width:900px) {
  .contact-methods { border:0; border-top:1px solid var(--line); padding:1.35rem 0 0; margin-top:1.5rem; max-width:40rem; }
}
@media screen and (max-width:700px) and (orientation:portrait) {
  .resume-summary { font-size: 1.1rem; }
  .background-section .experience>p, .background-section .experience li { font-size:1.075rem; line-height:1.6; }
  .contact-page-body .contact-page { min-height:0; }
  .signal-readout { padding-top:4.3%; }
  .signal-readout span, .receipt-heading span, .receipt-heading strong, .receipt-line { font-size: .85rem; }
  .receipt-heading { gap: .15rem .4rem; }
  .scenario-bar .scenario-reset { flex:0 1 auto; margin:0; padding: .2rem .15rem; min-height:44px; }
}
@media screen and (max-width: 700px) {
  .atlas-page .command-in-title .atlas-rail { display: none; }
  .command-in-title .workspace-heading>div { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap: .5rem; }
  .command-in-title .workspace-heading .command-trigger { grid-column:2; grid-row:1; justify-self:end; }
  .command-in-title .workspace-subtitle { grid-column:1/-1; margin-top:.25rem; }
}
@media screen and (max-width: 370px) {
  .header, .atlas-page .header { gap:.2rem .3rem; }
  .header .brand { font-size:1rem; gap:.3rem; }
  .header .brand::before { width:.9rem; height:.85rem; }
  .header .nav-toggle span[aria-hidden] { display:none; }
  .header .nav-toggle { min-width:44px; justify-content:center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: white !important; color: black !important; }
  .masthead, .site-footer, .resume-index, .actions, .telemetry-choice, .background-closing { display: none !important; }
  .wrap { width: 100%; }
  .page-intro, .background-section, .experience { padding-block: .5rem; }
  .page-intro h1 { font-size: 24pt; }
  .background-section-heading { margin-bottom: .5rem; }
  .background-section-heading h2 { font-size: 15pt; }
  .experience { display: block; break-inside: avoid; }
  .background-section .experience h3 { font-size: 13pt; }
  .resume-page main p, .background-section .experience li, .experience-meta, .technical-range dd, .technical-range dt, .credential-list li { font-size: 10pt; }
}
