/* ==========================================================================
   Editorial dossier (dark only)
   ========================================================================== */

:root {
	--bg: #0f1115;
	--surface: #191d24;
	--surface-2: #20252e;
	--ink: #f1f3f6;
	--ink-2: #c4cad2;
	--ink-3: #8b919a;
	--line: #2b3038;
	--line-strong: #3b414a;
	--accent: #7d97ff;
	--ok: #6fc79a;
	--no: #f08a7e;

	--mesh-a: color-mix(in srgb, var(--accent) 30%, transparent);
	--mesh-b: color-mix(in srgb, var(--ok) 20%, transparent);
	--mesh-v: color-mix(in srgb, #a78bfa 13%, transparent);
	--mesh-w: color-mix(in srgb, #f0a868 11%, transparent);
	--ring: color-mix(in srgb, var(--ink) 7%, transparent);

	--font-display: 'Literata', Georgia, 'Times New Roman', serif;
	--font-text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

	--content: 1080px;
	--gutter: clamp(20px, 5vw, 56px);
	--radius: 6px;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

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

body {
	margin: 0;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	background-color: var(--bg);
	/* soft vignette for depth */
	background-image: radial-gradient(125% 120% at 50% 38%, transparent 42%, #06070a 100%);
	background-attachment: fixed;
	color: var(--ink);
	font: 400 17.5px/1.72 var(--font-text);
	text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* drifting colour-field mesh */
body::before {
	content: "";
	position: fixed;
	inset: -32vmax;
	z-index: 0;
	pointer-events: none;
	background-image:
		radial-gradient(42% 40% at 14% 10%, var(--mesh-a), transparent 70%),
		radial-gradient(40% 38% at 86% 16%, var(--mesh-b), transparent 72%),
		radial-gradient(46% 44% at 80% 92%, var(--mesh-v), transparent 74%),
		radial-gradient(44% 42% at 18% 94%, var(--mesh-w), transparent 74%);
	animation: drift 46s ease-in-out infinite alternate;
}

@keyframes drift {
	0% {
		transform: translate3d(-3%, -2%, 0) scale(1.04);
	}

	100% {
		transform: translate3d(3%, 3%, 0) scale(1.12);
	}
}

/* large faint rings for structure */
body::after {
	content: "";
	position: fixed;
	inset: -20vmax;
	z-index: 0;
	pointer-events: none;
	background-image:
		radial-gradient(circle at 103% -2%, transparent 0 41.9%, var(--ring) 42%, transparent 42.14%),
		radial-gradient(circle at 103% -2%, transparent 0 52.9%, var(--ring) 53%, transparent 53.12%),
		radial-gradient(circle at -3% 104%, transparent 0 34.9%, var(--ring) 35%, transparent 35.16%),
		radial-gradient(circle at -3% 104%, transparent 0 45.9%, var(--ring) 46%, transparent 46.14%),
		radial-gradient(circle at -3% 104%, transparent 0 56.9%, var(--ring) 57%, transparent 57.12%);
	animation: rings 74s ease-in-out infinite alternate;
}

@keyframes rings {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
	}

	100% {
		transform: translate3d(1.5%, -2.5%, 0) scale(1.05);
	}
}

/* the drifting layers are frozen while the tab is in the background */
body.is-paused::before,
body.is-paused::after {
	animation-play-state: paused;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
	margin: 0;
	text-wrap: balance;
}

::selection {
	background: var(--accent);
	color: #fff;
}

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

[hidden] {
	display: none !important;
}

.sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ic {
	width: 18px;
	height: 18px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ==========================================================================
   Switcher — the three titles, in-flow on the hub, docked sticky above
   ========================================================================== */

/* the shell stays put so the shading can own the viewport edge; only the row travels */
.switcher {
	position: fixed;
	inset: 0 0 auto;
	z-index: 60;
	pointer-events: none;
}

.switcher__row {
	position: relative;
	z-index: 1;
	max-width: var(--content);
	margin: 0 auto;
	padding: 6px var(--gutter);
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: var(--jumper-gap, clamp(22px, 4.4vw, 58px));
	pointer-events: auto;
	transform: translateY(var(--switcher-y, 60vh));
}

.switcher.is-ready .switcher__row {
	transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

/* roomier titles on the start screen */
body.is-hub {
	--jumper-gap: clamp(36px, 6.5vw, 100px);
}

/* lightweight shading behind the docked titles, from the very top of the viewport */
.switcher::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 124px;
	pointer-events: none;
	opacity: 0;
	background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 62%, transparent) 55%, transparent 100%);
	transition: opacity .35s var(--ease);
}

body:not(.is-hub) .switcher::before {
	opacity: 1;
}

.jumper {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 6px 0;
	color: var(--ink-2);
	text-decoration: none;
	white-space: nowrap;
	font: 400 clamp(17px, 2vw, 24px)/1.15 var(--font-display);
	letter-spacing: -.01em;
	cursor: pointer;
	transition: color .25s, font-size .55s cubic-bezier(.16, 1, .3, 1), opacity .25s;
}

.jumper.is-dimmed {
	opacity: 0;
	pointer-events: none;
}

.jumper::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: 0;
	background: var(--accent);
	transition: width .4s var(--ease);
}

.jumper:hover {
	color: var(--ink);
}

.jumper:hover::after {
	width: 100%;
}

.jumper.is-active {
	color: var(--accent);
}

.jumper.is-active::after {
	width: 100%;
}

/* roomier on the start screen */
body.is-hub .jumper {
	font-size: clamp(25px, 3.4vw, 42px);
}

/* when docked, fade the top of the scrolling content under the titles */
body:not(.is-hub) .view.is-active {
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 150px);
	mask-image: linear-gradient(180deg, transparent 0, #000 150px);
}

/* ==========================================================================
   Stage — crossfading views
   ========================================================================== */

.stage {
	position: fixed;
	inset: 0;
	z-index: 1;
}

/* calm scrim: keeps the colour but raises text contrast over it */
.stage::before {
	content: "";
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, #06070a 34%, transparent);
	pointer-events: none;
}

.view {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .3s cubic-bezier(.4, 0, .2, 1), transform .3s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .3s;
	scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent;
}

.view::-webkit-scrollbar {
	width: 8px;
}

.view::-webkit-scrollbar-thumb {
	background: var(--line-strong);
	border-radius: 4px;
}

.view::-webkit-scrollbar-track {
	background: transparent;
}

.view.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .5s cubic-bezier(.4, 0, .2, 1) .24s, transform .5s cubic-bezier(.4, 0, .2, 1) .24s, visibility 0s;
}

/* focused by showView only, never by Tab — no ring around the whole page */
.view:focus {
	outline: none;
}

.view__inner {
	width: 100%;
	max-width: var(--content);
	margin: 0 auto;
	padding: clamp(84px, 10vh, 118px) var(--gutter) clamp(28px, 4vh, 48px);
}

#top .view__inner {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: clamp(28px, 4vh, 54px);
}

/* ==========================================================================
   Hub
   ========================================================================== */

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: clamp(24px, 3vw, 48px);
	align-items: center;
}

.hero__name {
	font: 400 clamp(34px, 6vw, 72px)/1.02 var(--font-display);
	letter-spacing: -.03em;
}

.hero__role {
	margin: 16px 0 0;
	max-width: 26ch;
	font: italic 400 clamp(18px, 2.2vw, 24px)/1.35 var(--font-display);
	color: var(--ink-2);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: clamp(22px, 4vh, 34px);
}

.facts {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	gap: 18px;
	margin: clamp(18px, 3vh, 28px) 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--line);
}

.facts li {
	font: 400 15px/1.4 var(--font-display);
	color: var(--ink-2);
}

.facts li+li {
	padding-left: 18px;
	border-left: 1px solid var(--line);
}

.switcher-slot {
	margin-top: clamp(44px, 13vh, 150px);
	height: clamp(60px, 8vh, 96px);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border-radius: var(--radius);
	cursor: pointer;
	font: 500 15px var(--font-text);
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}

.btn .ic {
	width: 16px;
	height: 16px;
}

.btn--ghost {
	border-color: var(--line-strong);
	color: var(--ink);
	background: var(--surface);
}

.btn--ghost:hover {
	border-color: var(--ink);
	background: var(--surface-2);
	transform: translateY(-2px);
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* keep long reads as a single centred column so text doesn't hang left */
#skills .skills,
#jobs .jobs {
	max-width: 72ch;
	margin-left: auto;
	margin-right: auto;
}

.job ul:not([class]) {
	margin: .9em 0 0;
	padding: 0;
	list-style: none;
	color: var(--ink-2);
}

.job ul:not([class])>li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 8px;
}

.job ul:not([class])>li:last-child {
	margin-bottom: 0;
}

.job ul:not([class])>li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: .72em;
	width: 9px;
	height: 1.5px;
	background: var(--accent);
}

/* ==========================================================================
   Jobs ledger
   ========================================================================== */

.job {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	gap: 12px clamp(32px, 5vw, 64px);
	padding: 30px 0;
	border-bottom: 1px solid var(--line);
}

.job:first-child {
	padding-top: 6px;
}

.job:last-child {
	border-bottom: none;
}

.job__period {
	margin: 0;
	font: 400 12.5px/1.5 var(--font-mono);
	letter-spacing: .02em;
	color: var(--ink-3);
}

.job__title {
	font: 500 22px/1.3 var(--font-display);
	margin-bottom: 8px;
	letter-spacing: -.01em;
}

.job__text {
	margin: 0;
	color: var(--ink-2);
}

/* ==========================================================================
   Skills
   ========================================================================== */

.skill {
	padding: 40px 0;
	border-bottom: 1px solid var(--line);
}

.skill:first-child {
	padding-top: 8px;
}

.skill:last-child {
	border-bottom: none;
}

.skill__title {
	font: 500 clamp(22px, 3vw, 28px)/1.25 var(--font-display);
	margin-bottom: 10px;
	letter-spacing: -.01em;
}

.skill__text {
	margin: 0;
	color: var(--ink-2);
}

/* ==========================================================================
   Galleries
   ========================================================================== */

.gallery {
	margin: 22px 0 0;
}

/* the start screen's own gallery sits on the right of the hero */
.gallery--hero {
	margin: 0;
}

/* fixed stage: every slide sits in the same box, so the hub never shifts between slides */
.gallery--hero .gallery__photo {
	height: clamp(250px, 44vh, 480px);
}

.gallery__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: clamp(240px, 40vw, 420px);
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	overflow: hidden;
}

.gallery__photo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	border-radius: var(--radius);
	cursor: zoom-in;
	transition: opacity .2s;
}

.gallery__photo:hover img {
	opacity: .92;
}

.gallery__photo:focus-visible {
	outline: none;
}

.gallery__photo:focus-visible img {
	box-shadow: 0 0 0 2px var(--accent);
}

.gallery__caption {
	margin: 10px 0 0;
	text-align: center;
	font: italic 400 15px/1.4 var(--font-display);
	color: var(--ink-3);
}

/* arrows + dots, one row under every gallery */
.gallery__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 8px 0 14px;
}

.gallery__nav .dots {
	margin: 0;
}

.gallery__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink-2);
	cursor: pointer;
	transition: border-color .2s var(--ease), background-color .2s, color .2s;
}

.gallery__arrow:hover {
	border-color: var(--line-strong);
	background: var(--surface-2);
	color: var(--ink);
}

.gallery__arrow--prev .ic {
	transform: scaleX(-1);
}

.dots {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-top: 10px;
	margin-bottom: 14px;
	padding: 0;
}

.dot {
	position: relative;
	width: 28px;
	height: 18px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

.dot::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: var(--ink-3);
	opacity: .45;
	transition: background-color .2s, opacity .2s, transform .2s;
}

.dot:hover::before {
	opacity: .8;
}

.dot.is-active::before {
	background: var(--accent);
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.3);
}

/* ==========================================================================
   Contacts
   ========================================================================== */

.contacts {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 30px 0 0;
}

.contact {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 12px 6px 6px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}

.contact:hover {
	border-color: var(--line-strong);
	background: var(--surface-2);
	transform: translateY(-2px);
}

.contact__link {
	flex: 1;
	min-width: 0;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 12px 8px;
	background: none;
	border: 0;
	text-align: left;
	font: inherit;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.contact__icon {
	width: 46px;
	height: 46px;
	flex: none;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface-2);
	color: var(--accent);
	transition: border-color .2s;
}

.contact__icon .ic {
	width: 20px;
	height: 20px;
}

.contact:hover .contact__icon {
	border-color: var(--accent);
}

.contact__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.contact__value {
	font: 400 clamp(18px, 2.2vw, 24px)/1.2 var(--font-display);
	color: var(--ink);
	overflow-wrap: anywhere;
}

.contact__hint {
	font: 400 12px var(--font-mono);
	color: var(--ink-3);
}

/* small caption under a contact card */
.contact__arrow {
	width: 18px;
	height: 18px;
	color: var(--ink-3);
	transition: transform .3s var(--ease), color .2s;
}

.contact:hover .contact__arrow {
	color: var(--accent);
	transform: translateX(4px);
}

.contact__copy {
	flex: none;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: transparent;
	color: var(--ink-3);
	cursor: pointer;
	transition: color .2s, border-color .2s, background-color .2s;
}

.contact__copy:hover {
	color: var(--ink);
	border-color: var(--line-strong);
	background: var(--surface-2);
}

.terms__hint {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 40px 0 18px;
	font: 500 12.5px var(--font-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.terms__hint::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--line-strong);
}

.terms {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px clamp(36px, 6vw, 72px);
}

.terms__name {
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid currentColor;
	font: 500 15px var(--font-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
}

.terms__group--yes .terms__name {
	color: var(--ok);
}

.terms__group--no .terms__name {
	color: var(--no);
}

.terms__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.terms__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink-2);
}

/* the check / cross are drawn in CSS, no per-item markup */
.terms__list li::before {
	content: "";
	flex: none;
	width: 15px;
	height: 15px;
	margin-top: 4px;
	background: currentColor;
}

.terms__group--yes .terms__list li::before {
	color: var(--ok);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.terms__group--no .terms__list li::before {
	color: var(--no);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	z-index: 105;
	transform: translate(-50%, 14px);
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--ink);
	color: var(--bg);
	padding: 11px 18px;
	border-radius: var(--radius);
	font-size: 14px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}

.toast .ic {
	width: 15px;
	height: 15px;
	color: var(--accent);
}

.toast.show {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(10px, 2vw, 28px);
	background: rgba(8, 9, 12, .95);
	opacity: 0;
	visibility: hidden;
	/* visibility flips at once when opening, so the close button can take focus */
	transition: opacity .25s ease, visibility 0s linear .25s;
}

.lightbox.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .25s ease, visibility 0s;
}

.lightbox__figure {
	margin: 0;
	width: 100%;
	max-width: min(100%, 1800px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	transform: translateY(10px);
	transition: transform .3s var(--ease);
}

.lightbox.is-open .lightbox__figure {
	transform: none;
}

.lightbox__image {
	max-width: 100%;
	max-height: calc(100vh - 104px);
	width: auto;
	height: auto;
	border-radius: var(--radius);
	border: 1px solid rgba(238, 240, 245, .15);
}

.lightbox__caption {
	font: italic 400 17px/1.4 var(--font-display);
	color: rgba(238, 240, 245, .78);
	text-align: center;
}

.lightbox__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(238, 240, 245, .3);
	border-radius: var(--radius);
	background: rgba(8, 9, 12, .5);
	color: rgba(238, 240, 245, .85);
	cursor: pointer;
}

.lightbox__close:hover {
	border-color: rgba(238, 240, 245, .6);
	background: rgba(238, 240, 245, .15);
	color: #fff;
}

.lightbox .dots {
	margin: 0;
}

.lightbox .dot::before {
	background: rgba(238, 240, 245, .55);
}

.lightbox .dot.is-active::before {
	background: #fff;
}

/* ==========================================================================
   Hub load sequence — one orchestrated moment
   ========================================================================== */

.hero__name,
.hero__role,
.hero__actions,
.facts,
.gallery--hero {
	opacity: 0;
	transform: translateY(18px);
	animation: rise .8s var(--ease) forwards;
}

.hero__role {
	animation-delay: .1s;
}

.hero__actions {
	animation-delay: .18s;
}

.facts {
	animation-delay: .24s;
}

.gallery--hero {
	animation-delay: .18s;
}

@keyframes rise {
	to {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

	.hero__grid {
		grid-template-columns: 1fr;
		gap: 30px;
		align-items: start;
	}

	.switcher__row {
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
	}

	body.is-hub {
		--jumper-gap: 22px;
	}

	.switcher__row::-webkit-scrollbar {
		display: none;
	}

	body.is-hub .jumper {
		font-size: clamp(22px, 7vw, 30px);
	}

	.jumper {
		font-size: 16px;
	}

	.job {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.job__period {
		margin-bottom: 2px;
	}

	.contact {
		gap: 14px;
	}

	.contact__icon {
		width: 40px;
		height: 40px;
	}

	.terms {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.gallery__photo {
		height: 210px;
	}
}

/* ==========================================================================
   No-JS fallback — the resume reads as one static document
   ========================================================================== */

@media (scripting: none) {

	body {
		height: auto;
		overflow: auto;
	}

	.stage {
		position: static;
	}

	.view {
		position: static;
		inset: auto;
		opacity: 1;
		visibility: visible;
		transform: none;
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.switcher {
		position: static;
		margin: 22px 0 0;
	}

	.switcher::before {
		display: none;
	}

	.switcher-slot {
		display: none;
	}

	/* without the carousel script the hero would stack every slide */
	.gallery--hero .gallery__photo:not(:first-child) {
		display: none;
	}

	.switcher__row {
		justify-content: flex-start;
		transform: none;
	}
}

/* the nav draws the section titles — show them as headings whenever it is gone:
   no JavaScript at all, or the printed page */
@media (scripting: none),
print {
	.sr-only {
		position: static;
		width: auto;
		height: auto;
		margin: 0 0 16px;
		clip: auto;
		overflow: visible;
		white-space: normal;
		break-after: avoid;
		/* never strand a section title at the foot of a page */
		font: 400 clamp(26px, 4vw, 38px)/1.2 var(--font-display);
	}
}

/* ==========================================================================
   Preferences & print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

	body::before,
	body::after {
		animation: none;
	}

	.hero__name,
	.hero__role,
	.hero__actions,
	.facts,
	.gallery--hero {
		opacity: 1;
		transform: none;
		animation: none;
	}

	/* only the ambient decoration stops here — the switcher and the view
	   crossfade stay: without motion the titles just teleport and the timed
	   dimming leaves them invisible for half a second */
}

@media (prefers-contrast: more) {
	:root {
		--ink-2: var(--ink);
		--ink-3: var(--ink-2);
		--line: var(--line-strong);
	}
}

@media (forced-colors: active) {
	:root {
		--accent: LinkText;
		--ok: LinkText;
	}
}

@page {
	margin: 14mm;
}

@media print {

	/* the dark theme's inks are unreadable on a white page — the whole
	   PDF, contacts included, was printing near-white */
	:root {
		--ink: #111;
		--ink-2: #333;
		--ink-3: #555;
		--line: #ccc;
		--line-strong: #999;
		--accent: #111;
		/* dark cards with dark ink are unreadable once "background graphics"
		   is ticked in the print dialog — the same page has to print both ways */
		--surface: transparent;
		--surface-2: transparent;
		--ok: #2f6b4f;
		--no: #8a3f36;
	}

	html,
	body {
		height: auto;
		overflow: visible;
		background: #fff;
		background-image: none;
		color: #111;
		font-size: 12pt;
		text-shadow: none;
	}

	/* the decorative mesh and scrim are viewport-sized — drop them */
	body::before,
	body::after,
	.stage::before {
		display: none;
	}

	.switcher {
		display: none !important;
	}

	.stage {
		position: static;
	}

	.view {
		position: static;
		inset: auto;
		opacity: 1;
		visibility: visible;
		transform: none;
		overflow: visible;
		/* the docked-nav fade sits on .view.is-active and outranks this block —
		   left on, it washes out the first 150px of the section that was open */
		-webkit-mask-image: none !important;
		mask-image: none !important;
	}

	.view__inner,
	#top .view__inner {
		max-width: none;
		min-height: 0;
		padding: 0;
		display: block;
	}

	.hero__actions,
	.switcher-slot,
	.contact__copy,
	.contact--action,
	.lightbox__close,
	.toast,
	.lightbox {
		display: none !important;
	}

	.hero__name {
		font-size: 40pt;
	}

	.skill,
	.job,
	.terms__group,
	.contact {
		break-inside: avoid;
	}

	/* one column, so a parser reads date → title → text in that order */
	.job {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	/* the list markers are a background-filled pseudo-element, and backgrounds
	   are off by default when printing — use real glyph bullets instead */
	.job ul:not([class]) {
		list-style: disc;
		padding-left: 20px;
	}

	.job ul:not([class])>li {
		padding-left: 0;
	}

	.job ul:not([class])>li::before {
		content: none;
	}

	/* keep the PDF text-only */
	.gallery,
	.dots {
		display: none !important;
	}

	a {
		color: #111;
	}
}