* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(160deg, #ff6ec4 0%, #7873f5 50%, #4facfe 100%);
    background-attachment: fixed;
    color: #2b2140;
}

.page {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 18px 60px;
}

.profile {
    text-align: center;
    color: #fff;
    margin-bottom: 28px;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.name {
    margin: 14px 0 4px;
    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bio {
    margin: 0;
    font-size: 14px;
    opacity: 0.92;
    line-height: 1.4;
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card {
    display: block;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    color: #2b2140;
    box-shadow: 0 10px 24px rgba(43, 33, 64, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    animation: card-in 0.5s ease forwards;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:active {
    transform: scale(0.98);
}

@keyframes card-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* row layout: image left, title top-right, description below title */
.card--row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}
.card--row .card-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.card--row .card-image--logo {
    object-fit: contain;
    padding: 5px;
    background: #fff;
}
.card--row .card-text {
    min-width: 0;
}
.card--row .card-title {
    font-weight: 700;
    font-size: 15px;
}
.card--row .card-description {
    font-size: 13px;
    color: #6b647f;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* stacked layout: image full-width 16:9 on top, title + description below */
.card--stacked .card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.card--stacked .card-image--logo {
    object-fit: contain;
    padding: 26px;
    background: #fff;
}
.card--stacked .card-text {
    padding: 12px 14px 14px;
}
.card--stacked .card-title {
    font-weight: 700;
    font-size: 16px;
}
.card--stacked .card-description {
    font-size: 13px;
    color: #6b647f;
    margin-top: 4px;
}

.empty {
    text-align: center;
    color: #fff;
    opacity: 0.85;
}

.contact-separator {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    margin: 26px auto 0;
    width: 60%;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 34px;
    margin-top: 20px;
}

.contact-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(16px);
    animation: card-in 0.5s ease forwards;
    transition: transform 0.15s ease;
}

.contact-icon:active {
    transform: scale(0.88);
}

.contact-icon img {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
}

.contact-icon-label {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}
