/* =========================
   ABOUT PAGE – KAI MANA
   ========================= */

/* Section spacing */
section {
  padding: 4rem 1.25rem;
}

/* =========================
   HERO
   ========================= */

.about-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #000;
}

.hero-media {
  position: absolute;
  inset: 0;
}

/* Ensure hero image fills the media area and scales responsively */
.hero-media {
  overflow: hidden;
}

.hero-media .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-text {
  position: relative;
  padding: 2rem 1.5rem;
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.06em;
  margin: 0;
}

.hero-text .subtitle {
  margin-top: 0.5rem;
  opacity: 0.85;
  font-size: 1.1rem;
}

/* =========================
   INTRO
   ========================= */

.about-intro {
  max-width: 820px;
  margin: 0 auto;
}

.about-intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* =========================
   BAND MEMBERS
   ========================= */

.band-section {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.band-member {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.member-text h2 {
  margin: 0;
  font-size: 1.8rem;
}

.member-text h3 {
  margin: 0.25rem 0 1rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  opacity: 0.8;
  font-size: 0.9rem;
}

.member-text p {
  line-height: 1.7;
  max-width: 520px;
  opacity: 0.9;
}

/* =========================
   ORIGIN
   ========================= */

.origin-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.origin-text {
  max-width: 760px;
}

.origin-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.origin-text p {
  line-height: 1.7;
  opacity: 0.9;
}

/* =========================
   CLOSING
   ========================= */

.about-closing {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.about-closing p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.85;
}

/* =========================
   MEDIA PLACEHOLDERS
   ========================= */

.media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1c1c1c, #2a2a2a);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  padding: 1rem;
}

.media-placeholder.portrait {
  aspect-ratio: 4 / 5;
}

.media-placeholder.wide {
  aspect-ratio: 21 / 9;
}

/* Member images (match placeholder sizing and cover) */
.member-image {
  width: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
}

.member-image.portrait {
  aspect-ratio: 4 / 5;
}

.member-image.wide {
  aspect-ratio: 21 / 9;
}

/* =========================
   DESKTOP ENHANCEMENTS
   ========================= */

@media (min-width: 768px) {

  section {
    padding: 5rem 2rem;
  }

  .band-member {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .band-member:nth-child(even) {
    flex-direction: row-reverse;
  }

  .member-text {
    flex: 1;
  }

  .media-placeholder.portrait {
    max-width: 420px;
  }

  .origin-section {
    align-items: center;
  }
}

/* =========================
   LARGE SCREENS
   ========================= */

@media (min-width: 1200px) {
  .about-intro,
  .origin-text {
    font-size: 1.1rem;
  }
}
/* =========================
   KAI MANA VISUAL SYNC
   ========================= */

:root {
  --km-bg: #0b0f11;
  --km-surface: rgba(255,255,255,0.03);
  --km-gold: #d4af37;
  --km-text-soft: rgba(255,255,255,0.82);
}

/* Match music page background */
body {
  background: var(--km-bg);
  color: var(--km-text-soft);
}
h1, h2 {
  color: var(--km-gold);
  letter-spacing: 0.08em;
}

h3 {
  opacity: 0.85;
}

p {
  max-width: 70ch;
}
section {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0)
  );
  border-radius: 24px;
  margin: 2.5rem auto;
  max-width: 1200px;
}
.media-placeholder {
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(135deg, #14181b, #0b0f11);
  border: 1px solid rgba(255,255,255,0.06);
}
.band-member {
  padding: 2rem;
  background: var(--km-surface);
  border-radius: 20px;
}
.about-closing {
  opacity: 0.9;
}

.about-closing p {
  font-style: italic;
}
/* =========================
   MEMBER PORTRAIT ANIMATION – FINAL MOBILE/DESKTOP
   ========================= */

.media-placeholder.portrait {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.member-image.portrait.static-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  transition: opacity 0.5s ease;
}

.hover-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: 18px;
}

/* Show video when .playing class is added */
.hover-video.playing {
  opacity: 1;
}

.hover-video.playing ~ .static-image,
.band-member:hover .static-image {
  opacity: 0;
}

.band-member:hover .hover-video {
  opacity: 1;
}
/* Dark fade overlay for hero consistency */
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );  /* Adjust opacity/stops for subtlety */
  pointer-events: none;
  z-index: 1;
}

/* Ensure text stays on top */
.hero-text {
  position: relative;
  z-index: 2;
}