:root {
  /* Functional Palette (Modern Rodeo / Country Vibrant) */
  /* Bases (Warm Darks) */
  --bg-light: #F5E6D3;
  /* Cream/Bone */
  --bg-mid: #BA7E27;
  /* Ocre Couro */
  --bg-dark: #1A0505;
  /* Deep Wine/Earth */
  --black: #000000;

  /* Highlights (Fire & Sun) */
  --highlight-primary: #FAA61C;
  /* Solar Gold */
  --highlight-secondary: #DD430F;
  /* Ember Orange */

  /* Danger / Intensity */
  --danger-primary: #BC0F1C;
  /* Flag Red */
  --danger-dark: #6D0C01;
  /* Blood Wine */

  /* Info / Night */
  --info-primary: #525C86;
  /* Night Blue */
  --info-dark: #2F385E;

  /* Support */
  --support-brown: #A77123;
  /* Saddle Brown */

  /* Global Settings */
  --font-body: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  /* Update this if you have the Typekit name! */

  /* Mapped */
  --text: #F0E6D2;
  /* Bone White text */
  --muted: #C2B299;
  /* Dust Beige */
  --stroke: rgba(250, 166, 28, 0.2);
  /* Gold trace */
  --card: rgba(109, 12, 1, 0.1);
  /* Wine tint glass */
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  /* Start with Dark Wine/Earth */
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s ease;
  /* Fallback */
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6,
.title {
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(221, 67, 15, 0.4);
  /* Fire glow */
}

.eyebrow {
  color: var(--highlight-primary);
  /* Gold */
}

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

.page {
  position: relative;
  width: 100%;
  background: transparent;
}

section {
  position: relative;
  min-height: 100vh;
  padding: 6rem 7vw;
  display: flex;
  align-items: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.section-inner {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  z-index: 2;
}

.panel {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 3.5rem 0;
  overflow: visible;
  box-shadow: none;
  z-index: 2;
  /* Ensure panel content is above backgrounds if needed, but inner grids handle it too */
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: 7vw;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--bg-mid);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--highlight-primary);
  box-shadow: 0 0 10px var(--highlight-primary);
  /* Soft glow */
}

.title {
  font-family: "Space Grotesk", "General Sans", sans-serif;
  font-size: clamp(2.8rem, 4vw, 4.6rem);
  line-height: 1.04;
  margin: 1rem 0 1.5rem;
  letter-spacing: -0.02em;
}

.line {
  width: 110px;
  height: 2px;
  background: linear-gradient(90deg, var(--highlight-secondary), transparent);
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: none;
  /* Removed heavy glow for cleaner light look */
}

.copy {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
}

.hero {
  padding-top: 8rem;
  padding-bottom: 2rem;
  min-height: auto;
  display: block;
}

.hero-shell {
  position: relative;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: none;
  width: 100%;
}

.hero-shell::after {
  content: none;
}

.hero .panel-grid {
  padding: 3.5rem 7vw 4.5rem;
  border-radius: 0;
  border: none;
  background: none;
  backdrop-filter: none;
  box-shadow: none;
  grid-template-columns: 1.1fr 0.9fr;
}

.hero-loop {
  position: relative;
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 6;
  pointer-events: none;
  mix-blend-mode: normal;
  margin-top: -4rem;
  /* Pull up closer to content */
  margin-bottom: 2rem;
}

.hero-loop .curved-loop-svg {
  font-size: clamp(3.6rem, 9vw, 6rem);
  transform: translateY(0);
  margin: 0;
  width: 100%;
}

.overlap-loop {
  position: relative;
  height: 0;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.video-loop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 80px;
  /* Lift up to avoid overlap with next title */
  z-index: 6;
  pointer-events: none;
  mix-blend-mode: normal;
  width: 100%;
}

.video-loop .curved-loop-svg {
  font-size: clamp(3.6rem, 9vw, 6rem);
  transform: translateY(0);
  margin: 0;
  width: 100%;
}

.overlap-loop .curved-loop-svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  /* Same offset as hero-loop */
  width: 100%;
  font-size: clamp(3.6rem, 9vw, 6rem);
  transform: translateY(-50%);
  /* Adjust to center over the seam */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: none;
  display: none;
  /* Hide texture */
}

.hero-video {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.hero-foreground {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
}

.figure {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  will-change: transform;
}

.figure::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(114, 242, 208, 0.3), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

.figure img {
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.floaty {
  animation: floaty 8s ease-in-out infinite;
  will-change: transform;
}

@keyframes floaty {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -16px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

.divider {
  width: 100%;
  overflow: visible;
  padding: 1rem 0;
  background: transparent;
  border: none;
  position: relative;
  z-index: 4;
  margin: 0;
}

.divider .curved-loop-svg {
  font-size: clamp(3.6rem, 9vw, 6rem);
  fill: var(--text);
  margin: 0;
  transform: none;
  display: block;
}

/* Reset section spacing to be clean and standard */
.video {
  background: none;
  padding-top: 5rem;
  padding-bottom: 5rem;
  margin-top: 0;
  position: relative;
  z-index: 3;
  /* Higher than Info to keep loop visible */
}

.info {
  background: none;
  margin-top: 0;
  padding-top: 12rem;
  /* Big spacing to avoid overlaps with the loop above */
  position: relative;
  z-index: 2;
}

/* 
   Divider Strategy:
   Position it "between" but pull siblings closer. 
   Actually, the user suggested "50% on one, 50% on other".
   We can just use negative margins on the divider itself to pull both adjacent sections inward.
*/
.velocity-divider {
  padding: 1.6rem 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* The Magic: Pull sections together */
  margin-top: -3rem;
  margin-bottom: -3rem;

  /* Ensure it sits ON TOP of specific backgrounds */
  position: relative;
  /* min-height: 100vh; removed to allow natural height */
  display: flex;
  flex-direction: column;
  padding: 8rem 0 4rem;
  /* Standard comfortable padding */
  overflow: hidden;
  isolation: isolate;
  z-index: 10;

  /* seamless join */
  gap: 0;
  /* No gap inside */
  background: transparent;

  /* Smooth Transition: Feather top/bottom edges */
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);

  pointer-events: none;
  /* Let clicks pass through if needed */
}

.velocity-line {
  display: flex;
  gap: 0;
  white-space: nowrap;
  font-family: "Space Grotesk", "General Sans", sans-serif;
  font-size: clamp(3.6rem, 9vw, 6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg-light);
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  will-change: transform;
  padding-inline: 0;
}

.velocity-line span {
  flex-shrink: 0;
  padding-right: 0.8em;
}



.velocity-chunk {
  display: flex;
  flex-shrink: 0;
  gap: 0;
}

.divider::after {
  content: none;
}

.divider-text {
  fill: var(--bg-light);
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.35);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.1);
  paint-order: stroke fill;
}

.audio {
  background: none;
}

.audio .panel-grid,
.video .panel-grid,
.info .panel-grid {
  grid-template-columns: 1fr 1fr;
}

.spotify-embed {
  width: 100%;
  border: 0;
  border-radius: 20px;
  min-height: 280px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  font-weight: 400;
  box-shadow: none;
}

/* Cinematic Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Smooth Scroll HTML fix */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.badge small {
  color: var(--bg-mid);
  font-weight: 400;
}

.video {
  /* Background handled by video element now */
  background: transparent;
  padding-top: 140px;
  padding-bottom: 5rem;
  margin-top: -80px;
  position: relative;
  z-index: 5;
  overflow: hidden;
  /* Contain the video */
}

/* Video Background Styles */
.section-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Behind content */
  overflow: hidden;
  /* Feather edges to blend with global background */
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.video-bg-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  /* Slight transparency to blend */
}

.video-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      var(--bg-dark) 0%,
      rgba(109, 12, 1, 0.4) 50%,
      var(--bg-dark) 100%);
  mix-blend-mode: multiply;
  z-index: 1;
}

/* Ensure content sits above video */
.video .section-inner {
  position: relative;
  z-index: 2;
}

.video-header {
  padding-inline: 7vw;
}

@media (max-width: 1080px) {
  .video-header {
    padding-inline: 0;
  }
}

/* ... existing styles ... */

.video-player {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
}

.video-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: transparent;
}

.info {
  background: none;
  margin-top: -80px;
  /* Pull up to join with previous section */
  padding-top: 15rem;
  /* Increase padding even more to be absolutely safe */
  position: relative;
  z-index: 2;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: var(--blur);
}

.info-table tr+tr td {
  border-top: 1px solid var(--stroke);
}

.info-table td {
  padding: 1rem 1.25rem;
  font-size: 0.98rem;
  color: var(--bg-light);
}

.info-table td:first-child {
  color: var(--highlight-primary);
  /* Gold labels */
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
}

.credits {
  padding: 5rem 7vw 6rem;
  background: transparent;
  border-top: 1px solid var(--stroke);
}

.credits h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.credits ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.credits li {
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  color: var(--muted);
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cutout {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 25px 55px rgba(0, 0, 0, 0.55));
  transform-origin: center;
  will-change: transform;
}

.bg-tag {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  border-radius: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-tag img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.2) blur(1px);
}

.bg-tag::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.4), rgba(4, 7, 15, 0.9));
}

.accent-grid {
  display: none;
}

/* SMART STACK logic for rearranging content on mobile */
.smart-stack-col-1 {
  grid-column: 1;
  grid-row: 1;
}

.smart-stack-col-2 {
  grid-column: 1;
  grid-row: 2;
}

.smart-stack-media {
  grid-column: 2;
  grid-row: 1 / span 2;
}

@media (max-width: 1080px) {
  section {
    padding: 5rem 1rem;
  }

  .hero .panel-grid,
  .audio .panel-grid,
  .info-grid,
  .panel-grid {
    padding: 2.6rem 0;
    padding-inline: 0;
  }

  .panel-grid,
  .info-grid,
  .hero .panel-grid,
  .audio .panel-grid {
    grid-template-columns: 1fr;
  }

  .video-player iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: none;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  }

  .panel {
    padding: 0;
  }

  /* Reset Grid items to auto flow for mobile (Title -> Text -> Media) */
  .smart-stack-col-1 {
    grid-column: 1;
    grid-row: 1;
  }

  .smart-stack-col-2 {
    grid-column: 1;
    grid-row: 2;
  }

  .smart-stack-media {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
  }

  /* Video Section Mobile Order Fix */
  .video-content-grid {
    display: flex;
    flex-direction: column;
  }

  .video-content-grid> :nth-child(2) {
    /* order: -1; */
    /* REMOVED: Keep original order so Text (1st child) comes before Media (2nd child) */
    width: 100%;
    margin-bottom: 2rem;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  section {
    padding: 4rem 1rem;
  }

  .hero .panel-grid {
    padding: 2rem 0;
    border-radius: 0;
  }

  .panel {
    padding: 0;
    border-radius: 22px;
  }

  .divider {
    padding: 0.6rem 0;
    margin-top: -3rem;
  }

  .divider .curved-loop-svg {
    transform: translateY(-32px);
  }



  .divider .curved-loop-svg {
    margin-top: -0.6rem;
  }

  .figure img {
    max-width: 88%;
  }

  .credits {
    padding-inline: 5vw;
  }
}

/* Curved Loop styles pulled from React Bits */
.curved-loop-jacket {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.curved-loop-svg {
  width: 100%;
  aspect-ratio: 100 / 12;
  overflow: visible;
  display: block;
  font-size: 6rem;
  fill: #fff;
  user-select: none;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

@media (max-width: 1080px) {

  .curved-loop-svg,
  .curved-loop-svg text {
    font-size: 15.4rem;
  }
}

/* Dome Gallery CSS */
.sphere-root {
  position: relative;
  width: 100%;
  height: 100%;
  --radius: 520px;
  --viewer-pad: 72px;
  --circ: calc(var(--radius) * 3.14);
  --rot-y: calc((360deg / var(--segments-x)) / 2);
  --rot-x: calc((360deg / var(--segments-y)) / 2);
  --item-width: calc(var(--circ) / var(--segments-x));
  --item-height: calc(var(--circ) / var(--segments-y));
}

.sphere-root * {
  box-sizing: border-box;
}

.sphere,
.item,
.item__image {
  transform-style: preserve-3d;
}

main.sphere-main {
  position: absolute;
  inset: 0;
  overflow: visible;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: transparent;
}

.stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  perspective: calc(var(--radius) * 2);
  perspective-origin: 50% 50%;
  contain: layout paint size;
}

.sphere {
  transform: translateZ(calc(var(--radius) * -1));
  will-change: transform;
}

.overlay,
.overlay--blur {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 3;
  pointer-events: none;
}

.overlay {
  background-image: radial-gradient(rgba(235, 235, 235, 0) 65%, var(--overlay-blur-color, #060010) 100%);
}

.overlay--blur {
  -webkit-mask-image: radial-gradient(rgba(235, 235, 235, 0) 70%, var(--overlay-blur-color, #060010) 90%);
  mask-image: radial-gradient(rgba(235, 235, 235, 0) 70%, var(--overlay-blur-color, #060010) 90%);
  backdrop-filter: blur(3px);
}

.item {
  width: calc(var(--item-width) * var(--item-size-x));
  height: calc(var(--item-height) * var(--item-size-y));
  position: absolute;
  top: -999px;
  bottom: -999px;
  left: -999px;
  right: -999px;
  margin: auto;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  transition: transform 300ms;
  transform: rotateY(calc(var(--rot-y) * (var(--offset-x) + ((var(--item-size-x) - 1) / 2)) + var(--rot-y-delta, 0deg))) rotateX(calc(var(--rot-x) * (var(--offset-y) - ((var(--item-size-y) - 1) / 2)) + var(--rot-x-delta, 0deg))) translateZ(var(--radius));
}

.item__image {
  position: absolute;
  display: block;
  inset: 10px;
  border-radius: var(--tile-radius, 12px);
  background: transparent;
  overflow: hidden;
  backface-visibility: hidden;
  transition: transform 300ms;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.item__image:focus {
  outline: none;
}

.item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  backface-visibility: hidden;
  filter: var(--image-filter, none);
}

/* Dome Gallery Overlay Styles */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

[data-enlarging="true"] .viewer {
  pointer-events: auto;
}

.scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  cursor: zoom-out;
}

[data-enlarging="true"] .scrim {
  opacity: 1;
  pointer-events: auto;
}

.frame {
  position: relative;
  width: 70vw;
  height: 80vh;
  pointer-events: none;
}

.enlarge {
  position: fixed;
  z-index: 1001;
  overflow: hidden;
  border-radius: var(--enlarge-radius, 20px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.enlarge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Curved Loop Styles from React Bits (Adapted) */
.curved-loop-jacket {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.curved-loop-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  pointer-events: none;
  user-select: none;
}

.curved-loop-jacket text {
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  fill: currentColor;
}

/* Inter-section Velocity Strips */
.inter-section-velocity {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  z-index: 20;
  /* High z-index to overlay */
  margin-top: -8rem;
  /* Pull up to overlap bottom of previous */
  margin-bottom: -8rem;
  /* Pull next section up to overlap this */
  pointer-events: none;
}

.inter-section-velocity .velocity-divider {
  background: transparent !important;
}

/* Video Modal & Cover Styles */
.video-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

.video-cover:hover img {
  transform: scale(1.03);
  filter: brightness(0.8);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
  z-index: 2;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

.video-cover:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.play-button svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  margin-left: 4px;
  /* Optical adjustment */
}

.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 0.4s forwards;
  backdrop-filter: blur(10px);
}

.video-modal-content {
  width: 90vw;
  max-width: 1600px;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 100px rgba(114, 242, 208, 0.1);
  transform: scale(0.95);
  animation: scaleUp 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: relative;
  top: auto;
  right: auto;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
  color: #fff;
  padding: 0;
  backdrop-filter: blur(4px);
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.video-modal-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scaleUp {
  to {
    transform: scale(1);
  }
}

/* Spotify Cutout Logic */
.spotify-cutout-bg {
  position: absolute;
  bottom: -40px;
  /* Adjust as needed */
  right: -60px;
  /* Stick to the right of the component */
  width: 80%;
  /* Size comfortably */
  max-width: 350px;
  height: auto;
  z-index: 1;
  /* Behind player (2) */
  pointer-events: none;
  transform-origin: bottom right;
  max-height: 180%;
  /* Allow extending up */
  object-fit: contain;
  object-position: bottom right;
}

@media (max-width: 768px) {
  .spotify-cutout-bg {
    width: 60%;
    bottom: -20px;
    right: -20px;
    opacity: 0.8;
    /* Maybe fade a bit on mobile if overlapping too much */
  }

  /* FIX: Force height for stack media so absolute children don't collapse it */
  .audio .smart-stack-media {
    min-height: 450px;
    width: 100%;
    margin-bottom: 2rem;
  }
}

/* Updated Spotify Cutout Logic */
.spotify-cutout-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  object-fit: cover;
  /* Fill the column */
  object-position: center;
  /* Center the image */
  transform: none;
  /* Reset transform */
  max-width: none;
  max-height: none;
  /* Opacity adjustment if needed to make player readable, though user wanted 'photo of artist behind' */
}

/* Desktop Layout for Audio Section */
@media (min-width: 1080px) {
  .audio .panel-grid {
    min-height: 80vh;
    grid-template-rows: 1fr auto;
    /* Row 1 takes space, Row 2 is auto sized at bottom */
    align-items: stretch;
    /* Stretch to fill height */
  }

  /* Col 1 (Title) - Align Top */
  .audio .smart-stack-col-1 {
    align-self: start;
    padding-top: 2rem;
  }

  /* Col 2 (Text) - Align Bottom */
  .audio .smart-stack-col-2 {
    align-self: end;
    padding-bottom: 2rem;
  }

  /* Ensure Media column spans full height */
  .audio .smart-stack-media {
    grid-row: 1 / -1;
    /* Scan all rows */
    height: 100%;
  }
}

/* Adjust cutout to be strictly full cover */
.spotify-cutout-bg {
  object-position: center bottom;
  /* Anchor to bottom so heads usually visible */
  height: 100% !important;
}

/* Compact Spotify Layout Adjustments */
.spotify-cutout-bg {
  object-fit: contain !important;
  /* Ensure full figure is visible */
  object-position: bottom center !important;
  /* Ground the figure */
  width: 100% !important;
  height: 100% !important;
}

/* Ensure iframe sits flush if desired, or with padding */
.spotify-embed {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* Album Section Styles */
.album {
  background: none;
  position: relative;
  height: 120vh;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.album-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.album-title {
  font-size: clamp(2rem, 5vw, 4rem);
  color: #FFFFFF;
  margin-bottom: 1rem;
  z-index: 20;
  text-shadow: 0 0 20px rgba(255, 200, 62, 0.5);
  /* Gold glow match */
  margin-top: 2rem;
  pointer-events: none;
  text-align: center;
}

.gallery-wrapper {
  flex: 1;
  width: 100%;
  position: relative;
  min-height: 75vh;
}

@media (max-width: 1080px) {
  .album-inner {
    height: auto;
  }

  .gallery-wrapper {
    flex: none;
    height: 60vh;
    width: 100%;
    min-height: 0;
  }

  .album {
    height: auto;
    /* Let content dictate height on mobile */
    padding-bottom: 4rem;
  }
}/* Inline Video Player Styles */
.inline-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    display: block;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}/* Mobile Marquee Animation */
@media (max-width: 768px) {
    .mobile-marquee .velocity-line {
        animation: marquee-scroll 20s linear infinite;
        transform: none !important;
        /* Override JS inline styles */
    }

    .mobile-marquee .velocity-line.reverse {
        animation-direction: reverse;
    }
}

@keyframes marquee-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-33.33%, 0, 0);
    }

    /* Move 1/3 since we have 3 chunks */
}