/* Home banner: fits the screen height, no gaps or borders.
   Space around the banner uses the banner's own light-blue colour and
   fades into the white page below, so no hard lines appear anywhere. */
.hero.hero--banner,
body.premium-site .hero.hero--banner{
  background:linear-gradient(180deg,#fff7f2 0%,#fff7f1 55%,#ffffff 100%)!important;
  background-image:linear-gradient(180deg,#fff7f2 0%,#fff7f1 55%,#ffffff 100%)!important;
  padding:6px 0 60px!important;
  overflow:hidden;
}
.hero.hero--banner::before,.hero.hero--banner::after{display:none!important;content:none!important}

@media (min-width:1101px){
  .hero.hero--banner > .container{max-width:none;width:100%;padding-left:0;padding-right:0}
  .cn-banner-scroll{overflow:visible;margin-top:0;padding-top:12px}
  .cn-banner{
    /* banner is 3:1, so its width follows the height left on screen */
    width:min(100%, max(calc((100vh - 230px) * 2172 / 724), 960px));
    min-width:0;margin:0 auto;border-radius:0;
  }
  .cn-banner__img{
    border-radius:0;
    /* soft edges so the artwork melts into the background */
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 1.2%,#000 98.8%,transparent 100%),linear-gradient(180deg,transparent 0,#000 2%,#000 98%,transparent 100%);
    -webkit-mask-composite:source-in;
            mask-image:linear-gradient(90deg,transparent 0,#000 1.2%,#000 98.8%,transparent 100%),linear-gradient(180deg,transparent 0,#000 2%,#000 98%,transparent 100%);
            mask-composite:intersect;
  }
  .hero--banner .hero-actions{margin-top:14px}
}
/* tablet / phone: banner still scrolls sideways, without boxy edges */
@media (max-width:1100px){
  .hero.hero--banner{padding:10px 0 56px!important}
  .hero.hero--banner > .container{max-width:none;width:100%;padding-left:0;padding-right:0}
  .cn-banner-scroll{padding-top:12px;margin-top:0;scroll-snap-type:none}
  .cn-banner,.cn-banner__img{border-radius:0}
  .hero--banner .hero-actions{padding:0 16px}
}

/* ---- card hover: the card clearly comes UP out of the banner ---- */
.cn-card__pop{
  transform-origin:50% 100%;
  transition:transform .32s cubic-bezier(.2,.9,.25,1.25),box-shadow .3s ease,opacity .12s ease!important;
}
.cn-card:hover,.cn-card:focus-visible{z-index:20}
.cn-card:hover .cn-card__pop,
.cn-card:focus-visible .cn-card__pop{
  opacity:1;
  transform:translateY(-20px) scale(1.1)!important;
  box-shadow:0 34px 40px -16px rgba(22,24,28,.5),0 0 0 3px #fff,0 0 0 5px rgba(0,0,0,.14)!important;
}
.cn-card:active .cn-card__pop{transform:translateY(-14px) scale(1.06)!important}
/* everything else steps back a little so the lifted card stands out */
.cn-banner__img{transition:filter .3s ease}
.cn-banner:has(.cn-card:hover) .cn-banner__img,
.cn-banner:has(.cn-card:focus-visible) .cn-banner__img{filter:brightness(.93) saturate(.9)}
@media (prefers-reduced-motion:reduce){.cn-card__pop,.cn-banner__img{transition:none!important}}
