/* ---------- Intro ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 55%, #140509 0%, #030304 64%);
  transition: opacity 1.2s ease, visibility 1.2s;
}
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

.intro__meta { display: flex; justify-content: space-between; color: var(--muted); }
.intro__center { display: grid; gap: 18px; }

.intro__line {
  width: calc(100% + var(--gutter) * 2);
  margin: 0 calc(var(--gutter) * -1);
  height: clamp(110px, 22vh, 220px);
  overflow: visible;
  transition: transform 1.1s var(--ease), opacity 1.1s;
}
.intro__line path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(var(--red-rgb), .9));
  animation: draw 2.6s cubic-bezier(.65, 0, .25, 1) .3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro.is-leaving .intro__line { transform: scaleY(3.2); opacity: 0; }

.intro__log {
  margin: 0 auto;
  width: min(100%, 420px);
  min-height: 7.5em;
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--muted);
  white-space: pre-wrap;
}
.intro__log b { color: var(--red); font-weight: 500; }
.intro__log i { color: var(--amber); font-style: normal; }

.intro__actions { display: grid; justify-items: center; gap: 14px; }

.intro__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  opacity: 0;
  animation: rise 1s var(--ease) 1.8s forwards;
  transition: transform .3s var(--ease);
}
.intro__btn:active { transform: scale(.96); }
.intro__btn-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--red-rgb), .7);
  box-shadow: 0 0 40px rgba(var(--red-rgb), .25), inset 0 0 30px rgba(var(--red-rgb), .15);
  animation: breathe 2.2s ease-in-out infinite;
  transition: background-color .3s;
}
.intro__btn-ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(var(--red-rgb), .6);
  animation: ping 2.2s ease-out infinite;
}
.intro__btn-label {
  position: relative;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-align: center;
}
.intro__btn:hover .intro__btn-ring { background: rgba(var(--red-rgb), .14); }

.intro__alt {
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  opacity: 0;
  animation: rise 1s var(--ease) 2.1s forwards;
  transition: color .3s;
}
.intro__alt:hover { color: var(--fg); }
.intro__hint { text-align: center; color: var(--dim); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { transform: scale(1.06); } }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px;
  background: linear-gradient(to bottom, rgba(5, 5, 7, .85), transparent);
  transform: translateY(-100%);
  transition: transform .9s var(--ease) .4s, opacity .6s;
}
body.is-live .topbar { transform: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--f-name); font-size: 20px; letter-spacing: .08em; }
.brand svg { width: 28px; height: 28px; fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2);
  transition: color .3s;
}
.nav a:hover { color: var(--red); }
.topbar__status { color: var(--muted); display: flex; align-items: center; }

.topbar__progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 10px rgba(var(--red-rgb), .8);
  will-change: transform;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--gutter) calc(var(--hud-h) + 44px);
}

.hero__kicker { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; color: var(--fg-2); }
.hero__door { color: var(--red); font-size: 13px; transition: opacity .6s; }
.hero__door.is-open { opacity: 0; }

.hero__stage { position: relative; margin: clamp(22px, 4.5vh, 48px) 0 clamp(30px, 5vh, 60px); }

.hero__name {
  --ab: 0;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-name);
  font-weight: 400;
  font-size: clamp(56px, 20vw, 340px);
  line-height: .92;
  letter-spacing: 0;
  text-transform: uppercase;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.hero__name span {
  position: relative;
  z-index: 0;
  display: inline-block;
  cursor: pointer;
  transform-origin: 50% 100%;
  will-change: transform;
}
/* chromatic split: static colour copies slid by transform, no text-shadow repaint */
.hero__name span::before,
.hero__name span::after {
  content: attr(data-l);
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: min(1, calc(var(--ab) * .2));
  pointer-events: none;
  will-change: transform, opacity;
}
.hero__name span::before { color: rgba(var(--red-rgb), .95); transform: translateX(calc(var(--ab) * -1px)); }
.hero__name span::after { color: rgba(95, 227, 255, .7); transform: translateX(calc(var(--ab) * 1px)); }
.hero__name span.is-hit { color: var(--red); transition: color 0s; }
.hero__name span:not(.is-hit) { transition: color .6s; }

.hero__scope {
  position: absolute;
  z-index: 2;
  left: calc(var(--gutter) * -1);
  width: calc(100% + var(--gutter) * 2);
  top: 50%;
  height: 120%;
  transform: translateY(-50%);
  pointer-events: none;
  mix-blend-mode: difference;
}

.hero__play-hint {
  position: absolute;
  right: 0;
  bottom: -30px;
  max-width: 60ch;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}
.hint-touch { display: none; }
@media (hover: none) {
  .hint-fine { display: none; }
  .hint-touch { display: inline; }
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.hero__lead { font-size: clamp(19px, 1.9vw, 27px); line-height: 1.4; max-width: 30ch; color: var(--fg-2); }
.hero__side { display: grid; gap: 22px; justify-items: end; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.meters {
  display: grid;
  gap: 9px;
  width: min(100%, 300px);
  font-size: 11px;
}
.meter { display: grid; grid-template-columns: 44px 1fr 38px; align-items: center; gap: 10px; color: var(--muted); }
.meter__bar { height: 4px; border-radius: 4px; background: rgba(242, 238, 233, .08); overflow: hidden; }
.meter__bar i { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--v, 0)); }
.meter--bass i { --v: var(--bass); }
.meter--mid i { --v: var(--mid); background: var(--amber); }
.meter--high i { --v: var(--high); background: var(--fg); }
.meter__val { color: var(--fg); text-align: right; }
.meter--info { grid-template-columns: 44px 1fr 38px 1fr; padding-top: 6px; border-top: 1px solid var(--line); }
.meter--info .meter__val { text-align: left; }

/* ---------- Bands: three rows, no cards ---------- */
.bands__list { border-top: 1px solid var(--line); }
.band {
  display: grid;
  grid-template-columns: minmax(170px, .55fr) minmax(0, 1.45fr);
  gap: clamp(20px, 5vw, 80px);
  padding: clamp(28px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
}
.band--bass { --v: var(--bass); }
.band--mid { --v: var(--mid); }
.band--high { --v: var(--high); }
/* the middle row steps in a little: an uneven rhythm, not a template grid */
.band--mid .band__body { padding-left: clamp(0px, 7vw, 110px); }
.band__side { display: grid; align-content: start; gap: 14px; padding-top: 10px; }
.band__range { font-size: 14px; color: var(--red); }
.band__meter {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 2px;
  background: rgba(242, 238, 233, .1);
  overflow: hidden;
}
.band__meter i {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(calc(.03 + var(--v, 0)));
  background: linear-gradient(90deg, var(--red), var(--amber));
}
.band__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 3.6vw, 54px); line-height: 1; text-transform: uppercase; }
.band__text { max-width: 60ch; margin: 14px 0 12px; color: var(--fg-2); font-size: clamp(16px, 1.2vw, 18px); }
.band__stack { color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(64px, 10vh, 120px); }
.contact__recents { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.contact__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(60px, 12vw, 200px);
  line-height: .9;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.contact__lead { color: var(--fg-2); font-size: clamp(17px, 1.6vw, 21px); margin-bottom: clamp(32px, 5vw, 56px); }

.calls { display: grid; gap: 10px; max-width: 920px; }
.call {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 11, 16, .84);
  overflow: hidden;
  transition: border-color .3s, background-color .3s;
}
.call:hover { border-color: rgba(var(--red-rgb), .6); background: rgba(24, 12, 16, .7); }
.call__main { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 22px; min-height: 76px; }
.call__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(var(--red-rgb), .12);
  color: var(--red);
}
.call__icon svg { width: 22px; height: 22px; fill: currentColor; }
.call.is-ringing .call__icon { animation: ring .9s ease-in-out; }
.call.is-ringing { border-color: rgba(var(--red-rgb), .7); }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50%, 70% { transform: rotate(-14deg); }
  20%, 40%, 60%, 80% { transform: rotate(14deg); }
}
.call__who { display: grid; gap: 2px; min-width: 0; }
.call__who strong { font-size: 18px; font-weight: 600; }
.call__handle { font-family: var(--f-mono); color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call__time { color: var(--red); font-size: 12px; }
.call__copy {
  min-width: 112px;
  padding: 0 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  transition: color .3s, background-color .3s;
}
.call__copy:hover { color: var(--fg); background: rgba(var(--red-rgb), .12); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px var(--gutter) calc(var(--hud-h) + 36px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
/* keyboard hints mean nothing on a phone */
@media (hover: none) {
  .footer__keys { display: none; }
}

/* ---------- HUD player ---------- */
.hud {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(calc(100% - 24px), 1100px);
  height: var(--hud-h);
  padding: 0 10px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 19, 28, .94), rgba(10, 9, 14, .94));
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  transform: translate(-50%, 160%);
  transition: transform 1s var(--ease) .6s;
}
body.is-live .hud { transform: translate(-50%, 0); }
.hud::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 0 44px rgba(var(--red-rgb), .45);
  opacity: calc(var(--beat) * .6);
  pointer-events: none;
  will-change: opacity;
}

.hud__play {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #0a0000;
  transition: background-color .3s, transform .2s;
}
.hud__play:hover { background: var(--fg); }
.hud__play:active { transform: scale(.94); }
.hud__play svg { width: 20px; height: 20px; fill: currentColor; }
.hud__play .icon-pause { display: none; }
.hud.is-playing .icon-play { display: none; }
.hud.is-playing .icon-pause { display: block; }

.hud__meta { display: grid; min-width: 0; width: 160px; flex: none; line-height: 1.25; }
.hud__title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud__artist { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hud__wave { flex: 1; min-width: 60px; height: 36px; cursor: pointer; touch-action: none; border-radius: 6px; }
.hud__time { flex: none; color: var(--muted); font-size: 11px; letter-spacing: .06em; min-width: 92px; text-align: center; }

.hud__vol { flex: none; display: flex; align-items: center; }
.hud__vol input { width: 84px; accent-color: var(--red); }

.hud__door, .hud__load {
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  color: var(--muted);
  transition: color .3s, border-color .3s;
}
.hud__door.is-on { color: var(--red); border-color: rgba(var(--red-rgb), .5); }
.hud__load { display: none; color: var(--amber); border-color: rgba(255, 180, 90, .5); }
.hud.is-missing .hud__load { display: block; }
.hud__concert {
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg-2);
  transition: color .3s, border-color .3s;
}
.hud__concert svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hud__concert:hover { color: var(--red); border-color: rgba(var(--red-rgb), .5); }
.hud__spec { flex: none; width: 72px; height: 32px; }

/* ---------- Drop + toast + Luna ---------- */
.drop {
  position: fixed; inset: 12px;
  z-index: 70;
  display: grid; place-items: center;
  padding: 24px;
  border: 2px dashed rgba(var(--red-rgb), .8);
  border-radius: 24px;
  background: rgba(5, 5, 7, .8);
  backdrop-filter: blur(6px);
  color: var(--red);
  text-align: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.drop.is-on { opacity: 1; visibility: visible; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--hud-h) + 28px);
  z-index: 80;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid rgba(var(--red-rgb), .5);
  border-radius: 12px;
  background: rgba(12, 11, 16, .94);
  color: var(--fg);
  font-size: 11px;
  letter-spacing: .08em;
  text-align: center;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.luna {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  top: 76px;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: min(340px, calc(100% - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(160, 130, 255, .45);
  border-radius: 16px 16px 16px 4px;
  background: linear-gradient(135deg, rgba(40, 26, 70, .95), rgba(14, 10, 26, .95));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(140, 110, 255, .25);
  transform: translateX(calc(100% + 40px));
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.luna.is-on { transform: none; }
.luna__ava {
  flex: none;
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9ccff, #7b5cff 60%, #2a1a5e);
  color: #120a2a;
  font-weight: 700;
}
.luna__text { font-size: 14px; line-height: 1.45; color: #e9e3ff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hud__vol, .hud__spec { display: none; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .topbar__status { margin-left: auto; }
  .hero { padding-top: 84px; }
  .hero__kicker { flex-direction: column; gap: 6px; }
  .hero__row { grid-template-columns: 1fr; }
  .hero__side { justify-items: stretch; }
  .hero__cta { justify-content: stretch; }
  .hero__cta .btn { flex: 1; padding: 0 12px; letter-spacing: .08em; font-size: 11px; white-space: nowrap; }
  .hero__play-hint { right: auto; left: 0; bottom: -44px; text-align: left; font-size: 12px; }
  .hero__stage { margin-bottom: 64px; }
  .meters { width: 100%; }
  .band { grid-template-columns: 1fr; gap: 10px; }
  .band--mid .band__body { padding-left: 0; }
  .band__side { padding-top: 0; }
  .call__main { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
  .call__icon { width: 44px; height: 44px; }
  .call__time { grid-column: 2; }
  .call__copy { position: relative; min-width: 60px; padding: 0; font-size: 0; }
  .call__copy::before {
    content: "";
    position: absolute; left: 50%; top: 50%;
    width: 13px; height: 13px;
    margin: -5px 0 0 -8px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    box-shadow: 4px -4px 0 -1.5px var(--bg), 4px -4px 0 0 currentColor;
  }
  .hud { gap: 8px; }
  .hud__meta { width: auto; flex: 0 1 108px; }
  .hud__time, .hud__door { display: none; }
  .footer { flex-direction: column; }
  .luna { top: auto; bottom: calc(var(--hud-h) + 28px); }
}
