/* ========================================
   Days since the last AI model release
   Nothing but type, floating in the landing page's sky: one big bold number
   that fades into the night as it falls, a quiet line under it, and the
   latest model beside a small glowing dot. No frame, no ring.
   ======================================== */

.release-clock {
  --release-ink: #f5f9ff;
  --release-muted: rgba(214, 232, 250, 0.66);
  display: block;
  color: var(--release-ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  animation: release-clock-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 3.55s both;
}

.release-clock__body {
  display: flex;
}

/* Neutral white, see-through, fading toward the foot: the number sits in
   the scene rather than on it. Proportional figures and tight tracking keep
   the digits together. */
.release-clock__count {
  display: block;
  color: transparent;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.58) 45%,
    rgba(255, 255, 255, 0.16) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 700;
  font-variant-numeric: proportional-nums;
  letter-spacing: -0.075em;
  line-height: 0.86;
  transition: filter 0.4s ease;
}

.release-clock__text {
  display: flex;
  flex-direction: column;
}

.release-clock__label {
  color: var(--release-muted);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.release-clock__latest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--release-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.release-clock__lab-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--release-lab);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--release-lab) 20%, transparent),
    0 0 14px var(--release-lab);
}

.release-clock__model {
  white-space: nowrap;
}

.release-clock__arrow {
  opacity: 0.5;
  font-weight: 500;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.release-clock:hover .release-clock__count,
.release-clock:focus-visible .release-clock__count {
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.16));
}

.release-clock:hover .release-clock__label,
.release-clock:focus-visible .release-clock__label {
  color: rgba(230, 241, 252, 0.86);
}

.release-clock:hover .release-clock__arrow,
.release-clock:focus-visible .release-clock__arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.release-clock:focus-visible {
  outline: 2px solid rgba(141, 203, 255, 0.85);
  outline-offset: 10px;
  border-radius: 14px;
}

/* ---------- wide screens: floating in the sky ---------- */
.release-clock--float {
  position: absolute;
  z-index: 5;
  top: clamp(64px, 10vh, 112px);
  right: clamp(28px, 5vw, 78px);
  display: none;
  width: clamp(190px, 16vw, 260px);
}

.release-clock--float .release-clock__body {
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  animation: release-clock-float 9s ease-in-out 4.7s infinite alternate;
}

.release-clock--float .release-clock__count {
  font-size: clamp(76px, 6.6vw, 108px);
}

.release-clock--float .release-clock__text {
  align-items: center;
  gap: 12px;
}

.release-clock--float .release-clock__label {
  font-size: clamp(14px, 1.05vw, 16px);
  text-wrap: balance;
}

.release-clock--float .release-clock__latest {
  font-size: clamp(14px, 1vw, 15px);
}

/* ---------- narrower screens: a row under the intro ---------- */
.release-clock--inline {
  width: fit-content;
  max-width: 100%;
  margin-top: 22px;
  animation-delay: 3.4s;
}

.release-clock--inline .release-clock__body {
  align-items: center;
  gap: 14px;
}

.release-clock--inline .release-clock__count {
  font-size: 46px;
}

.release-clock--inline .release-clock__text {
  gap: 6px;
}

.release-clock--inline .release-clock__label {
  font-size: 13px;
}

.release-clock--inline .release-clock__latest {
  font-size: 14px;
}

/* Floating only where the sky right of the wordmark is wide enough: below
   this the number would crowd the I's glow. */
@media (min-width: 1180px) {
  .release-clock--float {
    display: block;
  }

  .release-clock--inline {
    display: none;
  }
}

/* ---------- motion ---------- */
@keyframes release-clock-reveal {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes release-clock-float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .release-clock {
    animation: none;
    opacity: 1;
  }

  .release-clock--float .release-clock__body {
    animation: none;
  }

  .release-clock__count,
  .release-clock__label,
  .release-clock__arrow {
    transition: none;
  }
}
