:root {
    color-scheme: dark;
    --bg-0: #030712;
    --bg-1: #060b1a;
    --bg-2: #0a1024;
    --glass: rgba(255, 255, 255, 0.07);
    --glass-strong: rgba(255, 255, 255, 0.14);
    --border: rgba(255, 255, 255, 0.12);
    --text: #f6f8ff;
    --muted: #a8b0ca;
    --accent: #7ee7ff;
    --accent-2: #bca3ff;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    background:
        radial-gradient(circle at 15% 10%, rgba(126, 231, 255, 0.18), transparent 25%),
        radial-gradient(circle at 85% 0%, rgba(188, 163, 255, 0.2), transparent 24%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
    opacity: 0.65;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.section-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.glass-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(180deg, rgba(5, 10, 24, 0.72), rgba(5, 10, 24, 0.45));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px) saturate(155%);
    -webkit-backdrop-filter: blur(14px) saturate(155%);
}

.site-nav {
    position: relative;
    width: min(1120px, calc(100% - 32px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    width: 136px;
    flex: 0 0 auto;
}

.nav-panel {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px) saturate(155%);
    -webkit-backdrop-filter: blur(14px) saturate(155%);
}

.nav-panel a {
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

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

.talk-button,
.primary-action,
.secondary-action {
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.talk-button,
.primary-action {
    padding: 13px 20px;
    color: #07101e;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 14px 32px rgba(126, 231, 255, 0.22);
}

.secondary-action {
    padding: 13px 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.talk-button:hover,
.primary-action:hover,
.secondary-action:hover,
.talk-button:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible {
    transform: translateY(-2px);
}

.ham-menu {
    display: none;
    margin-left: auto;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px) saturate(155%);
    -webkit-backdrop-filter: blur(14px) saturate(155%);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.ham-menu span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

main {
    padding: 28px 0 48px;
}

.hero,
.strip,
.info-grid,
.work-section,
.contact-cta,
.footer-inner {
    margin-top: 22px;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 24px;
    min-height: calc(100vh - 120px);
}

.hero-copy h1,
.section-heading h2,
.contact-cta h2 {
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(3rem, 8vw, 6.4rem);
    margin: 10px 0 18px;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-text,
.info-card p,
.work-card p,
.contact-cta p,
.footer-inner p {
    color: var(--muted);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));

    box-shadow: var(--shadow-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-card,
.info-card,
.work-card,
.contact-cta,
.strip > div {
    border-radius: 28px;
}

.hero-card,
.info-card,
.work-card,
.contact-cta,
.strip > div,
.site-footer .footer-inner {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
}

.hero-card {
    padding: 18px;
    overflow: hidden;
}

.hero-image-wrap {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.hero-image-wrap img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.hero-card-copy {
    padding: 16px 6px 6px;
    display: grid;
    gap: 8px;
}

.card-label {
    color: var(--text);
    font-weight: 800;
}

.strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.strip > div,
.info-card,
.work-card,
.contact-cta {
    padding: 24px;
}

.strip span {
    display: block;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--text);
}

.strip p {
    margin-top: 4px;
}

.info-grid,
.skills-grid,
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.info-card,
.work-card {
    display: grid;
    gap: 14px;
}

.skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.skill-card {
    display: grid;
    gap: 14px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
}

.info-card img,
.work-card img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
}

.section-heading {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.section-heading h2,
.contact-cta h2 {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    max-width: 16ch;
}

.work-section {
    padding-top: 8px;
}

.contact-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-footer .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 24px;
}

.footer-inner img {
    width: 112px;
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .hero,
    .info-grid,
    .skills-grid,
    .work-grid,
    .strip {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 16px;
    }

    .contact-cta,
    .site-footer .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .site-nav {
        min-height: 68px;
    }

    .nav-panel {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        padding: 18px;
        border-radius: 24px;
        gap: 16px;
        transform: translateY(0);
        background: linear-gradient(180deg, rgba(8, 13, 30, 0.96), rgba(8, 13, 30, 0.82));
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav-panel.active {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        pointer-events: none;
    }

    .ham-menu {
        display: inline-flex;
    }

    .talk-button {
        display: none;
    }
}

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

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
