/* =====================================================================
   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 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 {
    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 (small devices only) --- */
@media (max-width: 991px) {
    #header .navbar-collapse {
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border: 1px solid var(--tnm-line);
        border-radius: 14px;
        box-shadow: 0 16px 40px rgba(40, 38, 70, .18);
        margin-top: 10px;
        padding: 12px 18px;
    }
    #header .navbar-collapse .dropdown-menu {
        background: rgba(27, 177, 220, .06);
        border: none;
        box-shadow: none;
        margin-top: 4px;
    }
}

/* --- 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 h4 { font-size: 16px; margin-top: 10px; }
}
