:root {
    --white: #ffffff;
    --bg: #070a0f;
    --bg-lift: #101722;
    --surface: rgba(15, 20, 29, 0.9);
    --surface-strong: #131a25;
    --ink: #f8fafc;
    --muted: #aeb7c8;
    --line: rgba(255, 255, 255, 0.13);
    --line-strong: rgba(255, 255, 255, 0.22);
    --brand-blue: #6680ff;
    --brand-blue-strong: #4f6eff;
    --accent-green: #62d3a4;
    --accent-warm: #ffc857;
    --font: "Lexend Rounded", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(160deg, #070a0f 0%, #0c121b 46%, #121826 100%);
    background-size: 42px 42px, 42px 42px, auto;
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.55;
}

a {
    color: inherit;
}

svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.bio-shell {
    width: min(680px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 26px;
}

.bio-header {
    padding: 18px 0 12px;
    text-align: center;
}

.brand-mark {
    display: inline-grid;
    width: 104px;
    height: 104px;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
    text-decoration: none;
    transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.brand-mark:hover,
.brand-mark:focus-visible {
    border-color: rgba(102, 128, 255, 0.65);
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-3px);
}

.brand-mark:focus-visible,
.link-card:focus-visible,
.project-actions a:focus-visible,
.contact-grid a:focus-visible {
    outline: 2px solid rgba(98, 211, 164, 0.8);
    outline-offset: 4px;
}

.brand-mark img {
    display: block;
    width: 88px;
    height: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 12px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-green);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.05;
    letter-spacing: 0;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.4rem, 12vw, 4.7rem);
    font-weight: 800;
}

.bio-text {
    max-width: 560px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.status-row span {
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.status-row span:first-child {
    border-color: rgba(98, 211, 164, 0.35);
    color: var(--accent-green);
}

.quick-links {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.link-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.link-card:hover {
    border-color: rgba(102, 128, 255, 0.58);
    background: var(--surface-strong);
    transform: translateY(-3px);
}

.link-card.highlight {
    border-color: rgba(98, 211, 164, 0.42);
    background: linear-gradient(135deg, rgba(79, 110, 255, 0.95), rgba(31, 142, 110, 0.92));
}

.link-card.highlight:hover {
    border-color: rgba(255, 255, 255, 0.44);
}

.link-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--accent-warm);
}

.link-card.highlight .link-icon {
    color: var(--white);
}

.link-card strong,
.contact-grid strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.link-card small,
.contact-grid span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    font-weight: 600;
}

.section-block {
    margin-top: 34px;
}

.section-heading {
    margin-bottom: 14px;
}

.section-heading .eyebrow {
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: clamp(1.55rem, 7vw, 2.5rem);
}

.project-list {
    display: grid;
    gap: 14px;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.project-media {
    position: relative;
    display: grid;
    min-height: 170px;
    place-items: center;
    padding: 18px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(102, 128, 255, 0.24), rgba(98, 211, 164, 0.16)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: auto, 28px 28px;
}

.project-media img {
    width: min(220px, 58%);
    height: auto;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.32));
}

.project-media-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 200, 87, 0.12), rgba(79, 110, 255, 0.08)),
        radial-gradient(circle at 50% 44%, rgba(255, 25, 25, 0.2), transparent 58%);
    pointer-events: none;
}

.project-shot {
    position: relative;
    z-index: 1;
    width: min(100%, 360px);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

.project-media .project-shot {
    width: min(100%, 360px);
    height: auto;
    filter: saturate(1.05) contrast(1.04) drop-shadow(0 18px 32px rgba(0, 0, 0, 0.32));
}

.project-content {
    padding: 22px;
}

.project-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-green);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.project-content h3 {
    font-size: 1.55rem;
}

.project-content p {
    margin-top: 10px;
    color: var(--muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    list-style: none;
}

.tag-list li {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.project-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.project-actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(102, 128, 255, 0.42);
    border-radius: 8px;
    background: rgba(102, 128, 255, 0.12);
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease;
}

.project-actions-single {
    grid-template-columns: 1fr;
}

.project-actions a:hover {
    border-color: rgba(98, 211, 164, 0.58);
    background: rgba(98, 211, 164, 0.13);
    transform: translateY(-2px);
}

.contact-grid {
    display: grid;
    gap: 10px;
}

.contact-grid a {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.contact-grid a:hover {
    border-color: rgba(255, 200, 87, 0.46);
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
}

.bio-footer {
    padding: 26px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

@media (min-width: 640px) {
    .bio-shell {
        padding-top: 54px;
    }

    .project-card {
        display: grid;
        grid-template-columns: 0.82fr 1fr;
    }

    .project-media {
        min-height: auto;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .bio-shell {
        width: min(100% - 24px, 680px);
    }

    .brand-mark {
        width: 92px;
        height: 92px;
    }

    .brand-mark img {
        width: 78px;
    }

    .link-card {
        grid-template-columns: 44px 1fr;
        gap: 12px;
        min-height: 72px;
        padding: 12px;
    }

    .link-icon {
        width: 44px;
        height: 44px;
    }

    .project-content {
        padding: 18px;
    }
}
