/* ==========================================================================
   Court of Dorks — main stylesheet
   1. Tokens   2. Base   3. Layout   4. Buttons & UI   5. Header & nav
   6. Hero     7. Sections   8. Player   9. Episode cards   10. Pages
   11. Footer  12. Motion & accessibility
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
	--ink: #0b0807;
	--night: #110c0b;
	--stone: #19120f;
	--stone-2: #231a16;
	--stone-3: #2e2420;
	--line: rgba(217, 179, 108, 0.16);
	--line-strong: rgba(217, 179, 108, 0.42);
	--gold: #d9b36c;
	--gold-bright: #f1d28f;
	--gold-deep: #9c7a3c;
	--ember: #a91f26;
	--ember-bright: #d33a3c;
	--ember-glow: rgba(211, 58, 60, 0.45);
	--ivory: #efe4cc;
	--text: #e6dcc8;
	--muted: #b6a78f;
	--faint: #8f8069;

	--f-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
	--f-body: "Alegreya Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--f-accent: "Cormorant Garamond", Georgia, serif;

	--radius: 6px;
	--header-h: 76px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--shadow-deep: 0 30px 60px -24px rgba(0, 0, 0, 0.9);
	--gutter: clamp(16px, 4vw, 40px);
}

/* 2. Base ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: var(--f-body);
	font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.125rem);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* Film grain over everything, very faint. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 100;
	opacity: 0.045;
	background: url("../img/scenery/grain.png") repeat;
	mix-blend-mode: overlay;
}

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

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 0.2s; }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.02em;
	color: var(--ivory);
	margin: 0 0 0.5em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

::selection { background: var(--ember); color: var(--ivory); }

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

.screen-reader-text,
.player__label {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: 12px; left: 12px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--gold);
	color: var(--ink);
	font-weight: 700;
	transform: translateY(-160%);
	transition: transform 0.2s;
}
.skip-link:focus { transform: none; color: var(--ink); }

.site-main:focus { outline: none; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.muted { color: var(--muted); }

/* 3. Layout --------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(1240px + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--wide { max-width: calc(1440px + 2 * var(--gutter)); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }

.section { position: relative; padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }

.section__head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }
.section__head--row {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
}

.section__title {
	font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.1rem);
	margin: 0;
	background: linear-gradient(180deg, var(--ivory) 30%, var(--gold) 120%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.section__title--sm { font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin: 0 0 0.9em;
	font-family: var(--f-display);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gold);
}
.eyebrow .icon { width: 1em; height: 1em; }

.divider {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--gold-deep);
	margin: 0 auto clamp(40px, 6vw, 72px);
	max-width: 560px;
}
.divider__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.divider__line:last-child { background: linear-gradient(90deg, var(--line-strong), transparent); }
.divider__gem { flex: none; }

/* Decorative frame with gilded corners. */
.frame {
	position: relative;
	padding: clamp(6px, 1vw, 10px);
	background: linear-gradient(160deg, var(--stone-2), var(--ink));
	border: 1px solid var(--line);
	border-radius: 4px;
	box-shadow: var(--shadow-deep), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.frame::before,
.frame::after {
	content: "";
	position: absolute;
	width: 34px; height: 34px;
	border: 2px solid var(--gold);
	pointer-events: none;
	z-index: 3;
	opacity: 0.85;
}
.frame::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }

/* 4. Buttons & UI --------------------------------------------------------- */
.btn {
	--clip: 10px;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65em;
	min-height: 46px;
	padding: 0.8em 1.6em;
	font-family: var(--f-display);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.1;
	border: 0;
	cursor: pointer;
	clip-path: polygon(var(--clip) 0, calc(100% - var(--clip)) 0, 100% 50%, calc(100% - var(--clip)) 100%, var(--clip) 100%, 0 50%);
	transition: transform 0.25s var(--ease), filter 0.25s, background-color 0.25s, color 0.25s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }

.btn--ember {
	color: var(--ivory);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 45%),
		linear-gradient(180deg, var(--ember-bright), var(--ember) 60%, #7a1419);
	box-shadow: inset 0 0 0 1px rgba(241, 210, 143, 0.4);
	filter: drop-shadow(0 6px 18px rgba(169, 31, 38, 0.45));
}
.btn--ember:hover { color: #fff; transform: translateY(-2px); filter: drop-shadow(0 10px 26px rgba(211, 58, 60, 0.6)) brightness(1.08); }

.btn--ghost {
	color: var(--gold-bright);
	background: rgba(11, 8, 7, 0.35);
	box-shadow: inset 0 0 0 1px var(--line-strong);
	backdrop-filter: blur(6px);
}
/* clip-path hides box-shadow edges on the diagonals, so draw the border with a pseudo element. */
.btn--ghost::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--gold);
	clip-path: polygon(var(--clip) 0, calc(100% - var(--clip)) 0, 100% 50%, calc(100% - var(--clip)) 100%, var(--clip) 100%, 0 50%, var(--clip) 0, calc(var(--clip) + 0.7px) 1px, 1.2px 50%, calc(var(--clip) + 0.7px) calc(100% - 1px), calc(100% - var(--clip) - 0.7px) calc(100% - 1px), calc(100% - 1.2px) 50%, calc(100% - var(--clip) - 0.7px) 1px, calc(var(--clip) + 0.7px) 1px);
	opacity: 0.6;
	transition: opacity 0.25s;
}
.btn--ghost:hover { color: var(--ivory); background: rgba(217, 179, 108, 0.12); transform: translateY(-2px); }
.btn--ghost:hover::before { opacity: 1; }

.btn--text {
	clip-path: none;
	padding-inline: 0.2em;
	color: var(--gold);
	background: none;
}
.btn--text:hover { color: var(--gold-bright); }

.btn--sm { min-height: 40px; padding: 0.65em 1.2em; font-size: 0.72rem; }
.btn--lg { min-height: 54px; padding: 1em 2em; font-size: 0.86rem; }

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3em 0.7em;
	margin: 0 0 0.8em;
	color: var(--muted);
	font-size: 0.92rem;
}
.meta__num { color: var(--gold); font-family: var(--f-display); font-weight: 700; letter-spacing: 0.12em; font-size: 0.8rem; text-transform: uppercase; }
.meta__dur { display: inline-flex; align-items: center; gap: 0.35em; }
.meta__dur .icon { width: 1em; height: 1em; }
.meta__sep { color: var(--gold-deep); font-size: 0.65em; }
.meta__campaign {
	padding: 0.15em 0.7em;
	border: 1px solid var(--line-strong);
	border-radius: 99px;
	font-size: 0.82rem;
	text-decoration: none;
}

.empty {
	max-width: 620px;
	margin-inline: auto;
	padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
	text-align: center;
	background: radial-gradient(ellipse at 50% 0%, rgba(217, 179, 108, 0.09), transparent 70%), var(--night);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--muted);
}
.empty__icon { display: inline-block; color: var(--gold); margin-bottom: 12px; }
.empty__icon .icon { width: 48px; height: 48px; }
.empty__title { font-family: var(--f-display); font-size: 1.3rem; color: var(--ivory); margin-bottom: 0.4em; }
.empty .btn { margin-top: 12px; }

.editor-hint {
	margin: 20px auto 0;
	max-width: 620px;
	padding: 10px 14px;
	border: 1px dashed #c99a3a;
	border-radius: 4px;
	background: rgba(201, 154, 58, 0.08);
	color: #e8c77f;
	font-size: 0.9rem;
	text-align: left;
}

/* 5. Header & nav --------------------------------------------------------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--header-h);
	transition: background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s, height 0.35s;
	background: linear-gradient(180deg, rgba(5, 3, 3, 0.75), rgba(5, 3, 3, 0));
}
.site-header.is-scrolled {
	--header-h: 64px;
	background: rgba(11, 8, 7, 0.86);
	backdrop-filter: blur(14px) saturate(1.2);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(0, 0, 0, 0.9);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
	height: 100%;
	max-width: calc(1440px + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
	display: flex;
	align-items: center;
	gap: 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ivory);
	margin-right: auto;
}
.brand__mark { width: auto; height: calc(var(--header-h) - 18px); transition: height 0.35s, transform 0.35s var(--ease); filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.7)); }
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.04); }
.brand__name {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ivory);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list, .nav .menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a, .nav .menu a {
	position: relative;
	display: inline-block;
	padding-block: 8px;
	font-family: var(--f-display);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text);
}
.nav__list a::after, .nav .menu a::after {
	content: "";
	position: absolute;
	left: 50%; right: 50%; bottom: 2px;
	height: 1px;
	background: var(--gold);
	transition: left 0.3s var(--ease), right 0.3s var(--ease);
}
.nav__list a:hover, .nav .menu a:hover,
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-menu-ancestor > a { color: var(--gold-bright); }
.nav__list a:hover::after, .nav .menu a:hover::after,
.nav .current-menu-item > a::after, .nav .current_page_item > a::after { left: 0; right: 0; }

.nav-toggle {
	display: none;
	position: relative;
	z-index: 60;
	width: 46px; height: 46px;
	align-items: center; justify-content: center;
	background: rgba(11, 8, 7, 0.5);
	border: 1px solid var(--line-strong);
	border-radius: 4px;
	color: var(--gold-bright);
	cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.brand__name { font-size: 0.92rem; }
	.nav {
		position: fixed;
		inset: 0;
		z-index: 55;
		flex-direction: column;
		justify-content: center;
		gap: 40px;
		padding: 96px 24px 48px;
		background:
			radial-gradient(ellipse at 50% 110%, rgba(169, 31, 38, 0.35), transparent 60%),
			radial-gradient(ellipse at 50% -10%, rgba(217, 179, 108, 0.12), transparent 55%),
			rgba(8, 6, 5, 0.97);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.35s, visibility 0s 0.35s;
	}
	.nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s; }
	.nav__list, .nav .menu { flex-direction: column; align-items: center; gap: 8px; }
	.nav__list a, .nav .menu a { font-size: 1.35rem; letter-spacing: 0.14em; padding: 10px 16px; }
	.nav.is-open .menu-item { animation: rise 0.5s var(--ease) both; }
	.nav.is-open .menu-item:nth-child(2) { animation-delay: 0.05s; }
	.nav.is-open .menu-item:nth-child(3) { animation-delay: 0.1s; }
	.nav.is-open .menu-item:nth-child(4) { animation-delay: 0.15s; }
	.nav.is-open .menu-item:nth-child(5) { animation-delay: 0.2s; }
	.nav.is-open .menu-item:nth-child(6) { animation-delay: 0.25s; }
	body.nav-open { overflow: hidden; }
	/* backdrop-filter would trap the fixed overlay inside the header bar. */
	body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
	.nav__list a::after, .nav .menu a::after { display: none; }
}
@media (max-width: 420px) {
	.brand__name { display: none; }
}

/* 6. Hero ----------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: max(640px, 100svh);
	display: grid;
	place-items: center;
	padding: calc(var(--header-h) + 24px) var(--gutter) 96px;
	overflow: hidden;
	isolation: isolate;
	text-align: center;
}

.hero__scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__sky {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 45% at 50% 78%, rgba(211, 58, 60, 0.42), transparent 70%),
		radial-gradient(ellipse 50% 30% at 74% 62%, rgba(255, 160, 80, 0.16), transparent 70%),
		radial-gradient(ellipse 120% 80% at 50% 10%, #2b1f2e 0%, #170f18 45%, #0b0807 100%);
}
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }

.hero__stars {
	position: absolute;
	inset: 0 0 35%;
	background-image:
		radial-gradient(1px 1px at 12% 18%, #fff8, transparent 60%),
		radial-gradient(1px 1px at 27% 42%, #fff6, transparent 60%),
		radial-gradient(1.5px 1.5px at 38% 12%, #ffe9b8aa, transparent 60%),
		radial-gradient(1px 1px at 52% 30%, #fff7, transparent 60%),
		radial-gradient(1px 1px at 63% 9%, #fff8, transparent 60%),
		radial-gradient(1.5px 1.5px at 71% 24%, #fff9, transparent 60%),
		radial-gradient(1px 1px at 83% 14%, #fff6, transparent 60%),
		radial-gradient(1px 1px at 91% 38%, #fff7, transparent 60%),
		radial-gradient(1px 1px at 6% 46%, #fff5, transparent 60%),
		radial-gradient(1px 1px at 46% 52%, #fff4, transparent 60%);
	background-size: 640px 420px;
	animation: twinkle 7s ease-in-out infinite alternate;
	opacity: 0.8;
}
.hero__moon {
	position: absolute;
	top: 13%;
	left: 14%;
	width: clamp(60px, 8vw, 120px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at 38% 38%, #fff6e2, #e9d6ae 45%, #b99d6c 75%, #8c7350);
	box-shadow: 0 0 60px 18px rgba(241, 210, 143, 0.18), 0 0 160px 60px rgba(241, 210, 143, 0.08);
	opacity: 0.85;
}
.hero__moon::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background:
		radial-gradient(circle at 62% 30%, rgba(120, 95, 60, 0.35) 0 9%, transparent 10%),
		radial-gradient(circle at 40% 64%, rgba(120, 95, 60, 0.3) 0 12%, transparent 13%),
		radial-gradient(circle at 70% 70%, rgba(120, 95, 60, 0.25) 0 6%, transparent 7%);
}

.layer {
	position: absolute;
	left: -4%;
	bottom: 0;
	width: 108%;
	max-width: none;
	will-change: transform;
}
img.layer { object-fit: cover; object-position: 50% 100%; }
.layer svg { width: 100%; height: 100%; }
.layer--far { height: 72%; opacity: 0.9; }
.layer--mid { height: 56%; }
.layer--castle { height: 60%; }
.layer--near { height: 30%; }

.cofd-windows rect { animation: flicker 3.6s ease-in-out infinite alternate; }

.hero__fog {
	position: absolute;
	left: 0; right: 0;
	height: 34%;
	background: url("../img/scenery/fog.webp") repeat-x 0 100% / 2000px 100%;
	pointer-events: none;
}
.hero__fog--back { bottom: 22%; opacity: 0.2; animation: drift 140s linear infinite; }
.hero__fog--front { bottom: -4%; opacity: 0.38; animation: drift 90s linear infinite reverse; }

.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero__vignette {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 85% 75% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.6)),
		linear-gradient(180deg, transparent 72%, var(--ink) 100%);
}

.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.hero__emblem {
	position: relative;
	width: clamp(190px, min(34vh, 58vw), 420px);
	margin-bottom: clamp(12px, 2.4vh, 28px);
	animation: emblem-in 1.6s var(--ease) both;
}
.hero__title { margin: 0; position: relative; z-index: 2; }
.hero__logo {
	width: 100%;
	filter: drop-shadow(0 0 22px rgba(217, 179, 108, 0.32)) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.85));
}
.hero__ring {
	position: absolute;
	top: 56%; left: 50%;
	width: 158%;
	aspect-ratio: 1;
	translate: -50% -50%;
	color: var(--gold);
	opacity: 0.4;
	z-index: 0;
	animation: spin 180s linear infinite;
	pointer-events: none;
}
.hero__ring svg { width: 100%; height: 100%; }
.hero__halo {
	position: absolute;
	top: 56%; left: 50%;
	width: 125%;
	aspect-ratio: 1;
	translate: -50% -50%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(241, 210, 143, 0.2), rgba(211, 58, 60, 0.12) 40%, transparent 68%);
	animation: breathe 7s ease-in-out infinite;
	z-index: 1;
}

.hero__eyebrow { animation: rise 1s 0.5s var(--ease) both; }
.hero__eyebrow::before,
.hero__eyebrow::after { content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero__eyebrow::after { transform: scaleX(-1); }

.hero__tagline {
	max-width: 34ch;
	margin: 0 0 clamp(20px, 3.4vh, 36px);
	font-family: var(--f-accent);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	line-height: 1.35;
	color: var(--ivory);
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
	animation: rise 1s 0.7s var(--ease) both;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 18px;
	animation: rise 1s 0.9s var(--ease) both;
}

.hero__scroll {
	position: absolute;
	bottom: 26px;
	left: 50%;
	translate: -50% 0;
	width: 26px;
	height: 42px;
	border: 1px solid var(--line-strong);
	border-radius: 14px;
	z-index: 2;
}
.hero__scroll span {
	position: absolute;
	top: 8px; left: 50%;
	width: 3px; height: 8px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: var(--gold);
	animation: scroll-cue 2.2s ease-in-out infinite;
}

@media (max-height: 640px) and (min-width: 700px) {
	.hero__emblem { width: clamp(160px, 30vh, 260px); }
	.hero__scroll { display: none; }
}

/* 7. Sections ------------------------------------------------------------- */
.latest { overflow: hidden; }
.latest__backdrop {
	position: absolute;
	inset: -10% -10% 0;
	background: var(--backdrop) center / cover no-repeat;
	filter: blur(70px) saturate(1.3);
	opacity: 0.14;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 60%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 25%, #000 60%, transparent);
	pointer-events: none;
}
.latest .container { position: relative; }

.feature {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
}
.feature__title { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); margin-bottom: 0.4em; }
.feature__title a { color: inherit; text-decoration: none; }
.feature__title a:hover { color: var(--gold-bright); }
.feature__excerpt { color: var(--muted); font-size: 1.08rem; }
.feature__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 24px; }

@media (max-width: 860px) {
	.feature { grid-template-columns: 1fr; }
}

.recent { background: linear-gradient(180deg, transparent, var(--night) 30%, var(--night) 70%, transparent); }

.intro {
	background:
		radial-gradient(ellipse 50% 60% at 25% 50%, rgba(169, 31, 38, 0.18), transparent 70%),
		var(--ink);
}
.intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}
.intro__seal { position: relative; max-width: 460px; margin-inline: auto; }
.intro__seal::before {
	content: "";
	position: absolute;
	inset: 8%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(241, 210, 143, 0.18), transparent 65%);
	filter: blur(10px);
}
.intro__seal img { position: relative; animation: float 9s ease-in-out infinite; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.75)); }
.intro__text { font-size: 1.15rem; color: var(--text); max-width: 56ch; margin-top: 1em; }

.pillars { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 14px; }
.pillars li { display: flex; gap: 16px; align-items: center; color: var(--muted); }
.pillars strong { color: var(--ivory); font-family: var(--f-display); font-size: 0.95rem; letter-spacing: 0.06em; margin-right: 0.3em; }
.pillars__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	color: var(--gold);
	border: 1px solid var(--line-strong);
	transform: rotate(45deg);
	font-size: 1.1rem;
}
.pillars__icon > * { transform: rotate(-45deg); }
.pillars__icon .icon { width: 22px; height: 22px; }

@media (max-width: 860px) {
	.intro__grid { grid-template-columns: 1fr; text-align: center; }
	.intro__seal { max-width: 300px; }
	.intro__text { margin-inline: auto; }
	.pillars { justify-items: center; text-align: left; }
}

.campaigns { background: var(--night); }

.campaign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.campaign-card {
	position: relative;
	min-height: 280px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--stone);
	transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.campaign-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: transform 0.6s var(--ease), opacity 0.4s; }
.campaign-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(8, 6, 5, 0.95)); }
.campaign-card__body { position: relative; z-index: 2; padding: 24px; }
.campaign-card__title { font-size: 1.5rem; margin: 0 0 0.3em; }
.campaign-card__title a { color: inherit; text-decoration: none; }
.campaign-card p:not(.eyebrow) { color: var(--muted); margin: 0; }
.campaign-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-deep); }
.campaign-card:hover .campaign-card__img { transform: scale(1.05); opacity: 0.7; }

.cta-band {
	position: relative;
	overflow: hidden;
	padding-block: clamp(48px, 7vw, 88px);
	border-block: 1px solid var(--line);
	isolation: isolate;
}
.cta-band__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 60% 120% at 85% 50%, rgba(241, 210, 143, 0.12), transparent 60%),
		linear-gradient(100deg, #2a0b0d, #4a1216 45%, #1c0809);
}
.cta-band__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../img/scenery/arcane-ring.svg") no-repeat 92% 50% / 520px;
	opacity: 0.08;
	filter: invert(83%) sepia(30%) saturate(600%) hue-rotate(350deg);
}
.cta-band__inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.cta-band__inner > div { flex: 1 1 320px; }
.cta-band__mark { width: 84px; opacity: 0.9; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)); }
.cta-band__title { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.3rem); margin-bottom: 0.25em; }
.cta-band p { margin: 0; color: #e7cfc0; }

@media (max-width: 640px) {
	.cta-band__inner { flex-direction: column; text-align: center; }
	.cta-band__mark { width: 64px; }
}

/* 8. Player --------------------------------------------------------------- */
.player {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	border-radius: 2px;
}
.player__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.5s; }
.player__shade {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55)), linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.6));
	pointer-events: none;
}
.player__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--ivory);
	cursor: pointer;
	z-index: 2;
}
.player__ring {
	position: relative;
	display: grid;
	place-items: center;
	width: clamp(64px, 9vw, 96px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, var(--ember-bright), var(--ember) 60%, #6a1015);
	box-shadow: 0 0 0 2px rgba(241, 210, 143, 0.7), 0 0 0 9px rgba(11, 8, 7, 0.35), 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 50px var(--ember-glow);
	transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.player__ring::after {
	content: "";
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	border: 1px solid rgba(241, 210, 143, 0.55);
	animation: pulse 2.6s ease-out infinite;
}
.player__ring .icon { width: 42%; height: 42%; margin-left: 8%; }
.player__play:hover .player__ring,
.player__play:focus-visible .player__ring { transform: scale(1.08); box-shadow: 0 0 0 2px var(--gold-bright), 0 0 0 9px rgba(11, 8, 7, 0.35), 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 70px rgba(211, 58, 60, 0.7); }
.player:hover .player__poster { transform: scale(1.03); }
.player__play:focus-visible { outline-offset: -6px; }
.player__duration {
	position: absolute;
	right: 12px; bottom: 12px;
	padding: 3px 8px;
	font-size: 0.8rem;
	font-weight: 700;
	background: rgba(0, 0, 0, 0.75);
	border-radius: 3px;
	z-index: 2;
	pointer-events: none;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.player.is-playing .player__play,
.player.is-playing .player__duration,
.player.is-playing .player__shade { display: none; }

/* 9. Episode cards -------------------------------------------------------- */
.ep-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: clamp(20px, 2.5vw, 32px);
}

.ep-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, var(--stone), var(--night));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.ep-card:hover,
.ep-card:focus-within {
	transform: translateY(-6px);
	border-color: var(--line-strong);
	box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.95), 0 0 46px -14px var(--ember-glow);
}
.ep-card:focus-within { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.ep-card:focus-within .stretched:focus-visible { outline: none; }

.ep-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--stone-2); }
.ep-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.5s; }
.ep-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 6, 5, 0.75)); }
.ep-card:hover .ep-card__media img { transform: scale(1.07); filter: brightness(0.82); }
.ep-card__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-deep); }
.ep-card__fallback .icon { width: 56px; height: 56px; }

.ep-card__badge,
.ep-card__dur {
	position: absolute;
	z-index: 2;
	padding: 4px 9px;
	font-size: 0.72rem;
	font-weight: 700;
	border-radius: 3px;
	background: rgba(8, 6, 5, 0.78);
	backdrop-filter: blur(4px);
}
.ep-card__badge { top: 10px; left: 10px; font-family: var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); border: 1px solid var(--line-strong); }
.ep-card__dur { bottom: 10px; right: 10px; color: var(--ivory); }
.ep-card__play {
	position: absolute;
	z-index: 2;
	top: 50%; left: 50%;
	display: grid;
	place-items: center;
	width: 58px; height: 58px;
	translate: -50% -50%;
	border-radius: 50%;
	color: var(--ivory);
	background: radial-gradient(circle at 35% 30%, var(--ember-bright), var(--ember));
	box-shadow: 0 0 0 2px rgba(241, 210, 143, 0.7), 0 10px 30px rgba(0, 0, 0, 0.6);
	opacity: 0;
	scale: 0.7;
	transition: opacity 0.35s, scale 0.45s var(--ease);
}
.ep-card__play .icon { width: 24px; height: 24px; margin-left: 3px; }
.ep-card:hover .ep-card__play,
.ep-card:focus-within .ep-card__play { opacity: 1; scale: 1; }

.ep-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.ep-card__meta { display: flex; flex-wrap: wrap; gap: 0.2em 0.6em; align-items: center; margin: 0 0 0.5em; font-size: 0.82rem; color: var(--faint); }
.ep-card__title {
	font-size: 1.14rem;
	line-height: 1.3;
	margin: 0 0 0.5em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ep-card__title a { color: var(--ivory); text-decoration: none; }
.ep-card:hover .ep-card__title a { color: var(--gold-bright); }
.ep-card__excerpt {
	color: var(--muted);
	font-size: 0.96rem;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ep-card__cta {
	margin-top: auto;
	padding-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--f-display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
}
.ep-card__cta .icon { width: 1.1em; transition: transform 0.3s var(--ease); }
.ep-card:hover .ep-card__cta .icon { transform: translateX(5px); }

/* Whole card is clickable through the title link. */
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 3; }

/* 10. Pages --------------------------------------------------------------- */
.banner {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: calc(var(--header-h) + clamp(48px, 8vw, 104px)) 0 clamp(48px, 7vw, 88px);
	text-align: center;
	border-bottom: 1px solid var(--line);
}
.banner__art { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 120% 90% at 50% 0%, #2a1e2c, #140d14 50%, var(--ink)); }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.banner__glow { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(211, 58, 60, 0.3), transparent 70%); }
.banner__ridge { position: absolute; left: 0; bottom: 0; width: 100%; height: 55%; object-fit: cover; object-position: 50% 100%; opacity: 0.8; }
.banner__title {
	font-size: clamp(2.2rem, 1.4rem + 4vw, 4.4rem);
	margin: 0;
	background: linear-gradient(180deg, var(--ivory) 35%, var(--gold) 110%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8));
}
.banner__sub { max-width: 46ch; margin: 0.8em auto 0; font-family: var(--f-accent); font-style: italic; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); color: var(--text); }

.toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px 18px;
	padding: 18px;
	margin-bottom: 18px;
	background: linear-gradient(180deg, var(--stone), var(--night));
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.toolbar__search { position: relative; flex: 1 1 280px; }
.toolbar__search .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--gold-deep); pointer-events: none; }
.toolbar input[type="search"],
.toolbar select {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font: inherit;
	font-size: 1rem;
	color: var(--ivory);
	background: var(--ink);
	border: 1px solid var(--line-strong);
	border-radius: 4px;
}
.toolbar input[type="search"] { padding-left: 44px; }
.toolbar input::placeholder { color: var(--faint); }
.toolbar select {
	appearance: none;
	padding-right: 40px;
	background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
	background-size: 6px 6px;
	background-repeat: no-repeat;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--gold); outline: 2px solid rgba(241, 210, 143, 0.35); outline-offset: 0; }
.toolbar__field { flex: 0 1 200px; display: flex; flex-direction: column; gap: 6px; }
.toolbar__field label { font-family: var(--f-display); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

.results-count { color: var(--faint); font-size: 0.92rem; margin: 0 0 24px; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: grid;
	place-items: center;
	min-width: 46px; height: 46px;
	padding: 0 12px;
	font-family: var(--f-display);
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--night);
}
.page-numbers:hover { border-color: var(--gold); color: var(--gold-bright); }
.page-numbers.current { background: var(--ember); border-color: var(--ember-bright); color: var(--ivory); }

/* Single episode */
.theater {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: calc(var(--header-h) + 20px) 0 clamp(32px, 5vw, 56px);
	background: #050303;
}
.theater__ambient {
	position: absolute;
	inset: -20%;
	z-index: -1;
	background: var(--backdrop) center / cover no-repeat;
	filter: blur(90px) saturate(1.5);
	opacity: 0.4;
}
.theater::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 3, 3, 0.4), transparent 30%, transparent 70%, var(--ink)); }
.theater__screen { max-width: min(1280px, calc((100svh - var(--header-h) - 120px) * 16 / 9)); min-width: min(100%, 560px); margin-inline: auto; }
.crumbs { max-width: min(1280px, calc((100svh - var(--header-h) - 120px) * 16 / 9)); min-width: min(100%, 560px); margin: 0 auto 14px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }

.episode__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px clamp(32px, 5vw, 72px);
	padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px);
}
.episode__head { grid-column: 1 / -1; max-width: 900px; }
.episode__title { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); margin: 0 0 0.45em; }
.episode__actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.episode__aside { display: grid; gap: 20px; align-content: start; }

@media (max-width: 900px) {
	.episode__layout { grid-template-columns: 1fr; }
}

.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--text); }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose a { overflow-wrap: anywhere; }
.prose img { border-radius: var(--radius); }
.prose blockquote {
	margin: 1.6em 0;
	padding: 0.4em 0 0.4em 1.2em;
	border-left: 2px solid var(--gold);
	font-family: var(--f-accent);
	font-style: italic;
	font-size: 1.35rem;
	color: var(--ivory);
}

.aside-card {
	padding: 22px;
	background: linear-gradient(180deg, var(--stone), var(--night));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--muted);
	font-size: 0.96rem;
}
.aside-card__title { display: block; font-family: var(--f-display); font-size: 1.2rem; color: var(--ivory); text-decoration: none; margin-bottom: 0.4em; }
.aside-card--seal { text-align: center; }
.aside-card--seal img { width: 130px; margin: 0 auto 12px; }

.ep-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	padding-bottom: clamp(24px, 4vw, 48px);
}
.ep-nav__link {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 12px;
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--night);
	transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.ep-nav__link:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-deep); }
.ep-nav__link img { width: 150px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; flex: none; }
.ep-nav__link--next { flex-direction: row-reverse; text-align: right; }
.ep-nav__link--next .eyebrow { justify-content: flex-end; }
.ep-nav__text .eyebrow { display: flex; margin-bottom: 0.3em; font-size: 0.66rem; }
.ep-nav__title { display: block; font-family: var(--f-display); color: var(--ivory); line-height: 1.3; }

@media (max-width: 700px) {
	.ep-nav { grid-template-columns: 1fr; }
	.ep-nav__spacer { display: none; }
	.ep-nav__link img { width: 110px; }
}

/* Cast */
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.cast-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--night); transition: transform 0.35s var(--ease), border-color 0.35s; }
.cast-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.cast-card__portrait { aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(circle at 50% 40%, var(--stone-3), var(--ink)); display: grid; place-items: center; }
.cast-card__portrait img { width: 100%; height: 100%; object-fit: cover; }
.cast-card__portrait .cast-card__placeholder { width: 46%; height: auto; opacity: 0.35; object-fit: contain; }
.cast-card__body { padding: 18px 20px 22px; }
.cast-card__name { font-size: 1.3rem; margin: 0 0 0.3em; }
.cast-card__name a { color: inherit; text-decoration: none; }
.cast-card p:not(.eyebrow) { color: var(--muted); font-size: 0.95rem; margin: 0; }

.profile { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.profile__portrait img { width: 100%; }
@media (max-width: 800px) { .profile { grid-template-columns: 1fr; } .profile__portrait { max-width: 360px; } }

.crest-page { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.crest-page__seal { position: sticky; top: calc(var(--header-h) + 32px); }
.crest-page__seal img { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.75)); animation: float 9s ease-in-out infinite; }
@media (max-width: 860px) {
	.crest-page { grid-template-columns: 1fr; }
	.crest-page__seal { position: static; max-width: 260px; margin-inline: auto; }
}
.campaigns__intro { margin: 0 auto 40px; }

.list-item { padding-block: 24px; border-bottom: 1px solid var(--line); }
.list-item__title { font-size: 1.5rem; }
.list-item__title a { color: var(--ivory); text-decoration: none; }

/* 404 */
.lost {
	position: relative;
	min-height: 88svh;
	display: grid;
	place-items: center;
	text-align: center;
	padding: calc(var(--header-h) + 40px) 0 80px;
	isolation: isolate;
}
.lost__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(169, 31, 38, 0.3), transparent 70%), var(--ink); }
.lost__inner { display: flex; flex-direction: column; align-items: center; }
.lost__roll {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: clamp(7rem, 22vw, 14rem);
	line-height: 1;
	margin: 0;
	color: transparent;
	-webkit-text-stroke: 2px var(--gold);
	text-shadow: 0 0 60px rgba(211, 58, 60, 0.55);
	animation: float 6s ease-in-out infinite;
}
.lost__title { font-size: clamp(1.8rem, 1.2rem + 2.5vw, 3rem); }
.lost p { color: var(--muted); max-width: 44ch; }

/* 11. Footer -------------------------------------------------------------- */
.site-footer {
	position: relative;
	overflow: hidden;
	background: #070505;
	border-top: 1px solid var(--line);
	padding-top: clamp(48px, 7vw, 80px);
}
.site-footer__glow { position: absolute; inset: auto 0 -40% 0; height: 100%; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(169, 31, 38, 0.22), transparent 70%); pointer-events: none; }
.site-footer__inner {
	position: relative;
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr) auto;
	gap: 28px clamp(28px, 5vw, 64px);
	align-items: center;
}
.site-footer__crest img { width: 170px; transition: transform 0.4s var(--ease); }
.site-footer__crest:hover img { transform: rotate(-3deg) scale(1.03); }
.site-footer__tag { font-family: var(--f-accent); font-style: italic; font-size: 1.35rem; color: var(--ivory); margin-bottom: 16px; max-width: 30ch; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-menu a { font-family: var(--f-display); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding-block: 6px; display: inline-block; }
.footer-menu a:hover { color: var(--gold-bright); }
.site-footer__base {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: clamp(36px, 5vw, 56px);
	padding-block: 22px;
	border-top: 1px solid rgba(217, 179, 108, 0.1);
	color: var(--faint);
	font-size: 0.86rem;
}
.site-footer__base p { margin: 0; }

@media (max-width: 760px) {
	.site-footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.site-footer__crest img { width: 140px; }
	.footer-menu { grid-auto-flow: column; gap: 20px; }
	.site-footer__base { justify-content: center; text-align: center; }
}

/* 12. Motion & accessibility ---------------------------------------------- */
.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	/* Safety net: show content even if the observer never runs. */
	animation: reveal-fallback 0s 2.5s forwards;
}
.js .reveal.is-visible { opacity: 1; transform: none; animation: none; }
.ep-grid > .reveal:nth-child(3n + 2) { transition-delay: 0.08s; }
.ep-grid > .reveal:nth-child(3n + 3) { transition-delay: 0.16s; }

@keyframes reveal-fallback { to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes emblem-in { from { opacity: 0; transform: scale(0.92); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { 0%, 100% { opacity: 0.75; scale: 1; } 50% { opacity: 1; scale: 1.06; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { from { background-position-x: 0; } to { background-position-x: -2000px; } }
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 0.95; } }
@keyframes flicker { 0%, 100% { opacity: 0.95; } 40% { opacity: 0.6; } 70% { opacity: 1; } }
@keyframes pulse { from { opacity: 0.9; transform: scale(0.92); } to { opacity: 0; transform: scale(1.35); } }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0s !important;
		transition-duration: 0.001ms !important;
	}
	.js .reveal { opacity: 1; transform: none; }
	.hero__embers { display: none; }
	.layer, .hero__fog { transform: none !important; }
}

@media (forced-colors: active) {
	.section__title, .banner__title { color: CanvasText; background: none; }
	.btn { border: 1px solid ButtonText; clip-path: none; }
}

@media print {
	.site-header, .hero__scene, .site-footer, .player__play, .cta-band { display: none !important; }
	body { background: #fff; color: #000; }
}

/* Mobile hero: show the full panorama (castle included) instead of a centre crop. */
@media (max-width: 700px) {
	.layer { width: 230%; left: -92%; height: calc(230vw * 0.375); }
	.layer--far { width: 260%; left: -128%; height: calc(260vw * 0.375); }
	.layer--near { width: 200%; left: -50%; height: calc(200vw * 0.375); }
	.hero__fog { height: 22%; }
	.hero__moon { top: 11%; left: 6%; width: 46px; }
	.hero__eyebrow { flex-wrap: wrap; justify-content: center; text-align: center; letter-spacing: 0.24em; }
	.hero__eyebrow::before, .hero__eyebrow::after { display: none; }
	.hero__actions { flex-direction: column; align-items: stretch; width: min(100%, 340px); }
}
