/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background-color: #0d0d0d;
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: #e8e8e8;
}

/* ── Split layout ─────────────────────────────────────────── */
.split {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

/* ── Each side ────────────────────────────────────────────── */
.side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    text-decoration: none;
    color: #e8e8e8;
    transition: background-color 0.4s ease, opacity 0.4s ease;
}

/* When hovering one side, dim the other */
.split:has(#side-elias:hover) #side-agnetha,
.split:has(#side-agnetha:hover) #side-elias {
    opacity: 0.35;
}

.side:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* ── Portrait circle ──────────────────────────────────────── */
.portrait {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #1e1e1e; /* shows if photo is missing */
    transition: border-color 0.4s ease;
}

.side:hover .portrait {
    border-color: rgba(255, 255, 255, 0.5);
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.side:hover .portrait img {
    filter: grayscale(0%);
}

/* ── Name text ────────────────────────────────────────────── */
.name {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ── Email text ───────────────────────────────────────────── */
.email {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: rgba(232, 232, 232, 0.45);
    margin-top: -16px; /* tucks it closer to the name */
}

/* ── Mobile: stack vertically ─────────────────────────────── */
@media (max-width: 600px) {
    .split {
        flex-direction: column;
    }

    .divider {
        width: 100%;
        height: 1px;
    }

    .side {
        flex: 1;
        padding: 40px 20px;
    }
}
