/* =============================================================================
   SoftGoWay public website - design system
   Light, modern, brand colours taken from the SoftGoWay logo.
   Layout grid/utilities come from Bootstrap 5; everything visual lives here.
   ============================================================================= */

:root {
    /* brand (from the logo) */
    --brand: #13893a;          /* logo green */
    --brand-600: #0f7431;
    --brand-700: #0b5d27;
    --brand-50: #ecf8ef;
    --brand-100: #d4f0dc;
    --blue: #1257d6;           /* logo blue */
    --blue-50: #ebf2ff;
    --red: #e3261e;            /* logo red */
    --yellow: #f5b812;         /* logo yellow */
    --orange: #f2621c;         /* logo orange */

    /* neutrals */
    --ink: #0d1726;
    --ink-2: #334155;
    --muted: #5b6678;
    --line: #e4e8ee;
    --soft: #f5f7fa;
    --white: #ffffff;
    --ink-bg: #0d1726;        /* always-dark blocks: footer, CTA band, code */
    --surface: #ffffff;       /* cards, inputs */
    --header-glass: rgba(255, 255, 255, .82);
    --glass: rgba(255, 255, 255, .92);

    /* shape & depth */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(13, 23, 38, .06);
    --shadow: 0 8px 24px -8px rgba(13, 23, 38, .12), 0 2px 6px rgba(13, 23, 38, .04);
    --shadow-lg: 0 24px 60px -20px rgba(13, 23, 38, .22);

    --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
    --header-h: 76px;
}

/* ---------------------------------------------------------------- base */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body.site {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.site h1, .site h2, .site h3, .site h4, .site h5, .site h6 {
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.site a { color: var(--brand-600); text-decoration: none; }
.site a:hover { color: var(--brand-700); }
.site img { max-width: 100%; height: auto; }
.site ::selection { background: var(--brand-100); }
.site :focus-visible { outline: 3px solid rgba(19, 137, 58, .35); outline-offset: 2px; border-radius: 6px; }

.site-main { padding-top: var(--header-h); }

/* ---------------------------------------------------------------- buttons */
.btn-sgw, .btn-sgw-outline, .btn-sgw-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    padding: .8rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    white-space: nowrap; cursor: pointer;
}
.btn-sgw { background: var(--brand); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(19, 137, 58, .6); }
.btn-sgw:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(19, 137, 58, .6); }
.btn-sgw-outline { background: var(--surface); color: var(--ink) !important; border-color: var(--line); }
.btn-sgw-outline:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-sgw-ghost { background: transparent; color: var(--brand-600) !important; padding-left: 0; padding-right: 0; }
.btn-sgw-ghost:hover { color: var(--brand-700) !important; }
.btn-sgw-ghost i { transition: transform .2s ease; }
.btn-sgw-ghost:hover i { transform: translateX(3px); }
.btn-sgw.btn-lg, .btn-sgw-outline.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn-sgw.btn-light { background: #fff; color: #0d1726 !important; box-shadow: none; }
.btn-sgw.btn-light:hover { background: #ecf8ef; } /* always on a dark band */

/* ---------------------------------------------------------------- header */
.site-header {
    position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 1030;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
/* The frosted background lives on a pseudo-element: backdrop-filter on the header itself would
   make it the containing block of the fixed-position mobile menu and clip it to 76px. */
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--header-glass);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.site-logo img { height: 54px; width: auto; display: block; }

.site-nav { margin-left: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav > ul > li { position: relative; }
.site-nav .nav-a {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .55rem .85rem; border-radius: 999px;
    font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink-2);
    background: none; border: 0;
}
.site-nav .nav-a:hover, .site-nav .nav-a.active { color: var(--ink); background: var(--soft); }
.site-nav .nav-a.active { color: var(--brand-700); background: var(--brand-50); }
.site-nav .nav-a .bi-chevron-down { font-size: .7rem; transition: transform .2s ease; }

/* services mega menu */
.mega {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px);
    width: min(760px, 92vw); padding: 1rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.open > .mega {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.has-mega:hover .bi-chevron-down, .has-mega.open .bi-chevron-down { transform: rotate(180deg); }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .25rem; }
.mega-item { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border-radius: 12px; color: var(--ink-2) !important; font-weight: 500; font-size: .92rem; }
.mega-item:hover { background: var(--soft); color: var(--ink) !important; }
.mega-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); font-size: 1rem; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; padding: .75rem .7rem 0; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

.header-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 1.4rem; color: var(--ink); }

@media (max-width: 1199.98px) {
    .nav-toggle { display: inline-grid; place-items: center; }
    .site-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0;
        background: var(--surface); padding: 1rem 1.25rem 2rem; overflow-y: auto;
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .site-nav.open { opacity: 1; visibility: visible; transform: none; }
    .site-nav > ul { flex-direction: column; align-items: stretch; gap: .25rem; }
    .site-nav .nav-a { width: 100%; justify-content: space-between; padding: .85rem 1rem; font-size: 1rem; border-radius: 12px; }
    .mega { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: .25rem 0 .5rem .5rem; display: none; opacity: 1; visibility: visible; }
    .has-mega.open > .mega { display: block; transform: none; }
    .has-mega:hover > .mega { transform: none; }
    .header-cta { margin-left: auto; }
    .header-cta .btn-sgw { display: none; }
    body.nav-open { overflow: hidden; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-soft { background: var(--soft); }
.section-ink { background: var(--ink-bg); color: #c5cedb; }
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }
@media (max-width: 767.98px) { .section { padding: 64px 0; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand-600); background: var(--brand-50); padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.section-title { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.75rem); margin-bottom: 1rem; }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 3.25rem; }
.section-head.text-center .section-lead { margin-left: auto; margin-right: auto; }
.text-grad {
    background: linear-gradient(95deg, var(--brand) 0%, #1fae57 45%, var(--blue) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------------- hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 480px at 85% 10%, rgba(18, 87, 214, .08), transparent 60%),
        radial-gradient(700px 420px at 5% 30%, rgba(19, 137, 58, .10), transparent 60%),
        url("../img/grid-pattern.svg") center top / 1400px auto no-repeat;
}
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4rem); line-height: 1.07; letter-spacing: -0.035em; margin-bottom: 1.25rem; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--muted); max-width: 560px; margin-bottom: 2rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .9rem .35rem .35rem; margin-bottom: 1.5rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .88rem; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.hero-badge b { background: var(--brand); color: #fff; font-size: .72rem; padding: .2rem .55rem; border-radius: 999px; font-weight: 700; letter-spacing: .04em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.5rem; color: var(--muted); font-size: .9rem; }
.hero-proof strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.hero-art { position: relative; }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 50px rgba(13, 23, 38, .16)); }

.page-hero { position: relative; isolation: isolate; padding: 72px 0 56px; overflow: hidden; background: linear-gradient(180deg, var(--soft), var(--white)); border-bottom: 1px solid var(--line); }
/* Same soft glow + grid as the home hero, so inner pages match it in both themes. */
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(760px 380px at 92% 0%, rgba(18, 87, 214, .09), transparent 62%),
        radial-gradient(640px 360px at 0% 30%, rgba(19, 137, 58, .11), transparent 62%),
        url("../img/grid-pattern.svg") center top / 1400px auto no-repeat;
}
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); margin-bottom: .75rem; letter-spacing: -0.03em; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0; }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-600); }

/* ---------------------------------------------------------------- logo strip / stats */
.trust-strip { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip .label { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tech-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tech-track { display: flex; gap: 3rem; width: max-content; animation: marquee 38s linear infinite; }
.tech-track span { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600; color: #8792a3; font-size: 1.05rem; white-space: nowrap; }
.tech-track i { font-size: 1.4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tech-track { animation: none; } }

.stat { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); height: 100%; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.stat .num small { font-size: .6em; color: var(--brand); }
.stat p { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }

/* ---------------------------------------------------------------- cards */
.card-sgw {
    position: relative; height: 100%; padding: 1.75rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-sgw:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-sgw h3 { font-size: 1.2rem; margin: 1.1rem 0 .5rem; }
.card-sgw p { color: var(--muted); margin-bottom: 1rem; font-size: .97rem; }
.card-sgw .btn-sgw-ghost { font-size: .9rem; }
.card-sgw.link-card { color: inherit; display: block; }

.icon-tile {
    width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; font-size: 1.35rem;
    background: var(--brand-50); color: var(--brand-600);
}
.icon-tile.blue { background: var(--blue-50); color: var(--blue); }
.icon-tile.red { background: #fdeceb; color: var(--red); }
.icon-tile.yellow { background: #fef6dd; color: #b98700; }
.icon-tile.orange { background: #feefe6; color: var(--orange); }
.icon-tile.ink { background: var(--soft); color: var(--ink); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.check-list li::before {
    content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem;
    width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand-50); color: var(--brand-600); font-size: .85rem;
}

/* feature split (image + text) */
.split-art { border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--brand-50), var(--blue-50)); padding: 2rem; }
.split-art img { width: 100%; display: block; }

/* process steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 1.75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); height: 100%; }
.step::before {
    counter-increment: step; content: "0" counter(step);
    font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1;
    background: linear-gradient(135deg, var(--brand), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
    display: block; margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.chip i { color: var(--brand-600); }

/* case studies */
.case { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; }
.case-visual { aspect-ratio: 16 / 10; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.case-visual img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.case-tag { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.case h3 { font-size: 1.3rem; margin: .5rem 0 .6rem; }
.case p { color: var(--muted); }
.case-metrics { display: flex; gap: 1.5rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.case-metrics strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--brand-600); line-height: 1.1; }
.case-metrics span { font-size: .82rem; color: var(--muted); }

/* FAQ (native details) */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: .75rem; transition: box-shadow .2s ease; }
.faq-item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 1.15rem 1.35rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\F4FE"; font-family: "bootstrap-icons"; font-size: 1.1rem; color: var(--brand-600); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.35rem 1.25rem; color: var(--muted); }

/* blog */
.post { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; overflow: hidden; }
.post-thumb i { font-size: 3rem; color: #fff; position: relative; z-index: 1; opacity: .95; }
.post-thumb::after { content: ""; position: absolute; inset: 0; background: url("../img/grid-pattern.svg") center / 600px auto; opacity: .18; }
.post-thumb.t-green { background: linear-gradient(135deg, #0f7431, #1fae57); }
.post-thumb.t-blue { background: linear-gradient(135deg, #0b3fa8, #3b82f6); }
.post-thumb.t-ink { background: linear-gradient(135deg, #0d1726, #334155); }
.post-thumb.t-orange { background: linear-gradient(135deg, #c2410c, #f5b812); }
.post-thumb.t-red { background: linear-gradient(135deg, #b91c1c, #f2621c); }
.post-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-meta { display: flex; gap: .75rem; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.post-meta .cat { color: var(--brand-600); font-weight: 600; }
.post h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.post p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* CTA band */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2.5rem, 2rem + 3vw, 4.5rem);
    background: radial-gradient(600px 300px at 90% 0%, rgba(59, 130, 246, .35), transparent 60%),
                radial-gradient(500px 300px at 0% 100%, rgba(31, 174, 87, .35), transparent 60%), var(--ink-bg);
    color: #c5cedb;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.cta-band p { font-size: 1.1rem; }

/* contact */
.contact-card { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.info-row { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row h4 { font-size: .95rem; margin: 0 0 .2rem; }
.info-row p, .info-row a { margin: 0; color: var(--muted); font-size: .95rem; display: block; }
.info-row a:hover { color: var(--brand-600); }
.form-sgw .form-label { font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .35rem; }
.form-sgw .form-control, .form-sgw .form-select {
    border-radius: 12px; border: 1.5px solid var(--line); padding: .8rem 1rem; font-size: .97rem; background: var(--surface); color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-sgw .form-control:focus, .form-sgw .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(19, 137, 58, .12); }
.form-sgw .field-validation-error, .form-sgw .validation-summary-errors { color: var(--red); font-size: .85rem; display: block; margin-top: .3rem; }
.form-sgw .validation-summary-errors ul { margin: 0; padding-left: 1rem; }
.form-sgw .input-validation-error { border-color: var(--red); }
.captcha-box { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: 12px; background: var(--soft); border: 1px dashed var(--line); }
.captcha-box .q { font-family: var(--font-head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.alert-sgw { display: flex; gap: .75rem; align-items: center; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); font-weight: 500; }

/* services page */
.svc-layout { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 991.98px) { .svc-layout { grid-template-columns: 1fr; } }
.svc-side { position: sticky; top: calc(var(--header-h) + 20px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
@media (max-width: 991.98px) { .svc-side { position: static; } }
.svc-side h2 { font-size: 1rem; padding: 1.1rem 1.25rem; margin: 0; border-bottom: 1px solid var(--line); background: var(--soft); }
.svc-list { list-style: none; margin: 0; padding: .5rem; max-height: 60vh; overflow-y: auto; }
.svc-list a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .85rem; border-radius: 10px; color: var(--ink-2); font-size: .94rem; font-weight: 500; }
.svc-list a:hover { background: var(--soft); color: var(--ink); }
.svc-list a.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.svc-list a i { opacity: 0; transition: opacity .15s ease; }
.svc-list a.active i, .svc-list a:hover i { opacity: 1; }
.svc-pager { display: flex; justify-content: center; gap: .35rem; padding: .75rem; border-top: 1px solid var(--line); }
.svc-pager a, .svc-pager span { min-width: 34px; height: 34px; padding: 0 .5rem; display: inline-grid; place-items: center; border-radius: 9px; font-size: .88rem; border: 1px solid var(--line); color: var(--ink-2); }
.svc-pager .active { background: var(--brand); border-color: var(--brand); color: #fff; }
.svc-pager .disabled { opacity: .45; pointer-events: none; }
.svc-cats { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.svc-cats a { padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .88rem; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: .45rem; }
.svc-cats a:hover { border-color: var(--ink-2); color: var(--ink); }
.svc-cats a.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.svc-detail { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: opacity .2s ease; }
.svc-detail.loading { opacity: .45; }
.svc-detail-img { aspect-ratio: 21 / 9; background: var(--soft); overflow: hidden; }
.svc-detail-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-detail-body { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.svc-detail-body h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.svc-detail-body .desc p { color: var(--ink-2); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.feature-grid li { display: flex; gap: .65rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px; background: var(--soft); font-size: .94rem; color: var(--ink-2); }
.feature-grid li i { color: var(--brand-600); margin-top: .15rem; }

/* technologies (docs) */
.docs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 991.98px) { .docs-layout { grid-template-columns: 1fr; } }
.docs-nav { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
@media (max-width: 991.98px) { .docs-nav { position: static; max-height: none; } }
.docs-nav > summary { list-style: none; cursor: pointer; }
.docs-nav > summary::-webkit-details-marker { display: none; }
.docs-nav h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem .85rem; }
.docs-nav ol { list-style: none; padding: 0; margin: 0; counter-reset: topic; }
.docs-nav li a { display: flex; gap: .65rem; padding: .6rem .85rem; border-radius: 10px; color: var(--ink-2); font-size: .93rem; border-left: 2px solid transparent; }
.docs-nav li a::before { counter-increment: topic; content: counter(topic); font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--muted); min-width: 1.2rem; }
.docs-nav li a:hover { background: var(--soft); }
.docs-nav li a.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.docs-nav li a.active::before { color: var(--brand-600); }
.docs-content { min-width: 0; }
.docs-content .doc-section { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.docs-content .doc-section:last-child { border-bottom: 0; }
.docs-content h2 { font-size: 1.6rem; }
.docs-content h3 { font-size: 1.25rem; margin-top: 1.25rem; }
.docs-content pre, .docs-content code { font-family: "JetBrains Mono", Consolas, monospace; font-size: .9rem; }
.docs-content pre { background: var(--ink-bg); color: #e2e8f0; padding: 1.1rem 1.25rem; border-radius: 12px; overflow-x: auto; }
.docs-content :not(pre) > code { background: var(--soft); padding: .15rem .4rem; border-radius: 6px; color: var(--red); }
.docs-content img { border-radius: 12px; }
.docs-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.docs-content th, .docs-content td { border: 1px solid var(--line); padding: .6rem .8rem; }
.docs-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

/* empty state */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state img { max-width: 280px; margin-bottom: 1.5rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink-bg); color: #a3aebf; padding: 72px 0 28px; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; }
.site-footer a { color: #a3aebf; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-logo { display: inline-block; margin-bottom: 1.25rem; } /* logo_dark.png: white text for the dark footer */
.site-footer .foot-logo img { height: 50px; width: auto; display: block; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; font-size: .95rem; }
.site-footer .foot-contact li { display: flex; gap: .75rem; }
.site-footer .foot-contact i { color: #4ade80; margin-top: .15rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff !important; font-size: 1.05rem; transition: background-color .2s ease; }
.socials a:hover { background: var(--brand); }
.site-footer { padding-bottom: 88px; } /* room for the floating WhatsApp / back-to-top buttons */
.foot-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }

.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 1020; width: 46px; height: 46px; border-radius: 14px;
    display: grid; place-items: center; background: var(--brand); color: #fff !important; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.wa-float {
    position: fixed; left: 20px; bottom: 20px; z-index: 1020; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; background: #25d366; color: #fff !important; font-size: 1.6rem; box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
.float-y { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float-y { animation: none; } }

/* ---------------------------------------------------------------- clients band */
.clients-band { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.clients-label { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.client-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2.75rem; }
.client-logo { flex: 0 0 auto; display: grid; place-items: center; width: 190px; height: 92px; padding: 1rem 1.5rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.client-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.client-logo img { max-height: 48px; max-width: 140px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease; }
.client-logo:hover img { filter: none; opacity: 1; }
.client-logo img:hover { filter: none; opacity: 1; }
.industry-chip { padding: .75rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 600; color: var(--ink-2); font-size: .98rem; }
.industry-chip i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-50); color: var(--brand-600); font-size: 1.05rem; }

/* ---------------------------------------------------------------- technology scroller */
.tech-scroller { display: grid; gap: 1.1rem; overflow: hidden; padding: .75rem 0 1.25rem;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tech-row { display: flex; gap: 1.1rem; width: max-content; animation: marquee 45s linear infinite; }
.tech-row.reverse { animation-direction: reverse; animation-duration: 52s; }
.tech-scroller:hover .tech-row { animation-play-state: paused; }
.tech-tile {
    flex: 0 0 auto; display: flex; align-items: center; gap: .8rem; padding: .95rem 1.4rem .95rem 1rem;
    border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); white-space: nowrap;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tech-tile img { width: 40px; height: 40px; object-fit: contain; padding: 6px; border-radius: 12px; background: var(--soft); transition: transform .35s ease; }
.tech-tile:hover { transform: translateY(-6px); box-shadow: 0 16px 32px -14px rgba(19, 137, 58, .45); border-color: var(--brand-100); }
.tech-tile:hover img { transform: rotate(-8deg) scale(1.12); }
@media (prefers-reduced-motion: reduce) { .tech-row { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .tech-row [aria-hidden] { display: none; } }

/* ---------------------------------------------------------------- photos */
.photo-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--soft); }
.photo-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-art .photo-frame { animation: floatTilt 7s ease-in-out infinite; }
@keyframes floatTilt { 0%, 100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(-.5deg) translateY(-14px); } }
.split-art.photo { animation: floatY 8s ease-in-out infinite; }
.flex-lg-row-reverse .split-art.photo { animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) { .hero-art .photo-frame, .split-art.photo { animation: none; } }
.hero-art .photo-frame img { aspect-ratio: 3 / 2; }
.split-art.photo { padding: 0; overflow: hidden; box-shadow: var(--shadow-lg); }
.split-art.photo img { aspect-ratio: 1100 / 864; object-fit: cover; }

/* ================================================================ motion polish */
/* scroll progress bar */
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--brand), #1fae57, var(--blue)); }

/* hero: drifting colour glows + shimmering accent word */
.hero .glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; pointer-events: none; }
.hero .glow.g1 { width: 380px; height: 380px; background: #b9ebc9; top: -60px; left: -80px; animation: drift1 16s ease-in-out infinite; }
.hero .glow.g2 { width: 420px; height: 420px; background: #cfe0ff; top: 40px; right: -120px; animation: drift2 19s ease-in-out infinite; }
.hero .glow.g3 { width: 220px; height: 220px; background: #ffe9b0; bottom: -40px; left: 45%; animation: drift1 22s ease-in-out infinite reverse; }
@keyframes drift1 { 50% { transform: translate(60px, 40px) scale(1.12); } }
@keyframes drift2 { 50% { transform: translate(-70px, 50px) scale(.9); } }
.hero h1 .text-grad { background-size: 200% auto; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }

/* floating stat cards around the hero image */
.hero-art .float-card {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: .65rem; padding: .7rem 1rem;
    background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: .82rem; color: var(--muted); line-height: 1.25;
}
.hero-art .float-card strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1rem; }
.hero-art .float-card .icon-tile { width: 38px; height: 38px; font-size: 1rem; border-radius: 11px; }
.hero-art .float-card.c1 { left: -22px; bottom: 14%; animation: floatY 5s ease-in-out infinite; }
.hero-art .float-card.c2 { right: -18px; top: 8%; animation: floatY 6s ease-in-out infinite -2s; }
@media (max-width: 575.98px) { .hero-art .float-card { display: none; } }

/* pulsing eyebrow dot */
.eyebrow .dot { position: relative; }
.eyebrow .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* shine sweep on primary buttons */
.btn-sgw { position: relative; overflow: hidden; }
.btn-sgw::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
.btn-sgw.btn-light::after { background: linear-gradient(120deg, transparent, rgba(19, 137, 58, .15), transparent); }
@keyframes shine { 0%, 70% { left: -75%; } 100% { left: 130%; } }

/* card hover: gradient border glow + icon pop */
.card-sgw, .step, .post, .case { position: relative; }
.card-sgw::before, .step::before { pointer-events: none; }
.card-sgw::after, .step::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; opacity: 0; transition: opacity .3s ease;
    background: linear-gradient(135deg, var(--brand), #1fae57 40%, var(--blue));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card-sgw:hover::after, .step:hover::after { opacity: 1; }
.step { transition: transform .25s ease, box-shadow .25s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-sgw .icon-tile { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.card-sgw:hover .icon-tile { transform: translateY(-3px) rotate(-8deg) scale(1.1); }

/* image zoom on hover */
.case-visual img, .post-thumb i { transition: transform .6s ease; }
.case:hover .case-visual img { transform: scale(1.06); }
.post:hover .post-thumb i { transform: scale(1.15) rotate(-6deg); }

/* CTA band: slowly moving gradient */
.cta-band { background-size: 160% 160%; animation: ctaMove 14s ease-in-out infinite alternate; }
@keyframes ctaMove { to { background-position: 100% 100%; } }

/* stagger reveal for grids */
.reveal.in .card-sgw, .reveal.in .step { animation: none; }

@media (prefers-reduced-motion: reduce) {
    .hero .glow, .hero h1 .text-grad, .hero-art .float-card, .eyebrow .dot::after, .btn-sgw::after, .cta-band { animation: none !important; }
    .scroll-progress { display: none; }
}

/* illustrations (SVG) float gently like the photos */
.split-art:not(.photo) img { animation: floatY 7s ease-in-out infinite; }
.flex-lg-row-reverse .split-art:not(.photo) img { animation-delay: -3.5s; }
@media (prefers-reduced-motion: reduce) { .split-art:not(.photo) img { animation: none; } }

/* ================================================================== dark theme
   Set by Scripts/app/theme.js (<html data-theme="dark">). Deep navy rather than black,
   brand colours slightly brighter so they keep their contrast. */
html[data-theme="dark"] {
    --brand: #22a94f;
    --brand-600: #1f9a48;
    --brand-700: #2bbd5b;
    --brand-50: rgba(34, 169, 79, .14);
    --brand-100: rgba(34, 169, 79, .24);
    --blue: #5b95f9;
    --blue-50: rgba(91, 149, 249, .15);

    --ink: #e8eef6;
    --ink-2: #c3cddb;
    --muted: #93a0b4;
    --line: #1f2b3e;
    --soft: #0f1829;
    --white: #0a111e;
    --surface: #111b2d;
    --ink-bg: #060b15;
    --header-glass: rgba(10, 17, 30, .8);
    --glass: rgba(17, 27, 45, .9);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 8px 24px -8px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
}
html[data-theme="dark"] body.site { color: var(--ink-2); }
html[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
html[data-theme="dark"] .form-sgw .form-control::placeholder { color: #66748a; }
html[data-theme="dark"] .form-sgw .form-control:focus,
html[data-theme="dark"] .form-sgw .form-select:focus { background: var(--surface); color: var(--ink); }
/* Client logos are drawn for white; keep a soft white tile so they stay readable. */
html[data-theme="dark"] .client-logo { background: #f3f5f8; border-color: transparent; }
/* Photos: tone down the brightest whites a little. */
html[data-theme="dark"] .photo-frame img,
html[data-theme="dark"] .case-visual img { filter: brightness(.92); }
/* Inner-page header band: deeper glow in dark mode, like the home hero. */
html[data-theme="dark"] .page-hero { background: linear-gradient(180deg, #0c1626, var(--white)); }
html[data-theme="dark"] .page-hero::before {
    background:
        radial-gradient(760px 380px at 92% 0%, rgba(59, 130, 246, .20), transparent 62%),
        radial-gradient(640px 360px at 0% 30%, rgba(34, 169, 79, .22), transparent 62%),
        url("../img/grid-pattern.svg") center top / 1400px auto no-repeat;
}
html[data-theme="dark"] .page-hero::before { opacity: .9; }
html[data-theme="dark"] .icon-tile.red { background: rgba(227, 38, 30, .16); }
html[data-theme="dark"] .icon-tile.yellow { background: rgba(245, 184, 18, .14); color: #f5b812; }
html[data-theme="dark"] .icon-tile.orange { background: rgba(242, 98, 28, .15); }
html[data-theme="dark"] .svc-cats a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------------------------------------------------------- portfolio & case studies */
.pf-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.pf-filter { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; }
.pf-filter:hover { border-color: var(--brand); color: var(--brand-700); }
.pf-filter.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pf-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.pf-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, .12); border-color: var(--brand-100); color: inherit; }
.pf-cover { position: relative; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.pf-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.pf-card:hover .pf-cover img { transform: scale(1.04); }
.pf-cover .case-tag { position: absolute; top: .85rem; left: .85rem; background: rgba(15, 23, 42, .78); color: #fff; backdrop-filter: blur(4px); }
.pf-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.pf-body h3 { font-size: 1.25rem; margin: 0; }
.pf-body p { color: var(--muted); margin: 0; }
.pf-more { margin-top: auto; font-weight: 600; color: var(--brand-700); display: inline-flex; gap: .4rem; align-items: center; }
.pj-hero .case-tag { display: inline-block; }
.pj-shot { position: relative; z-index: 2; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(15, 23, 42, .14); background: var(--surface); margin-top: -1rem; }
.pj-shot img { display: block; width: 100%; height: auto; }
.pj-browser { display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; background: var(--soft); border-bottom: 1px solid var(--line); }
.pj-browser span { width: .65rem; height: .65rem; border-radius: 50%; background: #f87171; } .pj-browser span:nth-child(2) { background: #fbbf24; } .pj-browser span:nth-child(3) { background: #34d399; }
.pj-browser em { margin-left: .75rem; font-style: normal; font-size: .82rem; color: var(--muted); }
.pj-block { margin-bottom: 2.25rem; }
.pj-block h2 { font-size: 1.45rem; margin-bottom: .75rem; }
.pj-block p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.75; }
.pj-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .65rem 1.5rem; padding: 0; list-style: none; }
.pj-features li { display: flex; gap: .55rem; align-items: flex-start; }
.pj-features i { color: var(--brand); font-size: 1.1rem; margin-top: .1rem; }
.pj-facts { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 1.4rem; display: grid; gap: 1rem; }
.pj-facts span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.pj-facts strong { font-weight: 600; color: var(--ink); }
.pj-thumb { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------------------------------------------------------------- hero product shots, products, services, legal */
.hero-shots { position: relative; padding: 1.5rem 0 2.5rem; }
.hero-shot { margin: 0; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.hero-chip { position: absolute; display: flex; align-items: center; gap: .65rem; padding: .65rem .95rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(15, 23, 42, .16); font-size: .85rem; z-index: 3; }
.hero-chip i { width: 2.1rem; height: 2.1rem; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); font-size: 1.05rem; }
.hero-chip b { display: block; color: var(--ink); }
.hero-chip span { color: var(--muted); line-height: 1.25; }
.hero-chip.c1 { top: 0; left: -1.5rem; } .hero-chip.c2 { bottom: .5rem; left: 1rem; animation-delay: -2s; } .hero-chip.c3 { bottom: 3.5rem; right: -1rem; animation-delay: -4s; }
@media (max-width: 991px) { .hero-chip { display: none; } .hero-shot { transform: none; } }
.svc-card { display: flex; flex-direction: column; gap: .5rem; height: 100%; color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, .1); border-color: var(--brand-100); color: inherit; }
.svc-card h3 { margin: .5rem 0 0; }
.svc-card p { color: var(--muted); margin: 0; }
.svc-mini { list-style: none; padding: 0; margin: .35rem 0 .5rem; display: grid; gap: .3rem; font-size: .92rem; color: var(--ink-2); }
.svc-mini i { color: var(--brand); margin-right: .4rem; }
.product-card { display: flex; flex-direction: column; gap: .5rem; }
.product-card p { color: var(--muted); }
.product-actions { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; padding-top: .5rem; }
.btn-sm.btn-sgw, .btn-sm.btn-sgw-ghost, .btn-sm.btn-sgw-outline { padding: .5rem 1rem; font-size: .9rem; }
.testimonial { position: relative; margin: 0; }
.testimonial > i { font-size: 2rem; color: var(--brand); }
.testimonial blockquote { margin: .5rem 0 1rem; color: var(--ink-2); font-size: 1.02rem; }
.testimonial figcaption b { display: block; } .testimonial figcaption span { color: var(--muted); font-size: .9rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.75; }


/* =============================================================================
   Theme v3 - "editorial studio": warm paper background, serif display type
   (Fraunces), near-black ink buttons, deep green-black bands with a lime accent,
   big tinted project showcases. Sits last so it refines everything above.
   ============================================================================= */
:root {
    --brand: #0f7a3a;
    --brand-600: #0c6a32;
    --brand-700: #09552a;
    --brand-50: #e8f4ec;
    --brand-100: #cfe9d8;
    --ink: #101512;
    --ink-2: #323a35;
    --muted: #646e68;
    --line: #e6e2d9;
    --soft: #f3f1ea;
    --white: #fbfaf6;
    --surface: #ffffff;
    --ink-bg: #0c120f;
    --header-glass: rgba(251, 250, 246, .84);
    --lime: #c8f169;
    --radius-lg: 28px;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-head: "Inter", "Segoe UI", system-ui, sans-serif;   /* two families only: Fraunces for display, Inter for everything else */
}
.site h3, .site h4, .site h5, .site h6 { letter-spacing: -0.01em; }
.btn-sgw, .btn-sgw-outline, .btn-sgw-ghost, .nav-a { font-weight: 600; }
html[data-theme="dark"] {
    --ink: #eef2ef;
    --ink-2: #c7d0ca;
    --muted: #94a19a;
    --line: #232c27;
    --soft: #111714;
    --white: #0b0f0d;
    --surface: #141b17;
    --ink-bg: #070a08;
    --header-glass: rgba(11, 15, 13, .82);
    --brand-50: rgba(63, 209, 116, .12);
    --brand-100: rgba(63, 209, 116, .22);
    --brand-700: #5fdc8c;
}
body.site { background: var(--white); }

/* ---------------------------------------------------------------- type */
.site h1, .site .section-title, .page-hero h1, .cta-xl h2, .cta-band h2 {
    font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em;
}
.section-title { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.06; }
.site h1 em, .site h2 em, .site h1 .text-grad, .site .section-title .text-grad {
    font-style: italic; font-weight: 400; color: var(--brand);
    background: none; -webkit-background-clip: border-box; background-clip: border-box; animation: none;
}
html[data-theme="dark"] .site h1 em, html[data-theme="dark"] .site h2 em,
html[data-theme="dark"] .site h1 .text-grad, html[data-theme="dark"] .site .section-title .text-grad { color: #5fdc8c; }

.eyebrow { background: none; padding: 0; border-radius: 0; color: var(--brand-600); letter-spacing: .16em; }
.eyebrow .dot { width: 22px; height: 1.5px; border-radius: 0; }
.eyebrow .dot::after { display: none; }
html[data-theme="dark"] .eyebrow { color: #5fdc8c; }
html[data-theme="dark"] .eyebrow .dot { background: #5fdc8c; }

.section { padding: 120px 0; }
@media (max-width: 767.98px) { .section { padding: 76px 0; } }

/* ---------------------------------------------------------------- buttons: ink pills, lime on dark */
.btn-sgw { background: var(--ink); color: var(--white) !important; box-shadow: none; }
.btn-sgw:hover { background: var(--brand); color: #fff !important; box-shadow: 0 14px 30px -14px rgba(15, 122, 58, .7); }
.btn-sgw i, .btn-sgw-outline i, .link-arrow i { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.btn-sgw:hover i.bi-arrow-right, .btn-sgw-outline:hover i.bi-arrow-right { transform: translateX(4px); }
.btn-sgw-outline { background: transparent; }
.btn-sgw::after { display: none; }
.section-dark .btn-sgw, .cta-xl .btn-sgw:not(.btn-light) { background: var(--lime); color: #0c120f !important; }
.section-dark .btn-sgw:hover, .cta-xl .btn-sgw:not(.btn-light):hover { background: #fff; color: #0c120f !important; }
.cta-xl .btn-sgw.btn-light { background: rgba(255, 255, 255, .06); color: #fff !important; border-color: rgba(255, 255, 255, .18); }
.cta-xl .btn-sgw.btn-light:hover { background: rgba(255, 255, 255, .14); }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--ink); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; width: fit-content; }
.site a.link-arrow { color: var(--ink); }
a:hover > .link-arrow i, .link-arrow:hover i { transform: translate(3px, -3px); }

/* ---------------------------------------------------------------- hero */
.hx { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hx::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 25%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse 65% 55% at 50% 25%, #000 20%, transparent 72%);
}
.hx::after {
    content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: 1100px; height: 600px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(15, 122, 58, .16), transparent); pointer-events: none;
}
.hx-kicker {
    display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); font-size: .85rem; color: var(--ink-2); box-shadow: 0 1px 2px rgba(16, 21, 18, .04);
}
.hx-kicker .pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.hx-kicker .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
.hx-title { font-size: clamp(2.6rem, 1.1rem + 5.2vw, 5.6rem); line-height: 1.02; letter-spacing: -0.03em; margin: 1.6rem auto 1.4rem; }
.hx-lead { max-width: 640px; margin: 0 auto 2.2rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--muted); }
.hx-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

.hx-stage {
    position: relative; max-width: 1060px; margin: 72px auto 0;
    transform: perspective(1800px) rotateX(var(--tilt, 0deg)); transform-origin: 50% 0;
    animation: stageIn 1.3s cubic-bezier(.2, .8, .2, 1) .35s both;
}
@keyframes stageIn { from { opacity: 0; translate: 0 60px; } }
/* one tinted panel holds all three products, so their own colours never fight the page */
.hx-panel {
    position: relative; overflow: hidden; border-radius: 32px; padding: 7% 11% 0; aspect-ratio: 16 / 8.6;
    background: radial-gradient(120% 140% at 0% 0%, #e4f5ea 0%, #c9ead3 45%, #a2d8b9 100%);
}
html[data-theme="dark"] .hx-panel { background: radial-gradient(120% 140% at 0% 0%, #1a3627 0%, #10251a 55%, #0c1b13 100%); border: 1px solid var(--line); }
.hx-panel::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px);
    background-size: 56px 56px; -webkit-mask-image: linear-gradient(#000, transparent 80%); mask-image: linear-gradient(#000, transparent 80%);
}
html[data-theme="dark"] .hx-panel::before { opacity: .12; }
.hx-desktop { position: relative; border-radius: 14px 14px 0 0; overflow: hidden; background: var(--surface); box-shadow: 0 -10px 60px -20px rgba(10, 40, 28, .35), 0 0 0 6px rgba(255, 255, 255, .35); }
html[data-theme="dark"] .hx-desktop { box-shadow: 0 -10px 60px -20px rgba(0, 0, 0, .8), 0 0 0 6px rgba(255, 255, 255, .05); }
.hx-desktop img { display: block; width: 100%; height: auto; }
.hx-float { position: absolute; width: 31%; height: auto; pointer-events: none; }
.hx-float.f1 { left: -5%; bottom: -12%; }
.hx-float.f2 { right: -5%; bottom: -9%; animation-delay: -3s; }
.hx-products { list-style: none; padding: 0; margin: 88px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.75rem; color: var(--muted); font-size: .95rem; }
.hx-products li { display: inline-flex; align-items: center; gap: .55rem; }
.hx-products i { color: var(--brand); font-size: 1.05rem; }
html[data-theme="dark"] .hx-products i { color: #5fdc8c; }
.hx-products b { color: var(--ink); font-weight: 600; }
@media (max-width: 767.98px) { .hx-panel { aspect-ratio: 4 / 3; padding: 9% 6% 0; border-radius: 22px; } .hx-float { width: 44%; } .hx-float.f1 { left: -3%; bottom: -16%; } .hx-float.f2 { right: -3%; bottom: -14%; } .hx-products { margin-top: 72px; flex-direction: column; align-items: center; } }
@media (max-width: 575.98px) { .hx { padding-top: 48px; } .hx-stage { margin-top: 48px; } }
html[data-theme="dark"] .hx::before { opacity: .45; }

/* ---------------------------------------------------------------- word marquee */
.word-marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.5rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.word-track { display: flex; align-items: center; gap: 2.25rem; width: max-content; animation: marquee 45s linear infinite; }
.word-track span { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.7rem); color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; }
.word-track span:nth-of-type(even) { font-style: italic; color: var(--brand); }
html[data-theme="dark"] .word-track span:nth-of-type(even) { color: #5fdc8c; }
.word-track i { color: var(--brand); font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .word-track { animation: none; } }

/* ---------------------------------------------------------------- intro + numbers */
.intro-statement { font-family: var(--font-display); font-size: clamp(1.75rem, 1.1rem + 2.1vw, 2.9rem); line-height: 1.18; letter-spacing: -0.015em; color: var(--ink); margin: 0; }
.intro-statement em { font-style: italic; color: var(--brand); }
html[data-theme="dark"] .intro-statement em { color: #5fdc8c; }
.stats-row { margin-top: 72px; }
.stat { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 1.5rem 0 0; }
.stat .num { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.8rem, 1.8rem + 2.8vw, 4.4rem); letter-spacing: -0.03em; color: var(--ink); }
.stat .num small { font-size: .45em; color: var(--brand); margin-left: .1em; }
.stat p { font-size: .95rem; }

/* ---------------------------------------------------------------- selected work */
.case-visual { position: relative; overflow: hidden; border-radius: 24px; }
.tone-mint { background: radial-gradient(120% 120% at 0% 0%, #e2f5e9 0%, #c8eacf 45%, #9fd7b6 100%); }
.tone-blue { background: radial-gradient(120% 120% at 0% 0%, #eef3ff 0%, #d6e2fd 50%, #b9cdf9 100%); }
.tone-amber { background: radial-gradient(120% 120% at 0% 0%, #fff7e6 0%, #fde8c1 50%, #f9d593 100%); }
html[data-theme="dark"] .tone-mint { background: radial-gradient(120% 120% at 0% 0%, #1b3a2a, #10261b); }
html[data-theme="dark"] .tone-blue { background: radial-gradient(120% 120% at 0% 0%, #1c2a4a, #121b31); }
html[data-theme="dark"] .tone-amber { background: radial-gradient(120% 120% at 0% 0%, #3b2d14, #261d0d); }

.case-feature {
    display: grid; grid-template-columns: 1.4fr 1fr; align-items: stretch; color: inherit; border-radius: 32px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}
.site a.case-feature, .site a.case-card { color: inherit; }
.case-feature:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(16, 40, 28, .35); }
.case-feature .case-visual { margin: 12px; min-height: 420px; }
.cv-desktop { position: absolute; left: 7%; top: 11%; width: 80%; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(10, 40, 28, .5); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.cv-desktop img { display: block; width: 100%; height: auto; }
.cv-phone { position: absolute; right: 6%; bottom: 8%; width: 20%; aspect-ratio: 9 / 18.5; border-radius: 20px; overflow: hidden; border: 5px solid #0c120f; background: #0c120f; box-shadow: 0 30px 50px -20px rgba(10, 40, 28, .6); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.cv-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.case-feature:hover .cv-desktop { transform: translateY(-8px); }
.case-feature:hover .cv-phone { transform: translateY(-16px) rotate(-2deg); }
.case-info { padding: clamp(1.75rem, 3.5vw, 3.25rem); display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; }
.case-info h3, .case-card h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.case-info h3 { font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem); }
.case-info p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.case-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .95rem; color: var(--ink-2); }
.case-points i { color: var(--brand); margin-right: .5rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { padding: .35rem .85rem; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: .85rem; font-weight: 500; }
@media (max-width: 991.98px) { .case-feature { grid-template-columns: 1fr; } .case-feature .case-visual { min-height: 0; aspect-ratio: 16 / 11; } }

.case-card { display: block; height: 100%; }
.case-card .case-visual { aspect-ratio: 16 / 10.5; display: grid; place-items: center; margin-bottom: 1.5rem; }
.case-card .case-visual img { width: 84%; height: auto; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.case-card:hover .case-visual img { transform: translateY(-10px) scale(1.02); }
.case-card h3 { font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.5rem); margin-bottom: .8rem; }
.case-card .tags { margin-bottom: 1rem; }
.case-card p { color: var(--muted); margin-bottom: 1rem; }

/* ---------------------------------------------------------------- dark band + services index */
.section-dark { background: var(--ink-bg); color: #b5c0b9; position: relative; overflow: hidden; }
.section-dark::before {
    content: ""; position: absolute; width: 900px; height: 900px; left: -300px; bottom: -500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 241, 105, .12), transparent 62%); pointer-events: none;
}
html[data-theme="dark"] .section-dark { border-block: 1px solid var(--line); }
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-dark .section-title em { color: var(--lime); }
.section-dark .section-lead { color: #8f9c95; }
.section-dark .eyebrow { color: var(--lime); }
.section-dark .eyebrow .dot { background: var(--lime); }
.svc-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.svc-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .1); counter-reset: none; }
.svc-index li { margin: 0; }
.site .svc-index a {
    display: grid; grid-template-columns: 56px 1fr 46px; gap: 1.25rem; align-items: center; padding: 1.7rem .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1); color: #b5c0b9; transition: background-color .35s ease, padding .35s cubic-bezier(.2, .8, .2, 1);
}
.svc-index .no { font-family: var(--font-display); font-style: italic; color: var(--lime); font-size: 1.1rem; }
.svc-index .txt b { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + .9vw, 2rem); color: #fff; letter-spacing: -0.01em; margin-bottom: .3rem; transition: color .3s ease; }
.svc-index .txt span { color: #8f9c95; font-size: .97rem; }
.svc-index i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 1.1rem; transition: all .35s cubic-bezier(.2, .8, .2, 1); }
.site .svc-index a:hover { background: rgba(255, 255, 255, .03); padding-left: 1.25rem; color: #b5c0b9; }
.svc-index a:hover .txt b { color: var(--lime); }
.svc-index a:hover i { background: var(--lime); border-color: var(--lime); color: #0c120f; transform: rotate(45deg); }
@media (max-width: 575.98px) { .site .svc-index a { grid-template-columns: 36px 1fr; } .svc-index i { display: none; } }

/* ---------------------------------------------------------------- process */
.proc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.proc-step { position: relative; padding-top: 2rem; border-top: 1px solid var(--line); }
.proc-step::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--brand); transition: width 1.4s cubic-bezier(.2, .8, .2, 1) .2s; }
.proc-step.in::before { width: 100%; }
.proc-step .no { display: block; font-family: var(--font-display); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--brand); margin-bottom: 1.25rem; }
html[data-theme="dark"] .proc-step .no { color: #5fdc8c; }
.proc-step h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.proc-step p { color: var(--muted); margin: 0; }
@media (max-width: 991.98px) { .proc { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; } }
@media (max-width: 575.98px) { .proc { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- cards, industries, portfolio grid */
.card-sgw { border-radius: 22px; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease, border-color .3s ease; }
.card-sgw:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(16, 40, 28, .3); }
.svc-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.01em; }

.pf-card { background: none; border: 0; border-radius: 0; overflow: visible; }
.pf-card:hover { transform: none; box-shadow: none; }
.pf-cover { border-radius: 24px; aspect-ratio: 16 / 11; padding: 8% 8% 0; background: radial-gradient(120% 120% at 0% 0%, #e2f5e9 0%, #c8eacf 45%, #9fd7b6 100%); }
html[data-theme="dark"] .pf-cover { background: radial-gradient(120% 120% at 0% 0%, #1b3a2a, #10261b); }
.pf-cover img { border-radius: 12px 12px 0 0; box-shadow: 0 24px 50px -20px rgba(10, 40, 28, .5); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.pf-card:hover .pf-cover img { transform: translateY(-8px); }
.pf-cover .case-tag { top: 1rem; left: 1rem; border-radius: 999px; padding: .3rem .8rem; background: rgba(12, 18, 15, .78); }
.pf-body { padding: 1.4rem .25rem 0; }
.pf-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 2rem; letter-spacing: -0.02em; }
.pf-body .chip { background: var(--brand-50); border-color: transparent; color: var(--brand-700); }

/* ---------------------------------------------------------------- FAQ */
.faq-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; margin: 0; }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item[open] { box-shadow: none; }
.faq-item summary { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; padding: 1.4rem 0; }
.faq-body { padding: 0 0 1.4rem; }

/* ---------------------------------------------------------------- big CTA */
.cta-xl {
    position: relative; overflow: hidden; text-align: center; border-radius: 36px; padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem;
    background: var(--ink-bg); color: #9fada5;
}
html[data-theme="dark"] .cta-xl { border: 1px solid var(--line); }
.cta-xl::before {
    content: ""; position: absolute; left: 50%; bottom: -60%; width: 900px; height: 600px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(200, 241, 105, .22), transparent); pointer-events: none;
}
.cta-xl::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%); mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}
.cta-xl > * { position: relative; z-index: 1; }
.cta-xl .eyebrow { color: var(--lime); }
.cta-xl .eyebrow .dot { background: var(--lime); }
.cta-xl h2 { color: #fff; font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.4rem); line-height: 1.04; margin: .4rem 0 1.2rem; }
.cta-xl h2 em { color: var(--lime); }
.cta-xl p { font-size: 1.1rem; max-width: 560px; margin: 0 auto 2.2rem; }

/* ---------------------------------------------------------------- motion */
.reveal { transition-duration: .9s; transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
html.smooth-wheel { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { .hx-stage { animation: none; transform: none; } .proc-step::before { width: 100%; transition: none; } }
.case-tag { color: var(--brand-600); }

/* ---------------------------------------------------------------- one-accent palette
   Neutrals + one brand green; lime only on dark bands; red only for form errors.
   The old logo colours (blue / yellow / orange) are folded into the brand green. */
:root { --blue: var(--brand); --blue-50: var(--brand-50); --yellow: var(--brand); --orange: var(--brand); }
html[data-theme="dark"] { --blue: #5fdc8c; --blue-50: var(--brand-50); --yellow: #5fdc8c; --orange: #5fdc8c; }
.icon-tile, .icon-tile.blue, .icon-tile.red, .icon-tile.yellow, .icon-tile.orange { background: var(--brand-50); color: var(--brand-600); }
html[data-theme="dark"] .icon-tile, html[data-theme="dark"] .icon-tile.blue, html[data-theme="dark"] .icon-tile.red,
html[data-theme="dark"] .icon-tile.yellow, html[data-theme="dark"] .icon-tile.orange { color: #5fdc8c; }
.icon-tile.ink { background: var(--soft); color: var(--ink); }
.text-grad { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--brand); animation: none; }
.scroll-progress { background: var(--brand); }
.split-art { background: var(--soft); }
.card-sgw::after, .step::after { background: var(--brand); }
.cta-band { background: var(--ink-bg); animation: none; }
.tone-sand { background: radial-gradient(120% 120% at 0% 0%, #f7f4ec 0%, #ece6d8 55%, #e0d8c5 100%); }
html[data-theme="dark"] .tone-sand { background: radial-gradient(120% 120% at 0% 0%, #23251f, #171a15); }

/* ---------------------------------------------------------------- minimal full-height hero */
.hx-min { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: 64px 0; }
.hx-min::after { top: 30%; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: .6rem; margin-top: 4.5rem; color: var(--muted); font-size: .9rem; letter-spacing: .02em; }
.site a.scroll-cue { color: var(--muted); }
.scroll-cue i { color: var(--brand); font-size: 1.1rem; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(7px); } }
@media (max-width: 575.98px) { .scroll-cue { margin-top: 3rem; } }

/* ---------------------------------------------------------------- service cards (dark band) */
.site a.svc-tile {
    --t: 34, 197, 94;
    position: relative; display: flex; flex-direction: column; height: 100%; padding: 2rem 2rem 1.6rem; border-radius: 14px; color: #b5c0b9;
    background: linear-gradient(135deg, rgba(var(--t), .13) 0%, rgba(var(--t), .03) 45%, rgba(255, 255, 255, .015) 100%);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .5s ease;
}
.row > div:nth-child(4n+2) > .svc-tile { --t: 200, 241, 105; }
.row > div:nth-child(4n+3) > .svc-tile { --t: 95, 220, 140; }
.row > div:nth-child(4n+4) > .svc-tile { --t: 16, 185, 129; }
.site a.svc-tile:hover { transform: translateY(-6px); border-color: rgba(var(--t), .45); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); color: #b5c0b9; }
.svc-tile-head { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.25rem; }
.svc-icon { flex: 0 0 68px; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(var(--t), .45); background: rgba(var(--t), .06); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.svc-icon img { width: 40px; height: 40px; }
.svc-tile:hover .svc-icon { transform: rotate(-6deg) scale(1.06); }
.svc-tile h3 { font-family: var(--font-head); font-weight: 500; font-size: 1.45rem; color: #fff; margin: 0; letter-spacing: -0.01em; }
.svc-tile p { margin: 0 0 2rem; line-height: 1.7; }
.svc-more { margin-top: auto; align-self: flex-end; display: inline-flex; flex-direction: column; align-items: flex-end; gap: .35rem; color: #fff; font-weight: 500; }
.svc-more svg { width: 48px; height: 8px; overflow: visible; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.svc-more path { stroke: var(--lime); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.svc-tile:hover .svc-more svg { transform: translateX(8px); }

/* ---------------------------------------------------------------- project slider */
.rail-head { display: flex; align-items: center; justify-content: space-between; margin: 3.5rem 0 1.25rem; }
.rail-hint { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
.rail-nav { display: flex; gap: .5rem; }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; transition: all .3s ease; }
.rail-nav button:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.rail-nav button:disabled { opacity: .35; pointer-events: none; }
.work-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 3); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: .5rem; }
.work-rail::-webkit-scrollbar { display: none; }
.rail-item { scroll-snap-align: start; }
@media (max-width: 991.98px) { .work-rail { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
@media (max-width: 575.98px) { .work-rail { grid-auto-columns: 86%; } .rail-hint { font-size: 1.3rem; } }

/* ---------------------------------------------------------------- background motion
   All decorative, GPU-friendly (transform/opacity only), and off for reduced motion.
   Beams, nodes and particles are injected by site.js so the markup stays clean. */

/* 1. site-wide aurora: slow drifting colour behind every page */
.bg-aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-aurora span { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; opacity: .55; will-change: transform; }
.bg-aurora span:nth-child(1) { left: -20vmax; top: -25vmax; background: radial-gradient(closest-side, rgba(15, 122, 58, .10), transparent); animation: aurora1 38s ease-in-out infinite alternate; }
.bg-aurora span:nth-child(2) { right: -25vmax; top: 10vh; background: radial-gradient(closest-side, rgba(200, 241, 105, .16), transparent); animation: aurora2 44s ease-in-out infinite alternate; }
.bg-aurora span:nth-child(3) { left: 20vw; bottom: -35vmax; background: radial-gradient(closest-side, rgba(95, 220, 140, .10), transparent); animation: aurora3 52s ease-in-out infinite alternate; }
html[data-theme="dark"] .bg-aurora span { opacity: .9; }
@keyframes aurora1 { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes aurora2 { to { transform: translate(-22vw, 30vh) scale(.9); } }
@keyframes aurora3 { to { transform: translate(-15vw, -25vh) scale(1.2); } }

/* 2. hero + page headers: grid with travelling light beams and pulsing nodes */
.hx, .page-hero { isolation: isolate; }
.page-hero { background: transparent; }
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 1;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 25%, transparent 75%);
}
.hx::after { animation: glowDrift 14s ease-in-out infinite alternate; }
@keyframes glowDrift { to { transform: translateX(-46%) scale(1.12); opacity: .75; } }
.fx-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse 65% 70% at 50% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 65% 70% at 50% 30%, #000 20%, transparent 75%); }
.fx-beam { position: absolute; display: block; }
.fx-beam.h { height: 1px; width: 160px; left: -160px; background: linear-gradient(90deg, transparent, var(--brand), transparent); animation: beamX var(--d, 9s) linear var(--delay, 0s) infinite; }
.fx-beam.v { width: 1px; height: 160px; top: -160px; background: linear-gradient(180deg, transparent, var(--brand), transparent); animation: beamY var(--d, 9s) linear var(--delay, 0s) infinite; }
html[data-theme="dark"] .fx-beam.h { background: linear-gradient(90deg, transparent, #5fdc8c, transparent); }
html[data-theme="dark"] .fx-beam.v { background: linear-gradient(180deg, transparent, #5fdc8c, transparent); }
@keyframes beamX { to { transform: translateX(calc(100vw + 320px)); } }
@keyframes beamY { to { transform: translateY(1100px); } }
.fx-node { position: absolute; width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--brand); opacity: 0; animation: node 4.5s ease-in-out var(--delay, 0s) infinite; }
.fx-node::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--brand); opacity: .5; }
html[data-theme="dark"] .fx-node { background: #5fdc8c; }
html[data-theme="dark"] .fx-node::after { border-color: #5fdc8c; }
@keyframes node { 0%, 100% { opacity: 0; transform: scale(.4); } 40%, 60% { opacity: .9; transform: scale(1); } }

/* 3. dark bands: slow rising particles + breathing glow */
.section-dark, .cta-xl { isolation: isolate; }
.section-dark::before { z-index: -1; animation: breathe 12s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: translate(60px, -40px) scale(1.15); opacity: .7; } }
.cta-xl::before { animation: breatheCta 10s ease-in-out infinite alternate; }
@keyframes breatheCta { to { transform: translateX(-50%) scale(1.2); opacity: .7; } }
.fx-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cta-xl .fx-particles { z-index: 0; }
.fx-particles i { position: absolute; bottom: -10px; border-radius: 50%; background: var(--lime); opacity: 0; animation: rise var(--d, 14s) linear var(--delay, 0s) infinite; }
@keyframes rise { 10% { opacity: var(--o, .5); } 85% { opacity: var(--o, .5); } 100% { opacity: 0; transform: translate(var(--x, 20px), -110vh); } }

/* 4. cursor spotlight on cards (position set by site.js) */
.svc-tile::after, .case-feature::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 241, 105, .10), transparent 45%);
}
.case-feature { position: relative; }
.case-feature::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(15, 122, 58, .07), transparent 45%); }
.svc-tile:hover::after, .case-feature:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .bg-aurora span, .hx::after, .section-dark::before, .cta-xl::before { animation: none !important; }
    .fx-grid, .fx-particles { display: none; }
}

/* ---------------------------------------------------------------- premium motion (site.js adds the classes) */

/* headings rise in word by word */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .14em 0; margin: 0 -.08em -.14em 0; }
.split .wi { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.split.split-in .wi { transform: none; }

/* hand-drawn underline under the hero accent */
.hx-title em { position: relative; display: inline-block; }
.scribble { position: absolute; left: -2%; bottom: -.06em; width: 104%; height: .3em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: #5fdc8c; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; transition: stroke-dashoffset 1.3s cubic-bezier(.65, 0, .35, 1) 1.1s; }
.hx-title.split-in .scribble path { stroke-dashoffset: 0; }

/* magnetic buttons */
.magnetic { transform: translate(var(--tx, 0px), var(--ty, 0px)) !important; transition: transform .45s cubic-bezier(.2, .8, .2, 1), background-color .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease !important; }

/* image reveal: soft wipe + settle */
.clip-reveal { clip-path: inset(12% 10% 12% 10% round 32px); transition: clip-path 1.4s cubic-bezier(.2, .8, .2, 1); }
.clip-reveal.clip-in { clip-path: inset(0 0 0 0); }
.clip-reveal > img, .clip-reveal .cv-desktop img { transform: scale(1.12); transition: transform 1.8s cubic-bezier(.2, .8, .2, 1); }
.clip-reveal.clip-in > img, .clip-reveal.clip-in .cv-desktop img { transform: none; }

/* cards: smooth 3D tilt (angles set by site.js) */
.case-card { transition: transform .6s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }

/* scroll-reactive word marquee */
.word-track.js-driven { animation: none; will-change: transform; }

/* smart header */
.site-header { transition: transform .5s cubic-bezier(.2, .8, .2, 1), background-color .3s ease, box-shadow .3s ease, border-color .3s ease; }
.site-header.is-hidden { transform: translateY(-105%); }

/* page transitions */
body.site.page-leave { opacity: 0; transition: opacity .25s ease; }

/* numbers sharpen into focus */
.reveal .stat .num { filter: blur(10px); opacity: .3; transition: filter 1.1s ease .15s, opacity 1.1s ease .15s; }
.reveal.in .stat .num { filter: none; opacity: 1; }

/* FAQ answers glide open */
.faq-item[open] .faq-body { animation: faqIn .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-10px); } }

/* link underline sweeps out and back in on hover */
.link-arrow { border-bottom: 0; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; }
a:hover > .link-arrow, a.link-arrow:hover { animation: underlineSweep .75s cubic-bezier(.2, .8, .2, 1); }
@keyframes underlineSweep {
    0% { background-size: 100% 1.5px; background-position: 100% 100%; }
    45% { background-size: 0 1.5px; background-position: 100% 100%; }
    55% { background-size: 0 1.5px; background-position: 0 100%; }
    100% { background-size: 100% 1.5px; background-position: 0 100%; }
}

/* fine film grain on dark bands */
.section-dark::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
    .split .wi, .clip-reveal, .clip-reveal img { transform: none !important; clip-path: none !important; transition: none !important; }

    .reveal .stat .num { filter: none; opacity: 1; }
}

/* ---------------------------------------------------------------- denser home: proof, logos, ICP, platforms, results, features */
.section { padding: 100px 0; }
@media (max-width: 767.98px) { .section { padding: 68px 0; } }

.hx-min { min-height: 0; display: block; padding: 88px 0 0; }
.hx-proof { list-style: none; padding: 0; margin: 3.25rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; max-width: 860px; }
.hx-proof li { flex: 1 1 180px; padding: .25rem 1.5rem; border-left: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.hx-proof li:first-child { border-left: 0; }
.hx-proof b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2.1rem; line-height: 1.1; color: var(--ink); letter-spacing: -0.02em; }
@media (max-width: 575.98px) { .hx-proof li { flex-basis: 50%; border-left: 0; padding: .75rem .5rem; } }

.logo-strip { margin-top: 4.5rem; padding: 2rem 0 2.25rem; border-top: 1px solid var(--line); text-align: center; }
.logo-strip p { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem; }
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logo-track { display: flex; align-items: center; gap: 4rem; width: max-content; animation: marquee 40s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track img { height: 34px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .3s ease, opacity .3s ease; }
.logo-track img:hover { filter: none; opacity: 1; }
html[data-theme="dark"] .logo-track img { filter: grayscale(1) brightness(1.8); opacity: .5; }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }

.icp-row { margin-top: 64px; }
.icp-card { height: 100%; padding: 1.9rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease, border-color .3s ease; }
.icp-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(16, 40, 28, .3); border-color: var(--brand-100); }
.icp-no { display: block; font-family: var(--font-display); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--brand); margin-bottom: 1rem; }
html[data-theme="dark"] .icp-no { color: #5fdc8c; }
.icp-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.icp-card p { color: var(--muted); margin-bottom: 1.1rem; }

.eco { background: var(--soft); }
.eco-card { position: relative; height: 100%; padding: 1.6rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease; }
.eco-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(16, 40, 28, .3); }
.eco-mark { display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 .7rem; border-radius: 14px; background: var(--ink); color: var(--lime); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 1.1rem; }
html[data-theme="dark"] .eco-mark { background: #0c120f; border: 1px solid var(--line); }
.eco-card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.eco-card p { color: var(--muted); font-size: .95rem; margin: 0; }

.result-card { height: 100%; padding: 2rem; border-radius: 24px; background: radial-gradient(120% 120% at 0% 0%, #f7f4ec 0%, #ece6d8 60%, #e3dccb 100%); display: flex; flex-direction: column; gap: .9rem; }
html[data-theme="dark"] .result-card { background: radial-gradient(120% 120% at 0% 0%, #23251f, #171a15); border: 1px solid var(--line); }
.result-card h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -0.02em; margin: 0; }
.result-card p { color: var(--muted); margin: 0; }
.result-nums { display: flex; gap: 2.5rem; margin-top: auto; padding-top: 1.2rem; border-top: 1px solid rgba(16, 21, 18, .1); }
html[data-theme="dark"] .result-nums { border-top-color: var(--line); }
.result-nums b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2.6rem; line-height: 1; color: var(--brand); letter-spacing: -0.02em; }
html[data-theme="dark"] .result-nums b { color: #5fdc8c; }
.result-nums span { font-size: .9rem; color: var(--muted); }

.feat { display: flex; gap: 1rem; height: 100%; padding: 1.4rem; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .3s ease; }
.feat:hover { transform: translateY(-4px); border-color: var(--brand-100); }
.feat .icon-tile { flex-shrink: 0; }
.feat h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.feat p { color: var(--muted); font-size: .93rem; margin: 0; }
