:root {
    color-scheme: dark;
    --bg: #080c14;
    --panel: rgba(12, 18, 31, 0.78);
    --panel-strong: rgba(10, 15, 26, 0.9);
    --line: rgba(255, 255, 255, 0.15);
    --line-strong: rgba(255, 255, 255, 0.24);
    --text: #f8fafc;
    --muted: #aab2c0;
    --orange: #ff7a45;
    --teal: #5eead4;
    --yellow: #ffd166;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    margin: 0;
}

body::before {
    background:
        linear-gradient(180deg, rgba(8, 12, 20, 0.08), rgba(8, 12, 20, 0.88)),
        url("https://images.unsplash.com/photo-1511919884226-fd3cad34687c?auto=format&fit=crop&w=2400&q=84");
    background-position: center top;
    background-size: cover;
    content: "";
    inset: 0;
    min-height: 100vh;
    opacity: 0.62;
    position: fixed;
    z-index: -2;
}

body::after {
    background: linear-gradient(90deg, rgba(8, 12, 20, 0.9), rgba(8, 12, 20, 0.42), rgba(8, 12, 20, 0.86));
    content: "";
    inset: 0;
    position: fixed;
    z-index: -1;
}

a {
    color: inherit;
}

.site-nav {
    align-items: center;
    backdrop-filter: blur(22px);
    background: rgba(10, 15, 26, 0.74);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    left: 50%;
    padding: 12px 16px;
    position: fixed;
    top: 18px;
    transform: translateX(-50%);
    width: min(1240px, calc(100% - 32px));
    z-index: 5;
}

.brand,
.site-nav nav,
.hero-actions,
.contact-actions,
footer {
    align-items: center;
    display: flex;
}

.brand {
    gap: 10px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.brand-rings {
    height: 20px;
    position: relative;
    width: 64px;
}

.brand-rings i {
    border: 4px solid #16c784;
    border-radius: 999px;
    height: 20px;
    position: absolute;
    width: 20px;
}

.brand-rings i:nth-child(2) {
    border-color: var(--yellow);
    left: 19px;
}

.brand-rings i:nth-child(3) {
    border-color: #ff4d4d;
    left: 38px;
}

.site-nav nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 999px;
    gap: 4px;
    padding: 5px;
}

.site-nav nav a {
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
    padding: 9px 13px;
    text-decoration: none;
}

.site-nav nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

main {
    display: grid;
    gap: 18px;
}

.hero {
    align-content: end;
    display: grid;
    min-height: 100vh;
    padding: 140px max(24px, calc((100vw - 1240px) / 2)) 36px;
}

.hero-copy {
    max-width: 980px;
}

.eyebrow {
    color: var(--orange);
    font-size: 0.86rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(3.5rem, 8.4vw, 9.2rem);
    letter-spacing: 0;
    line-height: 0.9;
    margin-bottom: 24px;
    max-width: 1180px;
}

h2 {
    font-size: clamp(2.2rem, 4.8vw, 5.4rem);
    letter-spacing: 0;
    line-height: 0.96;
    margin-bottom: 0;
}

h3 {
    font-size: clamp(1.35rem, 1.8vw, 2rem);
    line-height: 1;
    margin-bottom: 10px;
}

.lede {
    color: #d5dae4;
    font-size: clamp(1.15rem, 1.65vw, 1.7rem);
    line-height: 1.42;
    max-width: 780px;
}

.hero-actions,
.contact-actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.primary-button,
.ghost-button {
    border-radius: 999px;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    padding: 14px 22px;
    text-decoration: none;
}

.primary-button {
    background: #fff;
    color: #0b1020;
}

.ghost-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    color: var(--text);
}

.hero-meta {
    backdrop-filter: blur(18px);
    background: rgba(10, 15, 26, 0.72);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 52px;
    padding: 10px;
    width: fit-content;
}

.hero-meta span {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-weight: 850;
    gap: 8px;
    padding: 10px 14px;
}

.hero-meta strong {
    color: var(--text);
    font-size: 1.25rem;
}

.work-band,
.services,
.team-band,
.contact-panel {
    backdrop-filter: blur(20px);
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
    margin-inline: auto;
    padding: clamp(22px, 3vw, 42px);
    width: min(1240px, calc(100% - 32px));
}

.section-head {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
    max-width: 980px;
}

.work-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1.1fr 0.9fr;
}

.work-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 18px;
    display: grid;
    min-height: 300px;
    overflow: hidden;
    position: relative;
}

.work-card.tall {
    grid-row: span 2;
    min-height: 620px;
}

.work-card img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.work-card::after {
    background: linear-gradient(180deg, transparent 36%, rgba(4, 8, 15, 0.88));
    content: "";
    inset: 0;
    position: absolute;
}

.work-card div {
    align-self: end;
    display: grid;
    gap: 6px;
    padding: 22px;
    position: relative;
    z-index: 1;
}

.work-card span,
.service-code,
.team-grid span {
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.work-card strong {
    font-size: clamp(1.25rem, 2vw, 2.2rem);
    line-height: 1;
}

.service-grid,
.team-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
}

.service-grid article,
.team-grid article {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    color: #0b1020;
    padding: clamp(20px, 2vw, 30px);
}

.service-grid p,
.team-grid p,
.team-copy p {
    color: #4b5563;
    font-size: 1.02rem;
    line-height: 1.55;
    margin-bottom: 0;
}

.team-band {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: 0.9fr 1.1fr;
}

.team-copy p {
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 620px;
}

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

.contact-panel {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 0;
}

.contact-panel h2 {
    max-width: 850px;
}

footer {
    color: var(--muted);
    gap: 18px;
    justify-content: space-between;
    margin: 0 auto;
    padding: 18px 0 34px;
    width: min(1240px, calc(100% - 32px));
}

footer a {
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 880px) {
    .site-nav {
        align-items: stretch;
        border-radius: 24px;
        flex-direction: column;
    }

    .site-nav nav {
        justify-content: space-between;
        overflow-x: auto;
    }

    .hero {
        padding-top: 184px;
    }

    .work-grid,
    .team-band,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        align-items: flex-start;
        display: grid;
    }

    .work-card.tall,
    .work-card {
        min-height: 420px;
    }

    .service-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .brand-rings {
        width: 58px;
    }

    .site-nav nav a {
        padding: 9px 11px;
    }

    h1 {
        font-size: 3.35rem;
    }

    .hero-meta {
        border-radius: 24px;
        width: 100%;
    }

    .hero-meta span {
        flex: 1 1 100%;
    }
}
