.tm-hero {
    background-color: #000;
    background-image: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0) 64.29%),
        url('/images/reviews/09a97ba92c3d9ed8190dcfcd947a5b52ccb15600.jpg');
    background-size: cover, cover;
    background-position: center top, center top;
    background-repeat: no-repeat, no-repeat;
    padding: 130px 0 0;
    position: relative;
    overflow: visible;
}

.tm-eyebrow {
    color: #8aa0c9;
    letter-spacing: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tm-hero h1 {
    color: #fff;
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.tm-hero h1 span {
    color: #2d7efa;
}

.tm-hero .tm-sub {
    color: #b8c2da;
    max-width: 620px;
    margin: 0 auto 28px;
    font-size: 16px;
}

.tm-hero .tm-cta {
    background: #081EC8;
    color: #fff;
    border: none;
    height: 55px;
    padding: 10px 24px;
    gap: 16px;
    border-radius: 76px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .25s ease;
}

.tm-hero .tm-cta:hover {
    background: #0617a0;
}

/* review platform badges */
.tm-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 38px 0 60px;
}

.tm-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.36px;
    padding: 4px 36px;
}

.tm-badge:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.tm-badge .tm-badge-name {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-badge .tm-badge-name .tm-badge-logo {
    height: 22px;
    width: auto;
}

.tm-badge .tm-badge-name svg {
    height: 20px;
    width: 20px;
}

.tm-badge.is-trustpilot .tm-badge-name i {
    color: #00b67a;
}

/* bottom row: rating + stars */
.tm-badge .tm-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-badge .tm-stars i {
    font-size: 14px;
}

.tm-badge .tm-rating {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

/* Trustpilot: white stars on green squares */
.tm-badge.is-trustpilot .tm-stars {
    gap: 3px;
}

.tm-badge.is-trustpilot .tm-stars i {
    background: #00b67a;
    color: #fff;
    font-size: 11px;
    padding: 4px;
    border-radius: 2px;
}

.tm-badge.is-clutch .tm-stars i {
    color: #ff3d2e;
}

/* red dot inside the lowercase "c" of "Clutch" — overlaid so the word stays intact */
.tm-badge.is-clutch .tm-badge-name {
    position: relative;
}

.tm-badge.is-clutch .tm-badge-name::after {
    content: "";
    position: absolute;
    top: 58%;
    left: 73%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ff3d2e;
    pointer-events: none;
}

.tm-badge.is-google .tm-stars i {
    color: #fbbc05;
}

.tm-badge.is-upwork .tm-stars i {
    color: #2d7efa;
}

@media (max-width: 575px) {
    .tm-badge {
        padding: 4px 20px;
    }

    .tm-badge:not(:last-child) {
        border-right: none;
    }
}

/* stats bar */
.tm-stats {
    position: relative;
    z-index: 2;
    margin-top: 10px;
}

.tm-stats .tm-stats-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    transform: translateY(50px);
}

.tm-stat {
    position: relative;
    background: #F5F5F5;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(6, 14, 35, .25);
    width: 300px;
    height: 200px;
    max-width: 100%;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.tm-stat h3 {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    font-size: 48px;
    font-weight: 800;
    color: #0d1b3e;
    margin: 0;
}

.tm-stat h3 span {
    color: #2d7efa;
}

.tm-stat p {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    width: 124px;
    max-width: 100%;
    margin: 0;
    color: #0d1b3e;
    opacity: 0.5;
    font-family: 'Gabarito', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: right;
    text-transform: uppercase;
}

/* decorative graphic on selected stat cards */
.tm-stat-img {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.tm-stat-img.is-shield {
    top: -66px;
    left: 185px;
    width: 107px;
    height: 148px;
}

.tm-stat-img.is-plant {
    top: 58px;
    left: 0;
    width: 118px;
    height: 142px;
}

/* ===== Masonry review grid ===== */
.tm-grid-section {
    padding: 110px 0 80px;
    background: #f6f8fc;
}

.tm-masonry {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tm-col {
    flex: 1;
    min-width: 0;
}

@media (max-width: 991px) {
    .tm-masonry {
        flex-wrap: wrap;
    }

    .tm-col {
        flex: 1 1 calc(50% - 11px);
    }
}

@media (max-width: 575px) {
    .tm-col {
        flex: 1 1 100%;
    }
}

.tm-card {
    background: #fff;
    border: 1.09px solid #eef1f7;
    border-radius: 17.38px;
    padding: 24px;
    margin: 0 0 20px;
    min-height: 256px;
    display: flex;
    flex-direction: column;
    break-inside: avoid;
    box-shadow: 0 8px 24px rgba(13, 27, 62, .04);
    transition: transform .25s ease, box-shadow .25s ease;
}

.tm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(13, 27, 62, .1);
}

.tm-card .tm-card-stars {
    margin-bottom: 12px;
}

.tm-card .tm-card-stars i {
    color: #ffa800;
    font-size: 14px;
}

.tm-card p.tm-quote {
    flex: 1;
    color: #374151;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.tm-card .tm-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tm-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    flex-shrink: 0;
}

.tm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-author .tm-author-meta {
    flex: 1;
    min-width: 0;
}

.tm-author .tm-author-meta b {
    display: block;
    color: #0d1b3e;
    font-size: 15px;
}

.tm-author .tm-author-meta span {
    color: #8a93a6;
    font-size: 13px;
}

.tm-source {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f5fa;
    flex-shrink: 0;
}

.tm-source.is-google i {
    color: #4285f4;
}

.tm-source.is-brand {
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.tm-source.is-brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-source.is-clutch {
    width: auto;
    min-width: 64px;
    background: #fff;
    border: 1px solid #eef1f7;
    padding: 4px 8px;
}

.tm-source.is-clutch img {
    max-width: 100%;
    max-height: 22px;
    object-fit: contain;
}

/* video review card */
.tm-card.tm-video {
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 510px;
    border: 1.09px solid #eef1f7;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tm-card.tm-video::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 6, 15, .15) 0%, rgba(4, 6, 15, .85) 100%);
    z-index: 1;
}

.tm-card.tm-video .tm-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tm-card.tm-video .tm-video-meta {
    position: relative;
    z-index: 2;
    padding: 22px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* push the source logo (Google) to the right of a video card's name row */
.tm-card.tm-video .tm-video-meta .tm-source {
    margin-left: auto;
    background: #fff;
    border-radius: 50%;
}

.tm-card.tm-video .tm-video-meta b {
    display: block;
    font-size: 15px;
}

.tm-card.tm-video .tm-video-meta span span {
    font-size: 13px;
    color: #cfd6e6;
}

/* mute toggle — only shows while the video is playing (on hover) */
.tm-mute {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 15px;
    z-index: 4;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.tm-mute:hover {
    background: rgba(0, 0, 0, .8);
}

.tm-card.tm-video.playing .tm-mute {
    display: flex;
}

/* while playing (hover): clean video, hide the dark overlay + name row */
.tm-card.tm-video.playing::before {
    display: none;
}

.tm-card.tm-video.playing video {
    z-index: 2;
}

.tm-card.tm-video.playing .tm-video-meta {
    display: none;
}

/* center play button (resting state) — hidden once the video plays on hover */
.tm-card.tm-video::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232d7efa'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 24px no-repeat;
    z-index: 3;
    pointer-events: none;
    transition: opacity .2s ease;
}

.tm-card.tm-video.playing::after {
    opacity: 0;
}

/* ===== Uncover strategies dark band ===== */
.tm-strategies {
    position: relative;
    background: linear-gradient(120deg, #0d1b3e 0%, #060a17 100%);
    padding: 70px 0;
    color: #fff;
    overflow: hidden;
}

.tm-strategies::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.tm-strategies .container {
    position: relative;
    z-index: 1;
}

.tm-strategies h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.2;
}

.tm-strategies p {
    color: #b8c2da;
    margin: 16px 0 26px;
    max-width: 460px;
}

.tm-strategies .tm-portfolio-btn {
    background: #081EC8;
    color: #fff;
    height: 55px;
    padding: 10px 24px;
    gap: 16px;
    border-radius: 76px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tm-strategies .tm-logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    row-gap: 35px;
    column-gap: 35px;
    width: 580px;
    max-width: 100%;
    height: 295px;
    margin-left: auto;
}

.tm-strategies .tm-logo-grid .tm-logo-box {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.tm-strategies .tm-logo-grid img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .85;
}

.tm-strategies .tm-logo-grid img.tm-logo-lg {
    width: 70px;
    height: 68px;
    max-width: none;
    max-height: none;
    filter: grayscale(1);
    opacity: 1;
}

/* ===== Awards ===== */
.tm-awards {
    padding: 80px 0;
    background: #fff;
}

.tm-awards .tm-section-eyebrow {
    color: #2d7efa;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

.tm-awards .tm-awards-divider {
    display: block;
    width: 37.94px;
    height: 2.37px;
    border-radius: 11856.14px;
    background: #3525CD;
    margin: -11px auto 0;
}

.tm-awards h2 {
    font-weight: 800;
    font-size: clamp(26px, 3.5vw, 38px);
    color: #0d1b3e;
}

.tm-awards h2 span {
    color: #2d7efa;
}

.tm-award-card {
    text-align: center;
    padding: 28px 18px;
    border: 1px solid #eef1f7;
    border-radius: 16px;
    height: 100%;
    transition: box-shadow .25s ease, transform .25s ease;
}

.tm-award-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(13, 27, 62, .08);
}

.tm-award-card .tm-award-icon {
    width: auto;
    height: 120px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-award-card .tm-award-icon img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.tm-award-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0d1b3e;
    margin: 0;
}

/* ============================================================
   Responsive — desktop (Mac) is the default above; the rules
   below adapt the layout down to tablet (iPad) and mobile.
   ============================================================ */

/* Tablet / iPad (≤ 991px) */
@media (max-width: 991px) {
    .tm-hero {
        padding: 100px 0 0;
    }

    .tm-stats .tm-stats-inner {
        transform: translateY(40px);
    }

    /* strategies: heading + logo grid stack full width */
    .tm-strategies .tm-logo-grid {
        width: 100%;
        margin-left: 0;
    }

    /* award badges sit 3-per-row on tablet — keep them a touch smaller */
    .tm-award-card .tm-award-icon {
        height: 100px;
    }
}

/* Large phones / small tablets (≤ 767px) */
@media (max-width: 767px) {
    .tm-hero {
        padding: 88px 0 0;
    }

    .tm-hero .tm-cta {
        white-space: nowrap;
        font-size: 13px;
        padding: 12px 18px;
        gap: 10px;
        max-width: 100%;
    }

    .tm-badges {
        gap: 18px 0;
        margin: 26px 0 48px;
    }

    .tm-badge {
        padding: 4px 18px;
    }

    .tm-badge:not(:last-child) {
        border-right: none;
    }

    .tm-grid-section {
        padding: 80px 0 56px;
    }

    /* logo grid: let rows size to content instead of a fixed 295px frame */
    .tm-strategies .tm-logo-grid {
        height: auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        row-gap: 16px;
        column-gap: 16px;
    }

    .tm-strategies .tm-logo-grid .tm-logo-box {
        height: 96px;
    }

    .tm-strategies .tm-logo-grid img {
        max-height: 56px;
    }

    .tm-strategies p,
    .tm-strategies .tm-portfolio-btn {
        margin-bottom: 14px;
    }
}

/* Phones (≤ 575px) */
@media (max-width: 575px) {
    .tm-hero h1 {
        font-size: 32px;
    }

    /* logo grid: 2 per row instead of 3 so logos aren't cramped */
    .tm-strategies .tm-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* portrait video cards a bit shorter on small phones */
    .tm-card.tm-video {
        height: 440px;
    }

    .tm-hero .tm-cta {
        font-size: 12px;
        padding: 11px 14px;
        gap: 8px;
    }

    .tm-stats .tm-stats-inner {
        transform: translateY(32px);
        gap: 16px;
    }

    /* stat cards go full width, one per row */
    .tm-stat {
        width: 100%;
    }

    .tm-stat h3 {
        font-size: 40px;
    }

    /* keep the shield decoration inside the now full-width card */
    .tm-stat-img.is-shield {
        left: auto;
        right: 24px;
    }

    .tm-award-card .tm-award-icon {
        height: 96px;
    }

    .tm-award-card h4 {
        font-size: 14px;
    }
}
