:root {
  color-scheme: dark;
  --mist: #231238;
  --lilac: #2c1848;
  --paper: #183259;
  --deep: #0b1a33;
  --ink: #f1f7ff;
  --soft: #d3dcf0;
  --accent: #94c9ff;
  --accent-hover: #bcdcff;
  --cyan: #79e6f0;
  --sky: #aec2ff;
  --ice: #a9dcff;
  --bright: #4fa6ff;
  --line: #35598c;
  --on-accent: #06182f;
  --focus: #8ff6ff;
  --serif: "Sitka Heading", "Iowan Old Style", "Palatino Linotype", Constantia, Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 20px 44px -24px rgba(8, 2, 20, .85);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 17px/1.62 var(--sans); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.14; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.9vw, 3.8rem); }
h1 em { color: var(--accent); font-style: italic; display: block; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h2::after { content: ""; display: block; width: 62px; height: 6px; margin-top: .32em; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--paper); padding: 8px 14px; border-radius: 8px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; padding: 12px clamp(18px, 5vw, 64px); background: rgba(27, 13, 45, .97); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.18rem var(--serif); color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-style: italic; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.top nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { border-color: var(--bright); }

main > section { padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 64px); }
main > section > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.tint { background: var(--lilac); }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 30px; background: radial-gradient(900px 480px at 86% 12%, rgba(150, 104, 232, .38), transparent 64%), radial-gradient(760px 440px at 0% 100%, rgba(178, 84, 196, .22), transparent 62%); max-width: none; }
.hero > * { width: 100%; max-width: 620px; }
.hero-art { max-width: 470px; justify-self: start; }
.hero-copy { justify-self: end; }
.kicker { font-weight: 700; color: var(--cyan); letter-spacing: .08em; text-transform: uppercase; font-size: .84rem; }
.lede { font-size: 1.2rem; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--accent); background: transparent; color: var(--accent); }
.btn:hover { background: rgba(148, 201, 255, .16); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.small { padding: 7px 15px; font-size: .92rem; }
.btn.ghost { border-color: #6fb4f2; color: var(--ink); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary:disabled:hover { background: var(--accent); }
.hero-art svg { width: 100%; height: auto; display: block; }
.node-label { font: 700 19px var(--serif); fill: #ffffff; paint-order: stroke; stroke: rgba(5, 18, 40, .55); stroke-width: 3px; }
.rod { fill: none; stroke: #5d93d4; stroke-width: 7; stroke-linejoin: round; opacity: .75; }
/* a short light passing along each connector, to show the three feeding one another */
.rod-light { fill: none; stroke: #bff6fb; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 12 88; animation: flow 6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -100; } }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 270px) minmax(0, .9fr); gap: 34px; align-items: start; }
.portrait { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 8px 8px 0; box-shadow: var(--shadow); }
.portrait img { display: block; width: 100%; height: auto; border-radius: 12px; }
.portrait figcaption { padding: 9px 8px 12px; font-size: .9rem; line-height: 1.5; color: var(--soft); }
.portrait figcaption strong { display: block; margin-bottom: .35em; text-align: center; color: var(--ink); }
.portrait figcaption p { margin: 0; }
.big { font: 1.55rem/1.35 var(--serif); }
.threads { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.threads li { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow); border-left: 8px solid var(--bright); }
.threads h3 { margin-bottom: .2em; }
.threads p { margin: 0; color: var(--soft); }
.threads .t-product, .card.t-product { border-color: var(--cyan); }
.threads .t-operations, .card.t-operations { border-color: var(--sky); }

.reel { max-width: 592px; margin: 34px auto 0; padding: 14px 15px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); text-align: center; }
.reel figcaption { font: 700 1.18rem var(--serif); margin-bottom: 10px; }
.reel-frame { position: relative; aspect-ratio: 560 / 314; background: var(--deep); border-radius: 10px; }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.reel-frame:focus-within, .reel-frame.has-focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.reel p { margin: 10px 0; font-size: .9rem; color: var(--soft); }

.sub { color: var(--soft); max-width: 1180px; }
#journey { padding-top: 34px; }
#journey h2 { margin-bottom: .3em; }
#journey .sub { margin-bottom: .8em; }
/* One identity per industry lane: accent for lines and fills, a lighter ink for text. The plane in app.js uses the same accents. */
.t-education { --tone: #22c7a6; --tone-ink: #5fe3c6; --tone-rgb: 34, 199, 166; }     /* teal */
.t-research { --tone: #b89aff; --tone-ink: #d6c7ff; --tone-rgb: 184, 154, 255; }     /* periwinkle */
.t-technology { --tone: #1e94ff; --tone-ink: #9fd0ff; --tone-rgb: 30, 148, 255; }    /* clear blue */
.t-retail { --tone: #b2f2f2; --tone-ink: #cdf8f8; --tone-rgb: 178, 242, 242; }       /* soft turquoise */

/* Scene and role list on the left, the information panel beside them. */
.journey { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(340px, 1fr); grid-template-areas: "scene panel" "nav panel"; gap: 14px 24px; align-items: start; }
.scene-col { grid-area: scene; background: #0c1d3a; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; overflow: clip; box-shadow: var(--shadow); }
.detail { grid-area: panel; }
.navigator { grid-area: nav; }
.journey[data-layout="wide"] { grid-template-areas: "scene panel" "skills panel" "nav panel"; }
.journey[data-layout="rail"] { grid-template-columns: 236px minmax(0, 1.85fr) minmax(320px, 1fr); grid-template-areas: "skills scene panel" "skills nav panel"; grid-template-rows: auto 1fr; column-gap: 18px; }

/* Skills for the role in focus: new ones bright, earlier ones quiet. */
.skills { grid-area: skills; min-width: 0; align-self: start; background: #12294d; border: 1px solid var(--line); border-radius: 20px; padding: 12px 12px 14px; box-shadow: var(--shadow); }
.skills h3 { font-size: 1.08rem; margin: 0; }
.skills-count { margin: 0 0 .5em; font-size: .78rem; font-weight: 700; color: var(--cyan); }
.skills h4, .skills summary, .skills-group { font: 700 .72rem/1.35 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--soft); margin: 0 0 .45em; }
.skills ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 .3em; padding: 0; }
.skills li { font-size: .73rem; line-height: 1.25; padding: 1px 7px; border-radius: 999px; border: 1px solid #35598c; color: var(--soft); }
.skills-here li { border-color: #6fb4f2; color: var(--ink); background: #1d4274; font-weight: 600; }
.skills-here li.is-new { background: var(--focus); border-color: var(--focus); color: var(--on-accent); animation: arrive .7s ease; }
@keyframes arrive { from { box-shadow: 0 0 0 5px rgba(143, 246, 255, .45); } to { box-shadow: 0 0 0 0 rgba(143, 246, 255, 0); } }
.skills-key { display: flex; align-items: center; gap: 6px; margin: .2em 0 0; font-size: .7rem; color: var(--soft); }
.skills-key[hidden] { display: none; }
.skills-key span { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--focus); }
.skills-more { margin-top: .6em; padding-top: .55em; border-top: 1px solid var(--line); }
.skills summary { list-style: none; cursor: default; }
.skills summary::-webkit-details-marker { display: none; }
.skills .skills-group { text-transform: none; letter-spacing: 0; font-size: .74rem; margin: .35em 0 .35em; }
.journey[data-layout="wide"] .skills-body, .journey[data-layout="stacked"] .skills-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); column-gap: 18px; align-items: start; }
.journey[data-layout="wide"] .skills-more, .journey[data-layout="stacked"] .skills-more { margin: 0; padding: 0 0 0 16px; border-top: 0; border-left: 1px solid var(--line); }

/* clip, not hidden: a hidden box can still be scrolled by focus, which would slide the lanes out of place */
.scene { position: relative; height: clamp(300px, calc(100vh - 420px), 450px); overflow: hidden; overflow: clip; background: radial-gradient(440px 190px at 50% 0%, rgba(80, 190, 255, .3), transparent 72%), linear-gradient(180deg, #12294d 0%, #0d1f3d 55%, #09162d 100%); }
.scene > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.leading { position: absolute; z-index: 70; top: 8px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 14px; border-radius: 999px; background: rgba(8, 22, 44, .92); border: 1px solid var(--line); white-space: nowrap; max-width: calc(100% - 16px); }
.leading-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.leading-role { display: flex; gap: 5px; align-items: baseline; font: inherit; font-size: .78rem; color: var(--ink); background: transparent; border: 1px solid var(--tone); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.leading-role strong { color: var(--tone-ink); }

.cards3d { position: absolute; inset: 0; pointer-events: none; }
.role-card { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 11px 15px 13px; font: inherit; color: var(--ink); background: linear-gradient(180deg, rgba(var(--tone-rgb), .09), rgba(var(--tone-rgb), 0) 45%), linear-gradient(165deg, #18345e, #11284b); border: 2px solid rgba(var(--tone-rgb), .75); border-top: 8px solid var(--tone); border-radius: 14px; box-shadow: 0 22px 30px -16px rgba(2, 8, 20, .9); cursor: pointer; pointer-events: auto; will-change: transform, opacity; }
.rc-when { font-size: .82rem; font-weight: 700; color: var(--tone-ink); }
.rc-org { font: 700 1.28rem/1.15 var(--serif); }
.rc-role { font-size: .93rem; line-height: 1.3; color: var(--soft); }
/* In focus: the lane colour stays, and a white outline with a pointer marks the choice without relying on hue. */
.role-card.is-focus { border-color: var(--tone); outline: 2px solid #ffffff; outline-offset: 3px; box-shadow: 0 24px 30px -16px rgba(2, 8, 20, .9); }
.role-card.is-focus .rc-when::before { content: "\25B6"; margin-right: .45em; font-size: .75em; color: #ffffff; }
.role-card.is-leader::after { content: "Leading today"; position: absolute; top: -15px; right: 10px; font-size: .68rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--tone); color: var(--on-accent); }
/* Distant cards carry only the years and the employer, in type large enough to read when small. */
.role-card.is-far .rc-role { visibility: hidden; }
.role-card.is-far .rc-when { font-size: 1.05rem; }
.role-card.is-far .rc-org { font-size: 1.42rem; }

.lane-names { position: absolute; z-index: 65; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 18px 6px 6px; list-style: none; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(9, 22, 45, .96) 62%); }
.lane-names li { text-align: center; font-size: .74rem; font-weight: 700; line-height: 1.2; color: var(--tone-ink); border-top: 5px solid var(--tone); border-radius: 0 0 8px 8px; background: linear-gradient(rgba(var(--tone-rgb), .24), rgba(var(--tone-rgb), .24)), #0b1a33; padding: 4px 2px 5px; }
.lane-names li.is-current { outline: 2px solid #ffffff; outline-offset: -2px; text-decoration: underline; text-underline-offset: 3px; }
.lane-names .short { display: none; }

.side { position: absolute; z-index: 80; top: 50%; transform: translateY(-50%); width: 40px; height: 56px; display: grid; place-items: center; font: 700 1.2rem var(--sans); color: var(--ink); background: rgba(8, 22, 44, .9); border: 2px solid #6fb4f2; border-radius: 14px; cursor: pointer; }
.side:hover { background: var(--paper); border-color: var(--focus); }
.side-prev { left: 8px; }
.side-next { right: 8px; }

.toolbar { position: relative; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 9px 14px 11px; background: rgba(8, 20, 40, .97); }
.toolbar #toggle { min-width: 96px; }
.jump { display: none; }
.play-state { margin-left: auto; font-size: .9rem; color: var(--soft); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(148, 201, 255, .2); }
.progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--accent), var(--cyan)); }

.navigator { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.nav-group { display: flex; flex-direction: column; gap: 5px; }
.nav-group p { margin: 0; min-height: 2.9em; font-size: .74rem; font-weight: 700; line-height: 1.2; color: var(--tone-ink); background: rgba(var(--tone-rgb), .18); border-bottom: 5px solid var(--tone); border-radius: 8px 8px 0 0; display: flex; align-items: flex-end; padding: 3px 7px 4px; }
.nav-role { display: flex; justify-content: space-between; align-items: center; gap: 6px; text-align: left; font: inherit; font-size: .8rem; line-height: 1.2; color: var(--ink); background: var(--paper); border: 1px solid rgba(var(--tone-rgb), .6); border-left: 6px solid var(--tone); border-radius: 10px; padding: 6px 9px 6px 7px; cursor: pointer; }
.nav-role span { font-size: .72rem; color: var(--soft); white-space: nowrap; }
.nav-role:hover { border-color: var(--tone); background: #21447a; }
.nav-role.is-active, .nav-role.is-active:hover { background: var(--tone); border-color: var(--tone); color: var(--on-accent); box-shadow: 0 0 0 2px #0b1a33, 0 0 0 4px #ffffff; }
.nav-role.is-active strong::before { content: "\25B6"; margin-right: .4em; font-size: .75em; }
.nav-role.is-active span { color: var(--on-accent); }

/* The information panel for the role in focus. */
.detail { position: relative; align-self: start; background: var(--paper); border-radius: 22px; padding: 0 0 6px; box-shadow: var(--shadow); border: 2px solid var(--tone); }
.detail.enter .detail-body, .detail.enter .detail-top > * { animation: rise .35s ease; }
@keyframes rise { from { opacity: .45; transform: translateY(6px); } }
.detail-top { display: flex; align-items: center; gap: 10px; padding: 11px 18px; background: var(--tone); color: var(--on-accent); border-radius: 19px 19px 0 0; }
.detail-when { margin: 0; font: 700 1.2rem var(--serif); white-space: nowrap; }
.badge { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--on-accent); color: var(--ink); font-weight: 700; font-size: .9rem; }
.chip { margin-left: auto; font-size: .74rem; font-weight: 700; line-height: 1.25; text-align: right; padding: 3px 11px; border-radius: 12px; background: var(--on-accent); color: var(--ink); border: 2px solid #ffffff; }
.chip::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; background: var(--tone); }
.detail-body { padding: 14px 20px 8px; }
.detail h3 { font-size: 1.5rem; margin-bottom: .1em; }
.detail-role { color: var(--tone-ink); font-weight: 700; margin-bottom: .5em; line-height: 1.35; }
.detail-lead { font-family: var(--serif); font-size: 1.08rem; line-height: 1.45; margin-bottom: .6em; }
.detail h4 { font: 700 .76rem var(--sans); text-transform: uppercase; letter-spacing: .09em; color: var(--soft); margin: 0 0 .5em; padding-top: .6em; border-top: 1px solid var(--line); }
.detail ul { padding-left: 1.1em; margin: 0; color: var(--soft); line-height: 1.5; }
.detail li { margin-bottom: .35em; }
.detail li::marker { color: var(--tone); }
.detail-count { font-size: .82rem; color: var(--soft); margin: 0 0 .5em; }

/* Stacked: scene, then the panel directly under it, then the role list. */
.journey[data-layout="stacked"] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "scene" "panel" "skills" "nav"; gap: 12px; }
.journey[data-layout="stacked"] .scene { height: clamp(250px, calc(100vh - 520px), 400px); }
@media (min-width: 660px) {
  .journey[data-layout="stacked"] .detail-body { display: grid; grid-template-columns: 1fr 1.15fr; column-gap: 26px; }
  .journey[data-layout="stacked"] .detail h4 { border-top: 0; padding-top: .2em; }
}
@media (max-width: 700px) {
  .journey[data-layout="stacked"] .skills-body { display: block; }
  .journey[data-layout="stacked"] .skills-more { margin-top: .5em; padding: 0; border-left: 0; border-top: 1px solid var(--line); }
  .skills summary { display: list-item; list-style: disclosure-closed inside; cursor: pointer; margin: 0; padding: 10px 0 6px; }
  .skills details[open] > summary { list-style-type: disclosure-open; margin-bottom: .3em; }
  .skills li { font-size: .78rem; padding: 2px 9px; }
  .journey[data-layout="stacked"] .scene { height: clamp(196px, calc(100vh - 460px), 330px); }
  .navigator { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jump { display: block; flex: 1 1 130px; min-width: 0; }
  .jump select { width: 100%; font: inherit; font-size: .85rem; color: var(--ink); background: var(--paper); border: 2px solid var(--tone, #6fb4f2); border-left-width: 9px; border-radius: 999px; padding: 4px 10px; }
  .toolbar { gap: 8px; padding: 6px 8px 8px; }
  .toolbar #toggle { min-width: 82px; }
  .play-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .leading { top: 5px; gap: 5px; padding: 3px 5px; }
  .leading-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .leading-role { font-size: .7rem; padding: 1px 7px; }
  .leading-role span { display: none; }
  .role-card { padding: 7px 10px 9px; gap: 1px; }
  .rc-when { font-size: .8rem; }
  .rc-org { font-size: 1.05rem; }
  .rc-role { font-size: .84rem; }
  .role-card.is-far .rc-when { font-size: 1.02rem; }
  .role-card.is-far .rc-org { font-size: 1.28rem; }
  .role-card.is-leader::after { top: -13px; font-size: .64rem; }
  .side { width: 30px; height: 46px; border-radius: 10px; }
  .side-prev { left: 4px; }
  .side-next { right: 4px; }
  .lane-names { padding: 8px 3px 3px; gap: 3px; }
  .lane-names .full { display: none; }
  .lane-names .short { display: inline; }
  .lane-names li { font-size: .66rem; }
}

.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.impact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); }
.card.t-people, .card.t-product, .card.t-operations { border-top: 8px solid var(--bright); }
.card.t-product { border-top-color: var(--cyan); }
.card.t-operations { border-top-color: var(--sky); }
.card ul { padding-left: 1.1em; margin: 0; color: var(--soft); }
.card p:last-child { margin: 0; color: var(--soft); }
.impact .card { background: linear-gradient(170deg, var(--paper) 55%, #1f487c); }
.impact .card h3 { font-size: 1.16rem; }
.impact .card p:last-child { font-size: .92rem; }
.impact .card strong { color: var(--ink); }
.figure { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tone-ink, var(--accent)); margin-bottom: .6em; }
.bridge { max-width: 860px; margin: 34px auto 0; padding: 4px 0 4px 22px; border-left: 6px solid var(--accent); font: italic 1.35rem/1.45 var(--serif); }
.bridge p { margin: 0; }
.method { margin-top: 30px; }
.method ol { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.method li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: .92rem; line-height: 1.35; }
.method li::before { content: counter(step); display: block; font: 700 1.25rem var(--serif); color: var(--accent); }

.chooser { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: start; }
.tabs { display: grid; gap: 8px; position: sticky; top: 84px; }
.tab { text-align: left; font: 600 1rem var(--sans); color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 13px 16px; cursor: pointer; }
.tab:hover { border-color: var(--ice); }
.tab[aria-selected="true"] { background: var(--focus); color: var(--on-accent); box-shadow: inset 6px 0 0 #1f7fc0; }
.sheet-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.sheet-bar p { margin: 0; font-weight: 700; color: var(--soft); }
.sheet { background: var(--paper); border-radius: 8px 26px 8px 8px; padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); border-top: 10px solid var(--accent); }
.sheet-name { font: 700 1.5rem var(--serif); margin: 0; }
.sheet-contact { font-size: .9rem; color: var(--soft); }
.sheet-head h3 { color: var(--accent); font-size: 1.5rem; }
.sheet h4 { margin: 1.6em 0 .7em; padding-bottom: .35em; border-bottom: 1px solid var(--line); font-size: 1.1rem; color: var(--sky); }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 5px 13px; border-radius: 999px; background: #21497e; font-size: .9rem; }
.job { margin-bottom: 1.2em; }
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; }
.job-head p { margin: 0; }
.job-when { font-size: .9rem; color: var(--cyan); font-weight: 700; }
.job ul, .sheet > ul:not(.pills) { margin: .4em 0 .8em; padding-left: 1.15em; }

.edu { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; }
.edu > ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.edu > ul li { display: flex; flex-direction: column; padding: 4px 0 4px 18px; border-left: 5px solid var(--ice); }
.edu > ul span { color: var(--soft); }
.contact { background: radial-gradient(760px 340px at 50% 0%, rgba(168, 127, 240, .34), transparent 70%), #331c55; color: var(--ink); text-align: center; border-top: 1px solid var(--line); }
.contact h2::after { margin-left: auto; margin-right: auto; }
.contact .btn.primary { background: var(--ice); border-color: var(--ice); color: var(--on-accent); }
.contact .btn.primary:hover { background: #cdf3ff; }
.contact :focus-visible { outline-color: var(--ice); }
footer { text-align: center; padding: 20px; font-size: .88rem; color: var(--soft); }
.plain { background: var(--paper); border-radius: 14px; padding: 16px 32px; }

@media (max-width: 1100px) {
  .cards.impact { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 270px); }
  .about-grid .threads { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#journey > * { max-width: 1440px; }
@media (max-width: 860px) {
  .portrait { width: 100%; max-width: 320px; justify-self: center; }
  body { font-size: 16px; }
  .hero, .about-grid, .chooser, .edu { grid-template-columns: 1fr; }
  .hero > *, .hero-copy, .hero-art { justify-self: center; }
  .hero-art { max-width: 340px; }
  .cards, .cards.impact { grid-template-columns: 1fr 1fr; }
  .method ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabs { position: static; grid-template-columns: 1fr 1fr; }
  .top { position: static; }
  html { scroll-padding-top: 10px; }
}
@media (max-width: 560px) {
  .cards, .cards.impact { grid-template-columns: 1fr; }
  .method ol { grid-template-columns: 1fr 1fr; }
  main > #journey { padding-left: 12px; padding-right: 12px; padding-top: 20px; }
  .detail-top { padding: 7px 14px; }
  .detail-when { font-size: 1.05rem; white-space: normal; line-height: 1.2; min-width: 0; }
  .detail-top .chip { flex: 0 1 auto; min-width: 0; }
  .detail-body { padding: 9px 14px 2px; }
  .detail h3 { font-size: 1.22rem; }
  .detail-role { font-size: .92rem; margin-bottom: .3em; }
  .detail-lead { font-size: .95rem; margin-bottom: .35em; }
  .detail h4 { margin-bottom: .3em; padding-top: .45em; }
  .detail ul { font-size: .89rem; line-height: 1.4; }
  .detail li { margin-bottom: .2em; }
  .detail-count { display: none; }
}
@media (max-width: 420px) and (max-height: 660px) {
  .detail-lead { display: none; }
  .role-card { padding-top: 5px; padding-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  /* Paper stays light: the screen palette is swapped for dark ink on white. */
  :root { color-scheme: light; --mist: #fff; --lilac: #fff; --paper: #fff; --ink: #101c33; --soft: #26364f; --accent: #134a86; --cyan: #0d5560; --sky: #2b3f7a; --line: #b9c9de; --ice: #b9c9de; }
  .top, .hero, #about, #journey, #strengths, #impact, #education, #contact, footer, .tabs, .sheet-bar, #resume > h2, #resume > .sub, .skip { display: none !important; }
  body { background: #fff; color: #101c33; font-size: 11pt; }
  main > section { padding: 0; background: none; }
  .chooser { display: block; }
  .sheet { box-shadow: none; border: 0; padding: 0; }
  .job { break-inside: avoid; }
  .pills li { background: none; border: 1px solid #bbb; }
}
