
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* GLOBAL */

:root {
    --bg: #080908;
    --lime: #b7ff3c;
    --paper: #efefe8;
    --muted: #a5aaa1;
    --line: #ffffff22;
    --heading: 'Space Grotesk', Arial, sans-serif;
    --pad: clamp(22px, 5vw, 85px);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--paper);
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.85;
}

em {
    color: var(--lime);
    font-style: normal;
}

::selection {
    color: var(--bg);
    background: var(--lime);
}

:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 5px;
}

.section {
    padding: clamp(65px, 7vw, 110px) var(--pad);
    border-top: 1px solid var(--line);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--lime);
    font: 11px/1.6 monospace;
    letter-spacing: .14em;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 45px;
    align-items: end;
    margin-bottom: 45px;
}

.section-heading h2,
.care-content h2 {
    font: 700 clamp(35px, 5vw, 72px)/.98 var(--heading);
    letter-spacing: -.075em;
    margin: 22px 0 0;
}

.section-heading p {
    max-width: 470px;
    margin: 0;
}

.status-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    background: var(--lime);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--lime);
    animation: blink 1.7s infinite alternate;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: background .3s, color .3s, transform .3s;
}

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

.btn-primary:hover {
    background: #d6ffa0;
    border-color: #d6ffa0;
}

.btn-outline {
    background: transparent;
    border-color: #ffffff35;
    color: var(--paper);
}

.btn-outline:hover {
    background: #b7ff3c12;
    color: var(--lime);
    border-color: var(--lime);
}

/* INTRO */

.intro {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    gap: 22px;
    background: var(--bg);
    transition: transform .75s cubic-bezier(.76,0,.24,1);
    animation: intro-failsafe 0s 4s forwards;
}

.intro.finished {
    transform: translateY(-105%);
    pointer-events: none;
}

.intro-brand {
    font: 700 clamp(40px, 6vw, 80px) var(--heading);
    letter-spacing: -.08em;
}

.intro-brand span {
    color: var(--lime);
}

.intro-counter {
    font: 600 clamp(85px, 12vw, 145px)/1 var(--heading);
    letter-spacing: -.1em;
    color: var(--lime);
}

.intro-track {
    width: 200px;
    height: 2px;
    background: #ffffff25;
}

.intro-track i {
    display: block;
    height: 100%;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
}

.intro small {
    color: var(--muted);
    font: 10px monospace;
    letter-spacing: .12em;
}

@keyframes intro-failsafe {
    to { visibility: hidden; }
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 12px var(--pad);
    min-height: 78px;
    background: #080908ed;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-logo {
    display: block;
    width: 145px;
    height: 52px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.header-logo img {
    position: absolute;
    max-width: none;
    width: 110%;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.3vw, 38px);
}

.desktop-nav a {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--paper);
    transition: color .3s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--lime);
}

.header-cta {
    border: 1px solid var(--lime);
    padding: 13px 18px;
    color: var(--lime);
    font-weight: 700;
    font-size: 11px;
}

.header-cta:hover {
    background: var(--lime);
    color: #111;
}

.menu-button {
    display: none;
    padding: 12px 15px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--lime);
    font-size: 11px;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    padding: 125px 7% 35px;
    background: #10130e;
    overflow: auto;
}

.mobile-menu nav {
    display: grid;
    margin-top: 25px;
}

.mobile-menu nav a {
    font: 500 clamp(25px, 5vw, 50px) var(--heading);
    letter-spacing: -.05em;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

/* HERO */

.hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100svh - 78px);
    position: relative;
    padding: 50px var(--pad) 25px;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 78% 45%, #283b1455, transparent 60%),
        var(--bg);
}

.hero-grid-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(#b7ff3c0c 1px, transparent 1px),
        linear-gradient(90deg, #b7ff3c0c 1px, transparent 1px);
    background-size: 65px 65px;
    mask-image: radial-gradient(ellipse at 75% 50%, black, transparent 75%);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 35px;
    flex: 1;
}

.hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.hero-copy h1 {
    font: 700 clamp(50px, 6.6vw, 113px)/.91 var(--heading);
    letter-spacing: -.085em;
    margin: 28px 0;
    overflow-wrap: anywhere;
    animation: hero-in .85s .1s both;
}

.hero-copy p {
    max-width: 500px;
    font-size: 15px;
    animation: hero-in .85s .25s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    animation: hero-in .85s .4s both;
}

.hero-visual {
    min-width: 0;
    position: relative;
}

.hero-3d {
    position: relative;
    width: 100%;
    height: clamp(340px, 37vw, 580px);
    overflow: hidden;
    border: 1px solid #b7ff3c19;
    border-radius: 12px;
    background: radial-gradient(circle, #b7ff3c0a, transparent 70%);
}

.hero-3d canvas,
.lab-scene canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: pan-y;
    cursor: grab;
}

.hero-3d canvas:active,
.lab-scene canvas:active {
    cursor: grabbing;
}

.hero-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    perspective: 900px;
}

.hero-fallback svg {
    width: 48%;
    max-height: 75%;
    filter: drop-shadow(0 0 30px #b7ff3c60);
    animation: cursor-float 5s ease-in-out infinite;
}

.is-loaded .hero-fallback,
.is-loaded .lab-fallback {
    display: none;
}

.visual-cross {
    position: absolute;
    top: 18px;
    right: 18px;
    font: 25px monospace;
    color: var(--lime);
    pointer-events: none;
}

.visual-label,
.hero-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font: 10px/1.5 monospace;
    color: var(--muted);
    padding: 15px 0;
}

.hero-footer {
    border-top: 1px solid var(--line);
    margin-top: 35px;
}

.hero-footer a {
    color: var(--lime);
}

@keyframes cursor-float {
    0%,100% {
        transform: translateY(0) rotateY(-15deg) rotateZ(-8deg);
    }
    50% {
        transform: translateY(-15px) rotateY(25deg) rotateZ(4deg);
    }
}

@keyframes hero-in {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

/* METHOD */

.process {
    background: #0c0e0b;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
}

.process-card {
    position: relative;
    overflow: hidden;
    padding: 28px 23px;
    min-height: 255px;
    border-right: 1px solid var(--line);
    transition: background .35s;
}

.process-card:last-child {
    border-right: 0;
}

.process-card:hover {
    background: #b7ff3c0c;
}

.process-number {
    color: var(--lime);
    font: 600 48px/1 var(--heading);
    letter-spacing: -.08em;
    margin-bottom: 24px;
}

.process-card > span,
.service-card > span {
    font: 10px monospace;
    letter-spacing: .08em;
    color: var(--muted);
}

.process-card h3 {
    font: 600 clamp(20px, 2vw, 29px)/1.12 var(--heading);
    letter-spacing: -.05em;
    margin: 15px 0;
}

.process-card p {
    font-size: 12px;
    margin: 0;
}

.process-icon {
    position: absolute;
    top: 30px;
    right: 20px;
    font: 23px monospace;
    color: #b7ff3c66;
    transition: transform .5s;
}

.process-card:hover .process-icon {
    transform: rotate(-20deg) scale(1.2);
    color: var(--lime);
}

/* MARQUEE */

.brand-strip {
    overflow: hidden;
    background: var(--lime);
    color: var(--bg);
    padding: 13px 0;
}

.brand-strip-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.brand-strip-track span {
    white-space: nowrap;
    padding-right: 30px;
    font: 700 22px var(--heading);
    letter-spacing: -.045em;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* SERVICES */

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

.service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 310px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        radial-gradient(circle at top right, #b7ff3c08, transparent 60%),
        #121510;
    transition: border-color .3s, transform .25s;
}

.service-card:hover {
    border-color: #b7ff3c70;
}

.service-symbol {
    color: var(--lime);
    font: 45px var(--heading);
    margin: 22px 0 10px;
}

.service-card h3 {
    font: 600 25px/1.1 var(--heading);
    letter-spacing: -.05em;
    margin: 10px 0;
}

.service-card p {
    font-size: 13px;
}

.service-card a {
    display: block;
    margin-top: auto;
    padding-top: 20px;
    font-size: 12px;
    color: var(--lime);
}

/* VIRTUAL LAB */

.virtual-section {
    background:
        radial-gradient(ellipse at 50% 50%, #23380e55, transparent 80%),
        #0a0c09;
}

.lab-shell {
    overflow: hidden;
    border: 1px solid #b7ff3c40;
    border-radius: 12px;
    box-shadow: 0 28px 75px #0005;
    background: #090c07;
}

.lab-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: #191e15;
    font: 10px/1.6 monospace;
    color: var(--muted);
}

.lab-toolbar .status-dot {
    margin-right: 8px;
}

.lab-toolbar button {
    background: transparent;
    color: var(--lime);
    border: 1px solid #b7ff3c40;
    padding: 9px 12px;
    font: 10px monospace;
}

.lab-stage {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 45% 40%, #26371a, transparent 65%),
        #070907;
}

.lab-scene {
    width: 100%;
    height: clamp(410px, 44vw, 650px);
    position: relative;
}

.lab-fallback {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: var(--lime);
    background-image:
        linear-gradient(#b7ff3c0a 1px, transparent 1px),
        linear-gradient(90deg, #b7ff3c0a 1px, transparent 1px);
    background-size: 40px 40px;
}

.lab-fallback span {
    font-size: 100px;
}

.lab-fallback strong {
    font: 700 26px var(--heading);
}

.lab-information {
    position: absolute;
    top: 25px;
    left: 25px;
    width: min(265px, 32%);
    padding: 22px;
    border: 1px solid #b7ff3c30;
    background: #10150dd9;
    border-radius: 8px;
    backdrop-filter: blur(12px);
    z-index: 2;
}

.lab-information h3 {
    font: 700 clamp(28px, 4vw, 48px)/1 var(--heading);
    letter-spacing: -.07em;
    margin: 20px 0 12px;
}

.lab-information p {
    font-size: 12px;
}

.lab-information .btn {
    width: 100%;
    padding: 14px 10px;
    margin-top: 12px;
    font-size: 10px;
}

.lab-hint,
.lab-coordinate {
    position: absolute;
    bottom: 20px;
    color: #c0c8ba;
    font: 9px/1.8 monospace;
    pointer-events: none;
}

.lab-hint {
    left: 25px;
}

.lab-coordinate {
    right: 25px;
    text-align: right;
}

.lab-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.lab-station {
    text-align: left;
    background: #11150e;
    border: 0;
    border-right: 1px solid var(--line);
    padding: 20px;
    color: var(--paper);
    transition: background .3s;
}

.lab-station:last-child {
    border-right: 0;
}

.lab-station small {
    display: block;
    color: var(--muted);
    font: 9px/1.4 monospace;
    margin-bottom: 9px;
}

.lab-station strong {
    font: 600 clamp(20px, 2.5vw, 32px) var(--heading);
    letter-spacing: -.06em;
}

.lab-station.active,
.lab-station:hover {
    background: var(--lime);
    color: #11150e;
}

.lab-station.active small,
.lab-station:hover small {
    color: #344b18;
}

.lab-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin-top: 30px;
}

.lab-bottom h3 {
    font: 600 clamp(25px,3vw,40px) var(--heading);
    letter-spacing: -.05em;
    margin: 10px 0 0;
}

.lab-shell:fullscreen {
    display: flex;
    flex-direction: column;
    border-radius: 0;
    background: #080908;
}

.lab-shell:fullscreen .lab-stage {
    flex: 1;
    min-height: 0;
}

.lab-shell:fullscreen .lab-scene {
    height: 100%;
}

/* CARE */

.care-section {
    background: #11170d;
}

.care-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 7%;
    align-items: center;
}

.care-content p {
    max-width: 470px;
    margin: 25px 0;
}

.care-price {
    color: var(--lime);
    font: 700 clamp(35px, 5vw, 65px) var(--heading);
    letter-spacing: -.065em;
    margin: 20px 0;
}

.care-price small {
    color: var(--muted);
    font: 14px Inter, sans-serif;
    letter-spacing: 0;
}

.care-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.care-features article {
    padding: 25px;
    background: #b7ff3c06;
    border: 1px solid #b7ff3c20;
    border-radius: 8px;
}

.care-features article span {
    color: var(--lime);
    font: 10px monospace;
}

.care-features h3 {
    font: 600 22px/1.2 var(--heading);
    letter-spacing: -.05em;
    margin: 20px 0 10px;
}

.care-features p {
    margin: 0;
    font-size: 13px;
}

/* STUDIO */

.studio-section {
    background: var(--paper);
    color: var(--bg);
}

.studio-section .eyebrow {
    color: #526b27;
}

.studio-section h2 {
    font: 700 clamp(40px, 8vw, 110px)/.94 var(--heading);
    letter-spacing: -.08em;
    margin: 35px 0;
}

.studio-section h2 em {
    color: #536a34;
}

.studio-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6%;
    max-width: 950px;
}

.studio-bottom p {
    color: #454a3e;
}

/* CONTACT */

.contact-section {
    background:
        radial-gradient(ellipse at 0% 100%, #22390e55, transparent 65%),
        var(--bg);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
}

.contact-copy h2 {
    font: 700 clamp(65px, 11vw, 150px)/.9 var(--heading);
    letter-spacing: -.09em;
    margin: 30px 0;
}

.contact-copy p {
    max-width: 380px;
}

.contact-brand {
    margin-top: 50px;
    font: 700 clamp(27px,4vw,48px) var(--heading);
    letter-spacing: -.07em;
}

.contact-brand span,
.footer-brand span {
    color: var(--lime);
}

.contact-form {
    display: grid;
    align-content: start;
    gap: 13px;
    min-width: 0;
}

.contact-form label {
    font-size: 12px;
    color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: #141810;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 15px;
    color: var(--paper);
    color-scheme: dark;
    width: 100%;
    min-width: 0;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form small,
#contactFeedback {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    margin: 0;
}

/* FOOTER */

.site-footer {
    padding: 28px var(--pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid var(--line);
    font: 10px monospace;
    color: var(--muted);
}

.footer-brand {
    font: 700 26px var(--heading);
    letter-spacing: -.07em;
    color: var(--paper);
}

/* SCROLL / CURSOR */

.scroll-progress {
    position: fixed;
    z-index: 200;
    height: 2px;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}

.custom-cursor {
    position: fixed;
    z-index: 400;
    top: 0;
    left: 0;
    opacity: 0;
    width: 24px;
    height: 24px;
    border: 1px solid var(--lime);
    border-radius: 50%;
    pointer-events: none;
    transition: width .2s, height .2s, opacity .2s;
}

.custom-cursor.hover {
    width: 44px;
    height: 44px;
    background: #b7ff3c25;
}

.reveal.motion-ready {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .75s, transform .75s;
}

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

@keyframes blink {
    to { opacity: .4; }
}

/* RESPONSIVE */

@media (max-width: 1100px) {

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

    .menu-button {
        display: block;
    }

    .hero-copy h1 {
        font-size: clamp(45px, 7vw, 80px);
    }

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

    .process-card {
        border: 1px solid var(--line);
    }

    .care-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}

@media (max-width: 750px) {

    .site-header {
        min-height: 70px;
    }

    .header-logo {
        width: 120px;
        height: 45px;
    }

    .hero-layout,
    .section-heading,
    .contact-layout,
    .studio-bottom {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero {
        min-height: auto;
        padding-top: 50px;
    }

    .hero-copy h1 {
        font-size: clamp(42px, 10vw, 72px);
    }

    .hero-3d {
        height: 350px;
    }

    .hero-footer span:last-child {
        display: none;
    }

    .hero-footer,
    .visual-label {
        font-size: 8px;
    }

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

    .lab-information {
        position: relative;
        width: auto;
        inset: auto;
        margin: 14px;
    }

    .lab-scene {
        height: 350px;
    }

    .lab-coordinate {
        display: none;
    }

    .lab-hint {
        position: static;
        padding: 10px 15px;
    }

    .lab-controls {
        grid-template-columns: 1fr 1fr;
    }

    .lab-station {
        padding: 15px;
        border-bottom: 1px solid var(--line);
    }

    .lab-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .lab-shell:fullscreen .lab-stage {
        overflow: auto;
    }

    .lab-shell:fullscreen .lab-scene {
        height: 45vh;
    }

}

@media (max-width: 480px) {

    .process-grid,
    .services-grid,
    .care-features {
        grid-template-columns: 1fr;
    }

    .process-card {
        min-height: 210px;
    }

    .service-card {
        min-height: 270px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-3d {
        height: 300px;
    }

}

@media (pointer: coarse) {

    .custom-cursor {
        display: none;
    }

}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }

    .intro,
    .custom-cursor {
        display: none;
    }

    .reveal.motion-ready {
        opacity: 1;
        transform: none;
    }

}
