#tidyLogoIntro[hidden] { display: none; }

#tidyLogoIntro {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-content: center;
  justify-items: center;
  background: #f8f5f0;
  opacity: 1;
  transition: opacity 180ms ease;
  animation: tidy-intro-safety 1ms 5s forwards;
}

#tidyLogoIntro.is-finished {
  opacity: 0;
  pointer-events: none;
}

.tidy-intro-art {
  display: grid;
  justify-items: center;
  width: min(310px, 72vw);
  mix-blend-mode: darken;
}

.tidy-intro-globe,
.tidy-intro-wordmark {
  display: block;
  background-image: url("/assets/branding/tidy-planet-globe-20261117.jpeg");
  background-repeat: no-repeat;
  filter: brightness(1.045);
}

.tidy-intro-globe {
  width: 80%;
  aspect-ratio: 1.44;
  background-size: 184% auto;
  background-position: 52% 13%;
}

.tidy-intro-wordmark {
  width: 100%;
  aspect-ratio: 3.96;
  background-size: 139% auto;
  background-position: 51% 88%;
}

#tidyLogoIntro.is-playing .tidy-intro-globe {
  animation: tidy-globe-reveal 580ms cubic-bezier(.2,.7,.2,1) both;
}

#tidyLogoIntro.is-playing .tidy-intro-wordmark {
  animation: tidy-wordmark-reveal 360ms 180ms ease-out both;
}

#tidyLogoIntro button {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  min-width: 96px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #c5cec7;
  border-radius: 8px;
  background: transparent;
  color: #173126;
  font: 600 14px/1.2 system-ui, sans-serif;
  cursor: pointer;
}

#tidyLogoIntro button:focus-visible {
  outline: 3px solid #bf543b;
  outline-offset: 3px;
}

@keyframes tidy-globe-reveal {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tidy-wordmark-reveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tidy-intro-safety {
  to { visibility: hidden; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  #tidyLogoIntro { display: none !important; }
}
