:root {
    --mist: #edf3ef;
    --sage: #7a9389;
    --deep: #17201d;
    --ink-soft: rgba(23, 32, 29, .66);
    --glass: rgba(255, 255, 255, .42);
    --glass-strong: rgba(255, 255, 255, .62);
    --line: rgba(255, 255, 255, .48);
    --shadow: 0 24px 70px rgba(34, 50, 45, .18), inset 0 1px 0 rgba(255, 255, 255, .54);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    min-height: 100svh;
    color: var(--deep);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(145deg, rgba(250, 252, 247, .94), rgba(214, 231, 228, .92) 48%, rgba(233, 224, 213, .9)),
        #edf3ef;
}

a {
    color: inherit;
}

.phone-stage {
    width: min(100%, 430px);
    min-height: 100svh;
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
    display: grid;
    align-items: center;
}

.bio-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: calc(100svh - 36px);
    padding: 30px 18px 18px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 30px;
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(28px) saturate(1.22);
}

.bio-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.34) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 68%);
}

.profile-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orbit-dot {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.66);
    background: rgba(255,255,255,.38);
    backdrop-filter: blur(14px);
}

.dot-one { width: 118px; height: 118px; top: -34px; right: -30px; }
.dot-two { width: 58px; height: 58px; top: 124px; left: -18px; }
.dot-three { width: 86px; height: 86px; bottom: 94px; right: -36px; }

.profile-head {
    position: relative;
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 4px 8px 20px;
}

.profile-banner {
    position: relative;
    width: calc(100% + 52px);
    aspect-ratio: 860 / 873;
    margin: -34px -26px 14px;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}

.profile-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
    -webkit-mask-image: linear-gradient(to bottom, black 62%, transparent 94%);
    mask-image: linear-gradient(to bottom, black 62%, transparent 94%);
}

.eyebrow {
    margin: 0 0 7px;
    color: rgba(44, 66, 59, .7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(26px, 8vw, 33px);
    line-height: 1.04;
    letter-spacing: 0;
    text-wrap: balance;
}

.bio-copy {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 310px;
    min-height: 58px;
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.38;
    text-wrap: pretty;
}

.link-stack {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 2px 0 18px;
}

.bio-link {
    min-height: 72px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .62);
    color: var(--deep);
    text-decoration: none;
    background: rgba(255,255,255,.46);
    box-shadow: 0 10px 26px rgba(39, 58, 52, .1), inset 0 1px 0 rgba(255,255,255,.46);
    backdrop-filter: blur(18px) saturate(1.18);
    transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 160ms cubic-bezier(.23, 1, .32, 1);
}

.bio-link:active {
    transform: scale(.985);
}

.bio-link:focus-visible {
    outline: 3px solid rgba(55, 103, 91, .36);
    outline-offset: 3px;
}

.link-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #24443b;
    background: rgba(235, 247, 241, .58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.76), 0 8px 18px rgba(39, 70, 61, .1);
}

.icon {
    width: 22px;
    height: 22px;
}

.link-text {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.link-text strong,
.link-text small,
.bio-footer p,
.bio-footer a {
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-text strong {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 730;
}

.link-text small {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.3;
}

.link-arrow {
    color: rgba(23, 32, 29, .44);
    font-size: 28px;
    line-height: 1;
}

.bio-footer {
    position: relative;
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 14px 10px 4px;
    text-align: center;
    color: rgba(23, 32, 29, .56);
    font-size: 12px;
    line-height: 1.35;
}

.bio-footer p {
    max-width: 300px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bio-footer a {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    font-weight: 700;
    text-decoration: none;
}

@media (min-width: 720px) {
    .phone-stage {
        padding-block: 32px;
    }

    .bio-shell {
        min-height: 760px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
    }
}

