:root {
    --bg: #07090b;
    --bg-soft: #0d1115;
    --panel: rgba(255, 255, 255, 0.075);
    --line: rgba(255, 255, 255, 0.14);
    --text: #f6f8fb;
    --muted: rgba(246, 248, 251, 0.72);
    --muted-strong: rgba(246, 248, 251, 0.88);
    --accent: #54c7e9;
    --accent-2: #c8f15a;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    --radius: 8px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(100% - 40px, var(--max));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 28px;
    height: 84px;
    padding: 0 clamp(20px, 4vw, 58px);
    transition: background 180ms ease, border-color 180ms ease, height 180ms ease;
}

.site-header.is-scrolled {
    height: 72px;
    background: rgba(7, 9, 11, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.site-header.is-scrolled .brand {
    width: 60px;
    height: 60px;
}

.brand img {
    width: 118%;
    height: 118%;
    object-fit: contain;
}

.desktop-nav {
    justify-self: center;
    display: flex;
    gap: clamp(18px, 3vw, 38px);
}

.desktop-nav a,
.header-cta,
.mobile-panel a {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.desktop-nav a {
    color: var(--muted);
}

.desktop-nav a:hover {
    color: var(--text);
}

.header-cta {
    padding: 13px 18px;
    border: 1px solid rgba(84, 199, 233, 0.45);
    border-radius: 999px;
    color: var(--text);
    background: rgba(84, 199, 233, 0.12);
}

.header-cta:hover {
    background: var(--accent);
    color: #061016;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    transition: transform 180ms ease;
}

.menu-button.is-open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-button.is-open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-panel {
    position: fixed;
    inset: 84px 16px auto;
    z-index: 19;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.mobile-panel.is-open {
    display: flex;
}

.mobile-panel a {
    padding: 16px;
    border-radius: 6px;
    color: var(--muted-strong);
}

.mobile-panel a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    position: relative;
    min-height: 100svh;
    height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 112px clamp(20px, 6vw, 72px) 28px;
}

.hero-video,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    object-fit: cover;
    filter: saturate(1.04) contrast(1.02);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(7, 9, 11, 0.94), rgba(7, 9, 11, 0.58) 42%, rgba(7, 9, 11, 0.22)),
        linear-gradient(0deg, rgba(7, 9, 11, 0.92), rgba(7, 9, 11, 0.08) 48%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(790px, 100%);
}

.eyebrow,
.section-kicker {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 18px;
    max-width: 760px;
    font-size: clamp(2.9rem, 6.5vw, 5.9rem);
    line-height: 0.96;
    letter-spacing: 0;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    line-height: 1;
    letter-spacing: 0;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.08;
}

.hero-copy {
    max-width: 650px;
    margin-bottom: 22px;
    color: var(--muted-strong);
    font-size: clamp(0.98rem, 1.35vw, 1.12rem);
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent-2);
    color: #10140a;
}

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

.hero-proof {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: min(760px, 100%);
    margin-top: 42px;
    border: 1px solid var(--line);
    background: var(--line);
    box-shadow: var(--shadow);
}

.hero-proof div {
    min-height: 88px;
    padding: 18px;
    background: rgba(7, 9, 11, 0.72);
    backdrop-filter: blur(16px);
}

.hero-proof strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.42rem;
}

.hero-proof span,
.contact-card,
p {
    color: var(--muted);
}

.intro,
.showcase,
.process,
.contact {
    padding: clamp(82px, 11vw, 150px) 0;
}

.intro {
    background: linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: clamp(32px, 7vw, 96px);
    align-items: start;
    margin-bottom: 64px;
}

.intro-copy p,
.contact-content p {
    max-width: 700px;
    font-size: 1.08rem;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.capability {
    min-height: 300px;
    padding: 34px 30px;
    border-right: 1px solid var(--line);
}

.capability:last-child {
    border-right: 0;
}

.capability span {
    display: inline-flex;
    margin-bottom: 72px;
    color: var(--accent);
    font-weight: 800;
}

.showcase {
    background: #050607;
}

.section-heading {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 52px;
    margin-bottom: 42px;
}

.project-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 14px;
    width: min(100% - 40px, 1500px);
    margin: 0 auto;
}

.project-card {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: var(--radius);
    isolation: isolate;
    background: #111;
}

.project-card img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    transition: transform 600ms ease;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.05) 58%);
}

.project-card:hover img {
    transform: scale(1.045);
}

.project-card div {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 26px;
}

.project-card p {
    margin-bottom: 8px;
    color: var(--accent-2);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.process {
    background: linear-gradient(180deg, #050607, var(--bg));
}

.process-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(34px, 6vw, 86px);
    align-items: center;
}

.process-media {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.process-media video {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.steps {
    display: grid;
    gap: 18px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.steps li {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.steps span {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-weight: 800;
}

.contact {
    background:
        linear-gradient(135deg, rgba(84, 199, 233, 0.12), transparent 36%),
        var(--bg-soft);
}

.contact-card {
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    font-style: normal;
}

.contact-card span {
    display: block;
    margin: 26px 0 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-card span:first-child {
    margin-top: 0;
}

.contact-card a:hover {
    color: var(--accent-2);
}

.footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    background: #050607;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    color: var(--muted);
    font-size: 0.88rem;
}

.footer-grid strong {
    color: var(--text);
}

.footer-grid nav {
    display: flex;
    gap: 20px;
}

.footer-grid span {
    justify-self: end;
}

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

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

.delay-1 {
    transition-delay: 90ms;
}

.delay-2 {
    transition-delay: 180ms;
}

.delay-3 {
    transition-delay: 270ms;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: auto 1fr auto;
    }

    .desktop-nav,
    .header-cta {
        display: none;
    }

    .menu-button {
        display: block;
        justify-self: end;
    }

    .hero {
        min-height: 100svh;
        height: 100svh;
        padding-top: 100px;
    }

    .hero-shade {
        background:
            linear-gradient(180deg, rgba(7, 9, 11, 0.55), rgba(7, 9, 11, 0.9) 75%),
            linear-gradient(90deg, rgba(7, 9, 11, 0.7), rgba(7, 9, 11, 0.2));
    }

    .intro-grid,
    .section-heading,
    .process-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .capability-grid {
        grid-template-columns: 1fr;
    }

    .capability {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .capability:last-child {
        border-bottom: 0;
    }

    .capability span {
        margin-bottom: 28px;
    }

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

    .project-card,
    .project-card img {
        min-height: 420px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid nav,
    .footer-grid span {
        justify-self: center;
    }
}

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

    .site-header {
        height: 74px;
        padding: 0 14px;
    }

    .brand {
        width: 58px;
        height: 58px;
    }

    .hero {
        min-height: 100svh;
        height: 100svh;
        padding: 92px 14px 18px;
    }

    h1 {
        font-size: clamp(2.45rem, 10.8vw, 3.55rem);
    }

    .hero-proof {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .hero-proof div {
        min-height: auto;
        padding: 12px 14px;
    }

    .project-rail {
        grid-template-columns: 1fr;
        width: min(100% - 28px, 1500px);
    }

    .project-card,
    .project-card img {
        min-height: 360px;
    }

    .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
