/* ==========================================================================
   SoftBuilders "Bloom" design system — loaded last on every page.
   Palette is taken from the petal mark in the logo.
   ========================================================================== */

:root {
    --ink: #050b18;
    --ink-2: #0a1428;
    --ink-3: #0f1d38;
    --sky: #29abe2;
    --emerald: #12b76a;
    --amber: #ffa41b;
    --coral: #ff4d5e;
    --mist: #e6eef8;

    --bg-body: var(--ink);
    --bg-card: rgba(230, 238, 248, 0.04);
    --bg-glass: rgba(10, 20, 40, 0.55);
    --surface-card: rgba(230, 238, 248, 0.025);
    --surface-dark: rgba(5, 11, 24, 0.6);
    --text-primary: #f2f6fc;
    --text-secondary: #a3b2c7;
    --text-tertiary: #6b7b93;
    --text-muted: #8494ab;
    --primary: var(--sky);
    --accent: var(--amber);
    --success: var(--emerald);
    --warning: var(--amber);
    --danger: var(--coral);
    --brand-blue: var(--sky);
    --brand-purple: var(--emerald);
    --brand-gradient: linear-gradient(120deg, var(--sky) 0%, var(--emerald) 45%, var(--amber) 80%, var(--coral) 100%);
    --enterprise-cyan: var(--sky);
    --border-subtle: rgba(230, 238, 248, 0.08);
    --border-highlight: rgba(41, 171, 226, 0.32);
    --line-color: rgba(230, 238, 248, 0.18);
    --glass-blur: blur(18px) saturate(150%);
    --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 0 1px rgba(41, 171, 226, 0.25), 0 20px 60px -15px rgba(41, 171, 226, 0.35);

    --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 76px;
}

body.light-mode {
    --bg-body: #e9f1f8;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.72);
    --surface-card: rgba(255, 255, 255, 0.55);
    --surface-dark: rgba(255, 255, 255, 0.85);
    --text-primary: #0b1426;
    --text-secondary: #46566e;
    --text-tertiary: #6b7a90;
    --text-muted: #5d6c82;
    --border-subtle: rgba(11, 20, 38, 0.09);
    --border-highlight: rgba(41, 171, 226, 0.4);
    --line-color: rgba(11, 20, 38, 0.16);
    --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --shadow-lg: 0 30px 70px -25px rgba(15, 29, 56, 0.25);
    --shadow-glow: 0 0 0 1px rgba(41, 171, 226, 0.3), 0 20px 50px -18px rgba(41, 171, 226, 0.35);
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
/* Paint the canvas in the theme colour so page loads and view transitions never show the browser's white */
html { background-color: #050b18; color-scheme: dark; }
html.theme-light { background-color: #e9f1f8; color-scheme: light; }
/* The canvas colour lives on <html>; body stays transparent so the aurora (body::before, z-index -2) shows through */
body, body.light-mode { background: transparent !important; }

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    background-color: var(--bg-body);
    color: var(--text-primary);
    text-rendering: optimizeLegibility;
}

/* Ambient aurora + grain behind every page */
body::before {
    content: "";
    position: fixed;
    inset: -20vmax;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(38vmax 30vmax at 12% 8%, rgba(41, 171, 226, 0.16), transparent 70%),
        radial-gradient(34vmax 28vmax at 92% 18%, rgba(18, 183, 106, 0.11), transparent 70%),
        radial-gradient(30vmax 26vmax at 70% 92%, rgba(255, 164, 27, 0.08), transparent 70%);
    animation: aurora-drift 28s ease-in-out infinite alternate;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body.light-mode::before {
    opacity: 1;
    background:
        radial-gradient(42vmax 34vmax at 8% 4%, rgba(41, 171, 226, 0.17), transparent 70%),
        radial-gradient(38vmax 30vmax at 96% 14%, rgba(18, 183, 106, 0.12), transparent 70%),
        radial-gradient(36vmax 30vmax at 72% 96%, rgba(255, 164, 27, 0.11), transparent 70%),
        radial-gradient(30vmax 26vmax at 22% 72%, rgba(155, 140, 255, 0.06), transparent 70%),
        linear-gradient(160deg, #eef4fa 0%, #e9f1f8 45%, #e5eef6 100%);
}
body.light-mode::after { opacity: 0.035; }

@keyframes aurora-drift {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    100% { transform: translate3d(-3vmax, 2vmax, 0) rotate(6deg); }
}

::selection { background: rgba(41, 171, 226, 0.35); color: var(--text-primary); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 { font-weight: 700; }
h2 { font-weight: 650; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.05; }
h3 { font-weight: 600; }

p { color: var(--text-secondary); }

a { transition: color 0.25s var(--ease); }

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

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 3000;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: var(--sky);
    color: #04121f;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(1240px, 100% - 2.5rem); max-width: 1240px; padding-left: 0; padding-right: 0; margin-inline: auto; }

.section-padding { padding: clamp(3.5rem, 6.5vw, 5.5rem) 0; position: relative; }
.section-padding,
.hero-section,
.hero-small,
.post-header,
.sb-hero,
.sb-proof { margin-bottom: 0; }

.text-gradient,
.text-gradient-blue-purple,
.text-gradient-multi,
.text-gradient-green {
    background: var(--brand-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradient-flow 8s linear infinite;
}

@keyframes gradient-flow { to { background-position: 200% center; } }

/* Eyebrows / badges */
.hero-badge,
.hero-badge-enhanced,
.enterprise-kicker,
.sb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.85rem 0.42rem 0.7rem;
    margin-bottom: 1.3rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--glass-edge);
}

.hero-badge::before,
.sb-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.18);
    flex-shrink: 0;
}

.hero-title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; }
.hero-desc { color: var(--text-secondary); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.65; max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0;
    line-height: 1.2;
    cursor: pointer;
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.25s, border-color 0.25s;
    will-change: transform;
}

.btn-primary,
.btn-gradient {
    color: #04121f;
    background: linear-gradient(120deg, #5fd0ff, var(--sky) 40%, #2fd39a);
    border: 0;
    box-shadow: 0 10px 30px -10px rgba(41, 171, 226, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary::before,
.btn-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, var(--amber), var(--coral));
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.btn-primary:hover,
.btn-gradient:hover { color: #1a0604; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 120, 60, 0.6); }
.btn-primary:hover::before,
.btn-gradient:hover::before { opacity: 1; }

.btn-secondary {
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge);
}
.btn-secondary::before { display: none; }
.btn-secondary:hover { border-color: var(--border-highlight); transform: translateY(-2px); background: rgba(41, 171, 226, 0.1); color: var(--text-primary); }

.btn-sm { min-height: 38px; padding: 0.5rem 1rem; font-size: 0.88rem; }
.btn-lg { min-height: 56px; padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn .fa-arrow-right { transition: transform 0.3s var(--ease); }
.btn:hover .fa-arrow-right { transform: translateX(4px); }

/* ---------- Glass surfaces ---------- */
.glass-card,
.service-card,
.enterprise-card,
.industry-card,
.product-card,
.portfolio-card,
.testimonial-card,
.knowledge-card,
.tech-cluster,
.sitemap-card,
.blog-card,
.process-step,
.estimator-panel,
.enterprise-stat,
.sb-glass {
    position: relative;
    background: linear-gradient(160deg, rgba(230, 238, 248, 0.065), rgba(230, 238, 248, 0.015));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge), 0 20px 50px -30px rgba(0, 0, 0, 0.6);
    transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease), background 0.4s;
}

body.light-mode .glass-card,
body.light-mode .service-card,
body.light-mode .enterprise-card,
body.light-mode .industry-card,
body.light-mode .product-card,
body.light-mode .portfolio-card,
body.light-mode .testimonial-card,
body.light-mode .knowledge-card,
body.light-mode .tech-cluster,
body.light-mode .sitemap-card,
body.light-mode .blog-card,
body.light-mode .process-step,
body.light-mode .estimator-panel,
body.light-mode .enterprise-stat,
body.light-mode .sb-glass {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.6));
    box-shadow: var(--glass-edge), 0 18px 40px -28px rgba(15, 29, 56, 0.35);
}

/* Cursor spotlight (driven by --mx/--my from JS) */
.sb-spot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(41, 171, 226, 0.14), transparent 45%);
    transition: opacity 0.4s var(--ease);
}
.sb-spot:hover::after { opacity: 1; }

.glass-card:hover,
.service-card:hover,
.enterprise-card:hover,
.industry-card:hover,
.product-card:hover,
.portfolio-card:hover,
.testimonial-card:hover,
.knowledge-card:hover,
.blog-card:hover,
.sitemap-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    box-shadow: var(--glass-edge), var(--shadow-glow);
}

.service-card,
.enterprise-card,
.industry-card,
.product-card,
.portfolio-card,
.testimonial-card,
.knowledge-card { padding: 1.8rem; }

.service-icon,
.why-icon,
.category-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.2rem;
    border-radius: 16px;
    color: var(--sky);
    font-size: 1.25rem;
    background: linear-gradient(145deg, rgba(41, 171, 226, 0.2), rgba(18, 183, 106, 0.08));
    border: 1px solid rgba(41, 171, 226, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.5s var(--ease);
}
.service-card:hover .service-icon,
.glass-card:hover .service-icon { transform: rotate(-8deg) scale(1.06); }

.services-grid { gap: 1.25rem; }

.tech-pill,
.portfolio-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    background: rgba(41, 171, 226, 0.08);
    border: 1px solid rgba(41, 171, 226, 0.2);
}
.portfolio-chip { color: var(--sky); margin-bottom: 1rem; }

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: padding 0.4s var(--ease), transform 0.45s var(--ease);
}

.header .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 62px;
    padding: 0 0.6rem 0 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header.scrolled { padding: 8px 0; background: transparent; box-shadow: none; }
.header.scrolled .nav,
.header.menu-open .nav {
    background: rgba(8, 16, 32, 0.7);
    border-color: var(--border-subtle);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge), 0 20px 50px -25px rgba(0, 0, 0, 0.7);
}
body.light-mode .header.scrolled { background: transparent; }
body.light-mode .header.scrolled .nav,
body.light-mode .header.menu-open .nav { background: rgba(255, 255, 255, 0.78); }
.header.is-hidden { transform: translateY(-110%); }

.logo { display: inline-flex; align-items: center; gap: 0.55rem; flex-shrink: 0; color: var(--text-primary); }
.logo img,
.logo-img { height: 34px; width: auto; filter: none !important; }
.logo-on-light { display: none; }
body.light-mode .logo-on-dark { display: none; }
body.light-mode .logo-on-light { display: block; }
/* Brand: the bloom mark turning very slowly, plus a live-text wordmark */
.logo .logo-mark { width: 34px; height: 34px; flex-shrink: 0; animation: logo-turn 90s linear infinite; }
@keyframes logo-turn { to { rotate: 360deg; } }
.logo:hover .logo-mark { animation-duration: 20s; }
.logo-word {
    font: 900 1.62rem/1 'Nunito', var(--font-display);   /* heavy rounded geometric, as in the brand artwork */
    letter-spacing: -0.02em;
    color: var(--text-primary);
    white-space: nowrap;
}
.logo-word span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@media (prefers-reduced-motion: reduce) { .logo .logo-mark { animation: none; } }
.sb-footer-brand .logo .logo-mark { width: 36px; height: 36px; }
.sb-footer-brand .logo-word { font-size: 1.75rem; }
@media (max-width: 360px) { .logo-word { font-size: 1.38rem; } .logo { gap: 0.45rem; } .logo .logo-mark { width: 30px; height: 30px; } }

.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav-links > li { position: relative; }

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 0;
    background: none;
    color: var(--text-secondary);
    font: 500 0.95rem var(--font-body);
    cursor: pointer;
    transition: color 0.25s, background 0.25s;
}
.nav-link:hover,
.nav-link.active,
.has-mega.open > .nav-link { color: var(--text-primary); background: rgba(230, 238, 248, 0.07); }
body.light-mode .nav-link:hover,
body.light-mode .nav-link.active { background: rgba(11, 20, 38, 0.06); }
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--amber);
    transform: translateX(-50%);
}
.nav-link .fa-chevron-down { font-size: 0.65rem; transition: transform 0.3s var(--ease); }
.has-mega.open > .nav-link .fa-chevron-down { transform: rotate(180deg); }

.mega-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: min(1040px, 95vw);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.82fr);
    gap: 0.3rem;
    padding: 0.9rem;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    background: rgba(9, 17, 33, 0.97);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge), var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-36%, 8px);
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0.3s;
}
body.light-mode .mega-panel { background: rgba(255, 255, 255, 0.99); }
.has-mega.open .mega-panel { opacity: 1; visibility: visible; transform: translate(-36%, 0); }

.mega-col { display: grid; align-content: start; gap: 0.35rem; min-width: 0; padding: 0.45rem 0.35rem; }
.mega-col h3 {
    margin: 0 0 0.35rem 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.mega-col a {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    height: 60px;
    padding: 0 0.65rem;
    border: 1px solid rgba(230, 238, 248, 0.05);
    border-radius: 14px;
    background: rgba(230, 238, 248, 0.035);
    color: var(--text-primary);
    transition: background 0.2s, border-color 0.2s;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.3;
}
.mega-col a i { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: rgba(41, 171, 226, 0.12); color: var(--sky); font-size: 0.8rem; }
/* One line each for title and hint; equal-height rows */
.mega-col a span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-col a small { overflow: hidden; text-overflow: ellipsis; }
.mega-col a small { display: block; margin-top: 2px; color: var(--text-tertiary); font-size: 0.78rem; font-weight: 400; }
.mega-col a:hover { border-color: var(--border-highlight); background: rgba(41, 171, 226, 0.08); }
body.light-mode .mega-col a { border-color: rgba(11, 20, 38, 0.05); background: rgba(255, 255, 255, 0.6); }
body.light-mode .mega-col a:hover { border-color: var(--border-highlight); background: rgba(41, 171, 226, 0.07); }
.mega-feature {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2rem;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 164, 27, 0.25), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(41, 171, 226, 0.3), transparent 60%),
        var(--ink-3);
    border: 1px solid var(--border-subtle);
    color: #f2f6fc;
}
.mega-feature strong { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; color: #fff; }
.mega-feature p { margin: 0.5rem 0 1rem; color: #b9c6d8; font-size: 0.86rem; }
/* The feature card stays dark in both themes, so keep its copy light */
body.light-mode .mega-feature p { color: #c3cfdf; }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-icon-btn,
.mobile-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    transition: border-color 0.25s, transform 0.4s var(--ease);
}
.nav-icon-btn:hover,
.mobile-toggle:hover { border-color: var(--border-highlight); transform: rotate(-12deg); }
.nav-cta { min-height: 44px; padding: 0.6rem 1.15rem; font-size: 0.92rem; }
.mobile-toggle { display: none; }

/* Mobile drawer */
.sb-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.25rem 2rem;
    overflow-y: auto;
    background: rgba(5, 11, 24, 0.94);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
}
body.light-mode .sb-drawer { background: rgba(244, 247, 251, 0.96); }
.sb-drawer.open { opacity: 1; visibility: visible; }
.sb-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.sb-drawer-group { margin-bottom: 1.4rem; }
.sb-drawer-group h3 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 0.6rem; }
.sb-drawer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.sb-drawer-links a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.93rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), border-color 0.2s;
}
.sb-drawer-links a i { color: var(--sky); width: 18px; text-align: center; }
.sb-drawer.open .sb-drawer-links a { opacity: 1; transform: none; }
.sb-drawer-links a:hover { border-color: var(--border-highlight); }

/* The legacy overlay is replaced by the drawer */
.nav-overlay { display: none !important; }

@media (max-width: 1080px) {
    .header nav,
    .nav-cta { display: none; }
    .mobile-toggle { display: grid; }
    .header .nav { padding-left: 1rem; }
}

/* ---------- Generic page hero (inner pages) ---------- */
.hero-section,
.hero-small,
.post-header {
    position: relative;
    display: flex;
    align-items: center;
    min-height: auto;
    padding: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem)) 0 clamp(3rem, 7vw, 5.5rem);
    text-align: center;
    overflow: hidden;
    background: none !important;
}

.hero-section::before,
.hero-small::before,
.post-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 20%, transparent 75%);
}

.hero-section::after,
.hero-small::after,
.post-header::after {
    content: "";
    position: absolute;
    top: -30%;
    left: 50%;
    width: min(900px, 120vw);
    aspect-ratio: 1;
    z-index: -1;
    pointer-events: none;
    transform: translateX(-50%);
    background: conic-gradient(from 200deg, rgba(41, 171, 226, 0.22), rgba(18, 183, 106, 0.16), rgba(255, 164, 27, 0.14), rgba(255, 77, 94, 0.1), rgba(41, 171, 226, 0.22));
    filter: blur(90px);
    opacity: 0.6;
    border-radius: 50%;
    animation: slow-spin 40s linear infinite;
}

@keyframes slow-spin { to { transform: translateX(-50%) rotate(360deg); } }

.hero-section > .container,
.hero-content { position: relative; z-index: 2; }
.hero-content .hero-desc,
.hero-section .hero-desc,
.post-header .hero-desc { margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2rem; }

.home-hero-grid { text-align: left; }
.home-hero-grid .hero-desc { margin-left: 0; }
.home-hero-grid .hero-btns { justify-content: flex-start; }

/* Breadcrumb (injected by JS from page structure) */
.sb-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    list-style: none;
}
.sb-breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.sb-breadcrumb a:hover { color: var(--sky); }

/* ---------- Marquee ---------- */
.tech-marquee {
    padding: 1.4rem 0;
    background: transparent;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.tech-marquee::before,
.tech-marquee::after,
.marquee-gradient-mask { display: none; }
.tech-item { background: transparent; border: 0; font-family: var(--font-mono); font-size: 0.86rem; color: var(--text-secondary); filter: grayscale(1); opacity: 0.75; transition: filter 0.3s, opacity 0.3s; }
.tech-item:hover { filter: none; opacity: 1; }

/* ---------- Footer ---------- */
.footer.sb-footer {
    position: relative;
    margin-top: 0;
    padding: 0 0 2rem;
    background: linear-gradient(180deg, transparent, rgba(41, 171, 226, 0.04));
    border-top: 1px solid var(--border-subtle);
    overflow: hidden;
}
body.light-mode .footer.sb-footer { background: linear-gradient(180deg, transparent, rgba(41, 171, 226, 0.06)); }

.sb-footer-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    margin: 4rem 0 3.5rem;
    padding: clamp(1.8rem, 4vw, 3rem);
    border-radius: 30px;
    border: 1px solid var(--border-subtle);
    background:
        radial-gradient(circle at 0% 0%, rgba(41, 171, 226, 0.22), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 164, 27, 0.16), transparent 50%),
        var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.sb-footer-cta h2 { margin: 0 0 0.6rem; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.sb-footer-cta p { margin: 0; }
.sb-footer-cta .sb-cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: flex-end; }

.sb-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 2.5rem 2rem;
    padding-bottom: 3rem;
}
.sb-footer-grid h3 {
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.sb-footer-grid ul { display: flex; flex-direction: column; gap: 0.6rem; list-style: none; }
.sb-footer-grid a { color: var(--text-secondary); font-size: 0.95rem; }
.sb-footer-grid a:hover { color: var(--text-primary); }
.sb-footer-brand p { margin: 1.1rem 0 1.3rem; font-size: 0.95rem; max-width: 330px; }
.sb-footer-brand .logo img { height: 36px; width: 36px; }

.sb-nap { font-style: normal; display: grid; gap: 0.3rem; font-size: 0.84rem; color: var(--text-secondary); }
/* Each contact line is a subtle tile with its icon in a tinted square (same language as the menus) */
.sb-nap a, .sb-nap span {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0.32rem 0.6rem 0.32rem 0.32rem;
    border: 1px solid rgba(230, 238, 248, 0.05);
    border-radius: 12px;
    background: rgba(230, 238, 248, 0.035);
    line-height: 1.3;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.sb-nap > :not(:first-child) { white-space: nowrap; }
.sb-nap a:hover { border-color: var(--border-highlight); background: rgba(41, 171, 226, 0.08); color: var(--text-primary); }
.sb-nap i { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: rgba(41, 171, 226, 0.12); color: var(--sky); font-size: 0.7rem; }
body.light-mode .sb-nap a, body.light-mode .sb-nap span { border-color: rgba(11, 20, 38, 0.05); background: rgba(255, 255, 255, 0.6); }
/* Locations as chips (the " · " separators are hidden by zeroing the list item's font size) */
.sb-nap ~ ul li { display: flex; flex-wrap: wrap; gap: 0.3rem; font-size: 0; }
.sb-nap ~ ul li a { padding: 0.22rem 0.6rem; border: 1px solid var(--border-subtle); border-radius: 999px; background: rgba(230, 238, 248, 0.035); font-size: 0.8rem; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.sb-nap ~ ul li a::before { display: none; }
.sb-nap ~ ul li a:hover { transform: none; border-color: var(--border-highlight); background: rgba(41, 171, 226, 0.08); }
body.light-mode .sb-nap ~ ul li a { background: rgba(255, 255, 255, 0.6); }

.sb-social { display: flex; gap: 0.5rem; }
.sb-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: transform 0.35s var(--ease), color 0.2s, border-color 0.2s;
}
.sb-social a:hover { color: var(--sky); border-color: var(--border-highlight); transform: translateY(-3px); }

.sb-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1.4rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.sb-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.sb-trust-strip i { color: var(--emerald); }

.sb-disclaimer { margin: 1.5rem 0; font-size: 0.82rem; line-height: 1.7; color: var(--text-tertiary); }
.sb-disclaimer strong { color: var(--text-secondary); }

.sb-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    color: var(--text-tertiary);
}
.sb-footer-bottom { padding-top: 1.4rem; border-top: 1px solid var(--border-subtle); }
.sb-footer-bottom p { margin: 0; font-size: inherit; color: var(--text-tertiary); }
.sb-footer-bottom nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.sb-footer-bottom .theme-toggle {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 50%;
    font-size: 0.8rem;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.sb-footer-bottom .theme-toggle:hover { border-color: var(--border-highlight) !important; color: var(--text-primary); background: rgba(41, 171, 226, 0.08) !important; }
.sb-footer-bottom a:hover { color: var(--text-primary); }

.sb-footer-word {
    margin-top: 2.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.5rem, 15.5vw, 13.5rem);
    line-height: 0.8;
    letter-spacing: -0.06em;
    text-align: center;
    /* Solid, opaque letters (so overlapping glyphs never darken) faded as one piece by a mask */
    color: #172134;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 92%);
    user-select: none;
    pointer-events: none;
}
body.light-mode .sb-footer-word { color: #d3dde9; }

@media (max-width: 1024px) {
    .sb-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .sb-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .sb-footer-cta { grid-template-columns: 1fr; }
    .sb-footer-cta .sb-cta-actions { justify-content: flex-start; }
    .sb-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Floating helpers ---------- */
.whatsapp-float {
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.4rem;
    background: linear-gradient(145deg, #2fe07a, #12a150);
    box-shadow: 0 14px 30px -10px rgba(18, 183, 106, 0.7);
    z-index: 900;
}
.whatsapp-float::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 17px;
    border: 2px solid rgba(47, 224, 122, 0.5);
    animation: wa-pulse 2.6s var(--ease) infinite;
}
@keyframes wa-pulse { 0% { opacity: 0.9; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.25); } }

.sticky-conversion-bar {
    left: 22px;
    right: auto;
    bottom: 22px;
    z-index: 900;
    display: flex;
    gap: 4px;
    padding: 5px;
    background: rgba(8, 16, 32, 0.72);
    border: 1px solid var(--border-subtle);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 999px;
    box-shadow: var(--glass-edge), 0 14px 40px -15px rgba(0, 0, 0, 0.6);
}
body.light-mode .sticky-conversion-bar { background: rgba(255, 255, 255, 0.85); }
.sticky-conversion-bar a,
.sticky-conversion-bar button {
    min-height: 42px;
    padding: 0 0.85rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    font: 500 0.85rem var(--font-body);
    color: var(--text-secondary);
    transition: background 0.25s, color 0.25s;
}
.sticky-conversion-bar a:hover,
.sticky-conversion-bar button:hover { background: rgba(41, 171, 226, 0.12); color: var(--text-primary); }
.sticky-conversion-bar a { background: rgba(41, 171, 226, 0.14); color: var(--text-primary); }
/* Collapsed to a single toggle; the actions open as a 3-column grid panel above it */
.sticky-conversion-bar { gap: 0; padding: 4px; }
.sticky-conversion-bar .scb-toggle { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; color: var(--text-primary); }
.sticky-conversion-bar .scb-toggle:focus { outline: none; }
.sticky-conversion-bar .scb-toggle:focus-visible { box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.35); }
.sticky-conversion-bar .scb-toggle i { transition: transform 0.35s var(--ease); }
.sticky-conversion-bar.is-open .scb-toggle i { transform: rotate(45deg); }
.scb-actions {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    display: grid;
    grid-template-columns: repeat(2, 88px);
    gap: 6px;
    padding: 8px;
    border-radius: 22px;
    border: 1px solid var(--border-subtle);
    background: rgba(8, 16, 32, 0.88);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge), 0 24px 50px -20px rgba(0, 0, 0, 0.6);
    transform-origin: bottom left;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.94);
    transition: opacity 0.2s, transform 0.3s var(--ease), visibility 0s 0.3s;
}
body.light-mode .scb-actions { background: rgba(255, 255, 255, 0.98); box-shadow: var(--glass-edge), 0 24px 50px -24px rgba(15, 29, 56, 0.3); }
.sticky-conversion-bar.is-open .scb-actions { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.35s var(--ease), visibility 0s; }
.sticky-conversion-bar .scb-actions > :is(a, button),
body.light-mode .sticky-conversion-bar .scb-actions > :is(a, button) {
    flex-direction: column;
    gap: 0.4rem;
    width: auto;
    min-height: 72px;
    padding: 0.6rem 0.3rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(230, 238, 248, 0.04);
    box-shadow: none;
    font: 500 0.74rem var(--font-body);
    color: var(--text-secondary);
    white-space: nowrap;
}
body.light-mode .sticky-conversion-bar .scb-actions > :is(a, button) { background: rgba(11, 20, 38, 0.035); }
.sticky-conversion-bar .scb-actions > :is(a, button):hover,
body.light-mode .sticky-conversion-bar .scb-actions > :is(a, button):hover { border-color: var(--border-highlight); background: rgba(41, 171, 226, 0.1); color: var(--text-primary); }
.sticky-conversion-bar .scb-actions > :is(a, button):focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; }
.sticky-conversion-bar .scb-actions i { font-size: 1.1rem; color: var(--sky); }
.sticky-conversion-bar .scb-actions .scb-wa i { color: #2fe07a; }
.sticky-conversion-bar .scb-actions > .scb-engine { grid-column: 1 / -1; min-height: 56px; }
.sticky-conversion-bar .scb-actions span { display: block; }
/* Tiles rise in one after another */
.sticky-conversion-bar.is-open .scb-actions > * { animation: scb-tile 0.35s var(--ease) both; }
.sticky-conversion-bar.is-open .scb-actions > :nth-child(2) { animation-delay: 0.03s; }
.sticky-conversion-bar.is-open .scb-actions > :nth-child(3) { animation-delay: 0.06s; }
.sticky-conversion-bar.is-open .scb-actions > :nth-child(4) { animation-delay: 0.09s; }
.sticky-conversion-bar.is-open .scb-actions > :nth-child(5) { animation-delay: 0.12s; }
.sticky-conversion-bar.is-open .scb-actions > :nth-child(6) { animation-delay: 0.15s; }
@keyframes scb-tile { from { opacity: 0; transform: translateY(6px); } }
/* On narrow phones the open grid reaches the right-hand floaters, so step them aside */
@media (max-width: 560px) {
    .whatsapp-float, .sb-top { transition: opacity 0.25s; }
    body:has(.sticky-conversion-bar.is-open) :is(.whatsapp-float, .sb-top) { opacity: 0; pointer-events: none; }
}
.accessibility-panel { left: 22px; right: auto; bottom: 84px; top: auto; }
.cookie-consent {
    top: auto;
    bottom: 84px;
    left: 22px;
    right: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(520px, calc(100vw - 44px));
    padding: 0.7rem 0.7rem 0.7rem 1.1rem;
    border-radius: 18px;
}
.cookie-consent p { margin: 0 !important; font-size: 0.84rem !important; line-height: 1.45; }
.cookie-consent button {
    flex-shrink: 0;
    min-height: 38px;
    padding: 0 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--sky);
    color: #04121f;
    font-weight: 700;
    cursor: pointer;
}
@media (max-width: 640px) {
    .sticky-conversion-bar span { display: none; }
    .sticky-conversion-bar a, .sticky-conversion-bar button { width: 42px; padding: 0; }
}

.cookie-consent,
.accessibility-panel,
.site-search-panel {
    background: rgba(8, 16, 32, 0.9);
    border: 1px solid var(--border-subtle);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
}
body.light-mode .cookie-consent,
body.light-mode .accessibility-panel,
body.light-mode .site-search-panel { background: rgba(255, 255, 255, 0.95); }

.sb-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 2000;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: var(--brand-gradient);
    pointer-events: none;
}

.sb-top {
    position: fixed;
    right: 22px;
    bottom: 80px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.4s var(--ease);
}
.sb-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Forms ---------- */
.form-control,
.estimator-panel select,
.estimator-panel input {
    width: 100%;
    padding: 0.95rem 1.05rem !important;
    border-radius: 14px !important;
    border: 1px solid var(--border-subtle) !important;
    background: rgba(230, 238, 248, 0.04) !important;
    color: var(--text-primary) !important;
    font: 400 1rem var(--font-body);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
body.light-mode .form-control,
body.light-mode .estimator-panel select,
body.light-mode .estimator-panel input { background: rgba(255, 255, 255, 0.9) !important; }
.form-control:focus,
.estimator-panel select:focus,
.estimator-panel input:focus {
    outline: none;
    border-color: var(--sky) !important;
    box-shadow: 0 0 0 4px rgba(41, 171, 226, 0.18);
}
select.form-control option { background: var(--ink-2); color: #f2f6fc; }
body.light-mode select.form-control option { background: #fff; color: #0b1426; }
label { color: var(--text-secondary); }

/* ---------- Blog / long-form ---------- */
.post-content,
.blog-content,
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.post-content h2,
.blog-content h2,
.legal-content h2 { margin: 2.6rem 0 1rem; font-size: clamp(1.5rem, 2.5vw, 1.95rem); color: var(--text-primary); }
.post-content h3,
.blog-content h3 { margin: 2rem 0 0.8rem; font-size: 1.3rem; }
.post-content ul,
.post-content ol,
.blog-content ul { margin: 0 0 1.5rem 1.3rem; display: grid; gap: 0.5rem; }
.post-content li::marker { color: var(--sky); }
.post-content a,
.blog-content a,
.legal-content a { color: var(--sky); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-content blockquote {
    margin: 2rem 0;
    padding: 1.2rem 1.5rem;
    border-left: 3px solid var(--amber);
    border-radius: 0 16px 16px 0;
    background: var(--bg-card);
    color: var(--text-primary);
}
.post-meta,
.blog-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-tertiary); letter-spacing: 0.02em; }
.toc { border-radius: 20px; border: 1px solid var(--border-subtle); background: var(--bg-card); padding: 1.4rem 1.6rem; }
.blog-card { overflow: hidden; padding: 0; }
.blog-card img,
.blog-img { transition: transform 0.8s var(--ease); }
.blog-card:hover img { transform: scale(1.05); }
.share-btn { border-radius: 12px; }

/* ---------- Light-mode rescue for legacy inline dark blocks ---------- */
body.light-mode [style*="background: #000"],
body.light-mode [style*="background:#000"],
body.light-mode [style*="background: #111"],
body.light-mode [style*="background: #0a0a0a"] {
    background: linear-gradient(160deg, #0f1d38, #0a1428) !important;
    color: #f2f6fc;
}
body.light-mode [style*="color: #fff"],
body.light-mode [style*="color:#fff"],
body.light-mode [style*="color: white"] { color: var(--text-primary) !important; }
body.light-mode [style*="background: #000"] [style*="color"],
body.light-mode [style*="background: #000"] h2,
body.light-mode [style*="background: #000"] h3,
body.light-mode [style*="background: #000"] p { color: #f2f6fc !important; }

/* ---------- Reveal on scroll ---------- */
.sb-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
}
.sb-reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Page motion: enter / leave, cross-document view transitions
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.3s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(0.985); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Theme switch: the new theme grows as a circle from the toggle (overrides the page-navigation fade) */
html.theme-vt::view-transition-old(root),
html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt::view-transition-new(root) { animation: theme-reveal 0.65s cubic-bezier(0.65, 0, 0.35, 1) both; }
@keyframes theme-reveal {
    from { clip-path: circle(0 at var(--tx, 50%) var(--ty, 0)); }
    to { clip-path: circle(var(--tr, 150vmax) at var(--tx, 50%) var(--ty, 0)); }
}
html.theme-vt .theme-toggle i { animation: theme-spin 0.65s var(--ease) both; }
@keyframes theme-spin { from { transform: rotate(-120deg) scale(0.4); opacity: 0; } }
/* Fallback for browsers without view transitions */
html.theme-fade body, html.theme-fade body * { transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, fill 0.45s ease !important; }

main#main { animation: page-in 0.8s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } }

.sb-curtain {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(41, 171, 226, 0.18), transparent 40%),
        var(--bg-body);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), visibility 0.28s;
}
.sb-curtain img { width: 64px; height: 64px; animation: curtain-bloom 1.1s var(--ease) infinite; }
body.sb-leaving .sb-curtain { opacity: 1; visibility: visible; }
@keyframes curtain-bloom { 0% { transform: scale(0.6) rotate(0deg); opacity: 0.4; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } 100% { transform: scale(0.6) rotate(180deg); opacity: 0.4; } }

/* Section headings rise word by word */
.sb-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; }
.sb-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--wi) * 0.045s + 0.1s); }
.sb-words.in .w > span,
.in .sb-words .w > span { transform: none; }

/* ==========================================================================
   Footer motion
   ========================================================================== */
.footer.sb-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 35%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sky), var(--emerald), var(--amber), transparent);
    animation: footer-sweep 7s linear infinite;
}
@keyframes footer-sweep { from { transform: translateX(-100%); } to { transform: translateX(390%); } }

@property --sb-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.sb-footer-cta { position: relative; }
.sb-footer-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--sb-angle), transparent 0 62%, var(--sky), var(--emerald), var(--amber), transparent 96%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: angle-spin 6s linear infinite;
    pointer-events: none;
}
@keyframes angle-spin { to { --sb-angle: 360deg; } }

.sb-footer-word span {
    display: inline-block;
    transform: translateY(40%);
    opacity: 0;
    transition: transform 1.1s var(--ease), opacity 1.1s var(--ease);
    transition-delay: calc(var(--li) * 0.05s);
}
.sb-footer-word.in span { transform: none; opacity: 1; }

.sb-trust-strip span { position: relative; overflow: hidden; transition: border-color 0.3s, color 0.3s; }
.sb-trust-strip span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: chip-shine 6s ease-in-out infinite;
    animation-delay: calc(var(--ci, 0) * 0.35s);
}
.sb-trust-strip span:hover { border-color: var(--border-highlight); color: var(--text-primary); }
@keyframes chip-shine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

.sb-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(18, 183, 106, 0.3);
    background: rgba(18, 183, 106, 0.08);
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.sb-status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.sb-status i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--emerald); animation: status-ping 2s var(--ease) infinite; }
@keyframes status-ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.sb-footer-grid ul a { position: relative; display: inline-block; transition: color 0.25s, transform 0.35s var(--ease); }
.sb-footer-grid ul a::before { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--sky); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.sb-footer-grid ul a:hover { transform: translateX(3px); }
.sb-footer-grid ul a:hover::before { transform: scaleX(1); transform-origin: left; }

/* Light-mode rescue for hard-coded white text on legacy pages */
body.light-mode [style*="color: rgba(255,255,255"],
body.light-mode [style*="color: rgba(255, 255, 255"] { color: var(--text-secondary) !important; }

@media (prefers-reduced-motion: reduce) {
    main#main { animation: none; }
    .sb-words .w > span, .sb-footer-word span { transform: none; opacity: 1; }
}
body.reduce-motion .sb-words .w > span,
body.reduce-motion .sb-footer-word span { transform: none; opacity: 1; }

/* ==========================================================================
   Shared marketing components (homepage + internal pages)
   ========================================================================== */
.sb-band { background: linear-gradient(180deg, transparent, rgba(41, 171, 226, 0.035) 30%, rgba(41, 171, 226, 0.035) 70%, transparent); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: 3rem; }
.section-intro h2 { margin: 0; }
.section-intro > p { margin: 0; font-size: 1.08rem; }
/* Stacked variant: subheading sits on its own line under the heading */
.section-intro-stack { grid-template-columns: 1fr; gap: 1rem; }
.section-intro > p .sb-link { margin-left: 0.6rem; vertical-align: middle; }
/* Arrow links as glass pills (same language as the trust chips) */
.sb-link,
.sb-tile-link,
.sb-product-go {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.6rem;
    padding: 0.36rem 0.45rem 0.36rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge);
    font: 600 0.88rem/1.2 var(--font-body);
    color: var(--text-primary);
    white-space: nowrap;
    vertical-align: middle;
    transition: border-color 0.3s, box-shadow 0.35s, transform 0.35s var(--ease), color 0.25s;
}
.sb-link i,
.sb-tile-link i,
.sb-product-go i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 0;
    border-radius: 50%;
    background: rgba(41, 171, 226, 0.14);
    box-shadow: inset 0 0 0 1px rgba(41, 171, 226, 0.3);
    color: var(--sky);
    font-size: 0.72rem;
    transition: transform 0.35s var(--ease), background 0.3s, color 0.3s;
}
.sb-link:hover,
.sb-tile:hover .sb-tile-link,
.sb-flag:hover .sb-tile-link,
.sb-post-featured:hover .sb-tile-link,
.sb-product:hover .sb-product-go {
    border-color: rgba(41, 171, 226, 0.45);
    box-shadow: var(--glass-edge), 0 10px 24px -14px var(--sky);
    color: var(--text-primary);
}
.sb-link:hover i,
.sb-tile:hover .sb-tile-link i,
.sb-flag:hover .sb-tile-link i,
.sb-post-featured:hover .sb-tile-link i,
.sb-product:hover .sb-product-go i {
    transform: translateX(2px);   /* stays clear of the pill edge */
    background: linear-gradient(135deg, var(--sky), var(--emerald));
    color: #04121f;
}
/* Pinned to the bottom of a card, with a minimum gap above */
.sb-tile .sb-tile-link,
.sb-flag .sb-tile-link,
.sb-product .sb-product-go { margin-top: auto; }
:is(.sb-tile, .sb-flag) > :has(+ .sb-tile-link) { margin-bottom: 1.2rem; }
.sb-post-featured .sb-tile-link { margin-top: 1.2rem; }
/* Links inside running text stay compact */
p .sb-link { padding: 0.18rem 0.25rem 0.18rem 0.8rem; font-size: 0.84rem; }
p .sb-link i { width: 22px; height: 22px; font-size: 0.62rem; }

.sb-assurance { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; list-style: none; }
.sb-assurance li {
    --tone: var(--sky);
    --tone-bg: rgba(41, 171, 226, 0.14);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.38rem 0.95rem 0.38rem 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.sb-assurance li.a-emerald { --tone: var(--emerald); --tone-bg: rgba(18, 183, 106, 0.14); }
.sb-assurance li.a-amber { --tone: var(--amber); --tone-bg: rgba(255, 164, 27, 0.15); }
.sb-a-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tone-bg);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 35%, transparent);
    color: var(--tone);
    font-size: 0.78rem;
    transition: transform 0.45s var(--ease);
}
.sb-assurance li:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tone) 45%, transparent); box-shadow: var(--glass-edge), 0 10px 24px -14px var(--tone); }
.sb-assurance li:hover .sb-a-icon { transform: rotate(-12deg) scale(1.08); }
.sb-assurance li { animation: rise 0.8s var(--ease) both; }
.sb-assurance li:nth-child(1) { animation-delay: 0.4s; }
.sb-assurance li:nth-child(2) { animation-delay: 0.5s; }
.sb-assurance li:nth-child(3) { animation-delay: 0.6s; }
@media (max-width: 520px) {
    .sb-assurance { flex-direction: column; align-items: stretch; }
    .sb-assurance li { justify-content: flex-start; }
}

/* ---------- FAQ ---------- */
/* FAQ: intro + related links on the left (sticky), one numbered accordion panel on the right */
.sb-faq-wrap { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.sb-faq-wrap > div:first-child { position: sticky; top: 110px; }
.sb-faq-wrap h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 2.8rem); }

/* With related links: heading spans the top, then two matching panels side by side at equal height.
   The left column is flattened (display: contents) so its pieces can sit in the shared grid. */
.sb-faq-wrap:has(> div > .sb-related-list) {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-areas: "badge badge" "title title" "rel faq";
    gap: 0 1.25rem;
    align-items: start;
}
.sb-faq-wrap:has(> div > .sb-related-list) > div:first-child { display: contents; }
.sb-faq-wrap:has(> div > .sb-related-list) > div > .hero-badge { grid-area: badge; justify-self: start; }
.sb-faq-wrap:has(> div > .sb-related-list) > div > h2 { grid-area: title; margin: 0.9rem 0 2rem; }
.sb-faq-wrap:has(> div > .sb-related-list) .sb-related-list { grid-area: rel; display: flex; flex-direction: column; margin: 0; padding: 0.5rem; border-radius: 24px; overflow: hidden; }
/* Links keep their natural size; a matching footer takes the spare height, mirroring the FAQ panel */
.sb-faq-wrap:has(> div > .sb-related-list) .sb-related-list::after {
    content: "Not sure which fits? We'll help you choose on a free call.";
    margin: 0.5rem -0.5rem -0.5rem;
    padding: 1.05rem 1.35rem;
    border-top: 1px dashed var(--border-subtle);
    background: linear-gradient(90deg, rgba(18, 183, 106, 0.06), transparent 70%);
    font-size: 0.86rem;
    color: var(--text-tertiary);
}
.sb-faq-wrap:has(> div > .sb-related-list) .sb-faq { grid-area: faq; display: flex; flex-direction: column; }
/* Matching panel labels, and a quiet footer that fills the FAQ panel's spare height */
.sb-faq-wrap:has(> div > .sb-related-list) .sb-related-list > small { padding: 0.75rem 0.85rem 0.55rem; }
.sb-faq-wrap:has(> div > .sb-related-list) .sb-faq::before {
    content: "Frequently asked";
    padding: 1.25rem 1.5rem 0.55rem;
    font: 500 0.68rem var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.sb-faq-wrap:has(> div > .sb-related-list) .sb-faq::after {
    content: "Still have a question? Message us and we reply within 24 hours.";
    padding: 1.05rem 1.5rem;
    border-top: 1px dashed var(--border-subtle);
    background: linear-gradient(90deg, rgba(41, 171, 226, 0.06), transparent 70%);
    font-size: 0.86rem;
    color: var(--text-tertiary);
}
@media (max-width: 1024px) {
    .sb-faq-wrap:has(> div > .sb-related-list) { grid-template-columns: 1fr; grid-template-areas: "badge" "title" "faq" "rel"; row-gap: 1rem; }
    .sb-faq-wrap:has(> div > .sb-related-list) > div > h2 { margin: 0.4rem 0 0.6rem; }
}
.sb-faq {
    counter-reset: faq;
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge);
    overflow: hidden;
}
.sb-faq details { counter-increment: faq; position: relative; transition: background 0.3s; }
.sb-faq details + details { border-top: 1px solid var(--border-subtle); }
.sb-faq details::before { content: ""; position: absolute; left: 0; top: 0.9rem; bottom: 0.9rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--sky); opacity: 0; transition: opacity 0.3s; }
.sb-faq details[open] { background: rgba(41, 171, 226, 0.045); }
.sb-faq details[open]::before { opacity: 1; }
.sb-faq summary { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.5rem; list-style: none; cursor: pointer; font: 600 1.04rem/1.4 var(--font-display); color: var(--text-primary); transition: color 0.25s; }
.sb-faq summary::-webkit-details-marker { display: none; }
.sb-faq summary:focus { outline: none; }
.sb-faq summary:focus-visible { outline: none; }
.sb-faq summary:focus-visible::after { box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.4); border-color: var(--sky); }
.sb-faq summary::before { content: counter(faq, decimal-leading-zero); flex-shrink: 0; width: 1.6rem; font: 500 0.75rem var(--font-mono); letter-spacing: 0.04em; color: var(--text-tertiary); transition: color 0.25s; }
.sb-faq summary::after {
    content: "+";
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin-left: auto;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    font: 400 1.2rem/1 var(--font-display);
    color: var(--sky);
    transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s;
}
.sb-faq summary:hover::after { border-color: var(--border-highlight); }
.sb-faq details[open] summary::before { color: var(--sky); }
.sb-faq details[open] summary::after { transform: rotate(45deg); background: rgba(41, 171, 226, 0.14); border-color: rgba(41, 171, 226, 0.35); }
.sb-faq details p { margin: 0; padding: 0 4.1rem 1.35rem 4.1rem; font-size: 0.96rem; animation: faq-in 0.35s var(--ease) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 560px) {
    .sb-faq summary { padding: 1.1rem 1.1rem; gap: 0.75rem; }
    .sb-faq details p { padding: 0 1.1rem 1.2rem 3.45rem; }
}

/* ---------- Bloom mark (homepage hero + internal page heroes) ---------- */
/* The whole bloom turns as one piece around its fixed centre, so it stays symmetric like the logo */
.bloom-svg { animation: ring-spin 160s linear infinite; }

/* Unfold: each petal holder scales up from the centre, inner rings first */
.bloom-petal {
    opacity: 0;
    scale: 0.1;
    transform-origin: 0 0;
    transition: opacity 0.9s var(--ease), scale 1.5s var(--ease);
    transition-delay: calc((3 - var(--ring)) * 0.2s + var(--i) * 0.03s + 0.15s);
}
.bloomed .bloom-petal { opacity: 0.96; scale: 1; }

/* Grow: once open, leaves widen and lengthen in a wave from the centre outwards.
   Scale is applied in the petal's own frame, so x = width and y = length. */
.bloom-leaf {
    transform-origin: 0 0;
    animation: leaf-grow 6s ease-in-out infinite;
    animation-delay: calc(2.7s + (3 - var(--ring)) * 0.18s);
}
@keyframes leaf-grow {
    0%, 100% { scale: 1 1; }
    50% { scale: 1.02 1.015; }
}

/* Click-to-replay (homepage flower) */
.sb-bloom[role="button"] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sb-bloom[role="button"]:focus { outline: none; }
.sb-bloom[role="button"]:focus-visible .bloom-svg { filter: drop-shadow(0 0 18px rgba(41, 171, 226, 0.55)); }
.sb-bloom .bloom-svg { transition: opacity 0.3s ease, scale 0.2s var(--ease); }
.sb-bloom[role="button"]:active .bloom-svg { scale: 0.97; }

/* Homepage flower: plays once and stays open. Bud -> organic unfold (~1.4s, inner rings first),
   then the warm glow settles in and a few sparks drift out. Leaves keep their gentle breathing. */
.bloom-glow, .bloom-spark { opacity: 0; transform-origin: 0 0; pointer-events: none; }
.bloom-glow { mix-blend-mode: screen; }
.bloomed .bloom-glow { opacity: 0.45; }
.bloom-loop .bloom-petal {
    transition: none;
    animation: petal-open 2s both;
    animation-delay: calc((3 - var(--ring)) * 0.19s + var(--i) * 0.025s);
}
@keyframes petal-open {
    0%   { opacity: 0;    scale: 0.08; rotate: -24deg; animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
    22%  { opacity: 0.8;  scale: 0.22; rotate: -16deg; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
    78%  { opacity: 0.96; scale: 1.025; rotate: 1deg; animation-timing-function: ease-in-out; }
    100% { opacity: 0.96; scale: 1;    rotate: 0deg; }
}
.bloom-loop .bloom-glow { animation: glow-in 1.6s 1.5s ease-out both; }
@keyframes glow-in {
    0% { opacity: 0; scale: 0.6; }
    65% { opacity: 0.55; scale: 1.05; }
    100% { opacity: 0.35; scale: 1; }
}
.bloom-loop .bloom-spark { animation: spark-drift 1.8s ease-out both; animation-delay: calc(1.2s + var(--p) * 0.08s); }
@keyframes spark-drift {
    0%   { opacity: 0;    translate: 0 6px; }
    35%  { opacity: 0.85; }
    100% { opacity: 0;    translate: 0 -22px; }
}
/* Click: shrink back to the bud (outer rings first), then the open plays again */
.bloom-loop.bloom-closing .bloom-petal { animation: petal-close 0.7s both; animation-delay: calc(var(--ring) * 0.06s + var(--i) * 0.006s); }
.bloom-loop.bloom-closing .bloom-glow { animation: glow-out 0.4s ease-in both; }
.bloom-loop.bloom-closing .bloom-spark { animation: none; opacity: 0; }
@keyframes petal-close {
    from { opacity: 0.96; scale: 1;    rotate: 0deg; }
    to   { opacity: 0;    scale: 0.08; rotate: -24deg; }
}
@keyframes glow-out { from { opacity: 0.5; } to { opacity: 0; scale: 0.6; } }
/* Off screen: freeze everything so the loop costs nothing */
.bloom-paused :is(.bloom-svg, .bloom-leaf, .bloom-petal, .bloom-glow, .bloom-spark),
.bloom-paused .sb-bloom::before { animation-play-state: paused; }
@keyframes ring-spin { to { rotate: 360deg; } }

/* ==========================================================================
   Internal pages polish
   ========================================================================== */
@media (max-width: 1024px) { .sb-faq-wrap { grid-template-columns: 1fr; } .sb-faq-wrap > div:first-child { position: static; } }
@media (max-width: 720px) { .section-intro { grid-template-columns: 1fr; margin-bottom: 2rem; } }

.sb-hero-bloom {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -1;
    width: min(780px, 120vw);
    aspect-ratio: 1;
    translate: -50% -50%;
    opacity: 0.12;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 68%);
    mask-image: radial-gradient(circle, #000 30%, transparent 68%);
}
body.light-mode .sb-hero-bloom { opacity: 0.16; }
.hero-section .sb-assurance,
.hero-small .sb-assurance { justify-content: center; margin-top: 1.6rem; }

/* Gradient edge that draws in on hover */
.glass-card::before,
.service-card::before,
.portfolio-card::before,
.industry-card::before,
.product-card::before,
.enterprise-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 22px;
    right: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transition: transform 0.6s var(--ease);
    pointer-events: none;
}
.glass-card:hover::before,
.service-card:hover::before,
.portfolio-card:hover::before,
.industry-card:hover::before,
.product-card:hover::before,
.enterprise-card:hover::before { transform: scaleX(1); }

/* Accordions on internal pages */
main details:not(.sb-faq details) {
    margin-bottom: 0.6rem;
    padding: 0 !important;
    border: 1px solid var(--border-subtle);
    border-radius: 16px !important;
    background: var(--bg-card) !important;
    transition: border-color 0.3s;
}
main details:not(.sb-faq details)[open] { border-color: var(--border-highlight); }
main details:not(.sb-faq details) > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    list-style: none;
    cursor: pointer;
}
main details:not(.sb-faq details) > summary::-webkit-details-marker { display: none; }
main details:not(.sb-faq details) > summary::after { content: "+"; font: 400 1.4rem/1 var(--font-display); color: var(--sky); transition: transform 0.35s var(--ease); }
main details:not(.sb-faq details)[open] > summary::after { transform: rotate(45deg); }
main details:not(.sb-faq details) > :not(summary) { margin: 0 !important; padding: 0 1.2rem 1.1rem; }

/* Contact action cards */
.sb-contact-list { display: grid; gap: 0.9rem; }
.sb-contact-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    color: inherit;
    text-align: left;
}
.sb-contact-card .service-icon { margin: 0; }
.sb-contact-card small { display: block; font: 500 0.7rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); }
.sb-contact-card strong { display: block; margin: 0.15rem 0; font: 600 1.08rem var(--font-display); color: var(--text-primary); word-break: break-word; }
.sb-contact-card strong a:hover { color: var(--sky); }
.sb-contact-card em { display: block; font-style: normal; font-size: 0.85rem; color: var(--text-secondary); }
.sb-cc-go { color: var(--text-tertiary); transition: transform 0.35s var(--ease), color 0.25s; }
.sb-contact-card:hover .sb-cc-go { color: var(--sky); transform: translateX(4px); }
.sb-contact-card.is-wa .service-icon { color: #2fe07a; background: rgba(47, 224, 122, 0.12); border-color: rgba(47, 224, 122, 0.3); }

/* Footer buttons: beat the legacy `.footer a` grey link colour */
.footer .btn-gradient,
.footer .btn-primary { color: #04121f; }
.footer .btn-gradient:hover,
.footer .btn-primary:hover { color: #1a0604; }
.footer .btn-secondary { color: var(--text-primary); }
.sb-footer-cta .sb-cta-actions { flex-wrap: nowrap; }
@media (max-width: 900px) {
    .sb-footer-cta { grid-template-columns: 1fr; }
    .sb-footer-cta .sb-cta-actions { flex-wrap: wrap; justify-content: flex-start; }
}

/* ---------- Proof ---------- */
.sb-proof { padding: 1rem 0 0; }
.sb-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 0 2.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    overflow: hidden;
}
.sb-stats > div { position: relative; display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 0.35rem; padding: 1.8rem 1.4rem; text-align: center; }
.sb-stats > div::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 40%;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-gradient);
    transform: translateX(-50%) scaleX(0);
    transition: transform 1.2s var(--ease) 0.3s;
}
.sb-stats.in > div::after,
.sb-stats > div:hover::after { transform: translateX(-50%) scaleX(1); }
.sb-stats > div + div { border-left: 1px solid var(--border-subtle); }
.sb-stats dt { font-size: 0.9rem; color: var(--text-secondary); }
.sb-stats dd { margin: 0; font: 700 clamp(2.2rem, 4vw, 3.2rem)/1 var(--font-display); letter-spacing: -0.04em; color: var(--text-primary); }

/* ---------- Industries / cases ---------- */
.industry-card i { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1rem; border-radius: 14px; font-size: 1.15rem; color: var(--sky); background: rgba(41, 171, 226, 0.12); border: 1px solid rgba(41, 171, 226, 0.22); }
.industry-card h3 { margin-bottom: 0.35rem; font-size: 1.12rem; }
.industry-card p { margin: 0; font-size: 0.93rem; }
/* Icon + heading on one row, description spans below */
.industry-card:has(> i + h3) { display: grid; grid-template-columns: 1fr auto; align-items: center; align-content: start; column-gap: 0.75rem; padding: 1.25rem; }
.industry-card:has(> i + h3) > i { grid-column: 2; grid-row: 1; width: 38px; height: 38px; margin: 0; border-radius: 11px; font-size: 1rem; }
.industry-card:has(> i + h3) > h3 { grid-column: 1; grid-row: 1; margin: 0; }
.industry-card:has(> i + h3) > p { grid-column: 1 / -1; margin-top: 0.75rem; }
.portfolio-card h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.sb-case { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1rem; margin: 0; font-size: 0.95rem; }
.sb-case dt { padding-top: 0.2rem; font: 500 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); }
.sb-case dd { margin: 0; color: var(--text-secondary); }
.sb-case dd:last-of-type { color: var(--emerald); }

@media (max-width: 1024px) {
    .sb-stats { grid-template-columns: repeat(2, 1fr); }
    .sb-stats > div:nth-child(3) { border-left: 0; }
    .sb-stats > div:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
}
@media (max-width: 720px) { .sb-stats > div { padding: 1.2rem; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .sb-reveal { opacity: 1; transform: none; }
}
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation: none !important; transition: none !important; }
body.reduce-motion .sb-reveal { opacity: 1; transform: none; }

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .btn { width: auto; }
    .hero-btns .btn { flex: 1 1 100%; }
}

.sb-tagline { display: block; margin-bottom: 0.35rem; font: 700 1.15rem var(--font-display); letter-spacing: -0.02em; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sb-link:not(:has(i)) { padding-right: 1rem; }
p .sb-link:not(:has(i)) { padding-right: 0.8rem; }

/* ---------- Compact contact form ---------- */
.sb-form-card { padding: clamp(1.4rem, 2.6vw, 2rem) !important; text-align: left; }
.sb-form-head { margin-bottom: 1.2rem; }
.sb-form-head h2 { margin: 0 0 0.25rem; font-size: clamp(1.4rem, 2.2vw, 1.7rem); }
.sb-form-head p { margin: 0; font-size: 0.92rem; }
.sb-form { display: grid; gap: 0.85rem; }
.sb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.sb-form .form-group { margin: 0; }
.sb-form label { display: block; margin: 0 0 0.35rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; color: var(--text-secondary); text-align: left; }
.sb-form .form-control { padding: 0.72rem 0.95rem !important; border-radius: 12px !important; font-size: 0.95rem; }
.sb-form textarea.form-control { min-height: 104px; resize: vertical; }
.sb-form select.form-control { appearance: none; -webkit-appearance: none; padding-right: 2.4rem !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2329abe2' stroke-width='2'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 0.95rem center !important; }
.sb-form .form-status { margin: 0; font-size: 0.85rem; }
.sb-form .form-status:empty { display: none; }
.sb-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.2rem; }
.sb-form-actions .btn { min-height: 46px; padding: 0.65rem 1rem; font-size: 0.92rem; }
.sb-form-actions .btn-gradient i { color: #04121f; font-size: 1.05rem; }
.sb-form-actions .btn-secondary i { color: var(--sky); }
.sb-form-note { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 0.78rem; color: var(--text-tertiary); }
.sb-form-note i { color: var(--emerald); }
@media (max-width: 560px) { .sb-form-row, .sb-form-actions { grid-template-columns: 1fr; } }
.sb-form-card { display: block !important; }
/* Icons inside buttons and contact cards: drop the legacy gradient-clipped glyph */
.glass-card .btn i,
.glass-card .sb-cc-go,
.sb-contact-card .service-icon i { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; -webkit-text-fill-color: currentColor !important; }
.sb-contact-card strong { word-break: normal; overflow-wrap: anywhere; }
@media (max-width: 560px) {
    .sb-contact-card { gap: 0.8rem; padding: 1rem; }
    .sb-contact-card strong { font-size: 0.95rem; overflow-wrap: normal; }
    .sb-cc-go { display: none; }
}
.sb-contact-list .glass-card, .sb-form-card { margin: 0 !important; }

/* ==========================================================================
   Mobile drawer v2: compact rows, collapsible groups, sticky CTA
   ========================================================================== */
.sb-drawer { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.sb-drawer-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1rem 0.9rem 1.15rem; border-bottom: 1px solid var(--border-subtle); }
.sb-drawer-logo { flex: 1; min-width: 0; }
.sb-drawer-logo .logo { display: flex; align-items: center; }
.sb-drawer-logo .logo img { height: var(--head-logo, 34px); width: var(--head-logo, 34px); }
.sb-drawer-icon { display: grid; place-items: center; flex-shrink: 0; width: var(--head-btn, 44px); height: var(--head-btn, 44px); border-radius: 50%; border: 1px solid var(--border-subtle); background: var(--bg-card); color: var(--text-primary); font-size: 0.95rem; cursor: pointer; }
.sb-drawer-body { flex: 1; overflow-y: auto; padding: 0.4rem 1rem 1.2rem; overscroll-behavior: contain; }
.sb-drawer-label { margin: 1rem 0 0.5rem 0.15rem; font: 500 0.66rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-tertiary); }

.sb-drawer-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.sb-dq,
.sb-dg {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-radius: 14px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), background 0.2s, border-color 0.2s;
    transition-delay: calc(var(--n, 0) * 0.025s + 0.05s);
}
.sb-dq { padding: 0.7rem 0.8rem; border: 1px solid var(--border-subtle); background: var(--bg-card); font-size: 0.92rem; font-weight: 600; }
.sb-dq:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sb-dq i,
.sb-dg i { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: rgba(41, 171, 226, 0.12); color: var(--sky); font-size: 0.8rem; }
.sb-dq.is-current,
.sb-dg.is-current { border-color: rgba(41, 171, 226, 0.5); background: linear-gradient(120deg, rgba(41, 171, 226, 0.16), rgba(18, 183, 106, 0.08)); }
.sb-dq.is-current i,
.sb-dg.is-current i { background: linear-gradient(135deg, var(--sky), var(--emerald)); color: #04121f; }

.sb-drawer-groups { display: grid; gap: 0.45rem; }
.sb-drawer-groups details {
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: var(--bg-card);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), border-color 0.3s;
    transition-delay: calc(var(--n, 0) * 0.025s + 0.05s);
}
.sb-drawer-groups details[open] { border-color: var(--border-highlight); }
.sb-drawer-groups summary { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0.85rem; list-style: none; cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.sb-drawer-groups summary::-webkit-details-marker { display: none; }
.sb-drawer-groups summary > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(18, 183, 106, 0.13); color: var(--emerald); font-size: 0.8rem; }
.sb-drawer-groups summary span { flex: 1; }
.sb-drawer-groups summary small { padding: 0.05rem 0.45rem; border-radius: 999px; background: rgba(230, 238, 248, 0.08); font: 500 0.68rem var(--font-mono); color: var(--text-tertiary); }
.sb-drawer-groups summary b { width: 8px; height: 8px; margin: 0 0.2rem 0 0.3rem; border-right: 2px solid var(--text-tertiary); border-bottom: 2px solid var(--text-tertiary); transform: rotate(45deg) translateY(-2px); transition: transform 0.3s var(--ease); }
.sb-drawer-groups details[open] summary b { transform: rotate(-135deg) translateY(-2px); border-color: var(--sky); }
.sb-dg-links { display: grid; gap: 0.35rem; padding: 0.1rem 0.55rem 0.6rem; }
.sb-dg { padding: 0.6rem 0.65rem; border: 1px solid rgba(230, 238, 248, 0.05); background: rgba(230, 238, 248, 0.035); font-size: 0.9rem; font-weight: 500; }
body.light-mode .sb-dg { border-color: rgba(11, 20, 38, 0.05); background: rgba(255, 255, 255, 0.55); }
.sb-dg:hover { border-color: var(--border-highlight); }
.sb-dg span { display: grid; line-height: 1.25; }
.sb-drawer-groups summary:focus { outline: none; }
.sb-drawer-groups summary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(41, 171, 226, 0.35); border-radius: inherit; }
.sb-dg small { font-size: 0.74rem; font-weight: 400; color: var(--text-tertiary); }
.sb-dg:hover,
.sb-dq:hover { background: rgba(41, 171, 226, 0.08); }

.sb-drawer.open .sb-dq,
.sb-drawer.open .sb-dg,
.sb-drawer.open .sb-drawer-groups details { opacity: 1; transform: none; }
.sb-drawer-groups details[open] .sb-dg { transition-delay: 0s; }

.sb-drawer-foot { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-subtle); background: var(--bg-glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.sb-drawer-foot .btn { min-height: 48px; font-size: 0.95rem; }
.sb-drawer-wa { width: 48px; padding: 0; color: #2fe07a !important; font-size: 1.25rem; }
@media (prefers-reduced-motion: reduce) {
    .sb-dq, .sb-dg, .sb-drawer-groups details { opacity: 1; transform: none; }
}
.sb-drawer .sb-drawer-head { margin-bottom: 0; }
.sb-drawer-body > .sb-drawer-label:first-child { margin-top: 0.7rem; }

/* Light mode: theme colour follows the new base, cards lift off the tinted page */
body.light-mode .sb-feature,
body.light-mode .sb-sec-item { background: rgba(255, 255, 255, 0.78); }
body.light-mode .sb-feature-grid,
body.light-mode .sb-sec-grid { background: rgba(11, 20, 38, 0.06); }
body.light-mode .sb-band { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.45) 30%, rgba(255, 255, 255, 0.45) 70%, transparent); }
@media (max-width: 420px) {
    .sb-eyebrow, .hero-badge { font-size: 0.64rem; letter-spacing: 0.05em; }
}

/* ---------- Squircles: icon buttons + eyebrow badges ---------- */
.nav-icon-btn,
.mobile-toggle,
.sb-drawer-icon,
.sb-social a,
.sb-sdlc-controls button,
.sb-top {
    border-radius: 32%;
    corner-shape: squircle;
}
/* Header buttons sit inside the pill nav next to the pill CTA, so they are full circles */
.header .nav-icon-btn,
.header .mobile-toggle,
.sb-drawer-head .sb-drawer-icon { border-radius: 50% !important; corner-shape: round; }
/* Round buttons get a soft ring (keyboard focus only) instead of the square default outline */
:is(.header .nav-icon-btn, .header .mobile-toggle, .sb-drawer-icon):focus { outline: none; }
:is(.header .nav-icon-btn, .header .mobile-toggle, .sb-drawer-icon):focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.35); border-color: var(--sky); }
@supports (corner-shape: squircle) {
    .nav-icon-btn, .mobile-toggle, .sb-drawer-icon, .sb-social a, .sb-sdlc-controls button, .sb-top { border-radius: 42%; }
}
.nav-icon-btn:hover,
.mobile-toggle:hover { transform: rotate(-8deg) scale(1.04); }

.hero-badge,
.sb-eyebrow {
    border-radius: 12px;
    corner-shape: squircle;
}
.hero-badge::before,
.sb-eyebrow::before { border-radius: 3px; }
@supports (corner-shape: squircle) {
    .hero-badge, .sb-eyebrow { border-radius: 16px; }
}
@media (max-width: 480px) {
    .hero-badge,
    .sb-eyebrow { max-width: 100%; white-space: normal; line-height: 1.5; text-wrap: balance; font-size: 0.62rem; letter-spacing: 0.04em; padding: 0.4rem 0.7rem 0.4rem 0.6rem; }
}

/* Mobile header: logo flush left, icon buttons paired at the far right */
.header .mobile-toggle { margin: 0; }
@media (max-width: 1080px) {
    .header .nav { padding: 0; }
    .header.scrolled .nav, .header.menu-open .nav { padding: 0 0.35rem 0 0.9rem; }
    .nav-actions { gap: 0.4rem; margin-left: auto; }
}

/* Icon buttons: no sticky hover tilt on touch screens */
.nav-icon-btn:hover,
.mobile-toggle:hover { transform: none; }
.nav-icon-btn:active,
.mobile-toggle:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
    .nav-icon-btn:hover,
    .mobile-toggle:hover { transform: rotate(-8deg) scale(1.04); }
}

/* ---------- No grid-line patterns: clean backgrounds, aurora glow only ---------- */
.sb-hero::before,
.hero-section::before,
.hero-small::before,
.post-header::before,
.enterprise-hero::before { background-image: none !important; }
.sb-casefile-art { background: radial-gradient(circle at 20% 0%, var(--tone-bg), transparent 65%) !important; }
.sb-post-art { background: radial-gradient(circle at 30% 20%, var(--tone-bg), transparent 70%) !important; }
.sb-plan-canvas { background: radial-gradient(circle at 50% 0%, rgba(41, 171, 226, 0.12), transparent 65%) !important; }

/* ==========================================================================
   Illustrations (ChatGPT image set, Nov 2026)
   Glow-heavy art sits on a dark "stage" in both themes; icons sit on the page.
   ========================================================================== */

/* Logo lockup */
.logo img.logo-full { height: 36px; width: auto; }
.sb-footer-brand .logo img.logo-full { height: 40px; }
@media (max-width: 400px) { .logo img.logo-full { height: 30px; } }
.nf-logo img.logo-full { height: 36px; }

/* Shared dark stage */
.sb-post-thumb,
.sb-post-art,
.sb-casefile-art,
.post-cover img,
.sb-city-banner,
.sb-journey-art {
    background-color: var(--ink) !important;
}

/* Blog cards */
.sb-post-thumb {
    display: block;
    margin: -1.4rem -1.5rem 1.1rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    border-bottom: 1px solid var(--border-subtle);
}
.sb-post-thumb img { width: 100%; height: 100%; padding: 0.5rem 0.75rem; object-fit: contain; transition: transform 0.7s var(--ease); }
.sb-post:hover .sb-post-thumb img,
.knowledge-card:hover .sb-post-thumb img { transform: scale(1.05); }
.knowledge-card .sb-post-thumb { margin: -1.8rem -1.8rem 1.2rem; }
.sb-post-art { padding: 0; overflow: hidden; }
.sb-post-art img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

/* Article cover */
.post-cover { max-width: 900px; margin: 0 auto clamp(1.5rem, 4vw, 2.5rem); }
.post-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

/* Portfolio case art */
.sb-casefiles .sb-casefile-art { height: 210px; }
.sb-casefile-art > img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 0.6rem 1rem;
    object-fit: contain;
    transition: transform 0.7s var(--ease);
}
.sb-casefile:hover .sb-casefile-art > img { transform: scale(1.05); }
.sb-casefile-art:has(> img) .sb-spark { display: none; }
.sb-casefiles .sb-casefile.is-featured .sb-casefile-art { height: auto; min-height: 320px; }
@media (max-width: 900px) { .sb-casefiles > .sb-casefile:not(.is-featured):last-child:nth-child(even) .sb-casefile-art { height: 210px; } }

/* Product + industry icons */
.sb-product-icon.has-img { width: 46px; height: 46px; background: none !important; }
.sb-product-icon.has-img img { width: 46px; height: 46px; }
.industry-card .industry-icon {
    display: block;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    transition: transform 0.5s var(--ease);
}
.industry-card:hover .industry-icon { transform: rotate(-6deg) scale(1.08); }

/* City banner */
.sb-city-band { padding: 0 0 clamp(2rem, 5vw, 3.5rem); }
.sb-city-banner {
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--border-subtle);
}
.sb-city-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 700px) { .sb-city-banner { aspect-ratio: 4 / 3; } }

/* About journey */
.sb-journey-art {
    margin: 0 0 2rem;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--border-subtle);
}
.sb-journey-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (max-width: 700px) { .sb-journey-art { aspect-ratio: 3 / 2; } }

/* Contact hero */
.sb-hero-art {
    display: block;
    width: clamp(130px, 18vw, 190px);
    height: auto;
    margin: 0 auto 1.2rem;
    animation: sb-art-float 6s ease-in-out infinite;
}

/* 404 */
@keyframes sb-art-float { 50% { transform: translateY(-8px) rotate(-3deg); } }
.nf-art { display: block; width: min(420px, 80vw); height: auto; margin: 0 auto -1.5rem; }

@media (prefers-reduced-motion: reduce) {
    .sb-hero-art { animation: none; }
    .sb-post-thumb img, .sb-casefile-art > img, .industry-card .industry-icon { transition: none; }
}

/* Mega-menu feature card: MLM Engine link */
.mega-feature a.mega-feature-link {
    display: inline-flex; align-items: center; justify-content: flex-start; align-self: flex-start;
    gap: 0.5rem; width: auto; margin: 0 0 1rem; padding: 0.5rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.82rem; font-weight: 600; line-height: 1; white-space: nowrap; color: #fff; text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.mega-feature a.mega-feature-link i { font-size: 0.78rem; color: var(--sky); transition: transform 0.2s var(--ease); }
.mega-feature a.mega-feature-link:hover { background: rgba(41, 171, 226, 0.18); border-color: var(--border-highlight); }
.mega-feature a.mega-feature-link:hover .fa-arrow-right { transform: translateX(3px); }

/* Mega-menu aside: two stacked cards (consult + MLM Engine) */
.mega-aside { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.mega-aside > .mega-feature { flex: 1 1 auto; }
.mega-aside > .mega-feature p { margin-bottom: 0.9rem; }
.mega-feature-engine {
    gap: 0.9rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(41, 171, 226, 0.28), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(47, 224, 122, 0.16), transparent 55%),
        var(--ink-3);
}
.mega-feature-engine strong { font-size: 1.05rem; }
.mega-feature-engine p { margin: 0.4rem 0 0; }
.mega-feature-engine .btn { align-self: flex-start; gap: 0.5rem; }
.mega-feature-engine .btn i { color: var(--sky); font-size: 0.8rem; }

/* Balance the two aside cards: equal height, matched to the link columns */
.mega-aside { contain: size; }
.mega-aside > .mega-feature { flex: 1 1 0; min-height: 0; padding: 1rem 1.1rem; gap: 0.6rem; justify-content: space-between; }
.mega-aside .mega-feature strong { font-size: 1.05rem; line-height: 1.25; display: block; }
.mega-aside .mega-feature p { margin: 0.35rem 0 0; font-size: 0.82rem; line-height: 1.45; }
.mega-aside .mega-feature .btn { width: 100%; justify-content: center; white-space: nowrap; gap: 0.5rem; }
.mega-aside .mega-feature-engine .btn { align-self: stretch; }

/* Hero: text-style plan link that sits on its own line under the buttons */
.sb-hero-actions .sb-plan-link {
    display: inline-flex; align-items: center; gap: 0.6rem; flex-basis: 100%; width: fit-content;
    padding: 0.2rem 0; font-weight: 600; color: var(--text-primary, #fff); text-decoration: none;
}
.sb-hero-actions .sb-plan-link i:first-child { color: var(--sky); }
.sb-hero-actions .sb-plan-link .fa-arrow-right { font-size: 0.85rem; color: var(--sky); transition: transform 0.2s var(--ease); }
.sb-hero-actions .sb-plan-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sb-hero-actions .sb-plan-link:hover .fa-arrow-right { transform: translateX(4px); }

/* Highlighted engine link (hero) */
.sb-hero-actions .sb-plan-link {
    position: relative; padding: 0.55rem 1.1rem 0.55rem 0.7rem; border-radius: 999px;
    border: 1px solid rgba(41, 171, 226, 0.45);
    background: linear-gradient(100deg, rgba(41, 171, 226, 0.2), rgba(18, 183, 106, 0.16));
    box-shadow: 0 0 0 4px rgba(41, 171, 226, 0.07), 0 10px 30px -12px rgba(41, 171, 226, 0.7);
    transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.sb-hero-actions .sb-plan-link i:first-child {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(41, 171, 226, 0.22); color: #7fd6ff; font-size: 0.85rem;
}
.sb-hero-actions .sb-plan-link::after {
    content: "Smart MLM Engine"; order: 3; padding: 0.18rem 0.5rem; border-radius: 999px;
    background: rgba(18, 183, 106, 0.2); border: 1px solid rgba(18, 183, 106, 0.4);
    color: #5ee6a0; font: 600 0.62rem var(--font-mono, monospace); letter-spacing: 0.08em; text-transform: uppercase;
}
.sb-hero-actions .sb-plan-link .fa-arrow-right { order: 4; }
.sb-hero-actions .sb-plan-link:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--sky); box-shadow: 0 0 0 5px rgba(41, 171, 226, 0.12), 0 14px 36px -12px rgba(41, 171, 226, 0.9); }
@media (max-width: 480px) { .sb-hero-actions .sb-plan-link::after { display: none; } }

/* Highlighted engine tile (quick actions) */
.sticky-conversion-bar .scb-actions > .scb-engine {
    border-color: rgba(41, 171, 226, 0.45); background: linear-gradient(100deg, rgba(41, 171, 226, 0.18), rgba(18, 183, 106, 0.14));
    color: var(--text-primary);
}

/* Industry cards on phones: compact horizontal rows (icon left, copy right) */
@media (max-width: 640px) {
    .industry-grid { gap: 0.65rem; }
    .industry-card.has-img {
        display: grid; grid-template-columns: 52px 1fr; column-gap: 0.9rem; align-items: center;
        min-height: 0; padding: 0.9rem 1rem; border-radius: 18px;
    }
    .industry-card.has-img .industry-icon { grid-row: 1 / span 2; width: 52px; height: 52px; margin: 0; }
    .industry-card.has-img h3 { margin: 0; font-size: 1.02rem; line-height: 1.2; align-self: end; }
    .industry-card.has-img p { margin: 0.2rem 0 0; font-size: 0.85rem; line-height: 1.45; align-self: start; }
}

/* Hero engine link: sits in the same row as the two buttons */
.sb-hero-actions .sb-plan-link { flex-basis: auto; width: auto; min-height: 70px; padding: 0.55rem 1.3rem 0.55rem 0.8rem; white-space: nowrap; }
.sb-hero-actions .sb-plan-link::after { display: none; }

/* Hero actions: keep all three on one row (tablet and up) */
@media (min-width: 641px) {
    .sb-hero-actions { flex-wrap: nowrap; gap: 0.6rem; }
    .sb-hero-actions .btn-lg { min-height: 56px; padding: 0 1.25rem; font-size: 0.95rem; white-space: nowrap; }
    .sb-hero-actions .sb-plan-link { min-height: 56px; padding: 0.35rem 1.1rem 0.35rem 0.55rem; gap: 0.5rem; font-size: 0.95rem; }
    .sb-hero-actions .sb-plan-link i:first-child { width: 28px; height: 28px; }
}

/* Phones: engine link matches the full-width stacked buttons */
@media (max-width: 640px) {
    .sb-hero-actions .sb-plan-link { flex: 1 1 100%; width: 100%; justify-content: center; min-height: 64px; }
}

/* Hero actions: slimmer buttons */
.sb-hero-actions .btn-lg { min-height: 46px; padding-top: 0; padding-bottom: 0; }
.sb-hero-actions .sb-plan-link { min-height: 46px; padding-top: 0.2rem; padding-bottom: 0.2rem; }
.sb-hero-actions .sb-plan-link i:first-child { width: 28px; height: 28px; }
@media (max-width: 640px) { .sb-hero-actions .sb-plan-link { min-height: 50px; } .sb-hero-actions .btn-lg { min-height: 50px; } }

/* Home: MLM engine tiles in one row, tighter */
#mlm-engine .sb-tile { min-height: 0; padding: 1.4rem; }
#mlm-engine .sb-tile h3 { font-size: 1.15rem; }
#mlm-engine .sb-tile p { font-size: 0.9rem; margin-bottom: 1rem; }
#mlm-engine .sb-tile .sb-tile-link { margin-top: auto; }

/* Mobile drawer: featured Smart MLM Engine link above the solution groups */
.sb-drawer-engine {
    display: flex; align-items: center; gap: .8rem; margin: 0 0 .55rem; padding: .85rem 1rem; border-radius: 16px;
    border: 1px solid rgba(41, 171, 226, .45); background: linear-gradient(100deg, rgba(41, 171, 226, .18), rgba(18, 183, 106, .14));
    color: var(--text-primary); text-decoration: none;
}
.sb-drawer-engine > i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: rgba(41, 171, 226, .22); color: #7fd6ff; }
.sb-drawer-engine span { flex: 1; min-width: 0; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.sb-drawer-engine small { display: block; margin-top: .15rem; font-weight: 400; font-size: .76rem; color: var(--text-secondary); }
.sb-drawer-engine > b { flex: none; font-size: .8rem; color: var(--sky); }
body.light-mode .sb-drawer-engine { background: linear-gradient(100deg, rgba(41, 171, 226, .12), rgba(18, 183, 106, .1)); }

/* Hosting and infrastructure list (home + MLM features) */
.sb-hosting { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.sb-hosting li { --tone: var(--sky); display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1.05rem; border-radius: 18px; border: 1px solid var(--border-subtle); background: linear-gradient(165deg, rgba(230,238,248,.06), rgba(230,238,248,.02)); transition: transform .3s var(--ease), border-color .3s; }
.sb-hosting li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tone) 45%, transparent); }
.sb-hosting li.tone-emerald { --tone: var(--emerald); }
.sb-hosting li.tone-amber { --tone: var(--amber); }
.sb-hosting li.tone-coral { --tone: var(--coral); }
.sb-hosting li > i { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent); }
.sb-hosting strong { display: block; font-size: .98rem; line-height: 1.25; color: var(--text-primary); }
.sb-hosting span { display: block; margin-top: .25rem; font-size: .84rem; line-height: 1.45; color: var(--text-secondary); }
body.light-mode .sb-hosting li { background: rgba(255,255,255,.75); }
@media (max-width: 1000px) { .sb-hosting { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sb-hosting { grid-template-columns: minmax(0, 1fr); gap: .55rem; } .sb-hosting li { padding: .85rem .95rem; } }
/* 11 hosting items: first one spans two columns to keep the grid even */
@media (min-width: 1001px) { .sb-hosting li:first-child { grid-column: span 2; } }

/* Footer CTA: quick links to the engine and key pages, tidier actions */
.sb-cta-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1.1rem; }
.sb-cta-links > span { margin-right: .3rem; font: 500 .66rem var(--font-mono, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); }
.sb-cta-links a { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .8rem; border-radius: 999px; border: 1px solid var(--border-subtle); background: rgba(230,238,248,.04); color: var(--text-secondary); font-size: .82rem; font-weight: 500; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.sb-cta-links a i { font-size: .72rem; color: var(--sky); }
.sb-cta-links a:hover { border-color: var(--border-highlight); color: var(--text-primary); background: rgba(41,171,226,.1); }
.sb-cta-links a:first-of-type { border-color: rgba(41,171,226,.45); background: linear-gradient(100deg, rgba(41,171,226,.16), rgba(18,183,106,.12)); color: var(--text-primary); }
.sb-footer-cta .sb-cta-wa { border-color: rgba(37,211,102,.4); background: rgba(37,211,102,.1); }
.sb-footer-cta .sb-cta-wa i { color: #25d366; }
.sb-footer-cta .sb-cta-wa:hover { background: rgba(37,211,102,.18); border-color: #25d366; }
.sb-footer-cta .sb-cta-actions { align-self: center; }
body.light-mode .sb-cta-links a { background: rgba(255,255,255,.6); }
.sb-cta-links > span { flex: 0 0 100%; margin: 0 0 .15rem; }

/* ================= Credibility, confidentiality, engineering standards ================= */
.sb-cred { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.sb-cred li { --tone: var(--sky); position: relative; padding: 1.15rem 1.2rem 1.2rem; border-radius: 18px; border: 1px solid var(--border-subtle);
   background: linear-gradient(170deg, color-mix(in srgb, var(--tone) 8%, transparent), rgba(230,238,248,.015) 60%); overflow: hidden;
   animation: sb-cred-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * .08s); transition: transform .3s var(--ease), border-color .3s; }
.sb-cred li::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--tone), transparent 85%); }
.sb-cred li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tone) 40%, transparent); }
.sb-cred li.tone-emerald { --tone: var(--emerald); } .sb-cred li.tone-amber { --tone: var(--amber); } .sb-cred li.tone-coral { --tone: var(--coral); }
.sb-cred i { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: .9rem; border-radius: 12px; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 28%, transparent); }
.sb-cred strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; color: var(--text-primary); }
.sb-cred span { display: block; margin-top: .35rem; font-size: .86rem; line-height: 1.5; color: var(--text-secondary); }
@keyframes sb-cred-in { from { opacity: 0; transform: translateY(10px); } }

.sb-confid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; padding: clamp(1.4rem, 3.5vw, 2.6rem); border-radius: 28px; border: 1px solid var(--border-subtle);
   background: radial-gradient(circle at 0% 0%, rgba(41,171,226,.14), transparent 55%), radial-gradient(circle at 100% 100%, rgba(18,183,106,.1), transparent 50%), var(--bg-card); }
.sb-confid h2 { margin: .8rem 0 1rem; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.sb-confid p { margin: 0 0 .9rem; color: var(--text-secondary); }
.sb-confid p:last-child { margin-bottom: 0; }
.sb-confid-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.sb-confid-list li { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--border-subtle); background: rgba(230,238,248,.03); font-size: .9rem; line-height: 1.45; color: var(--text-secondary); }
.sb-confid-list li i { flex: none; margin-top: .15rem; color: var(--emerald); }
.sb-confid-list li strong { color: var(--text-primary); }
.sb-confid-note { margin-top: .4rem !important; font-size: .86rem; }

.sb-eng { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 0; padding: 0; list-style: none; }
.sb-eng li { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .85rem; align-items: start; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--border-subtle); background: rgba(230,238,248,.03); }
.sb-eng li > i { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--sky); background: rgba(41,171,226,.12); }
.sb-eng h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.sb-eng p { grid-column: 2 / -1; margin: 0; font-size: .86rem; line-height: 1.5; color: var(--text-secondary); }
.sb-status { align-self: start; padding: .18rem .55rem; border-radius: 999px; font: 600 .62rem var(--font-mono, monospace); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.sb-status.is-built { color: #2fd88a; background: rgba(18,183,106,.14); border: 1px solid rgba(18,183,106,.35); }
.sb-status.is-goal { color: #ffb84d; background: rgba(255,164,27,.12); border: 1px solid rgba(255,164,27,.35); }
.sb-eng-key { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; margin: 1.1rem 0 0; padding: .9rem 1.1rem; border-radius: 14px; border: 1px dashed var(--border-subtle); font-size: .85rem; color: var(--text-secondary); }
.sb-eng-key .sb-status { margin-right: .4rem; }
body.light-mode .sb-cred li, body.light-mode .sb-eng li, body.light-mode .sb-confid-list li { background: rgba(255,255,255,.75); }
body.light-mode .sb-status.is-built { color: #0b8a4f; }
body.light-mode .sb-status.is-goal { color: #a8620a; }
@media (max-width: 1000px) { .sb-cred { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sb-confid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .sb-eng { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .sb-cred { grid-template-columns: minmax(0, 1fr); } .sb-eng li { grid-template-columns: auto 1fr; } .sb-eng .sb-status { grid-column: 2; grid-row: 3; justify-self: start; margin-top: .3rem; } }
@media (prefers-reduced-motion: reduce) { .sb-cred li { animation: none; } .sb-cred li:hover { transform: none; } }
.sb-eng li > i { grid-column: 1; grid-row: 1 / span 2; }
.sb-eng li > h3 { grid-column: 2; grid-row: 1; align-self: center; }
.sb-eng li > .sb-status { grid-column: 3; grid-row: 1; align-self: center; }
.sb-eng li > p { grid-column: 2 / -1; grid-row: 2; }
@media (max-width: 520px) { .sb-eng li > p { grid-column: 2; } .sb-eng li > .sb-status { grid-column: 2; grid-row: 3; justify-self: start; } }

/* Credibility v2: one credential strip, the fact itself is the hero of each cell */
.sb-cred { gap: 0; border: 1px solid var(--border-subtle); border-radius: 24px; overflow: hidden;
   background: linear-gradient(170deg, rgba(230,238,248,.05), rgba(230,238,248,.015)); }
.sb-cred li, .sb-cred li:hover { display: flex; flex-direction: column; padding: 1.6rem 1.5rem 1.5rem; border: 0; border-radius: 0; transform: none; overflow: visible;
   background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--tone) 10%, transparent), transparent 60%); }
.sb-cred li + li { border-left: 1px solid var(--border-subtle); }
.sb-cred li::before { inset: 0 auto auto 1.5rem; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--tone); }
.sb-cred-k { font: 500 .66rem var(--font-mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--text-tertiary); }
.sb-cred .sb-cred-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; margin: .7rem 0 .9rem; min-height: 3.2rem;
   font: 700 clamp(2.3rem, 3.6vw, 3rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--tone); }
.sb-cred .sb-cred-v i { display: inline; width: auto; height: auto; margin: 0; background: none; box-shadow: none; border-radius: 0; font-size: .78em; color: var(--tone); }
.sb-cred .sb-cred-v small { font: 500 .8rem var(--font-body); letter-spacing: 0; color: var(--text-secondary); }
.sb-cred strong { font-size: 1rem; }
.sb-cred .sb-cred-t { display: block; margin-top: .35rem; font-size: .86rem; line-height: 1.5; color: var(--text-secondary); }
.sb-cred li:hover { background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--tone) 16%, transparent), transparent 65%); }
body.light-mode .sb-cred { background: rgba(255,255,255,.75); }
body.light-mode .sb-cred li { background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--tone) 9%, transparent), transparent 60%); }
@media (max-width: 1000px) {
   .sb-cred li:nth-child(3) { border-left: 0; }
   .sb-cred li:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
}
@media (max-width: 520px) {
   .sb-cred li + li { border-left: 0; border-top: 1px solid var(--border-subtle); }
   .sb-cred li { padding: 1.3rem 1.2rem; }
   .sb-cred .sb-cred-v { min-height: 0; margin: .5rem 0 .6rem; }
}

/* Engineering: synthetic-data test reports (status: not yet published) */
.sb-evidence { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border-subtle); }
.sb-evidence-title { margin: 0 0 .4rem; font-size: 1.2rem; }
.sb-evidence-intro { max-width: 70ch; margin: 0 0 1rem; font-size: .9rem; color: var(--text-secondary); }
.sb-status.is-pending { color: var(--text-secondary); background: rgba(230,238,248,.06); border: 1px dashed var(--border-highlight, rgba(230,238,248,.25)); }
.sb-eng li > p.sb-evidence-pass { grid-row: 3; margin-top: .45rem; font-size: .82rem; color: var(--text-secondary); }
.sb-evidence-pass b { color: var(--text-primary); font-weight: 600; }
body.light-mode .sb-status.is-pending { color: #5b6b80; }
@media (max-width: 520px) { .sb-eng li > p.sb-evidence-pass { grid-row: 4; } .sb-evidence .sb-eng li > .sb-status { grid-row: 5; } }

/* ---------- Mobile hero: clear CTA hierarchy + compact trust strip ---------- */
@media (max-width: 720px) {
    .sb-hero-actions { gap: 0.6rem; }
    /* Primary CTA stays full width; the two secondary actions share one row */
    .sb-hero-actions .btn-gradient { flex: 1 1 100%; }
    .sb-hero-actions .btn-secondary,
    .sb-hero-actions .sb-plan-link {
        flex: 1 1 0; min-width: 0; width: auto; min-height: 48px;
        padding: 0 0.75rem; gap: 0.45rem; justify-content: center;
        font-size: 0.92rem; white-space: nowrap;
    }
    /* Calmer secondary link: no glow competing with the primary button */
    .sb-hero-actions .sb-plan-link {
        box-shadow: none; border-color: rgba(41, 171, 226, 0.35);
        background: rgba(41, 171, 226, 0.08);
    }
    .sb-hero-actions .sb-plan-link i:first-child { display: none; }
    .sb-hero-actions .sb-plan-link .fa-arrow-right { font-size: 0.78rem; }
}
@media (max-width: 359px) {
    .sb-hero-actions .btn-secondary,
    .sb-hero-actions .sb-plan-link { flex-basis: 100%; }
}

/* Assurances: one glass strip with three columns instead of three stacked pills */
@media (max-width: 720px) {
    .sb-assurance {
        flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 0;
        margin-top: 1.6rem; padding: 0.85rem 0.25rem;
        border: 1px solid var(--border-subtle); border-radius: 18px;
        background: var(--bg-card);
        backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
        box-shadow: var(--glass-edge);
    }
    .sb-assurance li {
        flex: 1 1 0; min-width: 0;
        flex-direction: column; justify-content: flex-start; align-items: center; gap: 0.45rem;
        padding: 0 0.35rem; border: 0; border-radius: 0; background: none;
        backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
        font-size: 0.74rem; line-height: 1.3; text-align: center;
        white-space: normal; text-wrap: balance; color: var(--text-secondary);
    }
    .sb-assurance li + li { border-left: 1px solid var(--border-subtle); }
    .sb-assurance li:hover { transform: none; box-shadow: none; }
    .sb-a-icon { width: 32px; height: 32px; font-size: 0.85rem; }
}

/* Mobile hero: one shared squircle radius for CTAs and the trust strip */
@media (max-width: 720px) {
    .sb-hero-actions .btn,
    .sb-hero-actions .sb-plan-link,
    .sb-assurance { --sb-sq: 16px; border-radius: var(--sb-sq); corner-shape: squircle; }
    @supports (corner-shape: squircle) {
        .sb-hero-actions .btn,
        .sb-hero-actions .sb-plan-link,
        .sb-assurance { --sb-sq: 22px; }
    }
}

/* Wider phones / small tablets: room for the plan-link icon again */
@media (min-width: 481px) and (max-width: 720px) {
    .sb-hero-actions .sb-plan-link i:first-child { display: grid; width: 26px; height: 26px; font-size: 0.75rem; }
    .sb-assurance li { font-size: 0.82rem; }
}

/* ---------- Industry cards: polish (tone accents, icon tile, corner glow) ---------- */
.industry-grid .industry-card.has-img { --tone: 41, 171, 226; isolation: isolate; }
.industry-grid .industry-card.has-img:nth-child(4n+2) { --tone: 18, 183, 106; }
.industry-grid .industry-card.has-img:nth-child(4n+3) { --tone: 255, 77, 94; }
.industry-grid .industry-card.has-img:nth-child(4n+4) { --tone: 255, 164, 27; }
.industry-grid .industry-card.has-img::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(var(--tone), 0.13), transparent 55%),
        radial-gradient(80% 60% at 100% 100%, rgba(var(--tone), 0.05), transparent 60%);
    opacity: 0.8; transition: opacity 0.4s var(--ease);
}
.industry-grid .industry-card.has-img .industry-icon {
    box-sizing: border-box; width: 72px; height: 72px; padding: 9px; margin-bottom: 1.25rem;
    border-radius: 20px; corner-shape: squircle;
    background: linear-gradient(150deg, rgba(var(--tone), 0.2), rgba(var(--tone), 0.05));
    box-shadow: inset 0 0 0 1px rgba(var(--tone), 0.28), 0 12px 28px -16px rgba(var(--tone), 0.7);
    transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
}
.industry-grid .industry-card.has-img h3 { margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.industry-grid .industry-card.has-img p { color: var(--text-secondary); line-height: 1.6; }
.industry-grid .industry-card.has-img:hover {
    border-color: rgba(var(--tone), 0.42);
    box-shadow: var(--glass-edge), 0 24px 50px -28px rgba(var(--tone), 0.65);
}
.industry-grid .industry-card.has-img:hover::after { opacity: 1; }
.industry-grid .industry-card.has-img:hover .industry-icon {
    transform: translateY(-3px) rotate(-4deg);
    box-shadow: inset 0 0 0 1px rgba(var(--tone), 0.45), 0 16px 32px -14px rgba(var(--tone), 0.85);
}
@media (max-width: 640px) {
    .industry-grid .industry-card.has-img .industry-icon { width: 52px; height: 52px; padding: 6px; margin: 0; border-radius: 15px; }
    .industry-grid .industry-card.has-img::after { background: radial-gradient(90% 120% at 0% 50%, rgba(var(--tone), 0.12), transparent 60%); }
}
@media (prefers-reduced-motion: reduce) { .industry-grid .industry-card.has-img:hover .industry-icon { transform: none; } }

/* Industry cards: centred layout (tablet and up; phones keep icon-left rows) */
@media (min-width: 641px) {
    .industry-grid .industry-card.has-img { text-align: center; }
    .industry-grid .industry-card.has-img .industry-icon { margin-inline: auto; }
    .industry-grid .industry-card.has-img p { max-width: 30ch; margin-inline: auto; text-wrap: balance; }
    .industry-grid .industry-card.has-img::after {
        background:
            radial-gradient(90% 70% at 50% 0%, rgba(var(--tone), 0.14), transparent 60%),
            radial-gradient(70% 50% at 50% 100%, rgba(var(--tone), 0.04), transparent 60%);
    }
}

/* ---------- Footer CTA: revamp (bloom backdrop + action panel) ---------- */
.sb-footer-cta {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: clamp(2rem, 4vw, 4rem);
    overflow: hidden;
    isolation: isolate;
    padding: clamp(1.8rem, 4.5vw, 3.4rem);
    background:
        radial-gradient(60% 90% at 0% 0%, rgba(41, 171, 226, 0.2), transparent 60%),
        radial-gradient(50% 80% at 100% 100%, rgba(18, 183, 106, 0.12), transparent 60%),
        var(--bg-card);
}
.sb-footer-cta > * { position: relative; z-index: 1; }
.sb-footer-cta::before { z-index: 2; }
/* Brand bloom, slowly turning behind the action panel */
.sb-footer-cta::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    width: clamp(380px, 46vw, 620px); aspect-ratio: 1;
    right: -12%; top: 50%; translate: 0 -50%;
    background: conic-gradient(from 0deg, var(--sky), var(--emerald), var(--amber), var(--coral), var(--sky));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200'%3E%3Cg fill='white'%3E%3Cpath transform='rotate(0)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(22)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(45)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(67)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(90)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(112)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(135)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(157)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(180)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(202)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(225)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(247)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(270)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(292)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(315)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(337)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200'%3E%3Cg fill='white'%3E%3Cpath transform='rotate(0)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(22)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(45)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(67)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(90)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(112)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(135)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(157)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(180)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(202)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(225)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(247)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(270)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(292)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(315)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3Cpath transform='rotate(337)' d='M0 0C20-38 15-78 0-99C-15-78-20-38 0 0Z'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
    opacity: 0.13;
    animation: cta-bloom 120s linear infinite;
}
@keyframes cta-bloom { to { rotate: 360deg; } }
.sb-footer-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.sb-footer-cta > div:first-child > p { max-width: 56ch; color: var(--text-secondary); }

/* Action panel */
.sb-footer-cta .sb-cta-actions {
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: center; gap: 0.7rem;
    padding: 1.25rem; border-radius: 22px; corner-shape: squircle;
    border: 1px solid var(--border-subtle);
    background: linear-gradient(160deg, rgba(8, 16, 30, 0.72), rgba(8, 16, 30, 0.45));
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--glass-edge), 0 24px 50px -30px rgba(0, 0, 0, 0.8);
}
.sb-footer-cta .sb-cta-actions .btn { width: 100%; justify-content: center; min-height: 52px; }
.sb-footer-cta .sb-cta-actions::after {
    content: "Free consultation · NDA before discovery";
    margin-top: 0.2rem; text-align: center;
    font: 500 0.64rem var(--font-mono, monospace); letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-tertiary);
}
body.light-mode .sb-footer-cta .sb-cta-actions { background: rgba(255, 255, 255, 0.62); }
body.light-mode .sb-footer-cta::after { opacity: 0.1; }

@media (max-width: 900px) {
    .sb-footer-cta { grid-template-columns: minmax(0, 1fr); }
    .sb-footer-cta .sb-cta-actions { flex-wrap: nowrap; }
    .sb-footer-cta::after { right: -30%; top: auto; bottom: -25%; translate: none; width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .sb-footer-cta::after { animation: none; } }

/* Footer CTA on phones: no nested panel, one-line buttons, tidy chip grid */
@media (max-width: 640px) {
    .sb-footer-cta { gap: 1.6rem; padding: 1.6rem 1.25rem; border-radius: 24px; }
    .sb-footer-cta h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
    .sb-footer-cta .sb-cta-actions {
        padding: 0; border: 0; background: none; box-shadow: none;
        backdrop-filter: none; -webkit-backdrop-filter: none;
    }
    .sb-footer-cta .sb-cta-actions .btn {
        min-height: 52px; padding: 0 1.1rem; gap: 0.55rem;
        font-size: 1rem; white-space: nowrap; border-radius: 16px; corner-shape: squircle;
    }
    .sb-footer-cta .sb-cta-actions::after { white-space: nowrap; font-size: 0.6rem; letter-spacing: 0.06em; }

    .sb-cta-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
    .sb-cta-links > span { grid-column: 1 / -1; }
    .sb-cta-links a { justify-content: center; min-height: 40px; padding: 0.35rem 0.6rem; white-space: nowrap; font-size: 0.85rem; }
    .sb-cta-links a:first-of-type { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
    .sb-footer-cta .sb-cta-actions::after { white-space: normal; }
}

/* Footer CTA chips on phones: squircle to match the buttons */
@media (max-width: 640px) {
    .sb-cta-links a { border-radius: 14px; corner-shape: squircle; }
    @supports (corner-shape: squircle) { .sb-cta-links a { border-radius: 18px; } }
}

/* ---------- Light mode: contrast fixes ---------- */
/* Gradient CTAs: dark ink on the light sky→emerald gradient (white text was ~2:1) */
body.light-mode .btn-gradient,
body.light-mode .btn-primary { color: #04121f; box-shadow: 0 12px 28px -12px rgba(41, 171, 226, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
body.light-mode .btn-gradient:hover,
body.light-mode .btn-primary:hover { color: #1a0604; }

/* Hero plan link: icon disc was pale-on-pale */
body.light-mode .sb-hero-actions .sb-plan-link {
    border-color: rgba(11, 127, 179, 0.4);
    background: linear-gradient(100deg, rgba(41, 171, 226, 0.14), rgba(18, 183, 106, 0.1));
    box-shadow: 0 10px 24px -16px rgba(11, 127, 179, 0.6);
}
body.light-mode .sb-hero-actions .sb-plan-link i:first-child { background: rgba(11, 127, 179, 0.14); color: #0b6f9c; }
body.light-mode .sb-hero-actions .sb-plan-link .fa-arrow-right { color: #0b6f9c; }

/* Headline gradient word: deeper stops so the amber end stays legible on light */
body.light-mode .sb-rotator,
body.light-mode .text-gradient {
    background-image: linear-gradient(90deg, #0b7fb3, #0e9a5e, #c26a00, #d43c4c, #0b7fb3);
    background-size: 200% auto;
}

/* Footer CTA "Or start with": one connected squircle strip (tablet and up) */
@media (min-width: 641px) {
    .sb-cta-links { gap: 0; }
    .sb-cta-links > span { margin-bottom: 0.55rem; }
    .sb-cta-links a {
        position: relative; height: 46px; padding: 0 1.05rem; border-radius: 0; margin: 0;
        background: var(--bg-card);
    }
    .sb-cta-links a + a { margin-left: -1px; }
    .sb-cta-links a:first-of-type { border-radius: 16px 0 0 16px; corner-shape: squircle; }
    .sb-cta-links a:last-of-type { border-radius: 0 16px 16px 0; corner-shape: squircle; }
    @supports (corner-shape: squircle) {
        .sb-cta-links a:first-of-type { border-radius: 22px 0 0 22px; }
        .sb-cta-links a:last-of-type { border-radius: 0 22px 22px 0; }
    }
    .sb-cta-links a:hover, .sb-cta-links a:focus-visible, .sb-cta-links a:first-of-type { z-index: 1; }
    body.light-mode .sb-cta-links a { background: rgba(255, 255, 255, 0.75); }
    body.light-mode .sb-cta-links a:first-of-type { background: linear-gradient(100deg, rgba(41, 171, 226, 0.14), rgba(18, 183, 106, 0.1)); }
}

/* Commitments strip: centred */
.sb-trust-strip { justify-content: center; }

/* ---------- Client confidentiality: polish ---------- */
.sb-confid {
    align-items: center; overflow: hidden; position: relative; isolation: isolate;
    border-radius: 28px; corner-shape: squircle;
}
@supports (corner-shape: squircle) { .sb-confid { border-radius: 36px; } }
.sb-confid h2 { line-height: 1.12; letter-spacing: -0.02em; }
.sb-confid > div:first-child > p { max-width: 60ch; }
.sb-confid > div:first-child > p:first-of-type { font-size: 1.06rem; color: var(--text-primary); opacity: 0.85; }
/* Faint lock watermark behind the copy */
.sb-confid::after {
    content: "\f023"; font: 900 clamp(14rem, 26vw, 22rem)/1 "Font Awesome 6 Free";
    position: absolute; z-index: -1; right: -2%; bottom: -12%; color: var(--emerald); opacity: 0.035; pointer-events: none;
}
.sb-confid-list { gap: 0.7rem; }
.sb-confid-list li {
    --tone: 41, 171, 226;
    gap: 0.95rem; align-items: center; padding: 1rem 1.1rem;
    border-radius: 18px; corner-shape: squircle; font-size: 0.92rem; line-height: 1.55;
    transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.sb-confid-list li:nth-child(2) { --tone: 18, 183, 106; }
.sb-confid-list li:nth-child(3) { --tone: 255, 164, 27; }
.sb-confid-list li i {
    display: grid; place-items: center; width: 42px; height: 42px; margin: 0;
    border-radius: 14px; corner-shape: squircle; font-size: 0.95rem;
    color: rgb(var(--tone)); background: rgba(var(--tone), 0.13); box-shadow: inset 0 0 0 1px rgba(var(--tone), 0.28);
}
.sb-confid-list li strong { display: block; margin-bottom: 0.1rem; font-size: 0.98rem; }
.sb-confid-list li:hover { transform: translateX(3px); border-color: rgba(var(--tone), 0.4); box-shadow: 0 14px 30px -20px rgba(var(--tone), 0.7); }
.sb-confid-note { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem !important; padding-left: 0.2rem; color: var(--text-tertiary) !important; }
.sb-confid-note::before { content: "\f3ed"; font: 900 0.8rem "Font Awesome 6 Free"; color: var(--emerald); }
body.light-mode .sb-confid::after { opacity: 0.05; }
body.light-mode .sb-confid-list li i { color: rgb(var(--tone)); filter: saturate(1.1) brightness(0.9); }
@media (prefers-reduced-motion: reduce) { .sb-confid-list li:hover { transform: none; } }

/* ---------- Footer: revamp (proof stats, grouped nav, contact panel) ---------- */
.sb-footer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.3fr);
    gap: 2.5rem 2.2rem; align-items: start;
}
.sb-footer-brand .logo img.logo-full { height: 32px; width: auto; }
.sb-footer-brand p.sb-footer-lede { margin: 1rem 0 1.3rem; max-width: 34ch; font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); }
.sb-footer-lede .sb-tagline { display: block; margin-bottom: 0.15rem; color: var(--text-primary); }

/* Proof stats */
.sb-footer-grid ul.sb-footer-proof {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 1.1rem; max-width: 340px;
    border: 1px solid var(--border-subtle); border-radius: 18px; corner-shape: squircle; overflow: hidden;
    background: var(--bg-card);
}
.sb-footer-proof li { display: grid; gap: 0.15rem; padding: 0.8rem 0.5rem; text-align: center; }
.sb-footer-proof li + li { box-shadow: inset 1px 0 0 var(--border-subtle); }
.sb-footer-proof b {
    font: 700 1.2rem/1.1 var(--font-display, inherit); letter-spacing: -0.02em;
    background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sb-footer-proof span { font: 500 0.58rem var(--font-mono, monospace); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }

/* Engineering assurances */
.sb-footer-grid ul.sb-footer-assure { gap: 0.4rem; }
.sb-footer-assure li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.84rem; color: var(--text-secondary); }
.sb-footer-assure i { width: 1rem; text-align: center; font-size: 0.78rem; color: var(--emerald); }

/* Nav grouping */
.sb-footer-sub { margin: 0 0 0.55rem; font: 500 0.62rem var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); }
.sb-footer-grid ul + .sb-footer-sub { margin-top: 1.2rem; }
.sb-footer-grid li.is-key a { color: var(--text-primary); font-weight: 600; }
.sb-footer-grid li.is-key a::after {
    content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 0.45rem; vertical-align: middle;
    border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.18);
}

/* Contact panel */
.sb-footer-contact {
    padding: 1.25rem; border: 1px solid var(--border-subtle); border-radius: 22px; corner-shape: squircle;
    background:
        radial-gradient(90% 60% at 100% 0%, rgba(41, 171, 226, 0.1), transparent 60%),
        var(--bg-card);
    box-shadow: var(--glass-edge);
}
.sb-footer-contact h3 { margin-top: 0; }
.sb-footer-quick { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.sb-footer-quick a {
    position: relative; flex: 1; display: grid; place-items: center; height: 44px;
    border: 1px solid var(--border-subtle); border-radius: 14px; corner-shape: squircle;
    background: rgba(230, 238, 248, 0.04); color: var(--text-primary); font-size: 1.05rem;
    transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.sb-footer-quick a:hover, .sb-footer-quick a:focus-visible { color: var(--sky); border-color: rgba(41, 171, 226, 0.5); background: rgba(41, 171, 226, 0.1); transform: translateY(-2px); }
.sb-footer-quick a.is-wa { color: #25d366; border-color: rgba(37, 211, 102, 0.35); background: rgba(37, 211, 102, 0.08); }
.sb-footer-quick a.is-wa:hover, .sb-footer-quick a.is-wa:focus-visible { color: #25d366; border-color: #25d366; background: rgba(37, 211, 102, 0.16); }
/* Tooltips */
.sb-footer-quick a::after {
    content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 4px;
    padding: 0.35rem 0.6rem; border-radius: 8px; white-space: nowrap; pointer-events: none;
    font: 500 0.75rem var(--font-body, inherit); color: #f4f8fc; background: #0b1424; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
    opacity: 0; transition: opacity 0.18s, translate 0.18s; z-index: 5;
}
.sb-footer-quick a:hover::after, .sb-footer-quick a:focus-visible::after { opacity: 1; translate: -50% 0; }

.sb-footer-nap { display: grid; gap: 0.5rem; font-style: normal; }
.sb-footer-nap a, .sb-footer-nap span { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.86rem; line-height: 1.45; color: var(--text-secondary); }
.sb-footer-nap a:hover { color: var(--text-primary); }
.sb-footer-nap i { width: 1rem; margin-top: 0.2rem; text-align: center; font-size: 0.78rem; color: var(--sky); }

.sb-footer-areas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--border-subtle); }
.sb-footer-areas span { margin-right: 0.2rem; font: 500 0.62rem var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); }
.sb-footer-grid .sb-footer-areas a {
    padding: 0.2rem 0.6rem; border-radius: 9px; border: 1px solid var(--border-subtle);
    font-size: 0.8rem; color: var(--text-secondary); transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sb-footer-grid .sb-footer-areas a:hover { color: var(--text-primary); border-color: var(--border-highlight); background: rgba(41, 171, 226, 0.08); }

/* Bottom bar */
.sb-footer-bottom nav a { color: var(--text-tertiary); font-size: 0.85rem; }

/* Light mode */
body.light-mode .sb-footer-proof, body.light-mode .sb-footer-grid ul.sb-footer-proof { background: rgba(255, 255, 255, 0.75); }
body.light-mode .sb-footer-contact { background: radial-gradient(90% 60% at 100% 0%, rgba(41, 171, 226, 0.08), transparent 60%), rgba(255, 255, 255, 0.75); }
body.light-mode .sb-footer-quick a { background: rgba(255, 255, 255, 0.85); }
body.light-mode .sb-footer-proof b { background-image: linear-gradient(90deg, #0b7fb3, #0e9a5e, #c26a00); }

/* Responsive */
@media (max-width: 1180px) {
    .sb-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sb-footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: center; }
    .sb-footer-brand > .logo, .sb-footer-brand > .sb-footer-lede { grid-column: 1; }
    .sb-footer-brand > .sb-footer-proof { grid-column: 2; grid-row: 1 / span 2; width: 340px; margin: 0; }
    .sb-footer-brand > .sb-footer-assure { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.4rem; }
    .sb-footer-contact { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.5rem; align-items: start; }
    .sb-footer-contact h3 { grid-column: 1 / -1; }
    .sb-footer-quick { margin: 0; }
    .sb-footer-areas { margin: 0; padding: 0; border: 0; }
}
@media (max-width: 720px) {
    .sb-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.4rem; }
    .sb-footer-brand { display: block; }
    .sb-footer-brand > .sb-footer-proof { width: auto; max-width: none; margin: 0 0 1rem; }
    .sb-footer-brand > .sb-footer-assure { flex-direction: column; }
    .sb-footer-contact { display: block; }
    .sb-footer-quick { margin-bottom: 1rem; }
    .sb-footer-areas { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--border-subtle); }
}
@media (max-width: 420px) {
    .sb-footer-grid > div:nth-child(4) { grid-column: 1 / -1; }
}
@media (hover: none) { .sb-footer-quick a::after { display: none; } }

/* Footer proof stats: full-width band above the commitment pills */
.sb-footer .sb-footer-proof {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
    margin: 0 0 1.6rem; padding: 0; list-style: none; overflow: hidden;
    border: 1px solid var(--border-subtle); border-radius: 22px; corner-shape: squircle;
    background: var(--bg-card); box-shadow: var(--glass-edge);
}
@supports (corner-shape: squircle) { .sb-footer .sb-footer-proof { border-radius: 30px; } }
.sb-footer .sb-footer-proof li { position: relative; display: grid; gap: 0.3rem; padding: 1.4rem 1rem 1.5rem; text-align: center; }
.sb-footer .sb-footer-proof li + li { box-shadow: inset 1px 0 0 var(--border-subtle); }
.sb-footer .sb-footer-proof li::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 36%; height: 2px; translate: -50% 0;
    border-radius: 2px; background: var(--brand-gradient); opacity: 0.85;
}
.sb-footer .sb-footer-proof b { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1; }
.sb-footer .sb-footer-proof span { font-size: 0.68rem; }
body.light-mode .sb-footer .sb-footer-proof { background: rgba(255, 255, 255, 0.75); }
@media (max-width: 1180px) { .sb-footer-brand { display: block; } }
@media (max-width: 520px) {
    .sb-footer .sb-footer-proof li { padding: 1rem 0.4rem 1.1rem; }
    .sb-footer .sb-footer-proof span { font-size: 0.56rem; letter-spacing: 0.05em; }
}

/* ---------- Footer nav as full-width rows of pills ---------- */
.sb-footer .sb-footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas: "brand contact" "ds ds" "sol sol" "co co";
    gap: 0 3rem;
}
.sb-footer .sb-footer-brand { grid-area: brand; align-self: center; display: block; }
.sb-footer .sb-footer-grid > div:nth-child(2) { grid-area: ds; }
.sb-footer .sb-footer-grid > div:nth-child(3) { grid-area: sol; }
.sb-footer .sb-footer-grid > div:nth-child(4) { grid-area: co; }
.sb-footer .sb-footer-contact { grid-area: contact; margin-bottom: 2rem; }

/* Contact panel: channels + areas left, details right */
.sb-footer .sb-footer-contact {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas: "h h" "quick nap" "areas nap"; gap: 0.2rem 1.6rem; align-items: start;
}
.sb-footer .sb-footer-contact h3 { grid-area: h; }
.sb-footer .sb-footer-quick { grid-area: quick; margin: 0 0 0.9rem; }
.sb-footer .sb-footer-nap { grid-area: nap; }
.sb-footer .sb-footer-areas { grid-area: areas; margin: 0; padding: 0; border: 0; }

/* Nav rows */
.sb-footer .sb-footer-grid > div:is(:nth-child(2), :nth-child(3), :nth-child(4)) {
    display: grid; grid-template-columns: 170px auto minmax(0, 1fr); column-gap: 1rem; align-items: center;
    padding: 1rem 0; border-top: 1px solid var(--border-subtle);
}
.sb-footer .sb-footer-grid > div:nth-child(4) { border-bottom: 1px solid var(--border-subtle); margin-bottom: 2rem; }
.sb-footer .sb-footer-grid > div > h3 { grid-column: 1; grid-row: 1 / span 2; margin: 0; align-self: center; }
.sb-footer .sb-footer-grid > div:not(:nth-child(3)) > ul { grid-column: 2 / -1; }
.sb-footer .sb-footer-grid > div:nth-child(3) > .sb-footer-sub { grid-column: 2; margin: 0; white-space: nowrap; }
.sb-footer .sb-footer-grid > div:nth-child(3) > ul { grid-column: 3; }
.sb-footer .sb-footer-grid > div:nth-child(3) > ul:first-of-type { margin-bottom: 0.5rem; }
.sb-footer .sb-footer-grid ul + .sb-footer-sub { margin-top: 0; }

.sb-footer .sb-footer-grid > div > ul { flex-direction: row; flex-wrap: wrap; gap: 0.45rem; margin: 0; }
.sb-footer .sb-footer-grid > div > ul a {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 0.85rem;
    border: 1px solid var(--border-subtle); border-radius: 12px; corner-shape: squircle;
    background: var(--bg-card); font-size: 0.88rem; color: var(--text-secondary);
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.sb-footer .sb-footer-grid > div > ul a::before { content: none; }
.sb-footer .sb-footer-grid > div > ul a:hover { transform: translateY(-2px); color: var(--text-primary); border-color: rgba(41, 171, 226, 0.45); background: rgba(41, 171, 226, 0.08); }
.sb-footer .sb-footer-grid > div > ul li.is-key a {
    color: var(--text-primary); border-color: rgba(18, 183, 106, 0.45);
    background: linear-gradient(100deg, rgba(41, 171, 226, 0.14), rgba(18, 183, 106, 0.12));
}
body.light-mode .sb-footer .sb-footer-grid > div > ul a { background: rgba(255, 255, 255, 0.75); }
body.light-mode .sb-footer .sb-footer-grid > div > ul li.is-key a { background: linear-gradient(100deg, rgba(41, 171, 226, 0.14), rgba(18, 183, 106, 0.12)); }

@media (max-width: 900px) {
    .sb-footer .sb-footer-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "contact" "ds" "sol" "co"; }
    .sb-footer .sb-footer-brand { margin-bottom: 1.4rem; }
}
@media (max-width: 640px) {
    .sb-footer .sb-footer-contact { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "quick" "nap" "areas"; }
    .sb-footer .sb-footer-areas { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--border-subtle); }
    .sb-footer .sb-footer-grid > div:is(:nth-child(2), :nth-child(3), :nth-child(4)) { grid-template-columns: minmax(0, 1fr); row-gap: 0.6rem; }
    .sb-footer .sb-footer-grid > div > h3,
    .sb-footer .sb-footer-grid > div:nth-child(3) > .sb-footer-sub,
    .sb-footer .sb-footer-grid > div > ul { grid-column: 1 !important; grid-row: auto; }
    .sb-footer .sb-footer-grid > div:nth-child(3) > ul:first-of-type { margin-bottom: 0.3rem; }
    .sb-footer .sb-footer-grid > div > ul a { min-height: 34px; padding: 0 0.7rem; font-size: 0.84rem; }
}
@media (prefers-reduced-motion: reduce) { .sb-footer .sb-footer-grid > div > ul a:hover { transform: none; } }

/* Footer nav rows: pills aligned to the right edge (tablet and up) */
@media (min-width: 641px) {
    .sb-footer .sb-footer-grid > div > ul { justify-content: flex-end; }
    .sb-footer .sb-footer-grid > div:nth-child(3) > .sb-footer-sub { justify-self: end; text-align: right; }
}

/* Footer on phones: one swipeable pill row per group, room for floating buttons */
@media (max-width: 640px) {
    .sb-footer .sb-footer-grid > div:is(:nth-child(2), :nth-child(3), :nth-child(4)) { padding: 0.85rem 0; row-gap: 0.5rem; }
    .sb-footer .sb-footer-grid > div > h3 { font-size: 0.66rem; }
    .sb-footer .sb-footer-grid > div > ul {
        flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
        gap: 0.4rem; padding: 2px 1.5rem 2px 0; scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    }
    .sb-footer .sb-footer-grid > div > ul::-webkit-scrollbar { display: none; }
    .sb-footer .sb-footer-grid > div > ul li { flex: none; scroll-snap-align: start; }
    .sb-footer .sb-footer-grid > div > ul a { min-height: 36px; white-space: nowrap; }
    .sb-footer .sb-footer-grid > div > ul a:hover { transform: none; }
    .sb-footer .sb-footer-grid > div:nth-child(3) > .sb-footer-sub { font-size: 0.58rem; margin-top: 0.15rem; }
    .sb-footer .sb-footer-grid > div:nth-child(3) > ul:first-of-type { margin-bottom: 0.2rem; }
    .sb-footer .sb-footer-grid > div:nth-child(4) { margin-bottom: 1.4rem; }
    /* Keep the floating action buttons clear of the footer's last lines */
    .footer.sb-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
}

/* Commitments strip on phones: even 2-column grid of squircle tiles */
@media (max-width: 640px) {
    .sb-trust-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; padding: 1.1rem 0; }
    .sb-trust-strip span {
        justify-content: flex-start; gap: 0.55rem; min-height: 44px; padding: 0.5rem 0.75rem;
        border-radius: 14px; corner-shape: squircle; font-size: 0.8rem; line-height: 1.3;
        background: var(--bg-card);
    }
    .sb-trust-strip span:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
    .sb-trust-strip i { flex: none; width: 1rem; text-align: center; }
    body.light-mode .sb-trust-strip span { background: rgba(255, 255, 255, 0.7); }
}
@media (max-width: 340px) { .sb-trust-strip { grid-template-columns: minmax(0, 1fr); } .sb-trust-strip span:last-child:nth-child(odd) { justify-content: flex-start; } }

/* Footer links on phones: 2-column tile grid (replaces the swipe rows) */
@media (max-width: 640px) {
    .sb-footer .sb-footer-grid > div > ul {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem;
        overflow: visible; padding: 0; scroll-snap-type: none;
        -webkit-mask-image: none; mask-image: none;
    }
    .sb-footer .sb-footer-grid > div > ul li { min-width: 0; }
    .sb-footer .sb-footer-grid > div > ul a {
        display: flex; width: 100%; min-height: 42px; padding: 0.4rem 0.75rem;
        border-radius: 14px; corner-shape: squircle;
        white-space: normal; line-height: 1.25; font-size: 0.84rem;
    }
    .sb-footer .sb-footer-grid > div > ul li.is-key { grid-column: 1 / -1; }
    .sb-footer .sb-footer-grid > div > ul li.is-key a { justify-content: center; }
    .sb-footer .sb-footer-grid > div > ul li:last-child:nth-child(odd):not(.is-key) { grid-column: 1 / -1; }
}

/* "Or start with": joined strip only when all chips fit; otherwise separate pills that wrap cleanly */
.sb-footer-cta > div:first-child { container-type: inline-size; }
@container (max-width: 619px) {
    .sb-footer-cta .sb-cta-links { gap: 0.45rem; }
    .sb-footer-cta .sb-cta-links a,
    .sb-footer-cta .sb-cta-links a:first-of-type,
    .sb-footer-cta .sb-cta-links a:last-of-type {
        margin-left: 0; border-radius: 14px; corner-shape: squircle;
    }
    @supports (corner-shape: squircle) {
        .sb-footer-cta .sb-cta-links a,
        .sb-footer-cta .sb-cta-links a:first-of-type,
        .sb-footer-cta .sb-cta-links a:last-of-type { border-radius: 18px; }
    }
}

/* "Or start with": when the chips can't fit one line, combine them into one 3+2 block */
@container (max-width: 619px) {
    .sb-footer-cta .sb-cta-links { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
    .sb-footer-cta .sb-cta-links > span { grid-column: 1 / -1; }
    .sb-footer-cta .sb-cta-links a,
    .sb-footer-cta .sb-cta-links a:first-of-type,
    .sb-footer-cta .sb-cta-links a:last-of-type {
        position: relative; justify-content: center; min-width: 0; height: auto; min-height: 46px; margin: 0;
        border-radius: 0; white-space: nowrap;
    }
    .sb-footer-cta .sb-cta-links a:nth-of-type(-n+3) { grid-column: span 2; }
    .sb-footer-cta .sb-cta-links a:nth-of-type(n+4) { grid-column: span 3; margin-top: -1px; }
    .sb-footer-cta .sb-cta-links a:nth-of-type(2), .sb-footer-cta .sb-cta-links a:nth-of-type(3), .sb-footer-cta .sb-cta-links a:nth-of-type(5) { margin-left: -1px; }
    .sb-footer-cta .sb-cta-links a:nth-of-type(1) { border-top-left-radius: 18px; }
    .sb-footer-cta .sb-cta-links a:nth-of-type(3) { border-top-right-radius: 18px; }
    .sb-footer-cta .sb-cta-links a:nth-of-type(4) { border-bottom-left-radius: 18px; }
    .sb-footer-cta .sb-cta-links a:nth-of-type(5) { border-bottom-right-radius: 18px; }
    .sb-footer-cta .sb-cta-links a:hover, .sb-footer-cta .sb-cta-links a:focus-visible, .sb-footer-cta .sb-cta-links a:first-of-type { z-index: 1; }
}
/* Phones: engine full width, then 2 + 2, still one combined block */
@media (max-width: 640px) {
    .sb-footer-cta .sb-cta-links { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0 !important; }
    .sb-footer-cta .sb-cta-links a,
    .sb-footer-cta .sb-cta-links a:first-of-type,
    .sb-footer-cta .sb-cta-links a:last-of-type { position: relative; grid-column: auto !important; margin: -1px 0 0 0 !important; border-radius: 0 !important; corner-shape: squircle; }
    .sb-footer-cta .sb-cta-links a:first-of-type { grid-column: 1 / -1 !important; margin-top: 0 !important; border-radius: 16px 16px 0 0 !important; }
    .sb-footer-cta .sb-cta-links a:nth-of-type(3), .sb-footer-cta .sb-cta-links a:nth-of-type(5) { margin-left: -1px !important; }
    .sb-footer-cta .sb-cta-links a:nth-of-type(4) { border-radius: 0 0 0 16px !important; }
    .sb-footer-cta .sb-cta-links a:nth-of-type(5) { border-radius: 0 0 16px 0 !important; }
    .sb-footer-cta .sb-cta-links a:hover, .sb-footer-cta .sb-cta-links a:first-of-type { z-index: 1; }
}

/* Contact panel heading: keep it on its own row (it was caught by the nav-row label rule) */
.sb-footer .sb-footer-grid > .sb-footer-contact > h3 { grid-area: h; grid-row: auto; align-self: start; margin: 0 0 0.85rem; }

/* Footer nav rows: tighter pills (tablet and up) */
@media (min-width: 641px) {
    .sb-footer .sb-footer-grid > div:is(:nth-child(2), :nth-child(3), :nth-child(4)) { padding: 0.75rem 0; }
    .sb-footer .sb-footer-grid > div > ul { gap: 0.35rem; }
    .sb-footer .sb-footer-grid > div > ul a { min-height: 32px; padding: 0 0.65rem; font-size: 0.84rem; border-radius: 10px; }
    .sb-footer .sb-footer-grid > div:nth-child(3) > ul:first-of-type { margin-bottom: 0.35rem; }
}

/* "Or start with" (wrapped layouts): keep the 3+2 / 1+2+2 grid, but as separate pills */
@container (max-width: 619px) {
    .sb-footer-cta .sb-cta-links { gap: 0.45rem; }
    .sb-footer-cta .sb-cta-links a,
    .sb-footer-cta .sb-cta-links a:first-of-type,
    .sb-footer-cta .sb-cta-links a:last-of-type,
    .sb-footer-cta .sb-cta-links a:nth-of-type(n) { margin: 0; border-radius: 14px; corner-shape: squircle; }
    @supports (corner-shape: squircle) {
        .sb-footer-cta .sb-cta-links a:nth-of-type(n) { border-radius: 18px; }
    }
}
@media (max-width: 640px) {
    .sb-footer-cta .sb-cta-links { gap: 0.45rem !important; }
    .sb-footer-cta .sb-cta-links a:nth-of-type(n) { margin: 0 !important; border-radius: 14px !important; corner-shape: squircle; }
}

/* "Or start with" pills: tighter */
@container (max-width: 619px) {
    .sb-footer-cta .sb-cta-links { gap: 0.35rem; }
    .sb-footer-cta .sb-cta-links a:nth-of-type(n) { min-height: 38px; height: auto; padding: 0 0.6rem; gap: 0.4rem; font-size: 0.86rem; }
}
@media (min-width: 641px) {
    .sb-cta-links a { height: 40px; padding: 0 0.85rem; font-size: 0.88rem; }
}
@media (max-width: 640px) {
    .sb-footer-cta .sb-cta-links { gap: 0.35rem !important; }
    .sb-footer-cta .sb-cta-links a:nth-of-type(n) { min-height: 36px; padding: 0 0.55rem; font-size: 0.82rem; }
}

/* ---------- Footer CTA banner: "Or start with" as the banner's footer strip ---------- */
.sb-footer-cta > .sb-cta-links {
    grid-column: 1 / -1; margin: 0; padding-top: 1.3rem;
    border-top: 1px solid var(--border-subtle);
}
@media (min-width: 641px) {
    .sb-footer-cta > .sb-cta-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
    .sb-footer-cta > .sb-cta-links > span { flex: 0 0 auto; margin: 0 0.6rem 0 0; }
    .sb-footer-cta > .sb-cta-links a,
    .sb-footer-cta > .sb-cta-links a:nth-of-type(n) {
        grid-column: auto; margin: 0; height: 38px; min-height: 38px; padding: 0 0.8rem; gap: 0.45rem;
        border-radius: 12px; corner-shape: squircle; font-size: 0.86rem;
    }
    @supports (corner-shape: squircle) { .sb-footer-cta > .sb-cta-links a:nth-of-type(n) { border-radius: 16px; } }
}
@media (max-width: 640px) {
    .sb-footer-cta > .sb-cta-links { padding-top: 1.1rem; }
}
.sb-footer-cta { row-gap: 1.8rem; }

/* Banner footer strip: less space below the chips */
.sb-footer-cta { padding-bottom: clamp(1rem, 2vw, 1.4rem); }
.sb-footer-cta > .sb-cta-links { padding-top: 1rem; }

/* Banner: Call / WhatsApp / Email / Contact buttons under the text */
.sb-cta-reach { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.sb-cta-reach a {
    --tone: 41, 171, 226;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    height: 42px; padding: 0 1rem; border-radius: 14px; corner-shape: squircle;
    border: 1px solid rgba(var(--tone), 0.35); background: rgba(var(--tone), 0.08);
    color: var(--text-primary); font-size: 0.9rem; font-weight: 600; text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.sb-cta-reach a i { color: rgb(var(--tone)); font-size: 0.9rem; }
.sb-cta-reach a.r-wa { --tone: 37, 211, 102; }
.sb-cta-reach a.r-mail { --tone: 255, 164, 27; }
.sb-cta-reach a.r-contact { --tone: 18, 183, 106; }
.sb-cta-reach a:hover, .sb-cta-reach a:focus-visible {
    transform: translateY(-2px); border-color: rgb(var(--tone));
    background: rgba(var(--tone), 0.16); box-shadow: 0 12px 26px -16px rgba(var(--tone), 0.9);
}
@supports (corner-shape: squircle) { .sb-cta-reach a { border-radius: 18px; } }
body.light-mode .sb-cta-reach a { background: rgba(255, 255, 255, 0.7); }
body.light-mode .sb-cta-reach a.r-mail i { color: #c26a00; }
@media (max-width: 640px) {
    .sb-cta-reach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; margin-top: 1.1rem; }
    .sb-cta-reach a { height: 42px; padding: 0 0.6rem; font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) { .sb-cta-reach a:hover { transform: none; } }

/* Banner without the action panel: single column */
.sb-footer-cta { grid-template-columns: minmax(0, 1fr); }

/* Banner paragraph: one line on wide screens (no 56ch cap), balanced wrap when narrower */
.sb-footer-cta > div:first-child > p { max-width: none; text-wrap: balance; }

/* ---------- Footer CTA banner: overall polish ---------- */
.sb-footer-cta { row-gap: 1.6rem; padding-top: clamp(1.8rem, 4vw, 3rem); }
.sb-footer-cta h2 { margin-bottom: 0.6rem; }
.sb-footer-cta > div:first-child > p { font-size: 1.05rem; }

/* Bloom: quieter and further right so it never sits under the copy */
.sb-footer-cta::after { opacity: 0.07; right: -16%; width: clamp(360px, 40vw, 560px); }
body.light-mode .sb-footer-cta::after { opacity: 0.06; }

/* Reach buttons: Contact is the primary action, the rest are calm secondaries */
.sb-cta-reach { gap: 0.55rem; margin-top: 1.5rem; }
.sb-cta-reach a {
    height: 46px; padding: 0 1.1rem; font-size: 0.92rem;
    border-color: var(--border-subtle); background: rgba(230, 238, 248, 0.04);
}
.sb-cta-reach a.r-contact {
    order: -1; padding: 0 1.35rem; border: 0; color: #04121f;
    background: linear-gradient(120deg, #5fd0ff, var(--sky) 40%, #2fd39a);
    box-shadow: 0 12px 30px -12px rgba(41, 171, 226, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.sb-cta-reach a.r-contact i { color: #04121f; }
.sb-cta-reach a.r-contact:hover, .sb-cta-reach a.r-contact:focus-visible {
    background: linear-gradient(120deg, #5fd0ff, var(--sky) 40%, #2fd39a);
    box-shadow: 0 16px 36px -12px rgba(41, 171, 226, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
body.light-mode .sb-cta-reach a:not(.r-contact) { background: rgba(255, 255, 255, 0.75); }

/* Divider: soft fade instead of a hard rule */
.sb-footer-cta > .sb-cta-links { border-top: 0; position: relative; padding-top: 1.2rem; }
.sb-footer-cta > .sb-cta-links::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, var(--border-subtle), rgba(230, 238, 248, 0.14) 30%, transparent);
}

/* Chips: quieter than the reach buttons */
@media (min-width: 641px) {
    .sb-footer-cta > .sb-cta-links a:nth-of-type(n) {
        height: 36px; min-height: 36px; padding: 0 0.75rem; font-size: 0.84rem; font-weight: 500;
        background: transparent; color: var(--text-secondary);
    }
    .sb-footer-cta > .sb-cta-links a:first-of-type { color: var(--text-primary); background: linear-gradient(100deg, rgba(41, 171, 226, 0.14), rgba(18, 183, 106, 0.1)); }
    .sb-footer-cta > .sb-cta-links a:nth-of-type(n):hover { color: var(--text-primary); background: rgba(41, 171, 226, 0.08); }
}
@media (max-width: 640px) {
    .sb-cta-reach a { height: 44px; }
    .sb-cta-reach a.r-contact { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .sb-cta-reach { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sb-cta-reach a:not(.r-contact) { padding: 0 0.4rem; gap: 0.4rem; font-size: 0.84rem; }
}

/* About journey illustration: smaller, centred */
.sb-journey-art { width: min(100%, 880px); margin: 0 auto 1.8rem; border-radius: 24px; corner-shape: squircle; }
@supports (corner-shape: squircle) { .sb-journey-art { border-radius: 32px; } }
@media (max-width: 700px) { .sb-journey-art { width: 100%; border-radius: 20px; } }

/* Case file art: show the whole illustration edge to edge (no inner padding, no side crop) */
.sb-casefile .sb-casefile-art > img,
.sb-casefiles .sb-casefile .sb-casefile-art > img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    padding: 0; object-fit: contain; object-position: center;
}
.sb-casefile .sb-casefile-art:has(> img) { background: var(--ink) !important; }
