/* ============================================================
   BUILD TO WORK — styles (vanilla CSS)
   ============================================================ */
:root {
    --bg: #070b14;
    --bg-2: #0b1220;
    --surface: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.1);
    --text: #e9eef7;
    --muted: #9aa7bd;
    --cyan: #17e8d4;
    --blue: #2fb6ec;
    --violet: #7b6be8;
    --grad: linear-gradient(120deg, #17e8d4 0%, #2fb6ec 50%, #7b6be8 100%);
    --font-head: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --gutter: clamp(20px, 5vw, 64px);
    --maxw: 1180px;
    --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(16px, 1.05vw + 10px, 18px);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.h1 { font-size: clamp(2.6rem, 8vw, 6.2rem); }
.h2 { font-size: clamp(2rem, 5.4vw, 4rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--cyan);
    margin-bottom: 1.2rem;
    display: flex; align-items: center; gap: 14px;
}
.center .eyebrow { justify-content: center; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--grad); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #c6d0e2; max-width: 62ch; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.95rem 1.8rem;
    font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em;
    border-radius: 999px;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .35s, border-color .35s;
    will-change: transform;
}
.btn--primary { background: var(--grad); color: #04101a; font-weight: 600; box-shadow: 0 10px 40px -10px rgba(23,232,212,.55); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 50px -8px rgba(47,182,236,.7); }
.btn--ghost { border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--cyan); transform: translateY(-3px); }

/* ---------- Global bits ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; background: transparent; }
.progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

.noise {
    position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.orb--a { width: min(46vw, 560px); aspect-ratio: 1; background: #17e8d4; top: -8%; left: -10%; opacity: .28; }
.orb--b { width: min(52vw, 640px); aspect-ratio: 1; background: #7b6be8; bottom: -14%; right: -12%; opacity: .32; }

/* ---------- Logo (base first, size variants after) ---------- */
.logo { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- Nav ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--gutter);
    transition: background .4s, backdrop-filter .4s, transform .5s cubic-bezier(.2,.8,.2,1), border-color .4s;
    border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(7, 11, 20, .72); backdrop-filter: blur(14px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; font-size: .85rem; }
.logo--nav { width: 40px; height: 40px; flex: none; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); font-size: .92rem; }
.nav__links a { position: relative; color: #c6d0e2; transition: color .3s; }
.nav__links a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { padding: .55rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; }
.nav__cta:hover { border-color: var(--cyan); }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .4s, top .4s; }
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 26px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
    opacity: .35;
}
.hero__inner { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.hero__logo { width: clamp(84px, 14vw, 150px); margin-bottom: 1.6rem; }
.hero__title { font-size: clamp(2.5rem, 9vw, 7rem); margin-bottom: 1.6rem; }
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line > span { display: block; will-change: transform; }
.hero__text { max-width: 60ch; color: #c6d0e2; font-size: clamp(1rem, 1.5vw, 1.2rem); margin-bottom: 1rem; }
.hero__text--sub { color: var(--muted); font-size: clamp(.95rem, 1.2vw, 1.05rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.center .hero__actions { justify-content: center; }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--cyan), transparent); transform-origin: 50% 0; animation: hint 2s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Sections base ---------- */
section { position: relative; }
.about, .global, .why, .approach, .contact { padding: clamp(90px, 14vw, 180px) 0; }

/* ---------- About ---------- */
.statement { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.4rem, 3.4vw, 2.5rem); line-height: 1.3; letter-spacing: -.01em; margin: 2.2rem 0; max-width: 28em; }
.statement .w { display: inline-block; opacity: .16; will-change: opacity; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: 3rem; color: #c6d0e2; }
.mission { margin-top: 4rem; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, rgba(23,232,212,.07), rgba(123,107,232,.07)); font-family: var(--font-head); font-size: clamp(1.15rem, 2.4vw, 1.7rem); font-weight: 500; line-height: 1.35; }
.mission span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Services (pinned horizontal) ---------- */
.services { padding: 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.services__pin { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); padding: calc(var(--nav-h) + 20px) 0 clamp(90px, 15vw, 170px); overflow: hidden; }
.services__head { padding: 0 var(--gutter); max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; width: 100%; }
.services__head .h2 { margin-bottom: .8rem; font-size: clamp(1.8rem, 4.4vw, 3.4rem); }
.services__viewport { width: 100%; }
.services__track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.card { position: relative; flex: 0 0 clamp(290px, 78vw, 460px); padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); backdrop-filter: blur(6px); overflow: hidden; transition: border-color .4s, transform .4s; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); transform: scaleX(.25); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card:hover { border-color: rgba(23,232,212,.4); }
.card:hover::before { transform: scaleX(1); }
.card__num { display: block; font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; line-height: 1; margin-bottom: 1rem; -webkit-text-stroke: 1px rgba(23,232,212,.7); color: transparent; }
.card h3 { margin-bottom: .6rem; }
.card__tag { font-family: var(--font-head); font-weight: 500; color: var(--cyan); margin-bottom: 1rem; font-size: .98rem; }
.card p + p { margin-top: .8rem; }
.card p:not(.card__tag) { color: #b5c0d4; font-size: .95rem; line-height: 1.65; }

/* ---------- Global ---------- */
.global__intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: 2.4rem; color: #c6d0e2; font-size: .98rem; }
.network { margin: 4rem auto 3rem; max-width: 900px; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 80% 70%, rgba(123,107,232,.15), transparent 55%), var(--surface); padding: clamp(10px, 2vw, 24px); overflow: hidden; }
.network svg { width: 100%; height: auto; overflow: hidden; }
.network__dots circle { fill: rgba(255,255,255,.14); }
.route { fill: none; stroke: url(#routeGrad); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 6 8; opacity: .85; }
.route--soft { opacity: .45; }
.node circle:not(.node__pulse) { fill: var(--cyan); }
.node__pulse { fill: none; stroke: var(--cyan); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.node--home circle:not(.node__pulse) { fill: var(--violet); }
.node--home .node__pulse { stroke: var(--violet); }
.node--soft circle:not(.node__pulse) { fill: var(--blue); }
.node text { fill: #dbe4f3; font-family: var(--font-head); font-size: 14px; text-anchor: middle; }
.node { opacity: 0; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }

.big-quote { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.6rem, 4.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.02em; text-align: center; margin: 4rem auto; max-width: 24em; text-wrap: balance; }
.big-quote span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.places { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 3.4rem; }
.place { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: border-color .4s, transform .4s; }
.place:hover { border-color: rgba(23,232,212,.45); transform: translateY(-4px); }
.place h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.place p { font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* ---------- Why ---------- */
.why { background: var(--bg-2); border-block: 1px solid var(--line); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 3.4rem; }
.tile { padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); position: relative; overflow: hidden; transition: border-color .4s, transform .4s; }
.tile::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%; background: var(--grad); opacity: 0; filter: blur(60px); transition: opacity .5s; }
.tile:hover { border-color: rgba(23,232,212,.4); transform: translateY(-5px); }
.tile:hover::after { opacity: .3; }
.tile h3 { margin-bottom: .7rem; font-size: 1.2rem; }
.tile p { color: #b5c0d4; font-size: .94rem; line-height: 1.65; }

/* ---------- Approach ---------- */
.timeline { position: relative; margin: 4rem 0 2rem; padding-left: clamp(46px, 7vw, 90px); }
.timeline__rail { position: absolute; left: clamp(11px, 2vw, 21px); top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__rail span { display: block; width: 100%; height: 100%; background: var(--grad); transform-origin: 50% 0; transform: scaleY(0); }
.step { position: relative; padding-bottom: clamp(36px, 6vw, 70px); }
.step:last-child { padding-bottom: 0; }
.step__dot { position: absolute; left: calc(-1 * clamp(46px, 7vw, 90px) + clamp(11px, 2vw, 21px) - 7px); top: .55rem; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: border-color .4s, background .4s, box-shadow .4s; }
.step.is-active .step__dot { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 6px rgba(23,232,212,.15); }
.step__num { font-family: var(--font-head); font-size: .85rem; letter-spacing: .25em; color: var(--cyan); display: block; margin-bottom: .4rem; }
.step h3 { font-size: clamp(1.6rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.step p { max-width: 52ch; color: #b5c0d4; }

/* ---------- Work ---------- */
/* Scroll-driven marquee (lives at the bottom of the pinned Services section) */
.marquee { position: absolute; left: 0; right: 0; bottom: 14px; display: grid; gap: 2px; pointer-events: none; overflow: hidden; }
.marquee__row { white-space: nowrap; will-change: transform; }
.marquee__row span { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 6.5vw, 4.6rem); line-height: 1.05; letter-spacing: -.02em; -webkit-text-stroke: 1px rgba(255,255,255,.25); color: transparent; }
.marquee__row--alt span { -webkit-text-stroke: 1px rgba(23,232,212,.55); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; text-align: center; padding-block: clamp(110px, 16vw, 220px); }
.contact__bg { position: absolute; inset: 0; }
.contact .wrap { position: relative; }
.contact .h1 { margin-bottom: 1.6rem; }
.contact__p { margin: 1.1rem auto 0; max-width: 56ch; color: #b5c0d4; }
.signature { margin: 3rem 0 .6rem; font-family: var(--font-head); font-weight: 700; letter-spacing: .1em; font-size: clamp(1rem, 2.4vw, 1.5rem); }
.signature span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 36px; background: #050810; }
.footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: flex; gap: 18px; align-items: flex-start; }
.logo--footer { width: 64px; height: 64px; flex: none; }
.footer__brand strong { font-family: var(--font-head); letter-spacing: .14em; }
.footer__brand p { font-size: .92rem; }
.footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; font-size: .95rem; }
.footer__nav a { color: #c6d0e2; transition: color .3s; }
.footer__nav a:hover { color: var(--cyan); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Reveal defaults (JS enhances; stays visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .places { grid-template-columns: repeat(3, 1fr); }
    .why__grid { grid-template-columns: repeat(2, 1fr); }
    .global__intro { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .nav__toggle { display: block; }
    /* Absolute (not fixed): .nav has backdrop-filter/transform, which would
       otherwise turn it into the containing block and squash the overlay. */
    .nav__links {
        position: absolute; top: 0; left: 0; z-index: 1;
        width: 100%; height: 100vh; height: 100dvh;
        padding: var(--nav-h) var(--gutter) 0;
        flex-direction: column; justify-content: center; gap: 26px;
        background: #070b14;
        font-family: var(--font-head); font-size: 1.8rem;
        opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
    }
    .nav__links.is-open { opacity: 1; visibility: visible; }
    .nav__brand { position: relative; z-index: 2; }
    .nav__cta { font-size: 1.1rem; padding: .8rem 1.6rem; }
    .about__cols { grid-template-columns: 1fr; }
    .scroll-hint { display: none; }
}

@media (max-width: 640px) {
    .places { grid-template-columns: 1fr 1fr; }
    .places .place:first-child { grid-column: 1 / -1; }
    .why__grid { grid-template-columns: 1fr; }
    .footer__grid { flex-direction: column; }
    .hero__actions .btn { flex: 1 1 100%; }
    .network { border-radius: 20px; }
    .node text { font-size: 20px; }
    .route { stroke-width: 2.6; }
}

@media (max-width: 400px) {
    .places { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hint i, .node__pulse { animation: none; }
    .js .reveal { opacity: 1; transform: none; }
}

/* Mobile: GSAP starts some elements 40px to the right (Approach steps), which made the page scroll sideways
   until they appeared. Clip, not hide: sticky/pinned sections keep working. */
@supports (overflow: clip) {
    main, .footer { overflow-x: clip; }
}
