:root {
    --bg: #0a0f1f;
    --bg-soft: #111827;
    --card: rgba(255, 255, 255, 0.05);
    --card-strong: rgba(255, 255, 255, 0.10);
    --text: #f8fafc;
    --muted: #b7c0d8;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #8b5cf6;
    --accent-2: #22d3ee;
    --accent-3: #f59e0b;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --radius: 20px;
}

* {
    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 15% 10%, rgba(139, 92, 246, 0.20), transparent 30rem),
        radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.12), transparent 28rem),
        linear-gradient(135deg, #070b16 0%, #101729 52%, #0b1120 100%);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    color: var(--muted);
    margin: 0 0 1rem;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    max-width: 20ch;
    margin-bottom: .5rem;
    letter-spacing: -0.03em;
}

.hero-role {
    color: var(--accent-2);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: .5rem;
}

/* ── Skip link ── */
.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    transform: translateY(-150%);
    background: var(--text);
    color: var(--bg);
    padding: .75rem 1rem;
    border-radius: 999px;
    z-index: 100;
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1100px, calc(100% - 2rem));
    margin: 1rem auto 0;
    padding: .7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10, 15, 31, .72);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

.brand,
.site-nav {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.brand {
    font-weight: 700;
    font-size: .95rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font-size: .72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.site-nav a {
    color: var(--muted);
    font-weight: 600;
    font-size: .9rem;
    padding: .55rem .8rem;
    border-radius: 999px;
    transition: color .2s, background .2s;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--text);
    background: rgba(255, 255, 255, .08);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: .5rem;
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 1.4rem;
    height: 2px;
    background: var(--text);
    margin: .3rem 0;
}

/* ── Section base ── */
.section {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 5rem 0;
}

/* ── Hero ── */
.hero {
    min-height: calc(100vh - 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: block;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.hero-lede {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    max-width: 600px;
    margin-top: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

/* Tool strip below hero CTAs */
.tool-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem 1.25rem;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.tool-strip span {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600;
}

/* ── Buttons ── */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .7rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-weight: 700;
    font-size: .9rem;
    background: rgba(255, 255, 255, .06);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .28);
}

.button.primary {
    border: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}

.button.primary:hover {
    transform: translateY(-2px);
    opacity: .92;
}

/* ── Work section heading ── */
.work-heading {
    padding-bottom: 2rem;
}

.section-lede {
    font-size: 1rem;
    max-width: 560px;
    margin-top: .75rem;
}

/* ── Project grid ── */
.project-grid {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding-bottom: 5rem;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: var(--radius);
}

.project-visual {
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
}

.project-visual span {
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 900;
    color: rgba(255, 255, 255, .6);
}

.gradient-a {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

.gradient-b {
    background: linear-gradient(135deg, #0f172a, #22c55e);
}

.gradient-c {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.project-content {
    padding: 1.25rem;
}

.project-type {
    display: block;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: 0;
    margin: 1rem 0 0;
    list-style: none;
}

.tag-list li {
    padding: .35rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: var(--muted);
    border: 1px solid var(--line);
    font-size: .8rem;
    font-weight: 600;
}

/* ── About ── */
.about {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 4rem;
    align-items: start;
}

/* Fact list on the left */
.about-facts {
    padding-top: .25rem;
}

.fact-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.fact-list li {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.fact-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fact-list strong {
    color: var(--accent-3);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.fact-list span {
    color: var(--text);
    font-size: .95rem;
    line-height: 1.4;
}

.about-copy {
    padding-top: .25rem;
}

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.5rem;
}

.skill-cloud span {
    padding: .4rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: var(--muted);
    border: 1px solid var(--line);
    font-size: .82rem;
    font-weight: 600;
}

/* ── Capabilities ── */
.capabilities {
    padding-top: 0;
}

.capabilities>.reveal {
    margin-bottom: 2.5rem;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service {
    padding: 1.4rem;
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: var(--radius);
}

.service h3 {
    color: var(--text);
    margin-bottom: .65rem;
}

/* ── Contact ── */
.contact {
    text-align: center;
    padding: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 5rem;
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: var(--radius);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 2rem;
}

/* ── Footer ── */
.site-footer {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
    font-size: .9rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--text);
    font-weight: 700;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile ── */
@media (max-width: 860px) {
    .site-header {
        align-items: flex-start;
        border-radius: 20px;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: .75rem;
    }

    .site-nav.open {
        display: flex;
    }

    .project-grid,
    .service-list {
        grid-template-columns: 1fr;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero {
        min-height: auto;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .site-footer {
        flex-direction: column;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}