/* Energy is expressed through colour returning to photographs and a moving gallery. */
:root{--motion-out:cubic-bezier(.22,1,.36,1);--motion-soft:cubic-bezier(.33,1,.68,1)}
.photo-window{position:relative;display:block;overflow:hidden;background:var(--red);isolation:isolate}
.photo-window img{transition:filter .45s ease,transform .8s var(--motion-out)}
.photo-window::before{content:'';position:absolute;left:14px;top:14px;width:28px;height:28px;border-left:2px solid var(--yellow);border-top:2px solid var(--yellow);z-index:1;pointer-events:none;transition:transform .35s var(--motion-out)}
.photo-window-arrow{position:absolute;right:14px;top:14px;width:39px;height:39px;display:grid;place-items:center;background:var(--yellow);color:var(--ink);border-radius:50%;transition:transform .3s var(--motion-out)}
.photo-window-arrow svg{width:20px;height:20px}
.photo-window-caption{position:absolute;left:0;right:0;bottom:0;display:block;padding:17px 20px;background:var(--yellow);color:var(--ink);font-weight:600;font-size:17px;transform:translateY(102%);transition:transform .35s var(--motion-out)}
.photo-window:focus-visible{outline:4px solid var(--red);outline-offset:5px}
.photo-window:focus-visible img{filter:grayscale(0);transform:scale(1.045)}
.photo-window:focus-visible .photo-window-caption{transform:translateY(0)}
.club-detail .photo-window-caption{font-size:15px;padding:13px}
.hero-art-link{position:absolute;right:22px;bottom:19px;width:48px;height:48px;background:var(--yellow);color:var(--ink);display:grid;place-items:center;border-radius:50%;z-index:2}
.hero-art>img{transition:transform 1.2s var(--ease),filter .4s ease}
.hero-art .art-corner{transition:transform .4s var(--motion-out),border-top-color .3s ease;transform-origin:top right}
.training-stage::after{content:'';position:absolute;top:22px;right:22px;width:40px;height:40px;border-top:3px solid var(--yellow);border-right:3px solid var(--yellow);pointer-events:none;transition:transform .4s var(--motion-out)}
.training-stage:focus-within>img{filter:brightness(.9);transform:scale(1.035)}
.coach-poster .solar,.app-stamp svg,.plan-heading svg{transition:transform .65s var(--motion-out)}
.coach-poster{overflow:hidden;transition:background .4s ease}
.coach-poster>p{position:relative;transition:transform .5s var(--motion-out)}
.coach-poster::after{content:'';position:absolute;right:0;bottom:0;width:55px;height:55px;background:var(--yellow);clip-path:polygon(100% 0,100% 100%,0 100%);transition:transform .4s var(--motion-out);transform-origin:bottom right}
.club-gallery{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;background:var(--canvas)}
.club-gallery img.gallery-slide.gallery-full-frame{object-fit:contain;object-position:center;animation:none;transform:none}
.club-gallery .gallery-slide{grid-area:1/1/2/2;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;transform-origin:center top;filter:saturate(.9);opacity:0;transition:opacity .7s ease;transform:scale(1.04)}
.club-gallery .gallery-slide.is-active{opacity:1}
.club-gallery .gallery-reference{left:22px;top:22px;bottom:auto;font-size:12px;background:var(--paper);color:var(--ink);padding:8px 12px;z-index:2}
.gallery-footer{position:relative;grid-area:2/1/3/2;padding:24px;background:var(--ink);color:var(--paper);display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:2}
.gallery-footer>p{font-family:var(--display);font-size:30px;line-height:1;max-width:260px}
.gallery-controls{display:flex;gap:7px;flex:none}
.gallery-controls[hidden]{display:none}
.gallery-controls button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;background:var(--yellow);color:var(--ink);border:0;transition:background .2s ease}
.gallery-controls button:hover{background:var(--paper)}
.gallery-controls svg{width:20px;height:20px}
[data-gallery-prev] svg,[data-gallery-prev]:hover svg{transform:rotate(-135deg)}
[data-gallery-next] svg,[data-gallery-next]:hover svg{transform:rotate(45deg)}
.gallery-play{display:none}
.gallery-paused .gallery-pause{display:none}.gallery-paused .gallery-play{display:block}
.button:active,.gallery-controls button:active{transform:scale(.97)}
@media(hover:hover) and (pointer:fine){
 .photo-window:hover img{filter:grayscale(0);transform:scale(1.045)}
 .photo-window:hover .photo-window-caption{transform:translateY(0)}
 .photo-window:hover::before{transform:translate(-4px,-4px)}
 .photo-window:hover .photo-window-arrow{transform:rotate(45deg)}
 .hero-art:hover>img{filter:saturate(1.15) brightness(1.08)}
 .hero-art:hover .art-corner{border-top-color:var(--yellow);transform:scale(1.5)}
 .training-stage:hover>img{filter:brightness(.9)}
 .training-stage:hover::after{transform:translate(-7px,7px)}
 .coach-poster:hover{background:#a40c07}
 .coach-poster:hover .solar{transform:rotate(40deg)}
 .coach-poster:hover>p{transform:translateX(9px)}
 .coach-poster:hover::after{transform:scale(1.6)}
 .app-showcase:hover .app-stamp svg{transform:rotate(30deg)}
 .comparison-plan:hover .plan-heading svg{transform:rotate(35deg)}
}
@media(prefers-reduced-motion:no-preference){
 .club-gallery .gallery-slide.is-active{animation:gallery-drift 7s var(--motion-soft) both;animation-play-state:paused}
 .club-gallery.gallery-running .gallery-slide.is-active{animation-play-state:running}
 .phone-screen:not([hidden]){animation:app-screen-in .3s var(--motion-out) both}
 .detail-page h1{animation:page-heading-in .7s var(--motion-out) both}
 .detail-page .app-showcase{animation:page-image-in .85s var(--motion-out) both}
 .detail-page .coach-poster{animation:page-image-in .85s var(--motion-out) both}
 .site-header nav.open{animation:menu-in .2s var(--motion-out) both}
 @view-transition{navigation:auto}
 ::view-transition-old(root){animation:page-out .16s ease both}
 ::view-transition-new(root){animation:page-in .24s ease both}
}
@keyframes gallery-drift{from{transform:scale(1.04)}to{transform:scale(1.1)}}
@keyframes app-screen-in{from{opacity:.5;transform:translateX(7px)}to{opacity:1;transform:none}}
@keyframes page-heading-in{from{opacity:.6;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes page-image-in{from{clip-path:inset(0 0 12% 0);opacity:.5}to{clip-path:inset(0);opacity:1}}
@keyframes menu-in{from{clip-path:inset(0 0 10% 0);opacity:.4}to{clip-path:inset(0);opacity:1}}
@keyframes page-out{to{opacity:0}}
@keyframes page-in{from{opacity:0}to{opacity:1}}
@media(hover:none){.photo-window img{filter:none}.photo-window-caption{transform:none}}
@media(max-width:1100px){.gallery-footer{padding:20px}.gallery-footer>p{font-size:25px}.gallery-controls{gap:5px}.gallery-controls button{width:40px;height:44px}}
@media(max-width:760px){
 .club-detail .photo-window{width:45%;flex:none}.club-detail .photo-window img{width:100%}
 .photo-window-caption{font-size:14px;padding:13px}.club-detail .photo-window-caption{font-size:13px;padding:10px}
 .photo-window-arrow{width:32px;height:32px;right:10px;top:10px}.photo-window-arrow svg{width:18px;height:18px}
 .photo-window::before{left:10px;top:10px;width:20px;height:20px}
 .hero-art-link{right:14px;top:14px;bottom:auto;width:40px;height:40px}.hero-stamp{pointer-events:none}
 .banner-copy .solar{position:static;margin-bottom:24px;width:60px;height:60px}
 .club-gallery{height:380px}.gallery-footer{padding:18px;gap:12px}.gallery-footer>p{font-size:23px;max-width:160px}
 .gallery-controls button{width:38px;height:44px}.gallery-controls{gap:4px}.club-gallery .gallery-reference{left:18px;top:18px}
 .coach-poster::after{width:38px;height:38px}
}
@media(prefers-reduced-motion:reduce){
 .photo-window:hover img,.photo-window:focus-visible img,.coach-poster:hover>p,.coach-poster:hover .solar,.coach-poster:hover::after,.hero-art:hover .art-corner,.app-showcase:hover .app-stamp svg,.comparison-plan:hover .plan-heading svg{transform:none}
 .photo-window-caption{transform:none}.club-gallery .gallery-slide{transform:none}.phone-screen{animation:none}
}
