:root {
    color-scheme: light;
    --default-font: "Oxanium", sans-serif;
    --heading-font: "Anta", sans-serif;
    --primary-color: #03171D;
    --secondary-color: #F9F9F9;
    --bg-color: #FFFFFF;
    --text-color: #59676C;
    --accent-color: #81D86F;
    --white-color: #FFFFFF;
    --divider-color: rgba(3, 23, 29, 0.102);
    --dark-divider-color: rgba(255, 255, 255, 0.102);
    --error-color: rgb(230, 87, 87);
    --tmx-surface: #ffffff;
    --tmx-surface-muted: #f1f6f4;
    --tmx-shadow: 0 24px 70px rgba(3, 23, 29, 0.08);
}

[data-theme="dark"] {
    color-scheme: dark;
    --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);
    --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;
    }
}

body {
    background:
        radial-gradient(circle at top left, rgba(133, 221, 115, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(12, 64, 84, 0.12), transparent 30%),
        var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] 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%);
}

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: min(420px, 60vw);
    height: auto;
    display: block;
    filter: drop-shadow(0 14px 24px rgba(28, 206, 162, 0.18));
}

.tmx-brand__logo--header {
    width: clamp(180px, 22vw, 320px);
    height: auto;
    filter: none;
    display: block;
}

.tmx-brand--header {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tmx-brand__wordmark {
    display: block;
    font-size: clamp(7px, 1.1vw, 11px);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
    margin-left: 14%;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-header.header-prime .header-sticky {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.main-header.header-prime .navbar > .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    column-gap: clamp(1.25rem, 2.5vw, 2.25rem);
    min-height: auto;
    max-width: 1140px;
}

.main-header.header-prime .navbar {
    padding: 14px 0;
    align-items: center;
}

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

.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: flex;
    align-items: center;
    flex: 1 1 auto;
    min-height: 100%;
}

.main-header.header-prime .nav-menu-wrapper {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
}

.main-header.header-prime .nav-menu-wrapper > ul {
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 1vw, 0.75rem);
}

.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: 1.4rem;
    flex-direction: column;
    align-items: flex-start;
}

.tmx-footer-brand .tmx-brand__logo {
    width: 100%;
    max-width: 440px;
}


.header-btn--app {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
    margin-left: auto;
}

.header-btn--app .btn-default {
    white-space: nowrap;
}

.mobile-cta {
    display: none;
}

[data-theme="dark"] .header-prime .nav-link,
[data-theme="dark"] .header-prime .navbar-brand,
[data-theme="dark"] .footer-links-prime ul li a,
[data-theme="dark"] .footer-links-prime ul li,
[data-theme="dark"] .footer-contact-list-prime p,
[data-theme="dark"] .footer-copyright-text-prime p {
    color: rgba(236, 248, 244, 0.76);
}

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

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] label,
[data-theme="dark"] .testimonial-item-content-prime p,
[data-theme="dark"] .feature-item-content p,
[data-theme="dark"] .about-footer-content-prime p,
[data-theme="dark"] .section-title p,
[data-theme="dark"] .contact-info-item-content p,
[data-theme="dark"] .how-work-item-content-prime p,
[data-theme="dark"] .benefits-header-content-prime p,
[data-theme="dark"] .benefits-body-list-prime ul li,
[data-theme="dark"] .about-us-item-title h3,
[data-theme="dark"] .feature-item .readmore-btn,
[data-theme="dark"] .footer-newsletter-form-prime h3,
[data-theme="dark"] .footer-social-links-prime h3 {
    color: var(--text-color);
}

[data-theme="dark"] .page-features,
[data-theme="dark"] .page-team,
[data-theme="dark"] .page-pricing,
[data-theme="dark"] .page-contact-us,
[data-theme="dark"] .about-us,
[data-theme="dark"] .about-us-prime,
[data-theme="dark"] .our-benefits-prime,
[data-theme="dark"] .how-it-works-prime,
[data-theme="dark"] .our-approach,
[data-theme="dark"] .error-page,
[data-theme="dark"] .tmx-prose-shell {
    background: transparent;
}

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

[data-theme="dark"] .feature-item-content,
[data-theme="dark"] .pricing-item-header,
[data-theme="dark"] .pricing-item-body,
[data-theme="dark"] .team-item-content,
[data-theme="dark"] .tmx-prose-card,
[data-theme="dark"] .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;
    }
}

@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(--primary-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);
}

.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,
.contact-form .form-select,
.footer-newsletter-form-prime .form-control {
    border: 1px solid var(--divider-color);
}

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

[data-theme="dark"] .contact-form .form-control,
[data-theme="dark"] .contact-form .form-select,
[data-theme="dark"] .footer-newsletter-form-prime .form-control {
    color: #ecf8f4;
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .contact-form .form-control::placeholder,
[data-theme="dark"] .footer-newsletter-form-prime .form-control::placeholder {
    color: rgba(236, 248, 244, 0.48);
}

/* ── Form layout and padding ── */

.contact-us-form {
    padding: clamp(28px, 5vw, 60px);
}

.contact-us-form-title {
    margin-bottom: clamp(24px, 4vw, 48px);
}

.contact-form .form-group {
    position: relative;
}

.tmx-form-meta {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider-color);
}

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

.tmx-checkbox input {
    margin-top: 0.35rem;
    accent-color: var(--accent-color);
}

.form-status {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
}

/* ── Inline validation ── */

.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(230, 87, 87, 0.12);
}

.contact-form .form-control.is-valid,
.contact-form .form-select.is-valid {
    border-color: var(--accent-color);
}

.tmx-field-error {
    display: block;
    font-size: 13px;
    color: var(--error-color);
    margin-top: 6px;
    min-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
}

.tmx-field-error.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tmx-checkbox.is-invalid span {
    color: var(--error-color);
}

.contact-form .form-status.is-error {
    color: var(--error-color);
}

.contact-form .form-status.is-success {
    color: var(--accent-color);
}

[data-theme="dark"] .tmx-form-meta {
    border-top-color: var(--divider-color);
}

[data-theme="dark"] .contact-form .form-control.is-invalid,
[data-theme="dark"] .contact-form .form-select.is-invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(230, 87, 87, 0.18);
}

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

.tmx-next-steps h3 {
    margin-bottom: 1rem;
    color: var(--white-color);
}

.tmx-next-steps li {
    color: rgba(255, 255, 255, 0.76);
}

.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(--dark-divider-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white-color);
    line-height: 1.2;
    text-decoration: none;
}

[data-theme="dark"] .tmx-stat-card__value,
[data-theme="dark"] .tmx-stat-card__value--link {
    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;
}

/* ── Dark-mode: process-band CTA text ── */

[data-theme="dark"] .section-footer-text p {
    color: var(--white-color);
}

[data-theme="dark"] .section-footer-text p a:hover {
    color: var(--white-color);
}

/* ── 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: more internal padding ── */

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

.footer-header-content-prime {
    gap: 24px 40px;
}

/* ── Footer link columns: more space from edges ── */

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

.footer-about-prime {
    padding-right: 1.5rem;
}

/* ── Footer operating principles: full-width horizontal band ── */

.col-lg-12 > .footer-social-links-prime {
    border-top: 1px solid var(--dark-divider-color);
    margin-top: 2.5rem;
    padding-top: 2rem;
}

.footer-social-links-prime .tmx-social-proof {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
}

/* ── Footer copyright: breathing room ── */

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

@media (max-width: 991px) {
    .header-btn--app {
        display: 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;
    }
}

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

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

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

    .tmx-brand__logo--header {
        width: clamp(140px, 42vw, 240px);
        height: auto;
    }

    .tmx-brand--header {
        align-items: flex-start;
    }

    .tmx-brand__wordmark {
        margin-left: 14%;
        font-size: clamp(6px, 1.8vw, 9px);
        letter-spacing: 0.04em;
        text-align: left;
    }

    .tmx-brand__logo,
    .tmx-footer-brand .tmx-brand__logo {
        width: min(340px, 85vw);
    }

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

/* ── Services page: extended dark hero (mirrors about page) ── */

.page-header--services {
    padding-bottom: 80px;
}

.page-header--services .section-title h3 {
    background: var(--dark-divider-color);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.page-header--services .section-title h3,
.page-header--services .section-title h2,
.page-header--services .section-title p {
    color: var(--white-color);
}

.page-header--services .feature-item-content h3,
.page-header--services .feature-item-content p,
.page-header--services .feature-item .readmore-btn {
    color: var(--white-color);
}

/* ── About page: force white text on items inside dark hero ── */

.page-header--about .about-us-item-title h3,
.page-header--about .about-support-box-content h3,
.page-header--about .about-support-box-content p,
.page-header--about .about-us-footer {
    color: var(--white-color);
}

.page-header--about .about-excellence-box-title h3 {
    color: var(--primary-color);
}

.page-header--about .about-us-footer {
    border-top-color: var(--dark-divider-color);
}

/* ── Contact form: dark/light theme compatibility ── */

.contact-us-form {
    padding: clamp(24px, 4vw, 60px);
}

.contact-us-form-title h3 {
    color: var(--primary-color);
}

[data-theme="dark"] .contact-us-form-title h3 {
    color: #ecf8f4;
}

.contact-form .form-control,
.contact-form .form-select {
    background: var(--tmx-surface);
    color: var(--primary-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(129, 216, 111, 0.15);
    outline: none;
}

[data-theme="dark"] .contact-form .form-select option {
    background: var(--tmx-surface);
    color: #ecf8f4;
}

[data-theme="dark"] .form-status {
    color: rgba(236, 248, 244, 0.6);
}

[data-theme="dark"] .tmx-checkbox a {
    color: var(--accent-color);
}

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

/* Hide old static h1 lines — replaced by SVG trail */
.page-header-box h1::before,
.page-header-box h1::after {
    display: none;
}

/* 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;
}

@keyframes tmx-trail-head-appear {
    0% {
        opacity: 0;
        r: 2;
    }
    60% {
        opacity: 1;
        r: 5;
    }
    100% {
        opacity: 0.6;
        r: 3;
    }
}

@keyframes tmx-trail-head-pulse {
    0%, 100% {
        opacity: 0.6;
        r: 3;
    }
    50% {
        opacity: 0.3;
        r: 6;
    }
}

/* 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;
    }
}
