:root {
  --bg: #050507;
  --ink: #f4f2ee;
  --dim: #8a8694;
  --edge: rgba(244, 242, 238, 0.12);
  --c1: #ff2a5f; /* lion  — magenta-red */
  --c2: #7b5cff; /* goat  — violet */
  --c3: #00e5b0; /* serpent — acid teal */
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* --- atmosphere ----------------------------------------------------------- */

.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' 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 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px) saturate(1.3);
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.45;
  mix-blend-mode: screen;
}

.orb-a {
  width: 55vmax; height: 55vmax;
  background: radial-gradient(circle, var(--c1), transparent 65%);
  top: -18vmax; left: -12vmax;
  animation: drift-a 19s ease-in-out infinite alternate;
}

.orb-b {
  width: 48vmax; height: 48vmax;
  background: radial-gradient(circle, var(--c2), transparent 65%);
  bottom: -16vmax; right: -10vmax;
  animation: drift-b 23s ease-in-out infinite alternate;
}

.orb-c {
  width: 34vmax; height: 34vmax;
  background: radial-gradient(circle, var(--c3), transparent 65%);
  top: 40%; left: 55%;
  opacity: 0.3;
  animation: drift-c 27s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vmax, -8vmax) scale(0.9); } }
@keyframes drift-c { to { transform: translate(-16vmax, 8vmax) scale(1.2); } }

/* --- header --------------------------------------------------------------- */

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.4rem clamp(1.2rem, 4vw, 3rem);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
}

.mark {
  font-size: 1.15rem;
  line-height: 1;
  background: linear-gradient(120deg, var(--c1), var(--c2), var(--c3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.top-label { font-weight: 600; }

.top-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--dim);
  letter-spacing: 0.26em;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c3);
  box-shadow: 0 0 12px var(--c3);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.25; } }

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

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vh, 5rem) 1.2rem 3rem;
}

.kicker {
  font-size: clamp(0.62rem, 1.4vw, 0.78rem);
  letter-spacing: 0.55em;
  color: var(--dim);
  margin-bottom: clamp(1.2rem, 3vh, 2.2rem);
}

.title {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.94;
  display: flex;
  flex-direction: column;
}

.title .line {
  font-size: clamp(2.6rem, 11.5vw, 9rem);
  background: linear-gradient(110deg, var(--c1) 5%, var(--c2) 45%, var(--c3) 90%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hue-drift 9s ease-in-out infinite alternate;
}

.title .line-2 {
  -webkit-text-stroke: 2px rgba(244, 242, 238, 0.85);
  background: none;
  color: transparent;
  letter-spacing: 0.08em;
}

@keyframes hue-drift {
  from { background-position: 0% 30%; }
  to { background-position: 100% 70%; }
}

/* --- equalizer ------------------------------------------------------------ */

.eq {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 54px;
  margin: clamp(1.6rem, 4vh, 3rem) 0;
}

.eq span {
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--c2), var(--c3));
  animation: eq-bounce 1.1s ease-in-out infinite alternate;
}

.eq span:nth-child(4n + 1) { animation-duration: 0.7s; background: linear-gradient(to top, var(--c1), var(--c2)); }
.eq span:nth-child(4n + 2) { animation-duration: 1.3s; }
.eq span:nth-child(4n + 3) { animation-duration: 0.9s; background: linear-gradient(to top, var(--c3), var(--c2)); }
.eq span:nth-child(4n + 4) { animation-duration: 1.5s; }
.eq span:nth-child(3n + 1) { animation-delay: -0.35s; }
.eq span:nth-child(5n + 2) { animation-delay: -0.7s; }

@keyframes eq-bounce {
  from { height: 12%; opacity: 0.55; }
  to { height: 100%; opacity: 1; }
}

.tagline {
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: clamp(2rem, 5vh, 3.2rem);
}

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

.cta {
  border: none;
  border-radius: 999px;
  padding: 1.1rem 2.6rem;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: #06060a;
  background: linear-gradient(110deg, var(--c1), var(--c2), var(--c3));
  background-size: 200% 200%;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
  animation: hue-drift 9s ease-in-out infinite alternate;
  box-shadow: 0 0 40px rgba(123, 92, 255, 0.35);
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 0 60px rgba(0, 229, 176, 0.4);
}

.cta:active { transform: translateY(0); }

/* --- notify dialog ---------------------------------------------------------- */

.notify-dialog {
  margin: auto;
  width: min(26rem, calc(100% - 2.4rem));
  border: 1px solid var(--edge);
  border-radius: 24px;
  padding: 2.4rem 2rem 2rem;
  background: rgba(10, 9, 14, 0.92);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(123, 92, 255, 0.18);
}

.notify-dialog::backdrop {
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  border: none;
  background: none;
  color: var(--dim);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.dialog-close:hover { color: var(--ink); }

.dialog-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.5em;
  color: var(--c3);
  margin-bottom: 0.7rem;
}

.dialog-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(110deg, var(--c1), var(--c2), var(--c3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.7rem;
}

.dialog-sub {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--dim);
  margin-bottom: 1.6rem;
}

.notify {
  position: relative;
  display: flex;
  gap: 0.6rem;
  flex-direction: column;
}

.notify input[type="text"],
.notify input[type="email"] {
  width: 100%;
  background: rgba(244, 242, 238, 0.04);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.notify input[type="text"]::placeholder,
.notify input[type="email"]::placeholder { color: var(--dim); }

.notify input[type="text"]:focus,
.notify input[type="email"]:focus {
  border-color: var(--c3);
  box-shadow: 0 0 0 3px rgba(0, 229, 176, 0.15);
}

.notify .hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.notify button {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #06060a;
  background: linear-gradient(110deg, var(--c1), var(--c2), var(--c3));
  background-size: 200% 200%;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  animation: hue-drift 9s ease-in-out infinite alternate;
}

.notify button:hover { transform: translateY(-2px); filter: brightness(1.15); }
.notify button:active { transform: translateY(0); }
.notify button:disabled { opacity: 0.55; cursor: wait; transform: none; }

.notify-msg {
  min-height: 1.4em;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--c3);
}

.notify-msg.error { color: var(--c1); }

/* --- transmissions (CMS posts) -------------------------------------------- */

.transmissions {
  position: relative;
  z-index: 2;
  width: min(52rem, 100%);
  margin: 0 auto;
  padding: 1rem 1.4rem 4rem;
}

.transmissions h2 {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: var(--dim);
  margin-bottom: 1.6rem;
  text-align: center;
}

.transmissions-list { display: grid; gap: 1rem; }

.transmission {
  border: 1px solid var(--edge);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  background: rgba(244, 242, 238, 0.03);
  backdrop-filter: blur(8px);
}

.transmission .t-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.transmission .t-cat { color: var(--c3); }

.transmission h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.55rem;
}

.transmission .t-excerpt {
  color: var(--dim);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- marquee + footer ----------------------------------------------------- */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  padding: 0.8rem 0;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--dim);
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}

@keyframes marquee { to { transform: translateX(-50%); } }

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1.2rem, 4vw, 3rem);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--dim);
}

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

@media (prefers-reduced-motion: reduce) {
  .grain, .orb, .eq span, .marquee-track, .title .line, .notify button, .dot {
    animation: none;
  }
  .eq span { height: 55%; }
}
