:root {
    --brand: #049cd4;
    --brand-dark: #0778a2;
    --brand-deep: #053b52;
    --ink: #062b3b;
    --muted: #52717d;
    --white: #ffffff;
    --surface: rgba(255, 255, 255, 0.94);
    --border: rgba(6, 43, 59, 0.09);
    --shadow: 0 18px 50px rgba(0, 76, 106, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--brand);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 10% 5%, rgba(255, 255, 255, 0.25), transparent 30rem),
        radial-gradient(circle at 90% 30%, rgba(255, 229, 0, 0.16), transparent 22rem),
        linear-gradient(160deg, var(--brand) 0%, var(--brand) 42%, var(--brand-dark) 100%);
}

body::before,
body::after {
    position: fixed;
    z-index: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

body::before {
    width: 22rem;
    height: 22rem;
    top: -10rem;
    right: -10rem;
}

body::after {
    width: 15rem;
    height: 15rem;
    bottom: -8rem;
    left: -7rem;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: max(18px, env(safe-area-inset-top)) 14px max(28px, env(safe-area-inset-bottom));
}

.bio-card {
    position: relative;
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 32px 18px 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(236, 250, 255, 0.92), rgba(255, 255, 255, 0.98));
    box-shadow: var(--shadow);
}

.bio-card::before {
    position: absolute;
    width: 260px;
    height: 260px;
    top: -150px;
    left: -130px;
    border-radius: 50%;
    background: rgba(4, 156, 212, 0.12);
    content: "";
}

.share-button {
    position: absolute;
    z-index: 4;
    top: 16px;
    right: 16px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(4, 156, 212, 0.2);
    border-radius: 50%;
    color: var(--brand-deep);
    background: var(--white);
    box-shadow: none;
    cursor: pointer;
    font-size: 1.4rem;
}

.share-button:active {
    transform: scale(0.95);
}

.share-button img {
    display: block;
    width: 20px;
    height: 20px;
}

@media (hover: hover) {
    .share-button:hover img {
        filter: brightness(0) invert(1);
    }
}

.profile {
    position: relative;
    z-index: 1;
    text-align: center;
}

.profile-photo-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 2px auto 20px;
}

.profile-photo {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
    border: 5px solid var(--white);
    border-radius: 50%;
    background: linear-gradient(145deg, #58c3e8, var(--brand));
    box-shadow: 0 15px 30px rgba(0, 93, 128, 0.2);
}

.photo-orbit {
    position: absolute;
    border-radius: 50%;
    background: var(--brand-dark);
}

.photo-orbit-one {
    width: 24px;
    height: 24px;
    top: 1px;
    left: 7px;
}

.photo-orbit-two {
    width: 12px;
    height: 12px;
    right: -3px;
    bottom: 26px;
    background: var(--brand);
}

.party-badge {
    position: absolute;
    z-index: 3;
    right: -1px;
    bottom: 5px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 4px solid var(--white);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 7px 18px rgba(4, 76, 102, 0.2);
}

.party-badge img {
    width: 31px;
    height: 31px;
    object-fit: contain;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: rgba(4, 156, 212, 0.1);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: var(--brand-deep);
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.role {
    margin: 11px auto 0;
    color: var(--brand-dark);
    font-size: 0.98rem;
    font-weight: 750;
    line-height: 1.4;
}

.message {
    max-width: 420px;
    margin: 11px auto 0;
    color: var(--muted);
    font-size: 0.89rem;
    line-height: 1.55;
}

.primary-actions {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 11px;
    margin-top: 28px;
}

.links {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 11px;
    margin-top: 11px;
}

.section-label {
    margin: 11px 6px -2px;
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.social-link {
    display: grid;
    min-height: 72px;
    padding: 10px 12px;
    grid-template-columns: 46px 1fr 30px;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 7px 18px rgba(8, 69, 92, 0.07);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-link:active {
    transform: scale(0.985);
}

.social-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: var(--brand);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.social-mark.instagram {
    background: linear-gradient(135deg, #7738b2, #e1306c 58%, #fcb045);
}

.social-mark.tiktok {
    background: #101014;
    box-shadow: inset 3px 0 #25f4ee, inset -3px 0 #fe2c55;
}

.social-mark.instagram img,
.social-mark.tiktok img {
    display: block;
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.social-mark.facebook {
    background: #1877f2;
    font-family: Arial, sans-serif;
    font-size: 1.6rem;
}

.social-mark.youtube {
    background: #ff0033;
    font-size: 1.05rem;
}

.social-mark.website {
    background: var(--brand);
}

.social-mark.website img {
    display: block;
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.social-mark.document {
    color: var(--white);
    background: var(--brand-dark);
    font-size: 0.65rem;
    letter-spacing: 0.02em;
}

.link-copy {
    min-width: 0;
}

.link-copy strong,
.link-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-copy strong {
    font-size: 0.98rem;
    line-height: 1.35;
}

.link-copy small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.76rem;
}

.link-arrow {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: var(--brand-dark);
    background: rgba(4, 156, 212, 0.1);
    font-size: 1.1rem;
}

.footer {
    display: flex;
    margin-top: 25px;
    gap: 10px;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-align: left;
}

.footer img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer p {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.25;
}

.toast {
    position: fixed;
    z-index: 10;
    bottom: max(22px, env(safe-area-inset-bottom));
    left: 50%;
    padding: 11px 17px;
    border-radius: 999px;
    color: var(--white);
    background: var(--brand-deep);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
    transition: opacity 180ms ease, transform 180ms ease;
    font-size: 0.8rem;
    font-weight: 750;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.tracking-pixel {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

:focus-visible {
    outline: 3px solid var(--brand-dark);
    outline-offset: 3px;
}

@media (hover: hover) {
    .social-link:hover {
        border-color: rgba(4, 156, 212, 0.36);
        box-shadow: 0 13px 28px rgba(8, 69, 92, 0.13);
        transform: translateY(-2px);
    }

    .share-button:hover {
        color: var(--white);
        background: var(--brand);
    }
}

@media (min-width: 700px) {
    .page-shell {
        padding: 42px 24px;
    }

    .bio-card {
        padding: 42px 42px 28px;
        border-radius: 38px;
    }

    .profile-photo-wrap {
        width: 170px;
        height: 170px;
    }

    .primary-actions,
    .links {
        gap: 13px;
    }

    .links {
        margin-top: 13px;
    }

    .social-link {
        min-height: 78px;
        padding-inline: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
