:root {
  --ink: #12161c;
  --ink-soft: #3a4452;
  --mist: #d7e0e8;
  --fog: #9aadb8;
  --accent: #c47a3a;
  --wash-a: #1c2834;
  --wash-b: #2a3f48;
  --wash-c: #4a6570;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", Georgia, serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  color: var(--mist);
  font-family: var(--font-body);
  background: var(--wash-a);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.wash {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 70% 55% at 18% 28%, #3d5a63 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 82% 72%, #243540 0%, transparent 50%),
    linear-gradient(145deg, var(--wash-a) 0%, var(--wash-b) 48%, var(--wash-c) 100%);
  background-size: 120% 120%;
  animation: drift 22s ease-in-out infinite alternate;
}

.beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(215, 224, 232, 0.06) 48%,
    transparent 62%
  );
  background-size: 220% 100%;
  animation: sweep 14s ease-in-out infinite;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  max-width: 40rem;
}

.brand {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 11vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #f2f5f7;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--mist);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--fog);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.contact {
  width: fit-content;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding-bottom: 0.15rem;
  transition: color 0.25s ease, border-color 0.25s ease;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

.contact:hover,
.contact:focus-visible {
  color: #e09a58;
  border-color: #e09a58;
  outline: none;
}

.meter {
  margin-top: 2.75rem;
  width: min(14rem, 55vw);
  height: 2px;
  background: color-mix(in srgb, var(--mist) 18%, transparent);
  overflow: hidden;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

.meter-fill {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--accent);
  animation: crawl 2.8s ease-in-out infinite;
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
  }
  to {
    transform: translate3d(2%, 1.5%, 0) scale(1.08);
  }
}

@keyframes sweep {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes crawl {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wash,
  .beam,
  .meter-fill,
  .brand,
  .headline,
  .lede,
  .contact,
  .meter {
    animation: none;
  }
}
