:root {
  --ink: #0B0A08;
  --ink-deep: #060504;
  --latte: #FFF8E7;
  --sand: #C7BBA5;
  --sand-dim: #9C927E;
  --text: #EFEBE3;
  --text-lead: #D9D3C7;
  --font: "Golos Text", "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(199, 187, 165, 0.08), transparent 62%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(6, 5, 4, 0.9), transparent 55%),
    var(--ink);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
}

.static {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.48;
  pointer-events: none;
  z-index: 0;
  will-change: opacity;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 65% 50% at 50% 45%, transparent 20%, rgba(6, 5, 4, 0.7) 100%);
}

.stage {
  position: relative;
  z-index: 3;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: clamp(32px, 8vw, 72px) clamp(24px, 6vw, 48px);
  text-align: center;
}

.wordmark {
  display: block;
  width: min(72vw, 280px);
  height: auto;
  margin: 0 auto;
  animation: resolve 1.2s cubic-bezier(0.2, 0, 0, 1) both;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2.5vw, 20px);
  margin: clamp(40px, 8vh, 64px) 0 0;
  animation: resolve 1.2s cubic-bezier(0.2, 0, 0, 1) 0.12s both;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.unit__val {
  display: block;
  width: 100%;
  font-size: clamp(28px, 7vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: color-mix(in srgb, var(--text) 88%, transparent);
  font-variant-numeric: tabular-nums;
  /* Intentional soft/distorted read — same as the mobile static bleed */
  filter: blur(0.65px);
  text-shadow:
    0.7px 0 0 rgba(199, 187, 165, 0.45),
    -0.7px 0 1px rgba(239, 235, 227, 0.28),
    0 0 18px rgba(199, 187, 165, 0.18);
  animation: tune 3.6s ease-in-out infinite;
}

@keyframes tune {
  0%, 100% {
    filter: blur(0.45px);
    letter-spacing: -0.018em;
  }
  40% {
    filter: blur(0.9px);
    letter-spacing: -0.012em;
  }
  70% {
    filter: blur(0.55px);
    letter-spacing: -0.024em;
  }
}

.unit__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.mail {
  display: inline-block;
  margin-top: clamp(28px, 5vh, 40px);
  font-size: clamp(15px, 2.4vw, 18px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--sand);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sand) 35%, transparent);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
  animation: resolve 1.2s cubic-bezier(0.2, 0, 0, 1) 0.22s both;
}

.mail:hover {
  color: var(--latte);
  border-bottom-color: var(--sand);
}

@keyframes resolve {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark,
  .countdown,
  .mail {
    animation: none;
  }

  .unit__val {
    animation: none;
    filter: blur(0.5px);
    letter-spacing: -0.02em;
  }

  .static {
    opacity: 0.18;
  }
}
