/* component-classes.css
   All styling for wp-content/themes/<theme>/inc-blocks/*.php components.
   No inline <style> blocks in component files - this is the only place
   component-specific CSS lives. One section per component, named after
   its inc-blocks filename. Loads after rola.css, so a rule here can
   win over a utility class. */

/* -- TEXT -- */
.text .text-copy > * + * {
    margin-top: var(--global-spacing-25);
}
.text .text-button {
    padding-top: var(--global-spacing-12);
}
/* The link sits top-right on desktop; under the copy (left) on mobile,
   where the padding-block above it would double up with the copy's.
   Flex, not text-align: reset.css sets text-align:left on every div, so
   alignment never inherits. */
@media (min-width: 992px) {
    .text .text-link {
        display: flex;
        justify-content: flex-end;
    }
}
@media (max-width: 991.98px) {
    .text-has-link .text-copy {
        padding-bottom: 0;
    }
}
/* Bootstrap gives <hr> a 25% opacity and its own colour; the design's
   rule is a solid line in the section's text colour. */
.text .text-rule {
    margin: 0;
    border: 0;
    border-top: 1px solid currentColor;
    opacity: 1;
}
/* Split layout: title in the left half, text in the right (the case
   studies' section intros); stacked on mobile. */
.text-split-grid {
    display: grid;
    gap: var(--global-spacing-25);
}
@media (min-width: 992px) {
    .text-split-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* -- TEXT END -- */

/* -- TEXT IMAGE -- */
/* A grid rather than Bootstrap columns: the 1-3 items share the width
   evenly with a real gap, and columns would need padding (lost to .p-0)
   to get one. Stacked below md. --items is set on the element. */
.text-image-items {
    display: grid;
    gap: var(--global-spacing-50);
}
@media (min-width: 768px) {
    .text-image-items {
        grid-template-columns: repeat(var(--items, 1), minmax(0, 1fr));
        gap: var(--global-spacing-25);
    }
}
/* height:auto so the height attribute WordPress writes on the tag can't
   stretch or squash the image. */
.text-image-image {
    display: block;
    width: 100%;
    height: auto;
}
/* Side by side, images of different shapes would end at different
   heights and the copy under them would stagger - so two or three are
   cropped to the design's 3:2. A single image keeps its own shape. */
.text-image-items:not(.text-image-items-single) .text-image-image {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.text-image-copy {
    padding-top: var(--global-spacing-25);
}
/* A lone image's text runs to half its width, as in the design. */
@media (min-width: 768px) {
    .text-image-items-single .text-image-copy {
        max-width: 50%;
    }
}
.text-image-copy h2 + .wysiwyg {
    padding-top: var(--global-spacing-6);
}
/* -- TEXT IMAGE END -- */

/* -- HERO BANNER -- */
/* Exactly one screen - never taller, never shorter. Set here rather than
   with Bootstrap's .vh-100 because that is height:100vh!important, which
   would block the dvh line below. dvh discounts mobile browser chrome, so
   the hero does not run under the address bar and force a scroll. */
.hero-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    height: 100dvh;
}
/* Fills the article whether or not there is an image, so a colour-only
   hero covers the full screen. */
.hero-banner .row {
    position: relative;
    z-index: 1;
    height: 100%;
}
.hero-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
/* -- HERO BANNER END -- */

/* -- SINGLE IMAGE -- */
.single-image img {
    display: block;
}
/* -- SINGLE IMAGE END -- */

/* -- DOUBLE IMAGE -- */
.double-image-figure {
    margin: 0;
}
.double-image-photo {
    display: block;
    width: 100%;
    height: auto;
}
/* Sits under the photo, flush with its left edge, in the section's own
   text colour. */
.double-image-caption {
    text-align: left;
}
/* -- DOUBLE IMAGE END -- */

/* -- TESTIMONIAL -- */
/* blockquote carries a browser default margin that would knock the quote
   out of line with the padding wrapper. */
.testimonial-quote {
    margin: 0;
}
/* -- TESTIMONIAL END -- */

/* -- ITEM LIST -- */
/* One value per row with a rule between rows: a top border on the first
   row, separators between, nothing closing the foot. */
.item-list-items {
    margin: 0;
    padding: 0;
    list-style: none;
}
.item-list-row {
    padding-block: var(--global-spacing-12);
    border-bottom: 1px solid currentColor;
}
.item-list-row:first-child {
    border-top: 1px solid currentColor;
}
.item-list-row:last-child {
    border-bottom: none;
}
/* -- ITEM LIST END -- */

/* -- VIDEO -- */
/* Linked video with a poster: the poster is a button that opens the
   player in a pop-up. */
.video-poster {
    position: relative;
    display: block;
    border-radius: var(--radius-image);
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}
.video-poster-image {
    display: block;
    width: 100%;
    height: auto;
}
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-play-triangle {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid var(--light);
}
.video-poster:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Video with text, from lg: the same three-column grid and 25 gap as the
   Featured Projects cards, so the video spans two cards' width and the
   copy starts exactly where the third card does. The columns' padding-25
   wrappers keep their top/bottom spacing; the sides come from the row. */
@media (min-width: 992px) {
    .video-has-text > .row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: var(--global-spacing-25);
        padding-inline: var(--global-spacing-25);
    }
    .video-has-text > .row > [class*="col-"] {
        width: auto;
    }
    .video-has-text > .row > .col-lg-8 {
        grid-column: span 2;
    }
    .video-has-text > .row > [class*="col-"] > .padding-25 {
        padding-inline: 0;
    }
}

/* Video with text: the copy sits at the foot of its third, level with
   the bottom of the video, as the case study captions do. The column is
   a flex box so margin-top:auto can push it down (height:100% on a flex
   child would resolve against the content, not the row). */
@media (min-width: 992px) {
    .video-copy-col {
        display: flex;
        flex-direction: column;
    }
    .video-copy {
        margin-top: auto;
    }
}
/* Rounded like every other image - the poster, the loop and a plain
   embedded player alike. */
.video .ratio {
    border-radius: var(--radius-image);
    overflow: hidden;
}
.video-title + .wysiwyg {
    padding-top: var(--global-spacing-12);
}

/* Silent looping clip - rola_vimeo_loop(), used here (.video-clip) and
   in the Gallery (.gallery-video). 16:9 unless its slot sets the size.
   The Vimeo player is 16:9 too, so it is scaled to cover the box the way
   object-fit: cover does for an image - container units (cqw/cqh) give
   the box's own width and height, so this works in any slot shape. The
   poster sits on top and fades once the clip is actually playing. */
.rola-video {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-image);
    aspect-ratio: 16 / 9;
    container-type: size;
    background-color: rgba(0, 0, 0, 0.08);
}
.rola-video-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100cqw, calc(100cqh * 16 / 9));
    height: max(100cqh, calc(100cqw * 9 / 16));
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.rola-video-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease;
}
.rola-video.is-playing .rola-video-poster {
    opacity: 0;
}
/* Pause / play, bottom right. Small and quiet, but a 44px target and a
   visible focus ring - it is the only way to stop the movement. */
.rola-video-toggle {
    position: absolute;
    z-index: 2;
    right: var(--global-spacing-12);
    bottom: var(--global-spacing-12);
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.45);
    color: var(--light);
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}
.rola-video-toggle:hover,
.rola-video-toggle:focus-visible {
    opacity: 1;
}
.rola-video-toggle:focus-visible {
    outline: 2px solid var(--light);
    outline-offset: 2px;
}
/* The icon: two bars while playing, a triangle while paused. */
.rola-video-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 14px;
    transform: translate(-50%, -50%);
    border-left: 4px solid currentColor;
    border-right: 4px solid currentColor;
}
.rola-video.is-paused .rola-video-toggle::before {
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid currentColor;
    border-right: 0;
}
/* -- VIDEO END -- */

/* -- TEXT MEDIA -- */
/* inc-blocks/text_media.php. From lg, the Featured Projects grid: three
   columns and a 25 gap (two for Half), the media spanning two of three
   (Two thirds) or one of two (Half). The columns' padding-25 wrappers keep
   their top/bottom spacing; the sides come from the row - as VIDEO. */
@media (min-width: 992px) {
    .text-media > .row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: var(--global-spacing-25);
        padding-inline: var(--global-spacing-25);
    }
    .text-media-half > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .text-media > .row > [class*="col-"] {
        width: auto;
    }
    .text-media > .row > [class*="col-"] > .padding-25 {
        padding-inline: 0;
    }
    .text-media-wide .text-media-media-col {
        grid-column: span 2;
    }
    /* Media on the right: the copy takes the first column. */
    .text-media-right .text-media-copy-col {
        grid-row: 1;
        grid-column: 1;
    }
    .text-media-right .text-media-media-col {
        grid-row: 1;
    }
    /* Text alignment: the copy at the foot of its column, level with the
       bottom of the media (the default, as Video's), at the top, or
       centred. */
    .text-media-copy-col {
        display: flex;
        flex-direction: column;
    }
    .text-media-align-bottom .text-media-copy {
        margin-top: auto;
    }
    .text-media-align-centre .text-media-copy {
        margin-block: auto;
    }
}
.text-media-image {
    display: block;
    width: 100%;
    height: auto;
}
.text-media-blend .text-media-image {
    mix-blend-mode: multiply;
}
.text-media-title + .wysiwyg {
    padding-top: var(--global-spacing-12);
}
/* -- TEXT MEDIA END -- */

/* -- HERO HEADER -- */
/* Exactly one screen. 100dvh rather than Bootstrap's .vh-100 (which is
   !important and would block the dvh line) so mobile browser chrome does
   not force a scroll. White unless the editor picks a text colour. */
.hero-header {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    color: var(--light);
    background-color: var(--dark);
}
.hero-header-media {
    position: absolute;
    inset: 0;
}
/* object-fit on a real <img> (not a background-image) keeps srcset, so
   phones are not sent the desktop file. height:100% overrides the height
   attribute WordPress writes on the tag. */
.hero-header-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Video mode: the player is a 16:9 iframe, scaled to cover the hero the
   way object-fit: cover does for the image - at least the hero's width
   and height, centred, the overflow cropped by the article. */
.hero-header-video {
    overflow: hidden;
    pointer-events: none;
}
.hero-header-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, calc(100dvh * 16 / 9));
    height: max(100%, calc(100vw * 9 / 16));
    border: 0;
    transform: translate(-50%, -50%);
}
/* The row and column grow to the full screen so the content can be
   pushed to the bottom with margin-top:auto - height:100% on a flex
   child would resolve against content height, not the row's. */
/* Gradient (on/off): the page colour fading in from the left edge, behind
   the headline. It has to cover the whole headline (which runs to about
   60% across), not just its start: near full strength to 35%, about half
   at 60%, clear by 80% - the right of the image stays untouched. On
   phones the title spans most of the width, so the fade reaches further. */
.hero-header.has-gradient .hero-header-media::after,
.call-to-action.has-gradient .call-to-action-backdrop::after,
.term-hero-sketch::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to right,
        var(--section-bg, var(--earth-brown)) 0%,
        color-mix(in srgb, var(--section-bg, var(--earth-brown)) 85%, transparent) 35%,
        color-mix(in srgb, var(--section-bg, var(--earth-brown)) 50%, transparent) 60%,
        color-mix(in srgb, var(--section-bg, var(--earth-brown)) 0%, transparent) 80%);
}
@media (max-width: 767.98px) {
    .hero-header.has-gradient .hero-header-media::after,
    .call-to-action.has-gradient .call-to-action-backdrop::after,
    .term-hero-sketch::after {
        background: linear-gradient(to right,
            var(--section-bg, var(--earth-brown)) 0%,
            color-mix(in srgb, var(--section-bg, var(--earth-brown)) 70%, transparent) 45%,
            color-mix(in srgb, var(--section-bg, var(--earth-brown)) 0%, transparent) 85%);
    }
}
/* The hero's own row only - the title and description sit in nested
   rows that must stay their content's height. */
.hero-header > .row {
    position: relative;
    z-index: 1;
    height: 100%;
}
.hero-header-col {
    display: flex;
    flex-direction: column;
}
/* Centred top to bottom: auto margins above and below in the full-height
   column. */
.hero-header-content {
    margin-block: auto;
}
.hero-header-text {
    padding-top: var(--global-spacing-25);
}
/* ROLA logo mode. The logo spans the content width and hangs half below
   the hero; the hero keeps a bottom margin of that half so the next
   section starts clear of it. Percentages in margin/padding resolve
   against the width, so (100% - both insets) is the logo's width and
   x 51/182 (the SVG's proportions) its height. */
.hero-header.has-logo {
    overflow: visible;
    margin-bottom: calc((100% - 2 * var(--global-spacing-25)) * 51 / 182 / 2);
}
.hero-header.has-logo .hero-header-media {
    overflow: hidden;
}
.hero-logo {
    position: absolute;
    z-index: 2;
    top: 100%;
    left: var(--global-spacing-25);
    right: var(--global-spacing-25);
    color: inherit;
    transform: translateY(-50%);
    text-decoration: none !important;
}
.hero-logo .rola-logo {
    display: block;
    width: 100%;
    height: auto;
}
/* Pinned at the top and shrinking (js/script.js, HERO LOGO sets the
   position and scale inline). Above the header (z-index 100), below the
   open menu. Not clickable until it has docked - while large it would
   only get in the way of what is under it. */
.hero-logo.is-pinned {
    position: fixed;
    right: auto;
    z-index: 101;
    transform-origin: 0 0;
    pointer-events: none;
}
.hero-logo.is-docked {
    pointer-events: auto;
}
/* -- HERO HEADER END -- */

/* -- FEATURED PROJECTS -- */
/* Only hidden when JS can switch tabs - without it every panel shows. */
.has-js .featured-projects [data-tab-hidden] {
    display: none;
}
/* The rule over the header, in the section's text colour (Bootstrap gives
   <hr> its own colour and 25% opacity). */
.featured-projects-rule,
.project-feed-rule {
    margin: 0 0 var(--global-spacing-25);
    border: 0;
    border-top: 1px solid currentColor;
    opacity: 1;
}
/* Header (Featured Projects, and a Project Feed with a description or
   link): title in the first third, description in the second, "View All
   Projects" at the far right. */
.featured-projects .component-header,
.project-feed .component-header {
    display: grid;
    gap: var(--global-spacing-25);
    padding-bottom: var(--global-spacing-75);
}
/* The description reads as a second heading, as in the design. */
.featured-projects .component-header-caption {
    font-size: var(--font-size-small);
    font-weight: 600;
    line-height: 1.25;
}
/* On the Project Feed (the About map) it is plain copy, as in the design. */
.project-feed .component-header-caption {
    font-weight: 400;
    line-height: 1.3;
}
@media (min-width: 992px) {
    .featured-projects .component-header,
    .project-feed .component-header {
        grid-template-columns: 2fr 1fr;
    }
    .featured-projects .component-header-text,
    .project-feed .component-header-text {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--global-spacing-25);
    }
    .featured-projects .component-header-link,
    .project-feed .component-header-link {
        display: flex;
        justify-content: flex-end;
    }
    .featured-projects .component-header,
    .project-feed .component-header {
        padding-bottom: var(--global-spacing-150);
    }
}
/* The design's small mono links, not the house uppercase arrow link. */
.featured-projects .arrow-link,
.project-feed .arrow-link {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-mono);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
/* Gap above the "More about ..." link sits on the link, not the <p>: the
   reset's p { margin-bottom: 0 !important } swallows a paragraph margin. */
.featured-projects-more {
    margin-top: var(--global-spacing-25);
}
.featured-projects-more .arrow-link {
    color: var(--link-accent);
}
.featured-projects-more .arrow-link:hover,
.featured-projects-more .arrow-link:focus-visible {
    color: inherit;
}

/* Sector tabs: the selected one underlined. */
.featured-projects-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--global-spacing-6) var(--global-spacing-25);
    margin-bottom: var(--global-spacing-25);
}
.featured-projects-tab {
    padding: 0 0 var(--global-spacing-6);
    border: 0;
    border-bottom: 1px solid transparent;
    background: none;
    color: inherit;
    cursor: pointer;
}
.featured-projects-tab[aria-selected="true"],
.featured-projects-tab.is-only {
    border-bottom-color: currentColor;
    cursor: default;
}
.featured-projects-tab:hover {
    opacity: 0.8;
}
.featured-projects-panel > .featured-projects-tab.is-only {
    margin-bottom: var(--global-spacing-25);
}
.featured-projects-intro {
    max-width: 52rem;
    padding-bottom: var(--global-spacing-50);
}
.featured-projects-intro p {
    line-height: 1.4 !important;
}

/* Cards: three across from md, one below. A grid for a real gap (column
   padding would be lost to .p-0). */
.featured-projects-grid {
    display: grid;
    gap: var(--global-spacing-50) var(--global-spacing-25);
}
@media (min-width: 768px) {
    .featured-projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
/* !important to beat the site-wide underline on every link (rola.css). */
.featured-projects-card {
    display: block;
    color: inherit;
    text-decoration: none !important;
}
/* Landscape, as in the design. height:100% overrides the height
   attribute WordPress writes on the tag. */
.featured-projects-media {
    aspect-ratio: 7 / 5;
    overflow: hidden;
}
.featured-projects-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-projects-text {
    padding-top: var(--global-spacing-25);
}
/* -- FEATURED PROJECTS END -- */

/* -- CALL TO ACTION -- */
/* The row grows to the section's full height (the 75vh floor), so the
   image column can fill it - height:100% on a flex child would resolve
   against content height, not the row's. */
.call-to-action-row {
    flex: 1 1 auto;
}
.call-to-action-copy > * + * {
    margin-top: var(--global-spacing-25);
}
.call-to-action-button {
    padding-top: var(--global-spacing-12);
}
/* Mobile: a landscape crop under the text, and no 75vh floor - stacked,
   the section is already tall and the floor only adds empty space. The
   element in the selector outweighs main > article in rola.css. */
@media (max-width: 991.98px) {
    main > article.call-to-action {
        min-height: 0;
    }
    .call-to-action-copy {
        padding-bottom: var(--global-spacing-50);
    }
}
.call-to-action-media {
    aspect-ratio: 4 / 3;
}
.call-to-action-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Desktop: the image fills its half, edge to edge. */
@media (min-width: 992px) {
    .call-to-action-row > .col-lg-6 {
        display: flex;
        flex-direction: column;
    }
    .call-to-action-media {
        flex: 1 1 auto;
        aspect-ratio: auto;
        position: relative;
    }
    .call-to-action-image {
        position: absolute;
        inset: 0;
    }
}
/* Background layout: the image covers the section behind the copy. The
   button is lettered in earth brown on its (text-colour) fill, as in the
   design, rather than the page colour. */
.call-to-action.is-background {
    position: relative;
    overflow: hidden;
}
.call-to-action-backdrop {
    position: absolute;
    inset: 0;
}
/* Sketches come out of the Sketch Filter with a transparent margin (its
   Trim, up to 5% of each edge), which showed as a hard cut-off inside the
   section. Scaled up so that margin falls outside and the drawing bleeds
   off every edge - the same fix as the footer sketch. */
.call-to-action.is-background .call-to-action-image {
    transform: scale(1.12);
}
.call-to-action.is-background .call-to-action-row {
    position: relative;
    z-index: 1;
}
/* Large statement type, set solid. */
.call-to-action.is-background .wysiwyg {
    line-height: 1;
}
.call-to-action.is-background .pill-button {
    --pill-fg: var(--earth-brown);
}
/* Stacked on mobile the split layout drops its 75vh floor; the background
   layout keeps it, so the image still reads as a band, not a strip. */
@media (max-width: 991.98px) {
    main > article.call-to-action.is-background {
        min-height: 75vh;
    }
}
/* -- CALL TO ACTION END -- */

/* -- PROJECT FEED -- */
/* Filtering sets [hidden]; the display rules below would otherwise beat
   the browser's own [hidden] { display: none }. */
.project-feed [hidden] {
    display: none !important;
}
.project-feed-title {
    padding-bottom: var(--global-spacing-25);
}

/* Filter bar (Figma, Projects - Filtered): outlined boxes left - All,
   Sector, Region, the climate slider - and the view switch right, then a
   row of filled tags for what is applied. Outline = available, filled =
   on: "All" fills when nothing is filtered, a view button when chosen.
   Colours follow the section (--section-text / --section-bg). Filtering
   needs JS, so without it the bar is not shown. */
.project-feed-bar.is-views-only {
    justify-content: flex-end;
}
html:not(.has-js) .project-feed-bar {
    display: none;
}
.project-feed-bar {
    --filter-h: 2.65em;
    --filter-fg: var(--section-text, var(--dark));
    --filter-bg: var(--section-bg, var(--light));
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--global-spacing-12) var(--global-spacing-25);
    padding-bottom: var(--global-spacing-50);
    font-size: var(--font-size-xsmall);
}
.project-feed-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--global-spacing-12);
}
.project-feed-filter {
    position: relative;
    height: var(--filter-h);
}
.project-feed-all,
.project-feed-dropdown-box,
.project-feed-climate {
    border: 1px solid currentColor;
    border-radius: 8px;
}
.project-feed-all,
.project-feed-view {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    height: var(--filter-h);
    padding: 0 1.2em;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.project-feed-all.is-active {
    border-color: var(--filter-fg);
    background-color: var(--filter-fg);
    color: var(--filter-bg);
}
/* Grid / List / Map: plain text, secondary to the filters (no boxes -
   review, 18 Nov). The chosen view is underlined, the others faded. */
.project-feed-view {
    padding: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.project-feed-view:hover,
.project-feed-view:focus-visible {
    opacity: 1;
}
.project-feed-view.is-active {
    border-bottom-color: currentColor;
    opacity: 1;
}
.project-feed-view svg {
    fill: currentColor;
    flex: none;
}

/* Dropdown: the outline is absolutely placed over a box-sized slot, so
   when the list opens the box grows downwards over the projects instead
   of pushing the page. The list scrolls past ~6 rows. */
.project-feed-dropdown {
    width: 13em;
}
.project-feed-dropdown-box {
    position: absolute;
    inset: 0 0 auto 0;
    background-color: var(--filter-bg);
}
.project-feed-dropdown.is-open .project-feed-dropdown-box {
    z-index: 20;
}
.project-feed-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: calc(var(--filter-h) - 2px);
    padding: 0 1.2em;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.project-feed-chevron {
    width: 0.55em;
    height: 0.55em;
    margin-top: -0.3em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease, margin 0.3s ease;
}
.project-feed-dropdown.is-open .project-feed-chevron {
    margin-top: 0.3em;
    transform: rotate(-135deg);
}
/* 0fr -> 1fr animates to the list's own height; visibility keeps the
   closed list's checkboxes out of the tab order. */
.project-feed-dropdown-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s;
}
.project-feed-dropdown.is-open .project-feed-dropdown-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.3s ease, visibility 0s;
}
.project-feed-dropdown-inner {
    min-height: 0;
    overflow: hidden;
}
.project-feed-dropdown-list {
    max-height: 15em;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0 0.6em;
    padding: 0.4em 0 0.6em;
    border: 0;
    border-top: 1px solid currentColor;
}
.project-feed-option {
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.45em 0.6em;
    border-radius: 4px;
    cursor: pointer;
}
.project-feed-option:hover {
    background-color: color-mix(in srgb, currentColor 10%, transparent);
}
.project-feed-option input {
    flex: none;
    width: 1em;
    height: 1em;
    margin: 0;
    border: 1px solid currentColor;
    border-radius: 3px;
    background: none;
    appearance: none;
    cursor: pointer;
}
.project-feed-option input:checked {
    background: currentColor;
    box-shadow: inset 0 0 0 2px var(--filter-bg);
}
.project-feed-option input:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Climate: the slider itself, in a box - a hairline track and a small
   round handle between Arid and Temperate. */
.project-feed-climate {
    display: flex;
    align-items: center;
    gap: 0.8em;
    /* Long, so the climate scale reads as a real range (Simon, 19 Nov). */
    width: clamp(21em, 42vw - 8em, 36em);
    max-width: 100%;
    padding: 0 1.2em;
}
.project-feed-climate input[type="range"] {
    flex: 1 1 auto;
    min-width: 4em;
    height: 1.5em;
    margin: 0;
    background: none;
    color: inherit;
    appearance: none;
    cursor: pointer;
}
.project-feed-climate input[type="range"]::-webkit-slider-runnable-track {
    height: 1px;
    background: currentColor;
}
.project-feed-climate input[type="range"]::-moz-range-track {
    height: 1px;
    background: currentColor;
}
.project-feed-climate input[type="range"]::-webkit-slider-thumb {
    width: 0.75em;
    height: 0.75em;
    margin-top: calc(-0.375em + 0.5px);
    border: 0;
    border-radius: 50%;
    background: currentColor;
    appearance: none;
}
.project-feed-climate input[type="range"]::-moz-range-thumb {
    width: 0.75em;
    height: 0.75em;
    border: 0;
    border-radius: 50%;
    background: currentColor;
}
.project-feed-climate input[type="range"]:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 2px;
}

.project-feed-views {
    display: flex;
    align-items: center;
    gap: var(--global-spacing-25);
    height: var(--filter-h);
}

/* Tags: one per applied filter, filled, with a cross to remove it. */
.project-feed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--global-spacing-12);
    flex-basis: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.project-feed-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    height: var(--filter-h);
    padding: 0 1em 0 1.2em;
    border: 0;
    border-radius: 6px;
    background-color: var(--filter-fg);
    color: var(--filter-bg);
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
/* Hover inverts, as the project pills do (rola.css). */
.project-feed-tag:hover {
    background-color: transparent;
    color: var(--filter-fg);
    box-shadow: inset 0 0 0 1px var(--filter-fg);
}
.project-feed-tag:focus-visible {
    outline: 2px solid var(--filter-fg);
    outline-offset: 2px;
}
.project-feed-tag-x {
    position: relative;
    width: 0.8em;
    height: 0.8em;
    margin-left: 0.2em;
}
.project-feed-tag-x::before,
.project-feed-tag-x::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform: rotate(45deg);
}
.project-feed-tag-x::after {
    transform: rotate(-45deg);
}
/* Phones: the boxes share the width two to a row, the slider full. */
@media (max-width: 575.98px) {
    .project-feed-filters {
        width: 100%;
    }
    .project-feed-dropdown {
        flex: 1 1 calc(50% - var(--global-spacing-12));
        width: auto;
    }
    .project-feed-climate {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-feed-chevron,
    .project-feed-dropdown-panel,
    .project-feed-dropdown.is-open .project-feed-dropdown-panel {
        transition: none;
    }
}

/* Grid: three across from md, one below. A featured project takes a row
   of its own in columns 2-3; the grid does not back-fill column 1, which
   is the design's empty space beside it. */
.project-feed-grid {
    display: grid;
    gap: var(--global-spacing-50) var(--global-spacing-12);
}
@media (min-width: 768px) {
    .project-feed-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: var(--global-spacing-75);
    }
    .project-feed-card.is-featured {
        grid-column: 2 / span 2;
    }
}
/* !important to beat the site-wide underline on every link (rola.css). */
.project-feed-card,
.project-feed-row {
    display: block;
    color: inherit;
    text-decoration: none !important;
}
.project-feed-media {
    aspect-ratio: 7 / 5;
    overflow: hidden;
    margin-bottom: var(--global-spacing-12);
}
.project-feed-card.is-featured .project-feed-media {
    aspect-ratio: 8 / 5;
}
/* height:100% overrides the height attribute WordPress writes. */
.project-feed-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Registered so the line's colour can fade on hover. */
@property --row-line {
    syntax: "<color>";
    inherits: false;
    initial-value: transparent;
}
/* List: one project per row between rules - name, headline, pills.
   Each row's top rule is a 1px background line (so it can be drawn in);
   faded, and full strength round the row being hovered / focused - its
   own top line and the next row's. The last row keeps a real bottom
   border. */
.project-feed-row {
    --row-line: color-mix(in srgb, currentColor 25%, transparent);
    padding-block: var(--global-spacing-25);
    background-image: linear-gradient(var(--row-line), var(--row-line));
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 100% 1px;
    transition: --row-line 0.25s ease;
}
.project-feed-row:last-child {
    border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}
.project-feed-row:hover,
.project-feed-row:focus-within,
.project-feed-row:hover + .project-feed-row,
.project-feed-row:focus-within + .project-feed-row {
    --row-line: currentColor;
}
.project-feed-row:last-child:hover,
.project-feed-row:last-child:focus-within {
    border-bottom-color: currentColor;
}
/* Reveal, as on Project Facts: no fade - each piece slides down out of a
   slit at its own top edge (the clip shrinks as it moves, so its visible
   top stays put), then the row's rule draws in from the left. */
@media (prefers-reduced-motion: no-preference) {
    .has-js .project-feed-row .text-reveal {
        opacity: 1;
        transform: translateY(-100%);
        clip-path: inset(100% -1em -1em -1em);
        transition: transform 0.8s cubic-bezier(0.22, 0.8, 0.25, 1),
            clip-path 0.8s cubic-bezier(0.22, 0.8, 0.25, 1);
        transition-delay: calc(var(--row-i, 0) * 0.06s + var(--text-i, 0) * 0.08s);
    }
    .has-js .project-feed-row .text-reveal.is-in {
        transform: none;
        clip-path: inset(0 -1em -1em -1em);
    }
    .has-js .project-feed-row {
        transition: --row-line 0.25s ease, background-size 0.9s cubic-bezier(0.65, 0, 0.35, 1);
        transition-delay: 0s, calc(var(--row-i, 0) * 0.06s + 0.6s);
    }
    .has-js .project-feed-row:not(:has(.text-reveal.is-in)) {
        background-size: 0 1px;
    }
}
@media (min-width: 992px) {
    /* The headline leads on the left, then name/location, then pills -
       the grid card's top-to-bottom order reads wrong across a row
       (review, 18 Nov). Visual order only; the DOM keeps the card's. */
    .project-feed-row .project-meta {
        display: grid;
        grid-template-columns: 6fr 3fr 3fr;
        align-items: center;
        gap: var(--global-spacing-25);
    }
    .project-feed-row .project-meta > * + * {
        margin-top: 0;
    }
    .project-feed-row .project-meta-headline {
        order: -1;
    }
    .project-feed-row .project-pills {
        justify-content: flex-end;
        padding-top: 0;
    }
}
.project-feed-row:hover .project-meta-headline,
.project-feed-row:has(.project-card-link:focus-visible) .project-meta-headline {
    opacity: 0.7;
}

/* Map view (js/script.js, PROJECT MAP). The land is one SVG on a stage
   that is scaled and moved; the dots and clusters sit on a layer above,
   placed in px, so they stay the same size at every zoom. */
/* Map colours come from the component's fields (inline on .project-map:
   --map-sea, --map-land, --map-pin, --map-pin-text); empty ones fall back
   to the page's colours. */
.project-map {
    --pin: var(--map-pin, var(--filter-fg, var(--section-text, var(--earth-brown))));
    --pin-text: var(--map-pin-text, var(--section-bg, var(--stone)));
    position: relative;
}
/* Full bleed: the map runs to the edges of the browser window rather than
   sitting inside the page margins (review, 18 Nov) - the whole world shows
   at full width, and zooming crops at the window's edge. */
.project-feed-map {
    margin-inline: calc(-1 * var(--global-spacing-25));
}
.project-map-viewport {
    position: relative;
    /* --map-ratio: height / width, set on .project-map from PHP. */
    aspect-ratio: 1 / var(--map-ratio, 0.577);
    background-color: var(--map-sea, transparent);
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.project-map-viewport.is-dragging {
    cursor: grabbing;
}
.project-map-viewport:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
/* Phones: taller than the world is, so it is not a thin strip - it
   opens filling the height, and moves sideways. */
@media (max-width: 575.98px) {
    .project-map-viewport {
        aspect-ratio: 4 / 5;
    }
}
.project-map-stage {
    position: absolute;
    top: 0;
    left: 0;
}
/* One SVG the size of the box; the script points its viewBox at what is
   in view, so the outline is redrawn sharp at every zoom. */
.project-map-land {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 100%;
    fill: var(--map-land, var(--tan));
}
/* Zoomed in, once the detail tiles in view have loaded, they replace the
   world outline. */
.project-map-land-detail,
.project-map-land.is-detailed .project-map-land-base {
    display: none;
}
.project-map-land.is-detailed .project-map-land-detail {
    display: inline;
}
/* No stroke here: tiles overlap slightly instead (scripts/make-world-map.py),
   and a stroke would draw the cut edges along tile borders. */
.project-map-markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.project-map-pin,
.project-map-cluster {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
    border-radius: 50%;
    background-color: var(--pin);
    color: var(--pin-text);
}
.project-map-pin {
    width: 14px;
    height: 14px;
}
/* A bigger target than the dot itself. */
.project-map-pin::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
}
.project-map-pin.is-clustered {
    display: none;
}
/* The cluster whose stack is open. */
.project-map-cluster[aria-expanded="true"] {
    box-shadow: 0 0 0 4px var(--pin);
}
.project-map-cluster {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 0.4em;
    border: 0;
    font-family: var(--font-family-mono);
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pin) 25%, transparent);
}
.project-map-pin:focus-visible,
.project-map-cluster:focus-visible {
    outline: 2px solid var(--pin);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
    .project-map-pin,
    .project-map-cluster {
        transition: box-shadow 0.2s ease;
    }
}
.project-map-pin:hover,
.project-map-cluster:hover {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--pin) 30%, transparent);
}
/* Clusters breathe: a second ring swells out of the glow and fades, every
   2.4s, offset between neighbours so they do not pulse in step. Still
   while hovered or open, and not at all under reduced motion. */
@keyframes project-map-cluster-pulse {
    0% {
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--pin) 25%, transparent),
            0 0 0 4px color-mix(in srgb, var(--pin) 45%, transparent);
    }
    70%,
    100% {
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--pin) 25%, transparent),
            0 0 0 16px color-mix(in srgb, var(--pin) 0%, transparent);
    }
}
@media (prefers-reduced-motion: no-preference) {
    .project-map-cluster {
        animation: project-map-cluster-pulse 2.4s ease-out infinite;
    }
    .project-map-cluster:nth-of-type(3n + 2) {
        animation-delay: -0.8s;
    }
    .project-map-cluster:nth-of-type(3n) {
        animation-delay: -1.6s;
    }
    .project-map-cluster:hover,
    .project-map-cluster:focus-visible,
    .project-map-cluster[aria-expanded="true"] {
        animation: none;
    }
}

/* The panel: a project's card (copied from the Grid) or a cluster's
   list, in Earth brown, beside the dot. On phones it sits along the
   bottom of the map. */
.project-map-panel {
    --section-bg: var(--earth-brown);
    --section-text: var(--sand);
    position: absolute;
    z-index: 5;
    width: min(344px, calc(100% - 24px));
    padding: 16px 16px 20px;
    border-radius: 12px;
    background-color: var(--earth-brown);
    color: var(--sand);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    cursor: auto;
}
@media (max-width: 575.98px) {
    .project-map-panel {
        left: 12px !important;
        right: 12px;
        bottom: 12px;
        top: auto !important;
        width: auto;
    }
    .project-map-panel .project-feed-media {
        aspect-ratio: 16 / 9;
    }
}
.project-map-panel .project-feed-card {
    display: block;
}
.project-map-panel .project-feed-media {
    border-radius: 4px;
}
/* "2 projects" - the panel's heading, in bold DM Sans (not mono). */
.project-map-panel-title {
    margin: 0 0 0.6em;
    font-size: var(--font-size-body);
    font-weight: 700;
}
.project-map-panel.is-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 16em;
    overflow-y: auto;
}
.project-map-panel.is-list li + li {
    border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}
.project-map-panel.is-list a {
    display: block;
    padding: 0.55em 0;
    color: inherit;
    text-decoration: none !important;
}
.project-map-panel.is-list a:hover,
.project-map-panel.is-list a:focus-visible {
    opacity: 0.75;
}

/* A stack: several projects at one spot, one card at a time, with
   previous / count / next and a close button above the card. */
.project-map-stack-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.project-map-stack-count {
    flex: 1 1 auto;
    margin: 0;
    font-family: var(--font-family-mono);
    font-size: var(--font-size-xsmall);
    text-align: center;
}
.project-map-stack-button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
    border-radius: 6px;
    background: none;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}
.project-map-stack-button:hover,
.project-map-stack-button:focus-visible {
    border-color: currentColor;
}
.project-map-stack-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
.project-map-stack-button.is-close {
    margin-left: 6px;
}

/* + / - in the bottom-right corner. */
.project-map-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
@media (max-width: 575.98px) {
    .project-map-zoom {
        top: 12px;
        bottom: auto;
    }
}
.project-map-zoom-button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background-color: var(--pin);
    color: var(--pin-text);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.project-map-zoom-button:disabled {
    opacity: 0.35;
    cursor: default;
}
.project-map-zoom-button:focus-visible {
    outline: 2px solid var(--pin);
    outline-offset: 2px;
}

/* List view hover preview (js/script.js, LIST PREVIEW). Each row's
   preview stays hidden in the row; the script moves it into one fixed,
   rounded frame that follows the pointer. */
.project-feed-row .project-feed-preview,
[data-preview-row] .project-feed-preview {
    display: none;
}
.project-feed-hover {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: clamp(240px, 26vw, 380px);
    aspect-ratio: 7 / 5;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--earth-brown);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}
.project-feed-hover.is-visible {
    opacity: 1;
    visibility: visible;
}
@media (prefers-reduced-motion: no-preference) {
    .project-feed-hover {
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }
    .project-feed-hover.is-visible {
        transition: opacity 0.25s ease, visibility 0s;
    }
}
.project-feed-hover .project-feed-preview {
    position: absolute;
    inset: 0;
    display: none;
}
.project-feed-hover .project-feed-preview.is-active {
    display: block;
}
.project-feed-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* The Vimeo player, cropped to fill the frame (16:9 inside 7:5), faded
   in over the image once it is playing. */
.project-feed-preview {
    container-type: size;
}
.project-feed-preview-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100cqw, calc(100cqh * 16 / 9));
    height: max(100cqh, calc(100cqw * 9 / 16));
    border: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.project-feed-preview.is-playing .project-feed-preview-video {
    opacity: 1;
}
/* -- PROJECT FEED END -- */

/* -- IMAGE -- */
/* Never taller than the screen: a portrait image (a masterplan, say) is
   shown whole, its width capped at what keeps it within the screen's
   height (--image-ratio, width / height, from inc-blocks/image.php),
   rather than running on for two screens. The box shrinks with the
   picture, so the rounded corners stay on it. Sits to the side the
   Position field picks. */
.image .image-image {
    max-width: min(100%, calc((100svh - var(--global-spacing-100)) * var(--image-ratio, 100)));
}
.image .mx-lg-auto .image-image {
    margin-inline: auto;
}
.image .ms-lg-auto .image-image {
    margin-left: auto;
}
/* height:auto so the height attribute WordPress writes on the tag can't
   stretch the image off its own proportions. */
.image .image-image {
    display: block;
    width: 100%;
    height: auto;
}
/* Blend: multiplied into the page colour, so white paper drops out and a
   sketch's lines sit straight on the page. */
.image-blend .image-image {
    mix-blend-mode: multiply;
}
/* -- IMAGE END -- */

/* -- GALLERY -- */
/* Six columns so the three row shapes divide evenly: 4+2, 6, 3+3. The
   first tile in each row sets the row's height (aspect-ratio); its
   partner stretches to match, so the narrow tile needs no ratio of its
   own. A grid rather than Bootstrap columns, for a real gap (column
   padding would be lost to .p-0). */
.gallery-grid {
    display: grid;
    gap: var(--global-spacing-12);
}
.gallery-tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}
/* Absolutely placed, so an image's own shape can never size its row - a
   tall portrait in the narrow slot would otherwise push the row taller
   than its wide partner. Also sidesteps the height attribute WordPress
   writes on the tag. */
.gallery-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .gallery-tile-1 {
        grid-column: span 4;
        aspect-ratio: 4 / 3;
    }
    .gallery-tile-2 {
        grid-column: span 2;
        aspect-ratio: auto;
    }
    .gallery-tile-3 {
        grid-column: span 6;
        aspect-ratio: 2 / 1;
    }
    .gallery-tile-4,
    .gallery-tile-5 {
        grid-column: span 3;
        aspect-ratio: 1 / 1;
    }
    /* A group that ends on its wide tile has no narrow partner - let the
       wide one take the whole row rather than leave a hole. */
    .gallery-tile-1:last-child {
        grid-column: span 6;
        aspect-ratio: 2 / 1;
    }
    /* Likewise a lone half. */
    .gallery-tile-4:last-child {
        grid-column: span 6;
        aspect-ratio: 2 / 1;
    }
}
/* A video fills its slot exactly like an image. */
.gallery-video {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}
/* -- GALLERY END -- */

/* -- FEATURED CONTENT -- */
/* The rule over the header, in the section's text colour. Bootstrap gives
   <hr> its own colour and 25% opacity. */
.featured-content-rule {
    margin: 0 0 var(--global-spacing-25);
    border: 0;
    border-top: 1px solid currentColor;
    opacity: 1;
}
/* Header: title in the first third, caption in the second, link at the
   far right - the shared component header stacks them, so it is laid out
   here. */
.featured-content .component-header {
    display: grid;
    gap: var(--global-spacing-25);
    padding-bottom: var(--global-spacing-75);
}
@media (min-width: 992px) {
    .featured-content .component-header {
        grid-template-columns: 2fr 1fr;
    }
    .featured-content .component-header-text {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--global-spacing-25);
    }
    .featured-content .component-header-link {
        display: flex;
        justify-content: flex-end;
    }
}
/* The links here are the design's small mono "Link ->", not the house
   uppercase arrow link. */
.featured-content .component-header-link .arrow-link,
.featured-content-link {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-mono);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
.featured-content-link {
    color: var(--link-accent);
}
.featured-content-link:hover,
.featured-content-link:focus-visible {
    color: inherit;
}

.featured-content-media {
    overflow: hidden;
    aspect-ratio: 2 / 3;
}
.featured-content-media-large {
    aspect-ratio: 3 / 2;
}
/* height:100% overrides the height attribute WordPress writes. */
.featured-content-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-content-text {
    padding-top: var(--global-spacing-12);
}
.featured-content-text > * + * {
    margin-top: var(--global-spacing-6);
}
/* Body copy in DM Sans - mono is for the small links only. */
.featured-content-description {
    line-height: 1.3 !important;
}
/* The large post's text runs to half its image's width. */
@media (min-width: 768px) {
    .featured-content-feature-text {
        max-width: 50%;
    }
}
/* The rest: quarter-width cards in a row, from the left. A grid for a
   real gap (column padding would be lost to .p-0). */
.featured-content-grid {
    display: grid;
    gap: var(--global-spacing-50) var(--global-spacing-25);
    padding-top: var(--global-spacing-100);
}
@media (min-width: 768px) {
    .featured-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 992px) {
    .featured-content-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
/* Equal cards: the intro (title, caption, button) in the left half, then
   every post as an equal portrait card, the row ending at the right edge
   - three cards start a quarter in, as in the design. */
.featured-content-intro {
    max-width: 44rem;
    padding-bottom: var(--global-spacing-50);
}
.featured-content-intro > * + * {
    margin-top: var(--global-spacing-12);
}
.featured-content-intro-button {
    padding-top: var(--global-spacing-25);
}
.featured-content-row {
    display: grid;
    gap: var(--global-spacing-50) var(--global-spacing-25);
}
@media (min-width: 768px) {
    .featured-content-row {
        grid-template-columns: repeat(var(--cards), minmax(0, 1fr));
    }
}
@media (min-width: 992px) {
    .featured-content-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .featured-content-row > :first-child {
        grid-column-start: calc(5 - var(--cards));
    }
}
/* -- FEATURED CONTENT END -- */

/* -- FEATURED SECTORS -- */
/* "We work across" - DM Sans semibold, like the sector tabs in Featured
   Projects. The mono face is kept for small link-like text only. */
.featured-sectors-title {
    margin-bottom: var(--global-spacing-50);
}
/* Four across on desktop, two on tablets, one on phones. A grid rather
   than Bootstrap columns, for a real gap (column padding would be lost to
   .p-0). */
.featured-sectors-grid {
    display: grid;
    gap: var(--global-spacing-25);
}
@media (min-width: 576px) {
    .featured-sectors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1200px) {
    .featured-sectors-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
/* Tall cards in their sector's colour; !important on the decoration to
   beat the site-wide link underline when a card links. */
.featured-sectors-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 13 / 20;
    border-radius: var(--radius-image);
    background-color: var(--earth-brown);
    color: inherit;
    text-decoration: none !important;
}
/* The sketch fills the card behind the text, held to the bottom - most
   of the drawing sits under the copy, as in the design. */
/* Held to the bottom of the card, under the text: a band about half the
   card tall whose top fades out, so the drawing shows at full strength
   only in the bottom third and has no hard top edge. mask-image fades
   the sketch itself, not a colour laid over it, so it works on any card
   colour. */
.featured-sectors-image {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
    transform-origin: center bottom;
    /* The sketch is already a zoomed-in crop (Sketch Filter > Frame, at
       13:20 - the card's shape), so it reads as texture rather than a
       picture, and it is sharp: zooming here in CSS blew up a small copy
       and went blocky. Softened so the text reads before hover
       (Colin / Noelle review, 18 Nov). */
    opacity: 0.55;
}
.featured-sectors-text {
    position: relative;
    padding: var(--global-spacing-25);
}
.featured-sectors-text h3 + .featured-sectors-description {
    margin-top: var(--global-spacing-25);
}
.featured-sectors-description {
    max-width: 22em;
    line-height: 1.3 !important;
}
/* One column on phones: full-width cards at 13:20 run very tall, so they
   size to their text with a floor instead. */
@media (max-width: 575.98px) {
    .featured-sectors-card {
        aspect-ratio: auto;
        min-height: 26rem;
    }
}
/* No hover effect on the sketch itself - the card lifts (CARD LIFT). */
/* -- FEATURED SECTORS END -- */

/* -- LANDING PAGE (term-page.php: sectors and regions) -- */
/* Title area: 660px tall at 1440 wide (the design), shorter on smaller
   screens, the name sitting near the bottom. Colours come from the page
   (Earth Brown / Sand, rola_page_colour()). */
/* Crumb, title and description centred top to bottom as one group (as
   the hero's are), over the sketch with the hero's gradient (HERO HEADER,
   .term-hero-sketch::after) in the page colour - Earth Brown. */
.term-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(420px, 50vw, 720px); /* tall enough that the projects bar starts below the fixed season/time/temperature line on a laptop screen */
    overflow: hidden;
}
.term-hero > .row {
    position: relative;
    z-index: 1;
}
.term-hero-text {
    padding-block: clamp(48px, 7.5vw, 110px);
}
/* The sketch, cropped as in the design: drawn 183% of the width and
   nudged up and left, so the stream runs through the middle. */
.term-hero-sketch {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.term-hero-sketch-image {
    position: absolute;
    top: 0;
    left: -80%;
    width: 183%;
    max-width: none;
    height: auto;
    transform: translateY(-31%);
}
@media (max-width: 767.98px) {
    .term-hero-sketch-image {
        left: -120%;
        width: 300%;
        transform: translateY(-25%);
    }
}
/* Its 12 margin plus the title's padding-top-12 (term-page.php) make the
   gap to the title - the title's was 25 (23 Nov 2026). */
.term-hero-crumb {
    margin-bottom: var(--global-spacing-12);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-mono);
}
.term-hero-crumb a {
    color: inherit;
    text-decoration: none;
}
.term-hero-crumb a:hover,
.term-hero-crumb a:focus-visible {
    text-decoration: underline;
}
.term-hero-crumb span {
    margin: 0 0.35em;
}
.term-hero-title {
    letter-spacing: -0.04em;
    line-height: 0.85;
}
.term-intro-text {
    line-height: 1.25 !important;
}
/* -- LANDING PAGE END -- */

/* -- IMPACT -- */
/* The rule over the section, in its text colour (Bootstrap gives <hr>
   its own colour and 25% opacity). */
.impact-rule {
    margin: 0;
    border: 0;
    border-top: 1px solid currentColor;
    opacity: 1;
}
/* Intro: title in the left half, text in the right - the same split as
   the Text component's Split layout. */
.impact-intro {
    display: grid;
    gap: var(--global-spacing-25);
}
.impact-text {
    line-height: 1.3;
}
/* Figures: a row in the right half, each hung off a rule on its left.
   Two across on phones, where three would squeeze the numbers. Scoped
   under .impact to outrank the reset's ul:not(...) { margin: 0 }, which
   would otherwise pin the row to the left. */
.impact .impact-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--global-spacing-50) var(--global-spacing-25);
    margin: 0;
    padding: var(--global-spacing-75) 0 0;
    list-style: none;
}
.impact-stat {
    padding-left: var(--global-spacing-12);
    border-left: 1px solid currentColor;
}
.impact-figure {
    /* Digits all one width, so the count-up (js/script.js, COUNT UP)
       does not jitter. */
    font-variant-numeric: tabular-nums;
    line-height: 0.9;
    white-space: nowrap;
}
.impact-description {
    padding-top: var(--global-spacing-50);
    line-height: 1.2 !important;
    opacity: 0.85;
}
@media (min-width: 768px) {
    .impact .impact-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 992px) {
    .impact-intro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .impact .impact-stats {
        width: 50%;
        margin-left: auto;
    }
}
/* -- IMPACT END -- */

/* -- PROJECT FACTS -- */
/* One fact per row - small uppercase label over the value - each closed
   by a rule in the text colour. */
.project-facts-list {
    margin: 0;
}
.project-facts-item {
    position: relative;
    padding: var(--global-spacing-12) 0;
}
/* The rule under each fact - drawn, so it can grow from the left. */
.project-facts-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform-origin: 0 50%;
}
.project-facts-slit,
.project-facts-slit > span {
    display: block;
}
/* Reveal: no fade. Each line slides down out of a slit at its own top
   edge (clipped above only, so descenders are never cut), the label then
   the value, fact after fact; once the text is out, the rule draws in
   from the left. The item itself opts out of the house text reveal. */
@media (prefers-reduced-motion: no-preference) {
    .has-js .project-facts-item.text-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .has-js .project-facts-slit {
        clip-path: inset(0 -1em -1em -1em);
    }
    .has-js .project-facts-slit > span {
        transform: translateY(-105%);
        transition: transform 0.8s cubic-bezier(0.22, 0.8, 0.25, 1);
        transition-delay: calc(var(--fact-i, 0) * 0.12s);
    }
    .has-js .project-facts-value .project-facts-slit > span {
        transition-delay: calc(var(--fact-i, 0) * 0.12s + 0.08s);
    }
    .has-js .project-facts-item::after {
        transform: scaleX(0);
        transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
        transition-delay: calc(var(--fact-i, 0) * 0.12s + 0.7s);
    }
    .has-js .project-facts-item.is-in .project-facts-slit > span,
    .has-js .project-facts-item.is-in::after {
        transform: none;
    }
}
.project-facts-item:first-child {
    padding-top: 0;
}
.project-facts-label {
    margin: 0 0 var(--global-spacing-6);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}
.project-facts-value {
    margin: 0;
    line-height: 1.3;
}
/* height:auto so the height attribute WordPress writes can't stretch the
   image off its own proportions. */
/* Cropped to a landscape 3:2 whatever the upload's shape, so a portrait
   photo can't make the section taller than the screen. */
.project-facts-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
/* -- PROJECT FACTS END -- */

/* -- EXPLORE MORE -- */
/* The same cards as Featured Projects: three across from md, one below,
   a landscape image with rounded corners over rola_project_meta(). */
.explore-more-title {
    margin-bottom: var(--global-spacing-50);
    line-height: 1;
}
.explore-more-grid {
    display: grid;
    gap: var(--global-spacing-50) var(--global-spacing-25);
}
@media (min-width: 768px) {
    .explore-more-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
/* !important to beat the site-wide underline on every link (rola.css). */
.explore-more-card {
    display: block;
    color: inherit;
    text-decoration: none !important;
}
/* height:100% overrides the height attribute WordPress writes. */
.explore-more-media {
    aspect-ratio: 7 / 5;
    overflow: hidden;
}
.explore-more-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}
.explore-more-card:hover .explore-more-image,
.explore-more-card:has(.project-card-link:focus-visible) .explore-more-image {
    opacity: 0.85;
}
.explore-more-text {
    padding-top: var(--global-spacing-25);
}
/* -- EXPLORE MORE END -- */

/* -- PROJECT PAGE -- */
/* single-projects.php: the heading band and the full-bleed hero above the
   project's components. */
/* Tight to the title below it (review, 18 Nov). */
.project-header-name {
    margin-bottom: var(--global-spacing-12);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-mono);
    opacity: 0.85;
}
.project-header-title {
    padding-top: var(--global-spacing-12);
    line-height: 0.95;
}
/* Pills bottom right on desktop; under the title on mobile, where the
   padding-top above them would double up. */
.project-header-tags .project-pills {
    padding-top: 0;
}
@media (min-width: 768px) {
    .project-header-tags .project-pills {
        justify-content: flex-end;
    }
}
@media (max-width: 767.98px) {
    .project-header-tags {
        padding-top: 0;
    }
}
/* 16:10, as in the design, never taller than the screen. */
.project-hero {
    padding-top: var(--global-spacing-75);
}
.project-hero-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 100dvh;
    object-fit: cover;
}
/* -- PROJECT PAGE END -- */

/* -- TEAM FEED -- */
/* The section intro (title, optional text) shared by Team Feed, Image
   Text Columns and Awards List - rola_component_header(): the design's
   36px semibold title, a short line under it, 60px above the content. */
.team-feed .component-header,
.image-text-columns .component-header,
.awards-list .component-header {
    padding-bottom: var(--global-spacing-50);
}
.team-feed .component-header-caption,
.image-text-columns .component-header-caption,
.awards-list .component-header-caption {
    max-width: 36rem;
    padding-top: var(--global-spacing-25);
}

/* Four columns from lg, two below. Each member keeps to its column
   (nth-child below), so with JS the grid becomes a masonry of 1px rows:
   every card spans its own measured height (js/script.js, TEAM FEED),
   and a card that grows - its bio opening - pushes down only the cards
   under it in the same column. grid-auto-flow: dense lets each card take
   the first free row in its column rather than following the one before.
   Scoped .team-feed .team-feed-grid to beat the reset's list margin. */
.team-feed .team-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--global-spacing-25);
    row-gap: var(--global-spacing-50);
    margin: 0;
    padding: 0;
    list-style: none;
}
.team-feed .team-feed-grid.is-masonry {
    grid-auto-rows: 1px;
    grid-auto-flow: row dense;
    row-gap: 0;
}
.team-feed-member:nth-child(2n + 1) { grid-column: 1; }
.team-feed-member:nth-child(2n + 2) { grid-column: 2; }
@media (min-width: 992px) {
    .team-feed .team-feed-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .team-feed-member:nth-child(4n + 1) { grid-column: 1; }
    .team-feed-member:nth-child(4n + 2) { grid-column: 2; }
    .team-feed-member:nth-child(4n + 3) { grid-column: 3; }
    .team-feed-member:nth-child(4n + 4) { grid-column: 4; }
}
/* In the masonry the row gap is the card's own bottom padding, so it is
   part of the height each card spans. */
.team-feed-grid.is-masonry .team-feed-member {
    align-self: start;
}
.team-feed-grid.is-masonry .team-feed-card {
    padding-bottom: var(--global-spacing-50);
}

/* The photo is the button. Reset the button, keep a clear focus ring. */
.team-feed-toggle {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-align: left;
}
button.team-feed-toggle {
    cursor: pointer;
}
button.team-feed-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
/* The design's 325 x 411 portrait. */
.team-feed-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 325 / 411;
    background-color: rgba(255, 255, 255, 0.04);
}
.team-feed-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Hover / keyboard focus: the whole card rises a few pixels (as CARD LIFT
   does elsewhere) - only cards whose photo opens a bio. */
@media (prefers-reduced-motion: no-preference) {
    .team-feed-card:has(button.team-feed-toggle) {
        transition: transform 0.3s ease;
    }
    .team-feed-card:has(button.team-feed-toggle:focus-visible) {
        transform: translateY(-4px);
    }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .team-feed-card:has(button.team-feed-toggle):hover {
        transform: translateY(-4px);
    }
}
/* A plus in the photo's corner says "there's more"; it turns to a cross
   when the bio is open. */
.team-feed-icon {
    position: absolute;
    right: var(--global-spacing-12);
    bottom: var(--global-spacing-12);
    width: 36px;
    height: 36px;
    color: var(--light);
    /* No backing circle - just the icon. A soft shadow keeps it readable
       on light photos. */
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
    transition: transform 0.5s cubic-bezier(0.33, 0.1, 0.25, 1);
}
.team-feed-icon::before,
.team-feed-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background-color: currentColor;
    transform: translate(-50%, -50%);
}
.team-feed-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}
.team-feed-member.is-open .team-feed-icon {
    transform: rotate(45deg);
}

.team-feed-name {
    padding-top: var(--global-spacing-25);
    line-height: 1.3 !important;
}
.team-feed-person,
.team-feed-role {
    display: block;
}

/* The bio. Opens by animating the row from 0fr to 1fr - a real height
   animation with no measuring - and fades in as it goes. Closed, it is
   also visibility:hidden so its text is not read out or tabbed into.
   Only with JS: without it the bio simply shows. */
.team-feed-bio {
    display: grid;
    grid-template-rows: 1fr;
}
.team-feed-bio-inner {
    min-height: 0;
    overflow: hidden;
}
.team-feed-bio-text {
    padding-top: var(--global-spacing-12);
}
.has-js .team-feed-bio {
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.7s cubic-bezier(0.33, 0.1, 0.25, 1),
        visibility 0s linear 0.7s;
}
.has-js .team-feed-bio-text {
    opacity: 0;
    transform: translateY(-0.5em);
    transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.33, 0.1, 0.25, 1);
}
.has-js .team-feed-member.is-open .team-feed-bio {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.7s cubic-bezier(0.33, 0.1, 0.25, 1),
        visibility 0s linear 0s;
}
.has-js .team-feed-member.is-open .team-feed-bio-text {
    opacity: 1;
    transform: none;
    transition-delay: 0.15s;
}
@media (prefers-reduced-motion: reduce) {
    .has-js .team-feed-bio,
    .has-js .team-feed-bio-text,
    .team-feed-icon,
    .team-feed-image {
        transition: none !important;
    }
}
/* -- TEAM FEED END -- */

/* -- IMAGE TEXT COLUMNS -- */
/* One to three columns, sized by the count (the article carries
   image-text-columns-1/2/3). Stacked on phones. Images are cropped to
   one shape per layout so the columns line up. */
.image-text-columns-grid {
    display: grid;
    gap: var(--global-spacing-50) var(--global-spacing-25);
}
.image-text-columns-media {
    overflow: hidden;
}
.image-text-columns-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
/* The design's 440 x 382 office photos. */
.image-text-columns-3 .image-text-columns-image {
    aspect-ratio: 440 / 382;
}
.image-text-columns-copy {
    padding-top: var(--global-spacing-25);
}
.image-text-columns-title + .wysiwyg {
    padding-top: var(--global-spacing-25);
}
.image-text-columns .wysiwyg a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
@media (min-width: 768px) {
    .image-text-columns-2 .image-text-columns-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .image-text-columns-3 .image-text-columns-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .image-text-columns-2 .image-text-columns-copy,
    .image-text-columns-3 .image-text-columns-copy {
        padding-top: var(--global-spacing-50);
    }
}
/* One column: image left (two thirds), text right, from the top. */
@media (min-width: 992px) {
    .image-text-columns-1 .image-text-columns-item {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: var(--global-spacing-25);
        align-items: start;
    }
    .image-text-columns-1 .image-text-columns-copy {
        padding-top: 0;
    }
}
/* -- IMAGE TEXT COLUMNS END -- */

/* -- AWARDS LIST -- */
/* Ruled rows: the award in mono on the left half, "Client, project" on
   the right, both sitting on the row's baseline. Stacked on phones.
   Scoped .awards-list .awards-list-items to beat the reset's list margin. */
.awards-list .awards-list-items {
    display: grid;
    gap: var(--global-spacing-12);
    margin: 0;
    padding: 0;
    list-style: none;
}
.awards-list-row {
    display: grid;
    gap: var(--global-spacing-6);
    padding-top: var(--global-spacing-12);
    border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent);
    transition: border-color 0.25s ease;
}
/* Faded divider; full strength on the row being hovered / focused. */
.awards-list-row:hover,
.awards-list-row:focus-within {
    border-top-color: currentColor;
}
.awards-list-award {
    font-family: var(--font-family-mono);
    line-height: 1.2 !important;
}
.awards-list-credit {
    font-weight: 400;
    line-height: 1.2 !important;
}
/* A picked project: its title links to it - underlined on hover, as the
   row also shows its image (LIST PREVIEW). */
.awards-list-project {
    color: inherit;
    text-decoration: none !important;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
}
.awards-list-row:hover .awards-list-project,
.awards-list-project:focus-visible {
    background-size: 100% 1px;
}
@media (prefers-reduced-motion: no-preference) {
    .awards-list-project {
        transition: background-size 0.3s ease;
    }
}
@media (min-width: 768px) {
    .awards-list-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--global-spacing-25);
        align-items: baseline;
        padding-block: var(--global-spacing-12);
    }
}
/* -- AWARDS LIST END -- */

/* -- CARD LIFT -- */
/* Every card that leads somewhere rises a few pixels on hover, and on
   keyboard focus. Featured Content cards are not links themselves (the
   "Link" inside is), so they rise when that link is focused. Pointer
   hover only on devices that have one - a tap should not leave a card
   stuck up - and no movement under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    .project-feed-card,
    .featured-projects-card,
    .explore-more-card,
    .featured-sectors-card,
    .featured-content-card {
        transition: transform 0.3s ease;
    }
    .project-feed-card:has(.project-card-link:focus-visible),
    .featured-projects-card:has(.project-card-link:focus-visible),
    .explore-more-card:has(.project-card-link:focus-visible),
    .featured-sectors-card:focus-visible,
    .featured-content-card:has(a:focus-visible) {
        transform: translateY(-4px);
    }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .project-feed-card:hover,
    .featured-projects-card:hover,
    .explore-more-card:hover,
    .featured-sectors-card:hover,
    .featured-content-card:hover {
        transform: translateY(-4px);
    }
}
/* -- CARD LIFT END -- */

/* -- STEPS -- */
.steps-title {
    max-width: 52rem;
    margin-bottom: var(--global-spacing-50);
    font-weight: 500;
    line-height: 1.2;
}
/* Four across from desktop (a fifth or sixth wraps), two on tablets,
   one on phones. */
.steps-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--global-spacing-50) var(--global-spacing-25);
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 576px) {
    .steps-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .steps-list {
        grid-template-columns: repeat(4, 1fr);
    }
}
.steps-media {
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: var(--global-spacing-25);
}
/* Fills the square: height 100% beats WordPress's height attribute. */
.steps-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* The number in Tan, the same size as the title under it - the design. */
.steps-number {
    margin-bottom: 0;
    color: var(--tan);
}
.steps-step-title {
    margin: 0;
    font-weight: 400;
}
/* -- STEPS END -- */

/* -- FEATURE GRID -- */
/* Alternating: on a 12-column grid, a small image (4 columns) beside a
   large one (7), swapping sides each row - small | large, then
   large | small (pushed to the right edge). Row: three portrait images
   on a 4-column grid, the last column left open, as in the design.
   One column on phones; the row is two-up on tablets. */
.feature-grid-items {
    display: grid;
    gap: var(--global-spacing-75) var(--global-spacing-25);
}
.feature-grid-item {
    min-width: 0;
}
.feature-grid-media {
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: var(--global-spacing-25);
}
/* height:100% overrides the height attribute WordPress writes. */
.feature-grid-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-grid-alternating .feature-grid-media {
    aspect-ratio: 4 / 3;
}
.feature-grid-row .feature-grid-media {
    aspect-ratio: 2 / 3;
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .feature-grid-row .feature-grid-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 992px) {
    .feature-grid-alternating .feature-grid-items {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        row-gap: var(--global-spacing-100);
    }
    .feature-grid-alternating .feature-grid-item:nth-child(4n + 1) {
        grid-column: 1 / span 4;
    }
    .feature-grid-alternating .feature-grid-item:nth-child(4n + 2) {
        grid-column: 6 / span 7;
    }
    .feature-grid-alternating .feature-grid-item:nth-child(4n + 3) {
        grid-column: 1 / span 7;
    }
    .feature-grid-alternating .feature-grid-item:nth-child(4n) {
        grid-column: 9 / span 4;
    }
    .feature-grid-row .feature-grid-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.feature-grid-title + .feature-grid-text {
    margin-top: var(--global-spacing-12);
}
/* The design's small mono paragraph, held to a readable measure. */
.feature-grid-text {
    max-width: 38em;
    font-family: var(--font-family-mono);
    font-size: var(--font-size-mono, var(--font-size-xsmall));
    line-height: 1.4 !important;
}
.feature-grid-copy .arrow-link {
    margin-top: var(--global-spacing-12);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-mono, var(--font-size-xsmall));
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--link-accent);
}
.feature-grid-copy .arrow-link:hover,
.feature-grid-copy .arrow-link:focus-visible {
    color: inherit;
}
/* -- FEATURE GRID END -- */
