/* ════════════════════════════════════════
   Same Old Tapes — Official Site
   Redesign 2025
════════════════════════════════════════ */

:root {
  --bg:       #161616;
  --surface:  #1e1e1e;
  --text:     #e8e4de;
  --muted:    #4a4a4a;
  --border:   rgba(232, 228, 222, 0.08);
  --pill-bg:  rgba(22, 22, 22, 0.88);
  --ease:     cubic-bezier(0.55, 0, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: auto; /* let Lenis handle smooth scroll */
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Lenis ─── */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* ─── Fixed center logo ─── */
.bg-logo {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bg-logo img {
  width: clamp(900px, 30vw, 420px);
  height: auto;
  opacity: 0.17;
  user-select: none;
}

/* ─── Grain overlay ─── */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ─── Bottom Pill Nav ─── */
.pill-nav {
  position: fixed;
  bottom: 32px;
  left: 50%;
  translate: -50% 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 6px;
  background: var(--pill-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 999px;
  border: 1px solid var(--border);
  /* Load animation */
  opacity: 0;
  translate: -50% 12px;
  transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out);
}

body:not(.is-loading) .pill-nav {
  opacity: 1;
  translate: -50% 0;
  transition-delay: 0.5s;
}

.pill-item {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 22px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}

.pill-item:hover {
  color: var(--text);
}

.pill-item.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

/* ─── Container ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ─── Section label ─── */
.sec-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.s-hero {
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  transform: translateY(-50px);
}

/* Logo */
.hero-logo-wrap {
  opacity: 0;
  transform: scale(1.18) translateY(-10px);
  filter: blur(28px);
  transition:
    opacity  1.1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter    0.8s var(--ease-out);
}

body:not(.is-loading) .hero-logo-wrap {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0px);
  transition-delay: 0.05s;
}

.hero-logo {
  width: clamp(100px, 14vw, 180px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* Band name */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-name {
  display: flex;
  gap: 0.3em;
  flex-wrap: wrap;
  justify-content: center;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(44px, 10vw, 120px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateX(-36px);
  filter: blur(16px);
  transition:
    opacity   4s   var(--ease-out),
    transform 4.5s var(--ease-out),
    filter    3s   var(--ease-out);
}

body:not(.is-loading) .hero-word {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0px);
  transition-delay: 0.3s;
}

.hero-sub {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateY(10px);
  filter: blur(8px);
  transition:
    opacity   0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter    0.6s var(--ease-out);
}

body:not(.is-loading) .hero-sub {
  opacity: 1;
  transform: none;
  filter: blur(0px);
  transition-delay: 0.76s;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 96px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s;
}

body:not(.is-loading) .scroll-cue {
  opacity: 1;
  transition-delay: 1s;
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--muted));
  animation: scrollPulse 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ═══════════════════════════════════════
   MARQUEE
═══════════════════════════════════════ */
.s-marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marqueeScroll 60s linear infinite;
  font-family: "Minion", Georgia, serif;
  font-style: normal;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ═══════════════════════════════════════
   LATEST RELEASE
═══════════════════════════════════════ */
.s-release {
  padding: 120px 0;
}

.release-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.release-cover {
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
}

.release-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.release-cover:hover img {
  transform: scale(1.03);
}

.release-title {
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}

.release-meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}

.stream-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.stream-list li {
  border-bottom: 1px solid var(--border);
}

.stream-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s, gap 0.3s var(--ease-out);
}

.stream-list a:hover {
  gap: 18px;
}

.stream-list img {
  width: 22px;
  height: auto;
  flex-shrink: 0;
}

.stream-list span {
  flex: 1;
}

.stream-list svg {
  width: 12px;
  height: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   DISCOGRAPHY
═══════════════════════════════════════ */
.s-disco {
  padding-top: 0;
  padding-bottom: 120px;
}

.s-disco .container {
  margin-bottom: 32px;
}

.disco-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.disco-scroll::-webkit-scrollbar { display: none; }
.disco-scroll.is-grabbing { cursor: grabbing; }

.disco-track {
  display: flex;
  gap: 20px;
  padding: 0 60px;
  width: max-content;
}

.disco-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 220px;
  flex-shrink: 0;
}

.disco-cover {
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
}

.disco-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.disco-item:hover .disco-cover img {
  transform: scale(1.04);
}

.disco-name {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════
   LIVE
═══════════════════════════════════════ */
.s-live {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.live-list {
  list-style: none;
  border-bottom: 1px solid var(--border);
}

.live-row {
  display: grid;
  grid-template-columns: 70px 140px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  transition: opacity 0.2s;
}

.live-row:hover {
  opacity: 0.55;
}

.live-date {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.live-city {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-name {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.s-about {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
}

.about-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.about-img:hover img {
  transform: scale(1.03);
}

.about-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 28px;
}

.about-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.s-contact {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.contact-heading {
  font-size: clamp(52px, 10vw, 130px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 48px;
}

.contact-link {
  display: inline-block;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: color 0.25s, border-color 0.25s;
}

.contact-link:hover {
  color: var(--text);
  border-color: rgba(232, 228, 222, 0.4);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  padding: 28px 60px 100px; /* bottom space for pill nav */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ═══════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════ */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js-delay-1.is-visible { transition-delay: 0.14s; }
.js-delay-2.is-visible { transition-delay: 0.28s; }
.js-delay-3.is-visible { transition-delay: 0.42s; }

/* ═══════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════ */
.s-about-page {
  padding: 140px 0 120px;
}

.about-page-hero {
  margin-bottom: 80px;
}

.about-page-title {
  font-size: clamp(56px, 12vw, 160px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 20px;
}

.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-page-img {
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
  position: sticky;
  top: 32px;
}

.about-page-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-page-body {
  padding-top: 8px;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .container {
    padding: 0 32px;
  }

  .release-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-page-img {
    position: static;
  }

  .disco-track {
    padding: 0 32px;
  }

  .disco-item {
    width: 180px;
  }

  .live-row {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }

  .live-city {
    display: none;
  }

  .site-footer {
    padding: 28px 32px 96px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .s-release,
  .s-live,
  .s-about,
  .s-contact {
    padding: 80px 0;
  }

  .release-grid,
  .about-grid {
    gap: 32px;
  }

  .disco-track {
    padding: 0 20px;
  }

  .disco-item {
    width: 150px;
  }

  .pill-item {
    padding: 8px 16px;
    font-size: 12px;
  }

  .s-marquee {
    padding: 9px 0;
  }

  .marquee-track {
    font-size: 14px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 28px 20px 88px;
  }
}
