/* The Aqua library's full-width background treatment, using the reviewed gym stills. */
main{padding-inline:48px}.topbar{height:84px;background:linear-gradient(#0d0d0eeb,#0d0d0e00);backdrop-filter:none}
.brand b{font:400 13px/1.1 var(--mono);letter-spacing:.08em}.brand img{width:65px;height:65px}
.topnav button{font-size:14px;color:#cfcdc9}.topnav button[aria-current=page]{border:0;color:white}
.status-mark{font:700 13px var(--body);letter-spacing:.22em;color:var(--text)}
.overview .hero.hero-billboard{position:relative;display:block;margin:-84px -48px 0;height:min(80vh,780px);min-height:560px;padding:0;overflow:hidden;border:0;isolation:isolate}
.hero.hero-billboard::before{display:none}.hero.hero-billboard::after{content:"";position:absolute;inset:0;width:auto;height:auto;border:0;border-radius:0;box-shadow:none;z-index:1;pointer-events:none;background:linear-gradient(90deg,#0d0d0ef5 0%,#0d0d0eb8 30%,transparent 70%),linear-gradient(0deg,#0d0d0e,transparent 48%)}
.hero-billboard .hero-slides,.hero-billboard .hero-slide,.hero-billboard picture{position:absolute;inset:0}
.hero-billboard .hero-slide{transition:opacity 1.1s var(--ease)}
.hero-billboard .hero-slide img{width:100%;height:112%;object-fit:cover;object-position:center 28%;transform:scale(1.06);transition:transform 10s linear}
.hero-billboard .hero-slide.on img{transform:scale(1)}
.hero-billboard .hero-slide[data-exercise="deadlift"] img,.hero-billboard .hero-slide[data-exercise="goblet-squat"] img{object-fit:cover;object-position:center 24%}
.hero-billboard .hero-slide[data-exercise="ab-wheel-rollout"] img{object-position:center 65%}
.hero-billboard .hero-copy{position:absolute;left:48px;bottom:15%;z-index:2;max-width:560px;padding-right:25px}
.hero-billboard .eyebrow{display:flex;gap:12px;align-items:center;color:#e7e5e1;font-size:12px;letter-spacing:.26em}
.hero-billboard .eyebrow em{font:italic 400 18px var(--serif);color:#ff4d55;letter-spacing:0;text-transform:none}
.hero-billboard .hero-feature{position:static}.hero-billboard .hero-feature h1{font:800 clamp(46px,6.6vw,96px)/.92 var(--display);letter-spacing:-.04em;text-shadow:0 4px 30px #0008;margin:0 0 18px}
.hero-billboard .hero-feature p{font-size:13px;letter-spacing:.1em;color:#e7e5e1;margin:12px 0 0}.hero-billboard .hero-feature-index{color:var(--aqua);font:400 12px var(--mono)}
.hero-billboard .hero-lede{font-size:17px;line-height:1.45;color:#e7e5e1;margin:18px 0 22px;max-width:430px}
.hero-billboard .hero-actions{gap:10px;flex-wrap:wrap}.hero-billboard .hero-actions .button{border:0;border-radius:6px;padding:12px 22px;font-size:17px}.hero-billboard .hero-button{background:white;color:#0d0d0e}.hero-billboard .button.ghost{background:#6d6d6eb3;color:white}
.hero-carousel-controls{display:flex;gap:18px;align-items:center;margin-top:24px}.hero-billboard .hero-dots{position:static;gap:6px}.hero-billboard .hero-dots button{width:30px;height:24px;padding:10px 0}.hero-billboard .hero-dots i{height:3px}
#heroPlayback{padding:5px 10px;border:1px solid #ffffff55;border-radius:6px;background:#0d0d0e66;color:white;font-size:12px}
.overview>.hero-stats{position:relative;display:grid;grid-template-columns:repeat(4,1fr);margin-top:-12px;border-radius:0;border:0;border-bottom:1px solid var(--line);background:none;box-shadow:none}.overview>.hero-stats div{min-height:90px;padding:12px 18px;border:0}.overview>.hero-stats strong{font-size:24px}.overview>.hero-stats span{font-size:11px}
.lens-section{padding:44px 0}.section-heading h2{font:700 clamp(22px,2vw,30px) var(--display);letter-spacing:-.01em;margin:10px 0 24px}.lens-grid{grid-template-columns:repeat(3,1fr)}.lens{min-height:200px}.lens h3{margin-top:36px}
@media(max-width:1100px){.hero-billboard .hero-copy{max-width:480px}.status-mark{font-size:11px}}
@media(max-width:900px){main{padding-inline:16px}.overview .hero.hero-billboard{display:block;margin:-84px -16px 0;height:78svh;min-height:580px;max-height:780px;flex-direction:initial;padding:0}.hero-billboard .hero-copy{left:24px;right:16px;bottom:10%;max-width:500px}.hero-billboard .hero-feature h1{font-size:clamp(46px,9vw,76px)}.hero-billboard::after{background:linear-gradient(90deg,#0d0d0e77,transparent),linear-gradient(0deg,#0d0d0e 2%,#0d0d0e99 40%,transparent 80%)}.hero-billboard .hero-slide img,.hero-billboard .hero-slide[data-exercise="deadlift"] img,.hero-billboard .hero-slide[data-exercise="goblet-squat"] img{object-position:center 28%}.hero-billboard .hero-lede{font-size:15px;max-width:320px}.overview>.hero-stats{width:100%;max-width:none}.status-mark{display:none}.hero-billboard .hero-actions .button{font-size:14px;padding:12px 16px}.hero-billboard .eyebrow{font-size:10px;flex-wrap:wrap}}
@media(max-width:580px){.hero-billboard .hero-copy{left:20px}.hero-billboard .hero-feature h1{font-size:48px}.overview>.hero-stats{grid-template-columns:repeat(2,1fr)}.overview>.hero-stats div{min-height:76px}.lens-grid{grid-template-columns:1fr}.hero-billboard .eyebrow em{font-size:16px}}
@media(prefers-reduced-motion:reduce){.hero-billboard .hero-slide,.hero-billboard .hero-slide img{transition:none;transform:none}}

/* Refinement: unbroken header and full portrait within the dynamic background. */
.topbar{border-bottom:0;box-shadow:none}
.hero-billboard .hero-slide::before{content:"";position:absolute;inset:-25px;background-image:var(--hero-image);background-size:cover;background-position:center;filter:blur(24px);opacity:.28}
.hero-billboard .hero-slide img,.hero-billboard .hero-slide[data-exercise] img{height:100%;object-fit:contain;object-position:right center;transform:none}
.hero-billboard .hero-slide.on img{transform:none}
.exercise-card{transition:scale .35s var(--ease)}
.exercise-card:hover{scale:1.04;z-index:2}
.card-media-slot img{transform-origin:50% 30%;transition:transform 1.2s var(--ease),opacity .4s}
.exercise-card:hover .card-media-slot img{transform:scale(1.04)}
.exercise-card:hover .flip-dot{background:#e83a42}
.flip-arrow{transition:transform .3s var(--ease)}.exercise-card:hover .flip-arrow{transform:translate(3px,-3px)}
.in-plan-mark{left:auto;right:18px;top:56px;z-index:4;color:#fff;box-shadow:0 6px 18px rgba(215,38,46,.45);animation:plan-pop .3s var(--ease)}
@keyframes plan-pop{from{opacity:0;transform:translateY(-4px) scale(.98)}}
.card-front-copy{z-index:6}

/* Shared front-of-card plan action; same treatment in both libraries. */
.front-plan{position:relative;z-index:6;display:block;margin-top:16px;width:100%;padding:11px 14px;border:1px solid #ffffff66;border-radius:8px;background:#171719c9;color:#fff;font:700 13px var(--body);cursor:pointer;pointer-events:auto;transition:background .2s,border-color .2s}
.front-plan:hover{background:#d7262e;border-color:#d7262e}.front-plan[aria-pressed=true]{border-color:#d7262e;background:#d7262e33}.front-plan:focus-visible{outline:3px solid #46c1dc;outline-offset:3px}

@media(max-width:900px){.hero-billboard .hero-slide img,.hero-billboard .hero-slide[data-exercise] img{object-position:center top}.overview .hero.hero-billboard{min-height:760px;height:90svh;max-height:980px}.hero-billboard .hero-copy{bottom:5%}}
@media(prefers-reduced-motion:reduce){.exercise-card,.card-media-slot img,.flip-arrow,.front-plan{transition:none}.exercise-card:hover{scale:1}.exercise-card:hover .card-media-slot img{transform:none}.in-plan-mark{animation:none}}

.exercise-card.still{animation:none}

/* Dedicated landscape backgrounds. Card media remains on the portrait paths. */
.hero-billboard .hero-slide::before{display:none}
.overview .hero.hero-billboard{width:calc(100% + 96px);min-width:0;height:auto;aspect-ratio:16/9;min-height:600px}
.hero-billboard .hero-slide img,.hero-billboard .hero-slide[data-exercise] img{width:100%;height:100%;object-fit:cover;object-position:70% center;transform:scale(1.025)}
.hero-billboard .hero-slide.on img{transform:scale(1)}
@media(max-width:900px){.overview .hero.hero-billboard{width:calc(100% + 32px);height:90svh;min-height:700px;max-height:980px;aspect-ratio:auto}.hero-billboard .hero-slide img,.hero-billboard .hero-slide[data-exercise] img{object-position:center 35%}.hero-billboard .hero-copy{bottom:5%}}
@media(prefers-reduced-motion:reduce){.hero-billboard .hero-slide img,.hero-billboard .hero-slide.on img{transform:none}}

/* Match the 84px header; keep sorting above moving/hovered exercise cards. */
.toolbar{position:sticky;top:84px;z-index:12;background:#0d0d0e;box-shadow:0 8px 12px #0d0d0e99}
body:has(#browse:not([hidden])) .topbar{background:#0d0d0e;z-index:13}
.hero-billboard .hero-dots i,.hero-billboard .hero-dots button[aria-current=true] i{overflow:hidden;background:rgba(255,255,255,.28)}
.hero-billboard .hero-dots i::after{content:"";display:block;width:100%;height:100%;background:#fff;transform:scaleX(0);transform-origin:left}
.hero-billboard .hero-dots button[aria-current=true] i::after{transform:scaleX(var(--hero-progress,0))}
