@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --ink: #14263a;
  --muted: #4d5e70;
  --accent: #1453a2;
  --line: #d2dee8;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color: var(--ink);
  background: #f6f9fc;
  font-family: "DM Sans", Arial, sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid #0868be; outline-offset: 4px; }
::selection { background: #cce6ff; color: #102e4c; }
.wrap { width: min(89%, 1250px); margin-inline: auto; }
.skip { position: absolute; left: 2rem; top: 0; z-index: 5; padding: 10px; background: white; transform: translateY(-120%); }
.skip:focus { transform: none; }
.mast { border-bottom: 1px solid var(--line); background: #fbfdff; }
.header-inner, .brand, nav, .identity, .primary, .chart-head, .footer-inner, .footer-base { display: flex; align-items: center; }
.header-inner { flex-wrap: wrap; column-gap: 12px; justify-content: space-between; min-height: 75px; }
.brand img { flex: none; }
.brand { gap: 12px; font-weight: 680; font-size: 1.0625rem; letter-spacing: -.04em; }
nav { flex-wrap: wrap; gap: clamp(15px, 2.8vw, 38px); font-size: 0.875rem; font-weight: 550; }
nav a, .footer-base a, .no-js { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
nav a { padding-block: 10px; }
.brand { min-height: 44px; min-width: 44px; }
nav a:hover, .footer-base a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-contact { border-left: 1px solid var(--line); padding-left: clamp(14px, 2.5vw, 30px); }
.nav-contact span { color: var(--accent); }
main { position: relative; isolation: isolate; background: radial-gradient(ellipse 64% 520px at 95% 0, #dceeff 0, transparent 95%); }
main::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: 65%;
  height: 36rem;
  max-height: 75vh;
  pointer-events: none;
  background-image: radial-gradient(circle, #3e739a38 .7px, transparent .9px);
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse at 75% 18%, black, transparent 72%);
}
.hero { display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); gap: clamp(36px, 5vw, 84px); align-items: center; padding-block: clamp(52px, 6.8vw, 108px); }
.identity { gap: 14px; color: #304761; font-size: 1.0625rem; line-height: 1.5; font-weight: 580; letter-spacing: -.015em; }
.identity img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 1px var(--line); }
h1 { overflow-wrap: anywhere; font-weight: 520; font-size: clamp(3.3125rem, 5.8vw, 5.5rem); letter-spacing: -.078em; line-height: 1.06; margin: 22px 0 13px -.055em; }
.title { font-size: clamp(1.125rem, 1.52vw, 1.5rem); letter-spacing: -.03em; line-height: 1.4; }
.title strong { font-weight: 620; color: var(--accent); }
.intro { margin-top: 19px; max-width: 48ch; font-size: 1rem; color: var(--muted); line-height: 1.65; }
.primary { max-width: 100%; overflow-wrap: anywhere; gap: 23px; width: fit-content; padding: 12px 17px; border-radius: 6px; background: var(--accent); color: white; font-size: 0.875rem; font-weight: 550; transition: background .18s; }
.primary:hover { background: #0e458c; }
/* The shaft and head use borders so arrow rendering is independent of fonts. */
.arrow {
  --angle: 0deg;
  display: inline-block;
  flex: none;
  position: relative;
  width: 13px;
  height: 13px;
  transform: rotate(var(--angle));
}
.arrow::before, .arrow::after { content: ""; position: absolute; }
.arrow::before { top: 50%; left: 0; right: 1px; border-top: 1.5px solid currentColor; transform: translateY(-50%); }
.arrow::after { right: 1px; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.arrow-down { --angle: 90deg; }
.arrow-out { --angle: -45deg; }
.arrow-up { --angle: -90deg; }
.primary { min-height: 44px; }
.primary:active { background: #103964; }
footer .primary:active { background: #b4d8f4; }
.profile .primary { margin-top: 25px; }
.timeline {
  min-width: 0;
  container-type: inline-size;
  --axis: 6.5rem;
  padding: clamp(20px, 2.5vw, 36px);
  border-radius: 13px;
  background: radial-gradient(ellipse at 100% 0, #194a72 0%, transparent 62%), #102c48;
  color: #f5faff;
  box-shadow: inset 0 1px 0 #cae9ff33, 0 2px 4px #10375114, 0 18px 35px -24px #10375185;
}
.chart-head { flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.chart-head h2 { font-size: 1.1875rem; font-weight: 580; letter-spacing: -.035em; }
.chart-range, .scale, #selected-meta { font: 0.8125rem/1.5 var(--mono); color: #c6d9e9; font-variant-numeric: tabular-nums; }
.chart-cue { color: #d1dfec; font-size: 0.875rem; line-height: 1.5; margin: 4px 0 18px; }
#chart:empty { display: none; }
.scale { position: relative; font-size: 0.75rem; height: 1.8em; margin-left: var(--axis); }
.scale span { position: absolute; }
.scale span:last-child { max-width: 100%; translate: -26% 0; }
.series { width: 100%; display: grid; grid-template-columns: var(--axis) 1fr; align-items: stretch; background: transparent; border: 0; color: #cfdeea; padding: 0; cursor: pointer; text-align: left; }
.series-label::before { content: ""; width: 6px; height: 6px; border: 1px solid #8da9c2; border-radius: 50%; margin-right: 6px; flex: none; }
.series[aria-pressed=true] .series-label::before { background: #8de7c7; border-color: #8de7c7; }
.series:focus-visible { outline-color: #a3d9ff; outline-offset: 0; }
.series-label { font-size: 0.875rem; display: flex; align-items: center; min-height: 32px; }
.track { display: block; position: relative; background-image: linear-gradient(to right, #456480 1px, transparent 1px); background-size: var(--grid-step) 100%; border-bottom: 1px solid #ffffff0c; }
.bar { display: block; position: absolute; top: 50%; transform: translateY(-50%); height: 7px; border-radius: 2px; background: #8fb4d3; transition: background-color .18s; }
@media (hover: hover) {
  .series:hover { background: #ffffff0b; color: white; }
}
.series[aria-pressed=true] { background: linear-gradient(90deg, transparent, #8de7c712); }
.series[aria-pressed=true] .bar::after { content: ""; position: absolute; right: 0; top: -2px; width: 2px; height: 11px; background: #dbfff3; }
.series[aria-pressed=true] .series-label { color: #b5f7e1; font-weight: 600; }
.series[aria-pressed=true] .bar { background: #8de7c7; }
.selection { min-width: 0; overflow-wrap: anywhere; }
.readout { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; min-height: 108px; margin-top: 19px; padding-top: 17px; border-top: 1px solid #47637d; }
#selected-company { color: #a9eed4; font-size: 0.875rem; margin-bottom: 4px; }
.readout h3 { font-size: clamp(1.0625rem, 1.45vw, 1.375rem); line-height: 1.25; font-weight: 540; letter-spacing: -.035em; }
#selected-meta { margin-top: 6px; font-size: 0.8125rem; }
.role-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid #92adc4;
  border-radius: 6px;
  color: #edf7ff;
  font-size: 0.875rem;
  white-space: nowrap;
}
.role-link:hover { border-color: #a9eed4; color: #b5f7e1; }
.role-link:focus-visible { outline-color: #a3d9ff; }
.no-js { display: inline-flex; margin-top: 12px; text-decoration: underline; }
.work { background: white; border-block: 1px solid var(--line); }
.work .wrap, .background { padding-block: clamp(43px, 4.6vw, 74px); }
.section-head { margin-bottom: 25px; }
.section-head h2, .footer-inner h2 { font-size: clamp(2rem, 3.3vw, 3.1875rem); font-weight: 540; letter-spacing: -.065em; line-height: 1.1; }
.jobs { position: relative; }
.jobs li { position: relative; display: grid; grid-template-columns: 22% 1fr 20%; gap: 2%; align-items: baseline; padding: 23px 0; border-top: 1px solid var(--line); }
.jobs li:last-child { border-bottom: 1px solid var(--line); }
.jobs li:target { background: linear-gradient(90deg, #e5f2ff, #f5faff 78%, transparent); }
.jobs li:target::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); }
.jobs li:target:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dates, .place { font-size: 0.8125rem; color: var(--muted); }
.dates { display: flex; align-items: center; gap: 10px; padding-left: 12px; font: 0.75rem/1.6 var(--mono); font-variant-numeric: tabular-nums; }
.dates::before { content: ""; flex: none; width: 6px; height: 6px; border: 1px solid #9baebd; border-radius: 50%; }
.jobs li:first-child .dates::before { background: var(--accent); border-color: var(--accent); }
.jobs li:first-child .dates { color: var(--accent); }
.jobs h3, .credentials h3 { font-size: clamp(1.1875rem, 1.7vw, 1.625rem); letter-spacing: -.045em; font-weight: 570; line-height: 1.25; }
.company { margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }
.detail { font-size: 0.875rem; line-height: 1.6; max-width: 56ch; margin-top: 12px; color: var(--muted); }
.place { text-align: right; }
.credentials { display: grid; grid-template-columns: 1.65fr 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fcfdff; }
.credentials > div { min-width: 0; overflow-wrap: anywhere; padding: clamp(20px, 2.3vw, 33px); }
.education { background: linear-gradient(125deg, #e3f0fc, #f3f8fd); }
.study-years { display: inline-block; margin-left: 8px; padding-left: 10px; border-left: 1px solid #b6ccdd; line-height: 1.1; font-variant-numeric: tabular-nums; }
.credentials > div + div { border-left: 1px solid var(--line); }
.field { font: 0.8125rem/1.5 var(--mono); color: var(--accent); margin-bottom: 14px; }
.credentials h3:not(.field) { margin-bottom: 8px; }
.credentials .field { font: 500 .875rem/1.5 var(--mono); letter-spacing: .015em; }
.credentials p:not(.field), .credentials li { line-height: 1.65; font-size: 0.9375rem; }
.muted { color: var(--muted); }
footer { color: white; background: #102c48; }
.footer-inner, .footer-base { flex-wrap: wrap; overflow-wrap: anywhere; justify-content: space-between; gap: 20px; }
.footer-inner { padding-block: clamp(35px, 4.8vw, 72px); }
.footer-inner .field { color: #bcd5e9; margin-bottom: 6px; }
footer :focus-visible { outline-color: #a3d9ff; }
footer .primary { background: #dcefff; color: #12385a; }
footer .primary:hover { background: white; }
.footer-base { border-top: 1px solid #405e78; padding-block: 19px; color: #d2e2ed; font-size: 0.875rem; }
@media (min-width: 761px) and (max-width: 1000px), (max-width: 500px) {
  .readout { grid-template-columns: 1fr; align-content: start; gap: 5px; min-height: 10.5rem; }
  .role-link { justify-self: start; padding-inline: 0; min-height: 44px; border: none; color: #d3e7f6; }
  .role-link:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 850px) {
  .hero { gap: 26px; grid-template-columns: minmax(0,.93fr) minmax(0,1.07fr); }
  .timeline { --axis: 6.4rem; padding: 20px; }
  .jobs li { grid-template-columns: 24% 1fr; gap: 5px 3%; }
  .place { grid-column: 2; text-align: left; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 64px; }
  nav { font-size: 0.8125rem; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 30px; padding-block: 34px; }
  .identity img { width: 51px; height: 51px; }
  h1 { margin-top: 17px; font-size: clamp(3rem, 10vw, 4.25rem); }
  .intro { margin-top: 12px; }
  .profile .primary { margin-top: 19px; }
  .jobs li { display: block; padding-block: 19px; }
  .dates { margin-bottom: 7px; }
  .place { margin-top: 6px; }
  .credentials { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .credentials > div:first-child { grid-column: 1 / -1; }
  .credentials > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .credentials > div:last-child { border-left: 1px solid var(--line); }
  .jobs li { padding-inline: 14px; }
  .dates { padding-left: 0; }
  main::before { width: 80%; height: 290px; }
}
@media (max-width: 440px) {
  .header-inner .brand { font-size: 0; gap: 0; }
  .wrap { width: 90%; }
  .timeline { --axis: 6.4rem; padding: 18px 16px; }
  
  
  .footer-inner { flex-wrap: wrap; }
}
@media (pointer: coarse), (max-width: 760px) {
  .series-label { min-height: 44px; }
  .series { touch-action: manipulation; }
}
section[id], footer[id], .jobs li[id] { scroll-margin-top: 20px; }
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .bar, .primary { transition: none; }
}

/* Thin the axis before enlarged year labels compete for space. */
@container (max-width: 23rem) {
  .scale span:nth-child(even) { visibility: hidden; }
}
@container (max-width: 17.5rem) {
  .scale span:not(:first-child):not(:last-child) { visibility: hidden; }
  .scale span:last-child { translate: -60% 0; }
  .scale { margin-left: 0; }
  .series { grid-template-columns: minmax(0, 1fr); padding-block: 5px; }
  .series-label { min-height: 1.5em; }
  .track { height: 12px; }
}
@media (forced-colors: active) {
  .bar, .series[aria-pressed=true] .bar { forced-color-adjust: none; background: ButtonText; }
  .series[aria-pressed=true] .bar::after { background: Highlight; }
  .series[aria-pressed=true] .series-label::before { border: 3px double ButtonText; }
  .series[aria-pressed=true] { outline: 1px dashed ButtonText; outline-offset: -2px; }
  .series:focus-visible { outline: 3px solid Highlight; outline-offset: 0; }
}
