:root {
    --bg: #08090d;
    --bg-soft: #0d0f16;
    --surface: rgba(255, 255, 255, .045);
    --surface-strong: rgba(255, 255, 255, .07);
    --border: rgba(255, 255, 255, .11);
    --border-strong: rgba(255, 255, 255, .18);
    --text: #f6f7fb;
    --text-soft: #c4c7d1;
    --muted: #8c91a0;
    --accent: #7173ff;
    --accent-light: #a6a7ff;
    --success: #65d69d;
    --shadow: 0 24px 80px rgba(0, 0, 0, .34);
    --radius-lg: 28px;
    --radius-md: 20px;
    --header-height: 72px;
    --shell: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 14% 8%, rgba(113, 115, 255, .12), transparent 30%),
        radial-gradient(circle at 82% 36%, rgba(113, 115, 255, .05), transparent 26%);
    pointer-events: none;
}

::selection {
    background: rgba(113, 115, 255, .42);
    color: #fff;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

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

p,
h1,
h2,
h3,
ul {
    margin-top: 0;
}

.shell {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 3000;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    color: #08090d;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.cursor-light {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 520px;
    height: 520px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(113, 115, 255, .11), transparent 68%);
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    min-height: var(--header-height);
    border-bottom: 1px solid rgba(255, 255, 255, .075);
    background: rgba(8, 9, 13, .76);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header__inner {
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: max-content;
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.025em;
    text-decoration: none;
}

.site-logo__mark {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    box-shadow: 0 0 24px rgba(113, 115, 255, .7);
    transform: rotate(45deg);
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.site-nav a,
.header-contact {
    color: var(--muted);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.header-contact {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-soft);
}

.header-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    white-space: nowrap;
}

.language-switch {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: #666b77;
    font-size: .72rem;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
}

.language-switch__link {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s ease;
}

.language-switch__link.active {
    color: var(--text);
    pointer-events: none;
}

.section-nav {
    position: fixed;
    top: 50%;
    right: 28px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 13px;
    transform: translateY(-50%);
}

.section-nav a {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
}

.section-nav span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    transition: background-color .2s ease, transform .2s ease;
}

.section-nav a.active span,
.section-nav a[aria-current="true"] span {
    background: #fff;
    transform: scale(1.45);
}

.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero-section__glow {
    position: absolute;
    top: -340px;
    left: -260px;
    z-index: -1;
    width: 820px;
    height: 820px;
    border-radius: 50%;
    background: rgba(113, 115, 255, .24);
    filter: blur(140px);
    pointer-events: none;
}

.hero-grid {
    min-height: min(850px, calc(100svh - var(--header-height)));
    padding-block: clamp(72px, 10vw, 124px);
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .72fr);
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
}

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

.eyebrow,
.mini-label,
.stack-card__label,
.project-card__type {
    margin-bottom: 18px;
    color: var(--accent-light);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero-title {
    max-width: 940px;
    margin-bottom: 28px;
    font-size: clamp(2.65rem, 6.15vw, 5.45rem);
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: .98;
    text-wrap: balance;
    background: linear-gradient(180deg, #fff 8%, #c9cbe0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: .1em;
}

.hero-lead {
    max-width: 700px;
    margin-bottom: 34px;
    color: var(--text-soft);
    font-size: clamp(1.05rem, 1.65vw, 1.28rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 38px;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.button--primary {
    background: linear-gradient(135deg, #6264f5, #8587ff);
    box-shadow: 0 16px 42px rgba(91, 92, 240, .3);
    color: #fff;
}

.button--secondary {
    border-color: var(--border);
    background: rgba(255, 255, 255, .025);
    color: var(--text);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.hero-meta li,
.tag-list li,
.project-card__tags li {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.25;
}

.hero-meta li {
    padding: 8px 11px;
}

.profile-card {
    position: relative;
    width: 100%;
    max-width: 390px;
    justify-self: end;
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 42%);
    pointer-events: none;
}

.profile-card__top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.profile-photo {
    flex: 0 0 112px;
    width: 112px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    background: var(--bg-soft);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card__name {
    margin-bottom: 4px;
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.25;
}

.profile-card__role {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .92rem;
}

.profile-card__status {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-block: 20px;
    color: var(--text-soft);
    font-size: .88rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(101, 214, 157, .1);
}

.profile-card__projects {
    position: relative;
    padding: 20px;
    border-radius: 18px;
    background: rgba(0, 0, 0, .2);
}

.profile-card__projects .mini-label {
    margin-bottom: 12px;
    color: var(--muted);
}

.profile-card__projects ul {
    display: grid;
    gap: 10px;
    margin-bottom: 0;
    padding-left: 18px;
    color: var(--text-soft);
    font-size: .9rem;
    line-height: 1.45;
}

.content-section {
    padding-block: clamp(76px, 9vw, 132px);
    border-top: 1px solid rgba(255, 255, 255, .055);
}

.content-section--muted {
    background: rgba(255, 255, 255, .018);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(300px, .7fr);
    align-items: end;
    gap: clamp(30px, 7vw, 96px);
    margin-bottom: clamp(42px, 5vw, 68px);
}

.section-heading--compact {
    margin-bottom: clamp(38px, 5vw, 58px);
}

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

.section-title {
    max-width: 760px;
    margin-bottom: 0;
    font-size: clamp(2.15rem, 4.25vw, 4rem);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.06;
    text-wrap: balance;
}

.section-intro {
    max-width: 590px;
    margin-bottom: 3px;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.7;
}

.principles-grid,
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card,
.stack-card {
    min-width: 0;
    min-height: 260px;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.info-card__number {
    display: block;
    margin-bottom: 58px;
    color: var(--accent-light);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.info-card h3,
.stack-card h3,
.project-card h3 {
    margin-bottom: 12px;
    font-size: clamp(1.28rem, 2vw, 1.62rem);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.info-card p,
.stack-card p,
.project-card__content > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.stack-card {
    min-height: 290px;
    display: flex;
    flex-direction: column;
}

.stack-card__label {
    margin-bottom: 42px;
}

.stack-card h3 {
    max-width: 260px;
    margin-bottom: 28px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 7px 10px;
}

.projects-list {
    display: grid;
    gap: 16px;
}

.project-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) minmax(180px, auto);
    align-items: center;
    gap: clamp(22px, 4vw, 50px);
    padding: clamp(24px, 3.5vw, 42px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.project-card__index {
    align-self: start;
    color: var(--accent-light);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.project-card__type {
    margin-bottom: 10px;
    color: var(--muted);
}

.project-card__content {
    min-width: 0;
}

.project-card__link {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
}

.project-card__link::after {
    content: "↗";
    color: var(--accent-light);
    font-size: .72em;
    line-height: 1;
}

.project-card__link:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--accent-light);
    outline-offset: 4px;
}

.project-card__content > p:last-child {
    max-width: 720px;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.project-card__tags li {
    padding: 7px 10px;
}

.statement-section {
    padding-block: clamp(86px, 12vw, 172px);
    border-top: 1px solid rgba(255, 255, 255, .055);
    overflow: hidden;
}

.statement-section__inner p {
    margin-bottom: 0;
    font-size: clamp(2.45rem, 6.25vw, 5.9rem);
    font-weight: 750;
    letter-spacing: -.06em;
    line-height: .98;
    text-wrap: balance;
}

.statement-section__inner p:first-child {
    color: var(--muted);
}

.statement-section__inner p:last-child {
    color: var(--text);
}

.site-footer {
    padding-block: clamp(68px, 9vw, 112px) 32px;
    border-top: 1px solid var(--border);
    background: #06070a;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr);
    gap: clamp(40px, 8vw, 110px);
    padding-bottom: clamp(58px, 7vw, 92px);
}

.contact-panel__copy h2 {
    max-width: 700px;
    margin-bottom: 20px;
    font-size: clamp(2.25rem, 4.7vw, 4.4rem);
    font-weight: 750;
    letter-spacing: -.05em;
    line-height: 1.02;
    text-wrap: balance;
}

.contact-panel__copy > p:last-child {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 1.05rem;
}

.contact-links {
    display: grid;
    align-content: start;
}

.contact-links a {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.contact-links a:first-child {
    border-top: 1px solid var(--border);
}

.contact-links span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
}

.contact-links strong {
    min-width: 0;
    color: var(--text);
    font-size: .95rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.site-logo--footer {
    color: var(--text-soft);
}

.footer-bottom p {
    margin-bottom: 0;
    color: #666b77;
    font-size: .82rem;
}

@media (hover: hover) and (pointer: fine) {
    .cursor-light {
        display: block;
    }

    .site-nav a:hover,
    .header-contact:hover,
    .language-switch__link:hover {
        color: #fff;
    }

    .header-contact:hover,
    .button--secondary:hover {
        border-color: var(--border-strong);
        background: var(--surface-strong);
    }

    .button:hover {
        transform: translateY(-2px);
    }

    .info-card,
    .stack-card,
    .project-card {
        transition: transform .22s ease, border-color .22s ease, background-color .22s ease;
    }

    .info-card:hover,
    .stack-card:hover,
    .project-card:hover {
        border-color: rgba(113, 115, 255, .34);
        background: rgba(113, 115, 255, .055);
        transform: translateY(-3px);
    }

    .project-card__link:hover {
        color: var(--accent-light);
    }

    .contact-links a:hover strong {
        color: var(--accent-light);
    }
}

@media (max-width: 1240px) {
    .section-nav {
        right: 12px;
    }
}

@media (max-width: 991.98px) {
    :root {
        --header-height: 68px;
    }

    .section-nav {
        display: none;
    }

    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 50px;
        padding-block: 86px 92px;
    }

    .hero-title {
        max-width: 820px;
    }

    .profile-card {
        max-width: none;
        justify-self: stretch;
    }

    .section-heading,
    .contact-panel {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .section-intro {
        max-width: 720px;
    }

    .project-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .project-card__tags {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .shell {
        width: min(calc(100% - 36px), var(--shell));
    }

    .site-header__inner {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
    }

    .site-nav {
        display: none;
    }

    .header-actions {
        grid-column: 2;
        gap: 8px;
    }

    .language-switch {
        gap: 4px;
        font-size: .68rem;
    }

    .header-contact {
        flex: 0 0 auto;
        padding: 8px 10px;
        font-size: .76rem;
    }

    .hero-grid {
        gap: 38px;
        padding-block: 64px 72px;
    }

    .hero-title {
        margin-bottom: 22px;
        font-size: clamp(2.35rem, 12.1vw, 4rem);
        line-height: 1.01;
        letter-spacing: -.052em;
        padding-bottom: .12em;
    }

    .hero-lead {
        margin-bottom: 28px;
        font-size: 1rem;
    }

    .hero-actions {
        margin-bottom: 30px;
    }

    .profile-card__top {
        gap: 16px;
    }

    .profile-photo {
        flex-basis: 92px;
        width: 92px;
    }

    .principles-grid,
    .stack-grid {
        grid-template-columns: 1fr;
    }

    .info-card,
    .stack-card {
        min-height: auto;
    }

    .info-card__number,
    .stack-card__label {
        margin-bottom: 34px;
    }

    .project-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-card__index,
    .project-card__tags {
        grid-column: 1;
    }

    .contact-links a {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 479.98px) {
    .shell {
        width: min(calc(100% - 28px), var(--shell));
    }

    .site-logo {
        gap: 8px;
        font-size: .88rem;
    }

    .header-actions {
        gap: 7px;
    }

    .language-switch {
        gap: 3px;
        font-size: .64rem;
    }

    .header-contact {
        padding: 7px 8px;
        font-size: .72rem;
    }

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

    .button {
        width: 100%;
    }

    .profile-card {
        padding: 20px;
        border-radius: 22px;
    }

    .profile-card__top {
        align-items: flex-start;
    }

    .profile-photo {
        flex-basis: 78px;
        width: 78px;
    }

    .profile-card__name {
        font-size: 1.08rem;
    }

    .profile-card__projects {
        padding: 17px;
    }

    .contact-links a {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 359.98px) {
    .site-logo > span:last-child {
        display: none;
    }

    .site-logo__mark {
        width: 12px;
        height: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .cursor-light {
        display: none !important;
    }
}
