:root {
  --blue: #2b5297;
  --blue-deep: #1a3568;
  --ink: #1c1f26;
  --muted: #5a6270;
  --bg: #e6e2de;
  --bg-soft: #f2eeeb;
  --white: #ffffff;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 75% 65% at 50% 45%,
    var(--bg-soft) 0%,
    var(--bg) 72%,
    #d6d2d1 100%
  );
}

.atmosphere__glow {
  display: none;
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(60, 55, 50, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 55, 50, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 15%, transparent 80%);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.hero__logo {
  display: block;
  width: min(88vw, 720px);
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition:
    opacity 1s var(--ease-out),
    transform 1.1s var(--ease-out);
}

.hero__tagline {
  max-width: 28ch;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--muted);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.9s var(--ease-out) 0.2s,
    transform 0.9s var(--ease-out) 0.2s;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
  padding: 0.85rem 1.75rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border: none;
  border-radius: 2px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--blue) 30%, transparent);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.85s var(--ease-out) 0.35s,
    transform 0.85s var(--ease-out) 0.35s,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.hero__cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--blue) 40%, transparent);
  transform: translateY(-1px);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

html.is-ready .hero__logo,
html.is-ready .hero__tagline,
html.is-ready .hero__cta {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(24px, -18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__glow,
  .hero__logo,
  .hero__tagline,
  .hero__cta {
    animation: none;
    transition: none;
  }

  html.is-ready .hero__logo,
  html.is-ready .hero__tagline,
  html.is-ready .hero__cta {
    opacity: 1;
    transform: none;
  }
}
