/*
Theme Name: Andrijana Janevska – Music
Author:  Љупчо Јованов, Uhost
Author URI: https://uhost.mk
Description: Personal website theme for the singer Andrijana Janevska. Dark gradient design with a full-screen photo slideshow on the front page, a biography page, photo albums that open in a blurred popup, YouTube videos, a Music page with albums and numbered songs, and a contact page.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: andrijana
*/

/* ------------------------------------------------------------------
   1. Design values
------------------------------------------------------------------ */
:root {
	--ground: #312c39;
	--ground-rgb: 49, 44, 57;
	--text: #d6d3da;
	--white: #ffffff;
	--accent: #e6b9a6;
	--line: rgba(255, 255, 255, 0.12);
	--field: rgba(255, 255, 255, 0.08);
	--grad-page: linear-gradient(125deg, #473c55 0%, #614c4f 45%, #3c3a4e 100%);
	--grad-home: linear-gradient(125deg, #473c55 0%, #725752 46%, #3f415e 100%);
	--pad: clamp(20px, 4vw, 56px);
	--max: 1328px;
	--display: "Unbounded", "Segoe UI", system-ui, sans-serif;
	--body: "Manrope", "Segoe UI", system-ui, sans-serif;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--header-h: 89px;
	--hero-fade: 2s;
	--hero-cycle: 6.5s;
	--hero-dim: 0.25;
}

@view-transition {
	navigation: auto;
}

/* ------------------------------------------------------------------
   2. Base
------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scrollbar-gutter: stable;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

html.is-locked {
	overflow: hidden;
}

body {
	margin: 0;
	background: var(--ground);
	color: var(--text);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

/* The lighter colour gradient behind every page except the front page. */
body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 100vh;
	height: 100lvh;
	z-index: -1;
	background: var(--grad-page);
}

body.home::before {
	background: var(--ground);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--white);
	text-decoration: none;
	transition: color 0.3s;
}

a:hover {
	color: var(--accent);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

::selection {
	background: var(--accent);
	color: var(--ground);
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--display);
	font-weight: 300;
	letter-spacing: -0.03em;
	color: var(--white);
}

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 200;
	padding: 12px 18px;
	background: var(--white);
	color: var(--ground);
	border-radius: 4px;
}

.container {
	max-width: var(--max);
	margin: 0 auto;
}

.soft {
	color: var(--text);
}

.link-line {
	display: inline-block;
	padding: 12px 0;
	font-weight: 500;
	background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 1px no-repeat;
	transition: color 0.3s, background-size 0.5s var(--ease);
}

.link-line:hover {
	background-size: 40% 1px;
}

/* ------------------------------------------------------------------
   3. Header and menu
------------------------------------------------------------------ */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 40px;
	padding: 20px var(--pad);
	border-bottom: 1px solid var(--line);
	transition: padding 0.45s var(--ease), border-color 0.4s, opacity 0.4s;
}

/* The blurred bar sits on a separate layer so the phone menu can still cover the full screen. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(var(--ground-rgb), 0.72);
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
	backdrop-filter: blur(18px) saturate(1.2);
	opacity: 0;
	transition: opacity 0.4s;
}

/* While a popup is open the header steps back so the photo has all the attention. */
.has-popup .site-header {
	opacity: 0;
	pointer-events: none;
}

.site-header.is-stuck {
	padding-top: 8px;
	padding-bottom: 8px;
}

.site-header.is-stuck::before {
	opacity: 1;
}

.home .site-header:not(.is-stuck) {
	border-bottom-color: transparent;
}

.admin-bar .site-header {
	top: 32px;
}

.site-name {
	position: relative;
	z-index: 2;
	padding: 12px 0;
	font-family: var(--display);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: -0.01em;
	transition: opacity 0.4s, color 0.3s;
}

.site-name__short {
	display: none;
}

.home .site-header:not(.is-stuck) .site-name {
	opacity: 0;
	pointer-events: none;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	position: relative;
	display: block;
	padding: 12px 0;
	font-size: 15px;
	font-weight: 500;
}

.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	height: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s var(--ease);
}

.site-nav__list a:hover {
	color: var(--white);
}

.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after,
.site-nav__list .current_page_item > a::after {
	transform: scaleX(1);
}

.site-nav .site-nav__social {
	display: none;
}

.menu-toggle {
	position: relative;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-right: -12px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--white);
	cursor: pointer;
}

.menu-toggle span {
	position: absolute;
	left: 12px;
	right: 12px;
	height: 1.5px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.45s var(--ease);
}

.menu-toggle span:first-child {
	transform: translateY(-4px);
}

.menu-toggle span:last-child {
	transform: translateY(4px);
}

.nav-open .menu-toggle span:first-child {
	transform: rotate(45deg);
}

.nav-open .menu-toggle span:last-child {
	transform: rotate(-45deg);
}

@media (max-width: 820px) {
	:root {
		--header-h: 73px;
	}

	.site-header {
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.admin-bar .site-header {
		top: 46px;
	}

	.menu-toggle {
		display: flex;
	}

	.home .site-header:not(.is-stuck) .site-name {
		opacity: 1;
		pointer-events: auto;
	}

	.home .site-header:not(.is-stuck) .site-name__full {
		display: none;
	}

	.home .site-header:not(.is-stuck) .site-name__short {
		display: inline;
	}

	.site-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 40px;
		padding: 96px var(--pad) 40px;
		background: linear-gradient(125deg, rgba(51, 43, 61, 0.9) 0%, rgba(74, 58, 60, 0.9) 45%, rgba(42, 41, 55, 0.92) 100%);
		-webkit-backdrop-filter: blur(24px);
		backdrop-filter: blur(24px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.4s, visibility 0s 0.4s;
	}

	.nav-open .site-nav {
		opacity: 1;
		visibility: visible;
		transition-delay: 0s;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 4px;
	}

	.site-nav__list li {
		overflow: hidden;
	}

	.site-nav__list a {
		font-family: var(--display);
		font-weight: 300;
		font-size: clamp(30px, 9vw, 44px);
		letter-spacing: -0.03em;
		line-height: 1.2;
		padding: 8px 0;
		transform: translateY(110%);
		transition: transform 0.7s var(--ease), color 0.3s;
	}

	.site-nav__list a::after {
		display: none;
	}

	.site-nav__list .current-menu-item > a,
	.site-nav__list .current_page_item > a {
		color: var(--accent);
	}

	.nav-open .site-nav__list a {
		transform: none;
	}

	.nav-open .site-nav__list li:nth-child(2) a { transition-delay: 0.06s; }
	.nav-open .site-nav__list li:nth-child(3) a { transition-delay: 0.12s; }
	.nav-open .site-nav__list li:nth-child(4) a { transition-delay: 0.18s; }
	.nav-open .site-nav__list li:nth-child(5) a { transition-delay: 0.24s; }
	.nav-open .site-nav__list li:nth-child(n+6) a { transition-delay: 0.3s; }

	.site-nav .site-nav__social {
		display: flex;
		margin-left: -11px;
	}
}

/* ------------------------------------------------------------------
   4. Shared pieces: icon buttons, play ring, social icons
------------------------------------------------------------------ */
.icon-btn {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: transparent;
	color: var(--white);
	cursor: pointer;
	transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}

.icon-btn:hover {
	background: var(--white);
	border-color: var(--white);
	color: var(--ground);
}

.icon-btn:active {
	transform: scale(0.94);
}

.icon-btn[disabled] {
	opacity: 0.3;
	pointer-events: none;
}

.play-ring {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 1px solid currentColor;
	border-radius: 50%;
	transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.5s var(--ease);
}

.play-ring--glass {
	background: rgba(12, 12, 16, 0.45);
	color: var(--white);
}

.play-ring--lg { width: 96px; height: 96px; }
.play-ring--md { width: 88px; height: 88px; }
.play-ring--sm { width: 56px; height: 56px; }

.social {
	display: flex;
	gap: 8px;
}

.social a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	transition: color 0.3s, transform 0.5s var(--ease);
}

/* A ring that grows in around the icon. */
.social a::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid var(--accent);
	border-radius: 50%;
	opacity: 0;
	transform: scale(0.7);
	transition: opacity 0.3s, transform 0.5s var(--ease), background-color 0.3s, border-color 0.3s;
}

.social a svg {
	position: relative;
	transition: transform 0.6s var(--ease);
}

.social a:hover,
.social a:focus-visible {
	transform: translateY(-4px);
}

.social a:hover::before,
.social a:focus-visible::before {
	opacity: 1;
	transform: none;
}

.social a:hover svg,
.social a:focus-visible svg {
	transform: scale(1.12) rotate(-8deg);
}

.social a:active {
	transform: translateY(-1px) scale(0.94);
}

/* ------------------------------------------------------------------
   5. Front page: photo slideshow with the name
------------------------------------------------------------------ */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100vh;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
	background: var(--ground);
}

.hero__slides,
.hero__slide,
.hero__shade {
	position: absolute;
	inset: 0;
}

.hero__slides {
	animation: aj-fade 1.4s ease both;
}

/* Cross-fade: the new photo fades in on top of the old one, so the picture never dips to black. */
.hero__slide {
	z-index: 0;
	opacity: 0;
	transition: opacity var(--hero-fade) ease-in-out;
}

.hero__slide.is-prev {
	z-index: 1;
	opacity: 1;
	transition: none;
}

.hero__slide.is-active {
	z-index: 2;
	opacity: 1;
}

.hero__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.hero__slide.is-active img,
.hero__slide.is-prev img {
	animation: aj-drift var(--hero-cycle) linear both;
}

.hero__slide--empty {
	background: radial-gradient(ellipse 58% 72% at 68% 36%, #6b5650 0%, #3e3747 36%, var(--ground) 80%);
	animation: aj-drift 16s ease-out both;
}

.hero__shade {
	z-index: 3;
	background:
		linear-gradient(to top, var(--ground) 0%, rgba(var(--ground-rgb), 0.55) 28%, rgba(var(--ground-rgb), 0) 58%),
		linear-gradient(to bottom, rgba(var(--ground-rgb), 0.55) 0%, rgba(var(--ground-rgb), 0) 24%),
		rgba(var(--ground-rgb), var(--hero-dim));
}

.hero__content {
	position: relative;
	z-index: 4;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	padding: 0 var(--pad) 64px;
}

.hero__title {
	font-size: clamp(44px, 9.4vw, 136px);
	line-height: 1.12;
	letter-spacing: -0.035em;
}

.line {
	display: block;
	overflow: hidden;
}

.line > span {
	display: block;
	animation: aj-rise 1.1s var(--ease) both;
}

.line:nth-child(2) > span { animation-delay: 0.14s; }
.line:nth-child(3) > span { animation-delay: 0.28s; }

.hero__tagline {
	margin: 20px 0 0;
	font-size: 18px;
	color: var(--white);
	animation: aj-fade 1.2s ease 0.7s both;
}

.hero__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
	animation: aj-fade 1.2s ease 0.9s both;
}

.hero__cta {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 16px;
	font-weight: 500;
}

.hero__cta .play-ring {
	color: var(--accent);
}

.hero__cta:hover {
	color: var(--white);
}

.hero__cta:hover .play-ring {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--ground);
	transform: scale(1.08);
}

@media (max-width: 820px) {
	.hero__content {
		padding-bottom: 40px;
		gap: 28px;
	}

	.hero__tagline {
		margin-top: 14px;
		font-size: 16px;
	}

	.hero__aside {
		gap: 16px;
	}

	.hero__cta .play-ring {
		width: 56px;
		height: 56px;
	}
}

/* ------------------------------------------------------------------
   6. Front page: latest albums and latest video on the colour gradient
------------------------------------------------------------------ */
.home-lower {
	background:
		linear-gradient(to bottom, var(--ground) 0, rgba(var(--ground-rgb), 0) 220px),
		linear-gradient(to top, var(--ground) 0, rgba(var(--ground-rgb), 0) 180px),
		var(--grad-home);
}

.home-section {
	padding: 120px var(--pad) 0;
	scroll-margin-top: 40px;
}

.home-section:last-child {
	padding-bottom: 120px;
}

.home-section__title {
	font-size: clamp(30px, 3.4vw, 46px);
	line-height: 1.1;
}

.home-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 40px;
	margin-bottom: 48px;
}

/* The short text under a section title. */
.home-section__text {
	max-width: 36ch;
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.6;
}

/* Latest albums: text on the left, the two newest albums on the right. */
.home-albums {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px 48px;
}

.home-albums__text {
	flex: 4 1 300px;
	min-width: 0;
}

.home-albums__text .home-section__title {
	margin-bottom: 20px;
}

.home-albums .albums,
.home-albums__empty,
.home-video__empty {
	flex: 7 1 520px;
	min-width: 0;
}

.home-video {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 40px 48px;
}

.home-video .video-frame {
	flex: 7 1 520px;
	min-width: 0;
}

.home-video__text {
	flex: 4 1 300px;
	min-width: 0;
	padding-bottom: 8px;
}

.home-video__text .home-section__title {
	margin-bottom: 20px;
}

.home-video__name {
	margin: 0 0 6px;
	font-size: 20px;
	color: var(--white);
}

.home-video__year {
	margin: 0;
}

.home-video__text .link-line {
	margin-top: 28px;
}

.home-content {
	padding: 0 var(--pad) 120px;
}

@media (max-width: 820px) {
	.home-section {
		padding-top: 80px;
	}

	.home-section:last-child,
	.home-content {
		padding-bottom: 80px;
	}
}

/* ------------------------------------------------------------------
   7. Inner pages
------------------------------------------------------------------ */
.site-main--page {
	padding: calc(var(--header-h) + 72px) var(--pad) 120px;
	min-height: calc(100vh - 110px);
}

.page-title {
	font-size: clamp(40px, 5.6vw, 80px);
	line-height: 1.08;
	letter-spacing: -0.035em;
	overflow-wrap: anywhere;
}

.page-title--block {
	margin-bottom: 64px;
}

.page-intro {
	max-width: 700px;
	margin: -32px 0 64px;
}

.page-intro > :last-child {
	margin-bottom: 0;
}

.split {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
}

.split__title {
	flex: 5 1 320px;
	min-width: 0;
}

.split__body {
	flex: 7 1 480px;
	min-width: 0;
	max-width: 700px;
	padding-top: 14px;
}

/* The page's Featured image, under the title. */
.split__photo {
	max-width: 520px;
	margin: 36px 0 0;
	animation: aj-fade 1.2s ease 0.35s both;
}

.split__photo img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 4px;
}

.split__hint {
	margin: 20px 0 0;
	font-size: 15px;
}

/* On wide screens the title and photo stay in view while the text scrolls. */
@media (min-width: 1000px) {
	.split__pin {
		position: sticky;
		top: 120px;
	}

	.split__photo img {
		max-height: calc(100vh - 300px);
		min-height: 240px;
	}
}

@media (max-width: 820px) {
	.site-main--page {
		padding-top: calc(var(--header-h) + 40px);
		padding-bottom: 80px;
	}

	.page-title--block {
		margin-bottom: 40px;
	}

	.page-intro {
		margin: -16px 0 40px;
	}

	.split__body {
		padding-top: 0;
	}
}

/* Text written in the WordPress editor (Biography and any other page). */
.entry-content {
	animation: aj-fade 1.2s ease 0.35s both;
}

.entry-content > * {
	margin: 0 0 26px;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content p,
.entry-content li {
	line-height: 1.8;
}

.entry-content--lead > p:first-of-type {
	margin-bottom: 36px;
	font-size: clamp(19px, 1.7vw, 23px);
	line-height: 1.55;
	color: var(--white);
}

.entry-content h2 {
	margin: 56px 0 20px;
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.2;
}

.entry-content h3 {
	margin: 44px 0 16px;
	font-size: 21px;
	line-height: 1.3;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-underline-offset: 4px;
}

.entry-content strong {
	color: var(--white);
	font-weight: 600;
}

.entry-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding-left: 24px;
	border-left: 1px solid var(--accent);
	color: var(--white);
	font-size: 20px;
}

.entry-content blockquote p {
	margin: 0 0 12px;
}

.entry-content img,
.entry-content video,
.entry-content iframe {
	max-width: 100%;
	border-radius: 4px;
}

.entry-content figure {
	margin-left: 0;
	margin-right: 0;
}

.entry-content figcaption {
	margin-top: 8px;
	font-size: 15px;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 48px 0;
}

.notice-empty {
	max-width: 620px;
	padding: 28px 32px;
	border: 1px dashed rgba(255, 255, 255, 0.3);
	border-radius: 4px;
}

.notice-empty p {
	margin: 0;
}

.notice-empty p + p {
	margin-top: 10px;
}

/* ------------------------------------------------------------------
   8. Albums
------------------------------------------------------------------ */
.albums {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 72px 40px;
}

.albums--row {
	gap: 48px 32px;
}

.albums--pair {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-albums__one {
	display: none;
}

@media (max-width: 900px) {
	.albums {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 56px 28px;
	}

	/* Front page on tablets: two columns, so the third album is hidden. */
	.albums--pair .album:nth-child(n+3) {
		display: none;
	}
}

@media (max-width: 520px) {
	.albums {
		grid-template-columns: minmax(0, 1fr);
		padding: 0 10px;
	}

	/* Front page on phones: albums stack one per row, so only the newest one is shown. */
	.albums--pair .album:nth-child(n+2) {
		display: none;
	}

	/* ...and the title says "Latest album" instead of "Latest albums". */
	.home-albums__many {
		display: none;
	}

	.home-albums__one {
		display: inline;
	}
}

.album {
	display: block;
}

.album__stack {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
}

.album__sheet,
.album__cover {
	position: absolute;
	inset: 0;
	border-radius: 4px;
}

.album__sheet {
	border: 1px solid rgba(255, 255, 255, 0.16);
	transition: transform 0.7s var(--ease);
}

.album__sheet--a {
	background: #3a3340;
	transform: rotate(-3.5deg);
}

.album__sheet--b {
	background: #453c49;
	transform: rotate(2.5deg);
}

.album__cover {
	overflow: hidden;
	background: #5a4a50;
	box-shadow: 0 18px 40px rgba(12, 10, 16, 0.35);
	transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.album__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.album:hover .album__sheet--a,
.album:focus-visible .album__sheet--a {
	transform: rotate(-7deg) translate(-10px, 4px);
}

.album:hover .album__sheet--b,
.album:focus-visible .album__sheet--b {
	transform: rotate(6deg) translate(10px, 2px);
}

.album:hover .album__cover,
.album:focus-visible .album__cover {
	transform: translateY(-8px);
	box-shadow: 0 30px 60px rgba(12, 10, 16, 0.5);
}

.album:hover .album__cover img {
	transform: scale(1.05);
}

.album__name {
	display: block;
	margin-top: 26px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.35;
}

.album__count {
	display: block;
	font-size: 15px;
	color: var(--text);
}

/* ------------------------------------------------------------------
   9. Videos
------------------------------------------------------------------ */
.video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 4px;
	background: #5a4a50;
}

.video-frame img,
.video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-frame img {
	object-fit: cover;
	transition: transform 1.4s var(--ease);
}

.video-frame__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: var(--white);
	cursor: pointer;
}

.video-frame__play .play-ring {
	position: relative;
}

.video-frame__play:hover img,
.video-card:hover .video-frame img {
	transform: scale(1.05);
}

.video-frame__play:hover .play-ring,
.video-card:hover .play-ring {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--ground);
	transform: scale(1.08);
}

.video-feature {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 32px 48px;
	margin-bottom: 96px;
}

.video-feature .video-frame {
	flex: 8 1 520px;
	min-width: 0;
}

.video-feature__text {
	flex: 4 1 280px;
	min-width: 0;
	padding-bottom: 8px;
}

.video-feature__label {
	margin: 0 0 10px;
	font-size: 15px;
	color: var(--accent);
}

.video-feature__title {
	margin-bottom: 8px;
	font-size: clamp(26px, 2.6vw, 36px);
	line-height: 1.15;
}

.video-feature__year {
	margin: 0;
}

.videos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 40px;
}

@media (max-width: 900px) {
	.videos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 24px;
	}

	.video-feature {
		margin-bottom: 64px;
	}
}

@media (max-width: 520px) {
	.videos {
		grid-template-columns: minmax(0, 1fr);
	}
}

.video-card {
	display: block;
}

.video-card .video-frame {
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-card .play-ring {
	position: relative;
}

.video-card__name {
	display: block;
	margin-top: 16px;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.35;
}

.video-card__year {
	display: block;
	font-size: 15px;
	color: var(--text);
}

/* ------------------------------------------------------------------
   9b. Music: albums with a numbered list of songs
------------------------------------------------------------------ */

/* Square album cover (or an empty square with a note when there is none). */
.release__cover,
.discography__cover {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	margin: 0;
	overflow: hidden;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.06);
}

.release__cover {
	box-shadow: 0 34px 70px -28px rgba(0, 0, 0, 0.6);
}

.release__cover img,
.discography__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--ease);
}

.cover-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
	color: rgba(255, 255, 255, 0.4);
}

/* Small covers at the top of the Music page that jump to each album. */
.discography {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 32px 20px;
	margin-bottom: 110px;
}

.discography__item {
	display: block;
}

.discography__item:hover img {
	transform: scale(1.06);
}

.discography__name {
	display: block;
	margin-top: 12px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--white);
}

.discography__year {
	display: block;
	font-size: 13px;
}

.discography .cover-empty svg {
	width: 32px;
	height: 32px;
}

/* One album: cover on one side, text and songs on the other. */
.releases {
	display: grid;
	gap: 140px;
}

.release {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px 72px;
	scroll-margin-top: calc(var(--header-h) + 32px);
}

.release__side {
	flex: 5 1 300px;
	min-width: 0;
	max-width: 560px;
}

.release__body {
	flex: 7 1 420px;
	min-width: 0;
	max-width: 720px;
}

.release__meta {
	margin: 0 0 12px;
	font-size: 15px;
	letter-spacing: 0.04em;
	color: var(--accent);
}

.release__title {
	margin: 0 0 22px;
	font-size: clamp(30px, 3.4vw, 46px);
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.release__text {
	max-width: 60ch;
	margin: 0 0 30px;
	line-height: 1.75;
}

@media (min-width: 1000px) {
	/* The cover stays in view while a long list of songs scrolls. */
	.release__side {
		position: sticky;
		top: calc(var(--header-h) + 32px);
	}

	/* Every second album has its cover on the right. */
	.release:nth-child(even) .release__side {
		order: 2;
	}
}

/* Buttons: listen to the whole album on Spotify, YouTube… */
.listen {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 40px;
}

.listen__btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 18px 10px 15px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	color: var(--white);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}

.listen__btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--ground);
}

.listen__btn:active {
	transform: scale(0.96);
}

/* The numbered list of songs. */
.tracks {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.tracks li {
	margin: 0;
	border-bottom: 1px solid var(--line);
}

.track {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 0 16px;
	padding: 15px 12px 15px 6px;
	border-radius: 4px;
	transition: background 0.3s;
}

.track__no,
.track__play {
	grid-column: 1;
	grid-row: 1;
	justify-self: center;
}

.track__no {
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, 0.5);
	transition: opacity 0.25s;
}

.track__play {
	display: flex;
	color: var(--accent);
	opacity: 0;
	transition: opacity 0.25s;
}

.track:not(.track--link) .track__play {
	display: none;
}

.track__title {
	grid-column: 2;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--white);
	overflow-wrap: anywhere;
	transition: color 0.3s;
}

.track__time {
	grid-column: 3;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.track__service {
	grid-column: 4;
	display: flex;
	color: rgba(255, 255, 255, 0.45);
	transition: color 0.3s;
}

.track--link:hover,
.track--link:focus-visible {
	background: rgba(255, 255, 255, 0.07);
}

.track--link:hover .track__no,
.track--link:focus-visible .track__no {
	opacity: 0;
}

.track--link:hover .track__play,
.track--link:focus-visible .track__play {
	opacity: 1;
}

.track--link:hover .track__title,
.track--link:hover .track__service {
	color: var(--accent);
}

/* Front page: the newest music album. */
.home-music {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px 72px;
}

.home-music__text {
	flex: 6 1 340px;
	min-width: 0;
}

.home-music__text .home-section__title {
	margin-bottom: 20px;
}

.home-music__cover,
.home-music__empty {
	flex: 5 1 320px;
	min-width: 0;
	max-width: 520px;
}

.home-music__cover {
	display: block;
}

.home-music__cover:hover img {
	transform: scale(1.04);
}

.home-music__name {
	margin: 0 0 6px;
	font-size: 20px;
	color: var(--white);
}

.home-music__year {
	margin: 0;
}

.home-music .tracks {
	margin-top: 24px;
}

.home-music .listen {
	margin: 24px 0 0;
}

.home-music__text > .link-line {
	margin-top: 20px;
}

@media (max-width: 820px) {
	.discography {
		grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
		margin-bottom: 72px;
	}

	.releases {
		gap: 96px;
	}

	.release__side {
		max-width: 420px;
	}

	.home-music__cover {
		order: -1;
		max-width: 420px;
	}
}

@media (max-width: 520px) {
	.track {
		grid-template-columns: 30px minmax(0, 1fr) auto auto;
		gap: 0 12px;
		padding: 14px 6px 14px 0;
	}

	.track__title {
		font-size: 16px;
	}
}

/* ------------------------------------------------------------------
   10. Contact
------------------------------------------------------------------ */
.contact {
	display: flex;
	flex-wrap: wrap;
	gap: 56px 64px;
}

.contact__info {
	flex: 5 1 320px;
	min-width: 0;
}

.contact__info .page-title {
	margin-bottom: 28px;
}

.contact__intro {
	max-width: 420px;
	margin: 0 0 44px;
	font-size: 20px;
	color: var(--white);
}

.contact__list {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 0;
}

.contact__list dt {
	font-size: 15px;
}

.contact__list dd {
	margin: 0;
	font-size: 20px;
	overflow-wrap: anywhere;
}

.contact__info .social {
	margin: 22px 0 0 -11px;
}

.contact__form {
	flex: 6 1 420px;
	min-width: 0;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-top: 14px;
	animation: aj-fade 1.2s ease 0.35s both;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.field label {
	font-size: 15px;
	color: var(--white);
}

.field input,
.field textarea {
	width: 100%;
	padding: 0 18px;
	background: var(--field);
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 4px;
	color: var(--white);
	font: inherit;
	transition: border-color 0.3s, background 0.3s;
}

.field input {
	height: 56px;
}

.field textarea {
	min-height: 170px;
	padding-top: 16px;
	padding-bottom: 16px;
	line-height: 1.6;
	resize: vertical;
}

.field input:hover,
.field textarea:hover {
	border-color: rgba(255, 255, 255, 0.45);
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--accent);
	background: rgba(255, 255, 255, 0.12);
}

.field--extra {
	display: none;
}

.button {
	align-self: flex-start;
	height: 56px;
	padding: 0 36px;
	border: 0;
	border-radius: 4px;
	background: var(--accent);
	color: var(--ground);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s, transform 0.4s var(--ease);
}

.button:hover {
	background: var(--white);
	transform: translateY(-2px);
}

.button[disabled] {
	opacity: 0.6;
	pointer-events: none;
}

.form-status {
	margin: 0;
	padding: 16px 18px;
	border-radius: 4px;
	border: 1px solid var(--accent);
	color: var(--white);
}

.form-status--error {
	border-color: #ffb4a8;
	background: rgba(255, 120, 100, 0.12);
}

/* ------------------------------------------------------------------
   11. Footer
------------------------------------------------------------------ */
.site-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 40px;
	padding: 32px var(--pad);
	border-top: 1px solid var(--line);
	position: relative;
	isolation: isolate;
	font-size: 15px;
}

/* Same tint as the header bar; it fades away once the page is scrolled down to the footer. */
.site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(var(--ground-rgb), 0.72);
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
	backdrop-filter: blur(18px) saturate(1.2);
	transition: opacity 0.8s ease;
}

.site-footer.is-reached::before {
	opacity: 0;
}

.site-footer__info {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
}

.site-footer__credit a {
	padding: 12px 0;
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
}

/* Footer icons: always ringed, filled with the accent colour on hover. */
.site-footer__social a::before {
	border-color: rgba(255, 255, 255, 0.22);
	opacity: 1;
	transform: none;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
	color: var(--ground);
}

.site-footer__social a:hover::before,
.site-footer__social a:focus-visible::before {
	border-color: var(--accent);
	background-color: var(--accent);
}

/* They pop in one after another when the footer scrolls into view. */
.js .site-footer__social a {
	opacity: 0;
}

.js .site-footer__social.is-in a {
	opacity: 1;
	animation: aj-pop 0.7s var(--ease) backwards;
	animation-delay: calc(var(--i, 0) * 90ms);
}

/* ------------------------------------------------------------------
   12. Popup for albums and videos (blurred background, photo in focus)
------------------------------------------------------------------ */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
	background: rgba(22, 19, 28, 0.62);
	-webkit-backdrop-filter: blur(22px) saturate(1.1);
	backdrop-filter: blur(22px) saturate(1.1);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0s 0.45s;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.lightbox {
		background: rgba(22, 19, 28, 0.95);
	}
}

.lightbox.is-open {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.admin-bar .lightbox {
	top: 32px;
	height: calc(100vh - 32px);
	height: calc(100dvh - 32px);
}

.lightbox__bar {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 88px;
	padding: 0 28px 0 40px;
}

.lightbox__title {
	display: flex;
	align-items: baseline;
	gap: 20px;
	min-width: 0;
}

.lightbox__name {
	overflow: hidden;
	font-family: var(--display);
	font-size: 17px;
	color: var(--white);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.lightbox__count {
	flex: none;
	font-size: 15px;
	color: var(--accent);
}

.lightbox__stage {
	position: relative;
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: clamp(8px, 3vw, 44px);
	min-height: 0;
	padding: 0 clamp(8px, 2vw, 28px) 8px;
	touch-action: pan-y;
}

.lightbox__nav {
	width: 60px;
	height: 60px;
}

.lightbox__figure {
	position: relative;
	display: flex;
	flex: 1 1 0;
	align-self: stretch;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	margin: 0;
	transform: scale(0.96);
	transition: transform 0.6s var(--ease);
}

.lightbox.is-open .lightbox__figure {
	transform: none;
}

.lightbox__img {
	display: block;
	flex: 0 1 auto;
	max-width: 100%;
	max-height: 100%;
	min-height: 0;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
	-webkit-user-select: none;
	user-select: none;
}

.lightbox__img:not([src]) {
	visibility: hidden;
}

.lightbox__caption {
	flex: none;
	margin: 0;
	padding-top: 12px;
	font-size: 15px;
	color: var(--white);
	text-align: center;
}

.lightbox__caption:empty {
	display: none;
}

.lightbox__figure.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-top-color: var(--white);
	border-radius: 50%;
	animation: aj-spin 0.9s linear infinite;
}

.lightbox__thumbs {
	display: flex;
	flex: none;
	height: 124px;
	padding: 0 var(--pad);
	overflow-x: auto;
	scrollbar-width: none;
}

.lightbox__thumbs::-webkit-scrollbar {
	display: none;
}

.lightbox__track {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 auto;
	padding: 0 6px;
}

.lightbox__thumb {
	flex: none;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	overflow: hidden;
	background: #453c49;
	opacity: 0.5;
	outline: 2px solid transparent;
	outline-offset: 3px;
	cursor: pointer;
	transition: opacity 0.3s, outline-color 0.3s;
}

.lightbox__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lightbox__thumb:hover {
	opacity: 0.85;
}

.lightbox__thumb.is-current {
	opacity: 1;
	outline-color: var(--white);
}

.lightbox__video {
	position: relative;
	width: min(100%, calc((100vh - 220px) * 16 / 9));
	width: min(100%, calc((100dvh - 220px) * 16 / 9));
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 4px;
	background: #000;
	box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
	transform: scale(0.96);
	transition: transform 0.6s var(--ease);
}

.lightbox.is-open .lightbox__video {
	transform: none;
}

.lightbox__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.lightbox--video .lightbox__stage {
	padding-bottom: 88px;
}

@media (max-width: 700px) {
	.admin-bar .lightbox {
		top: 46px;
		height: calc(100dvh - 46px);
	}

	.lightbox__bar {
		height: 72px;
		padding: 0 12px 0 20px;
	}

	.lightbox__bar .icon-btn {
		width: 48px;
		height: 48px;
	}

	.lightbox__stage {
		padding: 0 12px;
	}

	.lightbox__nav {
		position: absolute;
		top: 50%;
		z-index: 2;
		width: 44px;
		height: 44px;
		margin-top: -22px;
		background: rgba(22, 19, 28, 0.55);
		border-color: rgba(255, 255, 255, 0.25);
	}

	.lightbox__nav--prev { left: 18px; }
	.lightbox__nav--next { right: 18px; }

	.lightbox__thumbs {
		height: 96px;
		padding: 0 14px;
	}

	.lightbox__thumb {
		width: 56px;
		height: 56px;
	}

	.lightbox--video .lightbox__stage {
		padding-bottom: 72px;
	}
}

/* ------------------------------------------------------------------
   13. Motion
------------------------------------------------------------------ */
@keyframes aj-rise {
	from { transform: translateY(112%); }
	to { transform: translateY(0); }
}

@keyframes aj-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes aj-drift {
	from { transform: scale(1); }
	to { transform: scale(1.08); }
}

@keyframes aj-pop {
	from { opacity: 0; transform: translateY(14px) scale(0.5); }
	to { opacity: 1; transform: none; }
}

@keyframes aj-spin {
	to { transform: rotate(360deg); }
}

/* Cards appear one after another the first time they scroll into view. */
.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s ease, transform 1.1s var(--ease);
	transition-delay: calc(var(--i, 0) * 90ms);
}

.js .reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.hero__slide {
		transition-duration: var(--hero-fade) !important;
	}

	.hero__slide img,
	.hero__slide--empty {
		animation: none !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}

	@view-transition {
		navigation: none;
	}
}
