/* Shared by the English and German homepages. */
.home-page {
  --home-space: clamp(32px, 5vw, 72px);
  --home-space-compact: clamp(24px, 3.5vw, 48px);
  --home-heading: clamp(2rem, 1.65rem + 2.4vw, 3.5rem);
}

.home-page > .section:not(.section--system) {
  padding-block: var(--home-space);
}

.home-page > .section:is(.home-cap, .home-discover, .home-materials, .home-signoff) {
  padding-block: var(--home-space-compact);
}

/* On continuous backgrounds the preceding section supplies the gap. */
.home-page > .section:not(.section--tint):not(.section--stage)
  + .section:not(.section--tint):not(.section--stage) {
  padding-block-start: 0;
}

.home-page .section .display-l {
  font-size: var(--home-heading);
}

.home-page .shead {
  gap: var(--space-4);
  margin-block-end: var(--home-space-compact);
}

.home-page .home-formats .shead {
  margin-block-end: var(--space-5);
}

.home-formats .formats--home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

@media (width < 760px) {
  .home-formats > .wrap {
    --wrap: 26rem;
  }
}

@media (min-width: 760px) {
  .home-formats .formats--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (hover: none) {
  .home-formats .fcard:hover,
  .home-formats .fcard:hover .fcard__img img {
    transform: none;
  }
}

.home-formulas .grid {
  row-gap: var(--home-space-compact);
}

.home-formulas .home-formulas__all--after {
  justify-self: start;
  margin-block-start: var(--home-space-compact);
}

.home-formulas .home-formulas__all--heading {
  display: none;
}

@media (600px <= width < 1024px) {
  .home-formulas .home-formulas__card--fourth {
    display: none;
  }
}

@media (min-width: 900px) {
  .home-formulas .home-formulas__all--heading {
    display: inline-flex;
  }

  .home-formulas .home-formulas__all--after {
    display: none;
  }
}

.home-page .section--system .stage {
  background: transparent;
}

.home-page .section--system .partstack {
  isolation: isolate;
}

.home-page .section--system .partstack__state {
  opacity: 0;
  transition: none;
}

.home-page .section--system .partstack:not([data-active]) [data-state="all"],
.home-page .section--system .partstack[data-active="bottle"] [data-state="bottle"],
.home-page .section--system .partstack[data-active="cap"] [data-state="cap"],
.home-page .section--system .partstack[data-active="refill"] [data-state="refill"] {
  opacity: 1;
}

@supports (mix-blend-mode: plus-lighter) {
  @media (prefers-reduced-motion: no-preference) {
    .home-page .section--system .partstack .partstack__state {
      mix-blend-mode: plus-lighter;
      transition: opacity .45s var(--ease);
    }
  }
}

.home-cap .capdemo {
  row-gap: var(--home-space-compact);
}

.home-cap .capdemo__stage--studio {
  width: min(100%, 360px);
  justify-self: center;
}

.home-cap .capdemo__stage--studio img {
  object-fit: contain;
}

.home-discover .night__in {
  padding-block: clamp(24px, 3vw, 42px);
  padding-inline: clamp(20px, 4.4vw, 60px);
  row-gap: 22px;
}

.home-discover__intro,
.home-materials__heading,
.home-materials__copy {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.home-discover__intro .eyebrow,
.home-materials__heading .eyebrow {
  margin: 0;
}

.home-discover .lead,
.home-materials .lead,
.home-discover .bs-guess__q {
  font-size: clamp(1rem, .92rem + .4vw, 1.125rem);
  line-height: 1.5;
}

.home-discover .btn,
.home-discover .bs-btn {
  min-height: 44px;
  padding-block: 10px;
}

.home-discover .bs-guess {
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.home-discover .bs-guess__q {
  max-width: 36ch;
}

.home-discover .bs-guess__num {
  font-size: clamp(4.5rem, 10vw, 7.25rem);
}

/* Keep the empty status available to assistive technology without reserving a row. */
.home-discover .bs-guess__verdict:empty {
  position: absolute;
}

.home-discover .bs-guess__actions:not(:has(> :not([hidden]))) {
  display: none;
}

.home-discover .bs-guess__bar {
  margin-block-start: 24px;
}

.home-discover__first-guess {
  position: absolute;
  inset-block-end: calc(100% + 6px);
  left: clamp(4rem, var(--x), calc(100% - 4rem));
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .75rem;
  color: var(--ink-muted);
}

.home-materials .grid-2 {
  align-items: center;
  row-gap: 14px;
}

.home-materials .btn-row {
  column-gap: 24px;
  row-gap: 8px;
}

.home-materials .link {
  text-decoration-color: color-mix(in srgb, currentColor 60%, transparent);
  text-underline-offset: .24em;
}

.home-materials .link:is(:hover, :focus-visible) {
  text-decoration-color: currentColor;
}

@media (width < 760px) {
  .home-discover .bs-guess {
    padding-block-start: 18px;
    border-block-start: 1px solid var(--line-strong);
  }
}

@media (min-width: 760px) {
  .home-discover .night__in,
  .home-materials .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }
}

.home-faq .grid-2 {
  row-gap: var(--home-space-compact);
}


@media (min-width: 600px) {
  .home-formulas .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-cap .capdemo__stage--studio {
    width: min(100%, clamp(360px, 52vw, 420px), 60svh);
  }
}

@media (min-width: 1024px) {
  .home-formulas .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}



@media (width < 900px) {
  .home-page > .section--system {
    padding-block: var(--home-space);
  }

  .home-page .section--system .split > .stack-5 > * + * {
    margin-top: 0;
  }
}


@media (600px <= width < 900px) {
  .home-page .section--system [data-parts-scope],
  .home-page .home-cap .capdemo {
    max-width: calc(440px + 2 * var(--gutter));
  }

  .home-page .section--system [data-parts-scope] > .stage {
    justify-self: center;
  }

  .home-page .section--system .bs-parts {
    max-width: none;
  }
}

@media (760px <= width < 900px) {
  .home-formats > .wrap {
    --wrap: 50rem;
  }

  .home-formats .fcard__body {
    padding: var(--space-4);
  }
}

@media (min-width: 900px) and (max-height: 740px) {
  .home-page .section--system .display-l {
    font-size: clamp(36px, 4vw, 52px);
  }
}
