/* Rouse Refresh - "Rouse Group" landing page (/the-rouse-group/).
   Figma: "Rouse Group Page- XLarge" (xJx4A6KpgHnrnTxY1wAzHX).
   Scoped to the Rouse Group page. Built in phases; PHASE 1 = Hero.
   Shared hero layout lives in hero.css; this file only adds the Rouse Group
   decorative background and the page-specific sections. */

/* The stacked Rouse Group wordmark needs more height than the standard logo. */
html.rr-group-page header.rr-header #logo.rr-header__logo--custom img.rr-header__logo-img {
    height: min(34px, calc(var(--rr-header-height) - 16px));
}

.rr-group {
    /* Design tokens (match the existing refresh palette). */
    --rr-group-purple: #6a59fd;
    --rr-group-purple-dark: #5444dd;
    --rr-group-dark-blue: #171245;
    --rr-group-ink: #232323;
    --rr-group-bg-soft: #f9f9f9;
    --rr-group-gutter: 72px;
    --rr-group-heading-font: var(--uat-heading-font, 'Archivo', Arial, sans-serif);
    /* Fluid type: scales smoothly across the common viewport range (~400–1400px), then caps.
       One source of truth so sizing stays responsive; headings scale off these via em. */
    --rr-group-fluid-text: clamp(14px, calc(12.4px + 0.4vw), 18px);
    --rr-group-fluid-title: clamp(20px, calc(15.2px + 1.2vw), 32px);

    /* Standard stepped heading scale — ONE source of truth for the big headings
       (intro title + the h1 of the rich-text sections). Steps below at 750 / 1000 / 1440. */
    --rr-group-h1: 32px;

    overflow-x: hidden;
}

@media (min-width: 750px) {
    .rr-group { --rr-group-h1: 40px; }
}

@media (min-width: 1000px) {
    .rr-group { --rr-group-h1: 56px; }
}

@media (min-width: 1440px) {
    .rr-group { --rr-group-h1: 72px; }
}

/* Shared content width + gutter, reused by every section below the hero. */
.rr-group__container {
    width: 100%;
    max-width: var(--rr-design-width, 1440px);
    margin-inline: auto;
    padding-inline: var(--rr-group-gutter);
}


.rr-group .rr-hero--group {
 
    background-color: var(--rr-group-dark-blue) !important;
}





/* ---- PHASE 2: Intro ("One partner globally connected") ---- */
.rr-group__intro {
    background: #fff;
    /* Figma: 80px top + 80px bottom padding; sections butt with no margin. */
    padding-top: 80px;
    padding-bottom: 80px;
}

.rr-group__intro-head {
    display: flex;
    gap: 48px;
    align-items: center;
}

.rr-group__intro-title {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    font-family: var(--rr-group-heading-font) !important;
    font-weight: 600;
    font-size: var(--rr-group-h1);
    line-height: 1.05;
    letter-spacing: 0;
    color: var(--rr-group-ink);
}

.rr-group__intro-text {
    flex: 1 1 0;
    min-width: 0;
    font-family: var(--rr-group-heading-font);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    color: rgba(35, 35, 35, 0.8);
}

.rr-group__intro-text p {
    margin: 0;
    font-size: inherit;
}

.rr-group__intro-text p + p {
    margin-top: 24px;
}

@media (width > 1000px) {
    .rr-group__intro-text {
        font-size: 16px;
    }
}

@media (width > 1440px) {
    .rr-group__intro-text {
        font-size: 20px;
    }
}

/* ---- PHASE 2: Bento stats ---- */
/* Follows the "The Rouse Group" section; spacing comes from the adjacent
   sections' padding, so no extra top margin. */
.rr-group__bento {
    width: 100%;
    max-width: var(--rr-design-width, 1440px);
    margin: 0 auto;
    background: var(--rr-group-bg-soft);
    display: flex;
    gap: 48px;
    align-items: center;
    padding: 80px min(var(--rr-group-gutter), 70px);
}

.rr-group__bento-media {
    flex: 0 1 50%;
    min-width: 0;
    align-self: stretch;
}

.rr-group__bento-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    object-position: right center;
    border-radius: 20px;
}

.rr-group__stats {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rr-group__stats-row {
    display: flex;
    gap: 24px;
}

.rr-group__stat {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 230px;
    padding: 24px;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.rr-group__stat-num {
    font-family: var(--rr-group-heading-font) !important;
    font-weight: 600;
    font-size: 56px;
    line-height: 1.05;
    color: var(--rr-group-dark-blue);
}

.rr-group__stat-label {
    font-family: var(--rr-group-heading-font);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.05;
    color: var(--rr-group-ink);
}

.rr-group__stat--purple {
    background: var(--rr-group-purple);
    border-color: #fff;
}

.rr-group__stat--purple .rr-group__stat-num,
.rr-group__stat--purple .rr-group__stat-label {
    color: #fff;
}

.rr-group__stat--tier .rr-group__stat-num--tier {
    font-size: 40px;
}

.rr-group__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rr-group__tag {
    display: inline-block;
    padding: 7px 14px 8px;
    background: var(--rr-group-purple-dark);
    border: 0.5px solid #7767ff;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
}

.rr-group__stat--tier .rr-group__tag {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* ---- PHASE 3: Capability cards ---- */
.rr-group__caps {
    background: #fff;
    padding-block: 80px;
}

.rr-group__caps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-inline: min(var(--rr-group-gutter), 70px);
}

/* 5 capability cards: 3 on top and the remaining 2 centred below. A 6-column track lets each
   card span 2 columns, and the two second-row cards are nudged in by one column so they sit
   centred. Scoped to where the grid is 3-up (>=768px); below that it stacks 1-up. */
@media (min-width: 768px) {
    .rr-group__caps-grid--5 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .rr-group__caps-grid--5 > * {
        grid-column: span 2;
    }

    .rr-group__caps-grid--5 > :nth-child(4) {
        grid-column: 2 / span 2;
    }

    .rr-group__caps-grid--5 > :nth-child(5) {
        grid-column: 4 / span 2;
    }
}

.rr-group__cap {
    position: relative;
    display: flex;
    min-height: 362px;
    padding: 40px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #1a2333;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Dark overlay so the white text stays legible over the gradient photos. */
.rr-group__cap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

/* Capability card background photos are managed in the CMS (optional). Until one is set
   the base colour on .rr-group__cap shows through. */

.rr-group__cap--3::before {
    background: rgba(0, 0, 0, 0.66);
}

.rr-group__cap-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 24px;
    color: #f9f9f9;
}

.rr-group__cap-title {
    margin: 0;
    font-family: var(--rr-group-heading-font) !important;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.05;
    color: #f9f9f9;
}

.rr-group__cap-list ul {
    margin: 0;
    padding-left: 27px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: disc;
}

.rr-group__cap-list li {
    font-size: 18px;
    line-height: 1.15;
    color: #f9f9f9;
}

.rr-group__cap-list li > br + br {
    display: none;
}

/* ---- PHASE 4: The Rouse Group company cards ---- */
.rr-group__companies {
    background: #fff;
    padding-block: 80px;
}

.rr-group__companies > .rr-group__container {
    padding-inline: min(var(--rr-group-gutter), 40px);
}

.rr-group__companies-heading {
    margin: 0 0 0px;
    text-align: center;
    font-family: var(--rr-group-heading-font) !important;
    font-weight: 600;
    /* Fluid: scales smoothly with the viewport, from ~40px on small screens up to 72px. */
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.05;
    letter-spacing: 0;
    color: var(--rr-group-dark-blue);
}

.rr-group__companies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Optional two-column intro under "The Rouse Group" heading: bold title left, body text right. */
.rr-group__companies-intro {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin: 0 0 80px;
    /* Align these columns with the page intro's columns: the companies container caps its
       gutter at 40px, so add back the difference to match the intro section's full gutter. */
    padding-inline: calc(var(--rr-group-gutter) - min(var(--rr-group-gutter), 40px));
    text-align: left;
}

.rr-group__companies-intro-title {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    /* Shift the title right without resizing the flex columns, so the body text
       stays aligned with the intro paragraph. Adjust this value to taste. */
    transform: translateX(80px);
    font-family: var(--rr-group-heading-font) !important;
    font-weight: 700;
    /* Fluid: scales smoothly with the viewport, from ~28px on small screens up to 48px. */
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
    color: var(--rr-group-dark-blue);
}

.rr-group__companies-intro-text {
    flex: 1 1 0;
    min-width: 0;
    font-family: var(--rr-group-heading-font);
    font-weight: 500;
    /* Scales with the viewport: ~14px on small screens up to 18px on large ones. */
    font-size: var(--rr-group-fluid-text);
    line-height: 1.3;
    color: #1a1a1a;
}

.rr-group__companies-intro-text p {
    margin: 0;
}

.rr-group__companies-intro-text p + p {
    margin-top: 16px;
}

/* Each heading level in the companies-intro rich text gets its own fluid size, so the editor's
   chosen level (H1 > H2 > H3 …) controls how big the tagline is, and each still scales with the
   viewport. Change the level in the RTE to change the size. */
.rr-group__companies-intro-text :is(h1, h2, h3, h4, h5, h6) {
    line-height: 1.1;
}

.rr-group__companies-intro-text h1 { font-size: var(--rr-group-h1); }
.rr-group__companies-intro-text h2 { font-size: clamp(32px, 4vw, 56px); }
.rr-group__companies-intro-text h3 { font-size: clamp(28px, 3vw, 44px); }
.rr-group__companies-intro-text h4 { font-size: clamp(24px, 2.4vw, 32px); }
.rr-group__companies-intro-text h5 { font-size: clamp(20px, 2vw, 26px); }
.rr-group__companies-intro-text h6 { font-size: clamp(18px, 1.6vw, 22px); }

/* The companies-intro rich text can contain an author-built two-column layout
   (<div class="row"><div class="column">…</div></div>). The rules live here instead of an
   embedded <style> in the RTE (which the editor strips on save), scoped so the generic
   .row / .column names can't affect anything outside this block. */
.rr-group__companies-intro-text .row::after {
    content: "";
    display: table;
    clear: both;
}

.rr-group__companies-intro-text .column {
    float: left;
    width: 50%;
    padding: 10px;
    box-sizing: border-box;
}

@media screen and (max-width: 600px) {
    .rr-group__companies-intro-text .column {
        width: 100%;
    }
}

/* No title set in the CMS: the rich-text body spans the full width (no empty left column). */
.rr-group__companies-intro--full .rr-group__companies-intro-text {
    flex: 1 1 100%;
}

@media (max-width: 767.98px) {
    .rr-group__companies-intro {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 48px;
    }

    /* Drop the horizontal title shift when the columns stack, so it can't overflow on phones. */
    .rr-group__companies-intro-title {
        transform: none;
    }
}

.rr-group__company {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 249px;
    padding: 24px;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 20px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.rr-group__company:has(> .rr-group__company-cta) {
    transition: transform 220ms ease-out, box-shadow 300ms ease-out;
}

.rr-group__company:has(> .rr-group__company-cta):is(:hover, :focus-within) {
    z-index: 1;
    transform: translateY(var(--rr-card-hover-lift, -2px));
    box-shadow: var(--rr-card-hover-shadow, 0 6px 18px rgba(23, 18, 69, .22));
}

.rr-group__company:has(> .rr-group__company-cta:focus-visible) {
    outline: 3px solid var(--rr-card-purple, #6a59fd);
    outline-offset: 4px;
}

.rr-group__company-top {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rr-group__company:first-child .rr-group__company-top {
    gap: 24px;
}

.rr-group__company-logo {
    display: flex;
    align-items: center;
    height: 40px;
}

.rr-group__company:first-child .rr-group__company-logo {
    height: 48px;
}

.rr-group__company-logo img {
    max-height: 100%;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    object-position: left center;
}

.rr-group__company-desc {
    margin: 0;
    font-size: 16px;
    line-height: 18px;
    color: var(--rr-group-dark-blue);
}

.rr-group__company-cta {
    position: static;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    padding: 12px 16px 12px 12px;
    border: 1px solid var(--rr-group-dark-blue);
    border-radius: 10px;
    font-family: var(--rr-group-heading-font);
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--rr-group-dark-blue);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Extend the existing link across the card while keeping one tab stop. */
.rr-group__company-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.rr-group__company:is(:hover, :focus-within) > .rr-group__company-cta {
    background: var(--rr-group-dark-blue);
    color: #fff;
}

.rr-group__company:has(> .rr-group__company-cta:focus-visible) > .rr-group__company-cta {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .rr-group__company:has(> .rr-group__company-cta),
    .rr-group__company-cta {
        transition: none;
    }

    .rr-group__company:has(> .rr-group__company-cta):is(:hover, :focus-within) {
        transform: none;
    }
}

/* ---- PHASE 5: Our combined scale ---- */
.rr-group__scale {
    /* Background photo is managed in the CMS (optional); the dark brand colour shows otherwise. */
    position: relative;
    background-color: var(--rr-group-dark-blue);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Dark + purple wash over the photo so the white heading stays legible. */
.rr-group__scale::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(126deg, rgba(70, 0, 144, 0.45) 0%, rgba(70, 0, 144, 0.12) 55%, rgba(255, 255, 255, 0) 100%),
        rgba(23, 18, 69, 0.45);
    pointer-events: none;
}

.rr-group__scale-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 72px;
    padding-block: 120px;
    padding-inline: min(var(--rr-group-gutter), 70px);
}

.rr-group__scale-heading {
    margin: 0;
    text-align: center;
    font-family: var(--rr-group-heading-font) !important;
    font-weight: 600;
    font-size: 72px;
    line-height: 1.05;
    letter-spacing: 0;
    color: #fff;
}

.rr-group__scale-grid {
    display: grid;
    /* Four cards per row; drops to 2-up below 1000px and 1-up below the Small frame (768). */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* 6 cards balance as a 3-up grid (3+3) instead of 4-up (4+2). */
.rr-group__scale-grid--3up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 5 cards: 3 on top and the remaining 2 centred below. A 6-column track lets each card span
   2 columns, and the two second-row cards are nudged in by one column so they sit centred.
   Scoped to the wide layout; the 2-up (<1000px) and 1-up (<768px) rules below take over on
   smaller screens. */
@media (min-width: 1000px) {
    .rr-group__scale-grid--5 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .rr-group__scale-grid--5 > * {
        grid-column: span 2;
    }

    .rr-group__scale-grid--5 > :nth-child(4) {
        grid-column: 2 / span 2;
    }

    .rr-group__scale-grid--5 > :nth-child(5) {
        grid-column: 4 / span 2;
    }
}

/* Optional centered intro paragraph under the Section 4 heading.
   Light colour because this section sits on the dark brand background. */
.rr-group__scale-intro {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--rr-group-heading-font);
    font-weight: 500;
    font-size: var(--rr-group-fluid-text);
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.85);
}

.rr-group__scale-intro p {
    margin: 0;
}

.rr-group__scale-intro p + p {
    margin-top: 16px;
}

/* Optional closing paragraph (plus bold tagline) below the Section 4 cards. */
.rr-group__scale-outro {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--rr-group-heading-font);
    font-weight: 500;
    font-size: var(--rr-group-fluid-text);
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.85);
}

.rr-group__scale-outro p {
    margin: 0;
}

.rr-group__scale-outro p + p {
    margin-top: 16px;
}

/* Rich-text content sometimes uses a heading format for a tagline, which would otherwise jump to
   the site's large heading size and not scale down on mobile. Keep any heading at the block's own
   responsive size, just bold. */
.rr-group__scale-outro :is(h1, h2, h3, h4, h5, h6),
.rr-group__scale-intro :is(h1, h2, h3, h4, h5, h6),
.rr-group__companies-intro-text :is(h1, h2, h3, h4, h5, h6) {
    /* Don't dictate the size here. The heading level chosen in the editor sets it (H1 > H2 > H3…),
       and because those are em-based they scale off this block's responsive base, staying fluid.
       CSS only resets spacing and keeps the right colour. */
    margin: 0;
    color: inherit;
}

/* Keep these rich-text blocks robust to any formatting the editor applies, so content can change
   freely with no code changes. All values are relative / inherited (no fixed sizes or colours). */

/* Links stay readable on either background by inheriting the block's own text colour. */
.rr-group__companies-intro-text a,
.rr-group__scale-intro a,
.rr-group__scale-outro a {
    color: inherit;
    text-decoration: underline;
}

/* Lists get sensible indentation and read left-aligned even inside a centred block. */
.rr-group__companies-intro-text :is(ul, ol),
.rr-group__scale-intro :is(ul, ol),
.rr-group__scale-outro :is(ul, ol) {
    margin: 0;
    padding-left: 1.25em;
    text-align: left;
}

/* A heading that follows other content gets a little separation from it. */
.rr-group__scale-outro :is(p, ul, ol) + :is(h1, h2, h3, h4, h5, h6),
.rr-group__scale-intro :is(p, ul, ol) + :is(h1, h2, h3, h4, h5, h6),
.rr-group__companies-intro-text :is(p, ul, ol) + :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 0.75em;
}

/* ---- Section 5: plain rich-text block ---- */
/* Vertical spacing so the block doesn't butt against the sections above and below. The body base
   font-size steps up across the page breakpoints (for paragraphs); headings use the shared stepped
   heading scale (32 / 40 / 56 / 72 at 750 / 1000 / 1440) defined with the intro title. */
.rr-group__section5 {
    padding-block: clamp(48px, 7vw, 80px);
    font-size: 16px;
    line-height: 1.4;
}

@media (min-width: 750px) {
    .rr-group__section5 {
        font-size: 18px;
    }
}

@media (min-width: 1000px) {
    .rr-group__section5 {
        font-size: 20px;
    }
}

@media (min-width: 1440px) {
    .rr-group__section5 {
        font-size: 22px;
    }
}

/* Each heading level in Section 5 gets its own fluid size, so the editor's chosen level
   (H1 > H2 > H3 …) controls how big it is, and each scales with the viewport. */
.rr-group__section5 :is(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    line-height: 1.1;
}

.rr-group__section5 h1 { font-size: var(--rr-group-h1); }
.rr-group__section5 h2 { font-size: clamp(32px, 4vw, 56px); }
.rr-group__section5 h3 { font-size: clamp(28px, 3vw, 44px); }
.rr-group__section5 h4 { font-size: clamp(24px, 2.4vw, 32px); }
.rr-group__section5 h5 { font-size: clamp(20px, 2vw, 26px); }
.rr-group__section5 h6 { font-size: clamp(18px, 1.6vw, 22px); }

.rr-group__scale-card {
    /* Each card is a sizing container so its title/description scale with the card's
       own width, shrinking automatically as more cards share a row. */
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 392px;
    padding: 40px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
}

.rr-group__scale-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* The CMS logo is shown as-is now (no purple box behind it). */
}

.rr-group__scale-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.rr-group__scale-title {
    margin: 0;
    font-family: var(--rr-group-heading-font) !important;
    font-weight: 600;
    /* Scales with the card width: ~56px on a wide 3-up card down to ~37px on a narrow 4-up card. */
    font-size: clamp(24px, 12cqi, 56px);
    line-height: 1.05;
    color: var(--rr-group-dark-blue);
}

.rr-group__scale-desc {
    margin: 0;
    font-size: clamp(14px, 3.8cqi, 16px);
    line-height: 1.15;
    color: var(--rr-group-dark-blue);
}

.rr-group__scale-desc > :last-child {
    margin-bottom: 0;
}

/* ---- Responsive: breakpoints aligned to the Figma frames
   (XLarge 1440, Large 1025, Medium 768, Small 374).
   The content stays in its Figma arrangement and only shrinks; layouts that
   stack do so at the frame width where the design itself stacks them. ---- */

@media (min-width: 1440px) {
    .rr-group__company:nth-child(-n+3) {
        min-height: 251px;
    }

    .rr-group__company:first-child .rr-group__company-desc {
        font-size: 14px;
        line-height: 1.05;
    }

    .rr-group__company:last-child {
        padding: 23px;
    }
}

/* Below the 1440 design width, use the 40px gutter from the Large/Medium frames. */
@media (max-width: 1439.98px) {
    .rr-group {
        --rr-group-gutter: 40px;
    }

    .rr-group__companies,
    .rr-group__caps {
        padding-block: 56px;
    }

    .rr-group__company {
        min-height: 244px;
    }

    .rr-group__company-top {
        gap: 16px;
    }

    .rr-group__company-desc {
        font-size: 14px;
        line-height: 1.05;
        letter-spacing: -0.03em;
    }

    .rr-group__cap {
        min-height: 314px;
        padding: 24px;
    }

    .rr-group__cap-title {
        font-size: 32px;
    }

    .rr-group__cap-list li {
        font-size: 16px;
        line-height: 18px;
    }

    .rr-group__cap-list ul {
        padding-left: 24px;
    }

    .rr-group__scale-heading {
        font-size: 56px;
    }

    .rr-group__scale-card {
        min-height: 346px;
        padding: 24px;
    }
}

@media (min-width: 1025px) and (max-width: 1439.98px) {
    .rr-group__bento-media {
        flex: 1 1 0;
    }

    .rr-group__company:nth-child(-n+3) {
        min-height: 261px;
    }
}

/* Supporting type roles step down below the Large frame (1025). */
@media (max-width: 1024.98px) {
    .rr-group__stat-num {
        font-size: 40px; /* H2 */
    }

    .rr-group__stat--tier .rr-group__stat-num--tier {
        font-size: 32px; /* H3 */
    }

    .rr-group__stat--tier .rr-group__tags {
        gap: 8px;
    }

    .rr-group__stat--tier .rr-group__tag {
        padding: 6px 8px;
        font-size: 12px;
    }

    .rr-group__cap-list li {
        font-size: 14px;
        line-height: 1.05;
    }

    .rr-group__cap-list ul {
        padding-left: 21px;
    }

    .rr-group__scale-inner {
        padding-inline: 24px;
    }

    .rr-group__scale-heading {
        font-size: 40px;
    }

    .rr-group__scale-card {
        min-height: 317px;
        padding: 20px;
    }

    .rr-group__scale-desc,
    .rr-group__scale-desc p {
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 1024.98px) {
    .rr-group__companies,
    .rr-group__caps {
        padding-block: 48px;
    }

    .rr-group__companies-heading {
        margin-bottom: 48px;
    }

    .rr-group__companies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rr-group__company {
        min-height: 221px;
        padding: 20px;
    }

    .rr-group__company:nth-child(-n+4) {
        min-height: 238px;
    }

    .rr-group__company:last-child {
        padding: 19px;
    }

    .rr-group__caps-grid {
        gap: 16px;
        padding-inline: 24px;
    }

    .rr-group__cap {
        min-height: 273px;
        padding: 20px;
    }

    .rr-group__cap-body,
    .rr-group__cap-list ul {
        gap: 16px;
    }

    .rr-group__cap-title {
        font-size: 24px;
    }

    .rr-group__bento {
        gap: 16px;
        padding-inline: 20px;
    }

    .rr-group__bento-media {
        flex-basis: 52%;
    }

    .rr-group__stats,
    .rr-group__stats-row {
        gap: 16px;
    }

    .rr-group__stat {
        padding: 16px;
    }
}

@media (width > 1000px) {
    .rr-group__bento {
        --rr-group-bento-gap: 20px;
        gap: var(--rr-group-bento-gap);
        padding: 64px 28px;
        background: #fff;
    }

    .rr-group__bento-media:not(:only-child) {
        position: relative;
        flex: 1.14 1 0;
        min-height: 460px;
    }

    /* Let the cards set the row height so the photo follows their proportions. */
    .rr-group__bento-media:not(:only-child) img {
        position: absolute;
        inset: 0;
        min-height: 0;
    }

    .rr-group__bento-media img {
        object-position: 73% center;
        border-radius: 24px;
    }

    .rr-group__stats,
    .rr-group__stats-row {
        gap: var(--rr-group-bento-gap);
    }

    .rr-group__stat {
        min-height: 308px;
        padding: 20px;
        border: 0;
        border-radius: 24px;
        box-shadow: none;
    }

    .rr-group__stat:not(.rr-group__stat--purple) {
        background: #e0ebea;
    }

    .rr-group__stat-num {
        font-size: 56px;
        overflow-wrap: anywhere;
    }

    .rr-group__stat-label {
        font-size: 24px;
        overflow-wrap: anywhere;
        text-transform: lowercase;
    }

    .rr-group__stat-label::first-letter {
        text-transform: uppercase;
    }

    .rr-group__stat--tier .rr-group__stat-num--tier {
        font-size: 40px;
    }

    .rr-group__stat--tier .rr-group__tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rr-group__stat--tier .rr-group__tag {
        padding: 6px 10px;
        border: 0;
        font-size: 14px;
    }
}

@media (min-width: 1440px) {
    .rr-group__bento {
        --rr-group-bento-gap: 32px;
        padding: 76px 56px 84px;
    }

    .rr-group__bento-media:not(:only-child) {
        flex-grow: 1.1;
    }

    .rr-group__bento-media img {
        object-position: 81% center;
    }

    .rr-group__stat {
        min-height: 324px;
        padding: 28px;
    }

    .rr-group__stat-num {
        font-size: 72px;
    }

    .rr-group__stat-label {
        font-size: 28px;
    }

    .rr-group__stat--tier .rr-group__stat-num--tier {
        font-size: 56px;
    }

    .rr-group__stat--tier .rr-group__tags {
        flex-direction: row;
        gap: 12px;
    }

    .rr-group__stat--tier .rr-group__tag {
        padding: 7px 14px 8px;
        font-size: 20px;
    }
}

/* Below 1000px the scale cards go two per row (before stacking 1-up under 768). */
@media (max-width: 999.98px) {
    .rr-group__scale-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .rr-group__scale-inner {
        padding-block: 72px;
        gap: 48px;
    }
}

/* Figma "Small" frame (< 768): smallest type scale, tighter 16px gutter, and
   the intro/bento now stack (heading above text) as the Small frame does. */
@media (max-width: 767.98px) {
    .rr-group {
        --rr-group-gutter: 16px;
    }

    .rr-group__stat-num {
        font-size: 32px; /* H2 */
    }

    .rr-group__cap-title,
    .rr-group__stat--tier .rr-group__stat-num--tier {
        font-size: 24px; /* H3 */
    }

    .rr-group__stat-label {
        font-size: 16px; /* H5 */
    }

    .rr-group__stat--tier {
        gap: 16px;
    }

    .rr-group__stat--tier .rr-group__tag {
        font-size: 10px;
    }

    .rr-group__companies-grid,
    .rr-group__caps-grid,
    .rr-group__scale-grid {
        grid-template-columns: 1fr;
    }

    .rr-group__companies-grid,
    .rr-group__caps-grid,
    .rr-group__cap-body,
    .rr-group__cap-list ul {
        gap: 16px;
    }

    .rr-group__company {
        min-height: 238px;
        padding: 20px;
    }

    .rr-group__cap {
        min-height: 203px;
        padding: 20px;
    }

    .rr-group__cap:first-child {
        min-height: 173px;
    }

    .rr-group__scale-card {
        min-height: 214px;
    }

    .rr-group__scale-card:nth-child(2) {
        min-height: 229px;
    }

    .rr-group__scale-card:nth-child(3) {
        min-height: 244px;
    }

    .rr-group__scale-title {
        font-size: 24px;
    }

    .rr-group__intro-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .rr-group__bento {
        flex-direction: column;
        gap: 12px;
    }

    .rr-group__bento-media {
        flex-basis: auto;
        width: 100%;
    }

    .rr-group__bento-media img {
        min-height: 300px;
    }

    .rr-group__stats {
        width: 100%;
    }

    .rr-group__stats,
    .rr-group__stats-row {
        gap: 12px;
    }

    .rr-group__stat {
        min-height: 170px;
        padding: 16px;
    }

    .rr-group__stats-row + .rr-group__stats-row .rr-group__stat {
        min-height: 168px;
    }
}
