.skn-manifesto-section {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ffffff;
  /* Same stick as live. The extra padding is inside this box, so Our Why
     stays below the fold until about half a viewport more has scrolled.
     No second sticky element. Wheel and touch are not captured. */
  padding: 0 0 50vh !important;
  padding-bottom: 50dvh !important;
  margin: 0 !important;
}

/* Everything after the manifesto paints above it, so section three
   (and the rest of the page) slides over the held frame. */
.skn-manifesto-section ~ .shopify-section {
  position: relative;
  z-index: 2;
}

.skn-manifesto {
  position: relative;
  z-index: 2;
  background: #ffffff;
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.skn-manifesto__grid {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  justify-content: center;
  column-gap: clamp(16px, 3vw, 56px);
  box-sizing: border-box;
  padding: clamp(72px, 11vh, 120px) 0 0 clamp(16px, 2.4vw, 40px);
  background: #ffffff;
}

.skn-manifesto__media {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 1.15s cubic-bezier(0.22, 0.8, 0.24, 1),
    opacity 0.9s ease;
}

.skn-manifesto__media--bottle {
  transform: translate3d(-62vw, 0, 0);
  justify-self: start;
  align-self: end;
}

.skn-manifesto__media--face {
  transform: translate3d(62vw, 0, 0);
  justify-self: end;
  align-self: end;
}

.skn-manifesto.is-in .skn-manifesto__media {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.skn-manifesto__photo {
  display: block;
  height: min(78vh, 820px);
  height: min(78dvh, 820px);
  width: auto;
  max-width: 34vw;
  object-fit: contain;
  object-position: center center;
}

.skn-manifesto__media--bottle .skn-manifesto__photo {
  max-width: min(22vw, 280px);
}

.skn-manifesto__media--face .skn-manifesto__photo {
  max-width: min(38vw, 520px);
}

.skn-manifesto__copy {
  display: flex;
  justify-content: center;
  align-self: center;
  min-width: 0;
  z-index: 2;
}

.skn-manifesto__lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4.2vh, 52px);
  width: 100%;
  max-width: 34rem;
  text-align: center;
}

.skn-manifesto__line {
  margin: 0;
  font-family: var(--font-heading-family, "Playfair Display", Georgia, serif);
  font-style: normal;
  font-size: clamp(1.12rem, 1.65vw, 1.7rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.045em;
  color: #111111;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.skn-manifesto__line em {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-synthesis: none;
}

.skn-manifesto.is-in .skn-manifesto__line {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: calc(0.16s + var(--i, 0) * 0.11s);
}

h1.skn-manifesto__line,
h2.skn-manifesto__line {
  max-width: 16em;
  font-size: clamp(1.35rem, 2.15vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.05em;
  font-weight: 400;
}

.skn-manifesto__line.skn-manifesto__headline {
  max-width: 8.2em;
  margin-inline: auto;
  font-size: clamp(3.4rem, 6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 400;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
}

.skn-manifesto__benefits {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 28rem);
  margin-inline: auto;
}

.skn-manifesto__line.skn-manifesto__benefit {
  max-width: 24em;
  font-family: "Syne", var(--font-body-family, sans-serif);
  font-style: normal;
  font-size: clamp(0.72rem, 1.15vw, 0.84rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-align: center;
}

.skn-manifesto__benefit + .skn-manifesto__benefit::before {
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  margin: 0.7rem auto 0.75rem;
  border-radius: 50%;
  background: currentColor;
}

.skn-manifesto__benefit em {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.14em;
  letter-spacing: 0;
}

.skn-manifesto__line.skn-manifesto__tagline {
  max-width: 16em;
  margin-inline: auto;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: center;
}

.skn-manifesto__tagline::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 1px;
  margin: 0 auto 1.05rem;
  background: #111111;
}

/* The middle column is only the gap between the bottle and the wider face,
   so centring text there sits left of the page. Pin the copy to the
   section instead, which is the full page width. */
@media screen and (min-width: 990px) {
  .skn-manifesto__grid {
    position: relative;
  }

  /* The copy is taken out of the grid, so auto-placement would leave the
     face in the middle column and the last column-gap as a white strip.
     Pin the face to the last column so its right edge is the screen edge. */
  .skn-manifesto__media--bottle {
    grid-column: 1;
    grid-row: 1;
  }

  .skn-manifesto__media--face {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-right: 0;
  }

  .skn-manifesto__media--face .skn-manifesto__photo {
    object-fit: cover;
    object-position: right center;
  }

  .skn-manifesto__copy {
    position: absolute;
    left: 0;
    right: 0;
    top: clamp(72px, 11vh, 120px);
    bottom: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (max-width: 989px) {
  .skn-manifesto {
    min-height: 0;
    padding: 28px 0 48px;
  }

  .skn-manifesto__grid {
    min-height: 0;
    grid-template-columns: 1fr 1.35fr;
    grid-template-areas:
      "bottle face"
      "copy copy";
    column-gap: 12px;
    /* Short phones need the copy higher, so the gap under the photos
       can shrink. Tall phones keep the 28px gap. */
    row-gap: clamp(10px, 2.2dvh, 28px);
    padding: 0 0 0 20px;
  }

  .skn-manifesto__media--bottle {
    grid-area: bottle;
    justify-self: start;
    /* Just off the left edge. A 70vw start sits past the clip, so the
       desktop side-slide never appears on a phone. */
    transform: translate3d(calc(-100% - 28px), 0, 0);
  }

  .skn-manifesto__media--face {
    grid-area: face;
    justify-self: end;
    transform: translate3d(calc(100% + 28px), 0, 0);
  }

  .skn-manifesto__copy {
    grid-area: copy;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    justify-content: center;
    box-sizing: border-box;
    /* Grid padding keeps the bottle 20px in and the face flush right.
       Pull the copy back across that inset so its centre is the screen. */
    width: calc(100% + 20px);
    margin-left: -20px;
    padding: 4px 20px 0;
    text-align: center;
  }

  .skn-manifesto__lines {
    max-width: 36rem;
    gap: clamp(10px, 1.6dvh, 26px);
  }

  .skn-manifesto__photo {
    height: min(42vh, 340px);
    max-width: 46vw;
  }

  .skn-manifesto__media--bottle .skn-manifesto__photo,
  .skn-manifesto__media--face .skn-manifesto__photo {
    max-width: 46vw;
  }

  /* Cover was slicing off the nose and chin. Size the box to the
     photo's own ratio so the whole face shows, and keep that box
     against the right edge. */
  .skn-manifesto__media--face .skn-manifesto__photo {
    width: auto;
    height: auto;
    max-width: 46vw;
    max-height: min(42vh, 340px);
    aspect-ratio: 977 / 1600;
    object-fit: contain;
    /* A few percent left of the right edge, so the nose tip is not
       the pixel that gets clipped. The box still ends at the screen. */
    object-position: 94% center;
  }

  .skn-manifesto__line {
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
    line-height: 1.2;
  }

  h1.skn-manifesto__line,
  h2.skn-manifesto__line {
    font-size: clamp(1.25rem, 5vw, 1.6rem);
    max-width: none;
  }

  /* Same hierarchy, scaled down together so the block fits between
     the photos and GET MY HERO. dvh does the extra shrink on short
     screens (320 and 390x664). Desktop rules above are untouched. */
  .skn-manifesto__line.skn-manifesto__headline {
    max-width: 100%;
    font-size: clamp(1.8rem, min(10.6vw, 5.35dvh), 3.2rem);
    line-height: 0.96;
  }

  .skn-manifesto__line.skn-manifesto__benefit {
    max-width: 100%;
    font-size: clamp(0.7rem, min(3vw, 1.55dvh), 0.78rem);
    letter-spacing: 0.06em;
  }

  .skn-manifesto__line.skn-manifesto__tagline {
    max-width: 18em;
    font-size: clamp(0.9rem, min(3.9vw, 2.05dvh), 1.2rem);
  }

  .skn-manifesto__benefit + .skn-manifesto__benefit::before {
    margin-top: 0.32rem;
    margin-bottom: 0.34rem;
  }

  .skn-manifesto__tagline::before {
    margin-bottom: 0.55rem;
  }
}

/* Drop back to the start pose instantly, so the entrance can play again. */
.skn-manifesto.is-out .skn-manifesto__media,
.skn-manifesto.is-out .skn-manifesto__line {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .skn-manifesto__media,
  .skn-manifesto__line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
