/* ═══════════════════════════════════════════════════════════
   Chain the Sun — style.css
   ═══════════════════════════════════════════════════════════ */

/* ─── RESET & CUSTOM PROPERTIES ────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary:     #0a0a0a;
  --bg-secondary:   #111111;
  --bg-elevated:    #1a1a1a;
  --text-primary:   #e8e8e8;
  --text-secondary: #a0a0a0;
  --accent-red:     #c0392b;
  --accent-silver:  #b8b8b8;
  --nav-height:     60px;
  --container-max:  1100px;
  --section-pad:    6rem 1.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── UTILITIES ─────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section {
  padding: var(--section-pad);
}

.section__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 0.6rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

h2 .dim {
  color: var(--text-secondary);
  font-weight: 400;
}

.section-rule {
  width: 40px;
  height: 3px;
  background: var(--accent-red);
  margin-bottom: 3rem;
}

/* ─── NAVIGATION ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
  border-bottom: 1px solid rgba(192, 57, 43, 0.2);
}

.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__brand img {
  height: 28px;
  width: auto;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--accent-red);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.2s, opacity 0.2s;
}

/* ─── HERO ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #080808;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.35;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.2)  0%,
    rgba(8, 8, 8, 0.1) 40%,
    rgba(8, 8, 8, 0.7) 85%,
    rgba(8, 8, 8, 1)  100%
  );
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: var(--nav-height);
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
}

.hero__logo {
  width: min(520px, 80vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(192, 57, 43, 0.25));
}

.hero__tagline {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.cta-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 2.5rem;
  border: 2px solid var(--accent-red);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.cta-btn:hover {
  background: var(--accent-red);
  color: #fff;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  opacity: 0.45;
  animation: bounce 2.2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.scroll-arrow {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ─── ABOUT ─────────────────────────────────────────────────── */
#about {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__photo {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: -6px -6px 0 var(--accent-red);
}

.about__photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(30%) contrast(1.05);
}

.about__bio {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 0;
}

.about__bio strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about__members {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}

.member {
  border-left: 2px solid var(--accent-red);
  padding-left: 0.75rem;
}

.member__name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.member__role {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent-red);
  text-transform: uppercase;
}

/* ─── RELEASES ──────────────────────────────────────────────── */
#releases {
  background: var(--bg-primary);
}

.releases__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.release-card {
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.release-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(192, 57, 43, 0.2);
  border-color: rgba(192, 57, 43, 0.35);
}

.release-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.release-card__artwork {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.release-card__body {
  padding: 1rem 1.1rem 1.25rem;
}

.release-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.release-card__cta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-silver);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.release-card__cta svg {
  transition: transform 0.2s;
}

.release-card:hover .release-card__cta {
  color: var(--accent-red);
}

.release-card:hover .release-card__cta svg {
  transform: translateX(3px);
}

/* ─── SOCIAL ────────────────────────────────────────────────── */
#social {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-width: 190px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-link:hover {
  color: var(--text-primary);
  border-color: var(--accent-red);
  background: rgba(192, 57, 43, 0.07);
}

/* ─── CONTACT ───────────────────────────────────────────────── */
#contact {
  background: var(--bg-primary);
}

.contact__inner {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

.contact__inner p {
  color: var(--text-secondary);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-email {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--accent-red);
  text-decoration: none;
  border-bottom: 2px solid rgba(192, 57, 43, 0.35);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-email:hover {
  color: var(--accent-silver);
  border-color: var(--accent-silver);
}

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  background: #080808;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer__logo {
  height: 22px;
  width: auto;
  opacity: 0.5;
}

.footer__copy {
  color: var(--text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .releases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 4rem 1.25rem;
  }

  /* Nav */
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.98);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(192, 57, 43, 0.18);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  /* Hero: show the whole collage */
  #hero { min-height: 100svh; }
  .hero__bg {
    inset: var(--nav-height) 0 auto 0;
    height: auto;
    aspect-ratio: 1920 / 891;
    background-size: 100% 100%;
    background-position: top center;
    opacity: 0.6;
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
    mask-image: linear-gradient(to bottom, #000 65%, transparent);
  }
   
  /* About */
  .about__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__members {
    grid-template-columns: 1fr;
  }

  /* Releases */
  .releases__grid {
    grid-template-columns: 1fr;
  }

  /* Social */
  .social__links {
    flex-direction: column;
    align-items: center;
  }

  .social-link {
    min-width: 280px;
    justify-content: center;
  }
}
