/* Pietropaolo Frisoni: site styles. One stylesheet, no build step. */

/* ---------- Fonts ---------- */

/* Self-hosted fonts from Google Fonts (SIL Open Font License), latin and latin-ext subsets. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/inter-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/jetbrains-mono-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url(../fonts/space-grotesk-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url(../fonts/space-grotesk-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}


/* ---------- Theme ---------- */

:root {
	--bg: #0B0F17;
	--surface: #121826;
	--surface2: #1A2234;
	--border: #252E42;
	--text: #ECEAE4;
	--muted: #9AA3B2;
	--phys: #E8A33D;
	--hpc: #3CC4C9;
	--quant: #A08BFF;
	--font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	/* Side margin of the page: 32px on narrow screens, growing at a quarter of the extra width on wide ones. */
	--gutter: max(32px, calc((100vw - 1264px) / 4 + 16px));
	color-scheme: dark;
}

:root.theme-light {
	--bg: #F7F6F2;
	--surface: #FFFFFF;
	--surface2: #ECEAE3;
	--border: #DCD9D0;
	--text: #14171F;
	--muted: #596070;
	--phys: #9A5B00;
	--hpc: #0A7276;
	--quant: #6447D6;
	color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.6;
	overflow-wrap: break-word;
	transition: background-color .4s ease, color .4s ease;
}

img { max-width: 100%; height: auto; }

a { color: var(--text); }
a:hover { color: var(--quant); }

:focus-visible { outline: 2px solid var(--quant); outline-offset: 3px; border-radius: 6px; }

/* Keeps wide decorations (the hero canvas, glows) from causing sideways scrolling on phones. */
.page { overflow-x: hidden; overflow-x: clip; }

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 10;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--text);
	color: var(--bg);
	text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.wrap {
	width: 100%;
	max-width: calc(1600px + 2 * var(--gutter));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.eyebrow {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Links inside running text get a quiet underline. */
.prose a {
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
	text-underline-offset: 3px;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	transition: border-color .2s, transform .2s;
}
.btn:hover { color: var(--text); border-color: var(--text); transform: translateY(-1px); }
.btn-primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-primary:hover { color: var(--bg); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text);
	cursor: pointer;
	transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--text); }

.icon-moon { display: none; }
.theme-light .icon-sun { display: none; }
.theme-light .icon-moon { display: block; }

.icon-play { display: none; }
[data-paused="true"] .icon-pause { display: none; }
[data-paused="true"] .icon-play { display: block; }

/* ---------- Navigation ---------- */

.nav {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "brand links toggle";
	align-items: center;
	column-gap: 24px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.brand {
	grid-area: brand;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	color: var(--text);
	text-decoration: none;
}
.brand:hover { color: var(--text); }

.brand-mark {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 1.5px solid var(--text);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
}

.brand-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; }

.nav-links {
	grid-area: links;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 2px;
	color: var(--muted);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
}
.nav-link:hover { color: var(--text); }

.theme-toggle { grid-area: toggle; }

.topbar { border-bottom: 1px solid var(--border); }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	min-height: 640px;
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid var(--border);
}

.hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }

.hero-body {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	align-items: center;
	padding-top: 24px;
	padding-bottom: 72px;
}

.hero-text { max-width: 580px; }

.identity { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

.avatar {
	display: block;
	flex: none;
	width: 112px;
	height: 112px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--phys);
	box-shadow: 0 0 0 7px color-mix(in srgb, var(--phys) 18%, transparent);
	transition: border-color .6s ease, box-shadow .6s ease;
}
.avatar.av-1 { border-color: var(--hpc); box-shadow: 0 0 0 7px color-mix(in srgb, var(--hpc) 18%, transparent); }
.avatar.av-2 { border-color: var(--quant); box-shadow: 0 0 0 7px color-mix(in srgb, var(--quant) 18%, transparent); }

.identity-eyebrow { margin-bottom: 12px; }

.hero-name {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 700;
	line-height: .98;
	letter-spacing: -.04em;
}

.hero-intro { margin: 24px 0 8px; font-size: 20px; color: var(--muted); }

.lenses { display: flex; flex-direction: column; }

.lens-btn {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	min-height: 52px;
	padding: 6px 0;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
}
.lens-phys { --lens: var(--phys); }
.lens-hpc { --lens: var(--hpc); }
.lens-quant { --lens: var(--quant); }

.lens-num { flex: none; width: 24px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.lens-dot {
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid var(--lens);
	transition: background-color .3s, box-shadow .3s;
}

.lens-label {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 600;
	letter-spacing: -.02em;
	line-height: 1.2;
	color: var(--muted);
	transition: color .3s;
}

.lens-btn:hover .lens-label, .lens-btn.is-on .lens-label { color: var(--text); }
.lens-btn.is-on .lens-dot { background: var(--lens); box-shadow: 0 0 0 5px color-mix(in srgb, var(--lens) 25%, transparent); }

.lens-caption { min-height: 78px; max-width: 480px; margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.lens-caption p { margin: 0; }
.lens-caption p[hidden] { display: none; }

.hero-foot {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 24px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
}

.hero-hint { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* The field selector and pause button only do something with scripts on. */
.hero-foot, .hero-hint { visibility: hidden; }
.js .hero-foot, .js .hero-hint { visibility: visible; }

/* ---------- Sections ---------- */

.section { padding-top: 136px; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 64px; }

.section-num { margin: 0 0 14px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--muted); }

.section-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -.03em;
}

.quote { margin: 0; max-width: 440px; }
.quote-mark { display: block; height: 28px; font-family: var(--font-display); font-size: 60px; line-height: 1; color: var(--phys); }
.quote blockquote { margin: 0; font-size: 17px; font-style: italic; line-height: 1.6; color: var(--muted); }
.quote figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.sub { margin: 72px 0 28px; font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: clamp(300px, 24vw, 420px) minmax(0, 860px); gap: 72px; align-items: center; margin-top: 56px; }
.about-photo { display: block; width: 100%; height: auto; aspect-ratio: 546 / 640; object-fit: cover; border-radius: 24px; }
/* Beside the photo, the text grows with the screen and spans the photo's full height, top edge to bottom edge. */
.about-text {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	font-size: clamp(18px, calc(.54vw + 11.2px), 23px);
}
.about-text p { margin: .8em 0 0; font-size: inherit; line-height: 1.6; color: var(--muted); }
.about-text p:first-child { margin-top: 0; color: var(--text); }

/* ---------- Timeline (Experience, Education) ---------- */

.tl { position: relative; display: flex; flex-direction: column; gap: 44px; margin: 0; padding: 0; list-style: none; }
.tl::before { content: ''; position: absolute; left: 199px; top: 12px; bottom: 12px; width: 2px; background: var(--border); }

.tl-item { display: grid; grid-template-columns: 176px 48px minmax(0, 1fr); align-items: start; }
.tl-when { padding-top: 2px; }
.tl-date { margin: 0; font-family: var(--font-mono); font-size: 13px; }
.tl-note { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.tl-rail { display: flex; justify-content: center; padding-top: 6px; }

.tl-dot { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--muted); }
.tl-dot.dot-phys { border-color: var(--phys); }
.tl-dot.dot-hpc { border-color: var(--hpc); }
.tl-dot.dot-quant { border-color: var(--quant); }
.tl-dot.is-filled { background: var(--quant); }

/* Long bullet lines get hard to read, so on wide screens the text keeps a comfortable width. */
.tl-body { min-width: 0; max-width: 980px; }
.tl-title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.3; }
.tl-org { margin: 4px 0 0; font-size: 16px; color: var(--muted); }

.bullets { margin: 12px 0 0; padding-left: 20px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.bullets li { margin-top: 6px; }

/* ---------- Tags, badges, chips ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags-inline { margin-top: 0; }

.tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	border: 1px solid currentColor;
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.5;
	white-space: nowrap;
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-physics { color: var(--phys); }
.tag-hpc { color: var(--hpc); }
.tag-quantum { color: var(--quant); }

.badge { padding: 3px 10px; border-radius: 6px; background: var(--surface2); font-family: var(--font-mono); font-size: 12px; line-height: 1.5; }

.chips { display: none; flex-wrap: wrap; gap: 10px; }
.js .chips { display: flex; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text);
	font: 500 15px var(--font-sans);
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--muted); }
.chip-physics::before, .chip-hpc::before, .chip-quantum::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.chip-physics::before { background: var(--phys); }
.chip-hpc::before { background: var(--hpc); }
.chip-quantum::before { background: var(--quant); }
.chip.is-on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip-n { font-family: var(--font-mono); font-size: 12px; opacity: .75; }

/* ---------- Cards and lists ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-cert { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }

.cards-after { margin-top: 72px; align-items: start; }
.cards-first { margin-top: 56px; }
.card-wide { margin-top: 24px; }

.card { padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.card-title { margin: 0 0 12px; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.card-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

.card-sm { padding: 24px; border-radius: 16px; }
.school { display: flex; flex-direction: column; gap: 10px; }
.school-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.school-date { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.school-title { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.3; }
.school-place { margin: 0; font-size: 14px; color: var(--muted); }
.school-text { margin: 0; font-size: 15px; }
.school-cert { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 500; }

.rows { margin: 0; padding: 0; list-style: none; }
.rows > li { padding: 14px 0; border-top: 1px solid var(--border); }
.rows-text { font-size: 16px; line-height: 1.6; color: var(--muted); }
.rows-text > li:first-child { border-top: 0; }
.row-title { font-weight: 500; }
a.row-title { text-decoration: none; }
.row-meta { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* A list that flows down one column, then the next. */
.split { columns: 2; column-gap: 40px; }
.split > li { break-inside: avoid; }

/* ---------- Publications ---------- */

.pub-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.pub-count { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.pubs { margin: 32px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--border); }
.pub { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 6px 24px; padding: 24px 0; border-top: 1px solid var(--border); }
.pub[hidden] { display: none; }
.pub-year { padding-top: 3px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.pub-body { min-width: 0; }
.pub-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.pub-authors { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.pub-venue { font-size: 15px; font-style: italic; }

/* ---------- Footer ---------- */

.footer { margin-top: 136px; border-top: 1px solid var(--border); }
.footer-inner { padding-top: 96px; padding-bottom: 40px; }

.footer-title {
	margin: 14px 0 0;
	max-width: 820px;
	font-family: var(--font-display);
	font-size: clamp(32px, 5vw, 64px);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -.03em;
}

.footer-text { margin: 20px 0 0; max-width: 600px; font-size: 18px; color: var(--muted); }
.footer-actions { margin-top: 36px; }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
	margin-top: 96px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	font-size: 14px;
	color: var(--muted);
}
.footer-quote { font-style: italic; }

/* ---------- 404 ---------- */

.notfound { padding-top: 120px; }
.notfound-text { margin: 20px 0 0; max-width: 560px; font-size: 18px; color: var(--muted); }
.notfound-quote { margin-top: 48px; }
.notfound .actions { margin-top: 40px; }

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
	.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }
	.fade { animation: fadein .5s ease both; }

	/* Reveal on scroll, where the browser supports scroll-driven animations; elsewhere content simply shows. */
	@supports (animation-timeline: view()) {
		.reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
	}
}

/* ---------- Tablets ---------- */

@media (max-width: 960px) {
	.nav {
		grid-template-columns: 1fr auto;
		grid-template-areas: "brand toggle" "links links";
		row-gap: 4px;
	}

	/* One swipeable row of links instead of wrapping lines. */
	.nav-links {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0 22px;
		margin: 0 calc(-1 * var(--gutter));
		padding: 0 var(--gutter);
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.nav-links::-webkit-scrollbar { display: none; }

	.grid-3, .about { grid-template-columns: minmax(0, 1fr); }
	.about { gap: 40px; }
	.about-photo { max-width: 320px; }
	.about-text { display: block; font-size: 18px; }
	.grid-cert { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Phones ---------- */

@media (max-width: 720px) {
	body { font-size: 16px; }

	.wrap { padding-left: 20px; padding-right: 20px; }
	.nav-links { margin: 0 -20px; padding: 0 20px; }

	.hero { min-height: 0; }
	.hero-body { padding-top: 8px; padding-bottom: 92px; }
	.identity { gap: 14px 16px; }
	.avatar { width: 72px; height: 72px; border-width: 2px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--phys) 18%, transparent); }
	.avatar.av-1 { box-shadow: 0 0 0 5px color-mix(in srgb, var(--hpc) 18%, transparent); }
	.avatar.av-2 { box-shadow: 0 0 0 5px color-mix(in srgb, var(--quant) 18%, transparent); }
	.identity-eyebrow { margin-bottom: 8px; font-size: 11px; }
	.hero-intro { margin-top: 20px; font-size: 18px; }
	.lens-btn { gap: 12px; min-height: 48px; }
	.lens-label { font-size: 22px; }
	.lens-caption { min-height: 104px; font-size: 15px; }
	.hero-foot { bottom: 20px; }

	.section { padding-top: 96px; }
	.section-head { gap: 24px; }
	.quote blockquote { font-size: 16px; }
	.sub { margin: 56px 0 22px; font-size: 23px; }
	.about-text p { font-size: 17px; }

	/* The timeline rail moves to the left edge, with the dates above each entry. */
	.tl { gap: 36px; }
	.tl::before { left: 7px; }
	.tl-item { grid-template-columns: 16px minmax(0, 1fr); column-gap: 20px; }
	.tl-rail { grid-column: 1; grid-row: 1 / span 2; justify-content: flex-start; padding-top: 4px; }
	.tl-when { grid-column: 2; grid-row: 1; padding: 0 0 6px; }
	.tl-body { grid-column: 2; grid-row: 2; }
	.tl-title { font-size: 20px; }
	.bullets { padding-left: 18px; font-size: 15px; }

	.grid-2 { grid-template-columns: minmax(0, 1fr); }
	.cards-after { margin-top: 56px; }
	.card { padding: 24px 20px; border-radius: 16px; }
	.split { columns: 1; }

	.chip { padding: 0 14px; font-size: 14px; }
	.pub { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 20px 0; }
	.pub-title { font-size: 18px; }

	.footer { margin-top: 96px; }
	.footer-inner { padding-top: 72px; }
	.footer-bottom { margin-top: 64px; }

	.notfound { padding-top: 72px; }
}

@media (max-width: 480px) {
	.lens-num { display: none; }
	.lens-label { font-size: 21px; }
	.hero-hint { display: none; }
	.btn { padding: 0 18px; }
}
