/* The cover slider: crossfade, slow zoom, staggered text. Plain and fully visible without JS (the .is-live class is added by site.js). */
.hero { position: relative; }
.hero__stage { display: grid; }
.hero__slide { grid-area: 1 / 1; }
.hero.is-live .hero__slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.hero.is-live .hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.hero:not(.is-live) .hero__slide:not(.is-active) { display: none; }

.cover--photo { display: flex; align-items: center; min-height: clamp(520px, 62vw, 700px); padding-block: 60px 120px; background: var(--deep); }
.cover__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cover.cover--photo::before { inset: 0; width: auto; aspect-ratio: auto; border-radius: 0; background: linear-gradient(95deg, rgb(var(--primary-rgb) / .94) 8%, rgb(var(--primary-rgb) / .58) 54%, rgb(0 0 0 / .08)); animation: none; }
.cover--photo::after { content: none; }
.cover--photo .wrap { width: 100%; }
.cover__card { max-width: 40rem; }
.cover__card .eyebrow { display: inline-block; margin: 0 0 18px; padding: 7px 14px; border-radius: 99px; background: rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--cover-ink); font: 700 .78rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.cover__card h2 { margin: 0 0 .4em; color: var(--cover-ink); font-size: clamp(2rem, 1.1rem + 3.6vw, 3.8rem); line-height: 1.06; letter-spacing: -.03em; }
.cover__card p { color: var(--cover-soft); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); }
.cover__card .cover__actions { margin-top: 1.6em; }

.hero.is-live .is-active .cover__photo { animation: kenburns 9s ease-out both; }
.hero.is-live .is-active .cover__text > *, .hero.is-live .is-active .cover__card > *, .hero.is-live .is-active .cover__plate { animation: slidein .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero.is-live .is-active .cover__text > :nth-child(2), .hero.is-live .is-active .cover__card > :nth-child(2) { animation-delay: .12s; }
.hero.is-live .is-active .cover__text > :nth-child(3), .hero.is-live .is-active .cover__card > :nth-child(3) { animation-delay: .24s; }
.hero.is-live .is-active .cover__text > :nth-child(n+4), .hero.is-live .is-active .cover__plate { animation-delay: .36s; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes slidein { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -14px, 0); } }
.cover__plate .stamp { animation: drift 5s ease-in-out infinite; }
.cover::before { animation: drift 11s ease-in-out infinite; }

.hero__ui { position: absolute; right: 0; bottom: 84px; left: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 12px; pointer-events: none; }
.hero__ui > * { pointer-events: auto; }
.hero__ui[hidden] { display: none; }
.hero__arrow, .hero__pause { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; background: rgb(0 0 0 / .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.hero__arrow:hover, .hero__pause:hover { background: rgb(0 0 0 / .55); transform: scale(1.06); }
.hero__arrow .icon { width: 20px; height: 20px; }
.hero__pause span { width: 12px; height: 12px; border-right: 4px solid #fff; border-left: 4px solid #fff; }
.hero__pause.is-paused span { width: 0; height: 0; border: 0; border-block: 7px solid transparent; border-left: 12px solid #fff; }
.hero__dots { display: flex; gap: 8px; padding: 14px 16px; border-radius: 99px; background: rgb(0 0 0 / .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero__dots button { position: relative; width: 10px; height: 10px; padding: 0; overflow: hidden; border: 0; border-radius: 99px; background: rgb(255 255 255 / .5); cursor: pointer; transition: width .3s ease; }
.hero__dots button[aria-selected="true"] { width: 44px; }
.hero__dots button[aria-selected="true"]::after { position: absolute; inset: 0; background: #fff; content: ''; transform-origin: left; animation: fill var(--slide-ms, 6500ms) linear both; }
.hero.is-paused .hero__dots button[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: none; } }
.hero__arrow:focus-visible, .hero__pause:focus-visible, .hero__dots button:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }

/* the doors rise one after another */
@supports (animation-timeline: view()) {
    .quick ul { animation: none; }
    .quick li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .quick li:nth-child(2) { animation-range: entry 6% entry 51%; } .quick li:nth-child(3) { animation-range: entry 12% entry 57%; } .quick li:nth-child(4) { animation-range: entry 18% entry 63%; }
}

@media (max-width: 860px) { .hero__ui { bottom: 76px; } .hero__arrow { display: none; } .cover--photo { padding-block: 44px 110px; } }
@media (prefers-reduced-motion: reduce) { .hero__pause { display: none; } }
