:root {
  --ink: #1c2420;
  --ink-soft: rgba(28, 36, 32, 0.78);
  --paper: #f3f0e8;
  --sage: #5f7a66;
  --sage-deep: #3f5646;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Source Sans 3", "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);
  background: #2a322c;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(28, 36, 32, 0.72) 0%,
      rgba(28, 36, 32, 0.38) 38%,
      rgba(28, 36, 32, 0.08) 68%,
      rgba(28, 36, 32, 0.02) 100%
    ),
    linear-gradient(
      105deg,
      rgba(243, 240, 232, 0.18) 0%,
      transparent 42%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(36rem, calc(100% - 2.5rem));
  margin: 0 0 clamp(2.5rem, 8vh, 5rem) clamp(1.25rem, 5vw, 4rem);
  color: var(--paper);
}

.brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.15s;
}

.headline {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.35s;
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 26rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.45;
  color: rgba(243, 240, 232, 0.88);
  opacity: 0;
  animation: rise 0.9s ease forwards 0.5s;
}

.cta {
  display: inline-block;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(243, 240, 232, 0.45);
  padding-bottom: 0.15rem;
  transition: border-color 0.25s ease, color 0.25s ease;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.65s;
}

.cta:hover,
.cta:focus-visible {
  color: #fff;
  border-bottom-color: var(--sage);
  outline: none;
}

.links {
  margin: 1.4rem 0 0;
  font-size: 0.95rem;
}
.links a {
  color: rgba(243, 240, 232, 0.8);
  text-decoration: none;
}
.links a:hover { color: #fff; }

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

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.6%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__image,
  .brand,
  .headline,
  .lede,
  .cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero__image {
    object-position: 78% 40%;
  }

  .hero__content {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    width: auto;
  }
}
