/* =========================================================================
   Praveen Patel — design system
   Single stylesheet, no build step. Organised as:
   1 tokens  2 reset  3 typography  4 layout  5 components  6 sections
   7 page-specific  8 utilities  9 responsive  10 motion
   ========================================================================= */

/* ---------- 1. TOKENS ----------------------------------------------------
   Palette: peacock teal on warm sand neutrals. Chosen over the usual
   indigo-on-cool-grey so the site does not look like every other dev portfolio,
   and because warm neutrals are easier on the eye over long reading.
   Every colour pair is verified by tools/contrast.php — run it after changes.
   ------------------------------------------------------------------------- */
:root {
    /* brand ramp — peacock teal */
    --brand-50:  #eaf7f3;
    --brand-100: #cdece4;
    --brand-200: #9edccd;
    --brand-300: #6fd6bd;
    --brand-400: #3fc9ac;
    --brand-500: #17a892;
    --brand-600: #0b7566;
    --brand-700: #0a6154;
    --brand-800: #0b4f45;
    --brand-900: #0b413a;

    /* Per-page accent families. The class names are kept from the previous
       palette so the 42 service/product entries need no edits; the hues behind
       them are retuned to sit together as one warm, muted family. */
    --a-indigo:  #3f4bb8;  --a-indigo-soft:  #eceefb;   /* indigo     */
    --a-violet:  #7a3d8f;  --a-violet-soft:  #f7edfa;   /* plum       */
    --a-rose:    #b5442c;  --a-rose-soft:    #fdeee9;   /* terracotta */
    --a-sky:     #136c96;  --a-sky-soft:     #e8f4fa;   /* ocean      */
    --a-cyan:    #0b7566;  --a-cyan-soft:    #eaf7f3;   /* teal       */
    --a-emerald: #4d7a1f;  --a-emerald-soft: #f0f7e6;   /* moss       */
    --a-amber:   #a35a06;  --a-amber-soft:   #fdf3e3;   /* saffron    */

    /* semantic surface + text (light theme is the base definition) */
    --bg:          #fdfcfa;
    --bg-alt:      #f6f3ee;
    --surface:     #ffffff;
    --surface-2:   #f2eee7;
    --surface-3:   #e6e0d5;
    --border:      #e6e0d5;
    --border-soft: #f0ebe2;
    --text:        #1c1b18;
    --text-2:      #3d3b35;
    --muted:       #6a665c;
    --muted-2:     #928d81;
    --accent:      var(--brand-600);
    --accent-soft: var(--brand-50);
    --accent-text: #ffffff;
    --on-dark:     #f4f2ea;

    /* Headline gradient stops — theme-aware, so gradient text stays readable
       on both backgrounds instead of going dark-on-dark. */
    --grad-1: #0b7566;
    --grad-2: #12796f;
    --grad-3: #136c96;

    --ring: 0 0 0 3px rgb(11 117 102 / .28);
    --shadow-xs: 0 1px 2px rgb(28 27 24 / .05);
    --shadow-sm: 0 1px 3px rgb(28 27 24 / .08), 0 1px 2px rgb(28 27 24 / .04);
    --shadow-md: 0 4px 12px rgb(28 27 24 / .08), 0 2px 4px rgb(28 27 24 / .04);
    --shadow-lg: 0 12px 32px rgb(28 27 24 / .11), 0 4px 8px rgb(28 27 24 / .05);
    --shadow-xl: 0 24px 64px rgb(28 27 24 / .13), 0 8px 16px rgb(28 27 24 / .06);

    --r-xs: 6px;  --r-sm: 10px; --r-md: 14px;
    --r-lg: 20px; --r-xl: 28px; --r-full: 999px;

    --font-sans:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Sora', var(--font-sans);
    --font-mono:    ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    --wrap: 1200px;
    --wrap-narrow: 860px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section-y: clamp(3.5rem, 8vw, 7rem);

    --header-h: 72px;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

/* dark theme — system preference, unless the user explicitly chose light */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:          #12130f;
        --bg-alt:      #191a15;
        --surface:     #1d1f19;
        --surface-2:   #26281f;
        --surface-3:   #2f322a;
        --border:      #2f322a;
        --border-soft: #26281f;
        --text:        #f4f2ea;
        --text-2:      #d5d2c6;
        --muted:       #a09b8c;
        --muted-2:     #7b7668;
        --accent:      var(--brand-400);
        --accent-soft: #0d2b26;
        --accent-text: #12130f;

        --a-indigo:  #8f9aef;  --a-indigo-soft:  #1a1d3d;
        --a-violet:  #c99ad9;  --a-violet-soft:  #25142b;
        --a-rose:    #f0836a;  --a-rose-soft:    #2e150f;
        --a-sky:     #5cb8e0;  --a-sky-soft:     #0d2431;
        --a-cyan:    #3fc9ac;  --a-cyan-soft:    #0d2b26;
        --a-emerald: #a3ce6a;  --a-emerald-soft: #1d2610;
        --a-amber:   #f0ac4a;  --a-amber-soft:   #2e1e08;

        --grad-1: #3fc9ac;
        --grad-2: #5cd3bb;
        --grad-3: #5cb8e0;

        --ring: 0 0 0 3px rgb(63 201 172 / .32);
        --shadow-sm: 0 1px 3px rgb(0 0 0 / .45);
        --shadow-md: 0 4px 12px rgb(0 0 0 / .5);
        --shadow-lg: 0 12px 32px rgb(0 0 0 / .55);
        --shadow-xl: 0 24px 64px rgb(0 0 0 / .6);
    }
}

/* dark theme — explicit user choice, wins in both directions */
:root[data-theme="dark"] {
    --bg:          #12130f;
    --bg-alt:      #191a15;
    --surface:     #1d1f19;
    --surface-2:   #26281f;
    --surface-3:   #2f322a;
    --border:      #2f322a;
    --border-soft: #26281f;
    --text:        #f4f2ea;
    --text-2:      #d5d2c6;
    --muted:       #a09b8c;
    --muted-2:     #7b7668;
    --accent:      var(--brand-400);
    --accent-soft: #0d2b26;
    --accent-text: #12130f;

    --a-indigo:  #8f9aef;  --a-indigo-soft:  #1a1d3d;
    --a-violet:  #c99ad9;  --a-violet-soft:  #25142b;
    --a-rose:    #f0836a;  --a-rose-soft:    #2e150f;
    --a-sky:     #5cb8e0;  --a-sky-soft:     #0d2431;
    --a-cyan:    #3fc9ac;  --a-cyan-soft:    #0d2b26;
    --a-emerald: #a3ce6a;  --a-emerald-soft: #1d2610;
    --a-amber:   #f0ac4a;  --a-amber-soft:   #2e1e08;

    --grad-1: #3fc9ac;
    --grad-2: #5cd3bb;
    --grad-3: #5cb8e0;

    --ring: 0 0 0 3px rgb(63 201 172 / .32);
    --shadow-sm: 0 1px 3px rgb(0 0 0 / .45);
    --shadow-md: 0 4px 12px rgb(0 0 0 / .5);
    --shadow-lg: 0 12px 32px rgb(0 0 0 / .55);
    --shadow-xl: 0 24px 64px rgb(0 0 0 / .6);
}

/* per-page accent — set with class="accent-{name}" on <body> */
.accent-indigo  { --accent: var(--a-indigo);  --accent-soft: var(--a-indigo-soft); }
.accent-violet  { --accent: var(--a-violet);  --accent-soft: var(--a-violet-soft); }
.accent-rose    { --accent: var(--a-rose);    --accent-soft: var(--a-rose-soft); }
.accent-sky     { --accent: var(--a-sky);     --accent-soft: var(--a-sky-soft); }
.accent-cyan    { --accent: var(--a-cyan);    --accent-soft: var(--a-cyan-soft); }
.accent-emerald { --accent: var(--a-emerald); --accent-soft: var(--a-emerald-soft); }
.accent-amber   { --accent: var(--a-amber);   --accent-soft: var(--a-amber-soft); }

/* ---------- 2. RESET ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1.5rem);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

::selection { background: var(--accent); color: var(--accent-text); }

/* Thin themed scrollbars. The default OS scrollbar is heavy and light-coloured,
   which looks broken sitting inside a dark panel. */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    background-clip: content-box;
    border: 2px solid transparent;
    border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); background-clip: content-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ---------- 3. TYPOGRAPHY ------------------------------------------------ */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.022em;
    color: var(--text);
    text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.65rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem);  letter-spacing: -.028em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.075rem; }

p { text-wrap: pretty; }
.lead {
    font-size: clamp(1.05rem, 1.9vw, 1.235rem);
    line-height: 1.6;
    color: var(--text-2);
}
.prose p { margin-bottom: 1.15em; color: var(--text-2); font-size: 1.0625rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 650;
    letter-spacing: .09em; text-transform: uppercase;
    color: var(--accent);
}
.eyebrow::before {
    content: ''; width: 22px; height: 2px;
    background: currentColor; border-radius: 2px; opacity: .55;
}

.gradient-text {
    background: linear-gradient(100deg, var(--grad-1), var(--grad-2) 45%, var(--grad-3));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 4. LAYOUT ---------------------------------------------------- */
.wrap  { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section    { padding-block: var(--section-y); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-alt{ background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-block: .65rem .8rem; }
.section-head p  { color: var(--muted); font-size: 1.0625rem; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.split-aside { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }

/* ---------- 5. COMPONENTS ------------------------------------------------ */

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.4rem;
    border-radius: var(--r-full);
    font-weight: 600; font-size: .9375rem;
    line-height: 1; white-space: nowrap;
    border: 1px solid transparent;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease),
                background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-primary {
    background: var(--accent); color: var(--accent-text);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); filter: brightness(1.07); }

.btn-dark {
    background: var(--text); color: var(--bg);
    box-shadow: var(--shadow-md);
}
.btn-dark:hover { box-shadow: var(--shadow-lg); }

.btn-ghost {
    background: var(--surface); color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-outline { border-color: currentColor; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

.btn-wa { background: #22c55e; color: #052e16; }
.btn-wa:hover { filter: brightness(1.08); }

.btn-lg { padding: 1rem 1.85rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; }

/* link with arrow */
.link-arrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 600; font-size: .9rem; color: var(--accent);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* badges & chips */
.badge {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .32rem .7rem;
    border-radius: var(--r-full);
    font-size: .74rem; font-weight: 600;
    letter-spacing: .01em;
    background: var(--accent-soft); color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.badge-neutral { background: var(--surface-2); color: var(--muted); border-color: var(--border); }

.chip {
    display: inline-flex; align-items: center;
    padding: .38rem .78rem;
    border-radius: var(--r-full);
    background: var(--surface-2); color: var(--text-2);
    border: 1px solid var(--border);
    font-size: .82rem; font-weight: 500;
    transition: all .2s var(--ease);
}
a.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }

/* cards */
.card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: clamp(1.35rem, 2.4vw, 1.85rem);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
    overflow: hidden;
}
a.card:hover, .card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.card h2, .card h3 { margin-bottom: .5rem; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: .925rem; line-height: 1.6; }
.card-foot { margin-top: auto; padding-top: 1.1rem; }

/* card top accent line on hover */
.card-accent::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
}
a.card-accent:hover::before, .card-accent.card-hover:hover::before { transform: scaleX(1); }

/* icon tile */
.icon-tile {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border-radius: var(--r-md);
    background: var(--accent-soft); color: var(--accent);
    margin-bottom: 1.1rem;
    flex: none;
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile-sm { width: 38px; height: 38px; border-radius: var(--r-sm); margin-bottom: 0; }
.icon-tile-sm svg { width: 19px; height: 19px; }

/* stat */
.stat { text-align: center; }
.stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 700; line-height: 1;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { margin-top: .5rem; font-size: .84rem; color: var(--muted); }

/* list with ticks */
.ticks { display: grid; gap: .7rem; }
.ticks li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--text-2);
    font-size: .95rem;
}
.ticks li::before {
    content: ''; position: absolute; left: 0; top: .3em;
    width: 1.2rem; height: 1.2rem; border-radius: var(--r-full);
    background: var(--accent-soft);
}
.ticks li::after {
    content: ''; position: absolute; left: .34rem; top: .58em;
    width: .5rem; height: .28rem;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

/* numbered list */
.steps { counter-reset: s; display: grid; gap: 1.5rem; }
.steps > li { counter-increment: s; position: relative; padding-left: 3.4rem; }
.steps > li::before {
    content: counter(s, decimal-leading-zero);
    position: absolute; left: 0; top: 0;
    width: 2.4rem; height: 2.4rem;
    display: grid; place-items: center;
    border-radius: var(--r-md);
    background: var(--accent-soft); color: var(--accent);
    font-family: var(--font-display); font-weight: 700; font-size: .82rem;
}

/* accordion / FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-q {
    width: 100%; display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.25rem 0;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.03rem; font-weight: 650; color: var(--text);
    line-height: 1.4;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
    flex: none; width: 1.5rem; height: 1.5rem; margin-left: auto;
    display: grid; place-items: center;
    border-radius: var(--r-full);
    background: var(--surface-2);
    position: relative; transition: background .25s, transform .3s var(--ease);
}
.faq-icon::before, .faq-icon::after {
    content: ''; position: absolute;
    background: var(--text-2); border-radius: 2px;
    transition: transform .3s var(--ease), background .25s;
}
.faq-icon::before { width: .68rem; height: 2px; }
.faq-icon::after  { width: 2px; height: .68rem; }
.faq-item[open] .faq-icon { background: var(--accent); }
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: var(--accent-text); }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-a { padding-bottom: 1.35rem; color: var(--muted); font-size: .965rem; line-height: 1.7; max-width: 74ch; }
details.faq-item > summary { list-style: none; cursor: pointer; }
details.faq-item > summary::-webkit-details-marker { display: none; }

/* breadcrumb */
.crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
    font-size: .82rem; color: var(--muted);
}
.crumbs a:hover { color: var(--accent); }
.crumbs li { display: flex; align-items: center; gap: .45rem; }
.crumbs li + li::before { content: '/'; color: var(--muted-2); }
.crumbs [aria-current] { color: var(--text-2); font-weight: 500; }

/* form */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .875rem; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--a-rose); }
.input, .select, .textarea {
    width: 100%;
    padding: .8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: .95rem;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: var(--ring);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    background-size: 1.15rem;
    padding-right: 2.6rem;
}
.field-error { font-size: .8rem; color: var(--a-rose); }
.input.is-error, .textarea.is-error, .select.is-error { border-color: var(--a-rose); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    padding: 1rem 1.15rem;
    border-radius: var(--r-md);
    border: 1px solid;
    font-size: .93rem;
    margin-bottom: 1.5rem;
}
.alert-ok   { background: var(--a-emerald-soft); border-color: color-mix(in srgb, var(--a-emerald) 30%, transparent); color: var(--a-emerald); }
.alert-warn { background: var(--a-amber-soft);   border-color: color-mix(in srgb, var(--a-amber) 30%, transparent);   color: var(--a-amber); }
.alert-err  { background: var(--a-rose-soft);    border-color: color-mix(in srgb, var(--a-rose) 30%, transparent);    color: var(--a-rose); }

/* ---------- 6. HEADER / NAV --------------------------------------------- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav {
    display: flex; align-items: center; gap: 1.25rem;
    height: var(--header-h);
    position: relative; /* positioning context for the mega panels */
}
.brand { display: flex; align-items: center; gap: .65rem; margin-right: auto; flex: none; }
.brand-mark {
    width: 38px; height: 38px; border-radius: var(--r-sm);
    background: linear-gradient(140deg, var(--brand-400), var(--brand-700));
    display: grid; place-items: center;
    color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    box-shadow: var(--shadow-sm);
    flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.0125rem; letter-spacing: -.02em; }
.brand-sub  { font-size: .6875rem; color: var(--muted); letter-spacing: .01em; }

.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-link {
    display: flex; align-items: center; gap: .3rem;
    padding: .5rem .7rem;
    border-radius: var(--r-sm);
    font-size: .9rem; font-weight: 550;
    color: var(--text-2);
    transition: color .2s, background .2s;
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--text); background: var(--surface-2); }
.nav-link[aria-current] { color: var(--accent); }
.nav-caret { width: .7rem; height: .7rem; transition: transform .25s var(--ease); opacity: .6; }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }

/* static, so .mega resolves its position against .nav (see below) */
.nav-item { position: static; }

/* mega menu
   Panels are positioned against .nav rather than the individual nav item —
   anchoring a 1000px panel to the first item pushes it off the left edge. */
.mega {
    position: absolute; top: calc(100% + .5rem);
    left: 50%; translate: -50% 0;
    width: min(94vw, var(--mega-w, 620px));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xl);
    padding: 1.1rem;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    /* Sized off the real space below the header, so it only ever scrolls on a
       genuinely short window (or heavy browser zoom) rather than by default. */
    max-height: calc(100vh - var(--header-h) - 5rem);
    max-height: calc(100dvh - var(--header-h) - 5rem); /* dvh where supported */
    overflow-y: auto;
    overscroll-behavior: contain;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-wide  { --mega-w: 720px; }
.mega-xwide { --mega-w: 1060px; }

/* One <div class="mega-col"> per category keeps each list in its own column,
   instead of full-width headings forcing a new row and doubling panel height.
   auto-fit rather than a fixed count, so columns reflow between 960px and
   1200px viewports instead of squeezing four columns into too little space. */
.mega-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: .25rem 1.25rem;
    align-items: start;
}
.mega-col { min-width: 0; }
.mega-col-title {
    font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted-2);
    padding: .1rem .55rem .35rem;
}

/* Menu rows are deliberately tighter than page cards — eight of them have to fit
   in the viewport without the panel turning into a scrolling list. */
.mega .icon-tile-sm { width: 30px; height: 30px; border-radius: 8px; }
.mega .icon-tile-sm svg { width: 16px; height: 16px; }
/* Invisible bridge over the gap between the nav bar and the panel, so moving
   the pointer down to the menu does not count as leaving it. */
.mega::before {
    content: ''; position: absolute;
    top: -.6rem; left: 0; right: 0; height: .6rem;
}
.mega-link {
    display: flex; align-items: center; gap: .6rem;
    padding: .38rem .55rem;
    border-radius: var(--r-sm);
    font-size: .845rem; font-weight: 550; color: var(--text-2);
    line-height: 1.3;
    transition: background .18s, color .18s;
}
.mega-link:hover { background: var(--accent-soft); color: var(--accent); }
.mega-link .icon-tile-sm { transition: transform .2s var(--ease); }
.mega-link:hover .icon-tile-sm { transform: scale(1.08); }
.mega-foot {
    margin-top: .7rem; padding-top: .7rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    flex-wrap: wrap;
}
.mega-foot p { font-size: .8rem; color: var(--muted); }

.nav-actions { display: flex; align-items: center; gap: .5rem; flex: none; }

/* The in-menu quote button exists only for the mobile drawer — the header already
   has one, and without this rule both render side by side on desktop. */
[data-mobile-only] { display: none; }

.icon-btn {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    color: var(--text-2);
    border: 1px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
    :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}

.burger { display: none; }
.burger span {
    display: block; width: 19px; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}
.burger span + span { margin-top: 4.5px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* announcement bar */
.topbar {
    background: linear-gradient(100deg, var(--brand-800), var(--brand-600));
    color: #fff;
    font-size: .82rem;
}
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 1.25rem; min-height: 38px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 550; opacity: .95; }
.topbar a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.topbar svg { width: 15px; height: 15px; }
.topbar-sep { opacity: .4; }

/* ---------- 7. HERO ------------------------------------------------------ */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    pointer-events: none;
}
.hero-bg::before, .hero-bg::after {
    content: ''; position: absolute; border-radius: 50%;
    filter: blur(90px); opacity: .5;
}
.hero-bg::before {
    width: 44vw; height: 44vw; max-width: 620px; max-height: 620px;
    top: -14%; right: -8%;
    background: radial-gradient(circle, var(--brand-400), transparent 68%);
}
.hero-bg::after {
    width: 38vw; height: 38vw; max-width: 520px; max-height: 520px;
    bottom: -22%; left: -10%;
    background: radial-gradient(circle, var(--a-sky), transparent 68%);
    opacity: .3;
}
:root[data-theme="dark"] .hero-bg::before { opacity: .28; }
:root[data-theme="dark"] .hero-bg::after  { opacity: .2; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero-bg::before { opacity: .28; }
    :root:not([data-theme="light"]) .hero-bg::after  { opacity: .2; }
}

.hero-grid {
    position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
    opacity: .55;
}

/* Hero columns start on the same top line. Centring them left the visual card
   floating below the heading, since it is shorter than the text column. */
.hero-split { align-items: start; }

.hero h1 { margin-block: 1.1rem 1.25rem; }
.hero .lead { max-width: 56ch; }
.hero-cta { margin-top: 2rem; }
.hero-meta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem; align-items: center; }
.hero-visual { position: relative; }

/* trust strip */
.trust {
    display: flex; align-items: center; gap: .75rem;
    font-size: .84rem; color: var(--muted);
}
.avatars { display: flex; }
.avatars span {
    width: 30px; height: 30px; border-radius: 50%;
    border: 2px solid var(--bg);
    display: grid; place-items: center;
    font-size: .68rem; font-weight: 700; color: #fff;
    font-family: var(--font-display);
}
.avatars span + span { margin-left: -10px; }
.stars { display: inline-flex; gap: 1px; color: #d98324; }
.stars svg { width: 14px; height: 14px; }

/* logo marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    font-family: var(--font-display); font-weight: 650; font-size: 1.05rem;
    color: var(--muted-2); white-space: nowrap; letter-spacing: -.01em;
    transition: color .25s;
}
.marquee-item:hover { color: var(--text-2); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; } }

/* ---------- 8. SECTIONS -------------------------------------------------- */

/* CTA band */
.cta-band {
    position: relative;
    border-radius: var(--r-xl);
    padding: clamp(2.25rem, 5vw, 3.75rem);
    background: linear-gradient(125deg, var(--brand-700), #0d5c6e 55%, var(--brand-900));
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgb(255 255 255 / .14), transparent 42%),
        radial-gradient(circle at 88% 78%, rgb(255 255 255 / .1), transparent 46%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / .82); }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); }
.cta-band .btn-outline { color: #fff; border-color: rgb(255 255 255 / .45); }
.cta-band .btn-outline:hover { background: #fff; color: var(--brand-700); border-color: #fff; }

/* process timeline */
.timeline { position: relative; display: grid; gap: 0; }
.timeline-item {
    position: relative;
    padding: 0 0 2.25rem 3.25rem;
    border-left: 2px solid var(--border);
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot {
    position: absolute; left: -1.05rem; top: -.15rem;
    width: 2.1rem; height: 2.1rem;
    display: grid; place-items: center;
    border-radius: var(--r-full);
    background: var(--surface);
    border: 2px solid var(--border);
    font-family: var(--font-display); font-size: .72rem; font-weight: 700;
    color: var(--muted);
}
.timeline-item.is-active .timeline-dot,
.timeline-item:hover .timeline-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.timeline-item h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.timeline-item p { color: var(--muted); font-size: .93rem; }
.timeline-dur { display: inline-block; margin-top: .5rem; font-size: .76rem; color: var(--accent); font-weight: 600; }

/* pricing tiles */
.price-card { text-align: left; }
.price-value {
    font-family: var(--font-display);
    font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em;
    color: var(--text);
}
.price-value small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.price-from { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }

/* work / portfolio card */
.work-card { padding: 0; overflow: hidden; }
.work-thumb {
    position: relative; aspect-ratio: 16 / 10;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
    overflow: hidden;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
a.work-card:hover .work-thumb img { transform: scale(1.05); }
.work-initials {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em;
    color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.work-body { padding: 1.25rem 1.35rem 1.45rem; }
.work-body h3 { font-size: 1.05rem; margin-bottom: .3rem; }

/* location grid */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: .6rem; }
.loc-link {
    display: flex; align-items: center; gap: .55rem;
    padding: .7rem .9rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: .88rem; font-weight: 550; color: var(--text-2);
    transition: all .2s var(--ease);
}
.loc-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: translateX(3px); }
.loc-link svg { width: 15px; height: 15px; flex: none; opacity: .6; }

/* sticky sidebar */
.sticky-side { position: sticky; top: calc(var(--header-h) + 1.5rem); }

/* quote box */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--shadow-md); }
.quote-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }

/* spec table */
.spec { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.spec div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.05rem; font-size: .9rem; }
.spec div + div { border-top: 1px solid var(--border); }
.spec dt, .spec span:first-child { color: var(--muted); }
.spec span:last-child { font-weight: 600; color: var(--text); text-align: right; }

/* module list (products) */
.module {
    display: flex; gap: 1rem;
    padding: 1.15rem;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.module:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.module-num {
    flex: none; width: 2rem; height: 2rem;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    background: var(--accent-soft); color: var(--accent);
    font-family: var(--font-display); font-size: .78rem; font-weight: 700;
}
.module h3 { font-size: .975rem; margin-bottom: .25rem; }
.module p { font-size: .875rem; color: var(--muted); line-height: 1.6; }

/* callout */
.callout {
    display: flex; gap: .9rem; align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-radius: var(--r-md);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    font-size: .93rem; color: var(--text-2);
}
.callout svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: .12rem; }

/* ---------- 9. FOOTER ---------------------------------------------------- */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding-block: clamp(3rem, 6vw, 4.5rem) 0;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
}
.footer h2 {
    font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted-2); margin-bottom: 1.1rem;
}
.footer-links { display: grid; gap: .6rem; }
.footer-links a { font-size: .89rem; color: var(--muted); transition: color .2s, transform .2s var(--ease); display: inline-block; }
.footer-links a:hover { color: var(--accent); transform: translateX(3px); }
.footer-about p { font-size: .91rem; color: var(--muted); margin-block: 1rem 1.35rem; max-width: 40ch; }
.footer-contact { display: grid; gap: .7rem; margin-bottom: 1.35rem; }
.footer-contact a, .footer-contact span {
    display: flex; align-items: flex-start; gap: .6rem;
    font-size: .89rem; color: var(--muted);
}
.footer-contact a:hover { color: var(--accent); }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: .22rem; opacity: .7; }
.socials { display: flex; gap: .5rem; }
.social-btn {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    background: var(--surface); border: 1px solid var(--border);
    color: var(--muted);
    transition: all .22s var(--ease);
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-text); transform: translateY(-2px); }
.social-btn svg { width: 17px; height: 17px; }

.footer-cities { padding-block: 2rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-cities h2 { margin-bottom: .85rem; }
.footer-cities .inline-links { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.footer-cities a { font-size: .8rem; color: var(--muted-2); transition: color .2s; }
.footer-cities a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-block: 1.4rem;
    display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
    align-items: center; justify-content: space-between;
    font-size: .82rem; color: var(--muted-2);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a:hover { color: var(--accent); }

/* floating actions */
.float-actions {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
    display: flex; flex-direction: column; gap: .6rem;
}
.float-btn {
    display: grid; place-items: center;
    width: 52px; height: 52px;
    border-radius: var(--r-full);
    box-shadow: var(--shadow-lg);
    color: #fff;
    transition: transform .25s var(--ease), box-shadow .25s;
}
.float-btn:hover { transform: scale(1.08) translateY(-2px); box-shadow: var(--shadow-xl); }
.float-btn svg { width: 25px; height: 25px; }
.float-wa   { background: #25d366; }
.float-call { background: var(--brand-600); }

/* ---------- 10. UTILITIES ------------------------------------------------ */
.center     { text-align: center; }
.mx-auto    { margin-inline: auto; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: .5rem } .mt-2 { margin-top: 1rem }
.mt-3 { margin-top: 1.5rem } .mt-4 { margin-top: 2rem } .mt-5 { margin-top: 3rem }
.mb-1 { margin-bottom: .5rem } .mb-2 { margin-bottom: 1rem }
.mb-3 { margin-bottom: 1.5rem } .mb-4 { margin-bottom: 2rem }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xsmall{ font-size: .8rem; }
.fw-6  { font-weight: 600; }
.flex  { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: .5rem } .gap-2 { gap: 1rem }
.wrap-flex { flex-wrap: wrap; }
.hide  { display: none !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; top: -100%; left: 1rem; z-index: 200;
    padding: .7rem 1.15rem; border-radius: var(--r-sm);
    background: var(--accent); color: var(--accent-text);
    font-size: .875rem; font-weight: 600;
}
.skip-link:focus { top: .75rem; }
.divider { height: 1px; background: var(--border); border: 0; margin-block: 2rem; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.page { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- 11. RESPONSIVE ---------------------------------------------- */
@media (max-width: 1080px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    .burger { display: grid; place-items: center; }
    .nav-list {
        position: fixed; inset: var(--header-h) 0 0 0;
        display: block;
        background: var(--bg);
        padding: 1.25rem var(--gutter) 5rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .32s var(--ease);
        border-top: 1px solid var(--border);
    }
    body.nav-open { overflow: hidden; }
    body.nav-open .nav-list { transform: translateX(0); }
    .nav-item { border-bottom: 1px solid var(--border-soft); }
    .nav-link { padding: .95rem .25rem; font-size: 1rem; justify-content: space-between; }
    .mega {
        position: static; width: auto; translate: none;
        opacity: 1; visibility: visible; transform: none;
        border: 0; box-shadow: none; padding: 0 0 .85rem;
        background: transparent; max-height: none;
        overflow: visible;
        display: none;
    }
    .nav-item.is-open .mega { display: block; }
    .mega-cols { grid-template-columns: 1fr; gap: 0; }
    .mega-col + .mega-col { margin-top: .75rem; }
    .mega-link { padding: .6rem .25rem; }
    .mega-col-title { padding-inline: .25rem; }
    .nav-actions .btn { display: none; }
    [data-mobile-only] { display: block; }

    .split, .split-aside { grid-template-columns: 1fr; }
    .sticky-side { position: static; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    :root { --header-h: 64px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero-meta { gap: 1.15rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .topbar .wrap { justify-content: space-between; }
    .topbar-sep, .topbar .hide-sm { display: none; }
    .btn { padding: .78rem 1.2rem; }
    .float-actions { right: .75rem; bottom: .75rem; }
    .float-btn { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .brand-sub { display: none; }
    .stat-value { font-size: 1.75rem; }
}

/* ---------- 12. MOTION --------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

@media print {
    .header, .footer, .float-actions, .topbar, .cta-band { display: none !important; }
    body { color: #000; background: #fff; }
}
