:root {
    --bg: #030303;
    --bg-soft: #0b0b0b;
    --panel: #111111;
    --panel-light: #171717;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f4f0e8;
    --muted: #a7a19a;
    --gold: #c5a059;
    --gold-bright: #e0c37b;
    --gold-accent: #c5a059;
    --wood: #3d2b1f;
    --wood-dark: #3d2b1f;
    --bg-main: #030303;
    --bg-rich: #0b0b0b;
    --text-main: #f4f0e8;
    --text-muted: #a7a19a;
    --white: #ffffff;
    --section: 128px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1180px, calc(100% - 48px));
    max-width: 100%;
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 3, 3, 0.78);
    backdrop-filter: blur(18px);
}

.nav-shell {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0;
    min-width: max-content;
}

.brand img {
    max-height: 46px;
    width: auto;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    aspect-ratio: 1;
    border: 1px solid rgba(197, 160, 89, 0.5);
    color: var(--gold-bright);
    font-weight: 900;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    flex: 1;
    min-width: 0;
}

.main-nav a,
.nav-cta {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.main-nav a {
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.main-nav a:hover,
.nav-cta:hover {
    color: var(--white);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--gold-bright);
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-cta {
    color: #090909;
    background: var(--gold);
    padding: 11px 18px;
    border: 1px solid var(--gold);
}

.home-hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 82px);
    display: grid;
    align-items: center;
    padding: 88px 0 64px;
    border-bottom: 1px solid var(--line);
}

.home-hero.has-banner::before,
.home-hero.has-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
}

.home-hero.has-banner::before {
    background-image: var(--hero-banner);
    background-size: cover;
    background-position: center;
}

.home-hero.has-banner::after {
    z-index: -1;
    background: rgba(0, 0, 0, 0.68);
}

.hero-grid,
.split-grid,
.process-grid,
.cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 72px;
    align-items: center;
}

.hero-grid > *,
.split-grid > *,
.process-grid > *,
.cta-grid > *,
.vcard-grid > *,
.solution-grid > *,
.product-grid > *,
.project-grid > *,
.footer-grid > * {
    min-width: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-bright);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 42px;
    height: 1px;
    background: var(--gold);
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0;
}

h1 {
    max-width: 820px;
    margin-top: 24px;
    font-size: clamp(3.4rem, 8vw, 7.8rem);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 5rem);
}

h3 {
    font-size: 1.45rem;
    line-height: 1.15;
}

p {
    margin: 0;
    color: var(--muted);
    font-size: 1.06rem;
}

.text-muted {
    color: var(--muted);
}

.hero-copy p {
    max-width: 690px;
    margin-top: 30px;
    font-size: 1.22rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.btn-primary,
.btn-ghost,
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--gold);
    color: #050505;
    background: var(--gold);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.btn-ghost {
    color: var(--text);
    background: transparent;
}

.btn-primary:hover,
.btn-gold:hover,
.btn-ghost:hover {
    transform: translateY(-3px);
    background: var(--gold-bright);
    color: #050505;
}

.hero-panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
    padding: 22px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.panel-kicker {
    margin-bottom: 18px;
    color: var(--gold-bright);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.signal-card {
    padding: 24px;
    border-top: 1px solid var(--line);
}

.signal-card strong,
.timeline strong {
    display: block;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 8px;
}

.signal-card span {
    color: var(--muted);
}

.proof-strip {
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
    overflow: hidden;
}

.proof-row {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: #d8d0c6;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.split-section,
.vcard-section,
.services-section,
.products-section,
.process-section,
.contact-cta {
    padding: var(--section) 0;
    border-bottom: 1px solid var(--line);
}

.rich-copy {
    display: grid;
    gap: 22px;
}

.section-heading p {
    max-width: 680px;
    margin: 26px auto 0;
}

.centered {
    text-align: center;
}

.centered .eyebrow {
    justify-content: center;
}

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

.vcard,
.solution-card,
.cta-card {
    position: relative;
    min-height: 360px;
    padding: 34px;
    border: 1px solid var(--line);
    background: var(--panel);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.vcard:hover,
.solution-card:hover,
.cta-card:hover {
    transform: translateY(-8px);
    border-color: rgba(197, 160, 89, 0.65);
    background: var(--panel-light);
}

.vcard-mark {
    display: grid;
    place-items: center;
    width: 58px;
    aspect-ratio: 1;
    margin-bottom: 34px;
    border: 1px solid rgba(197, 160, 89, 0.5);
    color: var(--gold-bright);
    font-weight: 900;
}

.vcard p,
.solution-card p {
    margin-top: 18px;
}

.vcard ul {
    display: grid;
    gap: 9px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.vcard li::before {
    content: "+";
    color: var(--gold);
    margin-right: 8px;
}

.solution-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 54px;
}

.solution-card {
    min-height: 280px;
}

.solution-card span {
    display: block;
    margin-bottom: 70px;
    color: var(--gold);
    font-weight: 900;
}

.products-section {
    background: #050505;
}

.client-projects-section {
    padding: var(--section) 0;
    border-bottom: 1px solid var(--line);
    background: #080808;
}

.product-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 54px;
}

.product-card,
.project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.product-card:hover,
.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(197, 160, 89, 0.65);
    background: var(--panel-light);
}

.product-media,
.project-media {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
    background: #070707;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.product-media img,
.project-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 260ms ease;
}

.product-card:hover .product-media img,
.project-card:hover .project-media img {
    transform: scale(1.04);
}

.product-body,
.project-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 28px;
}

.product-body *,
.project-body * {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.product-body > span,
.project-body > span {
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.project-body strong {
    display: block;
    margin-top: 10px;
    color: var(--white);
    font-size: 0.92rem;
}

.product-body p,
.project-body p {
    margin-top: 16px;
}

.product-detail,
.project-detail {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.product-detail p,
.project-detail p {
    font-size: 0.95rem;
}

.product-link,
.project-link {
    margin-top: auto;
    padding-top: 24px;
    color: var(--gold-bright);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.product-link:hover,
.project-link:hover {
    color: var(--white);
}

.timeline {
    display: grid;
    border-left: 1px solid var(--gold);
}

.timeline div {
    padding: 0 0 34px 28px;
    position: relative;
}

.timeline div::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 7px;
    width: 11px;
    aspect-ratio: 1;
    background: var(--gold);
}

.contact-cta {
    background: #070707;
}

.has-section-bg {
    position: relative;
    isolation: isolate;
    background: transparent;
}

.has-section-bg::before,
.has-section-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
}

.has-section-bg::before {
    background-image: var(--section-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.has-section-bg::after {
    z-index: -1;
    background: rgba(0, 0, 0, 0.74);
}

.cta-card {
    min-height: auto;
}

.cta-card .btn-primary {
    margin-top: 24px;
}

.static-page {
    padding: 96px 0;
}

.static-page .content {
    max-width: 880px;
}

.page-banner {
    min-height: 420px;
    border-bottom: 1px solid var(--line);
}

.site-footer {
    padding: 76px 0 34px;
    background: #020202;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 52px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--white);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.site-footer h4 {
    margin: 0 0 18px;
    color: var(--gold-bright);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.site-footer a {
    display: block;
    max-width: 100%;
    margin-bottom: 10px;
    color: var(--muted);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 58px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: #7e7770;
    font-size: 0.86rem;
}

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

.reveal.reveal-pending {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 980px) {
    :root {
        --section: 88px;
    }

    .nav-shell {
        position: relative;
        min-height: auto;
        padding: 18px 0;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .brand {
        flex: 1;
        min-width: 0;
    }

    .brand img {
        max-width: 100%;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        background: rgba(3, 3, 3, 0.98);
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        padding: 12px 10px;
    }

    .main-nav a::after {
        display: none;
    }

    .hero-grid,
    .split-grid,
    .process-grid,
    .cta-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .vcard-grid,
    .solution-grid,
    .product-grid,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .home-hero {
        min-height: auto;
        padding: 56px 0 44px;
    }

    h1 {
        font-size: 2.7rem;
        line-height: 1;
    }

    h2 {
        font-size: 2.25rem;
        line-height: 1.05;
    }

    .nav-shell {
        gap: 14px;
        padding: 14px 0;
    }

    .brand {
        font-size: 0.82rem;
        max-width: none;
    }

    .brand-mark {
        width: 38px;
    }

    .brand img {
        max-height: 38px;
    }

    .nav-cta {
        padding: 9px 13px;
        font-size: 0.76rem;
    }

    .main-nav {
        gap: 0;
    }

    .main-nav a {
        font-size: 0.76rem;
    }

    .hero-copy p {
        margin-top: 22px;
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-ghost,
    .btn-gold {
        width: 100%;
        min-height: 50px;
        text-align: center;
    }

    .hero-panel {
        padding: 12px;
    }

    .signal-card {
        padding: 18px 12px;
    }

    .vcard-grid,
    .solution-grid,
    .product-grid,
    .project-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .product-card,
    .project-card,
    .product-media,
    .project-media,
    .product-media img,
    .project-media img {
        width: 100%;
        max-width: 100%;
    }

    .vcard,
    .solution-card {
        min-height: auto;
    }

    .proof-row {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .proof-row::-webkit-scrollbar {
        display: none;
    }

    .split-section,
    .vcard-section,
    .services-section,
    .products-section,
    .client-projects-section,
    .process-section,
    .contact-cta {
        padding: 72px 0;
    }

    .vcard,
    .solution-card,
    .cta-card {
        padding: 26px;
    }

    .solution-card span {
        margin-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .site-footer {
        padding-top: 58px;
    }
}

@media (max-width: 390px) {
    h1 {
        font-size: 2.35rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        width: min(100% - 22px, 1180px);
    }
}
