/* =============================================================================
   Horizon: the site's look since the hourglass ouroboros became the mark.

   Loaded after every other stylesheet. It re-points the old tokens, so the
   jukebox and the gallery controls pick up the new type and colour without
   their own rules changing, and it owns the chrome, the titles, the actions,
   the project list and the whole home page.

   Three voices of type:
     Bodoni Moda italic   titles and names, set like the labels on a star chart
     Newsreader           anything read at length
     Michroma             small instrument lettering: navigation, status, actions

   Colour is the logo's: a black void, gold, the serpent's indigo, and one cold
   teal kept for whatever has the keyboard's attention.
   ========================================================================== */

:root {
	--void: #040306;
	--ink: #0a0810;
	--bone: #ece3d1;
	--bone-dim: #a59d8e;
	--gold: #d8a654;
	--gold-hi: #f5d89c;
	--gold-lo: #8c6a33;
	--indigo: #2a1d4a;
	--eldritch: #8fe0cf;
	--hair: rgba(236, 227, 209, 0.14);
	--hair-gold: rgba(216, 166, 84, 0.38);

	/* Science fantasy: engraved capitals for titles, a sci-fi face for text and
	   names, wide technical capitals for labels. src/layouts/Base.astro loads them. */
	--f-title: Cinzel, 'Trajan Pro', Georgia, serif;
	--f-text: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
	--f-mark: Orbitron, Eurostile, 'Microgramma', sans-serif;

	--ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
	--ease-in: cubic-bezier(0.6, 0, 0.84, 0.2);

	/* The older stylesheets speak these names. */
	--lot-black: var(--void);
	--lot-dark: var(--void);
	--lot-panel: #0e0b14;
	--lot-panel-light: #16111d;
	--lot-plate: #0e0b14;
	--lot-ink: var(--void);
	--lot-text: var(--bone);
	--lot-text-muted: var(--bone-dim);
	--lot-cream: var(--bone);
	--lot-gold: var(--gold);
	--lot-gold-light: var(--gold-hi);
	--lot-gold-dark: var(--gold-lo);
	--lot-brass: var(--gold);
	--lot-font-display: var(--f-title);
	--lot-font-body: var(--f-text);
	--lot-font-ui: var(--f-mark);
	--site-panel: transparent;
}

/* ------------------------------------------------------------------ base -- */

html {
	background: var(--void);
	/* Cinzel has no italic; where a title asks for one it stays upright rather than slanted by the browser. */
	font-synthesis-style: none;
	scrollbar-color: var(--gold-lo) var(--void);
}

body {
	background: var(--void);
	color: var(--bone);
	font-family: var(--f-text);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.65;
	font-optical-sizing: auto;
}

::selection {
	background: var(--gold);
	color: var(--void);
}

a {
	color: var(--gold-hi);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

a:hover {
	color: var(--bone);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 1px solid var(--eldritch);
	outline-offset: 4px;
	box-shadow: none;
}

h1,
h2,
h3 {
	font-family: var(--f-title);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
	text-transform: none;
}

.lot-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* An eclipse on every page but the home page: a black body far overhead with
   its photon ring showing as a single burning arc, the serpent's indigo
   hanging under it. Fixed, so it stays put as the page scrolls past. */
body:not(.home)::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(circle at 50% -66vmax,
			#000 0 calc(78vmax - 1px),
			rgba(255, 238, 196, 0.9) 78vmax,
			rgba(216, 166, 84, 0.5) calc(78vmax + 3px),
			rgba(140, 70, 50, 0.16) calc(78vmax + 28px),
			rgba(42, 29, 74, 0.22) calc(78vmax + 9vmax),
			transparent calc(78vmax + 30vmax)),
		radial-gradient(ellipse 70% 60% at 50% 110%, rgba(42, 29, 74, 0.35), transparent 70%),
		var(--void);
}

/* Film grain over everything, so flat colour never looks flat. */
body::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 90;
	pointer-events: none;
	opacity: 0.07;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.lot-page {
	flex: 1;
	position: relative;
}

body.lightbox-open .lot-header,
body.lightbox-open .lot-page,
body.lightbox-open .lot-footer {
	display: none;
}

/* --------------------------------------------------------------- header -- */

/* There is no bar. The mark and the navigation float over the same sky as
   everything else, and the page runs up underneath them. Scrolling down lets the
   navigation sink away; scrolling back up brings it back over a soft pool of
   shadow rather than a band (js/lot-scripts.js sets the two classes). */
.lot-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 40;
	/* Three columns so the navigation sits in the middle of the screen,
	   whatever the widths of the mark and the tools either side. */
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: start;
	gap: 1rem;
	height: 64px;
	padding: 0 clamp(1rem, 4vw, 3rem);
	pointer-events: none;
}

.lot-header .site-mark {
	justify-self: start;
}

.lot-header .site-tools {
	justify-self: end;
}

.lot-header > * {
	pointer-events: auto;
}

.lot-nav,
.lot-header .site-tools {
	position: relative;
	transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}

.lot-nav::before {
	content: '';
	position: absolute;
	inset: -30px -60px -40px;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(4, 3, 6, 0.86), rgba(4, 3, 6, 0.5) 55%, transparent);
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

html.is-scrolled .lot-nav::before {
	opacity: 1;
}

html.is-scrolled.is-scrolling-down .lot-nav,
html.is-scrolled.is-scrolling-down .lot-header .site-tools {
	opacity: 0;
	transform: translateY(-14px);
	pointer-events: none;
}

html.is-scrolled .site-mark img {
	height: 64px;
}

/* The mark hangs from the top edge like a pendant. */
.site-mark {
	display: block;
	flex: none;
	margin-top: 8px;
	line-height: 0;
	view-transition-name: lot-mark;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.8));
	transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}

.site-mark img {
	width: auto;
	height: 96px;
	transition: height 0.6s var(--ease-out);
}

.site-mark:hover,
.site-mark:focus-visible {
	filter: drop-shadow(0 6px 18px rgba(216, 166, 84, 0.35));
}

/* A band of light crosses the hourglass, cut to the logo's own shape. */
.site-mark,
.lot-footer__mark a {
	position: relative;
}

.site-mark::after,
.lot-footer__mark a::after {
	content: '';
	position: absolute;
	inset: 0;
	-webkit-mask: var(--lot-mark) center / contain no-repeat;
	mask: var(--lot-mark) center / contain no-repeat;
	background: linear-gradient(110deg, transparent 40%, rgba(255, 238, 196, 0.9) 50%, transparent 60%) 140% 0 / 260% 100% no-repeat;
	opacity: 0;
	pointer-events: none;
}

.site-mark:hover::after,
.site-mark:focus-visible::after,
.lot-footer__mark a:hover::after,
.lot-footer__mark a:focus-visible::after {
	animation: lot-mark-shine 1.2s ease-out;
}

@keyframes lot-mark-shine {
	from {
		opacity: 1;
		background-position: 140% 0;
	}
	to {
		opacity: 1;
		background-position: -40% 0;
	}
}

.lot-nav {
	display: flex;
	align-items: center;
	gap: clamp(0.4rem, 2.4vw, 2.2rem);
	justify-content: center;
	height: 64px;
	view-transition-name: lot-nav;
}

.lot-nav .nav-item {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.35rem;
	color: var(--bone-dim);
	font-family: var(--f-mark);
	font-size: 0.6rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.3s ease;
}

.nav-loop {
	position: absolute;
	left: 50%;
	bottom: 5px;
	width: 22px;
	height: 9px;
	margin-left: -11px;
	overflow: visible;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	pointer-events: none;
}

.nav-loop path {
	stroke-dasharray: 1 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 0.8s var(--ease-out);
}

.lot-nav .nav-item:hover,
.lot-nav .nav-item:focus-visible {
	color: var(--bone);
}

.lot-nav .nav-item:hover .nav-loop path,
.lot-nav .nav-item:focus-visible .nav-loop path,
.lot-nav .nav-item.is-active .nav-loop path {
	stroke-dashoffset: 0;
}

.lot-nav .nav-item.is-active {
	color: var(--gold-hi);
}

.lot-header .site-tools {
	display: flex;
	align-items: center;
	height: 64px;
}

.lot-header .sound-toggle {
	position: static;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--bone-dim);
	box-shadow: none;
	clip-path: none;
}

.lot-header .sound-toggle:hover,
.lot-header .sound-toggle[aria-pressed='true'] {
	color: var(--gold-hi);
}

@media (max-width: 700px) {
	.lot-header {
		height: 56px;
		padding-inline: 0.75rem;
	}
	.site-mark img,
	html.is-scrolled .site-mark img {
		height: 60px;
	}
	/* A phone has no room for the mark beside five tabs; the footer and the
	   home scene carry the logo. The tabs take the width and scroll sideways
	   only when even that is too narrow. */
	.lot-header {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0.25rem;
	}
	.lot-header .site-mark {
		display: none;
	}
	.lot-nav {
		height: 56px;
		gap: 0;
		justify-content: safe center;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.lot-nav .nav-item {
		flex: none;
		font-size: 0.5rem;
		letter-spacing: 0.08em;
		padding: 0 0.3rem;
	}
	.lot-header .site-tools {
		height: 56px;
	}
	.lot-header .sound-toggle {
		width: 40px;
	}
}

/* On the narrowest phones the last tab fades at the edge, to show there is more to swipe to. */
@media (max-width: 379px) {
	.lot-nav {
		-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}
}

/* ------------------------------------------------------- arriving, leaving -- */

/* Moving between pages is a jump through the stars. The sky behind every page
   (js/lot-scripts.js) streaks as a page is left and slows as the next one
   opens. The pages themselves only fade and drift: type is never bent, blurred
   or rescaled while it settles. */
@view-transition {
	navigation: auto;
}

::view-transition-old(root) {
	animation: lot-leave 0.34s var(--ease-in) both;
}

::view-transition-new(root) {
	animation: lot-enter 0.6s var(--ease-out) both;
}

@keyframes lot-leave {
	to {
		opacity: 0;
		transform: translateY(-10px);
	}
}

@keyframes lot-enter {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

/* Reached by diving through the Continuum: the page opens out of the dark. */
html.lot-arrive .lot-page {
	animation: lot-emerge 0.9s var(--ease-out) both;
}

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

/* Sections rise into place as they come into view, so a long page reads as one
   flight rather than blocks stacked on each other (js/lot-scripts.js). */
html.lot-reveal [data-reveal] {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
}

html.lot-reveal [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

/* The night sky behind every page, home included below the Continuum. */
#lot-sky {
	position: fixed;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	background:
		radial-gradient(ellipse 60% 45% at 18% 12%, rgba(42, 29, 74, 0.45), transparent 70%),
		radial-gradient(ellipse 50% 40% at 85% 80%, rgba(42, 29, 74, 0.32), transparent 70%),
		radial-gradient(ellipse 35% 30% at 70% 20%, rgba(216, 166, 84, 0.05), transparent 70%);
}

.lot-page,
.lot-footer {
	position: relative;
	z-index: 1;
}

/* ----------------------------------------------------------------- titles -- */

:is(.home-hero h1, .projects-heading h1, .section-heading h2, .project-section h2, .entry-card h3, .project-card h2, .page-hero h1, .list-group > summary),
.projects-heading h1 {
	font-family: var(--f-title);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--bone);
	background: none;
	-webkit-text-fill-color: currentColor;
	filter: none;
	animation: none;
}

.projects-heading,
.page-hero {
	max-width: 52rem;
	margin: 0 auto;
	padding: clamp(5rem, 14vh, 9rem) 0 clamp(2rem, 5vw, 3.5rem);
	text-align: center;
}

.projects-heading h1,
.page-hero h1 {
	margin: 0 0 1.4rem;
	font-size: clamp(3rem, 8.5vw, 6.6rem);
	line-height: 0.95;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.hero-lead,
.projects-heading .hero-lead {
	max-width: 36rem;
	margin-inline: auto;
	color: var(--bone-dim);
	font-family: var(--f-text);
	font-size: clamp(1.08rem, 1.6vw, 1.25rem);
	font-weight: 300;
	line-height: 1.6;
	text-wrap: pretty;
}

.hero-lead a {
	color: var(--bone);
	text-decoration-color: var(--hair-gold);
}

.hero-lead a:hover {
	color: var(--gold-hi);
	text-decoration-color: currentColor;
}

/* ---------------------------------------------------------------- actions -- */

/* Actions are symmetrical. A lone action is a word between two matching
   hairlines, with an infinity beneath that traces itself on hover. Actions
   side by side share an infinity between each pair, a line running out to
   either side, and pointing at one lights its half (js/lot-scripts.js builds
   the marks). Pressing sends a light round the loop. Links inside running
   text are only underlined. */
.site-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 2.4rem;
	margin-top: 2rem;
}

.site-actions.has-hinge {
	gap: 0.5rem 1rem;
}

.site-button,
.site-button.site-button-secondary {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.85em;
	min-height: 44px;
	padding: 0;
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: none;
	clip-path: none;
	box-shadow: none;
	color: var(--gold-hi);
	font-family: var(--f-mark);
	font-size: 0.66rem;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0.22em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	text-shadow: none;
	text-decoration: none;
	filter: none;
	isolation: auto;
	cursor: pointer;
	transition: color 0.4s ease;
}

.site-button.site-button-secondary {
	color: var(--bone-dim);
}

/* Matching hairlines either side of a lone action. */
.site-button::before,
.site-button::after {
	content: '';
	position: static;
	inset: auto;
	flex: none;
	width: 1.3rem;
	height: 1px;
	opacity: 0.8;
	background: linear-gradient(90deg, transparent, currentColor);
	clip-path: none;
	transform: none;
	transition: width 0.55s var(--ease-out), opacity 0.4s ease;
}

.site-button::after {
	background: linear-gradient(90deg, currentColor, transparent);
}

.has-hinge > .site-button::before,
.has-hinge > .site-button::after {
	content: none;
}

.site-button:hover,
.site-button:focus-visible,
.site-button.site-button-secondary:hover,
.site-button.site-button-secondary:focus-visible {
	color: var(--bone);
	filter: none;
}

.site-button:hover::before,
.site-button:hover::after,
.site-button:focus-visible::before,
.site-button:focus-visible::after {
	width: 2.4rem;
	opacity: 1;
	transform: none;
}

/* The lone action's infinity, centred under the word. */
.action-mark {
	position: absolute;
	left: 50%;
	bottom: 1px;
	width: 22px;
	height: 9px;
	margin-left: -11px;
	overflow: visible;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	pointer-events: none;
}

.action-mark__loop {
	stroke-dasharray: 1 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 0.85s var(--ease-out);
}

.site-button:hover .action-mark__loop,
.site-button:focus-visible .action-mark__loop {
	stroke-dashoffset: 0;
}

/* The hinge between two actions. */
.action-hinge {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 0.3rem;
	width: clamp(4.5rem, 9vw, 7.5rem);
	color: var(--gold);
	pointer-events: none;
}

.action-hinge .hinge-line {
	flex: 1;
	height: 1px;
	opacity: 0.35;
	transition: opacity 0.45s ease, transform 0.6s var(--ease-out);
}

.action-hinge .hinge-line--l {
	background: linear-gradient(90deg, transparent, currentColor);
	transform-origin: right center;
}

.action-hinge .hinge-line--r {
	background: linear-gradient(90deg, currentColor, transparent);
	transform-origin: left center;
}

.hinge-loop {
	flex: none;
	width: 24px;
	height: 10px;
	overflow: visible;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: round;
}

.hinge-loop__base {
	opacity: 0.4;
}

.hinge-loop__trace {
	stroke: var(--gold-hi);
	stroke-dasharray: 1 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 0.55s var(--ease-out);
}

/* The light that runs round when pressed; unseen otherwise. */
.hinge-loop__run {
	stroke: var(--gold-hi);
	stroke-dasharray: 0 1;
}

.site-button:is(:hover, :focus-visible) + .action-hinge .hinge-line--l,
.action-hinge:has(+ .site-button:is(:hover, :focus-visible)) .hinge-line--r {
	opacity: 1;
	transform: scaleX(1.12);
}

/* The lobe on the side pointed from draws first, then the other. */
.site-button:is(:hover, :focus-visible) + .action-hinge .hinge-loop__trace,
.action-hinge:has(+ .site-button:is(:hover, :focus-visible)) .hinge-loop__trace {
	stroke-dashoffset: 0;
}

.site-button:is(:hover, :focus-visible) + .action-hinge .hinge-loop__trace--r,
.action-hinge:has(+ .site-button:is(:hover, :focus-visible)) .hinge-loop__trace--l {
	transition-delay: 0.42s;
}

/* A hidden action takes its hinge with it. */
.site-button[hidden] + .action-hinge,
.action-hinge:has(+ .site-button[hidden]) {
	display: none;
}

.site-button.is-pressed .action-mark__loop,
.action-hinge.is-pressed .hinge-loop__run,
.nav-item.is-pressed .nav-loop path {
	animation: lot-loop-run 0.9s var(--ease-out);
}

/* A short bright dash runs once round the loop. */
@keyframes lot-loop-run {
	from {
		stroke-dasharray: 0.22 0.78;
		stroke-dashoffset: 0;
		filter: drop-shadow(0 0 3px var(--gold));
	}
	to {
		stroke-dasharray: 0.22 0.78;
		stroke-dashoffset: -1;
		filter: drop-shadow(0 0 0 transparent);
	}
}

.site-button:focus-visible {
	outline: 1px solid var(--eldritch);
	outline-offset: 6px;
}

.site-button:disabled {
	cursor: default;
	opacity: 0.4;
}

/* Stacked on a narrow screen, the hinge becomes the divider between them. */
@media (max-width: 600px) {
	.site-actions.has-hinge {
		flex-direction: column;
		gap: 0.2rem;
	}
}

/* Explore / Experience: the key word shows, the rest of the phrase opens on
   hover or focus. The full phrase is always in the link for screen readers. */
.act-reveal .act-more {
	display: inline-block;
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	white-space: pre;
	vertical-align: bottom;
	transition: max-width 0.75s var(--ease-out), opacity 0.5s ease 0.1s;
}

.act-reveal:is(:hover, :focus-visible) .act-more {
	max-width: 22em;
	opacity: 1;
}

/* Pill buttons: the search bar's reset, the jukebox's Spotify and Clear. */
.pill-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 1.4rem;
	border: 1px solid var(--hair);
	border-radius: 999px;
	background: none;
	box-shadow: none;
	clip-path: none;
	color: var(--bone-dim);
	font-family: var(--f-mark);
	font-size: 0.62rem;
	font-weight: 400;
	letter-spacing: 0.18em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.pill-button::before,
.pill-button::after {
	content: none;
}

.pill-button:hover {
	border-color: var(--hair-gold);
	color: var(--bone);
}

.pill-button:focus-visible {
	outline: 1px solid var(--eldritch);
	outline-offset: 3px;
}

.pill-button[hidden] {
	display: none;
}

/* Links inside running text: an underline, nothing more. */
.text-link {
	color: var(--bone);
	font-style: italic;
	text-decoration: underline;
	text-decoration-color: var(--hair-gold);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
	transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.text-link:hover,
.text-link:focus-visible {
	color: var(--gold-hi);
	text-decoration-color: var(--gold);
}

.text-link:focus-visible {
	outline: 1px solid var(--eldritch);
	outline-offset: 4px;
}

.project-more {
	margin: 0;
	color: var(--bone-dim);
	font-style: italic;
}

/* The search bar, the same on Artwork and Discography: a framed field that is
   easy to read, the filters as a row of pills, and a reset pill to match.
   js/catalogue.js turns each short select into the pills. */
form.catalogue-tools {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 1rem 1.2rem;
	margin: 0 0 1rem;
	padding: 1.1rem 1.3rem 1.2rem;
	border: 1px solid var(--hair-gold);
	border-radius: 2px;
	background: rgba(8, 6, 14, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: none;
	clip-path: none;
}

form.catalogue-tools[hidden],
form.catalogue-tools [hidden] {
	display: none;
}

form.catalogue-tools > label {
	grid-column: 1;
	display: grid;
	gap: 0.55rem;
	margin: 0;
	color: var(--gold);
	font-family: var(--f-mark);
	font-size: 0.62rem;
	letter-spacing: 0.24em;
	line-height: 1.2;
	text-transform: uppercase;
}

form.catalogue-tools :is(input, select) {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.95rem;
	border: 1px solid var(--hair);
	border-bottom-color: var(--gold-lo);
	border-radius: 2px;
	background: rgba(4, 3, 6, 0.75);
	box-shadow: none;
	color: var(--bone);
	font-family: var(--f-text);
	font-size: 1.08rem;
	letter-spacing: 0;
	text-transform: none;
	transition: border-color 0.3s ease, background 0.3s ease;
}

form.catalogue-tools :is(input, select)::placeholder {
	color: var(--bone-dim);
	opacity: 1;
	font-style: italic;
}

form.catalogue-tools :is(input, select):hover {
	border-color: var(--hair-gold);
}

form.catalogue-tools :is(input, select):focus,
form.catalogue-tools :is(input, select):focus-visible {
	outline: 1px solid var(--eldritch);
	outline-offset: 2px;
	border-color: var(--gold);
	background: rgba(4, 3, 6, 0.9);
	box-shadow: none;
}

form.catalogue-tools .filter-chips {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
}

form.catalogue-tools .chip ,
form.catalogue-tools > button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 1.05rem;
	border: 1px solid var(--hair);
	border-radius: 999px;
	background: none;
	box-shadow: none;
	clip-path: none;
	color: var(--bone-dim);
	font-family: var(--f-mark);
	font-size: 0.62rem;
	font-weight: 400;
	letter-spacing: 0.18em;
	line-height: 1;
	text-decoration: none;
	text-shadow: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

form.catalogue-tools .chip::before,
form.catalogue-tools > button::before,
form.catalogue-tools .chip::after ,
form.catalogue-tools > button::after {
	content: none;
}

form.catalogue-tools > button {
	--cut: 0px;
	isolation: auto;
	grid-column: 2;
	grid-row: 1;
	min-height: 48px;
	padding: 0 1.4rem;
}

form.catalogue-tools .chip:hover ,
form.catalogue-tools > button:hover {
	border-color: var(--hair-gold);
	color: var(--bone);
}

form.catalogue-tools .chip[aria-pressed='true'] {
	border-color: var(--gold);
	background: rgba(216, 166, 84, 0.13);
	color: var(--gold-hi);
}

form.catalogue-tools .chip:focus-visible ,
form.catalogue-tools > button:focus-visible {
	outline: 1px solid var(--eldritch);
	outline-offset: 3px;
}

/* Elsewhere a chip is the same pill. */
.chip {
	clip-path: none;
	border: 1px solid var(--hair);
	border-radius: 999px;
	background: none;
	color: var(--bone-dim);
	font-family: var(--f-mark);
	font-size: 0.6rem;
	letter-spacing: 0.18em;
}

.chip::before {
	content: none;
}

.chip:hover,
.chip[aria-current='page'],
.chip[aria-pressed='true'] {
	border-color: var(--gold);
	background: rgba(216, 166, 84, 0.13);
	color: var(--gold-hi);
}

@media (max-width: 600px) {
	form.catalogue-tools {
		grid-template-columns: 1fr;
		padding: 1rem;
	}

	form.catalogue-tools > button {
		grid-column: 1;
		grid-row: auto;
		justify-self: start;
		order: 6;
	}
}

/* --------------------------------------------------------------- projects -- */

.projects-page .project-grid {
	gap: 0;
	max-width: 54rem;
	border-top: 1px solid var(--hair);
}

.project-card {
	border: 0;
	border-bottom: 1px solid var(--hair);
	border-radius: 0;
	background: none;
	box-shadow: none;
	clip-path: none;
	scroll-margin-top: 6rem;
}

.project-card::before,
.project-card::after {
	content: none;
}

.project-card:hover {
	background: linear-gradient(90deg, transparent, rgba(42, 29, 74, 0.28) 30%, rgba(42, 29, 74, 0.28) 70%, transparent);
}

.project-card__head {
	gap: clamp(1rem, 3vw, 1.8rem);
	padding: 1.4rem 0.5rem;
}

.project-card__head > div {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2rem 1.2rem;
}

.project-card h2 {
	margin: 0;
	font-size: clamp(1.7rem, 3.6vw, 2.5rem);
	line-height: 1.05;
}

.project-card__head::after {
	width: 0.55rem;
	height: 0.55rem;
	border-color: var(--gold-lo);
	border-width: 0 1px 1px 0;
}

.project-status {
	border: 0;
	padding: 0;
	color: var(--gold);
	font-family: var(--f-mark);
	font-size: 0.54rem;
	letter-spacing: 0.24em;
}

.project-card__body {
	padding: 0 0.5rem 1.8rem calc(56px + clamp(1rem, 3vw, 1.8rem) + 0.5rem);
}

.project-card__body .project-summary {
	max-width: 34rem;
	color: var(--bone-dim);
	font-size: 1.08rem;
}

.project-card .site-actions {
	justify-content: flex-start;
	margin-top: 1rem;
}

/* Project buttons are the same size as every other action. */
.project-card .site-button {
	padding: 0;
	font-size: 0.66rem;
}

/* The revealed words follow the key word with a single space. */
.site-button.act-reveal {
	gap: 0;
}

.project-emblem {
	--gem-size: 22px;
	margin-inline: 0.6rem;
	filter: none;
}

.project-card:hover .project-emblem,
.project-card[open] .project-emblem {
	transform: none;
	box-shadow: 0 0 18px var(--gem-glow), 0 1px 2px rgba(0, 0, 0, 0.9);
}

@media (max-width: 600px) {
	.project-card__body {
		padding-left: 0.5rem;
	}
}

/* A gem in a gold setting: the mark of every project, here and on the home
   page's coils (where the scene paints it with real light instead). Amethyst
   for the world, amber for the games and campaigns. */
.gem {
	--gem-size: 22px;
	--gem-hi: #e4cfff;
	--gem: #8a55e6;
	--gem-lo: #2a0f5c;
	--gem-glow: rgba(150, 100, 255, 0.45);
	position: relative;
	display: block;
	flex: none;
	width: var(--gem-size);
	height: var(--gem-size);
	border-radius: 50%;
	background:
		radial-gradient(circle at 36% 30%, #fff 0 4%, transparent 13%),
		radial-gradient(circle at 50% 46%, var(--gem-hi) 0, var(--gem) 34%, var(--gem-lo) 60%, transparent 62%),
		conic-gradient(from 200deg, #5e3c0f, #f7dc94, #9a6a21, #fff1c6, #6b4614, #e9be62, #5e3c0f);
	box-shadow: 0 0 0 1px rgba(20, 10, 2, 0.9), 0 1px 3px rgba(0, 0, 0, 0.9);
	transition: box-shadow 0.4s ease, transform 0.5s var(--ease-out);
}

.gem[data-lobe='right'] {
	--gem-hi: #ffe6b8;
	--gem: #ee8f2a;
	--gem-lo: #5a2004;
	--gem-glow: rgba(255, 160, 60, 0.45);
}

/* ------------------------------------------------------------ discography -- */

.list-group > summary {
	font-size: clamp(1.5rem, 3vw, 2rem);
	color: var(--bone);
	border-bottom: 1px solid var(--hair);
}

.list-group > summary small {
	font-family: var(--f-mark);
	font-style: normal;
	font-size: 0.55rem;
	letter-spacing: 0.24em;
	color: var(--gold);
}

/* The jukebox and the release index are styled in css/jukebox.css. */

/* ----------------------------------------------------------------- footer -- */

/* The end of the page, not a block under it: no rule, no band, the same sky.
   The mark closes the page the way it opened it. */
.lot-footer {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 1.4rem;
	padding: clamp(5rem, 12vw, 9rem) clamp(1rem, 4vw, 3rem) 3rem;
	text-align: center;
}

.lot-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.2rem 1.8rem;
	max-width: 46rem;
}

.lot-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	color: var(--bone-dim);
	font-family: var(--f-mark);
	font-size: 0.56rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.3s ease;
}

.lot-footer__links a:hover {
	color: var(--gold-hi);
}

.lot-footer__links svg {
	width: 15px;
	height: 15px;
	opacity: 0.8;
}

.lot-footer__mark {
	order: -1;
}

.lot-footer__mark img {
	width: auto;
	height: 120px;
	opacity: 0.8;
	filter: drop-shadow(0 10px 30px rgba(42, 29, 74, 0.9));
	transition: opacity 0.4s ease, transform 0.8s var(--ease-out);
}

.lot-footer__mark a {
	display: inline-block;
	line-height: 0;
}

.lot-footer__mark a:hover img {
	opacity: 1;
}

.lot-footer__legal {
	color: var(--bone-dim);
	font-size: 0.85rem;
	opacity: 0.6;
}

.lot-footer__legal a {
	color: inherit;
	white-space: nowrap;
}

.lot-footer__legal a:hover {
	color: var(--gold-hi);
}

/* Privacy Policy and Terms of Service: one readable column. The global reset
   strips list indentation, so the lists get it back here. */
.legal-page .entry-content {
	max-width: 44rem;
	margin: 0 auto;
}

.legal-page .entry-content h2 {
	font-size: 1.5rem;
	margin: 2.25rem 0 0.75rem;
}

.legal-page .entry-content ul {
	margin: 0 0 1.25rem 1.25rem;
}

.legal-page .entry-content li {
	color: var(--lot-text);
	line-height: 1.8;
	margin-bottom: 0.4rem;
}

.legal-page .entry-content code {
	font-size: 0.85em;
	overflow-wrap: anywhere;
}

/* ============================================================================
   THE CONTINUUM: the home page
   ========================================================================== */

body.home .lot-page {
	display: block;
}

.site-content.home-page {
	max-width: none;
	margin: 0;
	padding: 0;
	animation: none;
}

.continuum {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
	isolation: isolate;
	background: radial-gradient(ellipse 60% 70% at 50% 52%, rgba(42, 29, 74, 0.45), transparent 70%), var(--void);
	/* No edge: the scene thins into the page that follows. */
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 9rem), transparent);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 9rem), transparent);
}

.continuum__sky {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.continuum.has-sky .continuum__sky {
	opacity: 1;
}

/* The drawn loop, for when there is no live scene. */
.continuum__fallback {
	position: absolute;
	left: 50%;
	top: 52%;
	z-index: 0;
	height: 78%;
	width: auto;
	aspect-ratio: 1.44 / 2.24;
	transform: translate(-50%, -50%);
	overflow: visible;
}

.continuum.is-live .continuum__fallback {
	left: calc(var(--cx) - var(--a) * 0.72);
	top: calc(var(--cy) - var(--a) * 1.12);
	width: calc(var(--a) * 1.44);
	height: calc(var(--a) * 2.24);
	transform: none;
}

.continuum.has-sky .continuum__fallback {
	display: none;
}

.continuum__loop {
	fill: none;
	stroke: var(--gold);
	stroke-width: 0.006;
	filter: drop-shadow(0 0 0.02px var(--gold));
}

.continuum__horizon {
	fill: #000;
	stroke: var(--gold-hi);
	stroke-width: 0.004;
}

/* Two titles on the loop's axis, each by its own plate: Explore above the
   upper lobe, Experience below the lower one. The bands they sit in are kept
   free by layout() in js/continuum-math.js; Experience stays clear of the
   page lead, which rises over the scene's last 4rem. */
.continuum__title {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 4.6rem;
	width: calc(100% - 2rem);
	margin: 0;
	transform: translateX(-50%);
	color: var(--bone);
	font-size: clamp(1.5rem, 2.6vw, 2.6rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-align: center;
	text-wrap: balance;
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.9);
	transition: opacity 0.5s ease, filter 0.5s ease;
}

.continuum__title--explore {
	top: 72px;
	bottom: auto;
	font-family: var(--f-title);
	font-style: italic;
	font-weight: 400;
}

/* With the scene live, each title hugs its tip of the loop (js/continuum.js sets
   --cy and --a), so a phone, where the loop is narrower than the screen is tall,
   does not leave them stranded at the edges. */
.continuum.is-live .continuum__title {
	top: min(calc(var(--cy) + 1.07 * var(--a) + 28px), calc(100% - 4.6rem - 1.1em));
	bottom: auto;
}

.continuum.is-live .continuum__title--explore {
	top: max(66px, calc(var(--cy) - 1.07 * var(--a) - 28px - 1.1em));
}

.continuum.is-arriving .continuum__title--explore {
	animation-delay: 0.85s;
}

.continuum__nav {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.continuum__nav a,
.continuum__nav .lobe__name {
	pointer-events: auto;
}

/* Before the script places them (or without it), the lobes are two plain lists. */
.continuum:not(.is-live) .continuum__nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	align-content: center;
	gap: 2rem;
	padding: 6rem clamp(1rem, 6vw, 6rem) 3rem;
	pointer-events: auto;
}

.continuum:not(.is-live) .continuum__title {
	position: relative;
	top: auto;
	bottom: auto;
	left: auto;
	width: auto;
	max-width: none;
	transform: none;
	padding: 7rem 1.5rem 0;
	text-align: center;
}

.continuum:not(.is-live) {
	height: auto;
}

.continuum:not(.is-live) .continuum__nav {
	position: relative;
}

.continuum:not(.is-live) .waypoint a {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.4rem 0;
}

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

.lobe__name {
	margin: 0 0 1rem;
	color: rgba(236, 227, 209, 0.5);
	font-family: var(--f-mark);
	font-style: normal;
	font-size: 0.6rem;
	letter-spacing: 0.55em;
	text-transform: uppercase;
	pointer-events: none;
}

.continuum.is-live .lobe__name {
	position: absolute;
	left: var(--cx);
	margin: 0;
	padding-left: 0.55em; /* balance the tracking after the last letter */
	transform: translate(-50%, -50%);
	white-space: nowrap;
	text-shadow: 0 0 12px #000;
}

/* Over the live scene the names are engraved in the hourglass's plates: Explore
   in the upper, Experience in the lower. The plates sit at 0.86a from the waist. */
.continuum.has-sky .lobe__name {
	color: #3b2507;
	font-size: max(0.42rem, calc(var(--a) * 0.026));
	letter-spacing: 0.6em;
	text-shadow: 0 1px 0 rgba(255, 236, 190, 0.55), 0 -1px 0 rgba(40, 20, 0, 0.5);
}

.continuum.is-live [data-lobe='left'] .lobe__name {
	top: calc(var(--cy) - var(--a) * 0.86);
}

.continuum.is-live [data-lobe='right'] .lobe__name {
	top: calc(var(--cy) + var(--a) * 0.86);
}

/* ---------------------------------------------------------- waypoints -- */

.continuum.is-live .waypoint {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 0;
	height: 0;
}

.waypoint a {
	color: var(--bone);
	text-decoration: none;
}

.continuum.is-live .waypoint a {
	position: absolute;
	left: -22px;
	top: -22px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.waypoint__mark {
	--gem-size: 20px;
	margin: 12px;
}

/* With the live scene, the gem is painted in the coils; the link is only its hit area. */
.continuum.has-sky .waypoint__mark {
	opacity: 0;
}

.waypoint__text {
	display: grid;
	gap: 0.15rem;
	pointer-events: none;
}

/* The name and status on each callout belong to the link: pointing at them
   lights the gem on the coil as pointing at the gem does. */
.continuum.is-live .waypoint__name,
.continuum.is-live .waypoint__status {
	pointer-events: auto;
	cursor: pointer;
}

/* Each waypoint is a callout, as on an engraved chart: a gold rule runs from the
   gem's setting out along the gem's own line, the name stands on it, the status
   hangs under it, and a small diamond ends it. --name-h is the name's measured
   height (js/continuum.js), so the rule passes through the gem's centre even
   when a name wraps. */
.continuum.is-live .waypoint {
	--lead: 30px;
	--name-h: 1.232rem;
	--rule-gap: 6px;
}

.continuum.is-live .waypoint__text {
	position: absolute;
	top: calc(50% - var(--name-h) - var(--rule-gap));
	display: grid;
	row-gap: calc(var(--rule-gap) * 2 + 1px);
	width: max-content;
	max-width: min(13rem, var(--room, 13rem));
	text-shadow: 0 0 10px #000, 0 0 3px #000;
}

.waypoint[data-side='east'] .waypoint__text {
	left: calc(50% + var(--lead));
	text-align: left;
}

.waypoint[data-side='west'] .waypoint__text {
	right: calc(50% + var(--lead));
	text-align: right;
	justify-items: end;
}

/* The rule, from just outside the gem's setting to past the end of the words. */
.continuum.is-live .waypoint__text::before {
	content: '';
	position: absolute;
	top: calc(var(--name-h) + var(--rule-gap));
	height: 1px;
	box-shadow: 0 0 6px rgba(216, 166, 84, 0.25);
	transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.7s var(--ease-out);
}

.waypoint[data-side='east'] .waypoint__text::before {
	left: calc(var(--gem, 10px) + 4px - var(--lead));
	right: -8px;
	background: linear-gradient(to right, rgba(216, 166, 84, 0.95), rgba(216, 166, 84, 0.55) 30%, rgba(216, 166, 84, 0.35));
	transform-origin: left center;
}

.waypoint[data-side='west'] .waypoint__text::before {
	right: calc(var(--gem, 10px) + 4px - var(--lead));
	left: -8px;
	background: linear-gradient(to left, rgba(216, 166, 84, 0.95), rgba(216, 166, 84, 0.55) 30%, rgba(216, 166, 84, 0.35));
	transform-origin: right center;
}

/* The diamond that ends it. */
.continuum.is-live .waypoint__text::after {
	content: '';
	position: absolute;
	top: calc(var(--name-h) + var(--rule-gap) - 2.5px);
	width: 6px;
	height: 6px;
	background: linear-gradient(135deg, #fff1c6, var(--gold) 50%, var(--gold-lo));
	transform: rotate(45deg);
	transition: transform 0.6s var(--ease-out), box-shadow 0.4s ease;
}

.waypoint[data-side='east'] .waypoint__text::after {
	right: -13px;
}

.waypoint[data-side='west'] .waypoint__text::after {
	left: -13px;
}

.waypoint__name {
	font-family: var(--f-title);
	font-style: italic;
	font-size: 1.12rem;
	line-height: 1.1;
	transition: color 0.3s ease;
}

.waypoint__status {
	color: var(--gold);
	font-family: var(--f-mark);
	font-size: 0.48rem;
	line-height: 1;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0.8;
}

.waypoint__summary {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.waypoint a:is(:hover, :focus-visible) .waypoint__mark {
	transform: scale(1.15);
	box-shadow: 0 0 16px var(--gem-glow), 0 0 0 1px rgba(20, 10, 2, 0.9);
}

.waypoint a:is(:hover, :focus-visible) .waypoint__name {
	color: var(--gold-hi);
}

.waypoint a:is(:hover, :focus-visible) .waypoint__text::before {
	box-shadow: 0 0 10px rgba(245, 216, 156, 0.6);
}

.waypoint[data-side='east'] a:is(:hover, :focus-visible) .waypoint__text::before {
	background: linear-gradient(to right, #fff1c6, var(--gold-hi) 40%, var(--gold));
}

.waypoint[data-side='west'] a:is(:hover, :focus-visible) .waypoint__text::before {
	background: linear-gradient(to left, #fff1c6, var(--gold-hi) 40%, var(--gold));
}

.waypoint a:is(:hover, :focus-visible) .waypoint__text::after {
	transform: rotate(225deg) scale(1.3);
	box-shadow: 0 0 10px rgba(245, 216, 156, 0.8);
}

.continuum.is-live .waypoint a:focus-visible {
	outline-offset: 2px;
}

/* While one waypoint has attention, the others step back. */
.continuum[data-active] .waypoint a:not(:hover, :focus-visible) {
	opacity: 0.55;
}

.continuum .waypoint a {
	transition: opacity 0.4s ease;
}

/* ----------------------------------------------------------------- plate -- */

.continuum__plate {
	position: absolute;
	z-index: 2;
	right: clamp(1.5rem, 6vw, 7rem);
	top: 50%;
	width: min(22vw, 24rem);
	transform: translate(12px, -50%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
}

.continuum[data-active] .continuum__plate {
	opacity: 1;
	transform: translate(0, -50%);
}

.continuum__plate p {
	margin: 0;
}

.plate__name {
	font-family: var(--f-title);
	font-style: italic;
	font-size: clamp(1.8rem, 2.8vw, 3rem);
	line-height: 1;
	color: var(--bone);
}

.plate__status {
	margin-top: 0.8rem !important;
	padding-top: 0.8rem;
	border-top: 1px solid var(--hair-gold);
	color: var(--gold);
	font-family: var(--f-mark);
	font-size: 0.54rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
}

.plate__summary {
	margin-top: 0.8rem !important;
	color: var(--bone-dim);
	font-size: 1.05rem;
	line-height: 1.5;
}

/* ------------------------------------------------------------ the dive -- */

.continuum.is-diving .waypoint a,
.continuum.is-diving .lobe__name,
.continuum.is-diving .continuum__title,
.continuum.is-diving .continuum__plate,
body.home:has(.continuum.is-diving) .lot-header {
	opacity: 0;
	filter: blur(6px);
	transition: opacity 0.45s ease, filter 0.6s ease;
}

.continuum.is-diving .waypoint a {
	transform: scale(1.6);
	transition: opacity 0.7s ease, transform 1.1s var(--ease-in), filter 0.7s ease;
}

.continuum.is-arriving .waypoint,
.continuum.is-arriving .lobe__name,
.continuum.is-arriving .continuum__title {
	animation: lot-surface 1.6s 0.5s var(--ease-out) both;
}

.continuum.is-arriving .waypoint {
	animation-delay: calc(0.7s + var(--i, 0) * 60ms);
}

.continuum.is-arriving .waypoint__text::before {
	animation: lot-draw 1.2s calc(0.9s + var(--i, 0) * 60ms) var(--ease-out) both;
}

@keyframes lot-draw {
	from {
		transform: scaleX(0);
	}
}

@keyframes lot-surface {
	from {
		opacity: 0;
		filter: blur(8px);
	}
}

/* ---------------------------------------------------------- small screens -- */

@media (max-width: 1100px) {
	.continuum__plate {
		display: none;
	}
}

@media (max-width: 700px) {
	.continuum.is-live .continuum__title {
		font-size: 1.15rem;
	}

	.waypoint__name {
		font-size: 0.95rem;
	}
	.waypoint__status {
		display: none;
	}
	.continuum.is-live .waypoint a {
		width: 38px;
		height: 38px;
	}
	.waypoint__mark {
		--gem-size: 16px;
		margin: 11px;
	}
	.continuum.is-live .waypoint a {
		left: -19px;
		top: -19px;
	}
	.continuum.is-live .waypoint {
		--lead: 22px;
		--rule-gap: 4px;
	}
	/* No room inside a phone's lobes for their names; they stay for screen readers. */
	.continuum.is-live .lobe__name {
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
}

/* Waiting under the intro: the scene does not render and the labels stay out of
   sight until the serpent hands over. */
.continuum.is-waiting .waypoint,
.continuum.is-waiting .lobe__name,
.continuum.is-waiting .continuum__title {
	opacity: 0;
}

/* -------------------------------------------------------------- the intro -- */

/* The intro plays in the home scene itself. This layer is clear: it holds Skip,
   takes a click anywhere as a skip, and the page's own chrome steps aside. */
.ouroboros {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: transparent;
	cursor: pointer;
}

html.lot-intro-playing .lot-header,
html.lot-intro-playing .continuum__title,
html.lot-intro-playing .continuum__plate,
html.lot-intro-playing .home-lead {
	pointer-events: none;
}

html.lot-intro-playing:not(.lot-intro-leaving) .lot-header,
html.lot-intro-playing:not(.lot-intro-leaving) .continuum__title,
html.lot-intro-playing:not(.lot-intro-leaving) .continuum__plate,
html.lot-intro-playing:not(.lot-intro-leaving) .home-lead {
	opacity: 0;
}

/* js/ouroboros.js adds lot-intro-leaving at the handoff, so these surface
   while the serpent's scene settles into the page. */
.lot-header,
.continuum__title,
.home-lead {
	transition: opacity 1.4s var(--ease-out);
}

html.lot-intro-leaving .lot-header {
	transition-delay: 0.3s;
}

html.lot-intro-leaving .home-lead {
	transition-delay: 0.6s;
}

.ouroboros[hidden] {
	display: none;
}

.ouroboros__skip {
	position: absolute;
	right: clamp(1rem, 4vw, 3rem);
	bottom: clamp(1rem, 4vw, 2.5rem);
	display: inline-flex;
	align-items: center;
	gap: 0.9em;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bone-dim);
	font-family: var(--f-mark);
	font-size: 0.56rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.3s ease, color 0.3s ease;
}

.ouroboros__skip::before {
	content: '';
	width: 1.6rem;
	height: 1px;
	background: currentColor;
}

.ouroboros__skip:hover,
.ouroboros__skip:focus-visible {
	color: var(--gold-hi);
	opacity: 1;
}

html.lot-intro-playing,
html.lot-intro-playing body {
	overflow: hidden;
}

/* -------------------------------------------------------------- home lead -- */

.home-lead {
	position: relative;
	max-width: 44rem;
	margin: -4rem auto 0;
	padding: 0 1.5rem;
	text-align: center;
}

.home-lead .hero-lead {
	max-width: none;
	color: var(--bone);
	font-size: clamp(1.2rem, 2.2vw, 1.55rem);
	font-weight: 300;
	line-height: 1.55;
}

.home-lead .hero-lead::first-line {
	font-style: italic;
}

/* --------------------------------------------------------- reduced motion -- */

@media (prefers-reduced-motion: reduce) {
	::view-transition-old(root),
	::view-transition-new(root) {
		animation: none;
	}
	html.lot-arrive .lot-page,
	.continuum.is-arriving * {
		animation: none !important;
	}
	html.lot-reveal [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Elysian Fold card art has a pale rim and white corners round each card.
   The picture is sized to the card's own shape and clipped to its edge. */
.artwork-item.is-card .artwork-img-wrap img {
	width: auto;
	max-width: 100%;
	height: 100%;
	margin: 0 auto;
	aspect-ratio: 1186 / 2048;
	object-fit: cover;
	clip-path: inset(0.8% 0.6% round 5% / 3%);
}

.lot-lightbox-img.is-card {
	clip-path: inset(0.8% 0.6% round 5% / 3%);
}

/* No ornament under page titles, and no rules above and below the navigation:
   the infinity under each item is its only mark. */
:is(.home-hero, .projects-heading, .page-hero) h1::after,
.section-heading h2::after {
	content: none;
}

.lot-nav .nav-item::before,
.lot-nav .nav-item::after {
	content: none;
}

/* --------------------------------------------------------- neon and chrome -- */
/* Titles glow neon violet; project names are polished chrome; status labels
   are a clear cyan, a size up from before so they read at a glance. */

h1,
.continuum__title {
	color: #f4eaff;
	text-shadow: 0 0 3px rgba(255, 255, 255, 0.9), 0 0 12px #b48cff, 0 0 28px #7a45ff, 0 0 52px rgba(90, 43, 214, 0.8);
}

.lot-nav .nav-item {
	color: #d6c6ff;
	text-shadow: 0 0 8px rgba(122, 69, 255, 0.85);
}

.lot-nav .nav-item.is-active,
.lot-nav .nav-item:is(:hover, :focus-visible) {
	color: #fff;
	text-shadow: 0 0 6px #c9a8ff, 0 0 16px #7a45ff;
}

.waypoint__name {
	background: linear-gradient(180deg, #ffffff 0%, #e6eaf4 34%, #8e96ad 52%, #f2f4fa 66%, #6a7189 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 8px rgba(150, 120, 255, 0.5));
}

.continuum.is-live .waypoint__status,
.waypoint__status {
	color: #8ff4ff;
	font-size: 0.6rem;
	opacity: 1;
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.9), 0 0 8px rgba(49, 214, 255, 0.85);
}
