/* ==========================================================================
   Open Signal Radio — site stylesheet (base-theme engine)
   One file. Flexbox only. No WordPress classes, no utility soup.

   Contents
   1.  Tokens
   2.  Fonts
   3.  Base
   4.  Layout primitives  (.section, .split, .stack)
   5.  Hero               (.hero, .hero--parallax)
   6.  Cover              (.cover + caption)
   7.  Panel              (.panel — the white content column)
   7b. Full-width row     (.band — content across the page, optional background)
   8.  Content            (.heading, .rule, .prompt, links)
   9.  Button list        (.btn-list, .btn)
   10. Jukebox            (.jukebox, .track)
   11. Gallery            (.gallery)
   11b. Video             (.video, .video-lightbox)
   11c. Project grid      (.project-grid, .project-card)
   11d. Columns           (.columns — heading + equal flex columns)
   11e. Slideshow         (.slideshow, .slide — scroll-snap slides, dots, play)
   12. Site chrome        (.menu-btn, .menu, .site-footer)
   13. Audio player       (.player, .player-mini)
   14. Motion             (.reveal, reduced motion)
   15. Programs           (.programs — the Programs collection)
   16. Partners           (.partners — the Partners collection's logos)
   17. Section dots       (.dot-nav — fixed in-page navigation)
   18. Audio player block (.audio-btn, .audio-playlist)
   ========================================================================== */


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

:root {
	/* colour */
	--c-page:        #0a0a0a;
	--c-surface:     #fff;
	--c-ink:         #333;
	--c-ink-inverse: #f2f2f2;
	--c-accent:      #ffffff;
	--c-accent-dark: #d9d9d9;
	--c-rule:        rgb(0 0 0 / 0.38);
	--c-rule-inverse: rgb(255 255 255 / 0.31);
	--c-track:       #252525;
	--c-track-hover: #3a3a3a;
	--c-track-line:  #333;
	--c-track-line-hover: #5a5a5a;
	--c-track-active: var(--c-accent);

	/* type */
	--f-body:    "Rokkitt", Georgia, serif;
	--f-display: "Onramp", "Montserrat", system-ui, sans-serif;
	--f-ui:      "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fs-xs:   0.625rem;   /* 10px — track labels   */
	--fs-sm:   0.875rem;   /* 14px — buttons, prompt */
	--fs-base: 1.125rem;   /* 18px — body            */
	--fs-caption: 1.1875rem; /* 19px — cover captions */
	--fs-h2:   clamp(2rem, 1.5rem + 2vw, 3rem);       /* 32–48px */
	--fs-h3:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); /* 20–24px */
	--fs-h1:   2rem;       /* 32px */
	--lh-body: 1.6;
	--lh-heading: 1.125;

	/* space */
	--gap-xs: 5px;
	--gap-sm: 10px;
	--gap-md: 20px;
	--gap-lg: 40px;
	--measure: 760px;      /* content column max width */

	/* shape */
	--radius: 4px;
	--shadow: 0 0 30px rgb(0 0 0 / 0.6);

	/* motion */
	--t-fast: 0.4s;
	--t-slow: 1s;

	/* breakpoint (reference only — media queries can't read vars) */
	--bp-stack: 782px;
}


/* 2. Fonts — Montserrat is variable (100–900); Rokkitt body, Onramp display ---- */

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(../fonts/Montserrat-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Montserrat";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url(../fonts/Montserrat-latin-italic.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(../fonts/Montserrat-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Montserrat";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url(../fonts/Montserrat-latin-ext-italic.woff2) format("woff2");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "Rokkitt"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/Rokkitt-400.woff2) format("woff2"); }
@font-face { font-family: "Rokkitt"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/Rokkitt-500.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/OpenSans-400.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/OpenSans-600.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/OpenSans-700.woff2) format("woff2"); }
@font-face { font-family: "Onramp"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/Onramp.woff2) format("woff2"); }


/* 3. Base ------------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
	background-color: var(--c-page);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--c-page);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--f-display);
	font-weight: 400;
	line-height: var(--lh-heading);
}

p {
	margin: 0 0 1.25em;
	line-height: 1.5;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--c-accent);
}

a:hover,
a:focus-visible {
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Scrollbar (WebKit/Blink) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; border: 1px solid #333; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #999; }


/* 4. Layout primitives ------------------------------------------------------ */

/* Full-bleed band. Every top-level block on a page is a .section. */
.section {
	position: relative;
	width: 100%;
}

/* Two halves side by side; stacks below the breakpoint.
   On narrow screens the media half always comes first:
   .split          → DOM order  (media, panel)
   .split--reverse → DOM order  (panel, media) but stacks media-first */
.split {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	background-color: var(--c-surface);
}

/* Each half is exactly 50%. A basis of 0 would split the space only after
   padding is added, so a padded .panel would grow wider than a .cover and the
   image edges on alternating rows would no longer line up. */
.split > * {
	display: flex;
	flex: 0 0 50%;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
}

@media (max-width: 781px) {
	.split {
		flex-direction: column;
	}
	.split > * {
		flex-basis: auto;
	}
	.split--reverse {
		flex-direction: column-reverse;
	}
}

/* Vertical rhythm container: children separated by a fixed gap. */
.stack {
	display: flex;
	flex-direction: column;
	gap: var(--stack-gap, var(--gap-xs));
}


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

.hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: var(--gap-md);
	overflow: hidden;
	color: var(--c-ink-inverse);
	text-align: center;
	box-shadow: var(--shadow);
}

.hero__media,
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
}

.hero__media {
	object-fit: cover;
}

/* Background video with parallax: a little taller than the hero so the
   shift never shows an edge. effects.js moves it with transform. */
.hero__video[data-parallax] {
	top: -10%;
	height: 120%;
	will-change: transform;
}

/* Parallax variant: the background is a CSS image so JS can shift it. */
.hero__bg {
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover;
}

.hero__dim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: #0a0a0a;
	opacity: var(--dim, 0.7);
}

.hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gap-md);
	width: 100%;
	max-width: 960px;
}

/* The link sets the width: a shrink-wrapped flex child would otherwise
   collapse the 100%-wide logo to its intrinsic size. */
.hero__brand {
	display: block;
	width: min(300px, 100%);
}

.hero__logo {
	width: 100%;
	height: auto;
}

.hero__title {
	color: var(--c-ink-inverse);
	font-size: var(--fs-h1);
}

.hero__next img {
	width: 44px;
	height: 44px;
}


/* 6. Cover ------------------------------------------------------------------ */

/* Full-height image with a dim layer and an optional caption anchored to a
   corner. Position modifiers set the anchor with flexbox alignment only. */
.cover {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;     /* default: bottom */
	align-items: flex-start;       /* default: left   */
	min-height: 100vh;
	min-height: 100svh;
	padding: 1em 1em calc(1em + 80px);   /* bottom clears the fixed footer badge */
	overflow: hidden;
	color: #fff;
	background-color: #000;
}

.cover--right  { align-items: flex-end;   text-align: right; }
.cover--center { align-items: center;     text-align: center; }
.cover--top    { justify-content: flex-start; }
.cover--middle { justify-content: center; }

.cover__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--focus, 50% 50%);
}

.cover__dim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: #000;
	opacity: var(--dim, 0.5);
}

.cover__inner {
	position: relative;
	z-index: 2;
	width: min(480px, 100%);
}

.cover__title {
	margin: 0;
	font-size: var(--fs-caption);
	text-transform: uppercase;
	line-height: 1.5;
}

.cover__rule {
	margin: 0.25em 0;
	border: 0;
	border-bottom: 1px solid var(--c-rule-inverse);
}

.cover__text {
	margin: 0;
	font-size: var(--fs-caption);
	line-height: 1.5;
}


/* 7. Panel ------------------------------------------------------------------ */

.panel {
	padding: var(--gap-lg);
	background-color: var(--c-surface);
	color: var(--c-ink);
}

.panel__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: var(--measure);
	margin-inline: auto;
}

@media (max-width: 781px) {
	.panel {
		padding: var(--gap-lg) var(--gap-md);
	}
}


/* 7b. Full-width row --------------------------------------------------------- */
/* Same content as a panel, across the page. Light: dark text on white.
   Dark: light text on black, or over a background image/video and its dim. */

.band {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: calc(var(--gap-lg) * 2) var(--gap-lg);
	background-color: var(--c-surface);
	color: var(--c-ink);
}

.band--dark {
	--c-rule: var(--c-rule-inverse);
	background-color: var(--c-page);
	color: var(--c-ink-inverse);
}

.band--screen {
	min-height: 100vh;
	min-height: 100svh;
}

.band__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.band__dim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: #0a0a0a;
	opacity: var(--dim, 0.6);
}

.band__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: var(--measure);
	margin-inline: auto;
}

.band--wide .band__inner { max-width: 1100px; }
.band--full .band__inner { max-width: none; }

.band--center .band__inner {
	align-items: center;
	text-align: center;
}

.band--center .band__inner > * { max-width: 100%; }

/* Parallax variant: the image is a CSS background that effects.js shifts.
   Taller than the row so the shift never shows an edge. */
.band__bg {
	top: -15%;
	height: 130%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

/* A background never spills into the next row (a parallax image is taller
   than its row). clip-path also clips the fixed background below — overflow
   wouldn't, since a fixed element escapes it. */
.band--media {
	clip-path: inset(0);
}

/* Fixed background: pinned to the window, so the rows seem to slide across
   one still picture each. Done with position: fixed + the row's clip-path
   rather than background-attachment: fixed, which iOS Safari ignores. */
.band__bg--fixed {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100vh;
	height: 100lvh;
}

/* Scroll-down chevron after the content. */
.band__next {
	align-self: center;
	margin-top: var(--gap-lg);
	opacity: 0.8;
	transition: opacity var(--t-fast), transform var(--t-fast);
}

.band__next:hover,
.band__next:focus-visible {
	opacity: 1;
	transform: translateY(4px);
}

.band__next img {
	width: 44px;
	height: 44px;
}

/* Over a background: the content hangs off a thin rule on its left. */
.band--media:not(.band--center) .band__inner {
	padding: 0 var(--gap-md) var(--gap-md);
	border-left: 1px solid rgb(255 255 255 / 0);
}

.band--media:not(.band--center) .band__next {
	margin-left: calc(var(--gap-md) * -1);
}

/* Last on the page: clear the fixed footer badge, as covers do. */
.band:last-child {
	padding-bottom: calc(var(--gap-lg) * 2 + 80px);
}

@media (max-width: 781px) {
	.band {
		padding: var(--gap-lg) var(--gap-md);
	}
	/* Clear the menu button when a link jumps here. */
	.band--screen {
		padding-top: 88px;
	}
	.band:last-child {
		padding-bottom: calc(var(--gap-lg) + 80px);
	}
}


/* 8. Content ---------------------------------------------------------------- */

.heading {
	margin-bottom: var(--gap-md);
	font-size: var(--fs-h2);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

h3.heading {
	margin-top: var(--gap-sm);
	font-size: var(--fs-h3);
	line-height: 1.3;
}

.band--dark p {
	font-size: 1.1875rem;
}

.band--dark a:not(.btn):not(.band__next) {
	color: inherit;
	font-family: var(--f-ui);
}

.rule {
	width: 100%;
	margin: 0 0 var(--gap-sm);
	border: 0;
	border-bottom: 1px solid var(--c-rule);
}

.prompt {
	margin-bottom: var(--gap-sm);
	font-size: var(--fs-sm);
}

.prompt strong {
	font-weight: 700;
}

.media-frame {
	border-radius: 6px;
	box-shadow: 0 0 20px rgb(0 0 0 / 0.3);
}


/* 9. Button list ------------------------------------------------------------ */

.btn-list {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.667em 1.333em;
	border: 2px solid var(--c-accent);
	border-radius: var(--radius);
	background-color: #000;
	color: #fff;
	font-size: var(--fs-sm);
	line-height: 2;
	text-align: center;
	text-decoration: none;
	font-family: var(--f-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.btn:hover,
.btn:focus-visible {
	border-color: #fff;
	background-color: #fff;
	color: #000;
}

.btn--inline {
	display: inline-flex;
	width: auto;
	align-self: center;
	margin-block: var(--gap-md);
}

.band:not(.band--center) .btn--inline {
	align-self: flex-start;
}

/* Track names in the UI face: Rokkitt's caps get spindly at this size. */
.track {
	font-family: var(--f-ui);
	font-size: 0.6875rem;
}

/* A jukebox in a row: a scrolling list, so 200 tracks don't make a 200-row page. */
.band .jukebox {
	max-height: min(60vh, 520px);
	margin-top: var(--gap-md);
	padding-right: 4px;
	overflow-y: auto;
	overscroll-behavior: contain;
}


/* 10. Jukebox --------------------------------------------------------------- */

.jukebox {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.track {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--c-track-line);
	background-color: var(--c-track);
	color: var(--c-ink-inverse);
	font-size: var(--fs-xs);
	letter-spacing: 0.1em;
	line-height: 1.1;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--t-fast);
}

.track:hover,
.track:focus-visible {
	background-color: var(--c-track-hover);
	border-color: var(--c-track-line-hover);
	color: #fff;
}

.track:focus-visible {
	outline: 2px solid var(--c-track-active);
	outline-offset: 2px;
}

/* Active (selected) track — playing or paused. */
.track[aria-pressed="true"] {
	background-color: #1c1c1c;
	border-color: var(--c-track-active);
	box-shadow: inset 4px 0 0 var(--c-track-active);
	color: #fff;
	font-weight: 600;
}

.track[aria-pressed="true"]:hover {
	background-color: #262626;
}

.track svg {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	fill: currentColor;
	transition: fill var(--t-fast);
}

.track[aria-pressed="true"] svg {
	fill: #fff;
}

/* Audio actually running (set by jukebox.js on play/pause). */
.track.is-playing svg {
	animation: track-pulse 1.2s ease-in-out infinite;
}

@keyframes track-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
	.track,
	.track svg { transition: none; }
	.track.is-playing svg { animation: none; }
}


/* 11. Gallery --------------------------------------------------------------- */

.gallery {
	display: flex;
	flex-wrap: wrap;
	background-color: #000;
}

/* Filler: soaks up the free space on the last row so an orphan thumbnail
   keeps the same width as the rest instead of stretching full-bleed. */
.gallery::after {
	content: "";
	flex: 999 1 480px;
}

.gallery__item {
	display: flex;
	flex: 1 1 480px;
	position: relative;
	z-index: 0;
	overflow: hidden;
}

.gallery__item img {
	width: 100%;
	height: auto;
	aspect-ratio: 1024 / 585;
	object-fit: cover;
	object-position: center top;
	transition: opacity var(--t-fast);
}

.gallery__item:hover,
.gallery__item:focus-visible {
	z-index: 1;
}

.gallery__item:hover img,
.gallery__item:focus-visible:not([data-quiet-focus]) img {
	opacity: 0.6;
}

/* Lightbox (js/gallery.js) — a native <dialog> sized to the viewport */
.lightbox-open {
	overflow: hidden;
}

.lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	overflow: hidden;
}

.lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox::backdrop {
	background-color: rgb(0 0 0 / 0.85);
}

.lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gap-sm);
	max-width: calc(100vw - 140px);
	margin: 0;
}

.lightbox__img {
	max-width: 100%;
	max-height: calc(100vh - 120px);
	max-height: calc(100dvh - 120px);
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 0 30px #000;
	opacity: 0;
	transition: opacity var(--t-fast);
	user-select: none;
	touch-action: pan-y;
}

.lightbox__img.is-loaded {
	opacity: 1;
}

.lightbox__caption {
	max-width: 70ch;
	font-size: var(--fs-sm);
	text-align: center;
}

.lightbox__count {
	position: absolute;
	top: 22px;
	left: 50%;
	margin: 0;
	font-size: var(--fs-sm);
	letter-spacing: 0.1em;
	transform: translateX(-50%);
}

.lightbox__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgb(0 0 0 / 0.32);
	cursor: pointer;
	transition: background-color var(--t-fast);
}

.lightbox__btn:hover,
.lightbox__btn:focus-visible {
	background-color: rgb(0 0 0 / 0.7);
}

.lightbox__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.lightbox__btn svg {
	width: 28px;
	height: 28px;
	fill: #fff;
}

.lightbox__btn[hidden] {
	display: none;
}

.lightbox__prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close { top: 12px;   right: 12px; }

@media (max-width: 781px) {
	.lightbox__figure {
		max-width: calc(100vw - 24px);
	}
	.lightbox__prev,
	.lightbox__next {
		top: auto;
		bottom: 16px;
		transform: none;
	}
}


/* 11b. Video ----------------------------------------------------------------
   blocks/video, js/video.js. The frame keeps its shape with aspect-ratio;
   --ratio is "w / h", so it also works inside calc() for the lightbox. */

.video {
	--ratio: 16 / 9;
	margin: 0 0 var(--gap-md);
}

.video__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--ratio);
	background-color: #000;
}

.video--framed .video__frame {
	border-radius: 6px;
	box-shadow: 0 0 20px rgb(0 0 0 / 0.3);
}

.video__media,
.video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

video.video__media {
	object-fit: contain;
	background-color: #000;
}

.video__poster {
	object-fit: cover;
	transition: transform var(--t-fast), opacity var(--t-fast);
}

.video__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
}

.video__play::after {                     /* light dim so the icon reads on any poster */
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgb(0 0 0 / 0.2);
	transition: background-color var(--t-fast);
}

.video__title {
	position: absolute;
	left: var(--gap-md);
	right: var(--gap-md);
	bottom: var(--gap-md);
	z-index: 1;
	font-family: var(--f-display);
	font-size: var(--fs-caption);
	line-height: var(--lh-heading);
	text-align: left;
}

.video__icon {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(48px, 16%, 88px);
	aspect-ratio: 1;
	border: 2px solid rgb(255 255 255 / 0.85);
	border-radius: 50%;
	background-color: rgb(0 0 0 / 0.35);
	box-shadow: 0 0 18px rgb(0 0 0 / 0.6);
	transition: transform var(--t-fast), background-color var(--t-fast);
}

.video__icon svg {
	width: 46%;
	margin-left: 8%;                     /* optical centre of the triangle */
	fill: #fff;
}

.video__play:hover::after,
.video__play:focus-visible::after {
	background-color: rgb(0 0 0 / 0.05);
}

.video__play:hover .video__icon,
.video__play:focus-visible .video__icon {
	background-color: var(--c-accent);
	transform: scale(1.08);
}

.video__play:hover .video__poster {
	transform: scale(1.02);
}

.video__play:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.video__caption {
	margin-top: var(--gap-sm);
	font-size: var(--fs-sm);
}

/* Lightbox player. Fits the window both ways from the ratio alone:
   as wide as allowed, unless that would make it too tall. */
.video-lightbox__frame {
	position: relative;
	width: min(100vw - 140px, (100vh - 140px) * var(--ratio));
	width: min(100vw - 140px, (100dvh - 140px) * var(--ratio));
	aspect-ratio: var(--ratio);
	overflow: hidden;
	border-radius: 6px;
	background-color: #000;
	box-shadow: 0 0 30px #000;
}

.video-lightbox__frame > iframe,
.video-lightbox__frame > video {
	position: absolute;
	background-color: #000;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 781px) {
	.video-lightbox__frame {
		width: min(100vw - 24px, (100vh - 120px) * var(--ratio));
		width: min(100vw - 24px, (100dvh - 120px) * var(--ratio));
	}
}

@media (prefers-reduced-motion: reduce) {
	.video__poster,
	.video__icon {
		transition: none;
	}
	.video__play:hover .video__poster,
	.video__play:hover .video__icon,
	.video__play:focus-visible .video__icon {
		transform: none;
	}
}


/* 11c. Project grid ----------------------------------------------------------
   blocks/project-grid. --cols is the most cards per row; the column width is
   worked out so the grid never exceeds it and drops to fewer on its own:
   each track is at least max(280px, the width --cols columns would get). */

.project-grid {
	--cols: 3;
	--grid-gap: var(--gap-md);
	padding: var(--gap-lg) clamp(var(--gap-md), 4vw, 60px);
	background-color: #000;
	color: var(--c-ink-inverse);
}

.project-grid--light {
	background-color: var(--c-surface);
	color: var(--c-ink);
}

.project-grid__title {
	max-width: 1400px;
	margin: 0 auto var(--gap-md);
	font-size: var(--fs-h1);
}

.project-grid__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(max(280px, (100% - (var(--cols) - 1) * var(--grid-gap)) / var(--cols)), 1fr));
	gap: var(--grid-gap);
	max-width: 1400px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.project-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 6px;
	background-color: var(--c-surface);
	color: var(--c-ink);
	box-shadow: 0 0 20px rgb(0 0 0 / 0.3);
	transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.project-grid--light .project-card {
	border: 1px solid rgb(0 0 0 / 0.12);
}

.project-card__media {
	aspect-ratio: 1024 / 585;
	overflow: hidden;
	background-color: #1a1a1a;
}

.project-card__media img,
.project-card__blank {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform var(--t-slow);
}

.project-card__blank {
	background: linear-gradient(135deg, #2a2a2a, #111);
}

.project-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--gap-sm);
	padding: var(--gap-md);
}

.project-card__meta {
	margin: 0;
	color: #777;
	font-size: var(--fs-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.project-card__title {
	font-size: var(--fs-h2);
}

.project-card__title a {
	color: inherit;
	text-decoration: none;
}

/* The whole card opens the project: the title link stretches over it. */
.project-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.project-card__text {
	margin: 0;
	font-size: var(--fs-sm);
}

.project-card__link {
	gap: 0.4em;                          /* the label and its ↗ (flex drops the space between them) */
	position: relative;
	z-index: 2;                          /* above the stretched title link */
	align-self: flex-start;
	margin-top: auto;
}

.project-card:hover,
.project-card:focus-within {
	box-shadow: 0 0 30px rgb(0 0 0 / 0.6);
	transform: translateY(-3px);
}

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

.project-card:hover .project-card__title a,
.project-card__title a:focus-visible {
	color: var(--c-accent);
}

.project-card__title a:focus-visible {
	outline: none;
}

.project-card:has(.project-card__title a:focus-visible) {
	outline: 2px solid var(--c-accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.project-card,
	.project-card__media img {
		transition: none;
	}
	.project-card:hover,
	.project-card:focus-within {
		transform: none;
	}
	.project-card:hover .project-card__media img {
		transform: none;
	}
}


/* 11d. Columns ---------------------------------------------------------------
   blocks/columns. A flex row of equal columns that re-flows by the block's own
   width (container queries), so it behaves the same full width or narrowed by
   Max width (side padding, as on split rows): all across → two per row → one.
   Five or six step through three. */

.columns {
	--col-gap: var(--gap-lg);
	--c-label: var(--c-accent-dark);
	--c-muted: #666;
	--c-rule: rgb(0 0 0 / 0.16);
	padding: calc(var(--gap-lg) * 1.5) clamp(var(--gap-md), 4vw, 60px);
	background-color: var(--c-surface);
	color: var(--c-ink);
}

.columns--dark {
	--c-label: #4fb3e6;                  /* the accent, lifted for black */
	--c-muted: rgb(239 239 239 / 0.72);
	--c-rule: rgb(255 255 255 / 0.16);
	background-color: #000;
	color: var(--c-ink-inverse);
}

.columns__inner {
	container-type: inline-size;
	width: 100%;
}

.columns__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--gap-sm) var(--gap-md);
	margin-bottom: var(--gap-lg);
}

.columns--rules .columns__head {
	padding-bottom: var(--gap-md);
	border-bottom: 1px solid var(--c-rule);
}

.columns__eyebrow {
	margin: 0;
	color: var(--c-muted);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.columns__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap-lg) var(--col-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.columns--rules .columns__list {
	padding-bottom: var(--gap-lg);
	border-bottom: 1px solid var(--c-rule);
}

/* Equal shares of the row, however many there are. */
.columns__item {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--gap-sm);
	min-width: 0;
}

.columns__media {
	margin-bottom: var(--gap-xs);
	overflow: hidden;
	border-radius: var(--radius);
}

.columns__media img {
	width: 100%;
}

.columns--crop .columns__media img {
	aspect-ratio: var(--ratio, 16 / 9);
	height: auto;
	object-fit: cover;
}

.columns__label {
	color: var(--c-label);
	font-family: var(--f-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.columns__text {
	margin: 0;
	color: inherit;
	font-size: 1rem;
	line-height: 1.6;
}

/* Five or six: three per row before they get cramped. */
@container (max-width: 1100px) {
	.columns--many .columns__item {
		flex: 0 0 calc((100% - 2 * var(--col-gap)) / 3);
	}
}

/* Two per row (four becomes 2 × 2). No growing, so an odd last column
   stays the same size as the rest instead of stretching across. */
@container (max-width: 860px) {
	.columns__item,
	.columns--many .columns__item {
		flex: 0 0 calc((100% - var(--col-gap)) / 2);
	}
}

/* One per row. */
@container (max-width: 520px) {
	.columns__item,
	.columns--many .columns__item {
		flex: 0 0 100%;
	}
}

/* Last on the page: clear the fixed footer badge. */
.columns:last-child {
	padding-bottom: calc(var(--gap-lg) * 1.5 + 80px);
}


/* 11e. Slideshow -------------------------------------------------------------
   blocks/slideshow + js/slideshow.js; slides open the gallery lightbox.
   A scroll-snap row: swipe, trackpad and keyboard scrolling work natively.
   The section is a size container, so 100cqw is its width: the heading and
   the current slide line up with the content edge (gutter, or the Max width
   margin, plus any side padding), while the row itself runs to the page edge
   and the next slide always peeks in by at least --peek. */

.slideshow {
	--gutter: clamp(var(--gap-md), 4vw, 60px);
	--max: 100000px;
	--pad-l: 0px;
	--pad-r: 0px;
	--peek: clamp(28px, 6vw, 96px);
	--slide-gap: var(--gap-md);
	--edge-l: calc(max(var(--gutter), (100cqw - var(--max)) / 2) + var(--pad-l));
	--edge-r: calc(max(var(--gutter), (100cqw - var(--max)) / 2) + var(--pad-r));
	--c-chip: rgb(0 0 0 / 0.07);
	--c-chip-ink: #1d1d1f;
	--c-dot: rgb(0 0 0 / 0.42);
	container-type: inline-size;
	padding-block: calc(var(--gap-lg) * 1.5);
	background-color: var(--c-surface);
	color: var(--c-ink);
}

.slideshow--dark {
	--c-chip: rgb(255 255 255 / 0.12);
	--c-chip-ink: #f5f5f7;
	--c-dot: rgb(255 255 255 / 0.5);
	background-color: #000;
	color: var(--c-ink-inverse);
}

.slideshow__title {
	margin-bottom: var(--gap-lg);
	padding-inline: var(--edge-l) var(--edge-r);
	
}

.slideshow__track {
	display: flex;
	gap: var(--slide-gap);
	padding-inline: var(--edge-l) var(--edge-r);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--edge-l) var(--edge-r);
	scrollbar-width: none;
}

.slideshow__track::-webkit-scrollbar { display: none; }

.slideshow__track:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 4px;
}

/* The content width, but never so wide the next slide can't peek in. */
.slide {
	position: relative;
	display: block;
	flex: 0 0 min(100cqw - var(--edge-l) - var(--edge-r), 100cqw - var(--edge-l) - var(--slide-gap) - var(--peek));
	aspect-ratio: var(--ratio, 16 / 9);
	overflow: hidden;
	border-radius: 22px;
	background-color: #1a1a1a;
	color: #fff;
	text-decoration: none;
	scroll-snap-align: start;
	isolation: isolate;
}

.slide__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--t-slow);
}

.slide:hover .slide__img {
	transform: scale(1.025);
}

.slide:focus-visible {
	outline: 3px solid var(--c-accent);
	outline-offset: 3px;
}

/* Focus handed back after the lightbox closes from a click: no ring
   (gallery.js marks it; a keyboard-opened lightbox keeps the ring). */
[data-quiet-focus]:focus-visible {
	outline: none;
}

/* A shade from the text's edge, so it reads over any image. */
.slide--has-text::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(var(--shade-dir, to top), var(--shade, rgb(0 0 0 / 0.62)), transparent 62%);
	pointer-events: none;
}

.slide--top-left,
.slide--top-right { --shade-dir: to bottom; }

.slide--dark {
	--shade: rgb(255 255 255 / 0.78);
	color: #1d1d1f;
}

.slide__text {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	max-width: min(36ch, 72%);
	margin: clamp(var(--gap-md), 3.2cqw, 48px);
}

.slide--top-left .slide__text     { top: 0;    left: 0; }
.slide--top-right .slide__text    { top: 0;    right: 0; align-items: flex-end; text-align: right; }
.slide--bottom-left .slide__text  { bottom: 0; left: 0; }
.slide--bottom-right .slide__text { bottom: 0; right: 0; align-items: flex-end; text-align: right; }

.slide__heading {
	font-family: var(--f-display);
	font-size: clamp(1.375rem, 2.6cqw, 2.25rem);
	line-height: var(--lh-heading);
}

.slide__body {
	font-size: clamp(0.9375rem, 1.3cqw, 1.125rem);
	line-height: 1.5;
}

/* Dots + play: a pill and a circle, centred under the slides. */
.slideshow__controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	margin-top: var(--gap-lg);
	padding-inline: var(--gutter);
}

.slideshow__controls[hidden] { display: none; }

.slideshow__dots {
	display: flex;
	align-items: center;
	height: 56px;
	padding: 0 18px;
	border-radius: 999px;
	background-color: var(--c-chip);
}

.slideshow__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	padding: 0 6px;
	border: 0;
	background: none;
	cursor: pointer;
}

.slideshow__dot span {
	position: relative;
	display: block;
	width: 8px;
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background-color: var(--c-dot);
	transition: width var(--t-fast), background-color var(--t-fast);
}

.slideshow__dot:hover span { background-color: var(--c-chip-ink); }

.slideshow__dot[aria-current] span {
	width: 48px;
	background-color: var(--c-chip-ink);
}

/* Playing: the current dot fills over --interval; the end of that fill is
   what moves the slideshow on (slideshow.js), so pausing the fill on hover
   pauses the clock too. */
.slideshow.is-playing .slideshow__dot[aria-current] span {
	background-color: var(--c-dot);
}

.slideshow.is-playing .slideshow__dot[aria-current] span::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-color: var(--c-chip-ink);
	transform-origin: left;
	animation: slideshow-fill var(--interval, 6s) linear forwards;
}

.slideshow.is-held .slideshow__dot[aria-current] span::after {
	animation-play-state: paused;
}

@keyframes slideshow-fill {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

.slideshow__dot:focus-visible,
.slideshow__play:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
	border-radius: 999px;
}

.slideshow__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--c-chip);
	cursor: pointer;
	transition: background-color var(--t-fast);
}

.slideshow__play:hover { background-color: rgb(127 127 127 / 0.22); }

.slideshow__play svg {
	width: 24px;
	height: 24px;
	fill: var(--c-chip-ink);
}

.slideshow__icon-pause,
.slideshow.is-playing .slideshow__icon-play { display: none; }
.slideshow.is-playing .slideshow__icon-pause { display: block; }

/* Last on the page: clear the fixed footer badge. */
.slideshow:last-child {
	padding-bottom: calc(var(--gap-lg) * 1.5 + 80px);
}

@media (max-width: 781px) {
	.slide {
		aspect-ratio: 4 / 5;
		border-radius: 16px;
	}
	.slide__text {
		max-width: none;
		margin: var(--gap-md);
	}
	.slide--top-right .slide__text,
	.slide--bottom-right .slide__text { left: 0; }
	.slideshow__dots,
	.slideshow__dot { height: 48px; }
	.slideshow__play {
		width: 48px;
		height: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.slide__img { transition: none; }
	.slide:hover .slide__img { transform: none; }
}


/* 12. Site chrome ----------------------------------------------------------- */

/* Menu button (upper left) */
.menu-btn {
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 51px;
	height: 48px;
	padding: 0 12px;
	border: 0;
	border-radius: 50%;
	background-color: #000;
	cursor: pointer;
	transition: opacity var(--t-fast) ease, visibility 0s;
}

.menu-btn span {
	display: block;
	height: 1px;
	background-color: #fff;
}

.menu-open .menu-btn {
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--t-fast) ease, visibility 0s linear var(--t-fast);
}

/* Overlay + panel */
.menu {
	position: fixed;
	inset: 0;
	z-index: 1001;
	background-color: rgb(0 0 0 / 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--t-fast) ease, visibility 0s linear var(--t-fast);
}

.menu-open .menu {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--t-fast) ease, visibility 0s;
}

.menu__close {
	position: absolute;
	top: 25px;
	left: 25px;
	display: flex;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.menu__close svg {
	width: 100%;
	height: 100%;
	fill: #fff;
}

.menu__panel {
	position: fixed;
	top: 60px;
	left: 60px;
	display: flex;
	max-height: calc(100dvh - 80px);
	padding: var(--gap-md);
	overflow-y: auto;
	border-radius: 6px;
	background-color: rgb(0 0 0 / 0.5);
	box-shadow: 0 0 30px rgb(0 0 0 / 0.38);
}

.menu__list {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu__list a {
	display: block;
	padding: 0.15em 0.5em;
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
}

.menu__list a:hover,
.menu__list a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.menu-btn:focus-visible,
.menu__close:focus-visible,
.menu__list a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Fixed footer badge — slides up after scrolling */
.site-footer {
	position: fixed;
	left: 0;
	bottom: -90px;
	z-index: 999;
	display: flex;
	justify-content: center;
	width: 100%;
	opacity: 0;
	pointer-events: none;
	transition: bottom var(--t-fast), opacity var(--t-fast);
}

.site-footer.is-scrolled {
	bottom: -5px;
	opacity: 0.9;
}

/* The wrapper spans the full width; only the badge itself takes clicks,
   so it never blocks the mini-player button or page content beside it. */
.site-footer.is-scrolled a {
	pointer-events: auto;
}

.site-footer a {
	display: block;
	padding: 8px 10px 15px 10px;
	border-radius: 8px 8px 0 0;
	background-color: rgb(0 0 0 / 0.94);
	box-shadow: 0 0 20px #000;
	opacity: 0.7;
	transition: opacity var(--t-fast);
}

.site-footer a:hover,
.site-footer a:focus-visible {
	opacity: 1;
}

.site-footer img {
	/* Sized by height, so a square back-to-top icon and a wide wordmark both fit. */
	width: auto;
	max-width: 186px;
	height: 40px;
}


/* 13. Audio player ---------------------------------------------------------- */

.player {
	position: fixed;
	left: 0;
	bottom: -95px;
	z-index: 998;
	width: 100%;
	opacity: 0;
	pointer-events: none;
	transition: bottom var(--t-fast), opacity var(--t-fast);
	user-select: none;
}

.player.is-open {
	bottom: 40px;
	opacity: 1;
	pointer-events: auto;
}

.player__box {
	position: relative;
	width: calc(100% - 40px);
	max-width: 860px;
	margin: 0 auto;
}

.player__controls {
	position: absolute;
	top: -32px;
	right: 0;
	display: flex;
	align-items: center;
	padding: 5px;
	border-radius: 6px 6px 0 0;
	background-color: #000;
	box-shadow: 0 0 10px rgb(0 0 0 / 0.5);
}

.player__controls button {
	display: flex;
	padding: 4px 8px;
	border: 0;
	border-radius: 3px;
	background: none;
	cursor: pointer;
	transition: background-color var(--t-fast);
}

.player__controls button:hover,
.player__controls button:focus-visible {
	background-color: #323232;
}

.player__controls svg {
	width: 28px;
	height: 14px;
	fill: #efefef;
}

/* Plyr skin */
.player .plyr--audio .plyr__controls {
	border-radius: 6px 0 6px 6px;
	background-color: #000;
	box-shadow: 0 0 10px rgb(0 0 0 / 0.5);
}

.player .plyr__control,
.player .plyr__time {
	color: #fff;
}

.player .plyr__time {
	font-weight: 700;
}

.player .plyr--full-ui input[type="range"] {
	color: #f00;
}

.player .plyr--audio .plyr__control:hover,
.player .plyr--audio .plyr__control.plyr__tab-focus {
	background: #595959;
}

.player .plyr__menu,
.player .plyr__volume {
	display: none !important;
}

/* Restore button when the player is minimised */
.player-mini {
	position: fixed;
	right: -50px;
	bottom: 30px;
	z-index: 998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #000;
	box-shadow: 0 0 10px rgb(0 0 0 / 0.5);
	cursor: pointer;
	transition: right var(--t-slow), background-color var(--t-fast);
}

.player-mini.is-visible {
	right: 20px;
}

.player-mini:hover,
.player-mini:focus-visible {
	background-color: #666;
}

.player-mini svg {
	width: 32px;
	height: 32px;
	padding: 5px;
	fill: #fff;
}


/* 14. Motion ---------------------------------------------------------------- */

/* Elements marked .reveal fade in when they enter the viewport (js/effects.js).
   Without JS they're simply visible — the hidden state only applies once
   effects.js has added .js-reveal to <html>. */
.js-reveal .reveal {
	opacity: 0;
	transition: opacity var(--t-slow);
}

.js-reveal .reveal.is-visible {
	opacity: 1;
}

/* Blocks inside a full-width row rise 50px as they fade in. */
.js-reveal .reveal--up {
	transform: translateY(50px);
	transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.js-reveal .reveal--up.is-visible {
	transform: none;
}

/* Page-to-page fade: a cross-document view transition. Both pages opt in
   (they share this stylesheet), so following a link cross-fades the old page
   into the new one. Browsers without support navigate as they always have;
   nobody who prefers reduced motion gets it. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}

	::view-transition-old(root),
	::view-transition-new(root) {
		animation-duration: 0.4s;
		animation-timing-function: ease;
	}
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--t-fast: 0s;
		--t-slow: 0s;
	}
	html {
		scroll-behavior: auto;
	}
	.js-reveal .reveal {
		opacity: 1;
	}
	.js-reveal .reveal--up {
		transform: none;
	}
}


/* 15. Programs -------------------------------------------------------------- */
/* blocks/programs: the Programs collection, two columns under a rule. */

.programs {
	display: grid;
	grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
	gap: var(--gap-md) var(--gap-lg);
	margin: var(--gap-md) 0 0;
	padding: var(--gap-md) 0 0;
	border-top: 1px solid var(--c-rule-inverse);
	list-style: none;
}

.program {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.program__title {
	font-weight: 600;
	font-size: 1.1875rem;
	line-height: 1.3;
}

.program__note {
	opacity: 0.8;
	line-height: 1.4;
}

@media (max-width: 781px) {
	.programs { grid-template-columns: minmax(0, 1fr); }
}


/* 16. Partners -------------------------------------------------------------- */
/* blocks/partners: the Partners collection as a row of logos. */

.partners {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-around;
	gap: var(--gap-lg);
	margin: var(--gap-lg) 0 0;
	padding: 0;
	list-style: none;
}

.partner a {
	display: block;
	transition: opacity var(--t-fast);
}

.partner a:hover,
.partner a:focus-visible {
	opacity: 0.75;
}

.partner__logo {
	width: auto;
	max-width: 200px;
	height: var(--logo-h, 120px);
	object-fit: contain;
}


/* 17. Section dots ---------------------------------------------------------- */
/* blocks/dot-nav: fixed dots at the window edge; effects.js lights the current one. */

.dot-nav {
	position: fixed;
	top: 50%;
	left: 2rem;
	z-index: 998;
	transform: translateY(-50%);
}

.dot-nav--right {
	left: auto;
	right: 2rem;
}

.dot-nav ul {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dot-nav__link {
	position: relative;
	display: flex;
	align-items: center;
	padding: 4px;
	text-decoration: none;
}

.dot-nav__dot {
	display: block;
	width: 9px;
	height: 9px;
	border: 1px solid rgb(255 255 255 / 0.7);
	border-radius: 50%;
	background-color: rgb(0 0 0 / 0.7);
	opacity: 0.7;
	transition: background-color var(--t-fast), opacity var(--t-fast);
}

.dot-nav__link:hover .dot-nav__dot,
.dot-nav__link.is-active .dot-nav__dot {
	background-color: #fff;
	opacity: 1;
}

.dot-nav__label {
	position: absolute;
	top: 50%;
	left: calc(100% + 0.5rem);
	padding: 0.4rem 0.9rem;
	border-radius: 4px;
	background-color: rgb(0 0 0 / 0.85);
	color: #fff;
	font-family: var(--f-display);
	font-size: 0.875rem;
	letter-spacing: 0.06em;
	white-space: nowrap;
	text-transform: uppercase;
	opacity: 0;
	visibility: hidden;
	transform: translate(-6px, -50%);
	transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s linear var(--t-fast);
}

.dot-nav--right .dot-nav__label {
	left: auto;
	right: calc(100% + 0.5rem);
	transform: translate(6px, -50%);
}

.dot-nav__link:hover .dot-nav__label,
.dot-nav__link:focus-visible .dot-nav__label {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%);
	transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s;
}

.dot-nav__link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	border-radius: 50%;
}

/* Signed in (the CMS overlay adds a .fj-rail mover to every section): step
   the dots right of the rails, put the dots' own Edit pencil under them, and
   drop their mover — where the block sits in the body doesn't change anything. */
body:has(.fj-rail) .dot-nav--left { left: 76px; }
.dot-nav > .fj-rail { display: none; }
.dot-nav > .fj-pencil {
	top: calc(100% + 12px);
	right: auto;
	left: -8px;
}

/* The menu button sits upper left; the dots stay clear of it by being centred.
   Phones navigate by scrolling. */
@media (max-width: 781px) {
	.dot-nav { display: none; }
}


/* 18. Audio player block ----------------------------------------------------- */
/* blocks/audio-player: one recording (.audio-btn) or a playlist (.audio-playlist),
   both through the footer player (assets/js/jukebox.js). Dark by design: it
   lives in rows over images. */

.audio-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	margin-block: var(--gap-sm);
	padding: 10px 18px 10px 12px;
	border: 1px solid rgb(255 255 255 / 0.7);
	border-radius: var(--radius);
	background-color: rgb(0 0 0 / 0.6);
	color: #fff;
	font-family: var(--f-ui);
	font-size: var(--fs-sm);
	letter-spacing: 0.06em;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.audio-btn svg {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.audio-btn:hover,
.audio-btn:focus-visible,
.audio-btn[aria-pressed="true"] {
	border-color: #fff;
	background-color: #fff;
	color: #000;
}

.audio-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.audio-btn.is-playing svg {
	animation: track-pulse 1.2s ease-in-out infinite;
}

.band--center .audio-btn { align-self: center; }

/* Image variant: the picture with a play mark, the title under it. */
.audio-btn--image {
	flex-direction: column;
	align-items: stretch;
	gap: var(--gap-sm);
	max-width: 400px;
	padding: 0;
	border: 0;
	background: none;
	text-transform: none;
}

.audio-btn--image:hover,
.audio-btn--image:focus-visible,
.audio-btn--image[aria-pressed="true"] {
	background: none;
	color: #fff;
}

.audio-btn__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
}

.audio-btn__media img {
	width: 100%;
	transition: transform var(--t-fast);
}

.audio-btn--image:hover .audio-btn__media img { transform: scale(1.03); }

.audio-btn__mark {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	padding: 14px;
	border-radius: 50%;
	background-color: rgb(0 0 0 / 0.7);
	transform: translate(-50%, -50%);
	transition: background-color var(--t-fast);
}

.audio-btn--image .audio-btn__mark svg {
	flex-basis: 40px;
	width: 40px;
	height: 40px;
	fill: #fff;
}

.audio-btn--image:hover .audio-btn__mark,
.audio-btn--image[aria-pressed="true"] .audio-btn__mark {
	background-color: rgb(0 0 0 / 0.9);
}

.audio-btn--image .audio-btn__title {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Playlist — the WordPress ACF player's look: black header with the play
   button and Autoplay switch, the track name in a box, a ruled list with the
   current track in blue. */
.audio-playlist {
	width: 100%;
	margin-top: var(--gap-md);
	color: #fff;
	font-family: "Open Sans", var(--f-ui);
	font-size: 14px;
}

.audio-playlist__head {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px;
	border: 1px solid #3a3a3a;
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	background-color: #000;
}

/* List hidden: the header closes itself off. */
.audio-playlist:has(.audio-playlist__list[hidden]) .audio-playlist__head {
	border-bottom: 1px solid #3a3a3a;
	border-radius: 10px;
}

.audio-playlist__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.audio-playlist__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
	border: 2px solid rgb(255 255 255 / 0.24);
	border-radius: 25px;
	background-color: #333;
	cursor: pointer;
	transition: background-color 0.3s;
}

.audio-playlist__play svg {
	width: 24px;
	height: 24px;
	fill: #fff;
}

.audio-playlist__play:hover,
.audio-playlist__play:focus-visible {
	background-color: #555;
}

.audio-playlist__play:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.audio-playlist__icon-pause,
.audio-playlist.is-playing .audio-playlist__icon-play { display: none; }
.audio-playlist.is-playing .audio-playlist__icon-pause { display: block; }

.audio-playlist__now {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 5px;
	border: 1px solid rgb(88 88 88);
	border-radius: 6px;
	background-color: #292929;
}

.audio-playlist__title {
	overflow: hidden;
	padding: 5px;
	font-size: 12px;
	line-height: 1.25em;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Autoplay switch: a real checkbox, drawn as a toggle. */
.audio-playlist__auto {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	user-select: none;
}

.audio-playlist__auto input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.audio-playlist__switch {
	position: relative;
	width: 44px;
	height: 24px;
	border-radius: 24px;
	background-color: #ccc;
	transition: background-color 0.3s;
}

.audio-playlist__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #fff;
	box-shadow: 0 2px 4px rgb(0 0 0 / 0.2);
	transition: transform 0.3s;
}

.audio-playlist__auto input:checked + .audio-playlist__switch {
	background-color: #336699;
}

.audio-playlist__auto input:checked + .audio-playlist__switch::after {
	transform: translateX(20px);
}

.audio-playlist__auto input:focus-visible + .audio-playlist__switch {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.audio-playlist__list {
	max-height: 400px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid #3a3a3a;
	border-radius: 0 0 10px 10px;
	background-color: #000;
	list-style: none;
}

.audio-playlist__list li + li {
	border-top: 1px solid #3a3a3a;
}

.audio-playlist__item {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 12px 15px;
	border: 0;
	background-color: #000;
	color: #efefef;
	font: inherit;
	line-height: 1.25em;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s;
}

.audio-playlist__item:hover,
.audio-playlist__item:focus-visible {
	background-color: #363636;
	color: #fff;
}

.audio-playlist__item:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

.audio-playlist__item[aria-pressed="true"] {
	background-color: #264c71;
	color: #fff;
	font-weight: 600;
}

@media (hover: none) and (pointer: coarse) {
	.audio-playlist__item:hover { background-color: #000; color: #efefef; }
	.audio-playlist__item[aria-pressed="true"]:hover { background-color: #264c71; color: #fff; }
}

/* Panels in a full-width row: transparent columns side by side over the
   row's background — text beside a player, say. They stack on phones. */
.band__inner > .panel {
	padding: 0;
	background: none;
	color: inherit;
}

.band__inner > .panel > .panel__inner {
	max-width: none;
}

.band__inner:has(> .panel ~ .panel) {
	flex-direction: row;
	align-items: center;
	gap: var(--gap-lg) clamp(var(--gap-lg), 5vw, 80px);
}

.band__inner:has(> .panel ~ .panel) > .panel {
	flex: 1 1 0;
	min-width: 0;
}

.band__inner:has(> .panel ~ .panel) > .band__next {
	align-self: flex-end;
}

@media (max-width: 781px) {
	.band__inner:has(> .panel ~ .panel) {
		flex-direction: column;
		align-items: stretch;
	}
}

@media (prefers-reduced-motion: reduce) {
	.audio-btn.is-playing svg { animation: none; }
}
