/* Apple-inspired contained home stage, using the existing work system below. */

html.home-horizontal-slider,
html.home-horizontal-slider body {
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
  overscroll-behavior-y: auto;
}

html.home-horizontal-slider .site-shell--home,
html.home-horizontal-slider .site-shell--home main {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  background: #000;
}

html.home-horizontal-slider .site-shell--home .home-header {
  min-height: 52px;
  padding-top: 15px;
  padding-bottom: 15px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.home-horizontal-slider .site-shell--home .home-header::before {
  opacity: 0;
  background: transparent;
  box-shadow: none;
}

html.home-horizontal-slider .site-shell--home main {
  padding-top: 0;
}

html.home-horizontal-slider .site-shell--home .hero-slider {
  position: relative !important;
  top: auto !important;
  width: 100%;
  height: 76svh !important;
  min-height: 540px !important;
  max-height: 820px;
  overflow: hidden;
  background: #000;
  perspective: none;
}

html.home-horizontal-slider .site-shell--home .hero-slider__slides,
html.home-horizontal-slider .site-shell--home .hero-slide {
  height: 100% !important;
  min-height: 0 !important;
}

html.home-horizontal-slider .site-shell--home .hero-slide__media,
html.home-horizontal-slider
  .site-shell--home
  .hero-slide.is-active
  .hero-slide__media {
  inset: 0;
  width: 100%;
  height: 100%;
  scale: 1 !important;
  filter: saturate(1.06) brightness(1.02) contrast(1.01) !important;
}

html.home-horizontal-slider .site-shell--home .hero-slide::after {
  z-index: 4;
  opacity: 1 !important;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0) 66%,
    rgba(0, 0, 0, 0.72) 84%,
    #000 100%
  );
  pointer-events: none;
}

html.home-horizontal-slider .site-shell--home .hero-slide__overlay {
  display: none !important;
}

html.home-horizontal-slider .site-shell--home .hero-agency-panel {
  top: 79% !important;
  left: 50% !important;
  width: min(1080px, calc(100vw - 112px)) !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: auto;
}

html.home-horizontal-slider .site-shell--home .hero-agency-panel__line {
  font-size: clamp(4.25rem, 6.4vw, 6.85rem) !important;
}

html.home-horizontal-slider
  .site-shell--home
  .hero-agency-panel__subtitle {
  font-size: clamp(1.2rem, 1.55vw, 1.45rem);
}

html.home-horizontal-slider .site-shell--home .hero-slide__dots--fixed {
  position: absolute;
  right: auto;
  bottom: 8px;
  left: 50%;
  z-index: 14;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  transform: translateX(-50%);
}

@media (min-width: 721px) {
  html.home-horizontal-slider .site-shell--home .hero-slider {
    isolation: auto !important;
  }

  html.home-horizontal-slider .site-shell--home .hero-agency-panel {
    top: calc(79% - 20px) !important;
  }

  html.home-horizontal-slider .site-shell--home .hero-slider__playback {
    top: calc(79% + 60px);
    right: calc(var(--work-rail-pad) - 24px);
  }

  html.home-horizontal-slider
    .site-shell--home
    .hero-slide__dots--fixed {
    bottom: -24px !important;
  }

  html.home-horizontal-slider
    .site-shell--home
    .hero-agency-panel__links
    a,
  .home-work-cta__link {
    min-height: 40px !important;
    padding-right: 22px !important;
    padding-left: 22px !important;
    border-radius: 4px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.075em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
  }
}

html.home-horizontal-slider .site-shell--home .hero-slide__dot {
  display: grid;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  place-items: center;
  cursor: pointer;
}

html.home-horizontal-slider .site-shell--home .hero-slide__dot::before {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: none;
  transform: translate(-50%, -50%);
  transition:
    width 240ms ease,
    background-color 240ms ease;
}

html.home-horizontal-slider
  .site-shell--home
  .hero-slide__dot:hover::before,
html.home-horizontal-slider
  .site-shell--home
  .hero-slide__dot:focus-visible::before {
  background: rgba(255, 255, 255, 0.7);
}

html.home-horizontal-slider
  .site-shell--home
  .hero-slide__dot--active::before {
  width: 20px;
  background: #fff;
}

html.home-horizontal-slider
  .site-shell--home
  .hero-slide__dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.94);
  outline-offset: 1px;
}

.hero-slider__playback {
  position: absolute;
  top: calc(62.25svh + 24px);
  right: var(--work-rail-pad);
  bottom: auto;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
}

html.home-horizontal-slider
  .site-shell--home
  .hero-slider__playback
  .home-sound-toggle {
  --mp-media-transparent-control-size: 43px;
  --mp-media-control-size: 43px;
  width: 43px !important;
  min-width: 43px !important;
  height: 43px !important;
  min-height: 43px !important;
  margin: 0;
  padding: 0 !important;
  color: #fff;
  font-size: 0 !important;
  opacity: 1;
  pointer-events: auto;
}

html.home-horizontal-slider
  .site-shell--home
  .hero-slider__playback
  .home-sound-toggle::before {
  content: none !important;
}

html.home-horizontal-slider
  .site-shell--home
  .hero-slider__playback
  .home-play-toggle {
  --mp-media-transparent-control-size: 43px;
  --mp-media-control-size: 43px;
  width: 43px !important;
  min-width: 43px !important;
  height: 43px !important;
  min-height: 43px !important;
  margin: 0;
}

.home-work-preview {
  --work-rail-pad: clamp(24px, 4.45vw, 64px);
  --work-rail-gap: clamp(9px, 0.8vw, 12px);
  --work-card-radius: 7px;
  --work-stream-red: #e50914;
  --work-card-width: calc(
    (100vw - (var(--work-rail-pad) * 2) - (var(--work-rail-gap) * 4)) / 5
  );
  position: relative;
  z-index: 5;
  margin-top: -48px;
  padding-top: 0;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 220px,
    rgba(0, 0, 0, 0.008) 360px,
    #000 560px
  );
  color: #fff;
}

@media (min-width: 721px) {
  html.home-horizontal-slider .site-shell--home .hero-slider,
  html.home-horizontal-slider .site-shell--home .hero-slider__slides,
  html.home-horizontal-slider .site-shell--home .hero-slide {
    overflow: visible !important;
  }

  html.home-horizontal-slider .site-shell--home .hero-slide__media,
  html.home-horizontal-slider
    .site-shell--home
    .hero-slide.is-active
    .hero-slide__media {
    inset: 0 0 auto;
    height: calc(100% + clamp(48px, 4.5vw, 72px));
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 84%,
      rgba(0, 0, 0, 0.82) 90%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 84%,
      rgba(0, 0, 0, 0.82) 90%,
      transparent 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  html.home-horizontal-slider .site-shell--home .hero-slide::after {
    inset: 0 0 auto;
    height: calc(100% + clamp(48px, 4.5vw, 72px) + 24px);
  }
}

.home-work-preview__catalog {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(90px, 9vw, 140px);
}

.home-work-cta {
  display: grid;
  justify-items: center;
  margin: 0 var(--work-rail-pad);
  padding: clamp(86px, 9vw, 142px) 24px clamp(96px, 10vw, 156px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.home-work-cta__eyebrow {
  margin: 0 0 18px;
  color: #e50914;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Helvetica Neue Condensed Black", sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-work-cta__title {
  max-width: 12ch;
  margin: 0;
  color: #f5f5f2;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Helvetica Neue Condensed Black", sans-serif;
  font-size: clamp(3rem, 5.4vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-wrap: balance;
  text-transform: uppercase;
}

.home-work-cta__copy {
  max-width: 38rem;
  margin: 24px 0 0;
  color: rgba(245, 245, 242, 0.62);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.5;
  text-wrap: balance;
}

.home-work-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.home-work-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 0;
  padding: 0 19px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: #fff;
  color: #050505 !important;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease;
}

.home-work-cta__link--secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #f5f5f2 !important;
}

.home-work-cta__link:hover,
.home-work-cta__link:focus-visible {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}

.home-work-cta__link--secondary:hover,
.home-work-cta__link--secondary:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.home-work-cta__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.home-work-preview .work-chart-achievements {
  gap: clamp(24px, 2.4vw, 36px);
  margin-top: 0;
  padding:
    clamp(88px, 6.67vw, 104px)
    var(--work-rail-pad)
    clamp(82px, 7vw, 112px);
  background:
    linear-gradient(
      180deg,
      rgba(15, 15, 15, 0) 0,
      rgba(18, 18, 18, 0.34) 48px,
      rgba(24, 24, 24, 0.68) 110px,
      rgba(30, 30, 30, 0.92) 178px,
      #202020 220px,
      #202020 calc(100% - 260px),
      #141414 calc(100% - 152px),
      #070707 calc(100% - 68px),
      #000 100%
    );
}

.home-work-preview .work-chart-achievements__us {
  display: none;
}

.home-work-preview .work-rail {
  margin-top: 0;
}

.home-work-preview .work-rail + .work-rail {
  margin-top: clamp(40px, 4vw, 62px);
}

.home-work-preview .work-rail__card.placement-grid__item {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden;
  border: 0;
  border-radius: var(--work-card-radius) !important;
  background: #111 !important;
  opacity: 1 !important;
  filter: none !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms ease !important;
}

.home-work-preview .work-rail__card.placement-grid__item::before {
  z-index: 3;
  border-radius: inherit;
}

.home-work-preview .work-rail__card.placement-grid__item::after {
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    transparent 28%,
    rgba(0, 0, 0, 0.08) 52%,
    rgba(0, 0, 0, 0.78) 100%
  ) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055) !important;
}

.home-work-preview .work-rail__card .placement-grid__surface {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  opacity: 1 !important;
  transform: none !important;
}

.home-work-preview .work-rail__card .placement-grid__surface::before,
.home-work-preview .work-rail__card .placement-grid__poster,
.home-work-preview .work-rail__card .placement-grid__surface video {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  transform: scale(1.001) !important;
}

.home-work-preview .work-rail__card .placement-grid__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
}

.home-work-preview
  .work-rail__card.is-preview-playing
  .placement-grid__poster {
  opacity: 0;
}

.home-work-preview
  .work-rail__card
  .placement-grid__surface.is-video-ready
  video,
.home-work-preview .work-rail__card.is-preview-playing video {
  opacity: 1;
}

.home-work-preview .work-rail__card .placement-grid__overlay {
  position: absolute;
  right: 12px;
  bottom: 11px;
  left: 12px;
  z-index: 4;
  display: grid;
  gap: 4px;
  opacity: 1 !important;
  transform: none !important;
}

.home-work-preview .work-rail__card .placement-grid__overlay > span {
  color: var(--work-stream-red) !important;
  font-size: clamp(0.56rem, 0.54vw, 0.66rem) !important;
  font-weight: 700;
  letter-spacing: 0.11em !important;
  line-height: 1 !important;
  text-transform: uppercase;
}

.home-work-preview .work-rail__card .placement-grid__overlay > strong {
  overflow: hidden;
  color: #fff !important;
  font-size: clamp(0.88rem, 1vw, 1.08rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.025em !important;
  text-overflow: ellipsis;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.home-work-preview .work-rail__card-credit,
.home-work-preview .work-rail__card-details,
.home-work-preview .work-rail__preview-cue {
  display: none !important;
}

.home-work-preview .work-rail__card:hover,
.home-work-preview .work-rail__card:focus-visible {
  z-index: 3;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  transform: translate3d(0, -3px, 0) scale(1.018) !important;
}

.home-work-preview .work-rail__card:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 4px !important;
}

html.home-horizontal-slider .site-shell--home .site-footer--global {
  --footer-bg: #000;
  --footer-text: rgba(245, 245, 242, 0.62);
  --footer-heading: rgba(245, 245, 242, 0.42);
  --footer-link: rgba(245, 245, 242, 0.58);
  --footer-link-hover: #fff;
  --footer-line: rgba(245, 245, 242, 0.1);
  display: block !important;
}

@media (max-width: 720px) {
  html.home-horizontal-slider {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  html.home-horizontal-slider
    body:has(.site-shell--home):not(.mobile-nav-open) {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  html.home-horizontal-slider body:has(.site-shell--home):not(.mobile-nav-open) {
    overflow-y: visible !important;
  }

  html.home-horizontal-slider .site-shell--home,
  html.home-horizontal-slider .site-shell--home main {
    height: auto !important;
    min-height: 0 !important;
    overflow-y: visible !important;
    overscroll-behavior-y: auto !important;
  }

  html.home-horizontal-slider .site-shell--home .home-header {
    min-height: 60px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  html.home-horizontal-slider .site-shell--home main {
    padding-top: 0;
  }

  html.home-horizontal-slider .site-shell--home .hero-slider {
    height: 88svh !important;
    min-height: 0 !important;
    max-height: 850px;
    isolation: auto !important;
    overflow: hidden !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y pinch-zoom !important;
  }

  html.home-horizontal-slider .site-shell--home .hero-slider__slides,
  html.home-horizontal-slider .site-shell--home .hero-slide {
    height: 100% !important;
    min-height: 0 !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y pinch-zoom !important;
  }

  html.home-horizontal-slider .site-shell--home .hero-slide__media,
  html.home-horizontal-slider .site-shell--home .hero-slide__poster,
  html.home-horizontal-slider .site-shell--home .hero-slide__video {
    overscroll-behavior-y: auto !important;
    touch-action: pan-y pinch-zoom !important;
  }

  html.home-horizontal-slider .site-shell--home .hero-slide::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.06) 0%,
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0.28) 54%,
      #000 100%
    );
  }

  html.home-horizontal-slider .site-shell--home .hero-agency-panel {
    top: auto !important;
    right: var(--mp-mobile-page-gutter, 16px) !important;
    bottom: 60px !important;
    left: var(--mp-mobile-page-gutter, 16px) !important;
    width: auto !important;
    transform: none !important;
  }

  html.home-horizontal-slider .site-shell--home .hero-agency-panel__line {
    font-size: clamp(2.45rem, 12vw, 3.25rem) !important;
  }

  html.home-horizontal-slider
    .site-shell--home
    .hero-agency-panel__subtitle {
    font-size: 1rem;
  }

  .hero-slider__playback {
    top: auto;
    right: max(var(--work-rail-pad), env(safe-area-inset-right, 0px));
    bottom: 5px;
    z-index: 30;
    opacity: 1 !important;
    filter: none !important;
    transform: none;
  }

  html.home-horizontal-slider
    .site-shell--home
    .hero-slider__playback
    .home-play-toggle,
  html.home-horizontal-slider
    .site-shell--home
    .hero-slider__playback
    .home-sound-toggle {
    --mp-media-transparent-control-size: 39px;
    --mp-media-control-size: 39px;
    width: 39px !important;
    min-width: 39px !important;
    height: 39px !important;
    min-height: 39px !important;
  }

  html.home-horizontal-slider
    .site-shell--home
    .hero-slider__playback
    .home-play-toggle {
    --mp-media-transparent-control-size: 39px;
    --mp-media-control-size: 39px;
    width: 39px !important;
    min-width: 39px !important;
    height: 39px !important;
    min-height: 39px !important;
  }

  html.home-horizontal-slider .site-shell--home .hero-slide__dots--fixed {
    right: auto;
    bottom: 5px;
    left: 50%;
    z-index: 30;
    opacity: 1 !important;
    filter: none !important;
  }

  html.home-horizontal-slider .site-shell--home .hero-slide__dot {
    width: 22px;
    min-width: 22px;
    height: 28px;
    min-height: 28px;
  }

  html.home-horizontal-slider .site-shell--home .hero-slide__dot::before {
    width: 14px;
  }

  html.home-horizontal-slider
    .site-shell--home
    .hero-slide__dot--active::before {
    width: 18px;
  }

  .home-work-preview {
    --work-rail-pad: 20px;
    --work-rail-gap: 9px;
    --work-card-width: min(69vw, 284px);
    margin-top: -48px;
    padding-top: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 0.5) 34px,
      #000 78px
    );
  }

  .home-work-preview__catalog {
    padding-bottom: 76px;
  }

  .home-work-cta {
    margin: 0 20px;
    padding: 72px 0 82px;
  }

  .home-work-cta__eyebrow {
    margin-bottom: 14px;
    font-size: 0.64rem;
  }

  .home-work-cta__title {
    max-width: 10ch;
    font-size: clamp(2.55rem, 12vw, 3.55rem);
  }

  .home-work-cta__copy {
    max-width: 21rem;
    margin-top: 18px;
    font-size: 0.92rem;
  }

  .home-work-cta__link {
    min-height: var(--mp-compact-button-height);
    padding: 0 var(--mp-compact-button-padding);
    border-radius: 4px;
    font-size: var(--mp-compact-button-font-size);
    font-weight: 800;
    letter-spacing: 0.075em;
    line-height: 1;
    text-transform: uppercase;
  }

  .home-work-cta__actions {
    gap: 8px;
    margin-top: 25px;
  }

  html.home-horizontal-slider
    .site-shell--home
    .hero-agency-panel__links
    a {
    min-height: var(--mp-compact-button-height) !important;
    padding-right: var(--mp-compact-button-padding) !important;
    padding-left: var(--mp-compact-button-padding) !important;
    border-radius: 4px !important;
    font-size: var(--mp-compact-button-font-size) !important;
    font-weight: 800 !important;
    letter-spacing: 0.075em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
  }

  .home-work-preview .work-chart-achievements {
    padding:
      96px
      var(--work-rail-pad)
      72px;
  }

  .home-work-preview .work-chart-achievements__grid {
    width: calc(100% + var(--work-rail-pad));
    margin-right: calc(var(--work-rail-pad) * -1);
    padding: 4px var(--work-rail-pad) 10px 0;
  }

  .home-work-preview .work-rail {
    margin-top: 0;
  }

  .home-work-preview .work-rail + .work-rail {
    margin-top: 38px;
  }

  .home-work-preview .work-rail__header {
    padding-right: var(--work-rail-pad);
    padding-left: var(--work-rail-pad);
  }

  .home-work-preview .work-rail__nav {
    display: none;
  }

  .home-work-preview .work-rail__card .placement-grid__overlay {
    right: 10px;
    bottom: 9px;
    left: 10px;
  }

  html.home-horizontal-slider .site-shell--home .site-footer--global {
    display: block !important;
    padding: 54px var(--mp-mobile-page-gutter, 16px) max(30px, calc(env(safe-area-inset-bottom, 0px) + 26px)) !important;
  }

  html.home-horizontal-slider
    .site-shell--home
    .site-footer--global
    .site-footer__inner {
    width: 100%;
    max-width: none;
    gap: 30px;
  }

  html.home-horizontal-slider
    .site-shell--home
    .site-footer--global
    .site-footer__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 28px;
  }
}

@media (max-width: 380px) {
  html.home-horizontal-slider
    .site-shell--home
    .hero-agency-panel__line {
    font-size: 2.45rem !important;
  }
}

/* One subtitle scale across the Home hero and its closing work invitation. */
html.home-horizontal-slider
  .site-shell--home
  .hero-agency-panel__subtitle,
.home-work-cta__copy {
  font-size: var(--mp-component-subtitle-size) !important;
}

@media (prefers-reduced-motion: reduce) {
  html.home-horizontal-slider .site-shell--home .hero-slide__dot::before,
  .home-work-preview .work-rail__card {
    transition: none !important;
  }
}
