/* ============================================================
   Vendulka Theme V2 — warm editorial
   ============================================================ */

:root {
	/* Warm neutral ramp */
	--vkx-bg:         #FAF7F2;
	--vkx-bg-alt:     #F2EDE4;
	--vkx-surface:    #FFFFFF;
	--vkx-ink:        #1A1815;
	--vkx-ink-soft:   #5F5852;
	--vkx-ink-faint:  #8C837A;
	--vkx-rule:       #E2DACE;

	/* Single accent */
	--vkx-accent:     #A8442A;
	--vkx-accent-dk:  #8E3722;
	--vkx-accent-tint:#F6EBE6;

	--vkx-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--vkx-body:    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--vkx-wide:    1240px;
	--vkx-prose:   680px;

	--vkx-step:    clamp(4rem, 9vw, 7.5rem);   /* vertical section rhythm */
	--vkx-gutter:  clamp(1.25rem, 5vw, 3rem);

	--vkx-ease:    cubic-bezier(.22, .61, .36, 1);
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Components below set `display`, which would otherwise beat the `hidden` attribute. */
[hidden] { display: none !important; }

/* Visible to screen readers, not on screen. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

html {
	scroll-behavior: smooth;
	/* Keep anchored headings clear of the sticky header. */
	scroll-padding-top: 6rem;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--vkx-body);
	font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
	line-height: 1.75;
	color: var(--vkx-ink);
	background: var(--vkx-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

h1, h2, h3 {
	font-family: var(--vkx-display);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.012em;
	text-wrap: balance;
}

a { color: var(--vkx-accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--vkx-accent-dk); }

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

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

.vkx-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--vkx-ink);
	color: #fff;
	padding: .75rem 1.25rem;
	z-index: 200;
}
.vkx-skip:focus { left: 0; }

/* ── Shared type primitives ────────────────────────────────── */
.vkx-eyebrow {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--vkx-ink-faint);
	margin-bottom: 1.25rem;
}

.vkx-section-title {
	font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
}

.vkx-section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.vkx-section-head--center { text-align: center; }

/* Title block left, a single action right, baselines aligned on the title. The action
   wraps under the title on narrow screens rather than squeezing it. */
.vkx-section-head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem 2rem;
}
.vkx-section-head__titles { min-width: 0; }

.vkx-rule {
	border: none;
	border-top: 1px solid var(--vkx-ink);
	width: 3.5rem;
	margin: 2rem 0;
	opacity: .8;
}

/* ── Buttons & arrow links ─────────────────────────────────── */
.vkx-btn {
	display: inline-block;
	background: var(--vkx-accent);
	color: #fff;
	font-family: var(--vkx-body);
	font-size: .9375rem;
	font-weight: 600;
	letter-spacing: .02em;
	padding: .9rem 1.75rem;
	border: 1px solid var(--vkx-accent);
	border-radius: 2px;
	text-decoration: none;
	transition: background .25s var(--vkx-ease), transform .25s var(--vkx-ease);
}
.vkx-btn:hover {
	background: var(--vkx-accent-dk);
	border-color: var(--vkx-accent-dk);
	color: #fff;
	transform: translateY(-1px);
}
.vkx-btn--sm { padding: .55rem 1.1rem; font-size: .8125rem; }
.vkx-btn--invert {
	background: transparent;
	border-color: rgba(255,255,255,.5);
	color: #fff;
}
.vkx-btn--invert:hover { background: #fff; border-color: #fff; color: var(--vkx-accent); }

.vkx-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--vkx-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--vkx-rule);
	padding-bottom: .2rem;
	transition: color .2s var(--vkx-ease), border-color .2s var(--vkx-ease);
}
.vkx-link-arrow::after {
	content: "\2192";
	transition: transform .25s var(--vkx-ease);
}
.vkx-link-arrow:hover { color: var(--vkx-accent); border-color: var(--vkx-accent); }
.vkx-link-arrow:hover::after { transform: translateX(4px); }

.vkx-link-arrow--invert { color: #fff; border-color: rgba(255,255,255,.4); }
.vkx-link-arrow--invert:hover { color: #fff; border-color: #fff; }

/* ── Sticky header ─────────────────────────────────────────── */
.vkx-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--vkx-bg);
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--vkx-ease), box-shadow .3s var(--vkx-ease), background .3s var(--vkx-ease);
}
/* Scrolled, the header inverts to ink. Everything inside it that carries an ink-on-ivory
   colour has to invert with it — brand, nav links, burger — or it goes invisible. The
   accent underline stays: it measures 3.08:1 on ink, clearing the 3:1 bar for a non-text
   indicator. The CTA is already white-on-accent and reads either way. */
.vkx-header.is-scrolled {
	background: rgba(26, 24, 21, .92);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom-color: rgba(250, 247, 242, .12);
	box-shadow: 0 1px 24px rgba(26, 24, 21, .28);
}

.vkx-header.is-scrolled .vkx-brand__name { color: var(--vkx-bg); }
.vkx-header.is-scrolled .vkx-brand__role { color: rgba(250, 247, 242, .62); }

.vkx-header.is-scrolled .vkx-nav__list a { color: rgba(250, 247, 242, .72); }
.vkx-header.is-scrolled .vkx-nav__list a:hover,
.vkx-header.is-scrolled .vkx-nav__list .current-menu-item > a,
.vkx-header.is-scrolled .vkx-nav__list .current_page_item > a { color: #fff; }

.vkx-header.is-scrolled .vkx-burger span { background: var(--vkx-bg); }

/* Customizer → Header → "Stick the header to the top on scroll", unchecked.
   `relative`, not `static`: the mobile nav is absolutely positioned and needs the
   header as its containing block, which `sticky` was providing. */
.vkx-header--static {
	position: relative;
	top: auto;
}

.vkx-header__inner {
	max-width: var(--vkx-wide);
	margin: 0 auto;
	padding: 1rem var(--vkx-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.vkx-brand { text-decoration: none; line-height: 1.2; }
.vkx-brand__name {
	display: block;
	font-family: var(--vkx-display);
	font-size: 1.1875rem;
	font-weight: 600;
	color: var(--vkx-ink);
	white-space: nowrap;
	transition: color .3s var(--vkx-ease);
}
.vkx-brand__role {
	display: block;
	font-size: .6875rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--vkx-ink-faint);
	margin-top: .15rem;
	transition: color .3s var(--vkx-ease);
}

.vkx-nav { display: flex; align-items: center; gap: 2rem; }

.vkx-nav__list {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
}

.vkx-nav__list a {
	font-size: .875rem;
	font-weight: 600;
	color: var(--vkx-ink-soft);
	text-decoration: none;
	position: relative;
	padding: .35rem 0;
	transition: color .2s var(--vkx-ease);
}
.vkx-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 1px;
	background: var(--vkx-accent);
	transition: right .3s var(--vkx-ease);
}
.vkx-nav__list a:hover,
.vkx-nav__list .current-menu-item > a,
.vkx-nav__list .current_page_item > a { color: var(--vkx-ink); }

.vkx-nav__list a:hover::after,
.vkx-nav__list .current-menu-item > a::after,
.vkx-nav__list .current_page_item > a::after { right: 0; }

.vkx-nav__cta { flex-shrink: 0; }

/* Burger */
.vkx-burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: .5rem;
}
.vkx-burger span {
	display: block;
	width: 22px;
	height: 1.5px;
	background: var(--vkx-ink);
	transition: transform .3s var(--vkx-ease), opacity .2s, background .3s var(--vkx-ease);
}
.vkx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.vkx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.vkx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */
.vkx-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem);
}

/* Cross-fading backdrop.
   The source PNGs are artwork on opaque grounds (white, blue, photographic), so they
   can't be used as alpha masks — `multiply` drops each image's light ground and keeps
   only its darks. A soft radial mask feathers the image edge, which otherwise shows
   as a hard rectangle for the images whose ground isn't white. */
.vkx-hero__backdrop {
	position: absolute;
	top: 50%;
	right: -12%;
	width: 90%;
	aspect-ratio: 1600 / 660;
	transform: translateY(-50%);
	pointer-events: none;
}

.vkx-hero__slide {
	position: absolute;
	inset: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	mix-blend-mode: multiply;
	opacity: 0;

	/* The feather has to land on the image's own edges, not the panel's: a `contain`
	   image sits inside a panel-sized mask's opaque core and shows a hard rectangle
	   seam. `--vkx-slide-mask` is the box `contain` paints this image into, as a
	   percentage of the panel, computed from its real dimensions in vkx_hero_slides().
	   It cannot be `contain` here — a radial-gradient has no intrinsic aspect ratio,
	   so `mask-size: contain` resolves to the whole panel and silently does nothing. */
	-webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 30%, transparent 100%);
	        mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 30%, transparent 100%);
	-webkit-mask-size: var(--vkx-slide-mask, 100% 100%);
	        mask-size: var(--vkx-slide-mask, 100% 100%);
	-webkit-mask-position: center;
	        mask-position: center;
	-webkit-mask-repeat: no-repeat;
	        mask-repeat: no-repeat;

	/* Each slide holds the panel for 6s; delay staggers them through the cycle. */
	animation-duration: calc(var(--vkx-slide-count, 4) * 3s);
	animation-delay: calc(var(--vkx-slide-index, 0) * 3s);
	animation-iteration-count: infinite;
	animation-timing-function: ease-in-out;
	animation-fill-mode: both;
	animation-name: vkxSlide4;
}

/* The visible window is 100%/count, so the keyframes are per slide count. */
.vkx-hero__backdrop[data-count="2"] .vkx-hero__slide { animation-name: vkxSlide2; }
.vkx-hero__backdrop[data-count="3"] .vkx-hero__slide { animation-name: vkxSlide3; }
.vkx-hero__backdrop[data-count="1"] .vkx-hero__slide {
	animation: none;
	opacity: var(--vkx-slide-opacity, .15);
}

@keyframes vkxSlide4 {
	0%,   100% { opacity: 0; }
	3%,   25%  { opacity: var(--vkx-slide-opacity, .15); }
	28%        { opacity: 0; }
}
@keyframes vkxSlide3 {
	0%,    100%   { opacity: 0; }
	4%,    33.33% { opacity: var(--vkx-slide-opacity, .15); }
	37.33%        { opacity: 0; }
}
@keyframes vkxSlide2 {
	0%,  100% { opacity: 0; }
	6%,  50%  { opacity: var(--vkx-slide-opacity, .15); }
	56%       { opacity: 0; }
}

.vkx-hero__inner {
	position: relative;
	max-width: var(--vkx-wide);
	margin: 0 auto;
	padding: 0 var(--vkx-gutter);
	display: grid;
	grid-template-columns: .95fr 1.05fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

/* Portrait sits left, headline right. Placed by grid-column rather than `order`
   so the <h1> stays first in the DOM for screen readers. */
.vkx-hero__portrait { grid-column: 1; grid-row: 1; }
.vkx-hero__text     { grid-column: 2; grid-row: 1; }

.vkx-hero__title {
	font-size: clamp(2.75rem, 1.1rem + 6.4vw, 6rem);
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: .98;
}

.vkx-hero__lede {
	font-family: var(--vkx-display);
	font-style: italic;
	font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem);
	line-height: 1.4;
	color: var(--vkx-ink-soft);
	margin-bottom: 2.25rem;
}

.vkx-hero__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.25rem 2rem;
}

.vkx-hero__portrait {
	position: relative;
	justify-self: center;
	width: min(100%, 440px);
}

/* Framed variant — used when only the studio photo is available. Its grey
   background is baked in, so it needs an arch crop and a warm mat behind it. */
.vkx-hero__portrait:not(.is-cutout)::before {
	content: "";
	position: absolute;
	inset: 8% 6% -5% -6%;
	background: var(--vkx-bg-alt);
	border-radius: 999px 999px 4px 4px;
}
.vkx-hero__portrait:not(.is-cutout) img {
	position: relative;
	width: 100%;
	aspect-ratio: 41 / 44;
	object-fit: cover;
	object-position: center top;
	border-radius: 999px 999px 4px 4px;
	filter: saturate(.94) contrast(1.02);
}

/* Cut-out variant — she stands on the ivory with no frame, so the backdrop passes
   behind her. The source is cropped mid-torso, so a bottom fade dissolves her into
   the page rather than leaving a sliced edge. The drop-shadow follows the alpha
   silhouette, and the mask is applied after it so the shadow fades out too. */
.vkx-hero__portrait.is-cutout {
	width: min(100%, 470px);
}
.vkx-hero__portrait.is-cutout img {
	position: relative;
	width: 100%;
	height: auto;
	filter: saturate(.96) contrast(1.02) drop-shadow(-14px 10px 20px rgba(26, 24, 21, .10));
	-webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 98%);
	        mask-image: linear-gradient(to bottom, #000 80%, transparent 98%);
}

/* ── About ─────────────────────────────────────────────────── */
.vkx-about {
	background: var(--vkx-bg-alt);
	padding: var(--vkx-step) 0;
}

.vkx-about__inner {
	max-width: var(--vkx-wide);
	margin: 0 auto;
	padding: 0 var(--vkx-gutter);
	display: grid;
	grid-template-columns: 22rem 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.vkx-about__label { position: sticky; top: 7rem; }
.vkx-about__note {
	font-family: var(--vkx-display);
	font-style: italic;
	color: var(--vkx-ink-soft);
	margin-top: 1.25rem;
	font-size: 1.0625rem;
}

.vkx-about__body { max-width: var(--vkx-prose); }
.vkx-about__more { margin-top: 2.5rem; }

/* The bio sits in a reading column, so a 50/50 split would leave ~34ch lines.
   Stack instead: the video reads full-width above the text.
   `.is-layout-flex` is needed to outrank WordPress's own layout stylesheet. */
.vkx-about__body .wp-block-columns.is-layout-flex { display: block; }
.vkx-about__body .wp-block-column { flex-basis: auto; }
.vkx-about__body .wp-block-column + .wp-block-column { margin-top: 2rem; }

/* The seeded bio opens with a name block — promote it to a standfirst. */
.vkx-about__body .vk-bio-name {
	font-family: var(--vkx-display);
	font-size: clamp(1.25rem, 1rem + .7vw, 1.5rem);
	line-height: 1.4;
	color: var(--vkx-ink);
	margin-bottom: 1.5rem;
}
.vkx-about__body .wp-block-separator { display: none; }

/* ── Prose ─────────────────────────────────────────────────── */
.vkx-prose { max-width: var(--vkx-prose); }
.vkx-prose > * + * { margin-top: 1.25rem; }

.vkx-prose h2 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	margin-top: 3.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--vkx-rule);
}
.vkx-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.vkx-prose h3 { font-size: 1.25rem; margin-top: 2rem; }

.vkx-prose ul, .vkx-prose ol { padding-left: 1.15rem; }
.vkx-prose li { margin-bottom: .6rem; }
.vkx-prose li::marker { color: var(--vkx-ink-faint); }

.vkx-prose strong { font-weight: 700; }
.vkx-prose a { color: var(--vkx-accent); }

.vkx-prose hr, .vkx-prose .wp-block-separator {
	border: none;
	border-top: 1px solid var(--vkx-rule);
	margin: 3rem 0;
	opacity: 1;
}

/* Empty seeded images (covers were never uploaded) must not render as broken. */
.vkx-prose img[src=""],
.vkx-prose img:not([src]) { display: none; }

/* Block editor structures inside prose.
   Keep WP's flex layout so per-column `flex-basis` set in the editor is honoured. */
.vkx-prose .wp-block-columns {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: flex-start;
	margin-top: 2rem;
}
.vkx-prose .wp-block-column { flex: 1 1 240px; min-width: 0; }

/* On page bodies the text keeps a reading measure while structural blocks —
   grids, columns, embeds — break out to the full container. */
.vkx-page-body__inner.vkx-prose { max-width: var(--vkx-wide); }

.vkx-page-body__inner.vkx-prose > *,
.vkx-page-body__inner.vkx-prose .wp-block-group.is-layout-constrained > *,
.vkx-page-body__inner.vkx-prose .wp-block-group.is-layout-flow > * {
	max-width: var(--vkx-prose);
}

/* WP centres constrained children with `margin-inline: auto !important`;
   keep them flush left with the card grids below. */
.vkx-page-body__inner.vkx-prose .wp-block-group.is-layout-constrained > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.vkx-page-body__inner.vkx-prose > .wp-block-group.has-global-padding {
	padding-left: 0;
	padding-right: 0;
}

.vkx-page-body__inner.vkx-prose > .wp-block-group,
.vkx-page-body__inner.vkx-prose .wp-block-group.is-layout-grid,
.vkx-page-body__inner.vkx-prose .wp-block-columns,
.vkx-page-body__inner.vkx-prose .wp-block-embed,
.vkx-page-body__inner.vkx-prose .wp-block-separator {
	max-width: 100%;
}

/* Cards inside a broken-out grid own their full column. */
.vkx-page-body__inner.vkx-prose .vk-edu-card > *,
.vkx-page-body__inner.vkx-prose .vk-book-card > *,
.vkx-page-body__inner.vkx-prose .vk-contact-card > * { max-width: 100%; }

.vkx-prose .vk-edu-card,
.vkx-prose .vk-book-card,
.vkx-prose .vk-contact-card {
	background: var(--vkx-surface);
	border: 1px solid var(--vkx-rule);
	border-radius: 3px;
	padding: 1.75rem;
	height: 100%;
}
.vkx-prose .vk-edu-card h3,
.vkx-prose .vk-book-card h3,
.vkx-prose .vk-contact-card h3 { margin-top: 0; font-size: 1.125rem; }

.vkx-prose .vk-cv-intro {
	background: var(--vkx-bg-alt);
	border-left: 2px solid var(--vkx-accent);
	padding: 1.25rem 1.5rem;
	font-size: .9375rem;
	line-height: 1.65;
}

.vkx-prose .wp-element-button,
.vkx-prose .wp-block-button__link {
	display: inline-block;
	background: var(--vkx-accent);
	color: #fff;
	font-weight: 600;
	font-size: .9375rem;
	padding: .9rem 1.75rem;
	border-radius: 2px;
	text-decoration: none;
}
.vkx-prose .wp-element-button:hover,
.vkx-prose .wp-block-button__link:hover { background: var(--vkx-accent-dk); color: #fff; }

.vkx-prose iframe { width: 100%; border: 1px solid var(--vkx-rule); border-radius: 3px; }

/* oEmbed video. WP ships these at the provider's own width and lets text wrap
   around them; force a full-width 16:9 block instead. */
.vkx-prose .wp-block-embed {
	float: none;
	width: 100%;
	margin: 2rem 0;
}
.vkx-prose .wp-block-embed__wrapper { position: relative; width: 100%; }
.vkx-prose .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.vkx-prose .wp-block-embed iframe {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	border: none;
	border-radius: 3px;
}
.vkx-prose .wp-block-embed figcaption {
	font-size: .8125rem;
	color: var(--vkx-ink-faint);
	margin-top: .6rem;
}

/* ── Books ─────────────────────────────────────────────────── */
.vkx-books {
	background: var(--vkx-bg);
	padding: var(--vkx-step) 0;
}

.vkx-books__inner {
	max-width: var(--vkx-wide);
	margin: 0 auto;
	padding: 0 var(--vkx-gutter);
}

.vkx-books__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2.5rem, 5vw, 4rem);
}

/* Every book reads the same way: cover above, text below. The cover is capped rather
   than filling its column — at 2:3 a full-width cover would stand ~870px tall. */
.vkx-book {
	display: grid;
	gap: 1.75rem;
	align-items: start;
	align-content: start;
}

.vkx-book__cover { width: min(100%, 240px); }

/* ── Whole-card / whole-row click ──────────────────────────── */

/* One real anchor per card and row, grown to cover its container. Wrapping the <article>
   in an <a> would nest it around the arrow link, and a <tr> cannot be wrapped at all.
   This keeps exactly one focus stop per book. */
.vkx-book,
.vkx-book-row { position: relative; }

.vkx-stretch::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Lift the prose back above the overlay so it stays selectable; the cover and the
   whitespace around it remain the click target. */
.vkx-book__title,
.vkx-book__blurb { position: relative; z-index: 2; }

.vkx-book__cover img,
.vkx-book__cover-fallback {
	width: 100%;
	aspect-ratio: 2 / 3;
}

/* The supplied covers are 3-D mock-ups on a transparent ground — they already carry
   their own spine, edges and shadow. A box-shadow or radius here would frame the
   transparent padding instead of the book, so the shadow follows the alpha instead.
   `cover` trims that padding; the artwork sits well inside the crop. */
.vkx-book__cover img {
	object-fit: cover;
	filter: drop-shadow(0 14px 26px rgba(26, 24, 21, .22));
	transition: transform .4s var(--vkx-ease), filter .4s var(--vkx-ease);
}
.vkx-book:hover .vkx-book__cover img {
	transform: translateY(-5px);
	filter: drop-shadow(0 22px 34px rgba(26, 24, 21, .28));
}

/* The typographic stand-in IS a flat rectangle, so it keeps the box treatment. */
.vkx-book__cover-fallback {
	border-radius: 2px;
	box-shadow:
		0 1px 2px rgba(26,24,21,.10),
		0 18px 40px -14px rgba(26,24,21,.32);
	transition: transform .4s var(--vkx-ease), box-shadow .4s var(--vkx-ease);
}
.vkx-book:hover .vkx-book__cover-fallback {
	transform: translateY(-5px);
	box-shadow:
		0 1px 2px rgba(26,24,21,.10),
		0 26px 52px -14px rgba(26,24,21,.38);
}

/* Typographic stand-in until real cover art is supplied. */
.vkx-book__cover-fallback {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: .9rem;
	padding: 2.25rem 1.75rem;
	background:
		linear-gradient(100deg, rgba(255,255,255,.07) 0 6%, transparent 6.5%),
		var(--vkx-ink);
	color: var(--vkx-bg);
	text-align: left;
}
.vkx-book__cover-rule {
	width: 2rem;
	height: 1px;
	background: var(--vkx-accent);
}
.vkx-book__cover-title {
	font-family: var(--vkx-display);
	font-size: 1.375rem;
	line-height: 1.2;
}
.vkx-book__cover-author {
	font-size: .6875rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(250,247,242,.62);
	margin-top: auto;
}
.vkx-book__cover-year {
	font-size: .6875rem;
	letter-spacing: .16em;
	color: rgba(250,247,242,.4);
}

.vkx-book__title { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); }
.vkx-book__subtitle {
	color: var(--vkx-ink-faint);
	font-size: .9375rem;
	letter-spacing: .02em;
	margin: .6rem 0 1.25rem;
}
.vkx-book__blurb { color: var(--vkx-ink-soft); margin-bottom: 1.75rem; max-width: 46ch; }

/* ── Books: layout toggle (Publications only) ──────────────── */

/* Both layouts are in the HTML; a class on <html> picks one. Scoped to `--toggleable`
   so the homepage, which shares this template, can never be switched to the table. */
.vkx-books__layout {
	display: inline-flex;
	gap: .25rem;
	padding: .2rem;
	border: 1px solid var(--vkx-rule);
	border-radius: 2px;
}

.vkx-books__layout-btn {
	font: 600 .8125rem/1 var(--vkx-body);
	letter-spacing: .02em;
	color: var(--vkx-ink-soft);
	background: transparent;
	border: 0;
	border-radius: 2px;
	padding: .5rem .95rem;
	cursor: pointer;
	transition: background .2s var(--vkx-ease), color .2s var(--vkx-ease);
}
.vkx-books__layout-btn:hover { color: var(--vkx-ink); }
.vkx-books__layout-btn[aria-pressed="true"] {
	background: var(--vkx-ink);
	color: var(--vkx-bg);
}

.vkx-books__tablewrap { display: none; overflow-x: auto; }

/* Toggleable sections (Publications: Books, Co-edited Series) default to the list/table
   view. `.vkx-books--grid`, applied by the toggle, switches a section back to the card
   grid — independently per section. Layout state lives on the section, not on <html>, so
   the two toggles never move together. The homepage's books section is never
   `--toggleable`, so it keeps the grid untouched. The FOUC boot style keys the same swap
   off the section id before these classes are applied. */
.vkx-books--toggleable .vkx-books__grid { display: none; }
.vkx-books--toggleable .vkx-books__tablewrap { display: block; }
.vkx-books--grid .vkx-books__grid { display: grid; }
.vkx-books--grid .vkx-books__tablewrap { display: none; }

/* ── Books: table view ─────────────────────────────────────── */
.vkx-books__table {
	width: 100%;
	border-collapse: collapse;
}

.vkx-books__table th,
.vkx-books__table td {
	text-align: left;
	padding: 1.1rem 1.25rem 1.1rem 0;
	border-bottom: 1px solid var(--vkx-rule);
}

/* Body cells centre against the row's tallest content, the cover. On `baseline` the date
   and title sit on the text baseline and read as bottom-aligned beside a 66px cover.
   The header row keeps `baseline`, which is what aligns its small caps to the rule. */
.vkx-books__table thead th { vertical-align: baseline; }
.vkx-books__table tbody td { vertical-align: middle; }

.vkx-books__table thead th {
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--vkx-ink-faint);
	border-bottom-color: var(--vkx-ink);
	padding-bottom: .9rem;
}

/* `box-sizing: border-box` is global, so the cell's width must carry its own padding —
   otherwise the content box shrinks and `img { max-width: 100% }` scales the cover down. */
.vkx-books__th-cover,
.vkx-book-row__cover {
	width: calc(44px + 1.25rem);
	padding-right: 1.25rem;
}

.vkx-book-row__cover img,
.vkx-book-row__cover-fallback {
	display: block;
	width: 44px;
	aspect-ratio: 2 / 3;
	border-radius: 1px;
}
.vkx-book-row__cover img {
	object-fit: cover;
	filter: drop-shadow(0 3px 7px rgba(26, 24, 21, .22));
}
/* Stands in for a missing cover so the Date column never jumps left. */
.vkx-book-row__cover-fallback {
	background: var(--vkx-bg-alt);
	border: 1px solid var(--vkx-rule);
}

.vkx-books__th-date,
.vkx-book-row__date {
	width: 7rem;
	white-space: nowrap;
	color: var(--vkx-ink-soft);
	font-size: .9375rem;
}

.vkx-book-row__link {
	font-family: var(--vkx-display);
	font-size: 1.1875rem;
	font-weight: 600;
	color: var(--vkx-ink);
	text-decoration: none;
	transition: color .2s var(--vkx-ease);
}
.vkx-book-row:hover .vkx-book-row__link { color: var(--vkx-accent); }

.vkx-book-row__sub {
	font-family: var(--vkx-body);
	font-size: .9375rem;
	font-weight: 400;
	color: var(--vkx-ink-faint);
}

/* ── Timeline ──────────────────────────────────────────────── */
.vkx-timeline {
	position: relative;
	overflow: hidden;
	background: var(--vkx-bg-alt);
	padding: var(--vkx-step) 0;
}

.vkx-timeline__map {
	position: absolute;
	inset: 0;
	background: var(--vkx-map) center / 120% no-repeat;
	mix-blend-mode: multiply;
	opacity: .05;
	pointer-events: none;
}

.vkx-timeline__inner {
	position: relative;
	max-width: 780px;
	margin: 0 auto;
	padding: 0 var(--vkx-gutter);
}

.vkx-timeline__list {
	list-style: none;
	margin: 0;
	padding: 0 0 0 2.25rem;
	border-left: 1px solid var(--vkx-rule);
}

.vkx-timeline__item {
	position: relative;
	padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.vkx-timeline__item:last-child { padding-bottom: 0; }

.vkx-timeline__dot {
	position: absolute;
	left: calc(-2.25rem - 4.5px);
	top: .45rem;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--vkx-bg-alt);
	box-shadow: 0 0 0 1px var(--vkx-ink-faint);
}

/* The story-pivot entry (`mark`) is deliberately not highlighted: the client asked that it
   read the same as every other entry. The `mark` flag stays in the data so the accent can be
   restored later; here the marked dot, era, title and body simply inherit their base styles. */

.vkx-timeline__era {
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--vkx-ink-faint);
	margin-bottom: .5rem;
}
.vkx-timeline__title { font-size: 1.4375rem; margin-bottom: .6rem; }
.vkx-timeline__body { color: var(--vkx-ink-soft); }

.vkx-timeline__more { margin-top: 3rem; padding-left: 2.25rem; }

/* ── Closing CTA ───────────────────────────────────────────── */
.vkx-cta {
	background: var(--vkx-accent);
	color: #fff;
	padding: var(--vkx-step) 0;
	text-align: center;
}

.vkx-cta__inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 var(--vkx-gutter);
}

.vkx-cta__quote {
	font-family: var(--vkx-display);
	font-style: italic;
	font-size: clamp(1.375rem, 1rem + 1.5vw, 2.125rem);
	line-height: 1.4;
	color: #fff;
	margin-bottom: 3rem;
	text-wrap: balance;
}

.vkx-cta__title {
	font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
	color: rgba(255,255,255,.86);
	font-weight: 400;
	margin-bottom: 2rem;
}

.vkx-cta__actions {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.25rem 2rem;
}

/* ── Inner page header ─────────────────────────────────────── */
.vkx-page-head {
	background: var(--vkx-bg-alt);
	padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
	border-bottom: 1px solid var(--vkx-rule);
}

.vkx-page-head__inner {
	max-width: var(--vkx-wide);
	margin: 0 auto;
	padding: 0 var(--vkx-gutter);
}

.vkx-page-head__title { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4rem); }

.vkx-page-head__lede {
	font-family: var(--vkx-display);
	font-style: italic;
	font-size: clamp(1.0625rem, 1rem + .5vw, 1.375rem);
	color: var(--vkx-ink-soft);
	max-width: 46ch;
	margin-top: 1.25rem;
}

.vkx-anchors {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.75rem;
	margin-top: 2.25rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--vkx-rule);
}
.vkx-anchors a {
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--vkx-ink-soft);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	padding-bottom: .15rem;
}
.vkx-anchors a:hover { color: var(--vkx-accent); border-bottom-color: var(--vkx-accent); }

.vkx-page-body { padding: var(--vkx-step) 0; }
.vkx-page-body__inner {
	max-width: var(--vkx-wide);
	margin: 0 auto;
	padding: 0 var(--vkx-gutter);
}

/* ── Curriculum vitae ──────────────────────────────────────────
   The source is the University of Miami's official CV form, whose sections are numbered
   1–31. Those ordinals are the page's structure: a hairline-boxed number in the margin of
   every item, and a date gutter down the left of every row. The accent is spent only on
   the current section in the rail — the `is-marked` rows read the same as the rest.       */

.vkx-cv {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}

/* ── Rail ──────────────────────────────────────────────────── */
.vkx-cv__rail { position: sticky; top: 7rem; }

/* Square. `object-position: center top` keeps her head in frame — cropping a 4:5 portrait to
   1:1 takes the height off the bottom, and centring would slice the top of her head off. */
.vkx-cv__photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center top;
	border-radius: 2px;
	filter: saturate(.94);
}

/* Full-width in the rail so it reads as part of the column, not a stray pill. */
.vkx-cv__download {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .15rem;
	width: 100%;
	margin-top: 1.25rem;
	padding: .8rem 1rem;
	text-align: center;
}

.vkx-cv__download-meta {
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .72);
}

.vkx-cv__contents { margin-top: 1.75rem; }

.vkx-cv__contents-label {
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--vkx-ink-faint);
	padding-bottom: .75rem;
	border-bottom: 1px solid var(--vkx-rule);
}

.vkx-cv__contents-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: vkx-toc;
}

.vkx-cv__contents-list a {
	display: flex;
	align-items: baseline;
	gap: .6rem;
	padding: .55rem 0;
	font-size: .875rem;
	font-weight: 600;
	color: var(--vkx-ink-soft);
	text-decoration: none;
	border-bottom: 1px solid var(--vkx-rule);
	transition: color .2s var(--vkx-ease);
}

/* The rail is a table of contents, so its numbering is a real sequence. */
.vkx-cv__contents-list a::before {
	counter-increment: vkx-toc;
	content: counter(vkx-toc, upper-roman);
	flex: none;
	width: 1.75rem;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--vkx-ink-faint);
	transition: color .2s var(--vkx-ease);
}

.vkx-cv__contents-list a:hover { color: var(--vkx-accent); }
.vkx-cv__contents-list a:hover::before { color: var(--vkx-accent); }

.vkx-cv__contents-list a.is-current {
	color: var(--vkx-accent);
	border-bottom-color: var(--vkx-accent);
}
.vkx-cv__contents-list a.is-current::before { color: var(--vkx-accent); }

/* ── Document column ───────────────────────────────────────── */
.vkx-cv__doc { min-width: 0; }

.vkx-cv__group { padding-top: clamp(2.5rem, 5vw, 4rem); }
.vkx-cv__group:first-child { padding-top: 0; }

.vkx-cv__group-title {
	font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--vkx-ink);
	margin-bottom: 2.5rem;
}

.vkx-cv__group-lede {
	color: var(--vkx-ink-soft);
	max-width: 62ch;
	margin: -1rem 0 2.5rem;
}

/* ── Register item ─────────────────────────────────────────── */
.vkx-cv__item { padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.vkx-cv__item:last-child { padding-bottom: 0; }

/* The ordinal sits in its own margin column so the titles of every item, in every group,
   line up on one axis. `align-items: baseline` would drop the box below the cap-line. */
.vkx-cv__item-head {
	margin-bottom: 1.5rem;
}

.vkx-cv__item-title {
	font-size: 1.375rem;
}

.vkx-cv__item-note {
	font-size: .8125rem;
	color: var(--vkx-ink-faint);
	margin-top: .35rem;
	font-style: italic;
}

.vkx-cv__item-body { padding-left: 0; }

/* ── Records: the date gutter ──────────────────────────────── */
.vkx-cv__records, .vkx-cv__refs {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vkx-cv__record, .vkx-cv__ref {
	display: grid;
	grid-template-columns: 7.5rem 1fr;
	column-gap: 1.5rem;
	padding: .9rem 0;
	border-top: 1px solid var(--vkx-rule);
}
.vkx-cv__records > li:last-child,
.vkx-cv__refs > li:last-child { border-bottom: 1px solid var(--vkx-rule); }

/* Dates are the one field every entry shares, so they carry the page's vertical spine.
   Tabular figures keep the column from shimmering row to row. */
.vkx-cv__date {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
	font-variant-numeric: tabular-nums;
	color: var(--vkx-ink-faint);
	text-transform: uppercase;
	padding-top: .3rem;
}
.vkx-cv__date-none { opacity: .45; }

.vkx-cv__body { display: block; min-width: 0; }

.vkx-cv__title {
	display: block;
	font-weight: 600;
	color: var(--vkx-ink);
}

.vkx-cv__meta {
	display: block;
	font-size: .9375rem;
	color: var(--vkx-ink-soft);
	margin-top: .2rem;
}

/* ── Citations ─────────────────────────────────────────────── */
.vkx-cv__cite {
	display: block;
	min-width: 0;
	color: var(--vkx-ink-soft);
	font-size: .9375rem;
	line-height: 1.65;
}

/* URLs are part of the record and are printed in full rather than hidden behind a label.
   `break-word` keeps a 90-character Routledge URL from widening the whole grid column. */
.vkx-cv__url {
	font-size: .8125rem;
	color: var(--vkx-ink-faint);
	text-decoration: none;
	border-bottom: 1px solid var(--vkx-rule);
	overflow-wrap: break-word;
	word-break: break-word;
}
.vkx-cv__url:hover { color: var(--vkx-accent); border-bottom-color: var(--vkx-accent); }

/* ── The marked rows ───────────────────────────────────────── */
/* Intentionally un-styled: the client asked that marked records read the same as the others,
   in black, with no red accent. The `mark` flag is kept in the CV data so the highlight can
   be restored later — marked records, refs and notes now inherit their base styles. */

/* ── Lists, subheads, notes ────────────────────────────────── */
.vkx-cv__subhead {
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--vkx-ink-faint);
	margin: 2.5rem 0 1rem;
}
.vkx-cv__item-body > .vkx-cv__subhead:first-child { margin-top: 0; }

.vkx-cv__list, .vkx-cv__ordered {
	margin: 0;
	padding: 0;
	color: var(--vkx-ink-soft);
	font-size: .9375rem;
}

.vkx-cv__list { list-style: none; }
.vkx-cv__list > li,
.vkx-cv__ordered > li {
	padding: .65rem 0;
	border-top: 1px solid var(--vkx-rule);
}
.vkx-cv__list > li:last-child,
.vkx-cv__ordered > li:last-child { border-bottom: 1px solid var(--vkx-rule); }

.vkx-cv__list > li { padding-left: 0; }

.vkx-cv__ordered {
	list-style: none;
	counter-reset: vkx-item;
}
.vkx-cv__ordered > li {
	display: grid;
	grid-template-columns: 2rem 1fr;
	column-gap: .5rem;
}
.vkx-cv__ordered > li::before {
	counter-increment: vkx-item;
	content: counter(vkx-item) ".";
	font-size: .75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--vkx-ink-faint);
	padding-top: .15rem;
}

.vkx-cv__note {
	color: var(--vkx-ink-soft);
	font-size: .9375rem;
	margin: 1rem 0;
	max-width: 68ch;
}

.vkx-cv__na {
	font-size: .875rem;
	color: var(--vkx-ink-faint);
	font-style: italic;
}

/* ── The vitals form (items 1–10) ──────────────────────────────
   Set as an actual form rather than a hero: it tells the reader immediately that this is
   the document of record, not a brochure. */
.vkx-cv__vitals {
	margin: 0;
	border-top: 1px solid var(--vkx-rule);
}

.vkx-cv__field {
	display: grid;
	grid-template-columns: 16rem 1fr;
	column-gap: 1.5rem;
	padding: .9rem 0;
	border-bottom: 1px solid var(--vkx-rule);
}

.vkx-cv__field dt {
	display: flex;
	align-items: baseline;
	gap: .75rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--vkx-ink-faint);
}

.vkx-cv__field dd { margin: 0; min-width: 0; }

.vkx-cv__field-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.vkx-cv__field-rows > li { color: var(--vkx-ink-soft); font-size: .9375rem; }

.vkx-cv__field-date {
	display: block;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vkx-ink-faint);
	margin-top: .2rem;
}

/* ── Blog fallback ─────────────────────────────────────────── */
.vkx-entry { padding-bottom: 2.5rem; border-bottom: 1px solid var(--vkx-rule); }
.vkx-entry__title { font-size: 1.5rem; }
.vkx-entry__title a { color: var(--vkx-ink); text-decoration: none; }
.vkx-entry__title a:hover { color: var(--vkx-accent); }

/* ── Footer ────────────────────────────────────────────────── */
.vkx-footer {
	background: var(--vkx-ink);
	color: rgba(250,247,242,.66);
	font-size: .875rem;
}

.vkx-footer__inner {
	max-width: var(--vkx-wide);
	margin: 0 auto;
	padding: clamp(3rem, 6vw, 4.5rem) var(--vkx-gutter);
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 2.5rem;
}

.vkx-footer__name {
	font-family: var(--vkx-display);
	font-size: 1.375rem;
	color: var(--vkx-bg);
}
.vkx-footer__role {
	font-size: .6875rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(250,247,242,.45);
	margin-top: .4rem;
}

.vkx-footer__contact { font-style: normal; line-height: 1.8; }

.vkx-footer a { color: rgba(250,247,242,.66); text-decoration: none; }
.vkx-footer a:hover { color: var(--vkx-bg); text-decoration: underline; }

.vkx-footer__list, .vkx-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .6rem;
}

.vkx-footer__base {
	border-top: 1px solid rgba(250,247,242,.12);
}
.vkx-footer__base {
	max-width: var(--vkx-wide);
	margin: 0 auto;
	padding: 1.5rem var(--vkx-gutter);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .75rem;
	font-size: .8125rem;
	color: rgba(250,247,242,.42);
}

/* ── Scroll reveal (progressive; no JS = always visible) ───── */
.vkx-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s var(--vkx-ease), transform .7s var(--vkx-ease);
}
.vkx-reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.vkx-about__inner { grid-template-columns: 1fr; }
	.vkx-about__label { position: static; }
	.vkx-hero__inner { gap: 2.5rem; }
}

@media (max-width: 880px) {
	.vkx-burger { display: flex; }

	.vkx-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--vkx-bg);
		border-bottom: 1px solid var(--vkx-rule);
		padding: 0 var(--vkx-gutter);
		max-height: 0;
		overflow: hidden;
		transition: max-height .35s var(--vkx-ease);
	}
	.vkx-nav.is-open { max-height: 26rem; }

	.vkx-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.vkx-nav__list a {
		display: block;
		padding: .9rem 0;
		border-bottom: 1px solid var(--vkx-rule);
		font-size: 1rem;
	}
	.vkx-nav__list a::after { display: none; }
	.vkx-nav__cta { margin: 1.25rem 0 1.5rem; text-align: center; }

	/* The dropdown hangs below the header, outside the box the header's own background
	   paints, so it needs the dark treatment applied directly — otherwise a scrolled
	   page opens the burger onto near-white links over an ivory panel. */
	.vkx-header.is-scrolled .vkx-nav {
		background: rgba(26, 24, 21, .96);
		backdrop-filter: saturate(140%) blur(10px);
		border-bottom-color: rgba(250, 247, 242, .12);
	}
	.vkx-header.is-scrolled .vkx-nav__list a { border-bottom-color: rgba(250, 247, 242, .12); }

	.vkx-hero__inner { grid-template-columns: 1fr; }
	.vkx-hero__portrait { grid-column: 1; grid-row: 1; width: min(100%, 320px); }
	.vkx-hero__text     { grid-column: 1; grid-row: 2; }

	/* The panel is pushed right on desktop because the headline sits to its left.
	   Stacked to one column there is nothing to balance, so centre it — otherwise the
	   slides that letterbox narrower than the panel (header-3, header-4) visibly sit
	   off to the right. The wide artwork hides this by bleeding past both edges. */
	.vkx-hero__backdrop {
		left: 50%;
		right: auto;
		width: 130%;
		transform: translate(-50%, -50%);
	}

	.vkx-books__grid { grid-template-columns: 1fr; }
	.vkx-book__cover { width: min(100%, 220px); }

	/* The rail un-sticks and the photo shrinks; the contents list stays, since a 250-entry
	   register needs its jump links more on a phone than anywhere else. */
	.vkx-cv { grid-template-columns: 1fr; }
	.vkx-cv__rail { position: static; }
	.vkx-cv__photo { width: min(100%, 220px); }
	/* Track the photo's width rather than stretching to the full rail. */
	.vkx-cv__download { width: min(100%, 220px); }
	.vkx-cv__contents { max-width: 22rem; }

	.vkx-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
	.vkx-footer__base { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 560px) {
	.vkx-timeline__inner { padding-left: 1.5rem; }
	.vkx-cta__actions { flex-direction: column; }

	/* The gutters collapse rather than squeeze: a 7.5rem date column beside a 60-character
	   citation on a 360px screen leaves ~18 characters per line. Date stacks above instead. */
	.vkx-cv__record, .vkx-cv__ref, .vkx-cv__field {
		grid-template-columns: 1fr;
		row-gap: .3rem;
	}
	.vkx-cv__date { padding-top: 0; }
	/* Columns carry inline flex-basis; override it so they stack. */
	.vkx-prose .wp-block-column { flex-basis: 100% !important; }

	/* The wrapper's overflow-x is the real safety net; this just buys room first. */
	.vkx-books__table th,
	.vkx-books__table td { padding: .85rem .75rem .85rem 0; }
	.vkx-books__th-cover,
	.vkx-book-row__cover { width: calc(34px + .85rem); padding-right: .85rem; }
	.vkx-book-row__cover img,
	.vkx-book-row__cover-fallback { width: 34px; }
	.vkx-books__th-date,
	.vkx-book-row__date { width: 4.5rem; }
	.vkx-book-row__link { font-size: 1rem; }
	.vkx-book-row__sub { font-size: .875rem; }
}

/* ── Motion & print ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
	.vkx-reveal { opacity: 1; transform: none; }

	/* Collapsing the cycle above would land every slide on its 0% frame (invisible).
	   Hold the first slide instead. */
	.vkx-hero__slide { animation: none !important; opacity: 0; }
	.vkx-hero__slide:first-child { opacity: var(--vkx-slide-opacity, .15); }
}

@media print {
	.vkx-header, .vkx-footer, .vkx-cta, .vkx-anchors { display: none; }
	body { background: #fff; color: #000; }

	/* The CV is a document — printing it is a real use, not an afterthought. Drop the rail
	   and the photo, give the register the full page, and never break a record across a leaf. */
	.vkx-cv { grid-template-columns: 1fr; }
	.vkx-cv__rail { display: none; }
	.vkx-cv__page-head { padding: 0; }

	.vkx-cv__group { padding-top: 1.5rem; break-before: auto; }
	.vkx-cv__group-title { break-after: avoid; }
	.vkx-cv__item { break-inside: avoid-page; }
	.vkx-cv__item-head { break-after: avoid; }
	.vkx-cv__record, .vkx-cv__ref, .vkx-cv__field { break-inside: avoid; }

	/* Printed, a bare URL is the only way the reader can follow it. */
	.vkx-cv__url { color: #000; border: none; }
}
