/* =========================================================================
   Satia — muftiismailsatia.com
   Palette taken from the Breathing Space print material: deep navy, gold,
   teal. One stylesheet, no framework, no build step.
   ====================================================================== */

/* -------------------------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------------------- */

:root {
	--navy:        #0f2a56;
	--navy-deep:   #0a1d3d;
	--navy-soft:   #1b3b70;
	--gold:        #d9a441;
	--gold-light:  #f0cd86;
	--gold-deep:   #b8862b;
	--teal:        #1b7f8c;
	--cream:       #faf6ef;
	--ink:         #16202e;
	--muted:       #5b6675;
	--line:        #e3e7ee;
	--white:       #fff;

	/* One family, two roles. Nunito's rounded terminals read as warm and
	   approachable, which suits counselling far better than a hard grotesque,
	   and it stays legible down to small sizes. */
	--font-sans:  "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-serif: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--wrap:    1180px;
	--gutter:  clamp(1.25rem, 4vw, 2.5rem);
	--radius:  14px;
	--radius-lg: 22px;

	/* Shadows are navy-tinted, never neutral grey. Light in the real world
	   picks up the colour around it, and a grey shadow on a warm page is the
	   single most common tell of an unconsidered interface.
	   Each level stacks three layers: a tight contact shadow, a mid spread,
	   and a wide ambient -- which is what makes depth read as real. */
	--shadow-xs: 0 1px 2px rgb(10 29 61 / 6%);
	--shadow-sm: 0 1px 2px rgb(10 29 61 / 5%), 0 2px 6px rgb(10 29 61 / 5%), 0 6px 14px rgb(10 29 61 / 4%);
	--shadow-md: 0 1px 2px rgb(10 29 61 / 6%), 0 6px 14px rgb(10 29 61 / 7%), 0 16px 32px rgb(10 29 61 / 7%);
	--shadow-lg: 0 2px 4px rgb(10 29 61 / 7%), 0 12px 26px rgb(10 29 61 / 9%), 0 32px 64px rgb(10 29 61 / 11%);
	--shadow-gold: 0 1px 2px rgb(184 134 43 / 20%), 0 6px 16px rgb(184 134 43 / 22%), 0 14px 32px rgb(184 134 43 / 16%);

	/* Glass. Used only where something sits behind it -- glass over flat
	   white is just a lighter box, and costs a repaint for nothing. */
	--glass-bg:     rgb(255 255 255 / 72%);
	--glass-bg-alt: rgb(255 255 255 / 55%);
	--glass-dark:   rgb(10 29 61 / 55%);
	--glass-line:   rgb(255 255 255 / 60%);
	--glass-blur:   saturate(180%) blur(16px);

	/* One easing curve everywhere. Consistency is what reads as "designed". */
	--ease: cubic-bezier(.22, .61, .36, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--fast: .18s;
	--base: .32s;
	--slow: .6s;

	--header-h: 76px;
}

/* -------------------------------------------------------------------------
   2. Reset
   ---------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	/* clip, NOT hidden.

	   overflow-x: hidden turns this element into a scroll container, and
	   a sticky child then sticks to THAT box rather than to the window --
	   which is why the header was sliding away as the page scrolled.

	   overflow-x: clip stops sideways scrolling without creating a scroll
	   container, so the header stays put. */
	overflow-x: clip;
}

/* Safari before 16 has no overflow: clip. Those browsers keep the old
   behaviour rather than gaining a sideways scrollbar. */
@supports not (overflow-x: clip) {
	body { overflow-x: hidden; }
}

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

h1, h2, h3, h4 {
	font-family: var(--font-serif);
	/* 800, not 600. Nunito is rounded and optically lighter than a serif at
	   the same weight, so headings need more mass to hold the page. */
	font-weight: 800;
	line-height: 1.16;
	letter-spacing: -0.021em;
	color: var(--navy);
	margin: 0 0 .6em;
	text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

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

/* Visually hidden, still read aloud. WordPress core, WooCommerce and this
   theme all emit .screen-reader-text; without this rule that content renders
   as visible duplicate text -- WooCommerce prices are the usual casualty
   ("Original price was: ... Current price is: ..." appearing on the page). */
.screen-reader-text,
.screen-reader-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	display: block;
	top: 5px;
	left: 5px;
	z-index: 100000;
	clip: auto !important;
	clip-path: none;
	width: auto;
	height: auto;
	padding: .9rem 1.2rem;
	font-size: .9rem;
	line-height: normal;
	color: var(--navy);
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	text-decoration: none;
}

/* WooCommerce strikethrough pricing, styled to match. */
.course__price del,
.locked__price del,
.card__badge del {
	margin-right: .4em;
	font-size: .72em;
	font-weight: 500;
	opacity: .6;
	text-decoration-thickness: 1.5px;
}
.card__badge del { display: none; }
.course__price ins,
.locked__price ins { text-decoration: none; }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: .8rem 1.2rem;
	background: var(--navy);
	color: #fff;
	border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.muted { color: var(--muted); }
.eyebrow {
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold-deep);
	margin: 0 0 .7em;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
   3. Header
   ---------------------------------------------------------------------- */

.site-header {
	/* Pinned to the top of the window for the whole page. Sticky rather
	   than fixed so it still occupies its space in the layout: fixed
	   would pull it out of the flow and the page would jump up
	   underneath it. */
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--glass-bg);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border-bottom: 1px solid transparent;
	/* Only these two properties animate — both composited, so no repaint. */
	transition: box-shadow var(--base) var(--ease), border-color var(--base) var(--ease);
}
.site-header.is-stuck {
	border-bottom-color: rgb(227 231 238 / 80%);
	box-shadow: var(--shadow-sm);
	background: rgb(255 255 255 / 82%);
}

/* A hairline of light along the top edge. Real glass catches light where it
   meets another surface; this is what separates glass from transparency. */
.site-header::after {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgb(255 255 255 / 70%) 50%, transparent);
	pointer-events: none;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(.75rem, 2vw, 1.5rem);
	min-height: var(--header-h);
	/* Without this the brand, the menu and the button add up to more
	   than the bar and the last one runs off the right-hand edge. */
	flex-wrap: nowrap;
}

/* Each part may shrink rather than push its neighbour off screen. */
.site-header__brand {
	flex: 0 1 auto;
	min-width: 0;
	margin-right: auto;
}
.custom-logo-link img,
.custom-logo { max-height: 52px; width: auto; }

.brand {
	display: flex;
	align-items: center;
	gap: .7rem;
	text-decoration: none;
	min-width: 0;                      /* lets the words truncate, not overflow */
}

/* ---- The mark ----------------------------------------------------------
   The supplied file is a 160x160 channel avatar, so it is displayed at
   44px and never larger: past about 80px it would visibly soften.

   aspect-ratio plus object-fit keeps it square whatever is uploaded
   later, so a wide logo is letterboxed rather than stretched. The box
   is also given its size here so the header cannot shift as the image
   loads.
   -------------------------------------------------------------------- */

.brand__mark {
	flex: 0 0 auto;
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow:
		0 1px 2px rgb(10 29 61 / 14%),
		0 4px 12px rgb(10 29 61 / 12%),
		inset 0 0 0 1px rgb(255 255 255 / 70%);
	transition: transform var(--base) var(--ease-out), box-shadow var(--base) var(--ease);
}

.brand__img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	object-fit: contain;               /* contain, not cover: never crop a logo */
	object-position: center;
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
	transform: translateY(-1px) scale(1.04);
	box-shadow:
		0 2px 4px rgb(10 29 61 / 16%),
		0 8px 20px rgb(10 29 61 / 18%),
		inset 0 0 0 1px rgb(217 164 65 / 55%);
}

.brand:active .brand__mark { transform: translateY(0) scale(.98); }

.brand__words { min-width: 0; }

.brand__name {
	display: block;
	font-family: var(--font-serif);
	font-size: 1.22rem;
	font-weight: 600;
	color: var(--navy);
	letter-spacing: -0.01em;
	line-height: 1.2;
}
.brand__tagline {
	display: block;
	font-size: .7rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gold-deep);
	margin-top: .18em;
}

/* Nav */
.nav__list {
	display: flex;
	align-items: center;
	gap: .25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__link {
	position: relative;
	display: block;
	padding: .55rem .85rem;
	font-size: .95rem;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
	border-radius: 8px;
	transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav__link:hover { color: var(--navy); background: rgb(15 42 86 / 5%); }

/* The underline grows from the centre rather than fading — reads as crafted. */
.nav__link::after {
	content: "";
	position: absolute;
	left: .85rem;
	right: .85rem;
	bottom: .3rem;
	height: 2px;
	background: var(--gold);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform var(--base) var(--ease-out);
}
.nav__item.current-menu-item > .nav__link::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Submenu */
.nav__item.has-children { position: relative; }
.nav__submenu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 215px;
	margin: 0;
	padding: .4rem;
	list-style: none;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--base) var(--ease), transform var(--base) var(--ease-out), visibility var(--base);
}
.nav__item.has-children:hover > .nav__submenu,
.nav__item.has-children:focus-within > .nav__submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.nav__submenu .nav__link { padding: .5rem .7rem; }
.nav__submenu .nav__link::after { display: none; }

.site-header__actions {
	display: flex;
	align-items: center;
	gap: clamp(.5rem, 1.2vw, .9rem);
	flex: 0 0 auto;
}

/* ---- Keeping the bar on one line -------------------------------------
   Between about 1100px and 1400px the brand, five menu items and the
   gold button together are wider than the bar. Rather than let the
   button fall off the edge, parts are dropped in order of how much they
   are needed: the strapline first, then the button's wording, leaving
   its icon as a round button.
   ------------------------------------------------------------------ */

@media (max-width: 1400px) {
	.brand__tagline { display: none; }
}

@media (max-width: 1180px) {
	.site-header__actions .btn--gold span { display: none; }
	.site-header__actions .btn--gold {
		width: 42px;
		height: 42px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}
	.nav__list { gap: .9rem; }
}

.nav__account {
	font-size: .9rem;
	font-weight: 500;
	color: var(--muted);
	text-decoration: none;
	white-space: nowrap;
}
.nav__account:hover { color: var(--navy); }

/* Reading progress bar on watch pages */
.site-header__progress {
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 2px;
	width: 100%;
	background: linear-gradient(90deg, var(--gold), var(--gold-light));
	transform: scaleX(var(--progress, 0));
	transform-origin: left;
	opacity: 0;
	transition: opacity var(--base) var(--ease);
}
.is-watching .site-header__progress { opacity: 1; }

/* Mobile toggle */
.nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	transition: background-color var(--fast) var(--ease);
}
.nav-toggle:hover { background: var(--cream); }
.nav-toggle__bar {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--navy);
	border-radius: 2px;
	transition: transform var(--base) var(--ease-out), opacity var(--fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   4. Buttons
   ---------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .8rem 1.4rem;
	font-family: var(--font-sans);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: transform var(--fast) var(--ease), box-shadow var(--base) var(--ease),
	            background-color var(--fast) var(--ease), color var(--fast) var(--ease),
	            border-color var(--fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform var(--base) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--gold {
	background: linear-gradient(180deg, var(--gold-light) -40%, var(--gold) 55%, var(--gold-deep) 160%);
	color: var(--navy-deep);
	box-shadow: var(--shadow-gold), inset 0 1px 0 rgb(255 255 255 / 45%);
}
.btn--gold:hover {
	background: linear-gradient(180deg, #f7dca6 -40%, var(--gold-light) 55%, var(--gold) 160%);
	color: var(--navy-deep);
	box-shadow: 0 2px 4px rgb(184 134 43 / 22%), 0 10px 24px rgb(184 134 43 / 28%), 0 22px 48px rgb(184 134 43 / 20%), inset 0 1px 0 rgb(255 255 255 / 55%);
	transform: translateY(-1px);
}
.btn--gold:active { transform: translateY(0); }

.btn--ghost {
	background: rgb(255 255 255 / 12%);
	color: #fff;
	border-color: rgb(255 255 255 / 45%);
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 6px 18px rgb(10 29 61 / 18%);
}
.btn--ghost:hover { background: rgb(255 255 255 / 18%); border-color: #fff; color: #fff; }

.btn--sm { padding: .55rem 1rem; font-size: .875rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; margin-top: 1.2rem; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-size: .95rem;
	font-weight: 600;
	color: var(--navy);
	text-decoration: none;
	white-space: nowrap;
}
.link-arrow .icon { transition: transform var(--base) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   5. Hero
   ---------------------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(460px, 74vh, 720px);
	padding: 5rem 0;
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 58%, #071630 100%);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: -2;
	/* A very slow drift. Transform only, so it never costs a repaint. */
	animation: hero-drift 28s var(--ease) infinite alternate;
}

@keyframes hero-drift {
	from { transform: scale(1.04) translate3d(0, 0, 0); }
	to   { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}

.hero__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(90% 70% at 15% 20%, rgb(15 42 86 / 55%) 0%, transparent 70%),
		linear-gradient(to right, rgb(10 29 61 / 88%) 0%, rgb(10 29 61 / 62%) 48%, rgb(10 29 61 / 30%) 100%);
}
.hero:not(.hero--image) .hero__veil { background: none; }

/* Gold hairline at the foot of the hero, echoing the poster borders. */
.hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
	opacity: .85;
}

.hero__inner { position: relative; max-width: 760px; }
.hero__eyebrow { color: var(--gold-light); }
.hero__title {
	font-size: clamp(2.3rem, 5.6vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #fff;
	margin-bottom: .45em;
	/* Lifts the type off a photographic background without a dark overlay
	   swallowing the whole image. */
	text-shadow: 0 1px 2px rgb(10 29 61 / 25%), 0 4px 18px rgb(10 29 61 / 30%);
}
.hero:not(.hero--image) .hero__title { text-shadow: none; }
.hero__text {
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	color: rgb(255 255 255 / 86%);
	max-width: 56ch;
	margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* -------------------------------------------------------------------------
   6. Sections and layout
   ---------------------------------------------------------------------- */

.section { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* Two very soft colour fields behind the content. Without something behind
   it, frosted glass is indistinguishable from a plain white box -- this is
   what makes the effect read at all. Kept at 5-7% so it never competes
   with the content. */
.section::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(42rem 28rem at 12% 0%, rgb(27 127 140 / 7%), transparent 70%),
		radial-gradient(38rem 26rem at 92% 88%, rgb(217 164 65 / 8%), transparent 72%);
	pointer-events: none;
}

.section--tint { background: var(--cream); }
.section--tint::before {
	background:
		radial-gradient(40rem 26rem at 88% 4%, rgb(15 42 86 / 6%), transparent 70%),
		radial-gradient(34rem 24rem at 6% 96%, rgb(217 164 65 / 10%), transparent 72%);
}
.section--centred { text-align: center; }

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2.6rem;
}
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0; }

/* ---- Page header -------------------------------------------------------
   One component, every page. Same navy band, same gold hairline, same
   rhythm, whether it is a course, a lesson, an archive or a 404. This is
   the single biggest thing that makes a site feel like one site. */

.pagehead {
	position: relative;
	padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2rem, 4.5vw, 3rem);
	background: linear-gradient(162deg, var(--navy) 0%, var(--navy-deep) 100%);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

/* The same gold hairline the posters use along their borders. */
.pagehead::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--gold) 22%, var(--gold-light) 50%, var(--gold) 78%, transparent);
	opacity: .9;
}

/* A soft light source, top right. Gives the glass elements below something
   to sit against and stops the navy reading as a flat block. */
.pagehead__glow {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(38rem 22rem at 88% -10%, rgb(217 164 65 / 20%), transparent 65%),
		radial-gradient(34rem 24rem at 4% 110%, rgb(27 127 140 / 22%), transparent 68%);
	pointer-events: none;
}

.pagehead__inner { position: relative; }

.pagehead__eyebrow {
	margin: 0 0 .65em;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold-light);
}
.pagehead__eyebrow a { color: inherit; text-decoration: none; }
.pagehead__eyebrow a:hover { text-decoration: underline; }

.pagehead__title {
	margin: 0;
	font-size: clamp(1.9rem, 4.2vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	color: #fff;
	max-width: 22ch;
}

.pagehead__text {
	margin: .9rem 0 0;
	max-width: 58ch;
	font-size: 1.0625rem;
	color: rgb(255 255 255 / 78%);
}

.pagehead__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	list-style: none;
	margin: 1.1rem 0 0;
	padding: 0;
	font-size: .92rem;
	color: rgb(255 255 255 / 78%);
}
.pagehead__meta li { display: flex; align-items: center; gap: .4rem; }
.pagehead__meta .icon { color: var(--gold); }

/* Compact: watch pages, where the video should be near the top. */
.pagehead--compact { padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.25rem, 3vw, 2rem); }
.pagehead--compact .pagehead__title { font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 30ch; }

/* Split: the course page, which pairs the heading with cover art. */
.pagehead--split { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.pagehead--split .pagehead__title { max-width: none; }

/* Breadcrumbs sit inside the band now, so they invert. */
.pagehead .crumbs { padding: 0 0 1rem; color: rgb(255 255 255 / 60%); }
.pagehead .crumbs .wrap { padding-inline: 0; max-width: none; }
.pagehead .crumbs a { color: rgb(255 255 255 / 72%); }
.pagehead .crumbs a:hover { color: var(--gold-light); }
.pagehead .crumbs li:not(:last-child)::after { color: rgb(255 255 255 / 30%); }
.pagehead .crumbs span[aria-current] { color: #fff; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }

.crumbs {
	padding: 1rem 0 0;
	font-size: .875rem;
	color: var(--muted);
}
.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .45rem; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

.panel {
	position: relative;
	background: var(--glass-bg);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border: 1px solid rgb(255 255 255 / 70%);
	box-shadow: var(--shadow-md), inset 0 1px 0 rgb(255 255 255 / 80%);
	border-radius: var(--radius-lg);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* Browsers without backdrop-filter get a solid panel rather than a
   see-through one with unreadable text behind it. */
@supports not (backdrop-filter: blur(1px)) {
	.panel { background: #fff; border-color: var(--line); }
}
.panel + .panel { margin-top: 1.75rem; }
.panel__title { font-size: 1.3rem; margin-bottom: 1rem; }
.panel--sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }

.prose { max-width: 72ch; }
.prose--centred { margin-inline: auto; text-align: center; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose blockquote {
	margin: 2rem 0;
	padding: 1.2rem 0 1.2rem 1.6rem;
	border-left: 3px solid var(--gold);
	font-family: var(--font-serif);
	font-size: 1.2rem;
	color: var(--navy);
}

.feature-image { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks .icon { flex: 0 0 auto; color: var(--teal); margin-top: .28em; }

/* -------------------------------------------------------------------------
   7. Cards
   ---------------------------------------------------------------------- */

.card {
	position: relative;
	background: var(--glass-bg);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border: 1px solid rgb(255 255 255 / 65%);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm), inset 0 1px 0 rgb(255 255 255 / 75%);
	transition: transform var(--base) var(--ease-out), box-shadow var(--base) var(--ease), border-color var(--base) var(--ease);
}
.card:hover {
	transform: translateY(-5px);
	border-color: rgb(217 164 65 / 50%);
	box-shadow: var(--shadow-lg), inset 0 1px 0 rgb(255 255 255 / 85%);
}

@supports not (backdrop-filter: blur(1px)) {
	.card { background: #fff; border-color: var(--line); }
}

.card__link { display: block; color: inherit; text-decoration: none; height: 100%; }

/* ---- Course and programme artwork --------------------------------------
   These are promotional posters, not photographs. Every corner carries
   something: a title, a LIVE flash, the speaker's name. Cropping them to
   a fixed 16:9 box cut those off.

   So the whole image is always shown (object-fit: contain) on a navy
   field, and the box is 4:3 to suit posters, which are usually square or
   upright. Nothing is ever cut.

   Nothing here scales the image either. A hover zoom or a parallax
   drift on a poster crops it again, which is exactly what went wrong.
   -------------------------------------------------------------------- */

.card__media {
	position: relative;
	overflow: hidden;
	/* No aspect-ratio. The frame takes the shape of the poster inside
	   it, so there is nothing to crop and no empty band to fill. A fixed
	   box can only ever cut the image or pad it; neither is right for
	   artwork someone has designed. */
	background: var(--navy-deep);
	line-height: 0;              /* kills the inline-image gap underneath */
}
.card__img {
	width: 100%;
	height: auto;                /* the poster sets its own height */
	display: block;
	object-fit: fill;            /* no fitting needed: the box matches it */
}

/* The placeholder has no image of its own, so it still needs a shape. */
.card__img--placeholder,
.card__media:has(.card__img--placeholder) { aspect-ratio: 16 / 9; }
.card__img--placeholder {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
}

.card__badge {
	position: absolute;
	top: .75rem;
	left: .75rem;
	/* Slightly more top padding than the font's own leading suggests,
	   because the uppercase letterforms here have no descenders and would
	   otherwise look as if they are sitting low in the pill. */
	padding: .38rem .75rem .34rem;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	border-radius: 999px;
	background: rgb(255 255 255 / 80%);
	backdrop-filter: blur(10px) saturate(160%);
	-webkit-backdrop-filter: blur(10px) saturate(160%);
	border: 1px solid rgb(255 255 255 / 70%);
	color: var(--navy);
	box-shadow: var(--shadow-xs);
}
.card__badge--paid {
	background: rgb(217 164 65 / 92%);
	border-color: rgb(240 205 134 / 80%);
	color: var(--navy-deep);
}
.card__badge--login { background: var(--navy); color: #fff; }
.card__badge .woocommerce-Price-amount { font-weight: 700; }
.card__badge del { display: none; }

.card__duration {
	position: absolute;
	right: .75rem;
	bottom: .75rem;
	padding: .2rem .55rem;
	font-size: .74rem;
	font-weight: 600;
	color: #fff;
	background: rgb(10 29 61 / 62%);
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: 7px;
	backdrop-filter: blur(10px) saturate(150%);
	-webkit-backdrop-filter: blur(10px) saturate(150%);
}

.card__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgb(255 255 255 / 70%);
	backdrop-filter: blur(12px) saturate(170%);
	-webkit-backdrop-filter: blur(12px) saturate(170%);
	border: 1px solid rgb(255 255 255 / 75%);
	color: var(--navy);
	box-shadow: var(--shadow-md);
	opacity: 0;
	transform: scale(.82);
	transition: opacity var(--base) var(--ease), transform var(--base) var(--ease-out);
}
.card__play .icon { margin-left: 3px; }
.card:hover .card__play, .card:focus-within .card__play { opacity: 1; transform: scale(1); }

.card__body { padding: 1.35rem 1.4rem 1.5rem; }
.card__eyebrow {
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gold-deep);
	margin-bottom: .5em;
}
.card__title {
	font-size: 1.22rem;
	margin-bottom: .45em;
	transition: color var(--fast) var(--ease);
}
.card:hover .card__title { color: var(--navy-soft); }
.card__excerpt { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card__venue { font-size: .9rem; color: var(--teal); margin-bottom: .5em; }

.card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 1rem 0 0;
	border-top: 1px solid var(--line);
	font-size: .85rem;
	color: var(--muted);
}
.card__meta li { display: flex; align-items: center; gap: .35rem; }
.card__meta .icon { color: var(--teal); }

/* -------------------------------------------------------------------------
   8. Course page
   ---------------------------------------------------------------------- */

.course__hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.course__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	font-size: .92rem;
	color: rgb(255 255 255 / 80%);
}
.course__facts li { display: flex; align-items: center; gap: .4rem; }
.course__facts .icon { color: var(--gold); }

.watch--programme .course__facts { color: var(--muted); }
.watch--programme .course__facts .icon { color: var(--teal); }

.course__price {
	font-family: var(--font-serif);
	font-size: 1.75rem;
	color: var(--gold-light);
	margin-bottom: 1.25rem;
}
.course__price .woocommerce-Price-amount { color: var(--gold-light); }

.course__cover,
.course__preview .msat-player {
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}
.course__preview-label {
	margin-top: .8rem;
	font-size: .8rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gold-light);
	text-align: center;
}

.course__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 370px;
	gap: clamp(1.75rem, 4vw, 3rem);
	padding-top: clamp(2.5rem, 6vw, 4.5rem);
	padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

/* -------------------------------------------------------------------------
   9. Lesson list
   ---------------------------------------------------------------------- */

.lesson-list { list-style: none; margin: 0; padding: 0; counter-reset: lesson; }

.lesson-list__item + .lesson-list__item { border-top: 1px solid var(--line); }

.lesson-list__item > a,
.lesson-list__item > span {
	display: flex;
	align-items: center;
	gap: .8rem;
	padding: .85rem .6rem;
	margin-inline: -.6rem;
	border-radius: 10px;
	text-decoration: none;
	color: var(--ink);
	transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.lesson-list__item > a:hover { background: var(--cream); color: var(--navy); }

.lesson-list__n {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	font-size: .78rem;
	font-weight: 700;
	color: var(--navy);
	background: var(--cream);
	border-radius: 50%;
	transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.lesson-list__item > a:hover .lesson-list__n { background: var(--gold); color: var(--navy-deep); }

.lesson-list__title { flex: 1 1 auto; font-size: .95rem; line-height: 1.4; }
.lesson-list__dur { flex: 0 0 auto; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lesson-list__lock { flex: 0 0 auto; color: var(--muted); display: grid; place-items: center; }

.lesson-list__item.is-locked > span { color: var(--muted); cursor: not-allowed; }
.lesson-list__item.is-locked .lesson-list__n { background: #f1f3f7; color: var(--muted); }

.lesson-list__item.is-current > a {
	background: linear-gradient(135deg, var(--navy), var(--navy-soft));
	color: #fff;
	box-shadow: var(--shadow-sm), inset 0 1px 0 rgb(255 255 255 / 12%);
}
.lesson-list__item.is-current .lesson-list__n { background: var(--gold); color: var(--navy-deep); }
.lesson-list__item.is-current .lesson-list__dur { color: rgb(255 255 255 / 70%); }

.tag {
	flex: 0 0 auto;
	padding: .12rem .45rem;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	border-radius: 5px;
}
.tag--preview { background: rgb(27 127 140 / 12%); color: var(--teal); }

/* -------------------------------------------------------------------------
   10. Watch page
   ---------------------------------------------------------------------- */

.watch {
	padding-bottom: clamp(3rem, 7vw, 5rem);
	background: var(--white);
}
.watch__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(1.75rem, 4vw, 3rem);
	padding-top: clamp(1.5rem, 4vw, 2.5rem);
}
.watch__layout--single { grid-template-columns: minmax(0, 1fr); max-width: 950px; }

.watch__stage { margin-bottom: 1.75rem; }
.watch__head { margin-bottom: 1.75rem; }
.watch__title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 0; }

.watch__pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 2.5rem;
}
.watch__pager-link {
	display: block;
	padding: 1rem 1.25rem;
	border: 1px solid rgb(255 255 255 / 65%);
	border-radius: var(--radius);
	text-decoration: none;
	background: var(--glass-bg-alt);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	box-shadow: var(--shadow-xs), inset 0 1px 0 rgb(255 255 255 / 70%);
	transition: transform var(--base) var(--ease-out), border-color var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.watch__pager-link:hover {
	transform: translateY(-2px);
	border-color: rgb(217 164 65 / 50%);
	box-shadow: var(--shadow-md);
}
.watch__pager-link--next { text-align: right; }
.watch__pager-label {
	display: block;
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gold-deep);
	margin-bottom: .25rem;
}
.watch__pager-title { display: block; font-weight: 500; color: var(--navy); font-size: .95rem; }

/* -------------------------------------------------------------------------
   11. Player and locked panel
   ---------------------------------------------------------------------- */

.msat-player {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--navy-deep);
	box-shadow: var(--shadow-lg);
}
.msat-player video,
.msat-player iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	background: #000;
}
.msat-player--embed :where(iframe) { aspect-ratio: 16 / 9; height: auto; }

.msat-player--error,
/* These two panels stand in for the video, so they want the shape of a
   video -- but only as a floor, never as a ceiling. aspect-ratio fixes
   the height outright, and with overflow hidden the "Enrol" button fell
   off the bottom of its own box on narrow screens. A minimum height
   keeps the proportions when the content is short and lets the box grow
   when it is not. */

.msat-locked {
	display: grid;
	place-items: center;
	min-height: min(56.25vw, 420px);
	color: rgb(255 255 255 / 75%);
	text-align: center;
	padding: 2rem;
	background: linear-gradient(160deg, var(--navy), var(--navy-deep));
	border-radius: var(--radius-lg);
}

.locked {
	position: relative;
	display: grid;
	place-items: center;
	min-height: min(56.25vw, 480px);
	padding: clamp(1.5rem, 4vw, 3rem);
	text-align: center;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: linear-gradient(160deg, var(--navy), var(--navy-deep));
	box-shadow: var(--shadow-lg);
	isolation: isolate;
}
.locked__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-size: cover;
	background-position: center;
	filter: blur(18px) saturate(115%);
	transform: scale(1.12);
	opacity: .3;
}
.locked__body {
	position: relative;
	max-width: 42ch;
	padding: clamp(1.5rem, 3.5vw, 2.5rem);
	background: var(--glass-dark);
	backdrop-filter: blur(22px) saturate(160%);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	border: 1px solid rgb(255 255 255 / 16%);
	border-radius: var(--radius-lg);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 18px 46px rgb(0 0 0 / 26%);
}
.locked__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	color: var(--navy-deep);
	background: var(--gold);
	box-shadow: 0 8px 24px rgb(217 164 65 / 35%);
}
.locked__title { color: #fff; font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.locked__text { color: rgb(255 255 255 / 80%); margin-bottom: 1.5rem; }
.locked__price {
	font-family: var(--font-serif);
	font-size: 1.7rem;
	color: var(--gold-light);
	margin-bottom: 1.25rem;
}
.locked__price .woocommerce-Price-amount { color: var(--gold-light); }
.locked__note { margin: 1rem 0 0; font-size: .875rem; color: rgb(255 255 255 / 65%); }
.locked__note a { color: var(--gold-light); }

/* -------------------------------------------------------------------------
   12. Pagination, search, footer
   ---------------------------------------------------------------------- */

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 .7rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	text-decoration: none;
	color: var(--navy);
	font-weight: 500;
	transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.pagination .page-numbers:hover { background: var(--cream); border-color: var(--gold); }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

.search-form { display: flex; gap: .5rem; max-width: 420px; margin: 1.5rem 0; }
.section--centred .search-form { margin-inline: auto; }
.search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: .75rem 1rem;
	font: inherit;
	font-size: .95rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.search-form input[type="search"]:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 4px rgb(217 164 65 / 18%);
}
.search-form button,
.search-form input[type="submit"] {
	padding: .75rem 1.3rem;
	font: inherit;
	font-weight: 600;
	font-size: .95rem;
	color: var(--navy-deep);
	background: var(--gold);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color var(--fast) var(--ease);
}
.search-form button:hover { background: var(--gold-light); }

.site-footer {
	background: var(--navy-deep);
	color: rgb(255 255 255 / 72%);
	padding-top: clamp(3rem, 7vw, 5rem);
	font-size: .95rem;
}
.site-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	padding-bottom: 3rem;
}
.site-footer__name {
	font-family: var(--font-serif);
	font-size: 1.3rem;
	color: #fff;
	margin-bottom: .3em;
}
.site-footer__tagline {
	font-size: .78rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 1.5em;
}
.site-footer a { color: rgb(255 255 255 / 85%); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }

.site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer__contact li { display: flex; align-items: center; gap: .6rem; }
.site-footer__contact .icon { color: var(--gold); flex: 0 0 auto; }

.site-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }

.widget__title { font-size: 1rem; color: #fff; margin-bottom: .8em; }

.site-footer__base {
	padding: 1.5rem 0;
	border-top: 1px solid rgb(255 255 255 / 10%);
	font-size: .85rem;
	color: rgb(255 255 255 / 55%);
}
.site-footer__base p { margin: 0; }

.notice-enrolled {
	display: flex;
	align-items: flex-start;
	gap: .7rem;
	margin: 1.5rem 0 0;
	padding: 1rem 1.25rem;
	background: rgb(27 127 140 / 8%);
	border: 1px solid rgb(27 127 140 / 25%);
	border-radius: var(--radius);
	color: #10515a;
	font-size: .95rem;
}
.notice-enrolled .icon { color: var(--teal); flex: 0 0 auto; margin-top: .15em; }

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

/* -------------------------------------------------------------------------
   13. Reveal on scroll

   Two mechanisms, both opacity + transform only so every frame is handled by
   the compositor and scrolling never drops below 60fps.

     a. [data-reveal]  — blocks and cards, triggered by IntersectionObserver.
     b. .pagehead      — the page title, played once on load. It is always
                         above the fold, so waiting for an observer would make
                         it arrive late.

   Distance is tuned per element: small things move a little, large things
   move more. Everything moving the same 18px is what makes a page feel
   machine-made, because nothing on a real page has equal visual weight.
   ---------------------------------------------------------------------- */

:root {
	/* One curve for all entrances. Decelerating hard at the end is what reads
	   as "settled" rather than "stopped". */
	--reveal-ease: cubic-bezier(.16, 1, .3, 1);
	--reveal-dur:  .85s;
}

[data-reveal] {
	opacity: 0;
	transform:
		translate3d(var(--reveal-x, 0), var(--reveal-y, 16px), 0)
		scale(var(--reveal-s, 1));
	transition:
		opacity   var(--reveal-dur) var(--reveal-ease) var(--reveal-d, 0s),
		transform var(--reveal-dur) var(--reveal-ease) var(--reveal-d, 0s);
	will-change: opacity, transform;
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translate3d(0, 0, 0) scale(1);
}

/* Once played: free the compositor layer, and clear the delay so later
   interactions (hover, focus) respond immediately instead of waiting. */
[data-reveal].is-done {
	will-change: auto;
	transition-delay: 0s;
}

/* Variants. The attribute value picks the character of the entrance. */
[data-reveal="fade"]  { --reveal-y: 0; }
[data-reveal="rise"]  { --reveal-y: 30px; }
[data-reveal="card"]  { --reveal-y: 26px; --reveal-s: .98; }
[data-reveal="left"]  { --reveal-x: -26px; --reveal-y: 0; }
[data-reveal="right"] { --reveal-x: 26px;  --reveal-y: 0; }

/* Cards carry more weight, so they travel further and settle a touch later. */
.grid > [data-reveal] { --reveal-y: 26px; --reveal-s: .985; }

/* No JavaScript: show everything rather than hide the site. */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---- The page title -----------------------------------------------------
   Each part arrives in reading order: breadcrumbs, eyebrow, title, text,
   meta. The gap between them is short enough to read as one movement and
   long enough to give the title the emphasis it should have.
   ------------------------------------------------------------------- */

@keyframes satia-rise {
	from { opacity: 0; transform: translate3d(0, 14px, 0); }
	to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.pagehead .crumbs,
.pagehead__eyebrow,
.pagehead__title,
.pagehead__text,
.pagehead__meta {
	animation: satia-rise .8s var(--reveal-ease) both;
}

.pagehead .crumbs    { animation-delay: .02s; }
.pagehead__eyebrow   { animation-delay: .10s; }
.pagehead__title     { animation-delay: .16s; }
.pagehead__text      { animation-delay: .30s; }
.pagehead__meta      { animation-delay: .38s; }

/* ---- Word-by-word title -------------------------------------------------
   When JavaScript has split the title into words, each word rises out from
   behind a mask instead of the whole line fading. This is the single detail
   that most separates a designed page from a templated one, so it is spent
   on the one heading that carries the page.

   .satia-word is the mask; the inner span is what moves. The padding and
   equal negative margin stop the mask clipping descenders (g, y, p) without
   changing the heading's layout.
   ------------------------------------------------------------------- */

.pagehead__title.is-split {
	animation: none;
	opacity: 1;
}

.satia-word {
	display: inline-block;
	overflow: hidden;
	vertical-align: bottom;
	padding-bottom: .14em;
	margin-bottom: -.14em;
}

.satia-word > span {
	display: inline-block;
	transform: translate3d(0, 110%, 0);
	animation: satia-word-rise .9s var(--reveal-ease) forwards;
	animation-delay: var(--reveal-d, 0s);
	will-change: transform;
}

@keyframes satia-word-rise {
	to { transform: translate3d(0, 0, 0); }
}

/* ---- Reduced motion -----------------------------------------------------
   Not "faster animation" — no animation. Someone who sets this may get
   motion sickness or migraine from movement, so the honest answer is to
   show the finished state immediately.
   ------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	[data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.pagehead .crumbs,
	.pagehead__eyebrow,
	.pagehead__title,
	.pagehead__text,
	.pagehead__meta,
	.satia-word > span {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* -------------------------------------------------------------------------
   14. Responsive
   ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.course__layout,
	.watch__layout { grid-template-columns: minmax(0, 1fr); }
	.panel--sticky { position: static; }
	.course__hero-inner { grid-template-columns: minmax(0, 1fr); }
	.course__preview { order: -1; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.nav-toggle { display: flex; }

	.nav {
		position: fixed;
		inset: var(--header-h) 0 auto;
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		padding: 1rem var(--gutter) 2rem;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-lg);
		opacity: 0;
		visibility: hidden;
		transform: translate3d(0, -12px, 0);
		transition: opacity var(--base) var(--ease), transform var(--base) var(--ease-out), visibility var(--base);
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: translate3d(0, 0, 0); }

	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__link { padding: .9rem .2rem; font-size: 1.05rem; border-radius: 0; }
	.nav__item + .nav__item { border-top: 1px solid var(--line); }
	.nav__link::after { display: none; }

	.nav__submenu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 .5rem 1rem;
		min-width: 0;
	}

	.nav__account { display: none; }
	.watch__pager { grid-template-columns: 1fr; }
	.watch__pager-link--next { text-align: left; }
	.section__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* Phones: keep the frosted look on single large surfaces (header, chat,
   locked panel) but drop it from cards. A grid of blurred layers is the one
   thing that actually drops frames on a mid-range Android. */
@media (max-width: 680px) {
	.card {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: rgb(255 255 255 / 92%);
	}
}

@media (max-width: 560px) {
	.site-footer__inner { grid-template-columns: 1fr; }
	.hero { min-height: auto; padding: 4rem 0 3.5rem; }
	.btn--lg { width: 100%; }
	.hero__actions { flex-direction: column; align-items: stretch; }
}

/* -------------------------------------------------------------------------
   15. Reduced motion and print
   ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	[data-reveal] { opacity: 1; transform: none; }
	.hero__bg { animation: none; }
	.card:hover { transform: none; }
}

/* Some people turn transparency off at OS level for legibility. Respect it. */
@media (prefers-reduced-transparency: reduce) {
	.site-header, .panel, .card, .locked__body, .watch__pager-link, .card__badge, .card__play {
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
	}
	.site-header, .panel, .card, .watch__pager-link { background: #fff !important; border-color: var(--line) !important; }
	.locked__body { background: rgb(10 29 61 / 92%) !important; }
}

@media print {
	.site-header, .site-footer, .nav, .watch__pager, .card__play { display: none !important; }
	body { color: #000; background: #fff; }
	.panel { border: 1px solid #ccc; box-shadow: none; }
}

/* -------------------------------------------------------------------------
   16. Staff login reveal (five taps on the logo)
   ---------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
   Staff login modal

   Revealed by five taps on the logo. The taps hide the form from
   visitors; they are not security. Authentication happens on the
   server, on every request, exactly as wp-login.php would do it.
   ---------------------------------------------------------------------- */

.satia-modal-open { overflow: hidden; }

.satia-login {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.satia-login__veil {
	position: absolute;
	inset: 0;
	background: rgb(5 14 30 / 55%);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .28s var(--ease);
}

.satia-login.is-open .satia-login__veil { opacity: 1; }

.satia-login__box {
	position: relative;
	width: min(400px, 100%);
	max-height: calc(100dvh - 2rem);
	overflow-y: auto;
	padding: 1.9rem 1.6rem 1.5rem;
	border-radius: var(--radius-lg);
	border: 1px solid rgb(255 255 255 / 16%);
	background: linear-gradient(165deg, rgb(18 44 86 / 92%), rgb(10 29 61 / 96%));
	-webkit-backdrop-filter: blur(22px) saturate(140%);
	backdrop-filter: blur(22px) saturate(140%);
	box-shadow:
		0 2px 8px rgb(5 14 30 / 40%),
		0 24px 70px rgb(5 14 30 / 55%),
		inset 0 1px 0 rgb(255 255 255 / 14%);
	color: #fff;
	opacity: 0;
	transform: translateY(14px) scale(.97);
	transition: opacity .32s var(--ease-out), transform .32s var(--ease-out);
}

.satia-login.is-open .satia-login__box { opacity: 1; transform: none; }

.satia-login__x {
	position: absolute;
	top: .7rem;
	right: .7rem;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: rgb(255 255 255 / 70%);
	background: rgb(255 255 255 / 8%);
	transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.satia-login__x:hover { background: rgb(255 255 255 / 18%); color: #fff; }

.satia-login__title {
	margin: 0 0 .25rem;
	font-size: 1.3rem;
	font-weight: 800;
	color: #fff;
}

.satia-login__intro {
	margin: 0 0 1.2rem;
	font-size: .88rem;
	line-height: 1.5;
	color: rgb(255 255 255 / 72%);
}

.satia-login__label {
	display: block;
	margin-bottom: .3rem;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .02em;
	color: rgb(255 255 255 / 82%);
}

.satia-login__input {
	width: 100%;
	padding: .8rem .9rem;
	margin-bottom: .9rem;
	border-radius: var(--radius-sm);
	border: 1px solid rgb(255 255 255 / 18%);
	background: rgb(255 255 255 / 8%);
	color: #fff;
	font-family: var(--font-sans);
	font-size: 1rem;              /* 16px, or iOS zooms the page on focus */
	transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.satia-login__input::placeholder { color: rgb(255 255 255 / 45%); }

.satia-login__input:focus {
	outline: none;
	border-color: var(--gold);
	background: rgb(255 255 255 / 12%);
	box-shadow: 0 0 0 3px rgb(217 164 65 / 25%);
}

/* The password field and its reveal button share one box. */
.satia-login__pass { position: relative; display: block; }
.satia-login__pass .satia-login__input { padding-right: 3rem; }

.satia-login__peek {
	position: absolute;
	top: .35rem;
	right: .4rem;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	color: rgb(255 255 255 / 65%);
	background: transparent;
	transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.satia-login__peek:hover { color: #fff; background: rgb(255 255 255 / 12%); }
.satia-login__peek.is-on { color: var(--gold); }

.satia-login__remember {
	display: flex;
	align-items: center;
	gap: .45rem;
	margin-bottom: 1.1rem;
	font-size: .85rem;
	color: rgb(255 255 255 / 78%);
	cursor: pointer;
}

.satia-login__go { width: 100%; justify-content: center; padding-block: .85rem; }

.satia-login__lost {
	display: block;
	margin-top: .9rem;
	text-align: center;
	font-size: .82rem;
	color: rgb(255 255 255 / 62%);
}

.satia-login__lost:hover { color: var(--gold-light); }

/* The one message the server sends back. Never says which field was
   wrong, so it cannot be used to discover which emails exist. */
.satia-login__error {
	margin: 0 0 .9rem;
	padding: .7rem .85rem;
	border-radius: var(--radius-sm);
	border: 1px solid rgb(255 138 128 / 45%);
	background: rgb(179 45 46 / 28%);
	color: #ffd9d6;
	font-size: .86rem;
	font-weight: 600;
}

.satia-login__error[hidden] { display: none; }

@supports not (backdrop-filter: blur(4px)) {
	.satia-login__veil { background: rgb(5 14 30 / 82%); }
	.satia-login__box { background: #0a1d3d; }
}

@media (prefers-reduced-motion: reduce) {
	.satia-login__veil,
	.satia-login__box { transition: none; }
	.satia-login__box { transform: none; }
}


/* -------------------------------------------------------------------------
   15. Offer pricing

   WooCommerce prints a sale price as <del>old</del> <ins>new</ins>. Left
   alone those inherit the browser's defaults and the two prices compete
   for attention. The old price should be legible but clearly secondary:
   present enough to show the saving, quiet enough that the price people
   actually pay is the one they read.
   ---------------------------------------------------------------------- */

/* baseline alignment is right when an old price and a new price sit side
   by side at different sizes. It is wrong for the pill itself: the text
   ends up sitting high, with more padding beneath it than above. Centre
   the pill's contents, and keep baseline alignment only between the two
   prices, where it belongs. */

.course__price,
.card__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	flex-wrap: wrap;
	line-height: 1.15;
}

/* The struck price and the offer price still line up with each other. */
:where(.course__price, .card__badge) :where(del, ins) {
	display: inline-flex;
	align-items: baseline;
}

:where(.course__price, .card__badge, .course-hero__price) del {
	opacity: .62;
	font-weight: 600;
	text-decoration: none;          /* replaced below, so the line can be thinner */
	position: relative;
}

:where(.course__price, .card__badge, .course-hero__price) del::after {
	content: "";
	position: absolute;
	left: -.08em;
	right: -.08em;
	top: 52%;
	height: 1.5px;
	background: currentColor;
	opacity: .75;
	transform: rotate(-6deg);       /* a struck price, not a crossed-out mistake */
	pointer-events: none;
}

:where(.course__price, .card__badge, .course-hero__price) del .amount { font-size: .88em; }

:where(.course__price, .card__badge, .course-hero__price) ins {
	text-decoration: none;
	font-weight: 800;
	background: none;               /* some browsers tint <ins> yellow */
	color: inherit;
}

/* ---- The "20% off" flash ---------------------------------------------- */

.save-flash {
	display: inline-flex;
	align-items: baseline;
	gap: .22em;
	padding: .3em .6em;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .01em;
	color: #fff;
	background: linear-gradient(135deg, #1b7f8c, #0f2a56);
	box-shadow:
		0 1px 2px rgb(10 29 61 / 22%),
		0 6px 16px rgb(27 127 140 / 28%);
	white-space: nowrap;
}

.save-flash__pc { font-size: .95em; }
.save-flash__word { font-weight: 700; opacity: .88; }

/* On a card the flash sits with the badge, above the cover image. */
.card__media .save-flash,
.card > .save-flash {
	position: absolute;
	top: .75rem;
	left: .75rem;
	z-index: 2;
}

/* ---- Admin-style live preview is in the plugin; this is the public side.
   Keep the two prices from wrapping apart on narrow phones. ------------ */

@media (max-width: 420px) {
	.course__price { gap: .35rem; }
	.save-flash { font-size: .66rem; }
}

/* -------------------------------------------------------------------------
   16. Pointer interactions

   A light that follows the cursor across cards and buttons, and a slight
   tilt on course cards. Both are driven by two custom properties that
   JavaScript writes (--mx, --my); everything visible here is CSS, so the
   page still works with the script absent — it simply sits still.

   Deliberately restrained. The brief for this site was "must not look
   AI-generated", and a card that tips 15 degrees and throws light around
   is exactly the tell. 4 degrees reads as depth; more reads as a toy.

   Pointer-only: fine for a mouse, meaningless under a finger, and the
   media query below keeps the work off phones entirely.
   ---------------------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) {

	.card {
		--mx: 50%;
		--my: 50%;
		transform-style: preserve-3d;
	}

	/* The light. Sits above the image, below the text, and is clipped by
	   the card's own overflow so it never bleeds past the corners. */
	.card::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
		pointer-events: none;
		opacity: 0;
		background: radial-gradient(
			320px circle at var(--mx) var(--my),
			rgb(217 164 65 / 16%),
			rgb(217 164 65 / 5%) 38%,
			transparent 68%
		);
		transition: opacity .4s var(--ease);
	}

	.card:hover::after,
	.card:focus-within::after { opacity: 1; }

	/* The tilt. --tx / --ty come from the same pointer handler and are
	   zero until it runs, so this is a no-op without JavaScript. */
	.card.is-tilting {
		transform:
			perspective(900px)
			translateY(-5px)
			rotateX(var(--ty, 0deg))
			rotateY(var(--tx, 0deg));
		transition: transform .12s linear, box-shadow var(--base) var(--ease), border-color var(--base) var(--ease);
	}

	/* Leaving: hand the transform back to the slower curve so the card
	   settles rather than snapping flat. */
	.card:not(.is-tilting) {
		transition: transform var(--base) var(--ease-out), box-shadow var(--base) var(--ease), border-color var(--base) var(--ease);
	}

	/* ---- Buttons ------------------------------------------------------
	   A soft highlight that tracks the cursor across the face of the
	   button. No movement, so it cannot make a button harder to click.
	   ---------------------------------------------------------------- */

	.btn {
		--mx: 50%;
		--my: 50%;
		position: relative;
		overflow: hidden;
		isolation: isolate;
	}

	.btn::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		pointer-events: none;
		opacity: 0;
		background: radial-gradient(
			120px circle at var(--mx) var(--my),
			rgb(255 255 255 / 30%),
			transparent 70%
		);
		transition: opacity .3s var(--ease);
	}

	.btn:hover::after { opacity: 1; }

	/* On the gold button white would wash it out; warm it instead. */
	.btn--gold::after {
		background: radial-gradient(
			120px circle at var(--mx) var(--my),
			rgb(255 255 255 / 55%),
			transparent 70%
		);
	}
}

/* Someone who has asked for less motion gets the light but not the tilt:
   a glow that does not move the layout is not what that setting is about. */
@media (prefers-reduced-motion: reduce) {
	.card.is-tilting { transform: translateY(-5px); transition: none; }
}

/* -------------------------------------------------------------------------
   17. Curriculum rows

   Each lesson is a <details>. The number on the left becomes a play
   triangle when the row can be watched, which tells you the state
   without a legend.
   ---------------------------------------------------------------------- */

.lesson-row { border-radius: var(--radius-sm); }

.lesson-row__head {
	display: flex;
	align-items: center;
	gap: .7rem;
	width: 100%;
	padding: .7rem .6rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	color: inherit;
	text-decoration: none;
	list-style: none;                 /* kill the default disclosure marker */
	transition: background-color var(--fast) var(--ease);
	-webkit-tap-highlight-color: transparent;
}

.lesson-row__head::-webkit-details-marker { display: none; }

.lesson-row__head:hover,
.lesson-row__head:focus-visible { background: rgb(15 42 86 / 5%); }

.lesson-row__head:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: -2px;
}

/* The number badge. On a watchable lesson it turns into a play mark on
   hover: the same square, so nothing moves. */
.lesson-list__n {
	position: relative;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	font-size: .76rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--navy);
	background: rgb(15 42 86 / 8%);
	transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.lesson-list__item:not(.is-locked) .lesson-row__head:hover .lesson-list__n {
	color: var(--navy-deep);
	background: var(--gold);
}

.lesson-list__item.is-locked .lesson-list__n { opacity: .55; }

.lesson-list__title { flex: 1 1 auto; font-weight: 600; }
.lesson-list__dur {
	flex: 0 0 auto;
	font-size: .78rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.lesson-list__lock { flex: 0 0 auto; color: var(--muted); display: inline-flex; }

/* The chevron. Rotates rather than swapping icon, so it reads as the
   same object turning. */
.lesson-row__chev {
	flex: 0 0 auto;
	display: inline-flex;
	color: var(--muted);
	transition: transform var(--base) var(--ease-out), color var(--fast) var(--ease);
}

.lesson-row.is-open .lesson-row__chev { transform: rotate(180deg); color: var(--gold-deep); }
.lesson-row__head:hover .lesson-row__chev { color: var(--navy); }

/* The body. Height is animated by script; padding lives on the inner
   element so it is not fighting the height transition. */
.lesson-row__body { overflow: hidden; }

.lesson-row__inner {
	padding: .15rem .6rem 1rem 3rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .6rem;
}

.lesson-row__text {
	margin: 0;
	font-size: .9rem;
	line-height: 1.6;
	color: var(--muted);
}

.lesson-row__note {
	margin: 0;
	font-size: .82rem;
	font-weight: 600;
	color: var(--muted);
}

.lesson-row__go {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .45rem .85rem;
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--navy-deep);
	background: rgb(217 164 65 / 18%);
	transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.lesson-row__go:hover {
	background: var(--gold);
	transform: translateX(2px);
}

/* ---- Phones -----------------------------------------------------------
   Rows need a bigger touch target, and the duration is the first thing
   that can go when the title needs the width.
   ------------------------------------------------------------------- */

@media (max-width: 480px) {
	.lesson-row__head { padding: .8rem .45rem; gap: .55rem; min-height: 48px; }
	.lesson-row__inner { padding-left: 2.5rem; }
	.lesson-list__title { font-size: .92rem; }
	.lesson-list__dur { font-size: .72rem; }
}

/* -------------------------------------------------------------------------
   18. Buying

   The state between pressing Enrol and the cart appearing. On a slow
   connection that gap is where people tap twice.
   ---------------------------------------------------------------------- */

.btn.is-busy {
	pointer-events: none;
	position: relative;
	color: transparent !important;    /* the label goes, the spinner arrives */
}

.btn.is-busy > * { opacity: 0; }

.btn.is-busy::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid currentColor;
	border-top-color: transparent;
	color: var(--navy-deep);
	animation: satia-spin .7s linear infinite;
}

.btn--ghost.is-busy::before,
.btn--navy.is-busy::before { color: #fff; }

@keyframes satia-spin { to { transform: rotate(360deg); } }

/* Reduced motion: a pulse rather than a spin, so there is still a sign
   that something is happening. */
@media (prefers-reduced-motion: reduce) {
	.btn.is-busy::before {
		animation: satia-fade 1s ease-in-out infinite alternate;
		border-top-color: currentColor;
	}
	@keyframes satia-fade { to { opacity: .3; } }
}

/* The enrol button is the one that earns money: give it a little more
   presence than the rest without changing the brand. */
.btn--block {
	display: flex;
	width: 100%;
	justify-content: center;
	padding-block: .95rem;
	font-size: 1rem;
}

.panel .btn--block { margin-top: 1rem; }

/* A quiet reassurance line under the enrol button carries more weight
   than another animation. */
.buy-note {
	margin: .6rem 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	font-size: .78rem;
	font-weight: 600;
	color: var(--muted);
	text-align: center;
}

.buy-note .icon { flex: 0 0 auto; color: var(--teal); }


/* ---- Brand on smaller screens -----------------------------------------
   The tagline is the first thing to go, then the name. The mark alone
   is still a link home, which is the convention everywhere.
   -------------------------------------------------------------------- */

@media (max-width: 900px) {
	.brand--has-mark .brand__tagline { display: none; }
	.brand__name { font-size: 1.08rem; }
}

@media (max-width: 560px) {
	.brand { gap: .55rem; }
	.brand__mark { width: 38px; height: 38px; border-radius: 10px; }

	.brand--has-mark .brand__name {
		font-size: .98rem;
		/* Long names stay on one line rather than pushing the menu
		   button off the edge. */
		display: block;
		max-width: 46vw;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.brand__mark,
	.brand:hover .brand__mark { transition: none; transform: none; }
}

/* -------------------------------------------------------------------------
   19. Parallax and page entrance

   Parallax is done with scroll-driven animation, which runs on the
   compositor rather than on a scroll listener. The difference matters:
   a JavaScript scroll handler moving an element has to run, lay out and
   paint inside one frame, and on a mid-range Android phone it very
   often does not. This version has no JavaScript in the loop at all.

   Applied only to page-header artwork, never to text or to anything
   that must stay next to something else.
   ---------------------------------------------------------------------- */

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) and (min-width: 721px) {

		/* The glow behind a page title drifts slower than the page, which
		   gives the header depth without moving anything readable. */
		.pagehead__glow {
			animation: satia-drift linear both;
			animation-timeline: view();
			animation-range: entry 0% exit 100%;
		}

		/* Parallax is NOT applied to course or programme artwork. Those
		   are posters shown whole; any drift or zoom would crop them. */
	}
}

@keyframes satia-drift {
	from { transform: translate3d(0, -6%, 0); }
	to   { transform: translate3d(0, 6%, 0); }
}

/* A card's hover zoom and the parallax would fight over transform, so
   the hover wins while the pointer is on it. */


/* ---- Page entrance -------------------------------------------------------
   Not a "page transition" in the single-page-app sense: WordPress does a
   real navigation, and intercepting that would break the Back button,
   bookmarking and middle-click, which is a bad trade for a crossfade.

   What this does is remove the harsher half of a normal page load - the
   flash of a page arriving at full contrast all at once - by bringing
   the main content up over 320ms. Nothing is delayed waiting for it:
   the content is on screen from the first frame, at reduced opacity.
   ------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	.site-main {
		animation: satia-page-in .32s var(--ease-out) both;
	}

	/* The landing page runs its own scene system and must not be faded
	   on top of it. */
	.home .site-main { animation: none; }
}

@keyframes satia-page-in {
	from { opacity: 0; transform: translate3d(0, 6px, 0); }
	to   { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------------
   Phones and low-power devices

   Parallax is switched off below 720px entirely. On a mid-range Android
   it is the kind of continuous work that turns smooth scrolling into
   stutter, and on a small screen the effect is barely visible anyway.
   ---------------------------------------------------------------------- */

@media (max-width: 720px) {
	.pagehead__glow { animation: none !important; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.site-main,
	.pagehead__glow { animation: none !important; transform: none; }
}

/* -------------------------------------------------------------------------
   The Admin button

   Quiet by design. It sits in the header for testing and for showing the
   site, so it must be reachable but must never compete with "Book a
   session", which is the button that matters to a visitor.
   ---------------------------------------------------------------------- */

.nav__admin {
	--btn-fg: var(--muted);
	gap: .4rem;
	padding-inline: .9rem;
	color: var(--muted);
	border-color: rgb(15 42 86 / 18%);
	background: rgb(15 42 86 / 4%);
	box-shadow: none;
}

.nav__admin:hover,
.nav__admin:focus-visible {
	color: var(--navy);
	border-color: rgb(217 164 65 / 60%);
	background: rgb(217 164 65 / 12%);
}

.nav__admin svg { flex: 0 0 auto; }

/* Below the point where the bar gets tight, the padlock carries it on
   its own -- the same treatment the booking button gets. */
@media (max-width: 1180px) {
	.nav__admin span { display: none; }
	.nav__admin {
		width: 38px;
		height: 38px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}
}

/* Kept on phones too -- the site will be demonstrated on one. It stays
   as the padlock only, which fits beside the menu button. */
@media (max-width: 720px) {
	.nav__admin { width: 36px; height: 36px; }
}

/* -------------------------------------------------------------------------
   20. Small screens: a second pass
   ------------------------------------------------------------------------
   The hero background is a 16:9 photograph shown with background-size:
   cover. On a wide screen that crops a little off the top and bottom. In
   a phone-width box it crops most of the width away instead, and the slow
   drift -- which scales to 1.12 -- turns that into a close-up. Below the
   tablet breakpoint the drift is switched off and the box is made less
   tall, so more of the picture survives.
   ---------------------------------------------------------------------- */

@media (max-width: 860px) {
	.hero {
		min-height: clamp(360px, 56vh, 520px);
		padding: 3.5rem 0 3rem;
	}

	/* No drift, and no residual scale from it. */
	.hero__bg {
		animation: none;
		transform: none;
		background-position: center 28%;
	}

	/* The photograph loses its left-to-right gradient when the text sits
	   over the middle of it rather than the left. */
	.hero__veil {
		background:
			linear-gradient(to bottom, rgb(10 29 61 / 72%) 0%, rgb(10 29 61 / 82%) 100%);
	}

	.hero__title { text-wrap: balance; }
}

@media (max-width: 560px) {
	.hero {
		min-height: clamp(320px, 48vh, 440px);
	}

	.hero__bg { background-position: center 25%; }
}

/* Nothing should be able to push the page sideways. A long word, an
   unbroken URL in a description, or a wide embed are the usual causes,
   and the symptom is the whole site scrolling horizontally. */
@media (max-width: 860px) {
	.hero__title,
	.section__title,
	.card__title,
	.course__title,
	.lesson__title {
		overflow-wrap: break-word;
		hyphens: auto;
	}

	p, li, dd, .card__excerpt, .course__summary {
		overflow-wrap: break-word;
	}

	/* Anything that arrived as pasted HTML: images, iframes, tables. */
	.entry-content img,
	.course__body img,
	.lesson__body img {
		max-width: 100%;
		height: auto;
	}

	.entry-content iframe,
	.course__body iframe,
	.lesson__body iframe {
		max-width: 100%;
	}

	.entry-content table,
	.course__body table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Touch targets. A 44px minimum is the size a fingertip actually hits;
   below that people miss and blame the site. */
@media (max-width: 860px) and (pointer: coarse) {
	.nav__link,
	.card__link,
	.btn,
	.pager__link,
	.watch__pager-link {
		min-height: 44px;
	}

	.btn--sm { min-height: 40px; }
}

/* -------------------------------------------------------------------------
   21. Purchase panel on small screens
   ------------------------------------------------------------------------
   The locked panel carries a lock, a heading, a sentence, a price, a
   button and a note. On a phone that is a tall stack, and it has to be
   readable without anything falling off the edge.
   ---------------------------------------------------------------------- */

@media (max-width: 680px) {
	.locked,
	.msat-locked {
		min-height: 0;
		padding: 1.25rem 1rem;
	}

	.locked__body {
		width: 100%;
		max-width: none;
		padding: 1.5rem 1.25rem;
	}

	.locked__icon {
		width: 48px;
		height: 48px;
		margin-bottom: 1rem;
	}

	.locked__title { font-size: 1.3rem; }

	.locked__text {
		font-size: .95rem;
		margin-bottom: 1.1rem;
	}

	.locked__price {
		font-size: 1.5rem;
		margin-bottom: 1rem;
	}

	/* A full-width button is easier to hit and cannot overflow. */
	.locked__body .btn {
		width: 100%;
		justify-content: center;
	}

	.locked__note { font-size: .82rem; }
}

/* The blurred backdrop is decoration. On a phone it costs more than it
   gives, and backdrop-filter on a tall panel is where cheaper Android
   devices start to stutter. */
@media (max-width: 680px) {
	.locked__body {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: rgb(10 29 61 / 88%);
	}

	.locked__bg {
		filter: blur(10px) saturate(110%);
		transform: none;
		opacity: .22;
	}
}

/* -------------------------------------------------------------------------
   22. The hero without a photograph
   ------------------------------------------------------------------------
   A video thumbnail with text burned into it was being stretched across
   the hero. Cropped to a phone it showed the middle of somebody else's
   caption, and no amount of positioning fixes a picture that already has
   words in it. So the default is no photograph at all.

   What is left has to look chosen rather than unfinished: a deeper
   gradient, a warm glow where the eye lands first, and the same gold
   hairline that runs along the foot of every other navy band.
   ---------------------------------------------------------------------- */

.has-plain-hero .scene--hero {
	background:
		radial-gradient(120% 95% at 18% 8%, #16407f 0%, transparent 62%),
		radial-gradient(90% 70% at 88% 92%, #0d2d63 0%, transparent 58%),
		linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 56%, #061228 100%);
}

.has-plain-hero .scene--hero .scene__glow {
	opacity: .9;
}

/* A faint gold wash behind the heading, so the type sits on something. */
.has-plain-hero .scene--hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(60% 50% at 20% 38%, rgb(217 164 65 / 9%) 0%, transparent 70%);
}

.has-plain-hero .scene--hero .scene__inner {
	position: relative;
	z-index: 1;
}
