/* Birchwood Songs — Interactive House front-end styles */

.birchwood-house-root {
	--bw-bg: #0f110c;
	--bw-text: #f2ede4;
	--bw-accent: #d4922a;
	position: relative;
	width: 100%;
	min-height: 640px;
	height: 88vh;
	max-height: 900px;
	overflow: hidden;
	background: var(--bw-bg);
	color: var(--bw-text);
	font-family: 'Work Sans', sans-serif;
	-webkit-font-smoothing: antialiased;
	border-radius: 4px;
}

.birchwood-house-root * { box-sizing: border-box; }

.bw-serif {
	font-family: 'Fraunces', serif;
	font-weight: 300;
}

.bw-view {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* ── Scrollable rooms ── */
.bw-scroll {
	overflow-y: auto;
	scrollbar-width: none;
	height: 100%;
}
.bw-scroll::-webkit-scrollbar { display: none; }

/* ── Nav ── */
.bw-nav {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.1rem 1.75rem;
	background: linear-gradient(to bottom, rgba(15,17,12,0.95) 0%, transparent 100%);
}
.bw-nav button {
	background: none; border: none; cursor: pointer; color: var(--bw-text);
	font-family: inherit;
}
.bw-nav .bw-nav-title {
	font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7;
}
.bw-nav .bw-nav-title:hover { opacity: 1; }
.bw-nav-links { display: flex; gap: 1.5rem; font-size: 0.85rem; opacity: 0.7; }
.bw-nav-links button:hover { opacity: 1; }

/* ── Entrance ── */
.bw-entrance {
	position: relative; width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.bw-entrance-bg {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	filter: brightness(0.35) saturate(0.7);
}
.bw-entrance-vignette {
	position: absolute; inset: 0;
	background: radial-gradient(ellipse at center bottom, rgba(212,146,42,0.08) 0%, rgba(15,17,12,0.7) 70%);
}
.bw-entrance-content {
	position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
	text-align: center; padding: 0 1.5rem; animation: bwFadeIn 0.7s ease both;
}
.bw-door-wrap { position: relative; width: 120px; height: 180px; margin-bottom: 2.5rem; }
.bw-door-frame {
	position: absolute; inset: 0; border-radius: 60px 60px 0 0;
	border: 2px solid rgba(212,146,42,0.45); background: rgba(15,17,12,0.6);
}
.bw-door-panel {
	position: absolute; inset: 0; border-radius: 60px 60px 0 0;
	background: linear-gradient(135deg, #2a1f0e 0%, #1a130a 100%);
	border: 2px solid rgba(212,146,42,0.3);
	transform-origin: left center;
	transform: perspective(1200px) rotateY(0deg);
	transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
	backface-visibility: hidden;
}
.bw-door-panel.open { transform: perspective(1200px) rotateY(-82deg); }
.bw-door-knob {
	position: absolute; width: 10px; height: 10px; border-radius: 50%;
	background: var(--bw-accent); right: 18px; top: 50%; transform: translateY(-50%);
}
.bw-door-inset {
	position: absolute; top: 24px; left: 16px; right: 16px; bottom: 40px;
	border: 1px solid rgba(212,146,42,0.15); border-radius: 4px;
}
.bw-door-glow {
	position: absolute; inset: 0; border-radius: 60px 60px 0 0;
	background: rgba(212,146,42,0.18); filter: blur(8px);
	animation: bwFlicker 2.8s ease-in-out infinite;
}
.bw-hand-img {
	position: absolute; bottom: -10px; right: -50px; width: 90px; opacity: 0;
	transition: opacity 0.4s ease, transform 0.6s ease; transform: translateX(10px);
	pointer-events: none;
}
.bw-hand-img.show { opacity: 1; transform: translateX(0); }

.bw-eyebrow { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.6; margin-bottom: 1rem; }
.bw-h1 { font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1; margin: 0 0 0.5rem; }
.bw-tagline { opacity: 0.5; font-size: 0.9rem; font-style: italic; margin: 0 0 2.5rem; }

.bw-btn {
	display: inline-flex; align-items: center; gap: 0.75rem;
	padding: 0.75rem 2rem; border: 1px solid rgba(212,146,42,0.5);
	color: var(--bw-accent); background: rgba(212,146,42,0.05);
	letter-spacing: 0.18em; font-size: 0.8125rem; text-transform: uppercase;
	font-family: 'Work Sans', sans-serif; cursor: pointer;
	transition: all 0.3s ease;
}
.bw-btn:hover { background: rgba(212,146,42,0.12); }
.bw-btn:disabled { opacity: 0.4; cursor: default; }
.bw-btn .bw-arrow { transition: transform 0.2s ease; display: inline-block; }
.bw-btn:hover .bw-arrow { transform: translateX(4px); }

.bw-firefly {
	position: absolute; width: 3px; height: 3px; border-radius: 50%;
	background: var(--bw-accent); opacity: 0.3; filter: blur(1px);
	animation: bwFlicker 2.8s ease-in-out infinite;
}

@keyframes bwFadeIn { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: translateY(0);} }
@keyframes bwFlicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.82; } }
.bw-page-enter { animation: bwFadeIn 0.5s ease both; }

/* ── Intro ── */
.bw-intro { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 1.5rem; }
.bw-intro-inner { width: 100%; max-width: 720px; }
.bw-video-frame {
	position: relative; width: 100%; margin-bottom: 2rem; display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,0.04); border: 1px solid rgba(212,146,42,0.2); aspect-ratio: 16/9; overflow: hidden;
}
.bw-video-frame img, .bw-video-frame video, .bw-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bw-play-badge {
	position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.bw-play-circle {
	width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	border: 2px solid rgba(212,146,42,0.7); background: rgba(15,17,12,0.7); font-size: 22px;
}
.bw-intro-quote { text-align: center; font-size: 1.1rem; font-style: italic; opacity: 0.7; margin: 0 0 0.5rem; }

/* ── Hallway ── */
.bw-hallway { padding: 5.5rem 1.5rem 3rem; }
.bw-hallway-inner { max-width: 900px; margin: 0 auto; }
.bw-hallway-eyebrow { text-align: center; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.4; margin-bottom: 0.5rem; }
.bw-hallway-title { text-align: center; font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 0 0 2.5rem; }
.bw-hallway-divider { margin: 0 auto 2.5rem; height: 1px; width: 96px; opacity: 0.2; background: linear-gradient(to right, transparent, var(--bw-accent), transparent); }
.bw-room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .bw-room-grid { grid-template-columns: repeat(4, 1fr); } }
.bw-room-door {
	border: 1px solid rgba(212,146,42,0.25); background: rgba(255,255,255,0.03);
	position: relative; cursor: pointer; padding: 1.25rem; text-align: left;
	transition: border-color 0.25s, transform 0.25s; color: var(--bw-text); font-family: inherit;
	animation: bwFadeIn 0.5s ease both;
}
.bw-room-door:hover { border-color: rgba(212,146,42,0.65); transform: translateY(-3px); }
.bw-room-door::before {
	content: ''; position: absolute; top: 50%; right: 16px; width: 8px; height: 8px;
	border-radius: 50%; background: rgba(212,146,42,0.5); transform: translateY(-50%);
}
.bw-room-icon { font-size: 1.5rem; display: block; margin-bottom: 0.75rem; }
.bw-room-label { font-size: 0.9rem; margin: 0 0 0.25rem; }
.bw-room-sub { font-size: 0.75rem; opacity: 0.4; margin: 0; }
.bw-hallway-note {
	margin-top: 3rem; padding: 1.25rem; text-align: center;
	border: 1px solid rgba(212,146,42,0.12); background: rgba(212,146,42,0.03);
}
.bw-hallway-note p { font-size: 0.9rem; opacity: 0.4; font-style: italic; margin: 0; }
.bw-hidden-trigger { display: block; margin: 1.5rem auto 0; opacity: 0.08; font-size: 0.7rem; background: none; border: none; color: var(--bw-text); cursor: pointer; }
.bw-hidden-trigger:hover { opacity: 0.3; }

/* ── Room shell ── */
.bw-room { padding: 5.5rem 1.5rem 4rem; }
.bw-room-inner { max-width: 720px; margin: 0 auto; }
.bw-back-btn {
	background: none; border: none; color: var(--bw-text); cursor: pointer; font-family: inherit;
	font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.4;
	margin-bottom: 2rem; display: inline-flex; align-items: center; gap: 0.5rem;
}
.bw-back-btn:hover { opacity: 0.7; }
.bw-room-head { padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(212,146,42,0.18); }
.bw-room-head .bw-eyebrow { margin-bottom: 0.5rem; }
.bw-room-head h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0; }

.bw-story-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .bw-story-grid { grid-template-columns: 3fr 2fr; } }
.bw-story-grid p { line-height: 1.7; opacity: 0.8; margin: 0 0 1.25rem; }
.bw-quote { border-left: 2px solid rgba(212,146,42,0.5); padding: 1rem 1.5rem; margin: 1.5rem 0; font-size: 1.1rem; font-style: italic; opacity: 0.75; }
.bw-story-img-wrap img { width: 100%; opacity: 0.7; display: block; }
.bw-story-img-caption { text-align: center; font-size: 0.75rem; opacity: 0.3; letter-spacing: 0.1em; margin-top: 0.5rem; }

/* Music room */
.bw-song { border: 1px solid rgba(212,146,42,0.15); background: rgba(255,255,255,0.02); cursor: pointer; margin-bottom: 0.75rem; }
.bw-song-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; }
.bw-song-play { width: 36px; height: 36px; border: 1px solid rgba(212,146,42,0.3); border-radius: 50%; color: var(--bw-accent); font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bw-song-main { flex: 1; min-width: 0; }
.bw-song-main p:first-child { margin: 0; font-family: 'Fraunces', serif; }
.bw-song-meta { font-size: 0.75rem; opacity: 0.4; margin: 0; }
.bw-song-dur, .bw-song-caret { font-size: 0.75rem; opacity: 0.3; flex-shrink: 0; }
.bw-song-detail { padding: 0 1rem 1.25rem; border-top: 1px solid rgba(212,146,42,0.08); }
.bw-song-detail p { margin: 0; }
.bw-song-desc { font-size: 0.9rem; opacity: 0.6; margin-top: 1rem !important; margin-bottom: 0.75rem !important; line-height: 1.6; }
.bw-song-story { font-size: 0.9rem; opacity: 0.4; font-style: italic; margin-bottom: 1.25rem !important; line-height: 1.6; }
.bw-song-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.bw-pill { text-decoration: none; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; padding: 0.5rem 1rem; display: inline-block; }
.bw-pill-accent { background: rgba(212,146,42,0.12); color: var(--bw-accent); border: 1px solid rgba(212,146,42,0.25); }
.bw-pill-ghost { border: 1px solid rgba(242,237,228,0.15); color: var(--bw-text); opacity: 0.7; }
.bw-upcoming-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.5; margin: 2rem 0 1.25rem; }
.bw-upcoming-item { padding: 1rem; border: 1px dashed rgba(212,146,42,0.25); background: rgba(212,146,42,0.03); margin-bottom: 0.75rem; }
.bw-upcoming-item p:first-child { margin: 0; font-family: 'Fraunces', serif; }
.bw-upcoming-item p:last-child { font-size: 0.75rem; opacity: 0.4; margin-top: 0.25rem; }

/* Records */
.bw-album-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .bw-album-grid { grid-template-columns: 1fr 1fr; } }
.bw-album-card { cursor: pointer; }
.bw-album-art-wrap { position: relative; margin-bottom: 1rem; overflow: hidden; background: #1a1a14; aspect-ratio: 1/1; }
.bw-album-art-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: transform 0.5s; }
.bw-album-card:hover .bw-album-art-wrap img { transform: scale(1.05); }
.bw-vinyl { position: absolute; width: 30%; height: 30%; border-radius: 50%; border: 1px solid rgba(212,146,42,0.3); bottom: 10%; right: 10%; background: rgba(15,17,12,0.6); }
.bw-album-card p.bw-serif { font-size: 1.1rem; margin: 0; }
.bw-album-year { font-size: 0.75rem; opacity: 0.4; margin-bottom: 0.75rem !important; }
.bw-album-detail { margin-top: 0.75rem; }
.bw-album-detail p.bw-story-text { font-size: 0.9rem; opacity: 0.6; line-height: 1.6; margin-bottom: 1rem; }
.bw-album-tracklabel { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.4; margin-bottom: 0.5rem; }
.bw-album-track { font-size: 0.9rem; opacity: 0.6; margin: 0.15rem 0; }

/* Press */
.bw-press-block { margin-bottom: 2.5rem; }
.bw-press-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.4; margin-bottom: 0.75rem; }
.bw-press-block p.bw-body { line-height: 1.7; opacity: 0.75; }
.bw-download-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; font-size: 0.9rem; opacity: 0.6; text-decoration: none; color: var(--bw-text); border: 1px solid rgba(212,146,42,0.15); margin-bottom: 0.5rem; }
.bw-download-row:hover { opacity: 1; }

/* Connect */
.bw-connect-link { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem; text-decoration: none; color: var(--bw-text); border: 1px solid rgba(212,146,42,0.15); background: rgba(255,255,255,0.02); margin-bottom: 0.75rem; }
.bw-connect-icon { font-size: 1.25rem; width: 32px; text-align: center; opacity: 0.6; }
.bw-connect-link:hover .bw-connect-icon { opacity: 1; }
.bw-connect-body p:first-child { margin: 0; font-family: 'Fraunces', serif; }
.bw-connect-body p:last-child { font-size: 0.75rem; opacity: 0.4; margin: 0; }

/* Beyond */
.bw-beyond-item { padding: 1.25rem; border: 1px solid rgba(212,146,42,0.15); background: rgba(255,255,255,0.02); margin-bottom: 1rem; }
.bw-beyond-item p.bw-serif { margin: 0; }
.bw-beyond-date { font-size: 0.75rem; opacity: 0.3; margin: 0.25rem 0 0.5rem !important; }
.bw-beyond-note { font-size: 0.9rem; opacity: 0.55; }

/* Forms */
.bw-field {
	width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(242,237,228,0.2);
	padding: 0.7rem 0; font-family: 'Work Sans', sans-serif; font-size: 0.9375rem; color: var(--bw-text);
	outline: none; transition: border-color 0.2s; margin-bottom: 1.25rem;
}
.bw-field::placeholder { color: rgba(242,237,228,0.35); }
.bw-field:focus { border-bottom-color: var(--bw-accent); }
textarea.bw-field { resize: none; min-height: 90px; }
.bw-form-submit {
	font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; padding: 0.75rem 1.75rem;
	background: rgba(212,146,42,0.12); color: var(--bw-accent); border: 1px solid rgba(212,146,42,0.4);
	cursor: pointer; opacity: 0.85; transition: opacity 0.2s;
}
.bw-form-submit:hover { opacity: 1; }
.bw-form-note { font-size: 0.75rem; opacity: 0.25; margin-top: 0.75rem; }
.bw-form-success { text-align: center; padding: 3rem 0; }
.bw-form-success p.bw-serif { font-size: 1.8rem; font-style: italic; margin-bottom: 0.75rem; }
.bw-form-success p.bw-body { font-size: 0.9rem; opacity: 0.5; max-width: 320px; margin: 0 auto; line-height: 1.6; }
.bw-form-error { color: #e07a7a; font-size: 0.85rem; margin-top: -0.5rem; margin-bottom: 1rem; }
.bw-tip-box { border: 1px dashed rgba(242,237,228,0.1); padding: 1rem; font-size: 0.85rem; opacity: 0.4; margin-bottom: 1.25rem; }
.bw-tip-box a { color: inherit; margin-top: 0.5rem; display: inline-block; }
.bw-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hidden door reveal */
.bw-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.bw-modal { background: var(--bw-bg); border: 1px solid rgba(212,146,42,0.35); max-width: 420px; width: 100%; padding: 2rem; text-align: center; }
.bw-modal h3 { font-family: 'Fraunces', serif; font-weight: 300; margin-top: 0; }
.bw-modal button.bw-back-btn { margin-top: 1.5rem; margin-bottom: 0; }

@media (max-width: 480px) {
	.bw-nav-links button:nth-child(2) { display: none; }
	.bw-room-grid { grid-template-columns: repeat(2, 1fr); }
}
