/* ThotGoss Soft Spill v2 — motion.css
   Load after Design tokens.css
   Slow drift · ember / glow-pink / lime blooms · gentle scroll candy
   Dusty-rose v1 retired — still Soft Spill timing (480ms), not Scandal snaps */

/* ——— Ambient drift (logo accents, low alpha) ——— */
.tg-ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.tg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.2;
  will-change: transform;
  animation: tg-drift 22s var(--tg-ease, cubic-bezier(0.22, 0.61, 0.36, 1)) infinite alternate;
}

.tg-orb-a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, var(--tg-ember, #ff3b1f) 0%, transparent 70%);
  opacity: 0.18;
  animation-duration: 26s;
}

.tg-orb-b {
  width: min(44vw, 360px);
  height: min(44vw, 360px);
  bottom: 6%;
  right: -4%;
  background: radial-gradient(circle, var(--tg-glow-pink, #ff4ec8) 0%, transparent 70%);
  opacity: 0.16;
  animation-duration: 20s;
  animation-delay: -6s;
}

.tg-orb-c {
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  top: 42%;
  left: 58%;
  background: radial-gradient(circle, var(--tg-alien-lime, #b6ff4a) 0%, transparent 70%);
  opacity: 0.08;
  filter: blur(64px);
  animation-duration: 24s;
  animation-delay: -11s;
}

@keyframes tg-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3%, 4%, 0) scale(1.06); }
}

/* ——— Hero logo soft pulse ——— */
.tg-logo {
  transition: filter var(--tg-dur-slow, 480ms) var(--tg-ease, cubic-bezier(0.22, 0.61, 0.36, 1));
  animation: tg-logo-glow 5.5s ease-in-out infinite;
}

@keyframes tg-logo-glow {
  0%, 100% {
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--tg-glow-pink, #ff4ec8) 28%, transparent));
  }
  50% {
    filter: drop-shadow(0 0 22px color-mix(in srgb, var(--tg-ember, #ff3b1f) 32%, transparent));
  }
}


/* ——— Hero banner wash (slow Soft Spill drift) ——— */
.tg-hero-wash {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.tg-hero-wash img,
.tg-hero-wash-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.04);
  will-change: transform;
  animation: tg-wash-drift 28s var(--tg-ease, cubic-bezier(0.22, 0.61, 0.36, 1)) infinite alternate;
}

@keyframes tg-wash-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.08) translate3d(-1.2%, 1%, 0); }
}

/* ——— Card soft bloom (hub only) ——— */
.tg-card {
  transition:
    border-color var(--tg-dur-slow, 480ms) var(--tg-ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
    box-shadow var(--tg-dur-slow, 480ms) var(--tg-ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
    transform var(--tg-dur-slow, 480ms) var(--tg-ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
    background-color var(--tg-dur-slow, 480ms) var(--tg-ease, cubic-bezier(0.22, 0.61, 0.36, 1));
}

@media (hover: hover) and (pointer: fine) {
  .tg-card:not(.card-zamanox):not(.card-jackclikz):not(.card-coming-soon):hover {
    border-color: color-mix(in srgb, var(--tg-glow-pink, #ff4ec8) 40%, var(--tg-smoke, #2a2a30));
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--tg-ember, #ff3b1f) 20%, transparent),
      0 12px 40px color-mix(in srgb, var(--tg-glow-pink, #ff4ec8) 16%, transparent);
    transform: translateY(-2px);
  }
  /* Guest cards: Soft Spill lift only — Design owns Melodic Realm / JackClikz glow */
  .tg-card.card-zamanox:not(.card-coming-soon):hover,
  .tg-card.card-jackclikz:not(.card-coming-soon):hover {
    transform: translateY(-2px);
  }
  /* Coming soon: no hover lift / bloom — taped shut */
  .tg-card.card-coming-soon:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ——— CTA breathe (ember) ——— */
.tg-breathe {
  position: relative;
  transition:
    background-color var(--tg-dur-med, 320ms) var(--tg-ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
    box-shadow var(--tg-dur-slow, 480ms) var(--tg-ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
    transform var(--tg-dur-med, 320ms) var(--tg-ease, cubic-bezier(0.22, 0.61, 0.36, 1));
  animation: tg-breathe 4.5s ease-in-out infinite;
}

@keyframes tg-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--tg-ember, #ff3b1f) 0%, transparent);
  }
  50% {
    transform: scale(1.015);
    box-shadow: 0 0 28px color-mix(in srgb, var(--tg-ember, #ff3b1f) 28%, transparent);
  }
}

@media (hover: hover) and (pointer: fine) {
  .tg-breathe:hover {
    animation-play-state: paused;
    transform: scale(1.02);
    box-shadow: 0 0 32px color-mix(in srgb, var(--tg-ember, #ff3b1f) 36%, transparent);
  }
}

/* ——— Scroll reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--tg-dur-slow, 480ms) var(--tg-ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
    transform var(--tg-dur-slow, 480ms) var(--tg-ease, cubic-bezier(0.22, 0.61, 0.36, 1));
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Reduced motion / touch ——— */
@media (prefers-reduced-motion: reduce) {
  .tg-orb,
  .tg-breathe,
  .tg-logo {
    animation: none !important;
  }
  .tg-hero-wash img,
  .tg-hero-wash-media {
    animation: none !important;
    transform: scale(1.04);
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tg-card,
  .tg-breathe,
  .tg-logo {
    transition: none;
  }
}

body.reduce-motion .tg-orb,
body.reduce-motion .tg-breathe,
body.reduce-motion .tg-logo,
body.reduce-motion .tg-hero-wash img,
body.reduce-motion .tg-hero-wash-media {
  animation: none !important;
}

body.is-touch .tg-card:hover {
  transform: none;
}
