/* Home hero: the beige top strip, and under it the clips, edge to edge, down to the end of the
   screen. Centred headline over them, slide ticks along the bottom. The shade over the clips is a
   warm dark brown, not black. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-block-start: var(--nav-h);
  min-block-size: calc(100vh - var(--nav-h)); min-block-size: calc(100svh - var(--nav-h));
  display: grid; grid-template-rows: 1fr auto;
}
.hero__media, .hero__shade { position: absolute; inset: 0; z-index: -1; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slide.on { opacity: 1; }
.hero__slide img, .hero__slide video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.hero__slide img { transform: scale(1.06); transition: transform 9s linear; }
.hero__slide.on img { transform: scale(1); }
.hero__shade {
  background:
    radial-gradient(ellipse 80% 62% at 50% 52%, rgba(34, 25, 18, .5), rgba(34, 25, 18, .16) 70%, transparent),
    linear-gradient(to bottom, rgba(34, 25, 18, .34), rgba(34, 25, 18, .1) 30%, rgba(34, 25, 18, .2) 60%, rgba(34, 25, 18, .7));
}

.hero__in {
  align-self: center; display: grid; justify-items: center; text-align: center;
  padding-block: clamp(36px, 7vh, 88px);
}
.hero__label { color: var(--on-night-muted); letter-spacing: .16em; margin-block-end: clamp(18px, 3vh, 30px); }
.hero__title { max-inline-size: 15ch; text-shadow: 0 1px 40px rgba(34, 25, 18, .32); }
.hero__lead { max-inline-size: 44ch; margin-block-start: clamp(18px, 3vh, 30px); font-size: var(--fs-lead); line-height: 1.7; color: rgba(247, 242, 232, .88); text-wrap: balance; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; margin-block-start: clamp(28px, 4.5vh, 48px); }

/* entrance */
.hero__label, .hero__title, .hero__lead, .hero__cta { animation: heroIn 1.4s var(--ease) both; }
.hero__title { animation-delay: .12s; }
.hero__lead { animation-delay: .26s; }
.hero__cta { animation-delay: .4s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero__foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 24px;
  padding-block: 20px 26px; color: var(--on-night-muted); font-size: var(--fs-label); line-height: 1.4;
}
.hero__caption { justify-self: start; letter-spacing: .04em; }
.hero__ticks { display: flex; gap: 10px; }
.hero__tick { inline-size: clamp(34px, 5vw, 64px); block-size: 28px; position: relative; }
.hero__tick::before, .hero__tick i { content: ''; position: absolute; inset-inline: 0; inset-block-start: 50%; block-size: 1px; background: rgba(247, 242, 232, .36); }
.hero__tick i { background: var(--on-media); block-size: 2px; margin-block-start: -.5px; transform: scaleX(0); }
[dir="rtl"] .hero__tick i { transform-origin: right center; }
[dir="ltr"] .hero__tick i { transform-origin: left center; }
.hero__tick.done i { transform: scaleX(1); }
.hero__tick.on i { animation: heroTick var(--hero-dur, 6500ms) linear forwards; }
@keyframes heroTick { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__scroll { justify-self: end; display: inline-flex; align-items: center; gap: 12px; letter-spacing: .08em; }
.hero__scroll i { inline-size: 1px; block-size: 32px; background: linear-gradient(to bottom, var(--on-media) 50%, rgba(247, 242, 232, .25) 50%); background-size: 100% 200%; animation: heroScroll 2.2s var(--slow) infinite; }
@keyframes heroScroll { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

@media (max-width: 700px) {
  .hero__foot { grid-template-columns: 1fr; justify-items: center; row-gap: 6px; padding-block: 12px 20px; }
  .hero__caption { justify-self: center; }
  .hero__scroll { display: none; }
  .hero__cta { flex-direction: column; gap: 14px; }
}
