.home .hero-quote,
.home .inside-description {
  margin-bottom: 0;
}

/* Keep the garment tour in view until its native scroll distance is complete. */
.home-collection .circle-scroll {
  height: auto;
}

.home-collection .collection-showcase {
  --collection-bottom-reclaimed: 30px;
  position: relative;
  top: auto;
  height: clamp(570px, calc(100svh - var(--header-height)), 850px);
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(22px, 4vh, 45px) 4vw 28px;
  transition: none;
}

.home-collection .collection-showcase::before {
  animation: none;
}

@media (min-height: 541px) and (prefers-reduced-motion: no-preference) {
  .home:not(.motion-paused) .home-collection .circle-scroll {
    height: calc(100svh + var(--tour-distance, 0px));
  }

  .home:not(.motion-paused) .home-collection .circle-scroll > .collection-showcase {
    position: sticky;
    top: 0;
    height: 100svh;
  }
}

.home-collection .garment-tabs {
  grid-column: 1;
  margin: 0;
}

.home-collection .collection-showcase .product-view {
  grid-area: 2 / 1;
  min-height: 0;
}

.home-collection .circle-hint {
  bottom: -10px;
}

.home-collection .colour-block {
  grid-area: 3 / 1;
}

/* Apply the fade only where the existing intersection observer is available. */
@media (prefers-reduced-motion: no-preference) {
  .js body:not(.motion-paused) .home-collection .reveal-ready {
    transition: opacity 760ms cubic-bezier(.22, .61, .36, 1);
  }

  .js body:not(.motion-paused) .home-collection .reveal-ready:not(.in):not(:focus-within) {
    opacity: 0;
    pointer-events: none;
  }

  .js .home-collection .reveal-ready:focus-within {
    opacity: 1;
    transition: none;
  }
}

@media (max-width: 760px) {
  .home.mardava-tactile > header {
    justify-content: center;
  }

  .home.mardava-tactile > header nav a {
    padding-inline: clamp(4px, 1.35vw, 10px);
  }

  .home.mardava-tactile > header nav a[aria-current="page"]:not(:active) {
    translate: none;
  }

  .home.mardava-tactile .hero {
    height: auto;
    min-height: calc(100svh - var(--header-height));
    /* Offset the header so the whole screen, including the bottom controls, sets the midpoint. */
    padding-block: 0 var(--header-height);
  }

  .home.mardava-tactile .hero-content {
    margin-block: 0;
    padding-block: 0;
    text-align: center;
  }

  .home .hero-content > .eyebrow {
    margin-block-start: 0;
  }

  .home .hero h1 {
    /* Balance the trailing tracking on the wordmark. */
    padding-inline-start: .055em;
  }

  .home-collection .collection-showcase {
    height: clamp(555px, calc(100svh - var(--header-height)), 740px);
    padding: 24px 16px 30px;
  }

  .home-collection .garment-tabs {
    gap: clamp(12px, 4vw, 25px);
  }
}

@media (max-width: 760px) and (min-height: 541px) and (prefers-reduced-motion: no-preference) {
  .home:not(.motion-paused) .home-collection .circle-scroll > .collection-showcase {
    --collection-bottom-reclaimed: 0px;
    padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px));
  }
}
