:root {
  /* Dark Walnut & Brushed Copper brand tokens (aligned with bonsai-reel-automator) */
  --bg-deep: #120b08;
  --bg-top: #261811;
  --surface: #1b110c;
  --surface-elevated: #241710;
  --surface-hover: #2d1d14;
  --studio-black: #0c0806;
  --accent: #d4956a;
  --accent-warm: #e39f6f;
  --highlight: #f2c59e;
  --text-primary: #faf6f0;
  --text-muted: #cbbbae;
  --text-soft: #9e8c7f;
  --border-subtle: rgba(212, 149, 106, 0.16);
  --border-strong: rgba(242, 197, 158, 0.34);

  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 24px 70px rgba(212, 149, 106, 0.16);
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 85% 50% at 75% -10%, rgba(212, 149, 106, 0.15), transparent 65%),
    radial-gradient(ellipse 65% 45% at 10% 18%, rgba(84, 48, 28, 0.35), transparent 60%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-deep) 420px, var(--bg-deep) 100%);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.has-player {
  padding-bottom: 104px;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--highlight);
  color: var(--bg-deep);
  font-weight: 700;
  padding: 10px 16px;
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  border-radius: var(--radius-sm);
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 11, 8, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.38rem;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 3px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.nav-desktop a:hover {
  color: var(--highlight);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-nav {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 12px 0 18px;
  gap: 4px;
}

.mobile-nav-inner a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid rgba(212, 149, 106, 0.08);
}

.mobile-nav-inner a.is-active {
  color: var(--highlight);
}

.mobile-nav-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
}

.mobile-nav-inner a:last-child {
  border-bottom: 0;
}

.mobile-view-bar {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.86rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--highlight) 0%, var(--accent) 100%);
  color: #160d09;
  box-shadow: 0 8px 24px rgba(212, 149, 106, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(242, 197, 158, 0.34);
}

.btn-secondary {
  background: rgba(212, 149, 106, 0.12);
  color: var(--highlight);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(212, 149, 106, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
}

/* Hero */
.hero {
  padding: 54px 0 64px;
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-areas:
    'intro visual'
    'meta visual';
  column-gap: 48px;
  row-gap: 26px;
  align-items: start;
}

.hero-intro {
  grid-area: intro;
  min-width: 0;
  align-self: end;
}

.hero-meta {
  grid-area: meta;
  min-width: 0;
  align-self: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(212, 149, 106, 0.1);
  color: var(--highlight);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.title-accent {
  color: var(--accent);
}

.hero-tagline {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.22rem, 2.2vw, 1.5rem);
  color: var(--highlight);
}

.hero-description {
  margin: 0 0 24px;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.platform-bar {
  margin-bottom: 28px;
}

.platform-bar-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  font-weight: 700;
}

.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.16s ease;
}

.platform-pill:hover {
  border-color: var(--border-strong);
  background: var(--surface-elevated);
  transform: translateY(-1px);
  color: var(--highlight);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column-reverse;
}

.stat-item dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  font-weight: 600;
}

.stat-item dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-visual {
  grid-area: visual;
  display: flex;
  justify-content: center;
  min-width: 0;
  width: 100%;
  align-self: center;
}

.showcase-stack {
  position: relative;
  width: min(460px, 100%);
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cover-glow {
  position: absolute;
  inset: -14px;
  border-radius: 30px;
  background: radial-gradient(circle at 30% 25%, rgba(242, 197, 158, 0.22), transparent 65%);
  filter: blur(26px);
  z-index: 0;
}

.hero-tree-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--studio-black);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transition: transform 0.18s ease, border-color 0.2s ease;
}

.hero-tree-card:hover {
  transform: translateY(-2px);
  border-color: var(--highlight);
}

.hero-tree-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--studio-black);
  overflow: hidden;
}

.hero-tree-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tree-span-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(14, 9, 7, 0.86);
  backdrop-filter: blur(8px);
  color: var(--highlight);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-tree-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(24, 15, 11, 0.96) 0%, #160e0a 100%);
  border-top: 1px solid var(--border-subtle);
}

.hero-tree-footer > div {
  min-width: 0;
}

.hero-tree-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-tree-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-tree-meta {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.hero-tree-cta {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--highlight);
  white-space: nowrap;
}

.cover-play-badge {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(24, 15, 11, 0.94);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.48);
  transition: transform 0.16s ease, border-color 0.18s ease;
}

.cover-play-badge:hover {
  transform: translateY(-2px);
  border-color: var(--highlight);
}

.showcase-podcast-art {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.cover-play-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--highlight), var(--accent));
  color: #160d09;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.cover-play-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.cover-play-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.cover-play-ep {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Standalone Desktop Studio Diorama Showcase */
.mobile-studio-box {
  display: none;
}

#trees,
#podcast,
#about,
#connect {
  scroll-margin-top: 80px;
}

.studio-showcase {
  padding: 24px 0 44px;
  border-top: 1px solid rgba(212, 149, 106, 0.08);
  scroll-margin-top: 74px;
}

.studio-showcase-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 10px;
}

.studio-showcase-header .section-subtitle {
  margin: 10px auto 0;
}

/* Around the Studio Directory */
.studio-map-box {
  grid-area: directory;
  min-width: 0;
  margin-top: 18px;
  padding: 20px 22px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 92% 0%, rgba(212, 149, 106, 0.08), transparent 48%),
    rgba(27, 17, 12, 0.72);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.studio-map-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.studio-map-kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.studio-map-note {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.studio-diorama-stage {
  position: relative;
  width: min(820px, 64vh, 100%);
  margin: 0 auto 14px;
  aspect-ratio: 976 / 824;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.studio-showcase .studio-legend-bar {
  width: min(920px, 100%);
  margin: 0 auto;
}

.diorama-ground-shadow {
  fill: #050201;
  opacity: 0.52;
  pointer-events: none;
}

.diorama-base-img {
  transition: filter 0.3s ease;
  pointer-events: none;
}

.studio-diorama-stage[data-active-station] .diorama-base-img {
  filter: brightness(0.84) contrast(1.02);
}

.diorama-svg {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.diorama-hotspot a {
  cursor: pointer;
  outline: none;
}

.hotspot-hit {
  fill: transparent;
  stroke: none;
  pointer-events: all;
}

.hotspot-halo {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.92);
  transition: opacity 0.3s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hotspot-halo-shape {
  fill: rgba(242, 197, 158, 0.36);
  stroke: rgba(255, 224, 188, 0.44);
  stroke-width: 14;
  stroke-linejoin: round;
}

.hotspot-lift {
  opacity: 0;
  transform: scale(1);
  transform-origin: 0 0;
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  will-change: transform, opacity;
}

.hotspot-lit-img {
  filter: brightness(1.16) saturate(1.1) drop-shadow(0 0 18px rgba(242, 197, 158, 0.55));
  pointer-events: none;
}

.beacon-ring {
  fill: rgba(255, 250, 244, 0.14);
  stroke: rgba(255, 248, 240, 0.78);
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
  animation: beacon-pulse 2.8s ease-in-out infinite;
}

.beacon-dot {
  fill: #ffffff;
  stroke: rgba(18, 11, 8, 0.72);
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 6px rgba(255, 250, 244, 0.92));
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes beacon-pulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.24);
    opacity: 0.28;
  }
}

.diorama-hotspot:hover .hotspot-halo,
.diorama-hotspot:focus-within .hotspot-halo,
.diorama-hotspot.is-active .hotspot-halo {
  opacity: 0.96;
  transform: scale(1.06);
}

.diorama-hotspot:hover .hotspot-lift,
.diorama-hotspot:focus-within .hotspot-lift,
.diorama-hotspot.is-active .hotspot-lift {
  opacity: 1;
  transform: scale(var(--hover-scale, 1.065));
}

.diorama-hotspot:hover .beacon-ring,
.diorama-hotspot:focus-within .beacon-ring,
.diorama-hotspot.is-active .beacon-ring {
  animation: none;
  transform: scale(1.3);
  opacity: 0.95;
}

.diorama-hotspot:hover .beacon-dot,
.diorama-hotspot:focus-within .beacon-dot,
.diorama-hotspot.is-active .beacon-dot {
  transform: scale(1.18);
}

.diorama-tooltip {
  position: absolute;
  left: var(--tip-x, 50%);
  top: var(--tip-y, 50%);
  transform: translate(-50%, -100%);
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(18, 11, 8, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}

.tooltip-kicker {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.tooltip-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--text-primary);
}

.tooltip-meta {
  font-size: 0.74rem;
  color: var(--highlight);
}

.studio-stations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.studio-station {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  text-decoration: none;
  min-width: 0;
  transition: transform 0.16s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.2s ease;
}

.studio-station:hover,
.studio-station.is-highlighted {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-elevated);
  box-shadow: 0 8px 24px rgba(212, 149, 106, 0.18);
}

.station-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(212, 149, 106, 0.12);
  border: 1px solid rgba(212, 149, 106, 0.24);
  color: var(--highlight);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.station-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.station-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.25;
}

.station-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-top: 2px;
}

.station-meta {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-arrow {
  color: var(--highlight);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.studio-station:hover .station-arrow {
  transform: translateX(3px);
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-tinted {
  background: linear-gradient(180deg, rgba(38, 24, 17, 0.45) 0%, rgba(18, 11, 8, 0.25) 100%);
  border-top: 1px solid rgba(212, 149, 106, 0.09);
  border-bottom: 1px solid rgba(212, 149, 106, 0.09);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-kicker {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
}

.section-subtitle {
  margin: 10px 0 0;
  color: var(--text-muted);
  max-width: 62ch;
}

.text-link {
  color: var(--highlight);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
}

/* Studio Tree Progression Gallery */
.tree-filters {
  margin-bottom: 24px;
}

.trees-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.trees-carousel-controls {
  display: none;
}

.tree-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tree-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-elevated);
}

.tree-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--studio-black);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}

.tree-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.tree-card:hover .tree-card-media img {
  transform: scale(1.025);
}

.tree-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.sample-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(14, 9, 7, 0.84);
  border: 1px solid rgba(212, 149, 106, 0.28);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tree-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 14px;
  padding: 20px;
}

.tree-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tree-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.24rem;
  line-height: 1.22;
}

.tree-latin {
  margin: 2px 0 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--accent);
}

.tree-card-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tree-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 149, 106, 0.1);
}

.tree-stage-count {
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 600;
}

.tree-card-tbd:hover {
  transform: none;
  border-color: var(--border-subtle);
  background: var(--surface);
}

.tree-card-tbd .tree-card-media {
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, rgba(212, 149, 106, 0.08), rgba(14, 9, 7, 0.96) 72%);
}

.tree-tbd-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(212, 149, 106, 0.24);
  text-align: center;
}

.tree-tbd-mark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(212, 149, 106, 0.58);
}

.tree-tbd-sub {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.tree-card-tbd .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Tree Progression Modal */
.tree-dialog {
  width: min(980px, calc(100% - 28px));
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #170e0a;
  color: var(--text-primary);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.8);
}

.tree-dialog::backdrop {
  background: rgba(6, 3, 2, 0.82);
  backdrop-filter: blur(8px);
}

.tree-modal {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.tree-modal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.tree-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tree-modal-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mode-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--studio-black);
}

.mode-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.mode-btn.is-active {
  background: rgba(212, 149, 106, 0.22);
  color: var(--highlight);
}

.tree-modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.studio-stage-viewport {
  position: relative;
  width: 100%;
  height: min(62vh, 580px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--studio-black);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-stage-viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.22s ease;
}

.studio-stage-viewport img:hover {
  transform: scale(1.012);
}

.stage-expand-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(14, 9, 7, 0.84);
  backdrop-filter: blur(8px);
  color: var(--highlight);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.stage-expand-btn:hover {
  background: rgba(36, 23, 16, 0.96);
  border-color: var(--highlight);
  transform: translateY(-1px);
}

.stage-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(14, 9, 7, 0.82);
  color: var(--highlight);
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.stage-nav-btn:hover:not(:disabled) {
  background: rgba(36, 23, 16, 0.96);
  transform: translateY(-50%) scale(1.05);
}

.stage-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.stage-nav-prev {
  left: 14px;
}

.stage-nav-next {
  right: 14px;
}

.stage-overlay-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(12, 8, 6, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  max-width: calc(100% - 28px);
}

.stage-overlay-year {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.stage-overlay-title {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.stage-overlay-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stage-overlay-note::before {
  content: '—';
  margin-right: 8px;
  color: var(--text-soft);
}

.timeline-scrubber {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 4px;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.stage-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.stage-pill.is-active {
  background: rgba(212, 149, 106, 0.2);
  border-color: var(--highlight);
  color: var(--highlight);
}

.tree-detail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 3px;
}

/* Before / After Compare */
.compare-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.compare-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.compare-select-wrap span {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.compare-select-wrap select {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-primary);
}

.compare-stage {
  --split: 50%;
  position: relative;
  width: 100%;
  height: min(62vh, 580px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--studio-black);
  overflow: hidden;
  user-select: none;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.compare-img-before {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: var(--highlight);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  transform: translateX(-1px);
  z-index: 3;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--highlight), var(--accent));
  color: #160d09;
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
}

.compare-badge {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(12, 8, 6, 0.86);
  border: 1px solid var(--border-strong);
  color: var(--highlight);
  font-size: 0.76rem;
  font-weight: 700;
  pointer-events: none;
}

.compare-badge-before {
  left: 14px;
}

.compare-badge-after {
  right: 14px;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  z-index: 4;
}

.compare-captions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.compare-caption-card {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
}

.compare-caption-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Full-Screen Photo Lightbox */
.photo-lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(7, 4, 3, 0.95);
  color: var(--text-primary);
  overflow: hidden;
}

.photo-lightbox[open] {
  display: flex;
}

.photo-lightbox::backdrop {
  background: rgba(4, 2, 1, 0.92);
  backdrop-filter: blur(12px);
}

.lightbox-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 9, 7, 0.88);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  z-index: 5;
}

.lightbox-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lightbox-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lightbox-zoom-btn[aria-pressed='true'] {
  background: rgba(212, 149, 106, 0.22);
  border-color: var(--highlight);
  color: var(--highlight);
}

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.lightbox-canvas {
  width: 100%;
  height: 100%;
  padding: 16px 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-canvas img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform 0.22s ease;
  will-change: transform;
}

.photo-lightbox.is-zoomed .lightbox-canvas {
  touch-action: none;
}

.photo-lightbox.is-zoomed .lightbox-canvas img {
  cursor: grab;
}

.photo-lightbox.is-dragging .lightbox-canvas img {
  cursor: grabbing;
  transition: none;
}

.lightbox-nav-btn {
  width: 46px;
  height: 46px;
  z-index: 6;
}

.lightbox-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 12px 22px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 9, 7, 0.88);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  z-index: 5;
}

.lightbox-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.lightbox-hint {
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-left: auto;
}

/* Latest Spotlight */
.spotlight-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 90% 10%, rgba(212, 149, 106, 0.12), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow-card);
  align-items: center;
}

.spotlight-card > div {
  min-width: 0;
}

.spotlight-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.ep-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.ep-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(212, 149, 106, 0.16);
  border: 1px solid var(--border-strong);
  color: var(--highlight);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guest-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8rem;
}

.spotlight-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.22;
}

.spotlight-summary {
  margin: 0 0 22px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Shared Filter Chips & Empty State (used by Trees Gallery) */
.archive-header {
  align-items: center;
}

.archive-count {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-chip.is-active {
  background: rgba(212, 149, 106, 0.2);
  border-color: var(--highlight);
  color: var(--highlight);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px 24px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.about-copy,
.pillars-stack {
  min-width: 0;
}

.about-copy p {
  color: var(--text-muted);
}

.host-chip {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
}

.host-chip img {
  width: 48px;
  height: 48px;
  border-radius: 0;
  flex-shrink: 0;
}

.host-chip strong {
  display: block;
  font-family: var(--font-display);
}

.host-chip span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pillars-stack {
  display: grid;
  gap: 14px;
}

.pillar-card {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
}

.pillar-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--highlight);
}

.pillar-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Connect CTA */
.connect-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 85% 20%, rgba(242, 197, 158, 0.14), transparent 55%),
    linear-gradient(135deg, #21140e 0%, #150d09 100%);
  box-shadow: var(--shadow-card);
}

.connect-copy {
  max-width: 58ch;
  min-width: 0;
}

.connect-copy p:last-child {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 34px 0 42px;
  background: #0d0705;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 0;
  flex-shrink: 0;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.footer-brand span {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--highlight);
}

.footer-meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-soft);
}

/* Sticky Bottom Audio Player */
.player-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(20, 12, 9, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.55);
  padding: 12px 0;
}

.player-inner {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(240px, 1.5fr) auto;
  align-items: center;
  gap: 20px;
}

.player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-art {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.player-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.player-title {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.play-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--highlight), var(--accent));
  color: #160d09;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--highlight);
}

.player-scrub {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-scrub input[type='range'] {
  flex: 1;
  accent-color: var(--accent);
  cursor: pointer;
  height: 4px;
}

.player-time {
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
  min-width: 42px;
  text-align: center;
}

.player-extras {
  display: flex;
  align-items: center;
  gap: 8px;
}

.speed-btn {
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--highlight);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* Show Notes Dialog */
.notes-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: 86vh;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #1a100c;
  color: var(--text-primary);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

.notes-dialog::backdrop {
  background: rgba(8, 4, 3, 0.76);
  backdrop-filter: blur(6px);
}

.notes-modal {
  display: flex;
  flex-direction: column;
  max-height: 86vh;
}

.notes-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 14px;
}

.notes-kicker {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.notes-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.24;
}

.notes-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.notes-body {
  padding: 20px 24px 28px;
  overflow-y: auto;
  color: var(--text-muted);
}

.notes-body p {
  margin: 0 0 14px;
}

.notes-body p:last-child {
  margin-bottom: 0;
}

.notes-body a {
  color: var(--highlight);
  word-break: break-word;
}

/* Toast */
.toast {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 120;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #23150f;
  color: var(--highlight);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

body.has-player .toast {
  bottom: 110px;
}

.skeleton-block {
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  color: var(--text-soft);
}

@media (max-width: 960px) {
  .hero {
    padding: 36px 0 52px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'intro'
      'visual'
      'meta';
    gap: 28px;
  }

  .hero-intro,
  .hero-meta,
  .hero-visual {
    align-self: stretch;
  }

  .studio-showcase .studio-station {
    padding: 11px 12px;
    gap: 10px;
  }

  .studio-showcase .station-icon {
    width: 36px;
    height: 36px;
  }

  .studio-showcase .station-title {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .showcase-stack {
    width: min(440px, 100%);
  }

  .studio-stations-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .trees-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spotlight-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .spotlight-art {
    width: 148px;
  }

  .player-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .player-extras {
    justify-content: flex-end;
  }

  body.has-player {
    padding-bottom: 168px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
    gap: 12px;
  }

  .nav-desktop,
  #header-listen-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-view-bar {
    display: block;
    position: sticky;
    top: 64px;
    z-index: 40;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(24, 15, 11, 0.92);
  }

  .mobile-view-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
  }

  .mobile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    background: rgba(212, 149, 106, 0.12);
    color: var(--highlight);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-view-crumb {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
  }

  body[data-active-view='home'] [data-studio-view]:not([data-studio-view='home']):not([data-studio-view='connect']),
  body[data-active-view='trees'] [data-studio-view]:not([data-studio-view='trees']),
  body[data-active-view='podcast'] [data-studio-view]:not([data-studio-view='podcast']),
  body[data-active-view='about'] [data-studio-view]:not([data-studio-view='about']),
  body[data-active-view='connect'] [data-studio-view]:not([data-studio-view='connect']) {
    display: none;
  }

  body[data-active-view='home'] #connect.section {
    padding: 4px 0 40px;
  }

  .hero {
    padding: 20px 0 32px;
  }

  .studio-showcase {
    display: none !important;
  }

  .mobile-studio-box {
    display: block;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'intro'
      'directory'
      'visual'
      'meta';
    gap: 22px;
  }

  .hero-cta-row,
  .hero-stats {
    display: none;
  }

  .showcase-stack {
    width: 100%;
    margin-inline: auto;
  }

  .platform-bar {
    margin-bottom: 0;
  }

  .studio-map-box {
    margin-top: 0;
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .studio-map-header {
    margin-bottom: 12px;
  }

  .studio-map-note {
    display: none;
  }

  .studio-diorama-stage {
    margin-bottom: 14px;
  }

  .diorama-tooltip {
    display: none !important;
  }

  .studio-stations-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .studio-station {
    padding: 13px 14px;
  }

  .section {
    padding: 26px 0 46px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
  }

  .archive-header {
    align-items: flex-start;
  }

  .connect-card {
    padding: 24px 20px;
    gap: 20px;
  }

  .compare-controls,
  .compare-captions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 32px));
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .brand-sub {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .header-actions {
    gap: 8px;
  }

  #header-listen-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .mobile-nav-inner a {
    padding: 13px 4px;
    font-size: 0.98rem;
  }

  .hero {
    padding: 20px 0 32px;
  }

  .hero-grid {
    gap: 20px;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    margin-bottom: 12px;
    max-width: 100%;
    line-height: 1.35;
  }

  .hero-title {
    font-size: clamp(2.1rem, 9.5vw, 2.75rem);
    margin-bottom: 10px;
  }

  .hero-tagline {
    font-size: 1.12rem;
    margin-bottom: 10px;
  }

  .hero-description {
    font-size: 0.94rem;
    line-height: 1.58;
    margin-bottom: 0;
  }

  .hero-cta-row {
    flex-direction: column;
    gap: 10px;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .showcase-stack {
    width: 100%;
    gap: 12px;
  }

  .cover-glow {
    inset: -6px;
  }

  .hero-tree-card {
    border-radius: var(--radius-md);
  }

  .hero-tree-footer {
    padding: 14px 16px;
    gap: 10px;
  }

  .hero-tree-name {
    font-size: 1.06rem;
  }

  .hero-tree-meta {
    font-size: 0.8rem;
  }

  .cover-play-badge {
    padding: 10px 12px;
    gap: 10px;
  }

  .showcase-podcast-art {
    width: 44px;
    height: 44px;
  }

  .cover-play-icon {
    width: 38px;
    height: 38px;
  }

  .cover-play-ep {
    font-size: 0.86rem;
  }

  .platform-bar {
    margin-bottom: 0;
  }

  .platform-pills {
    gap: 8px;
  }

  .platform-pill {
    padding: 8px 12px;
    font-size: 0.82rem;
    gap: 7px;
  }

  .stat-item dt {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    line-height: 1.3;
  }

  .stat-item dd {
    font-size: 1.2rem;
  }

  .trees-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .trees-grid::-webkit-scrollbar {
    display: none;
  }

  .trees-grid .tree-card {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .trees-grid .empty-state {
    flex: 0 0 100%;
  }

  .tree-card-media {
    aspect-ratio: 4 / 4.4;
  }

  .trees-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--highlight);
    font-size: 1.4rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.16s ease, opacity 0.16s ease;
  }

  .carousel-arrow:hover:not(:disabled) {
    background: var(--surface-elevated);
  }

  .carousel-arrow:disabled {
    opacity: 0.32;
    cursor: default;
  }

  .carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(212, 149, 106, 0.28);
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
  }

  .carousel-dot.is-active {
    width: 24px;
    background: var(--highlight);
  }

  .carousel-counter {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-soft);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .tree-card-body {
    padding: 16px;
  }

  .tree-card-footer {
    flex-wrap: wrap;
  }

  .spotlight-card {
    padding: 20px 18px;
    gap: 18px;
    border-radius: var(--radius-md);
  }

  .spotlight-art {
    width: 112px;
  }

  .card-actions {
    gap: 8px;
  }

  .card-actions .btn {
    flex: 1 1 auto;
  }

  .host-chip {
    display: flex;
    width: 100%;
    padding: 12px 14px;
  }

  .pillar-card {
    padding: 18px;
  }

  .connect-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .connect-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-links {
    gap: 12px 18px;
  }

  .player-dock {
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .player-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'track extras'
      'controls controls';
    gap: 8px 10px;
  }

  .player-track {
    grid-area: track;
  }

  .player-extras {
    grid-area: extras;
  }

  .player-controls-wrap {
    grid-area: controls;
  }

  .player-art {
    width: 40px;
    height: 40px;
  }

  .player-ext-link {
    display: none;
  }

  body.has-player {
    padding-bottom: 136px;
  }

  .tree-dialog,
  .notes-dialog {
    width: calc(100% - 16px);
    max-height: 92dvh;
    border-radius: var(--radius-md);
  }

  .tree-modal,
  .notes-modal {
    max-height: 92dvh;
  }

  .tree-modal-header,
  .tree-modal-body,
  .notes-modal-header,
  .notes-modal-actions,
  .notes-body {
    padding-inline: 16px;
  }

  .studio-stage-viewport,
  .compare-stage {
    height: min(50vh, 380px);
  }

  .stage-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }

  .stage-nav-prev {
    left: 8px;
  }

  .stage-nav-next {
    right: 8px;
  }

  .stage-pill {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .stage-expand-btn {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .lightbox-topbar,
  .lightbox-footer {
    padding: 10px 14px;
  }

  .lightbox-title {
    font-size: 0.94rem;
  }

  .lightbox-canvas {
    padding: 10px 12px;
  }

  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
  }

  .lightbox-hint {
    margin-left: 0;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-cta-extra {
    display: none;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .brand-sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
