/* ==========================================================================
   POOT FROST PRODUCTIONS — V2 ORGANIC MENDOCINO SUNSET COAST & STUDIO LAB
   Zero boxy AI grids! Flowing coastal bluffs, cypress silhouettes, C-walking
   Poot & Gulch, and clean Music / Projects view tabs.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Press+Start+2P&family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
  --ocean-night: #060b14;
  --cove-deep: #0b1626;
  --moss: #4b5320;
  --phosphor: #9be17b;
  --gold: #fae06b;
  --brass: #c8b273;
  --sunset-amber: #f59e0b;
  --rose: #f43f5e;
  --cream: #f5efe0;
  --muted: #b5c3be;
  --font-pixel: 'Press Start 2P', monospace;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ocean-night);
  color: var(--cream);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--ocean-night);
  line-height: 1.65;
  overflow-x: hidden;
}

img, canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: #ffffff;
}

/* Floating Mist Header — Zero Hard Box */
.studio-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  padding: 1.1rem 4vw 2.4rem;
  background: linear-gradient(180deg, rgba(6, 11, 20, 0.9) 0%, rgba(6, 11, 20, 0.45) 60%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.studio-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-pixel);
  font-size: 0.76rem;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000, 0 0 12px rgba(0, 0, 0, 0.9);
}

.studio-wordmark img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  filter: drop-shadow(0 3px 6px #000);
}

.header-tabs {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  text-shadow: 0 2px 6px #000;
}

.tab-trigger {
  background: none;
  border: none;
  font-family: var(--font-pixel);
  font-size: 0.74rem;
  color: var(--cream);
  cursor: pointer;
  padding: 0.45rem 0.65rem;
  text-shadow: 2px 2px 0 #000;
  position: relative;
  transition: color 0.16s ease, transform 0.16s ease;
}
.tab-trigger:hover {
  color: var(--gold);
  transform: translateY(-2px);
}
.tab-trigger.active {
  color: var(--gold);
}
.tab-trigger.active::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -4px;
  height: 3px;
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
}

/* ==========================================================================
   COASTAL BLUFF SUNSET HERO (ORGANIC MULTI-LAYER PANORAMA)
   ========================================================================== */
.sunset-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6.5rem 5vw 3.5rem;
  overflow: hidden;
}

.sunset-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 11, 20, 0.32) 0%, rgba(6, 11, 20, 0.18) 45%, rgba(6, 11, 20, 0.88) 88%, var(--ocean-night) 100%),
    url('assets/scenes/bg_pacific_homestead.png') center center / cover no-repeat;
  z-index: 1;
}

.cypress-wing-left,
.cypress-wing-right {
  position: absolute;
  top: -30px;
  width: clamp(160px, 24vw, 340px);
  z-index: 3;
  pointer-events: none;
  filter: brightness(0.75) drop-shadow(0 12px 22px rgba(0, 0, 0, 0.85));
}
.cypress-wing-left {
  left: -40px;
}
.cypress-wing-right {
  right: -40px;
  transform: scaleX(-1);
}

.hero-inner {
  position: relative;
  z-index: 10;
  max-width: 860px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--phosphor);
  text-shadow: 0 2px 6px #000;
  margin-bottom: 0.65rem;
}

.studio-hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.55rem, 3.6vw, 2.75rem);
  line-height: 1.32;
  color: var(--gold);
  text-shadow:
    0 4px 0 #33220b,
    0 7px 0 #000,
    0 0 28px rgba(250, 224, 107, 0.35);
  margin: 0 0 1rem;
}

.studio-hero-sub {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  max-width: 58ch;
  margin: 0 auto 1.6rem;
  color: var(--cream);
  text-shadow: 0 2px 10px #000, 0 0 18px #000;
}

/* Dancing Poot & Gulch Bluff Stage — Actors on Top, Grassy Ledge Strictly Underneath! */
.bluff-stage-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.75rem;
}

.bluff-dancers {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.15rem;
}

.bluff-ledge-under {
  position: relative;
  z-index: 2;
  width: min(460px, 90vw);
  height: auto;
  margin-top: -22px;
  filter: drop-shadow(0 14px 18px #000);
  pointer-events: none;
}

.bluff-dancers .dancer {
  position: relative;
  z-index: 3;
  width: clamp(104px, 13vw, 142px);
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.92));
  transition: transform 0.2s ease;
}
.bluff-dancers .dancer:hover {
  transform: scale(1.1) translateY(-5px);
}

/* Primary Ribbon Switcher Bar Between Music & Projects */
.view-switcher-ribbon {
  position: relative;
  z-index: 15;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin: -1.2rem auto 2rem;
}

.ribbon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-pixel);
  font-size: 0.76rem;
  padding: 0.95rem 1.65rem;
  color: var(--cream);
  background: linear-gradient(180deg, #334155 0%, #162032 100%);
  clip-path: polygon(12px 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0% 50%);
  border: none;
  cursor: pointer;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.85));
  transition: transform 0.16s ease, filter 0.16s ease;
}
.ribbon-btn:hover {
  transform: translateY(-3px);
}
.ribbon-btn.active {
  background: linear-gradient(180deg, #e13b57 0%, #99152d 100%);
  color: #fff9e6;
  filter: drop-shadow(0 8px 18px rgba(244, 63, 94, 0.48));
}

.ribbon-btn-moss {
  background: linear-gradient(180deg, #5d6a28 0%, #313913 100%);
  color: var(--gold);
}

/* ==========================================================================
   TAB PANELS (ORGANIC FLOW — NO BOXY CONTAINERS!)
   ========================================================================== */
.tab-panel {
  display: none;
  animation: fadeSlideIn 0.32s ease-out;
}
.tab-panel.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.coastal-body {
  padding: 1rem 6vw 5rem;
  background:
    radial-gradient(ellipse at 20% 25%, rgba(75, 83, 32, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse at 80% 60%, rgba(244, 63, 94, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--ocean-night) 0%, #091322 50%, var(--ocean-night) 100%);
}

/* MUSIC TAB — Open Radio Station Dial Waves (Zero Boxy Track Cards!) */
.music-stage {
  max-width: 1120px;
  margin: 1.5rem auto 4.5rem;
}

.station-selector-wave {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 2rem 0 2.75rem;
}

.station-tuning-pill {
  background: transparent;
  border: none;
  border-bottom: 3px solid rgba(200, 178, 115, 0.3);
  padding: 0.65rem 1.1rem;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.station-tuning-pill:hover,
.station-tuning-pill.active {
  color: var(--gold);
  border-bottom-color: var(--rose);
  transform: translateY(-2px);
}

.open-track-streams {
  max-width: 780px;
  margin: 0 auto;
}

.track-wave-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.75rem;
  border-bottom: 1px dashed rgba(200, 178, 115, 0.25);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: padding-left 0.18s ease, color 0.18s ease;
}
.track-wave-row:hover,
.track-wave-row.playing {
  padding-left: 1.35rem;
  color: var(--gold);
}
.track-wave-row.playing .track-play-indicator {
  color: var(--phosphor);
}

/* Cabin Cliffside YouTube OST Playlist Showcase */
.cabin-ost-scene {
  max-width: 1120px;
  margin: 5rem auto 2rem;
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.cabin-vista-art {
  flex: 0 0 min(400px, 88vw);
  position: relative;
}
.cabin-vista-art img.main-scene {
  width: 100%;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.92));
}

/* PROJECTS TAB — Organic Staggered Showcases (Deep State, Pal Pad, Chimera) */
.project-feature {
  max-width: 1140px;
  margin: 3.5rem auto 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
}

.project-feature.reverse {
  flex-direction: row-reverse;
}

.project-art-cluster {
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.project-copy {
  flex: 1 1 480px;
}

.project-heading {
  font-family: var(--font-pixel);
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  line-height: 1.38;
  color: var(--gold);
  text-shadow: 0 4px 0 #211808, 0 6px 16px #000;
  margin: 0 0 1rem;
}

/* Footer */
.studio-footer {
  background: #04070d;
  padding: 2.5rem 5vw 3.5rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 900px) {
  .cabin-ost-scene,
  .project-feature,
  .project-feature.reverse {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .cypress-wing-left,
  .cypress-wing-right {
    width: 120px;
    opacity: 0.45;
  }
}
