.rr-about {
    --about-navy: #171245;
    --about-purple: #6a59fd;
    --about-grey: #e8e8e8;
    --about-white: #f9f9f9;
    --about-muted: #5b5b66;
    --about-section-pad: 80px;
    /* Heading scale extends the standard --rr-h1/h2 with h3/h4 steps (same breakpoints). */
    --about-h3-size: 36px;
    --about-h4-size: 32px;
    --about-heading-font: 'Archivo', sans-serif;
    --about-body-font: 'Noto Sans', sans-serif;
    color: var(--about-navy);
    background: var(--about-white);
    font: 400 16px/1.15 var(--about-body-font);
    letter-spacing: 0;
}

body:has(.rr-about) main.home {
    padding-top: 0 !important;
}

.rr-about *,
.rr-about *::before,
.rr-about *::after {
    box-sizing: border-box;
}

.rr-about h1,
.rr-about h2,
.rr-about h3 {
    color: inherit;
    font-family: var(--about-heading-font) !important;
}

/* Heading sizes follow the heading level, from the shared responsive scale. A component
   that needs a specific size overrides these with its own class (higher specificity). */
.rr-about h1 {
    font-size: var(--rr-h1-size);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.rr-about h2 {
    font-size: var(--rr-h2-size);
    font-weight: 600;
    line-height: 1.05;
}

.rr-about h3 {
    font-size: var(--about-h3-size);
    font-weight: 600;
    line-height: 1.1;
}

.rr-about h4 {
    font-size: var(--about-h4-size);
    font-weight: 500;
    line-height: 1.1;
}

/* Hero layout is handled by hero.css. Button appearance by buttons.css. */

/* Shared rich text */

.rr-about__rte {
    font: 400 16px/1.4 var(--about-body-font);
    letter-spacing: 0;
}

    .rr-about__rte > * {
        margin: 0 0 20px;
        color: inherit;
    }

    .rr-about__rte > :last-child {
        margin-bottom: 0;
    }

    .rr-about__rte strong,
    .rr-about__rte b {
        font-weight: 700;
    }

    .rr-about__rte ul,
    .rr-about__rte ol {
        padding-left: 1.25em;
    }

    .rr-about__rte li + li {
        margin-top: 8px;
    }

    .rr-about__rte a {
        color: inherit;
        text-decoration: underline;
    }

        .rr-about__rte a:hover,
        .rr-about__rte a:focus {
            color: var(--about-purple) !important;
        }

    .rr-about__rte img {
        max-width: 100%;
        height: auto;
    }

/* 2 - Intro (centred: lead, large statement, sub-line). The lead/sub paragraphs follow the
   shared --rr-h2-size scale; we add the reading width, rhythm and colour. */

.rr-about__intro {
    padding: var(--about-section-pad) 0;
 
    scroll-margin-top: 80px;
}

.rr-about__intro-inner {
    /* Width and horizontal gutters come from the shared rr-content-frame. */
    color: var(--about-muted);
    line-height: 1.45;
}

    .rr-about__intro-inner strong,
    .rr-about__intro-inner b {
        color: var(--about-navy);
    }

    /* Size comes from the heading level (see the .rr-about h1-h4 rules); this only sets the
       intro-specific spacing and colour. */
    .rr-about__intro-inner :is(h1, h2, h3, h4) {
        margin: 64px 0;
        color: var(--about-navy);
    }

    /* Lead and sub paragraphs follow the shared --rr-h2-size scale (32/32/24/24), so they size by
       screen layout from the standard token instead of an inline RTE size. */
    .rr-about__intro-inner p {
        font-size: var(--rr-h2-size);
    }

#about-content {
    scroll-margin-top: 80px;
}

/* 3 - "Making more of your IP" band (full-width image, heading top-left, vision bottom-right) */

.rr-about__band {
    position: relative;
    display: flex;
    min-height: 600px;
    padding: 70px 0;
    background: var(--about-navy) center / cover no-repeat;
    color: var(--about-white);
    overflow: hidden;
    isolation: isolate;
}

.rr-about__band--noimage {
    background: linear-gradient(120deg, #120e38 0%, #2b2170 48%, var(--about-purple) 100%);
}

/* Keep overlaid text legible over any uploaded image. */
.rr-about__band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(16, 12, 48, .35) 0%, rgba(16, 12, 48, .05) 40%, rgba(16, 12, 48, .55) 100%);
}

/* The band is one rich-text field. The first paragraph is the heading (pinned to the top of
   the band) and the paragraphs after it are the vision block (pushed to the bottom). Horizontal
   alignment is whatever the editor sets in the rich-text field (Section3), so it is not forced
   here. */
.rr-about__band-inner {
    display: flex;
    flex-direction: column;
}

    .rr-about__band-inner > * {
        margin: 0;
    }

    .rr-about__band-inner > :empty {
        display: none;
    }

    /* The heading (first block) stays at the top; margin-bottom:auto pushes the vision to the
       bottom of the band. Horizontal alignment follows the rich-text editor, so it is not
       forced here. */
    .rr-about__band-inner > :first-child {
        margin-bottom: auto;
    }

    /* Everything after the heading is the vision block. Its horizontal placement (a right-pinned
       box whose lines share one left edge) is done in the rich-text content itself - a wrapping
       div with an inline width and margin-left:auto - so it is not forced here. Archivo
       throughout (override base Noto Sans on p). */
    .rr-about__band-inner > :not(:first-child) {
        font-family: var(--about-heading-font) !important;
        line-height: 1.2;
    }

    .rr-about__band-inner > p:not(:first-child) {
        font-size: 20px;
    }

/* 4 - "We look beyond" statement (left-aligned) */

.rr-about__statement {
    /* Tighter vertical rhythm - less white space above/below this section. */
    padding: calc(var(--about-section-pad) / 2) 0;
}

/* The shared content frame aligns the statement with the other sections.
   base-new.css forces Noto Sans on every refresh <p> with !important, so Archivo has to be
   !important here to win (it beats both the container rule and the RTE inline style). Only
   the font family is enforced; size/weight/line-height stay editable inline from the RTE. */
.rr-about__statement-inner,
.rr-about__statement-inner :is(p, li, strong, b, span) {
    font-family: var(--about-heading-font) !important; /* Archivo */
}

/* 5 - "Why Rouse?" heading + cards (heading in the first grid cell) */

.rr-about__why {
    /* Reduced top/bottom so the cards sit closer to the statement above and the CTA below. */
    padding: calc(var(--about-section-pad) / 2) 0;
}

.rr-about__why-grid {
    display: grid;
    /* Capped card width (Figma: 417px) so they stay narrow instead of stretching the full column. */
    grid-template-columns: repeat(3, minmax(0, 417px));
    justify-content: start;
    gap: 32px;
}

.rr-about__why-head-cell {
    display: flex;
    align-items: flex-start;
    padding: 24px 0;
}

.rr-about .rr-about__why-heading {
    margin: 0;
    /* Fixed at the general h1 base size (72px, the top of the --rr-h1-size scale) at every
       breakpoint, rather than following that scale down to 56/40/32px. This is the DEFAULT size:
       the heading renders the whyRouseTitle rich text, so a size set on the text in the RTE
       overrides it. */
    font: 700 72px / 1.05 var(--about-heading-font);
    letter-spacing: -.02em;
}

/* The heading renders rich text, which wraps each line in its own <p>; drop the paragraph margins
   so the lines stack as one tight heading (e.g. "Why" / "Rouse?"). Text keeps the heading's font
   unless the editor set its own in the RTE. */
.rr-about .rr-about__why-heading p {
    margin: 0;
}

.rr-about__card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 400px;
    padding: 48px;
    border-radius: 24px;
    background: var(--about-navy) center / cover no-repeat;
    color: var(--about-white);
    overflow: hidden;
    isolation: isolate;
}

.rr-about__card--noimage {
    background: linear-gradient(150deg, #2b2170 0%, var(--about-purple) 100%);
}

/* Legibility wash, stronger at the bottom where the text sits. */
.rr-about__card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(16, 12, 48, .15) 0%, rgba(16, 12, 48, .15) 45%, rgba(16, 12, 48, .72) 100%);
}

.rr-about__card-body {
    width: 100%;
}

.rr-about .rr-about__card-title {
    /* Card title has its own fixed size (32px), not the shared --about-h3-size token, so it can
       be tuned without affecting other h3s. Reduced on small screens below. */
    margin: 0 0 12px;
    font: 600 32px / 1.1 var(--about-heading-font);
    letter-spacing: 0;
}

.rr-about__card-text {
    font-size: 16px;
    line-height: 1.3;
}

    .rr-about__card-text > * {
        margin: 0 0 8px;
    }

    .rr-about__card-text > :last-child {
        margin-bottom: 0;
    }

/* 5b - "Talk to our team" CTA (statement + link, white background, shared H4 size) */

.rr-about__cta {
    /* Reduced top padding so it tucks up under the cards. */
    padding: calc(var(--about-section-pad) / 2) 0 var(--about-section-pad);
    background: var(--about-white);
    /* Alignment is controlled per-paragraph from the About Rouse Connect rich-text
       editor (left/centre/right), so it is not forced here. */
}

/* Optional background image (About Corporate Social Responsibility Image). Present only
   when an image is uploaded; otherwise the plain white background above is used. */
.rr-about__cta--image {
    position: relative;
    background: var(--about-navy) center / cover no-repeat;
    isolation: isolate;
}

    /* Keep the overlaid text legible over any uploaded image. */
    .rr-about__cta--image::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background: rgba(16, 12, 48, .5);
    }

    .rr-about__cta--image .rr-about__cta-inner {
        color: var(--about-white);
    }

.rr-about__cta-inner {
    color: var(--about-navy);
}

    .rr-about__cta-inner > * {
        margin: 0 0 12px;
    }

    .rr-about__cta-inner > :last-child {
        margin-bottom: 0;
    }

    /* Archivo Medium at the shared H4 size (override the base Noto Sans on paragraphs).
       The CTA button keeps its own button typography, so exclude .rr-btn. */
    .rr-about__cta-inner :is(p, a:not(.rr-btn), strong, b) {
        font-family: var(--about-heading-font) !important;
        font-weight: 500;
        font-size: var(--about-h4-size);
        line-height: 1.05;
        letter-spacing: 0;
    }

    .rr-about__cta-inner a:not(.rr-btn) {
        color: inherit;
        text-decoration: none;
    }

        .rr-about__cta-inner a:not(.rr-btn):hover,
        .rr-about__cta-inner a:not(.rr-btn):focus {
            color: var(--about-purple);
        }

    /* "Talk to our team" button: centred under the statement, sized to its label. Appearance
       (navy primary, hover) comes from buttons.css via .rr-btn--primary. */
    .rr-about__cta-inner .rr-about__cta-btn {
        display: flex;
        width: fit-content;
        max-width: 100%;
        margin: 20px auto 0;
    }

/* 6 - What's happening */

.rr-about__happening {
    --rr-image-card-background: var(--about-white);
    padding: var(--about-section-pad) 0;
    background: var(--about-grey);
}

.rr-about__happening-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.rr-about :is(.rr-about__happening-head > h2) {
    margin: 0;
    font: 600 var(--rr-h2-size) / 1.05 var(--about-heading-font);
    letter-spacing: 0;
}

.rr-about__view-all {
    flex: 0 0 auto;
}

.rr-about__track {
    --about-card-room: 22px;
    position: relative;
    display: flex;
    margin: calc(var(--about-card-room) * -1);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    outline: none;
}

    .rr-about__track::-webkit-scrollbar {
        display: none;
    }

.rr-about__slide {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: var(--about-card-room);
}

.rr-about__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 24px;
}

.rr-about__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rr-about__dot {
    width: 12px;
    height: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: var(--about-white);
    cursor: pointer;
    transition: background-color .2s ease;
}

    .rr-about__dot.is-active {
        background: var(--about-purple);
    }

.rr-about__arrows {
    display: flex;
    gap: 12px;
}

.rr-about__arrow {
    position: relative;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--about-white);
    border-radius: 4px;
    background: var(--about-white);
    color: var(--about-navy);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

    .rr-about__arrow::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 7px;
        height: 7px;
        border-left: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translate(-30%, -50%) rotate(45deg);
    }

.rr-about__arrow--next::before {
    transform: translate(-70%, -50%) rotate(-135deg);
}

.rr-about__arrow:not(:disabled):hover {
    border-color: var(--about-navy);
    background: var(--about-navy);
    color: var(--about-white);
}

.rr-about__arrow:disabled {
    opacity: .4;
    cursor: default;
}

.rr-about__arrow:focus {
    outline: none;
}

.rr-about__dot:focus {
    outline: 2px solid var(--about-navy);
    outline-offset: 1px;
}

.rr-about__arrow:focus-visible {
    outline: 2px solid var(--about-purple);
    outline-offset: 2px;
}

/* Touch controls */

@media (pointer: coarse) {
    .rr-about__arrow {
        width: 44px;
        height: 44px;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .rr-about__track {
        scroll-behavior: auto;
    }

    .rr-about *,
    .rr-about *::before,
    .rr-about *::after {
        transition-duration: .01ms !important;
    }
}

/* Large: 1000-<1440px (2-column cards) */

@media (min-width: 1000px) and (max-width: 1439.98px) {
    .rr-about {
        --about-section-pad: 64px;
        --about-h3-size: 36px;
        --about-h4-size: 28px;
    }

    .rr-about__band {
        min-height: 520px;
    }

    .rr-about__why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Medium: 750-<1000px (2-column cards) */

@media (min-width: 750px) and (max-width: 999.98px) {
    .rr-about {
        --about-section-pad: 56px;
        --about-h3-size: 32px;
        --about-h4-size: 26px;
    }

    .rr-about__band {
        min-height: 440px;
        padding: 40px 0;
    }

    .rr-about__why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .rr-about__why-head-cell {
        padding: 8px 0;
    }

    .rr-about__card {
        min-height: 340px;
    }

    .rr-about__happening {
        padding: 56px 0;
    }

    .rr-about__happening-head {
        margin-bottom: 32px;
    }

    .rr-about__slide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Small: below 750px (single column) */

@media (max-width: 749.98px) {
    .rr-about {
        --about-section-pad: 48px;
        --about-h3-size: 26px;
        --about-h4-size: 22px;
    }

    .rr-about__intro-inner :is(h1, h2, h3, h4) {
        margin: 36px 0;
    }

    /* Keep the band's desktop rhythm on mobile (a min-height plus the heading's margin-bottom:auto
       below), so the heading stays pinned to the top and the vision block to the bottom, with the
       gap between them scaling to the band. Matches Figma About - Small (~285px tall, 20px top /
       40px bottom padding). Without a min-height the band would shrink to its content and the gap
       would collapse. */
    .rr-about__band {
        min-height: 285px;
        /* Horizontal gutters come from the shared rr-content-frame on .rr-about__band-inner
           (incoming #15241 removed --about-gutter), so the band keeps 0 side padding here. */
        padding: 20px 0 40px;
    }
    /* heading keeps the shared margin-bottom:auto (pushes the vision to the bottom); no override. */

    /* Vision block: keep it pinned to the RIGHT on mobile (as in Figma). The rich-text wrapper
       has an inline max-width:520px + margin-left:auto, but as a full-width flex item it stretches
       to the phone width, so margin-left:auto has no free space and the block collapses to the
       left. Give it an explicit narrow width (~Figma's 235px) so the auto margin pushes it to the
       right edge; max-width:100% keeps it inside the gutters on very small screens. */
    /* Pin the block right, but inset from the edge by one gutter so it clears the right margin,
       matching Figma (block ~40px from the screen edge: this 20px margin plus the band's 20px
       padding). */
    .rr-about__band-inner > :not(:first-child) {
        width: 235px;
        max-width: 100% !important;
        margin-left: auto !important;
        /* Inset by one more shared gutter from the content-frame's right edge, reusing the
           general --rr-content-gutter token (replaces the removed --about-gutter). */
        margin-right: var(--rr-content-gutter);
    }

    /* Vision block type scale matches Figma About - Small (H5 16px lead line, H4 18px statement).
       The copy is built from <h4>/<h3>, which would otherwise inherit the larger shared h3/h4
       mobile sizes (26/22px) used by the Why Rouse cards, so size them here, scoped to the band. */
    .rr-about__band-inner h4 {
        font-size: 16px;
        /* Figma spaces the lead line 20px above the statement; these headings are nested in the
           vision wrapper, so the RTE's own 20px block spacing does not reach them. */
        margin-bottom: 20px;
    }

    /* Figma's statement style is Small/H4 at weight 500 (Medium); the shared .rr-about h3 rule
       sets 600, which renders wider and forces an extra wrap. Match 500 so it wraps to two lines
       like the design. Scoped to the band, so the Why Rouse card titles keep their weight. */
    .rr-about__band-inner h3 {
        font-size: 18px;
        font-weight: 500;
        line-height: 1.05;
    }

    .rr-about__statement-inner {
        font-size: 18px;
    }

    .rr-about__why-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .rr-about__why-head-cell {
        padding: 0 0 8px;
    }

    .rr-about__card {
        min-height: 300px;
        padding: 24px;
    }

    .rr-about .rr-about__card-title {
        font-size: 26px;
    }

    .rr-about__happening {
        padding: 48px 0;
    }

    .rr-about__happening-head {
        margin-bottom: 24px;
    }

    .rr-about__track {
        --about-card-room: 16px;
    }

    .rr-about__slide {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}
