/* säm · the journey: world, chapters, passages, films, album, shop, finale, theatre. */

/* ---------- The world (fixed, behind everything on the home page) ---------- */

.world {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: var(--blue-950);
	pointer-events: none;
}
.world > * { position: absolute; }
.world__plate {
	top: 0;
	left: -2%;
	width: 104%;
	height: calc(var(--horizon, 55vh) + 12px);
	object-fit: cover;
	object-position: 50% 100%;
	will-change: transform, opacity;
}
.world__plate--storm { filter: brightness(0.6) saturate(0.92); }
.world__plate--sky { opacity: 0; }
.world__back,
.world__front,
.world__wash { inset: 0; width: 100%; height: 100%; }
.world__front { will-change: transform; }
.world__boat {
	top: 0;
	left: 0;
	width: clamp(150px, 17vw, 300px);
	height: auto;
	transform-origin: 50% 82%;
	filter: brightness(0.8) saturate(0.85);
	will-change: transform, opacity;
}
/* Without the script: a still sky over a flat sea, no boat. */
.world:not(.is-live) .world__plate--storm { height: 55vh; }
.world:not(.is-live) .world__boat { display: none; }
.world:not(.is-live) .world__wash { top: 55vh; background: var(--blue-900); }

.journey { position: relative; z-index: 1; }
body.home .finale { position: relative; z-index: 1; background: transparent; }

/* ---------- Chapter 1: the storm ----------
   The stage is pinned for about half a screen of scroll (--pin 0 → 1, eased
   in main.js): "paar pilve" leaves to the left, "taevas" to the right, the
   countdown stays put at its own size, and the words are gone just as the pin
   ends and the next chapter scrolls in. */

.chapter--storm { height: 160svh; }
.storm-stage {
	position: sticky;
	top: 0;
	height: 100svh;
	min-height: 560px;
	display: grid;
	grid-template-rows: auto 1fr;
	padding: calc(var(--header-h) + 3vh) var(--margin) 6vh;
	overflow: hidden;
}

.title {
	position: relative;
	z-index: 2;
	font-size: clamp(5.5rem, 1rem + 15vw, 18rem);
	font-weight: 700;
	font-stretch: 75%;
	line-height: 0.8;
	letter-spacing: -0.035em;
	text-transform: lowercase;
	color: var(--paper);
}
.title__line { display: block; width: max-content; will-change: transform; }
.title__line--1 { transform: translateX(calc(var(--pin, 0) * -100vw)); }
.title__line--2 { margin-left: 0.9em; transform: translateX(calc(var(--pin, 0) * 100vw)); }

.storm-stage__center {
	display: grid;
	place-items: center;
	align-self: stretch;
}
.countdown__grid { display: flex; justify-content: center; gap: clamp(18px, 3vw, 56px); margin: 0; }
.countdown__grid > div { display: flex; flex-direction: column-reverse; align-items: center; }
.countdown__grid dd {
	margin: 0;
	min-width: 1.1ch;
	font-size: clamp(3.5rem, 1.5rem + 6vw, 9rem);
	font-weight: 700;
	font-stretch: 75%;
	line-height: 0.85;
	text-align: center;
	font-variant-numeric: tabular-nums;
	color: var(--paper);
}
.countdown__grid dt { margin-top: 10px; font-size: var(--step-small); font-weight: 650; }
.storm-stage__out { display: grid; justify-items: center; gap: 10px; margin: 0; font-size: var(--step-statement); text-align: center; }
/* "nüüd väljas": the title's type (weight, width, spacing), at the size of the
   countdown it replaces, so it sits under the title instead of competing. */
.storm-stage__out-big { font-size: clamp(3.5rem, 1.5rem + 6vw, 9rem); font-weight: 700; font-stretch: 75%; line-height: 0.8; letter-spacing: -0.035em; text-transform: lowercase; }

/* ---------- Passages: the weather changes, a track title drifts through ---------- */

.passage {
	position: relative;
	height: 92svh;
	display: grid;
	align-items: center;
	overflow: hidden;
	pointer-events: none;
}
.passage__word {
	margin: 0;
	max-width: none;
	font-size: clamp(5rem, 1rem + 22vw, 28rem);
	font-weight: 700;
	font-stretch: 75%;
	line-height: 0.8;
	letter-spacing: -0.04em;
	text-transform: lowercase;
	white-space: nowrap;
	color: var(--paper);
}
.passage__word span { display: inline-block; transform: translateX(calc(40vw - var(--pin, 0.5) * 90vw)); will-change: transform; }
/* The clearing's word turns from paper to dark blue as the sky behind it
   clears, so it stays readable through the whole change of scene. */
.passage[data-ink="dark"] .passage__word { color: color-mix(in oklab, var(--blue-900) calc(clamp(0%, (var(--pin, 1) - 0.3) * 250%, 100%)), var(--paper)); }
.passage[data-scene="dusk"] .passage__word { color: var(--crimson-light); }

/* ---------- Chapter words: the section names, set as architecture ---------- */

.chapter__word {
	position: relative;
	z-index: 2;
	margin: 0 0 -0.16em;
	padding-inline: var(--margin);
	font-size: clamp(5rem, 1rem + 22vw, 27rem);
	font-weight: 700;
	font-stretch: 75%;
	line-height: 0.78;
	letter-spacing: -0.045em;
	text-transform: lowercase;
	pointer-events: none;
}
.chapter__word span { display: block; }
.chapter__word--right { text-align: right; }

/* ---------- Chapter 2: films ---------- */

.chapter--videos { padding-bottom: 0; }

.film { position: relative; }
.film__frame { position: relative; display: block; overflow: hidden; background: var(--blue-950); color: var(--paper); }
.film__still,
.film__loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out), filter 600ms; }
.film__frame:hover .film__still,
.film__frame:hover .film__loop { transform: scale(1.04); }
.film__play {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--paper);
	color: var(--night);
	font-weight: 700;
	transition: transform 300ms var(--ease-out), background-color 300ms, color 300ms;
}
.film__play span { display: flex; align-items: center; gap: 0.4em; }
.film__play span::before { content: ""; border-style: solid; border-width: 0.45em 0 0.45em 0.75em; border-color: transparent transparent transparent currentColor; }
.film__frame:hover .film__play,
.film__frame:focus-visible .film__play { transform: scale(1.08); background: var(--crimson); color: var(--paper); }
.film__text { position: relative; z-index: 2; }
.film__date { margin: 0; font-weight: 700; font-stretch: 75%; line-height: 0.85; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.film__title { font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.film__meta { margin: 6px 0 0; color: var(--muted); }

/* The lead film fills the screen; its title is cut into the frame. */
.film--lead { height: 100svh; min-height: 560px; }
.film--lead .film__frame { position: absolute; inset: 0; }
.film--lead .film__frame::after {
	content: "";
	position: absolute;
	inset: 50% 0 0;
	background: linear-gradient(to bottom, rgba(9, 11, 17, 0), rgba(9, 11, 17, 0.82)); /* taste-skill-ignore: neutral scrim under text on a photograph */
	pointer-events: none;
}
.film--lead .film__play { right: 7vw; bottom: 12vh; width: clamp(112px, 13vw, 220px); aspect-ratio: 1; font-size: clamp(1rem, 0.8rem + 0.6vw, 1.4rem); }
.film--lead .film__text {
	position: absolute;
	left: var(--margin);
	right: 30vw;
	bottom: calc(64px + 4vh);
	pointer-events: none;
}
.film--lead .film__date { font-size: clamp(1.25rem, 1rem + 1vw, 2rem); margin-bottom: 10px; }
.film--lead .film__title { font-size: clamp(3rem, 1rem + 7vw, 10rem); font-stretch: 78%; line-height: 0.86; letter-spacing: -0.035em; }

/* ---------- Chapter 3: album ---------- */

/* Nothing on the home page may widen it: the disc rolls out of its sleeve and the
   title lines slide off-screen. clip, not hidden, so the sticky stages still stick. */
.journey { overflow-x: clip; }
.chapter--album { color: var(--ink); padding-bottom: 14vh; overflow-x: clip; }
html:not(.world-live) .chapter--album,
html:not(.world-live) .passage[data-ink="dark"] { background: var(--sky); }
html:not(.world-live) .chapter--shop { background: var(--wine); }
.chapter--album.is-standalone { background: var(--sky); padding-top: calc(var(--header-h) + 6vh); }
.album__title {
	position: relative;
	z-index: 2;
	padding-inline: var(--margin);
	font-size: clamp(4.5rem, 1rem + 16vw, 20rem);
	font-weight: 700;
	font-stretch: 75%;
	line-height: 0.8;
	letter-spacing: -0.04em;
	color: var(--burgundy);
	text-transform: lowercase;
	pointer-events: none;
}
.album__title .hero__title-last { display: block; padding-left: 1.6em; }
.album__grid {
	display: grid;
	grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
	gap: var(--gutter) clamp(32px, 5vw, 96px);
	padding-inline: var(--margin);
	margin-top: -7vw;
}
.album__record { position: sticky; top: calc(var(--header-h) + 3vh); align-self: start; margin: 0; }
.album__sleeve { position: relative; width: 100%; }
.album__cover { position: relative; z-index: 1; width: 100%; height: auto; }
.album__disc {
	position: absolute;
	top: 3%;
	left: 3%;
	width: 94%;
	height: auto;
	transform: translateX(calc(var(--pin, 0) * 38%)) rotate(calc(var(--pin, 0) * 240deg));
	will-change: transform;
}
.album__body { padding-top: 12vw; }
.album__statement { font-size: clamp(1.75rem, 1rem + 2vw, 3rem); font-weight: 600; line-height: 1.1; max-width: 18ch; margin-bottom: 8vh; }
.album__listen { margin-bottom: clamp(160px, 16vh, 220px); }
.album__listen-title { margin-bottom: 18px; font-size: var(--step-statement); font-weight: 700; letter-spacing: 0; }
.album__links { margin: 0; padding: 0; list-style: none; }
.album__links .biglink { font-size: clamp(2.25rem, 1rem + 4vw, 5rem); line-height: 1; }

/* The road sign from the back cover. */
.sign { position: relative; z-index: 2; container-type: inline-size; padding: clamp(14px, 1.6vw, 22px); background: var(--blue); color: var(--paper); }
.sign__title { margin: 0 0 12px; font-size: clamp(3rem, 24cqw, 12rem); font-weight: 700; font-stretch: 75%; line-height: 0.8; letter-spacing: -0.01em; text-transform: uppercase; }
.sign__rows { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.sign__row summary,
.sign__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 54px;
	padding: 8px 14px;
	font-size: clamp(1.05rem, 0.8rem + 1.3cqw, 1.6rem);
	font-weight: 650;
	font-stretch: 78%;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.1;
}
.sign__row summary { list-style: none; cursor: pointer; background: var(--blue-600); transition: background-color 160ms, padding 200ms var(--ease-out); }
.sign__row summary::-webkit-details-marker { display: none; }
.sign__row summary:hover { background: var(--crimson); padding-left: 22px; }
.sign__row[open] summary { background: var(--burgundy); }
.sign__feat { font-weight: 500; }
.sign__time { font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.sign__panel { padding: 16px 14px 20px; background: var(--burgundy); font-size: 1rem; font-stretch: 100%; }
.sign__panel audio { width: 100%; margin-bottom: 14px; }
.sign__panel a { color: inherit; font-weight: 700; }
.sign__credits { display: grid; gap: 4px; margin: 0; }
.sign__credits div { display: grid; grid-template-columns: minmax(8em, max-content) 1fr; gap: 12px; }
.sign__credits dt { font-weight: 700; }
.sign__credits dd { margin: 0; }
.sign__total { margin: 10px 0 0; }

/* ---------- Chapter 4: shop ---------- */

.chapter--shop { color: var(--ink); padding-bottom: 10vh; }
.product-stage {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: center;
	padding-inline: var(--margin);
	margin-block: 12vh;
}
.product-stage__media { position: relative; display: block; }
.product-stage__image { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 900ms var(--ease-out); }
.product-stage__media:hover .product-stage__image { transform: scale(1.03); }
.product-stage__second {
	position: absolute;
	right: 5%;
	bottom: -14%;
	width: 40%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	transform: rotate(4deg);
	transition: transform 600ms var(--ease-out);
}
.product-stage__media:hover .product-stage__second { transform: rotate(0deg) translateY(-8px); }
.product-stage__disc { position: absolute; top: 4%; right: -30%; width: 92%; height: auto; }
.product-stage__text { display: grid; gap: 14px; justify-items: start; }
.product-stage__pre { margin: 0; font-weight: 700; color: var(--sky); }
.product-stage__name { font-size: clamp(2.5rem, 1rem + 3.6vw, 5.5rem); font-stretch: 76%; line-height: 0.86; letter-spacing: -0.035em; }
.product-stage__name a { text-decoration: none; }
.product-stage__name a:hover { color: var(--sky); }
.product-stage__desc p { margin: 0; }
.product-stage__price { margin: 0; font-size: var(--step-statement); font-weight: 700; }
.product-stage__price del { opacity: 0.7; }
.product-stage__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.product-stage__buy .added_to_cart { font-weight: 700; color: var(--sky); }
.product-stage__more { font-weight: 700; text-decoration: none; }
.product-stage__more:hover { text-decoration: underline; }

.product-stage--lead .product-stage__media { grid-column: 1 / span 7; }
.product-stage--lead .product-stage__text { grid-column: 8 / span 5; }
.product-stage--left .product-stage__media { grid-column: 2 / span 4; }
.product-stage--left .product-stage__text { grid-column: 7 / span 5; }
.product-stage--right .product-stage__media { grid-column: 8 / span 4; grid-row: 1; }
.product-stage--right .product-stage__text { grid-column: 2 / span 5; grid-row: 1; }
.product-stage--left .product-stage__name,
.product-stage--right .product-stage__name { font-size: clamp(2.25rem, 1rem + 3.4vw, 5rem); }
.shop__all { padding-inline: var(--margin); margin: 0; text-align: right; }
.shop__all .biglink { font-size: clamp(2.5rem, 1rem + 4vw, 5.5rem); }

/* ---------- Concerts ---------- */

.chapter--concerts { padding-bottom: 12vh; }
.chapter--concerts.is-standalone { background: var(--blue-950); padding-top: clamp(16px, 3vh, 40px); }
/* The word sits above the signs at the album rail's size, never over them. */
.concerts__word { margin: 0 0 clamp(20px, 3vh, 36px); font-size: clamp(4rem, 1rem + 10vw, 12rem); }
.post-type-archive-sam_concert,
.post-type-archive-sam_concert .site-header { background: var(--blue-950); }
.concerts-empty { background: var(--blue-950); }
.signs { display: grid; gap: 6px; margin: 0; padding: 0 var(--margin); list-style: none; }
.sign-row {
	display: grid;
	grid-template-columns: 12ch minmax(0, 1fr) minmax(0, 0.8fr) auto;
	align-items: center;
	gap: var(--gutter);
	padding: 20px 22px;
	background: var(--blue-600);
	color: var(--paper);
}
.sign-row p { margin: 0; }
.sign-row__date { font-weight: 700; font-variant-numeric: tabular-nums; }
.sign-row__city { font-size: clamp(2rem, 1rem + 3vw, 4.5rem); font-stretch: 76%; text-transform: uppercase; letter-spacing: 0; }

/* ---------- Finale (footer) ---------- */

.finale {
	min-height: 100svh;
	display: grid;
	grid-template-rows: 1fr auto auto;
	padding: calc(var(--header-h) + 6vh) var(--margin) 0;
	background: var(--night);
	color: var(--paper);
	overflow: hidden;
}
.finale a { color: inherit; }
.finale__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px var(--gutter); align-content: start; }
.finale__line { grid-column: 1 / -1; font-size: clamp(2.5rem, 1rem + 4.5vw, 6rem); font-stretch: 80%; line-height: 0.9; max-width: 14ch; }
.finale__email { grid-column: 1; font-size: clamp(1.75rem, 1rem + 3.4vw, 5rem); font-weight: 700; font-stretch: 80%; line-height: 1; letter-spacing: -0.02em; word-break: break-word; text-decoration: none; }
.finale__email:hover { color: var(--crimson-light); }
.finale .temp-note { grid-column: 1; }
.finale__social { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; padding: 0; list-style: none; }
.finale__social .biglink { font-size: clamp(1.75rem, 1rem + 2vw, 3rem); }
.finale__nav { grid-column: 2; grid-row: 2 / span 2; align-self: end; justify-self: end; }
.finale__menu { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; text-align: right; }
.finale__menu a { font-size: var(--step-statement); font-weight: 700; text-decoration: none; }
.finale__menu a:hover { color: var(--crimson-light); }
.finale__mark { margin: 10vh 0 0; }
.finale__logo { display: block; width: 100%; height: auto; }
.finale__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 22px; }
.finale__legal p { margin: 0; }
.finale__docs { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- Theatre: the film player, over everything ---------- */

.theatre {
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: clamp(12px, 2vw, 32px) var(--margin);
	border: 0;
	background: transparent;
	color: var(--paper);
	overflow: hidden;
}
.theatre[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; animation: theatre-in 420ms var(--ease-out); }
.theatre::backdrop { background: rgba(9, 11, 17, 0.96); animation: theatre-fade 420ms var(--ease-out); }
@keyframes theatre-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes theatre-fade { from { opacity: 0; } to { opacity: 1; } }
html.theatre-open { overflow: hidden; }

.theatre__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.theatre__count { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.theatre__close {
	min-height: 48px;
	padding: 0 18px;
	border: 0;
	background: var(--paper);
	color: var(--night);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 160ms, color 160ms;
}
.theatre__close:hover { background: var(--crimson); color: var(--paper); }

/* The screen keeps 16:9 inside whatever space the viewport leaves. */
.theatre__screen,
.theatre__consent {
	grid-row: 2;
	grid-column: 1;
	place-self: center;
	width: min(100%, calc((100dvh - 200px) * 16 / 9));
	aspect-ratio: 16 / 9;
	background: #000;
}
.theatre__screen iframe,
.theatre__screen video { display: block; width: 100%; height: 100%; border: 0; }
.theatre__consent { display: grid; align-content: center; justify-items: start; gap: 22px; padding: clamp(20px, 5vw, 72px); background: var(--blue-900); }
.theatre__consent[hidden] { display: none; }
/* A film that is not out yet: its picture and when it arrives. */
.theatre__wait { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--blue-950); }
.theatre__wait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0.55; }
.theatre__wait p { position: absolute; left: 0; right: 0; bottom: clamp(16px, 4vw, 48px); margin: 0; padding-inline: clamp(16px, 4vw, 48px); font-size: clamp(1.75rem, 1rem + 2.6vw, 4rem); font-weight: 700; font-stretch: 78%; line-height: 0.95; letter-spacing: -0.02em; text-transform: lowercase; }
.theatre__consent-text { margin: 0; max-width: 40ch; font-size: var(--step-statement); line-height: 1.3; }
.theatre__consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.theatre__remember { display: flex; align-items: center; gap: 10px; font-size: var(--step-small); }
.theatre__remember input { width: 20px; height: 20px; accent-color: var(--crimson); }

.theatre__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 12px 32px; }
.theatre__title { font-size: clamp(1.75rem, 1rem + 2.6vw, 3.75rem); font-weight: 700; font-stretch: 78%; line-height: 0.9; letter-spacing: -0.03em; }
.theatre__meta { margin: 6px 0 0; color: #b9c4d6; }
.theatre__links { display: flex; gap: 20px; font-weight: 700; }
.theatre__link { padding-block: 10px; text-decoration: none; }
.theatre__link:hover { text-decoration: underline; }
.theatre__link[hidden] { display: none; }
.theatre__nav { display: flex; gap: 8px; }
.theatre__step {
	width: 56px;
	height: 56px;
	border: 2px solid var(--paper);
	background: transparent;
	color: var(--paper);
	font: inherit;
	font-size: 1.4rem;
	cursor: pointer;
	transition: background-color 160ms, color 160ms;
}
.theatre__step:hover { background: var(--paper); color: var(--night); }
.theatre__step[hidden] { display: none; }

@media (max-width: 767px) {
	.theatre { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
	.theatre__screen,
	.theatre__consent { width: 100%; }
	.theatre__consent { aspect-ratio: auto; min-height: 56.25vw; }
	.theatre__foot { grid-template-columns: minmax(0, 1fr) auto; }
	.theatre__links { grid-column: 1 / -1; grid-row: 2; }
	.theatre__nav { grid-column: 2; grid-row: 1; }
	.theatre__step { width: 48px; height: 48px; }
}

/* ---------- Film grid: the editorial rhythm ---------- */

.film-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(64px, 10vh, 140px) var(--gutter);
	margin: clamp(80px, 12vh, 160px) 0 0;
	padding: 0 var(--margin);
	list-style: none;
}
.film-grid__item .film__frame { aspect-ratio: 16 / 9; }
.film-grid__item--0 { grid-column: 1 / span 8; }
.film-grid__item--1 { grid-column: 9 / span 4; margin-top: 22vh; }
.film-grid__item--1 .film__frame { aspect-ratio: 4 / 5; }
.film-grid__item--2 { grid-column: 2 / span 6; }
.film-grid__item--2 .film__frame { aspect-ratio: 3 / 2; }
.film-grid__item--3 { grid-column: 6 / span 7; margin-top: -10vh; }
.film-grid__item--4 { grid-column: 1 / -1; }
.film-grid__item--4 .film__frame { aspect-ratio: 21 / 9; }
.film-grid .film__play { left: 50%; top: 50%; width: clamp(76px, 7vw, 112px); aspect-ratio: 1; transform: translate(-50%, -50%) scale(0.86); opacity: 0; font-size: 0.95rem; transition: opacity 260ms, transform 300ms var(--ease-out), background-color 300ms, color 300ms; }
.film-grid .film__frame:hover .film__play,
.film-grid .film__frame:focus-visible .film__play { opacity: 1; transform: translate(-50%, -50%) scale(1); background: var(--crimson); color: var(--paper); }
@media (hover: none) { .film-grid .film__play { opacity: 1; transform: translate(-50%, -50%) scale(0.8); } }
.film-grid .film__still { filter: saturate(0.9) brightness(0.92); }
.film-grid .film__frame:hover .film__still { filter: none; }
.film-grid .film__text { margin-top: -0.5em; padding-left: 4px; }
.film-grid .film__date { font-size: clamp(2.75rem, 1rem + 4.6vw, 7rem); }
.film-grid .film__title { margin-top: 12px; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.75rem); font-stretch: 80%; letter-spacing: -0.02em; }
.film-grid__item--4 .film__title { font-size: clamp(2rem, 1rem + 3vw, 4.5rem); }
.film__title a { text-decoration: none; }
.film__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.film__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.film__yt { font-weight: 700; color: var(--paper); text-decoration: none; }
.film__yt:hover { color: var(--crimson-light); }
.biglink--arrow::after { content: "→"; font-size: 0.8em; }

/* ---------- Videos archive and single video ---------- */

.films-archive { padding-top: clamp(24px, 4vh, 56px); padding-bottom: 14vh; background: var(--blue-950); }
.single-film { background: var(--blue-950); padding-bottom: 14vh; }
.single-film .film--lead { height: 100svh; }
.single-film .film--lead .film__title { font-size: clamp(3rem, 1rem + 8vw, 11rem); }
.single-film__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter) clamp(32px, 5vw, 96px); padding: clamp(56px, 9vh, 120px) var(--margin) 0; }
.single-film__about .statement { max-width: 32ch; }
.single-film__about .biglink { font-size: clamp(2rem, 1rem + 3vw, 4rem); }
.single-film__facts { display: grid; gap: 14px; margin: 0; align-content: start; }
.single-film__facts div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; }
.single-film__facts dt { color: var(--muted); }
.single-film__facts dd { margin: 0; font-weight: 700; }
.single-film__streams { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.films-more { padding-top: clamp(80px, 14vh, 180px); }

@media (max-width: 899px) {
	.film-grid { grid-template-columns: minmax(0, 1fr); gap: 9vh; }
	.film-grid li[class*="film-grid__item"] { grid-column: 1; margin-top: 0; }
	.film-grid__item--1 .film__frame,
	.film-grid__item--4 .film__frame { aspect-ratio: 16 / 9; }
	.film-grid__item--1 { width: 76%; margin-left: auto; }
	.single-film__body { grid-template-columns: minmax(0, 1fr); }
	.single-film__facts div { grid-template-columns: 7em minmax(0, 1fr); }
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 899px) {
	.chapter--storm { height: 150svh; }
	.storm-stage { padding-top: calc(var(--header-h) + 6vh); }
	.title { font-size: clamp(4.5rem, 24vw, 12rem); }
	.storm-stage__out-big { font-size: clamp(3rem, 14vw, 6rem); }
	.title__line--2 { margin-left: 0.5em; }
	.countdown__grid { gap: 14px; }
	.passage { height: 70svh; }
	.film--lead .film__text { right: var(--margin); bottom: calc(132px + 6vh); }
	.film--lead .film__play { right: var(--margin); bottom: calc(40px + 3vh); width: 96px; }
	.album__grid { grid-template-columns: minmax(0, 1fr); margin-top: 4vh; }
	.album__record { position: relative; top: 0; width: 82%; }
	.album__body { padding-top: 6vh; }
	.album__title .hero__title-last { padding-left: 0.6em; }
	.product-stage { grid-template-columns: minmax(0, 1fr); margin-block: 8vh; }
	.product-stage--lead .product-stage__media,
	.product-stage--left .product-stage__media,
	.product-stage--right .product-stage__media,
	.product-stage .product-stage__text { grid-column: 1; grid-row: auto; }
	.product-stage__media { width: 78%; margin-bottom: 14%; }
	.product-stage--right .product-stage__media { margin-left: auto; }
	.sign-row { grid-template-columns: minmax(0, 1fr) auto; }
	.sign-row__city { grid-column: 1 / -1; grid-row: 2; }
	.finale__top { grid-template-columns: minmax(0, 1fr); }
	.finale__nav { grid-column: 1; grid-row: auto; justify-self: start; }
	.finale__menu { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	.title__line,
	.passage__word span,
	.album__disc { transform: none !important; }
	/* Nothing travels, so nothing needs to be pinned. */
	.chapter--storm { height: auto; }
	.storm-stage { position: relative; min-height: 100svh; }
}

/* ---------- Interior: film stacks (videos archive, more films) ---------- */

.archive-films,
.more-films { padding-block: 10vh; }
.film-stack { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8vh var(--gutter); margin: 0; padding: 0 var(--margin); list-style: none; }
.film-stack__item--0 { grid-column: 1 / span 8; }
.film-stack__item--1 { grid-column: 8 / span 5; }
.film-stack__item--2 { grid-column: 3 / span 6; }
.film-stack .film__frame { aspect-ratio: 16 / 10; }
.film-stack .film__play { left: 50%; top: 50%; width: 92px; aspect-ratio: 1; margin: -46px 0 0 -46px; font-size: 0.95rem; }
.film-stack .film__text { margin-top: -0.55em; padding-left: 4px; }
.film-stack .film__date { font-size: clamp(3rem, 1rem + 5vw, 7rem); }
.film-stack .film__title { margin-top: 12px; font-size: var(--step-statement); }
.single-film .film--lead { height: 92svh; }
.single-film__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); }
.single-film__credits h2 { font-size: var(--step-statement); margin-bottom: 12px; }
.entry__content--wide { max-width: none; }
@media (max-width: 899px) {
	.film-stack { grid-template-columns: minmax(0, 1fr); gap: 10vh; }
	.film-stack li[class*="film-stack__item"] { grid-column: 1; }
	.single-film__body { grid-template-columns: minmax(0, 1fr); }
}

.film--lead .film__text a { pointer-events: auto; }
@media (max-width: 767px) { .theatre::backdrop { background: var(--night); } }


/* ---------- Films: the title leads; "Vaata" is an underlined word ---------- */

.film__play { display: none; }
.film__frame:hover .film__still { transform: scale(1.03); }
.film__actions { margin: 10px 0 0; }
.film__watch {
	display: inline-block;
	padding-block: 6px;
	font-size: var(--step-statement);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
	transition: color 160ms, text-decoration-color 160ms;
}
.film__watch:hover { color: var(--crimson-light); text-decoration-color: var(--crimson-light); }
.film--lead .film__text { right: var(--margin); display: grid; justify-items: start; }
.film--lead .film__actions { margin-top: 18px; }
.film--lead .film__watch { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.75rem); }
.film-grid .film__text,
.film-stack .film__text { margin-top: 18px; }

/* ---------- The rail: the album's films, scrolled left to right ---------- */

.rail__stage { position: relative; isolation: isolate; }
/* The sea loop behind the films, its top and bottom feathered into the world. */
.rail__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.32;
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); /* taste-skill-ignore: feathers the video into the scene, not a decorative gradient */
	mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); /* taste-skill-ignore: feathers the video into the scene, not a decorative gradient */
}
.rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-inline: var(--margin); margin-bottom: clamp(18px, 3vh, 32px); }
.rail__word { margin: 0 0 -0.12em; padding: 0; font-size: clamp(4rem, 1rem + 10vw, 12rem); }
.rail__nav { display: flex; gap: 8px; margin-left: auto; }
.rail__step {
	width: 56px;
	height: 56px;
	border: 2px solid var(--paper);
	background: transparent;
	color: var(--paper);
	font: inherit;
	font-size: 1.4rem;
	cursor: pointer;
	transition: background-color 160ms, color 160ms, opacity 160ms;
}
.rail__step:hover { background: var(--paper); color: var(--night); }
.rail__step:disabled { opacity: 0.3; cursor: default; background: transparent; color: var(--paper); }
.rail__track {
	display: flex;
	gap: var(--gutter);
	margin: 0;
	padding: 0 var(--margin) 12px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--margin);
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	cursor: grab;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail__track.is-dragging a { pointer-events: none; }
.rail__track:focus-visible { outline-offset: -3px; }
.rail__item { flex: 0 0 clamp(270px, 34vw, 580px); scroll-snap-align: start; }

/* The videos page: one grid per album, a filter once there are several. */
.album-nav ul { display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 3vw, 44px); margin: 0 var(--margin) clamp(32px, 6vh, 64px); padding: 0; list-style: none; }
.album-nav a { color: #9fb2cc; font-size: clamp(1.75rem, 1rem + 2.4vw, 3.5rem); font-weight: 700; font-stretch: 76%; letter-spacing: -0.03em; text-transform: lowercase; text-decoration: none; transition: color 160ms; }
.album-nav a:hover,
.album-nav a[aria-current] { color: var(--paper); }
.album-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.album-group + .album-group { margin-top: clamp(80px, 14vh, 160px); }
.album-group__title { margin: 0 var(--margin) clamp(20px, 3vh, 32px); font-size: clamp(2.25rem, 1rem + 3.6vw, 5rem); font-weight: 700; font-stretch: 76%; line-height: 0.9; letter-spacing: -0.035em; text-transform: lowercase; }

/* The videos page: the same films in a grid, track order. */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(36px, 5vh, 64px) var(--gutter); margin: 0; padding: 0 var(--margin); list-style: none; }
@media (max-width: 599px) { .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .album-grid .film--album .film__title button { font-size: 1.375rem; } }

/* An album film: the picture and the title, both open the theatre. */
.film--album .film__frame { display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; background: var(--blue-900); cursor: pointer; }
.film--album .film__still { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
/* Not out yet: the whole square cover, centred on its own sky blue. */
.film--album .film__frame:has(.film__still--cover) { background: var(--sky); }
.film--album .film__still--cover { object-fit: contain; }
.film--album:hover .film__still { transform: scale(1.04); }
.film--album .film__title { margin: 16px 0 0; }
.film--album .film__title button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: clamp(1.5rem, 1rem + 1.5vw, 2.75rem);
	font-weight: 700;
	font-stretch: 78%;
	line-height: 0.95;
	letter-spacing: -0.02em;
	text-align: left;
	text-transform: lowercase;
	cursor: pointer;
}
.film--album .film__title button:hover { color: var(--sky); }
.film--album .film__info { margin: 8px 0 0; color: #b9c4d6; font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
	.rail__item { flex-basis: 82vw; }
	.rail__step { width: 48px; height: 48px; }
}

.album__presave { min-height: 64px; padding: 0 34px; font-size: var(--step-statement); }

/* Pinned rail: vertical scroll drives it. */
.rail.is-pinned { position: relative; }
.rail.is-pinned .rail__stage {
	position: sticky;
	top: 0;
	height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	padding-top: var(--header-h);
}
.rail.is-pinned .rail__track {
	overflow: visible;
	scroll-snap-type: none;
	cursor: default;
	will-change: transform;
}

/* Narrow phones: a smaller boat, so it rides beside the countdown, not over it. */
@media (max-width: 479px) {
	.world__boat { width: clamp(84px, 26vw, 150px); }
}
