/**
 * Text to Full Page Scale Widget Styles
 */

.pretpot-text-full-page-scale {
    position: relative;
    /* overflow clip is handled by GSAP's pin spacer — do NOT set overflow here,
       it breaks ScrollTrigger pinning */
}

/* The pinned layer that sticks to the viewport */
.pretpot-tfps-text-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    overflow: hidden; /* clips the text as it scales past viewport edges */
    /* z-index must be positive so the scaled text renders ABOVE subsequent sections */
    z-index: 1;
}

.pretpot-tfps-text {
    /*
     * Base font-size is large so that scale(1) already nearly fills the viewport.
     * GSAP will scale this from a small start value up to a value that floods the view.
     * We use vw so the text is always wider than the viewport at scale 1.
     */
    font-size: 60vw;
    text-align: center;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transform-origin: center center;
    will-change: transform;
    /* Start at the configured small scale — JS will override via GSAP */
    transform: scale(var(--tfps-start-scale, 0.075));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    color: #1a1a1a;
    /* Pointer events off while animating avoids accidental text-selection on scroll */
    pointer-events: none;
    user-select: none;
}