/* ==========================================================
   AFTER THE SUN — CLEAN REBUILD (2025-10)
   ========================================================== */

/* === GLOBAL === */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #ddd;
  background: #0d0e11;
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  letter-spacing: 1px;
}
a {
  color: #ff6a00;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: #00b3ff; }

/* === UNIVERSAL CONTAINER === */
.container.narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  box-sizing: border-box;
}

/* === HEADER === */
.rock-header {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 20px rgba(255,106,0,0.2);
}
.rock-header .logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: #ff6a00;
  letter-spacing: 3px;
}
.rock-header nav a {
  color: #fff;
  margin-left: 1.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.rock-header nav a:hover {
  color: #00b3ff;
  text-shadow: 0 0 10px rgba(0,179,255,0.7);
}

/* === HERO === */
.hero-sunrise {
  height: 80vh;
  background: radial-gradient(circle at 50% 100%, #ff6a00 0%, #0d0e11 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-center {
  position: relative;
  z-index: 2;
}
.main-title {
  font-size: 4.2rem;
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 0 0 30px rgba(255,106,0,0.4);
  margin-bottom: 0.6rem; /* ↓ reduce gap below the title */
}

.tagline {
  font-size: 1.2rem;
  color: #ddd;
  margin: 0.6rem auto 2rem; /* ↓ reduce top space before and keep bottom as is */
  max-width: 720px;
}


/* === SECTION BASE === */
section {
  padding: 3.5rem 2rem; /* was 7rem — reduced by 50% */
  position: relative;
  text-align: center;
}

/* === SECTION SPACING === */
section + section {
  margin-top: 3rem; /* was 6rem — reduced by 50% */
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 3rem; /* was 6rem — reduced by 50% */
}

/* === FIX: tighten spacing between major sections === */

/* 1️⃣ Story → Characters */
.story-section + .characters-section {
  margin-top: 0 !important;
  padding-top: 1.5rem !important;  /* small breathing space only */
  border-top: none !important;     /* removes the faint divider line */
}

/* 2️⃣ Characters → Sound */
.characters-section + .sound-section {
  margin-top: 0 !important;
  padding-top: 1.5rem !important;
  border-top: none !important;
}

/* 3️⃣ Sound → Production */
.sound-section + .production-section {
  margin-top: 0 !important;
  padding-top: 1.5rem !important;  /* matches spacing above */
  border-top: none !important;     /* removes divider line if present */
}


/* === SECTION HEADERS === */
.section-title {
  font-size: 2.3rem;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 1rem; /* slightly tighter */
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ff6a00, #ffbf61);
  margin: 0.5rem auto;
  border-radius: 2px;
}

.section-tagline {
  color: #ff6a00;
  font-style: italic;
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 2rem; /* was 3rem — tighter look */
}


/* === STORY SECTION === */
.story-section {
  background: #0d0e11;
  color: #ccc;
}
.story-text {
  max-width: 760px;
  margin: 3rem auto 0;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: center;
}
.story-text em { color: #fff; font-style: normal; font-weight: 600; }
.story-text strong { color: #ff6a00; font-weight: 600; }

/* === SECTION IMAGES (fixed aspect + fade automation) === */
.section-image {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto 1.2rem auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.section-image img {
  width: 100%;
  aspect-ratio: 16 / 9;       /* 🔧 keeps cinematic widescreen */
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 1.5s ease, transform 1.2s ease;
}

.section-image img.active {
  filter: grayscale(0%) contrast(1.05);
  transform: scale(1.02);
}

/* === CHARACTER & STORY IMAGES (same fade style) === */
.char-photo,
.story-photo img {
  filter: grayscale(100%) contrast(1.1);
  transition: filter 1.5s ease, transform 1.2s ease;
}

.char-photo.active,
.story-photo img.active {
  filter: grayscale(0%) contrast(1.05);
  transform: scale(1.02);
}


/* === STORY IMAGES (cinematic single layout) === */
.story-photo {
  width: 100%;
  max-width: 900px;                /* ⬅ same width as other section images */
  margin: 2rem auto 3rem auto;     /* ⬅ centered and evenly spaced */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  transition: transform 0.5s ease;
}

.story-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;            /* ⬅ keeps consistent cinematic shape */
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 1.5s ease, transform 1.2s ease;
}

.story-photo img.active {
  filter: grayscale(0%) contrast(1.05);
  transform: scale(1.02);
}

.story-photo:hover {
  transform: translateY(-4px);
}

/* === OPTIONAL: wider LED image emphasis === */
.story-photo:nth-of-type(2) {
  max-width: 1000px;               /* ⬅ makes the middle “LED” photo feel grander */
}

/* Responsive handling */
@media (max-width: 768px) {
  .story-photo {
    max-width: 100%;
    margin: 1.5rem auto;
  }
}


/* === CHARACTERS SECTION === */
.characters-section {
  background: #0d0e11;
  color: #eee;
  padding-top: 6rem;
  padding-bottom: 2rem; /* was 6rem — reduced to close space before next section */
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 2.5rem 2rem;
  justify-items: center;
  align-items: start;
  max-width: 1100px;
  margin: 3rem auto 0;
}

.char-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 2rem;
  text-align: left;
  width: 100%;
  max-width: 340px;
  box-shadow: inset 0 0 10px rgba(255,106,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.char-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 28px rgba(255,106,0,0.45);
}

.char-card h3 {
  color: #ff6a00;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.char-card:nth-child(7) {
  grid-column: 2 / 3;
  justify-self: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .char-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .char-card:nth-child(7) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .char-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}


/* === SOUND SECTION === */
.sound-section {
  background: #0d0e11;
  color: #eee;
  padding-top: 4rem;   /* was 6rem — reduced to tighten top gap */
  padding-bottom: 6rem;
}

/* Reduce gap between demo intro and player grid */
.sound-section p {
  margin-bottom: 1.5rem !important;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  max-width: 1100px;
  margin: 2rem auto 0; /* reduced from 3rem for closer spacing */
}

.track {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  text-align: left;
  box-shadow: inset 0 0 10px rgba(255,106,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.track:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(255,106,0,0.4);
}

.track h3 {
  color: #ff6a00;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.track p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.track audio {
  width: 100%;
  border-radius: 8px;
  margin-top: 0.5rem;
}

@media (max-width: 800px) {
  .track-grid { grid-template-columns: 1fr; }
}


/* === CTA BUTTONS === */
.cta-button {
  display: inline-block;
  border: 2px solid #ff6a00;
  color: #ff6a00;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 4rem;
}
.cta-button:hover {
  background: linear-gradient(135deg, #ff6a00, #00b3ff);
  color: #fff;
  box-shadow: 0 0 25px rgba(255,106,0,0.7), 0 0 25px rgba(0,179,255,0.4);
  transform: scale(1.05);
}

/* === FOOTER === */
.site-footer {
  background: #0d0e11;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==== DEBUG FIX: Overlap isolation ==== */
.story-section, .characters-section, .sound-section {
  position: relative !important;
  display: block !important;
  overflow: visible !important;
  transform: none !important;
  z-index: auto !important;
}

.char-grid, .track-grid {
  position: relative !important;
  display: grid !important;
  place-items: start center;
  overflow: visible !important;
}

.char-card, .track {
  position: relative !important;
  z-index: 10 !important;
  transform: none !important;
  overflow: visible !important;
  margin: 0 !important;
}

body {
  overflow-x: hidden !important;
}
/* === FINAL FIX: remove rogue vertical dividers === */
.characters-section .divider,
.char-grid .divider,
.char-card .divider,
.sound-section .divider,
.track-grid .divider,
.track .divider {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  position: static !important;
  overflow: hidden !important;
}
/* ===== CHARACTERS: HARD RESET (no overlays, no overlap) ===== */

/* 0) Section spacing (remove the big gap before Characters) */
.story-section { margin-bottom: 3rem !important; padding-bottom: 3rem !important; }
.characters-section { margin-top: 0 !important; padding-top: 5rem !important; padding-bottom: 6rem !important; }

/* 1) Clean 3x2 grid + centred 7th card */
.characters-section .char-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
  column-gap: 2rem !important;
  row-gap: 2.5rem !important;
  justify-items: center !important;
  align-items: start !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* 2) Cards: remove animations/offsets and contain any effects */
.characters-section .char-card {
  position: relative !important;
  transform: none !important;
  opacity: 1 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 340px !important;
  overflow: hidden !important;      /* prevents glows spilling into next row */
  z-index: 1 !important;
}

/* 3) Kill any decorative pseudo-elements that draw vertical bars */
.characters-section .char-card::before,
.characters-section .char-card::after {
  content: none !important;
  display: none !important;
}

/* 4) Kill any divider/separator elements that may exist in the markup */
.characters-section .char-grid > .divider,
.characters-section .char-grid [class*="divider"],
.characters-section .char-grid [class*="Divider"],
.characters-section .char-grid [class*="separator"],
.characters-section .char-grid [class*="Separator"],
.characters-section .char-grid [class*="bar"],
.characters-section .char-grid [class*="Bar"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  position: static !important;
  overflow: hidden !important;
}

/* 5) Centre the 7th card */
.characters-section .char-card:nth-of-type(7) {
  grid-column: 2 / 3 !important;
  justify-self: center !important;
}

/* 6) Responsive fallbacks */
@media (max-width: 1024px) {
  .characters-section .char-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)) !important; }
  .characters-section .char-card:nth-of-type(7) { grid-column: 1 / -1 !important; }
}
@media (max-width: 640px) {
  .characters-section .char-grid { grid-template-columns: 1fr !important; row-gap: 2rem !important; }
}

/* ===== SOUND: keep tidy 2-up grid (no overlap) ===== */
.track-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  gap: 2.5rem !important;
  max-width: 1100px !important;
  margin: 3rem auto 5rem auto !important; /* ⬅ adds extra space below the demos */
  align-items: start !important;
  justify-items: center !important;
}

.track {
  width: 100% !important;
  overflow: hidden !important;
}

@media (max-width: 800px) {
  .track-grid {
    grid-template-columns: 1fr !important;
    margin: 2rem auto 4rem auto !important; /* ⬅ also spaced nicely on mobile */
  }
}

/* ===== Remove any section overlays completely (belt & braces) ===== */
.story-section::before,
.characters-section::before,
.sound-section::before {
  content: none !important;
  display: none !important;
}


/* ==== ANTI-OVERLAP SAFETY NET (drop at end of stylesheet) ==== */

/* 1) Each major section creates its own stacking context */
.hero-sunrise,
.concept-section,
.story-section,
.characters-section,
.sound-section,
.team-section,
.showcase-section,
.contact-section {
  position: relative;        /* establish context */
  isolation: isolate;        /* child z-index can't leak out */
  z-index: 0;                /* baseline */
}

/* 2) Any section overlays live BEHIND their own content only */
.hero-sunrise .flare,
.hero-sunrise .overlay,
.concept-section .overlay,
.story-section .overlay,
.characters-section .overlay,
.sound-section .overlay,
.team-section .overlay,
.showcase-section .overlay,
.contact-section .overlay {
  position: absolute;
  inset: 0;
  z-index: -1;               /* behind text within the section */
  pointer-events: none;      /* overlays don’t block clicks */
}

/* 3) Guard against rogue fixed/absolute elements in panels */
.showcase-section .panel,
.sound-section .panel,
.team-section .panel {
  position: static;
  z-index: auto;
}

/* 4) Common parallax culprit: background-attachment: fixed; */
.hero-sunrise,
.showcase-section,
.sound-section {
  background-attachment: scroll !important;  /* disable parallax for now */
  background-position: center;
  background-size: cover;
}

/* 5) Header + anchor jump protection (if header is fixed/sticky) */
.rock-header {
  position: sticky;          /* or fixed if you prefer */
  top: 0;
  z-index: 1000;             /* above sections, below modals */
}
html { scroll-padding-top: 60px; } /* match your header height */

/* 6) Audio players sometimes affect flow; make them block-level */
audio { display: block; max-width: 100%; margin-top: 0.5rem; }

/* === CHARACTER CARDS WITH IMAGES === */

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.char-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.char-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.char-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.35);
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.3s ease;
}

.char-card:hover .char-photo {
  filter: grayscale(0);
  transform: scale(1.02);
}

.char-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
}
/* === FIX: Align numbered song list properly === */
.song-list {
  text-align: left;
  margin: 0 auto;
  max-width: 700px;
  padding-left: 2rem; /* adds indentation for numbers */
  list-style-position: outside;
}

.songlist-heading {
  text-align: center;
  color: #ff6a00;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.song-list ol,
.songlist {
  margin: 0;
  padding-left: 2.2rem;
}

.songlist li {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #ddd;
  font-size: 0.95rem;
  text-align: left;
}

/* === CREATIVE TEAM (Aligned Layout) === */

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  justify-content: center;
}

.team-member {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  flex-wrap: nowrap;
}

.team-photo {
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(255,106,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,106,0,0.6);
}

.team-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.team-header {
  display: flex;
  flex-direction: column;   /* stack name + title */
  align-items: flex-start;
  margin-bottom: 0.6rem;
  align-items: flex-start !important;
  text-align: left !important;
}

.team-header h3 {
  color: #fff;
  font-size: 1.3rem;
  margin: 0;
  letter-spacing: 0.5px;
  text-align: left !important;
}

.team-role {
  color: #ff6a00;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 500;
  margin-top: 0.2rem;
  letter-spacing: 0.3px;
  text-shadow: 0 0 8px rgba(255,106,0,0.3);
  text-align: left !important;
}


.team-info p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
}

/* Responsive fix */
@media (max-width: 700px) {
  .team-member {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-header {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  .team-role {
    margin-bottom: 0.5rem;
  }

  .team-photo {
    margin-bottom: 1rem;
  }
}


/* === FIX: FORCE SITE ORANGE FOR TEAM TITLES === */
.team-header .team-role {
  color: #ff6a00 !important;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-shadow: 0 0 8px rgba(255,106,0,0.3);
}


/* Prevent global centering from overriding text-heavy sections */
.characters-section,
.sound-section {
  text-align: left;
}

.sound-section .section-title,
.sound-section .section-tagline,
.characters-section .section-title,
.characters-section .section-tagline {
  text-align: center; /* keep headers centered */
}

/* === FIX: Contain and align text at the end of the Characters section === */
.characters-section p {
  max-width: 760px;
  margin: 1.5rem auto;
  text-align: left;
  line-height: 1.6;
  color: #ccc;
}

/* Keep section heading centered while paragraphs align left */
.characters-section .section-title,
.characters-section .section-tagline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* === PRODUCTION SECTION WIDTH FIX === */
.showcase-section p,
.production-section p,
.partnerships-section p {
  max-width: 800px !important;   /* expands readable width */
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;  /* keeps balance under headings */
  line-height: 1.7;               /* improves readability */
}

/* === FINAL WIDTH FIX: Production / Partnerships Section === */
.container.narrow p {
  max-width: 1000px !important;   /* wider readable line */
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.8;
}

.container.narrow h3 {
  margin-top: 2.5rem;
}


/* === FORCE LEFT-JUSTIFIED BIO TEXT === */
.team-info p {
  text-align: left;
}

/* Mobile: keep bios left, headers centered */
@media (max-width: 700px) {
  .team-info p {
    text-align: left;
  }
}
/* ================================
   ACCESS GATE — AFTER THE SUN
================================ */

#access-gate {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(255,106,0,0.35), transparent 60%),
    #0d0e11;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-box {
  max-width: 460px;
  padding: 3rem 2.8rem;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}

.gate-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 0 25px rgba(255,106,0,0.6);
}

.gate-note {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 2rem;
}

#gate-password {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.gate-button {
  width: 100%;
  padding: 0.9rem;
  border-radius: 40px;
  border: 2px solid #ff6a00;
  background: transparent;
  color: #ff6a00;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

#gate-error {
  display: none;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ff6a00;
}

/* === HARD OVERRIDE: TEAM TITLES + NAMES LEFT ON DESKTOP === */
/* Paste at the very end of the stylesheet */

section.team-section .team-member,
section.team-section .team-info,
section.team-section .team-header,
section.team-section .team-header h3,
section.team-section .team-header .team-role {
  text-align: left !important;
}

section.team-section .team-header .team-role {
  display: block;       /* ensure it behaves like a proper subtitle line */
  width: 100%;          /* prevents any centering based on shrink-to-fit */
}

/* Keep your mobile centering behaviour */
@media (max-width: 700px) {
  section.team-section .team-member,
  section.team-section .team-info,
  section.team-section .team-header,
  section.team-section .team-header h3,
  section.team-section .team-header .team-role {
    text-align: center !important;
  }
}
