/* Local assets, system typography, ordinary document scrolling. */
:root {
  color-scheme: light;
  --paper: #f4f6f3;
  --ink: #002147;
  --accent: #007a8a;
  --accent-text: #006b7a;
  --muted: #516372;
  --line: #d5dfda;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .25em; }
button, input { font: inherit; }
[hidden] { display: none !important; }
::selection { background: #c5e4e3; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 3px; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: var(--ink); color: white; z-index: 30; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: #f4f6f3f5; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.wordmark { font-size: 17px; font-weight: 650; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.main-nav { display: flex; margin-left: auto; gap: 24px; }
.main-nav a, .language-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; }
.main-nav a:hover { color: var(--accent); }
.language-nav { display: flex; gap: 3px; border-left: 1px solid var(--line); padding-left: 12px; }
.language-nav a { min-width: 32px; justify-content: center; color: var(--muted); font-size: 13px; }
.language-nav a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
h1, h2, h3, h4 { font-weight: 550; line-height: 1.12; letter-spacing: -.045em; }
h1 { font-size: clamp(76px, 7.6vw, 106px); line-height: .94; letter-spacing: -.065em; margin: 0 0 40px -5px; font-weight: 600; }
h2 { font-size: clamp(38px, 4vw, 54px); margin: 0; }
h3 { margin: 0; }
/* Opening: name, one statement for role and affiliation, the scholarship as a quiet line, then the research. */
.hero { display: grid; grid-template-columns: minmax(0, 740px) minmax(250px, 330px); justify-content: space-between; align-items: center; gap: 44px 64px; padding-block: 56px 72px; }
.hero-role { font-size: 30px; line-height: 1.26; letter-spacing: -.03em; font-weight: 500; margin: 0; text-wrap: balance; }
.hero-affiliation { display: block; }
.hero-affiliation a { text-decoration-thickness: 1px; text-decoration-color: #9bb5b8; }
.hero-affiliation a:hover { text-decoration-color: var(--ink); }
.hero-credential { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.hero-credential::before { content: ""; flex: none; width: 32px; height: 2px; background: currentColor; }
.hero-research { font-size: 21px; line-height: 1.6; color: var(--muted); margin: 30px 0 0; max-width: 31em; text-wrap: pretty; }
.hero-research a { text-decoration-thickness: 1px; text-decoration-color: #91aeb2; }
.hero-research a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.hero-portrait { width: 100%; }
.portrait-ring { aspect-ratio: 1; border: 10px solid var(--ink); border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 10px #dce6e2; }
.portrait-ring img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The opening ends with a band: the CV follows by scrolling, two shortcuts lead further down. */
.hero-guide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 12px; border-radius: 44px; background: #e6eeea; }
.guide-cv { display: flex; align-items: center; gap: 18px; min-height: 56px; padding-right: 12px; text-decoration: none; }
.guide-arrow { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.guide-arrow svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: guide-nudge 1.2s ease-in-out .8s 3; }
@keyframes guide-nudge { 50% { transform: translateY(4px); } }
.guide-text { display: flex; flex-direction: column; }
.guide-title { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.guide-note { font-size: 15px; line-height: 1.45; color: var(--muted); }
.guide-cv:hover .guide-title { text-decoration: underline; text-decoration-thickness: 1px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 22px; border: 1px solid #c3d2cc; border-radius: 999px; background: #fbfcfa; font-size: 15px; font-weight: 550; letter-spacing: -.01em; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.guide-button span { color: var(--accent-text); transition: color .2s; }
.guide-button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.guide-button:hover span { color: inherit; }
/* The map shares the page background. There is no frame or pre-announced itinerary. */
.journey { position: relative; }
.journey-layout { position: relative; }
.map-shell { position: sticky; top: 80px; height: calc(100svh - 80px); min-height: 530px; margin: 0; pointer-events: none; overflow: hidden; }
#journey-map { display: block; width: 67%; height: 100%; margin-left: -4%; overflow: visible; }
.map-shell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 35%, var(--paper) 64%), linear-gradient(0deg, var(--paper), transparent 12%, transparent 88%, var(--paper)); }
.route-progress { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-marker text { font: 500 32px var(--sans); fill: var(--ink); paint-order: stroke; stroke: #f4f6f3ed; stroke-width: 8px; stroke-linejoin: round; }
.marker-halo { fill: var(--accent); opacity: .12; }
.marker-dot { fill: var(--ink); stroke: var(--paper); stroke-width: 3; }
.map-marker.is-active .marker-halo { opacity: .28; }
.map-marker.is-active .marker-dot { fill: var(--accent); }
/* An original plane and a high-speed train seen from above, rounded nose at both ends, in the same ink. */
.journey-vehicle { display: none; fill: var(--ink); stroke: var(--paper); stroke-linejoin: round; transition: opacity .35s; }
#journey-plane { stroke-width: 2; }
#journey-train { stroke-width: 1.2; }
.train-glass { fill: none; stroke-width: 1.2; stroke-linecap: round; }
.has-motion .journey-vehicle { display: block; }
.journey-vehicle.is-away { opacity: 0; }
.map-credit { position: absolute; left: max(48px, calc((100% - 1160px) / 2)); bottom: 6px; z-index: 1; padding: 6px 0; font-size: 11px; line-height: 1.2; color: var(--muted); text-decoration: none; pointer-events: auto; }
.map-credit:hover { color: var(--ink); text-decoration: underline; }
.has-motion .map-marker:not(.is-visited) { visibility: hidden; }
.journey-steps { position: relative; margin-top: calc(-100svh + 80px); }
.journey-step { display: flex; align-items: center; min-height: 100svh; padding: 96px max(48px, calc((100vw - 1160px)/2)) 96px 55%; }
.chapter-card { width: 100%; scroll-margin-top: 24px; }
.chapter-card h3 { font-size: clamp(54px, 5.2vw, 76px); margin-bottom: 12px; }
.chapter-date { font-size: 17px; color: var(--muted); margin: 0 0 28px; }
.chapter-body { font-size: 23px; line-height: 1.7; }
.chapter-body p { margin: 0 0 22px; }
.chapter-body a { text-decoration-thickness: 1px; text-decoration-color: #91aeb2; }
.chapter-body a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.chapter-body .thesis-reference { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.journey-facts { margin: 30px 0 0; }
.journey-facts:empty { display: none; }
.journey-facts>div { border-top: 1px solid var(--line); padding: 15px 0; }
.journey-facts dt { font-size: 15px; color: var(--muted); margin-bottom: 5px; }
.journey-facts dd { margin: 0; font-size: 19px; line-height: 1.5; }
/* Institutional marks keep their proportions, colours and clear space: docs/MARKS.md. */
/* Oxford needs 30% of its side free all around: gaps and margins of the row provide it. */
.institutions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; margin-top: 28px; }
.institutions .mark { display: block; }
.institutions img { display: block; height: auto; object-fit: contain; }
.mark-unipi img { width: 176px; height: 64px; }
.mark-sns { padding: 30px; }
.mark-sns img { width: 160px; }
.mark-oxford img { width: 72px; height: 72px; }
.mark-clarendon img { width: 90px; }
.mark-ipp img { width: auto; height: 46px; }
/* Activities: a numbered index with progress rails beside lists that scroll normally. */
.experiences { padding-block: 104px 96px; border-top: 1px solid var(--line); }
.experiences-layout { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: 88px; align-items: start; }
.experience-index { position: sticky; top: 128px; }
.experience-index ol { list-style: none; margin: 0; padding: 0; }
.experience-index li + li { margin-top: 6px; }
.index-link { position: relative; display: flex; flex-direction: column; padding: 14px 0 18px 28px; text-decoration: none; }
.index-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); overflow: hidden; }
.index-rail::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(var(--progress, 0)); transform-origin: top; }
.index-number { font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.index-title { margin: 2px 0 4px; font-size: 36px; font-weight: 550; line-height: 1.12; letter-spacing: -.04em; transition: color .3s; }
.index-span { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.has-index .index-title { color: #6b7f8c; }
.has-index .index-link[aria-current] .index-title, .index-link:hover .index-title { color: var(--ink); }
.experience-content { padding-top: 14px; }
.experience-stage { padding-bottom: 88px; scroll-margin-top: 104px; }
.experience-stage:last-of-type { padding-bottom: 0; }
.stage-heading { margin: 0 0 22px; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.stage-number { margin-right: 10px; font-variant-numeric: tabular-nums; }
.experience-list { list-style: none; margin: 0; padding: 0; }
.experience-entry { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 28px; padding: 26px 0 28px; border-top: 1px solid var(--line); }
.experience-entry:last-child { border-bottom: 1px solid var(--line); }
.entry-date { margin: 5px 0 0; font-size: 15px; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.experience-entry h4 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; letter-spacing: -.035em; }
.entry-place { margin: 0 0 10px; font-size: 17px; }
.entry-body { margin: 0; max-width: 36em; font-size: 18px; line-height: 1.65; color: var(--muted); }
.awards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.award, .award:last-child { display: flex; flex-direction: column; gap: 0; padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcfa; }
.award h4 { margin: 0 0 14px; font-size: 21px; line-height: 1.25; letter-spacing: -.03em; overflow-wrap: break-word; }
.award-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: auto 0 0; font-size: 16px; line-height: 1.4; color: var(--muted); }
.award-meta .entry-date { margin: 0; padding-left: 12px; border-left: 1px solid var(--line); }
.cv-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 72px; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 21px; font-weight: 550; letter-spacing: -.02em; text-decoration: none; }
.cv-link span:last-child { font-size: 26px; color: var(--accent-text); }
.cv-link:hover span:first-child { text-decoration: underline; text-decoration-thickness: 1px; }
.has-reveal .experience-entry { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.has-reveal .experience-entry.is-visible { opacity: 1; transform: none; }
/* Odds and ends: the galaxy and the thesis as two cards of equal weight, then contact. */
.odds-section { padding-block: 70px 90px; border-top: 1px solid var(--line); }
.odds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.odds-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fbfcfa; text-decoration: none; transition: border-color .2s; }
.odds-visual { display: grid; place-items: center; height: 196px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 58%, #fdfefd 0, #e8efeb 72%); }
.odds-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 26px 30px 18px; }
.odds-copy h3 { font-size: 28px; }
.odds-copy p { margin: 12px 0 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.odds-copy .resource-link { margin-top: auto; padding-top: 14px; text-decoration: underline; text-decoration-thickness: 1px; }
.resource-link { display: inline-flex; align-items: center; gap: 24px; min-height: 48px; font-size: 18px; }
.galaxy-card:hover { border-color: #9bb5b8; }
.galaxy-symbol { display: block; width: 150px; height: 150px; transform: rotate(-18deg); transition: transform .6s; }
.galaxy-card:hover .galaxy-symbol { transform: rotate(-12deg); }
.thesis-work cite { font-style: normal; font-size: 19px; font-weight: 550; line-height: 1.4; letter-spacing: -.02em; color: var(--ink); }
.odds-copy .thesis-status { font-size: 16px; line-height: 1.55; }
.thesis-status strong { font-weight: 600; color: var(--ink); }
/* A small typographic cover, drawn in CSS: decorative, hidden from assistive technology. */
.thesis-cover { display: flex; flex-direction: column; justify-content: space-between; width: 104px; aspect-ratio: 1 / 1.414; padding: 12px 10px 10px 13px; border-radius: 2px 6px 6px 2px; background: var(--ink); color: #b9cbd2; box-shadow: inset 4px 0 0 #00132b, 0 14px 26px #0021472e; font-size: 6.5px; line-height: 1.3; letter-spacing: .04em; transform: rotate(-6deg); }
.thesis-cover strong { padding-top: 7px; border-top: 1.5px solid var(--accent); color: var(--paper); font-size: 9.5px; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.physics-return { display: inline-flex; align-items: center; gap: 24px; min-height: 48px; margin-top: 30px; font-size: 17px; color: var(--muted); }
.contact-section { background: var(--ink); color: var(--paper); padding-block: 64px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.contact-inner p { font-size: 18px; color: #c7d6db; max-width: 440px; margin: 22px 0 0; }
.email-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid #7895a5; font-size: clamp(16px, 1.7vw, 21px); text-decoration: none; }
.email-link span:first-child { overflow-wrap: anywhere; }
.email-link span:last-child { font-size: 28px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; font-size: 14px; color: var(--muted); }
.site-footer p { margin: 0; }
.footer-notes p + p { margin-top: 4px; max-width: 64em; font-size: 13px; line-height: 1.5; }
.site-footer a { flex: none; padding-block: 10px; }
/* Below this width the band no longer fits on one row: the shortcuts go under the text. */
@media (min-width: 761px) and (max-width: 1240px) {
  .hero-guide { justify-self: start; flex-direction: column; align-items: flex-start; padding: 12px 24px 16px 12px; border-radius: 28px; }
  .guide-links { padding-left: 74px; }
}
@media (min-width: 761px) and (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .main-nav { gap: 14px; }
  .header-inner { gap: 18px; }
  .hero { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .hero-role { font-size: 26px; }
  .hero-research { font-size: 20px; }
  .journey-step { padding-right: 32px; padding-left: 52%; }
  .mark-ipp img { height: 40px; }
  .experiences-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 44px; }
  .index-title { font-size: 28px; }
  .experience-entry { grid-template-columns: 1fr; gap: 6px; }
  .entry-date { margin: 0; }
  .odds-grid { grid-template-columns: minmax(0, 760px); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 140px; /* two rows of links in the sticky header */ }
  .wrap { width: calc(100% - 40px); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; min-height: 100px; padding-top: 6px; }
  .wordmark { font-size: 16px; }
  .language-nav { border: 0; padding: 0; grid-row: 1; grid-column: 2; }
  /* Six links do not fit one phone row: they wrap between links, never inside one. */
  .main-nav { grid-column: 1/-1; grid-row: 2; margin: 0; flex-wrap: wrap; justify-content: flex-start; gap: 0 18px; }
  .main-nav a { font-size: 13px; min-height: 38px; white-space: nowrap; }
  .hero { grid-template-columns: 1fr 132px; gap: 0 16px; align-items: start; padding-block: 40px 60px; }
  .hero-copy { display: contents; }
  .hero h1 { grid-row: 1; grid-column: 1; font-size: clamp(50px, 13vw, 82px); margin: 0 0 30px -3px; align-self: center; }
  .hero-portrait { grid-row: 1; grid-column: 2; align-self: center; margin-bottom: 30px; }
  .portrait-ring { border-width: 6px; box-shadow: 0 0 0 5px #dce6e2; }
  .hero-role { grid-row: 2; grid-column: 1/-1; font-size: 24px; }
  .hero-credential { grid-row: 3; grid-column: 1/-1; margin-top: 20px; font-size: 13px; }
  .hero-research { grid-row: 4; grid-column: 1/-1; margin-top: 22px; font-size: 19px; }
  .hero-guide { grid-row: 5; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 34px; padding: 14px; border-radius: 26px; }
  .guide-cv { gap: 14px; padding-right: 0; }
  .guide-arrow { width: 48px; height: 48px; }
  .guide-title { font-size: 18px; }
  .guide-links { flex-direction: column; }
  /* The map fills the screen behind the stories. Each story rises as a card, and the
     plane flies in the empty stretch between two cards: nothing stays pinned at the top. */
  .map-shell { top: 100px; height: calc(100svh - 100px); min-height: 0; }
  #journey-map { width: 100%; height: 100%; margin: 0; }
  .map-shell::after { background: linear-gradient(0deg, var(--paper), transparent 16%, transparent 94%, var(--paper)); }
  .map-credit { left: 20px; }
  .journey-steps { margin-top: calc(-100svh + 100px); }
  .journey-step { display: block; min-height: 0; padding: 108svh 12px 0; }
  .journey-step:first-child { padding-top: 54svh; }
  .journey-step:last-child { padding-bottom: 14svh; }
  .chapter-card { scroll-margin-top: 112px; }
  .has-motion .chapter-card { padding: 26px 22px 22px; border: 1px solid #d5dfdacc; border-radius: 26px; background: #f4f6f3f2; box-shadow: 0 18px 48px #0021471c; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .chapter-card h3 { font-size: 55px; }
  .chapter-body { font-size: 22px; line-height: 1.65; }
  .chapter-date { font-size: 17px; margin-bottom: 23px; }
  .journey-facts dd { font-size: 18px; }
  .institutions { gap: 20px 24px; }
  .mark-oxford img { width: 65px; height: 65px; }
  .mark-clarendon img { width: 81px; }
  .mark-ipp img { height: 38px; }
  /* The index becomes a sticky bar of three progress segments under the header. */
  .experiences { padding-block: 32px 72px; }
  .experiences-layout { display: block; }
  .experience-index { top: 101px; z-index: 6; margin: 0 -20px 28px; padding: 0 20px; background: #f4f6f3f2; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
  .experience-index ol { display: flex; gap: 10px; }
  .experience-index li { flex: 1 1 auto; min-width: 0; }
  .experience-index li + li { margin: 0; }
  .experience-content { padding-top: 0; }
  .index-link { display: block; min-height: 48px; padding: 15px 0 11px; }
  .index-rail { top: 0; right: 0; bottom: auto; width: auto; height: 3px; }
  .index-rail::after { transform: scaleX(var(--progress, 0)); transform-origin: left; }
  .index-number, .index-span { display: none; }
  .index-title { display: block; margin: 0; overflow: hidden; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; }
  .has-index .index-title { color: var(--muted); font-weight: 500; }
  .has-index .index-link[aria-current] .index-title { font-weight: 650; }
  .experience-stage { padding-bottom: 64px; scroll-margin-top: 170px; }
  .experience-entry { grid-template-columns: 1fr; gap: 6px; padding: 22px 0 24px; }
  .entry-date { margin: 0; }
  .experience-entry h4 { font-size: 22px; }
  .awards-grid { gap: 10px; }
  .award, .award:last-child { padding: 18px 17px; border-radius: 16px; }
  .award h4 { font-size: 18px; }
  .award-meta { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 15px; }
  .award-meta .entry-date { padding-left: 0; border-left: 0; }
  .odds-section { padding-block: 54px 64px; }
  .odds-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .odds-card { border-radius: 20px; }
  .odds-visual { height: 150px; }
  .odds-copy { padding: 22px 20px 14px; }
  .galaxy-symbol { width: 116px; height: 116px; }
  .thesis-cover { width: 84px; padding: 10px 8px 8px 11px; font-size: 5.5px; }
  .thesis-cover strong { padding-top: 6px; font-size: 7.5px; }
  .odds-copy h3 { font-size: 24px; }
  .odds-copy p { font-size: 17px; }
  .thesis-work cite { font-size: 18px; }
  .contact-inner { grid-template-columns: 1fr; gap: 24px; }
  .contact-section { padding-block: 48px; }
  .email-link { font-size: 19px; }
  .site-footer { flex-direction: column; align-items: flex-start; font-size: 12px; gap: 6px; }
  .footer-notes p + p { font-size: 12px; }
  .cv-link { margin-top: 56px; font-size: 19px; }
}
@media (max-width: 370px) {
  .hero { grid-template-columns: 1fr 108px; gap: 0 12px; }
  .hero h1 { font-size: 48px; }
  .hero-role { font-size: 22px; }
  .hero-guide { padding: 12px; }
  .guide-button { padding: 0 16px; font-size: 14px; }
  .main-nav a { font-size: 12px; }
  .experience-index ol { gap: 6px; }
  .index-title { font-size: 12.5px; letter-spacing: -.02em; }
  .awards-grid { grid-template-columns: 1fr; }
  .odds-visual { height: 130px; }
}
/* Readable fallback for reduced motion, short viewports and print. */
html:not(.has-motion) .map-shell { position: relative; top: auto; height: 430px; min-height: 0; max-height: none; }
html:not(.has-motion) #journey-map { width: 100%; margin: 0; }
html:not(.has-motion) .map-shell::after { background: linear-gradient(0deg, var(--paper), transparent 12%, transparent 88%, var(--paper)); }
html:not(.has-motion) .journey-steps { margin-top: 0; }
html:not(.has-motion) .journey-step { min-height: 0; max-width: 900px; margin: auto; padding: 45px 28px; }
html:not(.has-motion) .chapter-card { scroll-margin-top: 20px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .galaxy-card:hover .galaxy-symbol { transform: rotate(-18deg); }
}
@media print {
  .site-header, .site-footer, .experience-index, .map-shell, .hero-guide { display: none; }
  body { font-size: 12pt; background: white; }
  .wrap { width: 100%; }
  .hero { padding: 20px 0; }
  .hero-portrait { max-width: 200px; }
  .journey-steps { margin: 0; }
  .journey-step { min-height: 0; padding: 20px 0; }
  .experiences-layout { display: block; }
  .experience-stage { padding: 20px 0; }
  .has-reveal .experience-entry { opacity: 1; transform: none; }
  .contact-section { background: white; color: var(--ink); }
  .contact-inner p { color: var(--muted); }
  .experience-entry { break-inside: avoid; }
}
