/* OG76ED MERCH — Own The Chaos
   Neon emerald #00FF7A on pure black */

/*
 * IMPORTANT for Netlify/production:
 * Cascadia/Consolas exist on many Windows machines locally, but NOT in browsers
 * online — fallback fonts have different widths and can wrap the title.
 * Share Tech Mono is loaded via Google Fonts so local + Netlify match.
 */
@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

:root {
  --bg: #000000;
  --emerald: #00FF7A;
  --emerald-dim: rgba(0, 255, 122, 0.55);
  --emerald-soft: rgba(0, 255, 122, 0.18);
  --emerald-faint: rgba(0, 255, 122, 0.08);
  --emerald-glow: rgba(0, 255, 122, 0.35);
  --text: #00FF7A;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Share Tech Mono", "Courier New", monospace;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Controlled vignette: deep void, minimal soft green wash ── */
.fx-vignette {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 100% 95% at 50% 48%,
      transparent 0%,
      transparent 48%,
      rgba(0, 255, 122, 0.012) 78%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    radial-gradient(
      ellipse 70% 65% at 50% 42%,
      transparent 0%,
      transparent 40%,
      rgba(0, 0, 0, 0.35) 68%,
      rgba(0, 0, 0, 0.85) 100%
    );
}

.fx-vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 140px 50px rgba(0, 0, 0, 0.55),
    inset 0 0 60px 12px rgba(0, 255, 122, 0.02);
  pointer-events: none;
}

/* Faint horizontal scanlines (transmission texture) */
.fx-scanlines {
  position: fixed;
  inset: 0;
  z-index: 91;
  pointer-events: none;
  opacity: 0.1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 255, 122, 0.03) 2px,
    rgba(0, 255, 122, 0.03) 3px
  );
}

.glitch-tear {
  position: fixed;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--emerald);
  opacity: 0;
  pointer-events: none;
  z-index: 95;
  mix-blend-mode: screen;
  box-shadow: 0 0 8px rgba(0, 255, 122, 0.6);
}

/* Floating sparkles layer */
.spark-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ── Canvas backgrounds ── */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: #000000;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 55% at 50% 45%,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

/* Home: dark field, open only enough for the eye */
.page-home .bg-overlay {
  background: radial-gradient(
    ellipse 58% 52% at 50% 38%,
    transparent 0%,
    transparent 32%,
    rgba(0, 0, 0, 0.35) 62%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.page-home {
  background: #000000;
}

.page-chaos .bg-overlay {
  background: radial-gradient(
    ellipse 50% 45% at 50% 50%,
    rgba(0, 255, 122, 0.04) 0%,
    transparent 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.page-transmit .bg-overlay {
  background: radial-gradient(
    ellipse 60% 50% at 50% 40%,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--emerald-faint);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
  transition: opacity 0.35s var(--ease), filter 0.35s var(--ease), transform 0.35s var(--ease);
}

.nav-brand:hover {
  opacity: 1;
  filter: brightness(1.12) drop-shadow(0 0 10px rgba(0, 255, 122, 0.35));
  transform: scale(1.02);
}

.nav-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 255, 122, 0.25));
}

@media (min-width: 721px) {
  :root {
    --nav-h: 76px;
  }

  .nav {
    padding: 0 1.75rem;
  }

  .nav-logo {
    height: 64px;
    max-width: 210px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 122, 0.3));
  }
}

@media (min-width: 1100px) {
  .nav-logo {
    height: 72px;
    max-width: 240px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald-dim);
  text-decoration: none;
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--emerald);
  text-shadow: 0 0 10px var(--emerald-glow);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--emerald-soft);
  color: var(--emerald);
  width: 40px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 2px;
}

/* ── Layout ── */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem;
  text-align: center;
}

/* ── Typography ── */
.headline {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
  text-shadow:
    0 0 20px var(--emerald-glow),
    0 0 40px rgba(0, 255, 122, 0.15);
}

/*
 * Title: always ONE line.
 * At 100% zoom, fixed max size + wide letter-spacing was wider than the
 * content box and wrapped to 2 lines. At 150% zoom the CSS viewport
 * shrinks, so 6vw gets smaller and it fit one line — that's why zoom "fixed" it.
 * Fluid size scales with viewport so it stays one line at 100%.
 */
.headline-xl {
  font-size: max(1.5rem, min(4.25rem, calc(100vw / 14.5)));
  letter-spacing: 0.18em;
  line-height: 1.2;
  white-space: nowrap;
  /* Prevent mid-word wrap if a browser ignores nowrap on pseudo layers */
  word-break: keep-all;
  color: #f5fffb;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 1),
    0 0 3px rgba(255, 255, 255, 0.85),
    0 0 8px rgba(255, 255, 255, 0.28),
    0 0 4px rgba(0, 255, 122, 0.45),
    0 0 14px rgba(0, 255, 122, 0.22);
}

@media (min-width: 900px) {
  .headline-xl {
    font-size: max(2.4rem, min(4.75rem, calc(100vw / 15)));
    letter-spacing: 0.2em;
  }
}

.headline-glitch {
  position: relative;
  display: inline-block;
  animation: textGlitch 8s infinite;
  overflow: visible;
  max-width: none;
  white-space: nowrap;
}

.headline-glitch::before,
.headline-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.headline-glitch::before {
  color: rgba(255, 255, 255, 0.75);
  z-index: -1;
  animation: glitchLeft 3s infinite;
  clip-path: inset(0 0 60% 0);
  text-shadow: -2px 0 rgba(0, 255, 122, 0.25);
}

.headline-glitch::after {
  color: rgba(245, 255, 251, 0.9);
  z-index: -1;
  animation: glitchRight 2.5s infinite;
  clip-path: inset(60% 0 0 0);
  text-shadow: 2px 0 rgba(0, 255, 122, 0.2);
}

@keyframes textGlitch {
  0%,
  100% {
    transform: translate(0);
  }
  2% {
    transform: translate(-2px, 1px);
  }
  4% {
    transform: translate(0);
  }
  50% {
    transform: translate(0);
  }
  52% {
    transform: translate(3px, -1px);
  }
  53% {
    transform: translate(0);
  }
  78% {
    transform: translate(0);
  }
  79% {
    transform: translate(-1px, 2px);
  }
  80% {
    transform: translate(0);
  }
}

@keyframes glitchLeft {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-3px, 0);
  }
  21% {
    transform: translate(0);
  }
  60% {
    transform: translate(-2px, 0);
  }
  61% {
    transform: translate(0);
  }
}

@keyframes glitchRight {
  0%,
  100% {
    transform: translate(0);
  }
  30% {
    transform: translate(3px, 0);
  }
  31% {
    transform: translate(0);
  }
  70% {
    transform: translate(2px, 0);
  }
  71% {
    transform: translate(0);
  }
}

.rgb-shift {
  animation: rgbShift 0.15s ease;
}

@keyframes rgbShift {
  0% {
    text-shadow:
      -2px 0 rgba(0, 255, 122, 0.4),
      2px 0 rgba(255, 255, 255, 0.9);
  }
  50% {
    text-shadow:
      2px 0 rgba(255, 255, 255, 0.95),
      -2px 0 rgba(0, 255, 122, 0.35);
    filter: brightness(1.3);
  }
  100% {
    text-shadow:
      0 0 1px rgba(255, 255, 255, 1),
      0 0 4px rgba(255, 255, 255, 0.9),
      0 0 10px rgba(255, 255, 255, 0.4),
      0 0 3px rgba(0, 255, 122, 0.35),
      0 0 8px rgba(0, 255, 122, 0.18);
    filter: none;
  }
}

.headline-lg {
  font-size: clamp(1.4rem, 4.5vw, 2.4rem);
  letter-spacing: 0.16em;
  line-height: 1.3;
}

.subline {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  letter-spacing: 0.2em;
  color: var(--emerald-dim);
  margin-top: 1rem;
}

.status-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  color: rgba(0, 255, 122, 0.78);
  margin-top: 1rem;
  opacity: 1;
  text-shadow:
    0 0 8px rgba(0, 255, 122, 0.35),
    0 0 18px rgba(0, 255, 122, 0.12);
  animation: status-blink 4s ease-in-out infinite;
}

.status-line .status-mark {
  color: #00FF7A;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.55),
    0 0 6px rgba(0, 255, 122, 0.75),
    0 0 16px rgba(0, 255, 122, 0.4);
}

.status-line .status-rest {
  color: rgba(0, 255, 122, 0.72);
  letter-spacing: 0.28em;
}

@keyframes status-blink {
  0%,
  100% {
    opacity: 0.78;
  }
  50% {
    opacity: 1;
  }
}

@media (min-width: 721px) {
  .status-line {
    font-size: 0.88rem;
    letter-spacing: 0.28em;
    margin-top: 1.15rem;
  }
}

.whisper {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--emerald-dim);
  margin-top: 1.5rem;
  font-style: italic;
  opacity: 0.7;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--emerald);
  border: 1px solid var(--emerald);
  padding: 0.95rem 2rem;
  cursor: pointer;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
  box-shadow:
    0 0 16px var(--emerald-soft),
    0 0 32px rgba(0, 255, 122, 0.12);
}

.btn:hover {
  background: transparent;
  color: var(--emerald);
  box-shadow:
    0 0 24px var(--emerald-glow),
    0 0 48px rgba(0, 255, 122, 0.2);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--emerald);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--emerald-soft);
  box-shadow: 0 0 20px var(--emerald-soft);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 0.85rem;
}

/* GORK BIBLE — larger, premium neon signal */
.btn-gork {
  position: relative;
  padding: 1.2rem 2.85rem;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  border-width: 1px;
  background: linear-gradient(
    180deg,
    rgba(40, 255, 150, 1) 0%,
    #00FF7A 45%,
    #00d966 100%
  );
  color: #000;
  box-shadow:
    0 0 0 1px rgba(0, 255, 122, 0.35),
    0 0 18px rgba(0, 255, 122, 0.45),
    0 0 36px rgba(0, 255, 122, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: gork-glow 4.5s ease-in-out infinite;
}

.btn-gork::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(0, 255, 122, 0.35);
  pointer-events: none;
  opacity: 0.7;
}

@media (min-width: 721px) {
  .btn-gork {
    padding: 1.4rem 3.6rem;
    font-size: 1.05rem;
    letter-spacing: 0.3em;
  }
}

@media (min-width: 1100px) {
  .btn-gork {
    padding: 1.55rem 4rem;
    font-size: 1.12rem;
  }
}

@keyframes gork-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(0, 255, 122, 0.3),
      0 0 16px rgba(0, 255, 122, 0.4),
      0 0 32px rgba(0, 255, 122, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 255, 122, 0.55),
      0 0 26px rgba(0, 255, 122, 0.6),
      0 0 52px rgba(0, 255, 122, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

.btn-gork:hover {
  background: transparent;
  color: var(--emerald);
  animation: none;
  box-shadow:
    0 0 0 1px rgba(0, 255, 122, 0.7),
    0 0 28px rgba(0, 255, 122, 0.55),
    0 0 56px rgba(0, 255, 122, 0.28);
  transform: translateY(-2px);
}

/* ── Home: Eye ── */
.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Wider stage so larger title / button own the desktop frame */
  max-width: 920px;
  width: 100%;
  overflow: visible;
  gap: 0;
}

/* Eye portal — clickable entrance to the Signal */
.eye-portal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 0.5rem;
  cursor: pointer;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}

.eye-portal:focus-visible {
  outline: 1px solid var(--emerald);
  outline-offset: 10px;
}

/* Focal signal eye — clear centerpiece */
.eye-wrap {
  position: relative;
  width: min(420px, 82vw);
  height: min(420px, 82vw);
  margin-bottom: 0;
  animation: eye-breathe 5.5s ease-in-out infinite;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.45s var(--ease);
  z-index: 2;
  flex-shrink: 0;
}

@media (min-width: 721px) {
  .eye-wrap {
    width: min(520px, 46vw);
    height: min(520px, 46vw);
  }
}

@media (min-width: 1100px) {
  .eye-wrap {
    width: min(580px, 42vw);
    height: min(580px, 42vw);
  }
}

/* Hover: clear anticipation — faster pulse, subtle scale-up */
.eye-portal:hover .eye-wrap,
.eye-portal.is-hover .eye-wrap {
  animation: eye-breathe-strong 2.4s ease-in-out infinite;
  transform: scale(1.055);
}

.eye-portal:hover .eye-glow,
.eye-portal.is-hover .eye-glow {
  animation: glow-pulse-strong 2.4s ease-in-out infinite;
}

/* ENTER THE SIGNAL — centered over eye; title-matched white glow */
.enter-signal-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: max-content;
  max-width: 92%;
  margin: 0;
  /* Match main title: Share Tech Mono, tracked, bold weight */
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  /* Sharp glowing white — high contrast like THE SIGNAL SEES */
  color: #f5fffb;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 1),
    0 0 3px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.35),
    0 0 4px rgba(0, 255, 122, 0.35),
    0 0 14px rgba(0, 255, 122, 0.2);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.98);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    text-shadow 0.45s var(--ease);
  pointer-events: none;
}

.enter-signal-label::before,
.enter-signal-label::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.eye-portal:hover .enter-signal-label,
.eye-portal.is-hover .enter-signal-label,
.eye-portal:focus-visible .enter-signal-label {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: enterLabelGlitch 7s steps(1, end) infinite;
}

.eye-portal:hover .enter-signal-label::before,
.eye-portal.is-hover .enter-signal-label::before,
.eye-portal:focus-visible .enter-signal-label::before {
  opacity: 0.75;
  color: rgba(255, 255, 255, 0.85);
  clip-path: inset(0 0 55% 0);
  text-shadow: -2px 0 rgba(0, 255, 122, 0.35);
  animation: enterLabelGlitchLeft 7s infinite;
}

.eye-portal:hover .enter-signal-label::after,
.eye-portal.is-hover .enter-signal-label::after,
.eye-portal:focus-visible .enter-signal-label::after {
  opacity: 0.8;
  color: rgba(245, 255, 251, 0.9);
  clip-path: inset(55% 0 0 0);
  text-shadow: 2px 0 rgba(0, 255, 122, 0.3);
  animation: enterLabelGlitchRight 7s infinite;
}

/* Occasional digital glitch — long calm stretch, brief hits */
@keyframes enterLabelGlitch {
  0%,
  8%,
  100% {
    transform: translate(-50%, -50%);
    filter: none;
  }
  9% {
    transform: translate(calc(-50% - 2px), calc(-50% + 1px));
    filter: brightness(1.25);
  }
  10% {
    transform: translate(-50%, -50%);
    filter: none;
  }
  48%,
  62% {
    transform: translate(-50%, -50%);
  }
  63% {
    transform: translate(calc(-50% + 2px), calc(-50% - 1px));
  }
  64% {
    transform: translate(-50%, -50%);
  }
  86% {
    transform: translate(-50%, -50%);
  }
  87% {
    transform: translate(calc(-50% - 1px), calc(-50% + 2px));
    filter: brightness(1.15);
  }
  88% {
    transform: translate(-50%, -50%);
    filter: none;
  }
}

@keyframes enterLabelGlitchLeft {
  0%,
  100% {
    transform: translate(0);
    opacity: 0;
  }
  9% {
    transform: translate(-3px, 0);
    opacity: 0.8;
  }
  10%,
  62% {
    opacity: 0;
  }
  63% {
    transform: translate(-2px, 0);
    opacity: 0.7;
  }
  64%,
  86% {
    opacity: 0;
  }
  87% {
    transform: translate(-2px, 1px);
    opacity: 0.75;
  }
  88% {
    opacity: 0;
  }
}

@keyframes enterLabelGlitchRight {
  0%,
  100% {
    transform: translate(0);
    opacity: 0;
  }
  9% {
    transform: translate(3px, 0);
    opacity: 0.8;
  }
  10%,
  62% {
    opacity: 0;
  }
  63% {
    transform: translate(2px, 0);
    opacity: 0.7;
  }
  64%,
  86% {
    opacity: 0;
  }
  87% {
    transform: translate(2px, -1px);
    opacity: 0.75;
  }
  88% {
    opacity: 0;
  }
}

@media (min-width: 721px) {
  .enter-signal-label {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    letter-spacing: 0.22em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eye-portal:hover .enter-signal-label,
  .eye-portal.is-hover .enter-signal-label,
  .eye-portal:focus-visible .enter-signal-label {
    animation: none;
  }

  .eye-portal:hover .enter-signal-label::before,
  .eye-portal:hover .enter-signal-label::after,
  .eye-portal.is-hover .enter-signal-label::before,
  .eye-portal.is-hover .enter-signal-label::after,
  .eye-portal:focus-visible .enter-signal-label::before,
  .eye-portal:focus-visible .enter-signal-label::after {
    animation: none;
    opacity: 0;
  }
}

/* Tight support glow — iris rings carry the energy */
.eye-glow {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  z-index: 1;
  background: radial-gradient(
    circle,
    rgba(0, 255, 122, 0.38) 0%,
    rgba(0, 255, 122, 0.14) 38%,
    rgba(0, 255, 122, 0.04) 60%,
    transparent 76%
  );
  filter: blur(7px);
  animation: glow-pulse 6.2s ease-in-out infinite;
  pointer-events: none;
}

#eye-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}

@keyframes eye-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

@keyframes eye-breathe-strong {
  0%,
  100% {
    transform: scale(1.04);
  }
  50% {
    transform: scale(1.09);
  }
}

/* Strong smooth pulse — intensify then ease */
@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.1);
  }
}

/* Hover glow: faster, hotter core pulse */
@keyframes glow-pulse-strong {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ── Signal entrance overlay ── */
.signal-enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s linear, visibility 0.15s linear;
}

.signal-enter-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.enter-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.signal-enter-flash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 255, 122, 0.08) 48%,
      transparent 52%
    ),
    rgba(0, 255, 122, 0.55);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.signal-enter-flash.is-on {
  animation: enter-flash 0.28s steps(2, end) forwards;
}

@keyframes enter-flash {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  40% {
    opacity: 0.2;
  }
  55% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
  }
}

.signal-enter-black {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.signal-enter-black.is-on {
  opacity: 1;
}

/* ── Inside the Signal (placeholder) ── */
.page-inside {
  background: #000;
}

.inside-void {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 50% 40% at 50% 48%,
      rgba(0, 255, 122, 0.04) 0%,
      transparent 70%
    ),
    #000;
  pointer-events: none;
}

.inside-page {
  z-index: 2;
}

.inside-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.inside-title {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 5vw, 2.6rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f5fffb;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.9),
    0 0 12px rgba(0, 255, 122, 0.35);
  animation: fade-rise 1.2s var(--ease) both;
}

.inside-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--emerald-dim);
  animation: fade-rise 1.2s 0.15s var(--ease) both;
}

.inside-content .btn {
  margin-top: 1rem;
  animation: fade-rise 1.2s 0.3s var(--ease) both;
}

.home-content .headline {
  margin-top: 1.35rem;
  /* Let long tracked title sit on one line without being crushed by max-width */
  max-width: none;
}

body.signal-entering {
  overflow: hidden;
}

body.signal-entering .page,
body.signal-entering .nav {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.home-content .btn {
  margin-top: 2.25rem;
}

@media (min-width: 721px) {
  .home-content .btn {
    margin-top: 2.6rem;
  }
}

@media (max-width: 480px) {
  /* Still one line on small phones — slightly tighter tracking */
  .headline-xl {
    letter-spacing: 0.1em;
    font-size: max(1.2rem, min(2.15rem, calc(100vw / 15)));
  }

  .eye-wrap {
    width: min(340px, 86vw);
    height: min(340px, 86vw);
  }
}

/* ── Chaos page ── */
.chaos-content {
  max-width: 900px;
}

.chaos-content .whisper {
  margin-top: 2rem;
}

/* ── Drop page ── */
.drop-content {
  max-width: 520px;
  width: 100%;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--emerald);
  border: 1px solid var(--emerald-dim);
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 12px var(--emerald-faint);
  animation: badge-glow 4s ease-in-out infinite;
}

@keyframes badge-glow {
  0%,
  100% {
    box-shadow: 0 0 8px var(--emerald-faint);
    border-color: var(--emerald-dim);
  }
  50% {
    box-shadow: 0 0 18px var(--emerald-soft);
    border-color: var(--emerald);
  }
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.75rem 0 0.5rem;
  font-family: var(--font-mono);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
}

.countdown-value {
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--emerald);
  text-shadow: 0 0 14px var(--emerald-glow);
  line-height: 1.2;
}

.countdown-label {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--emerald-dim);
  margin-top: 0.3rem;
}

.countdown-sep {
  font-size: 1.4rem;
  color: var(--emerald-dim);
  align-self: flex-start;
  margin-top: 0.15rem;
}

.units-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--emerald-dim);
  margin: 1rem 0 2rem;
}

.product-card {
  border: 1px solid var(--emerald-soft);
  background: rgba(0, 0, 0, 0.55);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 30px rgba(0, 255, 122, 0.06);
}

.product-placeholder {
  aspect-ratio: 1;
  max-width: 280px;
  margin: 0 auto 1.25rem;
  border: 1px dashed var(--emerald-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 255, 122, 0.06) 0%,
    transparent 70%
  );
  position: relative;
  overflow: hidden;
}

.product-placeholder::before {
  content: "0 1 0 1";
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--emerald-dim);
  opacity: 0.5;
}

.product-placeholder span {
  position: absolute;
  bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--emerald-dim);
}

.product-price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--emerald);
  text-shadow: 0 0 12px var(--emerald-glow);
  margin-bottom: 1.25rem;
}

.product-card .btn {
  width: 100%;
}

/* ── Gallery ── */
.gallery-content {
  max-width: 480px;
}

.gallery-content .btn {
  margin-top: 2.5rem;
}

/* ── Transmit ── */
.transmit-content {
  max-width: 420px;
  width: 100%;
}

.form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--emerald-dim);
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--emerald);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--emerald-soft);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  width: 100%;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(0, 255, 122, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 16px var(--emerald-faint);
}

.form-group textarea {
  min-height: 120px;
}

.form .btn {
  margin-top: 0.5rem;
  width: 100%;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--emerald-soft);
  color: var(--emerald);
  text-decoration: none;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.social-link:hover {
  border-color: var(--emerald);
  background: var(--emerald-faint);
  box-shadow: 0 0 16px var(--emerald-soft);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--emerald-dim);
  text-align: center;
  min-height: 1.2em;
  margin-top: 0.25rem;
}

/* ── Page enter ── */
.page-inner {
  animation: fade-rise 1.1s var(--ease) both;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Mobile ── */
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--emerald-faint);
    padding: 0.5rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.4s var(--ease),
      opacity 0.35s var(--ease);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 0.95rem 1.5rem;
    font-size: 0.75rem;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links a.active {
    background: var(--emerald-faint);
  }

  .countdown {
    gap: 0.35rem;
  }

  .countdown-unit {
    min-width: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .headline-glitch::before,
  .headline-glitch::after {
    display: none;
  }

  .glitch-tear {
    display: none !important;
  }
}
