/* Arena lighting and the homepage film transition. */
.pd-hero{
    --pd-hero-progress:0;
}
.pd-hero-art .pd-hero-photo{
    transform:translateY(calc(var(--pd-hero-progress) * 3%)) scale(calc(1 + var(--pd-hero-progress) * .11));
    transform-origin:60% 47%;
}
.pd-hero-outline{
    transform:translateY(calc(var(--pd-hero-progress) * -14%));
}
.pd-cage-art{
    position:absolute;
    inset:5% 7% 11% 17%;
    color:#ffb266;
    opacity:.78;
    pointer-events:none;
    transform:rotate(-9deg) translateY(calc(var(--pd-hero-progress) * 5%));
}
.pd-cage-art i,.pd-cage-art b{
    position:absolute;
    display:block;
    inset:0;
}
.pd-cage-art i{
    background:linear-gradient(135deg,#ffb26604 8%,#ffb26670 27%,#ffb2660d 45%,#ffb2660b 60%,#ffb26648 83%,#ffb26608 97%);
    clip-path:polygon(26% 0,74% 0,100% 26%,100% 74%,74% 100%,26% 100%,0 74%,0 26%,26% 0,26.15% .26%,.26% 26.15%,.26% 73.85%,26.15% 99.74%,73.85% 99.74%,99.74% 73.85%,99.74% 26.15%,73.85% .26%,26.15% .26%);
}
.pd-cage-art i:nth-child(2){
    inset:8%;
    opacity:.6;
    transform:rotate(9deg);
}
.pd-cage-art b{
    inset:0;
    width:5px;
    height:5px;
    border-radius:50%;
    background:#ffe0ad;
    box-shadow:0 0 9px 3px #ff9b44,0 0 24px 7px #ef6d2c8c;
    offset-path:polygon(26% 0,74% 0,100% 26%,100% 74%,74% 100%,26% 100%,0 74%,0 26%);
    offset-distance:17%;
}
.pd-motion-ready:not(.pd-motion-paused) .pd-cage-art b{
    animation:pd-cage-trace 12s linear infinite;
}
.pd-cage-art b:after{
    content:"";
    width:160px;
    height:160px;
    display:block;
    background:radial-gradient(circle,#ff9a333b,transparent 68%);
    transform:translate(-77px,-77px);
}
@keyframes pd-cage-trace{to{offset-distance:117%}}

.pd-motion-toggle{
    display:none;
}
.pd-motion-ready .pd-motion-toggle:not([hidden]){
    position:absolute;
    z-index:4;
    right:var(--pd-gutter);
    bottom:51px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:1px solid #8b6c50;
    background:#15120de8;
    color:#f1dfca;
    min-height:38px;
    padding:6px 10px;
    font-size:12px;
    line-height:1.25;
    font-weight:650;
    cursor:pointer;
}
.pd-motion-ready .pd-motion-toggle-scene:not([hidden]){
    bottom:clamp(52px,6.1vw,93px);
}
.pd-motion-toggle:hover{
    border-color:var(--pd-amber);
    color:#fff;
}
.pd-motion-icon{
    width:8px;
    height:10px;
    border-inline:2px solid currentColor;
}
.pd-motion-paused .pd-motion-icon{
    width:0;
    height:0;
    border:5px solid transparent;
    border-right:0;
    border-left:7px solid currentColor;
}

.pd-cage-scene{
    --pd-scene:1;
    --pd-film-mix:clamp(0,(var(--pd-scene) - .37) * 1.59,1);
    --pd-frame-shift:0px;
    position:relative;
    isolation:isolate;
    overflow:hidden;
    min-height:clamp(360px,42vw,590px);
    display:grid;
    align-items:center;
    background:#19150f;
}
.pd-cage-frames{
    position:absolute;
    inset:0;
    isolation:isolate;
    overflow:hidden;
    background:radial-gradient(ellipse at 78% 45%,#523520,#292016 38%,#17150f 70%);
    z-index:-1;
}
.pd-cage-frames>img,.pd-cage-film{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 47%;
    pointer-events:none;
}
.pd-cage-frames .pd-cage-still,.pd-cage-frames .pd-cage-walkout,.pd-cage-film{
    object-position:61% 45%;
    mask-image:linear-gradient(90deg,transparent 5%,#000 54%);
    transform:translateY(var(--pd-frame-shift)) scale(1.065);
    filter:sepia(.16);
}
.pd-cage-still{
    opacity:var(--pd-scene);
    transition:opacity .6s ease;
}
.pd-cage-walkout{
    opacity:calc(3.35 * var(--pd-scene) * (1 - var(--pd-scene)));
}
.pd-cage-film{
    opacity:0;
    transition:opacity .6s ease;
}
.pd-cage-scene.pd-film-playing .pd-cage-film{
    opacity:var(--pd-film-mix);
}
.pd-cage-scene.pd-film-playing .pd-cage-still{
    opacity:calc(var(--pd-scene) * (1 - var(--pd-film-mix)));
}
.pd-cage-frames .pd-cage-match{
    inset:0 2% 0 auto;
    width:66%;
    object-fit:contain;
    object-position:61% 50%;
    mix-blend-mode:screen;
    opacity:calc((1 - var(--pd-scene)) * .95);
    transform:translateY(calc((1 - var(--pd-scene)) * -9%)) scale(calc(1.06 + var(--pd-scene) * .14));
    mask-image:linear-gradient(90deg,transparent,black 31%,black 84%,transparent);
}
.pd-cage-light{
    position:absolute;
    inset:0;
    background:
        linear-gradient(180deg,#171610 0%,transparent 22%),
        linear-gradient(90deg,#17150ff7 0%,#1b160dd6 24%,#0f0c0842 68%,#20170d27 100%),
        linear-gradient(0deg,#34251a 0%,#231a124d 25%,transparent 58%);
}
.pd-cage-scene:after{
    content:"";
    position:absolute;
    z-index:2;
    left:0;
    right:0;
    bottom:-1px;
    height:clamp(29px,5vw,76px);
    background:var(--pd-paper);
    clip-path:polygon(0 92%,100% 4%,100% 100%,0 100%);
    pointer-events:none;
}
.pd-cage-copy{
    width:100%;
    padding-block:75px 99px;
}
.pd-cage-copy h2{
    max-width:9em;
    margin:12px 0 24px;
    font-size:clamp(55px,9.4vw,133px);
}
.pd-cage-copy .pd-btn-line{
    background:#1b1712d9;
}
.pd-cage-copy .pd-btn-line:hover{
    background:var(--pd-paper);
}

/* Local transitions on the chapter pages. */
.pd-inner-hero{
    position:relative;
    isolation:isolate;
}
.pd-inner-hero::before{
    content:"";
    position:absolute;
    z-index:-1;
    inset:0;
    background:linear-gradient(113deg,transparent 49.85%,#ffba7552 50%,#ff96241c 50.25%,transparent 62%);
    transform:translateX(calc(var(--pd-inner-progress,0) * 6%));
    pointer-events:none;
}
.pd-inner-grid figure img{
    transform:translateY(calc(var(--pd-inner-progress,0) * 5%)) scale(calc(1 + var(--pd-inner-progress,0) * .06));
}
.pd-motion-ready .pd-section.pd-light{
    position:relative;
}
.pd-motion-ready .pd-section.pd-light:before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:0;
    height:1px;
    background:linear-gradient(90deg,#7c3800,#f6a764 40%,transparent 84%);
    transform-origin:left;
    transform:scaleX(.28);
    transition:transform .85s cubic-bezier(.2,.75,.24,1);
    pointer-events:none;
}
.pd-motion-ready .pd-section.pd-light.pd-in-view:before{
    transform:scaleX(1);
}
.pd-motion-ready:not(.pd-motion-paused) .pd-in-view> .pd-wrap .pd-section-intro,
.pd-motion-ready:not(.pd-motion-paused) .pd-in-view> .pd-wrap > .pd-split>div,
.pd-motion-ready:not(.pd-motion-paused) .pd-in-view> .pd-wrap .pd-offer,
.pd-motion-ready:not(.pd-motion-paused) .pd-in-view> .pd-wrap .pd-packages article{
    animation:pd-chapter-enter .7s cubic-bezier(.16,.72,.24,1) both;
}
.pd-motion-ready:not(.pd-motion-paused) .pd-in-view .pd-offer:nth-child(2),
.pd-motion-ready:not(.pd-motion-paused) .pd-in-view .pd-packages article:nth-child(2){
    animation-delay:.08s;
}
.pd-motion-ready:not(.pd-motion-paused) .pd-in-view .pd-packages article:nth-child(3){
    animation-delay:.16s;
}
@keyframes pd-chapter-enter{
    from{transform:translateY(21px);opacity:.60}
    to{transform:translateY(0);opacity:1}
}
.pd-offer::before{
    transform:scale(1.015);
    transition:transform .75s cubic-bezier(.2,.7,.25,1);
}
.pd-motion-ready:not(.pd-motion-paused) .pd-offer:focus-within::before{
    transform:scale(1.085);
}
@media(hover:hover){
    .pd-motion-ready:not(.pd-motion-paused) .pd-offer:hover::before{
        transform:scale(1.085);
    }
}
@media(max-width:670px){
    .pd-cage-art{inset:8% 7% 12% 15%;opacity:.6}
    .pd-motion-ready .pd-motion-toggle:not([hidden]){top:12px;bottom:auto}
    .pd-motion-ready .pd-motion-toggle-scene:not([hidden]){top:auto;bottom:33px}
    .pd-cage-scene{min-height:365px}
    .pd-cage-copy{padding-block:92px 65px}
    .pd-cage-copy h2{max-width:7em}
    .pd-cage-frames .pd-cage-still,.pd-cage-frames .pd-cage-walkout,.pd-cage-film{object-position:61% center;mask-image:none}
    .pd-cage-frames .pd-cage-match{width:80%;right:0}
    .pd-cage-light{
        background:
            linear-gradient(180deg,#171610 0%,#1716101a 26%,#0e0c08b0 73%,#2b2118 100%),
            linear-gradient(90deg,#17150fce,#1b160d38 85%);
    }
}
.pd-motion-paused .pd-section.pd-light:before{transform:scaleX(1);transition:none}
@media(prefers-reduced-motion:reduce){
    .pd-cage-art b{animation:none}
    .pd-motion-toggle{display:none!important}
    .pd-hero-art .pd-hero-photo,.pd-hero-outline,.pd-cage-art,.pd-inner-hero::before,.pd-inner-grid figure img{transform:none}
    .pd-cage-scene .pd-cage-film,.pd-cage-scene .pd-cage-match,.pd-cage-scene .pd-cage-walkout{display:none}
    .pd-cage-scene .pd-cage-still{opacity:1;transform:none;transition:none}
    .pd-motion-ready .pd-in-view> .pd-wrap *{animation:none!important}
}
