/* ==========================================================================
   BisbeeOddities: Desert Surrealism
   Day = turquoise sky, sun-baked sand, copper.  Night = indigo, moon, lit windows.
   ========================================================================== */

/* ---------- Tokens: Day (default) ---------- */
:root,
[data-theme="day"] {
	color-scheme: light;

	--bg: #f4e6cc;
	--bg-alt: #ecd6b0;
	--surface: #fbf4e6;
	--surface-2: #f6e8cf;
	--ink: #2a1a14;
	--ink-2: #5a4034;
	--line: rgba(42, 26, 20, .16);
	--line-strong: rgba(42, 26, 20, .32);

	--primary: #b5481f;
	--primary-hover: #973a17;
	--on-primary: #fff8ee;
	--accent-ink: #9a3b17;
	--teal: #17665f;
	--teal-soft: rgba(29, 120, 116, .14);
	--gold: #e9a23b;
	--danger: #a3261b;
	--danger-bg: #fbe3dc;
	--success: #1d6b45;
	--success-bg: #dff1e4;
	--focus: #17665f;

	/* Scene */
	--sky-1: #79c3c6;
	--sky-2: #f0d4a6;
	--sky-3: #f5bd84;
	--sun: #f0a13a;
	--orb-glow: #f8cf7a;
	--ph-orb: #f0a13a;
	--moon: #f6ebc8;
	--moon-shade: #d6c69a;
	--cloud: #fff4e2;
	--star: #fff7e0;
	--ridge-far: #e2b38c;
	--ridge-mid: #cd8761;
	--ridge-near: #a85f3d;
	--ridge-town: #93502f;
	--ground: #7a3f27;
	--ground-front: #5e2f1f;
	--rock: #b06a44;
	--rock-shade: #8c4f31;
	--pit-1: #8e6bb0;
	--pit-2: #c2a0d6;
	--pit-3: #e6c26e;
	--pit-4: #6e4f92;
	--house-1: #d6553a;
	--house-2: #1f8a8a;
	--house-3: #e9b949;
	--house-4: #7b5ea7;
	--house-5: #e58a6b;
	--roof: #3a2a26;
	--window: #f9e9c8;
	--window-lit: #f9e9c8;
	--plant: #4e5d34;
	--bloom: #e0473a;
	--yucca-bloom: #fff3d6;
	--b-letter: #fff8ec;
	--b-edge: #d9b48f;
	--b-glow: #ffd98a;
	--scrub: #5b6236;
	--trail: #e7c29a;
	--headframe: #4a2f26;
	--javelina: #4a3a33;
	--lizard: #6f7d3a;
	--pit-pool: #5fc6b6;
	--moon-white: #fffaf0;
	--hawk: #3a2a26;
	--bat: #0b0820;
	--tumble: #8c5a33;

	--shadow-1: 0 1px 2px rgba(42, 26, 20, .08), 0 4px 14px rgba(42, 26, 20, .08);
	--shadow-2: 0 2px 4px rgba(42, 26, 20, .08), 0 16px 40px rgba(94, 47, 31, .16);
	--grain-opacity: .07;
}

/* ---------- Tokens: Night ---------- */
[data-theme="night"] {
	color-scheme: dark;

	--bg: #120f2a;
	--bg-alt: #19153a;
	--surface: #1e1a42;
	--surface-2: #262150;
	--ink: #f4e9d8;
	--ink-2: #cbbfdc;
	--line: rgba(244, 233, 216, .14);
	--line-strong: rgba(244, 233, 216, .3);

	--primary: #f08a4b;
	--primary-hover: #f6a06a;
	--on-primary: #1b1030;
	--accent-ink: #f7a873;
	--teal: #63d6cb;
	--teal-soft: rgba(99, 214, 203, .14);
	--gold: #ffd36b;
	--danger: #ff8f84;
	--danger-bg: #3a1830;
	--success: #7fe0a8;
	--success-bg: #173a33;
	--focus: #63d6cb;

	--sky-1: #0b0820;
	--sky-2: #2a1f5c;
	--sky-3: #6b3b6e;
	--sun: #f0a13a;
	--orb-glow: #a99bff;
	--ph-orb: #f6ebc8;
	--moon: #f6ebc8;
	--moon-shade: #bfae86;
	--cloud: #3a2f6b;
	--star: #fff7e0;
	--ridge-far: #3a2c66;
	--ridge-mid: #2c2152;
	--ridge-near: #221a42;
	--ridge-town: #1b1536;
	--ground: #150f2c;
	--ground-front: #0e0a1f;
	--rock: #2e2458;
	--rock-shade: #221a42;
	--pit-1: #4b3a7a;
	--pit-2: #5c4a8e;
	--pit-3: #3e3068;
	--pit-4: #6a55a0;
	--house-1: #6a2f3a;
	--house-2: #1e4d57;
	--house-3: #6b5a2e;
	--house-4: #3e3266;
	--house-5: #6b3b4a;
	--roof: #0e0a1f;
	--window: #2a2350;
	--window-lit: #ffd36b;
	--plant: #1e2a2a;
	--bloom: #c8566a;
	--yucca-bloom: #d9d2f0;
	--b-letter: #efeaff;
	--b-edge: #b9adff;
	--b-glow: #cfc4ff;
	--scrub: #18202e;
	--trail: #3a2f66;
	--headframe: #0b0820;
	--javelina: #0f0a22;
	--lizard: #2a3550;
	--pit-pool: #3f8c9a;
	--moon-white: #fffaf0;
	--hawk: #3a2a26;
	--bat: #07051a;
	--tumble: #8c5a33;

	--shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
	--shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 44px rgba(0, 0, 0, .45);
	--grain-opacity: .1;
}

:root {
	--font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--fs-xs: .8125rem;
	--fs-sm: .9375rem;
	--fs-base: 1.0625rem;
	--fs-lg: 1.25rem;
	--fs-xl: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
	--fs-2xl: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
	--fs-3xl: clamp(2.4rem, 1.4rem + 4vw, 4.25rem);
	--fs-hero: clamp(2.6rem, 1.2rem + 5.6vw, 5.75rem);

	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-5: 24px;
	--sp-6: 32px;
	--sp-7: 48px;
	--sp-8: 64px;
	--sp-9: 96px;

	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 22px;
	--r-pill: 999px;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 72px;

	--ease-out: cubic-bezier(.22, 1, .36, 1);
	--ease-in-out: cubic-bezier(.65, 0, .35, 1);
	--dur-1: 150ms;
	--dur-2: 260ms;
	--dur-3: 600ms;
	--dur-scene: 1400ms;

	--z-header: 40;
	--z-dialog: 100;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	transition: background-color var(--dur-3) var(--ease-in-out), color var(--dur-3) var(--ease-in-out);
}

/* Risograph grain over everything */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 200;
	opacity: var(--grain-opacity);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="night"] body::after { filter: invert(1); }

img,
svg,
video,
iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.015em;
	margin: 0 0 var(--sp-4);
	font-variation-settings: "SOFT" 100, "WONK" 1;
	text-wrap: balance;
}
h1 em, h2 em, h3 em {
	padding-right: .08em;
	font-style: italic;
	font-weight: 400;
	color: var(--accent-ink);
	font-variation-settings: "SOFT" 100, "WONK" 1;
}
p { margin: 0 0 var(--sp-4); }

a {
	color: var(--accent-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
	transition: color var(--dur-1) ease;
}
a:hover { color: var(--primary-hover); }

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 300;
	background: var(--ink);
	color: var(--bg);
	padding: 12px 18px;
	border-radius: var(--r-sm);
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 780px; }

.site-main { display: block; outline: none; }

.mono { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .02em; }
.muted { color: var(--ink-2); }
.lede { font-size: var(--fs-lg); color: var(--ink-2); max-width: 60ch; }

.eyebrow {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .6em;
	align-items: center;
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--teal);
	margin-bottom: var(--sp-3);
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
	vertical-align: -.2em;
}
.icon--sm { width: 1em; height: 1em; vertical-align: -.12em; }

/* ---------- Buttons ---------- */
.btn {
	--btn-bg: var(--surface);
	--btn-fg: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 48px;
	padding: 0 1.4em;
	border: 1.5px solid transparent;
	border-radius: var(--r-pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: 600 var(--fs-sm)/1 var(--font-body);
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	touch-action: manipulation;
	transition: background-color var(--dur-1) ease, color var(--dur-1) ease, border-color var(--dur-1) ease, transform var(--dur-1) ease, box-shadow var(--dur-2) ease;
	white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--primary {
	--btn-bg: var(--primary);
	--btn-fg: var(--on-primary);
	box-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 8px 20px -8px var(--primary);
}
.btn--primary:hover { --btn-bg: var(--primary-hover); }
.btn--ghost {
	--btn-bg: transparent;
	--btn-fg: var(--ink);
	border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--surface); border-color: var(--ink); }
.btn--lg { min-height: 56px; padding: 0 1.8em; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1.5px solid transparent;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	touch-action: manipulation;
	transition: background-color var(--dur-1) ease, border-color var(--dur-1) ease;
}
.icon-btn:hover { background: var(--surface); border-color: var(--line); }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--dur-2) ease, background-color var(--dur-3) var(--ease-in-out);
}
.site-header[data-scrolled] { border-bottom-color: var(--line); }
.is-home .site-header:not([data-scrolled]):not(:has([data-open])) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	max-width: calc(var(--wrap) + 80px);
	margin-inline: auto;
	padding: 0 var(--gutter);
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	text-decoration: none;
	flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand__img { max-height: 48px; width: auto; }
.brand__mark { width: 44px; height: 44px; transition: transform var(--dur-3) var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-12deg); }
.brand__word { display: flex; flex-direction: column; line-height: .9; }
.brand__bisbee {
	font-family: var(--font-mono);
	font-size: .7rem;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--teal);
	margin-bottom: 3px;
}
.brand__odd {
	font-family: var(--font-display);
	font-size: 1.55rem;
	font-weight: 700;
	font-style: italic;
	letter-spacing: -.02em;
	font-variation-settings: "SOFT" 100, "WONK" 1;
}
.lm-orb { fill: var(--sun); transition: fill var(--dur-3) ease; }
[data-theme="night"] .lm-orb { fill: var(--moon); }
.lm-ridge { fill: var(--ridge-near); transition: fill var(--dur-3) ease; }
.lm-ground { fill: var(--ground); transition: fill var(--dur-3) ease; }
.lm-eye { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.lm-pupil { fill: var(--teal); }

/* Nav */
.nav { margin-left: auto; }
.nav__list {
	display: flex;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav__list a,
.nav .menu-item > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	color: var(--ink);
	font-weight: 600;
	font-size: var(--fs-sm);
	text-decoration: none;
	border-radius: var(--r-pill);
	transition: background-color var(--dur-1) ease;
}
.nav__list a:hover { background: var(--surface); }
.nav__list a[aria-current="page"],
.nav .current-menu-item > a {
	background: var(--teal-soft);
	color: var(--teal);
}
.nav__cta-mobile { display: none; }

.site-header__actions { display: flex; align-items: center; gap: var(--sp-2); }

/* Theme toggle */
.theme-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 12px 0 6px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--surface);
	color: var(--ink);
	font: 600 var(--fs-xs)/1 var(--font-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	touch-action: manipulation;
	transition: border-color var(--dur-1) ease, background-color var(--dur-3) ease;
}
.theme-toggle:hover { border-color: var(--line-strong); }
.theme-toggle__track {
	position: relative;
	width: 52px;
	height: 30px;
	border-radius: var(--r-pill);
	background: linear-gradient(180deg, var(--sky-1), var(--sky-3));
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25);
	overflow: hidden;
}
.theme-toggle__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--sun);
	color: #5e2f1f;
	box-shadow: 0 0 10px var(--orb-glow);
	transition: transform var(--dur-3) var(--ease-out), background-color var(--dur-3) ease;
}
.theme-toggle__thumb .icon { width: 15px; height: 15px; grid-area: 1 / 1; transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-out); }
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg); }
[data-theme="night"] .theme-toggle__thumb { transform: translateX(22px); background: var(--moon); color: #2a1f5c; }
[data-theme="night"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg); }
[data-theme="night"] .theme-toggle__moon { opacity: 1; transform: none; }

.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1140px) {
	.nav-toggle { display: inline-grid; }
	.site-header__cta { display: none; }
	.site-header__actions { margin-left: auto; }
	.nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		margin: 0;
		padding: var(--sp-4) var(--gutter) var(--sp-6);
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-2);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
	}
	.admin-bar .nav { top: calc(var(--header-h) + 46px); }
	.nav[data-open] {
		opacity: 1;
		transform: none;
		visibility: visible;
		transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out);
	}
	.nav__list { flex-direction: column; gap: 2px; }
	.nav__list a { width: 100%; min-height: 52px; font-size: var(--fs-lg); font-family: var(--font-display); padding: 0 var(--sp-4); }
	.nav__cta-mobile { display: flex; margin-top: var(--sp-4); }
}
@media (max-width: 520px) {
	.theme-toggle__label { display: none; }
	.theme-toggle { padding: 0 6px; }
	.brand__odd { font-size: 1.3rem; }
	.brand__mark { width: 38px; height: 38px; }
}

/* Search dialog */
.search-dialog {
	width: min(680px, calc(100vw - 32px));
	margin: 12vh auto auto;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--surface);
	color: var(--ink);
	box-shadow: var(--shadow-2);
}
.search-dialog::backdrop { background: rgba(14, 10, 31, .55); backdrop-filter: blur(4px); }
.search-dialog[open] { animation: pop-in var(--dur-2) var(--ease-out); }
.search-dialog__inner { position: relative; padding: var(--sp-6); }
.search-dialog__title { font-size: var(--fs-xl); padding-right: 48px; }
.search-dialog__hint { color: var(--ink-2); font-size: var(--fs-sm); margin: var(--sp-3) 0 0; }
.search-dialog__close { position: absolute; top: 16px; right: 16px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.search-form {
	position: relative;
	display: flex;
	gap: var(--sp-2);
	align-items: center;
	padding: 6px 6px 6px 48px;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--r-pill);
	background: var(--bg);
}
.search-form:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--teal-soft); }
.search-form__icon { position: absolute; left: 18px; color: var(--ink-2); }
.search-form__input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: 500 var(--fs-base) var(--font-body);
}
.search-form__input:focus { outline: none; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(660px, 94svh, 960px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	margin-top: calc(var(--header-h) * -1);
	padding-top: var(--header-h);
	transition: background-color var(--dur-scene) ease;
}
.hero__scene { position: absolute; inset: 0; z-index: -1; }
.hero__scene .scene { width: 100%; height: 100%; display: block; }
.hero__content { padding-top: clamp(32px, 7vh, 88px); padding-bottom: var(--sp-6); }
.hero__title {
	font-size: var(--fs-hero);
	font-weight: 600;
	max-width: 13ch;
	margin-bottom: var(--sp-5);
	line-height: .98;
	letter-spacing: -.03em;
}
.hero__title em { color: var(--accent-ink); }
.hero__lede { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); max-width: 46ch; color: var(--ink); opacity: .86; }
.eyebrow--hero { color: var(--ink); opacity: .8; }

.hero-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	max-width: 560px;
	margin-top: var(--sp-5);
	padding: 6px 6px 6px 52px;
	border-radius: var(--r-pill);
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	border: 1.5px solid var(--line);
	box-shadow: var(--shadow-2);
	backdrop-filter: blur(6px);
}
.hero-search:focus-within { border-color: var(--focus); }
.hero-search__icon { position: absolute; left: 20px; color: var(--ink-2); }
.hero-search input {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: 500 var(--fs-base) var(--font-body);
}
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: var(--ink-2); }

.hero__quick {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	list-style: none;
	margin: var(--sp-4) 0 0;
	padding: 0;
	max-width: 620px;
}
.quick-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 14px;
	border-radius: var(--r-pill);
	background: color-mix(in srgb, var(--surface) 78%, transparent);
	border: 1px solid var(--line);
	color: var(--ink);
	font-weight: 600;
	font-size: var(--fs-sm);
	text-decoration: none;
	backdrop-filter: blur(4px);
	transition: background-color var(--dur-1) ease, transform var(--dur-1) ease;
}
.quick-chip:hover { background: var(--surface); color: var(--ink); transform: translateY(-1px); }

.hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--sp-2);
	margin: 0 auto var(--sp-5);
	position: relative;
}
.hero__stats > div {
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--r-md);
	background: color-mix(in srgb, var(--ground-front) 72%, transparent);
	color: #fbf3e6;
	backdrop-filter: blur(6px);
}
.hero__stats dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.hero__stats dd { margin: 0; font: 600 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }

/* Scene parts */
.scene .sky { transition: opacity var(--dur-scene) ease; }
.scene stop { transition: stop-color var(--dur-scene) ease; }
.scene path,
.scene rect,
.scene circle,
.scene ellipse { transition: fill var(--dur-scene) var(--ease-in-out), opacity var(--dur-scene) ease; }

.star { fill: var(--star); opacity: 0; }
[data-theme="night"] .star { opacity: .9; }
[data-theme="night"] .star--twinkle { animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .95; } 50% { opacity: .2; } }

/* Shooting stars: three streaks on a staggered 15s loop */
.shooting-star { fill: none; stroke: var(--star); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 46 700; stroke-dashoffset: 46; opacity: 0; }
[data-theme="night"] .shooting-star { opacity: 1; animation: shoot 15s cubic-bezier(.3, 0, .7, 1) infinite; animation-delay: var(--d, 0s); }
@keyframes shoot { 0% { stroke-dashoffset: 46; } 6%, 100% { stroke-dashoffset: -220; } }

/* Clouds sail across the whole sky by day, dim ghosts by night */
.cloud { fill: var(--cloud); }
.cloud-drift { opacity: .95; transform: translate(-320px, var(--cy, 80px)); animation: cloud-drift 100s linear infinite; transition: opacity var(--dur-scene) ease; }
.cloud-drift--1 { --cy: 70px; animation-duration: 90s; animation-delay: -14s; }
.cloud-drift--2 { --cy: 160px; animation-duration: 125s; animation-delay: -78s; }
.cloud-drift--3 { --cy: 36px; animation-duration: 108s; animation-delay: -46s; }
[data-theme="night"] .cloud-drift { opacity: .28; }
@keyframes cloud-drift { from { transform: translate(-320px, var(--cy, 80px)); } to { transform: translate(1500px, var(--cy, 80px)); } }

.orb { transition: transform var(--dur-scene) var(--ease-in-out), opacity var(--dur-scene) ease; }
.orb-moon { transform: translateY(560px); opacity: 0; }
[data-theme="night"] .orb-sun { transform: translateY(560px); opacity: 0; }
[data-theme="night"] .orb-moon { transform: none; opacity: 1; }
.sun-disc { fill: var(--sun); }
.sun-rays { stroke: var(--sun); stroke-width: 4; stroke-linecap: round; opacity: .55; transform-origin: 1000px 225px; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.moon-disc { fill: var(--moon); }
.moon-crater { fill: var(--moon-shade); }
.moon-eye { fill: none; stroke: #6a5a3a; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

/* The moon's sleepy eye opens now and then and looks around */
.moon-white { fill: var(--moon-white); }
.moon-iris { fill: #2a8f86; }
.moon-pupil { fill: #1b1030; }
.moon-open { transform-box: fill-box; transform-origin: center; transform: scaleY(0); }
[data-theme="night"] .moon-open { animation: eye-open 11s ease-in-out 2s infinite; }
[data-theme="night"] .moon-lid { animation: eye-lid 11s ease-in-out 2s infinite; }
[data-theme="night"] .moon-look { animation: eye-look 11s ease-in-out 2s infinite; }
@keyframes eye-open { 0%, 60% { transform: scaleY(0); } 64%, 90% { transform: scaleY(1); } 93%, 100% { transform: scaleY(0); } }
@keyframes eye-lid { 0%, 60% { opacity: 1; } 61%, 92% { opacity: 0; } 93%, 100% { opacity: 1; } }
@keyframes eye-look { 0%, 66% { transform: translateX(0); } 70%, 76% { transform: translateX(-11px); } 80%, 85% { transform: translateX(11px); } 89%, 100% { transform: translateX(0); } }

/* Hawk circling by day */
.hawk { transform-origin: 840px 330px; animation: spin 32s linear infinite; transition: opacity var(--dur-scene) ease; }
.hawk-turn { transform-box: fill-box; transform-origin: center; animation: spin 32s linear infinite reverse; }
.hawk-body { fill: none; stroke: var(--hawk); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: glide 3.2s ease-in-out infinite alternate; }
@keyframes glide { to { transform: scaleY(.55); } }
[data-theme="night"] .hawk { opacity: 0; }

/* Bats by night */
/* A small colony crosses the night sky: wings flap from the shoulder, like on Sabrina Solo's page */
.bat { opacity: 0; transform: translate(1520px, var(--y, 120px)) scale(var(--s, 1)); transition: opacity var(--dur-scene) ease; }
.bat-art { fill: var(--bat); }
.bat-ears { fill: var(--bat); stroke: var(--bat); stroke-width: 1.2; }
.bat .wing { transform-box: fill-box; animation: batflap var(--flap, .28s) ease-in-out infinite; }
.bat .wing-l { transform-origin: 100% 50%; }
.bat .wing-r { transform-origin: 0% 50%; }
@keyframes batflap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(-.6) translateY(-2px); } }
[data-theme="night"] .bat { opacity: 1; animation: bat-fly var(--t, 20s) linear var(--d, 0s) infinite; }
@keyframes bat-fly {
	0% { transform: translate(1520px, var(--y, 120px)) scale(var(--s, 1)); }
	22% { transform: translate(1180px, calc(var(--y, 120px) - 36px)) scale(var(--s, 1)); }
	46% { transform: translate(820px, calc(var(--y, 120px) + 22px)) scale(var(--s, 1)); }
	72% { transform: translate(420px, calc(var(--y, 120px) - 28px)) scale(var(--s, 1)); }
	100% { transform: translate(-80px, var(--y, 120px)) scale(var(--s, 1)); }
}

/* Tumbleweed rolling through by day */
.tumble circle,
.tumble ellipse { fill: none; stroke: var(--tumble); stroke-width: 2.2; }
.tumble-track { transform: translate(-80px, 742px); animation: tumble-roll 28s linear 3s infinite; transition: opacity var(--dur-scene) ease; }
[data-theme="night"] .tumble-track { opacity: 0; }
@keyframes tumble-roll { 0% { transform: translate(-80px, 742px); } 42%, 100% { transform: translate(1540px, 742px); } }
.tumble-hop { animation: hop .62s ease-in-out infinite alternate; }
@keyframes hop { from { transform: translateY(0); } to { transform: translateY(-18px); } }
.tumble { transform-box: fill-box; transform-origin: center; animation: spin 1.1s linear infinite; }

/* The B on the hill: whitewashed concrete by day, a soft moonlit glow by night */
.b-hill-shade { fill: var(--rock-shade); opacity: .35; }
.b-letter { fill: var(--b-letter); stroke: var(--b-edge); stroke-width: 2.4; stroke-linejoin: round; }
.b-glow { fill: var(--b-glow); filter: url(#bo-b-blur); opacity: 0; transition: opacity var(--dur-scene) ease; }
[data-theme="night"] .b-glow { opacity: .85; animation: b-pulse 6s ease-in-out infinite; }
@keyframes b-pulse { 50% { opacity: .45; } }

.float-island { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.rock { fill: var(--rock); }
.rock-shade { fill: var(--rock-shade); }
.island-top { fill: var(--ridge-near); }
.island-roots { fill: none; stroke: var(--rock-shade); stroke-width: 2; stroke-linecap: round; }
.ocotillo { fill: none; stroke: var(--plant); stroke-width: 3; stroke-linecap: round; transition: stroke var(--dur-scene) ease; }
.roof { fill: var(--roof); }

.ridge--far { fill: var(--ridge-far); }
.ridge--mid { fill: var(--ridge-mid); }
.ridge--near { fill: var(--ridge-near); }
.ridge--town { fill: var(--ridge-town); }
.pit-1 { fill: var(--pit-1); } .pit-2 { fill: var(--pit-2); } .pit-3 { fill: var(--pit-3); } .pit-4 { fill: var(--pit-4); }
.win { fill: var(--window); }
[data-theme="night"] .win--lit { fill: var(--window-lit); }
[data-theme="night"] .win--flicker { animation: flicker 7s steps(1) infinite; }
@keyframes flicker { 0%, 58%, 76%, 100% { fill: var(--window-lit); } 60%, 74% { fill: var(--window); } }
.ground { fill: var(--ground); }
.ground--front { fill: var(--ground-front); }
.plants .leaf, .plants .pad { fill: var(--plant); }
.plants .stalk { fill: none; stroke: var(--plant); stroke-width: 3; transition: stroke var(--dur-scene) ease; }
.bloom { fill: var(--bloom); }
.yucca-bloom { fill: var(--yucca-bloom); }

/* Phones and tablets: text first, then the full scene as its own band so the B is always in view */
@media (max-width: 1000px) {
	.hero { min-height: 0; justify-content: flex-start; background-color: var(--sky-1); }
	.hero__content { order: 1; padding-bottom: var(--sp-2); }
	.hero__scene {
		--sh: clamp(320px, 86vw, 600px);
		position: relative;
		inset: auto;
		z-index: 0;
		order: 2;
		height: var(--sh);
		overflow: hidden;
		margin-top: calc(-1 * clamp(16px, 5vw, 56px));
	}
	/* Keep the B hill (x ≈ 1000 of 1440) centered, never showing past the scene's edges */
	.hero__scene .scene {
		position: absolute;
		top: 0;
		height: 100%;
		width: calc(var(--sh) * 1.8);
		max-width: none;
		left: clamp(calc(100% - var(--sh) * 1.8), calc(50% - var(--sh) * 1.215), 0px);
	}
	.hero__stats {
		order: 3;
		margin: -2px 0 0;
		max-width: none;
		padding-block: 0 var(--sp-5);
		background: var(--ground-front);
		transition: background-color var(--dur-scene) ease;
	}
	.hero__stats > div { background: color-mix(in srgb, var(--ground-front) 90%, #fff); }
}
@media (max-width: 720px) {
	.hero__stats { grid-template-columns: 1fr 1fr 1fr; }
	.hero__stats > div { padding: var(--sp-2) var(--sp-3); }
	.hero__stats dt { font-size: .62rem; }
	.hero-search { padding-left: 46px; }
	.hero-search .btn { padding: 0 1em; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--alt { background: var(--bg-alt); }
.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: var(--sp-4);
	margin-bottom: var(--sp-6);
}
.section-head__title { font-size: var(--fs-3xl); margin: 0; max-width: 18ch; }
.section-head__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-weight: 600;
	text-decoration: none;
	color: var(--ink);
	border-bottom: 2px solid var(--primary);
}
.section-head__link:hover .icon { transform: translateX(3px); }
.section-head__link .icon { transition: transform var(--dur-2) var(--ease-out); }

.divider { line-height: 0; color: var(--bg-alt); background: var(--bg); }
.divider svg { width: 100%; height: 48px; display: block; }
.divider path { fill: var(--bg-alt); transition: fill var(--dur-3) ease; }
.divider--flip { transform: scaleY(-1); }

/* ---------- Category tiles ---------- */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--sp-4);
	list-style: none;
	margin: 0;
	padding: 0;
}
.cat-tile {
	position: relative;
	grid-column: span 3;
	display: flex;
	flex-direction: column;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-1);
	transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) ease, background-color var(--dur-3) ease;
}
.cat-tile--music,
.cat-tile--events,
.cat-tile--venues { grid-column: span 4; }
.cat-tile:not(.cat-tile--music):not(.cat-tile--events):not(.cat-tile--venues) .cat-tile__title { font-size: var(--fs-xl); }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.cat-tile__art { aspect-ratio: 16 / 7; overflow: hidden; }
.cat-tile--music .cat-tile__art,
.cat-tile--events .cat-tile__art,
.cat-tile--venues .cat-tile__art { aspect-ratio: 16 / 8; }
.cat-tile__art svg { width: 100%; height: 100%; display: block; transition: transform var(--dur-3) var(--ease-out); }
.cat-tile:hover .cat-tile__art svg { transform: scale(1.04); }
.cat-tile__body { position: relative; padding: var(--sp-5); padding-top: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.cat-tile__icon {
	position: absolute;
	top: -26px;
	left: var(--sp-5);
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--primary);
	color: var(--on-primary);
	box-shadow: 0 0 0 5px var(--surface);
	transition: box-shadow var(--dur-3) ease;
}
.cat-tile__title { font-size: var(--fs-2xl); margin-bottom: var(--sp-2); }
.cat-tile__desc { color: var(--ink-2); flex: 1; }
.cat-tile__count { margin: 0; display: inline-flex; gap: 6px; align-items: center; color: var(--teal); }

@media (max-width: 980px) {
	.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cat-tile, .cat-tile--events, .cat-tile--venues { grid-column: span 1; }
	.cat-tile--music { grid-column: span 2; }
	.cat-tile--music .cat-tile__art { aspect-ratio: 16 / 5; }
}
@media (max-width: 600px) {
	.cat-grid { grid-template-columns: 1fr; }
	.cat-tile--music { grid-column: span 1; }
	.cat-tile--music .cat-tile__art { aspect-ratio: 16 / 7; }
}

/* Whole-card click target via the title link */
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible),
.cat-tile:has(.card__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card a:not(.card__link),
.card .chip { position: relative; z-index: 2; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: var(--sp-5); }
.card-grid--artists { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card-grid--places { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-1);
	transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) ease, background-color var(--dur-3) ease, border-color var(--dur-3) ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card:active { transform: translateY(-1px) scale(.995); }

.card__media {
	position: relative;
	margin: 10px 10px 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 999px 999px var(--r-md) var(--r-md); /* arched portal */
	background: var(--bg-alt);
}
.card__media--wide { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.card__media img,
.card__media svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-3) var(--ease-out); }
.card:hover .card__media img,
.card:hover .card__media svg { transform: scale(1.05); }

.card__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.card__eyebrow { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: .75rem; color: var(--ink-2); margin-bottom: var(--sp-2); }
.card__title { font-size: 1.35rem; margin-bottom: var(--sp-2); }
.card__text { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.card__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }

.badge {
	position: absolute;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	padding: 4px 10px;
	border-radius: var(--r-pill);
	font: 700 .66rem/1.2 var(--font-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	white-space: nowrap;
}
.badge--placeholder { background: var(--ink); color: var(--bg); }
.page-hero .badge, .card--event > .badge { position: static; transform: none; display: inline-block; margin-bottom: var(--sp-3); }
.card--event > .badge { position: absolute; top: 12px; right: 12px; left: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chip {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 2px 10px;
	border-radius: var(--r-pill);
	background: var(--teal-soft);
	color: var(--teal);
	font-size: .78rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
a.chip:hover { background: var(--teal); color: var(--bg); }

.flag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: .75rem;
	font-weight: 600;
	color: var(--accent-ink);
}
.flag--lg { font-size: var(--fs-sm); }

.meta-list { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--ink-2); }
.meta-list li { display: flex; gap: 6px; align-items: baseline; }
.meta-list .icon { color: var(--teal); flex-shrink: 0; }
.meta-list--lg { font-size: var(--fs-base); gap: var(--sp-2); }

/* Event card: a ticket stub */
.card--event {
	flex-direction: row;
	align-items: stretch;
	min-height: 132px;
	overflow: hidden;
	--notch: 12px;
	-webkit-mask: radial-gradient(circle var(--notch) at 108px 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 108px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
	mask: radial-gradient(circle var(--notch) at 108px 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 108px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.card--event .card__body { padding: var(--sp-4) var(--sp-5); justify-content: center; }
.card--event .card__title { font-size: 1.3rem; margin: 6px 0 2px; }
.card--event__art { width: 30%; max-width: 220px; flex-shrink: 0; overflow: hidden; margin-left: auto; }
.card--event__art img,
.card--event__art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.date-tile {
	width: 108px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	/* High-contrast date tiles: deep copper with cream text by day, warm gold with ink by night */
	background: #9a3b17;
	color: #fff8ee;
	border-right: 2px dashed rgba(255, 248, 238, .45);
	text-align: center;
	line-height: 1;
}
[data-theme="night"] .date-tile { background: #ffd36b; color: #1b1030; border-right-color: rgba(27, 16, 48, .35); }
.date-tile .date-tile__m, .date-tile .date-tile__d, .date-tile .date-tile__w { color: inherit; opacity: 1; }
.date-tile__m { font: 700 .78rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.date-tile__d { font: 600 2.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.date-tile__w { font: 400 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
@media (max-width: 560px) {
	.card--event__art { display: none; }
	.date-tile { width: 84px; }
	.card--event { --notch: 10px; -webkit-mask: none; mask: none; }
	.date-tile__d { font-size: 2rem; }
}

.event-list { display: grid; gap: var(--sp-4); }
.event-list--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }

.events-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.events-split__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.events-split .section-head { margin-bottom: var(--sp-4); }
@media (max-width: 900px) {
	.events-split { grid-template-columns: 1fr; }
	.events-split__intro { position: static; }
}

/* ---------- Map ---------- */
.section--map { background: var(--bg-alt); }
.map-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .map-split { grid-template-columns: 1fr; } }
.map { position: relative; }
.map__canvas {
	height: clamp(340px, 50vw, 520px);
	border-radius: var(--r-lg);
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-2);
	background: var(--surface-2);
	z-index: 0;
}
.map--wide { margin-bottom: var(--sp-6); }
.map--wide .map__canvas { height: clamp(320px, 42vw, 480px); }
.map--small .map__canvas { height: 260px; box-shadow: var(--shadow-1); }
.map--small { margin-top: var(--sp-4); }
.map__note { font-size: var(--fs-xs); color: var(--ink-2); margin: var(--sp-2) 0 0; }
.map--small .map__note { display: none; }

.leaflet-container { font-family: var(--font-body); background: var(--surface-2); }
.leaflet-tile-pane { filter: sepia(.35) saturate(.9) hue-rotate(-8deg) contrast(.95); transition: filter var(--dur-3) ease; }
[data-theme="night"] .leaflet-tile-pane { filter: invert(1) hue-rotate(200deg) saturate(.55) brightness(.85) contrast(.9); }
.leaflet-popup-content-wrapper,
.leaflet-popup-tip,
.leaflet-container .leaflet-popup-content-wrapper,
.leaflet-container .leaflet-popup-tip { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.leaflet-container .leaflet-popup-content-wrapper { border: 1px solid var(--line-strong); }
.leaflet-container .leaflet-popup-content a.map-pop__title { color: var(--ink); }
.leaflet-container .leaflet-popup-content .map-pop__meta { color: var(--ink-2); }
.leaflet-container .leaflet-popup-content a.map-pop__btn--ghost { color: var(--ink); border-color: var(--line-strong); }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-2); }
.leaflet-container a.leaflet-popup-close-button:hover { color: var(--ink); }
.leaflet-popup-content { margin: 14px 16px; font-size: var(--fs-sm); }
.leaflet-popup-content a.map-pop__title { font: 600 1.1rem var(--font-display); color: var(--ink); text-decoration: none; display: block; margin-bottom: 4px; }
.leaflet-popup-content a.map-pop__title:hover { color: var(--accent-ink); }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-2); width: 32px; height: 32px; font-size: 22px; line-height: 30px; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 85%, transparent) !important; color: var(--ink-2) !important; }
.leaflet-control-attribution a { color: var(--accent-ink) !important; }
.leaflet-bar a { background: var(--surface); color: var(--ink); border-color: var(--line) !important; width: 36px !important; height: 36px !important; line-height: 36px !important; }
.leaflet-bar a:hover { background: var(--surface-2); color: var(--ink); }

.pin-wrap { background: none; border: 0; }
.pin {
	width: 28px;
	height: 28px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: var(--pin, var(--primary));
	border: 3px solid var(--surface);
	box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}
.pin--install { --pin: var(--gold); }
.pin--place { --pin: var(--ink-2); }

/* Map tools: filters, area jumps, full screen */
.map__tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.map__filters, .map__jumps { display: flex; flex-wrap: wrap; gap: 6px; }
.map__chip {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 36px; padding: 0 12px;
	border-radius: var(--r-pill);
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink);
	font: 600 .8rem var(--font-body);
	cursor: pointer;
	transition: background-color var(--dur-1) ease, border-color var(--dur-1) ease, transform var(--dur-1) ease;
}
.map__chip:hover { border-color: var(--primary); }
.map__chip:active { transform: scale(.96); }
.map__chip[aria-pressed="true"]:not(.map__full) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.map__chip--ghost { background: transparent; }
.map__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); }
.map__dot--venue { background: var(--primary); }
.map__dot--gallery { background: var(--teal); }
.map__dot--art { background: linear-gradient(90deg, #8e6bb0 50%, var(--gold) 50%); }
.map--full { position: fixed; inset: 0; z-index: 9000; margin: 0; padding: 12px; background: var(--bg); display: flex; flex-direction: column; }
.map--full .map__canvas { flex: 1; height: auto !important; border-radius: var(--r-md); }
.map--full .map__note { display: none; }
.has-map-full, .has-map-full body { overflow: hidden; }
.map-pop__meta { display: block; color: var(--ink-2); font-size: .82rem; }
.map-pop__actions { display: flex; gap: 6px; margin-top: 10px; }
.leaflet-popup-content a.map-pop__btn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: .78rem; text-decoration: none; }
.leaflet-popup-content a.map-pop__btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }

/* Vector street map (no tiles): Bisbee's real streets, stairs, parks and the Lavender Pit */
.map__canvas--vector.leaflet-container { background: var(--surface-2); }
@media (max-width: 640px) {
	.map__tools { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
	.map__filters, .map__jumps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--sp-4) * -1); padding: 2px var(--sp-4); }
	.map__filters::-webkit-scrollbar, .map__jumps::-webkit-scrollbar { display: none; }
	.map__chip { flex: 0 0 auto; }
}
.bm-road { stroke: color-mix(in srgb, var(--ridge-mid) 70%, var(--surface)); fill: none; }
.bm-road--primary, .bm-road--secondary { stroke: var(--ridge-near); }
.bm-road--tertiary { stroke: var(--ridge-mid); }
.bm-road--footway, .bm-road--path { stroke-dasharray: 2 4; opacity: .7; }
.bm-steps { stroke: var(--primary); stroke-dasharray: 1 3; }
.bm-park { fill: color-mix(in srgb, var(--plant) 35%, var(--surface-2)); stroke: none; }
.bm-pit { fill: color-mix(in srgb, var(--pit-2) 55%, var(--surface-2)); stroke: var(--pit-1); }
[data-theme="night"] .bm-road { stroke: color-mix(in srgb, var(--ridge-far) 80%, var(--bg)); }
[data-theme="night"] .bm-road--primary, [data-theme="night"] .bm-road--secondary { stroke: #7a68c9; }
[data-theme="night"] .bm-steps { stroke: var(--gold); }

.pin--venue { --pin: var(--primary); }
.pin--gallery { --pin: var(--teal); }
.pin--mural { --pin: #8e6bb0; }
[data-theme="night"] .pin--mural { --pin: #b79cff; }

.legend { display: flex; flex-wrap: wrap; gap: var(--sp-4); list-style: none; padding: 0; margin: var(--sp-4) 0 var(--sp-5); font-weight: 600; font-size: var(--fs-sm); }
.legend li { display: inline-flex; gap: 8px; align-items: center; }
.legend__dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.legend__dot--venue { background: var(--primary); }
.legend__dot--gallery { background: var(--teal); }
.legend__dot--mural { background: #8e6bb0; }
[data-theme="night"] .legend__dot--mural { background: #b79cff; }

/* ---------- Join band ---------- */
.join-band { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 128px) 0; background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 60%, var(--sky-3)); transition: background var(--dur-scene) ease; }
.join-band::before { content: ""; position: absolute; inset: auto 0 0; height: 32%; background: var(--ridge-mid); clip-path: polygon(0 40%, 12% 22%, 22% 34%, 34% 8%, 46% 26%, 58% 14%, 70% 30%, 82% 6%, 92% 24%, 100% 16%, 100% 100%, 0 100%); transition: background-color var(--dur-scene) ease; }
.join-band__inner { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.join-band__art svg { width: 100%; max-width: 300px; margin-inline: auto; display: block; overflow: visible; }
.jb-shadow { fill: var(--ground-front); opacity: .35; }
.jb-pole { fill: none; stroke: var(--roof); stroke-width: 2.5; stroke-linecap: round; }
.jb-flag { fill: var(--primary); transform-box: fill-box; transform-origin: left center; animation: flag-wave 2.4s ease-in-out infinite alternate; }
@keyframes flag-wave { to { transform: scaleX(.78) skewY(6deg); } }
.jb-stars circle { fill: var(--star); opacity: 0; transition: opacity var(--dur-3) ease; }
[data-theme="night"] .jb-stars circle { opacity: 1; }
.join-band__title { font-size: var(--fs-3xl); max-width: 16ch; }
.join-band .lede { color: var(--ink); opacity: .85; }
.join-band__body { position: relative; background: color-mix(in srgb, var(--surface) 70%, transparent); padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); backdrop-filter: blur(8px); border: 1px solid var(--line); }
@media (max-width: 800px) {
	.join-band__inner { grid-template-columns: 1fr; }
	.join-band__art svg { max-width: 180px; }
}

/* ---------- Page hero ---------- */
.page-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(40px, 6vw, 80px) 0 clamp(88px, 10vw, 136px);
	background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 70%, var(--sky-3) 100%);
	transition: background var(--dur-scene) ease;
}
.page-hero--compact { padding-bottom: clamp(72px, 8vw, 104px); }
.page-hero__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* The sun/moon + B hill sit bottom-right; --lm-* describe that corner so the text can keep clear of it */
.page-hero { --lm-r: max(4vw, 16px); --lm-w: clamp(124px, 22vw, 290px); }
.page-hero__landmark {
	position: absolute;
	right: var(--lm-r);
	bottom: clamp(10px, 2.4vw, 30px);
	width: var(--lm-w);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(4px, 1.4vw, 16px);
}
.page-hero__bhill { display: block; width: 100%; height: auto; overflow: visible; }
/* Wider screens: reserve a column on the right as wide as the landmark (minus the page margin the centered layout already leaves) */
.page-hero__inner { padding-right: max(var(--gutter), calc(var(--lm-r) + var(--lm-w) + 24px - max(0px, (100vw - var(--wrap)) / 2))); }
/* Tablets and phones: the moon sits beside the B hill instead of above it */
@media (max-width: 900px) {
	.page-hero { --lm-w: clamp(170px, 42vw, 230px); }
	.page-hero__landmark { flex-direction: row; align-items: flex-end; gap: 6px; }
	.page-hero__orb { flex: 0 0 30%; width: 30%; margin-bottom: 20%; }
	.page-hero__bhill { flex: 1 1 auto; width: auto; min-width: 0; }
}
/* Phones: a side column would squeeze the text, so the text gets the full width and the landmark gets its own band below it */
@media (max-width: 600px) {
	.page-hero__inner { padding-right: var(--gutter); }
	.page-hero, .page-hero--compact { padding-bottom: calc(clamp(10px, 2.4vw, 30px) + var(--lm-w) * .5 + 16px); }
}
.bh-hill { fill: var(--ridge-near); transition: fill var(--dur-scene) ease; }
.bh-trail { fill: none; stroke: var(--trail); stroke-width: 1.4; stroke-dasharray: 3 3; stroke-linecap: round; }
.page-hero__bhill .b-glow { display: none; }
.page-hero__orb {
	display: block;
	width: 56%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--sun);
	box-shadow: 0 0 80px 20px color-mix(in srgb, var(--orb-glow) 60%, transparent);
	transition: background-color var(--dur-scene) ease, box-shadow var(--dur-scene) ease;
}
[data-theme="night"] .page-hero__orb { background: var(--moon); box-shadow: 0 0 80px 10px color-mix(in srgb, var(--orb-glow) 45%, transparent); pointer-events: auto; cursor: pointer; }
.page-hero__orb { position: relative; }
/* The full moon at the top of every page has the same watching eye as the home moon */
.orb-eye { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--dur-scene) ease; overflow: visible; }
[data-theme="night"] .orb-eye { opacity: 1; }
.oe-crater { fill: var(--moon-shade); }
.oe-white { fill: var(--moon-white); }
.oe-iris { fill: #2a8f86; }
.oe-pupil { fill: #1b1030; }
.oe-glint { fill: #fff; }
.oe-line { fill: none; stroke: #6a5a3a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.oe-open { transform-box: fill-box; transform-origin: center; transform: scaleY(0); }
[data-theme="night"] .oe-open { animation: eye-open 9s ease-in-out 1s infinite; }
[data-theme="night"] .oe-lid { animation: eye-lid 9s ease-in-out 1s infinite; }
[data-theme="night"] .oe-look { animation: oe-look 9s ease-in-out 1s infinite; }
@keyframes oe-look { 0%, 66% { transform: translateX(0); } 70%, 76% { transform: translateX(-8px); } 80%, 85% { transform: translateX(8px); } 89%, 100% { transform: translateX(0); } }
.orb-eye.is-awake .oe-open { animation: none; transform: scaleY(1); transition: transform .25s var(--ease-out); }
.orb-eye.is-awake .oe-lid { animation: none; opacity: 0; }
.orb-eye.is-awake .oe-look { animation: none; transition: transform .18s var(--ease-out); }
.orb-eye.is-blinking .oe-open { animation: blink .4s ease-in-out !important; }
.page-hero__inner { pointer-events: none; }
.page-hero__inner > * { pointer-events: auto; }
.page-hero__ridge { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(60px, 9vw, 120px); }
.phr-far { fill: var(--ridge-far); transition: fill var(--dur-scene) ease; }
.phr-near { fill: var(--bg); transition: fill var(--dur-3) ease; }
.page-hero__title { font-size: var(--fs-3xl); max-width: 18ch; margin-bottom: var(--sp-3); }
.page-hero__desc { max-width: 60ch; font-size: var(--fs-lg); color: var(--ink); opacity: .85; }
.page-hero__desc p:last-child { margin: 0; }
.page-hero__count { margin: var(--sp-4) 0 0; color: var(--ink); opacity: .75; }
.page-hero__search { max-width: 560px; margin-top: var(--sp-5); }
.page-hero .link-pills { margin-top: var(--sp-4); }
.page-hero .btn-row { margin-top: var(--sp-5); }
.notice-pill { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-size: var(--fs-sm); font-weight: 600; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 var(--sp-4); padding: 0; font-size: var(--fs-sm); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.breadcrumbs li + li::before { content: "/"; opacity: .5; }
.breadcrumbs a { color: var(--ink); font-weight: 600; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); opacity: .75; }

/* ---------- Directory filters ---------- */
.directory { padding-block: var(--sp-6) clamp(56px, 8vw, 112px); }
.filters { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); width: fit-content; max-width: 100%; }
.filter-tab {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: var(--r-pill);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--dur-1) ease, color var(--dur-1) ease;
}
.filter-tab:hover { background: var(--surface-2); color: var(--ink); }
.filter-tab[aria-current] { background: var(--ink); color: var(--bg); }
.chips--filter { gap: var(--sp-2); }
.chips--filter .chip { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.chips--filter .chip:hover { border-color: var(--teal); background: var(--surface); color: var(--teal); }
.chips--filter .chip[aria-current] { background: var(--teal); border-color: var(--teal); color: var(--bg); }

.filters__row { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: end; justify-content: space-between; }
.quick-filter label { display: block; font-size: var(--fs-xs); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 6px; }
.quick-filter__field { position: relative; display: flex; align-items: center; }
.quick-filter__field .icon { position: absolute; left: 14px; color: var(--ink-2); }
.quick-filter input { min-height: 44px; width: min(320px, 100%); padding: 0 14px 0 40px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 500 var(--fs-base) var(--font-body); }
.quick-filter input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--teal-soft); }
.quick-filter__status { min-height: 1.4em; margin: 6px 0 0; font-size: var(--fs-xs); color: var(--ink-2); }
.az { display: flex; flex-wrap: wrap; gap: 2px; }
.az__l {
	display: inline-grid;
	place-items: center;
	min-width: 32px;
	height: 36px;
	padding: 0 6px;
	border-radius: var(--r-sm);
	font: 700 .8rem var(--font-mono);
	color: var(--ink-2);
	text-decoration: none;
}
.az__l:hover { background: var(--surface); color: var(--ink); }
.az__l[aria-current] { background: var(--primary); color: var(--on-primary); }

.month { margin-bottom: var(--sp-7); }
.month__title { display: flex; align-items: center; gap: var(--sp-4); font-size: var(--fs-xl); margin-bottom: var(--sp-4); }
.month__title::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.search-group { margin-bottom: var(--sp-7); }
.plain-results { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.plain-results a { font: 600 var(--fs-lg) var(--font-display); }

.pagination { margin-top: var(--sp-7); }
.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border-radius: var(--r-pill);
	border: 1px solid var(--line);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	background: var(--surface);
}
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.empty { text-align: center; max-width: 560px; margin: var(--sp-6) auto; padding: var(--sp-6); border: 2px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty > svg { width: 220px; height: 150px; border-radius: 120px 120px var(--r-md) var(--r-md); margin: 0 auto var(--sp-4); display: block; }
.empty h2 { font-size: var(--fs-xl); }
.empty .btn-row { justify-content: center; }
.empty .hero__quick { justify-content: center; }

/* ---------- Profile (artist / event / place) ---------- */
.profile__hero {
	position: relative;
	padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 80px);
	background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 75%, var(--bg));
	transition: background var(--dur-scene) ease;
}
.profile__hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.profile__portrait {
	position: relative;
	aspect-ratio: 4 / 5;
	max-width: 460px;
	border-radius: 999px 999px var(--r-lg) var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shadow-2), 0 0 0 10px color-mix(in srgb, var(--surface) 70%, transparent);
	background: var(--bg-alt);
}
.profile__portrait img,
.profile__portrait svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile__portrait .badge { top: 24px; }
.profile__intro .chips { margin-bottom: var(--sp-4); }
.profile__name { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
.profile__tagline { font: italic 400 var(--fs-xl)/1.35 var(--font-display); color: var(--ink); opacity: .85; max-width: 32ch; font-variation-settings: "SOFT" 100, "WONK" 1; }
.profile__intro .meta-list { margin-bottom: var(--sp-5); color: var(--ink); }
@media (max-width: 800px) {
	.profile__hero-inner { grid-template-columns: 1fr; }
	.profile__portrait { max-width: 340px; width: 100%; margin-inline: auto; }
}

.link-pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.link-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: var(--r-pill);
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink);
	font-weight: 600;
	font-size: var(--fs-sm);
	text-decoration: none;
	transition: border-color var(--dur-1) ease, transform var(--dur-1) ease;
}
.link-pill:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.link-pill .icon--sm { opacity: .6; }

.profile__body {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(28px, 5vw, 72px);
	padding-block: clamp(40px, 6vw, 72px);
}
@media (max-width: 900px) { .profile__body { grid-template-columns: 1fr; } }
.profile__section-title { font-size: var(--fs-2xl); }
.profile__aside { display: grid; gap: var(--sp-5); align-content: start; }
.profile__gallery { padding-bottom: clamp(48px, 7vw, 96px); }

.panel { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.panel--dashed { border-style: dashed; border-width: 2px; box-shadow: none; background: transparent; color: var(--ink-2); }
.panel--sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.panel__title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.panel__title .icon { color: var(--teal); }
.embed { border-radius: var(--r-md); overflow: hidden; }
.embed iframe { width: 100%; display: block; border: 0; }
.embed iframe[src*="youtube"], .embed iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }

.mini-events { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.mini-events li { display: flex; gap: var(--sp-3); align-items: center; }
.mini-events .date-tile { width: 58px; height: 64px; border-radius: var(--r-sm); border: 0; }
.mini-events .date-tile__d { font-size: 1.5rem; }
.mini-events .date-tile__w { display: none; }
.mini-events a { font-weight: 600; display: block; }
.mini-events span { font-size: var(--fs-sm); color: var(--ink-2); }

.details { margin: 0 0 var(--sp-5); display: grid; gap: var(--sp-4); }
.details dt { display: flex; align-items: center; gap: 6px; font: 700 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 2px; }
.details dd { margin: 0; font-weight: 500; }
.ticket__actions { display: grid; gap: var(--sp-2); }
.event-single__media { border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--sp-6); aspect-ratio: 16 / 9; background: var(--bg-alt); }
.event-single__media img, .event-single__media svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-grid { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--sp-3); }
.gallery-grid__item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--bg-alt); }
.gallery-grid__item img, .gallery-grid__item svg { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
a.gallery-grid__item:hover img { transform: scale(1.05); }
.gallery-grid--placeholder .gallery-grid__item { opacity: .75; }
.gallery-grid__ph { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font: 700 .68rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

/* Prose */
.prose { max-width: 68ch; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.75; }
.prose h2 { font-size: var(--fs-2xl); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-xl); margin-top: var(--sp-6); }
.prose img { border-radius: var(--r-md); }
.prose blockquote { margin: var(--sp-6) 0; padding-left: var(--sp-5); border-left: 4px solid var(--primary); font: italic 400 var(--fs-xl)/1.4 var(--font-display); }
.page-content { padding-block: var(--sp-6) clamp(56px, 8vw, 112px); }
.page-content__media { margin: 0 0 var(--sp-6); border-radius: var(--r-lg); overflow: hidden; }

/* ---------- Join form ---------- */
.join { padding-block: var(--sp-6) clamp(56px, 8vw, 112px); }
.join__layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) {
	.join__layout { grid-template-columns: 1fr; }
	.join__aside { order: -1; }
	.panel--sticky { position: static; }
}
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); margin-bottom: var(--sp-5); }
.segmented a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); color: var(--ink); font-weight: 600; text-decoration: none; }
.segmented a:hover { background: var(--surface-2); color: var(--ink); }
.segmented a[aria-current] { background: var(--ink); color: var(--bg); }

.form { display: grid; gap: var(--sp-5); }
.form__group { margin: 0; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: var(--sp-5); }
.form__group legend { float: left; width: 100%; padding: 0; margin-bottom: var(--sp-2); font: 600 var(--fs-xl) var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.form__group legend + * { clear: both; }
.field { display: grid; gap: 6px; }
.field label, .field__label { font-weight: 600; font-size: var(--fs-sm); }
.req { color: var(--danger); }
.field input[type="text"],
.field input[type="url"],
.field input[type="email"],
.field input[type="date"],
.field input[type="time"],
.field select,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border-radius: var(--r-md);
	border: 1.5px solid var(--line-strong);
	background: var(--bg);
	color: var(--ink);
	font: 500 1rem/1.4 var(--font-body);
	transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--teal-soft); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; }
.field__help { margin: 0; font-size: var(--fs-xs); color: var(--ink-2); }
.field__error { display: flex; gap: 6px; align-items: center; margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--danger); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.field-row--3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 640px) { .field-row, .field-row--3 { grid-template-columns: 1fr; } }

.medium-picker { display: grid; gap: var(--sp-4); padding: var(--sp-4); border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--bg); }
.medium-picker[aria-invalid="true"] { border-color: var(--danger); }
.medium-picker__group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.medium-picker__title { width: 100%; margin: 0 0 2px; font: 700 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.check-chip { position: relative; cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--surface); font-size: var(--fs-sm); font-weight: 600; transition: all var(--dur-1) ease; }
.check-chip input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.check-chip input:checked + span::before { content: "✓"; margin-right: 6px; }
.check-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); flex-shrink: 0; }

.dropzone {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 4px;
	padding: var(--sp-6) var(--sp-4);
	border: 2px dashed var(--line-strong);
	border-radius: var(--r-lg);
	background: var(--bg);
	text-align: center;
	cursor: pointer;
	transition: border-color var(--dur-1) ease, background-color var(--dur-1) ease;
}
.dropzone:hover, .dropzone[data-drag] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--bg)); }
.dropzone:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--teal-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__icon { width: 32px; height: 32px; color: var(--primary); }
.dropzone__title { font-weight: 700; }
.dropzone__help { font-size: var(--fs-xs); color: var(--ink-2); font-weight: 400; }
.dropzone__list { list-style: none; padding: 0; margin: var(--sp-2) 0 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.dropzone__list li { position: relative; width: 84px; height: 84px; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-alt); }
.dropzone__list img { width: 100%; height: 100%; object-fit: cover; }
.dropzone__list li:first-child::after { content: "Main"; position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font: 700 .6rem var(--font-mono); text-transform: uppercase; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: grid; gap: var(--sp-2); justify-items: start; }
.btn[data-loading] { pointer-events: none; opacity: .8; }
.btn[data-loading] .icon { animation: spin 1s linear infinite; }

.error-summary { margin-bottom: var(--sp-5); padding: var(--sp-5); border-radius: var(--r-lg); background: var(--danger-bg); border: 2px solid var(--danger); color: var(--ink); }
.error-summary:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.error-summary h2 { font-size: var(--fs-lg); color: var(--danger); margin-bottom: var(--sp-2); }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--ink); font-weight: 600; }

.success { text-align: center; max-width: 620px; margin: var(--sp-6) auto; padding: var(--sp-7) var(--sp-5); border-radius: var(--r-lg); background: var(--success-bg); border: 1px solid var(--success); }
.success:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.success__icon { width: 56px; height: 56px; color: var(--success); margin-bottom: var(--sp-3); }
.success .btn-row { justify-content: center; }

.steps { margin: 0 0 var(--sp-4); padding-left: 1.4em; display: grid; gap: var(--sp-3); }
.steps li::marker { font: 700 1rem var(--font-display); color: var(--primary); }

/* ---------- 404 ---------- */
.lost { position: relative; min-height: 76vh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.lost__art { position: absolute; inset: 0; z-index: -1; }
.lost__art svg { width: 100%; height: 100%; display: block; }
.lost__body { padding-block: var(--sp-8); }
.lost__body > * { max-width: 560px; }
.lost__search { margin: var(--sp-5) 0; }
.lost .lede { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ground-front); color: #f4e9d8; margin-top: 0; transition: background-color var(--dur-scene) ease; }
.site-footer__horizon { line-height: 0; background: var(--bg); transition: background-color var(--dur-3) ease; }
.site-footer__horizon svg { width: 100%; height: clamp(56px, 8vw, 120px); display: block; }
.fh-far { fill: var(--ridge-near); transition: fill var(--dur-scene) ease; }
.fh-near { fill: var(--ground-front); transition: fill var(--dur-scene) ease; }
.site-footer__inner {
	max-width: var(--wrap);
	margin-inline: auto;
	padding: var(--sp-6) var(--gutter) var(--sp-7);
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	gap: var(--sp-6);
}
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer .brand { color: #f4e9d8; margin-bottom: var(--sp-4); }
.site-footer .brand__bisbee { color: #7fd6cc; }
.site-footer__brand p { color: #d9cab8; max-width: 44ch; }
.site-footer__heading { font: 700 .75rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #7fd6cc; margin-bottom: var(--sp-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer a:not(.btn):not(.brand) { display: inline-flex; min-height: 36px; align-items: center; color: #f4e9d8; text-decoration: none; }
.site-footer a:not(.btn):not(.brand):hover { color: #ffc98f; text-decoration: underline; }
.site-footer__coords .mono { color: #d9cab8; line-height: 1.8; }
.site-footer__base {
	max-width: var(--wrap);
	margin-inline: auto;
	padding: var(--sp-4) var(--gutter) var(--sp-6);
	border-top: 1px solid rgba(244, 233, 216, .14);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--sp-3);
	font-size: var(--fs-xs);
	color: #cbbba8;
}
.site-footer__base p { margin: 0; }
.site-footer .lm-eye { fill: #f4e9d8; stroke: #1b1030; }
.site-footer .lm-ridge { fill: #93502f; }
[data-theme="night"] .site-footer .lm-ridge { fill: #3a2c66; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: var(--z-dialog); display: grid; place-items: center; padding: var(--sp-6) var(--sp-4); background: rgba(10, 7, 22, .9); }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox__figure img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: var(--r-md); }
.lightbox__figure figcaption { color: #f4e9d8; text-align: center; margin-top: var(--sp-3); font-size: var(--fs-sm); }
.lightbox__close { position: absolute; top: 16px; right: 16px; color: #fff; background: rgba(255, 255, 255, .12); }

/* ---------- Reveal on scroll (JS only) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Generative placeholder art ---------- */
.ph-art stop { transition: stop-color var(--dur-scene) ease; }
.ph-art * { transition: fill var(--dur-scene) ease, stroke var(--dur-scene) ease; }
.ph-orb { fill: var(--ph-orb); }
.ph-far { fill: var(--ridge-far); }
.ph-mid { fill: var(--ridge-mid); }
.ph-ground { fill: var(--ridge-near); }
.ph-plant { fill: none; stroke: var(--plant); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ph-float { animation: bob 6s ease-in-out infinite; }
.ph-record { fill: var(--ink); }
[data-theme="night"] .ph-record { fill: #0b0820; }
.ph-groove { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; }
.ph-label { fill: var(--primary); }
.ph-hole { fill: var(--surface); }
.ph-wave { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; }
.ph-frame { fill: var(--gold); }
.ph-canvas { fill: var(--sky-1); }
.ph-orb2 { fill: var(--primary); }
.ph-ridge2 { fill: var(--ridge-near); }
.ph-shadow { fill: var(--ground-front); opacity: .3; }
.ph-string { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: .6; }
.ph-bulb { fill: var(--gold); }
[data-theme="night"] .ph-bulb { fill: #ffe08a; filter: drop-shadow(0 0 4px #ffd36b); }
.ph-tent { fill: var(--primary); }
.ph-building { fill: var(--house-1); }
.ph-parapet { fill: var(--house-5); }
.ph-marquee { fill: var(--gold); }
.ph-window { fill: var(--window); }
[data-theme="night"] .ph-window { fill: var(--window-lit); }
.ph-easel { fill: none; stroke: var(--roof); stroke-width: 5; stroke-linecap: round; }
.ph-eye-w { fill: var(--surface); }
.ph-eye-i { fill: var(--teal); }
.ph-wall { fill: var(--surface-2); }
.ph-bricks { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .18; }

.ph-shine { fill: rgba(255, 255, 255, .25); }
.ph-note { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; opacity: 0; }
.ph-chase { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; opacity: 0; }
.ph-eye-lid { fill: var(--gold); transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.ph-anvil path { fill: var(--roof); }
.ph-handle { fill: none; stroke: var(--tumble); stroke-width: 6; stroke-linecap: round; }
.ph-head { fill: var(--ink-2); }
.ph-hammer { transform-box: view-box; transform: rotate(-24deg); }
.ph-spark { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; opacity: 0; }
.ph-pole { fill: none; stroke: var(--roof); stroke-width: 3; }
.ph-hub { fill: var(--roof); }
.ph-spinner { transform-box: view-box; animation: spin 9s linear infinite; }
.ph-cairn { transform-box: view-box; }
.ph-spin, .ph-blob { transform-box: view-box; }

/* ==========================================================================
   v1.1: the B at true size, Bisbee landmarks, and a scene you can play with
   ========================================================================== */

/* Hit areas and pokeable things */
.scene .hit { fill: transparent; }
.scene [data-poke]:not(.sky):not(.stars) { cursor: pointer; }
.hero__content, .hero__stats { pointer-events: none; }
.hero__content > *, .hero__stats > * { pointer-events: auto; }

/* Chihuahua Hill */
.scrub circle { fill: var(--scrub); transition: fill var(--dur-scene) ease; }
.hill-rock { fill: none; stroke: var(--rock-shade); stroke-width: 2; stroke-linecap: round; opacity: .5; }
.b-trail { fill: none; stroke: var(--trail); stroke-width: 2.2; stroke-dasharray: 5 6; stroke-linecap: round; opacity: .85; transition: stroke var(--dur-scene) ease; }
.hiker-body path { fill: none; stroke: var(--roof); stroke-width: 1.4; stroke-linecap: round; }
.hiker-body circle { fill: var(--roof); }
.hiker-body .hiker-lamp { fill: #ffe9a8; opacity: 0; transition: opacity var(--dur-scene) ease; }
[data-theme="night"] .hiker-body .hiker-lamp { opacity: .55; }
.b-wrap { transform-box: fill-box; transform-origin: 50% 100%; }
.b-wrap.is-poked { animation: b-hop .7s var(--ease-out); }
@keyframes b-hop { 30% { transform: translateY(-7px) scale(1.06); } 60% { transform: translateY(1px) scale(.98); } }
.b-ripple { fill: none; stroke: var(--b-letter); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ripple 1.3s var(--ease-out) forwards; }
@keyframes ripple { from { transform: scale(.4); opacity: .95; } to { transform: scale(2.6); opacity: 0; } }

/* Lavender Pit, headframe, stairs */
.pit-pool { fill: var(--pit-pool); animation: shimmer 4s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: .6; } }
.hf-legs, .hf-wheel { fill: none; stroke: var(--headframe); stroke-width: 2.4; stroke-linecap: round; transition: stroke var(--dur-scene) ease; }
.hf-wheel { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.hf-house { fill: var(--headframe); }
.stairs-steps { fill: none; stroke: var(--window); stroke-width: 2; stroke-linejoin: round; opacity: .9; }
.stairs-rail { fill: none; stroke: var(--roof); stroke-width: 1.2; }

/* Plants sway in the breeze */
.sway { transform-box: view-box; transform-origin: var(--sway-o); animation: sway 5s ease-in-out infinite alternate; }
.ocotillo-big.sway { animation-duration: 6.5s; }
@keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }

/* Javelina: sniffs now and then, trots off when poked */
.jav-body, .jav-ear { fill: var(--javelina); transition: fill var(--dur-scene) ease; }
.jav-legs, .jav-tail { fill: none; stroke: var(--javelina); stroke-width: 3.2; stroke-linecap: round; }
.jav-mane { fill: none; stroke: #e9dcc6; stroke-width: 2; stroke-linecap: round; opacity: .55; }
.jav-eye { fill: #f9edd8; }
[data-theme="night"] .jav-eye { fill: var(--window-lit); }
.jav-sniff { transform-box: view-box; transform-origin: 612px 732px; animation: sniff 7s ease-in-out infinite; }
@keyframes sniff { 0%, 78%, 100% { transform: none; } 82%, 90% { transform: rotate(2.5deg); } 86% { transform: rotate(-1deg); } }
.javelina.is-poked .jav-run { animation: jav-trot 3s ease-in-out; }
.javelina.is-poked .jav-legs { transform-box: fill-box; transform-origin: 50% 0; animation: trot .16s steps(2) infinite; }
@keyframes jav-trot { 0% { transform: none; } 34% { transform: translateX(230px); opacity: 0; } 35% { transform: translateX(-200px); opacity: 0; } 62% { opacity: 1; } 100% { transform: none; } }
@keyframes trot { to { transform: skewX(18deg); } }

/* Lizard: push-ups on its rock, darts off when poked */
.liz-body { fill: var(--lizard); stroke: var(--lizard); stroke-width: 1.4; stroke-linecap: round; transition: fill var(--dur-scene) ease; }
.liz-legs { fill: none; stroke: var(--lizard); stroke-width: 1.6; stroke-linecap: round; }
.liz-eye { fill: #1b1030; }
.liz-push { transform-box: view-box; animation: pushup 5s ease-in-out infinite; }
@keyframes pushup { 0%, 68%, 100% { transform: none; } 72%, 80% { transform: translateY(-2.5px); } 76%, 84% { transform: none; } }
.lizard.is-poked .liz-run { animation: liz-dart 3.4s ease-in-out; }
@keyframes liz-dart { 0% { transform: none; } 14% { transform: translate(80px, -26px); opacity: 0; } 72% { transform: translate(-40px, 0); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Pokes on sky things */
.hawk-dive.is-poked { animation: hawk-dive 1.5s var(--ease-in-out); }
@keyframes hawk-dive { 40% { transform: translate(-30px, 110px) scale(1.35); } }
.cloud-puff { transform-box: fill-box; transform-origin: center; }
.cloud-drift.is-poked .cloud-puff { animation: puff .8s var(--ease-out); }
@keyframes puff { 35% { transform: scale(1.18, .9); } 65% { transform: scale(.94, 1.08); } }
.float-island.is-poked { animation: island-poke 1.3s var(--ease-out); }
@keyframes island-poke { 20% { transform: translateY(-34px) rotate(-3deg); } 55% { transform: translateY(8px) rotate(1deg); } }
.pebble { fill: var(--rock-shade); animation: pebble 1.5s cubic-bezier(.5, 0, .9, .4) forwards; }
@keyframes pebble { to { transform: translateY(420px); opacity: 0; } }
.orb-moon.is-poked .moon-open { animation: blink .4s ease-in-out !important; }
@keyframes blink { 50% { transform: scaleY(.08); } }
.moon-glint { fill: #fff; opacity: .9; }

/* The moon wakes up and watches the cursor */
.scene.moon-awake .moon-open { animation: none; transform: scaleY(1); transition: transform .25s var(--ease-out); }
.scene.moon-awake .moon-lid { animation: none; opacity: 0; }
.scene.moon-awake .moon-look { animation: none; transition: transform .18s var(--ease-out); }

/* Stars near the cursor flare up; taps launch your own shooting star */
.star { transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease-out), opacity .6s ease; }
[data-theme="night"] .star.star--near { transform: scale(2.6); opacity: 1; transition-duration: .18s; }
.fx-shoot { fill: none; stroke: var(--star); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 70 600; stroke-dashoffset: 70; animation: fx-shoot .9s cubic-bezier(.3, 0, .6, 1) forwards; }
@keyframes fx-shoot { to { stroke-dashoffset: -260; } }
.fx-swift { fill: none; stroke: var(--hawk); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: fx-swift 2s ease-in forwards; }
@keyframes fx-swift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(var(--dx, 260px), -150px) scale(.35); opacity: 0; } }
.fx-swift path { transform-box: fill-box; transform-origin: center; animation: glide .25s ease-in-out infinite alternate; }

/* Cursor dust and tap sparks */
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9990; }

/* Sound toggle */
.sound-toggle .icon--volume { display: none; }
.sound-toggle[aria-pressed="true"] .icon--volume { display: block; }
.sound-toggle[aria-pressed="true"] .icon--volume-off { display: none; }
.sound-toggle[aria-pressed="true"] { color: var(--primary); }

/* Logo eye follows you around */
.lm-pupil { transition: transform .15s var(--ease-out); }

/* Buttons: a sheen sweeps across on hover */
.btn--primary { background-image: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .32) 50%, transparent 65%); background-size: 260% 100%; background-position: 130% 0; background-repeat: no-repeat; }
.btn--primary:hover { background-position: -30% 0; transition: background-position .8s var(--ease-out), background-color var(--dur-1) ease; }
.quick-chip:hover .icon, .nav__link:hover .icon, .link-pill:hover .icon:first-child { animation: wiggle .5s var(--ease-out); }
@keyframes wiggle { 25% { transform: rotate(-14deg) scale(1.1); } 55% { transform: rotate(10deg); } 80% { transform: rotate(-4deg); } }

/* Section titles: a hand-drawn squiggle writes itself under the emphasized words */
.section-head__title em { position: relative; display: inline-block; }
.section-head__title em::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -.14em;
	height: .2em;
	background: var(--gold);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 1.2em 100%;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 1.2em 100%;
	transition: clip-path 1.1s var(--ease-out) .15s;
}
.js .section-head__title em::after { clip-path: inset(0 100% 0 0); }
.js .section-head.is-seen .section-head__title em::after { clip-path: inset(0 0 0 0); }
.section-head:hover .section-head__title em::after { animation: squiggle 1.2s linear infinite; }
@keyframes squiggle { to { -webkit-mask-position: 1.2em 0; mask-position: 1.2em 0; } }

/* "What are you looking for?": the directory's big question */
.section-head--ask { justify-content: center; text-align: center; }
.section-head--ask > div { width: 100%; }
.section-head--ask .eyebrow { justify-content: center; }
.section-head--ask .section-head__link { margin: var(--sp-3) auto 0; }
.section-head--ask .section-head__title { font-size: clamp(2.6rem, 1.5rem + 5vw, 5.4rem); line-height: .95; letter-spacing: -.035em; max-width: none; }
.section-head--ask .section-head__title em {
	background: linear-gradient(90deg, var(--primary), var(--gold), var(--teal), var(--primary));
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	animation: ask-shine 7s linear infinite;
	padding-right: .08em;
}
.ask-q { display: inline-block; color: var(--primary); -webkit-text-fill-color: var(--primary); transform-origin: 50% 85%; animation: ask-bob 2.6s var(--ease-in-out) infinite; }
@keyframes ask-shine { to { background-position: 300% 0; } }
@keyframes ask-bob { 0%, 60%, 100% { transform: none; } 70% { transform: rotate(-12deg) translateY(-4px); } 80% { transform: rotate(10deg) translateY(-6px); } 90% { transform: rotate(-4deg); } }

/* Cards and category tiles tilt toward the cursor with a light sheen */
@media (hover: hover) and (pointer: fine) {
	.card, .cat-tile { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
	.card:hover, .cat-tile:hover { --lift: -6px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
	.card.is-tilting, .cat-tile.is-tilting { transition: transform .12s linear, box-shadow var(--dur-2) ease; }
	.card::before, .cat-tile::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 3;
		border-radius: inherit;
		pointer-events: none;
		background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .3), transparent 50%);
		opacity: 0;
		transition: opacity var(--dur-2) ease;
	}
	.card:hover::before, .cat-tile:hover::before { opacity: 1; }
	[data-theme="night"] .card::before, [data-theme="night"] .cat-tile::before { background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 211, 107, .16), transparent 50%); }
}

/* Card art wakes up on hover (desktop) or when it scrolls to the middle of the screen (touch) */
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-spin { animation: spin 1.8s linear infinite; }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-note { animation: note-up 1.6s ease-out infinite; }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-wave { stroke-dasharray: 14 6; animation: dash .7s linear infinite; }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-bulb { animation: bulb .9s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .1s); }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-chase { opacity: .85; animation: dash .6s linear infinite; }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-window { fill: var(--gold); }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-eye-i { animation: eye-dart 2.2s ease-in-out infinite; }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-eye-lid { animation: lid 2.2s ease-in-out infinite; }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-blob { animation: blob 1.6s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -.3s); }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-art--visual .ph-float { animation: tilt-frame 1.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-orb2 { animation: bulb 1.2s ease-in-out infinite; }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-hammer { animation: hammer .8s ease-in infinite; }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-spark { animation: spark .8s ease-out infinite; animation-delay: calc(var(--i, 0) * .015s); }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-spinner { animation-duration: .9s; }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-cairn { animation: wobble 1.1s ease-in-out infinite alternate; }
:is(.card, .cat-tile):is(:hover, .is-awake) .ph-art--artist .ph-float, :is(.card, .cat-tile):is(:hover, .is-awake) .ph-art--place .ph-float { animation-duration: 1.6s; }
@keyframes note-up { from { transform: translateY(6px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-26px); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes bulb { 50% { opacity: .25; } }
@keyframes eye-dart { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 55% { transform: translate(6px, -2px); } }
@keyframes lid { 0%, 40%, 50%, 100% { transform: scaleY(0); } 45% { transform: scaleY(1); } }
@keyframes blob { to { transform: scale(1.22); } }
@keyframes tilt-frame { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes hammer { 0% { transform: rotate(-38deg); } 50% { transform: rotate(4deg); } 56% { transform: rotate(0); } 100% { transform: rotate(-38deg); } }
@keyframes spark { 0%, 48% { opacity: 0; } 54% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wobble { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }

/* "Full page" badge for artists with their own in-depth page */
/* Quiet and phone-friendly: a still cream tag, plus a slow warm glow on the card that needs no hover */
.badge--deep {
	top: auto;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	color: var(--ink);
	border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
	backdrop-filter: blur(4px);
}
.icon--xs { width: 12px; height: 12px; }
.badge--deep .icon { color: var(--accent-ink); }
/* Artists with their own full page: a soft band of desert color slowly circles the card's edge. No text, works without hover. */
.card--deep {
	border: 2px solid transparent;
	background:
		linear-gradient(var(--surface), var(--surface)) padding-box,
		conic-gradient(from var(--glow-a), color-mix(in srgb, var(--gold) 75%, var(--surface)), color-mix(in srgb, var(--primary) 60%, var(--surface)), color-mix(in srgb, var(--pit-1) 60%, var(--surface)), color-mix(in srgb, var(--teal) 60%, var(--surface)), color-mix(in srgb, var(--gold) 75%, var(--surface))) border-box;
	animation: glow-turn 9s linear infinite, deep-glow 4.5s ease-in-out infinite alternate;
}
@keyframes deep-glow {
	from { box-shadow: var(--shadow-1), 0 0 0 0 transparent; }
	to { box-shadow: var(--shadow-1), 0 0 22px 2px color-mix(in srgb, var(--gold) 38%, transparent); }
}
.profile__deep-cta { margin: var(--sp-5) 0 0; }

/* Deep-page teaser on the artist profile */
.deep {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(48px, 7vw, 104px) 0;
	background:
		radial-gradient(ellipse 60% 70% at 85% 110%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 70%),
		linear-gradient(180deg, var(--sky-1), var(--sky-2) 60%, var(--sky-3));
	transition: background var(--dur-scene) ease;
}
.deep__sky { position: absolute; inset: 0; z-index: -1; }
.deep__star { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%; background: var(--star); opacity: 0; transition: opacity var(--dur-scene) ease; }
[data-theme="night"] .deep__star { opacity: .9; animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--d); }
.deep__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.deep__title { font-size: var(--fs-3xl); line-height: 1; margin: var(--sp-2) 0 var(--sp-4); }
.deep__title em { color: var(--accent-ink); }
.deep__lede { max-width: 44ch; color: var(--ink); opacity: .85; margin-bottom: var(--sp-6); }
.deep__door {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-4);
	padding: 10px 26px 10px 12px;
	border-radius: 999px 999px 999px 999px;
	background: var(--surface);
	border: 1.5px solid var(--line-strong);
	box-shadow: var(--shadow-2);
	color: var(--ink);
	text-decoration: none;
	transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) ease, border-color var(--dur-2) ease;
}
.deep__door:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--ink); }
.deep__door:active { transform: scale(.98); }
/* Animated sun (replaces the old doorway icon everywhere) */
.icon--sun-spin .ss-rays { transform-box: view-box; transform-origin: 12px 12px; animation: spin 9s linear infinite; }
.icon--sun-spin .ss-core { fill: currentColor; fill-opacity: .25; transform-box: view-box; transform-origin: 12px 12px; animation: sun-pulse 2.6s ease-in-out infinite; }
a:hover .icon--sun-spin .ss-rays, button:hover .icon--sun-spin .ss-rays { animation-duration: 2.5s; }
@keyframes sun-pulse { 50% { transform: scale(1.18); fill-opacity: .55; } }
.deep__door-sun svg { display: block; width: 58px; height: 58px; overflow: visible; }
.dd-glow { fill: var(--gold); opacity: .25; transform-box: fill-box; transform-origin: center; animation: sun-glow 3s ease-in-out infinite alternate; }
.dd-rays { stroke: var(--sun); stroke-width: 6; stroke-linecap: round; fill: none; transform-box: view-box; transform-origin: 50px 50px; animation: spin 12s linear infinite; }
.dd-orb { fill: var(--sun); transform-box: fill-box; transform-origin: center; animation: sun-pulse-big 2.6s ease-in-out infinite; }
@keyframes sun-glow { to { opacity: .55; transform: scale(1.08); } }
@keyframes sun-pulse-big { 50% { transform: scale(1.1); } }
.deep__door:hover .dd-rays { animation-duration: 3s; }
.deep__door:hover .dd-glow { opacity: .8; }
.deep__door-text { display: flex; flex-direction: column; gap: 2px; }
.deep__door-label { font: 600 clamp(1.1rem, 1rem + .5vw, 1.35rem)/1.15 var(--font-display); }
.deep__door-url { font-size: .72rem; color: var(--ink-2); }
.deep__door-arrow { transition: transform var(--dur-2) var(--ease-out); }
.deep__door:hover .deep__door-arrow { transform: translateX(5px); }
.deep__peek { display: grid; gap: var(--sp-5); isolation: isolate; }
/* A warm, slowly turning glow around the Next shows board */
@property --glow-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.deep-board::before {
	content: "";
	position: absolute;
	inset: -5px;
	z-index: -1;
	border-radius: calc(var(--r-lg) + 5px);
	background: conic-gradient(from var(--glow-a), #ffb347, #ff6b3d, #ffd36b, #e9a23b, #ff8a3d, #ffb347);
	filter: blur(12px);
	opacity: .75;
	animation: glow-turn 6s linear infinite, glow-breathe 2.8s ease-in-out infinite alternate;
}
@keyframes glow-turn { to { --glow-a: 360deg; } }
@keyframes glow-breathe { from { opacity: .45; filter: blur(10px); } to { opacity: .9; filter: blur(16px); } }
.deep-board {
	position: relative;
	padding: var(--sp-4) var(--sp-5);
	border-radius: var(--r-lg);
	background: var(--ground-front);
	color: #fbefd9;
	border: 2px solid color-mix(in srgb, var(--gold) 70%, transparent);
	box-shadow: var(--shadow-2), inset 0 0 0 4px color-mix(in srgb, #000 20%, transparent);
}
.deep-board__title { margin: 0 0 var(--sp-3); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.deep-covers .deep-board__title { color: var(--ink); opacity: .8; }
.deep-board__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.deep-board__list li { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--sp-3); align-items: center; padding: var(--sp-2) 0; border-top: 1px dashed rgba(251, 239, 217, .2); }
.deep-board__list li:first-child { border-top: 0; }
.deep-board__date { display: grid; justify-items: center; line-height: 1; font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; color: var(--gold); }
.deep-board__date b { font: 600 1.5rem/1 var(--font-display); color: #fbefd9; }
.deep-board__venue { font-weight: 600; }
.deep-board__time { font-size: .78rem; opacity: .8; }
.deep-board li.is-canceled .deep-board__venue { text-decoration: line-through; opacity: .6; }
.deep-covers__fan { list-style: none; margin: 0; padding: var(--sp-2) 0 var(--sp-3) var(--sp-5); display: flex; }
.deep-covers__fan li {
	flex: 0 0 auto;
	width: clamp(70px, 9vw, 112px);
	margin-left: calc(clamp(70px, 9vw, 112px) * -.32);
	transform: rotate(calc((var(--i) - (var(--n) - 1) / 2) * 5deg));
	transition: transform var(--dur-3) var(--ease-out), margin var(--dur-3) var(--ease-out);
}
.deep-covers__fan li:first-child { margin-left: 0; }
.deep-covers__fan:hover li { margin-left: 6px; transform: none; }
.deep-covers__fan:hover li:first-child { margin-left: 0; }
.deep-covers__fan li:hover { transform: translateY(-10px) scale(1.08); position: relative; z-index: 2; }
.deep-covers__fan img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.deep-pieces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.deep-pieces li { display: flex; align-items: center; gap: var(--sp-3); padding: 6px 18px 6px 6px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); }
.deep-pieces img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.deep-pieces b { display: block; font-size: var(--fs-sm); }
.deep-pieces small { font-size: .7rem; color: var(--ink-2); }
@media (max-width: 900px) {
	.deep__inner { grid-template-columns: 1fr; }
	.deep__door { width: 100%; }
	.deep__door-text { flex: 1; min-width: 0; }
	.deep__door-label { white-space: normal; }
}

/* Synced-from-their-calendar notes */
.sync-note { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 var(--sp-5); font-size: .74rem; color: var(--teal); }
.page-hero .sync-note { margin: var(--sp-3) 0 0; }
.sync-note__dot { position: relative; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.sync-note__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3); opacity: 0; } }
.card__synced { display: flex; align-items: center; gap: 6px; margin: var(--sp-2) 0 0; font-size: .68rem; color: var(--teal); }
/* Logos show whole, on white, instead of being cropped into the arch */
.card__media--logo, .profile__portrait--logo { background: #fff; }
.card__media--logo img, .profile__portrait--logo img { object-fit: contain !important; padding: 10%; background: #fff; }
.photo-credit { margin-top: var(--sp-2); font: .7rem/1.4 var(--font-mono); color: var(--ink-2); }
.photo-credit a { color: inherit; }
figure.event-single__media { margin: 0 0 var(--sp-5); }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: var(--sp-3) 0 0; padding: 0; }
.filter-chips .chip { text-decoration: none; }
.filter-chips .chip.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip__n { font-family: var(--font-mono); font-size: .7em; opacity: .7; }
.panel--own { background: color-mix(in srgb, var(--gold) 14%, var(--surface)); }
.panel__note { color: var(--ink-2); font-size: var(--fs-sm); }
.btn-stack { display: grid; gap: var(--sp-2); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.fx-canvas { display: none; }
	.card, .cat-tile { transform: none !important; }
	.js .section-head__title em::after { clip-path: none; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .hero__scene, body::after, .filters, .join-band { display: none !important; }
	body { background: #fff; color: #000; }
}
