/**
 * Musician prototype.
 * Self-contained: everything is namespaced `bm-` and driven by the tokens
 * below, so a new artist look is a handful of custom-property overrides.
 */
.be-template-musician {
	--bm-bg: #0d0d0c;
	--bm-bg-alt: #161615;
	--bm-ink: #f3f0ea;
	--bm-ink-dim: #a9a59c;
	--bm-line: rgb(243 240 234 / 0.16);
	--bm-accent: #e9b44c;
	--bm-light-bg: #f3f0ea;
	--bm-light-ink: #0d0d0c;

	--bm-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--bm-gutter: clamp(20px, 5vw, 72px);
	--bm-section-y: clamp(72px, 11vw, 160px);
	--bm-max: 1320px;
	--bm-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

.be-template-musician *,
.be-template-musician *::before,
.be-template-musician *::after { box-sizing: border-box; }

.be-template-musician {
	margin: 0;
	background: var(--bm-bg);
	color: var(--bm-ink);
	font-family: var(--bm-font);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

/* :where() keeps these resets at zero specificity so component classes always win. */
:where(.be-template-musician) :where(img, video) { display: block; max-width: 100%; }
:where(.be-template-musician) ul { list-style: none; margin: 0; padding: 0; }
:where(.be-template-musician) p { margin: 0; }
:where(.be-template-musician) a { color: inherit; }

.be-template-musician :focus-visible { outline: 2px solid var(--bm-accent); outline-offset: 3px; }

.be-template-musician .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip-path: inset(50%);
	white-space: nowrap;
}

/* ---- Slim "this is a sample" bar (outside the prototype itself) -------- */
.be-bar {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	min-height: 36px; padding: 6px var(--bm-gutter);
	background: #000; color: #cfcbc2;
	font: 500 0.75rem/1.3 var(--bm-font); letter-spacing: 0.04em;
}
.be-bar a { text-decoration: none; border-bottom: 1px solid currentColor; }
.be-bar a:hover { color: #fff; }

.be-skip {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: #fff; color: #000; padding: 10px 16px;
}
.be-skip:focus { left: 8px; top: 8px; }

/* ---- Shared ------------------------------------------------------------ */
.bm-wrap { width: 100%; max-width: var(--bm-max); margin-inline: auto; padding-inline: var(--bm-gutter); }
.bm-section { padding-block: var(--bm-section-y); }

.bm-section__head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px;
	margin-bottom: clamp(32px, 5vw, 64px);
	padding-bottom: 20px; border-bottom: 1px solid var(--bm-line);
}

.bm-h2 {
	margin: 0;
	font-size: clamp(2.25rem, 6.2vw, 5.5rem);
	font-weight: 800; line-height: 0.95;
	letter-spacing: -0.03em; text-transform: uppercase;
}

.bm-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 12px 28px;
	font: 700 0.8125rem/1 var(--bm-font); letter-spacing: 0.14em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; border: 1px solid currentColor;
	transition: background-color 0.25s var(--bm-ease), color 0.25s var(--bm-ease), border-color 0.25s var(--bm-ease);
}
.bm-btn--ghost { color: var(--bm-ink); background: transparent; }
.bm-btn--ghost:hover { background: var(--bm-ink); color: var(--bm-bg); }
.bm-btn--solid { color: var(--bm-light-bg); background: var(--bm-light-ink); border-color: var(--bm-light-ink); }
.bm-btn--solid:hover { background: transparent; color: var(--bm-light-ink); }

.bm-link {
	font: 700 0.8125rem/1 var(--bm-font); letter-spacing: 0.14em; text-transform: uppercase;
	text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--bm-accent);
}
.bm-link:hover { color: var(--bm-accent); }

.bm-empty { color: var(--bm-ink-dim); font-size: 1.125rem; }
.bm-hint {
	display: inline-block; padding: 10px 14px;
	border: 1px dashed var(--bm-accent); color: var(--bm-accent);
	font-size: 0.8125rem;
}

/* ---- Hero --------------------------------------------------------------- */
.bm-hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; place-items: center;
	min-height: calc(100vh - 36px); min-height: calc(100svh - 36px);
	background: #000;
}
/* Background video: a YouTube player is injected by JS over a thumbnail. The 16:9 frame is
   scaled up to "cover" the hero at any screen shape, like object-fit: cover for video. */
.bm-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #000; }
.bm-hero__poster {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	transition: opacity 0.8s var(--bm-ease);
}
.bm-hero__iframe {
	position: absolute; left: 50%; top: 50%;
	width: max(100vw, 177.78svh); height: max(100svh, 56.25vw);
	transform: translate(-50%, -50%);
	border: 0; opacity: 0; pointer-events: none;
	transition: opacity 0.8s var(--bm-ease);
}
.bm-hero__media.is-playing .bm-hero__iframe { opacity: 1; }
.bm-hero__media.is-playing .bm-hero__poster { opacity: 0; }
/* A flat, even dim so white type holds up over any footage. No gradient. */
.bm-hero__scrim { position: absolute; inset: 0; z-index: -1; background: rgb(0 0 0 / 0.38); }

.bm-hero__center { padding: 0 var(--bm-gutter); text-align: center; }
.bm-hero__title { margin: 0; }
.bm-hero__logo { width: clamp(180px, 38vw, 520px); height: auto; margin-inline: auto; }
.bm-hero__logo.is-forced-white { filter: brightness(0) invert(1); }
.bm-hero__name {
	display: block; color: #fff;
	font-size: clamp(3rem, 11vw, 9rem); font-weight: 800; line-height: 0.9;
	letter-spacing: -0.04em; text-transform: uppercase;
}
.bm-hero__hint { position: absolute; top: 24px; left: var(--bm-gutter); }

.bm-hero__toggle {
	position: absolute; right: var(--bm-gutter); bottom: 28px;
	display: grid; place-items: center; width: 44px; height: 44px;
	color: #fff; background: rgb(0 0 0 / 0.35); border: 1px solid rgb(255 255 255 / 0.55);
	cursor: pointer; transition: background-color 0.2s;
}
.bm-hero__toggle:hover { background: rgb(0 0 0 / 0.6); }
.bm-hero__toggle .bm-icon { width: 20px; height: 20px; }
.bm-hero__toggle .bm-icon--play { display: none; }
.bm-hero__toggle[aria-pressed="true"] .bm-icon--pause { display: none; }
.bm-hero__toggle[aria-pressed="true"] .bm-icon--play { display: block; }

.bm-hero__cue {
	position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
	display: grid; place-items: center; width: 56px; height: 72px; color: #fff;
}
.bm-hero__arrow { width: 24px; height: 40px; animation: bm-bounce 1.8s var(--bm-ease) infinite; }

@keyframes bm-bounce {
	0%, 100% { transform: translateY(-6px); }
	50%      { transform: translateY(10px); }
}

/* ---- Shows carousel ----------------------------------------------------- */
.bm-carousel__controls { display: flex; gap: 8px; }
.bm-arrow {
	display: grid; place-items: center; width: 48px; height: 48px;
	color: var(--bm-ink); background: transparent; border: 1px solid var(--bm-line);
	cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.bm-arrow svg { width: 20px; height: 20px; }
.bm-arrow:hover:not(:disabled) { background: var(--bm-ink); color: var(--bm-bg); border-color: var(--bm-ink); }
.bm-arrow:disabled { opacity: 0.3; cursor: default; }

.bm-carousel__track {
	position: relative; /* Contains the absolutely-positioned screen-reader text inside slides, which would otherwise escape the scroller and widen the page. */
	display: flex; gap: clamp(16px, 2vw, 28px);
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0;
	padding-bottom: 12px;
	scrollbar-width: thin; scrollbar-color: var(--bm-line) transparent;
}
.bm-show {
	flex: 0 0 clamp(250px, 28vw, 340px); scroll-snap-align: start;
	display: flex; flex-direction: column; gap: 28px;
	padding: 28px 0 0; border-top: 2px solid var(--bm-ink);
}
.bm-show__date { display: grid; gap: 2px; }
.bm-show__dow, .bm-show__month {
	font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bm-ink-dim);
}
.bm-show__day { font-size: clamp(4rem, 7vw, 6rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; }
.bm-show__venue { font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.bm-show__city { margin-top: 4px; color: var(--bm-ink-dim); }
.bm-show__info { flex: 1; }
.bm-show .bm-btn { align-self: flex-start; }
.bm-show__status {
	align-self: flex-start; padding: 12px 0;
	font: 700 0.8125rem/1 var(--bm-font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bm-accent);
}

/* ---- Book me (the one light band, for contrast) ------------------------- */
.bm-book { background: var(--bm-light-bg); color: var(--bm-light-ink); }
.bm-book__inner {
	display: grid; gap: clamp(32px, 5vw, 72px); align-items: end;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.bm-book__title { font-size: clamp(3rem, 10vw, 9rem); }
.bm-book__body { display: grid; gap: 32px; justify-items: start; padding-bottom: 0.6vw; }
.bm-book__text { font-size: clamp(1.125rem, 1.6vw, 1.375rem); max-width: 34ch; }
.bm-book .bm-hint { color: #7a5a10; border-color: #7a5a10; }

/* ---- Instagram ---------------------------------------------------------- */
.bm-ig { background: var(--bm-bg-alt); }
.bm-ig__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.bm-ig__item { aspect-ratio: 1; overflow: hidden; background: #000; }
.bm-ig__item a { display: block; width: 100%; height: 100%; }
.bm-ig__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--bm-ease), opacity 0.3s; }
.bm-ig__item a:hover img { transform: scale(1.04); opacity: 0.85; }

/* ---- Media library ------------------------------------------------------ */
.bm-media__grid { display: grid; gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 28px); grid-template-columns: 1fr; }
.bm-media__open {
	display: block; width: 100%; padding: 0; text-align: left; cursor: pointer;
	color: inherit; background: none; border: 0; font: inherit;
}
.bm-media__thumb {
	position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
}
.bm-media__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--bm-ease), opacity 0.3s; }
.bm-media__open:hover .bm-media__thumb img { transform: scale(1.03); opacity: 0.8; }
.bm-media__play {
	position: absolute; left: 50%; top: 50%; width: 56px; height: 56px;
	transform: translate(-50%, -50%); color: #fff; pointer-events: none;
}
.bm-media__title { display: block; margin-top: 14px; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }

.bm-lightbox {
	width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
	padding: 0; border: 0; color: var(--bm-ink); background: #000;
}
.bm-lightbox::backdrop { background: rgb(0 0 0 / 0.86); }
.bm-lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; }
.bm-lightbox__title { margin: 0; font-size: 1rem; font-weight: 700; }
.bm-lightbox__close {
	min-height: 40px; padding: 8px 18px; color: #fff; background: transparent; cursor: pointer;
	border: 1px solid rgb(255 255 255 / 0.5);
	font: 700 0.75rem/1 var(--bm-font); letter-spacing: 0.14em; text-transform: uppercase;
}
.bm-lightbox__close:hover { background: #fff; color: #000; }
.bm-lightbox__stage { aspect-ratio: 16 / 9; background: #000; }
.bm-lightbox__stage iframe { width: 100%; height: 100%; border: 0; }

/* ---- Breakpoints -------------------------------------------------------- */
@media (min-width: 720px) {
	.bm-ig__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.bm-media__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
	.bm-media__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
	.bm-book__inner { grid-template-columns: 1fr; align-items: start; }
	.bm-show { flex-basis: 78vw; }
	.bm-hero__toggle { bottom: 20px; }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.bm-hero__arrow { animation: none; }
	.bm-ig__item img, .bm-media__thumb img, .bm-hero__poster, .bm-hero__iframe { transition: none; }
	.bm-carousel__track { scroll-behavior: auto; }
}
