.pw-hero { position: relative; min-height: min(48rem, 82vh); display: grid; align-items: end; overflow: hidden; color: #fff; background: #071927; }
.pw-hero__image, .pw-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.pw-hero__image { object-fit: cover; }
.pw-hero__shade { background: linear-gradient(90deg, rgb(7 25 39 / 92%), rgb(7 25 39 / 52%) 55%, rgb(7 25 39 / 15%)); }
.pw-hero__content { position: relative; z-index: 1; padding-block: clamp(5rem, 13vw, 10rem); }
.pw-hero__content h1 { max-width: 12ch; }
.pw-hero__lead { max-width: 40rem; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.pw-button { display: inline-flex; margin-top: 1.5rem; padding: 0.8rem 1.25rem; border-radius: 999px; color: #071927; background: #f2c94c; font-weight: 750; text-decoration: none; }

/* Legacy pi2.js: stage 21:9; hexagon W/H 1.1494252873563218.
   Home scales hexagons 1.8 times and spaces them by .9/3 viewport widths.
   Magazine spaces five hexagons by 1/5 viewport widths. */
.pw-hero--slideshow { display:block; min-height:0; color:#1d1d1b; background:#fff; }
.pw-hero--slideshow:focus-visible { outline:3px solid var(--pw-blue); outline-offset:-3px; }
.pw-hero__slide { position:relative; min-width:0; overflow:hidden; background:#000; aspect-ratio:var(--pw-hero-aspect); }
.pw-hero__picture, .pw-hero__slide-image { display:block; width:100%; height:100%; }
.pw-hero__slide-image { max-width:none; object-fit:cover; object-position:center; }
.pw-hero__slide-link { position:absolute; inset:0; z-index:2; }
.pw-hero__slide-link:focus-visible { outline:3px solid #fff; outline-offset:-6px; }
.pw-hero__slide-content { position:absolute; right:12%; bottom:10%; left:12%; pointer-events:none; }
.pw-hero__slide-title { display:grid; justify-items:center; gap:.5em; margin:0; text-align:center; font-size:clamp(.75rem,2.15vw,2.5rem); font-weight:700; line-height:1.35; text-transform:uppercase; }
.pw-hero__slide-title span { max-width:100%; padding:.35em .5em; color:#000; background:#9c9b9b; overflow-wrap:anywhere; }
.pw-hero__to-element { display:inline-block; width:min(1.75rem,.7em); height:auto; margin-left:.18em; vertical-align:-.08em; }
.pw-hero__arrows[hidden], .pw-hero__pagination[hidden] { display:none; }
/* Reserve the enhanced stage before the deferred hero script runs. With
   JavaScript disabled, the accessible stacked-slide fallback remains intact. */
@media (scripting:enabled) {
    .pw-hero--slideshow:not(.is-enhanced) { --pw-slide-step:20vw; --pw-slide-width:49.261083744vw; }
    .pw-hero--home:not(.is-enhanced) { --pw-slide-step:30vw; --pw-slide-width:88.669950739vw; }
    .pw-hero--slideshow:not(.is-enhanced) .pw-hero__viewport { position:relative; width:100%; aspect-ratio:var(--pw-hero-aspect); overflow:clip; isolation:isolate; background:#000; }
    .pw-hero--slideshow:not(.is-enhanced) .pw-hero__motion,
    .pw-hero--slideshow:not(.is-enhanced) .pw-hero__track { height:100%; }
    .pw-hero--slideshow:not(.is-enhanced) .pw-hero__track { position:relative; }
    .pw-hero--slideshow:not(.is-enhanced) .pw-hero__slide { position:absolute; left:calc(50% + var(--pw-slide-slot, 0) * var(--pw-slide-step)); top:0; width:var(--pw-slide-width); height:100%; aspect-ratio:auto; transform:translateX(-50%); }
    .pw-hero--slideshow:not(.is-enhanced) .pw-hero__slide:nth-child(1) { --pw-slide-slot:-1; }
    .pw-hero--slideshow:not(.is-enhanced) .pw-hero__slide:nth-child(2) { --pw-slide-slot:0; }
    .pw-hero--slideshow:not(.is-enhanced) .pw-hero__slide:nth-child(3) { --pw-slide-slot:1; }
    .pw-hero--slideshow:not(.is-enhanced):has(.pw-hero__slide:nth-child(5)) .pw-hero__slide:nth-child(1) { --pw-slide-slot:-2; }
    .pw-hero--slideshow:not(.is-enhanced):has(.pw-hero__slide:nth-child(5)) .pw-hero__slide:nth-child(2) { --pw-slide-slot:-1; }
    .pw-hero--slideshow:not(.is-enhanced):has(.pw-hero__slide:nth-child(5)) .pw-hero__slide:nth-child(3) { --pw-slide-slot:0; }
    .pw-hero--slideshow:not(.is-enhanced):has(.pw-hero__slide:nth-child(5)) .pw-hero__slide:nth-child(4) { --pw-slide-slot:1; }
    .pw-hero--slideshow:not(.is-enhanced):has(.pw-hero__slide:nth-child(5)) .pw-hero__slide:nth-child(5) { --pw-slide-slot:2; }
    /* Home has three originals; hero.js initially selects the middle one.
       Reserve that caption before enhancement instead of stacking all three. */
    .pw-hero--home:not(.is-enhanced) .pw-hero__caption:not(:nth-child(2)) { display:none; }
    /* Match the existing compact prose while its deferred word-boundary
       enhancement initializes; no-JS keeps the complete original text. */
    .pw-hero--home:not(.is-enhanced) .pw-hero__description { max-height:2lh; overflow:hidden; }
    @media (max-width:600px) {
        .pw-hero--home:not(.is-enhanced) .pw-hero__description { max-height:1lh; }
    }
    /* Its existing pagination is revealed by hero.js; reserve the same space
       while keeping its controls invisible and inaccessible before startup. */
    .pw-hero--home:not(.is-enhanced) .pw-hero__pagination[hidden] { display:flex; visibility:hidden; }
}
.pw-hero--slideshow.is-enhanced { --pw-slide-step:20vw; --pw-slide-width:49.261083744vw; }
.pw-hero--home.is-enhanced { --pw-slide-step:30vw; --pw-slide-width:88.669950739vw; }
.pw-hero--slideshow.is-enhanced .pw-hero__viewport { position:relative; width:100%; aspect-ratio:var(--pw-hero-aspect); overflow:clip; isolation:isolate; background:#000; }
.pw-hero__motion, .pw-hero__track { height:100%; }
.pw-hero__track { position:relative; transform:translate3d(calc(var(--pw-slide-shift, 0) * var(--pw-slide-step)),0,0); }
.pw-hero__track.is-moving { transition:transform 262.5ms linear; }
.pw-hero--slideshow.is-enhanced .pw-hero__slide { position:absolute; left:calc(50% + var(--pw-slide-slot) * var(--pw-slide-step)); top:0; width:var(--pw-slide-width); height:100%; aspect-ratio:auto; transform:translateX(-50%); clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); filter:brightness(.45); transition:filter 500ms linear; }
/* Decorative neighbours fill the resting edges as well as the wrap animation.
   hero.js keeps these copies inert and aria-hidden, independently of painting. */
.pw-hero--slideshow.is-enhanced .pw-hero__slide[aria-hidden="true"]:not([data-hero-slide]) { visibility:visible; pointer-events:none; }
.pw-hero--home.is-enhanced .pw-hero__slide { clip-path:polygon(13.888888889% 0,86.111111111% 0,100% 50%,86.111111111% 100%,13.888888889% 100%,0 50%); filter:none; }
.pw-hero--slideshow.is-enhanced .pw-hero__slide.is-active { filter:none; }
.pw-hero--slideshow.is-enhanced .pw-hero__slide:not(.is-active) .pw-hero__slide-content { visibility:hidden; }
.pw-hero__arrows { position:absolute; inset:0; display:flex; align-items:center; justify-content:space-between; pointer-events:none; }
.pw-hero__arrow { display:grid; place-items:center; width:clamp(2rem,4.39vw,5.1rem); height:clamp(2.5rem,5.23vw,6.1rem); padding:0; border:0; color:#1d1d1b; background:#9c9b9b; font:300 clamp(2rem,4vw,3.5rem)/1 sans-serif; cursor:pointer; pointer-events:auto; }
.pw-hero__arrow:focus-visible, .pw-hero__pagination button:focus-visible { outline:3px solid var(--pw-cyan); outline-offset:-3px; }
.pw-hero__pagination { display:flex; flex-wrap:wrap; justify-content:center; padding:.55rem 1rem; gap:.35rem; }
.pw-hero__pagination button { padding:.25rem 0; border:0; color:#aaa; background:none; font:700 clamp(.7rem,1.1vw,.9rem)/1.4 var(--pw-font-body, 'Nunito Sans', sans-serif); cursor:pointer; }
.pw-hero__pagination button + button::before { content:'|'; padding-right:.35rem; color:#aaa; }
.pw-hero__pagination button[aria-current=true] { color:#fff; }
.pw-hero--magazine .pw-hero__viewport { border-bottom:6px solid #70205c; }
.pw-hero__captions { display:grid; padding:1.5rem max(1rem,4vw); background:#fff; }
.pw-hero--home .pw-hero__captions::after { content:''; display:block; width:min(100%,var(--pw-content-normal)); margin:1.5rem auto 0; border-bottom:var(--pw-divider-height) solid transparent; border-image:var(--pw-divider-gradient) 1; }
.pw-hero__caption h2 { margin:0 0 .7rem; text-align:center; font-size:clamp(1.2rem,2.15vw,2rem); font-weight:800; text-transform:uppercase; }
.pw-hero__caption h2 a { color:inherit; text-decoration:none; }
.pw-hero__caption h2 a:hover { text-decoration:underline; }
.pw-hero__caption p { margin:0; }
.pw-hero__description { font-weight:200; font-size:max(1rem,calc(var(--pw-content-normal) / 83.572 * 1.625)); line-height:1.4154; letter-spacing:.04985em; }
.pw-hero__description-full,
.pw-hero__description-compact { display:inline; }
.pw-hero__description-full[hidden],
.pw-hero__description-compact[hidden] { display:none; }
.pw-hero__description-full > :last-child,
.pw-hero__description-compact > :last-child { display:inline; }
.pw-hero__description-toggle { display:inline-block; min-width:5em; margin:0 0 0 .5em; padding:0; border:0; color:#4e2583; background:transparent; font:inherit; font-style:italic; font-weight:400; letter-spacing:inherit; text-align:left; text-decoration:none; cursor:pointer; }
.pw-hero__description-toggle[hidden] { display:none; }
.pw-hero__description-toggle:hover { font-weight:700; text-decoration:none; }
.pw-hero__description-toggle:focus { text-decoration:none; }
.pw-hero__description-toggle:focus-visible { outline:2px solid #4e2583; outline-offset:3px; }
/* Legacy replaces the caption on selection. Keep its natural text height;
   only scrolling must leave the following content's document position fixed. */
.is-enhanced .pw-hero__caption { display:none; }
.is-enhanced .pw-hero__caption.is-active { display:block; }
@media (max-width:600px) {
    .pw-hero__slide-content { left:16%; right:16%; bottom:8%; }
    .pw-hero__slide-title { font-size:clamp(.65rem,2.5vw,1rem); gap:.25em; }
    .pw-hero__slide-title span { padding:.15em .25em; }
    .pw-hero__pagination { flex-wrap:nowrap; padding:.35rem .75rem; }
    .pw-hero__pagination button { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
}
@media (prefers-reduced-motion:reduce) { .pw-hero__track.is-moving, .pw-hero--slideshow.is-enhanced .pw-hero__slide { transition:none; } }

/* Existing single-image hero: Legacy PhotonLab pi19 image link (21:9).
   Only the image participates in parallax; link/label remain stable. */
.pw-hero--linked-image { display: block; min-height: 0; aspect-ratio: var(--pw-hero-aspect); background: #fff; color: #1d1d1b; }
.pw-hero__image-link { display: block; position: absolute; inset: 0; color: inherit; }
.pw-hero__image-link:focus-visible { outline: 4px solid #70205c; outline-offset: -6px; }
.pw-hero__image-link-title { position: absolute; left: 1rem; right: 1rem; bottom: 10%; margin: 0; text-align: center; font-size: clamp(.875rem, 2.15vw, 2.5rem); font-weight: 700; line-height: 1.35; text-transform: uppercase; }
.pw-hero__image-link-title > span { display: inline-block; padding: .4em .5em; background: #9c9b9b; }
.pw-hero__image-link-title > span > span { color: #70205c; }
/* This scope follows the actual Mediathek, independent of its list variant. */
.pw-content--media-library .pw-hero.is-enhanced .pw-hero__slide { filter: none; }
.pw-content--media-library .pw-hero__pagination,
.pw-content--media-library .pw-hero__captions { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
