.heartmind-section {
	position: relative;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	padding: 150px 0 150px 0;
	overflow-x: clip;
	z-index: 1;
}

.heartmind-row {
    gap: clamp(40px, 3vw, 80px);
}

.heartmind-section.image-right .heartmind-row {
    flex-direction: row-reverse;
}

/* ---------- Media ---------- */

.heartmind-media-wrap {
    flex: 1;
}

.heartmind-media {
    max-width: 540px;
    aspect-ratio: 1448 / 1086;
    margin-inline: auto;
}

/* ---------- Content ---------- */

.heartmind-content-wrap {
    max-width: 53%;
    width: 100%;
}

.heartmind-eyebrow {
    display: inline-block;
    font-family: 'Inter Tight', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hm-accent);
    padding: 8px 15px;
    border: 1px solid #e8e1d3;
    border-radius: 999px;
    background-color: var(--color-off-white);
    margin-block-end: 22px;
}

.heartmind-title {
    line-height: 1.2;
    margin: 0 0 24px 0;
}

.heartmind-desc {
    max-width: 639px;
}

/* ---------- Centered variant ----------
   Same markup as the split layout; display:contents lifts the head and
   actions out of their wrapper so the artwork can sit between them.
   Used on the homepage so this section does not mirror the
   image-beside-text About Us section directly below it. */

.heartmind-section.is-centered .heartmind-row {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 0;
}

.heartmind-section.is-centered .heartmind-content-wrap {
    display: contents;
}

.heartmind-section.is-centered .heartmind-head {
    order: 1;
    max-width: 760px;
}

.heartmind-section.is-centered .heartmind-media-wrap {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    margin-block-start: 44px;
}

.heartmind-section.is-centered .heartmind-actions {
    order: 3;
}

.heartmind-section.is-centered .heartmind-media {
    max-width: 620px;
}

.heartmind-section.is-centered .heartmind-desc {
    max-width: 720px;
    margin-inline: auto;
}

.heartmind-section.is-centered .heartmind-tiles {
    justify-content: center;
    margin-block-start: 40px;
}

.heartmind-section.is-centered .heartmind-btn-wrap {
    margin-block-start: 32px;
}

/* ---------- Theme tiles ---------- */

.heartmind-tiles {
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0 0 0;
}

.heartmind-tile {
    --tile-color: var(--hm-accent);
    display: flex;
    align-items: center;
    padding: 14px 22px;
    border: 2px solid var(--tile-color);
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.55);
    transition: 0.5s;
}

.heartmind-tile-text {
    font-family: 'Inter Tight', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.32px;
    transition: 0.5s;
}

a.heartmind-tile:hover {
    background-color: var(--tile-color);
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

a.heartmind-tile:hover .heartmind-tile-text {
    color: var(--color-white);
}

.heartmind-btn-wrap {
    margin: 40px 0 0 0;
}

/* ============================
   RESPONSIVE
============================ */

@media screen and (max-width:1600px) {
    .heartmind-section {
        padding: 130px 0 140px 0;
    }
}

@media screen and (max-width:1440px) {
    .heartmind-section {
        padding: 110px 0 120px 0;
    }

    .heartmind-media {
        max-width: 480px;
    }
}

@media screen and (max-width:1360px) {
    .heartmind-section {
        padding: 100px 0 120px 0;
    }

    .heartmind-media {
        max-width: 440px;
    }
}

@media screen and (max-width:1200px) {
    .heartmind-section {
        padding: 80px 0 110px 0;
    }

    .heartmind-title {
        margin: 0 0 20px 0;
    }
}

@media screen and (max-width:1024px) {
    .heartmind-section {
        padding: 60px 0 100px 0;
    }

    .heartmind-media {
        max-width: 380px;
    }

    .heartmind-section.is-centered .heartmind-media {
        max-width: 500px;
    }

    .heartmind-section.is-centered .heartmind-media-wrap {
        margin-block-start: 34px;
    }

    .heartmind-section.is-centered .heartmind-tiles {
        margin-block-start: 32px;
    }

    .heartmind-tiles {
        gap: 12px;
        margin: 28px 0 0 0;
    }

    .heartmind-tile {
        padding: 12px 18px;
    }

    .heartmind-btn-wrap {
        margin: 30px 0 0 0;
    }
}

@media screen and (max-width:992px) {
    .heartmind-row {
        gap: clamp(36px, 3vw, 60px);
    }
}

@media screen and (max-width:768px) {
    .heartmind-section {
        padding: 40px 0 60px 0;
    }

    .heartmind-row {
        flex-wrap: wrap;
    }

    .heartmind-section.image-right .heartmind-row {
        flex-direction: row;
    }

    .heartmind-content-wrap {
        max-width: 100%;
        width: 100%;
        order: -1;
    }

    .heartmind-desc {
        max-width: 100%;
    }

    .heartmind-media-wrap {
        flex: 0 0 100%;
    }

    .heartmind-media {
        max-width: 80%;
    }

    .heartmind-section.is-centered .heartmind-media {
        max-width: 100%;
    }

    .heartmind-section.is-centered .heartmind-media-wrap {
        margin-block-start: 28px;
    }
}

@media screen and (max-width:640px) {
    .heartmind-section {
        padding: 30px 0 50px 0;
    }

    .heartmind-eyebrow {
        margin-block-end: 16px;
    }

    .heartmind-title {
        margin: 0 0 16px 0;
    }

    .heartmind-tiles {
        gap: 10px;
        margin: 24px 0 0 0;
    }

    .heartmind-tile {
        padding: 11px 16px;
        border-radius: 14px;
    }

    .heartmind-tile-text {
        font-size: 15px;
    }

    .heartmind-btn-wrap {
        margin: 26px 0 0 0;
    }
}
