:root {
  --bg: #090b12;
  --bg-soft: #101522;
  --bg-card: rgba(255, 255, 255, 0.075);
  --bg-card-strong: rgba(255, 255, 255, 0.12);
  --text: #f7f7fb;
  --muted: #b9c0d4;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #74e8ff;
  --accent-2: #b88cff;
  --danger: #ff7c9f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(116, 232, 255, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(184, 140, 255, 0.18), transparent 34rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

code {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 0.45rem;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.7rem 1rem;
  margin: 0;
  clip: auto;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
}

.site-header {
  position: relative;
}

.nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(9, 11, 18, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand img,
.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  position: fixed;
  inset: 74px 1rem auto 1rem;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  background: rgba(16, 21, 34, 0.97);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: translateY(-1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-menu a {
  padding: 0.85rem 0.95rem;
  color: var(--muted);
  border-radius: 14px;
  transition: color 160ms ease, background 160ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding: 8.5rem 1.1rem 3.5rem;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(9, 11, 18, 0.08), rgba(9, 11, 18, 0.92) 86%),
    linear-gradient(90deg, rgba(9, 11, 18, 0.78), rgba(9, 11, 18, 0.18)),
    url("../img/hero.webp") center / cover no-repeat;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -25% -15%;
  z-index: -1;
  height: 44%;
  background: radial-gradient(circle, rgba(116, 232, 255, 0.2), transparent 55%);
  filter: blur(30px);
}

.hero-content {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.05;
  margin: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4.2rem, 19vw, 10rem);
  letter-spacing: -0.09em;
  text-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

h2 {
  font-size: clamp(2rem, 8vw, 4.25rem);
  letter-spacing: -0.06em;
}

h3 {
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 680px;
  margin: 1rem 0 0;
  color: #e7ebff;
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
}

.hero-actions,
.track-actions,
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus-visible,
.icon-btn:hover,
.icon-btn:focus-visible,
.play-button:hover,
.play-button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn.primary {
  color: #071019;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.btn.secondary,
.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.btn.ghost {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
}

.section {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: 4rem 1.1rem;
}

.section.alt {
  width: 100%;
  max-width: none;
  padding-inline: max(1.1rem, calc((100vw - var(--max)) / 2 + 1.1rem));
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border-block: 1px solid rgba(255, 255, 255, 0.07);
}

.section-head {
  max-width: 740px;
  margin-bottom: 1.65rem;
}

.section-head p:not(.eyebrow) {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.social-grid,
.cards,
.photo-grid,
.event-list {
  display: grid;
  gap: 1rem;
}

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

.social-card,
.track-card,
.video-card,
.event-card,
.contact-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.045));
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.17);
}

.social-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(116, 232, 255, 0.55);
  background: var(--bg-card-strong);
  outline: none;
}

.social-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  grid-row: span 2;
}

.social-card span {
  font-weight: 850;
}

.social-card small {
  color: var(--muted);
}

.track-grid,
.video-grid {
  grid-template-columns: 1fr;
}

.track-card,
.video-card,
.event-card {
  overflow: hidden;
}

.track-cover,
.video-preview,
.event-image,
.photo-button img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.track-body,
.video-body,
.event-body {
  padding: 1.05rem;
}

.track-meta,
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.6rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.track-body p,
.video-body p,
.event-body p {
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.audio-row {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.track-audio {
  width: 100%;
  accent-color: var(--accent);
}

.audio-missing {
  padding: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  font-size: 0.92rem;
}

.video-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 0;
  color: var(--text);
  background: #111827;
  border: 0;
  cursor: pointer;
}

.video-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 220ms ease, opacity 220ms ease;
}

.video-preview:hover img,
.video-preview:focus-visible img {
  transform: scale(1.04);
  opacity: 0.78;
}

.play-button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: #081018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  box-shadow: 0 20px 70px rgba(0,0,0,0.45);
  font-size: 1.9rem;
  font-weight: 900;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

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

.photo-button {
  position: relative;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}

.photo-button img {
  aspect-ratio: 4 / 3;
  transition: transform 220ms ease, opacity 220ms ease;
}

.photo-button:hover img,
.photo-button:focus-visible img {
  transform: scale(1.05);
  opacity: 0.82;
}

.photo-caption {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.45rem 0.6rem;
  text-align: left;
  background: rgba(9, 11, 18, 0.68);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  font-weight: 800;
}

.event-list {
  grid-template-columns: 1fr;
}

.event-card {
  display: grid;
}

.event-image {
  aspect-ratio: 16 / 10;
}

.event-date {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.contact-card p:not(.eyebrow) {
  color: var(--muted);
}

.footer {
  padding: 2.2rem 1.1rem;
  background: #06080d;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
}

.footer-social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
  outline: none;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.media-dialog {
  width: min(96vw, 1050px);
  max-height: 90svh;
  padding: 0;
  color: var(--text);
  background: rgba(6, 8, 13, 0.98);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.media-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  background: rgba(0,0,0,0.58);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.dialog-content {
  padding: 0;
}

.dialog-content img {
  width: 100%;
  max-height: 84svh;
  object-fit: contain;
  background: #000;
}

.dialog-caption {
  padding: 1rem;
  color: var(--muted);
}

.gallery-view {
  position: relative;
  display: grid;
  min-height: min(90svh, 760px);
  background: #000;
}

.gallery-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.dialog-content .gallery-image {
  width: 100%;
  height: min(78svh, 720px);
  max-height: none;
  object-fit: contain;
  background: #000;
}

.gallery-caption {
  display: grid;
  gap: 0.25rem;
  background: rgba(6, 8, 13, 0.96);
}

.gallery-caption strong {
  color: var(--text);
}

.gallery-caption span,
.gallery-caption small {
  color: var(--muted);
}

.dialog-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 64px;
  color: var(--text);
  background: rgba(0,0,0,0.58);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 2.6rem;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.dialog-nav:hover,
.dialog-nav:focus-visible {
  background: rgba(0,0,0,0.82);
  border-color: rgba(116, 232, 255, 0.55);
  outline: none;
}

.dialog-prev {
  left: 0.75rem;
}

.dialog-next {
  right: 0.75rem;
}

.gallery-view.single .dialog-nav {
  display: none;
}

@media (max-width: 639px) {
  .media-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100svh;
    border-radius: 0;
  }

  .gallery-view {
    min-height: 100svh;
  }

  .dialog-content .gallery-image {
    height: calc(100svh - 116px);
  }

  .dialog-nav {
    width: 42px;
    height: 58px;
    font-size: 2.3rem;
  }

  .dialog-prev {
    left: 0.45rem;
  }

  .dialog-next {
    right: 0.45rem;
  }
}

.scroll-top {
  position: fixed;
  z-index: 40;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #061018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.32);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.7rem);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 1.25rem;
  font-weight: 900;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .social-grid,
  .track-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .event-card {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .event-image {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 0.55rem 0.8rem;
  }

  .hero {
    min-height: 92svh;
    padding-inline: 2rem;
  }

  .section {
    padding-block: 6rem;
  }

  .social-grid,
  .track-grid,
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer-links,
  .footer-note {
    justify-content: flex-end;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
