:root {
  --bg: rgb(0, 0, 0);
  --fg: rgb(231, 234, 255);
  --fg-dim: rgba(231, 234, 255, 0.6);
  --fg-faint: rgba(231, 234, 255, 0.35);
  --surface: rgba(231, 234, 255, 0.05);
  --surface-hover: rgba(231, 234, 255, 0.09);
  --border: rgba(231, 234, 255, 0.1);
  --radius: 12px;
  --max-w: 1440px;
  --pad: clamp(16px, 3vw, 32px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.28s; }
::view-transition-old(root) { animation-timing-function: ease-in; }
::view-transition-new(root) { animation-timing-function: var(--ease-out); }

html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

@keyframes item-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes img-in { from { opacity: 0; } to { opacity: 1; } }

/* Grid entrance — staggered fade-up (first 24 items) */
.music-grid > *, .videos-grid > *, [data-merch-grid] > * {
  animation: item-in 0.5s var(--ease-out) both;
}
.music-grid > *:nth-child(1),
.videos-grid > *:nth-child(1),
[data-merch-grid] > *:nth-child(1) { animation-delay: 20ms; }
.music-grid > *:nth-child(2),
.videos-grid > *:nth-child(2),
[data-merch-grid] > *:nth-child(2) { animation-delay: 60ms; }
.music-grid > *:nth-child(3),
.videos-grid > *:nth-child(3),
[data-merch-grid] > *:nth-child(3) { animation-delay: 100ms; }
.music-grid > *:nth-child(4),
.videos-grid > *:nth-child(4),
[data-merch-grid] > *:nth-child(4) { animation-delay: 140ms; }
.music-grid > *:nth-child(5),
.videos-grid > *:nth-child(5),
[data-merch-grid] > *:nth-child(5) { animation-delay: 180ms; }
.music-grid > *:nth-child(6),
.videos-grid > *:nth-child(6),
[data-merch-grid] > *:nth-child(6) { animation-delay: 220ms; }
.music-grid > *:nth-child(n+7),
.videos-grid > *:nth-child(n+7) { animation-delay: 250ms; }

/* Image fade-in once loaded */
img[data-loaded] { animation: img-in 0.4s var(--ease-out); }

/* Card entrance on home page */
.cards > * { animation: item-in 0.5s var(--ease-out) both; }
.cards > *:nth-child(1) { animation-delay: 80ms; }
.cards > *:nth-child(2) { animation-delay: 160ms; }
.cards > *:nth-child(3) { animation-delay: 240ms; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}

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

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--pad);
  gap: 24px;
  min-height: calc(var(--pad) * 2 + 60px);
}
.site-header:empty::before {
  content: "";
  display: block;
  width: clamp(150px, 14vw, 180px);
  height: 48px;
}
.logo {
  width: clamp(150px, 14vw, 180px);
  flex-shrink: 0;
  display: block;
}
.logo svg, .logo img { width: 100%; height: auto; display: block; }

.nav-primary {
  display: flex;
  gap: clamp(16px, 2.2vw, 32px);
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 700;
}
.nav-primary a[aria-current="page"] { opacity: 0.55; }

.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 640px) {
  .nav-primary {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 20;
  }
  .nav-primary.open { transform: translateX(0); }
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 30;
    font-weight: 700;
    font-size: 16px;
    padding: 4px 0;
  }
}

/* Home hero */
.home {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.home-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  align-items: stretch;
  gap: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 96px;
  transition: background 0.15s ease;
}
.card:hover { background: rgba(0, 0, 0, 0.7); opacity: 1; }
@media (max-width: 640px) {
  .card { background: rgba(0, 0, 0, 0.78); }
}
.card-img {
  width: 96px;
  height: 100%;
  align-self: stretch;
  flex-shrink: 0;
  object-fit: cover;
  background: #111;
}
.card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  flex: 1;
}
.card-title {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  overflow: hidden;
}
.card-cta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.card-cta::after {
  content: " →";
}

/* Footer / social row */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px var(--pad) 12px;
  font-size: 13px;
  color: var(--fg-dim);
  flex-wrap: wrap;
}
.socials {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.subscribe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--fg);
  transition: background 0.15s ease;
}
.subscribe:hover { background: rgba(0, 0, 0, 0.8); opacity: 1; }
@media (max-width: 640px) {
  .site-footer, .inner-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: max(env(safe-area-inset-bottom), 8px);
  }
  .socials { justify-content: center; }
  .subscribe { display: none; }
  .card--desktop-only { display: none; }
  .home-content { padding-bottom: 8px; }
}

.home .site-footer { color: var(--fg-dim); }

/* Inner pages */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: clamp(128px, 16vh, 200px);
}
.page-content {
  width: 100%;
  padding: 0 var(--pad);
  flex: 1;
}
.page h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(24px, 4vh, 48px);
}
.page--no-h1 h1 {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Music grid */
.music-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 40px) clamp(18px, 2vw, 32px);
}
@media (max-width: 900px) {
  .music-grid { grid-template-columns: repeat(2, 1fr); }
}
.release {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  transition: transform 0.25s var(--ease-out);
}
.release:hover { opacity: 1; transform: translateY(-4px); }
.release-cover {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}
.release-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.release:hover .release-cover img { transform: scale(1.04); }
.release-title {
  font-weight: 700;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.3;
}
.release-meta { display: none; }

/* Merch items — like release, but with title + price visible */
.merch-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  transition: transform 0.2s ease;
}
.merch-item:hover { opacity: 1; transform: translateY(-3px); }
.merch-cover {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}
.merch-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.merch-item:hover .merch-cover img { transform: scale(1.04); }
.merch-title {
  font-weight: 700;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.3;
  margin-top: 6px;
}
.merch-price {
  font-size: clamp(14px, 1vw, 16px);
  color: var(--fg-dim);
}

/* Videos grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px) clamp(18px, 2vw, 32px);
}
@media (max-width: 900px) {
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .videos-grid { grid-template-columns: 1fr; }
}
.video {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s var(--ease-out);
}
.video:hover { opacity: 1; transform: translateY(-4px); }
.video-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  position: relative;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.video:hover .video-thumb img { transform: scale(1.04); }
.video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
  z-index: 1;
}
.video:hover .video-thumb::before { opacity: 1; }
.video-thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  /* play triangle via clip-path of a pseudo element could work; instead use a bg svg */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M8 5.14v13.72L19 12 8 5.14z'/></svg>");
  background-size: 22px 22px;
  background-repeat: no-repeat;
  background-position: 56% 50%;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  z-index: 2;
}
.video:hover .video-thumb::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-title {
  font-weight: 700;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.35;
}

/* Info page — text scrolls, photo locked to viewport on desktop */
.info-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
}
.info-text p { margin: 0; }
.info-text em { font-style: italic; }
.info-contact { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.info-contact h3 {
  margin: 0 0 6px;
  font-size: clamp(14px, 1vw, 16px);
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
}
.info-contact p { margin: 0; }
.info-contact a { text-decoration: underline; text-underline-offset: 3px; }
.info-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
}
.info-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .info-layout {
    display: block;
  }
  .info-text {
    max-width: calc(50% - clamp(16px, 2.5vw, 40px));
  }
  .info-photo {
    position: fixed;
    top: clamp(128px, 16vh, 200px);
    right: var(--pad);
    bottom: clamp(24px, 6vh, 80px);
    width: calc(50vw - var(--pad) - clamp(16px, 2.5vw, 40px));
    max-width: 720px;
    aspect-ratio: auto;
  }
}
@media (max-width: 899px) {
  .info-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .info-photo {
    aspect-ratio: 4 / 5;
    order: -1;
  }
}

/* Merch page */
.merch-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  padding: clamp(24px, 6vh, 64px) 0;
}
.merch-wrap p { max-width: 560px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; color: var(--fg-dim); margin: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--fg); color: var(--bg); opacity: 1; }

/* Page footer on inner pages */
.inner-footer {
  margin-top: clamp(48px, 8vh, 96px);
  padding: 16px var(--pad) 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--fg-dim);
}
