/* One motion language. Native scrolling; no scroll hijacking. */
:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.motion-heading .word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-top: 0.18em;
  margin-top: -0.18em;
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
  padding-right: 0.12em;
  margin-right: -0.12em;
  padding-left: 0.06em;
  margin-left: -0.06em;
}
.word-mask > span {
  display: block;
  transform: translateY(115%);
  transition: transform 0.85s var(--motion-ease);
  transition-delay: var(--word-delay, 0ms);
}
.heading-shown .word-mask > span {
  transform: none;
}
.masked-media {
  clip-path: inset(10% 0 10% 0);
  transition: clip-path 1.1s var(--motion-ease);
}
.masked-media.media-shown {
  clip-path: inset(0);
}
.project-art .editorial-media {
  transform: scale(1.06);
  transition: transform 1.2s var(--motion-ease);
}
.project-art.media-shown .editorial-media {
  transform: none;
}
.project-info {
  transition:
    opacity 0.8s 0.12s,
    translate 0.8s 0.12s var(--motion-ease);
}
.project:not(.visible) .project-info {
  opacity: 0;
  translate: 0 16px;
}
.cinematic-hero .hero-film {
  translate: 0 var(--hero-shift, 0px);
  scale: var(--hero-zoom, 1);
  transform-origin: 50% 30%;
}
.scene-pin {
  position: relative;
}
.problem-first,
.problem-second {
  display: block;
}
.system-lines p:first-child {
  translate: var(--system-shift, 0px) 0;
}
.system-lines p:last-child {
  translate: calc(var(--system-shift, 0px) * -0.25) 0;
}
.system-lines {
  overflow: hidden;
}
.offer-grid {
  grid-template-columns: 1fr 1fr;
}
.source-words span {
  translate: var(--input-x, 0px) var(--input-y, 0px);
  opacity: var(--input-opacity, 1);
}
.source-words {
  position: relative;
  padding-bottom: 30px;
}
.source-words:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(var(--source-progress, 1));
  transform-origin: left;
}
.stage-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition:
    opacity 0.85s var(--motion-ease),
    transform 1s var(--motion-ease);
  transform: scale(1.035);
}
.active-stage-image {
  opacity: 1 !important;
  transform: scale(1) !important;
}
.stage-progress {
  height: 1px;
  background: var(--line);
  margin-bottom: 35px;
  position: relative;
}
.stage-progress:after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(var(--process-progress, 0));
  transform-origin: left;
}
.difference-pin {
  position: relative;
  isolation: isolate;
  width: 100%;
}
.difference-pin > .film {
  position: absolute;
  inset: -110px -6vw;
  z-index: -2;
}
.difference-pin:after {
  content: "";
  position: absolute;
  inset: -110px -6vw;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #11170fe8, #11170f80);
}
.media-difference:after {
  display: none;
}
.resolving-layers {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.resolving-layers img {
  position: absolute;
  width: 35%;
  height: 70%;
  object-fit: cover;
  left: calc(10% + var(--layer) * 22%);
  top: 10%;
  opacity: calc((1 - var(--resolve, 0)) * 0.65);
  transform: translateY(
      calc((1 - var(--resolve, 0)) * (var(--layer) - 1) * 65px)
    )
    rotate(calc((1 - var(--resolve, 0)) * (var(--layer) - 1) * 9deg));
  clip-path: inset(calc(var(--resolve, 0) * 30%) 0);
}
.difference h2 > span {
  opacity: calc(1 - var(--resolve, 0) * 0.6);
}
.difference h2 > em {
  translate: calc((1 - var(--resolve, 0)) * 28px) 0;
}
nav a:not(.nav-cta) {
  transition: translate 0.6s var(--motion-ease);
}
nav a:hover {
  translate: 0 -2px;
}
.text-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.65s var(--motion-ease);
}
.text-link:hover {
  background-size: 100% 1px;
}
.page-leaving main {
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity 0.17s ease,
    transform 0.17s ease;
}
.motion-ready main {
  animation: page-arrive 0.6s var(--motion-ease) both;
}
@keyframes page-arrive {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 1000px) and (min-height: 760px) {
  .motion-desktop .statement {
    height: 165vh;
    padding-block: 0 !important;
    opacity: 1;
    transform: none;
  }
  .motion-desktop .scene-pin {
    position: sticky;
    top: 100px;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .motion-desktop .statement h2 {
    position: relative;
    min-height: 2.3em;
    margin-bottom: 0;
  }
  .motion-desktop .problem-first {
    opacity: calc(1 - var(--problem-out, 0));
    transform: translateY(calc(var(--problem-out, 0) * -45px));
    clip-path: inset(0 0 calc(var(--problem-out, 0) * 100%) 0);
  }
  .motion-desktop .problem-second {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 100%;
    opacity: var(--problem-in, 0);
    transform: translateY(calc((1 - var(--problem-in, 0)) * 45px));
  }
  .motion-desktop .statement .offset {
    margin-top: 20px;
  }
  .motion-desktop .statement .scene-pin {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    grid-template-rows: auto auto auto;
    column-gap: 6vw;
    align-content: center;
    justify-content: initial;
  }
  .motion-desktop .statement .eyebrow {
    grid-column: 1/-1;
  }
  .motion-desktop .statement h2 {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }
  .motion-desktop .statement .problem-media {
    grid-column: 2;
    grid-row: 2/4;
    align-self: center;
  }
  .motion-desktop .statement .offset {
    grid-column: 1;
    grid-row: 3;
    margin-left: 20%;
    align-self: start;
  }
  .motion-desktop .offer-grid {
    display: flex;
    gap: 32px;
  }
  .motion-desktop .offer-grid > a {
    min-width: 0;
    flex: var(--web-weight, 1);
  }
  .motion-desktop .offer-grid > a + a {
    flex: var(--social-weight, 1);
  }
  .motion-desktop .offer-media {
    height: 380px;
    aspect-ratio: auto;
  }
  .motion-desktop .offers .offer-title {
    font-size: clamp(55px, 6vw, 95px);
  }
  .motion-desktop .process {
    height: 300vh;
    padding-block: 0 !important;
  }
  .motion-desktop .process-pin {
    position: sticky;
    top: 110px;
    padding-top: 20px;
    min-height: calc(100vh - 110px);
  }
  .motion-desktop .process-pin > .eyebrow {
    margin-bottom: 35px;
  }
  .motion-desktop .process-visual {
    position: static;
  }
  .motion-desktop .process-visual .editorial-media {
    width: 120%;
    height: 40.8vh;
    aspect-ratio: auto;
    max-width: none;
    margin-top: 25px;
  }
  .motion-desktop .process-visual h2 {
    font-size: clamp(36px, 4vw, 60px);
  }
  .motion-desktop .process-visual .editorial-media > img:first-of-type {
    opacity: 0;
    transition: opacity 0.85s;
  }
  .motion-desktop .stage-list {
    position: relative;
    min-height: 400px;
  }
  .motion-desktop .process-row {
    position: absolute;
    inset: 70px 0 auto;
    border-top: 0;
    opacity: 0;
    transform: translateY(28px);
    pointer-events: none;
    transition:
      opacity 0.6s var(--motion-ease),
      transform 0.8s var(--motion-ease);
  }
  .motion-desktop .process-row.active-stage {
    opacity: 1;
    transform: none;
  }
  .motion-desktop .process-row > span {
    font-family: Georgia, serif;
    font-size: 90px;
    line-height: 1;
    color: var(--ink);
    padding-top: 0;
  }
  .motion-desktop .process-row h3 {
    font-size: clamp(30px, 3.2vw, 48px);
  }
  .motion-desktop .stage-list > p {
    position: absolute;
    top: 300px;
    left: 0;
  }
  .motion-desktop .difference {
    height: 175vh;
    min-height: 0;
    padding-block: 0 !important;
    display: block;
    overflow: clip;
    opacity: 1;
    transform: none;
  }
  .motion-desktop .difference-pin {
    position: sticky;
    top: 90px;
    height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .motion-desktop .difference-pin > .film,
  .motion-desktop .difference-pin:after {
    inset: 0 -6vw;
  }
  .motion-desktop .difference h2 {
    font-size: clamp(60px, 7.6vw, 114px);
  }
  .motion-desktop .difference-copy {
    margin-top: 35px;
  }
  .motion-desktop.home-page .selected .projects {
    display: block;
    margin-bottom: 20px;
  }
  .motion-desktop.home-page .selected .projects .project {
    position: sticky;
    top: 110px;
    background: var(--paper);
    margin: 0 0 22vh;
    width: 100%;
    max-width: none;
    padding: 0 0 22px;
    opacity: 1;
    transform: none;
    box-shadow: 0 -24px 36px var(--paper);
    isolation: isolate;
  }
  .motion-desktop.home-page .selected .projects .project:last-child {
    margin-bottom: 0;
  }
  .motion-desktop.home-page .selected .project-art {
    height: auto;
    aspect-ratio: 1024 / 409;
    transform: scale(var(--stack-scale, 1));
    filter: brightness(var(--stack-shade, 1));
    transform-origin: 50% 0;
    transition: clip-path 1.1s var(--motion-ease);
  }
  .motion-desktop.home-page .selected .project > p {
    max-width: 80%;
    margin-block: 6px;
  }
  .motion-desktop.home-page .selected .project-info {
    margin-top: 10px;
  }
  .motion-desktop.home-page .selected .project details[open] {
    background: var(--paper);
  }
}
@media (max-width: 999px), (max-height: 759px) {
  .offer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stage-image,
  .resolving-layers {
    display: none;
  }
  .stage-progress {
    display: none;
  }
  .source-words span {
    translate: 0 var(--input-y, 0px);
  }
  .difference-pin > .film,
  .difference-pin:after {
    inset: -75px -6vw;
  }
  .masked-media {
    clip-path: inset(5% 0);
    transition-duration: 0.65s;
  }
  .word-mask > span {
    transition-duration: 0.65s;
  }
  .problem-second {
    margin-top: 0.12em;
  }
}
@media (max-width: 800px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }
  .system-lines p:first-child,
  .system-lines p:last-child {
    translate: 0 0;
  }
  .difference-pin {
    padding-block: 15px;
  }
  .difference-copy {
    position: relative;
    z-index: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .word-mask > span {
    transform: none !important;
  }
  .masked-media {
    clip-path: none !important;
  }
  .source-words span {
    translate: none !important;
    opacity: 1 !important;
  }
  .source-words:after {
    transform: none;
  }
  .system-lines p {
    translate: none !important;
  }
  .cinematic-hero .hero-film {
    translate: none !important;
    scale: 1 !important;
  }
  .resolving-layers,
  .stage-image,
  .stage-progress {
    display: none;
  }
  .difference h2 > span {
    opacity: 1;
  }
  .difference h2 > em {
    translate: none;
  }
  .motion-ready main {
    animation: none;
  }
  .project-art .editorial-media {
    transform: none !important;
  }
}
@media (max-width: 800px) {
  .source-words span {
    translate: none;
  }
}
