/* ═══════════════════════════════════════════════════════════════
   Kalpabriksha Technologies — AI, Automation & Software Agency
   Dark emerald design system · v1
   Type: Samarkan (logo only) · Inter Tight (display) · Inter (body)
         · Instrument Serif (accent)
   Palette derived from the bolt-K logo gradient (#8AF3B8 → #0F9E7A)
═══════════════════════════════════════════════════════════════ */

/* ---------- Brand face ----------
   Samarkan by Titivillus Foundry — used exclusively for the logo
   lettering (navbar, footer brand, loader, giant footer wordmark).
   Shipped unmodified with its README, as the licence requires. */
@font-face {
    font-family: 'Samarkan';
    src: url('../fonts/SAMAN___.TTF') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    /* surfaces */
    --bg:          #060B09;
    --bg-2:        #08110D;
    --panel:       #0C1411;
    --panel-2:     #101B16;
    --panel-3:     #16241E;

    /* ink */
    --ink:         #EAF5EF;
    --ink-2:       #B7CCC2;
    --muted:       #7C9188;

    /* lines */
    --line:        rgba(255, 255, 255, .075);
    --line-2:      rgba(255, 255, 255, .13);
    --line-brand:  rgba(52, 211, 153, .28);

    /* brand */
    --brand:       #34D399;
    --brand-2:     #8AF3B8;
    --brand-3:     #0F9E7A;
    --brand-ink:   #04120C;
    --brand-soft:  rgba(52, 211, 153, .11);
    --brand-glow:  rgba(52, 211, 153, .30);
    --grad:        linear-gradient(135deg, #8AF3B8 0%, #34D399 48%, #0F9E7A 100%);
    --grad-soft:   linear-gradient(135deg, rgba(138, 243, 184, .16), rgba(15, 158, 122, .06));

    /* type */
    --font-display: 'Inter Tight', 'Inter', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font-serif:   'Instrument Serif', Georgia, serif;
    --font-logo:    'Samarkan', 'Inter Tight', 'Inter', sans-serif;

    /* shape */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-pill: 999px;

    /* misc */
    --container: 1200px;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .8);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .45), 0 40px 80px -32px rgba(0, 0, 0, .9);
    --shadow-brand: 0 18px 50px -22px rgba(52, 211, 153, .55);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

::selection { background: var(--brand); color: var(--brand-ink); }

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 18px;
    border-radius: var(--r-pill);
    background: var(--brand);
    color: var(--brand-ink);
    font-weight: 600;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Lucide sizing default */
[data-lucide], .lucide { width: 18px; height: 18px; stroke-width: 1.75; flex: none; }

/* ---------- Layout utilities ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 32px);
}

/* Visually hidden but readable by screen readers */
.vh {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.section { padding-block: clamp(76px, 9vw, 132px); position: relative; }
.section.tight { padding-block: clamp(48px, 6vw, 82px); }

.line-top { border-top: 1px solid var(--line); }
.line-bottom { border-bottom: 1px solid var(--line); }
.surface { background: var(--bg-2); }

/* Dot-grid canvas for whole sections */
.section-canvas { position: relative; overflow: hidden; }
.section-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1.1px, transparent 1.6px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 95% 80% at 50% 0%, #000 5%, transparent 80%);
    mask-image: radial-gradient(ellipse 95% 80% at 50% 0%, #000 5%, transparent 80%);
    pointer-events: none;
}
.section-canvas > .container { position: relative; z-index: 1; }

/* Ambient emerald glow behind sections */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .5;
    pointer-events: none;
    z-index: 0;
}
.glow-blob.a { width: 520px; height: 520px; background: rgba(52, 211, 153, .18); top: -180px; left: -140px; }
.glow-blob.b { width: 460px; height: 460px; background: rgba(34, 211, 238, .11); bottom: -200px; right: -120px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.025em;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.1vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.25; }
h4 { font-size: 1.02rem; line-height: 1.35; }

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--brand);
    opacity: .7;
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-heading { margin-bottom: 18px; }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 62ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .section-sub { margin-inline: auto; }

.head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: clamp(36px, 4.5vw, 56px);
}
.head-row .section-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    min-height: 46px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-size: .94rem;
    font-weight: 600;
    letter-spacing: -.01em;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    transition: transform .35s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .35s var(--ease);
    will-change: transform;
}
.btn i, .btn svg { width: 17px; height: 17px; }

.btn-primary {
    background: var(--grad);
    color: var(--brand-ink);
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover { box-shadow: 0 22px 60px -20px rgba(52, 211, 153, .75); }

.btn-ghost {
    background: rgba(255, 255, 255, .03);
    border-color: var(--line-2);
    color: var(--ink);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--line-brand); background: var(--brand-soft); color: var(--brand-2); }

.btn-lg { padding: 16px 30px; min-height: 54px; font-size: 1rem; }
.btn-sm { padding: 9px 17px; min-height: 38px; font-size: .85rem; }

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brand);
    font-size: .94rem;
}
.btn-link i { transition: transform .3s var(--ease); }
.btn-link:hover i { transform: translate(3px, -3px); }

/* ---------- Chips / tags ---------- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
    font-size: .75rem;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
}
.tag.brand { border-color: var(--line-brand); background: var(--brand-soft); color: var(--brand-2); }

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
    flex: none;
}
.status-dot.dev { background: #FBBF24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .18); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: 0 50%;
    z-index: 120;
}

/* ---------- Intro loader ---------- */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg);
}
.site-loader::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(52, 211, 153, .16), transparent 70%);
}
html.is-loading .site-loader { display: flex; }
html.is-loading body { overflow: hidden; }

.loader-inner { position: relative; display: grid; justify-items: center; gap: 14px; }
.loader-mark {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 0 26px rgba(52, 211, 153, .45));
    animation: markPulse 1.6s var(--ease) infinite;
}
.loader-name {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    letter-spacing: .05em;
    color: var(--ink-2);
}
.loader-tag {
    margin-top: -6px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--brand-2);
    opacity: .85;
}
.loader-bar { width: 168px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.loader-bar-fill { display: block; height: 100%; width: 0; background: var(--grad); animation: loaderFill 1.1s var(--ease) forwards; }

@keyframes loaderFill { to { width: 100%; } }
@keyframes markPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.94); opacity: .78; }
}

.site-loader.is-done { animation: loaderOut .5s var(--ease) forwards; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 110;
    transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(6, 11, 9, .78);
    backdrop-filter: blur(18px) saturate(150%);
    border-bottom-color: var(--line);
}

.nav-shell {
    max-width: var(--container);
    margin-inline: auto;
    padding: 14px clamp(20px, 4vw, 32px);
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-logo { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.nav-mark {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(52, 211, 153, .35));
    transition: transform .4s var(--ease);
}
.nav-logo:hover .nav-mark { transform: rotate(-6deg) scale(1.06); }
.logo-text {
    font-family: var(--font-logo);
    font-weight: 400;
    font-size: 1.42rem;
    letter-spacing: .015em;
    line-height: 1;
    color: var(--ink);
}
.logo-dot {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .78em;
    color: var(--brand);
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
    display: block;
    padding: 8px 13px;
    border-radius: var(--r-pill);
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: color .25s, background-color .25s;
}
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav-link.active { color: var(--brand-2); background: var(--brand-soft); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 19px;
    min-height: 42px;
    border-radius: var(--r-pill);
    background: var(--grad);
    color: var(--brand-ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9rem;
    box-shadow: 0 12px 34px -16px rgba(52, 211, 153, .7);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    will-change: transform;
}
.nav-cta i { width: 15px; height: 15px; }
.nav-cta:hover { box-shadow: 0 18px 44px -16px rgba(52, 211, 153, .9); }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-2);
    color: var(--ink);
}
.nav-toggle i { width: 20px; height: 20px; }

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(6, 11, 9, .98);
    backdrop-filter: blur(20px);
    padding: 6px clamp(20px, 4vw, 32px) 28px;
}
.mobile-menu.open { display: block; animation: menuIn .3s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* Nav link list — plain links only, no bleed into the CTA */
.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}
.mobile-nav-links li {
    border-bottom: 1px solid var(--line);
}
.mobile-nav-links li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink-2);
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    letter-spacing: 0;
    text-transform: none;
    transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.mobile-nav-links li a:hover,
.mobile-nav-links li a:active {
    color: var(--brand-2);
    padding-left: 6px;
    background: none;
    box-shadow: none;
}

/* ══ Book a Call CTA at the bottom of the mobile drawer ══
   Uses a dedicated, isolated class to prevent ANY cascade
   conflict from the global `a`, `svg { display:block }` or
   `.mobile-nav-links li a` rules from leaking in.            */
.mobile-cta-wrap {
    margin-top: 20px;
}

/* The green pill button — maximum specificity via ID + class */
#mobileMenu .mobile-cta-btn {
    /* ── layout ── */
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    /* ── size ── */
    width: 100% !important;
    padding: 15px 22px !important;
    min-height: 52px !important;
    border-radius: 9999px !important;
    /* ── type ── */
    font-family: 'Inter Tight', 'Inter', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: -.01em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    /* ── GREEN gradient (same token as desktop nav-cta) ── */
    color: #04120C !important;
    background: linear-gradient(135deg, #8AF3B8 0%, #34D399 48%, #0F9E7A 100%) !important;
    box-shadow: 0 12px 40px -14px rgba(52, 211, 153, .85) !important;
    /* ── reset every possible inherited anchor style ── */
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    box-sizing: border-box !important;
    transition: box-shadow .35s cubic-bezier(.16,1,.3,1), transform .35s cubic-bezier(.16,1,.3,1) !important;
}
#mobileMenu .mobile-cta-btn:hover,
#mobileMenu .mobile-cta-btn:active {
    color: #04120C !important;
    box-shadow: 0 18px 52px -10px rgba(52, 211, 153, 1) !important;
    transform: translateY(-2px) !important;
}
/* The inline arrow SVG — force inline so flex row works */
#mobileMenu .mobile-cta-btn .cta-arrow {
    display: inline-flex !important;
    align-items: center !important;
    flex: none !important;
    width: 18px !important;
    height: 18px !important;
}
/* Override global svg{display:block} inside the arrow span */
#mobileMenu .mobile-cta-btn .cta-arrow svg {
    display: block !important;
    width: 17px !important;
    height: 17px !important;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding-top: clamp(128px, 15vw, 178px);
    padding-bottom: clamp(52px, 7vw, 86px);
    overflow: hidden;
}

/* Quiet ambient background: one spotlight over a fine grid that fades out */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .034) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .034) 1px, transparent 1px);
    background-size: 76px 76px;
    -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 18%, #000, transparent 72%);
    mask-image: radial-gradient(ellipse 62% 58% at 50% 18%, #000, transparent 72%);
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 54% 42% at 50% -4%, rgba(52, 211, 153, .22), transparent 68%),
        radial-gradient(ellipse 86% 46% at 50% 2%, rgba(16, 185, 129, .07), transparent 74%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .55;
}
.hero .container { position: relative; z-index: 2; }

.hero-inner {
    max-width: 960px;
    margin-inline: auto;
    text-align: center;
}

/* The hero is revealed by motion.js (or by its safety timer) so the
   entrance never shows a flash of content before it animates in. */
html.js .hero-badge,
html.js .hero-title,
html.js .hero-sub,
html.js .hero-actions,
html.js .hero-meta { opacity: 0; }
html.js.hero-revealed .hero-badge,
html.js.hero-revealed .hero-title,
html.js.hero-revealed .hero-sub,
html.js.hero-revealed .hero-actions,
html.js.hero-revealed .hero-meta { opacity: 1; transition: opacity .6s var(--ease); }

.hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px 7px 12px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-brand);
    background: var(--brand-soft);
    font-size: .8rem;
    font-weight: 500;
    color: var(--brand-2);
    margin-bottom: clamp(24px, 3vw, 32px);
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.1rem);
    line-height: 1.06;
    letter-spacing: -.038em;
    max-width: 24ch;
    margin: 0 auto clamp(22px, 2.6vw, 30px);
    text-wrap: balance;
}
.hero-title .serif { display: inline-block; }
.hero-title .nowrap { white-space: nowrap; }

/* The typed word owns its own line so the headline never reflows while
   characters are added or removed. */
.type-line {
    display: block;
    white-space: nowrap;
    min-height: 1.1em;
}
.type-cursor {
    display: inline-block;
    width: 3px;
    height: .74em;
    margin-left: 6px;
    border-radius: 2px;
    background: var(--brand);
    vertical-align: -.04em;
    animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
    font-size: clamp(1.03rem, 1.4vw, 1.18rem);
    line-height: 1.7;
    color: var(--muted);
    max-width: 63ch;
    margin: 0 auto clamp(30px, 3.4vw, 40px);
    text-wrap: pretty;
}
.hero-sub strong { color: var(--ink-2); font-weight: 500; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
    margin-bottom: clamp(28px, 3.4vw, 38px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    font-size: .85rem;
    color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 15px; height: 15px; color: var(--brand); }


/* ---------- Trust bar / marquee ---------- */
.trust-bar { margin-top: clamp(58px, 7.5vw, 92px); }
.trust-label {
    text-align: center;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 22px;
}
.marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    gap: 44px;
    width: max-content;
    animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: .72;
    transition: opacity .3s, color .3s;
}
.marquee-item:hover { opacity: 1; color: var(--ink); }
.marquee-item svg { width: 22px; height: 22px; }

/* ---------- Stats band ---------- */
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008));
    overflow: hidden;
}
.stat { padding: clamp(24px, 3.4vw, 38px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 9px;
}
.stat-value .suffix { color: var(--brand); }
.stat-label { font-size: .86rem; color: var(--muted); }

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.about-lead {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.2vw, 1.72rem);
    line-height: 1.38;
    letter-spacing: -.022em;
    color: var(--ink);
    margin-bottom: 22px;
}
.about-lead .serif { color: var(--brand-2); }
.about-copy p { color: var(--muted); margin-bottom: 16px; }

.pillars { display: grid; gap: 14px; margin-top: 30px; }
.pillar {
    display: flex;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .018);
    transition: border-color .3s, background-color .3s, transform .4s var(--ease);
}
.pillar:hover { border-color: var(--line-brand); background: var(--brand-soft); transform: translateX(4px); }
.pillar-ic {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--brand-soft);
    border: 1px solid var(--line-brand);
    color: var(--brand);
}
.pillar-ic i { width: 19px; height: 19px; }
.pillar h4 { margin-bottom: 4px; }
.pillar p { font-size: .9rem; color: var(--muted); line-height: 1.55; }

.about-panel {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    padding: clamp(24px, 3vw, 32px);
    position: sticky;
    top: 100px;
}
.about-panel .eyebrow { margin-bottom: 20px; }
.industry-list { display: grid; gap: 10px; margin-bottom: 26px; }
.industry-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .025);
    border: 1px solid transparent;
    font-size: .92rem;
    color: var(--ink-2);
    transition: border-color .3s, color .3s;
}
.industry-row:hover { border-color: var(--line-brand); color: var(--ink); }
.industry-row i { width: 17px; height: 17px; color: var(--brand); }

.panel-note {
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: .88rem;
    color: var(--muted);
}
.panel-note strong { color: var(--brand-2); font-weight: 600; }

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(298px, 1fr));
    gap: 18px;
}
.service-card {
    position: relative;
    padding: 26px 24px 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .006));
    overflow: hidden;
    transition: border-color .35s, box-shadow .45s var(--ease);
    will-change: transform;
}
.service-card:hover { border-color: var(--line-brand); box-shadow: var(--shadow-2); }
.svc-ic {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    margin-bottom: 18px;
    background: color-mix(in srgb, var(--c) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
    color: var(--c);
}
.svc-ic i { width: 21px; height: 21px; }
.service-card h3 { margin-bottom: 9px; }
.service-card p { font-size: .92rem; color: var(--muted); line-height: 1.58; }
/* The index sits in the card's top-right corner, optically centred against
   the icon tile (same 26px offset, same 46px height). It is deliberately
   excluded from the `.service-card > *` position sweep further down the
   sheet, which would otherwise force it back to `position: relative`. */
.svc-index {
    position: absolute;
    z-index: 2;
    top: 26px;
    right: 24px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: .06em;
    color: var(--muted);
    opacity: .55;
    pointer-events: none;
}

/* ---------- Work / project cards ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-tab {
    padding: 8px 16px;
    min-height: 38px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
    font-size: .86rem;
    font-weight: 500;
    color: var(--muted);
    transition: color .25s, border-color .25s, background-color .25s;
}
.filter-tab:hover { color: var(--ink); border-color: var(--line-2); }
.filter-tab.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 22px;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    overflow: hidden;
    transition: border-color .35s, box-shadow .45s var(--ease);
    will-change: transform;
}
.project-card:hover { border-color: var(--line-brand); box-shadow: var(--shadow-2); }

.pc-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--panel-3);
    border-bottom: 1px solid var(--line);
}
.pc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .8s var(--ease), filter .5s;
    filter: saturate(.92);
}
.project-card:hover .pc-media img { transform: scale(1.045); filter: saturate(1.05); }
.pc-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(6, 11, 9, .72));
    pointer-events: none;
}
.pc-badges {
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 13px;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.pc-badges .tag {
    background: rgba(6, 11, 9, .74);
    backdrop-filter: blur(8px);
    border-color: var(--line-2);
    color: var(--ink);
}

.pc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pc-client {
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 9px;
}
.pc-title { margin-bottom: 10px; }
.pc-summary {
    font-size: .91rem;
    color: var(--muted);
    line-height: 1.58;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pc-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.pc-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.pc-foot .meta { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }

.work-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line-2);
    border-radius: var(--r-lg);
}

.work-more {
    margin-top: clamp(38px, 5vw, 60px);
    display: flex;
    justify-content: center;
}

/* ---------- Process ---------- */
.process-list { display: grid; gap: 0; position: relative; }
.process-step {
    display: grid;
    grid-template-columns: 92px 56px 1fr;
    gap: clamp(16px, 3vw, 34px);
    align-items: start;
    padding: clamp(24px, 3.2vw, 34px) 0;
    border-top: 1px solid var(--line);
    transition: background-color .35s;
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-step:hover { background: rgba(255, 255, 255, .015); }
.ps-num {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1;
    /* Tinted in the step's own colour so the number reads without hovering. */
    color: color-mix(in srgb, var(--c) 26%, transparent);
    -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 60%, transparent);
    transition: -webkit-text-stroke-color .4s, color .4s;
}
.process-step:hover .ps-num {
    color: color-mix(in srgb, var(--c) 42%, transparent);
    -webkit-text-stroke-color: var(--c);
}
.ps-ic {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--c) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
    color: var(--c);
}
.ps-ic i { width: 21px; height: 21px; }
.ps-body h3 { margin-bottom: 8px; }
.ps-body p { color: var(--muted); font-size: .95rem; max-width: 68ch; }

/* ---------- Tech stack ---------- */
.tech-groups { display: grid; gap: clamp(26px, 3.4vw, 40px); }
.tech-group-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.tech-group-head h4 {
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.tech-group-head .rule { flex: 1; height: 1px; background: var(--line); }

.tech-row {
    display: grid;
    /* 178px is the floor that keeps the longest label (WooCommerce) inside
       the card: 16px padding + 24px icon + 12px gap + label + 16px padding. */
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
    gap: 12px;
}
.tech-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .022);
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink-2);
    overflow: hidden;
    transition: border-color .3s, color .3s, background-color .3s;
    will-change: transform;
}
.tech-card:hover { border-color: var(--line-brand); color: var(--ink); background: rgba(255, 255, 255, .04); }
.tech-ic { width: 24px; height: 24px; display: grid; place-items: center; flex: none; }
.tech-ic svg { width: 22px; height: 22px; }

/* ---------- Founder ---------- */
.founder-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(28px, 4.5vw, 56px);
    align-items: center;
    padding: clamp(26px, 3.6vw, 46px);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, rgba(52, 211, 153, .07), rgba(255, 255, 255, .012));
    position: relative;
    overflow: hidden;
}
.founder-card::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(52, 211, 153, .12);
    filter: blur(100px);
    top: -160px;
    left: -100px;
    pointer-events: none;
}
.founder-photo {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line-brand);
    background: var(--panel-3);
    aspect-ratio: 4 / 5;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.founder-body { position: relative; }
.founder-name { margin-bottom: 4px; }
.founder-role {
    font-size: .82rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 20px;
}
.founder-body p { color: var(--muted); margin-bottom: 14px; font-size: .97rem; }
.founder-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---------- Team ----------
   Equal cards, three to a row, styled as smaller siblings of the founder
   card so the two sections read as one band. Flex rather than grid so a
   short final row (5 members = 3 + 2) centres instead of hanging left. */
.team-grid {
    --team-gap: clamp(18px, 2.6vw, 30px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--team-gap);
}
.team-card {
    flex: 0 1 calc((100% - var(--team-gap) * 2) / 3);
    padding: clamp(16px, 1.7vw, 22px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, rgba(52, 211, 153, .07), rgba(255, 255, 255, .012));
    text-align: center;
    transition: transform .45s var(--ease), border-color .35s var(--ease);
}
.team-card:hover { transform: translateY(-5px); border-color: var(--line-brand); }
.team-photo {
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line-brand);
    background: var(--panel-3);
    aspect-ratio: 1;
    margin-bottom: clamp(14px, 1.4vw, 20px);
}
.team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.team-name { margin-bottom: 0; }

/* ---------- Why us ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.why-card {
    padding: clamp(24px, 3vw, 32px);
    background: var(--bg);
    transition: background-color .35s;
}
.why-card:hover { background: var(--panel); }
.why-ic {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 16px;
}
.why-ic i { width: 18px; height: 18px; }
.why-card h4 { margin-bottom: 7px; }
.why-card p { font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 860px;
    margin-inline: auto;
    border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px 4px;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.04rem;
    font-weight: 500;
    letter-spacing: -.015em;
    color: var(--ink);
    transition: color .25s;
}
.faq-q:hover { color: var(--brand-2); }
.faq-icon {
    width: 30px;
    height: 30px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    color: var(--brand);
    transition: transform .4s var(--ease), background-color .3s, border-color .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--brand-soft); border-color: var(--line-brand); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s var(--ease);
}
.faq-a p { padding: 0 60px 24px 4px; color: var(--muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    padding: clamp(44px, 6vw, 76px);
    border-radius: var(--r-xl);
    border: 1px solid var(--line-brand);
    background: linear-gradient(135deg, rgba(52, 211, 153, .13), rgba(15, 158, 122, .04));
    text-align: center;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
    pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 16px; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--ink-2); max-width: 56ch; margin: 0 auto 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: clamp(28px, 4vw, 52px);
    align-items: start;
}

.contact-form {
    padding: clamp(24px, 3.2vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    color: var(--ink-2);
    margin-bottom: 7px;
}
.field label .req { color: var(--brand); }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    min-height: 46px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .025);
    color: var(--ink);
    font-size: .94rem;
    transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; cursor: pointer; background-image: none; }
.field select option { background: var(--panel-2); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #5D7269; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(52, 211, 153, .05);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .13);
}
.field.invalid input,
.field.invalid textarea { border-color: #F87171; }
.field-error {
    display: none;
    margin-top: 6px;
    font-size: .8rem;
    color: #FCA5A5;
}
.field.invalid .field-error { display: block; }

.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status {
    display: none;
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: var(--r-sm);
    font-size: .9rem;
    border: 1px solid transparent;
}
.form-status.show { display: block; }
.form-status.ok { background: var(--brand-soft); border-color: var(--line-brand); color: var(--brand-2); }
.form-status.err { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .3); color: #FCA5A5; }

.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn .spinner {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(4, 18, 12, .3);
    border-top-color: var(--brand-ink);
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.contact-side { display: grid; gap: 10px; }
.contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .02);
    transition: border-color .3s, background-color .3s, transform .4s var(--ease);
}
.contact-link:hover { border-color: var(--line-brand); background: var(--brand-soft); transform: translateX(4px); }
.cl-ic {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
}
.cl-ic svg { width: 19px; height: 19px; }
.cl-label { display: block; font-family: var(--font-display); font-weight: 500; font-size: .93rem; color: var(--ink); line-height: 1.35; word-break: break-word; }
.cl-sub { display: block; font-size: .8rem; color: var(--muted); }
.contact-link .go { margin-left: auto; color: var(--muted); }

.side-note {
    margin-top: 8px;
    padding: 17px;
    border: 1px dashed var(--line-2);
    border-radius: var(--r-md);
    font-size: .87rem;
    color: var(--muted);
}
.side-note strong { color: var(--brand-2); }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    padding-top: clamp(56px, 6vw, 84px);
    overflow: hidden;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
    gap: clamp(28px, 4vw, 54px);
    padding-bottom: clamp(40px, 5vw, 60px);
}
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-about .blurb { font-size: .92rem; color: var(--muted); max-width: 44ch; }
.footer-tag {
    margin-top: 14px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--brand-2);
}
.footer-col .eyebrow { margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a {
    font-size: .91rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color .25s;
}
.footer-col a:hover { color: var(--brand-2); }
.soc-ic { width: 17px; height: 17px; display: grid; place-items: center; flex: none; }
.soc-ic svg, .soc-ic i { width: 16px; height: 16px; }

/* Giant brand wordmark — full-bleed so it is never clipped by the container */
.footer-word-wrap {
    overflow: hidden;
    padding-inline: clamp(10px, 2vw, 24px);
}
.footer-word {
    font-family: var(--font-logo);
    font-weight: 400;
    /* Samarkan sets much narrower than Inter Tight, so the wordmark needs a
       larger size to span the footer; the line-height keeps the tall
       top-bar and the below-baseline strokes inside the clipping wrapper. */
    font-size: min(16.5vw, 19rem);
    line-height: 1.22;
    letter-spacing: .005em;
    text-align: center;
    white-space: nowrap;
    background-image: linear-gradient(100deg,
        rgba(52, 211, 153, .21) 0%,
        rgba(52, 211, 153, .21) 28%,
        rgba(150, 250, 208, .55) 50%,
        rgba(52, 211, 153, .21) 72%,
        rgba(52, 211, 153, .21) 100%);
    background-size: 320% 100%;
    background-position: 100% 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    user-select: none;
    margin-bottom: -.1em;
    animation: footerWordSheen 11s ease-in-out infinite alternate;
}

@keyframes footerWordSheen {
    to { background-position: 0% 0; }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    font-size: .84rem;
    color: var(--muted);
}

/* ---------- Scroll-to-top ---------- */
.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(12, 20, 17, .9);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(10px);
    color: var(--brand);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.st-ring { position: absolute; inset: 0; width: 48px; height: 48px; transform: rotate(-90deg); }
.st-track, .st-bar { fill: none; stroke-width: 2; }
.st-track { stroke: rgba(255, 255, 255, .07); }
.st-bar {
    stroke: var(--brand);
    stroke-linecap: round;
    stroke-dasharray: 138.2;
    stroke-dashoffset: 138.2;
    transition: stroke-dashoffset .12s linear;
}

/* ---------- Toasts ---------- */
.toast-stack {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 150;
    display: grid;
    gap: 9px;
    pointer-events: none;
}
.toast {
    padding: 11px 19px;
    border-radius: var(--r-pill);
    background: rgba(12, 20, 17, .95);
    border: 1px solid var(--line-brand);
    color: var(--ink);
    font-size: .88rem;
    box-shadow: var(--shadow-2);
    animation: toastIn .35s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ═══════════════════════════════════════════════
   Inner pages
═══════════════════════════════════════════════ */

/* ---------- Page hero ---------- */
.page-hero {
    padding-top: clamp(120px, 15vw, 168px);
    padding-bottom: clamp(34px, 4.5vw, 56px);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 20% -20%, rgba(52, 211, 153, .14), transparent 70%);
    pointer-events: none;
}
.page-hero .container { position: relative; }
.crumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .83rem;
    color: var(--muted);
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.crumbs a:hover { color: var(--brand-2); }
.crumbs i { width: 13px; height: 13px; }

/* ---------- Case study ---------- */
.cs-title { max-width: 20ch; margin-bottom: 20px; }
.cs-summary { font-size: 1.06rem; color: var(--muted); max-width: 66ch; }
.cs-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    margin-top: clamp(30px, 4vw, 46px);
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.cs-meta div { background: var(--bg); padding: 16px 18px; }
.cs-meta dt {
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.cs-meta dd { font-size: .93rem; color: var(--ink); font-weight: 500; }

.cs-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: clamp(30px, 4.5vw, 64px);
    align-items: start;
}
.cs-block { margin-bottom: clamp(34px, 4.5vw, 52px); }
.cs-block h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    margin-bottom: 16px;
}
.cs-block p { color: var(--muted); font-size: 1rem; }
.cs-block p + p { margin-top: 14px; }

.cs-feature-list { display: grid; gap: 10px; }
.cs-feature-list li {
    display: flex;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .018);
    font-size: .93rem;
    color: var(--ink-2);
    transition: border-color .3s, transform .35s var(--ease);
}
.cs-feature-list li:hover { border-color: var(--line-brand); transform: translateX(3px); }
.cs-feature-list i { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 3px; }

.cs-result {
    padding: clamp(22px, 3vw, 30px);
    border-radius: var(--r-lg);
    border: 1px solid var(--line-brand);
    background: linear-gradient(135deg, rgba(52, 211, 153, .1), rgba(255, 255, 255, .012));
}
.cs-result .eyebrow { margin-bottom: 14px; }
.cs-result p { color: var(--ink-2); }

.cs-shots { display: grid; gap: 18px; }
.cs-shot {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--panel);
}
.cs-shot img { width: 100%; height: auto; }
.cs-shot figcaption {
    padding: 12px 16px;
    font-size: .82rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.cs-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.cs-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.cs-panel .eyebrow { margin-bottom: 16px; }
.cs-tech { display: flex; flex-wrap: wrap; gap: 7px; }
.cs-panel .btn { width: 100%; margin-top: 4px; }
.cs-panel p { font-size: .89rem; color: var(--muted); margin-bottom: 16px; }

.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: clamp(30px, 4vw, 44px);
    border-top: 1px solid var(--line);
}
.pn-card {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .018);
    transition: border-color .3s, background-color .3s;
}
.pn-card:hover { border-color: var(--line-brand); background: var(--brand-soft); }
.pn-card.next { text-align: right; }
.pn-label {
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.pn-card.next .pn-label { justify-content: flex-end; }
.pn-title { display: block; font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 1.02rem; line-height: 1.3; }

/* ---------- 404 / empty state ---------- */
.notfound { text-align: center; padding-block: clamp(80px, 12vw, 150px); }
.notfound h1 { margin-bottom: 16px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Legal pages ---------- */
.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 7px 15px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--brand-soft);
    color: var(--muted);
    font-size: .82rem;
}
.legal-updated i { width: 15px; height: 15px; color: var(--brand); }

.legal-wrap {
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
    gap: clamp(32px, 5vw, 70px);
    align-items: start;
}
.legal-toc {
    position: sticky;
    top: 100px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.legal-toc .eyebrow { margin-bottom: 16px; }
.legal-toc ol {
    display: grid;
    gap: 9px;
    counter-reset: toc;
    list-style: none;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
    display: block;
    font-size: .87rem;
    line-height: 1.45;
    color: var(--muted);
    transition: color .25s;
}
.legal-toc a::before {
    content: counter(toc, decimal-leading-zero) ".\00a0";
    color: var(--brand-3);
}
.legal-toc a:hover { color: var(--brand-2); }

.legal-body { max-width: 74ch; }
.legal-section { margin-bottom: clamp(34px, 4vw, 52px); scroll-margin-top: 110px; }
.legal-section h2 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
    font-size: clamp(1.16rem, 2.2vw, 1.48rem);
}
.legal-num { color: var(--brand-3); font-size: .78em; letter-spacing: .04em; }
.legal-body p { margin-bottom: 14px; color: var(--muted); line-height: 1.78; }
.legal-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    list-style: none;
}
.legal-list li {
    position: relative;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.7;
}
.legal-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
}
.legal-dl { display: grid; gap: 10px; margin-bottom: 16px; }
.legal-dl-row {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 14px;
    padding: 13px 17px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .018);
    transition: border-color .3s, background-color .3s;
}
.legal-dl-row:hover { border-color: var(--line-brand); background: var(--brand-soft); }
.legal-dl-row dt { font-weight: 600; font-size: .92rem; color: var(--ink); }
.legal-dl-row dd { font-size: .93rem; line-height: 1.65; color: var(--muted); }
.legal-foot {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: .85rem;
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { font-size: .84rem; color: var(--muted); transition: color .25s; }
.footer-legal a:hover { color: var(--brand-2); }

@media (max-width: 980px) {
    .legal-wrap { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
    .legal-toc ol { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
    .legal-dl-row { grid-template-columns: 1fr; gap: 5px; }
}

/* ═══════════════════════════════════════════════
   Motion layer support
═══════════════════════════════════════════════ */

/* CSS-only reveal (used until the Motion module takes over) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

html.motion-ready .stagger > * { opacity: 0; }
html:not(.js) .reveal,
html:not(.js) .stagger > * { opacity: 1; transform: none; }

/* Word-by-word heading split */
.reveal-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.reveal-word-i { display: inline-block; will-change: transform, opacity; }

/* Magnetic buttons + tilt cards */
.magnetic { transition: transform .45s var(--ease), background-color .25s, border-color .25s, box-shadow .35s var(--ease); }
.tilt { transition: transform .5s var(--ease), border-color .35s, box-shadow .45s var(--ease); transform-style: preserve-3d; }

/* Cursor spotlight glow on cards */
.card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s;
    background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 50%), rgba(52, 211, 153, .13), transparent 62%);
    z-index: 0;
}
.card-glow.on { opacity: 1; }
.service-card > *:not(.card-glow):not(.svc-index),
.project-card > *:not(.card-glow),
.tech-card > *:not(.card-glow) { position: relative; z-index: 1; }

/* Custom cursor */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 400;
    pointer-events: none;
    border-radius: 50%;
    margin-left: -4px;
    margin-top: -4px;
}
.cursor-dot { width: 8px; height: 8px; background: var(--brand); }
.cursor-ring {
    width: 34px;
    height: 34px;
    margin-left: -17px;
    margin-top: -17px;
    border: 1px solid rgba(52, 211, 153, .5);
    transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s, border-color .3s;
}
.cursor-ring.is-hover {
    width: 52px;
    height: 52px;
    margin-left: -26px;
    margin-top: -26px;
    background: rgba(52, 211, 153, .09);
    border-color: var(--brand);
}
.cursor-ring.is-down { width: 26px; height: 26px; margin-left: -13px; margin-top: -13px; }
body.has-cursor { cursor: none; }
body.has-cursor a,
body.has-cursor button,
body.has-cursor input,
body.has-cursor select,
body.has-cursor textarea { cursor: none; }

/* Page exit veil */
.page-veil {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .36s var(--ease), visibility .36s;
    pointer-events: none;
}
html.is-leaving .page-veil { opacity: 1; visibility: visible; }

/* ═══════════════════════════════════════════════
   Responsive
═══════════════════════════════════════════════ */

@media (max-width: 1080px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-panel { position: static; }
    .cs-layout { grid-template-columns: 1fr; }
    .cs-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .hero-title { max-width: 22ch; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-shell > .nav-cta { display: none; }
    .stats-band { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .founder-card { grid-template-columns: 1fr; }
    .founder-photo { max-width: 260px; aspect-ratio: 1; }
    .contact-grid { grid-template-columns: 1fr; }
    /* The icon is dropped here, so the number takes its place as a solid,
       filled chip — an outline-only glyph is unreadable on a phone. */
    .process-step { grid-template-columns: 52px 1fr; }
    .process-step .ps-ic { display: none; }
    .ps-num {
        display: grid;
        place-items: center;
        width: 52px;
        height: 52px;
        border-radius: 15px;
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: 0;
        color: var(--c);
        -webkit-text-stroke: 0;
        background: color-mix(in srgb, var(--c) 15%, transparent);
        border: 1px solid color-mix(in srgb, var(--c) 34%, transparent);
    }
    .process-step:hover .ps-num { color: var(--c); }
}

@media (max-width: 640px) {
    html { scroll-padding-top: 80px; }
    .hero { padding-top: 118px; }
    .hero-title { max-width: none; font-size: clamp(2.05rem, 8.8vw, 2.9rem); }
    .hero-sub { font-size: 1rem; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-meta { gap: 9px 18px; font-size: .8rem; }
    .footer-word { font-size: 17vw; }
    .field-row { grid-template-columns: 1fr; }
    .projects-grid, .services-grid { grid-template-columns: 1fr; }
    /* One card per row, capped so the square photo never fills the screen */
    .team-card { flex-basis: 100%; max-width: 340px; margin-inline: auto; width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .prev-next { grid-template-columns: 1fr; }
    .pn-card.next { text-align: left; }
    .pn-card.next .pn-label { justify-content: flex-start; }
    .cs-meta { grid-template-columns: 1fr 1fr; }
    .stats-band { border-radius: var(--r-md); }
    .scroll-top { right: 14px; bottom: 14px; }
    .faq-a p { padding-right: 12px; }

    /* ── CTA section: stack buttons + shrink email on mobile ── */
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    /* Truncate the long email address so it doesn't overflow */
    .cta-actions .btn-ghost {
        font-size: .78rem;
        padding: 13px 18px;
        min-height: 46px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    html.motion-ready .stagger > * { opacity: 1; }
    .marquee-track { animation: none; }

    /* Hero / footer: freeze every looping effect on a readable end state */
    .footer-word { animation: none; background-position: 50% 0; }
    .hero-particles { display: none; }
    /* The typewriter never runs, so its caret would sit there forever */
    .type-cursor { display: none; }
}

/* ---------- Print ---------- */
@media print {
    .navbar, .scroll-top, .site-loader, .scroll-progress, .toast-stack, .cursor-dot, .cursor-ring { display: none !important; }
    body { background: #fff; color: #000; }
}
