:root {
  --green-deep: #1c3a2c;
  --green-mid: #2f5340;
  --butter: #e6d39a;
  --stone: #8a918c;
  --mist: #e8ece8;
  --paper: #f4f6f3;
  --ink: #14261c;
  --scrim: rgba(12, 28, 20, 0.55);
  --font-display: "Source Serif 4", "Palatino Linotype", Palatino, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(230, 211, 154, 0.18), transparent 55%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 45%, #dde3dd 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
  background: #0c1c14;
}

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

.hero__fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.18);
  filter: blur(32px) saturate(1.05) brightness(0.45);
}

.hero__photo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  transform: translate(-50%, -50%);
  animation: hero-photo 1.4s var(--ease-out) both;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      180deg,
      rgba(12, 28, 20, 0.18) 0%,
      rgba(12, 28, 20, 0.1) 42%,
      var(--scrim) 78%,
      rgba(12, 28, 20, 0.82) 100%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto 0 0;
  padding: 4.5rem 1.5rem 3.25rem;
  animation: hero-rise 1.1s var(--ease-out) 0.15s both;
}

.hero__kicker {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--butter);
}

.hero__names {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.15rem, 6.5vw, 4.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  opacity: 0;
}

.hero__names.is-fitted {
  animation: name-fade 1s var(--ease-out) both;
}

@media (scripting: none) {
  .hero__names {
    opacity: 1;
  }
}

.hero__name {
  display: block;
  max-width: 100%;
}

.hero__name[data-fit="full"] {
  white-space: nowrap;
}

.hero__name[data-fit="given-surname"] .hero__given {
  white-space: nowrap;
}

.hero__name[data-fit="given-surname"] .hero__space {
  display: none;
}

.hero__name[data-fit="given-surname"] .hero__surname {
  display: block;
}

.hero__name[data-fit="words"] .hero__given {
  display: contents;
}

.hero__name[data-fit="words"] .hero__space {
  display: none;
}

.hero__name[data-fit="words"] .hero__word {
  display: block;
}

.hero__amp {
  display: block;
  margin: 0.35rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.55em;
  letter-spacing: 0.08em;
  color: var(--butter);
}

.hero__scroll {
  display: inline-block;
  margin-top: 1.75rem;
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 211, 154, 0.55);
  padding-bottom: 0.2rem;
  transition: color 0.25s ease, border-color 0.25s ease;
  animation: scroll-pulse 2.8s ease-in-out 1.6s infinite;
}

.hero__scroll:hover,
.hero__scroll:focus-visible {
  color: var(--butter);
  border-color: var(--butter);
  outline: none;
  animation: none;
}

.details {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  animation: section-in 1s var(--ease-out) both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

.details__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--green-deep);
  letter-spacing: -0.02em;
}

.details__lead {
  margin: 0 auto 2.25rem;
  max-width: 36rem;
  color: var(--green-mid);
  font-size: 1.05rem;
  line-height: 1.65;
}

.details__list {
  margin: 0;
  display: grid;
  gap: 1.35rem;
}

.details__list div {
  margin: 0;
}

.details__list dt {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.details__list dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--green-deep);
  text-wrap: balance;
}

.site-footer {
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--stone);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.site-footer p {
  margin: 0;
}

@keyframes hero-photo {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes name-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scroll-pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(0.35rem);
    opacity: 0.72;
  }
}

@keyframes section-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports not (animation-timeline: view()) {
  .details {
    animation: none;
  }
}

@media (min-width: 900px) {
  .hero {
    align-items: center;
  }

  .hero__content {
    margin-left: clamp(2rem, 8vw, 7rem);
    padding: 5rem 2rem;
  }

  .hero__scrim {
    background:
      linear-gradient(
        105deg,
        rgba(12, 28, 20, 0.78) 0%,
        rgba(12, 28, 20, 0.52) 34%,
        rgba(12, 28, 20, 0.18) 62%,
        rgba(12, 28, 20, 0.35) 100%
      );
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding: 3.5rem 1.15rem 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__photo,
  .hero__content,
  .hero__names.is-fitted,
  .hero__scroll,
  .details {
    animation: none !important;
  }

  .hero__names {
    opacity: 1;
  }
}
