/* Industrial gym motion system: charcoal, steel, warm rust, and chalk. */
:root {
    --gym-rust: #c96a23;
    --gym-amber: #f0a13a;
    --gym-rust-dark: #7a3d1c;
    --gym-steel: #252a2d;
    --gym-chalk: #f3f1ea;
}

body {
    background:
        radial-gradient(circle at 78% 8%, rgba(201, 106, 35, .12), transparent 28%),
        repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 54px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 108px),
        #060606;
}

/* Concrete, brick and low warm light replace the abstract grid as the site-wide training-room backdrop. */
.about-section,
.classes-section,
.trainers-section {
    background-color: #080807;
    background-image:
        radial-gradient(circle at 82% 14%, rgba(201,106,35,.07), transparent 28%),
        repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 2px, transparent 2px 57px),
        repeating-linear-gradient(90deg, transparent 0 53px, rgba(255,255,255,.018) 53px 55px, transparent 55px 108px);
}

.dark-section {
    background:
        linear-gradient(180deg, rgba(3,3,3,.35), rgba(3,3,3,.88)),
        radial-gradient(circle at 80% 20%, rgba(201,106,35,.08), transparent 30%),
        repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 58px),
        repeating-linear-gradient(90deg, transparent 0 53px, rgba(255,255,255,.016) 53px 55px, transparent 55px 108px),
        #080807;
}

.hero {
    background:
        linear-gradient(115deg, rgba(201,106,35,.08), transparent 38%),
        radial-gradient(circle at 76% 45%, rgba(201,106,35,.16), transparent 28%),
        #090a0b;
}

.hero::before {
    opacity: .7;
    animation: hero-grid-drift 16s linear infinite;
}

.hero-title .text-neon {
    display: inline-block;
    background: linear-gradient(100deg, #c96a23, #f0a13a 55%, #c96a23);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: headline-energy 3.5s linear infinite;
}

.hero-desc { background: linear-gradient(90deg, rgba(201,106,35,.08), transparent); }
.gym-sensory span { transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.gym-sensory span:hover { transform: translateY(-4px); border-color: rgba(201,106,35,.5); background: rgba(201,106,35,.08); }

.motion-stage {
    position: relative;
    align-self: stretch;
    min-height: 600px;
    max-height: 680px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background:
        linear-gradient(180deg, rgba(3,4,4,.15), rgba(3,4,4,.75)),
        #0c0e0e;
    clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
    box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 0 60px rgba(201,106,35,.05);
    isolation: isolate;
}

.motion-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: .45;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
    pointer-events: none;
}

.motion-stage::after {
    content: "MOTION / LIVE";
    position: absolute;
    right: -39px;
    top: 110px;
    z-index: 8;
    color: rgba(255,255,255,.22);
    font: 600 10px/1 var(--font-body);
    letter-spacing: 5px;
    transform: rotate(90deg);
    pointer-events: none;
}

/* Reusable Shadow Fitness Center gym wall: concrete panels, restrained hardware lines,
   a real wall sign, and a watermark that sits behind the athlete rather than over it. */
.motion-brand-wall {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(2,3,3,.12), rgba(2,3,3,.38)),
        url('../img/animation_background.png') center center / cover no-repeat,
        #0b0c0c;
}

.motion-brand-wall::before,
.motion-brand-wall::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(240,161,58,.2);
    clip-path: polygon(0 40px, 40px 0, 44% 0, 47% 14px, 74% 14px, 78% 0, 100% 0, 100% 72%, 98% 74%, 98% 100%, 76% 100%, 72% 86%, 29% 86%, 25% 100%, 0 100%);
}

.motion-brand-wall::after {
    inset: auto 22px 83px;
    height: 2px;
    border: 0;
    background: linear-gradient(90deg, transparent, rgba(240,161,58,.7) 20%, rgba(240,161,58,.16) 70%, transparent);
    clip-path: none;
    box-shadow: 0 0 16px rgba(201,106,35,.28);
}

.motion-wall-sign {
    position: absolute;
    top: 66px;
    left: 21px;
    display: flex;
    align-items: center;
    width: 175px;
    height: 31px;
    border-left: 2px solid rgba(240,161,58,.76);
    padding-left: 9px;
    opacity: 0;
    filter: drop-shadow(0 0 9px rgba(201,106,35,.25));
}

.motion-wall-sign img {
    display: none;
}

.motion-wall-sign::before {
    content: "SFC";
    color: var(--gym-amber);
    font: 700 13px/1 var(--font-heading);
    letter-spacing: 1.6px;
}

.motion-wall-sign::after {
    content: "SHADOW FITNESS CENTER";
    margin-left: 8px;
    color: rgba(243,241,234,.65);
    font: 600 7px/1 var(--font-body);
    letter-spacing: 1.15px;
    white-space: nowrap;
}

.motion-wall-watermark {
    position: absolute;
    left: 50%;
    top: 47%;
    width: min(54%, 340px);
    max-height: 58%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    opacity: 0;
    filter: grayscale(1) contrast(1.25) brightness(1.55);
}

.motion-wall-sfc {
    position: absolute;
    right: 32px;
    bottom: 104px;
    color: transparent;
    font: 700 30px/1 var(--font-heading);
    letter-spacing: 3px;
}

.motion-wall-frame {
    position: absolute;
    z-index: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(240,161,58,.78), transparent);
    box-shadow: 0 0 14px rgba(201,106,35,.42);
}
.motion-wall-frame.frame-top { top: 18px; right: 20px; width: 31%; }
.motion-wall-frame.frame-bottom { bottom: 84px; left: 20px; width: 18%; }

.motion-stage-top {
    position: absolute;
    z-index: 8;
    top: 20px;
    left: 22px;
    right: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.motion-stage-top > div:first-child { display: flex; align-items: center; gap: 9px; }
.motion-stage-top small { color: #b9b5b0; font: 600 10px/1 var(--font-body); letter-spacing: 2.5px; }
.live-pulse { width: 8px; height: 8px; border-radius: 50%; background: #65e992; box-shadow: 0 0 0 0 rgba(101,233,146,.65); animation: live-pulse 1.7s ease-out infinite; }
.motion-rep { display: flex; align-items: baseline; gap: 9px; }
.motion-rep strong { color: #fff; font: 700 34px/1 var(--font-heading); text-shadow: 0 0 18px rgba(201,106,35,.62); }
.motion-rep strong.rep-flash { animation: rep-flash .32s ease; }
.motion-slang {
    position: absolute;
    top: 34px;
    left: 50%;
    width: min(500px, calc(100% - 100px));
    margin: 0;
    padding: 7px 12px;
    transform: translateX(-50%);
    border: 1px solid rgba(240,161,58,.2);
    border-radius: 999px;
    color: #ddd5cb;
    background: rgba(7,8,8,.72);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    font: 700 clamp(12px, .82vw, 14px)/1.4 var(--font-body);
    letter-spacing: .25px;
    text-align: center;
    text-wrap: balance;
    pointer-events: none;
}
.motion-slang.hot { color: #ffd49b; border-color: rgba(240,161,58,.72); box-shadow: 0 0 22px rgba(201,106,35,.22); }
.motion-slang.slang-pop { animation: slang-fade .24s ease; }

.exercise-visual { position: absolute; inset: 42px 24px 174px; }
#kinematic-canvas {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    display: block;
    width: auto;
    height: auto;
    max-width: 116%;
    max-height: 116%;
    transform: translate(-50%, -50%);
}
/* The canvas is the single source of truth for every motion.  The earlier SVG experiments are retained only as inactive markup. */
.exercise-scene { display: none !important; }
.arena-light {
    position: absolute;
    left: 50%;
    top: 5%;
    width: 72%;
    height: 72%;
    background: conic-gradient(from 190deg at 50% 0%, transparent 0 32%, rgba(201,106,35,.13) 39%, rgba(255,255,255,.1) 50%, rgba(201,106,35,.13) 61%, transparent 68%);
    transform: translateX(-50%);
    filter: blur(5px);
    opacity: .65;
    animation: arena-breathe 3s ease-in-out infinite;
}
.arena-rings { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(201,106,35,.13); border-radius: 50%; transform: translate(-50%,-50%); }
.ring-one { width: 330px; height: 330px; animation: ring-pulse 3.2s ease-out infinite; }
.ring-two { width: 420px; height: 420px; animation: ring-pulse 3.2s 1.6s ease-out infinite; }

.exercise-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(.93);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
}
.motion-stage[data-exercise="bench"] .bench-scene,
.motion-stage[data-exercise="squat"] .squat-scene,
.motion-stage[data-exercise="rope"] .rope-scene,
.motion-stage[data-exercise="box"] .box-scene { opacity: 1; transform: scale(1); }

.exercise-scene .athlete-body,
.exercise-scene .athlete-head { fill: #f0ede8; }
.exercise-scene .athlete-body { filter: drop-shadow(0 0 18px rgba(255,255,255,.12)); }
.exercise-scene .limb,
.exercise-scene .shoe { fill: none; stroke: #f0ede8; stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.exercise-scene .shoe { stroke-width: 15; }
.exercise-scene .floor-shadow { fill: rgba(201,106,35,.17); filter: blur(4px); }
.motion-trails path { fill: none; stroke: rgba(201,106,35,.2); stroke-width: 3; stroke-dasharray: 8 12; animation: trail-run 1.2s linear infinite; }

/* Articulated bench press */
.bench-rack path { fill: none; stroke: #3e3e3e; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.bench-equipment .bench-pad { fill: #242424; stroke: #646464; stroke-width: 3; }
.bench-frame { fill: none; stroke: #a8a8a8; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.bench-body { fill: url(#bench-shirt); filter: drop-shadow(0 8px 15px rgba(0,0,0,.35)); transform-box: fill-box; transform-origin: center bottom; animation: bench-breath 2.4s ease-in-out infinite; }
.bench-head { fill: #d8b09b; stroke: #f1cfba; stroke-width: 3; }
.bench-hair { fill: #171717; }
.bench-belt { fill: none; stroke: #c96a23; stroke-width: 9; stroke-linecap: round; }
.bench-leg { fill: none; stroke: #d0cdca; stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; }
.bench-leg.rear { stroke: #817e7b; stroke-width: 21; }
.bench-shoe { fill: none; stroke: #f4f1ed; stroke-width: 14; stroke-linecap: round; }
.bench-shoe.rear { stroke: #a09d99; }
.bench-arm { fill: none; stroke: #e0b6a0; stroke-width: 23; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(201,106,35,.13)); }
.bench-arm.rear-arm { stroke: #9f7968; stroke-width: 20; }
.bench-bar { transform-box: fill-box; transform-origin: center; animation: bench-bar-travel 2.4s cubic-bezier(.45,0,.18,1) infinite; }
.bench-bar line { stroke: #ededed; stroke-width: 11; stroke-linecap: round; filter: drop-shadow(0 0 7px rgba(255,255,255,.28)); }
.bench-bar .plate { fill: #c96a23; stroke: #f0a13a; stroke-width: 2; filter: drop-shadow(0 0 10px rgba(201,106,35,.55)); }
.bench-bar .plate.inner { fill: #7a3d1c; }
.bench-grip { fill: #f0c4ad; stroke: #fff0e7; stroke-width: 2; }
.bar-path-guide path { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 2; stroke-dasharray: 5 9; animation: guide-dash 1.4s linear infinite; }

.barbell-rig { transform-box: fill-box; transform-origin: center center; animation: squat-bar 2.35s cubic-bezier(.5,0,.3,1) infinite; }
.barbell-rig line { stroke: #c96a23; stroke-width: 11; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(201,106,35,.7)); }
.barbell-rig rect { fill: #c96a23; stroke: #f0a13a; stroke-width: 2; }
.squat-athlete { transform-box: fill-box; transform-origin: center bottom; animation: power-squat 2.35s cubic-bezier(.5,0,.3,1) infinite; }
.squat-athlete .athlete-body { fill: #f0ede8; }

.rope-loop { fill: none; stroke: #c96a23; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 34 14; filter: drop-shadow(0 0 9px rgba(201,106,35,.65)); transform-box: fill-box; transform-origin: center; animation: rope-spin .72s linear infinite; }
.rope-athlete { transform-box: fill-box; transform-origin: center bottom; animation: rope-bounce .72s ease-in-out infinite; }
.rope-arm-left { animation: rope-arm-left .72s ease-in-out infinite; transform-box: fill-box; transform-origin: right top; }
.rope-arm-right { animation: rope-arm-right .72s ease-in-out infinite; transform-box: fill-box; transform-origin: left top; }

.bag-chain { stroke: #777; stroke-width: 5; }
.punch-bag { fill: #2a2022; stroke: #c96a23; stroke-width: 4; filter: drop-shadow(0 0 16px rgba(201,106,35,.4)); transform-box: fill-box; transform-origin: top center; animation: bag-swing 1.35s cubic-bezier(.4,0,.2,1) infinite; }
.boxer-athlete { transform-box: fill-box; transform-origin: center bottom; animation: boxer-shift 1.35s ease-in-out infinite; }
.punch-arm { transform-box: fill-box; transform-origin: left center; animation: punch-arm 1.35s cubic-bezier(.2,.9,.2,1) infinite; }
.punch-glove { fill: #c96a23; filter: drop-shadow(0 0 10px rgba(201,106,35,.8)); animation: glove-strike 1.35s cubic-bezier(.2,.9,.2,1) infinite; }
.impact-lines { fill: none; stroke: #ffb65c; stroke-width: 6; stroke-linecap: round; animation: impact-flash 1.35s steps(1) infinite; }

.exercise-caption {
    position: absolute;
    z-index: 7;
    left: 26px;
    bottom: 140px;
    display: flex;
    flex-direction: column;
    padding-left: 14px;
    border-left: 3px solid var(--neon-red);
}
.exercise-caption small { color: #8e8984; font: 600 9px/1.3 var(--font-body); letter-spacing: 2.5px; }
.exercise-caption strong { font: 700 25px/1.2 var(--font-heading); letter-spacing: 1px; }
.exercise-caption span { color: var(--neon-red); font: 600 10px/1.5 var(--font-body); letter-spacing: 1.8px; }

.treadmill-control {
    position: absolute;
    z-index: 10;
    top: 110px;
    left: 20px;
    right: auto;
    width: 182px;
    padding: 12px;
    border: 1px solid rgba(240,161,58,.45);
    background: rgba(15,17,18,.91);
    box-shadow: 0 12px 32px rgba(0,0,0,.34), inset 3px 0 0 var(--neon-red);
    backdrop-filter: blur(12px);
}
.treadmill-control[hidden] { display: none; }
.treadmill-readout { display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.treadmill-readout > span { color: #aaa79f; font: 600 8px/1 var(--font-body); letter-spacing: 1.6px; }
.treadmill-readout strong { color: var(--gym-amber); font: 700 23px/1 var(--font-heading); white-space: nowrap; }
.treadmill-readout output { font: inherit; }
.treadmill-readout small { color: #d6d1c9; font: 600 8px/1 var(--font-body); letter-spacing: .6px; }
.treadmill-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.treadmill-buttons button {
    min-height: 30px;
    border: 1px solid rgba(240,161,58,.35);
    color: var(--gym-chalk);
    background: #222628;
    font: 700 18px/1 var(--font-heading);
}
.treadmill-buttons button:hover { color: #16120d; background: var(--gym-amber); }
.treadmill-buttons button:disabled { cursor: not-allowed; opacity: .34; color: #777; background: rgba(255,255,255,.02); }
.motion-stage[data-exercise="treadmill"] .motion-wall-sign { opacity: 0; }
.motion-stage.treadmill-hot .treadmill-control { border-color: rgba(240,161,58,.88); box-shadow: 0 0 28px rgba(201,106,35,.24); }
.motion-stage.treadmill-hot .treadmill-readout strong { color: #ffd08a; text-shadow: 0 0 16px rgba(240,161,58,.55); }

.exercise-switcher {
    position: absolute;
    z-index: 9;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, 64px);
    border-top: 1px solid rgba(255,255,255,.1);
    background: rgba(5,5,5,.88);
    backdrop-filter: blur(12px);
}
.exercise-mode {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 64px;
    border: 0;
    border-right: 1px solid rgba(255,255,255,.08);
    color: #87837f;
    background: transparent;
    font: 600 8px/1.05 var(--font-heading);
    letter-spacing: 1.15px;
    padding: 5px;
    text-align: center;
    transition: color .25s ease, background .25s ease;
}
.exercise-mode:nth-child(4n) { border-right: 0; }
.exercise-mode:nth-child(n+5) { border-top: 1px solid rgba(255,255,255,.08); }
.exercise-mode::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--neon-red); transform: scaleX(0); transition: transform .3s ease; }
.exercise-mode:hover,
.exercise-mode.active { color: #fff; background: rgba(201,106,35,.12); }
.exercise-mode.active::after { transform: scaleX(1); }
.exercise-mode i { color: #88847f; font-size: 17px; transition: color .25s ease, transform .25s ease, filter .25s ease; }
.exercise-mode:hover i,
.exercise-mode.active i { color: var(--gym-amber); transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 0 7px rgba(240,161,58,.42)); }

/* Informational cards retain their visual depth but no longer imply a missing click action. */
@media (pointer: fine) {
    .facilities-grid .digital-card,
    .classes-grid .digital-image-card { cursor: default; }
}

.coach-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    padding: 12px 15px;
    border: 1px solid rgba(201,106,35,.52);
    color: #f5efeb;
    font: 600 12px/1 var(--font-heading);
    letter-spacing: 1.3px;
}
.coach-cta:hover { background: var(--neon-red); color: #0a0909; }

.motivation-wall {
    position: relative;
    overflow: hidden;
    padding: 108px 0 102px;
    border-top: 1px solid rgba(255,255,255,.09);
    border-bottom: 1px solid rgba(201,106,35,.28);
    background:
        linear-gradient(90deg, rgba(0,0,0,.90), rgba(15,5,8,.70), rgba(0,0,0,.90)),
        #080807;
}
.motivation-wall-brick {
    position: absolute;
    inset: 0;
    opacity: .82;
    background:
        radial-gradient(circle at 78% 48%, rgba(201,106,35,.22), transparent 24%),
        linear-gradient(90deg, rgba(0,0,0,.54), transparent 42%, rgba(0,0,0,.58)),
        repeating-linear-gradient(0deg, rgba(255,255,255,.065) 0 2px, transparent 2px 58px),
        repeating-linear-gradient(90deg, transparent 0 52px, rgba(255,255,255,.042) 52px 54px, transparent 54px 108px);
    filter: contrast(1.08) saturate(.78);
}
.motivation-wall-inner { position: relative; z-index: 1; max-width: 1040px; text-align: center; }
.motivation-wall .tech-badge { margin-bottom: 24px; }
.motivation-wall h2 {
    margin: 0;
    color: #f5f1ed;
    font-size: clamp(2.35rem, 5.4vw, 5.2rem);
    line-height: .96;
    letter-spacing: -.02em;
    text-shadow: 0 12px 32px rgba(0,0,0,.68);
}
.motivation-wall h2 span { color: var(--gym-amber); text-shadow: 0 0 22px rgba(201,106,35,.34); }
.motivation-wall p { margin-top: 24px; color: #c6bdb8; font: 600 12px/1.4 var(--font-body); letter-spacing: 3px; }
.local-hype-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 34px;
}
.local-hype-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 56px;
    padding: 12px;
    border: 1px solid rgba(240,161,58,.28);
    border-radius: 9px;
    color: #ece7df;
    background: linear-gradient(145deg, rgba(201,106,35,.13), rgba(255,255,255,.025));
    font: 600 10px/1.25 var(--font-heading);
    letter-spacing: 1px;
    animation: hype-float 3.2s ease-in-out infinite;
}
.local-hype-grid span:nth-child(2) { animation-delay: -.8s; }
.local-hype-grid span:nth-child(3) { animation-delay: -1.6s; }
.local-hype-grid span:nth-child(4) { animation-delay: -2.4s; }
.local-hype-grid i { color: var(--gym-amber); font-size: 17px; filter: drop-shadow(0 0 7px rgba(240,161,58,.32)); }

.digital-card:hover .fac-icon i { animation: icon-workout .5s ease-in-out 2; }
.class-icon i { transition: transform .3s ease; }
.digital-image-card:hover .class-icon i { transform: scale(1.18) rotate(-6deg); }

@keyframes hero-grid-drift { to { background-position: 64px 64px; } }
@keyframes headline-energy { to { background-position: -200% 0; } }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(101,233,146,.65); } 70% { box-shadow: 0 0 0 10px rgba(101,233,146,0); } 100% { box-shadow: 0 0 0 0 rgba(101,233,146,0); } }
@keyframes arena-breathe { 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
@keyframes ring-pulse { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.7); } 45% { opacity: .8; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.15); } }
@keyframes trail-run { to { stroke-dashoffset: -40; } }
@keyframes bench-bar-travel {
    0%, 12%, 100% { transform: translateY(0); }
    48%, 62% { transform: translateY(102px); }
    84% { transform: translateY(-4px); }
}
@keyframes bench-breath { 0%, 100% { transform: scaleY(1); } 48%, 62% { transform: scaleY(1.035); } }
@keyframes guide-dash { to { stroke-dashoffset: -28; } }
@keyframes power-squat { 0%, 12%, 100% { transform: translateY(0) scaleY(1); } 45%, 60% { transform: translateY(46px) scaleY(.87); } 82% { transform: translateY(-7px) scaleY(1.02); } }
@keyframes squat-bar { 0%, 12%, 100% { transform: translateY(0); } 45%, 60% { transform: translateY(42px); } 82% { transform: translateY(-7px); } }
@keyframes rope-spin { 0% { stroke-dashoffset: 0; transform: scaleX(1); } 50% { transform: scaleX(.18); } 100% { stroke-dashoffset: -96; transform: scaleX(1); } }
@keyframes rope-bounce { 0%, 100% { transform: translateY(8px); } 50% { transform: translateY(-19px); } }
@keyframes rope-arm-left { 50% { transform: rotate(-11deg); } }
@keyframes rope-arm-right { 50% { transform: rotate(11deg); } }
@keyframes bag-swing { 0%, 28%, 100% { transform: rotate(0); } 50%, 65% { transform: rotate(8deg); } }
@keyframes boxer-shift { 0%, 100% { transform: translateX(0) rotate(0); } 42%, 58% { transform: translateX(9px) rotate(-1.5deg); } }
@keyframes punch-arm { 0%, 25%, 72%, 100% { transform: scaleX(.62) rotate(7deg); } 43%, 58% { transform: scaleX(1.1) rotate(-3deg); } }
@keyframes glove-strike { 0%, 25%, 72%, 100% { transform: translateX(-44px); } 43%, 58% { transform: translateX(3px); } }
@keyframes impact-flash { 0%, 39%, 62%, 100% { opacity: 0; } 40%, 61% { opacity: 1; } }
@keyframes icon-workout { 50% { transform: translateY(-5px) rotate(-8deg); } }
@keyframes rep-flash { 50% { color: var(--neon-red); transform: scale(1.2); } }
@keyframes slang-fade { 0% { opacity: .45; } 100% { opacity: 1; } }
@keyframes hype-float { 50% { transform: translateY(-6px); border-color: rgba(240,161,58,.58); } }

@media (max-width: 1100px) {
    .motion-stage { min-height: 595px; }
    .exercise-visual { inset-inline: 5px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: clamp(3.15rem, 15.5vw, 4.75rem); }
    .hero .gym-sensory,
    .hero .hero-stats,
    .hero .hero-actions { display: none; }
    .motion-stage { width: 100%; min-height: 690px; max-height: none; }
    .exercise-visual { inset: 48px 0 176px; }
    #kinematic-canvas { max-width: 106%; max-height: 106%; }
    .exercise-caption { bottom: 132px; left: 18px; }
    .exercise-caption strong { font-size: 22px; }
    .motion-stage::after { display: none; }
    .exercise-switcher { grid-template-rows: repeat(2, 58px); }
    .exercise-mode { flex-direction: column; gap: 4px; min-height: 58px; padding: 6px 2px; font-size: 7px; letter-spacing: .25px; }
    .exercise-mode i { font-size: 12px; }
    .exercise-mode span { display: inline; }
    .motion-slang { top: 50px; left: 50%; width: calc(100% - 28px); padding: 10px 12px; border-radius: 9px; font-size: 11px; line-height: 1.4; }
    .treadmill-control { top: 78px; left: 12px; right: auto; width: 158px; padding: 9px; }
    .treadmill-readout strong { font-size: 20px; }
    .motivation-wall { padding: 78px 0 74px; }
    .motivation-wall p { padding: 0 12px; font-size: 10px; letter-spacing: 1.7px; }
    .local-hype-grid { grid-template-columns: 1fr 1fr; }
    .local-hype-grid span { min-height: 52px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .motion-stage[data-exercise="bench"] .bench-scene,
    .motion-stage[data-exercise="squat"] .squat-scene,
    .motion-stage[data-exercise="rope"] .rope-scene,
    .motion-stage[data-exercise="box"] .box-scene { opacity: 1; }
}
