/* Quiet full-page splash — load + in-app navigation */

.page-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--mint-cream);
    background-image:
        linear-gradient(
            180deg,
            rgba(234, 244, 244, 0.9) 0%,
            rgba(246, 255, 248, 1) 42%,
            rgba(204, 227, 222, 0.35) 100%
        );
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

html.page-splash-open {
    overflow: hidden;
}

.page-splash-content {
    padding: 0 1.5rem;
    text-align: center;
}

.page-splash-name {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--dark-viridian);
}

.page-splash-given,
.page-splash-family {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.page-splash-given {
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    color: var(--viridian);
}

.page-splash-family {
    font-size: clamp(1.85rem, 4.8vw, 2.75rem);
}

.page-splash-progress {
    position: absolute;
    left: 50%;
    /* Was bottom: 18% (≈ top 82%). Name is centered (~50%). Midway: 66%. */
    top: 66%;
    bottom: auto;
    width: min(9rem, 40vw);
    height: 1px;
    transform: translateX(-50%);
    overflow: hidden;
    background: rgba(107, 144, 128, 0.18);
    border-radius: 1px;
}

.page-splash-progress::after {
    content: "";
    display: block;
    width: 40%;
    height: 100%;
    background: var(--viridian);
    border-radius: 1px;
    animation: page-splash-progress 1.4s ease-in-out infinite;
}

@keyframes page-splash-progress {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
    .page-splash-progress::after {
        animation: none;
        width: 100%;
        transform: none;
        opacity: 0.55;
    }
}
