/* ============================================================
   HOME.CSS — Homepage specific styles
   ============================================================ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../media/image1.png');
  background-size: cover;
  background-position: center 25%;
  /* Slightly brighter than before with cinematic contrast */
  filter: brightness(0.32) saturate(1.3) contrast(1.05);
  transform: scale(1.08);
  will-change: transform;
  animation: heroPan 25s ease-in-out infinite alternate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 0%, rgba(8,8,8,0.55) 100%),
    linear-gradient(to bottom, rgba(8,8,8,0.55) 0%, rgba(8,8,8,0.08) 35%, rgba(8,8,8,0.9) 100%);
}

/* grain layer sits at z-index 1 via .grain::after */
.hero.grain::after { z-index: 2; }

.hero__content {
  position: relative;
  z-index: 3;
  padding-top: var(--nav-h);
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fade-in 0.6s var(--ease-out) 0.1s both;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 23vw, 17rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--text);
  text-shadow:
    0 0 80px rgba(255,255,255,0.08),
    0 2px 40px rgba(0,0,0,0.8);
  animation:
    hero-name-in 0.9s var(--ease-spring) 0.05s both,
    beat-thump   1.33s linear 1.2s infinite;
  position: relative;
}

@keyframes hero-name-in {
  from {
    opacity: 0;
    transform: translateY(40px) skewY(-1deg);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
    filter: blur(0);
  }
}

/* ── Bass-boom Z-pulse on the whole word ── */
@keyframes beat-thump {
  /* sharp hit: word scales up slightly — simulates bass pushing it toward viewer */
  0%   { transform: scale(1);      filter: brightness(1); }
  7%   { transform: scale(1.015);  filter: brightness(1.05); }
  /* quick settle with tiny undershoot */
  20%  { transform: scale(0.999);  filter: brightness(1); }
  30%  { transform: scale(1);      filter: brightness(1); }
  /* hold still for the rest of the beat */
  100% { transform: scale(1);      filter: brightness(1); }
}

/* ── Slow cinematic parallax pan for hero background ── */
@keyframes heroPan {
  0%   { transform: scale(1.08) translate(0, 0); }
  50%  { transform: scale(1.12) translate(-1.5%, -0.8%); }
  100% { transform: scale(1.08) translate(0.5%, 0.3%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__name { animation: hero-name-in 0.9s var(--ease-spring) 0.05s both; }
  .hero__bg { animation: none; }
}

.hero__sub {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2.2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 0.4rem;
  margin-bottom: 2.5rem;
  animation: fade-in 0.6s var(--ease-out) 0.55s both;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fade-in 0.6s var(--ease-out) 0.75s both;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.2);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  animation: fade-in 1s var(--ease-out) 1.5s both;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.4); opacity: 0.15; }
}

/* ── Latest Release section ── */
.latest-release {
  background: var(--bg);
  padding-block: var(--section-py);
  position: relative;
}

.latest-release::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.latest-release__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: center;
}

.latest-release__meta h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.latest-release__desc {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 42ch;
}

/* ── Featured Beats (teaser) ── */
.featured-beats {
  padding-block: var(--section-py);
  background: linear-gradient(to bottom, var(--bg), var(--surface) 50%, var(--bg));
}

.featured-beats__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.featured-beats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.featured-beats__status {
  grid-column: 1 / -1;
  color: var(--text-2);
  font-size: 0.95rem;
  margin: 0;
}

/* ── About snippet ── */
.about-snippet {
  padding-block: var(--section-py);
  background: var(--bg);
}

.about-snippet__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-snippet__img-wrap {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-snippet__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.85);
  transition: filter 600ms ease, transform 800ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .about-snippet__img-wrap:hover img {
    filter: saturate(0.8) brightness(0.9);
    transform: scale(1.02);
  }
}

.about-snippet__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76,201,240,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.about-snippet__text { }

.about-snippet__text h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.about-snippet__text h2 span {
  color: var(--accent);
}

.about-snippet__bio {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 44ch;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .latest-release__grid,
  .about-snippet__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .latest-release__meta h2 { font-size: 2rem; }
}

@media (max-width: 640px) {
  .featured-beats__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; width: fit-content; }
  .hero__ctas .btn { width: 100%; }
}

/* ── Layer Matrix Stacking Fix ── */
.latest-release,
.featured-beats,
.about-snippet {
  position: relative;
  z-index: 1;
}
/* ============================================================
   HERO CANVAS ELEMENT CENTERING RESTORATION
   ============================================================ */

/* Targets the main homepage hero text wrapper to enforce center alignment */
.hero__content,
header.hero,
.hero .container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;     /* Centers all text rows globally */
  text-align: center !important;
  justify-content: center !important;
}

/* Forces sub-headlines and tags to sit centered on the horizontal grid line */
.hero__content p,
.hero p,
.hero__sub,
.hero__tagline {
  text-align: center !important;
  margin-inline: auto !important;     /* Auto balance out left/right spaces */
  max-width: 45ch !important;         /* Keeps readability sharp */
}

/* Safely centers the button action group row wrapper */
.hero__actions,
.hero__btns,
.hero .btn-group {
  display: flex !important;
  justify-content: center !important; /* Locks button blocks into dead center side-by-side positioning */
  align-items: center !important;
  gap: 1rem !important;
  width: 100% !important;
  margin-inline: auto !important;
  margin-top: 1.5rem !important;
}
