/* Testing & Measurement — RIVIMETAL 2026 visual refinement */
.tm-2026 .tm-hero,
.tm-2026 .tm-hero-grid {
    height: auto;
    min-height: clamp(620px, calc(100vh - 106px), 820px);
}

.tm-2026 .tm-hero-grid {
    grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr);
}

.tm-2026 .tm-hero-copy {
    position: relative;
    z-index: 2;
    padding-bottom: clamp(64px, 7vw, 92px);
    background: #141b20;
}

.tm-2026 .tm-hero h1 {
    max-width: 610px;
    font-size: clamp(54px, 5vw, 76px);
    line-height: .96;
}

.tm-2026 .tm-hero-media {
    position: relative;
    align-self: stretch;
    height: 100%;
    min-height: 100%;
    background: #242d32;
}

.tm-2026 .tm-hero-media::after {
    z-index: 1;
    background: linear-gradient(90deg, rgba(20,27,32,.24), transparent 38%);
}

.tm-2026 .tm-hero-media img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 52% 49%;
    filter: contrast(1.08) saturate(.92) brightness(.92);
}

.tm-2026 .tm-control {
    background: #f4f1ea;
}

.tm-2026 .tm-validation {
    background: #161f24;
}

.tm-2026 .tm-process {
    background: #202b31;
}

.tm-2026 .tm-process-points article {
    transition: background-color 180ms ease;
}

.tm-2026 .tm-process-points article:hover {
    background: rgba(255,255,255,.025);
}

.tm-2026 .tm-production-visual {
    position: relative;
    height: clamp(540px, 66vw, 860px);
    padding: 0;
    overflow: hidden;
    background: #151d22;
}

.tm-2026 .tm-production-visual picture,
.tm-2026 .tm-production-visual img {
    display: block;
    width: 100%;
    height: 100%;
}

.tm-2026 .tm-production-visual img {
    object-fit: cover;
    object-position: center 54%;
    filter: contrast(1.04) saturate(.9);
}

.tm-2026 .tm-production-visual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(11,16,19,.72) 100%);
    content: "";
}

.tm-2026 .tm-production-caption {
    position: absolute;
    z-index: 2;
    right: max(24px, calc((100vw - 1360px) / 2));
    bottom: 40px;
    left: max(24px, calc((100vw - 1360px) / 2));
    display: grid;
    grid-template-columns: 180px minmax(0, 520px);
    gap: 26px;
    align-items: end;
    color: #fff;
}

.tm-2026 .tm-production-caption span {
    color: #ffaaa7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.tm-2026 .tm-production-caption strong {
    font-family: "Albert Sans", sans-serif;
    font-size: clamp(24px, 2.6vw, 38px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.tm-2026 .tm-surface {
    background: #fbfaf6;
}

.tm-2026 .tm-equipment {
    background: #10181c;
}

.tm-2026 .tm-equipment-media {
    position: relative;
    height: clamp(500px, 50vw, 700px);
    background: #283238;
}

.tm-2026 .tm-equipment-media::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.08);
    pointer-events: none;
    content: "";
}

.tm-2026 .tm-equipment-media img {
    object-position: 43% center;
    filter: contrast(1.08) saturate(.88) brightness(.94);
}

.tm-2026 .tm-connected {
    background: #fbfaf6;
}

.tm-2026 .tm-related {
    background: #f0ede6;
}

@media (max-width: 1199px) {
    .tm-2026 .tm-hero-grid {
        grid-template-columns: minmax(0, .95fr) minmax(480px, 1.05fr);
    }
}

@media (max-width: 991px) {
    .tm-2026 .tm-hero,
    .tm-2026 .tm-hero-grid {
        height: auto;
        min-height: 0;
    }

    .tm-2026 .tm-hero-grid {
        grid-template-columns: 1fr;
    }

    .tm-2026 .tm-hero-copy {
        min-height: 610px;
    }

    .tm-2026 .tm-hero-media {
        min-height: 620px;
    }

    .tm-2026 .tm-hero-media img {
        position: absolute;
        object-position: 52% 47%;
    }
}

@media (max-width: 767px) {
    .tm-2026 .tm-hero-copy {
        min-height: 570px;
        padding-top: calc(118px + env(safe-area-inset-top));
        padding-bottom: 52px;
    }

    .tm-2026 .tm-hero h1 {
        font-size: clamp(46px, 13.5vw, 61px);
    }

    .tm-2026 .tm-hero-media {
        min-height: 510px;
    }

    .tm-2026 .tm-hero-media img {
        object-position: 54% 48%;
    }

    .tm-2026 .tm-production-visual {
        height: 520px;
    }

    .tm-2026 .tm-production-visual img {
        object-position: 54% center;
    }

    .tm-2026 .tm-production-caption {
        right: 20px;
        bottom: 28px;
        left: 20px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tm-2026 .tm-equipment-media {
        height: 470px;
    }

    .tm-2026 .tm-equipment-media img {
        object-position: 31% center;
    }
}
