:root {
    --bg: #060b16;
    --bg-soft: #0b1526;
    --bg-card: rgba(12, 22, 40, 0.72);
    --navy: #0b1b33;
    --cyan: #7ec8ff;
    --cyan-strong: #4ba3ff;
    --text: #eef3fb;
    --muted: #9aabc2;
    --line: rgba(126, 200, 255, 0.16);
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(0, 8, 24, 0.45);
    --radius: 22px;
    --header: 76px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Outfit", system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(77, 163, 255, 0.18), transparent 55%),
        radial-gradient(800px 500px at 100% 20%, rgba(10, 40, 90, 0.55), transparent 50%),
        linear-gradient(180deg, #07101e 0%, var(--bg) 40%, #050910 100%);
}

.shell {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.shell.narrow {
    width: min(720px, calc(100% - 40px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(6, 11, 22, 0.72);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header);
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-name {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 56px;
    max-width: 200px;
    overflow: hidden;
    background: var(--white);
    border-radius: 16px;
    padding: 6px 14px;
    box-shadow: 0 0 0 1px rgba(126, 200, 255, 0.18), 0 10px 30px rgba(80, 170, 255, 0.12);
}

.brand-mark img {
    height: 44px;
    width: auto;
    max-width: 160px;
    max-height: 44px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    color: var(--muted);
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    background: rgba(126, 200, 255, 0.08);
}

.nav-cta {
    color: var(--bg) !important;
    background: var(--cyan) !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: var(--cyan-strong) !important;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
}

.hero {
    position: relative;
    padding: 72px 0 88px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    left: 50%;
    top: 8%;
    width: min(720px, 90vw);
    height: 420px;
    transform: translateX(-50%);
    background: radial-gradient(circle at 50% 70%, rgba(173, 220, 255, 0.42), rgba(47, 132, 255, 0.08) 42%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
    animation: pulse-gate 7s ease-in-out infinite;
}

.hero-inner {
    position: relative;
    text-align: center;
}

.hero-logo-wrap {
    width: min(460px, 86vw);
    margin: 0 auto 28px;
    background: var(--white);
    border-radius: 28px;
    padding: 28px 36px;
    box-shadow:
        0 0 0 1px rgba(126, 200, 255, 0.2),
        0 0 80px rgba(90, 180, 255, 0.22),
        var(--shadow);
}

.hero-logo {
    width: 100%;
    height: auto;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 600;
}

h1,
h2,
h3 {
    margin: 0 0 14px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 600;
}

h2 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.lead,
.section-intro {
    color: var(--muted);
    font-size: 1.12rem;
    max-width: 42rem;
}

.hero-inner .lead {
    margin: 0 auto 28px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--cyan);
    color: var(--bg);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--cyan-strong);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--cyan);
}

.home-featured .lead {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.home-title {
    margin: 0 0 32px;
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
}

#projects {
    scroll-margin-top: 92px;
}

.section-heading {
    margin-bottom: 36px;
}

.pillars {
    padding-top: 0;
}

.pillar-grid,
.project-grid {
    display: grid;
    gap: 20px;
}

.pillar-grid {
    grid-template-columns: repeat(3, 1fr);
}

.pillar,
.project-card,
.about-visual,
.contact-form,
.notice {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.pillar {
    padding: 28px;
}

.pillar-index {
    display: block;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 18px;
}

.pillar p,
.project-card p,
.prose,
.prose-block p,
.footer-copy {
    color: var(--muted);
}

.project-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--accent) 55%, white);
    box-shadow: 0 24px 50px color-mix(in srgb, var(--accent) 18%, transparent);
}

.project-card-media {
    height: 210px;
    display: grid;
    place-items: center;
    padding: 24px;
}

.project-card-media.is-light,
.project-detail-logo.is-light {
    background: transparent;
}

.project-card-media.is-dark,
.project-detail-logo.is-dark {
    background: #050505;
}

.about-visual img {
    max-height: 160px;
    width: auto;
}

.project-card-media.is-light img,
.project-detail-logo.is-light img {
    max-height: 148px;
    width: auto;
    border-radius: 28px;
}

.project-card-media.is-dark img,
.project-detail-logo.is-dark img {
    max-height: 220px;
    width: 86%;
}

.project-fallback {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--bg);
    background: var(--accent, var(--cyan));
}

.project-fallback.large {
    width: 120px;
    height: 120px;
    font-size: 3rem;
}

.project-card-body {
    padding: 22px 24px 24px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.card-cta {
    display: inline-block;
    margin-top: 14px;
    color: var(--cyan);
    font-weight: 600;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.card-actions .btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.92rem;
}

.section-footnote {
    margin-top: 28px;
}

.text-link {
    color: var(--cyan);
    font-weight: 600;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--white);
}

.cta-band {
    padding-top: 0;
}

.cta-inner {
    text-align: center;
    padding: 56px 24px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        radial-gradient(500px 180px at 50% 0%, rgba(126, 200, 255, 0.16), transparent 70%),
        var(--bg-card);
}

.cta-inner p {
    color: var(--muted);
    max-width: 36rem;
    margin: 0 auto 24px;
}

.page-hero {
    padding: 56px 0 12px;
}

.about-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
    align-items: start;
}

.about-visual {
    padding: 32px;
}

.prose-block h2 {
    margin-top: 28px;
}

.project-detail-head {
    text-align: center;
}

.project-detail-logo {
    width: min(360px, 100%);
    margin: 20px auto 28px;
    border-radius: 28px;
    padding: 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
}

.project-detail .hero-actions {
    margin-top: 28px;
}

.prose {
    font-size: 1.08rem;
}

.project-gallery {
    display: grid;
    gap: 16px;
    margin: 28px 0;
}

.project-gallery img {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.contact-form,
.notice {
    padding: 28px;
}

.notice {
    margin-bottom: 20px;
    color: var(--cyan);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    padding: 12px 14px;
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--cyan) 70%, transparent);
    outline-offset: 1px;
}

.field-error {
    color: #ff8d8d;
    font-size: 0.9rem;
}

.trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 40px 0 32px;
    margin-top: 24px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--cyan);
}

.footer-legal {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

@keyframes pulse-gate {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

@media (max-width: 900px) {
    .pillar-grid,
    .project-grid,
    .about-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(var(--header) + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 20px;
        background: #07101e;
        border-bottom: 1px solid var(--line);
        z-index: 21;
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero {
        padding: 40px 0 56px;
    }

    .section {
        padding: 48px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-glow,
    .project-card {
        animation: none;
        transition: none;
    }
}
