/* =========================================================
   YELLOW FROG — band site
   ========================================================= */

:root {
  --bg:          #0a0d0a;
  --bg-2:        #0f140f;
  --ink:         #f4f7ee;
  --muted:       #9a96a8;
  --yellow:      #ffd000;
  --yellow-2:    #ffe45c;
  --accent:      #b06bff;   /* purple */
  --accent-2:    #cda2ff;
  --accent-deep: #7c3aed;
  --line:        rgba(255, 255, 255, .08);
  --card:        rgba(255, 255, 255, .025);
  --maxw:        1160px;
  --ease:        cubic-bezier(.16,.84,.27,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}
body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--yellow); color: #0a0d0a; }

/* ===== Background layers ===== */
.bg-grid, .bg-glow, .noise {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
}
.bg-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  z-index: -2;
  background:
    radial-gradient(60% 50% at 18% 8%, rgba(255, 208, 0, .16), transparent 60%),
    radial-gradient(55% 45% at 85% 20%, rgba(176, 107, 255, .16), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(255, 208, 0, .09), transparent 60%);
  animation: glow-drift 18s var(--ease) infinite alternate;
}
@keyframes glow-drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
.noise {
  z-index: -1; opacity: .04;
  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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Topbar / Nav ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(10,13,10,.88), rgba(10,13,10,.35));
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; font-family: "Anton", sans-serif; font-size: 1.4rem; letter-spacing: .05em; }
.brand-text { color: var(--yellow); }

.nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: .03em; }
.nav a { position: relative; padding: .25rem 0; color: var(--muted); transition: color .25s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 7rem 1.25rem 5rem; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: grayscale(1) contrast(1.05);
  opacity: .5;
  animation: hero-zoom 22s var(--ease) infinite alternate;
}
@keyframes hero-zoom { from { transform: scale(1.05); } to { transform: scale(1.18); } }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 70% at 50% 40%, transparent, rgba(10,13,10,.55) 70%, var(--bg) 100%),
    linear-gradient(180deg, rgba(10,13,10,.5), rgba(10,13,10,.2) 40%, var(--bg));
}

.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.kicker {
  font-family: "Bebas Neue", sans-serif; letter-spacing: .3em;
  font-size: 1.15rem; color: var(--accent-2);
  margin-bottom: 1rem; text-transform: uppercase;
}
.hero-title { font-family: "Anton", sans-serif; font-weight: 400; line-height: 1.08; letter-spacing: .01em; margin-bottom: 2rem; }
.hero-title .line { display: block; font-size: clamp(3.8rem, 18vw, 13rem); color: var(--yellow); }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: "Bebas Neue", sans-serif; letter-spacing: .12em; font-size: 1.15rem;
  line-height: 1; padding: 1rem 1.8rem .85rem; border-radius: 999px;
  border: 2px solid transparent;
}
.btn .ico { width: 1em; height: 1em; fill: currentColor; }
.btn-primary { background: var(--yellow); color: #0a0d0a; }
.btn-accent { background: var(--accent); color: #0a0d0a; }

/* ===== Marquee ===== */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,208,0,.08), rgba(176,107,255,.10)); padding: .9rem 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track span {
  font-family: "Anton", sans-serif; font-size: clamp(1.1rem, 2.6vw, 1.8rem);
  letter-spacing: .05em; color: var(--yellow-2); white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 4vw, 2rem); }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.6rem; }
.section-num { font-family: "Bebas Neue", sans-serif; color: var(--accent-2); font-size: 1.4rem; letter-spacing: .1em; }
.section-title {
  font-family: "Anton", sans-serif; font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1; letter-spacing: .01em;
}
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin-bottom: 2.4rem; }
.sub-head {
  font-family: "Bebas Neue", sans-serif; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-2); font-size: 1.1rem; margin-bottom: 1rem;
}
.sub-head-2 { margin-top: 3rem; }

/* Reveal on scroll — progressive enhancement (only hidden when JS is active). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== Playlist ===== */
.playlist { list-style: none; border-top: 1px solid var(--line); margin-bottom: 2.2rem; }
.track {
  position: relative; width: 100%; text-align: left; color: inherit;
  display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: 1rem;
  padding: 1.1rem 1.6rem; border: 0; border-bottom: 1px solid var(--line); background: none;
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.track:hover { background: rgba(255,208,0,.05); }
.track-idx { font-family: "Bebas Neue", sans-serif; font-size: 1.3rem; color: var(--muted); }
.track-name { font-family: "Bebas Neue", sans-serif; font-size: 1.5rem; letter-spacing: .03em; }
.track-name small { display: block; font-family: "Space Grotesk", sans-serif; font-size: .72rem; letter-spacing: .05em; color: var(--muted); }

/* play / equalizer state on the right */
.track-state { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; }
.track-state .ico { width: 1.1rem; height: 1.1rem; fill: var(--yellow); opacity: .65; transition: .25s var(--ease); }
.track:hover .track-state .ico { opacity: 1; }
.tp-bars { display: none; align-items: flex-end; gap: 2px; height: 1rem; }
.tp-bars i { width: 3px; height: 4px; background: var(--yellow); border-radius: 2px; }

/* active / playing track highlight */
.track.active { background: linear-gradient(90deg, rgba(255,208,0,.14), rgba(255,208,0,.02) 70%); }
.track.active .track-idx { color: var(--yellow); }
.track.active .track-name { color: var(--yellow); }
.track.active.playing .tp-play { display: none; }
.track.active.playing .tp-bars { display: flex; }
.track.active.playing .tp-bars i { animation: eq 1s ease-in-out infinite; }
.track.active.playing .tp-bars i:nth-child(2) { animation-delay: .25s; }
.track.active.playing .tp-bars i:nth-child(3) { animation-delay: .5s; }

.platforms { display: flex; flex-wrap: wrap; gap: .7rem; }
.platform {
  padding: .65rem 1.2rem; line-height: 1; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 500; font-size: .95rem;
}
.platform:hover { background: var(--yellow); color: #0a0d0a; border-color: var(--yellow); }

/* ===== Gallery (black & white, no enlarging) ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.shot { border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--card); margin: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: filter .45s var(--ease); }
.shot:hover img { filter: grayscale(0); }
/* Feature shot fills a balanced 2x2 block; the square small cells set the row height */
.shot-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-foot { margin-top: 1.6rem; color: var(--muted); }
.gallery-foot a { color: var(--yellow); border-bottom: 1px solid var(--yellow); }

/* ===== Live ===== */
.gig-note { color: var(--muted); }
.gig-note a { color: var(--yellow); border-bottom: 1px solid var(--yellow); }
.venue-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; }
.venue-cloud li {
  padding: .6rem 1.1rem; line-height: 1; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: .95rem;
}
.venue-cloud li:hover { color: #0a0d0a; background: var(--yellow); border-color: var(--yellow); }

/* ===== About ===== */
.about-text { max-width: 70ch; }
.about-text p { color: var(--ink); font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.55; }
.about-text p + p { margin-top: 1.3rem; }
.about-text em { color: var(--accent-2); font-style: normal; }

/* ===== Contact ===== */
.contact { text-align: left; }
.contact .section-head { justify-content: flex-start; }
.mail {
  display: inline-block; font-family: "Anton", sans-serif;
  font-size: clamp(1.5rem, 6vw, 3.2rem); letter-spacing: .01em; word-break: break-word;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: filter .3s var(--ease);
}
.mail:hover { filter: drop-shadow(0 0 18px rgba(255,208,0,.5)); }
.contact-person { color: var(--muted); margin-top: .8rem; }
.socials { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 1rem; margin-top: 2.5rem; }
.socials a { padding: .7rem 1.3rem; line-height: 1; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.socials a:hover { color: #0a0d0a; background: var(--yellow); border-color: var(--yellow); }

/* ===== Footer ===== */
.footer { text-align: center; padding: 3rem 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { font-family: "Anton", sans-serif; font-size: 1.6rem; letter-spacing: .06em; color: var(--yellow); margin-bottom: .5rem; }

/* ===== Persistent player — same translucency as the menubar ===== */
.player {
  position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 150%);
  z-index: 60; width: min(960px, calc(100vw - 2rem));
  display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 1rem;
  padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(0deg, rgba(10,13,10,.88), rgba(10,13,10,.45));
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  transition: transform .45s var(--ease); opacity: 0; pointer-events: none;
}
.player.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.player-art {
  width: 48px; height: 48px; border-radius: 12px; border: 0; flex-shrink: 0;
  background: var(--yellow);
  display: grid; place-items: center;
}
.bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.bars i { width: 3px; height: 6px; background: #0a0d0a; border-radius: 2px; }
.player.playing .bars i { animation: eq .9s ease-in-out infinite; }
.player.playing .bars i:nth-child(2){ animation-delay:.2s } .player.playing .bars i:nth-child(3){ animation-delay:.4s } .player.playing .bars i:nth-child(4){ animation-delay:.1s }
@keyframes eq { 0%,100%{height:4px} 50%{height:18px} }
.player-meta { min-width: 0; }
.player-title { display: block; font-family: "Bebas Neue", sans-serif; font-size: 1.2rem; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { display: block; color: var(--muted); font-size: .78rem; }

.player-controls { display: flex; align-items: center; gap: .3rem; }
.player-controls button {
  background: none; border: 0; color: var(--ink); padding: .3rem; border-radius: 50%;
  display: grid; place-items: center; transition: .2s; position: relative;
}
.player-controls button .ico { width: 1.3rem; height: 1.3rem; fill: currentColor; }
.player-controls button:hover { color: var(--yellow); }
.player-controls .toggle {
  width: 42px; height: 42px; background: var(--yellow); color: #0a0d0a;
}
.player-controls .toggle .ico { width: 1.25rem; height: 1.25rem; }
.player-controls .toggle:hover { color: #0a0d0a; transform: scale(1.06); }

/* play / pause / loading swap */
.toggle .ico-pause { display: none; }
.player.playing .toggle .ico-play { display: none; }
.player.playing .toggle .ico-pause { display: block; }
.toggle .spinner { display: none; }
.player.loading .toggle .ico-play, .player.loading .toggle .ico-pause { display: none; }
.player.loading .toggle .spinner {
  display: block; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(10,13,10,.35); border-top-color: #0a0d0a;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.player-progress { display: flex; align-items: center; gap: .6rem; }
.time { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.4em; }
#seek {
  -webkit-appearance: none; appearance: none; width: 160px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--yellow) var(--p,0%), rgba(255,255,255,.15) var(--p,0%));
}
#seek::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--yellow); cursor: pointer; box-shadow: 0 0 8px rgba(255,208,0,.6); }
#seek::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--yellow); cursor: pointer; }
.player-close { background: none; border: 0; color: var(--muted); padding: .3rem; display: grid; place-items: center; }
.player-close .ico { width: 1.1rem; height: 1.1rem; }
.player-close:hover { color: var(--ink); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot-wide { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .nav-burger { display: flex; position: relative; z-index: 60; }
  .brand { position: relative; z-index: 60; }
  /* Use viewport units: .topbar's backdrop-filter makes it the containing block,
     so inset:0 would clamp the menu to the bar's height. */
  .nav {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100svh; z-index: 40;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 1.9rem; padding: 5rem 2rem 2rem;
    background: rgba(8,11,8,.985); backdrop-filter: blur(16px);
    transform: translateX(100%); transition: none;
    font-size: 1.9rem; font-family: "Bebas Neue", sans-serif; letter-spacing: .06em;
  }
  .nav a { color: var(--ink); }
  .nav a::after { display: none; }
  .nav-toggle:checked ~ .topbar .nav { transform: translateX(0); }
  .nav-toggle:checked ~ .topbar .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .topbar .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .topbar .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .player { grid-template-columns: auto 1fr auto; gap: .6rem; padding: .6rem .7rem; }
  .player-progress { display: none; }
  .player-close { display: none; }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; }
  .shot-wide { grid-column: span 1; grid-row: span 1; aspect-ratio: 1; }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep transitions calm and disable large background motion, but keep the
     band's essential looping motion (marquee + now-playing equalizer). */
  *, *::before, *::after { scroll-behavior: auto; transition-duration: .01ms !important; }
  .hero-img, .bg-glow { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
