/* System fonts only. The page follows the OS theme; the checkbox inverts it. */
:root {
  color-scheme: light;
  --page: #e7f0fa;
  --surface: #d9e8f7;
  --ink: #142e4b;
  --muted: #415b76;
  --accent: #205c96;
  --line: #a5bcd3;
  --button: #205c96;
  --button-ink: #f1f6fc;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration: underline; }
a:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
svg { flex: none; }
::selection { color: var(--page); background: var(--ink); }
.shell { width: min(calc(100% - 6rem), 70rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: .5rem; left: 1rem; z-index: 2; min-height: 44px; padding: .6rem 1rem; color: var(--button-ink); background: var(--button); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: .875rem; font-weight: 650; }
.theme-control { position: relative; flex: none; }
.theme-toggle-input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 100px; min-height: 44px; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: .875rem; font-weight: 600; cursor: pointer; }
.theme-toggle-input:hover + .theme-toggle { border-color: var(--accent); }
.theme-toggle-input:focus-visible + .theme-toggle { outline: 3px solid var(--accent); outline-offset: 4px; }
.theme-toggle .to-light { display: none; }
h1 { font-size: clamp(4.5rem, 8.5vw, 7rem); font-weight: 760; line-height: 1; letter-spacing: -.065em; }
h2 { font-size: clamp(1.75rem, 2.7vw, 2.4rem); line-height: 1.2; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: 1.375rem; line-height: 1.3; font-weight: 680; letter-spacing: -.025em; }
.role { margin-top: .75rem; font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em; }
.hero-target { max-width: 26rem; font-size: clamp(1.75rem, 2.5vw, 2rem); font-weight: 650; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
.location { margin-top: .875rem; color: var(--muted); }
.location span { padding-inline: .25rem; }
.availability { margin-top: .25rem; color: var(--muted); font-size: .875rem; }
.availability > span { display: block; }
.confidential { margin-top: .5rem; color: var(--muted); font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-width: 44px; min-height: 48px; padding: .625rem 1.125rem; border: 1px solid var(--accent); border-radius: 3px; font-size: .9375rem; font-weight: 650; text-decoration: none; }
.button-primary { color: var(--button-ink); background: var(--button); }
.button-primary:hover { text-decoration-thickness: 2px; }
.button-outline { color: var(--accent); background: transparent; }
.button-format { font: .6875rem/1.5 var(--mono); }
.summary-intro { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: 4rem; padding-block: 2rem; }
.summary-intro .identity { padding-bottom: 1rem; }
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-block: 1.25rem; border-block: 1px solid var(--line); }
.proof-strip > div { display: flex; flex-direction: column; justify-content: center; }
.proof-strip dt { font-size: 2.25rem; font-weight: 650; line-height: 1.2; letter-spacing: -.045em; color: var(--accent); font-variant-numeric: tabular-nums; }
.proof-strip dd { margin-top: .25rem; font-size: .875rem; color: var(--muted); }
.summary-depth { display: grid; grid-template-columns: 1fr 1.12fr; gap: 4rem; padding-block: 1.5rem; }
.summary-depth h2 { margin-bottom: .625rem; font-size: 1.25rem; letter-spacing: -.02em; }
.fit-links, .detail-navigation ul { padding: 0; list-style: none; }
.fit-links a, .detail-navigation a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; text-decoration: none; font-size: .9375rem; }
.fit-links a { color: var(--ink); }
.fit-links li + li { border-top: 1px solid var(--line); }
.fit-links a span, .detail-navigation a span { color: var(--accent); }
.fit-links a:hover, .detail-navigation a:hover { text-decoration: underline; }
.detail-navigation ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; border-top: 1px solid var(--line); padding-block: .75rem; color: var(--muted); font-size: .8125rem; }
.footer a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }

/* Detail pages use open sections and a single tinted layer for technical depth. */
.back-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.navigation { display: flex; flex-wrap: wrap; gap: 1rem; }
.navigation a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: .875rem; text-decoration: none; }
.detail-intro { padding-block: 2.5rem 2rem; display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.detail-intro h1 { font-size: 4.5rem; }
.detail-intro .hero-target { font-size: 1.625rem; max-width: 28rem; }
.detail-intro .hero-summary { margin-top: 1rem; color: var(--muted); max-width: 36rem; }
.detail-intro .availability { margin-top: .75rem; }
.hero-baseline { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1rem; border-block: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.main-content { padding-top: 3.5rem; }
.about-section { display: grid; grid-template-columns: 1fr 1.8fr; gap: 3rem; margin-bottom: 4rem; }
.about-copy > p { max-width: 46rem; }
.about-copy p + p { margin-top: 1rem; }
.trust-practices { margin-top: 1.5rem; }
.trust-practices > div { display: grid; grid-template-columns: 1fr 2fr; gap: 1.25rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.trust-practices dt { font-weight: 650; color: var(--accent); }
.trust-practices dd { color: var(--muted); }
.section-heading { margin-bottom: 1.5rem; }
.section-heading > p { margin-top: .875rem; color: var(--muted); max-width: 48rem; }
.fit-section { margin-bottom: 4.5rem; }
.fit-section h2 { max-width: 39rem; }
.fit-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 1rem; line-height: 1.65; }
.fit-table th, .fit-table td { text-align: left; vertical-align: top; padding: 1rem 1.25rem; }
.fit-table thead { background: var(--surface); }
.fit-table th:first-child { width: 34%; }
.fit-table thead th { font-size: .875rem; font-weight: 650; }
.fit-table tbody tr { border-bottom: 1px solid var(--line); }
.fit-table tbody th { color: var(--accent); font-weight: 600; }
.fit-table tbody td { color: var(--muted); }
.fit-table strong { color: var(--ink); font-weight: 600; }
.work-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.work-layout > *, .summary-intro > *, .summary-depth > *, .detail-intro > *, .about-section > *, .career-section > * { min-width: 0; }
.project { padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); }
.project + .project { margin-top: 1rem; }
.organization { margin-top: .5rem; color: var(--muted); }
.dates { margin-top: .625rem; font: .8125rem/1.6 var(--mono); color: var(--muted); }
.return-note { margin-top: .5rem; color: var(--muted); font-size: .875rem; }
.project-points { padding-left: 1.2rem; margin-top: 1.5rem; }
.project-points li + li { margin-top: .875rem; }
.project-points li::marker { color: var(--accent); }
.project-result { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.project-result svg { display: none; }
.project-result strong { color: var(--ink); }
.expertise-column { background: var(--surface); padding: 1.75rem; }
.expertise-panel h2 { font-size: 1.625rem; }
.capabilities { margin-top: 1.5rem; }
.capabilities > div + div { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.capabilities dt { font-weight: 650; }
.capabilities dd { margin-top: .5rem; color: var(--muted); font-size: .9375rem; }
.credentials { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.credentials h2 { font-size: 1.375rem; }
.credential { display: flex; align-items: center; gap: .75rem; margin-block: 1rem; }
.credential svg { width: 28px; height: 28px; color: var(--accent); }
.credential span { display: block; color: var(--muted); font-size: .875rem; }
.credential strong { display: block; }
.credential span + strong { margin-top: .6rem; }
.credential { align-items: flex-start; }
.education { font-size: .9375rem; }
.readiness-list { padding-left: 1.125rem; margin-top: 1.5rem; font-size: .9375rem; }
.readiness-list li + li { margin-top: .5rem; }
.samples-section { margin-top: 2rem; }
.sample-card { border-top: 1px solid var(--line); padding-block: 1.25rem; }
.sample-card > p { margin-block: .625rem .25rem; color: var(--muted); }
.inline-link, .link-action { display: inline-flex; align-items: center; gap: .5rem; min-width: 44px; min-height: 44px; font-weight: 600; }
.discretion { margin-block: .75rem 1rem; padding: 1rem 1.25rem; border-left: 3px solid var(--accent); background: var(--surface); font-size: .9375rem; color: var(--ink); }
.discretion-note { margin-top: 1.5rem; font-size: .875rem; color: var(--muted); }
.headshot { display: block; width: 8rem; height: 8rem; margin-bottom: 1.25rem; border-radius: 50%; object-fit: cover; border: 3px solid var(--line); }
.hero-scope { max-width: 28rem; margin-top: .625rem; color: var(--ink); }
.endorsement { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); }
.endorsement blockquote { margin: 0; color: var(--ink); font-style: italic; }
.endorsement figcaption { margin-top: .375rem; font-size: .875rem; color: var(--muted); }
.endorsement figcaption a { margin-left: .5rem; }
.discretion strong { color: var(--ink); }
.career-section { display: grid; grid-template-columns: 1fr 1.8fr; gap: 3rem; margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.career-intro > p { margin-top: .75rem; color: var(--muted); }
.career-intro .inline-link { margin-top: .75rem; }
.timeline { padding: 0; list-style: none; }
.timeline > li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.timeline > li:first-child { padding-top: 0; border-top: 0; }
.timeline .dates { margin: 0; }
.timeline h3 { font-size: 1.0625rem; }
.timeline h3 span { font-weight: 400; }
.timeline .organization { font-size: .9375rem; margin-top: .25rem; }
.career-description { color: var(--muted); margin-top: .75rem; }
.downloads-section { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.download-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.download-row h3 { font-size: 1.125rem; }
.download-row p { margin-top: .25rem; color: var(--muted); }
.file-meta { display: block; font: .75rem/1.8 var(--mono); margin-top: .25rem; }
.download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; flex: none; }
.download-link { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; min-width: 44px; padding: .5rem .875rem; border: 1px solid var(--accent); border-radius: 3px; text-decoration: none; font-size: .875rem; font-weight: 650; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: center; margin-block: 3rem 2rem; padding: 2rem; background: var(--surface); }
.contact h2 { font-size: 1.875rem; }
.contact p { margin-top: .875rem; color: var(--muted); }
.contact p a { display: inline-flex; align-items: center; min-height: 44px; }
.share-box { margin-top: 1.25rem; }
.share-box label { display: block; margin-bottom: .375rem; font-size: .875rem; font-weight: 600; color: var(--ink); }
.share-box textarea { box-sizing: border-box; width: 100%; padding: .75rem; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); font-family: inherit; font-size: .9375rem; line-height: 1.5; resize: vertical; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.contact-actions .button { overflow-wrap: anywhere; }
.details-page .footer { margin-top: 2rem; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 3rem); }
  .summary-intro, .summary-depth { gap: 2rem; }
  .work-layout { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
  .capabilities > div + div { margin: 0; padding: 0; border: 0; }
  .career-section { grid-template-columns: 1fr 2fr; gap: 2rem; }
}
@media (max-width: 700px) {
  .headshot { width: 6rem; height: 6rem; margin-bottom: 1rem; }
  .shell { width: calc(100% - 2.5rem); }
  .masthead { min-height: 68px; gap: 1rem; }
  .summary-intro { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 1.75rem; }
  .summary-intro .identity { padding: 0; }
  h1 { font-size: 5rem; }
  .role { font-size: 1.25rem; margin-top: .5rem; }
  .hero-target { max-width: 22rem; font-size: 1.75rem; }
  .location { font-size: .9375rem; }
  .availability { font-size: .875rem; max-width: 21rem; }
  .summary-case .actions { margin-top: 1rem; }
  .proof-strip { gap: 1rem; padding-block: 1.25rem; grid-template-columns: .9fr .9fr 1fr; }
  .proof-strip dt { font-size: 1.625rem; }
  .proof-strip > div:last-child dt { font-size: 1.25rem; letter-spacing: -.04em; }
  .proof-strip dd { font-size: .8125rem; line-height: 1.4; }
  .summary-depth { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 1.75rem; }
  .summary-depth h2 { font-size: 1.25rem; }
  .fit-links a { min-height: 48px; font-size: .9375rem; }
  .detail-navigation ul { column-gap: 1.5rem; }
  .detail-navigation a { min-height: 48px; font-size: .875rem; }
  .footer { padding-block: 1rem; }
  .details-page .masthead { flex-wrap: wrap; padding-block: .75rem; gap: .25rem 1rem; }
  .details-page .navigation { order: 3; flex-basis: 100%; justify-content: space-between; gap: .5rem; }
  .detail-intro { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2rem; }
  .detail-intro h1 { font-size: 4rem; }
  .hero-baseline { display: block; }
  .hero-baseline span { display: block; }
  .hero-baseline span + span { margin-top: .375rem; }
  .main-content { padding-top: 2.5rem; }
  .about-section { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 3rem; }
  .trust-practices > div { grid-template-columns: 1fr; gap: .5rem; }
  .fit-section { margin-bottom: 3.5rem; }
  .fit-table, .fit-table tbody { display: block; }
  .fit-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fit-table tr { display: block; padding-block: 1rem; }
  .fit-table th, .fit-table td { display: block; width: 100% !important; padding: 0; }
  .fit-table td { margin-top: .5rem; }
  .project { padding-block: 1.5rem; }
  .project + .project { margin-top: .5rem; }
  .expertise-column { padding: 1.5rem; }
  .capabilities { display: block; }
  .capabilities > div + div { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
  .capabilities dd, .education, .readiness-list { font-size: 1rem; }
  .career-section { grid-template-columns: 1fr; gap: 2rem; margin-top: 3.5rem; padding-top: 2.5rem; }
  .timeline > li { grid-template-columns: 1fr; gap: .5rem; }
  .timeline h3 { font-size: 1.125rem; }
  .downloads-section { margin-top: 3rem; padding-top: 2rem; }
  .download-row { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .contact { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; margin-top: 2rem; }
  .contact .button { font-size: .875rem; padding-inline: .875rem; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --page: #08192c; --surface: #143455; --ink: #eef5ff; --muted: #bed0e5; --accent: #9bcaff; --line: #406186; --button: #9bcaff; --button-ink: #0b1f38; }
  .theme-toggle .to-dark { display: none; }
  .theme-toggle .to-light { display: inline; }
}
:root:has(#theme-toggle:checked) { color-scheme: dark; --page: #08192c; --surface: #143455; --ink: #eef5ff; --muted: #bed0e5; --accent: #9bcaff; --line: #406186; --button: #9bcaff; --button-ink: #0b1f38; }
:root:has(#theme-toggle:checked) .to-dark { display: none; }
:root:has(#theme-toggle:checked) .to-light { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:has(#theme-toggle:checked) { color-scheme: light; --page: #e7f0fa; --surface: #d9e8f7; --ink: #142e4b; --muted: #415b76; --accent: #205c96; --line: #a5bcd3; --button: #205c96; --button-ink: #f1f6fc; }
  :root:has(#theme-toggle:checked) .to-light { display: none; }
  :root:has(#theme-toggle:checked) .to-dark { display: inline; }
}
@media (forced-colors: active) {
  .button, .theme-toggle, .download-link { border: 1px solid ButtonText; }
  a:focus-visible, .theme-toggle-input:focus-visible + .theme-toggle { outline-color: Highlight; }
}
@media print {
  :root, :root:has(#theme-toggle:checked) { color-scheme: light; --page: #fff; --surface: #fff; --ink: #000; --muted: #333; --accent: #333; --line: #777; --button: #fff; --button-ink: #000; }
  @page { margin: 15mm; }
  body { font-size: 10pt; }
  .shell { width: 100%; }
  .masthead, .skip-link, .actions, .download-actions, .contact-actions, .summary-depth { display: none; }
  .summary-intro, .detail-intro { padding-block: 0 18pt; }
  .work-layout, .career-section, .about-section { display: block; }
  .expertise-column, .career-section, .downloads-section { margin-top: 18pt; padding-top: 12pt; }
  .project, .sample-card, .timeline > li, .capabilities > div, .credentials { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  .footer { margin-top: 18pt; }
}
