:root {
    --background: #061126;
    --background-deep: #030a17;
    --surface: rgba(10, 27, 57, 0.78);
    --surface-strong: #0d2145;
    --line: rgba(148, 181, 255, 0.16);
    --line-strong: rgba(103, 168, 255, 0.36);
    --text: #f7faff;
    --muted: #9aabc7;
    --accent: #5fa8ff;
    --accent-bright: #91c5ff;
    --green: #63e6a8;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 72% 8%, rgba(37, 105, 229, 0.2), transparent 28rem),
        radial-gradient(circle at 12% 42%, rgba(25, 74, 166, 0.12), transparent 26rem),
        linear-gradient(155deg, var(--background) 0%, var(--background-deep) 70%);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
    color: inherit;
}

.site-header,
main,
footer {
    width: min(calc(100% - 48px), var(--max-width));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(145, 197, 255, 0.35);
    border-radius: 10px;
    color: white;
    background: linear-gradient(145deg, #317ee9, #174894);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 8px 24px rgba(38, 116, 234, 0.2);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 9px 12px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    transition: color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    position: absolute;
    right: 12px;
    bottom: 2px;
    left: 12px;
    height: 2px;
    border-radius: 999px;
    content: "";
    background: var(--accent);
}

.hero {
    display: flex;
    min-height: 570px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 0 82px;
}

.eyebrow,
.section-kicker {
    color: var(--accent-bright);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 25px;
}

.eyebrow span,
.status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 16px currentColor;
}

.hero h1 {
    max-width: 840px;
    margin: 0;
    font-size: clamp(3.5rem, 9vw, 7.4rem);
    font-weight: 720;
    letter-spacing: -0.075em;
    line-height: 0.9;
}

.hero h1 strong {
    color: transparent;
    font-weight: inherit;
    background: linear-gradient(100deg, #f7faff 10%, #68adff 62%, #a9d3ff 95%);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero > p {
    max-width: 590px;
    margin: 32px 0 0;
    color: var(--muted);
    font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.hero-link span {
    color: var(--accent);
    transition: transform 160ms ease;
}

.hero-link:hover span {
    transform: translateY(3px);
}

.projects-section {
    padding: 0 0 120px;
    scroll-margin-top: 24px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 30px;
}

.section-kicker {
    margin: 0 0 8px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.3rem);
    letter-spacing: -0.045em;
    line-height: 1;
}

.section-heading > p {
    max-width: 340px;
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    text-align: right;
}

.project-card {
    display: grid;
    min-height: 500px;
    grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(18px);
}

.project-visual {
    position: relative;
    display: grid;
    min-height: 420px;
    place-items: center;
    overflow: hidden;
    border-right: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 48%, rgba(76, 143, 255, 0.32), transparent 31%),
        linear-gradient(145deg, rgba(39, 100, 198, 0.2), rgba(3, 13, 34, 0.62));
}

.project-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.32;
    background-image: radial-gradient(rgba(158, 201, 255, 0.5) 0.7px, transparent 0.7px);
    background-size: 18px 18px;
    mask-image: radial-gradient(circle, black, transparent 68%);
}

.visual-label {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 3;
    padding: 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--accent-bright);
    background: rgba(7, 21, 45, 0.72);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.project-visual img {
    position: relative;
    z-index: 2;
    width: clamp(150px, 18vw, 220px);
    height: auto;
    border-radius: 44px;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.34));
    transform: rotate(-3deg);
    transition: transform 240ms ease;
}

.project-card:hover .project-visual img {
    transform: rotate(0deg) scale(1.03);
}

.visual-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(125, 183, 255, 0.18);
    border-radius: 50%;
}

.orbit-one {
    width: 320px;
    height: 320px;
}

.orbit-two {
    width: 460px;
    height: 460px;
}

.project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 6vw, 68px);
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.status,
.version {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
}

.status {
    gap: 7px;
    color: var(--green);
    background: rgba(44, 179, 115, 0.08);
}

.status span {
    width: 6px;
    height: 6px;
}

.version {
    max-width: 280px;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-content h3 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    letter-spacing: -0.055em;
    line-height: 1;
}

.project-description {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.72;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.project-tags li {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #b9c7dd;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.72rem;
    font-weight: 650;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
    color: #061126;
    background: linear-gradient(135deg, #a9d3ff, #5fa8ff);
    box-shadow: 0 12px 30px rgba(61, 139, 240, 0.22);
}

.button-primary:hover {
    background: linear-gradient(135deg, #c2e0ff, #77b6ff);
}

.button-secondary {
    border-color: var(--line-strong);
    color: var(--text);
    background: rgba(95, 168, 255, 0.06);
}

.button-secondary:hover {
    border-color: rgba(145, 197, 255, 0.64);
    background: rgba(95, 168, 255, 0.12);
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 110px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

footer p {
    margin: 0;
}

footer a {
    color: var(--accent-bright);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid rgba(145, 197, 255, 0.8);
    outline-offset: 4px;
}

@media (max-width: 820px) {
    .hero {
        min-height: 500px;
    }

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

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

    .project-content {
        padding: 42px 32px 48px;
    }
}

@media (max-width: 600px) {
    .site-header,
    main,
    footer {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .site-header {
        min-height: 74px;
    }

    .nav-link {
        padding-inline: 8px;
    }

    .nav-link.active::after {
        right: 8px;
        left: 8px;
    }

    .hero {
        min-height: auto;
        padding: 96px 0 110px;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 17vw, 4.7rem);
        letter-spacing: -0.065em;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .section-heading > p {
        text-align: left;
    }

    .projects-section {
        padding-bottom: 80px;
    }

    .project-card {
        border-radius: 20px;
    }

    .project-visual {
        min-height: 300px;
    }

    .visual-label {
        top: 20px;
        left: 20px;
    }

    .orbit-one {
        width: 260px;
        height: 260px;
    }

    .orbit-two {
        width: 370px;
        height: 370px;
    }

    .project-content {
        padding: 30px 22px 34px;
    }

    .version {
        max-width: 190px;
    }

    .project-actions,
    .button {
        width: 100%;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
