/* Page-owned choreography. The installed ScrollCraft engine supplies --sc-p. */
.portrait {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.face-one {
  background-image: url("assets/my-day-city-v8.webp");
  background-position: 50% 25%;
}
.face-two {
  background-image: url("assets/lifestyle-male-v8.webp");
}
.face-three {
  background-image: url("assets/lifestyle-outdoor-v8.webp");
}
.face-four {
  background-image: url("assets/lifestyle-closeup-v8.webp");
}
.scene-lifestyle {
  background-image: url("assets/lifestyle-city-v8.webp");
  background-position: 50% 20%;
}
.face-eight {
  background-image: url("assets/my-day-breakfast-v8.webp");
  background-position: 50% 25%;
}

/* The default is a complete reading layout, also used without motion. */
.connection {
  background: var(--paper);
}
.connection-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-inline: auto;
  container-type: inline-size;
  overflow: clip;
}
.connection-frame {
  position: relative;
  container-type: inline-size;
  margin-inline: auto;
}
.connection-copy {
  position: relative;
  padding: 48px var(--gutter);
  z-index: 4;
  max-width: 1360px;
  margin-inline: auto;
}
.connection-copy h1,
.connection-copy h2 {
  font-size: clamp(40px, 6.4cqw, 88px);
  line-height: 1.04;
}
.connection-copy > p:last-child {
  max-width: 40ch;
  font-size: clamp(17px, 1.45cqw, 20px);
  line-height: 1.55;
  margin-top: 24px;
  color: var(--body);
}
.connection-copy .eyebrow {
  margin-bottom: 24px;
  color: var(--body);
}
.connection-art {
  position: relative;
  height: 48cqw;
  max-height: 600px;
  margin-inline: 0;
  overflow: clip;
  border-radius: 0;
}
.cast,
.chosen,
.partner,
.brand-cross,
.shared-scrim {
  display: none;
}
.shared-photo,
.shared-photo img {
  width: 100%;
  height: 100%;
}
.shared-photo img {
  object-fit: cover;
  object-position: 50% 75%;
}
.connection-bottom {
  position: relative;
  padding: 24px var(--gutter) 48px;
  z-index: 5;
}

/* Format gallery: one visual language, with the photograph carrying variety. */
.collaborations {
  container-type: inline-size;
  --rail-gutter: max(var(--gutter), calc((100cqw - 1280px) / 2));
  background: var(--soft);
}
.collaboration-stage {
  overflow: clip;
}
.gallery-heading {
  padding-block: 64px 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.gallery-heading h2 {
  font-size: clamp(34px, 3.6vw, 50px);
  max-width: 16ch;
}
.gallery-heading > p {
  max-width: 30ch;
  font-size: 17px;
  color: var(--body);
}
.collaboration-rail {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 var(--rail-gutter) 64px;
  padding-right: calc(var(--rail-gutter) + 100vw - 100cqw);
}
.collaboration-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-width: 0;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-image {
  position: relative;
  min-height: 360px;
}
.gallery-image > .portrait {
  position: absolute;
  inset: 0;
}
.gallery-copy {
  padding: 48px;
  align-self: center;
}
.gallery-copy .eyebrow {
  color: var(--brand-dark);
  margin-bottom: 24px;
}
.gallery-copy h3 {
  font-size: clamp(34px, 3.6vw, 50px);
  margin-bottom: 24px;
}
.gallery-copy > p:last-child {
  font-size: 19px;
  max-width: 34ch;
  color: var(--body);
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) and (min-height: 620px) {
  .motion-ready .connection {
    --select: clamp(0, calc((var(--sc-p, 0) - 0.1) / 0.21), 1);
    --merge: clamp(0, calc((var(--sc-p, 0) - 0.47) / 0.14), 1);
    --reveal: clamp(0, calc((var(--sc-p, 0) - 0.71) / 0.16), 1);
    --open-text: clamp(0, calc((0.19 - var(--sc-p, 0)) / 0.07), 1);
    --select-text: clamp(0, calc((var(--sc-p, 0) - 0.2) / 0.08), 1);
    --select-out: clamp(0, calc((0.76 - var(--sc-p, 0)) / 0.08), 1);
    --last-text: clamp(0, calc((var(--sc-p, 0) - 0.78) / 0.09), 1);
  }
  .motion-ready .connection-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 620px;
  }
  .motion-ready .connection-frame {
    width: min(100%, 1360px);
    height: 100%;
  }
  .motion-ready .connection-art {
    position: absolute;
    inset: 0;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
    overflow: visible;
  }
  .motion-ready .cast,
  .motion-ready .chosen,
  .motion-ready .partner,
  .motion-ready .brand-cross {
    display: block;
    position: absolute;
    overflow: hidden;
    will-change: transform;
  }
  .motion-ready .brand-cross {
    left: 53%;
    top: 24%;
    width: 43%;
    height: 53%;
    opacity: calc(0.42 * (1 - var(--reveal)));
    transform: rotate(calc(-12deg + var(--select) * 12deg));
    overflow: visible;
  }
  .brand-cross i {
    position: absolute;
    left: 42%;
    top: 0;
    width: 16%;
    height: 100%;
    background: var(--lavender);
    border-radius: 32px;
    transform: rotate(35deg);
  }
  .brand-cross i + i {
    background: #d19adb;
    transform: rotate(-35deg);
  }
  .motion-ready .cast {
    width: 14%;
    height: 22%;
    max-height: 210px;
    border-radius: 16px;
    opacity: calc(1 - var(--select));
    box-shadow: 0 8px 28px #0f122e0c;
    transform: translate(
        calc(var(--dx) * var(--select)),
        calc(var(--dy) * var(--select))
      )
      rotate(var(--rot));
  }
  .cast-a {
    left: 53%;
    top: 16%;
    --dx: -8cqw;
    --dy: -12vh;
    --rot: -8deg;
  }
  .cast-b {
    left: 82%;
    top: 12%;
    --dx: 8cqw;
    --dy: -14vh;
    --rot: 7deg;
  }
  .cast-c {
    left: 83%;
    top: 66%;
    --dx: 9cqw;
    --dy: 10vh;
    --rot: 5deg;
  }
  .motion-ready .chosen {
    left: 64%;
    top: 25%;
    width: 29%;
    height: 52%;
    max-height: 480px;
    z-index: 2;
    border-radius: 20px;
    opacity: calc(1 - var(--reveal));
    transform: translate(
        calc(-1cqw * var(--select) - 8cqw * var(--merge)),
        calc(-2vh * var(--select))
      )
      rotate(calc(-4deg + 4deg * var(--select)))
      scale(calc(1 + 0.08 * var(--select) - 0.24 * var(--merge)));
    box-shadow: 0 20px 48px #0f122e14;
  }
  .chosen > span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 12px 16px;
    background: var(--paper);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    opacity: calc(var(--select) * (1 - var(--merge)));
  }
  .motion-ready .partner {
    left: 82%;
    top: 31%;
    width: 24%;
    height: 44%;
    max-height: 400px;
    z-index: 2;
    border-radius: 20px;
    opacity: calc(var(--merge) * (1 - var(--reveal)));
    transform: translateX(calc(-8cqw * var(--merge)))
      rotate(calc(5deg * (1 - var(--merge)))) scale(0.9);
  }
  .motion-ready .shared-photo {
    position: absolute;
    inset: 0 calc((100cqw - 100vw) / 2);
    width: auto;
    height: auto;
    z-index: 3;
    border-radius: 0;
    overflow: hidden;
    opacity: var(--reveal);
    clip-path: inset(
      calc((1 - var(--reveal)) * 22%) calc((1 - var(--reveal)) * 30%) round
        calc((1 - var(--reveal)) * 20px)
    );
    transform: scale(calc(1.04 - var(--reveal) * 0.04));
  }
  .motion-ready .shared-photo img {
    object-position: 50% 75%;
  }
  .motion-ready .shared-scrim {
    display: block;
    position: absolute;
    inset: 0 calc((100cqw - 100vw) / 2);
    z-index: 3;
    border-radius: 0;
    background: linear-gradient(
      90deg,
      #fcfafcf7 0%,
      #fcfafce8 27%,
      #fcfafc00 65%
    );
    opacity: var(--reveal);
  }
  .motion-ready .connection-copy {
    position: absolute;
    left: var(--gutter);
    top: 46%;
    transform: translateY(-50%);
    padding: 0;
    width: 58%;
    pointer-events: none;
  }
  .motion-ready .opening-copy {
    opacity: var(--open-text);
  }
  .motion-ready .selection-copy {
    opacity: calc(var(--select-text) * var(--select-out));
  }
  .motion-ready .together-copy {
    opacity: var(--last-text);
  }
  .motion-ready .selection-copy h2,
  .motion-ready .together-copy h2 {
    font-size: clamp(38px, 5.3cqw, 72px);
  }
  .motion-ready .connection-bottom {
    position: absolute;
    left: var(--gutter);
    top: calc(46% + 192px);
    padding: 0;
  }
  .motion-ready .collaboration-stage {
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .motion-ready .gallery-heading {
    padding-block: 24px 36px;
  }
  .motion-ready .collaboration-rail {
    flex-direction: row;
    gap: 32px;
    width: max-content;
    padding-bottom: 40px;
  }
  .motion-ready .collaboration-card {
    flex: none;
    width: min(1180px, calc(100vw - var(--gutter) * 2));
    height: 60svh;
    max-height: 560px;
  }
  .motion-ready .gallery-image {
    min-height: 0;
  }
}

@media (max-width: 1000px) {
  .gallery-copy {
    padding: 32px;
  }
  .gallery-copy h3 {
    font-size: 34px;
  }
  .gallery-copy > p:last-child {
    font-size: 17px;
  }
  .gallery-heading > p {
    max-width: 26ch;
  }
}
@media (max-width: 760px) {
  .connection-copy {
    padding-block: 32px;
  }
  .connection-copy h1,
  .connection-copy h2 {
    font-size: clamp(36px, 10.7cqw, 60px);
  }
  .connection-copy > p:last-child {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 20px;
  }
  .connection-copy .eyebrow {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .connection-art {
    height: 70cqw;
  }
  .gallery-heading {
    display: block;
    padding-block: 40px 24px;
  }
  .gallery-heading h2 {
    font-size: 34px;
    max-width: 16ch;
  }
  .gallery-heading > p {
    font-size: 15px;
    max-width: 30ch;
    margin-top: 12px;
  }
  .collaboration-card {
    display: flex;
    flex-direction: column;
  }
  .gallery-image {
    height: 60vw;
    min-height: 0;
    flex-shrink: 0;
  }
  .gallery-copy {
    padding: 24px;
    align-self: stretch;
  }
  .gallery-copy .eyebrow {
    margin-bottom: 16px;
  }
  .gallery-copy h3 {
    font-size: 30px;
    margin-bottom: 16px;
  }
  .gallery-copy > p:last-child {
    font-size: 16px;
    line-height: 1.5;
  }
  @media (prefers-reduced-motion: no-preference) and (min-height: 620px) {
    .motion-ready .connection-stage {
      min-height: 0;
    }
    .motion-ready .connection-copy {
      top: 112px;
      width: calc(100% - var(--gutter) * 2);
      transform: none;
    }
    .motion-ready .selection-copy h2,
    .motion-ready .together-copy h2 {
      font-size: clamp(34px, 9.7cqw, 54px);
    }
    .motion-ready .brand-cross {
      left: 15%;
      top: 52%;
      width: 70%;
      height: 31%;
    }
    .motion-ready .cast {
      width: 23%;
      height: 19%;
      border-radius: 12px;
    }
    .cast-a {
      left: 5%;
      top: 59%;
    }
    .cast-b {
      left: 77%;
      top: 54%;
    }
    .motion-ready .cast-c {
      display: none;
    }
    .motion-ready .chosen {
      left: 40%;
      top: 54%;
      width: 42%;
      height: 31%;
      max-height: 260px;
      border-radius: 16px;
      transform: translateX(calc(-2cqw * var(--select) + 2cqw * var(--merge)))
        rotate(calc(-4deg + 4deg * var(--select)))
        scale(calc(1 + 0.04 * var(--select) - 0.18 * var(--merge)));
    }
    .chosen > span {
      left: 8px;
      right: 8px;
      bottom: 8px;
      padding: 8px;
      font-size: 14px;
    }
    .motion-ready .partner {
      left: 4%;
      top: 57%;
      width: 40%;
      height: 28%;
      max-height: 240px;
      border-radius: 16px;
      transform: translateX(calc(2cqw * var(--merge))) scale(0.92);
    }
    .motion-ready .shared-photo {
      inset: 43% calc((100cqw - 100vw) / 2) 13%;
      border-radius: 0;
    }
    .motion-ready .shared-photo img {
      object-position: 50% 70%;
    }
    .motion-ready .shared-scrim {
      inset: 39% calc((100cqw - 100vw) / 2) 13%;
      background: linear-gradient(180deg, var(--paper), #fcfafc00 28%);
      border-radius: 0;
    }
    .motion-ready .connection-bottom {
      top: auto;
      bottom: 24px;
      right: var(--gutter);
    }
    .connection-bottom .button {
      width: 100%;
    }
    .motion-ready .gallery-heading {
      padding-block: 20px 24px;
    }
    .motion-ready .collaboration-rail {
      gap: 20px;
      padding-bottom: 24px;
    }
    .motion-ready .collaboration-card {
      height: 70svh;
      max-height: 640px;
    }
    .motion-ready .gallery-image {
      height: 29svh;
    }
  }
}
@media (max-height: 700px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .gallery-heading {
    padding-block: 16px 20px;
  }
  .motion-ready .gallery-copy {
    padding: 20px;
  }
  .motion-ready .gallery-copy h3 {
    font-size: 28px;
    margin-bottom: 12px;
  }
  .motion-ready .gallery-copy .eyebrow {
    margin-bottom: 12px;
  }
  .motion-ready .gallery-copy > p:last-child {
    font-size: 16px;
    line-height: 1.4;
  }
  .motion-ready .gallery-heading > p {
    display: none;
  }
  .motion-ready .collaboration-card {
    height: 72svh;
    max-height: none;
  }
  @media (max-width: 760px) {
    .motion-ready .connection-copy {
      top: 100px;
    }
    .motion-ready .opening-copy h1 {
      font-size: clamp(32px, 10.8cqw, 38px);
    }
    .motion-ready .chosen {
      top: 55%;
      height: 28%;
    }
    .motion-ready .partner {
      top: 56%;
      height: 27%;
    }
    .motion-ready .cast {
      height: 18%;
    }
    .motion-ready .gallery-image {
      height: 27svh;
    }
    .motion-ready .gallery-heading h2 {
      font-size: 30px;
    }
  }
}
/* Static modes release sticky travel instead of hiding later scenes. */
html:not(.motion-ready) .connection,
html:not(.motion-ready) .collaborations {
  height: auto !important;
  min-height: 0 !important;
}
html:not(.motion-ready) [data-sc-stage] {
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
html:not(.motion-ready) .connection-frame {
  display: flex;
  flex-direction: column;
}
html:not(.motion-ready) .opening-copy {
  order: -1;
}
html:not(.motion-ready) .selection-copy {
  padding-bottom: 0;
}
html:not(.motion-ready) .collaboration-rail {
  width: auto;
  flex-direction: column;
  transform: none !important;
}
html:not(.motion-ready) [data-sc-parallax] {
  transform: none !important;
}
