/*
 * JP – projektin tyylit. Pääteema lataa tämän pääbundlen jälkeen.
 *
 * Lähde: Figma "Vedos 3" → "Home – v3" (1920 px). Mitat skaalataan
 * clamp()-arvoilla; mobiili ensin. Koko token-lista: pääteeman
 * assets/scss/abstracts/_tokens.scss.
 */

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

:root {
	/* Brand: accent yellow #F1FF5E (Figma "Accent") */
	--louhos-primary: #f1ff5e;
	--louhos-primary-rgb: 241, 255, 94;
	--louhos-primary-dark: #d9e655;
	--louhos-accent: #f1ff5e;
	--louhos-link-color: #f1ff5e;

	/* Neutrals – dark site, white text */
	--louhos-headings: #fff;
	--louhos-body-color: #fff;
	--louhos-grey: #1b1b1b;
	--louhos-border: #2f2f2f;
	--louhos-border-rgb: 47, 47, 47;

	/* Surfaces: Figma "Site BG" #222221, ticker #171717 */
	--louhos-dark-1: #222221;
	--louhos-dark-1-rgb: 34, 34, 33;
	--louhos-dark-2: #171717;
	--louhos-dark-2-rgb: 23, 23, 23;

	--louhos-header-height: 97px;
	--louhos-radius: 0;
	--louhos-radius-lg: 0;

	/* Type: Inter for text; display face "Gear Wide" XBold (800) from Adobe
	   Fonts (inc/hooks/jp-head.php), local Unbounded as the fallback. */
	--louhos-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--jp-font-display: "gear-wide", "Unbounded", "Inter", system-ui, sans-serif;

	/* Project tokens */
	--jp-text-muted: rgba(255, 255, 255, 0.6);
	--jp-spotify: #1db954;
	--jp-ink: #222221; /* dark text on yellow */
	--jp-line: rgba(255, 255, 255, 0.08);
	--jp-glow: 0 0 60px rgba(241, 255, 94, 0.18);
	--jp-gutter: clamp(1rem, 4vw, 3.75rem);

	/* Layout is capped at the design width; --jp-vw is 1vw up to 1920px. */
	--jp-max-width: 1920px;
	--jp-vw: min(1vw, 19.2px);

	--bs-body-bg: var(--louhos-dark-1);
	--bs-link-hover-color: #fff;
}

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

/* The page colour runs edge to edge; content is capped on body. */
html {
	background-color: var(--louhos-dark-1);
}

/* Wider than the design: mark the 1920px column with side borders. */
@media (min-width: 1921px) {
	body {
		border-inline: 1px solid var(--louhos-border);
	}
}

body {
	position: relative;
	max-width: var(--jp-max-width);
	margin-inline: auto;
	background-color: var(--louhos-dark-1);
	color: var(--louhos-body-color);
	font-family: var(--louhos-font-family);
	-webkit-font-smoothing: antialiased;
}

.bg--white {
	background-color: var(--louhos-dark-1);
}

.skip-link {
	color: var(--jp-ink);
}

::selection {
	background: var(--louhos-primary);
	color: var(--jp-ink);
}

.btn-primary {
	--bs-btn-bg: var(--louhos-primary);
	--bs-btn-border-color: var(--louhos-primary);
	--bs-btn-color: var(--jp-ink);
	--bs-btn-hover-bg: #fff;
	--bs-btn-hover-border-color: #fff;
	--bs-btn-hover-color: var(--jp-ink);
	--bs-btn-active-bg: #fff;
	--bs-btn-active-color: var(--jp-ink);
}

.btn-outline-primary {
	--bs-btn-color: #fff;
	--bs-btn-hover-color: var(--jp-ink);
	--bs-btn-active-color: var(--jp-ink);
}

/* Inline SVG icons (Font Awesome Free 6.7.2, views/icons/) – no icon font download */
.jp-icon {
	flex: none;
	width: 1em;
	height: 1em;
	fill: currentColor;
	vertical-align: -0.125em;
}

/* Section label "— 01 / ARTISTI" */
.jp-label {
	margin: 0;
	color: var(--louhos-primary);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

/* Plain pages (Tietosuojaseloste) */
.page:not(.home) .entry-content {
	padding-block: clamp(2rem, 6vw, 5rem);
}

.page:not(.home) .entry-content :is(h1, .page-title) {
	/* Sized so the longest Finnish word (TIETOSUOJALAUSUNTO) fits the
	   48rem text column in Gear Wide; wrap/hyphenate as a safety net. */
	font-family: var(--jp-font-display);
	font-size: clamp(1.125rem, 4.2vw, 3rem);
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
	overflow-wrap: anywhere;
	hyphens: auto;
	margin-bottom: 1.5rem;
}

.page:not(.home) .entry-content :is(h2, h3) {
	margin-top: 2rem;
}

/* ==========================================================================
   Header (Figma "Top bar")
   ========================================================================== */

.jp-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--louhos-header-height);
	padding: 1rem var(--jp-gutter);
}

.jp-header--overlay {
	position: absolute;
	inset: 0 0 auto;
	z-index: 10;
}

.jp-header--overlay .jp-header__inner {
	justify-content: flex-end;
	padding-top: clamp(1rem, 2.9vw, 3.5rem);
}

.jp-header:not(.jp-header--overlay) {
	border-bottom: 1px solid var(--louhos-border);
}

.jp-header__brand img {
	display: block;
	width: auto;
	height: 40px;
}

.jp-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.5rem 1rem 0.5rem 0.875rem;
	border: 1.5px solid var(--louhos-primary);
	border-radius: 100px;
	background: rgba(var(--louhos-dark-1-rgb), 0.55);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.jp-badge:hover,
.jp-badge:focus-visible {
	background: var(--louhos-primary);
	color: var(--jp-ink);
}

.jp-badge__dot {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--louhos-primary);
	box-shadow: 0 0 10px 2px rgba(var(--louhos-primary-rgb), 0.6);
}

@media (min-width: 768px) {
	.jp-badge {
		padding: 0.625rem 1.25rem 0.625rem 1.125rem;
		font-size: 0.9375rem;
	}
}

/* ==========================================================================
   Artist hero (Figma "Hero")
   ========================================================================== */

.jp-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: max(36rem, 100svh);
	overflow: hidden;
	background: var(--louhos-dark-1);
	isolation: isolate;
}

@media (min-width: 992px) {
	.jp-hero {
		min-height: clamp(40rem, 100svh, min(56.25vw, 1080px));
	}
}

.jp-hero__bg,
.jp-hero__bg > * {
	position: absolute;
	inset: 0;
}

.jp-hero__bg {
	z-index: -1;
}

.jp-hero__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 68% center;
}

.jp-hero__texture {
	background: url("../img/texture.webp") center / cover;
	opacity: 0.1;
	mix-blend-mode: screen;
}

/* Glow, bottom fade and the dark wash behind the player */
.jp-hero__glow {
	background:
		radial-gradient(calc(var(--jp-vw) * 42.7) calc(var(--jp-vw) * 37.5) at calc(var(--jp-vw) * 21.4) 50%, rgba(var(--louhos-primary-rgb), 0.22), transparent 100%),
		linear-gradient(90deg, rgba(var(--louhos-dark-1-rgb), 0.75), transparent 41.7%) bottom left / 100% 18% no-repeat,
		linear-gradient(180deg, transparent 59%, rgba(var(--louhos-dark-1-rgb), 0.9) 100%);
	mix-blend-mode: normal;
}

.jp-hero__logo {
	position: absolute;
	z-index: 1;
	top: clamp(6rem, 28vw, 9rem);
	left: -5vw;
	width: 84vw;
	max-width: none;
	height: auto;
	transform: rotate(-19.57deg);
	transform-origin: center;
	pointer-events: none;
}

@media (min-width: 768px) {
	.jp-hero__logo {
		top: calc(var(--jp-vw) * 4.6);
		left: calc(var(--jp-vw) * -2.6);
		width: calc(var(--jp-vw) * 39.5);
	}
}

/* Vertical "RAP ✦ FINLAND ✦ EST. 2008" + fading line below */
.jp-hero__side {
	display: none;
}

@media (min-width: 992px) {
	.jp-hero__side {
		position: absolute;
		top: 30.5%;
		right: clamp(1.5rem, 2.3vw, 2.75rem);
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 1.5rem;
		margin: 0;
		color: rgba(255, 255, 255, 0.55);
		font-size: 0.8125rem;
		font-weight: 600;
		letter-spacing: 0.4em;
		white-space: pre;
		writing-mode: vertical-rl;
	}

	.jp-hero__side::after {
		content: "";
		width: 1px;
		height: 140px;
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
	}
}

.jp-hero__bottom {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding: 0 var(--jp-gutter) clamp(2rem, 3.2vw, 3.8rem) 0;
}

/* Player row: label, equaliser + title + Spotify button, progress line */
.jp-player {
	flex: 0 1 46.5rem;
	min-width: 0;
}

.jp-player__label {
	margin: 0 0 0.5rem;
	padding-left: calc(var(--jp-gutter) + 2.875rem);
	color: var(--louhos-primary);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	white-space: pre-wrap;
}

.jp-player__link {
	display: inline-flex;
	align-items: center;
	gap: 0.875rem;
	padding-left: var(--jp-gutter);
	color: #fff;
	text-decoration: none;
}

.jp-player__link:hover,
.jp-player__link:focus-visible {
	color: var(--louhos-primary);
}

.jp-player__eq {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 32px;
}

.jp-player__eq i {
	width: 4px;
	border-radius: 2px;
	background: var(--louhos-primary);
	transform-origin: bottom;
	animation: jp-eq 1.1s ease-in-out infinite alternate;
}

.jp-player__eq i:nth-child(1) { height: 14px; animation-delay: -0.2s; }
.jp-player__eq i:nth-child(2) { height: 26px; animation-delay: -0.7s; }
.jp-player__eq i:nth-child(3) { height: 18px; animation-delay: -0.4s; }
.jp-player__eq i:nth-child(4) { height: 32px; animation-delay: -0.9s; }
.jp-player__eq i:nth-child(5) { height: 10px; animation-delay: -0.1s; }

@keyframes jp-eq {
	to { transform: scaleY(0.35); }
}

.jp-player__title {
	font-family: var(--jp-font-display);
	font-size: clamp(1rem, 1.55vw, 1.875rem);
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
}

/* One line from small tablets up (Gear Wide is wide). */
@media (min-width: 576px) {
	.jp-player__title {
		white-space: nowrap;
	}
}

.jp-player__button {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	width: clamp(2.75rem, 2.9vw, 3.5rem);
	aspect-ratio: 1;
	margin-left: clamp(0.875rem, 1.6vw, 1.75rem);
	border-radius: 50%;
	background: var(--jp-spotify);
	box-shadow: 0 0 0 6px rgba(29, 185, 84, 0.28), 0 0 0 14px rgba(29, 185, 84, 0.12);
	color: var(--jp-ink);
	font-size: 1.5em;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

/* Hover: the button pops, the glow intensifies, the logo spins like a record
   and two sound-wave rings ripple out. */
.jp-player__button::before,
.jp-player__button::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid var(--jp-spotify);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

.jp-player__button .jp-icon {
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.jp-player__link:hover .jp-player__button,
.jp-player__link:focus-visible .jp-player__button {
	transform: scale(1.12);
	box-shadow:
		0 0 0 6px rgba(29, 185, 84, 0.4),
		0 0 0 14px rgba(29, 185, 84, 0.18),
		0 0 36px 10px rgba(29, 185, 84, 0.45);
}

.jp-player__link:hover .jp-player__button .jp-icon,
.jp-player__link:focus-visible .jp-player__button .jp-icon {
	transform: rotate(360deg);
}

.jp-player__link:hover .jp-player__button::before,
.jp-player__link:focus-visible .jp-player__button::before {
	animation: jp-ripple 1.6s ease-out infinite;
}

.jp-player__link:hover .jp-player__button::after,
.jp-player__link:focus-visible .jp-player__button::after {
	animation: jp-ripple 1.6s ease-out 0.8s infinite;
}

/* The equaliser speeds up while the row is hovered. */
.jp-player__link:hover .jp-player__eq i,
.jp-player__link:focus-visible .jp-player__eq i {
	animation-duration: 0.45s;
}

@keyframes jp-ripple {
	0% {
		opacity: 0.7;
		transform: scale(1);
	}

	100% {
		opacity: 0;
		transform: scale(2.4);
	}
}

@media (prefers-reduced-motion: reduce) {
	.jp-player__button::before,
	.jp-player__button::after {
		display: none;
	}
}

.jp-player__progress {
	position: relative;
	display: block;
	height: 2px;
	margin-top: 1.25rem;
	background: linear-gradient(90deg, var(--louhos-primary) 20%, rgba(255, 255, 255, 0.15) 20%);
}

.jp-player__progress::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 20%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--louhos-primary);
	box-shadow: 0 0 8px rgba(var(--louhos-primary-rgb), 0.8);
	transform: translate(-50%, -50%);
}

/* Scroll button + fading line below */
.jp-hero__scroll {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-bottom: 0.5rem;
	border: 1px solid rgba(var(--louhos-primary-rgb), 0.7);
	border-radius: 50%;
	background: rgba(var(--louhos-dark-1-rgb), 0.35);
	backdrop-filter: blur(4px);
	color: var(--louhos-primary);
	font-size: 1.375rem;
	text-decoration: none;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Thin arrow drifting down on a loop: a quiet "scroll" cue. */
.jp-hero__scroll .jp-icon {
	animation: jp-scroll-cue 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.jp-hero__scroll:hover,
.jp-hero__scroll:focus-visible {
	border-color: var(--louhos-primary);
	background: var(--louhos-primary);
	color: var(--jp-ink);
}

/* Hover: the arrow slides out the bottom and back in from the top. */
.jp-hero__scroll:hover .jp-icon,
.jp-hero__scroll:focus-visible .jp-icon {
	animation: jp-scroll-through 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes jp-scroll-cue {
	0%, 100% {
		opacity: 1;
		transform: translateY(-3px);
	}

	50% {
		opacity: 0.6;
		transform: translateY(4px);
	}
}

@keyframes jp-scroll-through {
	0% {
		transform: translateY(0);
	}

	45% {
		opacity: 0;
		transform: translateY(90%);
	}

	55% {
		opacity: 0;
		transform: translateY(-90%);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

@media (min-width: 992px) {
	.jp-hero__bottom {
		padding-right: 1.5rem;
		padding-bottom: 0;
	}

	.jp-player {
		padding-bottom: 3.8rem;
	}

	.jp-hero__scroll {
		margin-bottom: 6.25rem;
	}

	.jp-hero__scroll::after {
		content: "";
		position: absolute;
		top: calc(100% + 0.5rem);
		left: 50%;
		width: 1px;
		height: 5.75rem;
		background: linear-gradient(180deg, rgba(var(--louhos-primary-rgb), 0.6), transparent);
	}
}

/* ==========================================================================
   Social bar (Figma "Social bar")
   ========================================================================== */

.jp-social-bar__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--louhos-primary);
}

/* Odd count on two columns: the last link spans the row. */
.jp-social-bar__list > li:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

/* Phones: half-width cells are too narrow for label + arrow. */
@media (max-width: 575.98px) {
	.jp-social-bar__link {
		padding-inline: 0.75rem;
		letter-spacing: 0.14em;
	}

	.jp-social-bar__list > li:not(:last-child:nth-child(odd)) .jp-social-bar__arrow {
		display: none;
	}
}

/* Tablet: 3 + 2 on a six-track grid. */
@media (min-width: 768px) {
	.jp-social-bar__list {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.jp-social-bar__list > li {
		grid-column: span 2;
	}

	.jp-social-bar__list > li:nth-child(n + 4):nth-last-child(-n + 2) {
		grid-column: span 3;
	}

	.jp-social-bar__list > li:last-child:nth-child(odd) {
		grid-column: span 3;
	}
}

/* Desktop: one row (Figma). */
@media (min-width: 1200px) {
	.jp-social-bar__list {
		grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	}

	.jp-social-bar__list > li,
	.jp-social-bar__list > li:nth-child(n + 4):nth-last-child(-n + 2),
	.jp-social-bar__list > li:last-child:nth-child(odd) {
		grid-column: auto;
	}
}

.jp-social-bar__link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.875rem;
	height: 100%;
	min-height: 4.5625rem;
	padding: 0.75rem 2.5rem 0.75rem 1rem;
	border: 1px solid var(--jp-ink);
	background: var(--louhos-primary);
	color: var(--jp-ink);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

.jp-social-bar__link .jp-icon {
	font-size: 1.375rem;
}

.jp-social-bar__link:hover,
.jp-social-bar__link:focus-visible {
	background: #fff;
	color: var(--jp-ink);
}

.jp-social-bar__link:focus-visible {
	outline: 3px solid var(--jp-ink);
	outline-offset: -6px;
}

.jp-social-bar__arrow {
	position: absolute;
	top: 50%;
	right: clamp(1rem, 2vw, 2.4rem);
	color: rgba(var(--louhos-dark-1-rgb), 0.5);
	font-size: 1rem;
	font-weight: 600;
	transform: translateY(-50%);
	transition: transform 0.2s ease;
}

.jp-social-bar__link:hover .jp-social-bar__arrow {
	transform: translate(3px, calc(-50% - 3px));
}

/* ==========================================================================
   Ticker (Figma "Ticker")
   ========================================================================== */

.jp-ticker {
	overflow: hidden;
	border: 1px solid var(--jp-line);
	background: var(--louhos-dark-2);
}

.jp-ticker__track {
	display: flex;
	width: max-content;
	animation: jp-ticker var(--jp-ticker-duration, 60s) linear infinite;
}

.jp-ticker--reverse .jp-ticker__track {
	animation-direction: reverse;
}

.jp-ticker--pausable:hover .jp-ticker__track {
	animation-play-state: paused;
}

.jp-ticker__group {
	display: flex;
	flex: none;
	align-items: center;
	gap: 2.25rem;
	padding: 1rem 2.25rem 1rem 0;
}

.jp-ticker__item {
	color: rgba(255, 255, 255, 0.55);
	font-family: var(--jp-font-display);
	font-size: clamp(1rem, 1.05vw, 1.25rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.jp-ticker__item.is-highlight {
	color: var(--louhos-primary);
}

.jp-ticker__sep {
	color: rgba(255, 255, 255, 0.35);
	font-size: 1.125rem;
	font-weight: 700;
}

@keyframes jp-ticker {
	to { transform: translateX(-50%); }
}

/* ==========================================================================
   Bio – Louhos "Teksti + kuva" override (Figma "Bio")
   ========================================================================== */

.jp-ti {
	position: relative;
	padding-block: clamp(3.5rem, 7.8vw, 9.375rem) clamp(3rem, 4vw, 4rem);
	overflow: hidden;
}

.jp-ti__grid {
	display: grid;
	gap: 3rem;
	padding-inline: var(--jp-gutter);
}

.jp-ti__content {
	--jp-ti-pad: 0px;
	position: relative;
	max-width: 28rem;
	padding-top: var(--jp-ti-pad);
	isolation: isolate; /* keeps the z-index:-1 number above the body background */
}

.jp-ti__number {
	position: absolute;
	z-index: -1;
	/* Anchored to the section label (after the content's top padding): the
	   digits start just above the label and run behind it and the heading,
	   as in Figma (digit top ~0.2em above the label; Gear Wide's glyphs sit
	   ~0.1em below the line-box top). */
	top: calc(var(--jp-ti-pad) - 0.3em);
	left: -0.1em;
	color: transparent;
	font-family: var(--jp-font-display);
	font-size: clamp(8rem, 15.6vw, 18.75rem);
	font-weight: 800;
	line-height: 1;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
	pointer-events: none;
	user-select: none;
}

.jp-ti__content .jp-label {
	padding-left: 3px;
}

.jp-ti__title {
	margin: 1rem 0 0;
	color: #fff;
	font-family: var(--jp-font-display);
	font-size: clamp(3.5rem, 6vw, 7.1875rem);
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
}

.jp-ti__body {
	margin-top: clamp(1.5rem, 2.1vw, 2.5rem);
	font-size: clamp(1.0625rem, 1.05vw, 1.25rem);
	line-height: 1.45;
}

.jp-ti__body p:last-child {
	margin-bottom: 0;
}

.jp-ti__body strong {
	font-weight: 600;
}

/* Text link with a yellow rule above (Figma "Link – Wikipedia") */
.jp-link {
	display: inline-flex;
	align-items: center;
	gap: 1.25rem;
	width: min(100%, 23.125rem);
	margin-top: clamp(2.5rem, 3.4vw, 4rem);
	padding-top: 1rem;
	border-top: 1px solid var(--louhos-primary);
	color: #fff;
	font-family: var(--jp-font-display);
	font-size: clamp(0.9375rem, 0.94vw, 1.125rem);
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
}

.jp-link .jp-icon {
	font-size: 1em;
	color: var(--louhos-primary);
	transition: transform 0.25s ease;
}

.jp-link:hover,
.jp-link:focus-visible {
	color: var(--louhos-primary);
}

.jp-link:hover .jp-icon,
.jp-link:focus-visible .jp-icon {
	transform: translate(3px, -3px);
}

/* Stats 4 / 1 / U20 */
.jp-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 3rem;
	margin: clamp(2.5rem, 3.2vw, 3.875rem) 0 0;
	padding-left: 3px;
}

.jp-stats__item {
	position: relative;
	display: flex;
	flex-direction: column-reverse;
	gap: 0.375rem;
}

.jp-stats__item + .jp-stats__item::before {
	content: "";
	position: absolute;
	top: 0;
	left: -1.5rem;
	width: 1px;
	height: 58px;
	background: rgba(255, 255, 255, 0.18);
}

.jp-stats__value {
	margin: 0;
	color: var(--louhos-primary);
	font-family: var(--jp-font-display);
	font-size: clamp(2rem, 2.1vw, 2.5rem);
	font-weight: 800;
	line-height: 1.2;
}

.jp-stats__label {
	color: var(--jp-text-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

/* Photo with corner brackets and the accent frame peeking out below */
.jp-ti__media {
	position: relative;
	aspect-ratio: 1093 / 962;
	--jp-bracket: clamp(2rem, 3.33vw, 4rem);
}

.jp-ti__media img {
	position: absolute;
	top: 2.08%;
	left: 1.83%;
	width: 98.17%;
	height: 93.35%;
	object-fit: cover;
}

.jp-ti__accent {
	position: absolute;
	top: 91.06%;
	left: 29.09%;
	width: 62.67%;
	height: 6.86%;
	border: 1px solid var(--louhos-primary);
}

.jp-ti__media::before,
.jp-ti__media::after {
	content: "";
	position: absolute;
	width: var(--jp-bracket);
	height: var(--jp-bracket);
	border-color: var(--louhos-primary);
	border-style: solid;
}

.jp-ti__media::before {
	top: 0;
	left: 0;
	border-width: 4px 0 0 4px;
}

.jp-ti__media::after {
	right: 2.1%;
	bottom: 0;
	border-width: 0 4px 4px 0;
}

@media (min-width: 992px) {
	.jp-ti {
		padding-top: clamp(2.75rem, 2.3vw, 2.75rem);
		padding-bottom: 0;
	}

	.jp-ti__grid {
		grid-template-columns: minmax(20rem, 26.5625rem) minmax(0, 1fr);
		gap: clamp(3rem, 9.8vw, 11.8rem);
		align-items: start;
		padding-left: clamp(2rem, 11.25vw, 13.5rem);
		padding-right: 0;
	}

	.jp-ti__content {
		--jp-ti-pad: clamp(4rem, 5.5vw, 6.625rem);
	}

	.jp-ti--img-left .jp-ti__media {
		order: -1;
	}
}

/* ==========================================================================
   Gallery (Figma "Gallery")
   ========================================================================== */

.jp-gallery {
	padding: clamp(3rem, 5vw, 5rem) clamp(0.75rem, 1vw, 1.1875rem) 1rem;
}

.jp-gallery__head {
	margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.jp-gallery__title-row {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin-top: 0.25rem;
}

.jp-gallery__title {
	margin: 0;
	color: #fff;
	font-family: var(--jp-font-display);
	font-size: clamp(2rem, 2.9vw, 3.5rem);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.jp-gallery__rule {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
}

/* Music video teaser */
.jp-video {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	aspect-ratio: 4 / 3;
	padding: clamp(1rem, 2.1vw, 2.5rem) clamp(1rem, 2.1vw, 2.5rem) clamp(1.25rem, 2.5vw, 3rem);
	overflow: hidden;
	border: 1px solid rgba(var(--louhos-primary-rgb), 0.6);
	box-shadow: var(--jp-glow);
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}

@media (min-width: 768px) {
	.jp-video {
		aspect-ratio: 1882 / 987;
	}
}

.jp-video::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	z-index: -1;
	height: 40%;
	background: linear-gradient(180deg, transparent, rgba(var(--louhos-dark-1-rgb), 0.85));
}

.jp-video__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.jp-video:hover .jp-video__img,
.jp-video:focus-visible .jp-video__img {
	transform: scale(1.03);
}

.jp-video__tag {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	align-self: flex-start;
	padding: 0.5rem 0.875rem;
	background: var(--louhos-primary);
	color: var(--jp-ink);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.jp-video__tag::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--jp-ink);
}

.jp-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: clamp(4.5rem, 10.6vw, 12.6875rem);
	aspect-ratio: 1;
	border: 1.5px solid rgba(var(--louhos-primary-rgb), 0.6);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: clamp(1.5rem, 3.3vw, 4rem);
	transform: translate(-50%, -50%);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.jp-video__play .jp-icon {
	margin-left: 0.12em;
}

.jp-video:hover .jp-video__play,
.jp-video:focus-visible .jp-video__play {
	background: var(--louhos-primary);
	color: var(--jp-ink);
}

.jp-video__caption {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.jp-video__meta {
	color: rgba(255, 255, 255, 0.7);
	font-size: clamp(0.8125rem, 0.85vw, 1rem);
	font-weight: 500;
	white-space: pre-wrap;
}

.jp-video__title {
	font-family: var(--jp-font-display);
	font-size: clamp(1.25rem, 1.9vw, 2.25rem);
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
}

/* Photo grid: one column → two → three masonry columns. Below 992px the
   column wrappers dissolve (display: contents) and `order` restores 01, 02… */
.jp-gallery__grid,
.jp-gallery__grid ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jp-gallery__grid {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
}

.jp-gallery__col,
.jp-gallery__col > ul {
	display: contents;
}

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

/* Two columns: tiles in a row share its height, and an odd last tile spans
   the row, so the grid ends on one line. */
@media (min-width: 576px) and (max-width: 991.98px) {
	/* Fixed width, so a stretched height can't widen the tile via aspect-ratio. */
	.jp-tile {
		width: 100%;
		align-self: stretch;
	}

	.jp-tile--wide {
		grid-column: 1 / -1;
		align-self: start;
		aspect-ratio: 16 / 7;
	}
}

@media (min-width: 992px) {
	/* Columns stretch to the tallest one and their tiles grow to fill it,
	   so all three columns end on the same line (Figma: equal 2345px). */
	.jp-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: stretch;
	}

	.jp-gallery__col,
	.jp-gallery__col > ul {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	.jp-gallery__col > ul {
		flex: 1;
	}

	.jp-tile {
		flex: 1 0 auto;
	}
}

.jp-tile {
	position: relative;
	aspect-ratio: var(--jp-ratio, 617 / 640);
}

.jp-tile__link {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	gap: 1rem;
	padding: clamp(1rem, 1.5vw, 1.75rem);
	overflow: hidden;
	border: 1px solid var(--jp-line);
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}

.jp-tile__link img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

/* Top shade + bottom fade */
.jp-tile__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(var(--louhos-dark-1-rgb), 0.35), transparent 120px),
		linear-gradient(180deg, transparent 55%, rgba(var(--louhos-dark-1-rgb), 0.85));
}

/* Hover frame */
.jp-tile__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 3px solid var(--louhos-primary);
	background: rgba(var(--louhos-primary-rgb), 0.08);
	opacity: 0;
	transition: opacity 0.2s ease;
}

/* Crosshair marks in the top corners */
.jp-tile__marks {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.jp-tile__marks::before,
.jp-tile__marks::after {
	content: "";
	position: absolute;
	top: 17px;
	width: 14px;
	height: 14px;
	background:
		linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)) center / 100% 1.5px no-repeat,
		linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)) center / 1.5px 100% no-repeat;
}

.jp-tile__marks::before {
	left: 17px;
}

.jp-tile__marks::after {
	right: 17px;
}

.jp-tile__meta {
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
}

.jp-tile__num {
	color: var(--louhos-primary);
	font-family: var(--jp-font-display);
	font-size: clamp(1.75rem, 2.1vw, 2.5rem);
	font-weight: 800;
	line-height: 1;
}

.jp-tile__caption {
	padding-bottom: 0.2rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: clamp(0.12em, 0.25vw, 0.25em);
	text-transform: uppercase;
	white-space: pre-wrap;
}

.jp-tile__open {
	display: grid;
	flex: none;
	margin-left: auto;
	place-items: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: var(--louhos-primary);
	box-shadow: 0 0 24px rgba(var(--louhos-primary-rgb), 0.5);
	color: var(--jp-ink);
	font-size: 1.875rem;
	font-weight: 700;
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.jp-tile__link:hover::after,
.jp-tile__link:focus-visible::after,
.jp-tile__link:hover .jp-tile__open,
.jp-tile__link:focus-visible .jp-tile__open {
	opacity: 1;
}

.jp-tile__link:hover .jp-tile__open,
.jp-tile__link:focus-visible .jp-tile__open {
	transform: none;
}

.jp-tile__link:hover img {
	transform: scale(1.03);
}

.jp-tile__link:focus-visible {
	outline: none;
}

/* Lightbox */
.jp-lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: clamp(3.5rem, 6vw, 5rem) clamp(0.5rem, 6vw, 6rem);
	border: 0;
	background: rgba(var(--louhos-dark-2-rgb), 0.98);
	color: #fff;
}

.jp-lightbox[open] {
	display: grid;
	place-items: center;
}

.jp-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.6);
}

.jp-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
}

.jp-lightbox__img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 10rem);
	object-fit: contain;
}

.jp-lightbox__count {
	color: var(--jp-text-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.25em;
}

.jp-lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 1.5px solid var(--louhos-primary);
	border-radius: 50%;
	background: var(--louhos-dark-1);
	color: var(--louhos-primary);
	font-size: 1.125rem;
	cursor: pointer;
}

.jp-lightbox__btn:hover,
.jp-lightbox__btn:focus-visible {
	background: var(--louhos-primary);
	color: var(--jp-ink);
}

.jp-lightbox__prev,
.jp-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
}

.jp-lightbox__prev { left: clamp(0.5rem, 2vw, 2rem); }
.jp-lightbox__next { right: clamp(0.5rem, 2vw, 2rem); }
.jp-lightbox__close { top: 1rem; right: clamp(0.5rem, 2vw, 2rem); }

@media (max-width: 767.98px) {
	.jp-lightbox__prev,
	.jp-lightbox__next {
		top: auto;
		bottom: 1rem;
		transform: none;
	}
}

/* ==========================================================================
   Footer (Figma "Footer")
   ========================================================================== */

.jp-footer {
	position: relative;
	padding: 0;
	border: 1px solid var(--louhos-border);
	background: var(--louhos-grey);
	font-size: 0.875rem;
}

.jp-footer::before {
	content: "";
	position: absolute;
	top: -1px;
	right: 0;
	left: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--louhos-primary), transparent);
}

.jp-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	min-height: 6rem;
	padding: 1.5rem clamp(1rem, 2vw, 2.3rem);
}

.jp-footer__text {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin: 0;
	color: #fff;
}

.jp-footer__text a,
.jp-footer__credit {
	color: var(--louhos-primary);
	font-weight: 600;
	text-decoration: none;
}

.jp-footer__text a:hover,
.jp-footer__text a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.jp-footer__social {
	display: flex;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jp-footer__social a {
	display: grid;
	place-items: center;
	width: 2.625rem;
	height: 2.625rem;
	border: 1px solid var(--louhos-primary);
	color: #fff;
	font-size: 1.125rem;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.jp-footer__social a:hover,
.jp-footer__social a:focus-visible {
	background: var(--louhos-primary);
	color: var(--jp-ink);
}

/* ==========================================================================
   Complianz documents (privacy statement, cookie policy)
   ========================================================================== */

#cmplz-document,
#cmplz-document p,
#cmplz-document li {
	color: var(--louhos-body-color);
}

/* Long compound words and cookie names must wrap on narrow phones. */
#cmplz-document {
	overflow-wrap: anywhere;
	hyphens: auto;
}

#cmplz-document a {
	color: var(--louhos-link-color);
}

#cmplz-document a:hover,
#cmplz-document a:focus-visible {
	color: #fff;
}

#cmplz-document :is(h2, h3, h4) {
	color: #fff;
}

/* ==========================================================================
   Entrance motion
   Only under html.jp-motion (set in <head> unless reduced motion is
   preferred). Hidden states apply only to sections not yet revealed
   (.is-in from child.js); html.jp-reveal-all is the no-JS safety net.
   ========================================================================== */

@keyframes jp-fade {
	from { opacity: 0; }
}

@keyframes jp-rise {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
}

@keyframes jp-drop {
	from {
		opacity: 0;
		transform: translateY(-18px);
	}
}

@keyframes jp-grow-x {
	from { transform: scaleX(0); }
}

@keyframes jp-photo-in {
	from {
		opacity: 0;
		filter: brightness(0.2) blur(6px);
		transform: scale(1.12);
	}

	to {
		opacity: 1;
		filter: none;
		transform: none;
	}
}

/* The monogram lands: big and blurred → overshoots → settles (keeps its tilt). */
@keyframes jp-logo-in {
	0% {
		opacity: 0;
		filter: blur(10px);
		transform: rotate(-19.57deg) translate(-4%, -10%) scale(1.55);
	}

	55% {
		opacity: 1;
		filter: blur(0);
	}

	78% {
		transform: rotate(-19.57deg) scale(0.97);
	}

	100% {
		opacity: 1;
		filter: none;
		transform: rotate(-19.57deg) scale(1);
	}
}

/* --- Hero intro (on load) ------------------------------------------------- */

.jp-motion .jp-hero__photo {
	animation: jp-photo-in 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.jp-motion .jp-hero__texture {
	animation: jp-fade 1.4s 0.4s both;
}

.jp-motion .jp-hero__glow {
	animation: jp-fade 1.6s 0.7s both;
}

.jp-motion .jp-hero__logo {
	animation: jp-logo-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

.jp-motion .jp-header--overlay .jp-badge {
	animation: jp-drop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s both;
}

.jp-motion .jp-hero__side {
	animation: jp-fade 1s 1.1s both;
}

.jp-motion .jp-player__label {
	animation: jp-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1s both;
}

.jp-motion .jp-player__link {
	animation: jp-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.12s both;
}

.jp-motion .jp-player__progress {
	transform-origin: left;
	animation: jp-grow-x 1.4s cubic-bezier(0.65, 0, 0.35, 1) 1.2s both;
}

.jp-motion .jp-hero__scroll {
	animation: jp-fade 1s 1.6s both;
}

.jp-motion .jp-social-bar__list > li {
	animation: jp-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.jp-motion .jp-social-bar__list > li:nth-child(1) { animation-delay: 1.3s; }
.jp-motion .jp-social-bar__list > li:nth-child(2) { animation-delay: 1.37s; }
.jp-motion .jp-social-bar__list > li:nth-child(3) { animation-delay: 1.44s; }
.jp-motion .jp-social-bar__list > li:nth-child(4) { animation-delay: 1.51s; }
.jp-motion .jp-social-bar__list > li:nth-child(5) { animation-delay: 1.58s; }
.jp-motion .jp-social-bar__list > li:nth-child(n + 6) { animation-delay: 1.65s; }

.jp-motion .jp-ticker {
	animation: jp-fade 1s 1.8s both;
}

/* --- Bio (on scroll) ------------------------------------------------------- */

.jp-motion .jp-ti__content > :not(.jp-ti__number) {
	transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.jp-motion .jp-ti__content > :nth-child(2) { transition-delay: 0.05s; }
.jp-motion .jp-ti__content > :nth-child(3) { transition-delay: 0.15s; }
.jp-motion .jp-ti__content > :nth-child(4) { transition-delay: 0.3s; }
.jp-motion .jp-ti__content > :nth-child(5) { transition-delay: 0.45s; }
.jp-motion .jp-ti__content > :nth-child(n + 6) { transition-delay: 0.6s; }

.jp-motion .jp-ti__number {
	transition: opacity 1.4s ease 0.2s, transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.jp-motion .jp-ti__media img {
	transition: clip-path 1.3s cubic-bezier(0.77, 0, 0.18, 1) 0.2s;
}

.jp-motion .jp-ti__media::before,
.jp-motion .jp-ti__media::after {
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s;
}

.jp-motion .jp-ti__media::before { transform-origin: top left; }
.jp-motion .jp-ti__media::after { transform-origin: bottom right; }

.jp-motion .jp-ti__accent {
	transition: opacity 0.8s ease 1.3s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.3s;
}

.jp-motion:not(.jp-reveal-all) .jp-ti:not(.is-in) .jp-ti__content > :not(.jp-ti__number) {
	opacity: 0;
	transform: translateY(28px);
}

.jp-motion:not(.jp-reveal-all) .jp-ti:not(.is-in) .jp-ti__number {
	opacity: 0;
	transform: translateX(-40px);
}

.jp-motion:not(.jp-reveal-all) .jp-ti:not(.is-in) .jp-ti__media img {
	clip-path: inset(0 0 0 100%);
}

.jp-motion:not(.jp-reveal-all) .jp-ti:not(.is-in) .jp-ti__media::before,
.jp-motion:not(.jp-reveal-all) .jp-ti:not(.is-in) .jp-ti__media::after {
	transform: scale(0);
}

.jp-motion:not(.jp-reveal-all) .jp-ti:not(.is-in) .jp-ti__accent {
	opacity: 0;
	transform: translateY(12px);
}

/* --- Gallery (on scroll) --------------------------------------------------- */

.jp-motion .jp-gallery__head > *,
.jp-motion .jp-gallery__title {
	transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.jp-motion .jp-gallery__title { transition-delay: 0.1s; }

.jp-motion .jp-gallery__rule {
	transform-origin: left;
	transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.3s;
}

.jp-motion .jp-video {
	transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.6s ease;
}

.jp-motion .jp-tile {
	transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
	transition-delay: var(--jp-delay, 0s);
}

.jp-motion:not(.jp-reveal-all) .jp-gallery__head:not(.is-in) .jp-label,
.jp-motion:not(.jp-reveal-all) .jp-gallery__head:not(.is-in) .jp-gallery__title {
	opacity: 0;
	transform: translateY(24px);
}

.jp-motion:not(.jp-reveal-all) .jp-gallery__head:not(.is-in) .jp-gallery__rule {
	transform: scaleX(0);
}

.jp-motion:not(.jp-reveal-all) .jp-video:not(.is-in) {
	opacity: 0;
	clip-path: inset(6% 6% 6% 6%);
}

.jp-motion:not(.jp-reveal-all) .jp-tile:not(.is-in) {
	opacity: 0;
	transform: translateY(40px);
}
