/* ==========================================================================
   MAU — minimalism with warm grit
   ========================================================================== */

:root {
  --bg: #120e0a;
  --bg-2: #1a140f;
  --bg-3: #251b14;
  --fg: #f4ebd8;
  --fg-dim: rgba(244, 235, 216, 0.62);
  --fg-mute: rgba(244, 235, 216, 0.38);
  --line: rgba(244, 235, 216, 0.12);
  --accent: #00f3ff;
  --accent-2: #d97757;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --h1: clamp(2.5rem, 7vw, 5.25rem);
  --h2: clamp(2rem, 5vw, 3.75rem);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(
      1100px 700px at 75% -10%,
      rgba(0, 243, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at -10% 110%,
      rgba(0, 243, 255, 0.06),
      transparent 60%
    ),
    linear-gradient(180deg, #120e0a 0%, #0d0a07 100%);
  background-attachment: fixed;
}

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

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

/* ====== Film grain overlay (matches user's Noise & Texture preset) ====== */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: var(--grain-url, none);
  background-repeat: repeat;
  background-size: 180px 180px;
  will-change: transform;
  animation: grainShift 1.6s steps(6) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -4%); }
  20% { transform: translate(-7%, 2%); }
  30% { transform: translate(4%, -3%); }
  40% { transform: translate(-3%, 7%); }
  50% { transform: translate(5%, 4%); }
  60% { transform: translate(-5%, -5%); }
  70% { transform: translate(3%, 3%); }
  80% { transform: translate(-2%, 6%); }
  90% { transform: translate(5%, -1%); }
  100% { transform: translate(0, 0); }
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background: radial-gradient(
    120% 90% at 50% 50%,
    transparent 55%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* ====== Masthead (floating mask + text logo) ====== */
.masthead {
  display: grid;
  place-items: center;
  padding: calc(clamp(1.25rem, 3vw, 2rem) + 96px) var(--pad);
  padding-top: max(calc(clamp(1.25rem, 3vw, 2rem) + 96px), env(safe-area-inset-top));
}

.masthead__mask {
  width: clamp(150px, 24vw, 230px);
  height: auto;
  color: var(--fg);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
  animation: float 4.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ====== Sections ====== */
main {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
}

.section--alt {
  margin-top: 1.5rem;
}

.section--alt .socials {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.section__head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
}

.section__title {
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  color: var(--fg);
}

/* ====== Link cards (Listen + Follow) ====== */
.socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.social {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(244, 235, 216, 0.03),
    rgba(244, 235, 216, 0.01)
  );
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  transition: transform 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out), background 0.5s var(--ease-out);
}

.social svg {
  width: 22px;
  height: 22px;
  color: var(--fg-dim);
  transition: color 0.4s var(--ease), transform 0.5s var(--ease-out);
}

.social:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 235, 216, 0.28);
  background: rgba(244, 235, 216, 0.04);
}

.social:hover svg {
  color: var(--accent);
  transform: rotate(-6deg) scale(1.08);
}

/* ====== Footer ====== */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--pad);
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  color: var(--fg-mute);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.footer__mark {
  width: 42px;
  height: 42px;
  color: var(--fg-dim);
  transition: color 0.3s var(--ease), transform 0.5s var(--ease);
}

.footer__mark:hover {
  color: var(--fg);
  transform: rotate(6deg) scale(1.05);
}

/* ====== Reveal animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal[data-reveal="fade"] {
  transform: translateY(0);
}

.reveal[data-reveal="logo"] {
  opacity: 0;
  transform: translateY(30px) scale(0.94);
  transition: opacity 1.4s var(--ease-out),
    transform 1.4s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ====== Mobile tweaks ====== */
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .social {
    font-size: 1.25rem;
    padding: 1.05rem 1.2rem;
  }
}
