/* Hallmark · shape: the route, a CV told as stops on a road, set on glass · genre: editorial · theme: custom (by request: Poppins, the sage green of her printed CV, an Apple-like liquid-glass finish) · job: hire · idea: "a doctor's training read as a route from Pretoria to Soweto to the Lowveld, each stop opened by its year, on frosted glass over a soft green light" · vibe: "calm, polished, glassy, alive, clinical warmth"
 * paper: oklch(98.2% 0.006 170) · accent: oklch(49% 0.075 172) · display: Poppins 600 · body: Poppins 300/400 · hero: centred name, live ECG trace, a tilting portrait on glass with floating credentials that settles as you scroll · nav: floating glass capsule with an iOS-style switch · footer: one line · imagery: her own portrait · signature: the segmented-control route with a play ring, and the dock that magnifies
 * axes: light/geometric-sans/cool · posture: polished-glass · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, glass everywhere risks noise; the glass sits only on things you can touch or read in a card, the ground stays plain paper with three soft lights */
/* waive 1 display-font: Poppins was asked for by name for this CV */
/* waive 12 overshoot-easing: the spring on the switch, segment thumb and toggles is the Apple-like feel asked for, used only on small controls */
/* waive 23 hue-for-category: the green is carried over from her printed CV so the two read as one */
@import url("./tokens.css");
@import url("./base.css");

html { scroll-padding-top: 120px; }
body { font-weight: 300; line-height: 1.6; letter-spacing: -0.005em; transition: background-color var(--dur-long) var(--ease-out), color var(--dur-long) var(--ease-out); }
strong, b { font-weight: 500; }
main, .footer, .nav-shell { position: relative; z-index: 1; }

.skip { position: fixed; left: var(--space-md); top: var(--space-md); transform: translateY(-300%); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-pill); z-index: var(--z-toast); }
.skip:focus-visible { transform: none; }

/* Ambient light behind the glass */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 46vmax; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: 0.75; animation: drift 26s var(--ease-in-out) infinite alternate; }
.blob-1 { background: var(--color-blob-1); top: -18vmax; left: -10vmax; }
.blob-2 { background: var(--color-blob-2); top: 30vh; right: -18vmax; animation-duration: 32s; animation-delay: -8s; }
.blob-3 { background: var(--color-blob-3); bottom: -22vmax; left: 20vw; animation-duration: 38s; animation-delay: -16s; opacity: 0.6; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8vmax, 6vmax) scale(1.12); } 100% { transform: translate(-6vmax, 10vmax) scale(0.94); } }

/* Liquid glass */
.glass { position: relative; isolation: isolate; background: var(--color-glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border: 1px solid var(--color-glass-edge); box-shadow: inset 0 1px 0 var(--color-glass-hi), inset 0 -1px 1px var(--color-glass-shade), var(--shadow-glass); }
.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: linear-gradient(140deg, var(--color-spec) 0%, transparent 38%, transparent 70%, var(--color-spec) 100%); opacity: 0.55; }
[data-spec]::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(220px circle at var(--mx, 30%) var(--my, 0%), var(--color-glass-hi), transparent 65%); opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
[data-spec]:hover::after { opacity: 0.7; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 50px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); border: 1px solid transparent; font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-accent-ink) 30%, transparent), var(--shadow-float); }
.btn-primary:hover { background: var(--color-ink); color: var(--color-paper); }
.btn-glass { color: var(--color-ink); }
.btn-sm { min-height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }

/* Floating glass nav */
.nav-shell { position: fixed; top: var(--space-md); left: 0; right: 0; z-index: var(--z-sticky-nav); display: flex; justify-content: center; padding-inline: var(--space-md); pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); border-radius: var(--radius-pill); width: min(100%, 880px); transition: transform var(--dur-long) var(--ease-out), box-shadow var(--dur-long) var(--ease-out); }
.nav-shell.is-scrolled .nav { transform: scale(0.97); }
.wordmark { font-weight: 600; font-size: var(--text-md); text-decoration: none; letter-spacing: -0.02em; margin-right: auto; white-space: nowrap; }
.nav-links { display: flex; gap: var(--space-3xs); list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 400; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.nav-links a:hover { color: var(--color-ink); background: var(--color-glass); }
.nav-links a[aria-current="true"] { color: var(--color-ink); background: var(--color-glass-strong); box-shadow: inset 0 1px 0 var(--color-glass-hi), 0 2px 8px -2px var(--color-glass-shade); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(0); }

/* iOS-style switch */
.switch { display: inline-flex; align-items: center; padding: var(--space-2xs); background: none; border: 0; cursor: pointer; border-radius: var(--radius-pill); }
.switch-track { position: relative; width: 52px; height: 32px; border-radius: var(--radius-pill); background: var(--color-paper-3); box-shadow: inset 0 1px 3px var(--color-glass-shade); transition: background-color var(--dur-long) var(--ease-out); }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--color-knob); box-shadow: var(--shadow-knob); transition: transform var(--dur-long) cubic-bezier(0.34, 1.56, 0.64, 1); }
.switch:active .switch-knob { transform: scaleX(1.15); }
.switch[aria-checked="true"] .switch-track { background: var(--color-accent); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(20px); }
.switch[aria-checked="true"]:active .switch-knob { transform: translateX(16px) scaleX(1.15); }

/* Hero */
.hero { display: grid; justify-items: center; text-align: center; padding-top: 152px; padding-bottom: var(--space-3xl); }
.hero-text { display: grid; justify-items: center; will-change: transform, opacity; }
.status { display: inline-flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); color: var(--color-ink); font-size: var(--text-sm); font-weight: 400; margin-bottom: var(--space-lg); }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--color-accent); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3); opacity: 0; } }
.hero-title { font-size: clamp(3rem, 8vw + 0.5rem, 7.5rem); font-weight: 600; line-height: 0.98; letter-spacing: var(--tracking-display); color: var(--color-ink); }
.hero-lead { font-size: clamp(1.2rem, 0.8vw + 1rem, 1.6rem); color: var(--color-ink-2); max-width: 32ch; margin-top: var(--space-lg); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); margin-top: var(--space-xl); }
.ecg { width: min(100%, 560px); height: 48px; margin-top: var(--space-xl); overflow: visible; }
.ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ecg-base { stroke: var(--color-paper-3); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ecg-draw 1.6s var(--ease-out) 0.6s forwards; }
.ecg-pulse { stroke: var(--color-accent); stroke-width: 2.5; stroke-dasharray: 0.14 1; stroke-dashoffset: 0.14; animation: ecg-run 2.8s linear 1.6s infinite; opacity: 0; }
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }
@keyframes ecg-run { 0% { stroke-dashoffset: 0.14; opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }

.hero-stage { margin-top: var(--space-2xl); width: min(100%, 440px); will-change: transform; }
.hero-visual { position: relative; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform var(--dur-long) var(--ease-out); transform-style: preserve-3d; }
.hero-photo { position: relative; margin: 0; aspect-ratio: 1000 / 1353; }
.photo-panel { position: absolute; left: 0; right: 0; top: 18%; bottom: 0; border-radius: 40px; background: var(--color-photo-1); border: 1px solid var(--color-glass-edge); box-shadow: inset 0 1px 0 var(--color-glass-hi), var(--shadow-glass), var(--shadow-photo); overflow: hidden; }
.photo-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, var(--color-spec) 0%, transparent 40%); }
.hero-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; clip-path: inset(-50% 0 0 0 round 40px); filter: drop-shadow(0 18px 24px var(--color-glass-shade)); transform: translateZ(25px); }
.badge { position: absolute; display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-sm); border-radius: var(--radius-pill); color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; animation: float 6s var(--ease-in-out) infinite; transform: translateZ(50px); }
.badge svg { color: var(--color-accent); }
.badge-a { top: 12%; left: -28%; }
.badge-b { top: 50%; right: -26%; animation-delay: -2s; }
.badge-c { bottom: 9%; left: -22%; animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Entrance */
.rise { animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Scroll reveal: only while the script runs, so content shows without it */
.js .reveal { opacity: 0; transform: translateY(32px) scale(0.98); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Section heads */
.section-head { margin-bottom: var(--space-xl); max-width: 760px; }
.section-title { font-size: clamp(2.25rem, 3.2vw + 1rem, 4rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; color: var(--color-ink); max-width: 20ch; }
.section-lead { margin-top: var(--space-md); font-size: var(--text-lead); color: var(--color-ink-2); }

/* Bento */
.glance { padding-block: var(--section-gap-s) var(--section-gap); }
.bento { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: var(--space-md); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-lg); border-radius: var(--radius-glass); overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform var(--dur-long) var(--ease-out), opacity 0.9s var(--ease-out); }
.js .tile.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tile-hero { grid-column: span 2; grid-row: span 2; padding: var(--space-xl); }
.tile-wide { grid-column: span 2; justify-content: flex-start; }
.tile-accent { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: var(--shadow-glass); }
.tile-figure { font-size: clamp(4.5rem, 9vw, 9rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.05em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.tile-figure-s { font-size: clamp(3.5rem, 5vw, 5rem); }
.tile-big { font-size: clamp(1.75rem, 2.2vw + 0.75rem, 2.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
.tile-title { font-size: var(--text-title); font-weight: 600; letter-spacing: -0.02em; margin-bottom: var(--space-md); }
.tile-text { margin-top: var(--space-sm); color: var(--color-ink-2); max-width: 34ch; }
.tile-accent .tile-text { color: color-mix(in oklab, var(--color-accent-ink) 85%, transparent); }
.tile-hero .tile-text { font-size: var(--text-lead); }
.tile-art { position: absolute; top: var(--space-xl); right: var(--space-xl); width: 46%; color: var(--color-accent); opacity: 0.7; }
.tile-art path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .tile.in .tile-art path, .tile-art path { transition: stroke-dashoffset 2s var(--ease-out) 0.4s; }
.js .tile:not(.in) .tile-art path { stroke-dashoffset: 1; }
.js .tile.in .tile-art path { stroke-dashoffset: 0; }
html:not(.js) .tile-art path { stroke-dashoffset: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm) var(--space-lg); }
.checks li { position: relative; padding-left: 28px; color: var(--color-ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; background: var(--color-accent); }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(0.3em + 4px); width: 5px; height: 9px; border: solid var(--color-accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.langs { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin-top: auto; }

/* Route */
.route { padding-bottom: var(--section-gap); }
.route-bar { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.segmented { --i: 3; position: relative; flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: var(--space-2xs); border-radius: var(--radius-pill); max-width: 880px; }
.seg-thumb { position: absolute; top: var(--space-2xs); bottom: var(--space-2xs); left: var(--space-2xs); width: calc((100% - 8px) / 6); border-radius: var(--radius-pill); background: var(--color-glass-strong); border: 1px solid var(--color-glass-edge); box-shadow: inset 0 1px 0 var(--color-glass-hi), 0 6px 16px -6px var(--color-glass-shade), 0 2px 4px -2px var(--color-glass-shade); transform: translateX(calc(var(--i) * 100%)); transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1); z-index: 0; }
.segmented button { position: relative; z-index: 1; display: grid; justify-items: center; padding: var(--space-xs) var(--space-2xs); background: none; border: 0; border-radius: var(--radius-pill); color: var(--color-muted); cursor: pointer; transition: color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.segmented button:hover { color: var(--color-ink); }
.segmented button:active { transform: scale(0.95); }
.segmented button[aria-selected="true"] { color: var(--color-ink); }
.segmented button:focus-visible { outline-offset: -3px; }
.seg-year { font-size: var(--text-md); font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.seg-place { font-size: var(--text-xs); }

.play { position: relative; flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: var(--color-ink); cursor: pointer; transition: transform var(--dur-short) var(--ease-out); }
.play:hover { transform: scale(1.06); }
.play:active { transform: scale(0.94); }
.play-ring { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); transform: rotate(-90deg); }
.play-ring circle { fill: none; stroke: var(--color-accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.play.is-running .play-ring circle { animation: ring 3.2s linear forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.play .i-pause { display: none; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.route-count { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }

.route-panels { display: grid; touch-action: pan-y; }
.stop { position: relative; overflow: hidden; border-radius: var(--radius-glass); padding: var(--space-xl); min-height: 300px; cursor: grab; }
.stop:active { cursor: grabbing; }
.stop-year-mark, .stop[data-year] .stop-when { position: relative; }
.stop > * { position: relative; z-index: 1; }
.stop .stop-mark { position: absolute; right: var(--space-lg); bottom: -0.2em; z-index: 0; font-size: clamp(5rem, 13vw, 11rem); font-weight: 600; line-height: 1; letter-spacing: -0.06em; color: color-mix(in oklab, var(--color-accent) 12%, transparent); pointer-events: none; font-variant-numeric: tabular-nums; }
.js .stop.enter-next { animation: stop-next 0.6s var(--ease-out); }
.js .stop.enter-prev { animation: stop-prev 0.6s var(--ease-out); }
@keyframes stop-next { from { opacity: 0; transform: translateX(60px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes stop-prev { from { opacity: 0; transform: translateX(-60px) scale(0.98); } to { opacity: 1; transform: none; } }
.stop-when { font-size: var(--text-sm); color: var(--color-accent); font-weight: 500; }
.stop-title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2vw + 1rem, 2.1rem); font-weight: 600; line-height: 1.15; margin-top: var(--space-xs); letter-spacing: -0.03em; max-width: 26ch; }
.stop-list { margin: var(--space-lg) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-sm); max-width: 60ch; }
.stop-list li { position: relative; padding-left: var(--space-lg); color: var(--color-ink-2); }
.stop-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.js .stop.enter-next .stop-list li, .js .stop.enter-prev .stop-list li { animation: rise 0.6s var(--ease-out) both; }
.js .stop .stop-list li:nth-child(2) { animation-delay: 80ms; }
.js .stop .stop-list li:nth-child(3) { animation-delay: 160ms; }
.js .stop .stop-list li:nth-child(4) { animation-delay: 240ms; }
.stop-cta { margin-top: var(--space-lg); }

/* Honours */
.honours { padding-bottom: var(--section-gap); }
.honours-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.honours-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.honour { border-radius: 24px; overflow: hidden; transition: transform var(--dur-long) var(--ease-out); }
.honour:hover { transform: scale(1.015); }
.honour.open { border-color: color-mix(in oklab, var(--color-accent) 50%, transparent); }
.honour-btn { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) 32px; align-items: center; gap: var(--space-md); padding: var(--space-lg); background: none; border: 0; text-align: left; color: var(--color-ink); cursor: pointer; border-radius: 24px; }
.honour-btn:focus-visible { outline-offset: -3px; }
.h-num { color: var(--color-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.h-text { display: grid; }
.h-name { font-size: var(--text-title); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.h-where { color: var(--color-muted); font-size: var(--text-sm); margin-top: var(--space-2xs); }
.h-icon { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--color-glass-strong); box-shadow: inset 0 1px 0 var(--color-glass-hi), 0 2px 6px -2px var(--color-glass-shade); transition: transform var(--dur-long) cubic-bezier(0.34, 1.56, 0.64, 1), background-color var(--dur-short) var(--ease-out); }
.h-icon::before, .h-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--color-ink); translate: -50% -50%; }
.h-icon::after { rotate: 90deg; }
.honour.open .h-icon { transform: rotate(135deg); background: var(--color-accent); }
.honour.open .h-icon::before, .honour.open .h-icon::after { background: var(--color-accent-ink); }
.h-more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--dur-long) var(--ease-out); }
.h-more > div { overflow: hidden; }
.h-more p { padding: 0 var(--space-lg) var(--space-lg) calc(var(--space-xl) * 2); color: var(--color-ink-2); max-width: 60ch; }
.js .h-more { grid-template-rows: 0fr; }
.js .honour.open .h-more { grid-template-rows: 1fr; }

/* Approach */
.approach { padding-bottom: var(--section-gap); }
.approach-title { font-size: clamp(2rem, 3.8vw + 0.75rem, 4.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.04em; max-width: 22ch; color: var(--color-ink); }
.approach-title .w { transition: color 0.4s var(--ease-out), opacity 0.4s var(--ease-out); }
.js .approach-title .w { color: var(--color-paper-3); }
.js .approach-title .w.lit { color: var(--color-ink); }
.approach-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); max-width: 900px; }
.col-title { font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; color: var(--color-ink-2); margin-bottom: var(--space-md); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); list-style: none; margin: 0; padding: 0; }
.tags li { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-pill); font-size: var(--text-sm); color: var(--color-ink); cursor: default; transition: transform var(--dur-short) cubic-bezier(0.34, 1.56, 0.64, 1); }
.tags li:hover { transform: translateY(-4px) scale(1.04); }

/* Contact */
.contact { padding-bottom: var(--section-gap-s); }
.contact-card { display: grid; justify-items: center; text-align: center; padding: var(--space-3xl) var(--space-xl) var(--space-2xl); border-radius: 40px; }
.contact-title { font-size: clamp(2.5rem, 5vw + 0.5rem, 5rem); font-weight: 600; line-height: 1.02; letter-spacing: var(--tracking-display); max-width: 14ch; color: var(--color-ink); }
.contact-line { margin-top: var(--space-lg); font-size: clamp(1.25rem, 1.6vw + 0.75rem, 1.875rem); font-weight: 400; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact-line-s { margin-top: var(--space-2xs); font-size: var(--text-lead); color: var(--color-ink-2); }
.contact-line a { position: relative; text-decoration: none; }
.contact-line a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: 100% 50%; transition: transform var(--dur-long) var(--ease-out); }
.contact-line a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.dock { list-style: none; margin: var(--space-2xl) 0 0; padding: var(--space-sm) var(--space-md); display: flex; align-items: flex-end; gap: var(--space-sm); border-radius: 28px; }
.dock li { --s: 1; transform: translateY(calc((var(--s) - 1) * -18px)) scale(var(--s)); transform-origin: 50% 100%; transition: transform 160ms var(--ease-out); }
.dock-item { display: grid; justify-items: center; gap: var(--space-xs); padding: 0; background: none; border: 0; color: var(--color-ink); text-decoration: none; cursor: pointer; font: inherit; border-radius: 18px; }
.dock-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--color-glass-strong); border: 1px solid var(--color-glass-edge); box-shadow: inset 0 1px 0 var(--color-glass-hi), 0 6px 14px -6px var(--color-glass-shade); color: var(--color-accent); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.dock-item:hover .dock-icon { background: var(--color-accent); color: var(--color-accent-ink); }
.dock-item:active .dock-icon { transform: scale(0.92); }
.dock-item:focus-visible { outline-offset: 4px; }
.dock-label { font-size: var(--text-xs); color: var(--color-ink-2); white-space: nowrap; }
.toast { min-height: 1.6em; margin-top: var(--space-md); color: var(--color-ink-2); font-size: var(--text-sm); }

/* Footer */
.footer { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-lg) var(--space-xl); color: var(--color-muted); font-size: var(--text-sm); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--color-ink); text-decoration: underline; }

/* Responsive */
@media (max-width: 60rem) {
  .nav-links { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .honours-inner { grid-template-columns: minmax(0, 1fr); }
  .badge-a { left: -16%; } .badge-b { right: -14%; } .badge-c { left: -10%; }
}
@media (max-width: 40rem) {
  .hero { padding-top: 120px; }
  .hero-stage { width: min(100%, 300px); }
  .badge { font-size: var(--text-xs); padding: var(--space-xs) var(--space-sm); }
  .badge-a { left: -10%; } .badge-b { right: -10%; } .badge-c { left: -6%; }
  .nav-print { display: none; }
  .nav { padding-left: var(--space-md); }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .tile, .tile-hero, .tile-wide { grid-column: auto; grid-row: auto; min-height: 180px; }
  .tile-art { display: none; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .seg-place { display: none; }
  .seg-year { font-size: var(--text-sm); }
  .route-bar { gap: var(--space-xs); }
  .play { width: 50px; height: 50px; }
  .stop { padding: var(--space-lg); min-height: 0; }
  .approach-cols { grid-template-columns: minmax(0, 1fr); }
  .honour-btn { grid-template-columns: 28px minmax(0, 1fr) 32px; gap: var(--space-sm); padding: var(--space-md); }
  .h-more p { padding: 0 var(--space-md) var(--space-md); }
  .contact-card { padding: var(--space-2xl) var(--space-md) var(--space-xl); border-radius: 32px; }
  .dock { gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); }
  .dock-icon { width: 46px; height: 46px; border-radius: 14px; }
  .dock-label { font-size: 0.6875rem; }
}

/* Reduced motion: still and fully visible */
@media (prefers-reduced-motion: reduce) {
  .blob, .badge, .pulse-dot::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .approach-title .w { color: var(--color-ink); }
  .ecg-base { stroke-dashoffset: 0; }
  .ecg-pulse { display: none; }
  .hero-visual, .tile { transform: none; }
  .js .tile:not(.in) .tile-art path { stroke-dashoffset: 0; }
}

/* Print: one tidy CV from the same content */
@media print {
  :root { color-scheme: light; }
  .ambient, .nav-shell, .hero-actions, .route-bar, .stop-cta, .skip, .dock, .toast, .footer a, .section-lead, .ecg, .badge, .h-icon, .tile-art, .route-count, .stop-mark, .status .pulse-dot { display: none !important; }
  .glass { background: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; border: 1px solid var(--color-rule); }
  .glass::before, [data-spec]::after { display: none; }
  .stop[hidden] { display: block !important; }
  .js .reveal, .rise { opacity: 1 !important; transform: none !important; animation: none !important; filter: none !important; }
  .js .h-more { grid-template-rows: 1fr; }
  .js .approach-title .w { color: var(--color-ink); }
  body { font-size: 10.5pt; background: none; }
  .hero { padding: 0 0 12pt; text-align: left; justify-items: start; grid-template-columns: minmax(0, 1fr) 110px; }
  .hero-text { justify-items: start; transform: none !important; opacity: 1 !important; }
  .hero-stage { margin: 0; width: 110px; transform: none !important; grid-column: 2; grid-row: 1; }
  .hero-visual { transform: none; }
  .hero-photo { border-radius: 12px; box-shadow: none; }
  .hero-title { font-size: 28pt; }
  .glance, .route, .honours, .approach, .contact { padding-block: 10pt; }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 6pt; margin-top: 8pt; }
  .tile, .tile-hero, .tile-wide { grid-column: auto; grid-row: auto; padding: 8pt; transform: none !important; break-inside: avoid; }
  .tile-accent { background: none; color: var(--color-ink); border: 1px solid var(--color-rule); }
  .tile-figure, .tile-figure-s { font-size: 22pt; }
  .tile-big { font-size: 14pt; }
  .stop { padding: 6pt 0; min-height: 0; border: 0 !important; animation: none; break-inside: avoid; }
  .route-panels { gap: 4pt; }
  .honour-btn { padding: 4pt 0; }
  .h-more p { padding: 0 0 4pt; }
  .section-title, .contact-title, .approach-title { font-size: 15pt; color: var(--color-ink); max-width: none; }
  .contact-card { padding: 8pt; text-align: left; justify-items: start; }
  .contact-line { font-size: 12pt; }
  .container { padding-inline: 0; max-width: none; }
}
