/* Voice of the Valleys: documentary theme.
 * Hover changes light only (colour, tint, border). Nothing moves or grows. */

:root {
	--bg: #0c0c0d;
	--bg-2: #131315;
	--bg-3: #1b1b1e;
	--line: #2a2a2e;
	--line-2: #3a3a3f;
	--ink: #f1eee8;
	--ink-2: #c2bdb3;
	--ink-3: #8f8a81;
	--red: #c8102e;
	--red-hover: #dc2440;
	--red-glow: rgba(200, 16, 46, 0.16);
	--tint: rgba(241, 238, 232, 0.06);

	--display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--serif: 'Source Serif 4', Georgia, serif;

	--wrap: 1320px;
	--narrow: 720px;
	--gutter: clamp(16px, 4vw, 48px);
	--header: 80px;
	--adminbar: 0px;
	--green: #00b140;
	--dragon: #d4102c;
	--radius: 4px;
	--ease: 0.2s ease;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header) + var(--adminbar) + 16px);
}

/* Logged in, the admin bar sits above the header. On phones it scrolls
   away, and site.js keeps --adminbar on its bottom edge. */
.admin-bar {
	--adminbar: 32px;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Film grain over everything, very faint. */
body::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 100;
	pointer-events: none;
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: 0.005em;
	text-wrap: balance;
}

p, li, figcaption, blockquote {
	text-wrap: pretty;
}

p {
	margin: 0 0 1em;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color var(--ease), background-color var(--ease), border-color var(--ease), box-shadow var(--ease), filter var(--ease), opacity var(--ease);
}

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

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--red-hover);
	outline-offset: 3px;
}

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

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

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 200;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--bg);
	font-weight: 600;
}

.skip-link:focus {
	top: 16px;
}

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

.wrap-narrow {
	max-width: calc(var(--narrow) + 2 * var(--gutter));
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin: 0 0 0.9rem;
	font: 600 0.8125rem/1.2 var(--sans);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-3);
	text-wrap: balance;
}

.eyebrow a {
	text-decoration: none;
}

.eyebrow a:hover {
	color: var(--ink);
}

/* ------------------------------------------------------------------
 * Buttons and links
 * ------------------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 46px;
	padding: 0.7em 1.35em;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background-color: transparent;
	color: var(--ink);
	font: 600 0.9375rem/1 var(--sans);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}

.btn .icon {
	font-size: 1.1em;
}

.btn-sm {
	min-height: 38px;
	padding: 0.55em 1em;
	font-size: 0.8125rem;
}

.btn-lg {
	min-height: 54px;
	padding: 0.85em 1.6em;
	font-size: 1rem;
}

.btn-red {
	background-color: var(--red);
	border-color: var(--red);
	color: #fff;
}

.btn-red:hover {
	background-color: var(--red-hover);
	border-color: #ff6077;
	box-shadow: 0 0 0 4px var(--red-glow);
}

.btn-ghost {
	background-color: rgba(12, 12, 13, 0.35);
	border-color: rgba(241, 238, 232, 0.35);
}

.btn-ghost:hover {
	background-color: var(--tint);
	border-color: var(--ink);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font: 600 0.875rem/1.2 var(--sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	border-bottom: 1px solid var(--line-2);
	padding-bottom: 0.3em;
}

.text-link:hover {
	color: #fff;
	border-color: var(--red);
}

.text-link .icon {
	color: var(--red);
}

/* ------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: var(--adminbar);
	z-index: 50;
	height: var(--header);
	background: rgba(12, 12, 13, 0.92);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.has-hero .site-header {
	position: fixed;
	inset: var(--adminbar) 0 auto;
	background: linear-gradient(rgba(12, 12, 13, 0.7), rgba(12, 12, 13, 0));
	border-color: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.has-hero .site-header.is-scrolled {
	background: rgba(12, 12, 13, 0.92);
	border-color: var(--line);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.header-row {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 100%;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-right: auto;
	text-decoration: none;
}

.brand-logo {
	width: 76px;
}

/* The logo in three layers. Each is a mask filled with colour, and on
   hover the colour sweeps across: the first V to Welsh green, then the
   dragon O to red. Nothing moves. */
.logo-mark {
	position: relative;
	display: block;
	aspect-ratio: 480 / 328;
}

.logo-fallback {
	width: 100%;
	height: auto;
}

@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
	.logo-fallback {
		visibility: hidden;
	}

	.logo-layer {
		position: absolute;
		inset: 0;
		--fill: var(--ink);
		background-image: linear-gradient(90deg, var(--fill) 0 46%, var(--ink) 54% 100%);
		background-size: 220% 100%;
		background-position: 100% 0;
		-webkit-mask: var(--mask) center / contain no-repeat;
		mask: var(--mask) center / contain no-repeat;
		transition: background-position 0.55s cubic-bezier(0.6, 0, 0.2, 1);
	}

	/* The whole logo as the base, so no seam shows where the layers meet. */
	.logo-rest {
		--mask: url(../img/votv-logo.png);
	}

	.logo-v {
		--mask: url(../img/logo-v.png);
		--fill: var(--green);
	}

	.logo-dragon {
		--mask: url(../img/logo-dragon.png);
		--fill: var(--dragon);
		transition-duration: 0.75s;
		transition-delay: 0.12s;
	}

	.brand:hover .logo-v,
	.brand:hover .logo-dragon,
	.brand:focus-visible .logo-v,
	.brand:focus-visible .logo-dragon,
	.footer-logo-link:hover .logo-v,
	.footer-logo-link:hover .logo-dragon,
	.footer-logo-link:focus-visible .logo-v,
	.footer-logo-link:focus-visible .logo-dragon,
	.about-mark:hover .logo-v,
	.about-mark:hover .logo-dragon {
		background-position: 0 0;
	}

	.brand:hover .logo-dragon,
	.footer-logo-link:hover .logo-dragon,
	.about-mark:hover .logo-dragon {
		animation: dragon-glow 1.6s 0.7s ease-in-out;
	}
}

@keyframes dragon-glow {
	40% { filter: brightness(1.35) saturate(1.2); }
}

.brand-name {
	font: 700 1.25rem/1 var(--display);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.brand:hover .brand-name {
	color: #fff;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.nav-list {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--radius);
	font: 600 0.875rem/1 var(--sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink-2);
}

.nav-list a:hover {
	color: var(--ink);
	background-color: var(--tint);
}

.nav-list .current-menu-item > a,
.nav-list a[aria-current] {
	color: var(--ink);
	box-shadow: inset 0 -2px 0 var(--red);
	border-radius: 0;
}

.platform-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.platform-icons a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	color: var(--ink-3);
	font-size: 17px;
}

.platform-icons a:hover {
	color: var(--ink);
	background-color: var(--tint);
	border-color: var(--line-2);
}

.nav-platforms {
	display: none;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Each piece of text is in the page in both languages; the one that is not on is hidden (inc/welsh.php, site.js). */
html:not([data-site-lang='cy']) [data-t='cy'],
html[data-site-lang='cy'] [data-t='en'] {
	display: none !important;
}

/* Welsh set a little smaller where it would run to an extra line, so a page keeps the English line count (assets/js/fit.js). */
html[data-site-lang='cy'] [data-cyf] {
	font-size: calc(var(--cyf, 1) * 1em);
}

/* A film whose title is Welsh shows its English title under it in English. In Welsh the line is kept as blank space, so the hero is the same height. */
html[data-site-lang='cy'] .hero-translation[data-t='en'] {
	display: block !important;
	visibility: hidden;
}

/* The language: one link offering the other language, so the one that is on is hidden. */
.site-lang {
	display: flex;
	align-items: center;
	margin-right: 8px;
	padding-left: 20px;
	border-left: 1px solid var(--line-2);
}

.site-lang button {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: 600 0.9375rem/1 var(--sans);
	cursor: pointer;
}

.site-lang button:hover {
	color: var(--ink-2);
}

.site-lang button[aria-pressed='true'] {
	display: none;
}

.site-lang svg {
	width: 16px;
	height: 16px;
	flex: none;
}

.site-lang button > span {
	text-decoration: underline;
	text-decoration-color: var(--red);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* Between the phone menu and a wide window the header has no room for the name beside the logo, which has the wordmark in it. */
@media (min-width: 901px) and (max-width: 1060px) {
	.brand-name {
		display: none;
	}
}

/* Where the header is tight, down to phones, the link is short: Cy or En. */
@media (max-width: 1120px) {
	.site-lang {
		margin-right: 0;
		padding-left: 0;
		border-left: 0;
	}

	.site-lang .rest {
		display: none;
	}
}

.nav-toggle {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background: transparent;
	font-size: 22px;
	cursor: pointer;
}

.nav-toggle:hover {
	background-color: var(--tint);
	border-color: var(--ink-3);
}

.nav-toggle .icon-close,
.nav-open .nav-toggle .icon-open {
	display: none;
}

.nav-open .nav-toggle .icon-close {
	display: block;
}

@media (max-width: 1120px) {
	.site-nav > .platform-icons:not(.nav-platforms) {
		display: none;
	}
}

@media (max-width: 900px) {
	/* A header with backdrop-filter becomes the containing block for the fixed menu, so the menu shrank into the 80px bar. No blur here keeps it full screen. */
	.site-header,
	.has-hero .site-header.is-scrolled {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.nav-toggle {
		display: grid;
	}

	.site-nav {
		position: fixed;
		inset: calc(var(--header) + var(--adminbar)) 0 0;
		z-index: 40;
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
		padding: 32px var(--gutter) 48px;
		background: var(--bg);
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transition: opacity 0.2s ease, visibility 0.2s;
	}

	.nav-open .site-nav {
		visibility: visible;
		opacity: 1;
	}

	.nav-open .site-header {
		background: var(--bg);
		border-color: var(--line);
	}

	.nav-list {
		flex-direction: column;
		gap: 0;
	}

	.nav-list a {
		padding: 18px 0;
		border-bottom: 1px solid var(--line);
		border-radius: 0;
		font: 700 2.25rem/1 var(--display);
		letter-spacing: 0.04em;
		color: var(--ink);
	}

	.nav-list a:hover {
		background: none;
		color: #fff;
		border-color: var(--red);
	}

	.nav-list .current-menu-item > a,
	.nav-list a[aria-current] {
		box-shadow: none;
		color: var(--red-hover);
	}

	.nav-platforms {
		display: flex;
	}

	.nav-platforms a {
		width: 48px;
		height: 48px;
		font-size: 22px;
		border-color: var(--line);
	}
}

@media (max-width: 560px) {
	/* Hidden from view, still the link's name for screen readers. */
	.brand-name {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.brand-logo {
		width: 68px;
	}
}

/* ------------------------------------------------------------------
 * Hero: the lead film
 * ------------------------------------------------------------------ */

.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: max(620px, 100svh);
	overflow: hidden;
	isolation: isolate;
}

.hero-media {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--bg);
}

.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	filter: grayscale(0.85) contrast(1.1) brightness(0.62);
}

/* Letterbox bars and a vignette for the documentary frame. */
.hero-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, var(--bg) 2%, rgba(12, 12, 13, 0.75) 32%, rgba(12, 12, 13, 0.15) 62%, rgba(12, 12, 13, 0.85)),
		radial-gradient(ellipse at 30% 60%, transparent 40%, rgba(0, 0, 0, 0.55));
}

.hero-body {
	padding-top: calc(var(--header) + var(--adminbar) + 48px);
	padding-bottom: clamp(48px, 8vh, 96px);
}

.hero-eyebrow {
	color: var(--ink);
}

.rec {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--red);
	box-shadow: 0 0 0 4px var(--red-glow);
	animation: rec 1.6s ease-in-out infinite;
}

@keyframes rec {
	50% { opacity: 0.35; }
}

.hero-title {
	max-width: 12ch;
	margin: 0;
	font-size: clamp(3.75rem, 12vw, 10.5rem);
	font-weight: 800;
	line-height: 0.86;
	letter-spacing: -0.005em;
	text-transform: uppercase;
}

.hero-translation {
	margin: 0.6rem 0 0;
	font: 500 clamp(1.25rem, 2.4vw, 1.75rem)/1.2 var(--display);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ink-3);
	text-wrap: balance;
}

/* Kept to one line. On phones the size follows the screen width so it fits. */
.hero-subtitle {
	margin: 1.5rem 0 0;
	padding-left: 18px;
	border-left: 3px solid var(--red);
	font: 400 clamp(1.25rem, 2.2vw, 1.625rem)/1.35 var(--serif);
	font-style: italic;
	color: var(--ink);
	white-space: nowrap;
}

@media (max-width: 600px) {
	.hero-subtitle {
		padding-left: 14px;
		font-size: min(1.25rem, 4.4vw);
	}
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 2.25rem;
}

.hero-kicker {
	margin: 1.25rem 0 0;
	font-size: 0.9375rem;
	color: var(--ink-3);
}

.hero-strip {
	border-top: 1px solid var(--line);
	background: var(--bg);
}

.hero-strip-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	padding-block: 14px;
	font: 600 0.75rem/1.2 var(--sans);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.hero-strip-inner span + span::before {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-right: 32px;
	vertical-align: middle;
	background: var(--red);
}

@media (max-width: 560px) {
	.hero-actions .btn {
		flex: 1 1 100%;
	}

	.hero-strip {
		display: none;
	}
}

/* ------------------------------------------------------------------
 * Sections
 * ------------------------------------------------------------------ */

.section {
	padding-block: clamp(56px, 8vw, 112px);
}

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

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: clamp(24px, 3vw, 40px);
}

.section-title {
	margin: 0;
	font-size: clamp(2.25rem, 5vw, 4rem);
	font-weight: 800;
	line-height: 0.95;
	text-transform: uppercase;
}

.section-intro {
	max-width: 52ch;
	margin: 0.9rem 0 0;
	color: var(--ink-2);
}

.intro {
	padding-block: clamp(56px, 8vw, 112px);
	border-bottom: 1px solid var(--line);
}

.intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 32px clamp(32px, 6vw, 96px);
	align-items: end;
}

.intro-statement {
	margin: 0;
	font: 700 clamp(2rem, 4.4vw, 3.5rem)/1.02 var(--display);
	text-transform: uppercase;
	text-wrap: balance;
}

.intro-copy p {
	color: var(--ink-2);
	font-size: 1.125rem;
}

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

/* ------------------------------------------------------------------
 * Video cards, rail and grid
 * ------------------------------------------------------------------ */

.video-card {
	min-width: 0;
}

.video-card-link {
	display: block;
	text-decoration: none;
}

.video-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-3);
	transition: border-color var(--ease), box-shadow var(--ease);
}

.video-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(0.7) contrast(1.05) brightness(0.85);
	transition: filter 0.3s ease;
}

.video-play {
	position: absolute;
	left: 14px;
	bottom: 14px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(241, 238, 232, 0.5);
	border-radius: 50%;
	background: rgba(12, 12, 13, 0.6);
	font-size: 16px;
	transition: background-color var(--ease), border-color var(--ease);
}

.video-play .icon {
	margin-left: 2px;
}

.video-number {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 4px 8px;
	border-radius: 2px;
	background: rgba(12, 12, 13, 0.8);
	font: 700 0.875rem/1 var(--display);
	letter-spacing: 0.08em;
}

.video-card-link:hover .video-thumb {
	border-color: var(--red);
	box-shadow: 0 0 0 3px var(--red-glow);
}

.video-card-link:hover .video-thumb img {
	filter: grayscale(0) contrast(1.05) brightness(1);
}

.video-card-link:hover .video-play {
	background: var(--red);
	border-color: var(--red);
}

.video-meta {
	display: block;
	padding-top: 14px;
}

.video-series,
.video-tag {
	display: block;
	font: 600 0.75rem/1.3 var(--sans);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--red-hover);
}

.video-tag {
	margin-top: 6px;
	color: var(--ink-3);
	letter-spacing: 0.1em;
}

.video-title {
	display: block;
	margin-top: 6px;
	font: 600 1.375rem/1.1 var(--display);
	color: var(--ink);
	text-wrap: balance;
}

.video-card-link:hover .video-title {
	color: #fff;
}

.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 40px 24px;
}

.rail-section .section-head {
	align-items: center;
}

.slider {
	padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

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

.slider.is-live {
	overflow: hidden;
	touch-action: pan-y;
}

.slider.is-looping {
	cursor: grab;
}

.slider.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.slider.is-dragging a {
	pointer-events: none;
}

.slider-track {
	display: flex;
	width: max-content;
	will-change: transform;
}

.slider-set {
	display: flex;
	gap: 24px;
	padding-right: 24px;
}

.slider-set .video-card {
	flex: 0 0 min(78vw, 400px);
}

.slider-set img {
	-webkit-user-drag: none;
}

[data-slider-copy] {
	display: none;
}

.slider.is-looping [data-slider-copy] {
	display: flex;
}

.rail-controls {
	display: flex;
	gap: 8px;
}

.rail-btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: transparent;
	font-size: 20px;
	cursor: pointer;
	transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.rail-btn:hover {
	background-color: var(--tint);
	border-color: var(--ink);
}

.rail-btn:disabled {
	opacity: 0.35;
	cursor: default;
	background: transparent;
	border-color: var(--line-2);
}

.filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 40px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font: 600 0.875rem/1 var(--sans);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink-2);
}

.chip:hover {
	color: var(--ink);
	background-color: var(--tint);
	border-color: var(--ink-3);
}

.chip.is-active {
	color: #fff;
	background-color: var(--red);
	border-color: var(--red);
}

.chip-count {
	font-size: 0.75rem;
	opacity: 0.7;
}

.more-row {
	display: flex;
	justify-content: center;
	margin-top: 56px;
}

/* ------------------------------------------------------------------
 * Articles
 * ------------------------------------------------------------------ */

.article-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 40px 24px;
}

.article-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 48px 24px;
}

.article-card-link {
	display: block;
	text-decoration: none;
}

.article-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-3);
	transition: border-color var(--ease), box-shadow var(--ease);
}

.article-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(0.5) brightness(0.9);
	transition: filter 0.3s ease;
}

.article-thumb .article-thumb-logo {
	width: 40%;
	height: 100%;
	margin: auto;
	object-fit: contain;
	opacity: 0.25;
}

.article-card-link:hover .article-thumb {
	border-color: var(--red);
	box-shadow: 0 0 0 3px var(--red-glow);
}

.article-card-link:hover .article-thumb img {
	filter: none;
}

.article-meta {
	display: block;
	padding-top: 16px;
}

.article-kicker {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font: 600 0.75rem/1.3 var(--sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.article-title {
	display: block;
	margin-top: 8px;
	font: 700 1.625rem/1.08 var(--display);
	text-wrap: balance;
}

.article-excerpt {
	display: block;
	margin-top: 10px;
	color: var(--ink-2);
	font: 400 1.0625rem/1.55 var(--serif);
	text-wrap: pretty;
}

.article-card-link:hover .article-title {
	color: #fff;
}

.article-card.is-large {
	grid-column: 1 / -1;
}

.article-card.is-large .article-card-link {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
}

.article-card.is-large .article-meta {
	padding: 0;
}

.article-card.is-large .article-title {
	font-size: clamp(2rem, 4vw, 3.25rem);
	text-transform: uppercase;
	line-height: 0.98;
}

@media (max-width: 800px) {
	.article-card.is-large .article-card-link {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

.article-header {
	padding: clamp(48px, 7vw, 96px) 0 40px;
}

.article-heading {
	font-size: clamp(2.5rem, 6vw, 4.75rem);
	font-weight: 800;
	line-height: 0.95;
	text-transform: uppercase;
}

.article-standfirst {
	margin: 1rem 0 0;
	font: 400 clamp(1.25rem, 2vw, 1.5rem)/1.4 var(--serif);
	color: var(--ink-2);
	text-wrap: pretty;
}

.article-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 1.75rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	font: 600 0.8125rem/1.3 var(--sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.article-figure {
	margin: 0 auto 48px;
}

.article-figure img {
	width: 100%;
	border-radius: var(--radius);
}

.article-figure figcaption {
	margin-top: 10px;
	font-size: 0.875rem;
	color: var(--ink-3);
}

.article-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-block: 48px clamp(56px, 8vw, 96px);
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.article-tags a {
	padding: 6px 12px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-size: 0.8125rem;
	text-decoration: none;
	color: var(--ink-2);
}

.article-tags a:hover {
	color: var(--ink);
	border-color: var(--ink-3);
	background-color: var(--tint);
}

/* ------------------------------------------------------------------
 * Long-form text (articles and pages)
 * ------------------------------------------------------------------ */

.prose {
	font: 400 1.1875rem/1.7 var(--serif);
	color: var(--ink-2);
}

.prose > * {
	max-width: var(--narrow);
}

.prose > :first-child {
	margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
	margin: 2em 0 0.6em;
	color: var(--ink);
}

.prose h1,
.prose h2 {
	font-size: clamp(1.875rem, 3.5vw, 2.5rem);
	text-transform: uppercase;
}

.prose h3 {
	font-size: 1.75rem;
}

.prose p,
.prose ul,
.prose ol {
	margin: 0 0 1.2em;
}

.prose a {
	color: var(--ink);
	text-decoration-color: var(--red);
}

.prose a:hover {
	color: #fff;
	text-decoration-thickness: 2px;
}

.prose strong {
	color: var(--ink);
}

.prose blockquote {
	margin: 2em 0;
	padding: 0 0 0 24px;
	border-left: 3px solid var(--red);
	font-size: 1.375rem;
	font-style: italic;
	color: var(--ink);
}

.prose figure {
	margin: 2em 0;
}

.prose figcaption {
	margin-top: 8px;
	font: 400 0.875rem/1.4 var(--sans);
	color: var(--ink-3);
}

.prose img {
	border-radius: var(--radius);
}

.prose hr {
	margin: 3em 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.prose .alignwide,
.prose .alignfull {
	max-width: none;
}

.prose .wp-block-embed iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.prose .wp-block-button__link {
	display: inline-flex;
	padding: 0.7em 1.35em;
	border: 1px solid var(--red);
	border-radius: var(--radius);
	background-color: var(--red);
	color: #fff;
	font: 600 0.9375rem/1 var(--sans);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.prose .wp-block-button__link:hover {
	background-color: var(--red-hover);
	border-color: #ff6077;
}

/* ------------------------------------------------------------------
 * Page header, about, contact, empty states
 * ------------------------------------------------------------------ */

.page-header {
	padding: clamp(56px, 9vw, 128px) 0 clamp(40px, 5vw, 64px);
	border-bottom: 1px solid var(--line);
	background:
		linear-gradient(to bottom, rgba(200, 16, 46, 0.08), transparent 70%),
		var(--bg);
}

.page-header-photo {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: clamp(380px, 56vh, 600px);
	background: var(--bg);
}

.page-header-photo::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, var(--bg) 3%, rgba(12, 12, 13, 0.6) 42%, rgba(12, 12, 13, 0.3) 75%, rgba(12, 12, 13, 0.55)),
		var(--photo, none) center 58% / cover no-repeat;
	filter: saturate(0.75) contrast(1.05);
}

.page-header-photo .page-intro,
.page-header-photo .eyebrow {
	color: var(--ink);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.page-title {
	margin: 0;
	font-size: clamp(3.5rem, 10vw, 8rem);
	font-weight: 800;
	line-height: 0.88;
	text-transform: uppercase;
}

.page-intro {
	max-width: 46ch;
	margin: 1.25rem 0 0;
	font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
	color: var(--ink-2);
	text-wrap: balance;
}

.about-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 48px clamp(32px, 6vw, 96px);
	align-items: start;
}

.about-mark {
	padding: clamp(24px, 4vw, 56px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: radial-gradient(circle at 50% 40%, var(--bg-3), var(--bg-2));
}

.about-copy {
	font-size: 1.3125rem;
}

.about-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 2em;
}

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

	.about-mark {
		max-width: 360px;
	}
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 48px clamp(32px, 6vw, 96px);
}

.contact-heading {
	margin: 0 0 0.6rem;
	font-size: 1.75rem;
	text-transform: uppercase;
}

.contact-aside p {
	color: var(--ink-2);
}

.contact-aside .contact-heading + .platform-icons {
	margin-top: 4px;
}

.contact-email {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0.5rem 0 2.5rem;
	font-weight: 600;
	text-decoration: none;
	word-break: break-word;
	border-bottom: 1px solid var(--line-2);
	padding-bottom: 4px;
}

.contact-email .icon {
	color: var(--red);
	font-size: 1.2em;
}

.contact-email:hover {
	color: #fff;
	border-color: var(--red);
}

.contact-platforms a {
	border-color: var(--line);
}

.contact-form-wrap {
	padding: clamp(24px, 4vw, 48px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-2);
}

.field {
	margin: 0 0 20px;
}

.field label {
	display: block;
	margin-bottom: 8px;
	font: 600 0.8125rem/1.2 var(--sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-2);
}

.field input,
.field textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background: var(--bg);
	color: var(--ink);
	font: 400 1.0625rem/1.5 var(--sans);
	transition: border-color var(--ease), box-shadow var(--ease);
}

.field input:hover,
.field textarea:hover {
	border-color: var(--ink-3);
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--red);
	box-shadow: 0 0 0 3px var(--red-glow);
}

.field textarea {
	resize: vertical;
	min-height: 160px;
}

.field-hp {
	position: absolute;
	left: -9999px;
}

.notice {
	margin: 0 0 24px;
	padding: 14px 18px;
	border-radius: var(--radius);
	border: 1px solid;
}

.notice-success {
	border-color: rgba(80, 200, 120, 0.5);
	background: rgba(80, 200, 120, 0.1);
}

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

.empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 560px;
}

.empty p {
	margin: 0;
	color: var(--ink-2);
}

.empty-title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 2.75rem);
	text-transform: uppercase;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 56px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	text-decoration: none;
	font-weight: 600;
}

.pagination a.page-numbers:hover {
	background-color: var(--tint);
	border-color: var(--ink);
}

.pagination .current {
	background-color: var(--red);
	border-color: var(--red);
}

/* ------------------------------------------------------------------
 * Platforms
 * ------------------------------------------------------------------ */

.platform-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.platform-tile {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-rows: auto auto;
	align-items: center;
	gap: 2px 16px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-2);
	text-decoration: none;
	transition: background-color var(--ease), border-color var(--ease);
}

.platform-icon {
	grid-row: 1 / 3;
	font-size: 28px;
	color: var(--ink-2);
	transition: color var(--ease);
}

.platform-name {
	font: 700 1.375rem/1 var(--display);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.platform-note {
	grid-column: 2;
	font-size: 0.875rem;
	color: var(--ink-3);
}

.platform-chevron {
	grid-column: 3;
	grid-row: 1 / 3;
	font-size: 18px;
	color: var(--ink-3);
	transition: color var(--ease);
}

.platform-tile:hover {
	background-color: var(--bg-3);
	border-color: var(--red);
}

.platform-tile:hover .platform-icon {
	color: var(--ink);
}

.platform-tile:hover .platform-chevron {
	color: var(--red-hover);
}

/* ------------------------------------------------------------------
 * Support band and footer
 * ------------------------------------------------------------------ */

.support {
	padding-block: clamp(56px, 8vw, 112px);
	border-top: 1px solid var(--line);
	background:
		radial-gradient(ellipse at 15% 0%, rgba(200, 16, 46, 0.22), transparent 55%),
		var(--bg-2);
}

.support-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 40px clamp(32px, 6vw, 96px);
	align-items: center;
}

.support-title {
	margin: 0 0 1rem;
	font-size: clamp(2.5rem, 6vw, 4.75rem);
	font-weight: 800;
	line-height: 0.92;
	text-transform: uppercase;
}

.support-copy p:last-child {
	max-width: 50ch;
	margin: 0;
	font-size: 1.125rem;
	color: var(--ink-2);
}

.support-links {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.support-link {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 64px;
	padding: 0 20px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background-color: rgba(12, 12, 13, 0.5);
	font: 700 1.375rem/1 var(--display);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}

.support-icon {
	font-size: 24px;
	color: var(--red-hover);
}

.support-chevron {
	margin-left: auto;
	font-size: 20px;
	color: var(--ink-3);
	transition: color var(--ease);
}

.support-link:hover {
	background-color: var(--red);
	border-color: #ff6077;
	color: #fff;
}

.support-link:hover .support-icon,
.support-link:hover .support-chevron {
	color: #fff;
}

@media (max-width: 800px) {
	.support-inner {
		grid-template-columns: 1fr;
	}
}

.site-footer {
	position: relative;
	overflow: hidden;
	padding-top: clamp(48px, 6vw, 80px);
	border-top: 1px solid var(--line);
	background: var(--bg);
	font-size: 0.9375rem;
}

/* The Welsh flag as a quiet panel on the right, fading in from the left. */
.site-footer::before {
	content: '';
	position: absolute;
	top: -12%;
	right: -5%;
	width: min(780px, 60vw);
	height: 135%;
	background: url(../img/flag-wales.svg) center / cover no-repeat;
	opacity: 0.13;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 38%, #000 100%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 38%, #000 100%);
	pointer-events: none;
}

.site-footer > .wrap {
	position: relative;
	z-index: 1;
}

@media (max-width: 800px) {
	.site-footer::before {
		width: 100%;
		right: -30%;
		opacity: 0.1;
	}
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 1fr);
	gap: 40px;
	padding-bottom: 48px;
}

.footer-logo-link {
	display: inline-block;
	margin-bottom: 16px;
}

.footer-logo {
	width: 128px;
}

.footer-brand p {
	max-width: 34ch;
	color: var(--ink-3);
}

.footer-heading {
	margin: 0 0 16px;
	font: 600 0.75rem/1.2 var(--sans);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.footer-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-list a {
	font: 600 1.25rem/1 var(--display);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink-2);
}

.footer-list a:hover {
	color: var(--ink);
}

.footer-platforms {
	margin: -8px 0 20px -8px;
}

.footer-follow .text-link {
	text-transform: none;
	letter-spacing: 0.02em;
	font-size: 0.9375rem;
}

.footer-base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 20px 28px;
	border-top: 1px solid var(--line);
	font-size: 0.8125rem;
	color: var(--ink-3);
}

.footer-base p {
	margin: 0;
}

.footer-base {
	align-items: center;
}

.footer-credit {
	display: flex;
	align-items: center;
	gap: 12px;
}

.footer-credit-by {
	font: 600 0.6875rem/1 var(--sans);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
}

.footer-credit a {
	position: relative;
	display: block;
	line-height: 0;
}

.footer-credit img {
	position: relative;
	z-index: 1;
	display: block;
	width: auto;
	height: 36px;
	transition: opacity 0.4s ease, filter 0.4s ease;
}

.footer-credit .credit-quiet {
	opacity: 0.62;
}

.footer-credit .credit-lit {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.footer-credit a:hover .credit-quiet,
.footer-credit a:focus-visible .credit-quiet {
	opacity: 0;
}

.footer-credit a:hover .credit-lit,
.footer-credit a:focus-visible .credit-lit {
	opacity: 1;
	filter: brightness(1.18) drop-shadow(0 0 10px rgba(236, 220, 182, 0.45));
}

.footer-credit a::before {
	content: '';
	position: absolute;
	inset: -90% -40%;
	z-index: 0;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(236, 210, 150, 0.26), rgba(212, 184, 136, 0.08) 60%, transparent);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease;
}

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

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

	.footer-brand {
		grid-column: 1 / -1;
	}
}

/* ------------------------------------------------------------------
 * Video player
 * ------------------------------------------------------------------ */

.player {
	width: min(1200px, 100vw - 32px);
	max-width: none;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background: #000;
	color: var(--ink);
	overflow: visible;
}

.player::backdrop {
	background: rgba(0, 0, 0, 0.88);
}

.player-frame {
	aspect-ratio: 16 / 9;
}

.player-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.player-close {
	position: absolute;
	right: 0;
	bottom: calc(100% + 12px);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: var(--bg);
	font-size: 20px;
	cursor: pointer;
}

.player-close:hover {
	background-color: var(--bg-3);
	border-color: var(--ink);
}

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

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ------------------------------------------------------------------
 * The Valleys teaser (Home, About) and the small static map
 * ------------------------------------------------------------------ */

.teaser-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
	gap: 40px clamp(32px, 6vw, 96px);
	align-items: center;
}

.teaser-copy .section-intro {
	margin-bottom: 1.5rem;
}

.teaser-map {
	display: block;
	max-width: 440px;
	justify-self: end;
	width: 100%;
	padding: clamp(16px, 3vw, 32px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		radial-gradient(circle at 55% 75%, rgba(200, 16, 46, 0.18), transparent 60%),
		var(--bg-2);
	transition: border-color var(--ease), box-shadow var(--ease);
}

.teaser-map:hover {
	border-color: var(--red);
	box-shadow: 0 0 0 3px var(--red-glow);
}

.teaser-svg,
.vm-static {
	display: block;
	width: 100%;
	height: auto;
}

.mini-a {
	fill: #232327;
	stroke: var(--bg-2);
	stroke-width: 2;
	transition: fill var(--ease);
}

.mini-v {
	fill: var(--red);
	stroke: var(--bg-2);
	stroke-width: 2;
	transition: fill var(--ease);
}

.teaser-map:hover .mini-v {
	fill: var(--red-hover);
}

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

	.teaser-map {
		justify-self: start;
		max-width: 360px;
	}
}
