/*
Theme Name: Physique Science
Author: BlckPanda Creative
Author URI: https://blckpanda.com
Theme URI: https://physiquescience.co.za/
Description: Custom theme for Physique Science, personalised lifestyle and wellbeing coaching with Stefan Wait.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: physique-science
*/

:root {
	--ink: #0e2427;
	--ink-2: #143236;
	--ink-3: #1f4549;
	--paper: #f7f3ec;
	--white: #fffdf9;
	--sand: #eee6d8;
	--sand-2: #e2d6c2;
	--text: #1c2b2d;
	--muted: #586664;
	--on-dark: #e9efe9;
	--on-dark-muted: #a9bcb9;
	--line: rgba(14, 36, 39, 0.12);
	--line-dark: rgba(233, 239, 233, 0.14);
	--teal: #1b6a6f;
	--cyan: #55e2ea;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1200px;
	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(14, 36, 39, 0.05), 0 12px 32px -12px rgba(14, 36, 39, 0.18);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 0.6em; color: inherit; font-variation-settings: "opsz" 96; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cyan); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }

/* Type ------------------------------------------------------------------ */
.eyebrow {
	font-family: var(--sans);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--teal);
	margin-bottom: 1.1rem;
	display: flex;
	align-items: center;
	gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.display-1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.04; letter-spacing: -0.02em; font-weight: 350; }
.display-2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; letter-spacing: -0.015em; font-weight: 350; }
.display-1 em, .display-2 em { font-style: italic; font-weight: 300; color: var(--teal); }
.lead { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; color: var(--ink); font-weight: 350; }

/* Buttons --------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 26px; border-radius: 999px;
	font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
	text-decoration: none; text-align: center; border: 1px solid transparent; cursor: pointer;
	transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--cyan); color: var(--ink); }
.btn-accent:hover { background: #8beef3; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-3); color: var(--white); }
.btn-ghost-light { border-color: rgba(233, 239, 233, 0.4); color: var(--on-dark); }
.btn-ghost-light:hover { border-color: var(--on-dark); color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--teal); }
.text-link .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* Header ---------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(14, 36, 39, 0.96);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.brand img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; list-style: none; gap: 28px; }
.site-nav .menu a {
	color: var(--on-dark); text-decoration: none; font-size: 0.94rem; font-weight: 500;
	padding: 6px 0; position: relative;
}
.site-nav .menu a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.site-nav .menu a:hover::after, .site-nav .current-menu-item > a::after, .site-nav .current_page_item > a::after, .site-nav .current_page_parent > a::after { transform: scaleX(1); }
.site-nav .menu a:hover { color: var(--white); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
	.header-inner { height: 68px; }
	.brand img { height: 38px; }
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 12px;
		background: transparent; cursor: pointer; position: relative; z-index: 60;
	}
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
		display: block; width: 18px; height: 1.5px; background: var(--on-dark); position: relative; transition: transform 0.3s var(--ease), background 0.2s;
	}
	.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle-bars::before { top: -6px; }
	.nav-toggle-bars::after { top: 6px; }
	.nav-open .nav-toggle-bars { background: transparent; }
	.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
	.site-nav {
		position: fixed; inset: 68px 0 auto 0; height: calc(100dvh - 68px);
		background: var(--ink); flex-direction: column; align-items: stretch; justify-content: flex-start;
		padding: 24px 24px 40px; gap: 24px;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
	}
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; font-family: var(--serif); font-size: 1.6rem; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
	.site-nav .menu a::after { display: none; }
	.nav-cta { padding: 15px 24px; font-size: 1rem; }
}

/* Sections -------------------------------------------------------------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark .eyebrow { color: var(--cyan); }
.section-dark .display-2 em { color: var(--cyan); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head-split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head-split > p { max-width: 380px; color: var(--muted); margin: 0; }
.section-head .display-2 { margin-bottom: 0; }
.center-link { text-align: center; margin: 48px 0 0; }

/* Hero ------------------------------------------------------------------ */
.hero {
	position: relative; min-height: min(92vh, 860px);
	display: flex; flex-direction: column; justify-content: flex-end;
	background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; animation: hero-zoom 18s var(--ease) both; }
.hero-media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(14, 36, 39, 0.94) 0%, rgba(14, 36, 39, 0.78) 38%, rgba(14, 36, 39, 0.2) 75%, rgba(14, 36, 39, 0.35) 100%),
		linear-gradient(0deg, rgba(14, 36, 39, 0.9) 0%, rgba(14, 36, 39, 0) 40%);
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-inner { padding-top: 120px; padding-bottom: 72px; }
.hero .eyebrow { color: var(--cyan); }
.hero .display-1 { max-width: 13ch; margin-bottom: 0.4em; }
.hero .display-1 em { color: var(--cyan); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--on-dark-muted); letter-spacing: 0.02em; margin: 0; }
.hero-strip { border-top: 1px solid var(--line-dark); background: rgba(14, 36, 39, 0.55); }
.hero-strip-inner { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-top: 18px; padding-bottom: 18px; font-size: 0.92rem; color: var(--on-dark-muted); }
.hero-strip-inner span { display: inline-flex; align-items: center; gap: 10px; }
.hero-strip .icon { color: var(--cyan); width: 18px; height: 18px; }
.hero .eyebrow, .hero .display-1, .hero-sub, .hero .btn-row { animation: rise 1s var(--ease) both; }
.hero .display-1 { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.2s; }
.hero .btn-row { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Intro + pillars ------------------------------------------------------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-grid .display-2 { position: sticky; top: 120px; }
.pillars { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(56px, 8vw, 96px); }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center; background: var(--sand); color: var(--teal); margin-bottom: 20px; }
.pillar h3 { font-size: 1.4rem; margin-bottom: 0.4em; }
.pillar p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* Prose ----------------------------------------------------------------- */
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 2em; letter-spacing: -0.01em; }
.prose h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 24px; border-left: 2px solid var(--cyan); }
.prose blockquote p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--ink); font-style: italic; }
.prose .sign-off { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--teal); border-top: 1px solid var(--line); padding-top: 1.4em; margin-top: 2em; }

/* Letter ---------------------------------------------------------------- */
.letter-section { background: var(--white); }
.letter-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
.letter-portrait { position: sticky; top: 112px; margin: 0; }
.letter-portrait img { width: 100%; aspect-ratio: 963 / 1632; object-fit: cover; object-position: center top; border-radius: var(--radius); }
.letter-portrait figcaption {
	position: absolute; left: 20px; bottom: 20px; right: auto; max-width: min(280px, 56%);
	background: var(--ink); color: var(--on-dark); border-radius: var(--radius-sm); padding: 18px 20px;
	display: flex; align-items: center; gap: 16px; font-size: 0.9rem; line-height: 1.4;
}
.letter-portrait .stat { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--cyan); }
.letter-body .display-2 { margin-bottom: 1em; }
.letter-text p { color: #2f3d3e; }
.letter-text .lead { color: var(--ink); }
.pull-quote { margin: 2.2em 0 !important; padding: 28px 0 28px 28px !important; border-left: 2px solid var(--cyan) !important; }
.pull-quote p { font-size: clamp(1.6rem, 3vw, 2.2rem) !important; font-style: italic; margin: 0; color: var(--teal) !important; }
.signature { margin-top: 2.2em; padding-top: 1.6em; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.signature-name { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--ink); line-height: 1.2; }
.signature-role { color: var(--muted); font-size: 0.92rem; }

/* Qualifications -------------------------------------------------------- */
.quals-list { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.qual { background: var(--ink); padding: 32px 24px 30px; display: flex; flex-direction: column; gap: 10px; transition: background-color 0.4s; }
.qual:hover { background: var(--ink-2); }
.qual-num { font-family: var(--serif); color: var(--cyan); font-size: 1.1rem; margin-bottom: 18px; }
.qual-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; color: var(--white); }
.qual-org { font-size: 0.88rem; color: var(--on-dark-muted); }

/* Programmes ------------------------------------------------------------ */
.programme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.programme {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 36px 32px; display: flex; flex-direction: column; gap: 4px;
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.programme:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.programme-featured { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.programme-num { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.programme-featured .programme-num { color: var(--cyan); }
.badge { background: var(--cyan); color: var(--ink); border-radius: 999px; padding: 1px 10px; font-size: 0.7rem; letter-spacing: 0.08em; }
.programme-name { font-size: 1.75rem; margin-bottom: 0.5em; min-height: 2.3em; }
.programme-price { margin: 0 0 1em; display: flex; align-items: baseline; gap: 8px; padding-bottom: 1.2em; border-bottom: 1px solid var(--line); }
.programme-featured .programme-price { border-color: var(--line-dark); }
.programme-price .amount { font-family: var(--serif); font-size: 2.8rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.programme-featured .programme-price .amount { color: var(--white); }
.programme-price .per { color: var(--muted); font-size: 0.95rem; }
.programme-featured .programme-price .per { color: var(--on-dark-muted); }
.programme-summary { color: var(--muted); font-size: 0.98rem; flex-grow: 1; }
.programme-featured .programme-summary { color: var(--on-dark-muted); }
.programme-featured .text-link { color: var(--cyan); }
.programme-grid-full .programme-summary { flex-grow: 0; margin-bottom: 1.4em; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; flex-grow: 1; }
.checklist li { display: flex; gap: 12px; font-size: 0.96rem; line-height: 1.5; }
.checklist .icon { width: 20px; height: 20px; color: var(--teal); margin-top: 1px; }
.programme-featured .checklist .icon { color: var(--cyan); }
.programme-featured .checklist li { color: var(--on-dark); }

.custom-programme {
	margin-top: 32px; background: var(--ink); color: var(--on-dark); border-radius: var(--radius);
	padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
	position: relative; overflow: hidden; isolation: isolate;
}
.custom-programme::before {
	content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%;
	background: radial-gradient(circle, rgba(85, 226, 234, 0.16) 0%, rgba(85, 226, 234, 0) 65%);
}
.custom-programme .eyebrow { color: var(--cyan); }
.custom-programme .display-2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.5em; }
.custom-programme .display-2 em { color: var(--cyan); }
.custom-programme-text p:last-child { color: var(--on-dark-muted); margin: 0; max-width: 560px; }
.custom-programme-actions { display: flex; flex-direction: column; gap: 12px; }
.custom-programme-actions .icon { width: 18px; height: 18px; }
@media (max-width: 960px) {
	.custom-programme { grid-template-columns: 1fr; max-width: 620px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
	.custom-programme-actions .btn { width: 100%; }
}
.included-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.included-grid li { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.included-grid .icon { width: 28px; height: 28px; color: var(--teal); background: var(--sand); border-radius: 50%; padding: 5px; margin-bottom: 16px; }
.included-grid h3 { font-size: 1.3rem; margin-bottom: 0.3em; }
.included-grid p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Page heroes ----------------------------------------------------------- */
.page-hero { background: var(--ink); color: var(--on-dark); padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.page-hero::before {
	content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -260px; border-radius: 50%;
	background: radial-gradient(circle, rgba(85, 226, 234, 0.16) 0%, rgba(85, 226, 234, 0) 65%); pointer-events: none;
}
.page-hero .eyebrow { color: var(--cyan); }
.page-hero .display-1 em { color: var(--cyan); }
.page-hero-narrow { max-width: 920px; margin-left: 0; margin-right: auto; }
.page-hero-narrow.wrap { margin-left: auto; max-width: var(--wrap); }
.page-hero-narrow > * { max-width: 860px; }
.page-hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--on-dark-muted); max-width: 640px; margin: 0; }
.page-hero-tall { min-height: 70vh; display: flex; align-items: center; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.page-hero-photo { margin: 0; }
.page-hero-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Approach -------------------------------------------------------------- */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.approach-item { border-top: 1px solid var(--sand-2); padding-top: 28px; }
.approach-num { font-family: var(--serif); color: var(--teal); font-size: 1.1rem; display: block; margin-bottom: 18px; }
.approach-item h3 { font-size: 1.8rem; }
.approach-item p { color: var(--muted); margin: 0; }

/* Posts ----------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-grid-2 { grid-template-columns: repeat(2, 1fr); }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand-2); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card-body > p:not(.post-meta) { color: var(--muted); font-size: 0.96rem; flex-grow: 1; }
.post-meta { display: flex; gap: 14px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.post-meta span + span { color: var(--muted); }
.post-card-title { font-size: 1.5rem; line-height: 1.2; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--teal); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--paper); }

/* Article --------------------------------------------------------------- */
.article-hero { background: var(--ink); color: var(--on-dark); padding: clamp(56px, 8vw, 96px) 0 clamp(120px, 14vw, 170px); }
.article-hero .eyebrow { color: var(--cyan); }
.article-narrow { max-width: 780px; }
.article-title { font-size: clamp(2.2rem, 5vw, 4rem); }
.article-meta { color: var(--on-dark-muted); font-size: 0.95rem; margin: 0; }
.back-link { display: inline-block; color: var(--on-dark-muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 32px; }
.back-link:hover { color: var(--cyan); }
.article-image { margin: calc(-1 * clamp(90px, 11vw, 130px)) auto 0; max-width: 1000px; }
.article-image img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-body { padding-top: clamp(48px, 7vw, 80px); padding-bottom: 24px; font-size: 1.1rem; }
.article-body > p:first-child { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.55rem); line-height: 1.5; color: var(--ink); font-weight: 350; }
.author-box { display: flex; gap: 22px; align-items: flex-start; margin-top: 40px; margin-bottom: clamp(72px, 10vw, 112px); padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.author-name { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); margin-bottom: 4px; }
.author-box p { color: var(--muted); font-size: 0.96rem; margin-bottom: 10px; }

/* Contact --------------------------------------------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 980px; }
.contact-card {
	display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink);
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); color: var(--ink); }
.contact-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--sand); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.contact-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.25; word-break: break-word; }
.contact-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: 0.95rem; color: var(--teal); }
.contact-action .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.contact-card:hover .contact-action .icon { transform: translateX(4px); }
.contact-note { margin: 32px 0 0; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.contact-note .icon { color: var(--teal); }
@media (max-width: 640px) { .contact-cards { grid-template-columns: 1fr; } }

/* CTA band -------------------------------------------------------------- */
.cta-band { background: var(--ink); color: var(--on-dark); padding: clamp(80px, 11vw, 140px) 0; position: relative; overflow: hidden; }
.cta-band::before {
	content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%;
	background: radial-gradient(circle, rgba(85, 226, 234, 0.12) 0%, rgba(85, 226, 234, 0) 60%); pointer-events: none;
}
.cta-inner { position: relative; text-align: center; max-width: 860px; }
.section-dark + .cta-band { padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line-dark); }
.cta-inner .eyebrow { color: var(--cyan); justify-content: center; }
.cta-inner .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.cta-inner .display-2 em { color: var(--cyan); }
.cta-copy { color: var(--on-dark-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.cta-inner .btn-row { justify-content: center; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: #0a1b1d; color: var(--on-dark-muted); padding: 80px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 40px; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 20px; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--on-dark); margin-bottom: 0.6em; }
.footer-brand p:last-child { max-width: 340px; }
.footer-title { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 18px; }
.footer-links, .site-footer .menu { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-contact li { display: flex; gap: 12px; align-items: center; }
.footer-contact .icon { color: var(--cyan); width: 18px; height: 18px; }
.footer-contact a { word-break: break-word; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; font-size: 0.85rem; position: relative; }
.footer-base::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: var(--line-dark); }
.footer-base p { margin: 0; }

/* Reveal ---------------------------------------------------------------- */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.programme-grid .reveal:nth-child(2), .post-grid .reveal:nth-child(2), .pillars .reveal:nth-child(2), .approach-grid .reveal:nth-child(2), .included-grid .reveal:nth-child(2), .quals-list .reveal:nth-child(2) { transition-delay: 0.08s; }
.programme-grid .reveal:nth-child(3), .post-grid .reveal:nth-child(3), .pillars .reveal:nth-child(3), .approach-grid .reveal:nth-child(3), .included-grid .reveal:nth-child(3), .quals-list .reveal:nth-child(3) { transition-delay: 0.16s; }
.pillars .reveal:nth-child(4), .included-grid .reveal:nth-child(4), .quals-list .reveal:nth-child(4) { transition-delay: 0.24s; }
.quals-list .reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
	.quals-list { grid-template-columns: repeat(3, 1fr); }
	.pillars, .included-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.programme-grid, .post-grid { grid-template-columns: 1fr; max-width: 620px; margin-left: auto; margin-right: auto; }
	.programme-name { min-height: 0; }
	.intro-grid, .letter-grid, .contact-grid, .page-hero-grid { grid-template-columns: 1fr; }
	.intro-grid .display-2 { position: static; }
	.letter-portrait { position: relative; top: auto; max-width: 460px; }
	.approach-grid { grid-template-columns: 1fr; }
	.post-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 1rem; }
	.wrap { padding-left: 16px; padding-right: 16px; }
	.hero { min-height: 88vh; }
	.hero-media img { object-position: 70% 40%; }
	.hero-media::after { background: linear-gradient(0deg, rgba(14, 36, 39, 0.96) 10%, rgba(14, 36, 39, 0.55) 60%, rgba(14, 36, 39, 0.4) 100%); }
	.hero-inner { padding-bottom: 48px; }
	.btn-row .btn { width: 100%; }
	.pillars, .included-grid, .quals-list { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; }
	.contact-form .btn { width: 100%; }
	.footer-grid { grid-template-columns: 1fr; }
	.author-box { flex-direction: column; }
	.programme { padding: 30px 22px; }
	.letter-portrait figcaption { left: 12px; bottom: 12px; padding: 14px 16px; gap: 12px; }
	.letter-portrait .stat { font-size: 2.1rem; }
	.footer-base::before { left: 16px; right: 16px; }
}
