:root {
  color-scheme: dark;
  --bg: #050308;
  --surface: #0f0a19;
  --surface-2: #1a1130;
  --border: #2a1d47;
  --text: #f4effc;
  --muted: #a498bf;
  --purple: #4c1d95;
  --purple-mid: #6d28d9;
  --purple-bright: #a78bfa;
  --lilac: #e9ddff;
  --danger: #fda4af;
  --radius: 14px;
  --tap: 54px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* system serifs only: Didot/Bodoni ship with iOS + macOS, the rest are fallbacks */
  --display: Didot, 'Bodoni 72', 'Bodoni MT', 'Playfair Display', 'Noto Serif Display', Georgia, 'Noto Serif', serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
a { color: var(--purple-bright); }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px calc(40px + env(safe-area-inset-bottom, 0px));
}

/* film grain: one static tiled SVG, no blend modes, so it costs nothing while scrolling */
body.site::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; text-align: center; }

/* a blurred copy of the artwork lights the page in the cover's own colours */
.hero-ambient {
  position: absolute;
  inset: -12% -12% 0;
  width: 124%;
  height: 112%;
  object-fit: cover;
  filter: blur(64px) saturate(1.5);
  opacity: 0.55;
  transform: translateZ(0);
  animation: breathe 9s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 3, 8, 0.15) 0%, rgba(5, 3, 8, 0.35) 55%, var(--bg) 100%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding-bottom: 36px; }

/* aspect-ratio reserves the square before the image loads: no layout shift */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, var(--purple) 0%, #1b0b3a 45%, var(--bg) 100%);
}
.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 26s ease-in-out infinite alternate;
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: 62% 0 -1px;
  background: linear-gradient(to bottom, transparent, rgba(5, 3, 8, 0.7) 70%, var(--bg));
  pointer-events: none;
}

.hero h1 {
  position: relative;
  margin-top: -1.15em;
  padding: 0 16px;
  font-family: var(--display);
  font-size: clamp(2.3rem, 11.5vw, 3.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lilac);
  text-shadow: 0 0 34px rgba(139, 92, 246, 0.8), 0 0 90px rgba(109, 40, 217, 0.55);
  animation: rise 1.3s var(--ease) 0.1s both;
}
.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  color: var(--purple-bright);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  animation: rise 1.3s var(--ease) 0.35s both;
}
.tagline::before, .tagline::after { content: ''; width: 34px; height: 1px; background: linear-gradient(to right, transparent, var(--purple-bright)); }
.tagline::after { transform: scaleX(-1); }

@media (min-width: 600px) {
  .hero-inner { padding-top: 56px; }
  .hero-art { border-radius: 6px; box-shadow: 0 40px 120px -20px rgba(76, 29, 149, 0.65), 0 0 0 1px rgba(167, 139, 250, 0.12); }
  .hero-art::after { display: none; }
  .hero h1 { margin-top: 0.75em; }
}

/* ---------- sections ---------- */

#app section, #app .links { margin-top: 40px; }
#app section h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 7.4vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--lilac);
}
#app section h2 + .muted { margin-top: 10px; }
#app section > .eyebrow, #app section > h2, #app section > .muted { text-align: center; }

.bio p { white-space: pre-line; font-size: 1.06rem; color: #ddd3ee; text-align: center; text-wrap: pretty; }

.eyebrow {
  margin-bottom: 8px;
  color: var(--purple-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.small { font-size: 0.85rem; text-align: center; }

.rule { display: flex; align-items: center; gap: 14px; margin-top: 40px; color: var(--purple-bright); font-size: 0.7rem; opacity: 0.8; }
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--border)); }
.rule::after { transform: scaleX(-1); }

.stack { display: flex; flex-direction: column; gap: 12px; }

#player, #gate { margin-top: 20px; }

.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab {
  flex: 1;
  min-height: 46px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 0.78rem var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tab[aria-selected='true'] { background: var(--purple); border-color: var(--purple-mid); color: var(--text); }

/* fixed heights so the players don't shift the page as they load */
.embed { display: block; width: 100%; border: 0; border-radius: var(--radius); background: var(--surface); }
.embed-spotify { height: 352px; }
.embed-apple { height: 450px; }
.embed-soundcloud { height: 400px; }

/* ---------- buttons + forms ---------- */

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: var(--tap);
  padding: 12px 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: 600 1rem var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.3s, transform 0.08s;
}
.btn:hover { border-color: var(--purple-mid); background: var(--surface-2); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, .tab:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 2px;
}
.btn-primary {
  border-color: #7c3aed;
  background: linear-gradient(180deg, #7c3aed, #5b21b6);
  box-shadow: 0 8px 30px rgba(109, 40, 217, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { border-color: #8b5cf6; background: linear-gradient(180deg, #8b5cf6, #6d28d9); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* a slow light sweep across whichever button is the next step */
.btn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 4.2s ease-in-out 1.2s infinite;
  pointer-events: none;
}
.btn-done { border-color: var(--border); background: transparent; color: var(--muted); font-weight: 500; }
.btn-done .step-num { background: rgba(167, 139, 250, 0.18); color: var(--purple-bright); }

.step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
}
.steps .btn { justify-content: flex-start; text-align: left; line-height: 1.25; }
.steps .btn svg { flex: none; }

.btn-link { justify-content: space-between; padding-left: 22px; padding-right: 20px; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; }
.btn-link .arrow { color: var(--purple-bright); font-size: 1rem; transition: transform 0.25s var(--ease); }
.btn-link:hover .arrow { transform: translate(3px, -3px); }

label { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: -6px; }

input[type='text'], input[type='email'], input[type='password'], input[type='url'], textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  /* 16px+ stops iOS from zooming the page on focus */
  font: 1rem var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus { border-color: var(--purple-mid); box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.2); outline: none; }
input::placeholder, textarea::placeholder { color: #6f6390; }
textarea { min-height: 120px; resize: vertical; }

.form-error { color: var(--danger); font-size: 0.9rem; }

/* ---------- follow gate ---------- */

.gate {
  position: relative;
  padding: 26px 20px 22px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(165deg, rgba(76, 29, 149, 0.34), var(--surface) 55%);
  box-shadow: 0 30px 90px -30px rgba(109, 40, 217, 0.55);
}

/* the locked "screen" sits above the grain overlay so the video itself stays clean */
.screen {
  position: relative;
  z-index: 41;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.18);
}
.screen.portrait { aspect-ratio: 4 / 5; }
.screen-teaser {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.25) brightness(0.75);
  transform: scale(1.25);
  animation: drift-wide 18s ease-in-out infinite alternate;
}
.screen-teaser-empty {
  filter: none;
  background:
    radial-gradient(60% 80% at 30% 30%, rgba(124, 58, 237, 0.75), transparent 70%),
    radial-gradient(50% 70% at 75% 70%, rgba(190, 24, 93, 0.4), transparent 70%),
    #0a0613;
}
.screen-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: radial-gradient(circle, rgba(5, 3, 8, 0.2), rgba(5, 3, 8, 0.72));
  text-align: center;
}
.lock-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 8px;
  border: 1px solid rgba(233, 221, 255, 0.4);
  border-radius: 50%;
  background: rgba(15, 10, 25, 0.55);
  color: var(--lilac);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lock-badge::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(167, 139, 250, 0.7);
  border-radius: 50%;
  animation: ping 2.6s ease-out infinite;
}
.screen-label { font-family: var(--display); font-size: 1.25rem; font-style: italic; color: var(--lilac); }
.screen-sub { color: var(--purple-bright); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.34em; text-indent: 0.34em; text-transform: uppercase; }

.screen.unlocked { aspect-ratio: auto; animation: unlock 1.1s var(--ease) both; box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.3), 0 20px 70px -10px rgba(124, 58, 237, 0.7); }
.exclusive { display: block; width: 100%; max-height: 80vh; background: #000; }
.gate-note { padding: 28px 12px; text-align: center; font-family: var(--display); font-size: 1.2rem; font-style: italic; color: var(--lilac); }

footer { margin-top: 8px; padding-bottom: 8px; text-align: center; font-family: var(--display); font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lilac); }
footer .rule { margin-bottom: 28px; }
footer .credit { margin-top: 8px; font-family: var(--font); font-size: 0.64rem; letter-spacing: 0.3em; color: var(--muted); }

.login { padding-top: 18vh; max-width: 400px; }
.login h1 { margin-bottom: 20px; font-size: 1.6rem; }

/* ---------- motion ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); letter-spacing: 0.12em; } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.2%, 1%); } }
/* stays zoomed past the blur radius so the teaser's soft edges never show */
@keyframes drift-wide { from { transform: scale(1.25); } to { transform: scale(1.4) translate(-1.5%, 1%); } }
@keyframes breathe { from { opacity: 0.4; } to { opacity: 0.65; } }
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.65); opacity: 0; } }
@keyframes unlock { from { opacity: 0; transform: scale(0.96); filter: blur(14px) brightness(1.6); } to { opacity: 1; transform: none; filter: none; } }

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