/* Technical / Manufacturing page
   Reuses the site-wide hero, bento, case-study, and CTA systems
   while adding a page-specific trust-panel layout. */

.tm-hero {
    padding: 140px 0 100px;
    background-color: #001217;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(231, 206, 103, 0.08), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(13, 128, 140, 0.12), transparent 40%),
        linear-gradient(to right, rgba(0, 43, 54, 0.90) 0%, rgba(0, 43, 54, 0.75) 50%, rgba(17, 23, 26, 0.95) 100%),
        url('../images/hero/tm_hero.webp');
    background-size: cover;
    background-position: center top;
    position: relative;
    overflow: hidden;
    min-height: 700px;
    color: white;
}

.tm-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Dark wash on the left to ground the text */
    background: linear-gradient(to right, rgba(0, 43, 54, 0.6) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.tm-hero-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: center;
}

.tm-hero-copy {
    max-width: 860px;
    margin: 0;
    text-align: left;
    position: relative;
    z-index: 2;
}

.tm-hero-title {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.05;
    margin-bottom: 32px;
}

.tm-hero-partners {
    position: relative;
    z-index: 2;
    padding: 32px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
}

.tm-partners-title {
    color: var(--brand-gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    text-align: center;
    opacity: 0.9;
}

.tm-partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.tm-partner-logo-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tm-partner-logo-item {
    height: 70px;
    width: auto;
    max-width: 100%;
    filter: grayscale(100%) contrast(25%) brightness(160%);
    opacity: 0.95;
    transition: all 0.3s ease;
    object-fit: contain;
}

.tm-hero-image-frame {
    width: 100%;
    border-radius: 16px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.tm-hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
}

.tm-hero-eyebrow {
    margin-bottom: 20px;
}

.tm-hero-kicker {
    color: var(--brand-gold);
}

.tm-hero-lead {
    max-width: 72ch;
    color: var(--text-secondary);
    margin: 0 0 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.tm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: flex-start;
}

.tm-hero-secondary,
.tm-cta-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
}

.tm-proof-shell {
    padding: 24px 0 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.tm-proof-shell-carousel {
    margin-top: 72px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.tm-proof-shell-hero-top {
    margin: 0 0 28px;
    padding-top: 0;
}

.tm-proof-header {
    margin-bottom: 18px;
    text-align: center;
}

.tm-proof-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--brand-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.tm-proof-title {
    color: #fff;
    font-size: clamp(1.35rem, 1.8vw, 1.8rem);
    line-height: 1.15;
    margin-bottom: 0;
}

.tm-stat-strip {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
    margin-bottom: 28px;
}

.tm-iso-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tm-iso-text span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

.tm-iso-text-label {
    color: rgba(255, 255, 255, 0.46) !important;
    font-weight: 500 !important;
    margin-right: 8px;
}

.tm-iso-text span:not(.tm-iso-text-label) {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tm-partner-carousel {
    padding: 0;
    background: transparent;
    margin-top: 0;
}

.tm-services-section {
    padding: 88px 0 96px;
}

.tm-section-label {
    color: var(--brand-teal) !important;
}

.tm-section-headline {
    color: #002b36 !important;
    margin-bottom: 16px;
}

.tm-section-intro,
.tm-stories-intro,
.tm-cta-copy {
    max-width: 88ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
    font-size: 1.05rem;
}

.tm-section-intro {
    margin-bottom: 40px;
    color: #4f6470;
}

.tm-stories-section {
    padding: 96px 0 104px;
}

.tm-stories-headline {
    margin-bottom: 16px;
}

.tm-stories-intro {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 24px;
}

.tm-stories-cta {
    margin-bottom: 24px;
}

/* --- Stories Carousel (reuses homepage .carousel-btn / .carousel-dots) --- */
.tm-stories-carousel-wrapper {
    position: relative;
    padding: 0 40px; /* Make room for absolute buttons so they don't cover cards */
}

/* Ensure buttons are on top and clickable */
.tm-stories-carousel-wrapper .carousel-btn {
    z-index: 50;
    pointer-events: auto;
}

/* Stop inherited homepage scrolling animation from overriding JS transform */
.tm-stories-carousel-wrapper .carousel-track {
    animation: none !important;
}

.tm-story-card {
    min-height: 400px;
    cursor: pointer;
}

.tm-story-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: rgba(0,0,0,0.5); /* Static dark wash */
    z-index: 2; /* Important: Place this ABOVE the global dark-card ::before teal wash */
    pointer-events: none; /* Let clicks pass through */
}

.tm-cta-section {
    padding: 96px 0 104px;
}

.tm-cta-title {
    color: var(--brand-teal);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.tm-cta-copy {
    color: #4f6470;
    margin-bottom: 34px;
}

.tm-cta-actions {
    justify-content: center;
}

.tm-cta-section .btn-secondary-outline {
    color: var(--brand-teal);
    border-color: rgba(0, 43, 54, 0.18);
}

@media (max-width: 1199px) {
}

@media (max-width: 991px) {
    .tm-hero {
        padding-top: 136px;
        padding-bottom: 72px;
        background-image:
            linear-gradient(rgba(0, 43, 54, 0.75), rgba(17, 23, 26, 0.88)),
            url('../images/hero/tm_hero.webp');
    }

    .tm-hero-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .tm-hero-copy {
        text-align: center;
        margin: 0 auto;
    }

    .tm-hero-partners {
        padding: 24px;
        margin-top: 24px;
    }

    .tm-partners-grid {
        gap: 24px;
    }

    .tm-hero-copy h1 {
        max-width: 18ch;
        margin-left: auto;
        margin-right: auto;
    }

    .tm-hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .tm-hero-actions,
    .tm-stat-strip,
    .tm-iso-text {
        justify-content: center;
    }

    .tm-proof-shell-carousel {
        margin-top: 56px;
    }
}

@media (max-width: 767px) {
    .tm-iso-text {
        gap: 8px;
        padding-top: 12px;
    }

    .tm-hero-image {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 575px) {
    .tm-hero-copy h1 {
        max-width: none;
    }

    .tm-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tm-hero-actions a {
        width: 100%;
        text-align: center;
    }
}
