:root {
  --ink: #0e1c18;
  --leaf: #14352c;
  --mist: #eef4ef;
  --citrus: #d6ff4b;
  --glow: rgba(214, 255, 75, 0.35);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

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

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

body {
  color: var(--mist);
  font-family: var(--font-body);
  background: var(--ink);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 4;
  opacity: 0.07;
  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");
}

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1.1rem, 3vw, 2.4rem);
  mix-blend-mode: difference;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

.top-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.top-link:hover {
  opacity: 1;
  border-bottom-color: currentColor;
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1.1rem, 3vw, 2.4rem) clamp(2rem, 5vh, 3.2rem);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(14, 28, 24, 0.88) 0%, rgba(20, 53, 44, 0.55) 42%, rgba(14, 28, 24, 0.35) 100%),
    linear-gradient(to top, rgba(14, 28, 24, 0.92) 0%, rgba(14, 28, 24, 0.2) 48%, transparent 72%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--citrus);
  opacity: 0;
  animation: rise 0.8s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.45;
  color: rgba(238, 244, 239, 0.88);
  opacity: 0;
  animation: rise 0.85s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cta-row {
  margin-top: 1.75rem;
  opacity: 0;
  animation: rise 0.85s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.45rem;
  border-radius: 0.35rem;
  background: var(--citrus);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 0 0 0 var(--glow);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--glow);
  background: #e5ff7a;
}

.cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

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

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

@media (max-width: 640px) {
  .top {
    mix-blend-mode: normal;
    background: linear-gradient(to bottom, rgba(14, 28, 24, 0.75), transparent);
  }

  .hero {
    align-items: end;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero-copy,
  .eyebrow,
  .lede,
  .cta-row {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
