:root {
  --ink: #0c1412;
  --fog: #e7f0ea;
  --mist: #9bb5a8;
  --signal: #1f8a6e;
  --signal-deep: #0f5c49;
  --glow: rgba(31, 138, 110, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  color: var(--fog);
  font-family: var(--font-body);
  background: var(--ink);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 12% 18%, rgba(31, 138, 110, 0.28), transparent 55%),
    radial-gradient(900px 600px at 88% 72%, rgba(15, 92, 73, 0.35), transparent 50%),
    linear-gradient(165deg, #07110e 0%, #0c1412 45%, #13241e 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(231, 240, 234, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 240, 234, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.45;
}

@keyframes drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.04) translate(-1.2%, 1%); }
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  max-width: 52rem;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease 120ms, transform 700ms ease 120ms;
}

.lede {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--mist);
  max-width: 34rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease 220ms, transform 700ms ease 220ms;
}

.cta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease 320ms, transform 700ms ease 320ms;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.35rem;
  border-radius: 0.35rem;
  background: var(--signal);
  color: #f4fff9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 0 var(--glow);
  transition: background 180ms ease, box-shadow 280ms ease, transform 180ms ease;
}

.btn:hover {
  background: var(--signal-deep);
  box-shadow: 0 0 28px 2px var(--glow);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid #b7e6d4;
  outline-offset: 3px;
}

html.ready .brand,
html.ready h1,
html.ready .lede,
html.ready .cta {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .hero { padding-top: 18vh; justify-content: flex-start; }
}
