:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d1d1f;
  background: #fff;
  font-synthesis: none;
  --muted: #64646b;
  --blue: #0066cc;
  --canvas: #f5f5f7;
  --line: #d8d8de;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 6rem; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
p { line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a, button, summary { touch-action: manipulation; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 4px; }
a:active { color: var(--blue); }
.page-width, .header-inner { width: min(1080px, calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 10; background: #1d1d1f; color: white; padding: 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.eyebrow { font-size: .74rem; font-weight: 550; color: var(--muted); }
.site-header { position: sticky; top: 0; z-index: 5; background: #fffffff0; backdrop-filter: blur(20px) saturate(160%); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.identity { font-weight: 600; font-size: .95rem; letter-spacing: -.025em; }
nav { display: flex; gap: 1.6rem; font-size: .75rem; }
nav a, .header-cv { padding-block: .8rem; }
.header-cv { font-size: .73rem; color: var(--blue); }
.header-cv > span:last-child { margin-left: .5rem; }
.cv-short { display: none; }

/* A small native disclosure keeps the four languages within reach. */
.header-actions { display: flex; align-items: center; gap: 1.4rem; position: relative; }
.language-menu { position: relative; }
.language-menu > summary { display: flex; gap: .5rem; align-items: center; cursor: pointer; list-style: none; min-height: 44px; font-size: .7rem; }
.language-menu > summary::-webkit-details-marker { display: none; }
.language-current { font-weight: 550; letter-spacing: .04em; }
.language-options button > span { min-width: 1.5rem; font-size: .65rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.language-options { position: absolute; right: 0; top: calc(100% + .3rem); width: 160px; padding: .35rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 28px #1d1d1f12; }
.language-options button { display: flex; align-items: center; gap: .6rem; border: 0; border-radius: 7px; padding: .6rem .7rem; min-height: 44px; width: 100%; background: none; cursor: pointer; text-align: left; font-size: .75rem; color: #1d1d1f; }
.language-options button[aria-pressed="true"] { color: var(--blue); background: var(--canvas); }
.language-options button:active { background: var(--canvas); }
.language-error { position: absolute; top: 100%; right: 0; width: 240px; padding: .8rem; font-size: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
@media (hover: hover) and (pointer: fine) {
  .language-options button:hover { background: var(--canvas); }
}

/* The opening introduces both the person and the work in progress. */
.intro { display: grid; grid-template-columns: 1.8fr 1fr; gap: 5rem; padding-block: 4.5rem; }
.intro-main { grid-column: 1; grid-row: 1; }
.intro-portrait { grid-column: 2; grid-row: 1; width: 100%; max-width: 280px; height: auto; border-radius: 24px; align-self: center; justify-self: end; }
h1 { font-size: clamp(3rem, 6.5vw, 4.6rem); line-height: 1.1; letter-spacing: -.055em; font-weight: 600; margin-top: 1.2rem; }
.intro-role { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.3; letter-spacing: -.035em; color: var(--muted); margin-top: .85rem; }
.intro-description { font-size: .96rem; max-width: 560px; color: var(--muted); margin-top: 1.5rem; }
.intro-links, .inline-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.7rem; font-size: .8rem; color: var(--blue); }
.intro-links a, .inline-links a { padding-block: .5rem; }
.intro-links span, .inline-links span { margin-left: .4rem; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 600; }
.section-heading h2 { margin-top: .65rem; }
.section-heading > p { color: var(--muted); font-size: .8rem; }
.section { padding-block: 4.5rem; border-bottom: 1px solid #e6e6ea; }
.text-link { display: inline-block; color: var(--blue); font-size: .78rem; padding-block: .5rem; }
.text-link span { margin-left: .4rem; }

/* The graph has one continuous date scale. Labels get their own space. */
.journey { background: var(--canvas); border-radius: 24px; padding: 2.6rem 2.5rem 2rem; }
.timeline-legend { display: flex; justify-content: space-between; padding-inline: .75rem; margin-bottom: 1.8rem; font-size: .8rem; font-weight: 550; }
.academic-key { color: var(--blue); }
.professional-key { color: #424248; }
.timeline-chart { --month: 1rem; --inset: 1.5rem; }
.timeline-axis, .timeline-leaders, .duration { display: none; }
.event { --color: #424248; }
.event.academic { --color: var(--blue); }
.event-copy { margin: 0; padding: .7rem .8rem; border-radius: 14px; }
.event-copy > summary { display: block; position: relative; cursor: pointer; list-style: none; }
.event-copy > summary::-webkit-details-marker { display: none; }
.event-copy > summary::after { content: "+"; position: absolute; top: -.15rem; right: 0; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; font-size: .9rem; line-height: 1; color: var(--color); }
.event-copy[open] > summary::after { content: "−"; }
.event-date { display: block; color: var(--muted); font-size: .65rem; font-weight: 400; font-variant-numeric: tabular-nums; padding-right: 1.7rem; }
.event-title { display: block; color: var(--color); font-size: 1rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; margin-top: .45rem; }
.event-organization { display: block; font-size: .8rem; line-height: 1.45; margin-top: .25rem; }
.event-description { display: block; font-size: .75rem; line-height: 1.5; color: var(--muted); margin-top: .5rem; }
.school-paths { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-block: .8rem .5rem; }
.school-paths > span { border-left: 2px solid var(--blue); padding-left: .6rem; }
.event-detail { font-size: .78rem; color: var(--muted); padding-top: 1rem; margin-top: 1rem; border-top: 1px solid #e6e6ea; }
.event-detail p + p { margin-top: .65rem; }
.entry-related a { color: var(--blue); display: inline-block; padding-block: .35rem; }
.entry-length { font-size: .68rem; color: var(--muted); margin-bottom: .8rem; }
.event-overlaps { padding-top: .8rem; margin-top: 1rem; border-top: 1px solid #e6e6ea; }
.event-overlaps > p:first-child { font-size: .65rem; color: #1d1d1f; margin-bottom: .35rem; }
.event-overlaps a { color: var(--blue); text-decoration: underline; text-decoration-color: #0066cc50; text-underline-offset: .2em; line-height: 1.8; }
.timeline-chart.is-ready { position: relative; }
.is-ready .timeline-axis { display: block; position: absolute; top: var(--inset); height: calc(var(--months) * var(--month)); left: calc(50% - 22px); width: 44px; z-index: 3; touch-action: none; cursor: crosshair; }
.timeline-axis::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.timeline-axis:focus-visible { outline: 2px solid #0066cc55; outline-offset: 4px; border-radius: 6px; }
.axis-tick { position: absolute; top: calc(var(--offset) * var(--month)); left: 50%; transform: translate(-50%, -50%); background: var(--canvas); padding: .35rem .4rem; color: var(--muted); font-size: .65rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.axis-tick:first-child { color: #1d1d1f; font-weight: 600; }
.is-ready .event { position: absolute; top: calc(var(--inset) + var(--end) * var(--month)); height: calc(var(--duration) * var(--month)); width: calc(50% - 3rem); pointer-events: none; }
.is-ready .academic { left: 0; }
.is-ready .professional { right: 0; }
.is-ready .duration { display: block; position: absolute; top: 0; height: 100%; width: 14px; border: 0; padding: 0; background: transparent; pointer-events: auto; cursor: pointer; }
.is-ready .academic .duration { right: calc(var(--lane) * .8rem - 6px); }
.is-ready .professional .duration { left: calc(var(--lane) * .8rem - 6px); }
.duration-line { position: absolute; top: 0; bottom: 0; left: 6px; width: 2px; border-radius: 2px; background: var(--color); pointer-events: none; }
.duration-line::before, .duration-line::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--color); left: -2px; }
.duration-line::before { top: -3px; }
.duration-line::after { bottom: -3px; }
.event:not([data-end]) .duration-line::before { background: var(--canvas); box-shadow: 0 0 0 2px var(--color); }
.is-ready .milestone .duration { height: 24px; top: -12px; }
.milestone .duration-line { top: 12px; bottom: auto; height: 0; }
.milestone .duration-line::after { display: none; }
.is-ready .event-copy { position: absolute; pointer-events: auto; }
.is-ready .academic .event-copy { left: 0; right: 3.25rem; }
.is-ready .professional .event-copy { left: 3.25rem; right: 0; }
.is-ready .event.is-open { z-index: 2; }
.is-ready .event-copy[open] { background: #fff; box-shadow: 0 8px 28px #1d1d1f0c, 0 0 0 1px #1d1d1f05; }
.is-open .duration-line, .event:focus-within .duration-line { width: 3px; }
.is-ready .timeline-leaders { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.event-leader { fill: none; stroke: #b8b8c2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.event-leader.is-outside { opacity: .2; }
.event-leader.is-traced { stroke: var(--blue); opacity: 1; }
.event.is-outside .duration-line { opacity: .18; }
.timeline-lens { position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: #0066cc35; z-index: 3; pointer-events: none; }
.lens-caption { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; background: #fff; color: var(--blue); font-size: .65rem; font-variant-numeric: tabular-nums; padding: .45rem .65rem; border-radius: 7px; box-shadow: 0 2px 12px #0000000a; }

/* A quiet overview opens into the full story, in place. */
.work-entry { border-top: 1px solid #e6e6ea; scroll-margin-top: 6rem; }
.work-summary { display: grid; grid-template-columns: 150px minmax(0, 1fr) 20px; gap: 2rem; align-items: start; padding-block: 1.6rem; cursor: pointer; list-style: none; }
.work-summary::-webkit-details-marker { display: none; }
.work-summary::after { content: "+"; color: var(--blue); font-size: 1.25rem; line-height: 1.4; text-align: right; }
.work-entry[open] > .work-summary::after { content: "−"; }
.work-meta { color: var(--muted); font-size: .72rem; line-height: 1.6; padding-top: .15rem; }
.work-meta > span { display: block; font-size: .65rem; margin-top: .2rem; }
.work-title { display: block; font-size: 1.1rem; font-weight: 550; letter-spacing: -.025em; line-height: 1.4; }
.work-description { display: block; margin-bottom: .5rem; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.work-summary:active .work-title, .work-entry[open] > .work-summary .work-title { color: var(--blue); }
.work-detail { padding: .4rem 0 2rem 182px; }
.work-credit { color: var(--muted); font-size: .68rem; margin-top: 1.5rem; }
.paper-detail { padding-left: 0; padding-top: .5rem; }
.paper-figure { padding: 1.6rem; border-radius: 20px; background: var(--canvas); }
.method-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.stage-title { font-size: .8rem; font-weight: 550; letter-spacing: -.015em; }
.stage-title > span { color: var(--blue); font-size: .65rem; margin-right: .5rem; font-variant-numeric: tabular-nums; }
.method-stages svg { display: block; width: 100%; height: auto; margin-block: .8rem; }
.method-stages li > p:last-child { font-size: .72rem; color: var(--muted); }
.diagram-wire { fill: none; stroke: #c4c7ce; stroke-width: 1; }
.diagram-node { fill: #fff; stroke: #666b76; stroke-width: 1.2; }
.diagram-density { fill: none; stroke: #666b76; stroke-width: 1.6; }
.diagram-blue { stroke: #0066cc; }
.diagram-input { fill: none; stroke: #0066cc; stroke-width: .85; stroke-opacity: .6; }
.diagram-output { fill: none; stroke: #535963; stroke-width: .85; stroke-opacity: .6; }
.diagram-faint { stroke-opacity: .15; }
.diagram-graphite { stroke: #777c84; stroke-opacity: .6; }
.diagram-inset { fill: #fff; stroke: #b9bec6; stroke-width: 1; }
.diagram-axis { fill: none; stroke: #64646b; stroke-width: .9; }
.diagram-guide { fill: none; stroke: #aeb4bf; stroke-width: .8; stroke-dasharray: 2 4; }
.diagram-removed { fill: #f5f5f7; stroke: #c4c7ce; stroke-width: 1; }
.diagram-slash { fill: none; stroke: #535963; stroke-width: 1; stroke-opacity: .6; }
.diagram-compensation { fill: none; stroke: #535963; stroke-width: 1.5; stroke-dasharray: 4 4; }
.diagram-label { font-size: 13px; fill: #64646b; stroke: none; }
.diagram-small { font-size: 10.5px; fill: #64646b; stroke: none; }
.diagram-math { font-family: "Cambria Math", "STIX Two Math", serif; font-size: 14px; font-style: italic; fill: #1d1d1f; stroke: none; }
.diagram-blue-text { fill: #0066cc; }
.diagram-graphite-text { fill: #535963; }
.diagram-color { fill: currentColor; }
.expert-a { color: #0066cc; }
.expert-b { color: #527da3; }
.expert-c { color: #535963; }
.expert-b .diagram-cloud { stroke-dasharray: 4 3; }
.expert-c .diagram-cloud, .expert-c .diagram-expert-node { stroke-dasharray: 2 2; }
.diagram-cloud { fill: currentColor; fill-opacity: .06; stroke: currentColor; stroke-opacity: .3; }
.diagram-points { fill: currentColor; }
.diagram-expert { fill: none; stroke: currentColor; stroke-width: 1; stroke-opacity: .55; }
.diagram-expert-node { fill: #fff; stroke: currentColor; stroke-width: 1.3; }
.diagram-route-option { stroke-opacity: .3; }
.diagram-selected { stroke-opacity: 1; stroke-width: 1.4; }
.paper-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }
.paper-summary { font-size: .88rem; color: var(--muted); }
.paper-summary .inline-links { gap: .5rem 1.4rem; margin-top: 1rem; }
.paper-faq .method-detail { margin-top: 0; }
.method-detail { margin-top: 1.5rem; border-top: 1px solid #e6e6ea; padding-top: .4rem; }
.method-detail summary { cursor: pointer; padding-block: .75rem; font-size: .8rem; color: var(--blue); }
.method-detail > div { padding-block: .4rem; font-size: .82rem; color: var(--muted); }
.method-detail math { margin-block: 1.5rem; color: #1d1d1f; font-size: 1.35rem; }
.method-detail .formula-note { font-size: .74rem; }
#circuits-study { margin-top: .65rem; scroll-margin-top: 6rem; }
.thesis-supervision { margin-top: 1rem; font-size: .7rem; }
.patent-applications { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.patent-applications > h3 { font-size: .9rem; font-weight: 550; }
.patent-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 1.3rem; }
.patent-list h4 { margin-top: .4rem; }
.patent-list .text-link { font-size: .72rem; margin-top: .4rem; }
/* Case studies show the purpose, the contribution and the actual work. */
.project-detail { padding-left: 0; }
.project-context { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; margin: .5rem 0 1.5rem; }
.project-context > div > p:last-child { margin-top: 1.1rem; font-size: .88rem; color: var(--muted); }
.project-facts { align-self: end; font-size: .8rem; }
.project-facts > div + div { margin-top: 1.25rem; }
.project-facts dt { font-weight: 550; margin-bottom: .35rem; }
.project-facts dd { line-height: 1.6; color: var(--muted); }
h4 { margin: 0; font-size: .88rem; font-weight: 550; line-height: 1.45; letter-spacing: -.015em; }
.project-flow, .project-preview { padding: 1.3rem 1.5rem; background: var(--canvas); border-radius: 16px; }
.project-flow ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; list-style: none; padding: 0; margin: 0; }
.project-flow li { border-left: 1px solid var(--line); padding-left: .85rem; }
.project-flow li > span { display: block; color: var(--blue); font-size: .62rem; margin-bottom: .45rem; }
.project-flow strong { font-size: .85rem; font-weight: 550; }
.project-flow p { font-size: .72rem; color: var(--muted); margin-top: .4rem; }
.project-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 0 2rem; align-items: center; }
.preview-copy { max-width: 480px; }
.preview-copy > p { font-size: .78rem; color: var(--muted); margin-top: .6rem; }
.preview-copy .text-link { margin-top: .4rem; font-size: .72rem; }
.parser-transition { display: block; width: 100%; max-width: 240px; justify-self: end; height: auto; }
.parser-transition rect { fill: #fff; stroke: var(--line); }
.parser-transition text { font-family: ui-monospace, monospace; font-size: 15px; fill: #1d1d1f; }
.parser-transition path { fill: none; stroke: var(--blue); stroke-width: 1.4; }
.parser-transition .transition-symbol { fill: var(--blue); font-size: 12px; }
.project-media { justify-self: end; width: min(100%, 240px); font-size: .73rem; }
.project-media summary { cursor: pointer; color: var(--blue); line-height: 1.6; padding-block: .7rem; }
.project-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-top: .6rem; border-radius: 8px; background: #e6e6ea; }
.filter-preview { display: grid; gap: .4rem; border-left: 2px solid var(--blue); padding-left: 1rem; }
.filter-preview > span { font-size: .65rem; color: var(--muted); }
.filter-preview code { font-size: .73rem; line-height: 1.7; overflow-wrap: anywhere; }
.filter-preview code + span { margin-top: .7rem; }
.talk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.talk-list article { padding-top: 1.3rem; border-top: 1px solid var(--line); }
.talk-list h3 { font-size: 1rem; margin-top: .7rem; line-height: 1.45; font-weight: 550; letter-spacing: -.02em; }
.talk-list article > p:not([class]) { margin-top: .7rem; font-size: .85rem; color: var(--muted); }
/* CV levels stay visible; the supporting history opens on demand. */
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; align-items: start; }
.skill-group > h3 { padding: 0 .6rem 1rem; font-size: .85rem; font-weight: 550; border-bottom: 1px solid var(--line); }
.skill { border-bottom: 1px solid #e6e6ea; }
.skill > summary, .language-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto 10px; gap: .65rem; align-items: center; min-height: 62px; padding: .85rem .6rem; }
.skill > summary { cursor: pointer; list-style: none; }
.skill > summary::-webkit-details-marker { display: none; }
.skill > summary::after { content: "+"; color: var(--muted); font-size: .8rem; }
.skill[open] { background: var(--canvas); border-radius: 10px; }
.skill[open] > summary::after { content: "−"; }
.skill > summary:active { color: var(--blue); }
.skill-name { font-size: .8rem; font-weight: 500; line-height: 1.45; }
.skill-level { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; color: var(--muted); font-size: .62rem; white-space: nowrap; }
.level-marks { display: block; width: 55px; height: 5px; background: linear-gradient(90deg, var(--blue) calc(var(--level) * 20%), var(--line) 0); mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 11px); }
.skill-history { list-style: none; padding: 0 .8rem .6rem; margin: 0; }
.skill-history li { border-left: 1px solid var(--line); padding: .2rem 0 .8rem .8rem; }
.skill-history a { color: var(--blue); font-size: .68rem; line-height: 1.5; }
.skill-history p { font-size: .7rem; color: var(--muted); line-height: 1.6; margin-top: .3rem; }
.language-list { list-style: none; padding: 0; margin: 0; }
.language-list > li { grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid #e6e6ea; }
.qualifications { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: baseline; font-size: .75rem; }
.qualifications > h3 { font-size: inherit; font-weight: 550; }
.qualifications > ul { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.interest-layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 2.5rem; }
.interest-layout h3 { font-size: .95rem; font-weight: 550; letter-spacing: -.02em; line-height: 1.4; }
.skydiving-story > h3 { margin-bottom: 1.2rem; }
.other-interests article { padding-block: 1.3rem; border-top: 1px solid var(--line); }
.other-interests h3 { margin-top: .6rem; }
.other-interests article > p:last-child { margin-top: .6rem; color: var(--muted); font-size: .8rem; }
.hobby-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hobby-gallery:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 14px; }
.hobby-gallery img { display: block; width: 100%; height: 250px; object-fit: cover; border-radius: 14px; }
.flight-photo img { object-position: 66% center; }
.freefall-photo img { object-position: 77% center; }
.coast-photo img { object-position: 68% center; }
.hobby-gallery figcaption { display: grid; grid-template-columns: 1.3rem 1fr; gap: .2rem .5rem; padding: 1rem 0; }
.hobby-gallery figcaption > span { font-size: .65rem; color: var(--blue); padding-top: .1rem; font-variant-numeric: tabular-nums; }
.hobby-gallery figcaption strong { font-size: .8rem; font-weight: 550; }
.hobby-gallery figcaption p { grid-column: 2; font-size: .72rem; color: var(--muted); }
.legal { max-width: 720px; min-height: 70svh; padding-block: 4rem 6rem; }
.legal h1 { margin-top: .8rem; font-size: clamp(2.5rem, 6vw, 3.5rem); }
.legal section { margin-top: 2.5rem; }
.legal h2 { font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: .8rem; }
.legal p:not(.eyebrow) { font-size: .9rem; }
.legal address { font-style: normal; font-size: .9rem; line-height: 1.65; }
.contact { padding-block: 4.5rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.contact h2 { margin-top: .9rem; }
.contact-methods { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.contact-link { display: inline-block; margin-top: 1.2rem; color: var(--blue); font-size: 1rem; padding-block: .5rem; }
.contact-link > span:last-child { margin-left: .5rem; }
.contact-links { display: flex; flex-direction: column; font-size: .75rem; color: var(--muted); }
.contact-links a { padding-block: .5rem; }
footer { border-top: 1px solid #e6e6ea; padding-block: 1rem max(1.5rem, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: .65rem; }
footer a { padding-block: .5rem; }
footer > div { display: flex; gap: 1.5rem; }

@media (hover: hover) and (pointer: fine) {
  nav a:hover, .contact-links a:hover, footer a:hover { color: var(--blue); }
  .intro-links a:hover, .inline-links a:hover, .text-link:hover, .contact-link:hover, .entry-related a:hover { text-decoration: underline; text-underline-offset: .2em; }
  .work-summary:hover .work-title, .skill > summary:hover .skill-name { color: var(--blue); }
  .skill-history a:hover { text-decoration: underline; text-underline-offset: .2em; }
  .event-copy > summary:hover .event-title { text-decoration: underline; text-underline-offset: .2em; }
  .event:has(summary:hover) .duration-line, .duration:hover .duration-line { width: 3px; opacity: 1; }
  .event-copy > summary:active { opacity: .7; }
}
@media (max-width: 850px) {
  .header-inner { flex-wrap: wrap; gap: 0 1rem; padding-block: .6rem; }
  .header-actions { margin-left: auto; }
  nav { order: 3; width: 100%; justify-content: space-between; }
  nav a { padding-block: .4rem; }
  .intro { gap: 2.5rem; }
  .journey { padding-inline: 1.5rem; }
  .is-ready .event { width: calc(50% - 2rem); }
  .event-title { font-size: .9rem; }
  .event-organization { font-size: .74rem; }
  nav { gap: 1rem; }
  .paper-notes, .talk-list, .project-context { gap: 2rem; }
  .skills-grid { gap: 1.3rem; }
  .interest-layout { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .other-interests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .project-preview { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 0 1.5rem; }
  .work-summary { grid-template-columns: 120px minmax(0, 1fr) 16px; gap: 1.4rem; }
  .work-detail { padding-left: calc(120px + 1.4rem); }
  .paper-detail, .project-detail { padding-left: 0; }
}
@media (max-width: 620px) {
  .page-width, .header-inner { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 86px; flex-wrap: wrap; gap: 0 1rem; padding-block: .7rem; }
  .identity { font-size: .85rem; }
  .header-cv { font-size: .65rem; }
  .cv-label { display: none; }
  .cv-short { display: inline; }
  .header-actions { margin-left: auto; gap: .8rem; }
  nav { order: 3; width: 100%; justify-content: space-between; font-size: .7rem; }
  nav a { padding-block: .4rem; }
  .intro { grid-template-columns: 1fr; padding-block: 2.8rem; gap: 2rem; }
  .intro-main { grid-row: 2; }
  .intro-portrait { grid-column: 1; grid-row: 1; width: 112px; border-radius: 18px; justify-self: start; }
  .intro .eyebrow { font-size: .66rem; }
  h1 { font-size: clamp(2.7rem, 10vw, 3.6rem); }
  .intro-role br { display: none; }
  .intro-description { font-size: .88rem; }
  .journey { padding: 1.8rem 1rem 1.5rem; border-radius: 18px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 1.8rem; }
  .section-heading > p { font-size: .76rem; }
  .timeline-legend { justify-content: flex-start; gap: 1.5rem; font-size: .7rem; padding: 0; }
  .timeline-legend span::before { content: ""; display: inline-block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; margin-right: .45rem; vertical-align: middle; }
  .timeline-chart { --month: 1.05rem; }
  .is-ready .timeline-axis { left: calc(.75rem - 22px); }
  .axis-tick { font-size: .6rem; }
  .is-ready .event { left: 2.6rem; right: 0; width: auto; }
  .is-ready .event .duration { left: calc(var(--track) * .55rem - 6px); right: auto; }
  .is-ready .event .event-copy { left: 3.6rem; right: 0; padding-inline: .5rem; }
  .event-date { font-size: .59rem; }
  .event-title { font-size: .9rem; }
  .event-organization { font-size: .73rem; }
  .event-description { display: none; }
  .event-copy > summary { min-height: 44px; }
  .event-detail { font-size: .76rem; }
  .lens-caption { left: .75rem; transform: none; font-size: .6rem; }
  .section { padding-block: 3rem; }
  .paper-notes, .talk-list, .project-context, .skills-grid, .patent-list { grid-template-columns: 1fr; gap: 1.8rem; }
  .work-summary { grid-template-columns: minmax(0, 1fr) 20px; gap: .6rem 1rem; padding-block: 1.3rem; }
  .work-meta { grid-column: 1; font-size: .65rem; }
  .work-meta > span { display: inline; margin-left: .7rem; font-size: inherit; }
  .work-heading { grid-column: 1; }
  .work-summary::after { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .work-title { font-size: 1rem; }
  .work-description { font-size: .75rem; }
  .work-detail { padding: .3rem 0 1.8rem; }
  .paper-figure { padding: 1.1rem; border-radius: 16px; }
  .method-stages { grid-template-columns: 1fr; gap: 1.3rem; }
  .method-stages svg { max-width: 360px; margin: .8rem auto; }
  .stage-title { font-size: .8rem; }
  .method-stages li > p:last-child { font-size: .72rem; }
  .project-context { margin-bottom: 1.8rem; }
  .project-facts { font-size: .76rem; }
  .project-flow, .project-preview { padding: 1.1rem; border-radius: 14px; }
  .project-flow ol { grid-template-columns: 1fr; gap: 1.2rem; }
  .project-preview { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .parser-transition, .project-media { justify-self: start; }
  .skills-grid { gap: 2rem; }
  .hobby-gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: .8rem; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; margin-inline: -1.25rem; padding: .4rem 1.25rem .6rem; scroll-padding-inline: 1.25rem; }
  .hobby-gallery figure { scroll-snap-align: start; }
  .hobby-gallery img { height: 240px; }
  .other-interests { grid-template-columns: 1fr; gap: 0; }
  .legal { padding-block: 2.5rem 4rem; }
  .contact { flex-direction: column; align-items: flex-start; padding-block: 3rem; }
  .contact-links { flex-direction: row; flex-wrap: wrap; gap: 0 1.2rem; font-size: .7rem; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: white; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #45454b; --line: #9999a1; }
  .site-header { background: white; backdrop-filter: none; }
  .event-copy[open] { outline: 1px solid var(--muted); }
  .event.is-outside .duration-line { opacity: .55; }
}
