:root {
    --bg: #3552FD;
    --heading: #ffffff;
    --text: #a8c0ff;
    --line: rgba(255, 255, 255, 0.18);
    --line-strong: rgba(255, 255, 255, 0.32);
    --panel: rgba(255, 255, 255, 0.03);
    --font-heading: 'VG5000', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
}

a {
    color: inherit;
}

.page-shell {
    display: grid;
    grid-template-columns: 18rem minmax(0, 1fr);
    min-height: 100vh;
}

.side-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--line);
    background: rgba(53, 82, 253, 0.94);
    backdrop-filter: blur(10px);
}

.side-panel__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 2rem;
}

.brand-block__name {
    margin: 0 0 0.35rem;
    color: var(--heading);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.9;
}

.brand-block__meta {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.side-nav {
    display: grid;
    gap: 1rem;
}

.side-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding-left: 1.5rem;
    color: var(--text);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.side-nav a::before {
    content: '\2192';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-0.35rem);
    transition: opacity 180ms ease, transform 180ms ease;
}

.side-nav a:hover,
.side-nav a:focus-visible,
.side-nav a.is-active {
    color: var(--heading);
}

.side-nav a.is-active::before {
    opacity: 1;
    transform: translateX(0);
}

.content-panel {
    padding: 0 4rem;
}

.panel-section {
    display: flex;
    align-items: center;
    min-height: 100vh;
    border-bottom: 1px solid var(--line);
}

.panel-section:last-child {
    border-bottom: 0;
}

.section-frame {
    width: min(100%, 48rem);
    padding: 4rem 0;
}

.section-tag {
    margin: 0 0 1.25rem;
    color: var(--text);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-title,
.section-title {
    margin: 0;
    color: var(--heading);
    font-family: var(--font-heading);
    line-height: 0.92;
    text-wrap: balance;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
}

.section-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
}

.hero-copy {
    max-width: 34rem;
}

.hero-copy--lead {
    margin: 1.5rem 0 0;
    color: var(--heading);
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    line-height: 1.5;
}

.body-copy {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.body-copy p {
    margin: 0;
    max-width: 38rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.project-link-wrap {
    margin: 2rem 0 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.15rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--heading);
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
    background: var(--panel);
    border-color: var(--heading);
    transform: translateY(-1px);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    min-height: 3.25rem;
    padding: 0.9rem 1.15rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--heading);
    text-decoration: none;
}

.contact-links a:hover,
.contact-links a:focus-visible {
    background: var(--panel);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

    .side-panel {
        position: sticky;
        z-index: 10;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .side-panel__inner {
        gap: 1.5rem;
        padding: 1.25rem 1.25rem 1rem;
    }

    .side-nav {
        display: flex;
        gap: 1.1rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .side-nav a {
        white-space: nowrap;
        font-size: 0.82rem;
    }

    .content-panel {
        padding: 0 1.25rem;
    }

    .panel-section {
        min-height: auto;
    }

    .section-frame {
        padding: 4.25rem 0;
    }
}
