/* ============================================================
   ENTER SCREEN (photo + name + rotating text)
   ============================================================ */

.splash {
    position: fixed;
    inset: 0;
    z-index: 100;                 /* Render page above everything */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.splash[hidden] {
    display: none;
}

.splash-photo {
    display: block;
    width: clamp(130px, 18vw, 200px);   /* photo size */
    height: auto;
}

/* The name is an <h1>, so it uses the same size, weight and colour as "Welcome to my portfolio!" */

.splash-roles {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(640px, 100%);
    height: 4.5em;                      /* room for 2 lines so the layout never jumps */
    overflow: hidden;
}

.splash-role {
    max-width: 580px;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-soft);
}

.splash-enter {
    margin-top: 8px;
    padding: 10px 26px;
    border: 1px solid var(--text);
    border-radius: 30px;
    background: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.5s ease, color 0.5s ease;
}

.splash-enter:hover {
    background-color: rgba(255, 254, 254, 0.74);
    color: var(--bg);
}