/* ============================================================
   P23 Magic Text — Frontend Styles
   ============================================================ */

.p23mt-section {
    position: relative;
    width: 100%;
    padding: 120px 80px;
    overflow: hidden;
}

/* Overlay */
.p23mt-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: 0;
}

/* Inner wrapper */
.p23mt-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
}

/* Text container */
.p23mt-text {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    max-width: 900px;
    margin: 0;
    padding: 0;
    line-height: 1.1;
}

/* Each word wrapper */
.p23mt-word {
    position: relative;
    display: inline-flex;
    margin-right: 6px;
    margin-top: 10px;
    line-height: inherit;
    vertical-align: baseline;
}

/* Ghost — always visible at low opacity */
.p23mt-word-ghost {
    color: rgba(255, 255, 255, 0.15);
    display: block;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

/* Revealed word — overlaid on ghost, opacity driven by JS */
.p23mt-word-motion {
    position: absolute;
    inset: 0;
    color: #ffffff;
    display: block;
    white-space: nowrap;
    will-change: opacity;
    transition: none; /* JS handles this smoothly via rAF */
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .p23mt-section {
        padding: 80px 32px;
    }
}

@media (max-width: 480px) {
    .p23mt-section {
        padding: 60px 24px;
    }
}
