:root {
    --bg: #07101e;
    --panel: #0d1728;
    --panel-soft: #111d31;
    --text: #e5edf7;
    --muted: #9aa9bd;
    --line: rgba(255,255,255,.12);
    --brand: #5eead4;
    --brand-2: #8b5cf6;
    --accent: #38bdf8;
    --shadow: 0 22px 70px rgba(0,0,0,.35);
    --radius: 24px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 16% 10%, rgba(94,234,212,.14), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(139,92,246,.17), transparent 30rem),
    linear-gradient(180deg, #07101e 0%, #08111f 45%, #050911 100%);
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(18px, 4vw, 54px);
    border-bottom: 1px solid var(--line);
    background: rgba(7,16,30,.78);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #06101d;
    letter-spacing: -.05em;
}

.brand-text {
    letter-spacing: -.02em;
}

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

.site-nav a {
    color: #e0a602;
    text-decoration: none;
    font-size: .95rem;
}

.site-nav a:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
}

.section,
.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 88px clamp(18px, 4vw, 34px);
}

.hero {
    min-height: calc(100vh - 80px);
    align-items: center;
}

.section-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 52px;
}

.eyebrow {
    color: var(--brand);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .76rem;
    margin: 0 0 16px;
}

h1,
h2,
h3 {
    line-height: 1.08;
    margin: 0 0 18px;
    letter-spacing: -.04em;
}

h1 {
    font-size: clamp(3.2rem, 8vw, 7.4rem);
}

h2 {
    font-size: clamp(2rem, 4.4vw, 4.1rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--muted);
    margin: 0 0 18px;
}

.lead {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    color: #d7e4f5;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid var(--line);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

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

.btn.primary {
    color: #07101e;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border: 0;
}

.btn.secondary {
    color: var(--text);
    background: rgba(255,255,255,.08);
}

.btn.ghost {
    color: var(--text);
    background: transparent;
}

.card-media {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.card-media img {
    height: 100%;
    object-fit: cover;
}

.compact-img {
    max-height: 420px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.cards,
.project-grid,
.tools-grid,
.credential-grid {
    display: grid;
    gap: 18;
}

.six-cards {
    grid-template-columns: repeat(3, 1fr);
}

.mini-card,
.tools-grid article,
.credential-grid article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.045);
}

.mini-card span {
    color: var(--brand);
    font-weight: 900;
}

.panel {
    max-width: calc(var(--max) - 42px);
    border: 1px solid var(--line);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.028));
    box-shadow: var(--shadow);
}

.panel.soft {
    background: rgba(255,255,255,.04);
}

.credential-grid {
    grid-template-columns: repeat(5, 1fr);
    margin-top: 28px;
}

.credential-grid strong,
.credential-grid span {
    display: block;
}

.credential-grid span {
    color: var(--muted);
    font-size: .92rem;
    margin-top: 8px;
}

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

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,.045);
}

.project-card div {
    padding: 22px;
}

.project-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
}

.project-card span {
    display: block;
    color: var(--brand);
    font-weight: 700;
    margin: 0 0 14px;
    font-size: .9rem;
}

.project-card a {
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

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

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-cloud span {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: #dce8f7;
    font-weight: 700;
}

.contact-panel {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 32px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(94,234,212,.09), rgba(139,92,246,.09));
}

.contact-card {
    display: grid;
    gap: 10px;
    padding: 26px;
    border-radius: 22px;
    background: rgba(0,0,0,.22);
    border: 1px solid var(--line);
}

.contact-card a {
    color: var(--brand);
    text-decoration: none;
}

.site-footer {
    padding: 34px clamp(18px, 4vw, 54px);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 920px) {
    .section-grid,
    .contact-panel {
        grid-template-columns: 1fr;
    }

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

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

    .hero {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
        border: 1px solid var(--line);
        background: rgba(255,255,255,.06);
        color: var(--text);
        border-radius: 999px;
        padding: 10px 14px;
    }

    .site-nav {
        position: absolute;
        left: 18px;
        right: 18px;
        top: 74px;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(7,16,30,.97);
        display: none;
    }

    .site-nav.open {
        display: flex;
    }

    .six-cards,
    .credential-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 3.35rem;
    }

    .section,
    .hero {
        padding-top: 64px;
        padding-bottom: 64px;
    }
}
