/* ============================================================
   POST SONDER — Landing Page Stylesheet
   ------------------------------------------------------------
   Sections (in order):
     1. RESET & BASE
     2. TOKENS (colors, spacing, type)
     3. UTILITIES (mono, kicker, dim, rule)
     4. GRAIN OVERLAY
     5. NAVIGATION
     6. BUTTONS
     7. HERO
     8. SECTIONS (Perspective, Contact shared layout)
     9. RELEASES / TRACKLIST / PLAYER
    10. CONTACT FORM
    11. FOOTER
    12. MOTION / REVEAL
    13. RESPONSIVE
   ============================================================ */


/* -----------------------------------
   1. RESET & BASE
   ----------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
::selection { background: #fff; color: #000; }


/* -----------------------------------
   2. TOKENS
   ----------------------------------- */
:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --dim:   rgba(255, 255, 255, 0.4);
  --faint: rgba(255, 255, 255, 0.1);
  --hairline: rgba(255, 255, 255, 0.1);

  --pad-x: clamp(16px, 4vw, 64px);
  --sect-y: clamp(80px, 12vw, 180px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}


/* -----------------------------------
   3. UTILITIES
   ----------------------------------- */
.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.kicker {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.35em;
}
.dim  { color: var(--dim); }
.rule {
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--dim);
  vertical-align: middle;
  margin-right: 10px;
}


/* -----------------------------------
   4. GRAIN OVERLAY
   ----------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}


/* -----------------------------------
   5. NAVIGATION
   ----------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120; /* above the grain overlay */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__brand,
.nav__links button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  transition: color 300ms var(--ease);
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav__dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #fff;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.nav__links { display: flex; gap: 32px; }
.nav__links button { position: relative; padding: 4px 0; }
.nav__links button::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 500ms var(--ease);
}
.nav__links button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}


/* -----------------------------------
   6. BUTTONS
   ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.7);
  background: transparent;
  color: #fff;
  transition: background 500ms var(--ease), color 500ms var(--ease), border-color 500ms var(--ease);
}
.btn:hover { background: #fff; color: #000; }
.btn__line {
  display: inline-block;
  width: 24px; height: 1px;
  background: currentColor;
  transition: width 500ms var(--ease);
}
.btn:hover .btn__line { width: 40px; }

.btn--outline { border-color: rgba(255,255,255,0.2); color: var(--muted); }
.btn--outline:hover { color: #fff; border-color: #fff; background: transparent; }

.btn--ghost {
  border: 0;
  padding: 4px 0;
  color: var(--muted);
  position: relative;
}
.btn--ghost::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 500ms var(--ease);
}
.btn--ghost:hover { color: #fff; background: transparent; }
.btn--ghost:hover::after { transform: scaleX(1); transform-origin: left; }


/* -----------------------------------
   7. HERO
   ----------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
}
.hero__grid::before,
.hero__grid::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
}
.hero__grid::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hero__grid::after  { top: 50%; left: 0; right: 0; height: 1px; }

.hero__meta {
  position: absolute;
  top: 80px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}
.hero__meta--left  { left: var(--pad-x); }
.hero__meta--right { right: var(--pad-x); text-align: right; }

.hero__portrait {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 46%;
}
.hero__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1);
}
/* Dark vignette: soft edges + left fade so the portrait blends into the page */
.hero__portrait-fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 70% at 55% 35%, transparent 40%, rgba(0,0,0,0.85) 100%),
    linear-gradient(to left, transparent 55%, #000 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 18%, transparent 65%, #000 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  padding-top: 160px;
  padding-bottom: 80px;
  max-width: 60%;
}

.hero__name {
  margin: 24px 0 0;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-size: clamp(64px, 14vw, 240px);
  user-select: none;
}

.hero__tagline {
  margin: 40px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}

.hero__ctas {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Social icons, bottom right of the hero, in line with the buttons */
.hero__socials {
  position: absolute;
  z-index: 3;
  right: var(--pad-x);
  bottom: 80px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero__socials a {
  display: block;
  width: 20px; height: 20px;
  color: rgba(255,255,255,0.7);
  transition: color 300ms var(--ease), transform 300ms var(--ease);
}
.hero__socials a:hover { color: #fff; transform: translateY(-2px); }
.hero__socials svg { width: 100%; height: 100%; display: block; }

.hero__gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(20,20,20,0.5) 55%, #000 100%);
}


/* -----------------------------------
   8. SECTIONS (shared layout)
   ----------------------------------- */
.section {
  padding: var(--sect-y) var(--pad-x);
  border-bottom: 1px solid var(--hairline);
}

.section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .section__grid {
    grid-template-columns: 4fr 7fr;
    gap: 64px;
  }
}

.section__heading {
  margin: 16px 0 0;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-size: clamp(40px, 6vw, 88px);
}
.section__heading--tight {
  /* narrower column → naturally wraps to two lines */
  max-width: 6ch;
  font-size: clamp(44px, 7vw, 104px);
}

.meta-since { margin-top: 32px; color: var(--muted); font-size: 10px; }

.bio p {
  margin: 0 0 24px 0;
  color: rgba(255,255,255,0.8);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.7;
  max-width: 62ch;
}
.bio--full { max-width: 72ch; margin: 0 auto; }
.bio--full p { font-size: clamp(17px, 1.4vw, 22px); max-width: none; }
.bio .index {
  color: var(--dim);
  font-size: 10px;
  margin-right: 12px;
  vertical-align: top;
}


/* -----------------------------------
   9. RELEASES / TRACKLIST / PLAYER
   ----------------------------------- */
.releases__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.releases__counter { color: var(--muted); font-size: 10px; }

.releases__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.releases__left, .releases__right { min-width: 0; } /* stop long titles widening the page */
@media (min-width: 1024px) {
  .releases__body {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
  }
  .releases__right {
    padding-left: 64px;
    border-left: 1px solid var(--hairline);
  }
}

/* Featured cover */
.cover {
  position: relative;
  z-index: 105; /* above the grain overlay so the artwork shows untouched */
  margin: 0;
  aspect-ratio: 1 / 1;
  background: #000;
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.cover img {
  width: 100%; height: 100%;
  object-fit: cover; /* shown exactly as the file, no filters */
}
.cover__meta {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  font-size: 10px;
  color: #fff;
  mix-blend-mode: difference;
}
.cover__meta > div:first-child { display: flex; justify-content: space-between; }

/* Album selector list */
.album-list { margin-top: 32px; border-top: 1px solid var(--hairline); }
.album-list li {
  border-bottom: 1px solid var(--hairline);
}
.album-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  text-align: left;
  color: var(--muted);
  transition: color 400ms var(--ease);
}
.album-list button:hover { color: #fff; }
.album-list button.is-active { color: #fff; }
.album-list .idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: currentColor;
  margin-right: 16px;
}
.album-list .title {
  flex: 1;
  min-width: 0;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Album subtitle in brackets, e.g. "(Interiority)": Archivo Light */
.subtitle { font-weight: 300; }
/* Main album title only: subtitle on its own line, 60% of the title size */
.album-title .subtitle { display: block; font-size: 0.6em; margin-top: 0.08em; letter-spacing: -0.01em; }
.album-list .title .label {
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.3); /* subtle dark grey */
  font-weight: 200;                /* Archivo Extra Light */
}
.album-list .year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--dim);
  margin-right: 12px;
}
.album-list .tick {
  display: inline-block;
  width: 16px; height: 1px;
  background: currentColor;
  transition: width 500ms var(--ease);
}
.album-list button.is-active .tick { width: 40px; }

/* Tracklist right column */
.album-title {
  margin: 16px 0 0;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-size: clamp(44px, 7vw, 112px);
}
.album-format { color: var(--muted); font-size: 11px; margin-top: 16px; }

.tracklist {
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.tracklist li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: transform 350ms var(--ease);
}
.tracklist li:last-child { border-bottom: 0; }
.tracklist li:hover { transform: translateX(6px); }
.tracklist .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dim);
  width: 56px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.tracklist .num .glyph { color: var(--muted); }
.tracklist li.is-playing .num .glyph {
  display: inline-block;
  width: 8px; height: 8px;
  background: #fff;
  animation: blink 1.6s ease-in-out infinite;
}
.tracklist .name {
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  flex: 1;
}
.tracklist .state {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--dim);
}
.tracklist li:hover .state { color: var(--muted); }
.tracklist li.is-playing .state { color: #fff; }

/* Inline player */
.player {
  margin-top: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #000;
}
.player__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}
.player__now {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.player__close {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}
.player__close:hover { color: #fff; }
.player iframe { display: block; }

.releases__ctas { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }


/* -----------------------------------
  10. CONTACT FORM
   ----------------------------------- */
.contact__copy {
  margin: 32px 0 0;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.6;
}
.contact__email {
  display: inline-block;
  margin-top: 40px;
  font-size: 14px;
  letter-spacing: 0.25em;
  position: relative;
}
.contact__email::after {
  content: '';
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 500ms var(--ease);
}
.contact__email:hover::after {
  transform: scaleX(1); transform-origin: left;
}

.form { display: flex; flex-direction: column; gap: 24px; }
.field { display: block; }
.field .kicker { display: block; }
.input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 400ms ease;
}
textarea.input { resize: none; min-height: 120px; }
.input::placeholder {
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
}
.input:focus { border-color: #fff; }

.form__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; gap: 16px; flex-wrap: wrap;
}
.form__note { font-size: 10px; color: var(--dim); transition: color 400ms var(--ease); }
.form__note[data-state="sending"] { color: var(--muted); }
.form__note[data-state="success"] { color: #fff; }
.form__note[data-state="error"]   { color: #fff; opacity: 0.85; }


/* -----------------------------------
  11. FOOTER
   ----------------------------------- */
.footer { padding: 64px var(--pad-x) 40px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 5fr 4fr 3fr;
    gap: 64px;
  }
}

.footer__ps {
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-size: clamp(56px, 12vw, 200px);
}
.footer__years { color: var(--muted); font-size: 10px; margin-top: 8px; }

.socials { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.socials li { display: flex; align-items: baseline; gap: 16px; }
.socials .name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  width: 100px;
}
.socials a {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
}
.socials a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 500ms var(--ease);
}
.socials a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer__legal { text-align: left; }
@media (min-width: 900px) {
  .footer__legal { text-align: right; }
}
.footer__legal-text { color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 16px; }

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 10px;
  color: var(--dim);
}


/* -----------------------------------
  12. MOTION / REVEAL
   ----------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* -----------------------------------
  13. RESPONSIVE
   ----------------------------------- */
@media (max-width: 768px) {
  .nav { height: 52px; }
  .nav__links { gap: 16px; }
  .nav__brand, .nav__links button { font-size: 10px; letter-spacing: 0.2em; }

  .hero__portrait { width: 100%; opacity: 0.55; }
  .hero__portrait-fade { background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.5) 40%, transparent 100%); }
  .hero__content { max-width: 100%; padding-bottom: 112px; }
  .hero__socials { right: auto; left: var(--pad-x); bottom: 40px; height: auto; }

  .releases__ctas .btn { padding: 10px 16px; }
}
