/* Shared by every home-hero-new caller. Page themes set variables only;
   layout, typography and breakpoints belong here. CMS colours remain inline. */
.rr-about { --rr-hero-bg: #07333d; }
.rr-people { --rr-hero-bg: #07333d; }
.rr-insights { --rr-hero-bg: #e8e8e8; --rr-hero-ink: #171245; }
.rr-contact, .rr-talk, .rr-service-individual {
    --rr-hero-bg: #f9f9f9;
    --rr-hero-ink: #171245;
}
html.rr-refresh-page main.home:has(.rr-hero) { padding-top: 0 !important; }
.rr-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    background-color: var(--rr-hero-bg, #6a59fd);
    color: var(--rr-hero-ink, #fff);
    --rr-hero-gutter: 72px;
    --rr-hero-min-height: 0px;
    min-height: var(--rr-hero-min-height);
}
.rr-hero, .rr-hero *, .rr-hero *::before, .rr-hero *::after { box-sizing: border-box; }
.rr-hero .rr-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    width: 100%;
    max-width: 1440px;
    min-height: var(--rr-hero-min-height);
    margin: 0 auto;
    padding: 140px var(--rr-hero-gutter) 80px;
}
.rr-hero--square .rr-hero__inner,
.rr-hero--cutout .rr-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 463px);
}
/* Text-only banners follow their content; photos and videos have their own floor. */
.rr-hero--square { --rr-hero-min-height: 608px; }
.rr-hero .rr-hero__content {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
    max-width: 650px;
    padding: 0;
}
html.rr-refresh-page .rr-hero .rr-hero__title {
    margin: 0;
    color: inherit;
    font: 600 72px/1.1 var(--uat-heading-font, 'Archivo', Arial, sans-serif);
    letter-spacing: -.02em;
    overflow-wrap: break-word;
    text-transform: none;
}
html.rr-refresh-page .rr-hero .rr-hero__text {
    max-width: 640px;
    margin: 24px 0 0;
    color: inherit;
    font: 400 20px/1.4 var(--uat-body-font, 'Noto Sans', Arial, sans-serif);
    letter-spacing: normal;
    white-space: pre-line;
}
.rr-hero .rr-hero__text > * { color: inherit; font: inherit; margin: 0; }
.rr-hero .rr-hero__text > * + * { margin-top: 12px; }
.rr-hero .rr-hero__text :is(ul, ol) { padding-left: 24px; }
.rr-hero .rr-btn { margin-top: 32px; }
.rr-hero__background {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
}
/* Keep refreshHeroBackground at the desktop composition size on wider screens. */
@media (min-width: 1441px) {
    .rr-hero__background {
        left: 50%;
        right: auto;
        width: 1440px;
        transform: translateX(-50%);
    }
}
.rr-hero__square-image {
    position: relative;
    z-index: 1;
    display: block;
    justify-self: end;
    width: 100%;
    max-width: 463px;
    height: auto;
    aspect-ratio: 463 / 442;
    object-fit: cover;
    border-radius: 20px;
}
.rr-hero__image {
    position: absolute;
    right: var(--rr-hero-gutter);
    bottom: 0;
    display: block;
    width: 46%;
    height: 85%;
    max-width: 603px;
    max-height: 734px;
    object-fit: contain;
    object-position: bottom center;
}
@media (max-width: 1279px) {
    .rr-hero { --rr-hero-gutter: 40px; }
    .rr-hero .rr-hero__inner { gap: 40px; }
    .rr-hero--square .rr-hero__inner, .rr-hero--cutout .rr-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
    }
    html.rr-refresh-page .rr-hero .rr-hero__title { font-size: 56px; }
}
@media (max-width: 1024px) {
    .rr-hero { --rr-hero-gutter: 24px; }
    .rr-hero--square { --rr-hero-min-height: 560px; }
    .rr-hero .rr-hero__inner { padding-top: 120px; gap: 24px; }
    html.rr-refresh-page .rr-hero .rr-hero__title { font-size: 44px; }
}
@media (max-width: 767px) {
    .rr-hero { --rr-hero-gutter: 16px; }
    .rr-hero--square { --rr-hero-min-height: 0px; }
    .rr-hero .rr-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-top: 80px;
        padding-bottom: 48px;
    }
    html.rr-refresh-page .rr-hero .rr-hero__title { font-size: 42px; }
    html.rr-refresh-page .rr-hero .rr-hero__text { font-size: 18px; }
    .rr-hero__square-image { order: -1; justify-self: center; max-width: 420px; border-radius: 16px; }
    .rr-hero__image {
        position: relative;
        right: auto;
        justify-self: center;
        width: 100%;
        height: 360px;
        max-width: 420px;
        margin-bottom: -48px;
    }
}
/* A populated refreshHeroImage controls the height even when a square image
   takes display priority. Minimums allow longer content to grow naturally. */
.rr-hero--has-refresh-image { --rr-hero-min-height: 862px; }
@media (max-width: 1400px) {
    .rr-hero--has-refresh-image { --rr-hero-min-height: 614px; }
}
@media (max-width: 1000px) {
    .rr-hero--has-refresh-image { --rr-hero-min-height: 591px; }
}
@media (max-width: 750px) {
    .rr-hero--has-refresh-image { --rr-hero-min-height: 734px; }
}
