﻿:root {
    --ink: #07131f;
    --ink-2: #0c2230;
    --paper: #f7f9f8;
    --white: #ffffff;
    --teal: #2ebfa5;
    --teal-deep: #199581;
    --sage: #a9c49a;
    --slate: #5c6f7b;
    --line-d: rgba(255,255,255,.10);
    --line-l: rgba(7,19,31,.10);
    --disp: 'Space Grotesk',sans-serif;
    --body: 'Inter',sans-serif;
    --mono: 'IBM Plex Mono',monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--body);
    background: var(--ink);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

::selection {
    background: var(--teal);
    color: var(--ink)
}
.logo img {
    height: 25px;
    width: auto;
}
img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

@media(min-width:1024px) {
    .wrap {
        padding: 0 40px
    }
}

/* type */
h1, h2, h3 {
    font-family: var(--disp);
    letter-spacing: -.02em
}

.eyebrow {
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 16px
}

    .eyebrow::before {
        content: "";
        width: 36px;
        height: 1px;
        background: var(--teal);
        flex: none
    }

.h-xl {
    font-size: clamp(2.15rem,6vw,4.4rem);
    font-weight: 700;
    line-height: 1.04
}

.h-lg {
    font-size: clamp(1.85rem,4.2vw,3.2rem);
    font-weight: 700;
    line-height: 1.08
}

.lead {
    font-size: clamp(1.02rem,1.55vw,1.2rem);
    line-height: 1.7
}

.mono-num {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--teal);
    font-size: .85rem;
    letter-spacing: .1em
}

/* icons */
.ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(46,191,165,.3);
    background: rgba(46,191,165,.08);
    display: grid;
    place-items: center;
    flex: none
}

    .ico svg {
        width: 22px;
        height: 22px;
        stroke: var(--teal);
        fill: none;
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round
    }

.sec-light .ico {
    border-color: rgba(25,149,129,.28);
    background: rgba(46,191,165,.08)
}

.ico-sm {
    width: 38px;
    height: 38px;
    border-radius: 11px
}

    .ico-sm svg {
        width: 18px;
        height: 18px
    }

/* progress + rail */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg,var(--teal),var(--sage));
    z-index: 200;
    transition: width .1s linear
}

#rail {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 150;
    display: none;
    flex-direction: column;
    gap: 14px
}

@media(min-width:1280px) {
    #rail {
        display: flex
    }
}

#rail a {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end
}

#rail .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(140,160,170,.45);
    transition: all .3s
}

#rail .lbl {
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .18em;
    color: var(--teal);
    opacity: 0;
    transform: translateX(6px);
    transition: all .3s;
    text-transform: uppercase
}

#rail a.on .dot {
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(46,191,165,.18)
}

#rail a.on .lbl, #rail a:hover .lbl {
    opacity: 1;
    transform: none
}

/* nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background .35s,box-shadow .35s,padding .35s;
    padding: 22px 0
}

    nav.scrolled {
        background: rgba(7,19,31,.92);
        backdrop-filter: blur(14px);
        box-shadow: 0 1px 0 var(--line-d);
        padding: 12px 0
    }

.nav-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px
}
/* DEVELOPER NOTE: replace .logo-mark SVG with the official Metawerk logo SVG before launch */
.logo-mark {
    width: 42px;
    height: 42px;
    flex: none
}

    .logo-mark svg {
        width: 100%;
        height: 100%
    }

.logo-name {
    font-family: var(--disp);
    font-weight: 700;
    letter-spacing: .22em;
    font-size: 1.05rem
}

.logo-tag {
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .24em;
    color: var(--teal);
    text-transform: uppercase;
    margin-top: 3px
}

.nav-links {
    display: none;
    gap: 30px;
    font-size: .86rem;
    font-weight: 500;
    color: rgba(255,255,255,.78)
}

@media(min-width:1024px) {
    .nav-links {
        display: flex
    }
}

.nav-links a {
    position: relative;
    padding: 4px 0;
    transition: color .25s
}

    .nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 1.5px;
        background: var(--teal);
        transition: width .3s
    }

    .nav-links a:hover {
        color: var(--teal)
    }

        .nav-links a:hover::after {
            width: 100%
        }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: .92rem;
    padding: 14px 26px;
    border-radius: 10px;
    transition: all .28s;
    border: 1px solid transparent
}

    .btn .ar {
        transition: transform .28s
    }

    .btn:hover .ar {
        transform: translateX(4px)
    }

.btn-solid {
    background: var(--teal);
    color: var(--ink)
}

    .btn-solid:hover {
        background: #5fdcc6;
        box-shadow: 0 10px 30px rgba(46,191,165,.3)
    }

.btn-ghost {
    border-color: rgba(255,255,255,.28);
    color: var(--white);
    background: rgba(255,255,255,.04)
}

    .btn-ghost:hover {
        border-color: var(--teal);
        color: var(--teal)
    }

.nav-cta {
    display: none
}

@media(min-width:640px) {
    .nav-cta {
        display: inline-flex;
        padding: 11px 20px
    }
}

#burger {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-d);
    border-radius: 10px;
    background: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.7rem
}

@media(min-width:1024px) {
    #burger {
        display: none
    }
}

#mobile {
    position: fixed;
    inset: 0;
    background: rgba(7,19,31,.97);
    backdrop-filter: blur(10px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    font-family: var(--disp);
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s
}

    #mobile.open {
        opacity: 1;
        pointer-events: auto
    }

    #mobile a {
        color: rgba(255,255,255,.85)
    }

        #mobile a:hover {
            color: var(--teal)
        }

/* hero */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 150px 0 90px;
    overflow: hidden
}
/* DEVELOPER NOTE: hero visual below is a self-contained SVG scene (clean water + solar
        infrastructure with an IoT layer) so nothing depends on an external image that can break.
        To use a real photo instead: set .hero-bg background to url('...licensed image...') center/cover,
        remove the inline <svg id="heroScene">, and keep .hero-shade/.hero-glow over it.
        Approved photo direction: water treatment facility, clean processing plant, or solar/storage. */
.hero-bg {
    position: absolute;
    inset: 0;
    will-change: transform;
    animation: slowzoom 26s ease-in-out infinite alternate
}

    .hero-bg svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%
    }

    .hero-bg .scene-fade {
        mix-blend-mode: normal
    }

@keyframes slowzoom {
    from {
        transform: scale(1)
    }

    to {
        transform: scale(1.05)
    }
}

@keyframes dataflow {
    to {
        stroke-dashoffset: -28
    }
}

@keyframes pulse {
    0%,100% {
        opacity: .35;
        r: 3
    }

    50% {
        opacity: 1;
        r: 5
    }
}

.node {
    animation: pulse 3.4s ease-in-out infinite
}

.flow {
    stroke-dasharray: 4 8;
    animation: dataflow 2.4s linear infinite
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,var(--ink) 26%,rgba(7,19,31,.82) 50%,rgba(7,19,31,.30))
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 76% 30%,rgba(46,191,165,.2),transparent 36%)
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(46,191,165,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(46,191,165,.06) 1px,transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 70% 40%,#000 30%,transparent 75%)
}

.hero-in {
    position: relative;
    z-index: 2
}

.hero h1 {
    margin-top: 28px;
    max-width: 13ch
}

    .hero h1 .ac {
        color: var(--teal)
    }

.hero .lead {
    margin-top: 24px;
    max-width: 600px;
    color: rgba(255,255,255,.82)
}

.badges {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px
}

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 10px;
    border: 1px solid var(--line-d);
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(6px);
    font-size: .86rem;
    font-weight: 600
}

    .badge .ico {
        width: 34px;
        height: 34px;
        border-radius: 50%
    }

        .badge .ico svg {
            width: 16px;
            height: 16px
        }

.hero-ctas {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px
}

@media(max-width:480px) {
    .hero-ctas .btn {
        width: 100%;
        justify-content: center
    }
}

.stats {
    margin-top: 58px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    border: 1px solid var(--line-d);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(10px)
}

@media(min-width:900px) {
    .stats {
        grid-template-columns: repeat(5,1fr)
    }
}

.stat {
    padding: 24px 22px;
    border-right: 1px solid var(--line-d);
    border-bottom: 1px solid var(--line-d)
}

    .stat .n {
        font-family: var(--disp);
        font-weight: 700;
        font-size: 2.3rem;
        color: var(--teal);
        line-height: 1
    }

    .stat .l {
        margin-top: 8px;
        font-family: var(--mono);
        font-size: .58rem;
        letter-spacing: .2em;
        text-transform: uppercase;
        color: rgba(255,255,255,.62)
    }

/* sections */
section {
    position: relative;
    padding: 104px 0
}

@media(min-width:1024px) {
    section {
        padding: 132px 0
    }
}

.sec-light {
    background: var(--paper);
    color: var(--ink)
}

.sec-dark {
    background: var(--ink);
    color: var(--white)
}

.sec-head {
    display: grid;
    gap: 26px;
    margin-bottom: 58px
}

@media(min-width:1024px) {
    .sec-head {
        grid-template-columns: 7fr 5fr;
        align-items: end
    }
}

.sec-light .lead {
    color: var(--slate)
}

.sec-dark .lead {
    color: rgba(255,255,255,.66)
}

.gridline-l {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--line-l) 1px,transparent 1px),linear-gradient(90deg,var(--line-l) 1px,transparent 1px);
    background-size: 72px 72px;
    opacity: .5;
    pointer-events: none;
    mask-image: linear-gradient(#000,transparent 80%)
}

/* cards */
.cards {
    display: grid;
    gap: 1px;
    background: var(--line-l);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(7,19,31,.08)
}

.sec-dark .cards {
    background: var(--line-d);
    box-shadow: none;
    border: 1px solid var(--line-d)
}

.cards.c2 {
    grid-template-columns: 1fr
}

@media(min-width:760px) {
    .cards.c2 {
        grid-template-columns: 1fr 1fr
    }
}

.cards.c3 {
    grid-template-columns: 1fr
}

@media(min-width:640px) {
    .cards.c3 {
        grid-template-columns: 1fr 1fr
    }
}

@media(min-width:1024px) {
    .cards.c3 {
        grid-template-columns: repeat(3,1fr)
    }
}

.card {
    background: var(--white);
    padding: 36px 32px;
    position: relative;
    transition: background .3s
}

.sec-dark .card {
    background: rgba(255,255,255,.045)
}

.card:hover {
    background: #fbfdfc
}

.sec-dark .card:hover {
    background: rgba(46,191,165,.07)
}

.card h3 {
    margin-top: 20px;
    font-size: 1.25rem;
    font-weight: 600
}

.card p {
    margin-top: 10px;
    color: var(--slate);
    font-size: .95rem
}

.sec-dark .card p {
    color: rgba(255,255,255,.62)
}

.card .bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--teal);
    transition: height .4s
}

.card:hover .bar {
    height: 100%
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.outcome {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line-d);
    font-family: var(--mono);
    font-size: .76rem;
    letter-spacing: .06em;
    color: var(--teal);
    font-weight: 600
}

.closing {
    margin-top: 42px;
    border-left: 3px solid var(--teal);
    background: var(--white);
    padding: 22px 26px;
    border-radius: 0 16px 16px 0;
    font-weight: 600;
    box-shadow: 0 18px 40px rgba(7,19,31,.07)
}

.sec-dark .closing {
    background: rgba(46,191,165,.08);
    box-shadow: none;
    border: 1px solid rgba(46,191,165,.2);
    border-left: 3px solid var(--teal)
}

/* capability split */
.split {
    display: grid;
    gap: 48px
}

@media(min-width:1024px) {
    .split {
        grid-template-columns: 5fr 7fr;
        align-items: start
    }
}

/* steps */
.steps {
    display: grid;
    gap: 16px
}

@media(min-width:1024px) {
    .steps {
        grid-template-columns: repeat(5,1fr);
        gap: 0
    }
}

.step {
    position: relative;
    padding: 28px 24px;
    border: 1px solid var(--line-l);
    border-radius: 18px;
    background: var(--white)
}

@media(min-width:1024px) {
    .step {
        border-radius: 0;
        border-right: none
    }

        .step:first-child {
            border-radius: 18px 0 0 18px
        }

        .step:last-child {
            border-radius: 0 18px 18px 0;
            border-right: 1px solid var(--line-l)
        }

        .step::after {
            content: "→";
            position: absolute;
            right: -9px;
            top: 32px;
            color: var(--teal);
            font-weight: 700;
            z-index: 2;
            background: var(--white);
            line-height: 1
        }

        .step:last-child::after {
            display: none
        }
}

.step h3 {
    margin-top: 14px;
    font-size: 1.1rem
}

.step p {
    margin-top: 8px;
    font-size: .85rem;
    color: var(--slate)
}

/* R&D */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 20px
}

.chip {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .04em;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-d);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.75);
    transition: all .3s
}

    .chip:hover {
        border-color: var(--teal);
        color: var(--teal);
        transform: translateY(-2px)
    }

.rd-img {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line-d);
    position: relative;
    min-height: 230px
}

    .rd-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        inset: 0;
        opacity: .8
    }

    .rd-img::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(160deg,rgba(7,19,31,.15),rgba(7,19,31,.75))
    }

    .rd-img .cap {
        position: absolute;
        left: 22px;
        bottom: 18px;
        z-index: 2;
        font-family: var(--mono);
        font-size: .62rem;
        letter-spacing: .22em;
        text-transform: uppercase;
        color: var(--teal)
    }

.focus-row {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line-d);
    align-items: flex-start
}

    .focus-row:last-child {
        border-bottom: none
    }

    .focus-row h4 {
        font-family: var(--disp);
        font-size: 1.02rem
    }

    .focus-row p {
        font-size: .86rem;
        color: rgba(255,255,255,.6);
        margin-top: 4px
    }

/* founders */
.founder {
    border: 1px solid var(--line-d);
    background: rgba(255,255,255,.045);
    border-radius: 22px;
    padding: 36px;
    transition: border-color .3s,transform .3s
}

    .founder:hover {
        border-color: rgba(46,191,165,.45);
        transform: translateY(-4px)
    }

.f-mark {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(46,191,165,.1);
    border: 1px solid rgba(46,191,165,.3);
    display: grid;
    place-items: center;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--teal)
}

.founder h3 {
    margin-top: 22px;
    font-size: 1.45rem
}

.founder .role {
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--teal);
    margin-top: 6px
}

.founder p {
    margin-top: 16px;
    color: rgba(255,255,255,.65);
    font-size: .95rem
}

/* global */
.hub {
    background: var(--white);
    border: 1px solid var(--line-l);
    border-radius: 18px;
    padding: 26px;
    transition: transform .3s,box-shadow .3s
}

    .hub:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 44px rgba(7,19,31,.1)
    }

    .hub .tag {
        font-family: var(--mono);
        font-size: .6rem;
        letter-spacing: .22em;
        color: var(--teal-deep);
        text-transform: uppercase
    }

    .hub h3 {
        margin-top: 10px;
        font-size: 1.15rem
    }

    .hub p {
        margin-top: 8px;
        color: var(--slate);
        font-size: .9rem
    }

.commit {
    display: grid;
    gap: 1px;
    background: var(--line-l);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(7,19,31,.07)
}

@media(min-width:760px) {
    .commit {
        grid-template-columns: repeat(4,1fr)
    }
}

.commit > div {
    background: var(--white);
    padding: 26px 24px
}

.commit h3 {
    font-size: 1.02rem;
    margin-top: 14px
}

.commit p {
    font-size: .85rem;
    color: var(--slate);
    margin-top: 8px
}

/* CTA */
.cta-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(46,191,165,.25);
    background: linear-gradient(135deg,rgba(46,191,165,.16),rgba(169,196,154,.06) 55%,rgba(255,255,255,.03));
    padding: 52px 28px
}

@media(min-width:1024px) {
    .cta-box {
        padding: 76px 70px
    }
}

.cta-list {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

    .cta-list span {
        font-family: var(--mono);
        font-size: .7rem;
        letter-spacing: .06em;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 999px;
        padding: 8px 15px;
        color: rgba(255,255,255,.75)
    }

.tagline {
    margin-top: 30px;
    font-family: var(--disp);
    font-weight: 600;
    color: var(--sage);
    letter-spacing: .04em
}

.contact-cards {
    margin-top: 40px;
    display: grid;
    gap: 16px;
    max-width: 740px
}

@media(min-width:760px) {
    .contact-cards {
        grid-template-columns: 1fr 1fr
    }
}

.contact-card {
    border: 1px solid var(--line-d);
    background: rgba(255,255,255,.05);
    border-radius: 16px;
    padding: 20px;
    font-size: .88rem
}

    .contact-card .k {
        font-family: var(--mono);
        font-size: .6rem;
        letter-spacing: .22em;
        text-transform: uppercase;
        color: var(--teal)
    }

    .contact-card .v {
        margin-top: 8px;
        color: rgba(255,255,255,.8)
    }

@media(max-width:480px) {
    .cta-box .btn {
        width: 100%;
        justify-content: center
    }
}

/* footer */
footer {
    border-top: 1px solid var(--line-d);
    padding: 66px 0 38px;
    background: var(--ink)
}

.foot-grid {
    display: grid;
    gap: 42px
}

@media(min-width:900px) {
    .foot-grid {
        grid-template-columns: 2fr 1fr 1.4fr 1fr
    }
}

.foot-grid h4 {
    font-family: var(--mono);
    font-size: .64rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px
}

.foot-grid a, .foot-grid span {
    display: block;
    font-size: .86rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 9px;
    transition: color .25s
}

    .foot-grid a:hover {
        color: var(--teal)
    }

.foot-base {
    margin-top: 50px;
    padding-top: 26px;
    border-top: 1px solid var(--line-d);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .14em;
    color: rgba(255,255,255,.4);
    text-transform: uppercase
}

/* reveal */
.rv {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .8s cubic-bezier(.2,.65,.3,1),transform .8s cubic-bezier(.2,.65,.3,1)
}

    .rv.in {
        opacity: 1;
        transform: none
    }

.rv-d1 {
    transition-delay: .1s
}

.rv-d2 {
    transition-delay: .2s
}

.rv-d3 {
    transition-delay: .3s
}

.rv-d4 {
    transition-delay: .4s
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .rv {
        opacity: 1;
        transform: none;
        transition: none
    }

    .hero-bg {
        animation: none
    }

    * {
        transition: none !important
    }
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px
}
