:root {
    color-scheme: dark;
    --default-font: "Oxanium", sans-serif;
    --heading-font: "Anta", sans-serif;
    --primary-color: #03171d;
    --secondary-color: #08181e;
    --bg-color: #041116;
    --text-color: rgba(225, 239, 234, 0.76);
    --accent-color: #9ce97a;
    --white-color: #ffffff;
    --divider-color: rgba(255, 255, 255, 0.11);
    --dark-divider-color: rgba(255, 255, 255, 0.14);
    --error-color: rgb(230, 87, 87);
    --tmx-surface: #0b2026;
    --tmx-surface-muted: #132d34;
    --tmx-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
}

/* Themed cursor only when JS magiccursor is active */
html.js-cursor-active * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='2' cy='2' r='1' fill='%2381D86F'/%3E%3C/svg%3E") 2 2, auto !important;
}

.cb-cursor.-pointer {
    mix-blend-mode: exclusion !important;
}

.cb-cursor.-pointer:before {
    background: white !important;
    transform: scale(1) !important;
}

/* Hide decorative circle on touch/pen devices — native cursor suffices */
@media (pointer: coarse) {
    .cb-cursor {
        display: none !important;
    }
    html.js-cursor-active * {
        cursor: auto !important;
    }
}

/* Respect reduced-motion: hide decorative circle, revert to system cursor */
@media (prefers-reduced-motion: reduce) {
    .cb-cursor {
        display: none !important;
    }
    html.js-cursor-active * {
        cursor: auto !important;
    }
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background:
        radial-gradient(circle at top left, rgba(156, 233, 122, 0.16), transparent 24%),
        radial-gradient(circle at top right, rgba(26, 115, 148, 0.18), transparent 32%),
        linear-gradient(180deg, #041116 0%, #06171d 100%);
    color: var(--text-color);
}

a {
    color: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 120;
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    color: #03171d;
    border-radius: 10px;
    transform: translateY(-160%);
    transition: transform 0.25s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.tmx-brand,
.tmx-footer-brand {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.tmx-brand__logo {
    width: 280px;
    height: auto;
    display: block;
    filter: drop-shadow(0 14px 24px rgba(28, 206, 162, 0.18));
}

.tmx-brand__logo--header {
    width: 280px;
    height: auto;
    max-width: none;
    filter: none;
    display: block;
}

.tmx-brand--header {
    text-decoration: none;
}

.main-header.header-prime .header-sticky {
    border-bottom: none;
}

.main-header.header-prime .navbar > .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: auto;
    max-width: 1500px;
    width: 100%;
    padding-left: clamp(20px, 3vw, 48px);
    padding-right: clamp(20px, 3vw, 48px);
}

.main-header.header-prime .navbar {
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    width: 100%;
}

.main-header.header-prime .navbar-brand.tmx-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    justify-self: start;
    grid-column: 1;
}

.main-header.header-prime .tmx-brand--header {
    flex: 0 0 auto;
    min-height: auto;
    margin-right: auto;
    overflow: visible;
}

.main-header.header-prime .main-menu {
    display: contents !important;
}

.main-header.header-prime .nav-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    flex: none;
}

.main-header.header-prime .nav-menu-wrapper > ul {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-header.header-prime .main-menu ul li {
    margin: 0;
}

.main-header.header-prime .main-menu ul li a {
    padding: 0 10px !important;
}

.tmx-loader-mark {
    width: 66px;
    height: 66px;
    display: block;
    filter: drop-shadow(0 12px 22px rgba(156, 233, 122, 0.2));
}

.tmx-footer-brand {
    margin-bottom: 0.25rem;
}

.tmx-footer-brand .tmx-brand__logo {
    width: 360px;
    height: auto;
}

.main-header.header-prime .header-link--app {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
    grid-column: 3;
    flex: none;
}

.header-cta-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.header-cta-link:hover {
    color: var(--white-color);
}

.mobile-cta {
    display: none;
}

.header-prime .nav-link,
.header-prime .navbar-brand,
.footer-link-list-prime li a,
.footer-contact-list-prime li a,
.footer-copyright-prime {
    color: rgba(236, 248, 244, 0.76);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title h3,
.page-header-box ol li,
.page-header-box ol li a,
.hero-footer-content-prime h3,
.contact-us-form-title h3,
.pricing-item-content h3,
.pricing-item-price h2,
.team-item-content h2 a,
.tmx-note strong,
.tmx-stack-grid li,
.form-status {
    color: #ecf8f4;
}

p,
li,
label,
.testimonial-item-content-prime p,
.feature-item-content p,
.footer-desc-prime,
.section-title p,
.contact-info-item-content p,
.how-work-item-content-prime p,
.benefits-header-content-prime p,
.benefits-body-list-prime ul li,
.about-us-item-title h3,
.feature-item .readmore-btn,
.footer-col-heading-prime {
    color: var(--text-color);
}

.page-features,
.page-team,
.page-pricing,
.page-contact-us,
.about-us,
.about-us-prime,
.our-benefits-prime,
.how-it-works-prime,
.our-approach,
.error-page,
.tmx-prose-shell {
    background: transparent;
}

.feature-item,
.pricing-item,
.team-item,
.contact-us-form,
.tmx-info-card,
.tmx-prose-card,
.tmx-stat-card,
.how-it-work-item-prime,
.why-choose-counter-item-prime,
.testimonial-item-prime {
    background: var(--tmx-surface);
    border-color: var(--divider-color);
    box-shadow: var(--tmx-shadow);
}

.feature-item-content,
.pricing-item-header,
.pricing-item-body,
.team-item-content,
.tmx-prose-card,
.tmx-info-card {
    background: transparent;
}

.main-header .nav-link[aria-current="page"] {
    color: var(--accent-color);
}

.main-header .nav-link[aria-current="page"]::before {
    width: 100%;
}

.hero-prime,
.main-footer-prime,
.page-header,
.our-approach {
    overflow: clip;
}

.tmx-note {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--divider-color);
    border-radius: 18px;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.03);
}

.tmx-note strong {
    color: var(--primary-color);
}

.hero-prime .tmx-note {
    color: rgba(236, 248, 244, 0.82);
    border: none;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(133, 221, 115, 0.06) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(133, 221, 115, 0.04) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        inset 0 0 0 1px rgba(133, 221, 115, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    max-width: 540px;
}

.hero-prime .hero-content-box-prime {
    align-items: flex-start;
}

.hero-prime .hero-media-prime {
    width: calc(56% - 2.083vw);
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    gap: 1rem;
}

.hero-prime .hero-media-prime .hero-image-prime {
    width: 100%;
}

.hero-prime .tmx-note--hero-media {
    width: 100%;
    max-width: none;
    margin-top: 0;
}

.hero-prime .tmx-note strong {
    color: #ecf8f4;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-transform: uppercase;
    padding: 1rem 1.15rem;
    background: linear-gradient(160deg, rgba(133, 221, 115, 0.14) 0%, rgba(133, 221, 115, 0.06) 100%);
    border-right: 1px solid rgba(133, 221, 115, 0.15);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 180px;
}

.hero-prime .tmx-note span {
    color: rgba(236, 248, 244, 0.58);
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
}

/* ── Hero band: 5 items on one line (desktop large) ── */

.tmx-hero-band {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(133, 221, 115, 0.05) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(133, 221, 115, 0.03) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(133, 221, 115, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tmx-hero-band__item {
    flex: 1 1 0;
    min-width: 0;
    padding: 1rem 1.25rem;
    border-right: 1px solid rgba(133, 221, 115, 0.1);
}

.tmx-hero-band__item:last-child {
    border-right: none;
}

.tmx-hero-band__item p {
    margin: 0;
    color: rgba(236, 248, 244, 0.78);
    font-size: 0.82rem;
    line-height: 1.55;
    font-weight: 500;
}

@media (max-width: 1199px) {
    .tmx-hero-band {
        flex-wrap: wrap;
    }

    .tmx-hero-band__item {
        flex: 1 1 calc(50% - 1px);
        border-bottom: 1px solid rgba(133, 221, 115, 0.08);
    }

    .tmx-hero-band__item:nth-child(2n) {
        border-right: none;
    }

    .tmx-hero-band__item:last-child {
        border-bottom: none;
    }

    /* Scale hero title for smaller desktop screens */
    .hero-prime .section-title h1 {
        font-size: clamp(32px, 4vw, 60px) !important;
    }

    /* Give hero content more room on smaller desktops */
    .hero-prime .hero-content-prime {
        width: calc(50% - 20px) !important;
        padding-right: 0 !important;
    }

    .hero-prime .hero-media-prime {
        width: calc(50% - 20px) !important;
    }

    .hero-prime .hero-content-box-prime {
        padding: 0 20px !important;
    }

    /* Make Mission Snapshot image span full content height on small desktops */
    .page--home .about-us-prime .row {
        align-items: stretch !important;
    }

    .page--home .about-us-image-prime {
        height: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .page--home .about-us-image-prime figure {
        height: 100% !important;
    }

    .page--home .about-us-image-prime figure img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        object-fit: cover !important;
        object-position: right center !important;
    }

    /* Services page: benefits image spans full content height */
    .our-benefits-prime .row {
        align-items: stretch !important;
    }

    .our-benefits-image-prime {
        height: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .our-benefits-image-prime figure {
        height: 100% !important;
    }

    .our-benefits-image-prime figure img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        object-fit: cover !important;
        object-position: right center !important;
    }

    /* Growth formula: boxes 30% each, arrows fill remaining space */
    .tmx-growth-formula {
        grid-template-columns: 33% 1fr 30% 1fr 27% !important;
        gap: 8px 6px !important;
    }

    .tmx-growth-formula .tmx-stat-card {
        padding: 0.9rem 1rem !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    .tmx-growth-formula .tmx-stat-card > span {
        font-size: clamp(0.75rem, 1.4vw, 0.95rem) !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .tmx-growth-formula .tmx-stat-card__eyebrow {
        font-size: clamp(0.85rem, 1.6vw, 1.1rem) !important;
    }

    .tmx-growth-formula .tmx-arrow {
        font-size: clamp(0.9rem, 1.6vw, 1.2rem) !important;
    }
}

@media (max-width: 767px) {
    .tmx-hero-band {
        flex-direction: column;
    }

    .tmx-hero-band__item {
        flex: none;
        border-right: none;
        border-bottom: 1px solid rgba(133, 221, 115, 0.08);
    }

    .tmx-hero-band__item:last-child {
        border-bottom: none;
    }
}

.tmx-support-slide {
    min-height: 92px;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

.tmx-support-slide__title {
    color: #ecf8f4;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    display: block;
}

.tmx-support-slide__meta {
    color: rgba(236, 248, 244, 0.68);
    font-size: 0.82rem;
    line-height: 1.2;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tmx-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.tmx-stat-card {
    position: relative;
    min-height: auto;
    padding: 1.2rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(168deg, var(--tmx-surface) 0%, var(--tmx-surface-muted) 100%);
    border: 1px solid var(--divider-color);
    box-shadow: var(--tmx-shadow);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tmx-stat-card:hover {
    border-color: rgba(133, 221, 115, 0.25);
    box-shadow: var(--tmx-shadow), 0 0 0 1px rgba(133, 221, 115, 0.08);
}

.tmx-stat-card::before {
    content: "";
    width: 32px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-color) 0%, rgba(133, 221, 115, 0.24) 100%);
}

.tmx-stat-card__eyebrow {
    margin: 0;
    color: var(--accent-color);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.tmx-stat-card__value {
    margin: 0;
    color: var(--white-color);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tmx-stat-card__value--link {
    text-decoration: none;
    transition: color 0.25s ease;
}

.tmx-stat-card__value--link:hover {
    color: var(--accent-color);
}

.tmx-growth-formula .tmx-stat-card::before {
    display: none;
}

/* Growth formula card staggered entrance */
.tmx-growth-formula .tmx-stat-card {
    opacity: 0;
    transform: translateY(20px);
    animation: tmx-card-rise 0.6s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center !important;
}

.tmx-growth-formula .tmx-stat-card > span {
    text-align: center !important;
}

.tmx-growth-formula .tmx-stat-card:nth-child(1) { animation-delay: 0.1s; }
.tmx-growth-formula .tmx-stat-card:nth-child(3) { animation-delay: 0.25s; }
.tmx-growth-formula .tmx-stat-card:nth-child(4) { animation-delay: 0.4s; }
.tmx-growth-formula .tmx-stat-card:nth-child(6) { animation-delay: 0.55s; }
.tmx-growth-formula .tmx-stat-card:nth-child(8) { animation-delay: 0.7s; }

@keyframes tmx-card-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Growth formula arrow animations */
.tmx-growth-formula .tmx-arrow {
    opacity: 0;
    animation: tmx-arrow-slide 0.4s ease forwards;
}

.tmx-growth-formula .tmx-arrow:nth-child(2) { animation-delay: 0.18s; }
.tmx-growth-formula .tmx-arrow:nth-child(5) { animation-delay: 0.48s; }
.tmx-growth-formula .tmx-arrow:nth-child(7) { animation-delay: 0.63s; }

@keyframes tmx-arrow-slide {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Static glow on the outcome card */
.tmx-growth-formula .tmx-stat-card--outcome {
    animation: tmx-card-rise 0.6s ease forwards;
    box-shadow: 0 0 16px 2px rgba(133, 221, 115, 0.25);
}

/* Hover effects on formula cards */
.tmx-growth-formula .tmx-stat-card:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Growth formula grid layout */
.tmx-growth-formula {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: start;
    gap: 12px 14px;
}

/* Desktop grid placement for converging arrow and outcome */
.tmx-growth-formula .tmx-arrow--converge {
    grid-row: 1 / 3;
    grid-column: 4;
}

.tmx-growth-formula .tmx-stat-card--outcome {
    grid-row: 1 / 3;
    grid-column: 5;
}

/* Mobile responsive growth formula */
@media (max-width: 767px) {
    .tmx-growth-formula {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
        gap: 8px 12px !important;
        justify-content: stretch !important;
    }

    /* Reset grid placement for mobile */
    .tmx-growth-formula .tmx-arrow--converge {
        grid-row: auto;
        grid-column: 1 / -1;
        justify-content: center;
    }

    .tmx-growth-formula .tmx-stat-card--outcome {
        grid-row: auto;
        grid-column: 1 / -1;
    }

    /* Reorder for mobile: Productivity | Efficiency, ↓ | ↓, Revenue | Expenses, ↓ (centered), Net Profit */
    .tmx-growth-formula > :nth-child(1) { order: 1; } /* Higher Productivity */
    .tmx-growth-formula > :nth-child(4) { order: 2; } /* Leaner Efficiency */
    .tmx-growth-formula > :nth-child(2) { order: 3; } /* Arrow ↓ */
    .tmx-growth-formula > :nth-child(5) { order: 4; } /* Arrow ↓ */
    .tmx-growth-formula > :nth-child(3) { order: 5; } /* Increased Revenue */
    .tmx-growth-formula > :nth-child(6) { order: 6; } /* Reduced Expenses */
    .tmx-growth-formula > :nth-child(7) { order: 7; } /* Converging arrow ↓ */
    .tmx-growth-formula > :nth-child(8) { order: 8; } /* Maximum Net Profit */

    /* Arrows point down on mobile — !important needed to override inline font-size */
    .tmx-growth-formula .tmx-arrow {
        font-size: 0 !important;
        line-height: 0 !important;
    }

    .tmx-growth-formula .tmx-arrow::after {
        content: "↓";
        font-size: 1.4rem;
        line-height: 1;
        color: var(--accent-color);
        font-weight: 700;
    }

    /* Two arrows for the converging arrow — aligned to column centers via nested grid */
    .tmx-growth-formula .tmx-arrow--converge {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        column-gap: 12px;
    }

    .tmx-growth-formula .tmx-arrow--converge::before {
        content: "↓";
        font-size: 1.4rem;
        line-height: 1;
        color: var(--accent-color);
        font-weight: 700;
        justify-self: center;
        grid-column: 1;
        grid-row: 1;
    }

    .tmx-growth-formula .tmx-arrow--converge::after {
        content: "↓";
        font-size: 1.4rem;
        line-height: 1;
        color: var(--accent-color);
        font-weight: 700;
        justify-self: center;
        grid-column: 2;
        grid-row: 1;
    }

    /* Arrow animation slides down on mobile */
    .tmx-growth-formula .tmx-arrow {
        animation-name: tmx-arrow-slide-down;
    }

    @keyframes tmx-arrow-slide-down {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Cards take full width in their column */
    .tmx-growth-formula .tmx-stat-card {
        min-width: 0 !important;
        width: 100%;
        padding: 10px 14px !important;
    }

    /* Scale text to fit blocks without wrapping */
    .tmx-growth-formula .tmx-stat-card > span {
        white-space: nowrap;
        font-size: clamp(0.7rem, 3.5vw, 1rem) !important;
    }

    /* Homepage hero title: remove SplitText line breaks on mobile */
    .hero-prime .text-anime-style-3 .split-line {
        display: inline !important;
    }

    /* Responsive hero title on mobile */
    .hero-prime .section-title h1 {
        font-size: clamp(26px, 7vw, 54px) !important;
    }

    /* Remove side padding on hero prime in mobile */
    .hero-prime .container-fluid {
        padding: 0 !important;
    }

    /* Stretch hero content to full screen width on mobile */
    .hero-prime .hero-content-box-prime {
        padding: 0 !important;
    }

    .hero-prime .hero-content-prime {
        width: 100% !important;
        padding: 0 16px !important;
    }

    /* Hero image spans full page width on mobile */
    .hero-prime .hero-media-prime {
        width: 100% !important;
        order: -1 !important;
    }

    .hero-prime .hero-image-prime figure img {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .hero-prime .section-title p {
        max-width: 100% !important;
    }
}

.feature-item-content ul,
.tmx-checklist,
.tmx-stack-grid,
.tmx-process-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tmx-checklist li,
.tmx-process-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.8rem;
}

.tmx-checklist li::before,
.tmx-process-list li::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.tmx-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.tmx-stack-grid li {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--divider-color);
    background: var(--tmx-surface);
    color: var(--primary-color);
    font-weight: 600;
}

.tmx-team-bio {
    min-height: 72px;
}

.tmx-info-card,
.tmx-prose-card {
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid var(--divider-color);
    background: var(--tmx-surface);
    box-shadow: var(--tmx-shadow);
}

.tmx-info-card h3,
.tmx-prose-card h2,
.tmx-prose-card h3 {
    margin-bottom: 1rem;
}

.tmx-prose-card h2,
.tmx-prose-card h3 {
    font-size: 1.3rem;
}

.tmx-prose-card p + h2,
.tmx-prose-card p + h3 {
    margin-top: 1.6rem;
}

.tmx-metadata {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--divider-color);
}

.contact-form .form-control {
    border: 1px solid var(--divider-color);
}

.contact-form textarea.form-control {
    min-height: 180px;
}

.contact-form .form-control,
.contact-form .form-select {
    color: #ecf8f4;
    background: rgba(255, 255, 255, 0.02);
}

.contact-form .form-control::placeholder {
    color: rgba(236, 248, 244, 0.48);
}

.tmx-form-meta {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tmx-checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: var(--text-color);
}

.tmx-checkbox input {
    margin-top: 0;
    flex-shrink: 0;
}

.form-status {
    margin: 0;
    color: var(--primary-color);
}

.contact-form .form-control.is-invalid,
.contact-form .tmx-custom-select-trigger.is-invalid,
.contact-form .tmx-custom-select.is-open .tmx-custom-select-trigger.is-invalid {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5);
}

.contact-form .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #ef4444;
}

.tmx-next-steps {
    margin-top: 2rem;
}

.tmx-next-steps h3 {
    margin-bottom: 1rem;
}

.tmx-social-proof {
    gap: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tmx-social-proof li span,
.tmx-social-proof li a {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--divider-color);
    background: rgba(255, 255, 255, 0.04);
    line-height: 1.2;
    text-decoration: none;
}

.tmx-stat-card__value,
.tmx-stat-card__value--link,
.tmx-social-proof li span,
.tmx-social-proof li a {
    color: #ecf8f4;
}

.tmx-process-band {
    margin-top: 3rem;
}

.tmx-process-band .section-footer-text {
    margin-top: 2.5rem;
}

.error-page-content .btn-default {
    margin-top: 1rem;
}

/* ── Typography scale: tame oversized vendor headings ── */

h1, h2, h3, h4, h5, h6,
.main-header .nav-link,
.main-header .btn-default {
    font-family: var(--heading-font);
}

.main-header .nav-link {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-title h1 {
    font-size: clamp(36px, 3.2vw + 12px, 56px);
}

.section-title h2 {
    font-size: clamp(28px, 2.4vw + 10px, 38px);
}

/* ── Site-wide breathing room ── */

.hero-prime .container-fluid {
    padding-left: clamp(24px, 4vw, 60px);
    padding-right: clamp(24px, 4vw, 60px);
}

.main-footer-prime .container {
    padding-left: clamp(24px, 4vw, 48px);
    padding-right: clamp(24px, 4vw, 48px);
}

/* All page sections (home, services, about, contact, etc.) */
.page > section > .container,
.page-header > .container {
    padding-left: clamp(20px, 3vw, 48px);
    padding-right: clamp(20px, 3vw, 48px);
}

/* ── Footer CTA section ── */

.footer-cta-prime .container {
    padding-left: clamp(24px, 4vw, 48px);
    padding-right: clamp(24px, 4vw, 48px);
}

.footer-cta-inner-prime {
    gap: 24px 40px;
}

/* ── Footer grid columns ── */

.footer-grid-prime {
    gap: 30px 24px;
}

/* ── Footer bottom bar ── */

.footer-bottom-prime {
    padding-top: 2rem;
    margin-top: 2.5rem;
}

/* ── Sections archive: standalone label-divider between sections ── */

.archive-label-divider-prime {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2.5rem 0;
}

.archive-label-divider-prime__line {
    flex: 1;
    height: 1px;
    background: var(--dark-divider-color);
}

.archive-label-divider-prime__label {
    font-family: var(--default-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    user-select: none;
}

@media (max-width: 991px) {
    .header-btn--app {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
    grid-column: 3;
    flex: none;
}

    .main-header.header-prime .main-menu,
    .main-header.header-prime .nav-menu-wrapper,
    .main-header.header-prime .nav-menu-wrapper > ul {
        display: none !important;
    }

    .tmx-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tmx-stack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tmx-prose-card,
    .tmx-info-card {
        margin-top: 1.5rem;
    }

    .page--home .about-us-prime .row {
        align-items: stretch !important;
        flex-wrap: nowrap !important;
    }

    .page--home .about-us-prime .row > .col-lg-5 {
        flex: 0 0 41.6667% !important;
        max-width: 41.6667% !important;
    }

    .page--home .about-us-prime .row > .col-lg-7 {
        flex: 0 0 58.3333% !important;
        max-width: 58.3333% !important;
    }

    .page--home .about-us-image-prime {
        height: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .page--home .about-us-image-prime figure {
        height: 100% !important;
    }

    .page--home .about-us-image-prime figure img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        object-fit: cover !important;
        object-position: right center !important;
    }
}

@media (max-width: 1440px) {
    .hero-prime .hero-media-prime {
        width: calc(50% - 20px);
    }
}

@media (max-width: 1024px) {
    .hero-prime .hero-media-prime {
        width: 100%;
    }

    .page--home .about-us-prime .row {
        align-items: stretch !important;
        flex-wrap: nowrap !important;
    }

    .page--home .about-us-prime .row > .col-lg-5 {
        flex: 0 0 41.6667% !important;
        max-width: 41.6667% !important;
    }

    .page--home .about-us-prime .row > .col-lg-7 {
        flex: 0 0 58.3333% !important;
        max-width: 58.3333% !important;
    }

    .page--home .about-us-image-prime {
        height: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .page--home .about-us-image-prime figure {
        height: 100% !important;
    }

    .page--home .about-us-image-prime figure img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        object-fit: cover !important;
        object-position: right center !important;
    }

    /* Scale hero title for tablet stacked layout */
    .hero-prime .section-title h1 {
        font-size: clamp(28px, 4.5vw, 48px) !important;
    }

    /* Reduce hero content box padding on tablet */
    .hero-prime .hero-content-box-prime {
        padding: 0 24px !important;
    }

    .hero-prime .hero-content-prime {
        padding-right: 0 !important;
    }

    /* Services page: make benefits image thinner and stretch to full height */
    .our-benefits-prime .row {
        align-items: stretch !important;
    }

    .our-benefits-prime .col-lg-5 {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }

    .our-benefits-prime .col-lg-7 {
        flex: 0 0 66.666% !important;
        max-width: 66.666% !important;
    }

    .our-benefits-image-prime {
        height: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .our-benefits-image-prime figure {
        height: 100% !important;
    }

    .our-benefits-image-prime figure img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        object-fit: cover !important;
        object-position: right center !important;
    }

    /* Growth formula: boxes 33%/30%/27%, arrows fill remaining space */
    .tmx-growth-formula {
        grid-template-columns: 33% 1fr 30% 1fr 27% !important;
        gap: 8px 6px !important;
    }

    .tmx-growth-formula .tmx-stat-card {
        padding: 0.9rem 1rem !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    .tmx-growth-formula .tmx-stat-card > span {
        font-size: clamp(0.75rem, 1.4vw, 0.95rem) !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .tmx-growth-formula .tmx-stat-card__eyebrow {
        font-size: clamp(0.85rem, 1.6vw, 1.1rem) !important;
    }

    .tmx-growth-formula .tmx-arrow {
        font-size: clamp(0.9rem, 1.6vw, 1.2rem) !important;
    }
}

@media (max-width: 767px) {
    .tmx-note {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .tmx-brand__logo--header {
        width: 220px;
        height: auto;
    }

    .tmx-brand__logo,
    .tmx-footer-brand .tmx-brand__logo {
        width: 280px;
        height: auto;
    }

    .tmx-stat-grid,
    .tmx-stack-grid {
        grid-template-columns: 1fr;
    }

    /* Services benefits: stack image and content in one column */
    .our-benefits-prime .col-lg-5,
    .our-benefits-prime .col-lg-7 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Services features heading: span full width on mobile */
    .page-features .row > .col-xl-4.col-md-6:first-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .our-benefits-image-prime figure img {
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important;
    }

    /* Mission Snapshot: stack columns, squat image */
    .page--home .about-us-prime .row {
        flex-wrap: wrap !important;
    }

    .page--home .about-us-prime .row > .col-lg-5,
    .page--home .about-us-prime .row > .col-lg-7 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .page--home .about-us-image-prime {
        height: 340px !important;
        max-width: 700px !important;
        margin: 0 auto 30px !important;
        overflow: hidden !important;
    }

    .page--home .about-us-image-prime figure {
        height: 100% !important;
    }

    .page--home .about-us-image-prime figure img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Growth formula: override desktop percent-based grid for mobile */
    .tmx-growth-formula {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
        gap: 8px 12px !important;
        justify-content: stretch !important;
    }

    .tmx-growth-formula .tmx-arrow--converge {
        grid-row: auto !important;
        grid-column: 1 / -1 !important;
        justify-content: center !important;
    }

    .tmx-growth-formula .tmx-stat-card--outcome {
        grid-row: auto !important;
        grid-column: 1 / -1 !important;
    }

    .tmx-growth-formula .tmx-stat-card {
        min-width: 0 !important;
        width: 100% !important;
        padding: 10px 14px !important;
    }

    .tmx-growth-formula .tmx-stat-card > span {
        white-space: nowrap !important;
        font-size: clamp(0.7rem, 3.5vw, 1rem) !important;
    }

    /* Hide horizontal arrows and show down arrows on mobile */
    .tmx-growth-formula .tmx-arrow {
        font-size: 0 !important;
        line-height: 0 !important;
    }

    .tmx-growth-formula .tmx-arrow::after {
        content: "↓";
        font-size: 1.4rem;
        line-height: 1;
        color: var(--accent-color);
        font-weight: 700;
    }

    .tmx-growth-formula .tmx-arrow--converge {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        column-gap: 12px;
    }

    .tmx-growth-formula .tmx-arrow--converge::before {
        content: "↓";
        font-size: 1.4rem;
        line-height: 1;
        color: var(--accent-color);
        font-weight: 700;
        justify-self: center;
        grid-column: 1;
        grid-row: 1;
    }

    .tmx-growth-formula .tmx-arrow--converge::after {
        content: "↓";
        font-size: 1.4rem;
        line-height: 1;
        color: var(--accent-color);
        font-weight: 700;
        justify-self: center;
        grid-column: 2;
        grid-row: 1;
    }
}

/* ── Paper.io-style trail animation for page-header titles ── */


/* Ensure page-header allows the SVG trail to render */
.page-header {
    overflow: visible;
}

/* SVG trail container */
.tmx-trail-svg {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
}

/* Trail path stroke animation */
.tmx-trail-path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes tmx-trail-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Glowing head dot at trail endpoint */
.tmx-trail-head {
    opacity: 0;
    stroke: none;
}

@keyframes tmx-trail-head-appear {
    0% {
        opacity: 0;
        r: 0;
    }
    100% {
        opacity: 1;
        r: 4;
    }
}

@keyframes tmx-trail-head-pulse {
    0%, 100% {
        opacity: 1;
        r: 4;
    }
    50% {
        opacity: 1;
        r: 4;
    }
}

@keyframes tmx-header-trail-head-appear {
    0% {
        opacity: 0;
        r: 0;
    }
    100% {
        opacity: 1;
        r: 5;
    }
}

@keyframes tmx-header-trail-head-pulse {
    0%, 100% {
        opacity: 1;
        r: 5;
    }
    50% {
        opacity: 1;
        r: 5;
    }
}

/* Header trail SVG line under logo (homepage hero) */
.tmx-header-trail-svg {
    position: absolute;
    top: 107px;
    left: 0;
    width: 640px;
    height: 170px;
    z-index: 9999;
    pointer-events: none;
    color: var(--accent-color, #00d4ff);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 60px, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 60px, black 100%);
}

.tmx-header-trail-svg .tmx-trail-path {
    stroke: currentColor;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: tmx-trail-draw 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tmx-header-trail-svg .tmx-trail-head {
    fill: currentColor;
    opacity: 0;
    animation: tmx-header-trail-head-appear 0.4s ease-out 1.0s forwards, tmx-header-trail-head-pulse 2.5s ease-in-out 1.4s infinite;
}

/* Reduced motion: show trail instantly, no animation */
@media (prefers-reduced-motion: reduce) {
    .tmx-trail-path {
        stroke-dashoffset: 0 !important;
        animation: none !important;
    }

    .tmx-trail-head {
        opacity: 0.6;
        animation: none !important;
    }

    .tmx-header-trail-svg .tmx-trail-path {
        stroke-dashoffset: 0 !important;
        animation: none !important;
    }

    .tmx-header-trail-svg .tmx-trail-head {
        opacity: 0.6;
        animation: none !important;
    }
}
