/* Chaotic Noise homepage styles */

@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/bebas-neue.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #07070c;
  --text: #eef2ff;
  --muted: #b9c1dc;
  --accent: #4f63ff;        /* electric version of the logo's blue: buttons, badges */
  --accent-light: #9aa8ff;  /* same hue, readable as text on dark photos */
  --card: rgba(10, 11, 22, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --nav-h: 64px;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

/* Anything marked hidden stays hidden, even if a rule below gives it a display */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-light); }
a:hover { color: #fff; }

img { max-width: 100%; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.95;
  margin: 0;
}

h2 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  text-align: center;
  margin-bottom: 36px;
}

h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 14px auto 0;
  background: var(--accent);
  border-radius: 2px;
}



/* Navbar */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(7, 7, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-links a.active::after { transform: scaleX(1); }

.nav-links a.nav-cta {
  margin-left: 8px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
}

.nav-links a.nav-cta::after { display: none; }

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus-visible { color: #fff; background: #3a4de0; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  margin: 4px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: rgba(7, 7, 12, 0.96);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.open .nav-links { display: flex; }

  .nav-links a { font-size: 1.6rem; padding: 10px 4px; }
  .nav-links a::after { left: 4px; right: auto; width: 40px; }
  .nav-links a.nav-cta { margin: 8px 0 0; text-align: center; }

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



/* Sections with photo backgrounds */
.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 100px 20px;
  scroll-margin-top: calc(var(--nav-h) - 1px);
}

/* Background photo layer. site.js slides it (--shift) a little slower than
   the page scrolls for a parallax effect; it's 120px taller at each end so
   no edge ever shows. */
.section::before {
  content: "";
  position: absolute;
  inset: -120px 0;
  z-index: -2;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--shift, 0px), 0);
  will-change: transform;
}

/* Dark gradient over the photo so text stays readable */
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 7, 12, 0.72) 0%, rgba(7, 7, 12, 0.55) 45%, rgba(7, 7, 12, 0.8) 100%);
}

.section .content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.bg-about   { --photo: url("images/bg_about_IMG_6009.jpg"); }
.bg-events  { --photo: url("images/bg_events_IMG_8397.jpg"); }
.bg-live    { --photo: url("images/bg_live_IMG_1654.jpg"); }
.bg-video   { --photo: url("images/bg_video_20250914_TectonicLoinsVideoShoot.jpg"); }
.bg-music   { --photo: url("images/bg_music_SDIM7112.jpg"); }
.bg-shop    { --photo: url("images/bg_shop_IMG_6362.jpg"); }
.bg-booking { --photo: url("images/bg_booking_IMG_0335.jpg"); }

.section-intro {
  max-width: 62ch;
  margin: 0 auto 12px;
  font-size: 1.1rem;
}

.aside {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}



/* Buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 0;
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 14px 28px 12px;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s, color 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn:active { transform: translateY(1px); }

/* Keyboard focus: a clear ring that shows on any background */
.btn:focus-visible,
.nav-links a:focus-visible,
.next-up:focus-visible,
.socials a:focus-visible,
.yt:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(79, 99, 255, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  background: #3a4de0;
  box-shadow: 0 10px 28px rgba(79, 99, 255, 0.5);
}

.btn-primary:active {
  color: #fff;
  background: #2f40c4;
}

/* Outlined button: fills white with dark text when hovered or pressed */
.btn-ghost {
  background: rgba(7, 7, 12, 0.35);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-ghost:hover,
.btn-ghost:focus-visible,
.btn-ghost:active,
.btn-ghost[aria-expanded="true"] {
  color: #07070c;
  background: #fff;
  border-color: #fff;
}

.btn-ghost:active { background: #d9deff; border-color: #d9deff; }

.btn-small {
  font-size: 1.25rem;
  padding: 10px 20px 8px;
}



/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 20px);
}

.hero .content { width: 100%; }

.hero-logo {
  width: clamp(120px, min(17vw, 20vh), 190px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(79, 99, 255, 0.45));
  animation: logo-drop 1.1s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

@keyframes logo-drop {
  0%   { transform: translateY(-60px) rotate(-12deg) scale(0.8); opacity: 0; }
  60%  { transform: translateY(6px) rotate(3deg) scale(1.03); opacity: 1; }
  80%  { transform: translateY(-3px) rotate(-1deg); }
  100% { transform: none; }
}

.hero h1 {
  font-size: clamp(3.2rem, min(10vw, 10vh), 6.2rem);
  margin: 14px 0 14px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-tagline {
  max-width: 34ch;
  margin: 0 auto;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 600;
}

.next-up {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  margin-top: 26px;
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid rgba(79, 99, 255, 0.7);
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.next-up:hover {
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.next-up-label {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--accent-light);
}

.next-up-label::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  vertical-align: 2px;
  border-radius: 50%;
  background: #3dff8a;
  box-shadow: 0 0 0 0 rgba(61, 255, 138, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px rgba(61, 255, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 255, 138, 0); }
}

.next-up-text { font-weight: 600; }

.hero-about {
  max-width: 62ch;
  margin: 44px auto 0;
  color: var(--muted);
}



/* Events */
.event-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  text-align: left;
}

.event {
  display: grid;
  grid-template-columns: 76px 96px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.event:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 99, 255, 0.6);
}

.date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 88px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  line-height: 1;
  text-align: center;
}

.date-badge .month { font-size: 1.25rem; letter-spacing: 0.08em; }
.date-badge .day { font-size: 2.6rem; }
.date-badge .weekday { font-size: 0.95rem; letter-spacing: 0.08em; opacity: 0.85; }

.event-flier {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  background: #111;
  transition: transform 0.2s;
}

.event-flier:hover { transform: rotate(-3deg) scale(1.06); }

.event-title {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 4px;
}

.event-title a { color: var(--text); text-decoration: none; }
.event-title a:hover { color: var(--accent-light); text-decoration: underline; }

.event-where a { color: var(--muted); font-weight: 600; text-decoration: none; }
.event-where a:hover { color: #fff; text-decoration: underline; }

.event-when { color: var(--muted); font-size: 0.92rem; }

.event-list.past .event { opacity: 0.9; }
.event-list.past .date-badge { background: #2a2d45; }

.past-toggle { margin-top: 30px; }
.past-toggle .count { opacity: 0.7; }

#past-events { margin-top: 20px; }

.empty-note {
  max-width: 52ch;
  margin: 0 auto;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

@media (max-width: 600px) {
  .event {
    grid-template-columns: 60px 1fr 64px;
    gap: 12px;
    padding: 12px;
  }
  .event-flier { grid-column: 3; grid-row: 1; width: 64px; height: 64px; }
  .event-info { grid-column: 2; grid-row: 1; }
  .date-badge { height: 72px; }
  .date-badge .day { font-size: 2.1rem; }
  .event-title { font-size: 1.02rem; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  box-shadow: 0 0 30px black;
}



/* Live & video */
.feature-photo {
  max-width: 1000px;
  margin: 0 auto 24px;
}

.feature-photo img {
  display: block;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
}

.video-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.video.featured { grid-column: 1 / -1; }

/* No rounded clipping around live players: some browsers draw them blank */
.video {
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Video thumbnail with a play button; the YouTube player loads when tapped */
.yt {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
  background: #000;
}

.yt img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.yt:hover img { opacity: 1; }

.yt .play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 54px;
  margin: -27px 0 0 -38px;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, background-color 0.2s;
}

.yt .play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -12px 0 0 -8px;
  border-style: solid;
  border-width: 12px 0 12px 21px;
  border-color: transparent transparent transparent #fff;
}

.yt:hover .play {
  transform: scale(1.1) rotate(-4deg);
  background: #3a4de0;
}

.yt-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
}

@media (max-width: 700px) {
  .video-grid { grid-template-columns: 1fr; }
}



/* Music */
.bandcamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
  max-width: 860px;
  margin: 24px auto 0;
}

.bandcamp-grid iframe {
  width: 100%;
  max-width: 400px;
  height: 439px;
  border: 0;
}



/* Shop */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.shop-grid a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}

.shop-grid a:nth-child(odd):hover { transform: rotate(-2deg) translateY(-4px); }
.shop-grid a:nth-child(even):hover { transform: rotate(2deg) translateY(-4px); }

.shop-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.shop-grid span {
  display: block;
  margin-top: 10px;
}

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



/* Booking */
.email-line {
  margin-top: 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}



/* Footer */
.footer {
  padding: 60px 20px 40px;
  text-align: center;
  background: #040407;
  border-top: 1px solid var(--line);
  color: var(--muted);
  scroll-margin-top: var(--nav-h);
}

.footer-logo {
  width: 90px;
  height: auto;
  opacity: 0.9;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}

.socials svg {
  width: 22px;
  height: 22px;
  fill: var(--text);
}

.socials a:hover {
  transform: translateY(-3px) rotate(-6deg);
  background: var(--accent);
  border-color: var(--accent);
}

.footer p { margin: 6px 0; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--accent-light); }
.copyright { font-size: 0.85rem; opacity: 0.8; }



/* Respect "reduce motion" settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
