@font-face {
  font-family: 'Redaction';
  src: url('../assets/fonts/Redaction-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --bg-alt: #131315;
  --fg: #f2efe9;
  --fg-dim: #a3a19c;
  --accent: #b3122c;
  --border: rgba(242,239,233,0.1);
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --brand: 'Redaction', var(--serif);
}

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

html { scroll-behavior: smooth; }

body {
  position: relative;
  background: radial-gradient(ellipse 90% 70% at 15% 0%, #17171a 0%, var(--bg) 55%, #050506 100%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ambient backdrop: brushed-metal grain, fixed behind all content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.02' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.16' intercept='0'/%3E%3CfeFuncG type='linear' slope='0.16' intercept='0'/%3E%3CfeFuncB type='linear' slope='0.16' intercept='0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: 'Oswald', var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-content .eyebrow {
  transform: translateY(-15px);
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(to bottom, rgba(10,10,11,0.85), transparent);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-family: var(--brand);
  font-size: 1.3rem;
  letter-spacing: 0.3em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  filter: invert(1);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links a { opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--accent); }

.lang-toggle {
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: inherit;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s;
}
.lang-toggle:hover {
  opacity: 1;
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--fg);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  cursor: url('../assets/img/cursor-mask.png') 30 4, auto;
}

.hero a,
.hero button {
  cursor: pointer;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: grayscale(1) contrast(1.1);
}

.hero-bg-tease {
  filter: grayscale(0.15) contrast(1.1) saturate(1.1) brightness(0.85);
  background-position: center 60%;
}
@media (max-width: 640px) {
  .hero-bg-tease {
    background-image: url('../assets/img/single-tease-mobile.png') !important;
    background-size: 130% auto;
    background-position: top center;
    background-repeat: no-repeat;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.75) 60%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 58rem;
  padding: 0 1.5rem;
}

.hero-title {
  margin: 1rem 0;
}

.hero-title img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}

.hero-sub {
  color: var(--fg-dim);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(242,239,233,0.35);
  text-transform: uppercase;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.2s;
}

.btn-outline {
  border: 1px solid var(--fg);
}
.btn-outline:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn-ghost {
  color: var(--fg-dim);
}
.btn-ghost:hover { color: var(--fg); }

/* SECTIONS */
.section {
  padding: 4.5rem 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

.section-alt {
  max-width: none;
}
.section-alt > * {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 3rem;
  text-align: center;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--fg-dim);
}

/* DISCOGRAPHY */
.disco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.disco-card { text-align: center; }

.disco-art {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bg-alt);
}

.disco-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.disco-card:hover .disco-art img { transform: scale(1.05); }

.disco-art-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
}

.disco-info h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
}

.disco-meta {
  color: var(--fg-dim);
  font-size: 0.85rem;
  margin: 0.25rem 0 0.9rem;
}

.disco-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.disco-links a { color: var(--fg-dim); border-bottom: 1px solid transparent; }
.disco-links a:hover { color: var(--accent); border-color: var(--accent); }

.embed-block { max-width: 640px; margin: 0 auto; }

/* VIDEOS */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.video-shuffle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-family: 'Oswald', var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.video-shuffle svg { transition: transform 0.4s ease; }
.video-shuffle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.video-shuffle:hover svg { transform: rotate(180deg); }

.video-carousel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.video-carousel-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--fg-dim);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.video-carousel-arrow:hover { border-color: var(--accent); color: var(--accent); }

.video-grid {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 1rem 0.25rem;
}
.video-grid::-webkit-scrollbar { display: none; }

.video-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 120px;
  scroll-snap-align: start;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: transform 0.25s ease, z-index 0.25s;
}

.video-thumb img {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.video-thumb::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: rgba(10,10,11,0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 2.5v11l10-5.5z' fill='%23f2efe9'/%3E%3C/svg%3E") center/7px no-repeat;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.video-thumb:hover {
  transform: scale(1.28);
  z-index: 3;
}
.video-thumb:hover img,
.video-thumb.active img { border-color: var(--accent); }
.video-thumb:hover::after,
.video-thumb.active::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.video-thumb-title {
  margin-top: 0.4rem;
  font-size: 0.65rem;
  line-height: 1.3;
  color: var(--fg-dim);
  opacity: 0;
  transition: opacity 0.2s;
}
.video-thumb:hover .video-thumb-title,
.video-thumb.active .video-thumb-title { opacity: 1; color: var(--fg); }

.youtube-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}
.youtube-card:hover { border-color: var(--accent); }

.youtube-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  margin-top: 0.35rem;
}

/* PHOTOS — scattered pile, click any photo to enlarge it and settle the rest into place */
.photo-hint {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--fg-dim);
  transition: opacity 0.4s ease;
}
.photo-hint.done { opacity: 0.5; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 2.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.photo-grid .photo {
  all: unset;
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  cursor: pointer;
  transform: translate(var(--jx, 0), var(--jy, 0)) rotate(var(--jr, 0deg));
  transition: transform 0.85s cubic-bezier(.16,1,.3,1);
}
.photo-grid.organized .photo {
  transform: translate(0, 0) rotate(0deg);
}

.photo-grid .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  filter: grayscale(1);
  transition: filter 0.3s, transform 0.3s;
}

.photo-grid .photo:hover img {
  filter: grayscale(0);
  transform: scale(1.02);
}
.photo-grid .photo:focus-visible img {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1.75rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-grid .photo { transition: none; }
}

/* MERCH */
.merch-wordmark {
  width: min(560px, 80%);
  margin: 0 auto 1.25rem;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

.merch-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.3s, border-color 0.3s;
}

.merch-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.merch-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

@media (max-width: 800px) {
  .merch-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .merch-grid { grid-template-columns: 1fr; }
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6,6,7,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#lightbox.active { opacity: 1; pointer-events: auto; }

#lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}

#lightbox.active img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  #lightbox, #lightbox img { transition: none; }
}

/* FOOTER */
.footer {
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.footer-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  filter: invert(1);
  margin: 0 auto 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 2rem;
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  color: rgba(242,239,233,0.3);
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .nav-toggle { display: none; }
  .nav-links { display: none; }
  .section { padding: 3.25rem 1.25rem; }
}

/* TRACKLIST */
.tracklist-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1rem auto 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem 0.4rem 0.95rem;
  color: var(--fg-dim);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.tracklist-toggle:hover { color: var(--fg); border-color: rgba(242,239,233,0.28); }

.tracklist-toggle .chev {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -2px;
  flex: none;
}
.tracklist-toggle.open .chev { transform: rotate(-135deg); margin-top: 2px; }

.tracklist {
  display: none;
  list-style: none;
  margin-top: 1rem;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.tracklist.open { display: block; }

.tracklist li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.25rem;
  font-size: 0.9rem;
  color: var(--fg-dim);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.tracklist li:hover { color: var(--fg); background: rgba(242,239,233,0.05); }
.tracklist li.playing { color: var(--accent); font-weight: 600; }

.tracklist li .icon-slot {
  flex: none;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tracklist li .play-tri {
  width: 0;
  height: 0;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  border-left: 7px solid var(--fg-dim);
  transition: border-left-color 0.2s;
  opacity: 0.7;
}
.tracklist li:hover .play-tri { border-left-color: var(--fg); opacity: 1; }
.tracklist li.playing .play-tri { display: none; }

.tracklist li .eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.tracklist li.playing .eq { display: flex; }
.tracklist li .eq span {
  width: 2.5px;
  background: var(--accent);
  animation: eq-bounce 0.9s ease-in-out infinite;
}
.tracklist li .eq span:nth-child(1) { height: 40%; animation-delay: -0.6s; }
.tracklist li .eq span:nth-child(2) { height: 100%; animation-delay: -0.3s; }
.tracklist li .eq span:nth-child(3) { height: 65%; animation-delay: 0s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .tracklist li .eq span { animation: none; transform: scaleY(0.75); }
}

/* PLAYER BAR */
.player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #0d0d0f;
  border-top: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  transition: bottom 0.3s ease;
}
.player-bar.active { bottom: 0; }

.player-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  white-space: nowrap;
  min-width: 0;
}
.player-info span:last-child {
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-bar audio {
  flex: 1;
  min-width: 0;
  height: 32px;
}

#player-close {
  background: none;
  border: none;
  color: var(--fg-dim);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}
#player-close:hover { color: var(--accent); }

@media (max-width: 640px) {
  .player-bar { flex-wrap: wrap; padding: 0.75rem 1rem; }
  .player-info { order: 1; width: 100%; }
  .player-bar audio { order: 3; width: 100%; }
  #player-close { order: 2; margin-left: auto; }
}
