/* ============================================
   NINETAILZ — Rockband Website
   ============================================ */

:root {
  --bg: #0b0908;
  --bg-alt: #141110;
  --bg-panel: #1a1614;
  --ink: #efe7da;
  --ink-dim: #cabfae;
  --muted: #8a7d70;
  --line: rgba(239, 231, 218, 0.1);
  --line-strong: rgba(239, 231, 218, 0.18);
  --accent: #d9812f;
  --accent-2: #a83a24;
  --accent-soft: rgba(217, 129, 47, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);

  --font-display: 'Oswald', 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #0b0908;
  padding: 10px 16px;
  z-index: 10000;
  font-family: var(--font-display);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 10px;
}

.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin: 0 0 20px;
  line-height: 1.05;
}

.section-sub {
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 46em;
  margin: -8px 0 40px;
}

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #150d06;
}
.btn-primary:hover { background: #eb9843; transform: translateY(-2px); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, height 0.35s ease;
}
.site-header.scrolled {
  background: rgba(11, 9, 8, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: 64px;
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 52px;
  width: auto;
  transition: height 0.35s ease;
}
.site-header.scrolled .brand-logo { height: 42px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }
.nav-insta { color: var(--ink-dim); display: flex; }
.nav-insta:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 501;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.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;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.85) contrast(1.05);
  transform: scale(1.06);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,9,8,0.3) 0%, rgba(11,9,8,0.18) 26%, rgba(11,9,8,0.62) 52%, rgba(11,9,8,0.92) 80%, #0b0908 100%),
    radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  padding-bottom: clamp(50px, 8vh, 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-content .eyebrow {
  color: var(--ink-dim);
  letter-spacing: 0.4em;
}
.hero-logo {
  width: min(250px, 48vw, 28vh);
  margin: 14px 0 6px;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,0.7));
}
.hero-tagline {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 4px 0 34px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 120px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: start;
}
.bio {
  margin: 0;
  border: none;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-dim);
}
.bio p { margin: 0 0 18px; }
.bio strong { color: var(--ink); font-weight: 600; }
.bio-close { color: var(--accent); }

.fact-row {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.fact { display: flex; flex-direction: column; }
.fact-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.fact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 4px;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
  cursor: zoom-in;
  filter: saturate(0.9);
  transition: filter 0.3s ease;
}
.about-media img:hover { filter: saturate(1); }

.roster {
  margin-top: 90px;
  padding-top: 50px;
  border-top: 1px solid var(--line);
}
.roster-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 48px;
}
.roster-list li {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.roster-list li::after {
  content: "·";
  color: var(--accent);
  margin-left: 48px;
  position: absolute;
}
.roster-list li:last-child::after { content: ""; }

/* ---------- Music ---------- */
.track-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.track {
  display: grid;
  grid-template-columns: 56px 64px 1fr 220px;
  align-items: center;
  gap: 20px;
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
  position: relative;
}
.track:hover { background: rgba(217, 129, 47, 0.05); }
.track.playing { background: var(--accent-soft); }

.track-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}
.track-play svg { width: 18px; height: 18px; fill: currentColor; }
.track-play:hover { border-color: var(--accent); color: var(--accent); }
.track.playing .track-play { background: var(--accent); border-color: var(--accent); color: #150d06; }

.track-cover {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.6s ease;
}
.track.playing .track-cover {
  animation: vinylspin 4s linear infinite;
}
@keyframes vinylspin {
  to { transform: rotate(360deg); }
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.track-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: var(--ink);
}
.track-tag {
  font-size: 0.8rem;
  color: var(--muted);
}

.track-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.track-bar {
  height: 4px;
  background: var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.track-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
}
.track-time {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Video ---------- */
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 6px;
  padding: 0 6px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  filter: saturate(0.88) contrast(1.02);
  transition: filter 0.35s ease, transform 0.5s ease;
}
.gallery-grid img:hover { filter: saturate(1) contrast(1.05); transform: scale(1.015); }
.gallery-grid img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid img:nth-child(6) { grid-column: span 2; }
.gallery-grid img:nth-child(9) { grid-column: span 2; grid-row: span 2; }
.gallery-grid img:nth-child(13) { grid-column: span 2; }

/* ---------- Shows ---------- */
.show-list {
  border-top: 1px solid var(--line);
}
.show-item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px 6px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.25s ease;
}
.show-item:hover { padding-left: 12px; }
.show-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 10px 0;
}
.show-day {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.show-month {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-top: 4px;
}
.show-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.show-event {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  color: var(--ink);
}
.show-venue {
  font-size: 0.9rem;
  color: var(--muted);
}
.show-tag {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 20px;
  flex-shrink: 0;
}
.shows-more {
  margin: 26px 4px 0;
  color: var(--muted);
}
.shows-more a { color: var(--accent); }
.shows-more a:hover { text-decoration: underline; }

@media (max-width: 500px) {
  .show-item { gap: 16px; }
  .show-tag { display: none; }
}

/* ---------- Press ---------- */
.press-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: start;
}
.press-facts {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.press-facts li {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.press-facts li span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
  font-family: var(--font-body);
}
.press-downloads {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.press-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
  cursor: zoom-in;
  filter: grayscale(0.15);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.25s ease, color 0.25s ease;
}
.contact-item:hover { padding-left: 12px; color: var(--accent); }
.contact-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--muted);
}
.contact-value {
  font-size: 1.15rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo { height: 30px; opacity: 0.8; }
.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-inner a { color: var(--muted); display: flex; }
.footer-inner a:hover { color: var(--accent); }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 5, 4, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(20, 17, 16, 0.6);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox-close {
  top: 22px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 1.1rem;
}
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--accent); color: #150d06; border-color: var(--accent); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.gallery-grid.reveal { transform: none; }
.gallery-grid.reveal img { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.gallery-grid.reveal.in img { opacity: 1; transform: translateY(0); }
.gallery-grid.reveal img:nth-child(4n+1) { transition-delay: 0.05s; }
.gallery-grid.reveal img:nth-child(4n+2) { transition-delay: 0.1s; }
.gallery-grid.reveal img:nth-child(4n+3) { transition-delay: 0.15s; }
.gallery-grid.reveal img:nth-child(4n+4) { transition-delay: 0.2s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .about-grid, .press-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-media { order: -1; }
  .about-media img { aspect-ratio: 16/10; }
  .press-media img { aspect-ratio: 16/10; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .gallery-grid img:nth-child(9) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .section { padding: 84px 0; }

  .main-nav {
    position: fixed;
    top: 66px; left: 0; right: 0; bottom: 0;
    background: rgba(11,9,8,0.98);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.3rem; }
  .nav-toggle { display: flex; }

  .track {
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "play info"
      "play progress";
    row-gap: 10px;
  }
  .track-play { grid-area: play; }
  .track-cover { display: none; }
  .track-info { grid-area: info; }
  .track-progress { grid-area: progress; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-grid img:nth-child(1), .gallery-grid img:nth-child(6), .gallery-grid img:nth-child(13) { grid-column: span 1; }

  .roster-list { gap: 0 28px; }
  .roster-list li::after { margin-left: 28px; }

  .fact-row { gap: 26px; }

  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in, .gallery-grid.reveal img { transition: none; opacity: 1; transform: none; }
  .scroll-cue span { animation: none; }
  .track.playing .track-cover { animation: none; }
}
