:root {
    --primary: #1C3861;
    --primary-dark: #163056;
    --primary-light: #2A4D7D;
    --teal: #4DB6AC;
    --gold: #FFD93D;
    --background: #F5F7FA;
    --surface: #FFFFFF;
    --soft: #F8F9FA;
    --border: #E5EAF1;
    --text: #1A1A1A;
    --muted: #757575;
    --shadow: 0 24px 65px rgba(28, 56, 97, 0.14);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--background); }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -10%, rgba(42, 77, 125, .18), transparent 42rem),
        var(--background);
    font-family: "Montserrat", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 28px;
}

.contact-card {
    width: min(100%, 480px);
    overflow: hidden;
    position: relative;
    padding: 28px;
    border: 1px solid rgba(229, 234, 241, .95);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.contact-card::before {
    content: "";
    display: block;
    height: 7px;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--teal));
}

.card-topline, .brand-mark, .social-links, .card-footer, .detail-row {
    display: flex;
    align-items: center;
}

.card-topline {
    justify-content: space-between;
    gap: 16px;
    margin-top: 5px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.brand-mark { gap: 8px; }

.brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.digital-label {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1.1px;
    text-align: right;
}

.profile-block {
    margin: 44px 0 24px;
    text-align: center;
}

.profile-photo {
    display: block;
    width: 116px;
    height: 116px;
    margin: 0 auto 20px;
    border: 5px solid var(--surface);
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-container, #E3E8F0);
    box-shadow: 0 0 0 1px var(--border), 0 12px 28px rgba(28, 56, 97, .16);
}

.profile-initials {
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(145deg, var(--primary), var(--primary-light));
    font-size: 48px;
    font-weight: 800;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.4px;
}

h1 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(28px, 8vw, 38px);
    font-weight: 900;
    letter-spacing: -1.3px;
    line-height: 1.08;
}

.job-title {
    margin: 13px 0 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.organization {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.bio {
    margin: 0 8px 26px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.primary-action {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 23px;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 10px 22px rgba(28, 56, 97, .2);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.primary-action:hover, .primary-action:focus-visible {
    box-shadow: 0 14px 28px rgba(28, 56, 97, .26);
    transform: translateY(-2px);
}

.action-icon {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.details {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--soft);
}

.detail-row {
    min-height: 64px;
    gap: 13px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.detail-row:last-child { border-bottom: 0; }

a.detail-row:hover { background: #eef2f7; }

.detail-row > span:last-child { min-width: 0; }

.detail-row small {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.detail-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 11px;
    color: var(--primary);
    background: #E3E8F0;
    font-size: 10px;
    font-weight: 900;
}

.social-links {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.social-links a {
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.social-links a:hover { border-color: var(--primary-light); background: #f2f5f9; }

.card-footer {
    gap: 10px;
    margin-top: 27px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.footer-line { height: 1px; flex: 1; background: var(--border); }

.page-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .4px;
    text-align: center;
}

@media (max-width: 420px) {
    .page-shell { padding: 20px 12px; }
    .contact-card { padding: 22px 18px; border-radius: 24px; }
    .digital-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .primary-action { transition: none; }
}
