/* tewo.live
   Black, grain, the star logo, the covers. One typeface (Archivo), two widths:
   wide + heavy for song titles, normal for everything else. No accent colour. */

@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo-latin-variable.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bone: #ebe6da;
  --soft: #c7c2b6;
  --mute: #8b867c;
  --dim: #5c5850;
  --line: rgba(235, 230, 218, .14);
  --tile: #0d0d0c;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #000; overflow-x: hidden; overflow-x: clip; }
::selection { background: var(--bone); color: #000; }
body {
  margin: 0;
  background: #000;
  color: var(--bone);
  font: 450 16px/1.5 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
[hidden] { display: none !important; }

.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: url("../images/kit/grain.png") repeat;
  background-size: 220px;
  opacity: .4;
}

/* ── logo ─────────────────────────────────────── */
.top { display: flex; justify-content: center; padding: 30px 24px 0; }
.logo { margin: 0; line-height: 0; }
@keyframes glint { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes shine {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  45% { filter: drop-shadow(0 0 18px rgba(255, 255, 255, .4)); }
}
.logo-mark {
  display: block;
  width: 128px;
  aspect-ratio: 804.7 / 570.8;
  background: linear-gradient(105deg, #d9d3c6 0 41%, #fff 47%, #fff 53%, #d9d3c6 59% 100%) 100% 0 / 320% 100% no-repeat;
  -webkit-mask: url("../images/logo-star.svg") center / contain no-repeat;
  mask: url("../images/logo-star.svg") center / contain no-repeat;
}

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── covers (shared) ──────────────────────────── */
.cover {
  position: relative; display: block; width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0; border: 0; border-radius: 2px;
  background: var(--tile);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease);
}
.cover:active { transform: scale(.985); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; }
.cover .bar i { display: block; height: 100%; width: 0; background: var(--bone); }
.cover.live .bar { opacity: 1; }
.blank {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 10px;
  border: 1px solid var(--line); border-radius: 2px;
  font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; line-height: 1;
  text-align: center;
}

.i-pause { display: none; }
[aria-pressed="true"] .i-play { display: none; }
[aria-pressed="true"] .i-pause { display: block; }

/* ── hero ─────────────────────────────────────── */
.hero { margin-top: 26px; display: grid; gap: 22px; }
.art { position: relative; }
.art .cover { z-index: 1; }
.glow {
  position: absolute; inset: 6%; z-index: 0;
  pointer-events: none;
  opacity: calc(.34 + var(--pulse, 0) * .5);
  transform: scale(calc(1.02 + var(--pulse, 0) * .07));
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
}
.glow img { width: 100%; height: 100%; object-fit: cover; filter: blur(44px) saturate(1.6); }
.art:has(.cover.live) .glow { transition-duration: .08s; }
.hero .blank { font-size: clamp(28px, 9vw, 56px); }

.state { margin: 0 0 6px; font-size: 14px; color: var(--mute); }
.title {
  margin: 0 0 22px;
  font-stretch: 125%; font-weight: 800;
  font-size: clamp(42px, 12.5vw, 88px);
  line-height: .9;
  letter-spacing: -.04em;
}

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 30px;
  border-radius: 3px;
  background: var(--bone); color: #000;
  font-size: 17px; font-weight: 650;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s var(--ease), background-color .2s;
}
.btn .ico { width: 22px; height: 22px; fill: #000; }
.btn:hover { background: #fff; }
.btn:active { transform: scale(.98); }
.btn.charged { animation: charge 1.6s var(--ease) both; }
@keyframes charge {
  0% { box-shadow: 0 0 0 0 rgba(235, 230, 218, .55); }
  100% { box-shadow: 0 0 0 18px rgba(235, 230, 218, 0); }
}

.hook {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 0;
  background: none; border: 0;
  font-size: 15px; font-variant-numeric: tabular-nums;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ring { position: relative; width: 40px; height: 40px; flex: none; }
.ring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 1.5; }
.ring .track { stroke: var(--line); }
.ring .prog { stroke: var(--bone); stroke-dasharray: 116.24; stroke-dashoffset: 116.24; }
.ring .i-play, .ring .i-pause { position: absolute; inset: 11px; width: 18px; height: 18px; fill: var(--bone); transform: none; }
.hook b { font-weight: 650; }

.time { margin: 14px 0 0; font-size: 15px; }
.also { margin: 18px 0 0; font-size: 13px; color: var(--mute); }
.also a { color: var(--soft); text-underline-offset: 3px; }

/* ── songs ────────────────────────────────────── */
.songs { margin-top: 84px; }
.head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.head h2 { margin: 0; font-size: 15px; font-weight: 650; }
.head a { font-size: 13px; color: var(--mute); text-underline-offset: 3px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; }
.tile .blank { font-size: 15px; }
.name {
  display: block; margin: 9px 0 0;
  font-size: 14px; font-weight: 550; line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.name:hover { text-decoration: underline; text-underline-offset: 3px; }
.pp {
  position: absolute; left: 8px; bottom: 9px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pp svg { width: 14px; height: 14px; fill: var(--bone); }
.eq { display: none; width: 13px; height: 12px; align-items: flex-end; gap: 2px; }
.eq i { flex: 1; height: 100%; border-radius: 1px; background: var(--bone); transform-origin: 50% 100%; transform: scaleY(var(--h)); transition: transform .08s linear; }
.eq i:nth-child(1) { --h: var(--b1, .35); }
.eq i:nth-child(2) { --h: var(--b2, .6); }
.eq i:nth-child(3) { --h: var(--b3, .45); }
[aria-pressed="true"] .pp .i-pause { display: none; }
[aria-pressed="true"] .pp .eq { display: flex; }
@keyframes eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.no-viz [aria-pressed="true"] .eq i { animation: eq .5s ease-in-out infinite alternate; }
.no-viz [aria-pressed="true"] .eq i:nth-child(2) { animation-duration: .38s; }
.no-viz [aria-pressed="true"] .eq i:nth-child(3) { animation-duration: .62s; }
.grid .cover img { transition: opacity .5s ease; }
.grid.has-live .cover:not(.live) img { opacity: .4; }

/* ── unreleased ───────────────────────────────── */
.first {
  margin-top: 96px; padding-top: 36px;
  border-top: 1px solid var(--line);
  display: grid; gap: 24px;
  grid-template-areas: "title" "vault" "pitch";
}
.first > h2 {
  grid-area: title;
  margin: 0;
  font-stretch: 125%; font-weight: 800;
  font-size: clamp(32px, 9vw, 52px);
  line-height: .95; letter-spacing: -.04em;
}
.vault { grid-area: vault; }
.pitch { grid-area: pitch; }
.vault { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v img {
  filter: blur(7px) brightness(.5) saturate(.7);
  transform: scale(1.12);
  transition: filter 1.6s var(--ease), transform 1.6s var(--ease);
}
.v .lock {
  position: absolute; left: 50%; top: 50%;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  overflow: visible;
  fill: var(--bone);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
  transition: opacity .4s .55s, transform .4s .55s var(--ease);
}
.v .shackle { fill: none; stroke: var(--bone); stroke-width: 2.2; transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.unlocked .v .shackle { transform: translateY(-4px); }
.unlocked .tile:nth-child(1) .v img { transition-delay: .7s; }
.unlocked .tile:nth-child(2) .v img { transition-delay: 1s; }
.instant, .instant * { transition: none !important; }
.v .pp { opacity: 0; transition: opacity .5s 1.6s; }
.unlocked .v img { filter: none; transform: none; }
.unlocked .v .lock { opacity: 0; transform: translateY(-6px) scale(.8); }
.unlocked .v .pp { opacity: 1; }
.v .blank { font-size: 15px; }

.lede { margin: 0 0 20px; max-width: 40ch; color: var(--soft); }
.join { display: flex; gap: 8px; }
.join input[type="email"] {
  flex: 1; min-width: 0; height: 56px; padding: 0 16px;
  border: 1px solid rgba(235, 230, 218, .3); border-radius: 3px;
  background: transparent; color: var(--bone);
  font: inherit; font-size: 16px;
  transition: border-color .2s;
}
.join input::placeholder { color: var(--mute); }
.join input:focus { outline: none; border-color: var(--bone); }
.join button {
  height: 56px; padding: 0 24px;
  border: 0; border-radius: 3px;
  background: var(--bone); color: #000;
  font-weight: 650; font-size: 16px;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s;
}
.join button:hover { background: #fff; }
.join button:active { transform: scale(.97); }
.join button:disabled { opacity: .6; cursor: default; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { min-height: 1.5em; margin: 10px 0 0; font-size: 14px; color: var(--soft); }
.msg:empty { min-height: 0; margin: 0; }
.msg.err { color: #ff9b8a; }
.fine { margin: 10px 0 0; font-size: 12.5px; color: var(--mute); }
.teaser { margin-top: 4px; }

/* ── footer ───────────────────────────────────── */
.foot {
  max-width: 1080px; margin: 110px auto 0;
  padding: 30px 24px calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; opacity: .75; transition: opacity .2s; }
.socials a:hover { opacity: 1; }
.socials .ico { width: 21px; height: 21px; fill: var(--bone); }
.booking { margin: 0; font-size: 14px; color: var(--mute); }
.booking a { color: var(--bone); text-underline-offset: 3px; }
.tiny { margin: 6px 0 0; font-size: 12px; color: var(--dim); }

/* ── one entrance ─────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
.js .logo-mark { animation: fade 1s .05s both, glint 1.5s 1s var(--ease) both; }
.js .logo { animation: shine 1.5s 1s ease both; }
@media (hover: hover) {
  .js .logo:hover .logo-mark { animation: glint 1.2s var(--ease) both; }
  .js .logo:hover { animation: shine 1.2s ease both; }
}
.js .hero .cover { animation: rise 1s .15s var(--ease) both; }
.js .hero .info { animation: rise 1s .3s var(--ease) both; }

/* ── desktop ──────────────────────────────────── */
@media (hover: hover) {
  .tile .cover:not(.v) .pp, .unlocked .v .pp { opacity: 0; transition: opacity .25s; }
  .tile .cover:hover .pp, .tile .cover:focus-visible .pp, .tile .cover.live .pp { opacity: 1; }
}
@media (min-width: 880px) {
  .top { padding-top: 44px; }
  .logo-mark { width: 150px; }
  .hero { margin-top: 44px; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 56px; align-items: end; }
  .hero .info { padding-bottom: 6px; }
  .btn { display: inline-flex; }
  .songs { margin-top: 110px; }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .first {
    margin-top: 110px; padding-top: 48px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "vault title" "vault pitch";
    grid-template-rows: auto 1fr;
    column-gap: 56px; row-gap: 16px;
  }
  .first > h2 { align-self: end; margin-top: 24px; }
  .vault { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
