/* ============================================================
   GigFrame — Coming-soon holding page
   Dark stage, chalk illustrations on transparent, violet = accent only.
   Inherits brand tokens from tokens.css. No external assets beyond fonts.
   ============================================================ */

/* The illustrations carry a second accent next to the brand violet: a turquoise
   that always means "the connection" — the spine between the band's screens, the
   sync waves from the phone, the glow around the finished song. Violet stays
   "your part, your content". Scoped here for now; promote into design-tokens if
   the rest of the product adopts the same split. */
:root {
  --sync-teal:        #2FA8A0;
  --sync-teal-bright: #5AE0D6;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--stage-bg);
  color: var(--on-background);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow-x: hidden;
  position: relative;
}

/* ---- Ambient stage light: two violet pools that breathe on the beat ---- */
.stage-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 22% 18%, rgba(124, 58, 237, .22), transparent 62%),
    radial-gradient(52vw 52vw at 82% 76%, rgba(47, 168, 160, .13), transparent 60%);
  animation: breathe calc(var(--beat-bpm) * 8) var(--ease-out) infinite;
}

/* The house style's hero grid, verbatim: 46px violet rule grid masked to a soft
   ellipse (brand/gigframe/house-style/index.html .hgrid). */
.stage-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 58, 237, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, .12) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 22% 35%, #000, transparent 72%);
          mask-image: radial-gradient(ellipse 60% 70% at 22% 35%, #000, transparent 72%);
}

@keyframes breathe {
  0%, 100% { opacity: .75; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

/* ---- Layout ---- */
.wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 48px) 0;
  display: flex;
  flex-direction: column;
}

.masthead {
  display: flex;
  align-items: center;
  gap: var(--s-4) var(--s-6);
  flex-wrap: wrap;
}

/* ---- Brand lockup ----
   Two-weight wordmark, negative tracking, icon tile carries the violet.
   Positive tracking is reserved for the tiny uppercase labels. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  flex: none;
  width: clamp(42px, 5vw, 52px);
  height: auto;
}
.logo-type {
  display: flex;
  flex-direction: column;
}
.wordmark {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1;
  letter-spacing: -.018em;
  color: #fff;
}
.wordmark b    { font-weight: 800; letter-spacing: -.035em; }
.wordmark span { font-weight: 400; letter-spacing: .012em; }

.tagline {
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 2.3px;
  text-transform: uppercase;
  color: var(--primary);
}

/* Numbered-eyebrow pill from the dark UI kit (.sec-num): violet as border and
   text-on-dark only, never a solid violet fill behind small text. */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-violet-bright);
  border: 1px solid var(--accent-violet-dim);
  border-radius: var(--r-full);
  padding: 4px 9px;
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-violet-bright);
  box-shadow: 0 0 10px var(--accent-violet-bright);
  animation: pulse var(--beat-bpm) var(--ease-out) infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  18%      { opacity: 1;   transform: scale(1.25); }
}

/* ---- Hero: copy left, slideshow right ---- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(24px, 6vh, 72px) 0;
}

/* Display: Syne 800, negative tracking, tight leading — the documented H1. */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 var(--s-6);
  color: #fff;
  max-width: 15ch;
}
.display em {
  font-style: normal;
  color: var(--primary);
}

/* Ledes and body are DM Mono — Syne never runs body copy. */
.sub {
  font-size: 15px;
  line-height: 1.8;
  color: var(--on-surface-variant);
  margin: 0 0 var(--s-8);
  max-width: 46ch;
}

/* ---- Rotating story beats ---- */
.beats {
  list-style: none;
  margin: 0 0 var(--s-8);
  padding: 0;
  min-height: 5.2em;
  position: relative;
}
.beats li {
  position: absolute;
  inset: 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--on-background);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--motion-long) var(--ease-out),
              transform var(--motion-long) var(--ease-out);
  padding-left: 26px;
}
.beats li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-violet);
  box-shadow: 0 0 14px rgba(124, 58, 237, .9);
}
.beats li.is-active {
  opacity: 1;
  transform: translateY(0);
}

.ticks {
  display: flex;
  gap: 8px;
  margin: 0 0 var(--s-8);
  padding: 0;
}
.tick {
  width: 34px;
  height: 3px;
  border-radius: var(--r-full);
  background: var(--surface-variant);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background var(--motion-short) var(--ease-out);
}
.tick.is-active { background: var(--primary); box-shadow: 0 0 10px rgba(212, 187, 255, .6); }
.tick:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }

/* ---- Slideshow ---- */
/* The drawings carry a lot of empty alpha around the linework, so the frame
   bleeds past the column to give them real presence. */
.slides {
  position: relative;
  aspect-ratio: 8 / 5;
  width: 122%;
  margin-inline: -11%;
}
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}
.slide.is-active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.12);
  filter: drop-shadow(0 0 40px rgba(124, 58, 237, .25));
}
.slide.is-active img {
  animation: float 14s var(--ease-out) infinite alternate;
}
@keyframes float {
  0%   { transform: scale(1.12) translate3d(0, 0, 0); }
  100% { transform: scale(1.19) translate3d(-1.2%, -1.6%, 0); }
}

/* ---- Footer ---- */
.foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: var(--s-5) clamp(20px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--outline);
}
.foot a {
  color: var(--on-surface-variant);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--motion-short) var(--ease-out),
              border-color var(--motion-short) var(--ease-out);
}
.foot a:hover, .foot a:focus-visible {
  color: var(--primary);
  border-bottom-color: rgba(212, 187, 255, .5);
}
.foot nav { display: flex; gap: var(--s-5); flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--s-8);
    padding-top: var(--s-8);
  }
  .slides { order: -1; aspect-ratio: 8 / 5; width: 100%; margin-inline: 0; }
  .display { max-width: none; }
  .beats { min-height: 6.8em; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-glow, .eyebrow::before, .slide.is-active img { animation: none; }
  .slide, .beats li { transition-duration: 1ms; }
}
