/* =====================================================================
   T&M site enhancements — design system, cards, buttons, orb, motifs,
   animations. Loaded after style.css on every page.
   All motion is gated behind prefers-reduced-motion.
   ===================================================================== */

:root {
    --tnm-cyan: #1bb1dc;
    --tnm-cyan-d: #1599bf;
    --tnm-navy: #282646;
    --tnm-ink: #495057;
    --tnm-line: #e7e9f0;
    --tnm-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------------
   1. Unified button system
   .btn-tnm = solid primary (default action) · .btn-tnm-ghost = outline (secondary)
   --------------------------------------------------------------------- */
.btn-tnm,
.btn-tnm-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .18s var(--tnm-ease), box-shadow .18s var(--tnm-ease),
                background-color .18s var(--tnm-ease), color .18s var(--tnm-ease), border-color .18s var(--tnm-ease);
}
.btn-tnm {
    background: var(--tnm-cyan);
    color: #fff;
    box-shadow: 0 4px 14px rgba(27, 177, 220, .28);
}
.btn-tnm:hover {
    background: var(--tnm-cyan-d);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(27, 177, 220, .40);
}
.btn-tnm-ghost {
    background: transparent;
    color: var(--tnm-navy);
    border-color: #d4d8e2;
}
.btn-tnm-ghost:hover {
    color: var(--tnm-cyan);
    border-color: var(--tnm-cyan);
    transform: translateY(-2px);
}
.btn-tnm i,
.btn-tnm-ghost i { font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------------------------------------------------------------------
   2. Page-hero heading (inner pages) — match homepage section-title weight
   --------------------------------------------------------------------- */
.section-title h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--tnm-navy);
    position: relative;
}
@media (max-width: 575px) { .section-title h1 { font-size: 26px; } }

.page-hero { position: relative; }
.page-hero h1 {
    font-family: "Montserrat", sans-serif;
    color: var(--tnm-navy);
    font-weight: 700;
}
.page-hero .breadcrumb-nav { margin-bottom: 18px; font-size: 14px; }
.page-hero .breadcrumb-nav a { color: var(--tnm-cyan); text-decoration: none; }
.page-hero .breadcrumb-nav a:hover { text-decoration: underline; }
.page-hero .lead-sub { color: var(--tnm-ink); line-height: 1.7; font-size: 18px; max-width: 820px; }

/* ---------------------------------------------------------------------
   3. Homepage Services — 4 AI-first cards
   --------------------------------------------------------------------- */
.services-subline {
    text-align: center;
    color: var(--tnm-ink);
    font-size: 17px;
    margin: -8px auto 26px;
    max-width: 680px;
}
.service-card-wrap { height: 100%; display: flex; flex-direction: column; }
.service-card {
    display: block;
    background: #fff;
    border: 1px solid var(--tnm-line);
    border-radius: 14px;
    padding: 30px 28px 24px;
    box-shadow: 0 2px 14px rgba(40, 38, 70, .05);
    text-decoration: none;
    flex: 1 1 auto;
    transition: transform .2s var(--tnm-ease), box-shadow .2s var(--tnm-ease), border-color .2s var(--tnm-ease);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(40, 38, 70, .12);
    border-color: rgba(27, 177, 220, .45);
    text-decoration: none;
}
.service-card .icon {
    width: 62px; height: 62px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    transition: transform .25s var(--tnm-ease);
}
.service-card .icon i { font-size: 26px; }
.service-card:hover .icon { transform: scale(1.08); }
.service-card .title { color: var(--tnm-navy); font-weight: 700; margin-bottom: 10px; }
.service-card .service-lead { color: var(--tnm-ink); line-height: 1.6; margin-bottom: 14px; }
.service-card .service-bullets { list-style: none; padding: 0; margin: 0; }
.service-card .service-bullets li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--tnm-ink);
}
.service-card .service-bullets li::before {
    content: "\f00c"; /* fa check */
    font-family: "Font Awesome 5 Free"; font-weight: 900;
    position: absolute; left: 0; top: 2px;
    color: var(--tnm-cyan); font-size: 12px;
}
.service-proof {
    display: inline-block;
    margin-top: 14px;
    font-style: italic;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--tnm-cyan);
    text-decoration: none;
    padding: 4px 0;
}
.service-proof:hover { color: var(--tnm-cyan-d); }
.service-proof .arw { display: inline-block; transition: transform .18s var(--tnm-ease); }
.service-proof:hover .arw { transform: translateX(5px); }

/* ---------------------------------------------------------------------
   4. Card grids reused as static tiles (homepage portfolio, case-study
   index, service "proof") — make info always visible + uniform images
   --------------------------------------------------------------------- */
.portfolio-wrap {
    background: #fff !important;       /* override inline #ececec */
    border: 1px solid var(--tnm-line);
    border-radius: 14px !important;
    overflow: hidden;
    transition: transform .2s var(--tnm-ease), box-shadow .2s var(--tnm-ease), border-color .2s var(--tnm-ease);
    box-shadow: 0 2px 14px rgba(40, 38, 70, .06);
    height: 100%;
}
.portfolio-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(40, 38, 70, .13);
    border-color: rgba(27, 177, 220, .45);
}
.portfolio-wrap > a { display: block; overflow: hidden; border-radius: 8px; background: #f6f8fb; }
.portfolio-wrap img {
    height: 190px !important;
    width: 100% !important;
    object-fit: contain;
    transition: transform .35s var(--tnm-ease);
}
.portfolio-wrap:hover img { transform: scale(1.05); }
/* force the legacy hover-overlay info to be a normal, always-visible caption
   (the old theme used #portfolio ID selectors with white text — out-specify them) */
#portfolio .portfolio-item .portfolio-wrap .portfolio-info,
.portfolio-item .portfolio-wrap .portfolio-info,
.portfolio-wrap .portfolio-info {
    position: static !important;
    opacity: 1 !important;
    background: transparent !important;
    padding: 14px 6px 6px !important;
    text-align: center;
}
#portfolio .portfolio-item .portfolio-wrap .portfolio-info h4,
.portfolio-wrap .portfolio-info h4 { margin: 0 0 6px; font-size: 17px; line-height: 1.35 !important; }
#portfolio .portfolio-item .portfolio-wrap .portfolio-info h4 a,
.portfolio-wrap .portfolio-info h4 a { color: var(--tnm-navy) !important; }
#portfolio .portfolio-item .portfolio-wrap .portfolio-info h4 a:hover,
.portfolio-wrap .portfolio-info h4 a:hover { color: var(--tnm-cyan) !important; }
#portfolio .portfolio-item .portfolio-wrap .portfolio-info p,
.portfolio-wrap .portfolio-info p {
    color: var(--tnm-ink) !important;
    font-size: 12.5px;
    letter-spacing: .4px;
    margin: 0 0 8px;
}

/* ---------------------------------------------------------------------
   5. About-section living orb (canvas particle system, JS-driven)
   --------------------------------------------------------------------- */
.about-orb {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    /* static fallback shown when JS/canvas is off or reduced-motion */
    background: radial-gradient(circle at 50% 46%, rgba(27,177,220,.28), rgba(40,38,70,.04) 62%, transparent 72%);
}
.about-orb .orb-canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 575px) { .about-orb { max-width: 300px; } }

/* ---------------------------------------------------------------------
   6. Per-page header motifs (lightweight CSS/SVG accents behind H1)
   --------------------------------------------------------------------- */
.page-hero { position: relative; }
/* keep heading clear of the motif on desktop */
.page-hero h1 { max-width: 66%; }
@media (max-width: 991px) { .page-hero h1 { max-width: 100%; } }

/* full-width hero band for inner pages */
.inner-hero {
    background: linear-gradient(180deg, #f3f8fc 0%, #fdfeff 100%);
    border-bottom: 1px solid var(--tnm-line);
}

.hero-motif {
    position: absolute;
    top: 50%; right: 10px;
    transform: translateY(-50%);
    width: 300px; height: 170px;
    display: flex; align-items: center; justify-content: flex-end;
    opacity: .55;
    pointer-events: none;
}
@media (max-width: 991px) { .hero-motif { display: none; } }

/* listening equaliser (ai-agents) */
.motif-dots { gap: 12px; }
.motif-dots span {
    display: inline-block; width: 16px; height: 110px; border-radius: 10px;
    margin-left: 12px;
    background: var(--tnm-cyan); transform-origin: center;
    animation: motifBars 1.1s var(--tnm-ease) infinite;
}
.motif-dots span:nth-child(2) { animation-delay: .15s; background: #2282ff; }
.motif-dots span:nth-child(3) { animation-delay: .30s; background: #6f42c1; }
.motif-dots span:nth-child(4) { animation-delay: .45s; }
.motif-dots span:nth-child(5) { animation-delay: .60s; background: #2282ff; }
@keyframes motifBars { 0%, 100% { transform: scaleY(.30); } 50% { transform: scaleY(1); } }

/* flowing pipeline (ai-automation) */
.motif-flow .flowline {
    stroke: var(--tnm-cyan); stroke-width: 2.5; stroke-dasharray: 8 8;
    animation: motifFlow 1s linear infinite;
}
@keyframes motifFlow { to { stroke-dashoffset: -16; } }

/* connecting nodes (fractional-cto / shared) */
.motif-nodes .edge { stroke: var(--tnm-cyan); stroke-width: 1.5; opacity: .45; }
.motif-nodes .node { animation: motifBlink 1.8s var(--tnm-ease) infinite; }
.motif-nodes .node:nth-child(5) { animation-delay: .4s; }
.motif-nodes .node:nth-child(6) { animation-delay: .8s; }
@keyframes motifBlink { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

/* code caret (software-delivery) */
.motif-code { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 64px; }
.motif-code .br { color: var(--tnm-cyan); }
.motif-code .caret { color: var(--tnm-navy); margin-left: 4px; animation: motifCaret 1s steps(2) infinite; }
@keyframes motifCaret { 50% { opacity: 0; } }

/* ---------------------------------------------------------------------
   Homepage hero CTA hierarchy: first = solid, second = outline
   --------------------------------------------------------------------- */
#hero .intro-info a.btn-get-started:first-of-type {
    background: var(--tnm-cyan);
    color: #fff !important;
    border-color: var(--tnm-cyan);
    box-shadow: 0 6px 18px rgba(27, 177, 220, .35);
}
#hero .intro-info a.btn-get-started:first-of-type:hover {
    background: var(--tnm-cyan-d);
    border-color: var(--tnm-cyan-d);
}

/* service-page bullets (reuse addendum copy on detail pages) */
.service-hero-bullets { list-style: none; padding: 0; margin: 18px 0 6px; }
.service-hero-bullets li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--tnm-ink); font-size: 16px; }
.service-hero-bullets li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free"; font-weight: 900;
    position: absolute; left: 0; top: 3px;
    color: var(--tnm-cyan); font-size: 13px;
}

/* ---------------------------------------------------------------------
   7. Generic entrance + reduced-motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .about-orb .orb-canvas { display: none; }
}

/* =====================================================================
   Batch 3 — audit fixes & new components
   ===================================================================== */

/* --- Service cards: kill legacy fixed-height/centering ( #services .box ) --- */
#services .box.service-card,
.box.service-card {
    height: auto !important;
    overflow: visible !important;
    text-align: left !important;
    margin: 0 !important;
}
#services .box.service-card:hover,
.box.service-card:hover { transform: translateY(-5px); }
.service-card .icon { margin: 0 0 18px 0 !important; display: flex !important; }
.service-card .title { text-align: left; font-size: 20px !important; }
.service-card .service-lead {
    font-size: 16px;
    color: var(--tnm-navy);
    font-weight: 600;
    line-height: 1.55;
    text-align: left;
    border-bottom: 1px solid var(--tnm-line);
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.service-card .service-bullets li {
    text-align: left;
    font-size: 14.5px;
    color: var(--tnm-ink);
    margin-bottom: 9px;
}

/* Proof line -> proof chip */
.service-proof {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 16px;
    background: rgba(27, 177, 220, .08);
    border-left: 3px solid var(--tnm-cyan);
    border-radius: 0 10px 10px 0;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    color: var(--tnm-navy);
    line-height: 1.45;
    transition: background .18s var(--tnm-ease), transform .18s var(--tnm-ease);
}
.service-proof::before {
    content: "\f058"; /* fa check-circle */
    font-family: "Font Awesome 5 Free"; font-weight: 900;
    color: var(--tnm-cyan);
    font-size: 15px;
    flex: 0 0 auto;
}
.service-proof:hover { background: rgba(27, 177, 220, .16); color: var(--tnm-navy); transform: translateX(3px); }
.service-proof .arw { color: var(--tnm-cyan); margin-left: auto; }

/* --- Homepage portfolio: logo tiles --- */
.logo-tile {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tnm-line);
    box-shadow: 0 2px 14px rgba(40, 38, 70, .06);
    text-decoration: none;
    height: 100%;
    transition: transform .2s var(--tnm-ease), box-shadow .2s var(--tnm-ease), border-color .2s var(--tnm-ease);
}
.logo-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(40, 38, 70, .13);
    border-color: rgba(27, 177, 220, .45);
    text-decoration: none;
}
.logo-tile .logo-panel {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(27, 177, 220, .12), transparent 55%),
        radial-gradient(ellipse at 75% 85%, rgba(111, 66, 193, .10), transparent 55%),
        linear-gradient(160deg, #f7fafd 0%, #eef3fa 100%);
}
.logo-tile .logo-panel img {
    max-height: 84px;
    max-width: 65%;
    width: auto;
    object-fit: contain;
    transition: transform .3s var(--tnm-ease);
}
.logo-tile:hover .logo-panel img { transform: scale(1.07); }
.logo-tile .logo-meta { padding: 16px 18px 18px; text-align: center; }
.logo-tile .logo-meta h3, .logo-tile .logo-meta h4 { color: var(--tnm-navy); font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.logo-tile .logo-meta p { color: var(--tnm-ink); font-size: 12.5px; letter-spacing: .4px; margin: 0 0 6px; text-transform: uppercase; }
.logo-tile .logo-meta .view-cs { color: var(--tnm-cyan); font-weight: 600; font-size: 13.5px; }
.logo-tile .logo-meta .view-cs .arw { display: inline-block; transition: transform .18s var(--tnm-ease); }
.logo-tile:hover .logo-meta .view-cs .arw { transform: translateX(4px); }

/* --- Team section CTA --- */
.team-cta { text-align: center; margin-top: 6px; }
.team-cta .btn-tnm-ghost { background: #fff; }

/* --- Demos page cards --- */
.demo-card {
    background: #fff;
    border: 1px solid var(--tnm-line);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 14px rgba(40, 38, 70, .06);
    transition: transform .2s var(--tnm-ease), box-shadow .2s var(--tnm-ease);
    display: flex;
    flex-direction: column;
}
.demo-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(40, 38, 70, .13); }
.demo-card .demo-banner {
    padding: 26px 26px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}
.demo-card .demo-banner.violet { background: linear-gradient(135deg, #6f42c1 0%, #4b3a8f 100%); }
.demo-card .demo-banner.bitebot { background: linear-gradient(135deg, #1bb1dc 0%, #1572a1 100%); }
.demo-card .demo-banner .demo-icon {
    width: 56px; height: 56px; flex: 0 0 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.demo-card .demo-banner h3 { color: #fff; font-weight: 700; font-size: 21px; margin: 0; }
.demo-card .demo-banner .demo-tag { display: block; font-size: 13px; opacity: .85; margin-top: 3px; }
.demo-card .demo-body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.demo-card .demo-body p { color: var(--tnm-ink); line-height: 1.65; margin-bottom: 18px; }
.demo-card .demo-body .btn-tnm { margin-top: auto; align-self: flex-start; }
.demo-live-dot {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 700; letter-spacing: 1px;
    color: #2bd354; text-transform: uppercase;
}
.demo-live-dot::before {
    content: ""; width: 9px; height: 9px; border-radius: 50%;
    background: #2bd354;
    animation: livePulse 1.6s var(--tnm-ease) infinite;
}
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(43,211,84,.5); } 50% { box-shadow: 0 0 0 7px rgba(43,211,84,0); } }

/* --- Brain + bot motif (fractional-cto) --- */
.motif-brain .lobe {
    fill: none; stroke-width: 2.5; stroke-linecap: round;
    stroke-dasharray: 240; stroke-dashoffset: 0;
    animation: brainTrace 5s linear infinite;
}
.motif-brain .lobe.human { stroke: #6f42c1; }
.motif-brain .lobe.bot { stroke: var(--tnm-cyan); }
@keyframes brainTrace { 50% { stroke-dashoffset: 240; } 100% { stroke-dashoffset: 480; } }
.motif-brain .synapse { animation: motifBlink 1.6s var(--tnm-ease) infinite; }
.motif-brain .synapse:nth-of-type(odd) { animation-delay: .55s; }
.motif-brain .spark { stroke: var(--tnm-cyan); stroke-width: 2; stroke-dasharray: 5 6; animation: motifFlow 1.1s linear infinite; }

/* --- Case-study hero: logo chip + screenshots section --- */
.cs-logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--tnm-line);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(40, 38, 70, .08);
    padding: 14px 22px;
    margin-bottom: 22px;
    max-width: 240px;
}
.cs-logo-chip img { max-height: 56px; max-width: 196px; width: auto; object-fit: contain; }
.cs-hero h1 {
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 18px;
}
@media (max-width: 575px) { .cs-hero h1 { font-size: 26px; } }
.cs-screens {
    background: linear-gradient(180deg, #f6f9fd 0%, #fff 100%);
    border-top: 1px solid var(--tnm-line);
    padding: 50px 0 55px;
}
.cs-screens h2 { color: var(--tnm-navy); font-weight: 700; font-size: 22px; margin-bottom: 22px; }
.cs-screens img {
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(40, 38, 70, .14);
    max-height: 460px;
    width: auto;
    max-width: 100%;
}

/* --- Cookie consent banner --- */
.consent-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 9999;
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--tnm-line);
    border-radius: 14px;
    box-shadow: 0 14px 44px rgba(40, 38, 70, .22);
    padding: 18px 20px;
    display: none;
}
.consent-banner.show { display: block; }
.consent-banner p { color: var(--tnm-ink); font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.consent-banner .consent-actions { display: flex; gap: 10px; }
.consent-banner .btn-tnm, .consent-banner .btn-tnm-ghost { padding: 9px 18px; font-size: 14px; }

/* =====================================================================
   Batch 4 — toast, orb centering, responsive hardening
   ===================================================================== */

/* Submission toast (fixed, top-center) */
.tnm-toast {
    position: fixed;
    top: 22px; left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: min(560px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid var(--tnm-line);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(40, 38, 70, .25);
    padding: 16px 18px;
    animation: toastIn .45s var(--tnm-ease);
    transition: opacity .35s var(--tnm-ease), transform .35s var(--tnm-ease);
}
.tnm-toast.is-success { border-top: 4px solid #2bd354; }
.tnm-toast.is-error   { border-top: 4px solid #e55353; }
.tnm-toast > i { font-size: 24px; margin-top: 2px; }
.tnm-toast.is-success > i { color: #2bd354; }
.tnm-toast.is-error   > i { color: #e55353; }
.tnm-toast .toast-copy strong { display: block; color: var(--tnm-navy); font-size: 15.5px; margin-bottom: 2px; }
.tnm-toast .toast-copy p { color: var(--tnm-ink); font-size: 14px; line-height: 1.5; margin: 0; }
.tnm-toast .toast-close {
    margin-left: auto;
    background: none; border: none; cursor: pointer;
    font-size: 22px; line-height: 1; color: #adb5bd;
    padding: 0 2px;
}
.tnm-toast .toast-close:hover { color: var(--tnm-navy); }
.tnm-toast.hide { opacity: 0; transform: translateX(-50%) translateY(-16px); pointer-events: none; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } }

/* Orb: center within its column at every breakpoint */
.about .row .col-lg-5,
.about .row .col-md-6 { display: flex; align-items: center; justify-content: center; }
.about-orb { margin: 0 auto; }
@media (max-width: 767px) { .about-orb { margin-bottom: 26px; } }

/* "See all case studies" proof-chip variant (service pages) */
.proof-chip-link { max-width: 420px; text-decoration: none; }

/* Responsive hardening */
@media (max-width: 991px) {
    .page-hero h1 { max-width: 100%; }
    .cs-hero h1 { font-size: 28px; }
}
@media (max-width: 575px) {
    .btn-tnm, .btn-tnm-ghost { width: 100%; justify-content: center; }
    .btn-row { width: 100%; }
    .service-proof { font-size: 13px; }
    .logo-tile .logo-panel { height: 140px; }
    .demo-card .demo-banner { padding: 20px; }
    .demo-card .demo-banner h3 { font-size: 18px; }
    .cs-logo-chip { padding: 10px 16px; }
    .cs-logo-chip img { max-height: 44px; }
    .cs-screens img { max-height: 320px; }
    .consent-banner { left: 10px; right: 10px; bottom: 10px; }
    .consent-banner .consent-actions { flex-direction: column; }
    .team-cta .btn-tnm-ghost { width: auto; }
    #hero .intro-info a.btn-get-started { display: block; margin: 0 0 12px 0 !important; text-align: center; }
}

/* =====================================================================
   Batch 5 — nav dropdowns, mobile menu, mobile team grid
   ===================================================================== */

/* --- Desktop nav dropdowns: card look + hover accent + entrance --- */
#header .dropdown-menu {
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--tnm-line);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(40, 38, 70, .16);
    padding: 10px;
    margin-top: 12px;
    min-width: 260px;
    animation: dropIn .22s var(--tnm-ease);
}
#header .dropdown-menu .dropdown-item {
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tnm-navy);
    text-transform: none;       /* undo the nav's uppercase */
    letter-spacing: .2px;
    position: relative;
    transition: background .15s var(--tnm-ease), color .15s var(--tnm-ease), transform .15s var(--tnm-ease);
}
#header .dropdown-menu .dropdown-item:hover,
#header .dropdown-menu .dropdown-item:focus {
    background: rgba(27, 177, 220, .10);
    color: var(--tnm-cyan);
    transform: translateX(3px);
}
#header .dropdown-menu .dropdown-item::before {
    content: "";
    position: absolute;
    left: 0; top: 22%; bottom: 22%;
    width: 3px;
    border-radius: 3px;
    background: var(--tnm-cyan);
    opacity: 0;
    transition: opacity .15s var(--tnm-ease);
}
#header .dropdown-menu .dropdown-item:hover::before { opacity: 1; }
@keyframes dropIn { from { opacity: 0; transform: translateY(10px); } }

/* --- Mobile collapsed menu: readable glass panel.
   The nav is navbar-expand-md, so the hamburger menu only exists < 768px —
   the previous 991px breakpoint also hit the EXPANDED tablet nav (bug). --- */
@media (max-width: 767.98px) {
    #header #mobilemenu.navbar-collapse {
        background: rgba(255, 255, 255, .94) !important;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border: 1px solid var(--tnm-line);
        border-radius: 14px;
        box-shadow: 0 16px 40px rgba(40, 38, 70, .20);
        margin-top: 10px;
        padding: 12px 18px;
    }
    #header #mobilemenu .dropdown-menu {
        background: rgba(27, 177, 220, .07) !important;
        border: none;
        box-shadow: none;
        margin-top: 4px;
        animation: none;
    }
}

/* --- Mobile/tablet team grid: bigger cards, tighter gutters --- */
@media (max-width: 991px) {
    #team .row { margin-left: -8px; margin-right: -8px; }
    #team .col-6, #team .col-lg-4 { padding-left: 8px; padding-right: 8px; }
    #team .member {
        margin: 0 0 16px 0 !important;
        padding: 16px 12px 14px !important;
        border-radius: 12px;
        height: calc(100% - 16px);
    }
    #team .member img { width: 100%; height: auto; }
    #team .member h3, #team .member h4 { font-size: 16px; margin-top: 10px; }
}

/* =====================================================================
   Batch 6 — hero typography, "AI delivery system" hero visual, demo media
   ===================================================================== */

/* --- Hero typography: fill the space --- */
#hero .intro-info h1 {
    font-size: 42px !important;
    line-height: 1.22;
    font-weight: 700;
}
#hero .intro-info p {
    font-size: 18.5px;
    line-height: 1.75;
    max-width: 640px;
}
@media (max-width: 1199px) { #hero .intro-info h1 { font-size: 40px !important; } }
@media (max-width: 991px)  { #hero .intro-info h1 { font-size: 34px !important; } }
@media (max-width: 767px)  { #hero .intro-info h1 { font-size: 29px !important; } }

/* --- Hero visual: orbital AI delivery system (inline SVG, CSS-animated) ---
   Pattern borrowed from how AI-product companies (Stripe/Linear/Anthropic-era
   landing pages) use slow abstract system diagrams instead of stock art:
   a core of senior judgement orchestrating orbiting AI capabilities. */
.hero-visual {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    display: block;
}
.hero-visual * { transform-box: fill-box; }
.hv-ring {
    fill: none;
    stroke: rgba(40, 38, 70, .14);
    stroke-width: 1.2;
    stroke-dasharray: 3 7;
}
.hv-spin-slow    { animation: hvSpin 90s linear infinite; transform-origin: center; }
.hv-spin-slower  { animation: hvSpinRev 140s linear infinite; transform-origin: center; }
@keyframes hvSpin    { to { transform: rotate(360deg); } }
@keyframes hvSpinRev { to { transform: rotate(-360deg); } }

.hv-core-pulse {
    fill: none;
    stroke: var(--tnm-cyan);
    stroke-width: 1.4;
    opacity: 0;
    animation: hvPulse 6s var(--tnm-ease) infinite;
    transform-origin: center;
}
.hv-core-pulse.p2 { animation-delay: 3s; }
@keyframes hvPulse {
    0%   { transform: scale(.62); opacity: .55; }
    70%  { transform: scale(1.18); opacity: 0; }
    100% { transform: scale(1.18); opacity: 0; }
}

.hv-link {
    stroke: rgba(27, 177, 220, .45);
    stroke-width: 1.6;
    stroke-dasharray: 4 9;
    fill: none;
    animation: hvFlow 5.5s linear infinite;
}
.hv-link.l2 { animation-duration: 7s; stroke: rgba(111, 66, 193, .40); }
.hv-link.l3 { animation-duration: 8.5s; stroke: rgba(34, 130, 255, .40); }
@keyframes hvFlow { to { stroke-dashoffset: -52; } }

.hv-node-dot { animation: hvBreathe 5s var(--tnm-ease) infinite; transform-origin: center; }
.hv-node-dot.n2 { animation-delay: 1.2s; }
.hv-node-dot.n3 { animation-delay: 2.4s; }
.hv-node-dot.n4 { animation-delay: 3.6s; }
@keyframes hvBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.hv-drift { animation: hvDrift 11s ease-in-out infinite alternate; }
.hv-drift.d2 { animation-duration: 14s; animation-delay: 2s; }
.hv-drift.d3 { animation-duration: 17s; animation-delay: 5s; }
@keyframes hvDrift { from { transform: translateY(0); } to { transform: translateY(-14px); } }

/* --- Demo cards: real product visuals as banners --- */
.demo-media {
    position: relative;
    height: 235px;
    overflow: hidden;
}
.demo-media.violet  { background: #04070e; }
.demo-media.bitebot { background: #140b05; }
.demo-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s var(--tnm-ease);
}
.demo-card:hover .demo-media img { transform: scale(1.05); }
.demo-media .demo-media-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px 22px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent);
}
.demo-media .demo-media-overlay h3 {
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    margin: 0;
    letter-spacing: 1px;
}
.demo-media .demo-media-overlay .demo-tag {
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
}

/* --- Hero "Mind" canvas (replaces the SVG diagram) --- */
.hero-mind {
    width: 100%;
    max-width: 560px;
    margin: 0 0 0 auto;          /* hug the right edge of the column */
    aspect-ratio: 5 / 6;
    border-radius: 20px;
    overflow: hidden;
    /* dark panel so the brand-blue particle head pops (approved) */
    background:
        radial-gradient(120% 90% at 65% 35%, #11233f 0%, #0a1426 55%, #060c18 100%);
    border: 1px solid rgba(27, 177, 220, .28);
    box-shadow: 0 24px 60px rgba(8, 16, 34, .28), inset 0 0 60px rgba(27, 177, 220, .06);
}
@media (max-width: 767px) { .hero-mind { margin: 0 auto; } }

/* fade the legacy particles.js backdrop on the right so the Mind owns that space */
@media (min-width: 768px) {
    #particles-js canvas {
        -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 38%, rgba(0,0,0,.12) 66%, rgba(0,0,0,0) 88%);
        mask-image: linear-gradient(to right, rgba(0,0,0,1) 38%, rgba(0,0,0,.12) 66%, rgba(0,0,0,0) 88%);
    }
}
.hero-mind .hero-mind-canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 767px) { .hero-mind { max-width: 360px; } }

/* =====================================================================
   Batch 7 — service-page authority content
   ===================================================================== */
.auth-h2 {
    color: var(--tnm-navy);
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 18px;
    font-family: "Montserrat", sans-serif;
}
.auth-p {
    color: var(--tnm-ink);
    font-size: 17.5px;
    line-height: 1.75;
    max-width: 860px;
    margin-bottom: 18px;
}

/* Shared centered reading column for the flowing-text service sections
   (intro / how / opinion / FAQ). Card grids stay full container width. */
.auth-prose {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}
.auth-prose .auth-p,
.auth-prose .auth-opinion,
.auth-prose .auth-faq-item {
    max-width: none;
}
.auth-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid var(--tnm-line);
    border-radius: 14px;
    padding: 24px 24px 20px;
    box-shadow: 0 2px 14px rgba(40, 38, 70, .06);
    text-decoration: none;
    transition: transform .2s var(--tnm-ease), box-shadow .2s var(--tnm-ease), border-color .2s var(--tnm-ease);
}
.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(40, 38, 70, .13);
    border-color: rgba(27, 177, 220, .45);
    text-decoration: none;
}
.auth-card h3 { color: var(--tnm-navy); font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.auth-card p { color: var(--tnm-ink); font-size: 14.5px; line-height: 1.65; margin-bottom: 14px; }
.auth-card .view-cs { margin-top: auto; color: var(--tnm-cyan); font-weight: 600; font-size: 13.5px; }
.auth-card:hover .view-cs .arw { transform: translateX(4px); }
.auth-card .view-cs .arw { display: inline-block; transition: transform .18s var(--tnm-ease); }
.auth-opinion {
    background: rgba(27, 177, 220, .06);
    border-left: 4px solid var(--tnm-cyan);
    border-radius: 0 14px 14px 0;
    padding: 26px 28px;
    max-width: 920px;
}
.auth-opinion .auth-h2 { font-size: 22px; margin-bottom: 12px; }
.auth-faq-item {
    background: #fff;
    border: 1px solid var(--tnm-line);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 12px;
    max-width: 920px;
}
.auth-faq-item h3 { color: var(--tnm-navy); font-weight: 700; font-size: 16.5px; margin-bottom: 8px; }
.auth-faq-item p { color: var(--tnm-ink); font-size: 15px; line-height: 1.7; margin: 0; }

/* =====================================================================
   Batch 8 — hero composition: fill wide desktops, hug content on mobile
   ===================================================================== */

/* Desktop: the default 1140px container leaves huge gutters on wide screens */
@media (min-width: 1200px) {
    #hero > .container { max-width: min(1560px, 93vw); }
    #hero .intro-info h1 { font-size: 46px !important; }
    #hero .intro-info p { max-width: 700px; }
    .hero-mind { max-width: 780px; }
}

/* Mobile: kill the 100vh voids — hero hugs its content */
@media (max-width: 767px) {
    #hero {
        height: auto !important;
        min-height: 0 !important;
        padding: 92px 0 46px;
    }
    #hero .container { height: auto !important; }
    .hero-mind { max-width: 290px; margin: 0 auto 4px; }
    /* the heading wrapper's mt-5 + CTA mt-4 create the mid/bottom gaps */
    #hero .intro-info .mt-5 { margin-top: 10px !important; }
    #hero .intro-info .mt-4 { margin-top: 16px !important; }
    #hero .intro-info { text-align: center; }
    #hero .intro-info p { font-size: 16px; margin-left: auto; margin-right: auto; }
}

/* =====================================================================
   Batch 9 — hero headline expansion, dark cookie bar, perf helpers
   ===================================================================== */

/* Headline fills the space like the reference */
@media (min-width: 1200px) {
    #hero .intro-info h1 { font-size: 54px !important; line-height: 1.16; }
    #hero .intro-info p { font-size: 19px; max-width: 640px; }
    .hero-mind { max-width: 600px; }
}
@media (min-width: 1600px) {
    #hero .intro-info h1 { font-size: 62px !important; }
    .hero-mind { max-width: 660px; }
}

/* Dark cookie bar (black-on-white, reference style) */
.consent-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 9999;
    max-width: 1120px;
    margin: 0 auto;
    background: #14161c;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .38);
    padding: 16px 22px;
    display: none;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.consent-banner.show { display: flex; }
.consent-banner .consent-text { flex: 1 1 460px; min-width: 0; }
.consent-banner .consent-text strong { display: block; color: #fff; font-size: 15px; margin-bottom: 3px; }
.consent-banner .consent-text span { color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.55; }
.consent-banner .consent-text a { color: #4cc4e8; text-decoration: underline; }
.consent-banner .consent-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.consent-banner .consent-accept {
    background: #fff; color: #14161c;
    border: none; border-radius: 9px;
    font-weight: 700; font-size: 14px;
    padding: 11px 22px; cursor: pointer;
    transition: transform .15s var(--tnm-ease), background .15s var(--tnm-ease);
}
.consent-banner .consent-accept:hover { background: var(--tnm-cyan); color: #fff; transform: translateY(-1px); }
.consent-banner .consent-decline {
    background: none; border: none; cursor: pointer;
    color: rgba(255, 255, 255, .75); font-weight: 600; font-size: 14px;
    padding: 8px 4px; text-decoration: underline;
}
.consent-banner .consent-decline:hover { color: #fff; }
@media (max-width: 575px) {
    .consent-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
    .consent-banner .consent-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
}

/* Perf: fixed background forces costly repaints on mobile scroll */
#hero { background-attachment: scroll !important; }
@media (max-width: 767px) { #hero { background-image: none !important; background: linear-gradient(160deg, #f3f8fc 0%, #eef3fa 100%) !important; } }

/* =====================================================================
   Batch 10 — full BLACK hero with 3D particle globe (T&MCO)
   ===================================================================== */
#hero.hero-dark {
    background: #05070d !important;        /* full black hero, no image */
    background-attachment: scroll !important;
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-dark .hero-sphere-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 1; display: block;
}
.hero-dark .hero-fade {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(90deg, #05070d 0%, rgba(5,7,13,.88) 28%, rgba(5,7,13,.28) 52%, rgba(5,7,13,0) 66%);
}
.hero-dark .hero-content { position: relative; z-index: 3; width: 100%; }
.hero-dark .hero-copy { max-width: 700px; padding: 40px 0; }
.hero-dark .hero-copy h1 {
    color: #2fbef0;                         /* heading blue (distinct from particle blue) */
    font-size: 52px;
    line-height: 1.16;
    font-weight: 700;
    margin-bottom: 22px;
    text-shadow: 0 2px 30px rgba(0,0,0,.6);
}
.hero-dark .hero-copy p {
    color: rgba(255,255,255,.82);           /* body = white */
    font-size: 19px;
    line-height: 1.75;
    max-width: 640px;
    text-shadow: 0 1px 16px rgba(0,0,0,.7);
}
.hero-dark .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn-hero {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; letter-spacing: .6px; text-transform: uppercase;
    padding: 15px 30px; border-radius: 8px; text-decoration: none;
    border: 2px solid transparent; cursor: pointer;
    transition: transform .18s var(--tnm-ease), box-shadow .18s var(--tnm-ease), background .18s var(--tnm-ease), color .18s var(--tnm-ease), border-color .18s var(--tnm-ease);
}
.btn-hero-solid { background: var(--tnm-cyan); color: #05070d; box-shadow: 0 8px 26px rgba(27,177,220,.4); }
.btn-hero-solid:hover { background: #46c8ec; color: #05070d; transform: translateY(-2px); }
.btn-hero-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-hero-ghost:hover { border-color: var(--tnm-cyan); color: var(--tnm-cyan); transform: translateY(-2px); }

@media (min-width: 1600px) {
    .hero-dark .hero-copy h1 { font-size: 60px; }
    .hero-dark .hero-copy { max-width: 780px; }
}
@media (max-width: 991px) { .hero-dark .hero-copy h1 { font-size: 40px; } }
@media (max-width: 767px) {
    #hero.hero-dark { min-height: 100vh; background: #05070d !important; padding: 0; }
    .hero-dark .hero-content { display: flex; align-items: flex-end; min-height: 100vh; }
    .hero-dark .hero-copy { padding: 0 0 9vh; text-align: left; }
    .hero-dark .hero-copy h1 { font-size: 31px; text-align: center; }
    .hero-dark .hero-copy p { font-size: 16px; color: rgba(255,255,255,.85); }
    .hero-dark .hero-fade {
        background: linear-gradient(180deg, rgba(5,7,13,0) 30%, rgba(5,7,13,.72) 60%, #05070d 100%);
    }
    .hero-dark .btn-hero { padding: 13px 22px; }
}

/* ---- Light nav while the transparent header sits over the black hero ---- */
.home-dark #header.header-transparent:not(.header-scrolled) .nav-link { color: #fff; }
.home-dark #header.header-transparent:not(.header-scrolled) .nav-link:hover,
.home-dark #header.header-transparent:not(.header-scrolled) .nav-item.active > .nav-link { color: var(--tnm-cyan); }
.home-dark #header.header-transparent:not(.header-scrolled) #my-bars,
.home-dark #header.header-transparent:not(.header-scrolled) .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.4); }
.home-dark #topbar.topbar-transparent:not(.topbar-scrolled) .social-links a { color: rgba(255,255,255,.85); }
.home-dark #topbar.topbar-transparent:not(.topbar-scrolled) .social-links a:hover { color: #fff; }

/* =====================================================================
   Batch 11 — overflow guard + /demos/ bot animation
   ===================================================================== */
html, body { overflow-x: hidden; }
#hero.hero-dark .hero-sphere-canvas { max-width: 100%; }

/* /demos/ — box bot with blinking eyes that hop side to side */
.demo-bot { position: absolute; top: 14px; right: 4px; width: 150px; pointer-events: none; }
@media (max-width: 991px) { .demo-bot { display: none; } }
.demo-bot svg { width: 100%; height: auto; display: block; overflow: visible; }
.bot-box { fill: #2f9bf0; }
.bot-eyes { animation: botMove 6s ease-in-out infinite; }
.eye {
    fill: #0a1426;
    transform-box: fill-box;
    transform-origin: center;
    animation: botBlink 6s linear infinite;
}
@keyframes botMove {
    0%, 33% { transform: translateX(15px); }
    41%, 75% { transform: translateX(-15px); }
    83%, 100% { transform: translateX(15px); }
}
@keyframes botBlink {
    0%, 4%, 6%, 14%, 16%, 24%, 26%, 44%, 46.9%, 54%, 56.9%, 64%, 66.9%, 100% { transform: scaleY(1); }
    5%, 15%, 25%, 46%, 56%, 66% { transform: scaleY(0.12); }
}
@media (prefers-reduced-motion: reduce) {
    .bot-eyes, .eye { animation: none; }
}

/* =====================================================================
   Batch 12 — mobile hero: lightweight box-bot replaces the canvas sphere
   ===================================================================== */
.hero-bot { display: none; }
@media (max-width: 767px) {
    #hero.hero-dark { overflow: visible; }         /* sphere is hidden on phones; don't clip the copy/buttons */
    .hero-dark .hero-sphere-canvas { display: none !important; }   /* drop the heavy canvas on phones */
    .hero-dark .hero-fade { display: none; }
    .hero-dark .hero-content { flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 108px; padding-bottom: 64px; box-sizing: border-box; }
    .hero-dark .hero-copy { padding: 0; }
    .hero-bot {
        display: block;
        width: 72vw; max-width: 320px;
        margin: 0 0 6vh;
        filter: drop-shadow(0 10px 30px rgba(47,155,240,.28));
    }
    .hero-bot svg { width: 100%; height: auto; display: block; }
}

/* =====================================================================
   Batch 13 — mobile hero centering + readable open-menu links
   ===================================================================== */
@media (max-width: 767.98px) {
    /* centre the bot + the CTA buttons */
    .hero-bot { margin-left: auto !important; margin-right: auto !important; }
    .hero-dark .hero-cta { justify-content: center; }

    /* the open hamburger panel is a light frosted card, so its top-level
       links must be dark (the dark-hero rule had forced them white) */
    .home-dark #header #mobilemenu .nav-link { color: var(--tnm-navy) !important; }
    .home-dark #header #mobilemenu .nav-item.active > .nav-link,
    .home-dark #header #mobilemenu .nav-link:hover { color: var(--tnm-cyan) !important; }
}

/* =====================================================================
   Batch 14 — secondary "Chat on WhatsApp" contact button
   Deliberately quieter than the contact form / Cal.com primary CTAs.
   ===================================================================== */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 10px 18px;
    border: 1.5px solid #25d366;
    border-radius: 10px;
    background: #fff;
    color: #128c4a;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: background .15s var(--tnm-ease, ease), color .15s var(--tnm-ease, ease);
}
.btn-whatsapp i { font-size: 18px; color: #25d366; transition: color .15s var(--tnm-ease, ease); }
.btn-whatsapp:hover { background: #25d366; color: #fff; text-decoration: none; }
.btn-whatsapp:hover i { color: #fff; }

/* =====================================================================
   Batch 15 — section-title polish.
   The big faint word is a watermark (.section-title span). On inner pages
   the solid <h1> had no z-index, so the watermark painted ON TOP of it and
   looked broken. Push the watermark fully behind, keep the solid heading
   dark and in front, and give it a brand-accent underline so the pairing
   reads as intentional.
   ===================================================================== */
.section-title span { z-index: 1; }              /* ghost watermark stays behind */

.section-title h1,
.section-title h2 {
    position: relative;
    z-index: 2;                                  /* solid heading always in front */
    color: var(--tnm-navy);                      /* crisp dark text */
    display: inline-block;
    padding-bottom: 14px;
}
.section-title h1::after,
.section-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--tnm-cyan), var(--tnm-navy));
}

/* =====================================================================
   Mobile centering — service cards and footer read better centered
   on stacked, full-width phone layouts.
   ===================================================================== */
@media (max-width: 767px) {
    /* --- Service cards (home + /services/ listing): center all content --- */
    .service-card,
    #services .box.service-card,
    .box.service-card { text-align: center !important; }
    .service-card .icon { margin: 0 auto 18px auto !important; }
    .service-card .title,
    .service-card .service-lead { text-align: center !important; }
    .service-card .service-bullets { display: inline-block; text-align: center; }
    .service-card .service-bullets li {
        padding-left: 0;
        text-align: center;
    }
    .service-card .service-bullets li::before {
        position: static;
        margin-right: 7px;
    }
    /* proof chip below the card: center its label + arrow */
    .service-proof { justify-content: center; text-align: center; }
    .service-proof .arw { margin-left: 8px; }

    /* --- Footer: center every column on phones --- */
    #footer .footer-top { text-align: center; }
    #footer .footer-top .footer-contact h3 { justify-content: center; }
    #footer .footer-top .footer-contact p {
        text-align: center;
        padding-right: 0 !important;
    }
    #footer .footer-top .footer-links ul li { justify-content: center; }
    #footer .social-links { text-align: center; }
    #footer .footer-top .footer-contact .social-links { margin-top: 14px; }
}
