:root {
  --ink: #14352f;
  --ink-soft: #2a4f47;
  --foam: #f4f8f6;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

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

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

body {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 360;
  background: var(--foam);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: clip;
}

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

.atmosphere__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.06);
  animation: drift 28s ease-in-out infinite alternate;
  filter: saturate(0.92) contrast(1.02);
}

.atmosphere__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(244, 248, 246, 0.94) 0%,
      rgba(244, 248, 246, 0.82) 38%,
      rgba(231, 240, 236, 0.35) 62%,
      rgba(231, 240, 236, 0.18) 100%
    ),
    radial-gradient(
      120% 80% at 0% 100%,
      rgba(20, 53, 47, 0.08),
      transparent 55%
    );
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: multiply;
  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)' opacity='0.55'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(40rem, calc(100% - 3rem));
  margin: clamp(3.5rem, 12vh, 7rem) auto clamp(2rem, 6vh, 4rem) clamp(1.25rem, 6vw, 5rem);
  padding: 0;
}

.brand {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--ink);
}

.headline {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink-soft);
}

.lede {
  margin: 0;
  max-width: 38ch;
  font-size: clamp(1rem, 1.7vw, 1.125rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink-soft) 88%, white);
}

.foot {
  position: relative;
  z-index: 1;
  padding: 1.25rem clamp(1.25rem, 6vw, 5rem) 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}

.reveal {
  opacity: 0;
  transform: translateY(0.7rem);
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.4%, -0.8%, 0);
  }
}

@media (max-width: 720px) {
  .hero {
    margin-left: auto;
    margin-right: auto;
    width: min(36rem, calc(100% - 2rem));
  }

  .atmosphere__image {
    object-position: 60% center;
  }

  .atmosphere__wash {
    background:
      linear-gradient(
        180deg,
        rgba(244, 248, 246, 0.92) 0%,
        rgba(244, 248, 246, 0.78) 48%,
        rgba(231, 240, 236, 0.42) 100%
      );
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__image,
  .reveal {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
