/* ============================================================================
   /listen — Omar Harfouch smart landing page
   Self-contained, mobile-first, zero-dependency CSS.
   Authored directly (source mirror: assets/scss/listen.scss).
   ========================================================================== */

:root {
  --bg: #070707;
  --bg-2: #111111;
  --text: #F5F1E8;
  --text-dim: #AAA69D;
  --gold: #C7A46A;
  --spotify: #1ED760;
  --border: rgba(255, 255, 255, 0.10);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.lp-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.lp a { color: inherit; text-decoration: none; }
.lp img, .lp video { display: block; max-width: 100%; }

/* ── Reveal animation (progressive; no layout shift) ───────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Section eyebrow ───────────────────────────────────────────────────── */
.lp-section-eyebrow {
  margin: 0 0 1.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─────────────────────────── Spotify CTA ──────────────────────────────── */
.spot-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0 2rem;
  background: var(--spotify);
  color: #06230f;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  box-shadow: 0 10px 34px -12px rgba(30, 215, 96, 0.55);
}
.spot-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 42px -12px rgba(30, 215, 96, 0.7); background: #25e469; }
.spot-cta:active { transform: translateY(0); }
.spot-cta .spot-ico { flex: none; }
.spot-cta:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* ─────────────────────────── Top bar ──────────────────────────────────── */
.lp-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1rem, 5vw, 2.5rem);
}
.lp-top__name {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
}
.lp-top a[data-spotify] {
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  color: var(--spotify);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color 0.25s, transform 0.25s;
}
.lp-top a[data-spotify]:hover { border-color: var(--spotify); transform: scale(1.06); }

/* ─────────────────────────── Hero ─────────────────────────────────────── */
.lp-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 5vw, 2.5rem) clamp(2.4rem, 7vw, 4rem);
  overflow: hidden;
}
.lp-hero__media { position: absolute; inset: 0; z-index: 0; }
.lp-hero__img, .lp-hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--obj-pos, 50% 30%);
}
.lp-hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,7,7,0.55) 0%, rgba(7,7,7,0.15) 32%, rgba(7,7,7,0.35) 60%, rgba(7,7,7,0.95) 100%),
    radial-gradient(120% 80% at 50% 120%, rgba(7,7,7,0.9), transparent 60%);
}
.lp-hero__content { position: relative; z-index: 2; width: 100%; max-width: 640px; }
.lp-hero__eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--gold);
}
.lp-hero__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 13vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.lp-hero__rule { width: 54px; height: 1px; margin: 1.3rem 0; background: var(--gold); opacity: 0.8; }
.lp-hero__headline {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 5.5vw, 2rem);
  line-height: 1.2;
  color: var(--text);
}
.lp-hero__sub {
  margin: 0 0 1.8rem;
  max-width: 34ch;
  font-size: 1rem;
  color: var(--text-dim);
}
.lp-hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.lp-hero__cta .spot-cta { width: 100%; max-width: 360px; }
.lp-hero__micro { margin: 0; font-size: 0.82rem; color: var(--text-dim); }
.lp-hero__micro-dim { opacity: 0.55; }
.lp-hero__preview {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.3rem;
  padding: 0.4rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.lp-hero__preview:hover { opacity: 1; }
.lp-hero__preview-ico { color: var(--gold); font-size: 0.7rem; }
.lp-hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 1rem;
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold), transparent);
  opacity: 0.5;
  transform: translateX(-50%);
}

/* ─────────────────────────── Featured ─────────────────────────────────── */
.lp-featured {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1rem, 5vw, 2.5rem);
}
.lp-featured__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.lp-featured__card:hover { border-color: rgba(199,164,106,0.4); transform: translateY(-3px); }
.lp-featured__art { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 1 / 1; }
.lp-featured__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.lp-featured__card:hover .lp-featured__art img { transform: scale(1.04); }
.lp-featured__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.4rem 0.6rem 0.9rem; }
.lp-featured__title { font-family: var(--serif); font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.05; }
.lp-featured__artist { font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.lp-featured__desc { margin-top: 0.3rem; color: var(--text-dim); max-width: 46ch; }
.lp-featured__link { margin-top: 0.6rem; font-weight: 700; color: var(--spotify); letter-spacing: 0.01em; }

/* ─────────────────────────── Audio preview ────────────────────────────── */
.lp-audio {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 4rem) clamp(1rem, 5vw, 2.5rem);
  text-align: center;
}
.lp-audio__title { margin: 0 0 2rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 6vw, 2.2rem); }
.lp-audio__player {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-2);
}
.lp-audio__toggle {
  flex: none;
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.lp-audio__toggle:hover { border-color: var(--gold); color: var(--gold); }
.lp-audio__toggle.is-playing { background: var(--gold); color: #1a1407; border-color: var(--gold); }
.lp-audio__icon--play { margin-left: 2px; font-size: 0.85rem; }
.lp-audio__icon--pause { letter-spacing: -2px; font-size: 0.9rem; }
.lp-audio__wave {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  overflow: hidden;
}
.lp-audio__wave > span {
  flex: 1;
  min-width: 2px;
  height: calc(18% + (var(--i) % 7) * 11%);
  background: var(--text-dim);
  opacity: 0.35;
  border-radius: 2px;
  transform-origin: center;
}
.lp-audio__wave.is-playing > span {
  animation: lpwave 1.1s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.045s);
  background: var(--gold);
  opacity: 0.6;
}
@keyframes lpwave { 0%,100% { transform: scaleY(0.5); } 50% { transform: scaleY(1.15); } }
@media (prefers-reduced-motion: reduce) { .lp-audio__wave.is-playing > span { animation: none; } }
.lp-audio__progress {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 0;
  background: rgba(199,164,106,0.14);
  border-right: 1px solid var(--gold);
  pointer-events: none;
}
.lp-audio__time { flex: none; min-width: 40px; font-size: 0.82rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.lp-audio__continue {
  margin-top: 1.6rem;
  background: transparent;
  color: var(--spotify);
  border: 1px solid var(--spotify);
  box-shadow: none;
}
.lp-audio__continue:hover { background: var(--spotify); color: #06230f; }
.lp-audio__continue[hidden] { display: none; }

/* ─────────────────────────── Artist intro ─────────────────────────────── */
.lp-intro {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1rem, 5vw, 2.5rem);
  align-items: center;
}
.lp-intro__media { overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 5; }
.lp-intro__media img { width: 100%; height: 100%; object-fit: cover; }
.lp-intro__lead { margin: 0 0 1.2rem; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.05; }
.lp-intro__body { margin: 0; max-width: 42ch; color: var(--text-dim); }

/* ─────────────────────────── Final CTA ────────────────────────────────── */
.lp-final {
  position: relative;
  padding: clamp(4rem, 12vw, 8rem) clamp(1rem, 5vw, 2.5rem);
  text-align: center;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(199,164,106,0.08), transparent 55%),
    var(--bg-2);
  border-top: 1px solid var(--border);
}
.lp-final__name { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 12vw, 5.5rem); line-height: 0.95; }
.lp-final__line { margin: 0.8rem 0 2.2rem; font-size: 1.05rem; letter-spacing: 0.04em; color: var(--text-dim); }

/* ─────────────────────────── Footer ───────────────────────────────────── */
.lp-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.4rem clamp(1rem, 5vw, 2.5rem) calc(2.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  text-align: center;
}
.lp-footer__copy { margin: 0; font-size: 0.82rem; color: var(--text-dim); }
.lp-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
.lp-footer__links a { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--text-dim); transition: color 0.2s; }
.lp-footer__links a:hover { color: var(--text); }

/* ─────────────────────────── Sticky mobile CTA ────────────────────────── */
.lp-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 0.7rem clamp(1rem, 5vw, 2rem) calc(0.7rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(7,7,7,0), rgba(7,7,7,0.92) 40%);
  transform: translateY(120%);
  transition: transform 0.4s var(--ease);
  pointer-events: none;
}
.lp-sticky.is-visible { transform: none; pointer-events: auto; }
.lp-sticky[hidden] { display: block; } /* JS toggles .is-visible; keep in flow */
.lp-sticky .spot-cta { width: 100%; max-width: none; }

@media (min-width: 900px) {
  .lp-sticky { display: none; } /* desktop keeps hero + final CTAs only */
}

/* ─────────────────────────── Desktop layout ───────────────────────────── */
@media (min-width: 768px) {
  .lp-featured__card { grid-template-columns: minmax(0, 320px) 1fr; align-items: center; gap: 2.4rem; padding: 1.6rem; }
  .lp-intro { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
@media (min-width: 1024px) {
  .lp-hero { align-items: center; }
  .lp-hero__content { max-width: 560px; margin-left: clamp(2rem, 6vw, 6rem); }
  /* subject occupies the right ~half; content sits left */
  .lp-hero__img, .lp-hero__video { object-position: 75% 28%; }
}
