:root {
  --cream: #FCF9F0;
  --greige: #F2F4EC;
  --ink: #424242;
  --ink-soft: #6b6b6b;
  --gold: #d9b64a;
  --gold-deep: #b8922f;
  --line: rgba(66, 66, 66, 0.14);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

em { font-style: italic; color: var(--gold-deep); }

/* --- Film grain overlay --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(252, 249, 240, 0.82);
  backdrop-filter: blur(10px);
  padding-top: 14px;
  padding-bottom: 14px;
  box-shadow: 0 1px 0 var(--line);
}
.brand img { height: 62px; width: auto; transition: height 0.4s var(--ease); }
.site-header.is-scrolled .brand img { height: 46px; }

.main-nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.main-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  transition: color 0.3s var(--ease);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.site-header.is-scrolled .main-nav a { color: var(--ink); text-shadow: none; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold-deep);
  transition: width 0.35s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 16px 40px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--glass {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(20, 20, 20, 0.28);
  backdrop-filter: blur(6px);
}
.btn--glass:hover { background: rgba(20, 20, 20, 0.5); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.btn--solid {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}
.btn--solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); box-shadow: 0 12px 30px rgba(184,146,47,0.35); }

/* --- Typography helpers --- */
.script-heading {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  color: var(--gold-deep);
  margin: 0 0 0.6em;
}
.section-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -0.15em;
  width: 46px; height: 2px;
  background: var(--gold);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin: 0;
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__bg {
  position: absolute;
  inset: -12% 0 -12% 0;   /* extra height so parallax never reveals edges */
  z-index: 0;
  will-change: transform;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 30%, transparent 40%, rgba(0,0,0,0.35) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.35));
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  margin-top: 8vh;
}
.hero__name {
  width: min(560px, 78vw);
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.45));
  will-change: transform;
}
.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px; height: 40px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: #fff;
  animation: cue 1.8s infinite;
}
@keyframes cue { 0%{opacity:0;transform:translateY(0)} 30%{opacity:1} 100%{opacity:0;transform:translateY(14px)} }

/* --- Sections base --- */
section { position: relative; }
.presave, .about, .music, .signup {
  padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 56px);
}
/* Tighten the About→Music seam so the two stacked paddings don't create a huge gap */
.about { padding-bottom: clamp(40px, 6vh, 72px); }
.music { padding-top: clamp(40px, 6vh, 72px); }

/* --- PRE-SAVE --- */
.presave { text-align: center; }
.presave__inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.presave__art {
  margin: 8px 0 40px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
  will-change: transform;
  transition: transform 0.15s linear;
}
.presave__art img { width: min(420px, 80vw); }

/* --- ABOUT --- */
.about__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.about__frame {
  overflow: hidden;
}
.about__frame img {
  display: block;
  width: 100%;
  height: auto;      /* natural 3:4 portrait, matches danasalah.com */
}
.about__text .lead {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
  margin-top: 0;
}
.about__text p { color: var(--ink-soft); }

/* --- MUSIC --- */
.music__head {
  max-width: var(--max);
  margin: 0 auto 48px;
  text-align: center;
}
.music__head .section-title::after { left: 50%; transform: translateX(-50%); }

.video-carousel {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 34px;
  scrollbar-width: none;
}
.video-carousel::-webkit-scrollbar { display: none; }
.video-card {
  flex: 0 0 min(460px, 82vw);
  scroll-snap-align: center;
  margin: 0;
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.20);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.video-card:hover .video-embed {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card figcaption {
  margin-top: 20px;
  text-align: center;
}
.video-card figcaption a {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.video-card figcaption a:hover { color: var(--gold-deep); }
.video-card figcaption span[dir="rtl"] {
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  font-size: 0.92em;
}

/* --- SIGN-UP --- */
.signup {
  text-align: center;
  background: var(--greige);
  border-top: 1px solid rgba(66, 66, 66, 0.06);
  border-bottom: 1px solid rgba(66, 66, 66, 0.06);
}
.signup__inner { max-width: 560px; margin: 0 auto; }
.signup__form {
  display: flex;
  max-width: 520px;
  margin: 8px auto 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.signup__form input {
  flex: 1;
  min-width: 0;
  padding: 16px 28px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
}
.signup__form input::placeholder { color: #cfccc6; letter-spacing: 0.02em; }
.signup__submit {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  padding: 0 34px;
  background: #c9c2b9;
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.signup__submit:hover { background: var(--ink); color: #fff; }
.signup__note { margin-top: 18px; color: var(--gold-deep); font-family: "Cormorant Garamond", serif; font-size: 1.3rem; font-style: italic; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px clamp(20px, 5vw, 56px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.footer__brand img { height: 72px; }
.footer__nav, .footer__social { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer__nav a { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem; }
.footer__social a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.3s var(--ease);
}
.footer__social a:hover { color: var(--gold-deep); }
.footer__copy { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }

/* --- Reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --- Responsive --- */
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .main-nav { gap: 18px; }
  .brand img { height: 48px; }
}
@media (max-width: 560px) {
  .main-nav a { font-size: 0.68rem; letter-spacing: 0.16em; }
  .tracklist a { padding: 20px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .parallax, .hero__name, .presave__art, .about__frame img { transform: none !important; }
  .scroll-cue span { animation: none; }
}
