/* Original Hi Coworking 3D Scroll countdown, adapted so normal page scroll drives the original depth control. */

.hc-countdown {
  overflow: visible !important;
  padding: clamp(1.65rem, 3.4vw, 2.5rem) 1rem clamp(1.5rem, 3vw, 2.25rem) !important;
  background: transparent !important;
}

.hc-countdown__inner {
  width: min(100%, 68rem) !important;
  max-width: 68rem !important;
  margin: 0 auto !important;
}

.hc-countdown__copy {
  width: min(100%, 68rem);
  margin: 0 auto clamp(1rem, 2vw, 1.45rem);
  text-align: center;
}

.hc-countdown__subhead {
  margin-bottom: 0 !important;
}

.hc-scroll-countdown__track {
  position: static;
  height: auto;
  margin: 0;
}

.hc-scroll-countdown__sticky {
  position: static;
  min-height: 0;
  display: block;
  overflow: visible;
  padding: 0;
}

.hc-scroll-countdown__shell {
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  overflow: visible;
}

.hc-scroll-countdown__clock {
  width: min(900px, 94%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  transform-style: preserve-3d;
  transform: rotateX(var(--hc-scroll-tilt, 0deg)) rotateY(var(--hc-scroll-yaw, 0deg)) translateZ(5px);
  transition: transform .14s ease-out;
  will-change: transform;
}

.hc-scroll-countdown__unit {
  position: relative;
  min-width: 0;
  height: 230px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f7f8fb, #dbe1e8);
  border: 1px solid #b7c2ce;
  box-shadow: 0 20px 28px rgba(15, 23, 42, .13);
  transform-style: preserve-3d;
}

.hc-scroll-countdown__unit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  transform: translateZ(-26px);
  background: #aab4c0;
  box-shadow: 0 0 0 1px #8995a3;
}

.hc-scroll-countdown__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateZ(18px);
}

.hc-scroll-countdown__face strong {
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: .82;
  letter-spacing: -.07em;
  color: #0f172a;
}

.hc-scroll-countdown__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: 0;
  color: #64748b;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
  text-align: center;
  transform: translateZ(20px);
}

.hc-scroll-countdown__hint {
  display: none;
}

@media (max-width: 760px) {
  .hc-countdown {
    padding: 1.35rem .75rem 1.35rem !important;
  }

  .hc-countdown__copy {
    margin-bottom: .85rem;
  }

  .hc-scroll-countdown__clock {
    width: min(100%, 31rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .hc-scroll-countdown__unit {
    height: 180px;
  }
}

@media (max-width: 430px) {
  .hc-countdown {
    padding-top: 1.1rem !important;
    padding-bottom: 1.1rem !important;
  }

  .hc-scroll-countdown__clock {
    gap: 12px;
  }

  .hc-scroll-countdown__unit {
    height: 168px;
    border-radius: 16px;
  }

  .hc-scroll-countdown__unit::before {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-scroll-countdown__clock {
    transform: none !important;
    transition: none !important;
  }
}
