:root {
    color-scheme: dark;
    scroll-behavior: smooth;
    --shell-width: 1120px;
    --header-height: 76px;
    --glass-bg: rgba(8, 14, 30, 0.62);
    --glass-border: rgba(255, 255, 255, 0.13);
    --shadow-deep: 0 34px 90px rgba(0, 0, 0, 0.48);
}

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

html {
    min-width: 320px;
}

html.no-js [data-reveal] {
    opacity: 1;
    transform: none;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-body, "Inter", sans-serif);
    background: var(--color-background, #02040b);
    color: var(--color-text, #f8fbff);
    line-height: 1.6;
    text-rendering: geometricPrecision;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

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

p {
    margin-bottom: 1rem;
}

h1,
h2,
h3 {
    font-family: var(--font-heading, "Orbitron", sans-serif);
    line-height: 1.06;
    letter-spacing: 0;
}

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

.page-home {
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 4, 11, 0.68);
    backdrop-filter: blur(20px);
}

.nav-shell {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary) 58%, var(--color-accent));
    box-shadow: 0 0 28px rgba(53, 192, 255, 0.34);
    font-family: var(--font-heading);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy span {
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--color-muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.site-nav a,
.footer-socials a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover,
.footer-socials a:hover {
    color: var(--color-accent);
}

.nav-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    margin: 4px auto;
    border-radius: 99px;
    background: currentColor;
}

.hero-bio {
    min-height: calc(100svh - var(--header-height));
    display: grid;
    align-items: center;
    padding: clamp(42px, 8vw, 92px) 0 clamp(38px, 7vw, 74px);
}

.links-section,
.featured-section,
.activity-section {
    padding: clamp(42px, 8vw, 88px) 0;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 24px;
}

.section-heading h2,
.featured-copy h2 {
    margin-bottom: 0.72rem;
    font-size: clamp(1.8rem, 5vw, 3.25rem);
}

.section-heading p:not(.eyebrow),
.featured-copy p,
.profile-bio {
    color: var(--color-muted);
}

.eyebrow {
    margin-bottom: 0.78rem;
    color: var(--color-accent);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 0 24px;
    background: rgba(2, 4, 11, 0.72);
    backdrop-filter: blur(18px);
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-shell p {
    margin: 0.35rem 0 0;
    color: var(--color-muted);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    color: var(--color-muted);
    font-weight: 800;
    font-size: 0.9rem;
}

.footer-legal {
    margin: 20px 0 0;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.84rem;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 860px) {
    .shell {
        width: min(100% - 24px, var(--shell-width));
    }

    .nav-action {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: calc(var(--header-height) + 10px);
        right: 12px;
        left: 12px;
        display: grid;
        gap: 4px;
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 18px;
        padding: 10px;
        background: rgba(5, 9, 20, 0.94);
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        padding: 12px;
        border-radius: 12px;
    }

    .site-nav a:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .brand-copy span {
        display: none;
    }

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

    .footer-socials {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
