/* ==========================================================================
   PHOTO PHENAKISTOSCOPE (RAPID EXPRESSION & POSTURE REEL)
   Rotating character / photo states in the exact same camera spot
   Strict Zero-Emoji Policy Enforced
   ========================================================================== */

.phenakistoscope-section {
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-hairline);
    background: radial-gradient(circle at 50% 30%, rgba(17, 132, 92, 0.06), transparent 70%);
}

.phenakistoscope-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .phenakistoscope-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Left Narrative Column */
.phenakistoscope-meta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.phenakistoscope-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--color-emerald);
    text-transform: uppercase;
}

.phenakistoscope-title {
    font-family: var(--font-anton);
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: var(--color-mint);
    text-transform: uppercase;
}

.phenakistoscope-desc {
    font-family: var(--font-helvetica);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-light);
    max-width: 520px;
}

.phenakistoscope-controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.phenakistoscope-mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-gray-light);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 180ms ease;
}

.phenakistoscope-mode-btn.active,
.phenakistoscope-mode-btn:hover {
    background: var(--color-emerald);
    color: #0c0b08;
    border-color: var(--color-mint);
    font-weight: 700;
}

/* Right Phenakistoscope Chamber */
.phenakistoscope-chamber {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.phenakistoscope-frame-box {
    position: relative;
    width: 380px;
    height: 480px;
    max-width: 100%;
    border-radius: 14px;
    background: #090806;
    border: 2px solid rgba(233, 250, 230, 0.22);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(17, 132, 92, 0.18);
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.phenakistoscope-frame-box:hover {
    border-color: var(--color-mint);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.95), 0 0 36px rgba(17, 132, 92, 0.35);
}

/* Film Spool Corner Marks */
.phenakistoscope-frame-box::before,
.phenakistoscope-frame-box::after {
    content: '+';
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: rgba(233, 250, 230, 0.4);
    z-index: 10;
    pointer-events: none;
}

.phenakistoscope-frame-box::before {
    top: 10px;
    left: 12px;
}

.phenakistoscope-frame-box::after {
    top: 10px;
    right: 12px;
}

/* The Stationary Canvas/Image Stage */
.phenakistoscope-viewport {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.phenakistoscope-svg-stage {
    width: 100%;
    height: 100%;
    display: block;
}

/* Film Sprocket Strip */
.phenakistoscope-sprocket-top,
.phenakistoscope-sprocket-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 8;
    pointer-events: none;
}

.phenakistoscope-sprocket-top { top: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.phenakistoscope-sprocket-bottom { bottom: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }

.sprocket-hole {
    width: 12px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* Telemetry Badge */
.phenakistoscope-telemetry-pill {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(14, 13, 10, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(233, 250, 230, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--color-mint);
    white-space: nowrap;
    z-index: 9;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* Scrub Guide Banner */
.phenakistoscope-scrub-hint {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--color-gray-mid);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phenakistoscope-scrub-hint span {
    color: var(--color-mint);
}

/* Frame Dots Rail */
.phenakistoscope-dots-rail {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.phenakistoscope-dot {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-gray-mid);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 150ms ease;
}

.phenakistoscope-dot.active,
.phenakistoscope-dot:hover {
    background: var(--color-emerald);
    color: #0c0b08;
    border-color: var(--color-mint);
    font-weight: 700;
}
