:root {
    color-scheme: dark;
    --bg: #030303;
    --ink: #f8f8f8;
    --muted: #a7abb6;
    --line: rgba(255, 255, 255, 0.14);
    --panel: rgba(255, 255, 255, 0.065);
    --panel-strong: rgba(255, 255, 255, 0.11);
    --cyan: #43f5ff;
    --green: #87ff9b;
    --pink: #ff4fd8;
    --yellow: #ffe66d;
    --max: 1180px;
}

body.theme-mint {
    --cyan: #7bffd1;
    --green: #c8ff6a;
    --pink: #62b7ff;
    --yellow: #ffffff;
}

body.theme-ember {
    --cyan: #ffb86b;
    --green: #ffe66d;
    --pink: #ff5f7e;
    --yellow: #ffffff;
}

body.theme-violet {
    --cyan: #9df0ff;
    --green: #f8ff8c;
    --pink: #b78cff;
    --yellow: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 28rem), radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--pink) 13%, transparent), transparent 24rem), radial-gradient(circle at 50% 92%, color-mix(in srgb, var(--green) 11%, transparent), transparent 26rem), linear-gradient(135deg, #020202 0%, #0b0b0d 52%, #020202 100%);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: none;
}

a,
button {
    color: inherit;
    cursor: none;
}

#neuralCanvas {
    position: fixed;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.18;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    pointer-events: none;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    will-change: transform, width, height, border-color, box-shadow;
    transition: opacity 180ms ease, width 220ms ease, height 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    box-shadow: 0 0 18px color-mix(in srgb, var(--cyan) 70%, transparent);
    mix-blend-mode: normal;
}

.cursor-ring {
    width: 42px;
    height: 42px;
    border: 1px solid color-mix(in srgb, var(--cyan) 72%, white 20%);
    box-shadow: 0 0 34px color-mix(in srgb, var(--cyan) 30%, transparent);
}

body.cursor-active .cursor-ring {
    width: 72px;
    height: 72px;
    border-color: var(--cyan);
    box-shadow: 0 0 48px color-mix(in srgb, var(--cyan) 42%, transparent);
}

.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    right: auto;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, calc(var(--max) + 48px));
    margin: 0 auto;
    padding: 22px 24px;
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 190px;
    height: 66px;
    overflow: hidden;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 190px;
    height: 190px;
    object-fit: cover;
    background: transparent;
    filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.1));
}

.brand strong,
.brand small {
    display: block;
    line-height: 1;
}

.brand small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.34);
}

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease;
}

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

.theme-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 42px;
    min-width: 154px;
    padding: 0 15px 0 52px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    backdrop-filter: blur(14px);
    touch-action: manipulation;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.theme-button::before {
    content: "";
    position: absolute;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 18px color-mix(in srgb, var(--cyan) 44%, transparent);
    transition: transform 180ms ease, background 180ms ease;
}

.theme-button[aria-pressed="true"]::before {
    transform: translateX(16px);
    background: linear-gradient(135deg, var(--cyan), var(--pink));
}

.theme-button-label {
    position: relative;
    line-height: 1;
}

.theme-button:hover {
    border-color: var(--cyan);
    background: rgba(255, 255, 255, 0.14);
}

.theme-button-top {
    position: static;
    z-index: 1;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    transition: transform 180ms ease;
}

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

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.68fr) minmax(300px, 0.64fr);
    gap: 128px;
    align-items: center;
    min-height: 100vh;
    padding: 138px 0 86px;
}

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

.eyebrow {
    margin: 0 0 18px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

h1,
h2,
h3 {
    font-family: "Space Grotesk", Inter, sans-serif;
    letter-spacing: 0;
}

h1 {
    position: relative;
    max-width: 440px;
    margin-bottom: 0;
    font-size: clamp(1.45rem, 2.3vw, 2.25rem);
    line-height: 1.16;
    text-transform: none;
    text-shadow: 0 0 32px rgba(255, 255, 255, 0.08);
}

h1::after {
    content: "";
    display: block;
    width: min(100%, 240px);
    height: 3px;
    margin-top: 18px;
    background: linear-gradient(90deg, #fff, var(--cyan), var(--pink), transparent);
}

h1::before {
    display: none;
}

h2 {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 6vw, 5.2rem);
    line-height: 0.95;
}

h3 {
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.hero-line {
    max-width: 540px;
    color: #d8dbe2;
    font-size: clamp(1rem, 1.7vw, 1.22rem);
    line-height: 1.65;
}

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

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
    background: #fff;
    color: #050505;
}

.button.ghost {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.hero-visual {
    position: relative;
    display: grid;
    width: min(100%, 460px);
    min-height: 360px;
    justify-self: end;
    opacity: 0.96;
    place-items: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hero-visual>* {
    position: relative;
}

.hero-visual::before,
.hero-visual::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 0 48px color-mix(in srgb, var(--cyan) 18%, transparent);
    animation: spin 18s linear infinite;
}

.hero-visual::before {
    width: 68%;
    aspect-ratio: 1;
}

.hero-visual::after {
    width: 44%;
    aspect-ratio: 1;
    animation-duration: 12s;
    animation-direction: reverse;
}

.orbit {
    position: absolute;
    inset: 0;
    animation: spin 26s linear infinite;
}

.orbit span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.56);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    transform: rotate(calc(var(--i) * 72deg)) translate(124px) rotate(calc(var(--i) * -72deg));
    box-shadow: 0 0 28px rgba(67, 245, 255, 0.18);
}

.core {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(40vw, 178px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.34), transparent 24%), radial-gradient(circle at 70% 80%, rgba(67, 245, 255, 0.28), transparent 34%), rgba(6, 6, 7, 0.82);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.025), 0 0 80px rgba(67, 245, 255, 0.16), 0 32px 90px rgba(0, 0, 0, 0.6);
}

.radar {
    position: absolute;
    z-index: 1;
    width: min(78vw, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 74%, rgba(67, 245, 255, 0.38), transparent 88% 100%);
    filter: blur(0.2px);
    opacity: 0.46;
    animation: spin 5s linear infinite;
}

.core span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 3.9rem;
    font-weight: 900;
    line-height: 0.8;
}

.core small {
    margin-top: -48px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, color-mix(in srgb, var(--cyan) 10%, transparent), transparent);
    opacity: 0.34;
    animation: scan 4.5s ease-in-out infinite;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-bottom: 116px;
}

.metrics article,
.service-card,
.timeline article,
.code-panel,
.contact {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    backdrop-filter: blur(18px);
}

.metrics article {
    padding: 24px;
}

.metrics strong {
    display: block;
    margin-bottom: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
}

.metrics span,
.service-card p,
.timeline p,
.showcase-copy p,
.site-footer {
    color: var(--muted);
    line-height: 1.65;
}

.services,
.process,
.showcase,
.contact {
    padding: 84px 0;
}

.section-heading {
    margin-bottom: 32px;
}

.section-note {
    max-width: 760px;
    color: #c9cdd5;
    font-size: 1.04rem;
    line-height: 1.7;
}

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

.service-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -35% 20%;
    height: 140px;
    background: radial-gradient(circle, rgba(67, 245, 255, 0.24), transparent 64%);
    opacity: 0;
    transition: opacity 220ms ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.32);
    background: var(--panel-strong);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    margin-bottom: 58px;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--cyan);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 900;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
}

.service-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.24);
    color: #e9ebef;
    font-size: 0.76rem;
    font-weight: 800;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    counter-reset: step;
}

.timeline article {
    position: relative;
    padding: 26px;
}

.timeline article::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    margin-bottom: 42px;
    color: var(--pink);
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
}

.timeline span {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 900;
}

.showcase {
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    gap: 36px;
    align-items: center;
}

.code-panel {
    overflow: hidden;
}

.panel-top {
    display: flex;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
}

.panel-top span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pink);
}

.panel-top span:nth-child(2) {
    background: var(--yellow);
}

.panel-top span:nth-child(3) {
    background: var(--green);
}

pre {
    margin: 0;
    overflow-x: auto;
    padding: 28px;
    color: #e8e8e8;
    font-size: clamp(0.86rem, 1.7vw, 1.02rem);
    line-height: 1.75;
}

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

.contact h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 5vw, 4.2rem);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 44px;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}

.footer-brand {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.footer-logo {
    width: 430px;
    height: 140px;
    flex: 0 0 auto;
    object-fit: contain;
    background: transparent;
}

.footer-brand p {
    max-width: 540px;
    margin: 0;
}

.footer-links,
.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.footer-links a,
.footer-social a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.footer-social {
    grid-column: 1 / -1;
    justify-content: center;
    padding-top: 8px;
}

.footer-social a {
    min-width: 112px;
    justify-content: center;
    border-color: color-mix(in srgb, var(--cyan) 44%, var(--line));
    background: rgba(255, 255, 255, 0.055);
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes scan {
    0%,
    100% {
        transform: translateY(-80%);
    }
    50% {
        transform: translateY(80%);
    }
}

@keyframes glitchShift {
    0%,
    78%,
    100% {
        transform: translate(4px, 6px);
        opacity: 0.62;
    }
    80% {
        transform: translate(-5px, 5px);
        opacity: 0.95;
    }
    82% {
        transform: translate(7px, -4px);
        opacity: 0.52;
    }
}

@media (max-width: 940px) {
    body {
        cursor: auto;
        padding-bottom: 74px;
        touch-action: manipulation;
    }
    a,
    button {
        cursor: pointer;
    }
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
    .site-header {
        left: 0;
        right: 0;
        width: 100%;
        padding: 14px 16px;
        transform: none;
        backdrop-filter: none;
    }
    .theme-button-top {
        position: fixed;
        left: 50%;
        right: auto;
        bottom: 14px;
        top: auto;
        width: min(230px, calc(100vw - 32px));
        min-width: 0;
        min-height: 48px;
        padding: 0 14px;
        justify-content: center;
        padding-left: 56px;
        transform: translateX(-50%);
        background: rgba(10, 10, 10, 0.76);
        box-shadow: 0 0 34px color-mix(in srgb, var(--cyan) 24%, transparent);
        z-index: 80;
    }
    .nav-toggle {
        display: block;
        flex: 0 0 auto;
    }
    .site-nav {
        position: fixed;
        top: 74px;
        left: 16px;
        right: 16px;
        bottom: 16px;
        min-height: 280px;
        height: calc(100dvh - 90px);
        z-index: 70;
        display: grid;
        align-content: start;
        grid-auto-rows: min-content;
        gap: 2px;
        padding: 10px;
        border-radius: 8px;
        background: #08080a;
        box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease;
    }
    .site-nav a {
        width: 100%;
        padding: 14px 16px;
    }
    body.nav-open .site-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    body.nav-open .theme-button-top {
        opacity: 0;
        pointer-events: none;
    }
    body.nav-open .nav-toggle span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }
    body.nav-open .nav-toggle span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }
    .hero,
    .showcase {
        grid-template-columns: 1fr;
    }
    .hero-copy {
        max-width: 620px;
    }
    .hero-visual {
        justify-self: stretch;
        width: 100%;
    }
    .hero {
        min-height: auto;
        gap: 28px;
        padding-top: 116px;
        padding-bottom: 56px;
    }
    .hero-visual {
        min-height: 340px;
    }
    .metrics,
    .service-grid,
    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact,
    .site-footer {
        align-items: flex-start;
    }
    .contact {
        flex-direction: column;
    }
    .site-footer {
        grid-template-columns: 1fr;
        padding-bottom: 124px;
        align-items: center;
        text-align: center;
    }
    .footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-brand p {
        width: 100%;
        max-width: 30rem;
    }
    .footer-links,
    .footer-social {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 620px) {
    .section-shell,
    .site-footer {
        width: min(100% - 28px, var(--max));
    }
    .brand small {
        display: none;
    }
    .brand-logo {
        width: 132px;
        height: 132px;
    }
    .brand {
        width: 132px;
        height: 48px;
    }
    h1 {
        max-width: 100%;
        font-size: clamp(1.35rem, 7vw, 1.9rem);
    }
    h2 {
        font-size: clamp(2rem, 12vw, 3.35rem);
        line-height: 1;
    }
    .eyebrow {
        font-size: 0.68rem;
        line-height: 1.45;
    }
    .hero-actions,
    .button {
        width: 100%;
    }
    .hero {
        gap: 24px;
        padding-top: 94px;
    }
    .theme-button-top {
        left: 50%;
        right: auto;
        bottom: 12px;
        top: auto;
        width: min(216px, calc(100vw - 28px));
        min-width: 0;
        font-size: 0.7rem;
    }
    .hero-visual {
        width: min(100%, 300px);
        min-height: 240px;
        justify-self: center;
    }
    .orbit span {
        width: 38px;
        height: 38px;
        font-size: 0.64rem;
        transform: rotate(calc(var(--i) * 72deg)) translate(82px) rotate(calc(var(--i) * -72deg));
    }
    .core {
        width: 126px;
    }
    .core span {
        font-size: 2.8rem;
    }
    .core small {
        margin-top: -38px;
        font-size: 0.58rem;
    }
    .metrics,
    .service-grid,
    .timeline {
        grid-template-columns: 1fr;
    }
    .services,
    .process,
    .showcase,
    .contact {
        padding: 58px 0;
    }
    .metrics {
        padding-bottom: 54px;
    }
    .footer-logo {
        width: 260px;
        height: 92px;
    }

    .site-footer,
    .footer-brand,
    .footer-bottom {
        align-items: center;
        text-align: center;
    }

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

    .footer-brand p {
        max-width: 30rem;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (pointer: coarse), (hover: none) {
  body {
    cursor: auto;
    padding-bottom: 74px;
  }

  a,
  button {
    cursor: pointer;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .site-header {
    left: 0;
    right: 0;
    width: 100%;
    padding: 14px 16px;
    transform: none;
  }

  .brand {
    width: 132px;
    height: 48px;
  }

  .brand-logo {
    width: 132px;
    height: 132px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .theme-button-top {
    position: fixed;
    right: 12px;
    bottom: 12px;
    top: auto;
    z-index: 60;
    min-width: 124px;
    min-height: 44px;
    font-size: 0.7rem;
    background: rgba(10, 10, 10, 0.76);
    box-shadow: 0 0 34px color-mix(in srgb, var(--cyan) 24%, transparent);
  }

  .theme-button-bottom {
    display: none;
  }

  .hero,
  .showcase {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 24px;
    padding-top: 94px;
    padding-bottom: 56px;
  }

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

  .hero-visual {
    width: min(100%, 300px);
    min-height: 240px;
    justify-self: center;
  }

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

  .contact,
  .site-footer {
    align-items: flex-start;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 34px;
}

.contact-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-form,
.newsletter-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label,
.newsletter-form label {
  display: grid;
  gap: 8px;
}

.contact-form span,
.newsletter-form span {
  color: #e9ebef;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.newsletter-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form input,
.contact-form select,
.newsletter-form input {
  min-height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 132px;
  padding: 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.newsletter-form input:focus {
  border-color: var(--cyan);
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 16%, transparent);
}

.contact-form select option {
  background: #080808;
  color: #fff;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: #ff8aa0;
}

.newsletter-form {
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  max-width: 680px;
}

.newsletter-form .form-status {
  grid-column: 1 / -1;
}

/* Contact form hard layout override */
section.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1fr);
  gap: 38px;
  align-items: center;
  padding: 42px;
}

section.contact .contact-copy h2 {
  max-width: 520px;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1;
}

section.contact .contact-copy p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 0;
  color: #d8dbe2;
  font-size: 1rem;
  line-height: 1.55;
}

section.contact .contact-form {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

section.contact .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

section.contact .contact-form label {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

section.contact .contact-form span {
  display: block;
}

section.contact .contact-form input,
section.contact .contact-form select,
section.contact .contact-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
}

section.contact .contact-form button {
  width: fit-content;
  min-width: 170px;
}

@media (max-width: 940px), (pointer: coarse), (hover: none) {
  .contact {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  section.contact {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 24px;
  }

  section.contact .contact-copy h2 {
    font-size: clamp(2rem, 9vw, 3.5rem);
  }

  .newsletter-form {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  section.contact .form-row {
    grid-template-columns: 1fr;
  }

  section.contact .contact-form {
    padding: 18px;
  }

  section.contact .contact-form button {
    width: 100%;
  }
}

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