:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --panel: #fff;
  --alternate: #edf2f8;
  --text: #15263d;
  --muted: #475b73;
  --accent: #1855a0;
  --line: #c7d3e1;
  --button: #184d91;
  --button-text: #fff;
  --focus: #1a66c0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #101923;
    --panel: #152231;
    --alternate: #121f2d;
    --text: #edf4fe;
    --muted: #b7c6d8;
    --accent: #95c2ff;
    --line: #364b63;
    --button: #a7caff;
    --button-text: #102441;
    --focus: #b5d4ff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101923;
  --panel: #152231;
  --alternate: #121f2d;
  --text: #edf4fe;
  --muted: #b7c6d8;
  --accent: #95c2ff;
  --line: #364b63;
  --button: #a7caff;
  --button-text: #102441;
  --focus: #b5d4ff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Inter", system-ui, sans-serif; line-height: 1.6; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: .23em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip { position: fixed; top: .6rem; left: 1rem; z-index: 5; background: var(--panel); padding: .75rem; }
.skip:not(:focus) { clip-path: inset(50%); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }
p + p { margin-top: .35rem; }
.top { background: var(--panel); border-bottom: 1px solid var(--line); }
.top-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .65rem 1rem; padding-block: .85rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-weight: 750; text-decoration: none; }
.mark { display: grid; place-items: center; width: 2.4rem; aspect-ratio: 1; background: var(--button); color: var(--button-text); border-radius: .35rem; font-size: .85rem; }
.primary { display: none; gap: 1.5rem; }
.primary a, .menu a { text-decoration: none; color: var(--text); }
.primary a:hover, .menu a:hover { text-decoration: underline; }
.language-switch { display: flex; align-items: center; gap: .2rem; margin-inline-start: auto; white-space: nowrap; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; min-height: 2rem; padding: .2rem; }
.language-switch a[aria-current="page"] { color: var(--text); font-weight: 700; text-decoration-thickness: 2px; }
.language-switch span { color: var(--muted); }
.utilities { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
button, summary { font: inherit; font-size: .875rem; cursor: pointer; border: 1px solid var(--line); border-radius: .35rem; background: var(--panel); color: var(--text); padding: .5rem .65rem; }
.menu { position: relative; }
.menu nav { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 2; display: grid; max-height: min(70vh, 32rem); overflow-y: auto; width: min(16rem, calc(100vw - 2rem)); padding: .5rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--panel); box-shadow: 0 12px 35px #0003; }
.menu nav a { padding: .43rem .6rem; }
.hero { --focus: #a4cdff; background: #0d192a; color: #f2f7ff; }
.hero-inner { display: grid; align-items: center; gap: clamp(1.5rem, 3vw, 2.5rem); padding-block: clamp(2.25rem, 7vw, 6rem); }
.hero-photo { display: block; width: min(100%, 34rem); height: auto; border-radius: .45rem; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .085em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(2.125rem, 5vw, 4.25rem); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; max-width: 22ch; overflow-wrap: anywhere; }
.hero .support { color: #c2d3e8; font-size: clamp(1.05rem, 2.1vw, 1.4rem); margin-top: 1.35rem; max-width: 54ch; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.55rem; }
.button { padding: .65rem 1.05rem; border: 1px solid var(--button); border-radius: .35rem; background: var(--button); color: var(--button-text); font-weight: 700; text-decoration: none; }
.button:hover { text-decoration: underline; }
.button.secondary { background: transparent; border-color: var(--line); color: var(--text); }
.hero .button { --button: #afd0ff; --button-text: #122640; --text: #f2f7ff; --line: #607b9b; }
.section { padding-block: clamp(2.8rem, 7vw, 5.2rem); border-bottom: 1px solid var(--line); }
.alternate { background: var(--alternate); }
.achievement-section { padding-block: 2rem; background: var(--panel); }
.achievement-section h2 { font-size: 1.35rem; }
.metric-grid, .case-grid, .development-grid { display: grid; gap: 1rem; }
.metric { border-top: 1px solid var(--line); padding: .85rem 0; }
.metric strong { color: var(--accent); font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric h3, .metric h4 { margin-block: .4rem .25rem; font-size: 1.25rem; line-height: 1.12; letter-spacing: -.035em; }
.achievement-groups { display: grid; gap: 1rem; }
.achievement-group > h3 { margin-bottom: .65rem; font-size: 1rem; }
.achievement-first-year-result { grid-column: 1 / -1; }
.achievement-first-year-result .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.achievement-first-year-result .metric strong { display: block; }
.achievement-first-year-result .metric h4 { font-size: clamp(1rem, 3vw, 1.25rem); overflow-wrap: anywhere; }
.lede { font-size: clamp(1.13rem, 2vw, 1.4rem); max-width: 45ch; }
.timeline { margin: 0 0 0 .37rem; padding: 0 0 0 1.2rem; list-style: none; border-left: 1px solid var(--line); }
.timeline > li { position: relative; display: grid; gap: .4rem 1.5rem; padding: 0 0 1.35rem; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: -1.5rem; top: .25rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
.career-meta p { margin-top: .25rem; font-size: .875rem; }
.role { font-weight: 700; color: var(--text); }
.case, .development-card { border: 1px solid var(--line); background: var(--panel); border-radius: .5rem; padding: clamp(1rem, 3vw, 1.5rem); min-width: 0; }
.case h3, .development-card h2 { margin-top: .65rem; font-size: 1.55rem; }
.case dl { margin-bottom: 0; }
.case dt { color: var(--text); font-weight: 700; margin-top: .65rem; }
.case dd { margin: 0; color: var(--muted); }
.leadership-intro { max-width: 60ch; }
.leadership-intro h3 { margin-bottom: .55rem; }
.development-card { border-top: 3px solid var(--accent); }
.development-card h2 { margin-bottom: .75rem; }
.contact { background: var(--alternate); }
.footer-inner { padding-block: 1.25rem; color: var(--muted); }
.cv { padding-block: 3rem; }
.cv h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.cv h2 { font-size: 1.6rem; margin-block: 1.6rem .65rem; }
@media (min-width: 40rem) {
  .wrap { width: min(100% - 3rem, 72rem); }
  .achievement-groups { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .metric-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
  .timeline > li { grid-template-columns: minmax(13rem, 1fr) minmax(0, 2fr); }
}
@media (max-width: 22.5rem) {
  .hero-inner { gap: .9rem; padding-block: 1.35rem; }
  .hero h1 { font-size: 1.875rem; }
  .hero .support { margin-top: .85rem; font-size: 1rem; line-height: 1.5; }
  .hero .current-role, .hero .actions { margin-top: .85rem; }
  .hero .actions { gap: .5rem; }
  .hero .button { padding: .5rem .55rem; font-size: .9375rem; }
}
@media (min-width: 58rem) {
  .primary { display: flex; }
  .utilities { margin-inline-start: 0; }
  .hero-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.5rem, 3.8vw, 3.75rem); text-wrap: balance; }
  .achievement-first-year-result .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .case-grid, .development-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
  :root:not([data-theme]), :root[data-theme] { color-scheme: light; --text: #151515; --muted: #333; --bg: #fff; --accent: #153759; --line: #888; }
  .cv-header, .skip, footer { display: none; }
  .cv { width: 100%; padding: 0; }
  .timeline > li { break-inside: avoid; }
}

.current-role { margin-top: .8rem; font-weight: 700; }
.hero .current-role { color: #f2f7ff; margin-top: 1.15rem; }
.positioning { margin-top: .8rem; }
.section-link { margin-top: 1.25rem; }
.detail { max-width: 72ch; }
.detail .lede, .detail .metric { margin-top: 1rem; }

.profile-copy { max-width: 76ch; }
.profile-copy p + p { margin-top: .85rem; }
.profile-copy .positioning { color: var(--accent); font-weight: 700; margin-bottom: 1rem; }
.capability-grid, .competency-groups, .qualification-groups { display: grid; gap: 1rem; }
.competency-groups { margin-top: 1.5rem; }
.competency-groups ul, .qualification-groups ul, .detail ul, .timeline ul { padding-inline-start: 1.2rem; }
.qualification-groups li + li { margin-top: .7rem; }
.assignment { margin-top: .65rem; }
.operating-steps { padding-inline-start: 1.5rem; }
.operating-steps h2 { margin-top: 1.5rem; }
.case h3 + p { margin-top: .6rem; }
@media (min-width: 40rem) {
  .capability-grid, .competency-groups, .qualification-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 58rem) {
  .capability-grid, main:not(.cv) .competency-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .qualification-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
  .cv { font-size: 10.5pt; line-height: 1.35; }
  .cv h1 { font-size: 26pt; }
  .cv h2, .cv h3 { break-after: avoid; }
  .cv .competency-groups, .cv .qualification-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv .timeline > li { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  }

.project-intro, .project-nav, .project-grid { margin-top: 1rem; }
.project-nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; padding: 0; list-style: none; }
.project-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.project-grid .case h3 { margin-top: 0; overflow-wrap: anywhere; }
.project-grid .case ul, .project-links { margin-bottom: 0; }
.project-links li + li { margin-top: .65rem; }
@media (min-width: 45rem) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
