:root {
    --ink: #0A1714;
    --forest: #0E332C;
    --forest-2: #124A3F;
    --forest-3: #17604F;
    --aqua: #3FD4B8;
    --aqua-dim: #2A9E8A;
    --gold: #E7C15A;
    --paper: #F4F7F5;
    --paper-2: #EAF1EC;
    --line: rgba(159, 201, 190, 0.35);
    --line-dark: rgba(63, 212, 184, 0.25);
    --ink-soft: rgba(10, 23, 20, 0.66);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

::selection {
    background: var(--aqua);
    color: var(--ink);
}

/* ---------- utility ---------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--aqua-dim);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--aqua-dim);
    display: inline-block;
}

.dark .eyebrow {
    color: var(--aqua);
}

.dark .eyebrow::before {
    background: var(--aqua);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section {
    padding: 120px 0;
    position: relative;
}

@media(max-width:768px) {
    .section {
        padding: 76px 0;
    }
}

.hairline {
    border-top: 1px solid var(--line);
}

.dark {
    background: var(--forest);
    color: var(--paper);
}

.dark .hairline {
    border-top: 1px solid var(--line-dark);
}

/* ---------- nav ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: background .35s ease, padding .35s ease, border-color .35s ease;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(244, 247, 245, 0.86);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.navlinks {
    display: flex;
    gap: 34px;
    font-size: 14px;
    font-weight: 500;
}

.navlinks a {
    position: relative;
    padding-bottom: 3px;
    color: var(--ink-soft);
    transition: color .2s;
}

.navlinks a:hover {
    color: var(--forest-3);
}

.navlinks a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: var(--aqua-dim);
    transition: width .25s;
}

.navlinks a:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .06em;
    border: 1px solid var(--forest);
    padding: 9px 18px;
    border-radius: 2px;
    transition: background .2s, color .2s;
}

.nav-cta:hover {
    background: var(--forest);
    color: var(--paper);
}

.navtoggle {
    display: none;
    background: none;
    font-family: var(--font-mono);
    font-size: 12px;
    border: 1px solid var(--forest);
    padding: 8px 14px;
    color: var(--ink);
    cursor: pointer;
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 2px;
    background: var(--paper);
    border: 1px solid var(--line);
    margin-top: 14px;
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
}

.mobile-menu.open {
    max-height: 480px;
}

.mobile-menu a {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    border-top: 1px solid var(--line);
    color: var(--ink);
}

.mobile-menu a:first-child {
    border-top: none;
}

.mobile-menu a.nav-cta-mobile {
    color: var(--forest-3);
    font-family: var(--font-mono);
    font-size: 13px;
}

@media(max-width:860px) {
    .navlinks {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .navtoggle {
        display: block;
    }

    .mobile-menu {
        display: flex;
    }
}

/* ---------- hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(ellipse at 78% 12%, rgba(63, 212, 184, 0.16), transparent 55%),
        linear-gradient(180deg, #0A1714 0%, #0E332C 60%, #124A3F 100%);
    color: var(--paper);
    position: relative;
    padding-top: 120px;
    overflow: hidden;
}

@media(max-width:860px) {
    .hero {
        min-height: unset;
        padding-top: 130px;
        padding-bottom: 64px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(63, 212, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(63, 212, 184, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, transparent, black 20%, black 75%, transparent);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media(max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}

.hero h1 {
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 26px;
}

.hero h1 em {
    font-style: normal;
    color: var(--aqua);
}

.hero p.lead {
    font-size: 17px;
    color: rgba(244, 247, 245, 0.72);
    max-width: 480px;
    margin-bottom: 38px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .05em;
    padding: 14px 26px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.btn-primary {
    background: var(--aqua);
    color: var(--ink);
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(63, 212, 184, 0.25);
}

.btn-ghost {
    border: 1px solid rgba(244, 247, 245, 0.35);
    color: var(--paper);
}

.btn-ghost:hover {
    border-color: var(--aqua);
    color: var(--aqua);
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 56px;
    flex-wrap: wrap;
}

@media(max-width:520px) {
    .hero-stats {
        gap: 24px;
        margin-top: 40px;
    }

    .hero-stats div {
        padding-left: 10px;
    }

    .hero-stats b {
        font-size: 22px;
    }
}

.hero-stats div {
    border-left: 1px solid rgba(63, 212, 184, 0.35);
    padding-left: 14px;
}

.hero-stats b {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--aqua);
}

.hero-stats span {
    font-size: 12px;
    color: rgba(244, 247, 245, 0.55);
    font-family: var(--font-mono);
    letter-spacing: .03em;
}

/* --- signature schematic --- */
.schema {
    position: relative;
    aspect-ratio: 1/1.05;
    max-width: 420px;
    margin: 0 auto;
}

@media(max-width:900px) {
    .schema {
        max-width: 320px;
    }
}

.schema svg {
    width: 100%;
    height: 100%;
}

.schema-caption {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(63, 212, 184, 0.75);
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    margin-top: 14px;
}

.flow-dot {
    animation: flow 3.2s linear infinite;
}

.flow-dot.d2 {
    animation-delay: .8s;
}

.flow-dot.d3 {
    animation-delay: 1.6s;
}

.flow-dot.d4 {
    animation-delay: 2.4s;
}

@keyframes flow {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    6% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

.stage-pulse {
    animation: pulse 2.6s ease-in-out infinite;
}

.stage-pulse.p2 {
    animation-delay: .5s;
}

.stage-pulse.p3 {
    animation-delay: 1s;
}

.stage-pulse.p4 {
    animation-delay: 1.5s;
}

.stage-pulse.p5 {
    animation-delay: 2s;
}

@keyframes pulse {

    0%,
    100% {
        opacity: .55;
    }

    50% {
        opacity: 1;
    }
}

@media(prefers-reduced-motion:reduce) {

    .flow-dot,
    .stage-pulse {
        animation: none;
    }
}

/* ---------- marquee strip ---------- */
.strip {
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    overflow: hidden;
    white-space: nowrap;
}

.strip-track {
    display: inline-flex;
    gap: 52px;
    animation: scroll 32s linear infinite;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .06em;
    color: var(--forest-3);
    text-transform: uppercase;
}

.strip-track span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.strip-track span::before {
    content: '◆';
    color: var(--aqua-dim);
    font-size: 8px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---------- about ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
}

@media(max-width:860px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}

.about-grid h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.14;
    margin-bottom: 22px;
}

.about-grid p {
    color: var(--ink-soft);
    font-size: 16px;
    max-width: 46ch;
}

.pillar-list {
    display: flex;
    flex-direction: column;
}

.pillar {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 22px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
}

@media(max-width:480px) {
    .pillar {
        grid-template-columns: 40px 1fr;
        gap: 14px;
    }
}

.pillar:last-child {
    border-bottom: 1px solid var(--line);
}

.pillar-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--aqua-dim);
    padding-top: 3px;
}

.pillar h3 {
    font-size: 19px;
    margin-bottom: 8px;
    font-weight: 600;
}

.pillar p {
    color: var(--ink-soft);
    font-size: 15px;
    max-width: 52ch;
}

/* ---------- pillars four-card ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 60px;
}

@media(max-width:860px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--paper);
    padding: 34px 28px;
}

.card svg {
    width: 34px;
    height: 34px;
    stroke: var(--forest-3);
    margin-bottom: 20px;
}

.card h4 {
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: 9px;
}

.card p {
    font-size: 13.5px;
    color: var(--ink-soft);
}

/* ---------- vision/mission ---------- */
.vm {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.vm>div {
    padding: 90px 60px;
}

@media(max-width:860px) {
    .vm {
        grid-template-columns: 1fr;
    }

    .vm>div {
        padding: 56px 32px;
    }
}

.vm .v {
    background: var(--forest);
    color: var(--paper);
}

.vm .m {
    background: var(--forest-2);
    color: var(--paper);
}

.vm h3 {
    font-size: 13px;
    font-family: var(--font-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--aqua);
    margin-bottom: 22px;
}

.vm h2 {
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 500;
}

.vm p {
    color: rgba(244, 247, 245, 0.66);
    font-size: 15px;
    max-width: 44ch;
}

/* ---------- process ---------- */
.process-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.process-head h2 {
    font-size: clamp(26px, 3.4vw, 40px);
    max-width: 16ch;
}

.process-head p {
    color: var(--ink-soft);
    max-width: 38ch;
    font-size: 15px;
}

.stage-track {
    position: relative;
}

.stage-line {
    position: absolute;
    top: 17px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
}

.stages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    position: relative;
}

@media(max-width:860px) {
    .stages {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }

    .stage-line {
        display: none;
    }
}

@media(max-width:480px) {
    .stages {
        grid-template-columns: 1fr;
    }
}

.stage {
    padding-top: 0;
}

.stage-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--forest-3);
    border: 3px solid var(--paper);
    box-shadow: 0 0 0 1px var(--line);
    position: relative;
    z-index: 2;
    margin-bottom: 18px;
}

.stage h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .05em;
    color: var(--ink-soft);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.stage p {
    font-size: 15px;
    font-weight: 500;
}

/* ---------- tech grid ---------- */
.tech-panel {
    background: var(--forest);
    color: var(--paper);
    border-radius: 2px;
    padding: 64px;
}

@media(max-width:768px) {
    .tech-panel {
        padding: 40px 26px;
    }
}

.tech-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.tech-top h2 {
    color: var(--paper);
    font-size: clamp(24px, 3.2vw, 34px);
    max-width: 18ch;
}

.tech-top p {
    color: rgba(244, 247, 245, 0.6);
    font-size: 14.5px;
    max-width: 36ch;
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

@media(max-width:700px) {
    .tech-list {
        grid-template-columns: 1fr;
    }
}

.tech-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--line-dark);
    font-family: var(--font-mono);
    font-size: 14px;
}

.tech-item span.abbr {
    color: var(--aqua);
    font-size: 12px;
}

/* ---------- segments (services list) ---------- */
.seg-wrap {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
}

@media(max-width:900px) {
    .seg-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.seg-side h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.18;
}

.seg-side p {
    color: var(--ink-soft);
    margin-top: 18px;
    font-size: 15px;
    max-width: 40ch;
}

.seg-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

@media(max-width:600px) {
    .seg-list {
        grid-template-columns: 1fr;
    }

    .seg-list li:nth-child(odd) {
        padding-right: 0;
    }
}

.seg-list li {
    list-style: none;
    padding: 18px 0 18px 26px;
    position: relative;
    border-top: 1px solid var(--line);
    font-size: 14.5px;
}

.seg-list li:nth-child(odd) {
    padding-right: 20px;
}

.seg-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24px;
    width: 14px;
    height: 1px;
    background: var(--aqua-dim);
}

/* ---------- accessories ---------- */
.pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}

.pill {
    border: 1px solid var(--line);
    padding: 9px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--forest-3);
    background: var(--paper);
    transition: border-color .2s, color .2s, background .2s;
}

.pill:hover {
    border-color: var(--aqua-dim);
    background: var(--paper-2);
}

/* ---------- industries ---------- */
.ind-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

@media(max-width:860px) {
    .ind-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:520px) {
    .ind-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ind {
    background: var(--paper);
    padding: 30px 16px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 500;
}

/* ---------- gallery ---------- */
.gal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 56px;
}

@media(max-width:860px) {
    .gal {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gal div {
    aspect-ratio: 4/5;
    background: linear-gradient(150deg, var(--forest-2), var(--forest));
    position: relative;
    overflow: hidden;
}

.gal div::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(63, 212, 184, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(63, 212, 184, 0.12) 1px, transparent 1px);
    background-size: 18px 18px;
}

.gal div span {
    position: absolute;
    bottom: 14px;
    left: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--aqua);
    letter-spacing: .05em;
    text-transform: uppercase;
    z-index: 2;
}

/* ---------- callout ---------- */
.callout {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 110px 32px;
    background: radial-gradient(ellipse at center, #145C4F 0%, #0E332C 70%);
    color: var(--paper);
}

@media(max-width:600px) {
    .callout {
        padding: 76px 24px;
    }
}

.callout .eyebrow {
    justify-content: center;
    color: var(--aqua);
}

.callout .eyebrow::before {
    display: none;
}

.callout h2 {
    font-size: clamp(28px, 5vw, 54px);
    max-width: 16ch;
    line-height: 1.15;
    color: var(--gold);
    font-weight: 500;
}

/* ---------- contact/footer ---------- */
.contact {
    background: var(--forest);
    color: var(--paper);
    padding: 100px 0 40px;
}

@media(max-width:768px) {
    .contact {
        padding: 64px 0 32px;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
}

@media(max-width:860px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}

.contact h2 {
    font-size: clamp(28px, 4vw, 46px);
    max-width: 14ch;
    line-height: 1.1;
    margin-bottom: 24px;
}

.contact p.sub {
    color: rgba(244, 247, 245, 0.6);
    max-width: 42ch;
    margin-bottom: 34px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info a,
.contact-info div {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-size: 15px;
    color: rgba(244, 247, 245, 0.85);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-dark);
}

.contact-info svg {
    width: 18px;
    height: 18px;
    stroke: var(--aqua);
    flex-shrink: 0;
    margin-top: 2px;
}

.foot-bottom {
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: rgba(244, 247, 245, 0.45);
    letter-spacing: .04em;
}

@media(max-width:600px) {
    .foot-bottom {
        margin-top: 56px;
        flex-direction: column;
        gap: 8px;
    }
}

.foot-credit {
    width: 100%;
    text-align: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line-dark);
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(244, 247, 245, 0.4);
    letter-spacing: .04em;
}

.foot-credit a {
    color: rgba(63, 212, 184, 0.75);
    transition: color .2s;
}

.foot-credit a:hover {
    color: var(--aqua);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* general small-screen text scaling */
@media(max-width:480px) {
    .wrap {
        padding: 0 20px;
    }
}