/* Header */

.site-head {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 60;
	height: var(--head-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-inline: var(--gutter);
	border-bottom: 1px solid transparent;
	transition: background-color var(--mid) ease, border-color var(--mid) ease;
}

.site-head.is-solid {
	background: var(--black);
	border-bottom-color: var(--line);
}

.site-head__mark {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.site-head__ring {
	width: 34px;
	height: 34px;
}

.site-head__name {
	font-family: var(--display);
	font-stretch: 68%;
	font-weight: 800;
	font-size: 1.15rem;
	line-height: 1;
	letter-spacing: -.01em;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity var(--mid) ease, transform var(--mid) var(--ease);
}

.site-head.is-solid .site-head__name,
.site-head--inner .site-head__name {
	opacity: 1;
	transform: none;
}

/* The sky today: tonight's Moon and the sign the Sun is in. Filled by site.js, hidden without it. */

.sky-now {
	display: none;
	align-items: center;
	gap: 10px;
	margin-inline: clamp(18px, 2.6vw, 44px) auto;
	padding: 6px 14px 6px 8px;
	border: 1px solid var(--line);
	border-radius: 999px;
	text-decoration: none;
	font-family: var(--sans);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity var(--slow) ease, transform var(--slow) var(--ease), border-color var(--mid) ease;
}

@media (min-width: 1240px) {
	.sky-now:not([hidden]) {
		display: inline-flex;
	}
}

.sky-now.is-in {
	opacity: 1;
	transform: none;
}

.sky-now:hover,
.sky-now:focus-visible {
	border-color: var(--gold);
}

.sky-now__moon {
	flex: none;
	width: 22px;
	height: 22px;
	overflow: visible;
	animation: sky-glow 5s ease-in-out infinite;
}

.sky-now__moon circle {
	fill: color-mix(in srgb, currentColor 12%, transparent);
	stroke: color-mix(in srgb, currentColor 35%, transparent);
	stroke-width: .6;
}

.sky-now__moon path {
	fill: var(--gold);
}

.sky-now__sign {
	width: 18px;
	height: 18px;
	color: var(--gold);
	transition: transform var(--slow) var(--ease);
}

.sky-now:hover .sky-now__sign {
	transform: rotate(360deg);
}

.sky-now__rule {
	width: 1px;
	height: 16px;
	background: var(--line);
}

.sky-now__text {
	display: grid;
	overflow: hidden;
	height: 1em;
}

.sky-now__line,
.sky-now__more {
	grid-area: 1 / 1;
	white-space: nowrap;
	transition: transform var(--mid) var(--ease), opacity var(--mid) ease;
}

.sky-now__more {
	transform: translateY(110%);
	opacity: 0;
	color: var(--gold);
}

.sky-now:hover .sky-now__line,
.sky-now:focus-visible .sky-now__line {
	transform: translateY(-110%);
	opacity: 0;
}

.sky-now:hover .sky-now__more,
.sky-now:focus-visible .sky-now__more {
	transform: none;
	opacity: 1;
}

@keyframes sky-glow {
	0%, 100% { filter: drop-shadow(0 0 0 transparent); }
	50% { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--gold) 70%, transparent)); }
}

@media (prefers-reduced-motion: reduce) {
	.sky-now__moon { animation: none; }
	.sky-now:hover .sky-now__sign { transform: none; }
}

.site-head__nav {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 30px);
}

.site-head__links {
	display: flex;
	gap: clamp(16px, 2vw, 30px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-head__links a {
	font-size: .9375rem;
	font-weight: 600;
	text-decoration: none;
	padding-block: 6px;
	background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat;
	transition: background-size var(--mid) var(--ease), color var(--fast) ease;
}

.site-head__links a:hover,
.site-head__links .current-menu-item > a,
.site-head__links a[aria-current="page"] {
	background-size: 100% 1px;
}

@media (max-width: 1020px) {
	.site-head__links {
		display: none;
	}
}

.menu-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-family: var(--serif);
	font-weight: 300;
	font-size: 1.0625rem;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.menu-btn__plus {
	display: inline-block;
	transition: transform var(--mid) var(--ease);
}

.menu-btn[aria-expanded="true"] .menu-btn__plus {
	transform: rotate(45deg);
}

/* Light and dark switch */

.mode-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-size: var(--t-label);
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: inherit;
}

.mode-btn__dot {
	width: 14px;
	height: 14px;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: linear-gradient(to right, currentColor 50%, transparent 50%);
	transition: rotate var(--mid) var(--ease);
}

:root[data-theme="light"] .mode-btn__dot {
	rotate: 180deg;
}

.mode-btn:hover {
	color: var(--gold-pale);
}

@media (max-width: 640px) {
	.site-head .mode-btn__word {
		display: none;
	}
}

/* Full-screen menu */

.site-menu {
	position: fixed;
	inset: 0;
	z-index: 55;
	display: grid;
	grid-template-rows: 1fr auto;
	padding: calc(var(--head-h) + 12px) var(--gutter) var(--gutter);
	background: var(--navy);
	overflow-y: auto;
	visibility: hidden;
	clip-path: inset(0 0 100% 0);
	transition: clip-path var(--slow) var(--ease-io), visibility 0s linear var(--slow);
}

.site-menu.is-open {
	visibility: visible;
	clip-path: inset(0);
	transition: clip-path var(--slow) var(--ease-io), visibility 0s;
}

.site-menu__list {
	align-self: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-menu__list li {
	border-top: 1px dashed var(--line-2);
}

.site-menu__list li:last-child {
	border-bottom: 1px dashed var(--line-2);
}

.site-menu__list a {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding-block: clamp(8px, 1.4vh, 16px);
	font-family: var(--serif);
	font-weight: 200;
	font-size: clamp(2.4rem, 7.4vh, 4.6rem);
	line-height: 1;
	letter-spacing: -.03em;
	text-transform: uppercase;
	text-decoration: none;
	transform: translateY(110%);
	opacity: 0;
	transition: transform var(--slow) var(--ease), opacity var(--mid) ease, color var(--fast) ease;
}

.site-menu__list li {
	overflow: hidden;
}

.site-menu.is-open .site-menu__list a {
	transform: none;
	opacity: 1;
	transition-delay: calc(var(--i, 0) * 70ms + 240ms);
}

.site-menu__list a:hover {
	color: var(--gold-pale);
}

@media (min-width: 900px) {
	.site-menu__list li:nth-child(6n + 1) a { padding-left: 3vw; }
	.site-menu__list li:nth-child(6n + 2) a { padding-left: 17vw; }
	.site-menu__list li:nth-child(6n + 3) a { padding-left: 35vw; }
	.site-menu__list li:nth-child(6n + 4) a { padding-left: 58vw; }
	.site-menu__list li:nth-child(6n + 5) a { padding-left: 9vw; }
	.site-menu__list li:nth-child(6n) a { padding-left: 42vw; }
}

.site-menu__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 20px;
}

.site-menu__foot a {
	text-decoration: none;
}

.site-menu__foot a:hover {
	color: var(--gold-pale);
}

/* Buttons and links */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 26px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	text-align: center;
	transition: background-color var(--fast) ease, border-color var(--fast) ease, color var(--fast) ease;
}

.btn--primary {
	background: var(--royal);
	border-color: var(--royal-edge);
	color: var(--bone);
}

.btn--primary:hover {
	background: var(--royal-hi);
}

.btn--primary:active {
	background: var(--royal-deep);
}

.btn--line {
	border-color: var(--line-2);
	color: var(--bone);
}

.btn--line:hover {
	border-color: var(--gold);
	color: var(--gold-pale);
}

.btn[disabled],
.btn.is-busy {
	opacity: .55;
	cursor: progress;
}

@media (max-width: 480px) {
	.btn--block-sm {
		width: 100%;
	}
}

.link {
	display: inline-flex;
	align-items: baseline;
	gap: .45em;
	font-weight: 600;
	text-decoration: none;
	padding-block: 4px;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	transition: color var(--fast) ease, background-size var(--mid) var(--ease);
}

.link::after {
	content: "\2192";
	display: inline-block;
	transition: transform var(--mid) var(--ease);
}

.link:hover {
	color: var(--gold-pale);
}

.link:hover::after {
	transform: translateX(5px);
}

.link--out::after {
	content: "\2197";
}

.link--plain::after {
	content: none;
}

/* The still of a film, one for each mode when the film has a light copy */

.film-still--light {
	display: none;
}

:root[data-theme="light"] .film-still--dark {
	display: none;
}

:root[data-theme="light"] .film-still--light {
	display: block;
}

/* Footage with no light copy of its own is turned light the old way, so it never sits as a dark slab on a light page */

:root[data-theme="light"] video[data-src]:not([data-src-light]) {
	filter: invert(1) hue-rotate(180deg) contrast(1.06) saturate(1.25);
}

/* Line icons, drawn from assets/img/icons.svg. They take the colour of the text around them. */

.icon {
	flex: none;
	width: 1.5em;
	height: 1.5em;
	overflow: visible;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The mark in two layers, so the serpent can turn while the sign inside it stays upright */

.ring-mark {
	position: relative;
	display: block;
	flex: none;
	width: var(--ring, 84px);
	aspect-ratio: 1;
}

.ring-mark img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.lockup {
	display: flex;
	align-items: center;
	gap: 18px;
}

.lockup__name {
	display: block;
	font-family: var(--display);
	font-stretch: 68%;
	font-weight: 800;
	font-size: clamp(1.25rem, 1.9vw, 1.7rem);
	line-height: .95;
	letter-spacing: -.01em;
	text-transform: uppercase;
}

.lockup__motto {
	display: block;
	margin-top: 6px;
	font-size: 1.0625rem;
}

/* Media frame used by every tile and entry */

.frame {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--ink-2);
}

.frame > img,
.frame > video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--ease);
}

.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--4x5 { aspect-ratio: 4 / 5; }
.frame--1x1 { aspect-ratio: 1; }
.frame--3x4 { aspect-ratio: 3 / 4; }

.frame--contain > img {
	object-fit: contain;
	padding: 6%;
}

a:hover > .frame > img,
.tile:hover .frame > img,
.entry:hover .frame > img {
	transform: scale(1.04);
}

/* A book with some thickness to it. The script feeds --p as the page moves past, which turns it. */

.book3d {
	--thick: clamp(22px, 2.6vw, 38px);
	position: relative;
	display: block;
	transform-style: preserve-3d;
	transform: rotateY(calc(-26deg - var(--p, 0) * 16deg)) rotateX(calc(var(--p, 0) * 4deg));
	transition: transform 1s var(--ease);
}

.book3d__face {
	position: relative;
	display: block;
	aspect-ratio: 794 / 1123;
	overflow: hidden;
	transform: translateZ(calc(var(--thick) / 2));
	border-radius: 0 3px 3px 0;
	background: var(--ink-2);
	box-shadow: inset 5px 0 8px -4px rgb(0 0 0 / .55);
}

.book3d__face img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Light crossing the cover */

.book3d__face::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(104deg, transparent 36%, rgb(255 240 200 / .26) 50%, transparent 64%);
	translate: calc(-130% + var(--p, 0) * -160%) 0;
}

/* The block of pages along the fore edge */

.book3d::before {
	content: "";
	position: absolute;
	top: 1.2%;
	bottom: 1.2%;
	left: 100%;
	width: var(--thick);
	margin-left: calc(var(--thick) / -2 - 2px);
	transform: rotateY(90deg);
	background: repeating-linear-gradient(to right, #efe6d0 0 1px, #cbbf9f 1px 2.5px);
}

/* The back board and the shadow it throws */

.book3d::after {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateZ(calc(var(--thick) / -2));
	border-radius: 0 3px 3px 0;
	background: #160f08;
	box-shadow: -26px 22px 46px rgb(0 0 0 / .62);
}

:root[data-theme="light"] .book3d::after {
	box-shadow: -26px 22px 46px rgb(60 40 10 / .34);
}

/* Tile: poster card for charts, albums, books, merch */

.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-decoration: none;
}

.tile .frame {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color var(--fast) ease;
}

.tile:hover .frame,
.tile:focus-visible .frame {
	border-color: var(--gold);
}

/* The artwork lifts, leans toward the pointer and catches the light. The script feeds --rx and --ry. */

.tile .frame {
	transition: border-color var(--fast) ease, transform .6s var(--ease), box-shadow .6s var(--ease);
}

.tile .frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(108deg, transparent 38%, rgb(255 244 210 / .22) 50%, transparent 62%);
	translate: -130% 0;
	pointer-events: none;
}

.tile:hover .frame,
.tile:focus-visible .frame,
.tile.is-focus .frame {
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-10px) scale(1.025);
	box-shadow: 0 34px 50px -34px rgb(0 0 0 / .9), 0 0 44px -18px rgb(212 175 55 / .55);
}

.tile:hover .frame::after,
.tile:focus-visible .frame::after,
.tile.is-focus .frame::after {
	translate: 130% 0;
	transition: translate 1.1s var(--ease);
}

.tile.is-focus .frame > img {
	transform: scale(1.04);
}

.tile__badge {
	transition: translate .6s var(--ease);
}

.tile:hover .tile__badge,
.tile.is-focus .tile__badge {
	translate: 0 -10px;
}

.tile__title {
	transition: color var(--fast) ease;
}

.tile:hover .tile__title,
.tile:focus-visible .tile__title {
	color: var(--gold-pale);
}

.tile__body {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 12px;
	align-items: baseline;
}

.tile__title {
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.25;
}

.tile__meta {
	grid-column: 1 / -1;
	font-size: var(--t-small);
	color: var(--bone-2);
}

.tile__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 5px 9px;
	background: var(--black);
	border: 1px solid var(--gold-soft);
	color: var(--gold-pale);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Entry: article row */

.entries {
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(12px, 1.6vw, 24px);
	row-gap: 14px;
	align-items: start;
	padding-block: clamp(22px, 2.6vw, 36px);
	border-top: 1px dashed var(--line-2);
}

.entry {
	background: linear-gradient(var(--ink-2), var(--ink-2)) 0 0 / 0 100% no-repeat;
	transition: background-size .7s var(--ease);
}

.entry:hover {
	background-size: 100% 100%;
}

.entries > :last-child .entry,
.entry:last-child {
	border-bottom: 1px dashed var(--line-2);
}

.entry__index {
	grid-column: 1 / span 1;
	font-size: 1.05rem;
	padding-top: .35em;
}

.entry__media {
	grid-column: 2 / span 3;
}

.entry__main {
	grid-column: 5 / span 6;
}

.entry--plain .entry__main {
	grid-column: 2 / span 8;
}

.entry__title {
	font-family: var(--display);
	font-stretch: 68%;
	font-weight: 700;
	font-size: clamp(1.6rem, 3.1vw, 2.75rem);
	line-height: .96;
	letter-spacing: -.014em;
	text-transform: uppercase;
	text-wrap: balance;
}

.entry__title a {
	text-decoration: none;
	background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat;
	transition: background-size var(--slow) var(--ease);
}

.entry__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.entry:hover .entry__title a {
	background-size: 100% 2px;
}

.entry__excerpt {
	margin-top: 14px;
	font-family: var(--serif);
	font-weight: 300;
	font-size: 1.0625rem;
	line-height: 1.45;
	color: var(--bone-2);
	max-width: 52ch;
}

.entry__meta {
	grid-column: 11 / -1;
	justify-self: end;
	text-align: right;
	display: grid;
	gap: 6px;
	padding-top: .35em;
}

@media (max-width: 800px) {
	.entry__index { grid-column: 1 / span 2; }
	.entry__media { grid-column: 3 / -1; }
	.entry__main,
	.entry--plain .entry__main { grid-column: 3 / -1; }
	.entry__meta {
		grid-column: 3 / -1;
		justify-self: start;
		text-align: left;
		display: flex;
		gap: 14px;
	}
}

/* Ticker: one very large line of words that crosses the page */

.ticker {
	overflow: hidden;
	padding-block: clamp(28px, 4vw, 56px);
	border-block: 1px dashed var(--line-2);
	background: var(--black);
}

.ticker__track {
	display: flex;
	width: max-content;
	gap: .5em;
	font-family: var(--display);
	font-stretch: 64%;
	font-weight: 800;
	font-size: clamp(4rem, 12.5vw, 11.5rem);
	line-height: .9;
	letter-spacing: -.015em;
	text-transform: uppercase;
	white-space: nowrap;
	translate: calc(var(--p, 0) * -9%) 0;
}

.ticker__track span {
	color: transparent;
	-webkit-text-stroke: 1px var(--bone-2);
}

.ticker__track span:nth-child(4n + 1) {
	color: var(--gold);
	-webkit-text-stroke: 0;
}

.ticker__track i {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 200;
	font-stretch: 100%;
	text-transform: none;
	letter-spacing: -.02em;
	color: var(--bone);
}

/* Strip: the moving row of items along the bottom of the hero */

.strip {
	position: relative;
	overflow: hidden;
	border-block: 1px solid var(--line);
	background: rgb(var(--scrim) / .38);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	-webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.strip__track {
	display: flex;
	width: max-content;
	gap: 0;
}

.strip__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-block: 12px;
	text-decoration: none;
	transition: opacity var(--mid) ease;
}

/* A gold lozenge between one item and the next */

.strip__item::after {
	content: "";
	flex: none;
	width: 5px;
	height: 5px;
	margin-inline: clamp(22px, 2.6vw, 40px);
	rotate: 45deg;
	background: var(--gold);
	opacity: .75;
}

.strip__thumb {
	flex: none;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	overflow: hidden;
	border: 1px solid var(--line-2);
	background: var(--ink-3);
	color: var(--gold);
	transition: border-color var(--fast) ease;
}

.strip__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale .7s var(--ease);
}

.strip__thumb .icon {
	width: 24px;
	height: 24px;
}

.strip__thumb--type {
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.15rem;
}

.strip__text {
	display: flex;
	flex-direction: column-reverse;
	gap: 5px;
	min-width: 0;
}

.strip__label {
	display: block;
	max-width: 30ch;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: var(--display);
	font-stretch: 72%;
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: .98;
	letter-spacing: -.01em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color var(--fast) ease;
}

.strip__sub {
	display: block;
	font-size: .6875rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gold);
}

@media (hover: hover) {
	.strip:hover .strip__item:not(:hover) {
		opacity: .42;
	}
}

.strip__item:hover .strip__label,
.strip__item:focus-visible .strip__label {
	color: var(--gold-pale);
}

.strip__item:hover .strip__thumb,
.strip__item:focus-visible .strip__thumb {
	border-color: var(--gold);
}

.strip__item:hover .strip__thumb img {
	scale: 1.14;
}

@media (max-width: 640px) {
	.strip__thumb {
		width: 48px;
		height: 48px;
	}

	.strip__label {
		font-size: .9375rem;
	}
}

/* Footage band: a film loop seen first through one giant word, then in full with a line over it */

.band {
	position: relative;
	background: var(--black);
	color: var(--bone);
}

.band__pin {
	position: relative;
	display: grid;
	place-items: center;
	min-height: min(88svh, 820px);
	padding: var(--section) var(--gutter);
	overflow: hidden;
	isolation: isolate;
}

.band__film {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: calc(var(--film-opacity) * .8);
	filter: var(--film-filter);
	mix-blend-mode: var(--film-blend);
}

.band__knock {
	display: none;
}

.band__word {
	font-size: 13.5vw;
	white-space: nowrap;
}

.band__text {
	position: relative;
	display: grid;
	justify-items: center;
}

.band__text::before {
	content: "";
	position: absolute;
	inset: -18% -14%;
	z-index: -1;
	background: radial-gradient(closest-side, rgb(var(--scrim) / .7) 30%, transparent);
	pointer-events: none;
}

.band__line {
	max-width: 20ch;
	font-family: var(--serif);
	font-weight: 200;
	font-size: clamp(2.1rem, 5.4vw, 5rem);
	line-height: 1.06;
	letter-spacing: -.022em;
	text-align: center;
	text-wrap: balance;
}

.band__by {
	margin-top: 28px;
	text-align: center;
	font-size: 1.125rem;
}

/* Pinned: the script adds .is-pinned and feeds --t from 0 to 1 while the band is held on screen */

.band.is-pinned {
	height: 200svh;
}

.band.is-pinned .band__pin {
	position: sticky;
	top: 0;
	height: 100svh;
	min-height: 0;
	padding-block: 0;
}

.band.is-pinned .band__film {
	scale: calc(1.3 - var(--t, 0) * .3);
}

.band.is-pinned .band__knock {
	position: absolute;
	inset: 0;
	z-index: -1;
	display: grid;
	place-items: center;
	background: #000;
	color: #fff;
	mix-blend-mode: multiply;
	opacity: clamp(0, calc((.8 - var(--t, 0)) / .3), 1);
}

:root[data-theme="light"] .band.is-pinned .band__knock {
	background: #fff;
	color: #000;
	mix-blend-mode: screen;
}

/* The word is a window onto the film, so here the film keeps its full strength.
   The sentence that follows has its own veil. */

:root[data-theme="light"] .band.is-pinned {
	--film-opacity: 1;
}

.band.is-pinned .band__word {
	scale: calc(1 + var(--t, 0) * var(--t, 0) * var(--t, 0) * 16);
}

.band.is-pinned .band__text {
	opacity: clamp(0, calc((var(--t, 0) - .6) / .16), 1);
	translate: 0 calc(clamp(0, calc((.8 - var(--t, 0)) / .2), 1) * 56px);
}

.js .band.is-pinned .band__pin .band__line [data-word] {
	opacity: clamp(.12, calc((var(--t, 0) - .64 - var(--i, 0) * .018) / .08), 1);
	transition: none;
}

/* Short screens and heavy zoom: the band is not held, so the line can never be clipped */

@media (max-height: 560px) {
	.band.is-pinned {
		height: auto;
	}

	.band.is-pinned .band__pin {
		position: static;
		height: auto;
		min-height: min(88svh, 820px);
		padding-block: var(--section);
	}

	.band.is-pinned .band__knock {
		display: none;
	}

	.band.is-pinned .band__text,
	.js .band.is-pinned .band__pin .band__line [data-word] {
		opacity: 1;
		translate: none;
	}
}

/* Price list: readings */

.rates {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rates__row {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) auto;
	gap: 16px;
	align-items: baseline;
	padding-block: clamp(16px, 2vw, 26px);
	border-top: 1px solid var(--line-2);
}

.rates__row:last-child {
	border-bottom: 1px solid var(--line-2);
}

.rates__name {
	font-family: var(--display);
	font-stretch: 68%;
	font-weight: 700;
	font-size: clamp(1.5rem, 2.8vw, 2.4rem);
	line-height: 1;
	text-transform: uppercase;
}

.rates__name,
.rates__row .link {
	transition: translate var(--mid) var(--ease), color var(--fast) ease;
}

.rates__row:hover .rates__name {
	translate: 12px 0;
	color: var(--gold-pale);
}

.rates__price {
	font-size: clamp(1.25rem, 2vw, 1.75rem);
}

/* Book and PayPal side by side at the end of a rate */

.rates__go {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px 22px;
}

@media (max-width: 560px) {
	.rates__row {
		grid-template-columns: 1fr auto;
	}

	.rates__row .link,
	.rates__go {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

/* Sign-off and footer */

.signoff {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: grid;
	justify-items: center;
	padding: clamp(90px, 13vw, 190px) var(--gutter) clamp(64px, 8vw, 110px);
	text-align: center;
	background: var(--black);
	color: var(--bone);
}

/* The night sky: a still that is there at once, and the film over it */

.signoff__sky {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.signoff__sky img,
.signoff__sky video,
.signoff__film {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 70%;
	opacity: var(--film-opacity);
	filter: var(--film-filter);
	mix-blend-mode: var(--film-blend);
}

.signoff__sky video {
	opacity: 0;
	transition: opacity 1.2s ease;
}

.signoff__sky video.is-playing {
	opacity: var(--film-opacity);
}

.signoff__sky video.is-ending {
	opacity: 0;
}

.signoff::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to bottom, var(--black), transparent 22%),
		radial-gradient(ellipse 70% 60% at 50% 58%, rgb(var(--scrim) / .55), transparent 70%),
		linear-gradient(to top, var(--black) 4%, transparent 46%);
}

.signoff .ring-mark {
	--ring: clamp(72px, 8vw, 112px);
	margin-bottom: clamp(18px, 2.4vw, 30px);
}

.signoff__name {
	font-size: clamp(2.2rem, 6.4vw, 7.6rem);
	white-space: nowrap;
}

@media (max-width: 640px) {
	.signoff__name {
		font-size: 13vw;
		white-space: normal;
		line-height: .86;
	}
}

/* The form sits on a pane of smoked glass */

.signoff__panel {
	width: min(100%, 640px);
	margin-top: clamp(28px, 3.6vw, 48px);
	padding: clamp(22px, 3vw, 36px) clamp(18px, 3vw, 40px) clamp(20px, 2.6vw, 30px);
	border: 1px solid var(--line-2);
	background: rgb(var(--scrim) / .46);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
	/* On the cream page the sky behind is bright, so the panel is more solid there. */
}

:root[data-theme="light"] .signoff__panel {
	background: rgb(var(--scrim) / .84);
}

.signoff__line {
	margin: 0 auto;
	text-align: center;
}

.signoff .signup {
	margin-top: 22px;
}

/* Footer */

.site-foot {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--black);
	padding: clamp(48px, 6vw, 88px) 0 26px;
	font-size: var(--t-small);
}

.site-foot::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 1px;
	background: linear-gradient(to right, transparent, var(--gold-soft) 30%, var(--gold-soft) 70%, transparent);
	opacity: .7;
}

.site-foot::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	z-index: -1;
	width: min(1100px, 120vw);
	height: 340px;
	translate: -50% -50%;
	background: radial-gradient(closest-side, rgb(33 73 194 / .2), transparent);
	pointer-events: none;
}

.site-foot__sign {
	position: absolute;
	right: max(-40px, -3vw);
	bottom: -70px;
	z-index: -1;
	width: clamp(240px, 30vw, 420px);
	opacity: .07;
	pointer-events: none;
}

.site-foot__top {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 40px clamp(24px, 4vw, 72px);
}

.site-foot__brand .lockup {
	text-decoration: none;
	color: var(--bone);
}

.site-foot__brand .ring-mark {
	--ring: 72px;
}

.site-foot__blurb {
	max-width: 36ch;
	margin-top: 20px;
	font-family: var(--serif);
	font-weight: 300;
	font-size: 1.0625rem;
	line-height: 1.45;
	color: var(--bone-2);
}

.site-foot__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.site-foot__socials a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	color: var(--bone);
	transition: border-color var(--fast) ease, background-color var(--mid) ease, color var(--fast) ease, translate var(--mid) var(--ease);
}

.site-foot__socials a:hover,
.site-foot__socials a:focus-visible {
	border-color: var(--gold);
	background: var(--gold);
	color: #000;
	translate: 0 -3px;
}

.site-foot__socials .icon {
	width: 20px;
	height: 20px;
}

.site-foot__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px clamp(16px, 2vw, 32px);
}

.site-foot__cols .label {
	color: var(--gold);
}

.site-foot__cols ul {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 4px;
}

.site-foot a {
	text-decoration: none;
	color: var(--bone-2);
	transition: color var(--fast) ease;
}

.site-foot a:hover {
	color: var(--gold-pale);
}

.site-foot__cols li a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 32px;
	font-size: .9375rem;
	transition: color var(--fast) ease, translate var(--mid) var(--ease);
}

.site-foot__cols li a .icon {
	width: 18px;
	height: 18px;
	color: var(--gold-soft);
}

.site-foot__cols li a:hover,
.site-foot__cols li a:focus-visible {
	translate: 5px 0;
}

.site-foot__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px 24px;
	margin-top: clamp(40px, 5vw, 72px);
	padding: 18px calc(54px + var(--gutter)) 0 0;
	border-top: 1px solid var(--line);
	color: var(--bone-3);
	font-size: var(--t-label);
}

.site-foot__credit a {
	color: var(--bone-2);
	background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat;
	padding-bottom: 2px;
}

@media (max-width: 900px) {
	.site-foot__top {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.site-foot__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-foot__legal {
		justify-content: flex-start;
	}
}

/* Ring: the ouroboros mark, used in the header, the intro and as scroll progress */

.ring {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ring-progress {
	position: fixed;
	right: var(--gutter);
	bottom: var(--gutter);
	z-index: 40;
	width: 54px;
	height: 54px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--mid) ease, visibility 0s linear var(--mid);
}

.ring-progress.is-on {
	opacity: .9;
	visibility: visible;
	pointer-events: auto;
	transition: opacity var(--mid) ease, visibility 0s;
}

.ring-progress img {
	rotate: calc(var(--turn, 0) * 1turn);
}

@media (max-width: 640px) {
	.ring-progress {
		width: 44px;
		height: 44px;
	}
}

/* Cursor label for fine pointers */

.cursor-tag {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 90;
	padding: 4px 0;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1rem;
	color: var(--gold-pale);
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity var(--fast) ease;
	will-change: transform;
}

.cursor-tag.is-on {
	opacity: 1;
}

/* Chart figure with zoom */

.plate {
	border: 1px solid var(--line);
	background: var(--ink);
	padding: clamp(10px, 1.4vw, 20px);
}

.plate figcaption {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 12px;
	font-size: var(--t-small);
	color: var(--bone-2);
}

.zoom {
	position: fixed;
	inset: 0;
	z-index: 95;
	display: none;
	place-items: center;
	padding: 4vmin;
	background: rgb(0 0 0 / .94);
	cursor: zoom-out;
}

.zoom.is-open {
	display: grid;
}

.zoom__close {
	position: absolute;
	top: var(--gutter);
	right: var(--gutter);
	min-height: 44px;
	padding: 0 6px;
	font-size: var(--t-label);
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bone);
}

.zoom__close:hover {
	color: var(--gold-pale);
}

.zoom img {
	max-width: 100%;
	max-height: 92svh;
	object-fit: contain;
}

/* Notice line shown after confirm / unsubscribe redirects */

.notice {
	padding: calc(var(--head-h) + 14px) var(--gutter) 14px;
	background: var(--navy);
	border-bottom: 1px solid var(--royal-edge);
	text-align: center;
	font-weight: 600;
}

/* Santos's own books: covers standing in a row */

.own-books {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 240px));
	justify-content: start;
	gap: clamp(16px, 2.2vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.own-books--home {
	margin-top: clamp(40px, 5vw, 72px);
	padding-top: clamp(28px, 3.4vw, 48px);
	border-top: 1px dashed var(--line-2);
}

.own-books__card {
	display: grid;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}

.own-books__cover {
	display: block;
	aspect-ratio: 2 / 3;
	background: var(--ink-2);
	box-shadow: 0 24px 40px -22px rgb(0 0 0 / .7), 0 1px 0 rgb(255 255 255 / .06) inset;
	transform-origin: 50% 100%;
	transition: transform var(--slow) var(--ease), box-shadow var(--slow) ease;
}

.own-books__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.own-books__card:hover .own-books__cover,
.own-books__card:focus-visible .own-books__cover {
	transform: perspective(800px) rotateY(-10deg) translateY(-8px);
	box-shadow: 0 40px 60px -26px rgb(0 0 0 / .75), 0 1px 0 rgb(255 255 255 / .06) inset;
}

.own-books__blank {
	display: grid;
	place-items: center;
	height: 100%;
	border: 1px solid var(--line);
	color: var(--gold);
}

.own-books__name {
	font-family: var(--display);
	font-weight: 900;
	font-size: 1.15rem;
	line-height: 1.1;
}

.own-books__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	font-size: var(--t-small);
}

@media (max-width: 600px) {
	.own-books {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

/* Syncretism symbols behind a section: the wallpaper from the old site, drifting very slowly */

.section--symbols {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.section--symbols::before,
.home-bookwrap::before {
	content: "";
	position: absolute;
	inset: -6%;
	z-index: -3;
	background: url("../img/wall-symbols.jpg") center / cover no-repeat;
	opacity: .55;
	animation: symbols-drift 60s ease-in-out infinite alternate;
	pointer-events: none;
}

:root[data-theme="light"] .section--symbols::before,
:root[data-theme="light"] .home-bookwrap::before {
	background-image: url("../img/wall-symbols-light.jpg");
	opacity: .9;
}

.section--symbols::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: linear-gradient(to bottom, var(--black), transparent 30%, transparent 70%, var(--black));
	opacity: .7;
	pointer-events: none;
}

@keyframes symbols-drift {
	from { transform: scale(1) translate(0, 0); }
	to { transform: scale(1.08) translate(-1.5%, 1%); }
}

@media (prefers-reduced-motion: reduce) {
	.section--symbols::before,
	.home-bookwrap::before { animation: none; }
}

/* Footage behind a section heading: it sits low and fades out, so the tiles stay clean */

.section--reel {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.section__reel {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: -1;
	height: min(62%, 520px);
	pointer-events: none;
}

.section__reel video,
.section__reel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: calc(var(--film-opacity) * .5);
	filter: var(--film-filter);
	mix-blend-mode: var(--film-blend);
	-webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
	mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
}

.section--reel .head {
	position: relative;
}

.section--reel .head::before {
	content: "";
	position: absolute;
	inset: -30% -8%;
	z-index: -1;
	background: radial-gradient(ellipse 60% 60% at 40% 50%, rgb(var(--scrim) / .78), transparent 72%);
	pointer-events: none;
}
