/* Welcome screen refinements only */
.welcome-main {
  width: min(700px, calc(100vw - 48px));
  padding: 42px 0 24px;
}

.welcome-logo {
  --welcome-wordmark-width: clamp(215px, 21vw, 305px);
  --welcome-brand-axis: 49.5625%;
  width: 100%;
  margin-bottom: 24px;
  align-items: stretch;
}

/* Welcome to sits above the logo and is slightly larger. */
.welcome-to {
  order: -1;
  align-self: center;
  margin: 0 0 24px;
  color: #4c4943;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.02em;
  text-transform: none;
  opacity: 0;
  transform: translateY(-14px);
  animation: archagora-welcome-from-top .825s cubic-bezier(.2,.75,.18,1) .12s forwards;
}

/* Logo symbol keeps the original compact proportions. */
.welcome-mark {
  align-self: center;
  width: clamp(78px, 7vw, 108px);
  margin-bottom: 15px;
  opacity: 0;
  transform: scale(.72) rotate(-8deg);
  filter: blur(8px);
  animation: archagora-mark-arrive 1.5s cubic-bezier(.18,.78,.2,1) .675s forwards;
}

/* In the ARCHAGORA SVG, the fifth letter A occupies x=353..440.
   Its optical centre is x=396.5 of 800 = 49.5625%.
   That exact point is anchored to the centreline of the symbol. */
.welcome-wordmark {
  align-self: flex-start;
  width: var(--welcome-wordmark-width);
  margin-left: 50%;
  transform: translateX(calc(-1 * var(--welcome-brand-axis)));
  opacity: 0;
  clip-path: inset(0 50% 0 50%);
  animation: archagora-word-reveal 1.08s cubic-bezier(.2,.75,.18,1) 1.53s forwards;
}

/* Exact same outer width and brand axis as ARCHAGORA. */
.welcome-network {
  align-self: flex-start;
  display: block;
  width: var(--welcome-wordmark-width);
  height: auto;
  margin: 6px 0 0 50%;
  opacity: 0;
  transform: translateX(calc(-1 * var(--welcome-brand-axis))) translateY(7px);
  animation: archagora-network-arrive .72s ease 2.43s forwards;
}

.welcome-lower {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(54px);
  clip-path: inset(100% 0 0 0);
  animation: archagora-lower-rise 1.23s cubic-bezier(.2,.78,.18,1) 3.075s forwards;
}

.welcome-description {
  max-width: 510px;
  margin: 0 auto;
  color: var(--public-muted);
  font-size: 12px;
  line-height: 1.55;
}

.welcome-lower .welcome-actions {
  gap: 9px;
  margin-top: 22px;
  opacity: 1;
  transform: none;
  animation: none;
}

.welcome-actions .public-button {
  min-width: 108px;
  height: 36px;
  padding: 0 17px;
  font-size: 10px;
}

.welcome-lower .welcome-about {
  margin-top: 15px;
  font-size: 10px;
  opacity: 1;
  transform: none;
  animation: none;
}

.welcome-footer {
  min-height: 46px;
  padding-bottom: 18px;
}

.welcome-footer .public-socials {
  opacity: 0;
  transform: translateY(22px);
  animation: archagora-footer-rise .87s ease 3.675s forwards;
}

.welcome-footer .public-social-link {
  font-size: 9px;
}

.about-network-lockup span {
  font-family: "Avenir Next", Futura, "Century Gothic", Montserrat, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: .075em;
}

@keyframes archagora-welcome-from-top {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes archagora-network-arrive {
  to {
    opacity: 1;
    transform: translateX(calc(-1 * var(--welcome-brand-axis))) translateY(0);
  }
}

@keyframes archagora-lower-rise {
  0% { opacity: 0; transform: translateY(54px); clip-path: inset(100% 0 0 0); }
  100% { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
}

@keyframes archagora-footer-rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 620px) {
  .welcome-main {
    width: calc(100vw - 34px);
    padding-top: 30px;
  }

  .welcome-logo {
    --welcome-wordmark-width: 220px;
    margin-bottom: 23px;
  }

  .welcome-to { margin-bottom: 22px; font-size: 17px; }
  .welcome-mark { width: 82px; }

  .welcome-actions {
    width: 100%;
    flex-direction: column;
  }

  .welcome-actions .public-button {
    width: 100%;
    max-width: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-to,
  .welcome-mark,
  .welcome-wordmark,
  .welcome-network,
  .welcome-lower,
  .welcome-footer .public-socials {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    clip-path: none !important;
  }

  .welcome-to,
  .welcome-mark,
  .welcome-lower,
  .welcome-footer .public-socials {
    transform: none !important;
  }

  .welcome-wordmark,
  .welcome-network {
    transform: translateX(calc(-1 * var(--welcome-brand-axis))) !important;
  }
}
