.avatar {
    width: min(320px, 100%);
    aspect-ratio: 3 / 4;
    height: auto;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(36, 52, 95, .85);
    background: rgba(7, 11, 22, .35);
}

.avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

header {
    padding: 20px 0 10px;
}

.hero {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.45fr .85fr;
    align-items: stretch;
}

.hero-main {
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.hero-main:before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(600px 200px at 30% 0%, rgba(124, 92, 255, .25), transparent 60%),
        radial-gradient(500px 220px at 90% 20%, rgba(34, 211, 238, .18), transparent 60%);
    pointer-events: none;
}

.hero-main>* {
    position: relative;
}

h1 {
    margin: 14px 0 10px;
    font-size: clamp(28px, 4vw, 44px);
}

h1 a img {
    vertical-align: middle;
}

h1 a img:hover {
    opacity: 0.85;
    transform: translate3d(-1px, -1px, -1px);
}

h1 a img:active {
    opacity: 0.75;
    transform: translate3d(2px, 2px, 2px);
}

.btn {
    text-wrap: initial;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 92, 255, .95);
}

.btn:active {
    transform: translate3d(2px, 2px, 2px);
}

.btn.primary {
    background: linear-gradient(135deg, rgba(124, 92, 255, .95), rgba(34, 211, 238, .55));
    border-color: rgba(255, 255, 255, .14);
}

.hero-side {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(36, 52, 95, .85);
    background: rgba(7, 11, 22, .35);
}

.mini h3 {
    margin: 0 0 10px;
    font-size: 14px;
    letter-spacing: .2px;
    color: var(--muted);
    font-family: var(--mono);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.box h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.timeline {
    display: grid;
    gap: 12px;
}

.job {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(36, 52, 95, .85);
    background: rgba(7, 11, 22, .35);
}

.jobhead {
    display: flex;
    justify-content: space-between;
}

.jobhead span {
    font-family: var(--mono);
    font-size: 12.5px;
}

.job p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

.hero-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-contacts {
    display: inline-flex;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 860px) {}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-title {
        gap: 6px;
    }

    .hero-contacts {
        margin-top: 4px;
    }

    .hero-contacts img {
        width: 28px;
        height: 28px;
    }

    .hero-main {
        padding: 16px;
    }

    .pillset .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

}