/* Site navigation and editorial layouts. Existing artwork and brand tokens remain shared. */
:root {
	/* A thin gold rule with a jewelled centre, drawn under titles. */
	--lot-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 14'%3E%3Cdefs%3E%3ClinearGradient id='l' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23c99b47' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23ecd08a'/%3E%3C/linearGradient%3E%3ClinearGradient id='r' x1='1' x2='0'%3E%3Cstop offset='0' stop-color='%23c99b47' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23ecd08a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 7h108' stroke='url(%23l)'/%3E%3Cpath d='M152 7h108' stroke='url(%23r)'/%3E%3Cpath d='M116 7l4-4 4 4-4 4zM136 7l4-4 4 4-4 4z' fill='none' stroke='%23ecd08a'/%3E%3Cpath d='M130 1l6 6-6 6-6-6z' fill='%23f3da95'/%3E%3C/svg%3E");
	--site-muted: #c9bfa6;
	--site-panel: rgba(23, 20, 24, 0.94);
}

html {
	scroll-padding-top: 8rem;
}
body {
	font-size: 1.0625rem;
	color: #e2dac6;
}
/* Display type: condensed deco capitals cast in polished gold. Each line gets its own
   band of reflection, so a wrapped title reads as separate plates of metal. */
:is(.home-hero h1, .projects-heading h1, .section-heading h2, .project-section h2, .entry-card h3, .project-card h2) {
	font-family: var(--lot-font-display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--lot-cream);
	background: var(--lot-shine);
	background-size: 100% 1lh;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7));
}
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--lot-gold-light);
	outline-offset: 4px;
}
main:focus {
	outline: none;
}
.site-header {
	position: relative;
	padding: clamp(0.9rem, 2.5vw, 1.6rem) clamp(1rem, 4vw, 3rem) clamp(0.7rem, 2vw, 1.2rem);
}
.site-header-banner {
	display: grid;
	justify-items: center;
	padding: 0;
}
.site-banner-logo {
	max-width: min(86vw, 680px);
	max-height: 260px;
}
/* The link clips for the collapse animation; padding inside the clip leaves the glow room to fade
   out softly instead of ending in a lit rectangle. */
.site-header-banner > .site-banner-link {
	padding: 48px;
	margin: -48px;
}
.site-header-banner .site-banner-shine {
	inset: 48px;
}
@media (max-width: 740px) {
	.site-header-banner > .site-banner-link {
		padding: 14px;
		margin: -14px;
	}
	.site-header-banner .site-banner-shine {
		inset: 14px;
	}
}
/* The interface-sound switch: a quiet round icon in the corner, not a labelled box. */
.site-header > .site-tools {
	position: absolute;
	top: 50%;
	right: clamp(0.75rem, 3vw, 2.5rem);
	transform: translateY(-50%);
}
.sound-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 999px;
	background: linear-gradient(#100d0fd9, #100d0fd9) padding-box, var(--lot-edge) border-box;
	color: var(--lot-text-muted);
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.sound-toggle:hover,
.sound-toggle:focus-visible {
	color: var(--lot-gold-light);
	border-color: var(--lot-gold);
}
.sound-toggle[aria-pressed='true'] {
	color: var(--lot-gold-light);
	background: #c4a35a26;
}
.sound-toggle .sound-toggle__on,
.sound-toggle[aria-pressed='true'] .sound-toggle__off {
	display: none;
}
.sound-toggle[aria-pressed='true'] .sound-toggle__on {
	display: inline;
}
@media (max-width: 480px) {
	.site-header > .site-tools {
		top: 0.75rem;
		transform: none;
	}
	.sound-toggle {
		width: 40px;
		height: 40px;
	}
}
.main-navigation {
	gap: 0.15rem;
	padding: 0.25rem 0.5rem;
}
.main-navigation .nav-item {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.95rem;
	font-family: var(--lot-font-ui);
	font-size: 0.84rem;
	font-weight: 500;
	letter-spacing: 0.2em;
}
.site-content {
	width: 100%;
	padding-inline: clamp(1rem, 4vw, 2.5rem);
	animation: none;
}
.home-page,
.projects-page,
.catalogue-page {
	padding-block: clamp(2rem, 5vw, 4rem);
}
/* Page openings are symmetrical, as on a deco facade: title, rule, lead, actions. */
.home-hero,
.projects-heading {
	max-width: 56rem;
	margin-inline: auto;
	text-align: center;
}
.home-hero {
	padding: clamp(1rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 5rem);
}
.home-hero .hero-lead,
.projects-heading .hero-lead {
	margin-inline: auto;
}
.home-hero .site-actions,
.projects-heading .site-actions {
	justify-content: center;
}
.home-hero h1,
.projects-heading h1 {
	font-size: clamp(2.5rem, 6.2vw, 5.2rem);
	line-height: 1.04;
	letter-spacing: 0.08em;
	margin: 0 0 1.4rem;
	text-wrap: balance;
	/* One pass of light across the title as the page opens. */
	background-image: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.85) 50%, transparent 58%), var(--lot-shine);
	background-size: 300% 100%, 100% 1lh;
	background-repeat: no-repeat, repeat;
	background-position: 120% 0, 0 0;
	animation: lot-sheen 2.2s 0.35s cubic-bezier(0.3, 0.1, 0.2, 1) both;
}
.home-hero h1::after,
.projects-heading h1::after {
	content: '';
	display: block;
	width: min(16.25rem, 70%);
	height: 14px;
	margin: 0.9rem auto 0;
	background: var(--lot-rule) center / contain no-repeat;
}
@keyframes lot-sheen {
	to { background-position: -20% 0, 0 0; }
}
.hero-lead {
	font-size: clamp(1.05rem, 1.7vw, 1.2rem);
	line-height: 1.7;
	max-width: 56ch;
	color: #cfc6b1;
}
.site-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.6rem 0 1rem;
}
/* Primary action: a struck plate of polished gold. A sheen crosses it on hover. */
.site-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: 50px;
	padding: 0.85rem 1.7rem;
	overflow: hidden;
	border: 0;
	background: var(--lot-shine);
	color: #1d1408;
	font-family: var(--lot-font-ui);
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1.1;
	text-align: center;
	text-transform: uppercase;
	text-shadow: 0 1px 0 rgba(255, 246, 214, 0.5);
	cursor: pointer;
	transition: filter 0.25s ease;
}
.site-button::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
	transform: translateX(-120%);
	transition: transform 0.7s cubic-bezier(0.3, 0.1, 0.2, 1);
}
.site-button:hover,
.site-button:focus-visible {
	color: #1d1408;
	filter: brightness(1.06);
}
.site-button:hover::after,
.site-button:focus-visible::after {
	transform: translateX(120%);
}
.site-button-secondary {
	text-shadow: none;
}
.site-button-secondary:hover,
.site-button-secondary:focus-visible {
	color: #fff0c2;
	filter: none;
}
.site-button-secondary::after {
	opacity: 0.35;
}
/* Chamfered plates: the shape shared by every control. */
:is(.site-button, .chip, .catalogue-tools > button) {
	--cut: 9px;
	position: relative;
	isolation: isolate;
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
/* Outline plates: a metal rim around a dark face. */
:is(.site-button-secondary, .chip, .catalogue-tools > button) {
	border: 0;
	background: var(--lot-edge);
	color: var(--lot-gold-light);
}
:is(.site-button-secondary, .chip, .catalogue-tools > button)::before {
	content: '';
	position: absolute;
	inset: 1px;
	z-index: -1;
	background: var(--plate, var(--lot-plate));
	clip-path: inherit;
	transition: background 0.25s ease;
}
:is(.site-button-secondary, .chip, .catalogue-tools > button):hover {
	--plate: #241c23;
	color: #fff0c2;
}
/* Clipped controls cannot show an outside outline, so focus is drawn inside the rim. */
:is(.site-button, .chip, .catalogue-tools > button):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -5px;
}
/* Panels: smoked glass with a lit metal rim along the top edge. */
.entry-card,
.project-card,
.catalogue-tools {
	background: linear-gradient(180deg, rgba(30, 24, 32, 0.9), rgba(14, 11, 16, 0.92));
	border: 1px solid rgba(196, 163, 90, 0.24);
	box-shadow:
		inset 0 1px 0 rgba(243, 218, 149, 0.32),
		0 28px 50px -30px rgba(0, 0, 0, 0.95);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.section-heading {
	margin-bottom: 1.8rem;
	text-align: center;
}
.section-heading h2::after {
	content: '';
	display: block;
	width: min(16.25rem, 70%);
	height: 14px;
	margin: 0.9rem auto 0;
	background: var(--lot-rule) center / contain no-repeat;
}
.section-heading h2,
.project-section h2 {
	font-size: clamp(2rem, 3.8vw, 3rem);
	line-height: 1;
}
.entry-grid,
.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	gap: 1rem;
}
.entry-card,
.project-card {
	min-width: 0;
	padding: clamp(1.3rem, 2.6vw, 1.7rem);
	overflow-wrap: break-word;
}
/* The project directory uses the full content width: three cards a row on a desktop. */
.site-content.projects-page {
	max-width: var(--lot-container);
}
.entry-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
@media (min-width: 560px) and (max-width: 899px) {
	/* Two by two rather than three and an orphan. */
	.entry-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.entry-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	color: var(--lot-text);
	transition:
		border-color 0.3s ease,
		box-shadow 0.3s ease,
		transform 0.3s ease;
}
.entry-card:hover,
.entry-card:focus-visible {
	border-color: rgba(236, 208, 138, 0.6);
	box-shadow:
		inset 0 1px 0 rgba(255, 240, 194, 0.7),
		0 30px 50px -28px rgba(0, 0, 0, 0.95),
		0 0 32px -12px rgba(201, 155, 71, 0.45);
	transform: translateY(-3px);
	color: var(--lot-text);
}
/* Card titles: tighter tracking than page titles, and words never split across lines. */
.entry-card h3,
.project-card h2 {
	font-size: clamp(1.3rem, 1.7vw, 1.5rem);
	line-height: 1.15;
	letter-spacing: 0.05em;
	overflow-wrap: normal;
	hyphens: none;
}
.entry-card p,
.project-summary {
	color: var(--site-muted);
	line-height: 1.75;
}
.entry-action {
	margin-top: auto;
	padding-top: 0.75rem;
	color: var(--lot-gold-light);
	font-family: var(--lot-font-ui);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.entry-card:hover .entry-action {
	color: #fff0c2;
}
/* Links inside the introduction read as part of the sentence. */
.hero-lead a {
	color: var(--lot-gold-light);
	text-decoration: underline;
	text-decoration-color: rgba(236, 208, 138, 0.45);
	text-underline-offset: 0.22em;
}
.hero-lead a:hover,
.hero-lead a:focus-visible {
	text-decoration-color: currentColor;
}
.projects-heading {
	margin-bottom: clamp(2rem, 5vw, 3rem);
}
.project-section {
	margin-bottom: 3rem;
	scroll-margin-top: 8rem;
}
.project-section h2 {
	margin-bottom: 1.3rem;
}
.projects-page .project-grid {
	grid-template-columns: 1fr;
	gap: 0.6rem;
	max-width: 52rem;
	margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}
/* Each project is one row that opens to its overview and links. */
.project-card {
	padding: 0;
	scroll-margin-top: 8rem;
	transition: border-color 0.3s ease;
}
.project-card[open],
.project-card:hover {
	border-color: rgba(236, 208, 138, 0.5);
}
.project-card__head {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.8rem clamp(1rem, 2.6vw, 1.5rem);
	cursor: pointer;
	list-style: none;
}
.project-card__head::-webkit-details-marker {
	display: none;
}
.project-card__head > div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.9rem;
	flex: 1;
	min-width: 0;
}
/* A gold chevron that turns as the row opens. */
.project-card__head::after {
	content: '';
	flex: none;
	width: 0.6rem;
	height: 0.6rem;
	margin: 0 0.3rem 0.3rem 0;
	border-right: 2px solid var(--lot-gold);
	border-bottom: 2px solid var(--lot-gold);
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}
.project-card[open] > .project-card__head::after {
	transform: rotate(-135deg) translate(-0.2rem, -0.2rem);
}
.project-card__head:focus-visible {
	outline: 2px solid var(--lot-gold-light);
	outline-offset: -4px;
}
.project-card__body {
	display: grid;
	gap: 0.9rem;
	padding: 0 clamp(1rem, 2.6vw, 1.5rem) clamp(1.1rem, 2.4vw, 1.4rem) calc(clamp(1rem, 2.6vw, 1.5rem) + 48px + 1rem);
	animation: project-open 0.3s ease both;
}
.project-card__body .project-summary {
	margin: 0;
}
@keyframes project-open {
	from { opacity: 0; transform: translateY(-4px); }
}
@media (max-width: 520px) {
	.project-card__body {
		padding-left: clamp(1rem, 2.6vw, 1.5rem);
	}
}
.project-emblem {
	flex: none;
	display: grid;
	width: 48px;
	height: 48px;
	filter: drop-shadow(0 0 10px rgba(201, 155, 71, 0.25));
	transition: filter 0.3s ease, transform 0.3s ease;
}
.project-card:hover .project-emblem {
	filter: drop-shadow(0 0 14px rgba(236, 208, 138, 0.5));
	transform: rotate(-4deg);
}
.project-emblem svg {
	width: 100%;
	height: 100%;
}
.lot-svg-defs {
	position: absolute;
}
.project-status {
	font-family: var(--lot-font-ui);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--lot-gold-light);
	border: 1px solid rgba(236, 208, 138, 0.45);
	padding: 0.15rem 0.6rem;
}
.project-card .site-actions {
	margin: auto 0 0;
	padding-top: 0.5rem;
}
.project-card .site-button {
	min-height: 44px;
	padding: 0.65rem 1.2rem;
	font-size: 0.95rem;
}
@media (max-width: 600px) {
	/* One line of four items keeps the sticky strip short on phones. */
	.main-navigation {
		flex-wrap: nowrap;
		gap: 0;
		padding-inline: 0.25rem;
	}
	.main-navigation .nav-item {
		font-size: 0.72rem;
		letter-spacing: 0.06em;
		padding-inline: 0.5rem;
	}
}
@media (max-width: 420px) {
	.site-actions > a {
		flex: 1 1 100%;
	}
	.main-navigation .nav-item {
		font-size: 0.66rem;
		letter-spacing: 0.04em;
		padding-inline: 0.38rem;
	}
}
@media (max-width: 340px) {
	.main-navigation .nav-item {
		font-size: 0.6rem;
		letter-spacing: 0.02em;
		padding-inline: 0.28rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
	}
	.entry-card,
	.project-emblem,
	.site-button::after,
	.project-card__head::after {
		transition: none;
	}
	.project-card__body {
		animation: none;
	}
	.entry-card:hover,
	.project-card:hover .project-emblem {
		transform: none;
	}
	.home-hero h1,
	.projects-heading h1 {
		animation: none;
	}
}
/* Filter chips: a short list of choices as one row of toggles. */
.filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0.9rem 0 0.2rem;
	flex-basis: 100%;
}
.chip {
	--cut: 7px;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.4rem 1.05rem;
	font-family: var(--lot-font-ui);
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease;
}
.chip[aria-pressed='true'],
.chip[aria-current='page'] {
	background: var(--lot-shine);
	color: #1d1408;
}
.chip[aria-pressed='true']::before,
.chip[aria-current='page']::before {
	display: none;
}
/* Catalogue pages: search and filters in one bar, count and layout beneath. */
.catalogue-page .projects-heading {
	padding-bottom: 0.5rem;
}
.catalogue-bar {
	margin: 1.5rem 0 1rem;
}
.catalogue-bar .catalogue-tools {
	margin: 0;
}
.catalogue-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.9rem;
}
.catalogue-meta p {
	margin: 0;
	color: var(--site-muted);
}
.catalogue-tools [hidden] {
	display: none;
}
/* Search and Clear share the first row; chips take the row beneath. */
.catalogue-tools .filter-chips {
	order: 5;
	margin-top: 0;
}
/* Collapsed list groups: one row per collection or release type, opened on demand. */
.list-group {
	border-bottom: 1px solid #c4a35a33;
}
.list-group[hidden] {
	display: none;
}
.list-group > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 52px;
	padding: 0.6rem 0.4rem;
	cursor: pointer;
	list-style: none;
	color: var(--lot-cream);
	font-family: var(--lot-font-display);
	font-size: 1.3rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.list-group > summary::-webkit-details-marker {
	display: none;
}
.list-group > summary::after {
	content: '';
	width: 0.55rem;
	height: 0.55rem;
	margin-left: 0.4rem;
	border-right: 2px solid var(--lot-gold);
	border-bottom: 2px solid var(--lot-gold);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}
.list-group[open] > summary::after {
	transform: rotate(-135deg);
}
.list-group > summary small {
	margin-left: auto;
	color: var(--site-muted);
	font-family: var(--lot-font-body);
	font-size: 0.85rem;
}
.list-group ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: 0 1.5rem;
	margin: 0 0 1rem;
	padding: 0 0.4rem;
	list-style: none;
}
.list-group li:has(> [data-list-item][hidden]),
.list-group li[data-list-item][hidden] {
	display: none;
}
.artwork-list .artwork-list-item {
	display: block;
	padding: 0.5rem 0;
	border: 0;
	border-image: none;
	background: none;
	border-bottom: 1px solid #ffffff0d;
	color: var(--lot-text);
	text-decoration: none;
}
.artwork-list .artwork-list-item:hover,
.artwork-list .artwork-list-item:focus-visible {
	color: var(--lot-gold-light);
}
.music-release-list .list-group ul {
	grid-template-columns: 1fr;
}
.music-release-list .music-row {
	padding: 0.15rem 0;
	background: transparent;
	border-bottom: 1px solid #ffffff0d;
}
.music-release-list [data-select-release] {
	flex: 1;
}
.music-release-list .music-row-link {
	display: grid;
	place-items: center;
	min-width: 44px;
	color: var(--lot-gold-light);
	text-decoration: none;
}
