:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.45);
  --digit-size: clamp(44px, 12vw, 168px);
  --group-gap: clamp(20px, 7vw, 160px);
  --stage-pad: clamp(1rem, 4vw, 2rem);
  --ease-out-luxe: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--stage-pad);
  gap: clamp(2.25rem, 6vh, 4.25rem);
}

.eyebrow,
.caption {
  font-family: 'Inter', sans-serif;
  font-size: clamp(10px, 0.95vw, 13px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  color: var(--muted);
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  animation: rise 1.4s var(--ease-out-luxe) 0.25s forwards;
}

.caption {
  animation-delay: 2.6s;
}

.date-display {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  max-width: 100%;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: var(--digit-size);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  gap: var(--group-gap);
}

.date-group {
  display: flex;
}

.digit-column {
  position: relative;
  width: 1ch;
  height: 1em;
  overflow: hidden;
  display: inline-block;
}

.digit-strip {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  will-change: transform;
}

.digit-strip span {
  height: 1em;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.separator {
  font-weight: 200;
  color: var(--fg);
  opacity: 0.35;
  transform: translateY(-0.18em);
  padding: 0 0.04em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .digit-strip {
    transition: none !important;
  }
  .eyebrow,
  .caption {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
