/*
 * Home catalog — cinematic promise, clear pathways, proof, then contact.
 * The established hero media, work data, controls, and footer remain untouched.
 */

.site-shell--home {
  --home-text-primary: #f5f5f2;
  --home-text-secondary: rgba(245, 245, 242, 0.72);
  --home-text-tertiary: rgba(245, 245, 242, 0.58);
  --home-text-decorative: rgba(245, 245, 242, 0.46);
}

@media (min-width: 721px) {
  html.home-horizontal-slider .site-shell--home .hero-slider {
    height: 93svh !important;
    min-height: 660px !important;
    max-height: 900px;
  }
}

html.home-horizontal-slider .site-shell--home .hero-slide__media,
html.home-horizontal-slider .site-shell--home .hero-slide.is-active .hero-slide__media {
  filter: saturate(1.01) brightness(0.86) contrast(1.03) !important;
}

/* Safari gets one fixed decoder surface for the whole hero. It never moves
   between slides and has no native poster layer; the slide images cover it
   until a decoded frame is confirmed. */
html.home-horizontal-slider .site-shell--home .hero-slider__stage-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.012);
  transition: opacity 420ms ease, transform 900ms ease, visibility 0s linear 420ms;
  will-change: opacity, transform;
}

html.home-horizontal-slider .site-shell--home .hero-slider__stage-video.is-video-ready {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 420ms ease, transform 900ms ease, visibility 0s linear 0s;
}

html.home-horizontal-slider .site-shell--home .hero-slide {
  z-index: 1;
}

html.home-horizontal-slider .site-shell--home .hero-slide__media.is-video-ready {
  background: transparent !important;
}

/* The current home bundle predates the decoded-frame poster rule in site.css.
   Hide only the poster whose stable slide video has presented a frame. */
html.home-horizontal-slider
  .site-shell--home
  .hero-slide__media.is-video-ready
  .hero-slide__poster,
html.home-horizontal-slider
  .site-shell--home
  .hero-slide__poster.is-video-ready {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(1.02);
  transition:
    opacity 420ms ease,
    transform 900ms ease,
    visibility 0s linear 420ms;
}

html.home-horizontal-slider .site-shell--home .hero-slider::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  height: clamp(92px, 17%, 158px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 100%);
  pointer-events: none;
}

html.home-horizontal-slider .site-shell--home .hero-slide::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  height: 24%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.14) 34%,
    rgba(0, 0, 0, 0.66) 78%,
    #000 100%
  );
  pointer-events: none;
}

html.home-horizontal-slider .site-shell--home .hero-slide::after {
  inset: 0 !important;
  height: 100% !important;
  opacity: 1 !important;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 38%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 42%, rgba(0, 0, 0, 0.12)) !important;
}

@media (min-width: 721px) {
  html.home-horizontal-slider .site-shell--home .hero-slide::before {
    height: 50%;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.2) 28%,
      rgba(0, 0, 0, 0.7) 72%,
      #000 100%
    );
  }

  html.home-horizontal-slider .site-shell--home .hero-slide::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.08) 48%,
      rgba(0, 0, 0, 0.32) 68%,
      rgba(0, 0, 0, 0.78) 86%,
      #000 100%
    ) !important;
  }
}

.home-catalog {
  --home-catalog-gutter: clamp(24px, 4.45vw, 64px);
  position: relative;
  z-index: 7;
  margin-top: -26px;
  padding: clamp(52px, 5vw, 72px) 0 clamp(88px, 8vw, 132px);
  overflow: hidden;
  background: #000;
  color: #fff;
}

.home-catalog::before {
  content: "";
  position: absolute;
  top: -92px;
  right: 0;
  left: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 94%);
  pointer-events: none;
}

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

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

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

html.home-horizontal-slider
  .site-shell--home
  .hero-agency-panel__links
  a {
  min-height: 44px !important;
}

.home-catalog__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px clamp(24px, 4vw, 72px);
  align-items: end;
  padding: 0 var(--home-catalog-gutter);
}

.home-catalog__eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: #e50914;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-catalog__header h2 {
  margin: 0;
  color: var(--home-text-primary);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.9rem, 2.45vw, 2.6rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-transform: none;
  text-wrap: balance;
  white-space: nowrap;
}

.home-catalog__header > p:last-child {
  max-width: 24rem;
  margin: 0 0 4px;
  color: var(--home-text-secondary);
  font-size: clamp(0.92rem, 1.1vw, 1.08rem);
  font-weight: 450;
  letter-spacing: -0.012em;
  line-height: 1.45;
  text-align: right;
}

.home-catalog__rail {
  display: grid;
  grid-auto-columns: clamp(310px, 29vw, 440px);
  grid-auto-flow: column;
  gap: clamp(10px, 1vw, 16px);
  margin-top: clamp(34px, 4vw, 56px);
  padding: 4px var(--home-catalog-gutter) 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-padding-inline: var(--home-catalog-gutter);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.home-catalog__rail::-webkit-scrollbar {
  display: none;
}

.home-catalog-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: #151515;
  color: #fff;
  scroll-snap-align: start;
  isolation: isolate;
}

.home-catalog-card__visual {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.68fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
  background: #050505;
  transform: scale(1.002);
  transition: transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-catalog-card__tile {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #111;
}

.home-catalog-card__tile--primary {
  grid-row: 1 / 3;
}

.home-catalog-card__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02) brightness(0.88);
  transform: scale(1.015);
  transition:
    filter 620ms ease,
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-catalog-card--artists .home-catalog-card__tile img {
  object-position: center;
}

.home-catalog-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 28%, rgba(0, 0, 0, 0.76) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 62%);
  pointer-events: none;
}

.home-catalog-card__copy {
  position: absolute;
  right: clamp(18px, 2.2vw, 28px);
  bottom: clamp(18px, 2.2vw, 28px);
  left: clamp(18px, 2.2vw, 28px);
  z-index: 2;
  display: grid;
  gap: 6px;
}

.home-catalog-card__copy small {
  color: #e50914;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-catalog-card__copy strong {
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Helvetica Neue Condensed Black", sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.85rem);
  font-weight: 900;
  letter-spacing: -0.018em;
  line-height: 0.92;
  text-transform: uppercase;
}

.home-catalog-card__copy > span {
  color: var(--home-text-secondary);
  font-size: clamp(0.72rem, 0.8vw, 0.82rem);
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.home-catalog-card__copy .home-catalog-card__cta {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--home-text-primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.home-catalog-card__cta::after {
  content: "\2192";
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 0;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-catalog-card:hover .home-catalog-card__cta,
.home-catalog-card:focus-visible .home-catalog-card__cta {
  color: #fff;
}

.home-catalog-card:hover .home-catalog-card__cta::after,
.home-catalog-card:focus-visible .home-catalog-card__cta::after {
  transform: translateX(4px);
}

.home-catalog-card:hover .home-catalog-card__visual,
.home-catalog-card:focus-visible .home-catalog-card__visual {
  transform: scale(1.012);
}

.home-catalog-card:hover .home-catalog-card__tile img,
.home-catalog-card:focus-visible .home-catalog-card__tile img {
  filter: saturate(1) contrast(1.02) brightness(0.96);
  transform: scale(1.03);
}

.home-catalog-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.home-catalog + .home-work-preview {
  margin-top: 0;
  background: #000;
}

.home-work-preview .home-work-cta {
  padding: clamp(78px, 7vw, 108px) 24px clamp(88px, 8vw, 122px);
}

.home-work-preview .home-work-cta__title {
  font-size: clamp(3rem, 4.8vw, 5.2rem);
}

.home-work-preview .home-work-cta__copy {
  color: var(--home-text-secondary);
}

.home-work-preview .home-work-cta__link {
  min-height: 44px;
}

@media (min-width: 1200px) {
  .home-catalog__header,
  .home-catalog__rail {
    width: 100%;
    max-width: 1520px;
    margin-right: auto;
    margin-left: auto;
  }

  .home-catalog__rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: auto;
    grid-auto-flow: row;
    gap: 12px;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .home-catalog-card {
    min-width: 0;
    min-height: 280px;
    aspect-ratio: auto;
  }

  .home-catalog-card__visual {
    display: block;
  }

  .home-catalog-card__tile--primary {
    position: absolute;
    inset: 0;
  }

  .home-catalog-card__tile:not(.home-catalog-card__tile--primary) {
    display: none;
  }

  .home-catalog-card__copy strong {
    display: block;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(1.85rem, 2.15vw, 2.45rem);
    line-height: 0.94;
    overflow-wrap: normal;
    text-wrap: balance;
  }
}

@media (max-width: 720px) {
  html.home-horizontal-slider .site-shell--home .home-header__menu-icon {
    transform: scale(0.72);
    transform-origin: center;
  }

  html.home-horizontal-slider .site-shell--home .hero-slider {
    height: 88svh !important;
    min-height: 0 !important;
    max-height: 850px;
  }

  .home-catalog {
    --home-catalog-gutter: var(--mp-mobile-page-gutter, 16px);
    margin-top: 0;
    padding-top: 44px;
    padding-bottom: 84px;
  }

  html.home-horizontal-slider .site-shell--home .hero-slide__dots--fixed {
    right: auto;
    bottom: 24px !important;
    left: 50%;
    transform: translateX(-50%);
  }

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

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

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

  html.home-horizontal-slider
    .site-shell--home
    .hero-slider__playback {
    bottom: 60px;
  }

  html.home-horizontal-slider
    .site-shell--home
    .hero-slider__playback
    .home-sound-toggle,
  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-agency-panel__links
    a {
    min-height: 40px !important;
  }

  .home-catalog__header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-catalog__eyebrow {
    margin-bottom: 1px;
  }

  .home-catalog__header h2 {
    max-width: none;
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  .home-catalog__header > p:last-child {
    max-width: 20rem;
    margin: 0;
    font-size: 0.92rem;
    text-align: left;
  }

  .home-catalog__rail {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-columns: auto;
    grid-auto-flow: row;
    gap: 14px;
    margin-top: 30px;
    padding-right: var(--home-catalog-gutter);
    padding-left: var(--home-catalog-gutter);
    overflow-x: visible;
    overflow-y: visible;
    scroll-padding-inline: 0;
    scroll-snap-type: none;
  }

  .home-catalog-card {
    width: 100%;
    min-height: 0;
    border-radius: 7px;
    scroll-snap-align: none;
  }

  .home-catalog-card__copy {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .home-catalog-card__copy strong {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .home-catalog-card__copy > span {
    font-size: 0.7rem;
  }

  .home-catalog-card__copy .home-catalog-card__cta {
    margin-top: 4px;
    padding: 0;
    font-size: 0.66rem;
  }

  .home-work-preview .home-work-cta {
    padding: 66px 0 72px;
  }

  .home-work-preview .home-work-cta__title {
    font-size: clamp(2.5rem, 11vw, 3.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-catalog-card__visual,
  .home-catalog-card__tile img {
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.home-catalog-depth .home-work-preview .work-rail,
  html.home-catalog-depth .home-work-preview .work-chart-achievements {
    opacity: 0.001;
    transform: translate3d(0, 34px, 0) scale(0.992);
    transform-origin: 50% 0;
    transition:
      opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 920ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--home-work-reveal-delay, 0ms);
    will-change: transform, opacity;
  }

  html.home-catalog-depth .home-work-preview .is-home-work-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    will-change: auto;
  }
}

/* Existing work cards approach from depth, then settle flat in the catalog. */
html.home-catalog-depth .home-catalog__rail {
  perspective: 1350px;
  perspective-origin: 50% 36%;
  transform-style: preserve-3d;
}

html.home-catalog-depth .home-catalog-card {
  opacity: var(--home-card-depth-opacity, 1);
  transform:
    translate3d(
      0,
      var(--home-card-depth-y, 0),
      var(--home-card-depth-z, 0)
    )
    rotateX(var(--home-card-depth-pitch, 0deg))
    scale(var(--home-card-depth-scale, 1));
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

html.home-catalog-depth .home-catalog__eyebrow,
html.home-catalog-depth .home-catalog__header h2,
html.home-catalog-depth .home-catalog__header > p:last-child {
  opacity: var(--home-catalog-copy-opacity, 1);
  transform: translate3d(0, var(--home-catalog-copy-y, 0), 0);
  will-change: transform, opacity;
}

html.home-catalog-depth .home-catalog__header h2 {
  transform:
    translate3d(0, var(--home-catalog-copy-y, 0), 0)
    scale(var(--home-catalog-heading-scale, 1));
  transform-origin: 0 100%;
}

html.home-catalog-depth .home-catalog-card__visual {
  transform:
    scale(var(--home-card-media-scale, 1.002))
    translate3d(0, var(--home-card-media-y, 0), 0);
}

@media (max-width: 720px) {
  html.home-catalog-depth .home-catalog__rail {
    perspective: none;
    transform-style: flat;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  html.home-catalog-mobile-stack.home-catalog-depth .home-catalog-card {
    opacity: 0.001;
    transform: translate3d(0, 18px, 0);
    transform-style: flat;
    transition:
      opacity 480ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
  }

  html.home-catalog-mobile-stack.home-catalog-depth
    .home-catalog-card.is-home-catalog-card-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
  }

  html.home-catalog-mobile-stack.home-catalog-depth
    .home-catalog-card__visual {
    transform: scale(1.002);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.home-catalog-depth .home-catalog-card {
    opacity: 1;
    transform: none;
    will-change: auto;
  }

  html.home-catalog-depth .home-catalog__eyebrow,
  html.home-catalog-depth .home-catalog__header h2,
  html.home-catalog-depth .home-catalog__header > p:last-child,
  html.home-catalog-depth .home-catalog-card__visual {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}
