/* Self-hosted (latin subset from Google Fonts): no render-blocking third-party CSS. */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/assets/fonts/unbounded.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/space-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-mono-700.woff2") format("woff2"); }

:root {
  --bg: #060608;
  --bg-2: #0d0d11;
  --fg: #ecebe6;
  --muted: #8a8a8f;
  --line: rgba(236, 235, 230, 0.14);
  --acid: #c6ff00;
  --magenta: #ff2e88;
  --display: "Unbounded", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --kick: 0;
  --snare: 0;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }

::selection { background: var(--acid); color: var(--bg); }

/* ---------- Fixed layers ---------- */
#hero-gl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh; /* large viewport: no jump when the mobile address bar hides */
  z-index: 0;
  display: block;
}

/* Static portrait for devices without hardware WebGL (no GPU, software rendering):
   the shader would bog the page down there. Only downloaded when .no-gl is set. */
.hero-photo { display: none; }
.no-gl #hero-gl { display: none; }
.no-gl .hero-photo {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  z-index: 0;
  background: url("/assets/img/trippcore.jpg") 47% 30% / cover no-repeat;
  /* WebP made once from the JPG with sharp (.webp({ quality: 80 })); redo it if the photo changes */
  background-image: image-set(url("/assets/img/trippcore.webp") type("image/webp"), url("/assets/img/trippcore.jpg") type("image/jpeg"));
  filter: grayscale(1) contrast(1.15) brightness(0.68);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
@media (min-aspect-ratio: 9/10) {
  .no-gl .hero-photo {
    top: -4svh;
    left: 64%;
    width: calc(112svh * 2 / 3);
    height: 112svh;
    transform: translateX(-50%);
    background-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent), linear-gradient(0deg, transparent, #000 30%, #000 88%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent), linear-gradient(0deg, transparent, #000 30%, #000 88%, transparent);
    mask-composite: intersect;
  }
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, 3%); }
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--fg);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 100;
  transition: width .25s, height .25s, margin .25s;
}
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gutter);
  mix-blend-mode: difference;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0.04em; font-size: 15px; }
.logo-mark { width: 30px; height: auto; display: block; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.sound-toggle { display: flex; align-items: center; gap: 10px; }
.sound-toggle[hidden] { display: none; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { display: block; width: 2px; height: 3px; background: currentColor; }
.is-playing .bars i { animation: bar .9s ease-in-out infinite; }
.is-playing .bars i:nth-child(2) { animation-delay: -.3s; }
.is-playing .bars i:nth-child(3) { animation-delay: -.6s; }
.is-playing .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes bar { 0%, 100% { height: 3px; } 50% { height: 14px; } }

/* Mobile: keep the menu visible */
@media (max-width: 720px) {
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .logo-mark { width: 28px; }
  .nav-links { gap: 18px; font-size: 11px; letter-spacing: 0.06em; }
  .nav-links a { padding: 6px 0; } /* bigger tap target */
}
/* Narrow phones: the sound toggle shows only its bars (label kept for screen readers) */
@media (max-width: 480px) {
  .nav-links { gap: 14px; }
  .sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sound-toggle { padding: 10px 0 10px 10px; } /* tap target */
}
@media (max-width: 340px) {
  .nav-links { gap: 12px; font-size: 10px; }
}

/* ---------- Hero ---------- */
main { position: relative; z-index: 1; }

.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* visible area on phones, so the title isn't hidden behind the address bar */
  min-height: 560px;
  padding: 96px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-meta {
  position: absolute;
  top: 96px;
  left: var(--gutter);
  display: flex;
  gap: 24px;
  color: var(--muted);
}
.hero-meta span::before { content: "— "; color: var(--acid); }

.hero-title {
  font-weight: 900;
  font-size: calc((100vw - 2 * var(--gutter)) / 7.2); /* fits the word to the viewport width */
  line-height: 0.82;
  letter-spacing: -0.04em;
  margin-left: -0.04em;
  mix-blend-mode: difference;
  color: var(--fg);
  white-space: nowrap;
  transform: translateX(calc(var(--kick) * 6px));
  text-shadow:
    calc(var(--snare) * 12px) 0 0 rgba(255, 46, 136, .8),
    calc(var(--snare) * -12px) 0 0 rgba(198, 255, 0, .8);
}
.hero-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%) skewY(8deg);
  animation: ch-in 1.1s cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes ch-in { to { opacity: 1; transform: none; } }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-tag { color: var(--fg); max-width: 32ch; }

.play-btn { display: flex; align-items: center; gap: 16px; text-align: left; }
.play-btn[hidden] { display: none; }
.play-circle {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid var(--acid);
  display: grid;
  place-items: center;
  transform: scale(calc(1 + var(--kick) * .12));
  box-shadow: 0 0 calc(var(--kick) * 40px) rgba(198, 255, 0, .6);
  transition: background .3s;
}
.play-btn:hover .play-circle { background: var(--acid); }
.play-btn:hover .play-icon { border-left-color: var(--bg); }
.play-btn.is-playing .play-icon { border-left-color: transparent; }
.play-icon {
  width: 0; height: 0;
  margin-left: 5px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid var(--acid);
}
.play-btn.is-playing .play-icon {
  width: 14px; height: 18px; margin-left: 0;
  border: 0;
  border-left: 4px solid var(--acid);
  border-right: 4px solid var(--acid);
}
.play-btn.is-playing:hover .play-icon { border-color: var(--bg); }
.play-text { display: flex; flex-direction: column; gap: 4px; }
.play-text strong { font-weight: 700; }
.play-text small { color: var(--muted); font-size: 10px; text-transform: none; letter-spacing: .04em; }

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  writing-mode: vertical-rl;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-hint span { display: block; width: 1px; height: 48px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint span::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%;
  background: var(--acid); animation: drip 1.6s ease-in-out infinite;
}
@keyframes drip { to { top: 100%; } }

@media (max-width: 720px) {
  .hero-meta { top: 84px; flex-wrap: wrap; gap: 4px 14px; font-size: 10px; }
  .scroll-hint { display: none; }
  .play-circle { width: 60px; height: 60px; }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  background: var(--bg);
}
.section-head {
  display: flex;
  gap: 16px;
  color: var(--muted);
  padding-bottom: 20px;
  margin-bottom: clamp(32px, 6vh, 64px);
  border-bottom: 1px solid var(--line);
}
.section-head .idx { color: var(--acid); }

.bio {
  background: linear-gradient(to bottom, transparent, rgba(6, 6, 8, .85) 30%, var(--bg));
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bio-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.bio-lead { font-size: clamp(24px, 3.4vw, 52px); line-height: 1.15; letter-spacing: -0.02em; }
.bio-lead em { font-style: normal; color: var(--acid); }
.bio-body { margin-top: 28px; max-width: 46ch; color: var(--muted); font-size: clamp(16px, 1.35vw, 20px); line-height: 1.6; }
.bio-facts { list-style: none; }
.bio-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bio-facts li span:first-child { color: var(--muted); }

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

/* Latest release: sleeve with a spinning record sliding out of it */
.release { overflow: hidden; }
.release-stage { position: relative; display: grid; place-items: center; padding: clamp(16px, 4vh, 48px) 0; }
.release-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(64px, 15vw, 236px); /* before main.js fits each line to the full width */
  line-height: .86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(236, 235, 230, .16);
  pointer-events: none;
  user-select: none;
}
.release-ghost .ghost-line { display: inline-block; white-space: nowrap; line-height: .84; letter-spacing: -0.05em; }
.release-art {
  --size: min(540px, 68vw);
  --peek: 52%; /* how far the record slides out, in % of its width */
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  margin-right: calc(var(--size) * .5); /* keeps sleeve + record centred */
}
.release-art picture { display: contents; }
.release-cover {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(-3deg);
  box-shadow: 30px 40px 100px rgba(0, 0, 0, .7);
}
.vinyl { position: absolute; inset: 3%; transition: transform 1.6s cubic-bezier(.2, .8, .2, 1) .35s; }
.release-art.in .vinyl { transform: translateX(var(--peek)); }
.release-art:hover .vinyl { transform: translateX(calc(var(--peek) + 6%)); transition-delay: 0s; }
/* Audio-reactive light behind the record and sound waves off its edge (driven by main.js) */
.vinyl-glow {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 0, .5) 0%, rgba(198, 255, 0, .2) 30%, rgba(255, 46, 136, .07) 50%, transparent 68%);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.vinyl-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--acid);
  opacity: 0;
  pointer-events: none;
}
.vinyl::after { /* light reflection: stays put while the record spins */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 25deg, transparent 0 6%, rgba(255, 255, 255, .08) 11%, transparent 17% 52%, rgba(255, 255, 255, .06) 61%, transparent 67%);
  pointer-events: none;
}
.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #0b0b0e 0 2px, #17171c 2px 3px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .05);
  display: grid;
  place-items: center;
  will-change: transform;
}
.vinyl-label {
  position: relative;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--acid);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4%;
  padding-top: 24%;
  text-align: center;
}
.vinyl-label b { font-weight: 900; font-size: clamp(8px, 1.25vw, 18px); letter-spacing: -0.02em; text-transform: uppercase; }
.vinyl-label small { font-family: var(--mono); font-size: clamp(5px, .6vw, 9px); letter-spacing: .1em; text-transform: uppercase; }
.vinyl-label::after { /* spindle hole */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
  transform: translate(-50%, -50%);
}
.release-info {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 32px;
  margin-top: clamp(32px, 6vh, 64px);
}
.release-text { display: flex; flex-direction: column; gap: 14px; }
.release-tag { align-self: flex-start; padding: 5px 10px; background: var(--acid); color: var(--bg); font-weight: 700; }
.release-title { font-weight: 900; font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.release-meta { color: var(--muted); }
.release-links { display: flex; flex-wrap: wrap; gap: 12px; }
.release-links a {
  padding: 14px 22px;
  border: 1px solid rgba(236, 235, 230, .3);
  border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s;
}
.release-links a.is-primary { background: var(--acid); border-color: var(--acid); color: var(--bg); font-weight: 700; }
.release-links a:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

@media (max-width: 720px) {
  .release-ghost { -webkit-text-stroke: 1.5px rgba(236, 235, 230, .3); }
  .release-art { --size: 60vw; --peek: 42%; margin-right: calc(var(--size) * .4); }
  .release-links { width: 100%; }
  .release-links a { flex: 1 1 auto; text-align: center; }
}

/* Music + terrain */
.music { padding: 0; min-height: 110vh; overflow: hidden; }
#terrain-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.music-inner {
  position: relative;
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(6, 6, 8, 0) 40%);
}
.music-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(6, 6, 8, .62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card-kicker { color: var(--acid); margin-bottom: 18px; }
.card-sc { max-width: 980px; }
.card-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.follow { padding: 10px 16px; border: 1px solid var(--acid); color: var(--acid); border-radius: 999px; white-space: nowrap; transition: background .25s, color .25s; }
.follow:hover { background: var(--acid); color: var(--bg); }
.card h3 { font-weight: 500; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -0.01em; }
.card-meta { color: var(--muted); margin: 8px 0 24px; }
.embed-placeholder {
  height: 166px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.card iframe { width: 100%; border: 0; display: block; }
.platforms { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.platforms a, .socials a {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 6, 8, .6);
  transition: background .25s, color .25s, border-color .25s;
}
.platforms a:hover, .socials a:hover { background: var(--acid); color: var(--bg); border-color: var(--acid); }

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

/* Dates */
.dates[hidden], .nav-links a[hidden] { display: none; }
.date-list { list-style: none; }
.date-list li {
  display: grid;
  grid-template-columns: 140px 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .3s, color .3s;
}
.date-list li:hover { padding-left: 16px; color: var(--acid); }
.date-list .date { display: flex; align-items: baseline; gap: 10px; }
.date-list .date strong { font-family: var(--display); font-weight: 900; font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.date-list .date span { color: var(--muted); }
.date-list .venue { font-size: clamp(20px, 2.6vw, 36px); font-weight: 500; letter-spacing: -0.01em; }
.date-list .venue small { display: block; margin-top: 6px; color: var(--muted); }
.date-list .city { color: var(--muted); }
.date-list a { padding: 10px 16px; border: 1px solid var(--acid); color: var(--acid); border-radius: 999px; white-space: nowrap; transition: background .25s, color .25s; }
.date-list a:hover { background: var(--acid); color: var(--bg); }
.bit-follow { display: inline-block; margin-top: 32px; color: var(--muted); border-bottom: 1px solid var(--line); }
.bit-follow:hover { color: var(--fg); }
@media (max-width: 720px) {
  .date-list li { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .date-list .venue { grid-column: 1 / -1; grid-row: 2; }
  .date-list .city { grid-column: 1 / -1; grid-row: 3; }
  .date-list a { grid-column: 2; grid-row: 1; }
}

/* Booking */
.booking { min-height: 80vh; }
.booking-mail {
  display: inline-block;
  font-weight: 900;
  font-size: clamp(36px, 9vw, 150px);
  line-height: .9;
  letter-spacing: -0.04em;
  word-break: break-word;
  transition: color .3s;
}
.booking-mail:hover { color: var(--acid); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 10px;
}

/* Drag & drop */
body.is-dragging::after {
  content: "Drop your track";
  position: fixed;
  inset: 16px;
  z-index: 90;
  display: grid;
  place-items: center;
  border: 2px dashed var(--acid);
  color: var(--acid);
  background: rgba(6, 6, 8, .7);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 6vw, 72px);
  text-transform: uppercase;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .hero-title .ch, .scroll-hint span::after { animation: none; }
  .hero-title .ch { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .vinyl { transition: none; }
}
