/* ---- Self-hosted Fonts ---- */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-400.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/dm-mono-300.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-400.woff2") format("woff2");
}

/* ---- Reset & Foundations ---- */

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

:root {
  --bg: #060606;
  --fg: #d4cfc8;
  --fg-dim: #706b63;
  --fg-faint: #3a3733;
  --accent: #c4a882;
  --serif: "Instrument Serif", "Georgia", serif;
  --mono: "DM Mono", "Courier New", monospace;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-weight: 300;
  min-height: 100dvh;
  overflow-x: hidden;
}

body.landing {
  overflow-x: hidden;
  height: 100dvh;
}

a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.4s ease;
}

a:hover {
  color: var(--accent);
}

/* ---- Film Grain Overlay ---- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ---- Landing Page ---- */

.landing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* Radial haze behind the title */
.landing::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -55%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(196, 168, 130, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.landing__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 100vw;
}

.landing__name {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(3.2rem, 22vw, 7.5rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 1.6rem;
  animation: breathe 6s ease-in-out infinite, fade-up 1.4s ease forwards;
  opacity: 0;
}

@keyframes breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 0.85;
    transform: translateY(0);
  }
}

.landing__tagline {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  max-width: 32ch;
  margin: 0 auto;
  line-height: 1.7;
}

.landing__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: word-in 0.5s ease forwards;
}

.landing__word:nth-child(1) { animation-delay: 1.20s; }
.landing__word:nth-child(2) { animation-delay: 1.46s; }
.landing__word:nth-child(3) { animation-delay: 1.72s; }
.landing__word:nth-child(4) { animation-delay: 1.98s; }
.landing__word:nth-child(5) { animation-delay: 2.24s; }
.landing__word:nth-child(6) { animation-delay: 2.50s; }
.landing__word:nth-child(7) { animation-delay: 2.76s; }

.landing__word--em {
  color: var(--fg);
}

@keyframes word-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Stay Tuned ---- */

.staytuned {
  margin-top: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.8rem);
}

.staytuned__text {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
}

.staytuned__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: word-in 0.5s ease forwards;
}

.staytuned__word--1 { animation-delay: 3.6s; }
.staytuned__word--2 { animation-delay: 4.0s; }

/* ---- Equalizer Bars ---- */

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: clamp(18px, 3vw, 26px);
}

.eq__bar {
  width: clamp(2px, 0.5vw, 3px);
  background: var(--accent);
  border-radius: 1px;
  height: 0;
  opacity: 0;
}

/* Left EQ: bar heights and staggered entrance */
.eq--left .eq__bar:nth-child(1) { animation: bar-in-1 0.6s ease forwards, eq-snap-1 3.2s ease-in-out infinite; animation-delay: 4.8s, 5.6s; }
.eq--left .eq__bar:nth-child(2) { animation: bar-in-2 0.6s ease forwards, eq-snap-2 3.2s ease-in-out infinite; animation-delay: 4.9s, 5.83s; }
.eq--left .eq__bar:nth-child(3) { animation: bar-in-3 0.6s ease forwards, eq-snap-3 3.2s ease-in-out infinite; animation-delay: 5.0s, 6.06s; }
.eq--left .eq__bar:nth-child(4) { animation: bar-in-4 0.6s ease forwards, eq-snap-4 3.2s ease-in-out infinite; animation-delay: 5.1s, 6.29s; }
.eq--left .eq__bar:nth-child(5) { animation: bar-in-5 0.6s ease forwards, eq-snap-5 3.2s ease-in-out infinite; animation-delay: 5.2s, 6.52s; }

/* Right EQ: different heights for stereo feel */
.eq--right .eq__bar:nth-child(1) { animation: bar-in-6 0.6s ease forwards, eq-snap-6 3.2s ease-in-out infinite; animation-delay: 4.8s, 5.6s; }
.eq--right .eq__bar:nth-child(2) { animation: bar-in-7 0.6s ease forwards, eq-snap-7 3.2s ease-in-out infinite; animation-delay: 4.9s, 5.83s; }
.eq--right .eq__bar:nth-child(3) { animation: bar-in-8 0.6s ease forwards, eq-snap-8 3.2s ease-in-out infinite; animation-delay: 5.0s, 6.06s; }
.eq--right .eq__bar:nth-child(4) { animation: bar-in-9 0.6s ease forwards, eq-snap-9 3.2s ease-in-out infinite; animation-delay: 5.1s, 6.29s; }
.eq--right .eq__bar:nth-child(5) { animation: bar-in-10 0.6s ease forwards, eq-snap-10 3.2s ease-in-out infinite; animation-delay: 5.2s, 6.52s; }

/* Bar entrance keyframes — each bar grows to its own height */
@keyframes bar-in-1  { to { height: 60%;  opacity: 1; } }
@keyframes bar-in-2  { to { height: 85%;  opacity: 1; } }
@keyframes bar-in-3  { to { height: 40%;  opacity: 1; } }
@keyframes bar-in-4  { to { height: 95%;  opacity: 1; } }
@keyframes bar-in-5  { to { height: 55%;  opacity: 1; } }
@keyframes bar-in-6  { to { height: 50%;  opacity: 1; } }
@keyframes bar-in-7  { to { height: 90%;  opacity: 1; } }
@keyframes bar-in-8  { to { height: 45%;  opacity: 1; } }
@keyframes bar-in-9  { to { height: 75%;  opacity: 1; } }
@keyframes bar-in-10 { to { height: 65%;  opacity: 1; } }

/* EQ looping keyframes — each bar bounces around its own base height */
@keyframes eq-snap-1  { 0% { height: 60%; }  20% { height: 20%; } 40% { height: 60%; }  60% { height: 35%; } 80% { height: 45%; }  100% { height: 60%; } }
@keyframes eq-snap-2  { 0% { height: 85%; }  20% { height: 20%; } 40% { height: 85%; }  60% { height: 35%; } 80% { height: 70%; }  100% { height: 85%; } }
@keyframes eq-snap-3  { 0% { height: 40%; }  20% { height: 20%; } 40% { height: 40%; }  60% { height: 35%; } 80% { height: 25%; }  100% { height: 40%; } }
@keyframes eq-snap-4  { 0% { height: 95%; }  20% { height: 20%; } 40% { height: 95%; }  60% { height: 35%; } 80% { height: 80%; }  100% { height: 95%; } }
@keyframes eq-snap-5  { 0% { height: 55%; }  20% { height: 20%; } 40% { height: 55%; }  60% { height: 35%; } 80% { height: 40%; }  100% { height: 55%; } }
@keyframes eq-snap-6  { 0% { height: 50%; }  20% { height: 20%; } 40% { height: 50%; }  60% { height: 35%; } 80% { height: 35%; }  100% { height: 50%; } }
@keyframes eq-snap-7  { 0% { height: 90%; }  20% { height: 20%; } 40% { height: 90%; }  60% { height: 35%; } 80% { height: 75%; }  100% { height: 90%; } }
@keyframes eq-snap-8  { 0% { height: 45%; }  20% { height: 20%; } 40% { height: 45%; }  60% { height: 35%; } 80% { height: 30%; }  100% { height: 45%; } }
@keyframes eq-snap-9  { 0% { height: 75%; }  20% { height: 20%; } 40% { height: 75%; }  60% { height: 35%; } 80% { height: 60%; }  100% { height: 75%; } }
@keyframes eq-snap-10 { 0% { height: 65%; }  20% { height: 20%; } 40% { height: 65%; }  60% { height: 35%; } 80% { height: 50%; }  100% { height: 65%; } }

/* Mirror the right EQ so it feels like a stereo pair */
.eq--right {
  transform: scaleX(-1);
}

/* ---- Footer ---- */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.4rem 2rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--fg);
  z-index: 2;
  flex-wrap: wrap;
}

.footer a {
  color: var(--fg);
}

.footer a:hover {
  color: var(--accent);
}

.footer__links {
  display: flex;
  gap: 1.6rem;
}

/* ---- Privacy Page ---- */

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page__header {
  position: absolute;
  top: 0;
  left: 0;
  padding: 2rem;
  z-index: 2;
}

.page__home {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 0.5rem 0;
}

.page__home:hover {
  color: var(--accent);
}

.page__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

.page__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  color: var(--fg);
  margin-bottom: 2.4rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.page__text {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: var(--fg-dim);
  max-width: 48ch;
}

.page__footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--fg);
  z-index: 2;
}

.page__footer a {
  color: var(--fg);
}

.page__footer a:hover {
  color: var(--accent);
}

.page__footer__links {
  display: flex;
  gap: 1.6rem;
}

/* ---- Responsive ---- */

@media (max-width: 480px) {
  .footer,
  .page__footer {
    padding: 1.2rem 1.4rem;
  }

  .footer {
    position: relative;
  }

  body.landing {
    overflow-x: hidden;
    height: 100dvh;
  }

  .landing {
    min-height: calc(100dvh - 4rem);
  }

  .landing__content {
    padding: 1.2rem;
  }

  .landing__name {
    margin-bottom: 1.2rem;
  }

  .landing__tagline {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }

  .staytuned {
    margin-top: 2rem;
    gap: 0.8rem;
  }

  .staytuned__text {
    font-size: 1.8rem;
  }

  .footer,
  .page__footer {
    font-size: 0.75rem;
    position: relative;
  }

  .page__title {
    font-size: clamp(2.8rem, 12vw, 5rem);
  }

  .page__text {
    font-size: 0.9rem;
  }

  .page__home {
    font-size: 0.9rem;
  }

  .page__header {
    padding: 1.4rem;
  }

  .page__body {
    padding: 1.2rem;
  }

  .page__footer {
    position: relative;
  }
}
