/* r15m type — Syne ExtraBold wordmark, Space Grotesk chill + body
   Chill: text-only crimson gradient (NO plate / frosted bar / halo-box).
   L/R soft-edge mask lives on outer .chill-wrap only. */

.wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(60px, 8.5vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  color: var(--text);
  text-shadow: none;
}

.wordmark .dot {
  color: var(--crimson);
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

/* Outer wrap = L/R dissolve only. Zero plate: no bg, blur, shadow, filter. */
.chill-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-top: var(--air-wm-chill);
  padding: 0;
  background: none;
  background-color: transparent;
  background-image: none;
  border: none;
  box-shadow: none;
  filter: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  isolation: auto;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 5%,
    #000 14%,
    #000 86%,
    rgba(0, 0, 0, 0.2) 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 5%,
    #000 14%,
    #000 86%,
    rgba(0, 0, 0, 0.2) 95%,
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

.chill-wrap::before,
.chill-wrap::after {
  content: none !important;
  display: none !important;
}

.chill {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  background-color: transparent;
  border: none;
  box-shadow: none;
  /* No halo-box filters — glyphs only */
  filter: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.chill::before,
.chill::after {
  content: none !important;
  display: none !important;
}

/* Soft crimson gradient on glyphs only (background-clip:text). No wash behind. */
.chill.chill--wash {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-color: transparent;
  background-image: linear-gradient(
    100deg,
    rgba(110, 16, 24, 0.15) 0%,
    rgba(160, 32, 44, 0.42) 12%,
    rgba(210, 55, 68, 0.72) 24%,
    rgba(232, 130, 142, 0.9) 36%,
    rgba(255, 228, 232, 0.98) 48%,
    rgba(255, 244, 246, 1) 50%,
    rgba(255, 228, 232, 0.98) 52%,
    rgba(232, 130, 142, 0.9) 64%,
    rgba(210, 55, 68, 0.72) 76%,
    rgba(160, 32, 44, 0.42) 88%,
    rgba(110, 16, 24, 0.15) 100%
  );
  background-size: 280% 100%;
  background-position: 18% 50%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-mask-image: none;
  mask-image: none;
  filter: none;
  text-shadow: none;
}

@keyframes chill-shift {
  0%, 100% { background-position: 12% 50%; }
  50% { background-position: 88% 50%; }
}

@keyframes chill-breathe {
  0%, 100% { background-size: 260% 100%; }
  50% { background-size: 300% 100%; }
}

/* Animate only after wrap reveal (.is-in). Visible slow crimson motion. */
.chill-wrap.is-in .chill.chill--wash.chill--breathe,
.chill.chill--wash.chill--breathe.is-in {
  animation:
    chill-shift 9.5s ease-in-out infinite,
    chill-breathe 7.5s ease-in-out infinite;
  will-change: background-position, background-size;
}

.chill-wrap:not(.is-in) .chill.chill--wash.chill--breathe,
.chill.chill--wash.chill--breathe:not(.is-in) {
  animation: none;
}

/* Dot / konami egg whisper — dry line under chill-wrap */
.chill-whisper {
  display: block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(224, 140, 148, 0.55);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none;
  user-select: none;
}
.chill-whisper.is-on {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .chill-wrap.is-in .chill.chill--wash.chill--breathe,
  .chill.chill--wash.chill--breathe,
  .chill.chill--wash.chill--breathe.is-in {
    animation: none !important;
    background-position: 50% 50% !important;
    background-size: 220% 100% !important;
    will-change: auto;
  }
  .chill-whisper {
    transition: none;
  }
}
