.site-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--color-primary-dark);
}

.site-shell > main {
  min-width: 0;
}

.site-header {
  position: absolute;
  z-index: var(--z-raised);
  inset: 0 0 auto;
  color: var(--color-surface);
}

.site-header__inner {
  min-height: clamp(4.75rem, 8vw, 6.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.site-logo,
.site-menu-link {
  color: inherit;
  text-decoration: none;
}

.site-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  width: clamp(9.5rem, 15vw, 12.5rem);
  height: auto;
}

.site-menu-link {
  min-height: var(--target-min);
  display: inline-flex;
  align-items: center;
  padding-inline: var(--space-2);
  font-size: var(--text-body-sm);
  font-weight: 650;
  letter-spacing: 0.035em;
}

.site-logo:hover,
.site-menu-link:hover {
  color: var(--color-sand-soft);
}

.site-header :focus-visible,
.hero :focus-visible {
  outline-color: var(--color-surface);
  box-shadow:
    0 0 0 0.2rem var(--color-primary-dark),
    0 0 0 0.38rem var(--color-surface);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: var(--color-surface);
  background: var(--color-primary-dark);
}
.hero__story-trigger{position:absolute;top:85%;left:0;width:1px;height:1px;pointer-events:none}

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

.hero__media {
  background: var(--color-primary-dark);
}

.hero__image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 56% center;
}

.hero__veil {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(20 28 24 / 54%) 0%, rgb(20 28 24 / 22%) 42%, transparent 67%),
    linear-gradient(0deg, rgb(20 28 24 / 30%) 0%, transparent 44%);
}

.hero__content {
  width: 100%;
  padding-block:
    clamp(9rem, 22vh, 14rem)
    clamp(7.5rem, 15vh, 10rem);
}

.hero__copy {
  width: min(100%, 54rem);
  display: grid;
  justify-items: start;
  gap: var(--space-6);
}

.hero__title {
  color: var(--color-surface);
  text-wrap: nowrap;
  text-shadow: 0 0.08em 0.7em rgb(20 28 24 / 16%);
}

.hero__description {
  max-width: 35rem;
  color: rgb(255 255 255 / 88%);
  text-wrap: balance;
}

.hero__action {
  margin-top: var(--space-2);
}

.hero__action .button {
  box-shadow: 0 0.4rem 1.6rem rgb(20 28 24 / 16%);
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: var(--space-8);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target-min);
  color: rgb(255 255 255 / 74%);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-label);
  text-decoration: none;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

.hero.is-entering .hero__image {
  opacity: 0;
}

.hero.is-entering .hero__title,
.hero.is-entering .hero__description,
.hero.is-entering .hero__action {
  opacity: 0;
}

.hero.is-entering .hero__title {
  animation: none;
  transform: translateX(-1.5rem);
}

.hero.is-ready .hero__image {
  opacity: 1;
  transition: opacity var(--duration-normal) ease;
}

.hero.is-ready .hero__title {
  animation: heading-reveal var(--duration-slow) var(--ease-standard) 120ms both;
}

.hero.is-ready .hero__description,
.hero.is-ready .hero__action {
  transform: translateY(0);
  opacity: 1;
  transition:
    opacity var(--duration-slow) var(--ease-standard),
    transform var(--duration-slow) var(--ease-standard);
}

.hero.is-ready .hero__description {
  transition-delay: 360ms;
}

.hero.is-ready .hero__action {
  transition-delay: 500ms;
}

.hero.is-entering .hero__description,
.hero.is-entering .hero__action {
  transform: translateY(var(--space-3));
}

.site-footer {
  min-height: var(--target-min);
  display: flex;
  align-items: center;
  background: var(--color-bg);
  color: var(--color-text-muted);
}

.site-footer__inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  font-size: var(--text-caption);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3) var(--space-5);
}

.site-footer__nav a {
  text-underline-offset: 0.25em;
}

@media (max-width: 63.99rem) {
  .hero__image {
    object-position: 60% center;
  }

  .hero__copy {
    width: min(100%, 45rem);
  }

  .hero__title {
    font-size: clamp(2.85rem, 7.4vw, 5.4rem);
  }
}

@media (max-width: 47.99rem) {
  .hero {
    min-height: 100svh;
    height: 100svh;
  }

  .hero__image {
    object-position: 78% center;
  }

  .hero__veil {
    background:
      linear-gradient(90deg, rgb(20 28 24 / 52%) 0%, rgb(20 28 24 / 15%) 78%, transparent),
      linear-gradient(0deg, rgb(20 28 24 / 62%) 0%, rgb(20 28 24 / 12%) 68%);
  }

  .hero__content {
    padding-block: 8rem 8.75rem;
  }

  .hero__copy {
    gap: var(--space-5);
  }

  .hero__title {
    font-size: clamp(2.55rem, 11.6vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  .hero__description {
    max-width: 29rem;
    font-size: clamp(1rem, 4.5vw, 1.2rem);
    line-height: 1.5;
  }

  .hero__action {
    width: 100%;
    margin-top: var(--space-1);
  }

  .hero__action .button {
    width: 100%;
  }

  .hero__scroll {
    right: auto;
    left: var(--gutter);
    bottom: var(--space-5);
    min-width: 44px;
  }

  .site-footer__inner,
  .site-footer__nav {
    justify-content: flex-start;
  }

  .site-footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 26.875rem) {
  .site-header__inner {
    min-height: 4.75rem;
  }

  .hero__image {
    object-position: 82% center;
  }

  .hero__title {
    /*
     * Keep the approved two-line lockup without letting the nowrap heading
     * establish a wider intrinsic grid track on narrow phones.
     */
    max-width: 100%;
    font-size: clamp(2.15rem, 9vw, 2.85rem);
  }

  .hero__scroll span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (max-height: 43rem) and (min-width: 48rem) {
  .hero__content {
    padding-block: 7rem 4.5rem;
  }

  .hero__copy {
    gap: var(--space-4);
  }

  .hero__scroll {
    bottom: var(--space-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-entering .hero__image,
  .hero.is-entering .hero__title,
  .hero.is-entering .hero__description,
  .hero.is-entering .hero__action {
    transform: none;
    opacity: 1;
  }

  .hero.is-ready .hero__image,
  .hero.is-ready .hero__title,
  .hero.is-ready .hero__description,
  .hero.is-ready .hero__action {
    animation: none;
    transition: none;
  }
}
