/*
 * Staging visual polish.
 * This layer intentionally sits after the core site CSS so it can tune the
 * current design without disturbing the underlying template and responsive work.
 */

:root {
    --glass: rgba(8, 16, 24, 0.68);
    --glass-strong: rgba(15, 23, 32, 0.82);
    --line-bright: rgba(198, 208, 218, 0.16);
}

body {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 10%, rgba(45, 143, 139, 0.18), transparent 28%),
        radial-gradient(circle at 84% 16%, rgba(255, 138, 61, 0.13), transparent 24%),
        linear-gradient(180deg, #060c13 0%, #081018 42%, #0b131b 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6, 12, 19, 0.9) 0%, rgba(6, 12, 19, 0.56) 44%, rgba(6, 12, 19, 0.86) 100%),
        radial-gradient(circle at 70% 34%, rgba(45, 143, 139, 0.22), transparent 34%),
        url("../img/toolkit-circuit-bg.svg");
    background-repeat: no-repeat;
    background-position: center top, center top, clamp(46%, 58vw, 72%) 42px;
    background-size: cover, cover, min(70vw, 780px) auto;
    opacity: 0.42;
    filter: saturate(0.92) contrast(1.06);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(6, 12, 19, 0.08), rgba(6, 12, 19, 0.74) 46%, rgba(6, 12, 19, 0.92)),
        radial-gradient(circle at 50% 0%, transparent 0, rgba(6, 12, 19, 0.22) 62%, rgba(6, 12, 19, 0.86) 100%);
}

.site-header {
    padding-top: 14px;
    background: linear-gradient(180deg, rgba(6, 12, 19, 0.94), rgba(6, 12, 19, 0.42) 76%, transparent);
}

.header-bar {
    border-color: rgba(198, 208, 218, 0.12);
    background: rgba(8, 16, 24, 0.78);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-name {
    letter-spacing: 0.02em;
}

.site-nav a,
.header-cta,
.button,
.project-link {
    letter-spacing: 0.075em;
}

.hero {
    padding-top: clamp(34px, 5vw, 58px);
    padding-bottom: clamp(78px, 9vw, 122px);
}

.hero-stage {
    align-items: center;
    gap: clamp(40px, 6vw, 84px);
}

.hero-stage::before {
    right: 20%;
    top: 12%;
    background: radial-gradient(circle, rgba(45, 143, 139, 0.30) 0%, rgba(45, 143, 139, 0.10) 42%, transparent 72%);
    filter: blur(26px);
}

.hero-stage::after,
.hero-orbit {
    opacity: 0.35;
}

.hero-column {
    padding-top: clamp(28px, 4vw, 56px);
    padding-bottom: 0;
}

.eyebrow,
.section-label {
    margin-bottom: 0;
}

.hero-title {
    max-width: 12.5ch;
    margin-top: 18px;
    font-size: clamp(3.05rem, 6vw, 5.65rem);
    line-height: 1.02;
    letter-spacing: -0.043em;
}

.hero-title span {
    max-width: 34ch;
    margin-top: 22px;
    color: var(--muted-strong);
}

.hero-summary {
    max-width: 58ch;
    margin-top: 30px;
}

.hero-actions,
.contact-actions {
    margin-top: 32px;
}

.button {
    min-height: 52px;
    padding-inline: 22px;
}

.hero-aside {
    width: min(100%, 450px);
}

.hero-panel,
.service-card,
.approach-block,
.portfolio-card,
.mini-card,
.contact-card {
    border-color: var(--line-bright);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026)),
        linear-gradient(135deg, rgba(45, 143, 139, 0.11), rgba(255, 138, 61, 0.035));
    box-shadow:
        0 20px 46px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.hero-panel {
    padding: clamp(26px, 3vw, 36px);
    background:
        linear-gradient(180deg, rgba(8, 16, 24, 0.62), rgba(8, 16, 24, 0.36)),
        radial-gradient(circle at 80% 0%, rgba(255, 138, 61, 0.16), transparent 38%),
        radial-gradient(circle at 10% 100%, rgba(45, 143, 139, 0.22), transparent 42%);
    backdrop-filter: blur(12px);
}

.hero-scrub-base {
    max-width: 13ch;
}

.hero-panel-divider {
    margin: 24px 0 20px;
}

.hero-metrics {
    gap: 14px;
}

.section {
    padding: clamp(86px, 10vw, 128px) 0;
}

.intro-band {
    padding-top: clamp(26px, 5vw, 62px);
}

.intro-layout,
.about-layout {
    gap: clamp(34px, 6vw, 70px);
}

.section-shell {
    gap: clamp(38px, 5vw, 60px);
}

.section-heading {
    max-width: 820px;
}

.section-title,
.contact-title {
    letter-spacing: -0.034em;
}

.section-text,
.about-right p,
.contact-text {
    color: var(--muted-strong);
}

.service-grid,
.approach-grid,
.portfolio-grid {
    gap: clamp(16px, 2vw, 24px);
}

.service-card,
.approach-block,
.portfolio-card {
    padding: clamp(24px, 2.7vw, 34px);
}

.service-card h3,
.approach-block h3,
.portfolio-card h3 {
    max-width: 24ch;
}

.service-card,
.portfolio-card,
.approach-block,
.contact-card {
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.service-card:hover,
.portfolio-card:hover,
.approach-block:hover,
.contact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 255, 155, 0.22);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.section-dark {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.026)),
        linear-gradient(135deg, rgba(45, 143, 139, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(11, 20, 29, 0.88), rgba(15, 24, 33, 0.92));
    backdrop-filter: blur(4px);
}

.portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-card:first-child {
    background:
        linear-gradient(135deg, rgba(45, 143, 139, 0.24), rgba(255, 255, 255, 0.045) 48%, rgba(255, 138, 61, 0.16)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.026));
}

.project-tags span {
    background: rgba(8, 16, 24, 0.34);
}

.contact-shell {
    position: relative;
    max-width: 960px;
    padding: clamp(30px, 4vw, 46px);
    border: 1px solid rgba(198, 208, 218, 0.12);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(8, 16, 24, 0.74), rgba(8, 16, 24, 0.48)),
        radial-gradient(circle at 92% 10%, rgba(255, 138, 61, 0.12), transparent 34%);
    box-shadow: var(--shadow-lg);
}

.contact-title {
    max-width: 13ch;
}

.contact-note {
    max-width: 70ch;
}

@media (max-width: 1180px) {
    body::before {
        background-position: center top, center top, 92% 74px;
        background-size: cover, cover, min(74vw, 680px) auto;
        opacity: 0.34;
    }

    .hero-title {
        max-width: 13ch;
    }
}

@media (max-width: 960px) {
    body::before {
        background-position: center top, center top, center 92px;
        background-size: cover, cover, min(92vw, 620px) auto;
        opacity: 0.22;
    }

    .hero-stage {
        gap: 34px;
    }

    .hero-title {
        max-width: 100%;
    }

    .hero-title span,
    .hero-summary {
        max-width: 66ch;
    }

    .hero-aside {
        width: min(100%, 760px);
    }

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

@media (max-width: 720px) {
    body::before {
        background-position: center top, center top, center 132px;
        background-size: cover, cover, 112vw auto;
        opacity: 0.18;
    }

    .site-header {
        padding-top: 10px;
    }

    .header-bar {
        border-radius: 24px;
    }

    .hero {
        padding-top: 22px;
    }

    .hero-title {
        font-size: clamp(2.35rem, 10.5vw, 3.7rem);
        line-height: 1.07;
    }

    .hero-summary {
        margin-top: 24px;
    }

    .section {
        padding: 82px 0;
    }

    .portfolio-grid,
    .service-grid,
    .approach-grid,
    .contact-card-grid {
        grid-template-columns: 1fr;
    }

    .contact-shell {
        padding: 26px 22px;
        border-radius: 24px;
    }
}
