/*
Theme Name: Iris Fynn
Theme URI: https://iristherivergirl.com
Description: Custom theme for Iris Fynn, The RiverGirl. "HumanKind. Be Both." direction: river browns, cream and growth greens. All content is managed with Advanced Custom Fields.
Version: 0.1.0
Requires at least: 6.3
Requires PHP: 8.0
License: All rights reserved
Text Domain: iris
*/

/*
 * Locked brand choices from Iris (Option B), not defaults:
 * the river browns / cream / greens / clay palette, Fraunces + DM Sans,
 * the italic "Be Both." accent and the river motif.
 * avoid-ai-design-ignore-file: SD1
 */

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	/* River browns, cream and growth greens */
	--c-cream: #f6f1e9;
	--c-paper: #fffcf7;
	--c-sand: #ebe1d2;
	--c-sand-deep: #d8c9b3;
	--c-line: #dcd0bf;
	--c-ink: #2a201b;
	--c-ink-soft: #5e5148;
	--c-brown: #33241d;
	--c-clay: #a8714a;
	--c-clay-text: #8a5634;
	--c-forest: #2d4634;
	--c-forest-deep: #22372a;
	--c-growth: #5a7a4e;
	--c-sage: #c7d3b5;
	--c-on-forest: #e6eadf;

	--font-heading: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--container: 1180px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--radius: 18px;
	--header-h: 4.5rem;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--shadow-soft: 0 24px 50px -28px rgba(42, 32, 27, 0.4);
}

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

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

/*
 * Smooth in-page scrolling (turned off for reduced motion below), stopping
 * short of the sticky header so section headings are never hidden by it.
 */
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

/* Logged-in editors also have the WordPress admin bar above the header. */
html:has(body.admin-bar) {
	scroll-padding-top: calc(var(--header-h) + 32px + 1.5rem);
}

@media (max-width: 782px) {
	html:has(body.admin-bar) {
		scroll-padding-top: calc(var(--header-h) + 46px + 1.5rem);
	}
}

@media (max-width: 600px) {
	html:has(body.admin-bar) {
		scroll-padding-top: calc(var(--header-h) + 1.5rem);
	}
}

body {
	margin: 0;
	background: var(--c-cream);
	color: var(--c-ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

img {
	height: auto;
}

a {
	color: inherit;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

p,
figure,
blockquote {
	margin: 0;
}

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

[hidden] {
	display: none !important;
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--c-forest);
	color: var(--c-cream);
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ==========================================================================
   Shared components
   ========================================================================== */

/* Small labels: sentence case in the body face, no tracked capitals. */
.eyebrow {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--c-clay-text);
}

.section-title {
	font-size: clamp(2.3rem, 3.4vw + 1rem, 4.1rem);
	line-height: 0.98;
	letter-spacing: -0.02em;
}

/*
 * The italic accent belongs to the brand line "Be Both." only. Headings are
 * otherwise set as one phrase; iris_brand_text() wraps "Be Both." wherever
 * it appears. On dark grounds the accent turns sage for contrast.
 */
.brand-accent {
	font-style: italic;
	color: var(--c-growth);
}

.talks .brand-accent,
.book .brand-accent,
.watch .brand-accent {
	color: var(--c-sage);
}

.talks__tab .brand-accent {
	color: inherit;
}

.talk .brand-accent {
	color: var(--c-growth);
}

/* Placeholders (e.g. "[X]") are only rendered for logged-in editors. */
.is-placeholder {
	outline: 1px dashed currentColor;
	outline-offset: 3px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 3rem;
	padding: 0.8rem 1.6rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.button--primary {
	background: var(--c-forest);
	color: var(--c-cream);
}

.button--primary:hover {
	background: var(--c-forest-deep);
}

.button--ghost {
	border-color: var(--c-sand-deep);
	color: var(--c-ink);
}

.button--ghost:hover {
	border-color: var(--c-ink);
}

.button--small {
	min-height: 2.5rem;
	padding: 0.55rem 1.15rem;
	font-size: 0.85rem;
}

/* ==========================================================================
   Header and navigation
   ========================================================================== */

/*
 * Sticky header. At the top of the page it sits on the page colour; once
 * the page scrolls (or the mobile menu opens) it gains a light paper
 * background and a hairline border. No blur or glass. main.js sets
 * .is-scrolled when the sentinel below leaves the viewport.
 */
.scroll-sentinel {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 12px;
	pointer-events: none;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-menu-open {
	background-color: var(--c-paper);
	border-bottom-color: var(--c-line);
	box-shadow: 0 12px 30px -26px rgba(42, 32, 27, 0.5);
}

/* Stay below the WordPress admin bar for logged-in editors. */
.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

/* Under 600px the admin bar scrolls away with the page. */
@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--header-h);
}

/* Left: the round river mark (from Option B) and the name in Fraunces. */
.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--c-ink);
	font-family: var(--font-heading);
	font-size: 1.45rem;
	line-height: 1;
	text-decoration: none;
}

.brand__mark {
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	transition: color 0.25s;
}

.brand:hover .brand__mark {
	color: var(--c-growth);
}

.brand__logo {
	width: auto;
	max-height: 2.6rem;
}

.nav-toggle {
	position: relative;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	background: transparent;
	color: var(--c-ink);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	position: absolute;
	left: 50%;
	width: 1.1rem;
	height: 1.5px;
	margin-left: -0.55rem;
	background: currentColor;
	transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle__bars {
	top: 50%;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	left: 0;
	margin-left: 0;
}

.nav-toggle__bars::before {
	top: -5px;
}

.nav-toggle__bars::after {
	top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-5px) rotate(-45deg);
}

/* Mobile: a full-width dropdown under the header bar. */
.site-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: calc(100vh - var(--header-h));
	overflow-y: auto;
	padding: 0.25rem var(--gutter) 1.75rem;
	background: var(--c-paper);
	border-bottom: 1px solid var(--c-line);
	box-shadow: 0 24px 40px -30px rgba(42, 32, 27, 0.55);
}

.site-nav.is-open {
	display: block;
}

/* Without JavaScript the menu is simply shown under the logo. */
.no-js .nav-toggle {
	display: none;
}

.no-js .site-nav {
	display: block;
	position: static;
	width: 100%;
	max-height: none;
	padding: 0 0 1rem;
	background: none;
	border: 0;
	box-shadow: none;
}

.site-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	display: block;
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--c-line);
	color: var(--c-ink);
	font-family: var(--font-body);
	font-size: 1.05rem;
	font-weight: 500;
	text-decoration: none;
}

/*
 * The section in view (main.js adds .is-active and aria-current) or, for
 * links to other pages, the current page. "#section" links are left to
 * main.js because WordPress can mark every one of them as current.
 */
.site-nav__list a.is-active,
.site-nav__list .current-menu-item > a:not([href*="#"]),
.site-nav__list .current_page_parent > a:not([href*="#"]) {
	color: var(--c-growth);
}

.site-nav__cta {
	display: flex;
	width: 100%;
	margin-top: 1.25rem;
}

/* Desktop: links in a row, then the pill. */
@media (min-width: 900px) {
	.nav-toggle {
		display: none;
	}

	.site-nav,
	.no-js .site-nav {
		display: flex;
		position: static;
		align-items: center;
		gap: 2.25rem;
		width: auto;
		max-height: none;
		overflow: visible;
		padding: 0;
		background: none;
		border: 0;
		box-shadow: none;
	}

	.site-nav__list {
		display: flex;
		gap: 1.9rem;
	}

	/* A thin green underline that grows in: on hover, and for the section in view. */
	.site-nav__list a {
		padding: 0.35rem 0;
		border: 0;
		font-size: 0.92rem;
		background: linear-gradient(var(--c-growth), var(--c-growth)) 0 100% / 0 1.5px no-repeat;
		transition: background-size 0.35s var(--ease), color 0.2s;
	}

	.site-nav__list a:hover,
	.site-nav__list a.is-active,
	.site-nav__list .current-menu-item > a:not([href*="#"]),
	.site-nav__list .current_page_parent > a:not([href*="#"]) {
		background-size: 100% 1.5px;
		color: var(--c-ink);
	}

	.site-nav__cta {
		display: inline-flex;
		width: auto;
		margin-top: 0;
	}
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative;
	padding-block: 1.5rem clamp(5rem, 9vw, 8rem);
	overflow: hidden;
}

.hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 2.75rem;
}

/* Photo first on small screens, as in the mobile design. */
.hero__media {
	position: relative;
	order: -1;
	justify-self: center;
	width: min(100% - 2.5rem, 21rem);
	margin-bottom: 1rem;
}

.hero__photo {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 999px 999px 8px 8px;
	background: var(--c-sand);
	box-shadow: var(--shadow-soft);
}

.hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__badge {
	position: absolute;
	top: 52%;
	left: -1.75rem;
	width: clamp(6.5rem, 27vw, 9.25rem);
	height: auto;
}

.hero__badge-disc {
	fill: var(--c-forest);
	stroke: var(--c-cream);
	stroke-width: 4;
}

/*
 * The rotating badge is a decorative ring, not a label: capitals keep the
 * letters even around the circle.
 */
.hero__badge-text {
	fill: var(--c-cream);
	font-family: var(--font-body);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase; /* avoid-ai-design-ignore: SD4 */
}

.hero__quote {
	position: absolute;
	right: -1.25rem;
	bottom: -1.75rem;
	max-width: 13.5rem;
	padding: 1rem 1.25rem 1.1rem;
	background: var(--c-paper);
	border-radius: 12px;
	box-shadow: var(--shadow-soft);
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-style: italic;
	line-height: 1.2;
	color: var(--c-ink-soft);
}

.hero__eyebrow {
	margin-bottom: 1.25rem;
}

.hero__title {
	font-size: clamp(3.1rem, 6vw + 1rem, 6.75rem);
	line-height: 0.95;
	letter-spacing: -0.025em;
}

.hero__title-line {
	display: block;
}

.hero__title-line--accent {
	padding-left: 0.45em;
	font-style: italic;
	color: var(--c-growth);
}

.hero__intro {
	max-width: 34rem;
	margin-top: 1.75rem;
	font-size: clamp(1.05rem, 0.35vw + 1rem, 1.2rem);
	line-height: 1.7;
	color: var(--c-ink-soft);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.hero__actions .button {
	flex: 1 1 14rem;
}

.hero__creds {
	display: grid;
	gap: 0.6rem;
	margin: 2.5rem 0 0;
	padding: 1.5rem 0 0;
	border-top: 1px solid var(--c-line);
	list-style: none;
}

.hero__cred {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.65rem;
}

.hero__cred-title {
	font-family: var(--font-heading);
	font-size: 1.15rem;
	line-height: 1.2;
}

.hero__cred-detail {
	font-size: 0.8rem;
	color: var(--c-ink-soft);
}

.hero__river {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: clamp(60px, 9vw, 140px);
	pointer-events: none;
}

.hero__river path {
	fill: none;
	stroke: var(--c-sand-deep);
	stroke-width: 1.25;
	vector-effect: non-scaling-stroke;
}

@media (min-width: 600px) {
	.hero__actions .button {
		flex: 0 0 auto;
	}

	.hero__creds {
		grid-auto-flow: column;
		grid-auto-columns: max-content;
		gap: 0;
	}

	.hero__cred {
		flex-direction: column;
		gap: 0.2rem;
		padding-inline: 1.5rem;
		border-left: 1px solid var(--c-line);
	}

	.hero__cred:first-child {
		padding-left: 0;
		border-left: 0;
	}
}

@media (min-width: 900px) {
	.hero {
		padding-top: clamp(3rem, 6vw, 5.5rem);
	}

	.hero__grid {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		align-items: center;
		gap: clamp(3rem, 6vw, 6rem);
	}

	.hero--no-media .hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__media {
		order: 0;
		justify-self: end;
		width: min(100%, 24rem);
		margin: 0 2rem 2rem 0;
	}

	.hero__badge {
		left: -3.25rem;
	}

	.hero__quote {
		right: -2.5rem;
		bottom: -2rem;
		font-size: 1.25rem;
	}
}

/* A single, gentle entrance for the hero. Nothing else on the page animates in this way. */
@media (prefers-reduced-motion: no-preference) {
	.reveal {
		animation: iris-rise 0.9s var(--ease) both;
	}

	.reveal--2 { animation-delay: 0.08s; }
	.reveal--3 { animation-delay: 0.2s; }
	.reveal--4 { animation-delay: 0.32s; }
	.reveal--5 { animation-delay: 0.42s; }
	.reveal--6 { animation-delay: 0.52s; }

	.hero__photo {
		animation: iris-settle 1.4s var(--ease) both;
	}

	.hero__quote {
		animation: iris-fade 1s var(--ease) 0.6s both;
	}

	/* The round badge fades in, then turns very slowly, like a river stone. */
	.hero__badge {
		animation:
			iris-fade 1s var(--ease) 0.6s both,
			iris-spin 48s linear infinite;
	}
}

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

@keyframes iris-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes iris-settle {
	from {
		opacity: 0;
		transform: scale(1.03);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes iris-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* ==========================================================================
   Her story
   ========================================================================== */

.story {
	padding-block: clamp(4.5rem, 9vw, 8rem);
}

/*
 * As in Option B: a centred heading block. "Why Iris" above, then
 * "Two stories." upright in dark brown and "One woman." in italic green
 * (one line on desktop), then the intro centred at a reading width.
 */
.story__header {
	margin-bottom: clamp(4rem, 7vw, 5rem);
	text-align: center;
}

.story__header .eyebrow {
	margin-bottom: 1rem;
}

.story__header .section-title {
	color: var(--c-ink);
}

.section-title__accent {
	font-style: italic;
	color: var(--c-growth);
}

.story__intro {
	max-width: 34rem;
	margin: 1.5rem auto 0;
	font-size: 1.08rem;
	line-height: 1.7;
	color: var(--c-ink-soft);
}

/* On mobile the heading wraps naturally, keeping each sentence whole. */
.story .section-title__part {
	display: inline-block;
}

.story__duo {
	/* Space between the cards, which the "Be Both." circle sits in. */
	--duo-gap: 5rem;

	display: grid;
	gap: var(--duo-gap);
}

.story-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius);
}

.story-panel--heart {
	background: var(--c-sand);
}

.story-panel--boardroom {
	background: var(--c-forest);
	color: var(--c-paper);
}

.story-panel__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius) var(--radius) 0 0;
}

.story-panel--boardroom .story-panel__media {
	aspect-ratio: 16 / 10;
}

.story-panel__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * Frame the portrait on her face rather than the dark area below it.
 * Tuned for the current placeholder photo: adjust --focus-y (and the
 * desktop zoom below) when Iris's final portrait arrives.
 */
.story-panel--heart .story-panel__media {
	--focus-y: 22%;
}

.story-panel--heart .story-panel__media img {
	object-position: 50% var(--focus-y);
}

/* The text area fills the card, so equal-height cards have no dead space. */
.story-panel__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(1.75rem, 4vw, 3rem);
}

.story-panel__eyebrow {
	margin-bottom: 0.9rem;
	color: var(--c-ink);
}

.story-panel--boardroom .story-panel__eyebrow {
	color: var(--c-sage);
}

.story-panel__title {
	font-size: clamp(1.6rem, 1.1vw + 1.2rem, 2.15rem);
	line-height: 1.06;
}

.story-panel__text {
	margin-top: 1rem;
	margin-bottom: 1.75rem;
	color: var(--c-ink-soft);
}

.story-panel--boardroom .story-panel__text {
	color: var(--c-on-forest);
}

/* The figure sits at the foot of the card, whatever the card's height. */
.story-panel__stat {
	display: flex;
	flex-direction: column;
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid var(--c-sand-deep);
}

.story-panel--boardroom .story-panel__stat {
	border-top-color: rgba(255, 255, 255, 0.18);
}

.story-panel__stat-number {
	font-family: var(--font-heading);
	font-size: 2.3rem;
	line-height: 1.05;
	color: var(--c-clay-text);
}

.story-panel--boardroom .story-panel__stat-number {
	color: var(--c-sage);
}

.story-panel__stat-label {
	font-size: 0.85rem;
}

/* The "Be Both." circle that joins the two stories. */
.story__join {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 2;
	display: grid;
	place-content: center;
	width: 7rem;
	height: 7rem;
	border-radius: 50%;
	background: var(--c-clay);
	box-shadow: 0 0 0 0.6rem var(--c-cream);
	color: var(--c-paper);
	font-family: var(--font-heading);
	font-size: 1.5rem;
	line-height: 0.95;
	text-align: center;
	transform: translate(-50%, -50%);
}

.story__join span,
.story__join em {
	display: block;
}

.story-panel--boardroom.has-media .story__join {
	top: 0;
}

@media (min-width: 900px) {
	/*
	 * Two cards of equal height, side by side, with a wide gap that holds
	 * the "Be Both." circle. The green card is nudged down slightly for a
	 * gentle stagger; transform keeps the heights equal, and the padding
	 * below makes room for the nudge.
	 */
	.story__duo {
		--duo-gap: clamp(5.5rem, 8vw, 7rem);
		--duo-stagger: 2rem;

		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: stretch;
		column-gap: var(--duo-gap);
		padding-bottom: var(--duo-stagger);
	}

	.story-panel--boardroom {
		transform: translateY(var(--duo-stagger));
	}

	/* Portrait beside the text, in a slightly asymmetric split. */
	.story-panel--heart.has-media {
		display: grid;
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
	}

	.story-panel--heart.has-media .story-panel__media {
		aspect-ratio: auto;
		min-height: 100%;
		border-radius: var(--radius) 0 0 var(--radius);
	}

	/* The tall crop needs a little zoom so her face fills the frame. */
	.story-panel--heart .story-panel__media img {
		transform: scale(1.3);
		transform-origin: 50% var(--focus-y);
	}

	/*
	 * Centre the circle in the gap between the cards, at mid-height, with
	 * its cream ring separating it from both edges.
	 */
	.story__join,
	.story-panel--boardroom.has-media .story__join {
		top: 50%;
		left: calc(var(--duo-gap) / -2);
		width: 7.5rem;
		height: 7.5rem;
		font-size: 1.6rem;
		transform: translate(-50%, calc(-50% - var(--duo-stagger) / 2));
	}
}

/* Video */

.story-video {
	display: grid;
	gap: 1.75rem;
	margin-top: clamp(4.5rem, 8vw, 7rem);
}

.story-video__text .eyebrow {
	margin-bottom: 0.9rem;
}

.story-video__title {
	font-size: clamp(1.7rem, 1.4vw + 1.2rem, 2.5rem);
	line-height: 1.04;
}

.story-video__desc {
	margin-top: 1rem;
	color: var(--c-ink-soft);
}

.story-video__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	background: var(--c-brown);
}

.story-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.story-video__play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.story-video__play:focus-visible {
	outline-offset: -6px;
	outline-color: var(--c-paper);
}

.story-video__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.story-video__play::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(35, 25, 20, 0.16);
	transition: background-color 0.3s;
}

.story-video__play:hover::after {
	background: rgba(35, 25, 20, 0.06);
}

.story-video__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 4.75rem;
	height: 4.75rem;
	padding-left: 4px;
	border-radius: 50%;
	background: var(--c-paper);
	color: var(--c-forest);
	transform: translate(-50%, -50%);
	transition: transform 0.35s var(--ease);
}

.story-video__icon .icon {
	width: 16px;
	height: 19px;
}

.story-video__play:hover .story-video__icon {
	transform: translate(-50%, -50%) scale(1.06);
}

@media (min-width: 900px) {
	.story-video {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
		align-items: end;
		gap: 3.5rem;
	}

	.story-video__text {
		padding-bottom: 1rem;
		border-bottom: 1px solid var(--c-line);
	}
}

/* ==========================================================================
   Organisations strip (marquee)
   ========================================================================== */

.marquee {
	/* One muted, warm tone for every logo and name on the brown band. */
	--marquee-ink: #ddd0c0;
	--marquee-logo-h: 1.9rem;

	position: relative;
	overflow: hidden;
	background: var(--c-brown);
	color: var(--marquee-ink);
}

.marquee__track {
	display: flex;
	width: max-content;
	padding-block: 1.35rem;
}

.marquee__list {
	display: flex;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.marquee__list li {
	display: flex;
	align-items: center;
	gap: clamp(1.5rem, 3vw, 2.75rem);
	padding-right: clamp(1.5rem, 3vw, 2.75rem);
	font-family: var(--font-heading);
	font-size: clamp(1.3rem, 0.9vw + 1rem, 1.75rem);
	font-style: italic;
	line-height: 1.2;
	white-space: nowrap;
}

/*
 * Logos: all the same height, recoloured to the band's muted tone. The
 * filter turns any transparent logo into a solid silhouette (brightness 0),
 * makes it light (invert) and warms it (sepia); opacity softens it to
 * match --marquee-ink. No width cap, so every logo is truly the same
 * height; wide lockups simply take more room.
 */
.marquee__logo {
	display: block;
	width: auto;
	max-width: none;
	height: var(--marquee-logo-h);
	object-fit: contain;
	filter: brightness(0) invert(1) sepia(0.3);
	opacity: 0.88;
}

/* Logo on top, its name in small text underneath, centred together. */
.marquee__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
}

.marquee__caption {
	font-family: var(--font-body);
	font-size: 0.72rem;
	font-style: normal;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: var(--marquee-ink);
	opacity: 0.85;
}

/* No logo: the name on its own, in the band's italic serif. */
.marquee__name {
	display: block;
}

@media (min-width: 900px) {
	.marquee {
		--marquee-logo-h: 2.25rem;
	}
}

/* Small clay "stones" between the organisations. */
.marquee__list li::before {
	content: "";
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c-clay);
}

.marquee__toggle {
	position: absolute;
	top: 50%;
	right: var(--gutter);
	z-index: 1;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 1px solid rgba(255, 252, 247, 0.35);
	border-radius: 50%;
	background: var(--c-brown);
	box-shadow: 0 0 0 0.9rem var(--c-brown);
	color: var(--c-paper);
	cursor: pointer;
	transform: translateY(-50%);
}

.marquee__toggle:hover {
	border-color: var(--c-paper);
}

.marquee__toggle:focus-visible {
	outline-color: var(--c-paper);
}

.marquee__toggle .icon-play,
.marquee__toggle[aria-pressed="true"] .icon-pause {
	display: none;
}

.marquee__toggle[aria-pressed="true"] .icon-play {
	display: block;
}

.no-js .marquee__toggle {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	.marquee__track {
		animation: iris-marquee var(--marquee-duration, 45s) linear infinite;
	}

	.marquee:hover .marquee__track,
	.marquee.is-paused .marquee__track {
		animation-play-state: paused;
	}
}

@keyframes iris-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* Reduced motion: a still, wrapped list of names; no duplicate, no button. */
@media (prefers-reduced-motion: reduce) {
	.marquee__track {
		width: auto;
		padding-inline: var(--gutter);
	}

	.marquee__list {
		flex-shrink: 1;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5rem 0;
		margin-inline: auto;
	}

	.marquee__list[aria-hidden="true"],
	.marquee__toggle {
		display: none;
	}

	.marquee__list li {
		padding-inline: 0.9rem;
	}
}

/* ==========================================================================
   The river so far (timeline)
   ========================================================================== */

.river {
	padding-block: clamp(4.5rem, 9vw, 8rem);
	background: var(--c-sand);
}

.river__grid {
	display: grid;
	gap: 3rem;
}

.river__header .eyebrow {
	margin-bottom: 1rem;
}

.river__intro {
	max-width: 26rem;
	margin-top: 1.25rem;
	color: var(--c-ink-soft);
}

.timeline {
	position: relative;
	padding-left: 2.75rem;
}

.timeline__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The river: a faint bed, and a green current drawn over it as you scroll. */
.timeline__river {
	position: absolute;
	top: 0.4rem;
	left: 0;
	width: 24px;
	height: calc(100% - 0.8rem);
	overflow: visible;
	pointer-events: none;
}

.timeline__river path {
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.timeline__river--bed path {
	stroke: var(--c-sand-deep);
}

.timeline__river--current path {
	stroke: var(--c-growth);
}

.timeline__entry {
	position: relative;
	padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.timeline__entry:last-child {
	padding-bottom: 0;
}

.timeline__dot {
	position: absolute;
	top: 0.3rem;
	left: calc(-2.75rem + 12px - 6px);
	width: 12px;
	height: 12px;
	border: 2px solid var(--c-growth);
	border-radius: 50%;
	background: var(--c-growth);
	box-shadow: 0 0 0 4px var(--c-sand);
	transition: background-color 0.5s var(--ease) 0.15s;
}

.timeline__label {
	margin-bottom: 0.45rem;
}

.timeline__title {
	font-size: clamp(1.5rem, 0.9vw + 1.2rem, 2.05rem);
	line-height: 1.1;
}

.timeline__text {
	max-width: 36rem;
	margin-top: 0.75rem;
	color: var(--c-ink-soft);
}

.timeline__highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.timeline__highlights li {
	padding: 0.4rem 0.95rem;
	border-radius: 999px;
	background: var(--c-paper);
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.4;
}

.timeline__media {
	max-width: 20rem;
	margin-top: 1.25rem;
	overflow: hidden;
	border-radius: 12px;
}

.timeline__media img {
	width: 100%;
}

@media (min-width: 900px) {
	.river__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: clamp(3rem, 7vw, 6.5rem);
	}

	/* The heading stays in view while the river runs beside it. */
	.river__header {
		position: sticky;
		top: calc(var(--header-h) + 2.5rem);
		align-self: start;
	}

	.timeline {
		padding-top: 0.5rem;
	}
}

/*
 * Scroll reveal, only with JS and motion allowed. Entries rise gently into
 * place and their dots fill in; the current follows the reader down.
 */
@media (prefers-reduced-motion: no-preference) {
	.js .timeline__river--current {
		clip-path: inset(0 0 calc((1 - var(--river-progress, 0)) * 100%) 0);
	}

	.js .timeline__entry {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
	}

	.js .timeline__entry.is-visible {
		opacity: 1;
		transform: none;
	}

	.js .timeline__dot {
		background: var(--c-sand);
	}

	.js .timeline__entry.is-visible .timeline__dot {
		background: var(--c-growth);
	}
}

/* ==========================================================================
   Signature talks
   ========================================================================== */

.talks {
	padding-block: clamp(4.5rem, 9vw, 8rem);
	background: var(--c-forest);
	color: var(--c-paper);
}

.talks .eyebrow {
	color: var(--c-sage);
}

/* Labels inside the light talk card need the dark label colour (AA). */
.talks .talk .eyebrow {
	color: var(--c-clay-text);
}

.talks__header {
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.talks__header .eyebrow {
	margin-bottom: 1rem;
}

.talks__layout {
	display: grid;
	gap: 1.5rem;
}

.talks__tabs {
	display: grid;
	gap: 0.25rem;
	align-content: start;
}

.talks__tab {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	width: 100%;
	padding: 0.9rem 1.1rem;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--c-on-forest);
	font-family: var(--font-heading);
	font-size: clamp(1.15rem, 0.6vw + 1rem, 1.4rem);
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s;
}

.talks__tab:hover {
	color: var(--c-paper);
	background: rgba(255, 255, 255, 0.05);
}

.talks__tab[aria-selected="true"] {
	background: var(--c-forest-deep);
	color: var(--c-paper);
}

.talks__tab:focus-visible {
	outline-color: var(--c-sage);
	outline-offset: 0;
}

.talks__panels {
	display: grid;
	gap: 1.25rem;
}

.talk {
	padding: clamp(1.75rem, 4vw, 3rem);
	border-radius: var(--radius);
	background: var(--c-paper);
	color: var(--c-ink);
}

.talk:focus-visible {
	outline-color: var(--c-sage);
}

/* The talk's subject line: plain text in the body face, not a pill. */
.talk__tag {
	margin-bottom: 0.6rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--c-growth);
}

.talk__title {
	font-size: clamp(1.8rem, 1.4vw + 1.3rem, 2.5rem);
	line-height: 1.05;
}

.talk__lead {
	max-width: 38rem;
	margin-top: 1rem;
	color: var(--c-ink-soft);
}

.talk__sub {
	margin-top: 1.75rem;
	margin-bottom: 0.9rem;
}

.talk__ticks {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.talk__ticks li {
	display: flex;
	gap: 0.8rem;
	align-items: flex-start;
}

.talk__tick {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 1.35rem;
	height: 1.35rem;
	margin-top: 0.15rem;
	border-radius: 50%;
	background: var(--c-growth);
	color: var(--c-paper);
}

.talk__best {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--c-line);
	font-size: 0.9rem;
	color: var(--c-ink-soft);
}

.talk__best .eyebrow {
	margin-bottom: 0.5rem;
	color: var(--c-clay-text);
}

/* "Best for" as a real list, wrapping in two columns where there is room. */
.talk__best-list {
	display: grid;
	gap: 0.3rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.talk__best-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.talks__layout {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: clamp(2rem, 5vw, 4.5rem);
		align-items: start;
	}

	/* Without JS the tabs are hidden and the talks fill the width. */
	.talks__tabs[hidden] + .talks__panels {
		grid-column: 1 / -1;
	}
}

/* ==========================================================================
   Who books Iris
   ========================================================================== */

.who {
	padding-block: clamp(4.5rem, 9vw, 8rem);
}

.who__grid {
	display: grid;
	gap: 2.5rem;
}

.who__header .eyebrow {
	margin-bottom: 1rem;
}

/* An aligned grid: each row's items start on the same line. */
.who__list {
	display: grid;
	align-items: start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.who__item {
	padding-block: 1.75rem;
	border-top: 1px solid var(--c-line);
}

.line-icon {
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 1rem;
	fill: none;
	stroke: var(--c-growth);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.who__title {
	font-size: clamp(1.4rem, 0.6vw + 1.2rem, 1.7rem);
	line-height: 1.15;
}

.who__text {
	max-width: 24rem;
	margin-top: 0.6rem;
	color: var(--c-ink-soft);
}

@media (min-width: 700px) {
	.who__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(2rem, 4vw, 3.5rem);
	}
}

@media (min-width: 1000px) {
	.who__grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: clamp(3rem, 6vw, 6rem);
		align-items: start;
	}

}

/* ==========================================================================
   In numbers and testimonials
   ========================================================================== */

.proof {
	padding-block: clamp(4.5rem, 9vw, 8rem);
	background: var(--c-sand);
}

.proof__header .eyebrow {
	margin-bottom: 1rem;
}

.stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
	padding: 0;
	border-top: 1px solid var(--c-sand-deep);
	list-style: none;
}

.stat {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.75rem 1rem 1.75rem 0;
	border-bottom: 1px solid var(--c-sand-deep);
}

.stat:nth-child(even) {
	padding-left: 1.25rem;
	border-left: 1px solid var(--c-sand-deep);
}

.stat__number {
	font-family: var(--font-heading);
	font-size: clamp(2.8rem, 4vw + 1.2rem, 4.75rem);
	font-weight: 400;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--c-ink);
}

.stat__label {
	max-width: 14rem;
	font-size: 0.88rem;
	color: var(--c-ink-soft);
}

.voices {
	display: grid;
	gap: 1.25rem;
	margin-top: clamp(3rem, 6vw, 4.5rem);
}

.voice {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.5rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--radius);
	background: var(--c-paper);
}

.voice blockquote {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 1.2rem;
	line-height: 1.35;
}

.voice figcaption {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	font-size: 0.85rem;
}

.voice__name {
	font-weight: 600;
}

.voice__role {
	color: var(--c-ink-soft);
}

.voice__tag {
	align-self: flex-start;
	margin-top: 0.6rem;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: var(--c-clay);
	color: var(--c-paper);
	font-size: 0.78rem;
	font-weight: 600;
}

.voice--placeholder {
	border: 1px dashed var(--c-sand-deep);
	background: transparent;
	color: var(--c-ink-soft);
}

.voice--iris {
	background: #6e4a35;
	color: var(--c-paper);
}

.voice--iris blockquote {
	font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2.2rem);
	font-style: italic;
	line-height: 1.15;
}

.voice--iris figcaption {
	color: #ead9c8;
}

@media (min-width: 900px) {
	/* One column per figure shown, however many there are. */
	.stats {
		grid-template-columns: none;
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
	}

	.stat,
	.stat:nth-child(even) {
		padding: 2rem 1.5rem;
		border-left: 1px solid var(--c-sand-deep);
	}

	.stat:first-child {
		padding-left: 0;
		border-left: 0;
	}

	.voices {
		grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr);
	}

	.voices--quote-only {
		grid-template-columns: minmax(0, 1fr);
	}
}

/*
 * No real testimonials yet: Iris's quote stands on its own as a centred
 * pull quote at a comfortable width, rather than a lone card in a row.
 */
.voices--quote-only {
	justify-items: center;
}

.voices--quote-only .voice--iris {
	align-items: center;
	width: 100%;
	max-width: 44rem;
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 6vw, 5rem);
	text-align: center;
}

.voices--quote-only .voice--iris blockquote {
	font-size: clamp(1.9rem, 2.2vw + 1.3rem, 3rem);
	line-height: 1.12;
}

.voices__note {
	max-width: 44rem;
	margin: 1rem auto 0;
	font-size: 0.85rem;
	color: var(--c-ink-soft);
	text-align: center;
}

/* ==========================================================================
   Watch (videos and lightbox)
   ========================================================================== */

.watch {
	padding-block: clamp(4.5rem, 9vw, 8rem);
	background: var(--c-brown);
	color: var(--c-paper);
}

.watch .eyebrow {
	color: #e3cdb6;
}

.watch__header {
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.watch__header .eyebrow {
	margin-bottom: 1rem;
}

.watch__grid {
	display: grid;
	gap: 1rem;
}

.watch__side {
	display: grid;
	gap: 1rem;
	align-content: start;
}

.video-card {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	background: #1f1612;
	color: var(--c-paper);
	text-decoration: none;
}

.video-card:focus-visible {
	outline-color: var(--c-paper);
}

.video-card__media,
.video-card__media img {
	display: block;
	width: 100%;
	height: 100%;
}

.video-card__media img {
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.video-card:hover .video-card__media img {
	transform: scale(1.03);
}

/* A soft shade at the bottom so the title stays readable on any photo. */
.video-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20, 14, 11, 0.8), rgba(20, 14, 11, 0) 65%);
}

.video-card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	padding-left: 3px;
	border-radius: 50%;
	background: var(--c-paper);
	color: var(--c-forest);
	transform: translate(-50%, -50%);
	transition: transform 0.35s var(--ease);
}

.video-card--feature .video-card__play {
	width: 4.75rem;
	height: 4.75rem;
}

.video-card--feature .video-card__play .icon {
	width: 16px;
	height: 19px;
}

.video-card:hover .video-card__play {
	transform: translate(-50%, -50%) scale(1.06);
}

.video-card__meta {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	padding: 1rem 1.25rem;
}

.video-card__kicker {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #ecdccb;
}

.video-card__title {
	display: block;
	margin-top: 0.2rem;
	font-family: var(--font-heading);
	font-size: 1.1rem;
	line-height: 1.2;
}

.video-card--feature .video-card__meta {
	padding: 1.5rem 1.75rem;
}

.video-card--feature .video-card__title {
	font-size: clamp(1.3rem, 1vw + 1rem, 1.8rem);
}

.watch__more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid rgba(255, 252, 247, 0.28);
	border-radius: var(--radius);
	color: var(--c-paper);
	font-family: var(--font-heading);
	font-size: 1.2rem;
	text-decoration: none;
	transition: border-color 0.25s;
}

.watch__more:hover {
	border-color: var(--c-paper);
}

.watch__more:focus-visible {
	outline-color: var(--c-paper);
}

@media (min-width: 900px) {
	.watch__grid {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		align-items: start;
	}
}

.lightbox {
	width: min(100% - 2rem, 70rem);
	max-width: none;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.lightbox::backdrop {
	background: rgba(20, 14, 11, 0.88);
}

.lightbox__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	background: #000;
}

.lightbox__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.lightbox__close {
	position: absolute;
	top: -3.25rem;
	right: 0;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.lightbox__close:hover {
	border-color: #fff;
}

.lightbox__close:focus-visible {
	outline-color: #fff;
}

html:has(.lightbox[open]) {
	overflow: hidden;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
	padding-block: clamp(4.5rem, 9vw, 8rem);
}

.faq__grid {
	display: grid;
	gap: 2.5rem;
}

.faq__header .eyebrow {
	margin-bottom: 1rem;
}

.faq__intro {
	margin-top: 1.25rem;
	color: var(--c-ink-soft);
}

.faq__intro-link {
	color: var(--c-forest);
	font-weight: 600;
	text-underline-offset: 0.2em;
}

.faq__list {
	border-top: 1px solid var(--c-line);
}

.faq__item {
	border-bottom: 1px solid var(--c-line);
}

.faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.35rem 0;
	font-family: var(--font-heading);
	font-size: clamp(1.15rem, 0.5vw + 1rem, 1.4rem);
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
	display: none;
}

.faq__icon {
	position: relative;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--c-sand-deep);
	border-radius: 50%;
	transition: background-color 0.25s, border-color 0.25s;
}

.faq__icon::before,
.faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 1.5px;
	margin: -0.75px 0 0 -5px;
	background: var(--c-ink);
	transition: transform 0.3s var(--ease);
}

.faq__icon::after {
	transform: rotate(90deg);
}

.faq__item[open] .faq__icon {
	border-color: var(--c-forest);
	background: var(--c-forest);
}

.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after {
	background: var(--c-paper);
}

.faq__item[open] .faq__icon::after {
	transform: rotate(0deg);
}

.faq__item summary:hover .faq__icon {
	border-color: var(--c-forest);
}

.faq__answer {
	max-width: 38rem;
	padding: 0 3.5rem 1.5rem 0;
	color: var(--c-ink-soft);
}

.faq__answer > * + * {
	margin-top: 0.75em;
}

.faq__answer a {
	color: var(--c-forest);
	text-underline-offset: 0.2em;
}

@media (min-width: 900px) {
	.faq__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: clamp(3rem, 6vw, 6rem);
		align-items: start;
	}

	.faq__header {
		position: sticky;
		top: calc(var(--header-h) + 2.5rem);
	}
}

/* ==========================================================================
   Forms (Contact Form 7), on dark or light panels
   ========================================================================== */

.form-panel {
	--field-bg: var(--c-cream);
	--field-border: var(--c-sand-deep);
	--field-text: var(--c-ink);
	--field-placeholder: #74675c; /* 4.8:1 on the cream field (AA). */
	--label: var(--c-ink-soft);
	--focus: var(--c-growth);
	--choice-on-bg: var(--c-forest);
	--choice-on-text: var(--c-paper);
	--error: #a33a1f;

	padding: clamp(1.5rem, 4vw, 2.75rem);
	border-radius: var(--radius);
}

.form-panel--light {
	background: var(--c-paper);
	box-shadow: var(--shadow-soft);
}

.form-panel--dark {
	--field-bg: rgba(255, 252, 247, 0.06);
	--field-border: rgba(199, 211, 181, 0.35);
	--field-text: var(--c-paper);
	--field-placeholder: #a9b39c;
	--label: var(--c-sage);
	--focus: var(--c-sage);
	--choice-on-bg: var(--c-sage);
	--choice-on-text: var(--c-forest-deep);
	--error: #f4b9a3;

	/* Native date pickers and dropdowns render in their dark style. */
	color-scheme: dark;
	background: var(--c-forest-deep);
	color: var(--c-paper);
}

.form-panel__title {
	font-size: clamp(1.6rem, 1vw + 1.25rem, 2rem);
}

.form-panel__intro {
	margin: 0.6rem 0 1.75rem;
	color: var(--c-ink-soft);
}

.form-hint {
	padding: 1rem;
	border: 1px dashed currentColor;
	border-radius: 10px;
	font-size: 0.9rem;
}

.form-grid {
	display: grid;
	gap: 1.1rem 1rem;
}

.field {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.field > label,
.field > legend {
	display: block;
	margin-bottom: 0.45rem;
	padding: 0;
	color: var(--label);
	font-size: 0.88rem;
	font-weight: 600;
}

.form-panel input[type="text"],
.form-panel input[type="email"],
.form-panel input[type="tel"],
.form-panel input[type="date"],
.form-panel input[type="number"],
.form-panel select,
.form-panel textarea {
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--field-border);
	border-radius: 10px;
	background: var(--field-bg);
	color: var(--field-text);
	font: inherit;
	font-size: 1rem; /* 16px stops iOS zooming into fields. */
	transition: border-color 0.2s;
}

.form-panel textarea {
	min-height: 6.5rem;
	resize: vertical;
}

.form-panel ::placeholder {
	color: var(--field-placeholder);
	opacity: 1;
}

.form-panel input:focus-visible,
.form-panel select:focus-visible,
.form-panel textarea:focus-visible {
	border-color: var(--focus);
	outline: 2px solid var(--focus);
	outline-offset: 1px;
}

.form-panel .wpcf7-form-control-wrap {
	display: block;
}

/* Talk choices as pills. */
.form-panel .wpcf7-radio,
.form-panel .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.form-panel .wpcf7-list-item {
	margin: 0;
}

.form-panel .wpcf7-list-item label {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.form-panel .wpcf7-list-item input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.form-panel .wpcf7-list-item-label {
	display: inline-block;
	padding: 0.5rem 1rem;
	border: 1px solid var(--field-border);
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 500;
	line-height: 1.3;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.form-panel .wpcf7-list-item input:checked + .wpcf7-list-item-label {
	border-color: var(--choice-on-bg);
	background: var(--choice-on-bg);
	color: var(--choice-on-text);
}

.form-panel .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.button--light {
	background: var(--c-paper);
	color: var(--c-forest-deep);
}

.button--light:hover {
	background: var(--c-sage);
}

.form-panel .wpcf7-spinner {
	margin: 0;
}

.form-panel .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.4rem;
	color: var(--error);
	font-size: 0.82rem;
	font-weight: 500;
}

.form-panel .wpcf7 form .wpcf7-response-output {
	margin: 1.25rem 0 0;
	padding: 0.85rem 1rem;
	border: 1px solid var(--field-border);
	border-radius: 10px;
	font-size: 0.92rem;
}

.form-panel .wpcf7 form.invalid .wpcf7-response-output,
.form-panel .wpcf7 form.unaccepted .wpcf7-response-output,
.form-panel .wpcf7 form.failed .wpcf7-response-output,
.form-panel .wpcf7 form.spam .wpcf7-response-output {
	border-color: var(--error);
}

.form-panel .wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--focus);
}

@media (min-width: 600px) {
	.form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.field--full,
	.form-actions {
		grid-column: 1 / -1;
	}
}

/* ==========================================================================
   Booking (speaking enquiries)
   ========================================================================== */

.book {
	position: relative;
	overflow: hidden;
	padding-block: clamp(4.5rem, 9vw, 8rem);
	background: var(--c-forest);
	color: var(--c-paper);
}

.book .eyebrow {
	margin-bottom: 1rem;
	color: var(--c-sage);
}

.book__river {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: clamp(120px, 20vw, 260px);
	pointer-events: none;
}

.book__river path {
	fill: none;
	stroke: rgba(199, 211, 181, 0.22);
	stroke-width: 1.25;
	vector-effect: non-scaling-stroke;
}

.book__grid {
	position: relative;
	display: grid;
	gap: 3rem;
}

.book__intro {
	max-width: 28rem;
	margin-top: 1.25rem;
	color: var(--c-on-forest);
}

.steps {
	display: grid;
	gap: 0.9rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.steps li {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.steps__n {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--c-sage);
	border-radius: 50%;
	color: var(--c-sage);
	font-size: 0.8rem;
	font-weight: 600;
}

.book__direct {
	margin-top: 2rem;
	color: var(--c-on-forest);
}

.book__direct a {
	color: var(--c-paper);
	font-weight: 600;
	text-underline-offset: 0.2em;
}

.book__direct a:focus-visible {
	outline-color: var(--c-sage);
}

@media (min-width: 900px) {
	.book__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: clamp(3rem, 6vw, 6rem);
		align-items: start;
	}
}

/* ==========================================================================
   Wedding officiating
   ========================================================================== */

.weddings {
	padding-block: clamp(4.5rem, 9vw, 8rem);
}

.weddings__grid {
	display: grid;
	gap: 2.5rem;
}

.weddings .eyebrow {
	margin-bottom: 1rem;
}

.weddings__intro {
	max-width: 32rem;
	margin-top: 1.25rem;
	font-size: 1.05rem;
	color: var(--c-ink-soft);
}

.weddings__list {
	display: grid;
	gap: 0.75rem;
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
}

/* A short clay dash, like a ripple, before each item. */
.weddings__list li {
	display: flex;
	gap: 0.9rem;
}

.weddings__list li::before {
	content: "";
	flex-shrink: 0;
	width: 1.1rem;
	height: 2px;
	margin-top: 0.8rem;
	background: var(--c-clay);
}

.weddings__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
}

.weddings__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 900px) {
	.weddings__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		grid-template-areas:
			"copy form"
			"media form";
		gap: 3rem clamp(3rem, 6vw, 5.5rem);
		align-items: start;
	}

	.weddings__copy {
		grid-area: copy;
	}

	.weddings__media {
		grid-area: media;
	}

	.weddings__form {
		grid-area: form;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem;
	background: var(--c-brown);
	color: var(--c-paper);
}

.site-footer__statement {
	font-family: var(--font-heading);
	font-size: clamp(2.3rem, 5.5vw, 5.25rem);
	line-height: 1;
	letter-spacing: -0.02em;
}

.site-footer__statement em {
	color: var(--c-sage);
}

.site-footer__row {
	display: grid;
	gap: 1.5rem;
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: 1.75rem;
	border-top: 1px solid rgba(255, 252, 247, 0.18);
}

.site-footer__name {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	line-height: 1.2;
}

.site-footer__tagline {
	margin-top: 0.3rem;
	font-size: 0.85rem;
	color: #cdbfb0;
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__links a {
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size 0.3s var(--ease);
}

.site-footer__links a:hover {
	background-size: 100% 1px;
}

.site-footer a:focus-visible {
	outline-color: var(--c-paper);
}

.site-footer__meta {
	margin-top: 2.5rem;
	font-size: 0.82rem;
	color: #cdbfb0;
}

@media (min-width: 900px) {
	.site-footer__row {
		grid-template-columns: 1fr auto;
		align-items: end;
	}
}

/* ==========================================================================
   Journal: list (home.php, archive.php) and homepage strip
   ========================================================================== */

.journal,
.videos-page {
	padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4.5rem, 9vw, 8rem);
}

.journal__grid {
	display: grid;
	gap: 2.5rem;
}

.journal__header .eyebrow {
	margin-bottom: 1rem;
}

.journal__title {
	font-size: clamp(2.6rem, 4.5vw + 1rem, 4.75rem);
	line-height: 0.98;
	letter-spacing: -0.02em;
}

.journal__intro {
	max-width: 32rem;
	margin-top: 1.25rem;
	font-size: 1.08rem;
	color: var(--c-ink-soft);
}

.journal__intro > * + * {
	margin-top: 0.9em;
}

.journal__list {
	border-top: 1px solid var(--c-line);
}

.journal__empty {
	padding-block: 2rem;
	color: var(--c-ink-soft);
}

/* One post, set like a line in a table of contents: date, then title. */
.post-row {
	display: grid;
	align-content: start; /* Equal-height columns must not spread the rows apart. */
	gap: 0.4rem 2rem;
	padding-block: 1.75rem;
	border-bottom: 1px solid var(--c-line);
}

.post-row__date {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--c-clay-text);
}

.post-row__title {
	font-size: clamp(1.45rem, 1vw + 1.15rem, 2rem);
	line-height: 1.15;
}

.post-row__title a {
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size 0.35s var(--ease);
}

.post-row__title a:hover {
	background-size: 100% 1px;
}

.post-row__excerpt {
	max-width: 38rem;
	margin-top: 0.6rem;
	color: var(--c-ink-soft);
}

.post-row__meta {
	margin-top: 0.6rem;
	font-size: 0.85rem;
	color: var(--c-ink-soft);
}

.journal__pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2rem;
}

.journal__pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.9rem;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	font-weight: 500;
	text-decoration: none;
}

.journal__pagination a.page-numbers:hover {
	border-color: var(--c-ink);
}

.journal__pagination .page-numbers.current {
	border-color: var(--c-forest);
	background: var(--c-forest);
	color: var(--c-paper);
}

@media (min-width: 700px) {
	.post-row {
		grid-template-columns: 9.5rem minmax(0, 1fr);
	}

	.post-row__date {
		padding-top: 0.5rem;
	}
}

@media (min-width: 1000px) {
	/* The title stays in view while the list runs beside it. */
	.journal__grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: clamp(3rem, 6vw, 6rem);
		align-items: start;
	}

	.journal__header {
		position: sticky;
		top: calc(var(--header-h) + 2.5rem);
	}
}

/* Homepage: "Latest from the journal" */
.journal-strip {
	padding-block: clamp(4.5rem, 9vw, 8rem);
	border-top: 1px solid var(--c-line);
}

.journal-strip__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.journal-strip__all {
	color: var(--c-forest);
	font-weight: 600;
	text-underline-offset: 0.2em;
}

.journal-strip__list {
	border-top: 1px solid var(--c-line);
}

@media (min-width: 900px) {
	/* Three columns divided by hairlines, not boxed cards. */
	.journal-strip__list {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0 clamp(2rem, 4vw, 3.5rem);
		border-top: 0;
	}

	.journal-strip .post-row {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 1.5rem;
		border-top: 1px solid var(--c-line);
		border-bottom: 0;
	}

	.journal-strip .post-row__date {
		padding-top: 0;
	}

	.journal-strip .post-row__title {
		font-size: clamp(1.35rem, 0.6vw + 1.1rem, 1.65rem);
	}
}

/* ==========================================================================
   Single Journal post (single.php)
   ========================================================================== */

/* Not ".post": WordPress's post_class() puts "post" on every post, lists included. */
.post-single {
	padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4.5rem, 9vw, 7rem);
}

/* A comfortable reading width (about 70 characters a line). */
.post__header,
.post__content,
.post__footer {
	width: min(100% - 2 * var(--gutter), 42rem);
	margin-inline: auto;
}

.post__header .eyebrow {
	margin-bottom: 1rem;
}

.post__back {
	color: inherit;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size 0.3s var(--ease);
}

.post__back:hover {
	background-size: 100% 1px;
}

.post__title {
	font-size: clamp(2.2rem, 3vw + 1.2rem, 3.6rem);
	line-height: 1.06;
	letter-spacing: -0.015em;
}

.post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.9rem;
	margin-top: 1.25rem;
	font-size: 0.92rem;
	color: var(--c-ink-soft);
}

.post__meta-sep {
	width: 1.5rem;
	height: 1px;
	background: var(--c-sand-deep);
}

.post__image {
	width: min(100% - 2 * var(--gutter), 60rem);
	margin: clamp(2rem, 5vw, 3.5rem) auto 0;
	overflow: hidden;
	border-radius: var(--radius);
}

.post__image img {
	width: 100%;
}

.post__content {
	margin-top: clamp(2rem, 5vw, 3rem);
	font-size: 1.125rem;
	line-height: 1.8;
}

.post__content > * + * {
	margin-top: 1.3em;
}

.post__content h2,
.post__content h3 {
	margin-top: 2em;
	line-height: 1.15;
}

.post__content h2 {
	font-size: 1.9rem;
}

.post__content h3 {
	font-size: 1.5rem;
}

.post__content blockquote {
	margin-block: 2em;
	padding-left: 1.5rem;
	border-left: 2px solid var(--c-growth);
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-style: italic;
	line-height: 1.45;
}

.post__content ul,
.post__content ol {
	padding-left: 1.3em;
}

.post__content li + li {
	margin-top: 0.4em;
}

.post__content figure {
	margin-block: 2em;
}

.post__content img {
	border-radius: 12px;
}

.post__content figcaption {
	margin-top: 0.6rem;
	font-size: 0.88rem;
	color: var(--c-ink-soft);
}

.post__content hr {
	margin-block: 2.5em;
	border: 0;
	border-top: 1px solid var(--c-line);
}

.post__content a {
	color: var(--c-forest);
	text-underline-offset: 0.2em;
}

.post__footer {
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: 2rem;
	border-top: 1px solid var(--c-line);
}

.post-nav {
	display: grid;
	gap: 1rem;
}

.post-nav__link {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--c-line);
	border-radius: 12px;
	text-decoration: none;
	transition: border-color 0.25s;
}

.post-nav__link:hover {
	border-color: var(--c-ink);
}

.post-nav__label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--c-clay-text);
}

.post-nav__title {
	font-family: var(--font-heading);
	font-size: 1.15rem;
	line-height: 1.25;
}

@media (min-width: 600px) {
	.post-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-nav__link--next {
		grid-column: 2;
		text-align: right;
	}
}

/* ==========================================================================
   Videos page (page-templates/template-videos.php)
   ========================================================================== */

.videos-page__header {
	max-width: 40rem;
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.videos-grid {
	display: grid;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * Short cards (every small card, and the large one on phones): the play
 * button sits in the top corner, clear of the title, instead of the middle.
 */
.video-card:not(.video-card--feature) .video-card__play {
	top: 1rem;
	left: 1rem;
	width: 2.75rem;
	height: 2.75rem;
	transform: none;
}

.video-card:not(.video-card--feature):hover .video-card__play {
	transform: scale(1.06);
}

@media (max-width: 599px) {
	.video-card--feature .video-card__play {
		top: 1rem;
		left: 1rem;
		width: 2.75rem;
		height: 2.75rem;
		transform: none;
	}

	.video-card--feature:hover .video-card__play {
		transform: scale(1.06);
	}

	.video-card--feature .video-card__play .icon {
		width: 12px;
		height: 14px;
	}
}

/* Long YouTube titles stop at two lines so they never reach the play button
   (Videos page grid and the homepage Watch cards alike). */
.video-card__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.videos-page__fallback {
	max-width: 40rem;
	padding: 1.25rem 1.5rem;
	border: 1px dashed var(--c-sand-deep);
	border-radius: 12px;
	color: var(--c-ink-soft);
}

.videos-page__more {
	margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 600px) {
	.videos-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.videos-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ==========================================================================
   Basic pages (page.php, index.php, 404.php)
   ========================================================================== */

.page-content {
	max-width: calc(46rem + 2 * var(--gutter));
	padding-block: clamp(3rem, 8vw, 6rem);
}

.page-content .eyebrow {
	margin-bottom: 1rem;
}

.page-title {
	margin-bottom: 1.5rem;
	font-size: clamp(2.2rem, 3.4vw + 1rem, 3.5rem);
}

.page-content__actions {
	margin-top: 2rem;
}

.entry + .entry {
	margin-top: 3rem;
}

.entry-title {
	font-size: 2rem;
}

.entry-content > * + * {
	margin-top: 1.25em;
}

.entry-content a {
	color: var(--c-forest);
	text-underline-offset: 0.2em;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
