/* Concept: warm ivory editorial page. Serif headlines, quiet sans body, small mono labels, hairline rules. Sage is decorative only (text uses charcoal and a darkened muted tone for contrast). */
:root {
  --bg: #F5F3EE;
  --ink: #202321;
  --muted: #5A5F5B;
  --line: #DEDCD5;
  --sage: #87928A;
  --sage-ink: #5E6A62;
  --grid: rgba(32, 35, 33, .05); --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n' x='0' y='0' width='100%' height='100%' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0.46 0 0 0 0.270  0.46 0 0 0 0.270  0.46 0 0 0 0.270  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E");
  --soft: #EDEBE4;
  --map-base: #DEDCD5; --wr: #5F6A63; --rc-africa: #B8623A; --rc-europe: #4C6A8C; --rc-me: #C49A3C; --rc-asia: #9A6679; --rc-na: #5F8A6B;
  --map-line: #F5F3EE;
  --li: #0A66C2;
  --em: #C5221F;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171918; --ink: #ECEAE4; --muted: #A9AEA8; --line: #2E322F; --sage: #8F9A92; --sage-ink: #A7B2AA;
    --grid: rgba(236, 234, 228, .045); --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n' x='0' y='0' width='100%' height='100%' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0.4 0 0 0 0.300  0.4 0 0 0 0.300  0.4 0 0 0 0.300  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"); --soft: #1E211F; --map-base: #2B2F2C; --wr: #7E8A82; --rc-africa: #D9825A; --rc-europe: #7F9FC4; --rc-me: #DDB65A; --rc-asia: #C28CA0; --rc-na: #86B193; --map-line: #171918; --li: #5AA9F0; --em: #F28B82; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171918; --ink: #ECEAE4; --muted: #A9AEA8; --line: #2E322F; --sage: #8F9A92; --sage-ink: #A7B2AA;
  --grid: rgba(236, 234, 228, .045); --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n' x='0' y='0' width='100%' height='100%' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0.4 0 0 0 0.300  0.4 0 0 0 0.300  0.4 0 0 0 0.300  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"); --soft: #1E211F; --map-base: #2B2F2C; --wr: #7E8A82; --rc-africa: #D9825A; --rc-europe: #7F9FC4; --rc-me: #DDB65A; --rc-asia: #C28CA0; --rc-na: #86B193; --map-line: #171918; --li: #5AA9F0; --em: #F28B82; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background-color: var(--bg); background-image: var(--paper); background-blend-mode: soft-light; color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  padding-left: var(--gl); padding-right: var(--gr);
  -webkit-font-smoothing: antialiased;
}
/* paper texture sits on the body itself; the old vertical grid lines are gone */
body::after { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); }
main, footer, .site-header { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; font-weight: 400; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; margin-inline: calc(-1 * var(--gl)) calc(-1 * var(--gr)); padding-inline: var(--gl) var(--gr); background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sage); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 68px; max-width: 1240px; margin: 0 auto; }
.brand { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: 0; text-decoration: none; white-space: nowrap; justify-self: start; }
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; font: 400 12px var(--font-mono); text-transform: uppercase; }
.nav-links li + li::before { content: "/"; margin: 0 .7em; color: var(--muted); }
.nav-links a { text-decoration: none; color: var(--muted); padding: 6px 0; transition: color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.theme-btn { font: 400 12px var(--font-mono); text-transform: uppercase; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: transparent; cursor: pointer; transition: border-color .2s ease; }
.theme-btn:hover { border-color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 400 12px var(--font-mono); text-transform: uppercase; letter-spacing: .02em; padding: 12px 18px; border-radius: 4px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.pill:hover { background: transparent; color: var(--ink); }
.pill.ghost { background: transparent; color: var(--ink); }
.pill.ghost:hover { background: var(--ink); color: var(--bg); }
.pill .arr { display: inline-block; transition: transform .2s ease; }
.pill:hover .arr { transform: translate(2px, -2px); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font: 400 12px var(--font-mono); text-transform: uppercase; padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: 48px; width: 230px; margin: 0; padding: 6px; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.menu li a { display: block; padding: 12px; text-decoration: none; font: 400 12px var(--font-mono); text-transform: uppercase; }
.menu li a:hover, .menu li a[aria-current="true"] { background: var(--soft); }
@media (max-width: 940px) { .nav { grid-template-columns: 1fr auto; } .nav-links, .nav-right .pill { display: none; } .menu { display: block; } }

/* Section scaffolding */
section { padding-block: 120px 0; }
.sec { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; }
.sec > * { min-width: 0; }
.sec-label { font: 400 12px var(--font-mono); text-transform: uppercase; padding-top: 14px; }
.sec-head { font-size: clamp(40px, 5.4vw, 76px); max-width: 16ch; margin-bottom: 28px; }
.sec-lead { max-width: 56ch; color: var(--muted); font-size: 18px; margin: 0; }
.sub { margin-top: 96px; padding-top: 20px; border-top: 1px solid var(--ink); }
.sub-h { font: 400 12px var(--font-mono); text-transform: uppercase; margin: 0 0 28px; display: flex; justify-content: space-between; gap: 16px; letter-spacing: .02em; }
.sub-h span:last-child { color: var(--muted); }
.sub-title { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 22px; max-width: 20ch; }
@media (max-width: 860px) { .sec { grid-template-columns: 1fr; gap: 16px; } section { padding-block: 80px 0; } .sub { margin-top: 68px; } }

/* Home */
.hero { padding-block: 56px 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.intro .hero-eyebrow { font: 400 12px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 24px; }
.intro .hero-tags { font: 400 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); line-height: 1.8; margin: 0 0 28px; max-width: 60ch; }
.hero-name { font: 400 12px var(--font-mono); text-transform: uppercase; margin: 0 0 28px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -.02em; margin: 0 0 32px; }
.hero h1 { display: grid; }
.hero h1 .ln { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); animation: lnCycle 13.5s cubic-bezier(.4,0,.2,1) infinite; }
.hero h1 .ln:nth-child(2) { animation-delay: 4.5s; }
.hero h1 .ln:nth-child(3) { animation-delay: 9s; }
@keyframes lnCycle { 0% { opacity: 0; transform: translateY(14px); } 8% { opacity: 1; transform: none; } 27% { opacity: 1; transform: none; } 33.3% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 0; transform: translateY(-10px); } }
.rotator { position: relative; margin: 0 0 40px; min-height: 2.1em; font-family: var(--font-display); font-weight: 500; font-style: normal; font-size: clamp(42px, 6vw, 84px); line-height: 1; letter-spacing: -.02em; max-width: 14ch; color: var(--ink); }
.rot-line { display: block; transition: opacity 1.1s ease; }
.rot-line.out { opacity: 0; }
.intro p { font-size: 17px; max-width: 54ch; }
.intro .lede { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.4; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-photo { margin: 0; max-width: 320px; justify-self: end; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: 2px; background: var(--line); }
.hero-photo figcaption { margin-top: 12px; font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 88px; border-top: 1px solid var(--ink); }
.stat { display: block; padding: 22px 22px 6px 0; text-decoration: none; transition: background-color .2s ease; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.stat em { display: inline-block; margin-top: 10px; font: 400 11px var(--font-mono); text-transform: uppercase; font-style: normal; color: var(--sage-ink); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.stat:hover em { border-bottom-color: var(--sage-ink); }
@media (max-width: 860px) {
  .hero { padding-block: 32px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 260px; justify-self: start; order: 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }
  .stat { padding: 22px 16px 22px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.about-copy p { font-size: 16px; max-width: 58ch; }
.facts { margin: 0; padding: 0; list-style: none; align-content: start; }
.facts li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.pillar { padding: 22px 0 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
.pillar .n { font: 400 12px var(--font-mono); color: var(--muted); padding-top: 8px; }
.pillar h3 { font-size: 30px; margin-bottom: 8px; line-height: 1.05; }
.pillar p { margin: 0; font-size: 15px; color: var(--muted); max-width: 40ch; }
.edu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.edu h3 { font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); margin: 0 0 16px; letter-spacing: .02em; }
.edu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.edu li b { display: block; font-weight: 500; font-size: 16px; line-height: 1.35; }
.edu li span { display: block; font-size: 14px; color: var(--muted); }
.skills { margin: 36px 0 0; font-size: 14px; color: var(--muted); max-width: 78ch; }
.skills b { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } .pillars, .edu { grid-template-columns: 1fr; gap: 0 32px; } .edu { gap: 32px; } }

/* Experience: timeline */
.tl-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; margin-bottom: 36px; }
.tl-tabs::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--line); }
.tl-tab { position: relative; text-align: left; background: none; border: 0; padding: 32px 14px 8px 0; cursor: pointer; display: grid; gap: 2px; align-content: start; }
.tl-tab::before { content: ""; position: absolute; top: 4px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); box-shadow: 0 0 0 5px var(--bg); transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.tl-tab:hover::before { border-color: var(--ink); }
.tl-tab[aria-selected="true"]::before { background: var(--ink); border-color: var(--ink); transform: scale(1.25); }
.tl-tab .yr { font: 400 12px var(--font-mono); color: var(--muted); }
.tl-tab .co { font-family: var(--font-display); font-size: clamp(19px, 1.9vw, 25px); line-height: 1.1; color: var(--muted); transition: color .2s ease; }
.tl-tab[aria-selected="true"] .co, .tl-tab:hover .co { color: var(--ink); }
.tl-tab[aria-selected="true"] .yr { color: var(--ink); }
.tl-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; padding: 30px 0 10px; border-top: 1px solid var(--ink); animation: fade .5s ease both; }
.tl-panel h3 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 8px; }
.tl-meta { font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); line-height: 1.8; margin: 0; }
.tl-panel .desc { font-size: 17px; max-width: 54ch; margin-bottom: 18px; }
.tl-panel ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; max-width: 58ch; font-size: 15px; }
.tl-panel li::marker { color: var(--sage); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .tl-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tl-tabs::-webkit-scrollbar { display: none; }
  .tl-tab { scroll-snap-align: start; }
  .tl-panel { grid-template-columns: 1fr; gap: 14px; }
}

/* Experience: results accordion */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; background: none; border: 0; text-align: left; cursor: pointer; }
.acc-btn h3 { font-size: clamp(24px, 3vw, 40px); transition: padding-left .25s ease; }
.acc-btn:hover h3 { padding-left: 8px; }
.acc-btn .pm { flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; position: relative; transition: border-color .2s ease; }
.acc-btn:hover .pm { border-color: var(--ink); }
.acc-btn .pm::before, .acc-btn .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); }
.acc-btn .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s ease; }
.acc-btn[aria-expanded="true"] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; padding: 0 0 30px; animation: fade .4s ease both; }
.acc-fig b { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 5vw, 68px); line-height: .95; font-variant-numeric: tabular-nums; }
.acc-fig span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); max-width: 28ch; line-height: 1.45; }
.org { font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.acc-panel ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; max-width: 62ch; font-size: 15px; }
.acc-panel li::marker { color: var(--sage); }
@media (max-width: 860px) { .acc-panel { grid-template-columns: 1fr; gap: 14px; } }
.li-link { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.li-link span { color: var(--muted); font-size: 15px; }

/* Markets map */
.mk-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.regions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.regions button, .filters button { font: 400 12px var(--font-mono); text-transform: uppercase; padding: 9px 13px; border-radius: 4px; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.regions button:hover, .filters button:hover { border-color: var(--ink); }
.regions button[aria-pressed="true"], .filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.region-text { min-height: 7.5em; animation: fade .4s ease both; }
.region-text h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 10px; }
.region-text p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.map-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.map { width: 100%; height: 340px; }
.map-note { font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); margin: 8px 0 0; }
.jvm-tooltip { position: absolute; z-index: 20; background: var(--ink); color: var(--bg); font-size: 13px; padding: 4px 10px; border-radius: 3px; pointer-events: none; }
@media (max-width: 860px) { .mk-grid { grid-template-columns: 1fr; gap: 24px; } .map { height: 250px; } }

/* Perspectives */
.ev-group { font: 400 12px var(--font-mono); text-transform: uppercase; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.ev-group i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.ev-group.past i { background: transparent; border: 1px solid var(--muted); }
.ev-list { border-top: 1px solid var(--line); margin-bottom: 44px; }
.event { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.event .when { font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); line-height: 1.8; }
.event h4 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 8px; }
.event p { margin: 0 0 8px; font-size: 15px; color: var(--muted); max-width: 66ch; }
.event .session { font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--ink); }
.ev-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.speak-enq { display: inline-flex; margin-top: -12px; font: 400 12px var(--font-mono); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.speak-enq:hover { color: var(--sage-ink); border-color: var(--sage-ink); }
@media (max-width: 860px) { .event { grid-template-columns: 1fr; gap: 6px; } }
.gal-wrap { position: relative; }
.gal-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
.shot { flex: none; position: relative; padding: 0; border: 0; border-radius: 2px; background: var(--line); overflow: hidden; cursor: zoom-in; scroll-snap-align: start; width: min(520px, 78vw); aspect-ratio: 3 / 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.03); }
.gal-nav { display: flex; gap: 8px; }
.gal-nav button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; background: transparent; cursor: pointer; font-size: 18px; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.gal-nav button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gal-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; }
.gal-note { margin: 0; font-size: 13px; color: var(--muted); max-width: 64ch; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px var(--gr) 24px var(--gl); background: rgba(12, 13, 12, .95); }
.lb-fig { margin: 0; max-width: min(1200px, 100%); min-width: 0; text-align: center; }
.lb-fig img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 3px; margin: 0 auto; }
.lb-fig figcaption { margin-top: 12px; font: 400 12px var(--font-mono); text-transform: uppercase; color: #CFCFC9; }
.lb-close, .lb-nav { background: transparent; color: #fff; border: 1px solid #666; border-radius: 50%; width: 44px; height: 44px; font-size: 26px; line-height: 1; cursor: pointer; flex: none; }
.lb-close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
.lb-close:hover, .lb-nav:hover { border-color: #fff; }
@media (max-width: 860px) { .lb-nav { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } .lb-nav.prev { left: calc(16px + env(safe-area-inset-left, 0px)); } .lb-nav.next { right: calc(16px + env(safe-area-inset-right, 0px)); } }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.mag { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.art { grid-column: span 2; display: flex; flex-direction: column; gap: 14px; padding: 24px 0 28px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .2s ease; }
.art:first-child { grid-column: span 4; }
.art .tag { font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--sage-ink); }
.art h4 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
.art:first-child h4 { font-size: clamp(32px, 4vw, 52px); max-width: 22ch; }
.art .go { margin-top: auto; font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); }
.art:hover h4 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.art:hover .go { color: var(--ink); }
.mag-empty { grid-column: 1 / -1; padding: 24px 0; color: var(--muted); }
@media (max-width: 860px) { .mag { grid-template-columns: 1fr; } .art, .art:first-child { grid-column: auto; } }
.fn { margin-top: 56px; padding: 36px 0 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; }
.fn h4 { font-size: clamp(40px, 5vw, 68px); letter-spacing: .02em; text-transform: uppercase; line-height: .95; }
.fn .sub-line { font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); margin: 10px 0 14px; color: var(--sage-ink); }
.fn p { color: var(--muted); max-width: 56ch; }
@media (max-width: 860px) { .fn { grid-template-columns: 1fr; gap: 12px; } }

/* Beyond */
.bignum { font-family: var(--font-display); font-weight: 500; font-size: clamp(88px, 11vw, 150px); line-height: .85; }
.bignum small { font-size: .42em; }
.bn-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.bn-grid p.txt { color: var(--muted); max-width: 40ch; margin-top: 18px; }
.country-panel { margin-top: 20px; padding: 18px 0 0; border-top: 1px solid var(--ink); min-height: 5em; animation: fade .4s ease both; }
.country-panel h3 { font-size: 32px; margin-bottom: 4px; }
.country-panel .cp-meta { font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.country-panel img { width: 100%; max-width: 360px; border-radius: 2px; margin: 12px 0; }
.country-panel p { color: var(--muted); max-width: 44ch; }
.visited { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.visited button { font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.visited button:hover { border-color: var(--ink); }
.visited button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 860px) { .bn-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Contact */
.contact-lead { max-width: 52ch; color: var(--muted); font-size: 18px; margin: 0 0 40px; }
.contact-list { list-style: none; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 14px; }
.ic-link { --c: var(--ink); display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid var(--c); border-radius: 4px; color: var(--c); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.ic-link svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic-link:hover, .ic-link[aria-expanded="true"] { background: var(--c); color: #fff; transform: translateY(-2px); }
.mail-menu { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 0; }
.mail-menu a, .mail-menu .copy { font: 400 12px var(--font-mono); text-transform: uppercase; padding: 11px 14px; border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); text-decoration: none; background: transparent; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.mail-menu a:hover, .mail-menu .copy:hover { background: var(--ink); color: var(--bg); }
.also { margin: 44px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; }
.also p { margin: 0; color: var(--muted); font-size: 15px; max-width: 62ch; }
@media (max-width: 860px) { .also { grid-template-columns: 1fr; gap: 8px; } }
footer { margin-top: 120px; margin-inline: calc(-1 * var(--gl)) calc(-1 * var(--gr)); padding-inline: var(--gl) var(--gr); border-top: 1px solid var(--line); font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; }
.to-top { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; border-radius: 4px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); font-size: 18px; cursor: pointer; z-index: 35; transition: background-color .2s ease, color .2s ease; }
.to-top:hover { background: var(--ink); color: var(--bg); }

/* Motion */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.hero-grid > * { animation: fade .9s ease both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { display: block; }
  .hero h1 .ln { display: block; opacity: 1; transform: none; animation: none; }
  .hero-grid > *, .tl-panel, .acc-panel, .region-text, .country-panel { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .rot-line { transition: none; }
  .shot img, .shot:hover img { transition: none; transform: none; }
  .ic-link:hover { transform: none; }
}

.intro .lede .w { opacity: 0; transition: opacity .45s ease; }
.intro .lede .w.on { opacity: 1; }
.intro .lede { transition: opacity 1s ease; }
.intro .lede.fading { opacity: 0; }
.intro .lede.fading .w { transition: none; }

.edu li b a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }
.edu li b a:hover { color: var(--sage-ink); }
.pillar p .w { opacity: 0; transition: opacity .45s ease; }
.pillar p .w.on { opacity: 1; }
.pillar p { transition: opacity 1s ease; }
.pillar p.fading { opacity: 0; }
.pillar p.fading .w { transition: none; }

/* ---------- Refinement pass ---------- */
/* About */
.ab-block { margin-bottom: 44px; }
.ab-block h3 { font-size: clamp(26px, 2.6vw, 34px); margin: 0 0 12px; }
.ab-block p { max-width: 54ch; margin-bottom: .85em; }
.edu { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.skill-group + .skill-group { margin-top: 18px; }
.skill-group b { display: block; font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); margin-bottom: 4px; letter-spacing: .02em; }
.skill-group span { display: block; font-size: 14px; line-height: 1.55; }
@media (max-width: 860px) { .edu { grid-template-columns: 1fr; } .ab-block { margin-bottom: 32px; } }

/* Results: large figures, short descriptions, details on request */
.acc-h { margin: 0; font-family: var(--font-body); font-size: inherit; font-weight: 400; letter-spacing: 0; line-height: inherit; }
.acc-btn { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 34px; justify-content: normal; gap: 32px; align-items: start; padding: 34px 0; }
.acc-btn .fig { font-family: var(--font-display); font-weight: 500; font-size: clamp(46px, 5.4vw, 78px); line-height: .9; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.acc-btn .txt { display: block; }
.acc-btn .ttl { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; transition: transform .25s ease; }
.acc-btn:hover .ttl { transform: translateX(6px); }
.acc-btn .cap { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 46ch; }
.acc-btn .org { display: block; margin-top: 12px; font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); }
.acc-btn .pm { margin-top: 4px; }
.acc-panel { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 34px; gap: 32px; padding: 0 0 34px; }
.acc-panel ul { grid-column: 2; }
@media (max-width: 860px) {
  .acc-btn { grid-template-columns: minmax(0, 1fr) 34px; gap: 12px 16px; padding: 26px 0; }
  .acc-btn .fig { grid-column: 1 / -1; }
  .acc-btn .txt { grid-column: 1; }
  .acc-btn .pm { grid-column: 2; grid-row: 2; }
  .acc-panel { grid-template-columns: 1fr; padding-bottom: 28px; }
  .acc-panel ul { grid-column: 1; }
}

/* Timeline: vertical on mobile */
@media (max-width: 860px) {
  .tl-tabs { display: block; overflow: visible; scroll-snap-type: none; margin-bottom: 20px; }
  .tl-tabs::before { left: 5px; right: auto; top: 14px; bottom: 14px; width: 1px; height: auto; }
  .tl-tab { display: grid; width: 100%; padding: 12px 0 12px 32px; }
  .tl-tab::before { top: 19px; left: 0; }
  .tl-tab .co { font-size: 23px; }
}

/* Perspectives: large editorial photograph with thumbnails */
.feature { margin: 0 0 14px; }
.feature-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--line); cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.feature-btn img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s ease; }
.feature-btn:hover img { transform: scale(1.025); }
.feature-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 14px; color: var(--ink); }
.feature-cap .mono { color: var(--muted); }
.gal-strip { gap: 8px; padding-bottom: 6px; scroll-snap-type: none; }
.gal-strip .shot { width: clamp(84px, 11.4%, 124px); cursor: pointer; opacity: .62; transition: opacity .25s ease; }
.gal-strip .shot:hover, .gal-strip .shot.on { opacity: 1; }
.gal-strip .shot.on { outline: 1px solid var(--ink); outline-offset: 2px; }
.gal-strip .shot:hover img { transform: none; }

/* Beyond: warmer tone */
.warm { background: var(--soft); margin-inline: calc(-1 * var(--gl)) calc(-1 * var(--gr)); padding-inline: var(--gl) var(--gr); padding-block: 112px; margin-top: 120px; }
.warm .bn-grid p.txt { font-family: var(--font-display); font-style: italic; font-size: clamp(21px, 2vw, 26px); line-height: 1.4; color: var(--ink); max-width: 30ch; }
.warm .map-box { border-color: var(--line); }
.visited button { border-radius: 3px; }
@media (max-width: 860px) { .warm { padding-block: 72px; margin-top: 80px; } }
.acc-btn .fig { font-size: clamp(40px, 4.4vw, 62px); white-space: nowrap; }
@media (max-width: 860px) { .acc-btn .fig { font-size: clamp(44px, 12vw, 60px); } }

/* Speaking photo */
.speak-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,4fr); gap: clamp(32px,5vw,72px); align-items: start; }
.speak-photo { margin: 0; position: sticky; top: 96px; }
.speak-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 28%; border-radius: 0; box-shadow: none; }
.speak-photo figcaption { margin-top: 12px; font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 860px) { .speak-grid { grid-template-columns: minmax(0,1fr); } .speak-photo { position: static; order: -1; margin: 0 0 32px; max-width: 360px; } .speak-photo img { aspect-ratio: 4/5; object-position: 50% 28%; } }

/* ---------- Multi-page ---------- */
@keyframes pagein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
main { animation: pagein .55s cubic-bezier(.2,.6,.2,1) both; }
@media (prefers-reduced-motion: reduce) { main { animation: none; } }
.subpage main > section:first-child { padding-top: 72px; }
.subpage .warm { margin-top: 0; padding-block: 88px 112px; }
@media (max-width: 860px) { .subpage main > section:first-child { padding-top: 48px; } .subpage .warm { padding-block: 56px 72px; } }
.brand { text-decoration: none; color: inherit; }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 96px; padding-top: 20px; border-top: 1px solid var(--line); font: 400 12px var(--font-mono); text-transform: uppercase; }
.pager a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.pager a:hover { color: var(--sage-ink); border-color: var(--sage-ink); }
.pager.end { justify-content: flex-start; }
.subpage .warm + .wrap .pager, .subpage .warm .pager { margin-top: 72px; }
.contact-blocks { display: grid; gap: 28px; margin-top: 8px; }

/* ---------- Swipe between pages ---------- */
@keyframes slide-from-right { from { opacity: 0; transform: translateX(56px); } to { opacity: 1; transform: none; } }
@keyframes slide-from-left { from { opacity: 0; transform: translateX(-56px); } to { opacity: 1; transform: none; } }
main.from-right { animation: slide-from-right .5s cubic-bezier(.2,.6,.2,1) both; }
main.from-left { animation: slide-from-left .5s cubic-bezier(.2,.6,.2,1) both; }
main.swiping { transition: none; will-change: transform; }
main.leaving { transition: transform .28s ease, opacity .28s ease; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { main.from-right, main.from-left { animation: none; } main.leaving { transition: none; } }

/* ---------- Coloured maps ---------- */
.map-box path[data-code] { transition: opacity .2s ease; }
.map-box path[data-code]:hover { opacity: .78; }
button[data-rc]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rc); margin-right: 8px; }
.visited button { border-left: 3px solid var(--rc, var(--line)); }
.visited button[aria-pressed="true"] { border-left-color: var(--rc, var(--ink)); }

/* ---------- Milestones with flags ---------- */
.flag { width: 20px; height: 14px; flex: none; vertical-align: -2px; margin-right: 4px; outline: 1px solid var(--line); outline-offset: 0; }
.tl-tab .loc { font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; line-height: 1.5; margin-top: 4px; }
.tl-tab .loc i { font-style: normal; flex-basis: 100%; padding-left: 28px; margin-top: -2px; }
.tl-tab[aria-selected="true"] .loc { color: var(--ink); }
.tl-panel.multi { display: block; }
.tl-role { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; padding-bottom: 30px; }
.tl-role + .tl-role { border-top: 1px solid var(--line); padding-top: 30px; }
@media (max-width: 860px) { .tl-role { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Contact icons: filled circles ---------- */
.ic-link { width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--c); color: #fff; }
.ic-link svg { width: 24px; height: 24px; }
.ic-link svg.fill { fill: currentColor; stroke: none; }
.ic-link:hover, .ic-link[aria-expanded="true"] { background: var(--c); color: #fff; opacity: .88; transform: translateY(-2px); }
.contact-list { gap: 14px; }

/* ---------- Paper texture and hairline dividers ---------- */
.warm { background-image: var(--paper); background-blend-mode: soft-light; }
.sub { border-top: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); }


/* ---------- Request my CV ---------- */
.also[id] { scroll-margin-top: 110px; }
.cv-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: end; margin-top: 22px; max-width: 760px; }
.cv-form label { display: grid; gap: 8px; min-width: 0; }
.cv-form label span { font: 400 12px var(--font-mono); text-transform: uppercase; color: var(--muted); }
.cv-form label em { font-style: normal; text-transform: none; }
.cv-form input { font: 400 17px var(--font-body); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 8px 0; width: 100%; outline: none; }
.cv-form input:focus { border-bottom-color: var(--sage-ink); box-shadow: 0 1px 0 var(--sage-ink); }
.cv-form .pill { cursor: pointer; font-family: var(--font-mono); }
.cv-err { margin: 12px 0 0; color: var(--em); font-size: 14px; }
.cv-req .mail-menu { padding-top: 18px; }
@media (max-width: 860px) { .cv-form { grid-template-columns: 1fr; } .cv-form .pill { justify-self: start; } }

.cv-form .wide { grid-column: 1 / -1; }
.cv-form textarea { font: 400 17px var(--font-body); color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 0; padding: 10px 12px; width: 100%; resize: vertical; outline: none; min-height: 88px; }
.cv-form textarea:focus { border-color: var(--sage-ink); box-shadow: 0 0 0 1px var(--sage-ink); }
.cv-form .pill { justify-self: start; grid-column: 1 / -1; }
.adv-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.adv-list li { position: relative; padding-left: 20px; }
.adv-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--sage-ink); }

.cv-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cv-ok { margin: 14px 0 0; color: var(--sage-ink); font-size: 15px; }
.cv-form .pill[disabled] { opacity: .6; cursor: progress; }
