/* =========================================================
   GOONS · INSTRUMENT LAB
   Interactive instrument discovery section (homepage)
   Palette: #00ffff / #00ff88 / #ff00ff / #ff0080 / #ffff00
   ========================================================= */

.instrument-lab {
    position: relative;
    padding: 100px 20px 90px;
    margin-top: 80px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0, 255, 255, 0.06), transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 0, 255, 0.06), transparent 55%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.98));
}

.instrument-lab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.6), rgba(255, 0, 255, 0.6), transparent);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.instrument-lab::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.02) 2px,
        rgba(0, 255, 255, 0.02) 4px
    );
}

.instrument-lab-container {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}

.instrument-lab .section-header {
    margin-bottom: 40px;
}

.instrument-lab .section-badge {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid rgba(0, 255, 136, 0.5);
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #00ff88;
    margin-bottom: 25px;
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.instrument-lab .section-title {
    font-size: 48px;
    margin: 0 0 20px 0;
    font-weight: 800;
    letter-spacing: -1px;
}

.instrument-lab .section-description {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Tabs (reuse .filter-tabs / .filter-tab) ---------- */
.lab-tabs-wrapper {
    scroll-margin-top: 90px;
    margin: 0 0 30px;
}

.lab-tabs-wrapper .filter-tab {
    padding: 10px 20px;
    font-size: 14px;
    user-select: none;
}

.lab-tabs-wrapper .filter-tab .lab-tab-icon {
    font-size: 18px;
    line-height: 1;
}

/* ---------- Deck ---------- */
.lab-stage {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.lab-deck {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.6),
        inset 0 0 80px rgba(0, 255, 255, 0.04);
    transition: border-color 0.4s, box-shadow 0.4s;
}

.lab-deck.is-live {
    border-color: rgba(0, 255, 136, 0.45);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 255, 136, 0.15),
        inset 0 0 80px rgba(0, 255, 136, 0.05);
}

.lab-viewport {
    overflow: hidden;
}

.lab-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lab-slide {
    min-width: 100%;
    padding: 24px;
    text-align: left;
}

.lab-slide-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lab-slide-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.lab-slide-tag {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

.lab-live {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #00ff88;
    white-space: nowrap;
}

.lab-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: lab-pulse 1.4s infinite;
}

@keyframes lab-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.lab-hint {
    margin-top: 16px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.7;
}

.lab-hint kbd {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    padding: 2px 7px;
    margin: 0 1px;
    font-size: 11px;
    font-family: inherit;
    font-weight: 700;
    color: #fff;
}

.lab-hint b {
    color: #00ffff;
}

/* ---------- Arrows ---------- */
.lab-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.lab-arrow:hover {
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lab-arrow.prev { left: -23px; }
.lab-arrow.next { right: -23px; }

@media (max-width: 1080px) {
    .lab-arrow.prev { left: 8px; }
    .lab-arrow.next { right: 8px; }
}

/* ---------- CTA row (per instrument) ---------- */
.lab-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lab-cta .launch-btn {
    padding: 13px 32px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lab-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s;
}

.lab-btn-ghost:hover {
    border-color: #ff00ff;
    color: #ff00ff;
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.25);
    transform: translateY(-2px);
}

.lab-footer-note {
    margin-top: 30px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.lab-footer-note a {
    color: #00ffff;
    text-decoration: none;
    font-weight: 700;
}

.lab-footer-note a:hover { text-decoration: underline; }

/* =========================================================
   PIANO
   ========================================================= */
.lab-keys {
    position: relative;
    display: flex;
    align-items: flex-start;
    height: 170px;
    user-select: none;
    touch-action: none;
}

.lab-wk {
    flex: 1;
    height: 100%;
    margin: 0 2px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, #f6f4ff, #cbc7dd);
    box-shadow: 0 5px 0 #8b87a0;
    cursor: pointer;
    position: relative;
    transition: height 0.06s, background 0.06s, box-shadow 0.06s;
}

/* Pressed: the key sinks into its own 5px "thickness" instead of being
   translated down, so the top edge stays put and no gap opens above it. */
.lab-wk.on {
    background: linear-gradient(180deg, #00ffff, #00ff88);
    height: calc(100% + 4px);
    box-shadow: 0 1px 0 #039e78, 0 0 30px rgba(0, 255, 200, 0.6);
}

.lab-wk span {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #6b6880;
}

.lab-bk {
    position: absolute;
    top: 0;
    width: 6%;
    height: 62%;
    background: linear-gradient(180deg, #2b2840, #0c0b14);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 5px 0 #000;
    cursor: pointer;
    z-index: 3;
    transition: height 0.06s, background 0.06s, box-shadow 0.06s;
}

.lab-bk.on {
    background: linear-gradient(180deg, #ff00ff, #ff0080);
    height: calc(62% + 4px);
    box-shadow: 0 1px 0 #7a0044, 0 0 30px rgba(255, 0, 255, 0.6);
}

/* =========================================================
   DRUMPAD
   ========================================================= */
.lab-pads {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    touch-action: none;
}

.lab-pad {
    aspect-ratio: 1.4;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    user-select: none;
    transition: all 0.08s;
}

.lab-pad:hover { border-color: currentColor; }

.lab-pad b {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.lab-pad small {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.35);
}

.lab-pad.on {
    transform: scale(0.93);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 35px currentColor, inset 0 0 25px rgba(255, 255, 255, 0.1);
    border-color: currentColor;
}

@media (max-width: 560px) {
    .lab-pad b { font-size: 10px; }
}

/* =========================================================
   STEP SEQUENCER
   ========================================================= */
.lab-seq-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.lab-mini {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    padding: 9px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
}

.lab-mini:hover {
    color: #fff;
    border-color: rgba(0, 255, 255, 0.5);
}

.lab-mini.go {
    background: linear-gradient(135deg, #00ffff, #00ff88);
    border-color: transparent;
    color: #000;
    box-shadow: 0 5px 20px rgba(0, 255, 200, 0.4);
}

.lab-mini.stopping {
    background: rgba(255, 0, 128, 0.15);
    border-color: rgba(255, 0, 128, 0.6);
    color: #ff0080;
}

.lab-tempo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.lab-tempo span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
}

.lab-tempo b {
    font-size: 18px;
    font-weight: 900;
    color: #00ff88;
    min-width: 38px;
    text-align: right;
}

.lab-seq-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
}

.lab-seq-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 560px;
}

.lab-seq-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lab-seq-name {
    width: 82px;
    flex: 0 0 82px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: right;
    padding-right: 6px;
    cursor: pointer;
    transition: filter 0.2s;
}

.lab-seq-name:hover { filter: brightness(1.4); }

.lab-cell {
    flex: 1;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.1s;
}

.lab-cell:nth-child(4n+2) { background: rgba(255, 255, 255, 0.06); }

.lab-cell:hover { border-color: rgba(0, 255, 255, 0.5); }

.lab-cell.act {
    border-color: transparent;
    box-shadow: 0 0 14px currentColor;
}

.lab-cell.col {
    outline: 2px solid rgba(0, 255, 136, 0.7);
    outline-offset: -2px;
}

.lab-seq-head {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 6px;
}

.lab-seq-head .lab-seq-name { visibility: hidden; }

.lab-seq-num {
    flex: 1;
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
}

/* =========================================================
   TURNTABLE
   ========================================================= */
.lab-tt {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

@media (max-width: 780px) {
    .lab-tt { grid-template-columns: 1fr; }
}

.lab-deck-body {
    position: relative;
    padding: 24px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(ellipse at 30% 10%, rgba(255, 0, 255, 0.1), transparent 60%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.6));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -20px 50px rgba(0, 0, 0, 0.6);
}

.lab-deck-brand {
    position: absolute;
    bottom: 14px;
    left: 20px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.2);
}

.lab-platter-wrap {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.lab-strobe {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    opacity: 0.45;
    background: repeating-conic-gradient(rgba(0, 255, 136, 0.7) 0 1.1deg, transparent 1.1deg 4.4deg);
    -webkit-mask: radial-gradient(circle, transparent 0 49%, #000 49% 51%, transparent 51%);
    mask: radial-gradient(circle, transparent 0 49%, #000 49% 51%, transparent 51%);
}

.lab-platter {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    cursor: grab;
    touch-action: none;
    will-change: transform;
    background:
        repeating-radial-gradient(circle, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px),
        radial-gradient(circle, #232333 0 16%, #0b0b12 16.5% 88%, #1a1a26 88.5% 100%);
    box-shadow: 0 0 0 8px #14141d, 0 0 0 10px rgba(0, 255, 255, 0.25), 0 16px 45px rgba(0, 0, 0, 0.8);
}

.lab-platter:active { cursor: grabbing; }

.lab-platter .lab-mark {
    position: absolute;
    top: 9%;
    left: 50%;
    width: 2px;
    height: 16%;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
    border-radius: 2px;
}

.lab-label-disc {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34%;
    height: 34%;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.3;
    color: #fff;
    background: conic-gradient(from 0deg, #ff00ff, #00ffff, #00ff88, #ff00ff);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.7);
}

.lab-label-disc::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000;
    box-shadow: inset 0 0 5px #000;
}

.lab-arm {
    position: absolute;
    top: 4px;
    right: -6px;
    width: 64px;
    height: 160px;
    z-index: 5;
    pointer-events: none;
}

.lab-arm-pivot {
    position: absolute;
    top: 0;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #4c4c68, #1a1a26);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.lab-arm-tube {
    position: absolute;
    top: 13px;
    right: 20px;
    width: 4px;
    height: 120px;
    border-radius: 3px;
    transform-origin: top center;
    transform: rotate(27deg);
    background: linear-gradient(180deg, #5c5c74, #2a2a3c);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.lab-arm-tube.play { transform: rotate(11deg); }

.lab-arm-tube::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: -5px;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: linear-gradient(160deg, #6d6d8a, #29293b);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.lab-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lab-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 15px;
}

.lab-panel-label {
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
}

.lab-rpm-row { display: flex; gap: 8px; }

.lab-source-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lab-rpm {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 9px 0;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.6px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
}

.lab-rpm.on {
    background: rgba(0, 255, 255, 0.12);
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.25);
}

.lab-pitch-box {
    display: flex;
    gap: 16px;
    align-items: center;
}

.lab-pitch-val {
    font-size: 16px;
    font-weight: 900;
    color: #00ffff;
}

.lab-bpm-val {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.instrument-lab input[type=range] {
    width: 100%;
    accent-color: #00ff88;
    cursor: pointer;
}

.instrument-lab input[type=range].vert {
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    writing-mode: vertical-lr;
    direction: rtl;
    width: 24px;
    height: 100px;
}

.lab-led {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.lab-led i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.lab-led.on i {
    background: #00ff88;
    box-shadow: 0 0 12px #00ff88;
}

/* =========================================================
   SYNTH
   ========================================================= */
.lab-syn {
    position: relative;
    padding: 18px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 0, 255, 0.2);
    background:
        radial-gradient(120% 80% at 50% -20%, rgba(255, 0, 255, 0.14), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.5));
}

.lab-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.lab-pst {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 7px 16px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
}

.lab-pst.on {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.2));
    border-color: #ff00ff;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.35);
}

.lab-scope {
    display: block;
    width: 100%;
    height: 90px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 0, 255, 0.2);
    margin-bottom: 14px;
}

.lab-wave-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.lab-wv {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 7px 15px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
}

.lab-wv.on {
    border-color: #00ffff;
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

.lab-mods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

@media (max-width: 640px) {
    .lab-mods { grid-template-columns: repeat(2, 1fr); }
}

.lab-mod {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 11px;
}

.lab-mod-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.lab-mod label {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.lab-mod b {
    font-size: 12px;
    font-weight: 900;
    color: #00ffff;
}

.lab-mod input[type=range] { accent-color: #ff00ff; }

.lab-syn-keys {
    position: relative;
    display: flex;
    align-items: flex-start;
    height: 110px;
    user-select: none;
    touch-action: none;
}

.lab-sk {
    flex: 1;
    height: 100%;
    margin: 0 2px;
    border-radius: 0 0 8px 8px;
    position: relative;
    cursor: pointer;
    transition: height 0.06s, background 0.06s, box-shadow 0.06s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.5));
    box-shadow: inset 0 -14px 24px rgba(0, 0, 0, 0.5);
}

/* Same as the piano: grow downwards instead of translating, so the top
   edge stays aligned with the neighbouring keys. */
.lab-sk.on {
    background: linear-gradient(180deg, #00ffff, #ff00ff);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    height: calc(100% + 3px);
}

.lab-sk span {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
}

.lab-sk.on span { color: #000; }

/* =========================================================
   THEREMIN
   ========================================================= */
.lab-thx {
    position: relative;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    cursor: crosshair;
    touch-action: none;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.45);
    background-image:
        linear-gradient(90deg, rgba(0, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(255, 0, 255, 0.08) 1px, transparent 1px);
    background-size: 36px 36px;
}

.lab-cross {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 255, 136, 0.6), transparent 70%);
}

.lab-thx-info {
    position: absolute;
    bottom: 14px;
    left: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .instrument-lab { padding: 70px 15px 60px; }
    .instrument-lab .section-title { font-size: 32px; }
    .instrument-lab .section-description { font-size: 15px; }
    .lab-slide { padding: 16px; }
    .lab-keys { height: 130px; }
    .lab-platter-wrap { width: 210px; height: 210px; }
    .lab-cta .launch-btn,
    .lab-btn-ghost { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .lab-track { transition: height 0.4s ease; }
    .lab-live i { animation: none; }
}
