:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --ink: #f2f2f2;
  --ink-soft: #bfbfbf;
  --line: #2b2b2b;
  --accent: #cc1f1f;
  --accent-2: #7f0f0f;
  --radius: 4px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --post-news-scale: 1;
}

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

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

html {
  font-size: 125%;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(160deg, rgba(6, 6, 6, 0.94), rgba(18, 18, 18, 0.96)),
    url("img/bg.jpg") center / cover no-repeat;
}

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

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

.is-hidden {
  display: none;
}

.site-shell {
  --fold-gap: clamp(0.55rem, 0.95vw, 0.9rem);
  --shell-pad-top: var(--fold-gap);
  --shell-pad-bottom: var(--space-5);
  --shell-gap: var(--fold-gap);
  --content-gap: var(--fold-gap);
  min-height: 100vh;
  padding: var(--shell-pad-top) clamp(0.5rem, 1.4vw, 1.15rem) var(--shell-pad-bottom);
  display: flex;
  flex-direction: column;
  gap: var(--shell-gap);
}

@media (min-width: 700px) {
  .site-shell {
    width: 90%;
    margin-inline: auto;
  }
}

.site-header {
  --header-height: clamp(3.25rem, 7vw, 4.5rem);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--header-height);
}

.floating-control {
  position: fixed;
  top: var(--floating-top, max(0.5rem, env(safe-area-inset-top)));
  width: var(--floating-size, 5rem);
  height: var(--floating-size, 5rem);
  margin: 0;
  padding: 0;
  z-index: 80;
}

.floating-left {
  left: var(--floating-left, clamp(0.5rem, 1.4vw, 1.15rem));
}

.floating-right {
  right: var(--floating-right, clamp(0.5rem, 1.4vw, 1.15rem));
}

.burger-btn {
  background: rgba(22, 22, 22, 0.78);
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1s ease;
}

.burger-btn.idle-hidden {
  opacity: 0;
  pointer-events: none;
}

.burger-lines {
  width: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.burger-lines span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 0;
  background: #ffffff;
  opacity: 1;
  mix-blend-mode: difference;
}

.site-nav {
  position: fixed;
  top: calc(var(--floating-top, max(0.5rem, env(safe-area-inset-top))) + var(--floating-size, 5rem) + 0.3rem);
  left: var(--floating-left, clamp(0.5rem, 1.4vw, 1.15rem));
  background: rgba(0, 0, 0, 0.94);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 30;
}

.site-nav.is-hidden {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-shop img {
  width: 1rem;
  height: 1rem;
  opacity: 0.9;
}

.header-logo {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.header-logo img {
  height: 4.4rem;
  width: auto;
  object-fit: contain;
}

.header-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(22, 22, 22, 0.78);
  opacity: 1;
  transition: opacity 1s ease;
}

.header-shop.idle-hidden {
  opacity: 0;
  pointer-events: none;
}

.header-shop img {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 1;
  filter: grayscale(1) contrast(1.2) brightness(1.15);
  mix-blend-mode: difference;
}

.header-center-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(3rem, 6vw, 5.2rem);
  height: auto;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.95;
  pointer-events: none;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--content-gap);
}

.content-grid > * {
  min-width: 0;
  grid-column: 1 / -1;
}

.panel,
.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(1px);
}

.hero-card {
  --hero-block-height: 50%;
  --hero-block-top: 25%;
  position: relative;
  overflow: hidden;
  height: var(
    --hero-fold-height,
    calc(
      100dvh - var(--shell-pad-top) - var(--header-height) - var(--shell-gap) - var(--content-gap)
    )
  );
  min-height: 0;
  background:
    linear-gradient(8deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.15)),
    url("img/bg.jpg") center / cover no-repeat;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.5rem);
  align-items: stretch;
  padding: clamp(1rem, 2vw, 1.6rem);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.13) 0 1px,
      rgba(255, 255, 255, 0) 1px 2px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 25, 25, 0.08) 0 1px,
      rgba(0, 225, 255, 0.08) 1px 2px,
      rgba(255, 255, 255, 0) 2px 4px
    ),
    radial-gradient(circle at 17% 24%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 64% 72%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px),
    radial-gradient(circle at 42% 46%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px);
  background-size: auto, auto, 3px 3px, 4px 4px, 5px 5px;
  mix-blend-mode: screen;
  opacity: 0.16;
  pointer-events: none;
  z-index: 2;
  animation: hero-static 5.9s steps(3, end) infinite;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -3%;
  background:
    linear-gradient(90deg, rgba(255, 0, 255, 0.18), rgba(255, 255, 255, 0) 38%),
    linear-gradient(0deg, rgba(0, 255, 255, 0.16), rgba(255, 255, 255, 0) 48%),
    radial-gradient(circle at 78% 14%, rgba(0, 255, 255, 0.3), rgba(0, 0, 0, 0) 36%),
    radial-gradient(circle at 24% 82%, rgba(255, 0, 136, 0.24), rgba(0, 0, 0, 0) 32%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      rgba(255, 255, 255, 0) 1px 4px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(0, 255, 255, 0.07) 0 2px,
      rgba(255, 0, 170, 0.06) 2px 4px,
      rgba(255, 255, 255, 0) 4px 7px
    );
  mix-blend-mode: screen;
  opacity: 0.11;
  pointer-events: none;
  z-index: 2;
  animation: hero-noise 5.1s ease-in-out infinite;
}

.hero-left {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
  position: relative;
  z-index: 1;
}

.cd-link {
  position: relative;
  width: 96%;
  min-width: 0;
  max-width: 680px;
  height: auto;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border: 1px solid #1f1f1f;
  border-radius: 2px;
  background: #0d0d0d;
  padding: 0.25rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.cd-link::after {
  content: "";
  position: absolute;
  top: -22%;
  left: -55%;
  width: 48%;
  height: 150%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.34) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(10deg);
  animation: cd-shine 4.2s ease-in-out infinite;
  pointer-events: none;
}

.cd-case {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #2b2b2b;
  border-radius: 1px;
}

.hero-logo {
  height: 78%;
  min-height: 220px;
  max-height: 430px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: none;
}

.hero-right {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: calc(var(--hero-block-top) * 0.7);
  position: relative;
  z-index: 4;
}

.hero-right-stack {
  min-height: 0;
  max-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.7rem;
  position: relative;
  z-index: 5;
}

.cd-title {
  margin: 0;
  text-align: right;
  font-size: clamp(1.9rem, 2.7vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-kicker {
  margin: 0;
  text-align: right;
  font-size: clamp(2.1rem, 3.6vw, 2.7rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel {
  padding: calc(clamp(0.82rem, 1.4vw, 1.05rem) * var(--post-news-scale));
}

.panel h2 {
  margin: 0 0 calc(0.72rem * var(--post-news-scale));
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: calc(clamp(1rem, 1.6vw, 1.2rem) * var(--post-news-scale));
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-list {
  max-height: clamp(300px, 46vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: calc(0.8rem * var(--post-news-scale));
  padding-right: 0.2rem;
}

.video-list-horizontal {
  max-height: none;
  overflow-y: hidden;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(calc(260px * var(--post-news-scale)), calc(64% * var(--post-news-scale)));
  gap: calc(0.8rem * var(--post-news-scale));
  padding-bottom: 0.3rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.video-list-horizontal .video-wrap {
  width: 100%;
  margin: 0;
  scroll-snap-align: start;
}

.news-panel p,
.about-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: calc(0.72rem * var(--post-news-scale));
}

.show-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-soft);
  padding: calc(0.72rem * var(--post-news-scale));
  display: flex;
  flex-direction: column;
  gap: calc(0.28rem * var(--post-news-scale));
}

.show-card h3 {
  margin: 0;
  font-size: 1rem;
}

.show-card p,
.show-card time {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.gallery-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(calc(180px * var(--post-news-scale)), calc(28% * var(--post-news-scale)));
  gap: calc(0.72rem * var(--post-news-scale));
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery-thumb {
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  border: 0;
  background: #000;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-loading {
  margin: 0;
  color: var(--ink-soft);
}

.no-scroll {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: clamp(0.75rem, 2.2vw, 2rem);
}

.gallery-stage {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
}

.gallery-active-image {
  max-width: min(94vw, 1300px);
  max-height: 78vh;
  width: auto;
  height: auto;
  border: 1px solid #1f1f1f;
  border-radius: 2px;
  background: #000;
  pointer-events: auto;
}

.gallery-caption,
.gallery-count {
  display: none;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.gallery-close,
.gallery-nav {
  border: 1px solid var(--line);
  background: rgba(24, 24, 24, 0.88);
  color: var(--ink);
  border-radius: 3px;
  cursor: pointer;
}

.gallery-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.4rem;
  line-height: 1;
}

.gallery-nav {
  width: 2.8rem;
  height: 3rem;
  font-size: 1.6rem;
}

@media (max-width: 760px) {
  .gallery-modal {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .gallery-nav {
    width: 2.4rem;
    height: 2.5rem;
    font-size: 1.3rem;
  }
}

.gallery-modal.is-hidden {
  display: none;
}

.site-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: calc(0.72rem * var(--post-news-scale));
}

.footer-bookings {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
  justify-self: start;
}

.footer-heading {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.booking-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-family: inherit;
}

.booking-mail svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.booking-mail:hover {
  color: var(--ink);
}

.footer-socials {
  justify-self: end;
}

.copyright {
  margin: 0;
  text-transform: lowercase;
  color: var(--ink-soft);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  justify-self: center;
  text-align: center;
}

.social-row {
  display: flex;
  align-items: center;
  gap: calc(0.72rem * var(--post-news-scale));
}

.social-row a {
  width: calc(2.8rem * var(--post-news-scale));
  height: calc(2.8rem * var(--post-news-scale));
  border: 1px solid var(--line);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.social-row img {
  width: calc(1.7rem * var(--post-news-scale));
  height: calc(1.7rem * var(--post-news-scale));
  opacity: 0;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: 0.52rem;
  background: #d4d4d4;
  transition: background 180ms ease;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.social-link.instagram::before {
  -webkit-mask-image: url("img/ig.svg");
  mask-image: url("img/ig.svg");
}

.social-link.facebook::before {
  -webkit-mask-image: url("img/fb.svg");
  mask-image: url("img/fb.svg");
}

.social-link.youtube::before {
  -webkit-mask-image: url("img/yt.svg");
  mask-image: url("img/yt.svg");
}

.social-link.bandcamp::before {
  -webkit-mask-image: url("img/bc.svg");
  mask-image: url("img/bc.svg");
}

.social-link.instagram:hover::before {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 7%,
    #fd5949 45%,
    #d6249f 62%,
    #285aeb 90%
  );
}

.social-link.facebook:hover::before {
  background: #1877f2;
}

.social-link.youtube:hover::before {
  background: #ff0000;
}

.social-link.bandcamp:hover::before {
  background: #43b0cd;
}

.social-link:hover {
  border-color: #616161;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 760px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--space-2);
  }

  .footer-bookings,
  .footer-socials {
    justify-self: center;
    align-items: center;
  }
}

@media (min-width: 700px) {
  .video-wrap {
    width: 75%;
    margin-inline: auto;
  }

  .video-list-horizontal {
    grid-auto-columns: minmax(calc(340px * var(--post-news-scale)), calc(50% * var(--post-news-scale)));
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: none;
  }

  .news-panel,
  .shows-panel {
    grid-column: span 1;
  }

  .video-panel,
  .about-panel,
  .gallery-panel {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .site-header {
    --header-height: 5rem;
  }

  .site-header {
    justify-content: flex-start;
  }

  .header-logo {
    display: none !important;
  }

  .header-shop {
    display: inline-flex;
  }
}

@media (max-width: 620px) {
  .hero-card {
    --hero-block-height: 54%;
    --hero-block-top: 23%;
  }
}

@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0.65rem;
    padding: clamp(0.7rem, 2.4vw, 1.1rem);
  }

  .hero-left {
    justify-content: center;
  }

  .hero-logo {
    width: min(86vw, 520px);
    height: auto;
    min-height: 0;
    max-height: 34vh;
    object-position: center;
  }

  .hero-right {
    align-items: center;
    padding-top: 0;
  }

  .hero-right-stack {
    min-height: 0;
    width: 100%;
    align-items: center;
    gap: 0.45rem;
  }

  .cd-link {
    width: min(78vw, 420px);
    max-width: 100%;
  }

  .cd-title,
  .hero-kicker {
    text-align: center;
  }
}

/* Keep hero right-side content inside fold-scaled hero on common desktop heights (e.g. 1080p). */
@media (min-width: 901px) and (max-height: 1080px) {
  .hero-right {
    padding-top: clamp(0.35rem, 1.2vh, 0.8rem);
  }

  .hero-right-stack {
    gap: clamp(0.3rem, 0.7vh, 0.55rem);
  }

  .cd-link {
    width: min(84%, 460px);
  }

  .cd-title {
    font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  }

  .hero-kicker {
    font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  }
}

@media (min-width: 1200px) {
  .site-shell {
    padding-inline: clamp(0.8rem, 2.4vw, 2rem);
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: none;
    align-items: stretch;
  }

}

@media (min-width: 1700px) {
  .site-shell {
    max-width: none;
  }

}

@keyframes cd-shine {
  0% {
    left: -55%;
    opacity: 0;
  }

  12% {
    opacity: 0.85;
  }

  38% {
    left: 118%;
    opacity: 0;
  }

  100% {
    left: 118%;
    opacity: 0;
  }
}

@keyframes hero-static {
  0%,
  100% {
    opacity: 0.12;
    transform: translateY(0);
    filter: contrast(1.04) saturate(1.08);
  }

  9% {
    opacity: 0.16;
  }

  16% {
    opacity: 0.24;
    transform: translateY(-0.8px);
    filter: contrast(1.1) saturate(1.14);
  }

  21% {
    opacity: 0.11;
    transform: translateY(0.5px);
  }

  46% {
    opacity: 0.1;
  }

  63% {
    opacity: 0.22;
    transform: translateX(-0.95px);
    filter: contrast(1.12) saturate(1.18);
  }

  68% {
    opacity: 0.12;
    transform: translateX(0.65px);
  }

  87% {
    opacity: 0.21;
    transform: translateY(-0.7px);
  }

  92% {
    opacity: 0.28;
    transform: translateY(-0.2px);
    filter: contrast(1.18) saturate(1.24);
  }
}

@keyframes hero-noise {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.1;
  }

  12% {
    opacity: 0.08;
  }

  29% {
    transform: translateX(-1.2px) translateY(0.5px);
    opacity: 0.17;
  }

  34% {
    transform: translateX(0);
    opacity: 0.1;
  }

  58% {
    transform: translateX(1px) translateY(-0.6px);
    opacity: 0.16;
  }

  64% {
    transform: translateX(0);
    opacity: 0.1;
  }

  82% {
    transform: translateX(-0.9px);
    opacity: 0.15;
  }

  89% {
    transform: translateX(1.1px) translateY(0.2px);
    opacity: 0.2;
  }
}
