/* =========================================================
   EP Portfolio — main stylesheet
   ========================================================= */

:root {
    --bg: #050505;
    --bg-2: #0c0d0b;
    --surface: #121411;
    --line: rgba(255, 255, 255, .09);
    --text: #f3f5ef;
    --muted: #9ba196;
    --lime: #affc41;
    --lime-2: #7ed321;
    --lime-glow: rgba(175, 252, 65, .35);

    --font-display: "Rethink Sans", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: 22px;
    --radius-sm: 12px;
    --gutter: clamp(18px, 4vw, 48px);
    --max: 1320px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
/* <picture> wrappers (WebP + fallback) behave like the image they contain. */
.svc picture, .logo-tile picture, .footer__brand picture, .case__meta picture { display: block; }
.logo-tile picture { height: 100%; }
.case__meta picture { flex: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--lime); color: #000; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.is-lime { color: var(--lime); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--lime); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Grain + cursor ---------- */
.grain {
    position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1s steps(4) infinite;
}
@keyframes grain {
    0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
    50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.cursor.is-active { opacity: 1; }
.cursor span {
    display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--lime); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
}
.cursor.is-hover span { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
@media (hover: hover) and (pointer: fine) { .js .cursor { display: block; } }

/* ---------- Scroll progress ---------- */
.progress {
    position: fixed; left: 0; top: 0; z-index: 101; height: 2px; width: 100%;
    background: linear-gradient(90deg, var(--lime-2), var(--lime));
    transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
@supports (animation-timeline: scroll()) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Type ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
    font: 600 12px/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--lime);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 var(--lime-glow); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.h1, .h2, h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; line-height: .98; margin: 0; }
.h1 { font-size: clamp(2.6rem, 6.5vw, 5.6rem); }
.h2 { font-size: clamp(2.1rem, 4.8vw, 4rem); }
.lead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
    --bx: 0px; --by: 0px;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    padding: 17px 28px; border-radius: 999px; overflow: hidden; isolation: isolate;
    font: 600 15px/1 var(--font-body); white-space: nowrap;
    transform: translate(var(--bx), var(--by)); transition: transform .5s var(--ease), color .4s var(--ease), border-color .4s;
}
.btn i { font-style: normal; transition: transform .5s var(--ease); }
.btn:hover i { transform: translateX(5px); }
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--lime { background: var(--lime); color: #050505; box-shadow: 0 10px 40px -10px var(--lime-glow); }
.btn--lime::before { background: #fff; }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .22); color: var(--text); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: #050505; border-color: var(--text); }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--block { width: 100%; }

.round {
    width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px;
    transition: background .3s, color .3s, border-color .3s;
}
.round:hover { background: var(--lime); color: #000; border-color: var(--lime); }

/* ---------- Reveal ---------- */
.js [data-reveal] {
    opacity: 0; transform: translateY(40px); filter: blur(6px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
    transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

.line { display: block; overflow: hidden; padding-bottom: .06em; }
.char { display: inline-block; will-change: transform; }
.js [data-split] .char { transform: translateY(110%) rotate(8deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--ci) * 28ms + .15s); }
.js .is-loaded [data-split] .char { transform: none; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 14px 0; transition: transform .6s var(--ease), padding .4s; }
.nav__inner {
    width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto;
    display: flex; align-items: center; gap: 24px; padding: 10px 10px 10px 16px; border-radius: 999px;
    border: 1px solid transparent; transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.is-scrolled .nav__inner { background: rgba(10, 11, 9, .72); border-color: var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.nav.is-hidden { transform: translateY(-120%); }

.nav__brand { display: flex; align-items: center; gap: 10px; font: 800 19px/1 var(--font-display); letter-spacing: -.02em; }
.nav__brand img { width: 40px; height: 40px; transition: transform .8s var(--ease); }
.nav__brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav__brand b { color: var(--lime); font-weight: 800; }

.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { position: relative; padding: 10px 16px; font-size: 14px; font-weight: 500; color: #cfd3ca; border-radius: 999px; transition: color .3s, background .3s; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__phone { font-size: 14px; font-weight: 600; color: #cfd3ca; white-space: nowrap; }
.nav__phone:hover { color: var(--lime); }

.nav__toggle { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--lime); margin-left: auto; }
.nav__toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: #000; transition: transform .5s var(--ease); }
.nav__toggle span:first-child { top: 19px; } .nav__toggle span:last-child { top: 27px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
    position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; gap: 4px;
    padding: 100px var(--gutter) 40px; background: var(--bg);
    clip-path: circle(0 at calc(100% - 48px) 44px); transition: clip-path .8s var(--ease-in-out); visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 48px) 44px); visibility: visible; }
.menu a { font: 800 clamp(2.4rem, 11vw, 4rem)/1.1 var(--font-display); letter-spacing: -.03em; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .7s var(--ease), color .3s; }
.menu.is-open a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * 60ms); }
.menu a:hover { color: var(--lime); }
.menu .menu__phone { margin-top: 24px; font: 600 1.2rem var(--font-body); color: var(--lime); }

/* Six nav links: on mid-size screens drop the phone number (it's in the
   footer, contact page and mobile menu) and tighten the links so nothing wraps. */
@media (max-width: 1200px) {
    .nav__phone { display: none; }
    .nav__links a { padding-inline: 12px; }
}
@media (max-width: 980px) {
    .nav__links, .nav__cta { display: none; }
    .nav__toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 170px; overflow: hidden; }
/* Animated light-arc background (assets/js/hero-glow.js), used on the home
   hero and inner-page heroes. The CSS gradient is the fallback when WebGL
   isn't available. */
.hero__shader {
    position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none;
    background: radial-gradient(ellipse 60% 35% at 40% 100%, rgba(175, 252, 65, .18), transparent 70%);
    /* Fade out under the ticker tape so the glow has no hard bottom edge. */
    mask-image: linear-gradient(#000 80%, transparent 99%);
    -webkit-mask-image: linear-gradient(#000 80%, transparent 99%);
}

.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(3.2rem, 9.5vw, 8.4rem); line-height: .9; letter-spacing: -.055em; margin: 6px 0 28px; }
.hero__kicker { display: flex; margin: 0 0 22px; line-height: 1.45; }
.hero__title .is-lime { font-style: italic; }
/* The tight tracking makes thin double letters ("calls") merge; open them up. */
[data-split] .char[data-ch="l"] + .char[data-ch="l"],
[data-split] .char[data-ch="i"] + .char[data-ch="l"],
[data-split] .char[data-ch="l"] + .char[data-ch="i"] { margin-left: .045em; }

.hero__rotator { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font: 500 clamp(1.1rem, 2vw, 1.5rem)/1.3 var(--font-display); color: var(--muted); margin-bottom: 38px; }
.rotator { position: relative; display: inline-grid; color: var(--text); font-weight: 700; }
.rotator b { grid-area: 1 / 1; font-weight: 700; white-space: nowrap; opacity: 0; transform: translateY(70%); filter: blur(4px); transition: all .7s var(--ease); }
.rotator b.is-active { opacity: 1; transform: none; filter: none; }
.rotator b.is-out { opacity: 0; transform: translateY(-70%); filter: blur(4px); }
.rotator::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--lime); transform-origin: left; animation: underline 2.8s var(--ease) infinite; }
@keyframes underline { 0% { transform: scaleX(0); } 40%, 80% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stage { position: relative; height: min(600px, 60vw); perspective: 1400px; transform-style: preserve-3d; }
.hero__stage > * { transition: transform 1s var(--ease); }
.float-card {
    position: absolute; margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
}
.float-card--a { width: 72%; height: 78%; right: 0; top: 4%; transform: translate3d(calc(var(--tx, 0) * 18px), calc(var(--ty, 0) * 18px), 40px) rotateY(-10deg) rotateX(4deg); animation: bob 7s ease-in-out infinite; }
.float-card--b { width: 55%; height: 58%; left: 0; bottom: 0; transform: translate3d(calc(var(--tx, 0) * -30px), calc(var(--ty, 0) * -30px), 90px) rotateY(8deg) rotateX(-3deg); animation: bob 8s ease-in-out -3s infinite; }
.float-card--c { width: 120px; height: 120px; right: 60%; top: 0; display: grid; place-items: center; background: #fff; border-radius: 28px; transform: translate3d(calc(var(--tx, 0) * 40px), calc(var(--ty, 0) * 40px), 140px) rotate(-10deg); animation: bob 6s ease-in-out -1s infinite; }
.float-card--c img { width: 84px; }
@keyframes bob { 50% { translate: 0 -14px; } }

.hero__badge {
    position: absolute; right: -10px; bottom: 12%; z-index: 3; display: flex; flex-direction: column; padding: 16px 22px;
    border-radius: 18px; background: rgba(175, 252, 65, .96); color: #000; box-shadow: 0 20px 50px -10px var(--lime-glow);
    transform: translate3d(calc(var(--tx, 0) * 50px), calc(var(--ty, 0) * 50px), 180px) rotate(4deg); animation: bob 5s ease-in-out -2s infinite;
}
.hero__badge strong { font: 800 2.2rem/1 var(--font-display); letter-spacing: -.04em; }
.hero__badge span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }

.browser { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #1b1d19; border-bottom: 1px solid var(--line); }
.browser i { width: 9px; height: 9px; border-radius: 50%; background: #3a3d37; }
.browser i:first-child { background: #ff5f57; } .browser i:nth-child(2) { background: #febc2e; } .browser i:nth-child(3) { background: #28c840; }
.browser span { margin-left: 12px; padding: 3px 12px; border-radius: 6px; background: #0f100e; font-size: 11px; color: var(--muted); }

/* Tall full-page screenshots that pan vertically */
.scrollshot { height: calc(100% - 30px); background: var(--img) top center / 100% auto no-repeat; animation: pan var(--dur, 18s) var(--ease-in-out) infinite alternate; }
@keyframes pan { 0%, 8% { background-position: top center; } 92%, 100% { background-position: bottom center; } }
/* Portfolio screenshots are real <img> elements (indexable, with alt text);
   hovering pans through the full-page capture via object-position. */
.scrollshot--hover { animation: none; background: #fff; overflow: hidden; }
.scrollshot--hover picture { display: block; height: 100%; }
.scrollshot--hover img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%;
    transition: object-position 6s var(--ease-in-out);
}
.case:hover .scrollshot--hover img { object-position: 50% 100%; }

.hero__scroll { position: absolute; left: 50%; bottom: 110px; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--lime); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__stage { height: 340px; margin-top: 10px; }
    .hero__badge { right: 8px; padding: 12px 16px; }
    .hero__badge strong { font-size: 1.7rem; }
    .float-card--c { width: 90px; height: 90px; border-radius: 22px; }
    .float-card--c img { width: 62px; }
    .hero__scroll { display: none; }
}

/* ---------- Marquee ---------- */
/* Pulled up over the bottom of the hero so the two strips read as tape laid
   across the seam between sections, not a band sitting in its own black gap. */
.marquee { position: relative; z-index: 3; padding: 30px 0; margin-top: -96px; overflow: hidden; }
.marquee__row { display: flex; overflow: hidden; transform: rotate(-2deg); margin: -4px -5%; }
.marquee__row:first-child { background: var(--lime); color: #050505; }
.marquee__row:last-child { background: #0f110d; color: var(--text); border-block: 1px solid var(--line); transform: rotate(1.5deg); }
.marquee__track { display: flex; flex: none; align-items: center; gap: 34px; padding: 20px 17px; animation: marquee 38s linear infinite; will-change: transform; }
.marquee__row[data-marquee="-1"] .marquee__track { animation-direction: reverse; }
.marquee__set { display: flex; flex: none; align-items: center; gap: 34px; }
.marquee__track span { font: 800 clamp(1.4rem, 3vw, 2.4rem)/1 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.marquee__track em { font-style: normal; font-size: 1.3rem; }
.marquee__row:last-child .marquee__track em { color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 12vw, 160px); }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 860px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; margin-top: 24px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc {
    --sx: 50%; --sy: 50%;
    position: relative; display: flex; flex-direction: column; min-height: 520px; padding: 26px; border-radius: var(--radius);
    overflow: hidden; background: var(--surface); border: 1px solid var(--line); isolation: isolate;
    transition: transform .8s var(--ease), border-color .5s, opacity 1s var(--ease), filter 1s var(--ease);
}
.svc::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--sx) var(--sy), rgba(175, 252, 65, .18), transparent 45%);
}
.svc:hover::after { opacity: 1; }
.svc:hover { border-color: rgba(175, 252, 65, .45); }
.svc__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .28; transform: scale(1.1); transition: transform 1.2s var(--ease), opacity .6s; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 5, 5, .1) 0%, rgba(5, 5, 5, .85) 55%, #050505 100%); }
.svc:hover .svc__bg { transform: scale(1); opacity: .45; }
.svc__num { font: 600 13px var(--font-body); color: var(--muted); letter-spacing: .12em; }
.svc__icon { width: 70%; margin: 10px auto 0; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); transition: transform 1s var(--ease); }
.svc:hover .svc__icon { transform: translateY(-10px) scale(1.06) rotate(-3deg); }
.svc__body { margin-top: auto; }
.svc h3 { font-size: 2.2rem; text-transform: uppercase; margin-bottom: 10px; }
.svc p { margin: 0 0 16px; color: #c4c9bf; font-size: 15px; line-height: 1.5; }
.svc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; }
.svc li { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: #d8dcd3; background: rgba(255, 255, 255, .03); }
.svc__link { display: inline-flex; gap: 10px; font-weight: 600; font-size: 14px; color: var(--lime); }
.svc__link i { font-style: normal; transition: transform .5s var(--ease); }
.svc:hover .svc__link i { transform: translateX(6px); }

@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, 1fr); } .svc { min-height: 460px; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .svc { min-height: 420px; } .svc__icon { width: 55%; } }

/* ---------- Work (pinned horizontal) ---------- */
.work { position: relative; height: var(--work-h, 400vh); background: var(--bg-2); border-block: 1px solid var(--line); }
.work__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); overflow: hidden; }
.work__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 40px; }
.work__head .eyebrow { width: 100%; margin: 0; }
.work__lead { order: 3; flex: 0 0 100%; margin: 0; color: var(--muted); font-size: 15px; }
.work__lead span { display: block; max-width: 60ch; }
.work__count { margin-left: auto; font: 600 14px var(--font-body); color: var(--muted); }
.work__count b { color: var(--lime); font: 800 2.4rem var(--font-display); }

.work__track { display: flex; gap: 28px; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); will-change: transform; transform: translate3d(var(--x, 0), 0, 0); }
.case { flex: none; width: clamp(300px, 46vw, 680px); }
.case__screen {
    height: clamp(300px, 52vh, 520px); border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 80px -40px #000; transform: scale(var(--s, 1)); transition: transform .6s var(--ease), box-shadow .6s;
}
.case:hover .case__screen { box-shadow: 0 40px 100px -30px var(--lime-glow); }
.case__meta { display: flex; align-items: center; gap: 16px; padding: 18px 6px 0; }
.case__meta img { width: 56px; height: 56px; object-fit: contain; border-radius: 14px; background: #fff; padding: 4px; }
.case__meta h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.case__meta p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.case__num { margin-left: auto; font: 800 1.6rem var(--font-display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .3); }
.case--cta {
    display: flex; flex-direction: column; justify-content: space-between; width: clamp(280px, 30vw, 420px); height: clamp(300px, 52vh, 520px);
    padding: 36px; border-radius: 18px; background: var(--lime); color: #050505; transition: transform .6s var(--ease);
}
.case--cta span { font: 800 clamp(2rem, 3.4vw, 3rem)/1 var(--font-display); letter-spacing: -.04em; }
.case--cta em { font-style: italic; }
.case--cta i { align-self: flex-end; font-style: normal; font-size: 3rem; transition: transform .6s var(--ease); }
.case--cta:hover { transform: rotate(-2deg) scale(1.02); }
.case--cta:hover i { transform: translateX(10px) rotate(-45deg); }
/* Outlined variant (live demos link) so it doesn't repeat the lime card beside it */
.case--cta.case--outline { background: transparent; color: var(--text); border: 2px solid var(--lime); }
.case--cta.case--outline em, .case--cta.case--outline i { color: var(--lime); }

/* Fallback: native horizontal scroll on small screens / reduced motion */
.work.is-static { height: auto; padding-block: 80px; }
.work.is-static .work__sticky { position: static; height: auto; }
.work.is-static .work__track { transform: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: thin; scrollbar-color: var(--lime) transparent; }
.work.is-static .case { scroll-snap-align: center; width: min(84vw, 560px); }
.work.is-static .case__screen, .work.is-static .case--cta { height: 380px; }

/* ---------- Gallery ---------- */
.gallery { position: relative; height: 150vh; min-height: 900px; overflow: clip; }
.gallery__title { position: sticky; top: 0; height: 100svh; z-index: 2; display: grid; place-items: center; padding: var(--gutter); pointer-events: none; background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(5, 5, 5, .92), rgba(5, 5, 5, .55) 60%, rgba(5, 5, 5, .2)); }
.gallery__title h2 { text-align: center; font-size: clamp(2.4rem, 7vw, 6.4rem); max-width: 14ch; }
.gallery__title h2 span { display: inline-block; }
.gallery__cols { position: absolute; inset: -20% -4%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery__col { display: flex; flex-direction: column; gap: 16px; will-change: transform; transform: translate3d(0, var(--py, 0), 0); }
.gallery__col picture { display: block; }
.gallery__col img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; filter: grayscale(.4) brightness(.75); transition: filter .6s; }
.gallery::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--bg), transparent 18%, transparent 82%, var(--bg)); }
@media (max-width: 700px) { .gallery__cols { grid-template-columns: repeat(2, 1fr); } .gallery__col:nth-child(n+3) { display: none; } .gallery { height: 110vh; min-height: 700px; } }

/* ---------- Why ---------- */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.why__grid .h1 { margin-bottom: 36px; }
.scrub { margin: 0; font: 600 clamp(1.35rem, 2.4vw, 2.1rem)/1.3 var(--font-display); letter-spacing: -.02em; }
.scrub .w { color: rgba(243, 245, 239, .16); transition: color .25s; }
.scrub .w.is-lit { color: var(--text); }
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 9vw, 120px); border-top: 1px solid var(--line); }
.stat { padding: 34px 24px 10px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 800 clamp(2.8rem, 5.5vw, 4.8rem)/1 var(--font-display); letter-spacing: -.05em; color: var(--lime); }
.stat strong small { font-size: .5em; margin: 0 4px; color: var(--muted); }
.stat span { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 22ch; }
@media (max-width: 900px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 12px 24px 0 !important; }
    .stat:nth-child(odd) { border-right: 1px solid var(--line); }
    .stat:nth-child(even) { padding-left: 20px !important; }
}

/* ---------- Systems ---------- */
.systems { overflow: hidden; background: radial-gradient(ellipse 80% 60% at 50% 0%, #0f1a0a, var(--bg) 70%); }
.systems__map { position: absolute; inset: 5% -5% auto; height: 90%; background: center / contain no-repeat; opacity: .08; filter: invert(1) sepia(1) saturate(6) hue-rotate(40deg); animation: breathe 10s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .15; transform: scale(1.03); } }
/* Logo ticker: two identical sets slide left and loop. Pauses on hover; the
   vertical padding leaves room for the tiles' hover lift. */
.logos {
    position: relative; overflow: hidden; padding-block: 16px 30px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__set { display: flex; gap: 14px; padding: 0 7px; margin: 0; list-style: none; }
.logos__set .logo-tile { flex: none; width: clamp(150px, 15vw, 190px); }
/* Cards with a single icon (or just a name) instead of a full logo image. */
.logo-tile--mark {
    display: grid; place-items: center; padding: 14px; text-align: center; color: #4a4a4a;
    transition: color .5s, transform .6s var(--ease), box-shadow .6s;
}
.logo-tile--mark strong { font: 800 clamp(1.4rem, 2.1vw, 1.8rem)/1 var(--font-display); letter-spacing: -.02em; }
.logo-tile--mark:hover { color: #050505; }
/* Icons are single-colour black SVGs; grey them to match the logo images. */
.logo-tile .logo-tile__icon { width: clamp(44px, 4vw, 58px); height: auto; aspect-ratio: 1; object-fit: contain; opacity: .7; transition: opacity .5s; }
.logo-tile--mark:hover .logo-tile__icon { opacity: 1; transform: none; }

/* Hover tooltip for the logo ticker (positioned by main.js). */
.tip {
    position: fixed; z-index: 95; left: 0; top: 0; max-width: 240px; padding: 10px 14px; pointer-events: none;
    background: #121411; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7);
    opacity: 0; translate: -50% calc(-100% - 10px); transition: opacity .2s;
}
.tip.is-on { opacity: 1; }
.tip strong { display: block; font: 700 .95rem/1.2 var(--font-display); color: var(--lime); }
.tip span { display: block; margin-top: 3px; font: 400 .82rem/1.4 var(--font-body); color: var(--text); }
.logo-tile {
    --sx: 50%; --sy: 50%;
    position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--line);
    transition: transform .6s var(--ease), box-shadow .6s, opacity 1s var(--ease), filter 1s var(--ease);
}
.logo-tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s, transform .8s var(--ease); }
.logo-tile:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -20px var(--lime-glow); }
.logo-tile:hover img { filter: none; transform: scale(1.05); }

/* ---------- Reviews ---------- */
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.reviews__nav { display: flex; gap: 10px; }
.reviews__track {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
    padding: 10px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 20px;
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.review {
    --sx: 50%; --sy: 50%;
    position: relative; flex: none; display: flex; flex-direction: column; width: clamp(290px, 34vw, 460px); margin: 0; padding: 34px;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); scroll-snap-align: start; overflow: hidden;
    transition: border-color .4s, transform .6s var(--ease);
}
.review::after, .logo-tile::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(360px circle at var(--sx) var(--sy), rgba(175, 252, 65, .12), transparent 50%);
}
.review:hover::after, .logo-tile:hover::after { opacity: 1; }
.review:hover { border-color: rgba(175, 252, 65, .35); }
.review__stars { color: var(--lime); letter-spacing: 4px; font-size: 15px; }
.review blockquote { margin: 18px 0 30px; font: 500 1.12rem/1.55 var(--font-body); color: #dfe3da; user-select: none; }
.review figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; font-size: 13px; color: var(--muted); }
.review figcaption b { display: block; font: 700 16px var(--font-display); color: var(--text); }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: #000; font: 800 18px var(--font-display); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg), #0a0f07); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact__intro .lead { margin: 28px 0 36px; }
.contact__phone { display: inline-flex; flex-direction: column; font: 800 clamp(1.8rem, 3.6vw, 2.8rem)/1.1 var(--font-display); letter-spacing: -.03em; background: linear-gradient(90deg, var(--lime), var(--lime)) 0 100% / 0 3px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 4px; }
.contact__phone:hover { background-size: 100% 3px; }
.contact__phone small { font: 600 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

.form { padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; border: 0; }
.chips legend { width: 100%; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; cursor: pointer; transition: all .35s var(--ease); }
.chip span:hover { border-color: rgba(255, 255, 255, .35); }
.chip input:checked + span { background: var(--lime); color: #000; border-color: var(--lime); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }

.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea {
    width: 100%; padding: 26px 18px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35);
    color: var(--text); font: 400 16px var(--font-body); resize: vertical; transition: border-color .3s, background .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); background: rgba(0, 0, 0, .55); box-shadow: 0 0 0 4px rgba(175, 252, 65, .12); }
.field label { position: absolute; left: 19px; top: 18px; font-size: 15px; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.75); color: var(--lime); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b6b; }

.form .btn { margin-top: 10px; }
.form.is-sending .btn { pointer-events: none; opacity: .7; }
.form__status { min-height: 1.6em; margin: 16px 0 0; font-size: 14px; color: var(--lime); }
.form__status.is-error { color: #ff8a8a; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 0 0 30px; overflow: hidden; border-top: 1px solid var(--line); }
.footer__big {
    font: 800 clamp(3rem, 14vw, 14.5rem)/.9 var(--font-display); letter-spacing: -.035em; padding-inline: var(--gutter); text-align: center; white-space: nowrap;
    padding-top: 60px; margin-bottom: 60px;
    background: linear-gradient(180deg, rgba(175, 252, 65, .9), rgba(175, 252, 65, 0) 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__row { display: grid; grid-template-columns: 1.7fr repeat(var(--cols, 3), 1fr); gap: 40px; padding-bottom: 50px; }
.footer__brand img { width: 56px; margin-bottom: 16px; }
.footer__brand p { max-width: 36ch; color: var(--muted); font-size: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col h3 { font: 600 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.footer__col a { font-size: 15px; width: fit-content; transition: color .3s; }
.footer__col a:hover { color: var(--lime); }
.footer__nap { font-style: normal; }
.footer__nap strong { font-size: 15px; font-weight: 600; }
.footer__nap span { font-size: 14px; color: var(--muted); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__legal a:hover { color: var(--lime); }
@media (max-width: 800px) { .footer__row { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js [data-reveal], .js [data-split] .char { opacity: 1; transform: none; filter: none; }
    .scrub .w { color: var(--text); }
    .grain { display: none; }
}
