/* =====================================================================
   JJUGGL.com — kinetic stage, parabolic composition, three-color cascade
   Palette: #0B0F1A (stage) #151B2E (curtain) #FF6B5A (coral)
            #F5C842 (gold) #8B5CF6 (violet) #2DD4A8 (teal)
            #F0EDE6 (spotlight white) #8A8698 (dust mote)
   Type:    Space Grotesk · Instrument Sans · Azeret Mono
   ===================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --stage:        #0B0F1A;
    --curtain:      #151B2E;
    --coral:        #FF6B5A;
    --gold:         #F5C842;
    --violet:       #8B5CF6;
    --teal:         #2DD4A8;
    --spotlight:    #F0EDE6;
    --dust:         #8A8698;

    --easing-throw: cubic-bezier(0.34, 1.56, 0.64, 1);
    --easing-catch: cubic-bezier(0.22, 1, 0.36, 1);
    --easing-fall:  cubic-bezier(0.55, 0.05, 0.85, 0.4);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--stage);
    color: var(--spotlight);
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    /* subtle vignette evoking a stage */
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(21, 27, 46, 0.7) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(21, 27, 46, 0.5) 0%, transparent 70%);
    background-attachment: fixed;
}

::selection { background: var(--coral); color: var(--stage); }

em { font-style: italic; }

/* ---------- Procedural siteswap canvas ---------- */
.siteswap-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

/* ---------- Global parabolic arc layer (between sections) ---------- */
.global-arc-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.global-arc-layer path {
    fill: none;
    stroke-width: 1.2;
    stroke-linecap: round;
}

/* ---------- Rhythm navigation (right-edge timing dots) ---------- */
.rhythm-nav {
    position: fixed;
    top: 50%;
    right: 28px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 100;
}

.nav-dot {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: grid;
    place-items: center;
    transition: transform 0.4s var(--easing-throw);
}

.nav-dot span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dust);
    opacity: 0.55;
    transition: all 0.4s var(--easing-throw);
}

.nav-dot:hover { transform: scale(1.25); }
.nav-dot:hover span { opacity: 1; transform: scale(1.3); }

.nav-dot.active span {
    width: 14px;
    height: 14px;
    opacity: 1;
    box-shadow: 0 0 16px currentColor;
    animation: nav-pulse 1.6s ease-in-out infinite;
}

.nav-dot.active[data-color="coral"]  span { background: var(--coral);  color: var(--coral);  }
.nav-dot.active[data-color="gold"]   span { background: var(--gold);   color: var(--gold);   }
.nav-dot.active[data-color="violet"] span { background: var(--violet); color: var(--violet); }

@keyframes nav-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.25); }
}

/* ---------- Metronome (left edge) ---------- */
.metronome {
    position: fixed;
    top: 50%;
    left: 26px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 100;
    pointer-events: none;
}

.metronome-label {
    font-family: 'Azeret Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: var(--dust);
    text-transform: uppercase;
}

.metronome-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.m-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dust);
    opacity: 0.45;
    animation: metro-beat 2.45s ease-in-out infinite;
}

.m-dot.pause { opacity: 0; animation: none; width: 14px; }
.m-dot:nth-child(1) { animation-delay: 0s;    }
.m-dot:nth-child(2) { animation-delay: 0.35s; }
.m-dot:nth-child(3) { animation-delay: 0.7s;  }
.m-dot:nth-child(5) { animation-delay: 1.4s;  }
.m-dot:nth-child(6) { animation-delay: 1.75s; }
.m-dot:nth-child(7) { animation-delay: 2.1s;  }

@keyframes metro-beat {
    0%, 80%, 100% { opacity: 0.35; transform: scale(1); background: var(--dust); }
    10%           { opacity: 1;    transform: scale(1.6); background: var(--coral); }
}

/* ---------- Stage container & sections ---------- */
.stage {
    position: relative;
    z-index: 2;
}

.juggle-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 80px;
    overflow: hidden;
    z-index: 2;
}

.compact-section {
    min-height: 80vh;
}

/* Cascade offset positioning */
.act-left  .section-content { margin-left:  0;    margin-right: auto; padding-right: 8%; }
.act-center .section-content { margin: 0 auto; }
.act-right .section-content { margin-right: 0;    margin-left:  auto; padding-left:  8%; }

/* ---------- Hero ---------- */
.hero-section {
    background:
        radial-gradient(ellipse 70% 55% at 50% 50%, rgba(139, 92, 246, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 90% 70% at 50% 50%, var(--curtain) 0%, var(--stage) 75%);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 30% 40% at 50% 50%, rgba(245, 200, 66, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.arc-lines.hero-arcs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.arc-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: draw-arc 2.4s var(--easing-catch) forwards;
}

.arc-1 { animation-delay: 0.25s; }
.arc-2 { animation-delay: 0.55s; }
.arc-3 { animation-delay: 0.85s; }
.arc-4 { animation-delay: 1.20s; stroke-dasharray: 4 8; animation-name: draw-arc-dashed; }

@keyframes draw-arc {
    to { stroke-dashoffset: 0; }
}
@keyframes draw-arc-dashed {
    from { opacity: 0; }
    to   { opacity: 0.25; }
}

/* Floating spheres on bezier paths */
.floating-sphere {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    offset-path: var(--path);
    offset-distance: 0%;
    animation: orbit-path 22s linear infinite;
    will-change: offset-distance, transform;
}

.sphere-1 { width: 38px; height: 38px; background: radial-gradient(circle at 30% 30%, #ffb1a4, var(--coral) 60%, #b03b2e); animation-duration: 26s; box-shadow: 0 0 30px rgba(255, 107, 90, 0.5); }
.sphere-2 { width: 28px; height: 28px; background: radial-gradient(circle at 30% 30%, #ffe49c, var(--gold) 60%, #a07f1c); animation-duration: 20s; animation-direction: reverse; box-shadow: 0 0 22px rgba(245, 200, 66, 0.55); }
.sphere-3 { width: 48px; height: 48px; background: radial-gradient(circle at 30% 30%, #c4a8ff, var(--violet) 55%, #5a36c2); animation-duration: 30s; box-shadow: 0 0 36px rgba(139, 92, 246, 0.55); }
.sphere-4 { width: 22px; height: 22px; background: radial-gradient(circle at 30% 30%, #94f2d8, var(--teal) 55%, #189373); animation-duration: 18s; animation-direction: reverse; box-shadow: 0 0 18px rgba(45, 212, 168, 0.45); }
.sphere-5 { width: 32px; height: 32px; background: radial-gradient(circle at 30% 30%, #ffb1a4, var(--coral) 55%, #b03b2e); animation-duration: 24s; box-shadow: 0 0 24px rgba(255, 107, 90, 0.4); opacity: 0.85; }
.sphere-6 { width: 26px; height: 26px; background: radial-gradient(circle at 30% 30%, #ffe49c, var(--gold) 55%, #a07f1c); animation-duration: 28s; animation-direction: reverse; box-shadow: 0 0 22px rgba(245, 200, 66, 0.4); opacity: 0.8; }
.sphere-7 { width: 18px; height: 18px; background: radial-gradient(circle at 30% 30%, #c4a8ff, var(--violet) 55%, #5a36c2); animation-duration: 16s; box-shadow: 0 0 16px rgba(139, 92, 246, 0.4); opacity: 0.7; }

.c-sphere-1 { width: 36px; height: 36px; background: radial-gradient(circle at 30% 30%, #ffb1a4, var(--coral) 60%, #b03b2e); animation: orbit-path 24s linear infinite; box-shadow: 0 0 26px rgba(255, 107, 90, 0.4); position: absolute; offset-path: var(--path); offset-distance: 0%; pointer-events: none; z-index: 3; border-radius: 50%; }
.c-sphere-2 { width: 30px; height: 30px; background: radial-gradient(circle at 30% 30%, #ffe49c, var(--gold) 55%, #a07f1c); animation: orbit-path 21s linear infinite reverse; box-shadow: 0 0 22px rgba(245, 200, 66, 0.4); position: absolute; offset-path: var(--path); offset-distance: 0%; pointer-events: none; z-index: 3; border-radius: 50%; }
.c-sphere-3 { width: 42px; height: 42px; background: radial-gradient(circle at 30% 30%, #c4a8ff, var(--violet) 55%, #5a36c2); animation: orbit-path 28s linear infinite; box-shadow: 0 0 30px rgba(139, 92, 246, 0.45); position: absolute; offset-path: var(--path); offset-distance: 0%; pointer-events: none; z-index: 3; border-radius: 50%; }

@keyframes orbit-path {
    from { offset-distance: 0%;   }
    to   { offset-distance: 100%; }
}

/* ---------- Hero content ---------- */
.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    max-width: 1100px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: 'Azeret Mono', monospace;
    font-size: 0.7rem;
    color: var(--dust);
    letter-spacing: 0.35em;
    margin-bottom: 38px;
    padding: 8px 16px;
    border: 1px solid rgba(138, 134, 152, 0.3);
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.hero-eyebrow em { color: var(--gold); font-style: normal; }

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(4.5rem, 14vw, 11rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    display: flex;
    justify-content: center;
    gap: 0.01em;
    margin-bottom: 28px;
}

.juggle-letter {
    display: inline-block;
    color: var(--spotlight);
    transform: translateY(var(--offset));
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s var(--easing-throw);
    will-change: transform;
}

.juggle-letter:nth-child(1) { color: var(--coral);  }
.juggle-letter:nth-child(2) { color: var(--gold);   }
.juggle-letter:nth-child(3) { color: var(--violet); }
.juggle-letter:nth-child(4) { color: var(--coral);  }
.juggle-letter:nth-child(5) { color: var(--gold);   }
.juggle-letter:nth-child(6) { color: var(--violet); }

.hero-subtitle {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--spotlight);
    opacity: 0.85;
    margin-bottom: 36px;
}

.hero-subtitle em { color: var(--gold); font-style: italic; }

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 52px;
    flex-wrap: wrap;
}

.meta-item {
    font-family: 'Azeret Mono', monospace;
    font-size: 0.75rem;
    color: var(--dust);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.meta-bullet {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 12px currentColor;
}

.hero-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Azeret Mono', monospace;
    font-size: 0.65rem;
    color: var(--dust);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    animation: hint-bob 2.2s ease-in-out infinite;
}

.hint-arrow { width: 18px; height: 28px; opacity: 0.7; }

@keyframes hint-bob {
    0%, 100% { transform: translateY(0);   opacity: 0.6; }
    50%      { transform: translateY(8px); opacity: 1;   }
}

/* ---------- Hand silhouettes ---------- */
.hand-silhouette {
    position: absolute;
    bottom: 0;
    width: 240px;
    height: 120px;
    pointer-events: none;
    z-index: 4;
}

.hand-bottom { left: 50%; transform: translateX(-50%); }
.hand-final  { left: 50%; transform: translateX(-50%); bottom: 30px; }

/* ---------- Section content ---------- */
.section-content {
    max-width: 680px;
    z-index: 10;
    position: relative;
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    transition:
        opacity 0.9s var(--easing-catch),
        transform 1.1s var(--easing-catch);
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.centered-content { text-align: center; margin: 0 auto; }

.section-label {
    font-family: 'Azeret Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--dust);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(138, 134, 152, 0.25);
}

.label-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 5.5vw, 4.4rem);
    color: var(--spotlight);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 28px;
}

.section-heading em { font-style: italic; font-weight: 600; }
.hl-coral  { color: var(--coral);  }
.hl-gold   { color: var(--gold);   }
.hl-violet { color: var(--violet); }

.section-text {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    color: var(--spotlight);
    opacity: 0.78;
    margin-bottom: 18px;
    max-width: 560px;
}

.section-text-muted { opacity: 0.55; font-size: 0.98rem; }

/* ---------- Aside (decorative pattern annotations) ---------- */
.section-aside {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: 'Azeret Mono', monospace;
    z-index: 5;
    opacity: 0;
    transition: opacity 1.4s ease 0.4s;
}

.section-content.visible ~ .section-aside { opacity: 1; }
.juggle-section .section-aside { opacity: 0; }
.juggle-section .section-content.visible + .section-aside { opacity: 1; }

.aside-right { right: auto; left: 8%; }

.aside-stat {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 4rem;
    color: rgba(245, 200, 66, 0.15);
    line-height: 1;
    letter-spacing: -0.04em;
}

.aside-key {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--dust);
    text-transform: uppercase;
    padding-left: 18px;
    position: relative;
}

.aside-key::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

/* ---------- Arc demo ---------- */
.arc-demo {
    margin-top: 48px;
    padding: 24px 28px;
    border: 1px solid rgba(245, 200, 66, 0.18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.55), rgba(11, 15, 26, 0.3));
    backdrop-filter: blur(6px);
    transition: transform 0.6s var(--easing-throw), border-color 0.4s ease;
    cursor: default;
    max-width: 420px;
}

.arc-demo:hover {
    transform: translateY(-12px) rotate(-2deg);
    border-color: rgba(245, 200, 66, 0.5);
    box-shadow: 0 18px 40px rgba(245, 200, 66, 0.18);
}

.demo-arc-svg { width: 100%; height: auto; display: block; }

.arc-ball {
    cx: 30; cy: 110;
    animation: arc-travel 3.4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(245, 200, 66, 0.7));
}

@keyframes arc-travel {
    0%   { cx: 30;  cy: 110; }
    25%  { cx: 105; cy: 35;  }
    50%  { cx: 180; cy: 18;  }
    75%  { cx: 255; cy: 35;  }
    100% { cx: 330; cy: 110; }
}

/* ---------- Rhythm section ---------- */
.rhythm-display {
    margin-top: 48px;
    padding: 32px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.5), rgba(11, 15, 26, 0.2));
    backdrop-filter: blur(6px);
    transition: transform 0.6s var(--easing-throw), border-color 0.4s ease;
    max-width: 540px;
}

.rhythm-display:hover {
    transform: translateY(-12px) rotate(2deg);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 18px 40px rgba(139, 92, 246, 0.2);
}

.rhythm-staff {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    height: 36px;
    position: relative;
}

.rhythm-staff::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 134, 152, 0.35), transparent);
    z-index: -1;
}

.rhythm-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    animation: rhythm-pulse 1.8s ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 14px currentColor;
}

.dot-coral  { background: var(--coral);  color: var(--coral);  }
.dot-gold   { background: var(--gold);   color: var(--gold);   }
.dot-violet { background: var(--violet); color: var(--violet); }

@keyframes rhythm-pulse {
    0%, 100% { transform: scale(0.85); opacity: 0.45; }
    50%      { transform: scale(1.4);  opacity: 1;    }
}

.rhythm-meta {
    font-family: 'Azeret Mono', monospace;
    font-size: 0.7rem;
    color: var(--dust);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ---------- Cascade display (true 3-ball cascade animation) ---------- */
.cascade-display {
    position: relative;
    margin-top: 48px;
    width: 320px;
    height: 200px;
    max-width: 100%;
    border: 1px solid rgba(255, 107, 90, 0.18);
    border-radius: 16px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(21, 27, 46, 0.5), rgba(11, 15, 26, 0.2));
    backdrop-filter: blur(6px);
    transition: transform 0.6s var(--easing-throw), border-color 0.4s ease;
}

.cascade-display:hover {
    transform: translateY(-12px) rotate(-1.5deg);
    border-color: rgba(255, 107, 90, 0.5);
    box-shadow: 0 18px 40px rgba(255, 107, 90, 0.2);
}

.cascade-trails {
    position: absolute;
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    pointer-events: none;
}

.cascade-ball {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    position: absolute;
    top: 12px;
    left: 12px;
    box-shadow: 0 0 14px currentColor;
    will-change: transform;
}

.ball-1 {
    background: radial-gradient(circle at 30% 30%, #ffb1a4, var(--coral) 60%, #b03b2e);
    color: var(--coral);
    animation: cascade-throw 2.4s linear infinite;
}

.ball-2 {
    background: radial-gradient(circle at 30% 30%, #ffe49c, var(--gold) 60%, #a07f1c);
    color: var(--gold);
    animation: cascade-throw 2.4s linear infinite;
    animation-delay: -0.8s;
}

.ball-3 {
    background: radial-gradient(circle at 30% 30%, #c4a8ff, var(--violet) 60%, #5a36c2);
    color: var(--violet);
    animation: cascade-throw 2.4s linear infinite;
    animation-delay: -1.6s;
}

/* Two arcs that form the figure-8 cascade — a left-throw and a right-throw */
@keyframes cascade-throw {
    0%   { transform: translate(0,    150px); }
    16%  { transform: translate(80px, 30px);  }   /* peak left */
    33%  { transform: translate(160px, 150px); }  /* land right hand */
    50%  { transform: translate(160px, 150px); }  /* hold (caught) */
    66%  { transform: translate(80px, 30px);  }   /* peak right */
    83%  { transform: translate(0,    150px); }   /* land left hand */
    100% { transform: translate(0,    150px); }
}

/* ---------- Drop section ---------- */
.drop-glyph { margin: 48px auto 0; max-width: 240px; }
.drop-svg { width: 100%; height: auto; }

.drop-ball {
    animation: drop-fall 3s var(--easing-fall) infinite;
    filter: drop-shadow(0 4px 8px rgba(245, 200, 66, 0.5));
}

@keyframes drop-fall {
    0%        { cx: 30;  cy: 20;  opacity: 0; }
    10%       { opacity: 1; }
    50%       { cx: 95;  cy: 80;  }
    65%       { cx: 100; cy: 100; }
    70%, 75%  { cx: 100; cy: 100; transform: scaleY(0.7) translateY(0); }
    85%       { cx: 100; cy: 100; transform: scaleY(1.05); }
    100%      { cx: 100; cy: 100; opacity: 0.6; }
}

/* ---------- Finale prop ladder ---------- */
.finale-section {
    background: linear-gradient(180deg, var(--stage) 0%, rgba(21, 27, 46, 0.5) 50%, var(--stage) 100%);
}

.prop-ladder {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 480px;
}

.prop-rung {
    display: grid;
    grid-template-columns: 50px 90px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid rgba(138, 134, 152, 0.15);
    border-radius: 10px;
    background: rgba(21, 27, 46, 0.35);
    transition: transform 0.5s var(--easing-throw), border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: default;
}

.prop-rung:hover {
    transform: translateY(-12px) rotate(2deg);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 18px 40px rgba(139, 92, 246, 0.18);
}

.prop-rung[data-rung="3"]:hover { box-shadow: 0 18px 40px rgba(255, 107, 90, 0.25); border-color: rgba(255, 107, 90, 0.5); }
.prop-rung[data-rung="5"]:hover { box-shadow: 0 18px 40px rgba(245, 200, 66, 0.25); border-color: rgba(245, 200, 66, 0.5); }
.prop-rung[data-rung="7"]:hover { box-shadow: 0 18px 40px rgba(139, 92, 246, 0.25); border-color: rgba(139, 92, 246, 0.5); }
.prop-rung[data-rung="9"]:hover { box-shadow: 0 18px 40px rgba(45, 212, 168, 0.25); border-color: rgba(45, 212, 168, 0.5); }

.rung-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--spotlight);
    letter-spacing: -0.04em;
}

.rung-label {
    font-family: 'Azeret Mono', monospace;
    font-size: 0.75rem;
    color: var(--dust);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.rung-bar {
    display: block;
    width: 100%;
    height: 4px;
    background: rgba(138, 134, 152, 0.18);
    border-radius: 999px;
    overflow: hidden;
}

.rung-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 1.4s var(--easing-catch);
}

.prop-rung.visible .rung-fill { width: var(--w); }

/* ---------- Closing ---------- */
.closing-section {
    min-height: 90vh;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 107, 90, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 90% 70% at 50% 50%, var(--curtain) 0%, var(--stage) 70%);
    text-align: center;
}

.closing-content {
    z-index: 10;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s var(--easing-catch), transform 1.4s var(--easing-catch);
}

.closing-section.visible .closing-content {
    opacity: 1;
    transform: translateY(0);
}

.closing-eyebrow {
    display: inline-block;
    font-family: 'Azeret Mono', monospace;
    font-size: 0.7rem;
    color: var(--dust);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.closing-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 11vw, 9rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--coral) 0%, var(--gold) 50%, var(--violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    animation: gradient-shift 8s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.closing-subtitle {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--spotlight);
    opacity: 0.8;
    margin-bottom: 36px;
}

.closing-accent {
    width: 320px;
    max-width: 80%;
    margin: 0 auto 28px;
}

.closing-arc-svg { width: 100%; height: auto; display: block; }

.closing-signature {
    font-family: 'Azeret Mono', monospace;
    font-size: 0.75rem;
    color: var(--dust);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .juggle-section { padding: 80px 60px; }
    .section-aside { display: none; }
    .act-left .section-content,
    .act-right .section-content,
    .act-center .section-content { padding: 0; margin: 0 auto; }
    .metronome { display: none; }
}

@media (max-width: 768px) {
    .juggle-section { padding: 70px 24px; }
    .rhythm-nav { right: 10px; gap: 10px; }
    .nav-dot { width: 22px; height: 22px; }
    .nav-dot span { width: 6px; height: 6px; }
    .nav-dot.active span { width: 10px; height: 10px; }
    .hero-meta { gap: 18px; }
    .rhythm-staff { gap: 10px; flex-wrap: wrap; height: auto; }
    .prop-rung { grid-template-columns: 38px 70px 1fr; gap: 12px; padding: 12px 14px; }
    .rung-num { font-size: 1.6rem; }
    .hand-silhouette { width: 160px; height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
