/*
  Wadeyo launch countdown.
  The same palette, typefaces, radii and shadows as the Wadeyo website.
*/

:root {
  --ink: #0a1220;
  --ink-deep: #070e19;
  --ink-soft: #111c2e;
  --brand: #2350e0;
  --brand-700: #1a3cb0;
  --brand-400: #6e92f5;
  --brand-300: #b9ccf7;
  --paper: #f7f8fb;
  --line: rgba(255, 255, 255, 0.13);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, Cambria, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-deep);
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--brand);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: 20px;
}

.muted {
  color: rgba(255, 255, 255, 0.5);
}

/* ───────────────────────────── type ───────────────────────────── */

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.43;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-400);
}

.display {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.display--md {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

/* ───────────────────────────── hero ───────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
}

.hero__photo,
.hero__shade,
.hero__glow,
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* The shift is about to start: a team walking in towards the light. */
.hero__photo {
  background: url("images/shift-start.jpg") center 42% / cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate;
  transform-origin: 50% 45%;
}

.hero__shade {
  background:
    linear-gradient(to bottom, rgba(7, 14, 25, 0.82) 0%, rgba(7, 14, 25, 0.5) 30%, rgba(7, 14, 25, 0.72) 68%, var(--ink-deep) 100%),
    linear-gradient(to right, rgba(7, 14, 25, 0.55), rgba(7, 14, 25, 0.15) 50%, rgba(7, 14, 25, 0.55));
}

.hero__glow {
  background: radial-gradient(46% 38% at 50% 56%, rgba(35, 80, 224, 0.42) 0%, rgba(35, 80, 224, 0) 72%);
}

.hero__grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 50%, #000 0%, transparent 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.logo svg {
  width: 26px;
  height: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
}

.pill__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-400);
}

.pill__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-400);
  animation: ring 2.6s ease-out infinite;
}

.hero__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 48px 40px;
  text-align: center;
}

.hero__body .display {
  margin-top: 18px;
  text-shadow: 0 2px 30px rgba(7, 14, 25, 0.5);
}

.lede {
  max-width: 35rem;
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.56;
  color: rgba(255, 255, 255, 0.74);
  text-wrap: pretty;
}

.lede [data-launch="sentence"] {
  font-weight: 500;
  color: #fff;
}

/* ─────────────────────────── the clock ─────────────────────────── */

.clock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 54rem;
  margin-top: 40px;
}

.unit {
  position: relative;
  padding: 20px 4px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 15px -3px rgba(7, 14, 25, 0.35);
  overflow: hidden;
}

/* The fold across the middle of a flip-clock tile. */
.unit::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 46%;
  height: 1px;
  background: rgba(7, 14, 25, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.unit--lead {
  border-color: rgba(110, 146, 245, 0.55);
  background: linear-gradient(to bottom, rgba(35, 80, 224, 0.5), rgba(35, 80, 224, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 34px -12px rgba(35, 80, 224, 0.75);
}

.unit__value {
  font-family: var(--mono);
  font-size: clamp(2.375rem, 9.5vw, 6.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.unit__value.tick {
  animation: tick 0.5s var(--ease);
}

.unit__label {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.unit__label .wide {
  display: none;
}

/* ─────────────────────────── progress ─────────────────────────── */

.progress {
  width: 100%;
  max-width: 54rem;
  margin-top: 18px;
}

.progress__track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.progress__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(to right, var(--brand), var(--brand-400));
  transition: width 1.2s var(--ease);
}

.progress__ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.progress__ends [data-launch="day"] {
  color: rgba(255, 255, 255, 0.9);
}

/* ───────────────────────── facts and actions ───────────────────────── */

.facts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px 32px;
  margin-top: 30px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}

.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.facts svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--brand-400);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding-inline: 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(10, 18, 32, 0.05);
}

.btn--light:hover {
  background: #f3f6fe;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.scroll {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 28px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.scroll:hover {
  color: #fff;
}

.scroll svg {
  width: 15px;
  height: 15px;
  animation: nudge 2.4s ease-in-out infinite;
}

/* ───────────────────────── what arrives ───────────────────────── */

.arriving {
  padding-block: 72px 24px;
}

.intro {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.intro .display {
  margin-top: 16px;
}

.cards {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-soft);
  overflow: hidden;
}

.card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 14, 25, 0.1) 40%, rgba(17, 28, 46, 0.85) 100%);
}

.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.card:hover .card__photo img {
  transform: scale(1.04);
}

.card__num {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand-300);
}

.card__text {
  padding: 20px 20px 24px;
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  text-wrap: pretty;
}

/* The approved clock-in radius over the map. */
.fence {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 1;
  width: 44%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.fence__ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(110, 146, 245, 0.95);
  border-radius: 50%;
  background: rgba(35, 80, 224, 0.26);
  box-shadow: 0 0 0 1px rgba(7, 14, 25, 0.25);
}

.fence__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2.5px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(7, 14, 25, 0.5);
}

.fence__pin::after {
  content: "";
  position: absolute;
  inset: -2.5px;
  border-radius: 50%;
  background: var(--brand-400);
  animation: ring 2.6s ease-out infinite;
}

/* ───────────────────────── save the date ───────────────────────── */

.closing {
  padding-block: 48px 24px;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px;
  border-radius: var(--radius);
  background: var(--brand);
  text-align: center;
}

.panel__kicker {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.panel__date {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-variant-numeric: lining-nums tabular-nums;
}

.panel__line {
  max-width: 32rem;
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  text-wrap: pretty;
}

.panel .actions {
  width: auto;
}

/* ───────────────────────────── footer ───────────────────────────── */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-block: 28px 32px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.footer__slogan {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.social {
  display: flex;
  gap: 4px;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  transition:
    background-color 0.2s,
    color 0.2s;
}

.social a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.social svg {
  width: 18px;
  height: 18px;
}

/* ───────────────────────────── motion ───────────────────────────── */

.rise {
  animation: rise 0.8s var(--ease) both;
}

.rise:nth-child(2) { animation-delay: 0.08s; }
.rise:nth-child(3) { animation-delay: 0.16s; }
.clock.rise { animation-delay: 0.26s; }
.progress.rise { animation-delay: 0.34s; }
.facts.rise { animation-delay: 0.42s; }
.actions.rise { animation-delay: 0.5s; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards .reveal:nth-child(3) { transition-delay: 0.2s; }

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

@keyframes tick {
  from { opacity: 0.35; transform: translateY(-14%); }
  to { opacity: 1; transform: none; }
}

@keyframes ring {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

@keyframes drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

@keyframes nudge {
  0%, 100% { transform: none; }
  50% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}

/* ───────────────────────────── wider ───────────────────────────── */

@media (min-width: 481px) {
  .unit__label .wide { display: inline; }
  .unit__label .narrow { display: none; }
}

@media (min-width: 640px) {
  .wrap { padding-inline: 24px; }
  .topbar { padding-top: 32px; }
  .clock { gap: 16px; margin-top: 48px; }
  .unit { padding: 32px 8px 26px; }
  .unit__label { margin-top: 16px; font-size: 13px; }

  .facts { flex-direction: row; flex-wrap: wrap; justify-content: center; }

  .actions { flex-direction: row; justify-content: center; width: auto; }

  .cards { grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
  .arriving { padding-block: 96px 32px; }
  .panel { padding: 80px 40px; }

  .footer {
    flex-direction: row;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-block: 20px 24px;
  }
}

@media (min-width: 1024px) and (min-height: 800px) {
  .scroll { display: flex; }
}
