/* Aggregated Pulse — "Transmission": charcoal, film grain, olive-gold signal from the logo */

:root {
	--bg: #131512;
	--surface: #1b1e1a;
	--text: #e4e4dc;
	--muted: #8d918a;
	--accent: #c9bf52;
	--rule: rgba(228, 228, 220, 0.12);
	--mono: 'Space Mono', ui-monospace, monospace;
	--sans: 'Space Grotesk', system-ui, sans-serif;
	--gutter: clamp(16px, 5vw, 64px);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 72px;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

[hidden] {
	display: none !important;
}

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible {
	outline: 1px solid var(--accent);
	outline-offset: 4px;
}

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

.readout,
.label,
.nav,
.track-no,
.track-year,
.track-go,
.button,
.specs dt,
.channels,
.footer {
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.readout {
	color: var(--muted);
}

/* Navigation */
.nav {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem var(--gutter);
	background: rgba(19, 21, 18, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--rule);
}

.nav-links {
	display: flex;
	gap: clamp(1rem, 3vw, 2.5rem);
}

.nav a {
	color: var(--muted);
	transition: color 0.3s;
}

.nav a:hover {
	color: var(--accent);
}

/* Hero */
.hero {
	min-height: calc(100svh - 64px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2rem;
	padding: 4rem var(--gutter);
}

.hero-title {
	font-weight: 300;
	font-size: clamp(3.5rem, 13vw, 11rem);
	line-height: 0.9;
	letter-spacing: -0.04em;
}

.pulse {
	width: 100%;
	height: clamp(80px, 16vw, 200px);
	overflow: visible;
}

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

.pulse-base {
	stroke: var(--rule);
}

/* A short bright segment travels along the line, like a scope trace */
.pulse-trace {
	stroke: var(--accent);
	stroke-dasharray: 0.22 1;
	stroke-dashoffset: 1.22;
	filter: drop-shadow(0 0 6px var(--accent));
	animation: trace 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes trace {
	to {
		stroke-dashoffset: 0;
	}
}

/* Sections */
.section {
	padding: clamp(4rem, 10vw, 8rem) var(--gutter);
	border-top: 1px solid var(--rule);
}

.label {
	color: var(--accent);
	font-weight: 400;
	margin-bottom: 2.5rem;
}

.latest {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: end;
	margin-bottom: clamp(4rem, 10vw, 7rem);
}

.latest-cover {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
}

.latest-title {
	font-weight: 300;
	font-size: clamp(3rem, 8vw, 6.5rem);
	line-height: 1;
	letter-spacing: -0.03em;
	margin: 0.5rem 0 2rem;
}

.player {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 12px;
	background: var(--surface);
}

.player-label {
	margin-bottom: 0.75rem;
}

.latest-link {
	display: inline-block;
	margin-top: 1.25rem;
	color: var(--accent);
}

.latest-link:hover {
	color: var(--text);
}

/* Tracklist */
.tracklist {
	list-style: none;
	border-top: 1px solid var(--rule);
	margin-bottom: 3rem;
}

.track {
	display: grid;
	grid-template-columns: 3rem 56px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 1.5rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--rule);
	transition: background 0.3s, padding 0.3s;
}

.track-no,
.track-year {
	color: var(--muted);
}

.track-cover {
	width: 56px;
	aspect-ratio: 1;
	object-fit: cover;
	filter: grayscale(1);
	transition: filter 0.3s, transform 0.3s;
}

.track-title {
	font-size: clamp(1.25rem, 3vw, 2rem);
	font-weight: 400;
	letter-spacing: -0.01em;
}

.track-go {
	color: var(--accent);
	opacity: 0;
	transition: opacity 0.3s;
}

.track:hover,
.track:focus-visible {
	background: var(--surface);
	padding-inline: 1rem;
}

.track:hover .track-cover,
.track:focus-visible .track-cover {
	filter: none;
	transform: scale(1.15);
}

.track:hover .track-go,
.track:focus-visible .track-go {
	opacity: 1;
}

.button {
	display: inline-block;
	padding: 1rem 1.75rem;
	border: 1px solid var(--accent);
	color: var(--accent);
	transition: background 0.3s, color 0.3s;
}

.button:hover {
	background: var(--accent);
	color: var(--bg);
}

/* About */
.about {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.about-logo {
	width: 100%;
	max-width: 360px;
	aspect-ratio: 1;
}

.about-lead {
	font-size: clamp(1.5rem, 3.2vw, 2.5rem);
	font-weight: 300;
	line-height: 1.3;
	letter-spacing: -0.01em;
	margin-bottom: 3rem;
}

.specs div {
	display: grid;
	grid-template-columns: 10rem 1fr;
	gap: 1rem;
	padding: 0.875rem 0;
	border-top: 1px solid var(--rule);
}

.specs dt {
	color: var(--muted);
	padding-top: 0.2rem;
}

/* Contact */
.channels {
	list-style: none;
	font-size: clamp(0.8rem, 1.6vw, 1rem);
}

.channels a {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--rule);
	transition: color 0.3s, padding 0.3s;
}

.channels li:first-child a {
	border-top: 1px solid var(--rule);
}

.channels a:hover {
	color: var(--accent);
	padding-inline: 1rem;
}

/* Footer */
.footer {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 2rem var(--gutter);
	border-top: 1px solid var(--rule);
	color: var(--muted);
}

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

/* Mobile */
@media (max-width: 720px) {
	.nav {
		flex-wrap: wrap;
		row-gap: 0.75rem;
		padding-block: 1rem;
	}

	.latest,
	.about {
		grid-template-columns: 1fr;
	}

	.track {
		grid-template-columns: 48px minmax(0, 1fr) auto;
		gap: 1rem;
	}

	.track-no,
	.track-go {
		display: none;
	}

	.specs div {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}

	.footer {
		flex-direction: column;
	}
}

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

	.pulse-trace {
		animation: none;
		stroke-dasharray: none;
	}

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