/* ---------------------------------------------------
   Dystronomicon — Complete Consolidated Stylesheet
--------------------------------------------------- */

/* Import Google Fonts: Oswald for Body/Nav & Quintessential for Titles/Headings */
@import url('https://fonts.googleapis.com/css2?family=Quintessential&family=Oswald:wght@300;400;500;600&display=swap');

/* ---------------------------------------------------
   1. Design Tokens & Global Reset
--------------------------------------------------- */
:root {
  --ink-0: #f4f4f2;
  --ink-1: #c9cad0;
  --ink-2: #8d8f97;
  --scrim-top: rgba(6, 7, 9, 0.82);
  --scrim-mid: rgba(6, 7, 9, 0.35);
  --hairline: rgba(244, 244, 242, 0.18);
  --focus: #d8b25e;
  --accent: #a70000; /* Deep blood red */

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-title: "Quintessential", serif;
  --header-max: 1180px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Home page non-scrollable lock */
body.page-home {
  overflow: hidden;
}

body {
  font-family: var(--font-display);
  color: var(--ink-0);
  background: #0a0a0b;
}

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

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

main {
  display: block;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Accessibility Focus Ring */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---------------------------------------------------
   2. Interior Page Background Overlay (biography.html)
--------------------------------------------------- */
.page-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center 30%;
  z-index: -2;
  pointer-events: none;
}

.page-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 11, 0.7);
  pointer-events: none;
}

/* ---------------------------------------------------
   3. Full-Screen Hero Layout (index.html)
--------------------------------------------------- */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@supports (height: 100svh) {
  .hero {
    height: 100svh;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, var(--scrim-top) 0%, var(--scrim-mid) 35%, rgba(6,7,9,0.2) 100%);
  pointer-events: none;
}

/* ---------------------------------------------------
   4. Shared Site Header & Navigation
--------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 10;
  padding: 30px 24px 0;
}

.site-header__inner {
  max-width: var(--header-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  display: inline-block;
}

/* Logo Sizing */
.brand__logo {
  width: min(420px, 80vw);
  height: auto;
}

/* Compact Header Variation for Interior Pages */
.site-header--page {
  background: transparent;
  padding: 22px 24px;
}

.site-header--page .brand__logo {
  width: min(420px, 80vw);
}

.site-header--page .primary-nav {
  margin-top: 26px;
}

/* Primary Navigation */
.primary-nav {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.primary-nav > ul li a {
  position: relative;
  display: inline-block;
  padding: 8px 18px 12px;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink-1);
  text-transform: uppercase;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* Hover State */
.primary-nav > ul li a:hover,
.primary-nav > ul li a:focus-visible {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(167, 0, 0, 0.8);
}

/* Active State with Organic Blood Spatter Line */
.primary-nav > ul li a.is-active {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(167, 0, 0, 1);
}

.primary-nav > ul li a.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 90%;
  height: 8px;
  background-color: var(--accent);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0,3 Q5,1 10,4 Q15,0 20,5 Q22,8 24,5 Q28,2 35,4 Q42,1 50,5 Q55,0 60,4 Q68,1 75,5 Q82,0 90,4 Q95,2 100,3 L100,7 Q92,10 85,6 Q78,9 70,6 Q65,10 60,6 Q52,9 45,6 Q38,10 30,6 Q20,9 10,6 Q5,9 0,7 Z' fill='%23000'/%3E%3Ccircle cx='18' cy='8' r='1' fill='%23000'/%3E%3Ccircle cx='42' cy='9' r='1.5' fill='%23000'/%3E%3Ccircle cx='78' cy='9' r='1' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0,3 Q5,1 10,4 Q15,0 20,5 Q22,8 24,5 Q28,2 35,4 Q42,1 50,5 Q55,0 60,4 Q68,1 75,5 Q82,0 90,4 Q95,2 100,3 L100,7 Q92,10 85,6 Q78,9 70,6 Q65,10 60,6 Q52,9 45,6 Q38,10 30,6 Q20,9 10,6 Q5,9 0,7 Z' fill='%23000'/%3E%3Ccircle cx='18' cy='8' r='1' fill='%23000'/%3E%3Ccircle cx='42' cy='9' r='1.5' fill='%23000'/%3E%3Ccircle cx='78' cy='9' r='1' fill='%23000'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  filter: drop-shadow(0 0 4px rgba(167, 0, 0, 0.8));
}

/* Social media icon links */
.primary-nav ul[aria-label="Social media"] {
  gap: 2px;
}

.primary-nav ul[aria-label="Social media"] a {
  padding: 4px 6px;
}

/* Mobile Nav Toggle Button */
.nav-toggle {
  display: none;
  position: absolute;
  top: 44px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--ink-0);
}

/* ---------------------------------------------------
   5. Interior Layout & Section Headers
--------------------------------------------------- */
.section {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 64px 24px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}

.section-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-style: normal;
  display: inline-block;
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  color: var(--ink-0);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin-top: 8px;
  background: var(--accent);
}

.section-header .section-title {
  margin-bottom: -19px;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.15s ease;
}

.view-all:hover,
.view-all:focus-visible {
  color: var(--ink-0);
}

/* ---------------------------------------------------
   6. Page Hero Banner (Interior Pages)
--------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: 34vh;
  padding: 25px 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: transparent;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--header-max);
  margin: 0 auto;
  width: 100%;
}

.page-hero__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-style: normal;
  margin: 0 0 16px;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  letter-spacing: 0.06em;
  color: var(--ink-0);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

.page-hero__title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 12px;
  background: var(--accent);
}

.page-hero__tagline {
  margin: 20px 0 0;
  max-width: 250ch;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--ink-1);
}

/* ---------------------------------------------------
   7. Biography Content Blocks
--------------------------------------------------- */
.intro {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.intro-block {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 48px;
  align-items: start;
}

/* Uncropped image display for Biography section */
.intro__media {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 2px;
  border: 1px solid var(--hairline);
}

.intro__copy h3 {
  font-family: var(--font-title);
  font-weight: 400;
  font-style: normal;
  margin: 0 0 6px;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-0);
}

.intro__copy h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 8px 0 16px;
  background: var(--accent);
}

.intro__copy p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-1);
  max-width: 62ch;
}

.intro__copy p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------
   8. Photo & Video Galleries (3-Column Desktop Grid)
--------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--hairline);
  display: block;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.04);
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
  border: 1px solid var(--hairline);
}

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

/* ---------------------------------------------------
   9. Members Section (3-Column Desktop Grid)
--------------------------------------------------- */
.members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.member {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: rgba(10, 10, 11, 0.6);
  border: 1px solid var(--hairline);
  border-radius: 2px;
}

.member__photo {
  flex: 0 0 auto;
  width: 110px;
  height: 140px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--hairline);
}

.member__name {
  font-family: var(--font-title);
  font-weight: 400;
  font-style: normal;
  margin: 0 0 2px;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--ink-0);
}

.member__role {
  display: block;
  margin-bottom: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.member__bio {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-1);
}

/* ---------------------------------------------------
   10. Lightbox Modal
--------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 7, 9, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 24px;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--hairline);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: transparent;
  border: none;
  color: var(--ink-0);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  transition: color 0.15s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  color: var(--accent);
}

/* ---------------------------------------------------
   11. Tour, Store, Music & Booking Components
--------------------------------------------------- */
.tour-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tour-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(10, 10, 11, 0.4);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  gap: 16px;
}

.tour-item__venue {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--ink-0);
}

.spotify-embed-card__title,
.booking-epk-box h3 {
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.form-group label,
.booking-submit-btn {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
}

.booking-submit-btn {
  font-size: 1.1rem;
  text-transform: uppercase;
  padding: 14px 28px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.booking-submit-btn:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

/* ---------------------------------------------------
   12. Responsive Media Queries & Mobile Nav Overlay
--------------------------------------------------- */
@media (max-width: 980px) {
  .intro-block {
    grid-template-columns: 1fr;
  }

  .intro__media {
    max-width: 520px;
  }

  .members {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 28px 20px 0;
  }

  .brand__logo {
    width: min(320px, 70vw);
  }

  /* Hamburger Toggle Fixed Layering */
  .nav-toggle {
    display: flex;
    top: 32px;
    z-index: 100;
  }

  /* Full-screen Mobile Navigation Drawer */
  .primary-nav {
    position: fixed;
    inset: 0;
    margin-top: 0;
    padding: 120px 5% 5%;
    background: rgba(8, 9, 11, 0.98);
    backdrop-filter: blur(10px);
    justify-content: flex-start;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
    z-index: 90;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .primary-nav > ul {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .primary-nav > ul li a {
    font-size: 1.25rem;
    padding: 12px 16px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 48px 20px;
  }

  .page-hero {
    min-height: 42vh;
    padding: 40px 20px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .members {
    grid-template-columns: 1fr;
  }

  .member {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .member__photo {
    width: 100%;
    max-width: 220px;
    height: 260px;
  }
}