/* Swirl: black ground, white ink, Caprasimo display over Figtree body. */

:root {
  --bg: #000;
  --ink: #fff;
  --ink-soft: #d6d6d6;
  --ink-mid: #a8a8a8;
  --ink-dim: #8a8a8a;
  --ink-faint: #6f6f6f;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.18);
  --font-display: 'Caprasimo', serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --gutter: clamp(18px, 5vw, 64px);
  --section-pad: clamp(60px, 9vw, 120px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: #bdbdbd; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: lowercase;
}

h2 {
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

svg use { color: currentColor; }

@keyframes swirlspin { to { transform: rotate(360deg); } }
@keyframes swirlspinrev { to { transform: rotate(-360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 48px)); } }

.spin { animation: swirlspin var(--spin-time, 26s) linear infinite; }
.spin-rev { animation: swirlspinrev var(--spin-time, 60s) linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .spin, .spin-rev, .marquee-track, .hero-word { animation: none; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  transition: background .18s, color .18s, border-color .18s;
}
.btn-solid { background: var(--ink); color: var(--bg); font-weight: 700; letter-spacing: 0.02em; }
.btn-solid:hover { background: #dcdcdc; color: var(--bg); }
.btn-outline { border: 1px solid rgba(255, 255, 255, 0.5); font-weight: 500; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { padding: 16px 34px; font-size: clamp(16px, 2vw, 20px); }

.pill { border: 1px solid var(--ink); border-radius: 999px; padding: 8px 18px; }
.pill:hover { background: var(--ink); color: var(--bg); }

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand span { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.02em; line-height: 1; }
.nav-logo { width: 30px; height: 30px; flex: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(60px, 11vw, 140px) var(--gutter) clamp(70px, 10vw, 130px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(150vw, 1400px);
  height: min(150vw, 1400px);
  margin: calc(min(150vw, 1400px) / -2) 0 0 calc(min(150vw, 1400px) / -2);
  opacity: 0.12;
  pointer-events: none;
  --spin-time: 200s;
}
.hero-bg-fast {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(110vw, 1000px);
  height: min(110vw, 1000px);
  margin: calc(min(110vw, 1000px) / -2) 0 0 calc(min(110vw, 1000px) / -2);
  opacity: 0.2;
  pointer-events: none;
  --spin-time: 30s;
}
.hero-bg svg, .hero-bg-fast svg, .band-bg svg, .contact-bg svg { width: 100%; height: 100%; display: block; }

/* Isolated so the wordmark's blend only sees the ring and the spiral,
   not the sky: white text turns black exactly where a line crosses it. */
.hero-mark {
  position: relative;
  width: min(84vw, 640px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-swirl {
  position: absolute;
  top: 8%;
  left: 8%;
  width: 84%;
  height: 84%;
  opacity: 0.85;
  --spin-time: 55s;
}
/* Two copies of the wordmark: the h1 blends with the ring and spiral, the
   solid copy on top fades in as the mouse nears the centre (--reveal from
   app.js), so the text turns fully white there. */
.hero-word {
  position: relative;
  z-index: 1;
  cursor: default;
  animation: wordmark-grow 90s ease-out forwards;
}
.hero-word h1, .hero-word-solid {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: lowercase;
  font-size: clamp(52px, 13vw, 140px);
  line-height: 0.82;
  letter-spacing: -0.02em;
}
.hero-word h1 { mix-blend-mode: difference; }
.hero-word-solid {
  position: absolute;
  inset: 0;
  color: var(--ink);
  opacity: var(--reveal, 0);
  transition: opacity 0.15s linear;
  pointer-events: none;
}
@keyframes wordmark-grow { from { transform: scale(1); } to { transform: scale(1.05); } }
.hero-lead {
  position: relative;
  margin: clamp(20px, 4vw, 36px) 0 0;
  max-width: 36ch;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.6;
  color: #c9c9c9;
  text-wrap: pretty;
}
.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: clamp(24px, 4vw, 38px);
}

.hero-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: 50% 50%;
  filter: grayscale(1) contrast(1.15) brightness(0.8);
  animation: kenburns 40s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-sky::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
@media (prefers-reduced-motion: reduce) {
  .hero-sky img { animation: none; transform: scale(1.06); }
}

.hero-photo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: 50% 50%;
  animation: kenburns 40s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-photo::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.12) translate(-2%, 1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none; transform: scale(1.06); }
}

/* Marquee */

.marquee {
  display: flex;
  gap: 48px;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 30px);
  color: rgba(255, 255, 255, 0.42);
  user-select: none;
}
.marquee-track { display: flex; gap: 48px; flex: none; animation: marquee 34s linear infinite; }

/* Sections */

.section {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--line);
}
.music { max-width: 1180px; margin: 0 auto; border-top: 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 4vw, 46px);
}
.section-head p { margin: 0; max-width: 40ch; font-size: 15px; line-height: 1.6; color: var(--ink-mid); }

/* Tracks */

.tracks { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.track {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  padding: clamp(14px, 2.2vw, 22px) 0;
  border-bottom: 1px solid var(--line-strong);
}
.play {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background .18s, color .18s, transform .18s;
}
.play:hover { background: var(--ink); color: var(--bg); }
.play:active { transform: scale(0.94); }
.play::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  clip-path: polygon(25% 10%, 90% 50%, 25% 90%);
}
.track.is-playing .play::before {
  clip-path: polygon(25% 19%, 42% 19%, 42% 81%, 25% 81%, 25% 19%, 58% 19%, 75% 19%, 75% 81%, 58% 81%, 58% 19%);
}
.track-info { min-width: 0; }
.track-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.track-title { font-family: var(--font-display); font-size: clamp(19px, 2.6vw, 30px); line-height: 1.15; text-transform: lowercase; }
.track-meta { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.progress { margin-top: 10px; height: 3px; border-radius: 999px; background: var(--line-strong); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--ink); border-radius: 999px; transition: width .15s linear; }
.download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .18s, color .18s;
}
.download:hover { background: var(--ink); color: var(--bg); }
.downloads { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.download-alts { display: flex; gap: 14px; }
.download-alt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.download-alt::before { content: "+ "; }
.download-alt:hover { color: var(--ink); border-bottom-color: var(--ink); }

.spotify {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 12px 22px 12px 16px;
  font-size: 14px;
  letter-spacing: 0.06em;
  font-weight: 500;
  transition: background .18s, color .18s;
}
.spotify svg { width: 24px; height: 24px; flex: none; }
.spotify:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 520px) {
  .track { grid-template-columns: auto minmax(0, 1fr); }
  .downloads { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
}

/* Band */

.band { overflow: hidden; }
.band-bg {
  position: absolute;
  right: -18vw;
  top: -10vw;
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  opacity: 0.13;
  pointer-events: none;
  --spin-time: 35s;
}
.band-grid {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.band h2 { margin-bottom: 22px; }
.band-text {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 52ch;
  text-wrap: pretty;
}
.band-text.muted { margin: 0; color: #9d9d9d; }
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.members li {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 12px 22px 12px 12px;
}
.members svg { width: 40px; height: 40px; flex: none; opacity: 0.8; transition: opacity 0.2s; }
.members li:hover { border-color: rgba(255, 255, 255, 0.5); }
.members li:hover svg { opacity: 1; animation: swirlspin 2.5s linear infinite; }
.member-name { font-family: var(--font-display); font-size: 20px; text-transform: lowercase; }
.member-role { margin-left: auto; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }

/* Shows */

.shows > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.shows h2 { margin-bottom: clamp(26px, 4vw, 46px); }
.show-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.show {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px 24px;
  align-items: baseline;
  padding: clamp(16px, 2.4vw, 24px) 0;
  border-bottom: 1px solid var(--line-strong);
}
.show-date { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px); }
.show-city { font-size: clamp(15px, 1.7vw, 19px); color: var(--ink-soft); }
.show-venue { font-size: clamp(15px, 1.7vw, 19px); color: var(--ink-dim); }
.show-status {
  justify-self: start;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 7px 16px;
}
.show-status.sold-out { color: #7d7d7d; }

/* Contact */

.contact { padding: clamp(70px, 10vw, 140px) var(--gutter); text-align: center; overflow: hidden; }
.contact-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(120vw, 960px);
  height: min(120vw, 960px);
  margin: calc(min(120vw, 960px) / -2) 0 0 calc(min(120vw, 960px) / -2);
  opacity: 0.12;
  pointer-events: none;
  --spin-time: 60s;
}
.contact-inner { position: relative; max-width: 620px; margin: 0 auto; }
.contact h2 { margin-bottom: 16px; font-size: clamp(32px, 5.5vw, 64px); line-height: 0.98; }
.contact p { margin: 0 0 28px; font-size: 17px; line-height: 1.6; color: var(--ink-mid); }

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #9d9d9d; }
