        /* Fix #5: Only page-specific overrides remain here.
           Base reset, tokens, typography, and components come from styles.css */
        :root {
            /* Hammer-on page accent colors (supplement shared tokens) */
            --accent-red: #ff6b6b;
            --accent-blue: #4dabf7;
            --accent-green: #51cf66;
            --accent-amber: #fcc419;
            --glow-red: rgba(255, 107, 107, 0.35);
            --glow-blue: rgba(77, 171, 247, 0.35);
            --glow-green: rgba(81, 207, 102, 0.30);
        }

        /* Override body layout for this standalone animation page */
        body {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        /* ── Ambient Glow Background ──────────────────────── */
        body::before {
            content: '';
            position: fixed;
            top: -40%;
            left: -20%;
            width: 80vw;
            height: 80vh;
            background: radial-gradient(ellipse, rgba(77, 171, 247, 0.06) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        body::after {
            content: '';
            position: fixed;
            bottom: -30%;
            right: -10%;
            width: 60vw;
            height: 60vh;
            background: radial-gradient(ellipse, rgba(255, 107, 107, 0.05) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        /* ── Header ───────────────────────────────────────── */
        .header {
            text-align: center;
            margin-bottom: 2rem;
            position: relative;
            z-index: 1;
        }

        .header .badge {
            display: inline-block;
            font-family: 'JetBrains Mono', monospace;
            font-size: var(--text-xs);
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--success-text);
            background: rgba(81, 207, 102, 0.1);
            border: 1px solid rgba(81, 207, 102, 0.2);
            padding: 0.3rem 0.9rem;
            border-radius: 99px;
            margin-bottom: 1rem;
        }

        .header h1 {
            font-size: clamp(1.8rem, 4vw, 2.6rem);
            font-weight: 800;
            letter-spacing: -0.03em;
            background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-blue) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header p {
            color: var(--text-muted);
            font-size: var(--text-base);
            margin-top: 0.5rem;
            max-width: 480px;
            line-height: 1.6;
        }

        /* ── Main Card ────────────────────────────────────── */
        .card {
            position: relative;
            z-index: 1;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 2rem;
            box-shadow:
                0 4px 30px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
            max-width: 720px;
            width: 100%;
        }

        /* ── SVG Container ────────────────────────────────── */
        .svg-wrap {
            display: flex;
            justify-content: center;
            margin-bottom: 1.5rem;
        }

        .svg-wrap svg {
            width: 100%;
            max-width: 640px;
            height: auto;
        }

        /* ── Legend ────────────────────────────────────────── */
        .legend {
            display: flex;
            flex-wrap: wrap;
            gap: 1.2rem;
            justify-content: center;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            font-size: var(--text-sm);
            color: var(--text-muted);
        }

        .legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .legend-dot.red {
            background: var(--accent-red);
            box-shadow: 0 0 6px var(--glow-red);
        }

        .legend-dot.blue {
            background: var(--accent-blue);
            box-shadow: 0 0 6px var(--glow-blue);
        }

        .legend-dot.green {
            background: var(--accent-green);
            box-shadow: 0 0 6px var(--glow-green);
        }

        .legend-dot.amber {
            background: var(--accent-amber);
        }

        /* ── Step Indicator Bar ───────────────────────────── */
        .steps-bar {
            display: flex;
            gap: 0.5rem;
            justify-content: center;
            margin-top: 1.2rem;
        }

        .step-pill {
            font-family: 'JetBrains Mono', monospace;
            font-size: var(--text-sm);
            padding: 0.35rem 0.8rem;
            border-radius: 8px;
            background: var(--bg-glass);
            border: 1px solid var(--border);
            color: var(--text-muted);
            animation: stepHighlight 4.5s infinite;
        }

        .step-pill:nth-child(1) {
            animation-delay: 0s;
        }

        .step-pill:nth-child(2) {
            animation-delay: 1.5s;
        }

        .step-pill:nth-child(3) {
            animation-delay: 3s;
        }

        @keyframes stepHighlight {

            0%,
            5% {
                color: var(--success-text);
                border-color: rgba(81, 207, 102, 0.4);
                background: rgba(81, 207, 102, 0.08);
            }

            30%,
            100% {
                color: var(--text-muted);
                border-color: var(--border);
                background: var(--bg-glass);
            }
        }

        /* ── Footer ───────────────────────────────────────── */
        .footer {
            margin-top: 2rem;
            text-align: center;
            font-size: var(--text-sm);
            color: var(--text-muted);
            opacity: 0.5;
            position: relative;
            z-index: 1;
        }

        /* ═══════════════════════════════════════════════════
       SVG ANIMATION KEYFRAMES (CSS driven)
       ═══════════════════════════════════════════════════ */

        /* -- Index finger: already pressing fret 5 (stays) -- */
        .finger-index {
            animation: indexPress 4.5s ease infinite;
        }

        @keyframes indexPress {
            0% {
                opacity: 0;
                transform: translateY(-18px);
            }

            8% {
                opacity: 1;
                transform: translateY(0);
            }

            90% {
                opacity: 1;
                transform: translateY(0);
            }

            100% {
                opacity: 0;
                transform: translateY(-18px);
            }
        }

        /* -- Middle finger: hammer-on to fret 7 -- */
        .finger-middle {
            animation: hammerOn 4.5s ease infinite;
        }

        @keyframes hammerOn {

            0%,
            28% {
                opacity: 0;
                transform: translateY(-30px) scale(1);
            }

            33% {
                opacity: 1;
                transform: translateY(-30px) scale(1);
            }

            40% {
                opacity: 1;
                transform: translateY(2px) scale(1.08);
            }

            /* impact / squash */
            44% {
                opacity: 1;
                transform: translateY(-3px) scale(0.97);
            }

            /* bounce up */
            48% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }

            /* settle */
            90% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }

            100% {
                opacity: 0;
                transform: translateY(-30px) scale(1);
            }
        }

        /* -- Pluck flash on string at fret 5 -- */
        .pluck-flash {
            animation: pluckGlow 4.5s ease infinite;
        }

        @keyframes pluckGlow {

            0%,
            7% {
                opacity: 0;
            }

            10% {
                opacity: 1;
            }

            25% {
                opacity: 0.15;
            }

            40% {
                opacity: 0;
            }

            100% {
                opacity: 0;
            }
        }

        /* -- Hammer impact flash at fret 7 -- */
        .hammer-flash {
            animation: hammerGlow 4.5s ease infinite;
        }

        @keyframes hammerGlow {

            0%,
            39% {
                opacity: 0;
            }

            42% {
                opacity: 1;
            }

            55% {
                opacity: 0.15;
            }

            65% {
                opacity: 0;
            }

            100% {
                opacity: 0;
            }
        }

        /* -- String vibration (the B string, 2nd string) -- */
        .string-vibrate {
            animation: vibrateString 4.5s linear infinite;
        }

        @keyframes vibrateString {

            0%,
            9% {
                d: path("M 80,120 L 560,120");
                stroke: #c4c4c4;
            }

            10% {
                d: path("M 80,120 Q 200,155 320,120 Q 440,165 560,120");
                stroke: #fff;
            }

            12% {
                d: path("M 80,120 Q 200,163 320,120 Q 440,157 560,120");
                stroke: #fff;
            }

            14% {
                d: path("M 80,120 Q 200,157 320,120 Q 440,163 560,120");
                stroke: #eee;
            }

            16% {
                d: path("M 80,120 Q 200,162 320,120 Q 440,158 560,120");
                stroke: #ddd;
            }

            18% {
                d: path("M 80,120 Q 200,158 320,120 Q 440,162 560,120");
                stroke: #ddd;
            }

            20% {
                d: path("M 80,120 Q 200,161 320,120 Q 440,159 560,120");
                stroke: #ccc;
            }

            25% {
                d: path("M 80,120 L 560,120");
                stroke: #c4c4c4;
            }

            /* second vibration burst on hammer */
            40% {
                d: path("M 80,120 L 560,120");
                stroke: #c4c4c4;
            }

            42% {
                d: path("M 80,120 Q 200,153 320,120 Q 440,167 560,120");
                stroke: #fff;
            }

            44% {
                d: path("M 80,120 Q 200,165 320,120 Q 440,155 560,120");
                stroke: #fff;
            }

            46% {
                d: path("M 80,120 Q 200,156 320,120 Q 440,164 560,120");
                stroke: #eee;
            }

            48% {
                d: path("M 80,120 Q 200,163 320,120 Q 440,157 560,120");
                stroke: #ddd;
            }

            50% {
                d: path("M 80,120 Q 200,158 320,120 Q 440,162 560,120");
                stroke: #ddd;
            }

            55% {
                d: path("M 80,120 Q 200,161 320,120 Q 440,159 560,120");
                stroke: #ccc;
            }

            62% {
                d: path("M 80,120 L 560,120");
                stroke: #c4c4c4;
            }

            100% {
                d: path("M 80,120 L 560,120");
                stroke: #c4c4c4;
            }
        }

        /* -- Step labels -- */
        .label-step1 {
            animation: showLabel1 4.5s ease infinite;
        }

        @keyframes showLabel1 {

            0%,
            5% {
                opacity: 0;
                transform: translateY(6px);
            }

            10% {
                opacity: 1;
                transform: translateY(0);
            }

            28% {
                opacity: 1;
                transform: translateY(0);
            }

            33% {
                opacity: 0;
                transform: translateY(-4px);
            }

            100% {
                opacity: 0;
            }
        }

        .label-step2 {
            animation: showLabel2 4.5s ease infinite;
        }

        @keyframes showLabel2 {

            0%,
            32% {
                opacity: 0;
                transform: translateY(6px);
            }

            38% {
                opacity: 1;
                transform: translateY(0);
            }

            60% {
                opacity: 1;
                transform: translateY(0);
            }

            66% {
                opacity: 0;
                transform: translateY(-4px);
            }

            100% {
                opacity: 0;
            }
        }

        .label-step3 {
            animation: showLabel3 4.5s ease infinite;
        }

        @keyframes showLabel3 {

            0%,
            62% {
                opacity: 0;
                transform: translateY(6px);
            }

            68% {
                opacity: 1;
                transform: translateY(0);
            }

            88% {
                opacity: 1;
                transform: translateY(0);
            }

            94% {
                opacity: 0;
                transform: translateY(-4px);
            }

            100% {
                opacity: 0;
            }
        }

        /* -- Note labels -- */
        .note-a {
            animation: noteAFlash 4.5s ease infinite;
        }

        @keyframes noteAFlash {

            0%,
            8% {
                opacity: 0.3;
            }

            10% {
                opacity: 1;
            }

            30% {
                opacity: 1;
            }

            35% {
                opacity: 0.3;
            }

            100% {
                opacity: 0.3;
            }
        }

        .note-b {
            animation: noteBFlash 4.5s ease infinite;
        }

        @keyframes noteBFlash {

            0%,
            38% {
                opacity: 0.3;
            }

            42% {
                opacity: 1;
            }

            80% {
                opacity: 1;
            }

            85% {
                opacity: 0.3;
            }

            100% {
                opacity: 0.3;
            }
        }

        /* -- Pick icon -- */
        .pick-icon {
            animation: pickStrum 4.5s ease infinite;
            transform-origin: 90px 190px;
        }

        @keyframes pickStrum {

            0%,
            5% {
                opacity: 0;
                transform: translate(0, 10px) rotate(-15deg);
            }

            8% {
                opacity: 0.9;
                transform: translate(0, 0) rotate(0deg);
            }

            11% {
                opacity: 0.9;
                transform: translate(0, -6px) rotate(8deg);
            }

            16% {
                opacity: 0;
                transform: translate(0, -12px) rotate(12deg);
            }

            100% {
                opacity: 0;
            }
        }

        /* -- Sound wave rings -- */
        .sound-ring {
            animation: ringExpand 4.5s ease infinite;
            transform-origin: center;
        }

        .sound-ring.ring1 {
            animation-delay: 0s;
        }

        .sound-ring.ring2 {
            animation-delay: 0.15s;
        }

        @keyframes ringExpand {

            0%,
            40% {
                opacity: 0;
                r: 8;
            }

            43% {
                opacity: 0.6;
                r: 8;
            }

            60% {
                opacity: 0;
                r: 28;
            }

            100% {
                opacity: 0;
                r: 28;
            }
        }

        /* ── Absorbed technique sections (bends / pull-off / slides) ── */
        .tech-sections {
            text-align: left;
        }

        .tech-sections h3 {
            margin-bottom: 0.25rem;
        }

        .tech-article {
            padding-top: 1rem;
            margin-top: 1rem;
            border-top: 1px solid var(--border);
        }

        .tech-article h4 {
            color: var(--text-primary);
            margin-bottom: 0.4rem;
        }

        .tech-article p {
            color: var(--text-secondary);
            font-size: var(--text-base);
            line-height: 1.6;
        }

        .tech-article ul {
            margin-top: 0.5rem;
            padding-left: 1.2rem;
            color: var(--text-muted);
            font-size: var(--text-sm);
            line-height: 1.6;
        }

        .tech-article:focus-visible {
            outline: 2px solid var(--accent-blue);
            outline-offset: 4px;
        }

        /* Honor prefers-reduced-motion: freeze the looping demo to a static diagram */
        @media (prefers-reduced-motion: reduce) {

            .step-pill,
            .finger-index,
            .finger-middle,
            .pluck-flash,
            .hammer-flash,
            .string-vibrate,
            .label-step1,
            .label-step2,
            .label-step3,
            .note-a,
            .note-b,
            .pick-icon,
            .sound-ring {
                animation: none;
            }
        }

        /* Responsive */
        @media (max-width: 500px) {
            .card {
                padding: 1.2rem;
                border-radius: 14px;
            }

            .legend {
                gap: 0.6rem;
            }
        }

        .tech-main { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
        .tech-header { padding-top: 1rem; }
        .mentor-wide { max-width: 720px; width: 100%; text-align: left; margin-bottom: 2rem; }
        .checklist-card { max-width: 720px; width: 100%; text-align: left; }
        .tech-checklist { line-height: 1.6; }

        /* Interactive, persisted practice checklist (mirrors finger-independence's
           drill-checklist pattern) */
        .tech-checklist.tech-checklist-interactive {
            list-style: none;
            padding: 0;
        }

        .tech-checklist-interactive label {
            display: flex;
            align-items: baseline;
            gap: var(--sp-sm);
            cursor: pointer;
            padding: var(--sp-xs) 0;
        }

        .tech-checklist-interactive input[type='checkbox'] {
            width: 1.1em;
            height: 1.1em;
            accent-color: var(--accent);
            cursor: pointer;
            flex-shrink: 0;
        }

        .tech-checklist-interactive input:checked + span {
            color: var(--text-muted);
            text-decoration: line-through;
        }

        /* ── Technique Switcher Tabs ────────────────────────── */
        .technique-tabs-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: center;
            max-width: 720px;
            width: 100%;
            margin-bottom: 1.5rem;
        }

        .technique-tab {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.45rem 1rem;
            font-size: var(--text-sm);
            font-weight: 600;
            font-family: inherit;
            border-radius: 99px;
            border: 1px solid var(--border);
            background: var(--bg-card);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .technique-tab:hover {
            border-color: var(--border-hover);
            color: var(--text-primary);
            background: var(--bg-elevated);
        }

        .technique-tab.active {
            background: var(--accent-fill);
            color: #ffffff;
            border-color: var(--accent-fill);
            box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
        }

        .technique-tab:focus-visible {
            outline: 2px solid var(--border-focus);
            outline-offset: 2px;
        }

        /* ── Technique Toolbar ─────────────────────────────── */
        .technique-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.75rem;
            max-width: 720px;
            width: 100%;
            margin-bottom: 1rem;
        }

        .technique-toolbar-left {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .technique-audio-feedback {
            color: var(--text-muted);
            font-size: var(--text-xs);
        }

        /* ── Difficulty Badges ─────────────────────────────── */
        .badge-difficulty {
            font-size: var(--text-xs);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 0.2rem 0.65rem;
            border-radius: 99px;
        }

        .badge-difficulty.badge-beginner {
            background: rgba(34, 197, 94, 0.12);
            color: var(--success-text);
            border: 1px solid rgba(34, 197, 94, 0.25);
        }

        .badge-difficulty.badge-intermediate {
            background: rgba(245, 158, 11, 0.12);
            color: var(--warning-text);
            border: 1px solid rgba(245, 158, 11, 0.25);
        }

        .badge-difficulty.badge-advanced {
            background: rgba(239, 68, 68, 0.12);
            color: var(--error-text);
            border: 1px solid rgba(239, 68, 68, 0.25);
        }

        /* ── Technique Step Breakdown Card ─────────────────── */
        .technique-breakdown-card {
            max-width: 720px;
            width: 100%;
            text-align: left;
            margin-bottom: 1.5rem;
        }

        .technique-steps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }

        .technique-step-card {
            background: var(--bg-glass);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .technique-step-num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: var(--accent-fill);
            color: #ffffff;
            font-size: var(--text-xs);
            font-weight: 700;
        }

        .technique-step-title {
            font-weight: 600;
            font-size: var(--text-sm);
            color: var(--text-primary);
        }

        .technique-step-desc {
            font-size: var(--text-xs);
            color: var(--text-muted);
            line-height: 1.45;
        }

        .technique-shortcuts {
            border-top: 1px solid var(--border);
            padding-top: 0.75rem;
            color: var(--text-muted);
        }

        .tech-studio-promo-card {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(16, 185, 129, 0.1) 100%);
            border: 1px solid var(--accent-fill);
            border-radius: var(--r-md, 14px);
            padding: 16px;
            margin-top: 1rem;
        }

