/* -- FONT FACES -- */
/* DM Sans - the only face. Variable, one file per style covers every weight.
   OFL licensed, see assets/fonts/DM-Sans-OFL.txt. */
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-variable-italic.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}
/* -- FONT FACES END -- */

/* -- VARIABLES -- */
:root {
  /* The small rounding on content images and image cards (IMAGE
     CORNERS) - one value so they all match. */
  --radius-image: 6px;
  /* The header logo - the size the Home hero logo shrinks to, so it is
     the same on every page. */
  --header-logo-height: clamp(32px, 3.5vw, 52px);
  /* Derived from the header's own parts (padding-25 top and bottom plus
     the logo) rather than a fixed number, so it stays accurate when the
     spacing scale changes at breakpoints. */
  --header-height: calc((var(--global-spacing-25) * 2) + var(--header-logo-height));

  /* DM Sans, site-wide (@font-face above). */
  --font-family-base: "DM Sans", system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  /* The header's season / time / temperature. The design's mono face is
     not in rola-fonts yet - a system mono until it is. */
  --font-family-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;

  /* Fluid type scale. Tune the clamp() min/max per project - these are
     sensible defaults, not brand-specific. */
  --font-size-xxl: clamp(2.5rem, 5vw, 6rem);
  /* xl / large / medium were out of order below ~970px wide (at 768px
     large was 44px, xl 35px, xxl 40px; on phones medium sat under small).
     Re-fitted so xsmall < body < small < medium < large < xl < xxl at
     every width from 320px up - desktop (1440px) values are unchanged. */
  --font-size-xl: clamp(2.1rem, 4.5vw, 4.375rem);
  --font-size-large: clamp(1.8rem, 3.05vw, 2.75rem);
  --font-size-medium: clamp(1.6rem, 2.4vw, 2.15rem);
  /* h3. Was a flat 1.4rem, which sat below --font-size-body at wide
     viewports - so h3 rendered smaller than the body copy under it and
     the step between the two read as no step at all. */
  --font-size-small: clamp(1.5rem, 1.9vw, 1.9rem);
  /* Body copy - the p tag size. Any block of running text should use this,
     whether or not it is wrapped in a <p>. */
  --font-size-body: clamp(1.15rem, 1.3vw, 1.45rem);
  /* Was a flat 1.28rem (20.5px), which sat ABOVE --font-size-body below
     ~1600px wide - so "small" text rendered bigger than body copy. Kept
     under body at every width: 16px up to 1600px wide, 19.2px cap. */
  --font-size-xsmall: clamp(1rem, 1vw, 1.2rem);
  /* The mono face. Its wide glyphs read a size bigger than DM Sans at the
     same font-size, so it steps down a notch (review, 18 Nov). */
  --font-size-mono: clamp(0.875rem, 0.85vw, 1.05rem);
  --font-size-menu: 1.1rem;
  --font-size-menu-small: 1.75rem;

  /* Brand palette, from the ROLA colour palette board (April 2026).
     Keep in sync with functions/acf_colour_picker_palette.php. */
  /* Foundation - earth, core identity */
  --earth-brown: #514842;
  --forest-green: #3d523e;
  --olive: #6a6147;
  --rust: #a95038;
  --tan: #a07e58;
  /* Expression - energy, contemporary */
  --orange: #ec5a29;
  --amber: #e9983e;
  --mint: #8fed98;
  --leaf-green: #57b279;
  /* Atmosphere - background support */
  --stone: #d8cfbe;
  --sand: #efd7b4;
  --lime: #e2eab7;

  /* Contrast pair used by functions/text_colour.php - keep in sync. */
  --dark: var(--earth-brown);
  --dark-alt: #000000;
  --light: #ffffff;
  --light-alt: var(--stone);
  --accent: var(--mint);

  --global-spacing-3: 3px;
  --global-spacing-6: 6px;
  --global-spacing-12: 12px;
  --global-spacing-25: 25px;
  --global-spacing-50: 50px;
  --global-spacing-75: 75px;
  --global-spacing-100: 100px;
  --global-spacing-150: 150px;
  --global-spacing-200: 200px;
}
@media (max-width: 992px) {
  :root {
    --global-spacing-25: 12px;
    --global-spacing-100: 75px;
  }
}
@media (max-width: 768px) {
  :root {
    --global-spacing-100: 50px;
  }
}
@media (max-width: 548px) {
  :root {
    --global-spacing-100: 25px;
  }
}
/* -- VARIABLES END -- */

/* -- FONTS -- */
.no-hyphen {
  hyphens: none;
}

/* One family site-wide - DM Sans - so headings simply inherit it. The
   weight utilities below set weight only, never family. */
body {
  font-family: var(--font-family-base);
}

.font-light {
  font-weight: 300 !important;
}
.font-regular {
  font-weight: 400 !important;
}
.font-medium {
  font-weight: 500 !important;
}
.font-semibold {
  font-weight: 600 !important;
}
.font-bold {
  font-weight: 700 !important;
}

.font-size-xxl {
  font-size: var(--font-size-xxl);
}
.font-size-xl,
h2 {
  font-size: var(--font-size-xl);
  line-height: 0.9;
}
.font-size-large {
  font-size: var(--font-size-large);
}
h1 {
  font-size: var(--font-size-xxl);
  line-height: 0.9;
}
/* Nothing in the design is bold. Browsers default h1-h6 to bold, so the
   headings are reset here - this covers headings with no weight class of
   their own, including any coming out of a WYSIWYG field. The weight
   utilities still win if a heading is ever meant to differ. */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}
h3 {
  font-size: var(--font-size-small);
}
h4,
h5,
h6 {
  font-size: var(--font-size-body);
}
p,
.font-size-body {
  font-size: var(--font-size-body);
}
/* A size utility on a wrapper has to reach the <p> tags inside it -
   otherwise the rule above wins and editor content ignores the class.
   line-height needs !important because reset.css sets
   p { line-height: 1.3 !important }, which beats specificity alone. */
.font-size-xxl > p,
.font-size-xl > p,
.font-size-large > p,
.font-size-medium > p,
.font-size-small > p,
.font-size-body > p,
.font-size-xsmall > p {
  font-size: inherit;
  line-height: inherit !important;
}
/* ...and what they inherit. reset.css sets every div to line-height 1,
   so without this a sized WYSIWYG block is set solid - lines touching.
   A wrapper that wants tighter or looser sets its own line-height. */
.wysiwyg {
  line-height: 1.3;
}
/* Large statement text (Call to Action, etc.) is set solid - 1.3 suits
   body copy but opens big type right up. */
.wysiwyg.font-size-large,
.wysiwyg.font-size-xl,
.wysiwyg.font-size-xxl {
  line-height: 1;
}
/* A gap between paragraphs. On the top margin: the reset forces
   p { margin-bottom: 0 !important }, so a bottom margin never shows. */
.wysiwyg p + p {
  margin-top: 1em;
}
.font-size-medium {
  font-size: var(--font-size-medium);
}
.font-size-small {
  font-size: var(--font-size-small);
}
.font-size-xsmall {
  font-size: var(--font-size-xsmall);
}
/* Editor text sizes - the Small / Regular / Large options in the WYSIWYG
   "Formats" menu (functions/wysiwyg_formats.php). Spans, so they apply
   to a highlighted run of text, and inherit the paragraph's line-height. */
.text-size-small {
  font-size: var(--font-size-xsmall);
}
.text-size-regular {
  font-size: var(--font-size-body);
}
/* --font-size-small (the h3 step, 24-30px) - the size of the large copy
   in the designs (Home's intro). --font-size-medium (34px+) was a size
   too big. */
.text-size-large {
  font-size: var(--font-size-small);
}
/* A paragraph set entirely in one size takes that size itself, so its
   line spacing follows the text - otherwise a Large run inside a bigger
   paragraph (the CTA's copy) keeps the paragraph's taller lines. */
.wysiwyg p:has(> .text-size-small:only-child) {
  font-size: var(--font-size-xsmall);
}
.wysiwyg p:has(> .text-size-regular:only-child) {
  font-size: var(--font-size-body);
}
.wysiwyg p:has(> .text-size-large:only-child) {
  font-size: var(--font-size-small);
}
.font-size-menu-small {
  font-size: var(--font-size-menu-small) !important;
}

/* -- FONTS END -- */

/* -- LINKS -- */
/* Links take the colour of whatever section they sit in rather than the
   browser/Bootstrap blue. Underlined by
   default, underline removed on hover.
   Bootstrap loads after reset.css and re-colours links, so the colour rule
   lives here (this sheet loads after Bootstrap). reset.css sets
   text-decoration: none !important, so the underline needs !important. */
a {
  color: inherit;
  text-decoration: underline !important;
}
a:hover,
a:focus {
  text-decoration: none !important;
}
/* -- LINKS END -- */

/* -- HEADER -- */
/* Fixed, over the page, with no background of its own - the status line,
   logo and Menu button float over whatever is beneath. Pages without a
   hero still start below it (.main-offset). */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--header-text, var(--sand));
  transition: color 0.3s ease;
  /* The bar is see-through and spans the page: let clicks fall through
     it to whatever is underneath (map panels, cards), except on its own
     links and buttons. */
  pointer-events: none;
}
.site-header a,
.site-header button {
  pointer-events: auto;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--global-spacing-25);
  /* border-box: the padding (padding-25) counts toward min-height, so add
     it - otherwise the bar is shorter than the logo it has to hold. */
  min-height: calc(var(--header-logo-height) + 2 * var(--global-spacing-25));
}
.site-header-logo {
  display: block;
  color: inherit;
}
.site-header-logo .rola-logo {
  display: block;
  width: auto;
  height: var(--header-logo-height);
}
/* A logo-hero page (Home): the hero's ROLA logo shrinks into this spot
   (js/script.js, HERO LOGO), so the header's own is not shown - except
   under reduced motion, where the hero logo stays in the hero. */
@media (prefers-reduced-motion: no-preference) {
  .site-header.has-logo-hero .site-header-logo {
    visibility: hidden;
  }
}
/* Season / time / temperature: bottom left, as far from the bottom as
   the logo is from the top. Repeated in the open menu (.site-menu-status)
   in the menu's colour. */
.site-header-status {
  position: fixed;
  left: var(--global-spacing-25);
  bottom: var(--global-spacing-25);
  z-index: 2;
  margin: 0;
  font-family: var(--font-family-mono);
  font-size: var(--font-size-mono);
  line-height: 1.2 !important;
  white-space: nowrap;
  pointer-events: none;
}
.site-header-status span:empty {
  display: none;
}
.site-header-status span + span {
  margin-left: 0.5em;
}
/* The Menu button, in the header and (as the close) in the menu itself. */
.site-menu-toggle {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  font-weight: 600;
  cursor: pointer;
}
.site-menu-toggle:hover,
.site-menu-toggle:focus-visible {
  opacity: 0.7;
}
.site-header a {
  text-decoration: none !important;
}

/* -- MENU (full screen) -- */
/* Above everything, the WordPress admin bar included (z-index 99999) -
   otherwise, logged in, the bar covers the logo and the close button.
   The menu itself is see-through: its panel (colour, background image,
   links) slides up from the bottom, while the logo and close button sit
   still on top, exactly where the header's are - the same sizes and
   spacing, worked out the same way (the docked Home logo lands on the
   same spot too). --menu-top follows the header down below the admin
   bar when logged in. */
.site-menu {
  --menu-top: 0px;
  --menu-logo-top: calc(var(--menu-top) + var(--global-spacing-25));
  --menu-logo-left: var(--global-spacing-25);
  --menu-logo-height: var(--header-logo-height);
  --menu-ease: cubic-bezier(0.7, 0, 0.2, 1);
  --menu-time: 0.6s;
  position: fixed;
  inset: 0;
  z-index: 100000;
  color: var(--mint);
}
.site-menu[hidden] {
  display: none;
}
.site-menu-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background-color: var(--forest-green);
  transform: translateY(100%);
  transition: transform var(--menu-time) var(--menu-ease);
}
.site-menu.is-open .site-menu-panel {
  transform: none;
}
/* Fade in over the slide - on top of the header's own, so where those
   show nothing appears to change. */
.site-menu-logo,
.site-menu-close,
.site-menu-status {
  position: fixed;
  z-index: 2;
  opacity: 0;
  transition: opacity calc(var(--menu-time) / 2) ease;
}
.site-menu.is-open .site-menu-logo,
.site-menu.is-open .site-menu-close,
.site-menu.is-open .site-menu-status {
  opacity: 1;
}
.site-menu-media {
  position: absolute;
  inset: 0;
}
.site-menu-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-menu-frame {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.site-menu-row {
  flex: 1 1 auto;
}
.site-menu a {
  color: inherit;
  text-decoration: none !important;
}
.site-menu-logo {
  top: var(--menu-logo-top);
  left: var(--menu-logo-left);
}
.site-menu-logo img,
.site-menu-logo .rola-logo {
  display: block;
  width: auto;
  height: var(--menu-logo-height);
}
/* Phones: one column - room for the logo, then the links, which take
   the rest of the height (so the extra links still pin to the bottom). */
@media (max-width: 991.98px) {
  .site-menu-row {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .site-menu-brand-space {
    flex: none;
    height: calc(var(--menu-logo-top) + var(--menu-logo-height) + var(--global-spacing-25));
  }
  .site-menu-main {
    flex: 1 1 auto;
  }
}
/* The right half: a rule down its left edge, links at the top, the
   extra links pinned to the bottom. */
.site-menu-main {
  display: flex;
  flex-direction: column;
}
.site-menu-nav-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
@media (min-width: 992px) {
  .site-menu-nav-wrap {
    margin-block: var(--global-spacing-25);
    border-left: 1px solid currentColor;
  }
  /* No bottom padding (beats the padding-25 utility), so the bottom
     links sit on the same line as the season / time / temperature,
     which is var(--global-spacing-25) off the bottom too. */
  .site-menu .site-menu-nav-wrap {
    padding-bottom: 0;
  }
}
/* Phones: the links span the width, so they sit on their own line just
   above the season / time / temperature instead of on top of it. */
@media (max-width: 991.98px) {
  .site-menu .site-menu-nav-wrap {
    padding-bottom: calc(var(--global-spacing-25) * 1.6 + var(--font-size-xsmall) * 1.2);
  }
}
.site-menu-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(3rem, 8vw, 8.5rem);
  font-weight: 600;
  line-height: 0.95;
}
/* Hover / focus: a link slides a little to the right (no fade). In em,
   so the big links move further than the small ones below. */
.site-menu-nav a,
.site-menu-links a {
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .site-menu-nav a,
  .site-menu-links a {
    transition: transform 0.3s ease;
  }
}
.site-menu-nav a:hover,
.site-menu-nav a:focus-visible {
  transform: translateX(0.12em);
}
.site-menu-links a:hover,
.site-menu-links a:focus-visible {
  transform: translateX(0.25em);
}
/* Reduced motion: no slide, an underline instead. */
@media (prefers-reduced-motion: reduce) {
  .site-menu-nav a:hover,
  .site-menu-nav a:focus-visible,
  .site-menu-links a:hover,
  .site-menu-links a:focus-visible {
    transform: none;
    text-decoration: underline !important;
  }
}
/* .site-menu prefix: reset.css's ul:not(.nav-menu ul, ...) outranks a
   single class (a :not() takes its most specific argument's weight) and
   would zero the margin that pins these to the bottom. */
.site-menu .site-menu-links {
  display: flex;
  flex-wrap: wrap;
  margin: auto 0 0;
  padding: var(--global-spacing-50) 0 0;
  list-style: none;
  font-size: var(--font-size-body);
  font-weight: 300;
}
/* "Instagram | LinkedIn | Careers" - the bars are drawn, not typed, so
   they stay out of the link text. */
.site-menu-empty {
  max-width: 28em;
  font-size: var(--font-size-body);
}
.site-menu-links li + li::before {
  content: "|";
  padding: 0 0.4em;
}
/* The header's Menu button: right inset, centred on the logo line. */
.site-menu-close {
  top: calc(var(--menu-logo-top) + var(--menu-logo-height) / 2);
  right: var(--global-spacing-25);
  transform: translateY(-50%);
}
@media (min-width: 783px) {
  body.admin-bar .site-menu {
    --menu-top: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu-panel,
  .site-menu-logo,
  .site-menu-close,
  .site-menu-status {
    transition: none;
  }
}
/* No page scroll behind the open menu. */
body.menu-open {
  overflow: hidden;
}
/* -- MENU END -- */

/* Pages that do not open with a hero banner start below the header
   rather than underneath it (see functions/header_offset.php). */
.main-offset {
  padding-top: var(--header-height);
}
/* Development only. With the admin toolbar showing, WordPress puts a
   32px fixed bar at the top of the viewport, which our own fixed header
   would sit underneath. WordPress marks the page with .admin-bar, so
   drop the header (and the offset that follows it) clear of the bar.
   Below 782px the toolbar is absolute rather than fixed - it scrolls
   away with the page - so it is left alone there. */
body.admin-bar .site-header {
  top: 32px;
}
body.admin-bar .main-offset {
  padding-top: calc(var(--header-height) + 32px);
}
@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 0;
  }
  body.admin-bar .main-offset {
    padding-top: var(--header-height);
  }
}
/* -- HEADER END -- */

/* -- FOOTER -- */
/* Call to action left, contact right, the ROLA logo full width across the
   bottom, a sketch behind it all. Everything is set in Site Options >
   Footer; colours there are applied inline, these are the fallbacks. */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--earth-brown);
  color: var(--sand);
  --section-bg: var(--earth-brown);
  --section-text: var(--sand);
}
.site-footer-media {
  position: absolute;
  inset: 0;
}
/* A light veil of the footer's own background over the sketch, so the
   contact text and call to action read clearly; the sketch still shows
   through as texture. Follows each page's footer colour. */
.site-footer-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--section-bg, var(--earth-brown));
  opacity: 0.45;
}
/* Stretched to cover - it is a texture, so cropping is fine. Scaled up a
   touch so the margin the Sketch Filter trims off its edges (Trim) falls
   outside the footer rather than showing as a bare strip. 15% taller than
   the footer at each end so --parallax (js/script.js, FOOTER SKETCH
   PARALLAX, clamped to that 15%) never drifts an edge into view. */
.site-footer-sketch {
  position: absolute;
  top: -15%;
  left: 0;
  display: block;
  width: 100%;
  height: 130%;
  object-fit: cover;
  transform: translate3d(0, var(--parallax, 0px), 0) scale(1.08);
  will-change: transform;
}
/* Email addresses and phone numbers stay on one line - the shared
   word-break rule would split "simonronan.com" mid-word in a narrow
   contact column. */
.site-footer a[href^="mailto:"],
.site-footer a[href^="tel:"] {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
.site-footer-row {
  position: relative;
  z-index: 1;
}
.site-footer-cta-text {
  max-width: 34em;
  font-size: var(--font-size-small);
  font-weight: 600;
  line-height: 1.25 !important;
}
.site-footer-cta-text p {
  font-size: inherit;
  line-height: inherit !important;
}
/* The footer's button is in the mono face. */
.site-footer .site-footer-button {
  margin-top: var(--global-spacing-50);
  font-family: var(--font-family-mono);
}
/* Contact starts at the centre line (it used to sit a column further in;
   moved back so the three office columns have room - an email address
   stays on one line). */

/* The call to action's first line and CONTACT line up on the tops of
   their capitals: the space a font keeps above its caps (bigger in the
   bigger text) is trimmed off both. Browsers without text-box just keep
   it - a few pixels out. */
.site-footer-cta-text,
.site-footer-heading {
  text-box: trim-start cap alphabetic;
}
.site-footer-heading {
  margin-bottom: var(--global-spacing-12);
  font-family: var(--font-family-base);
  font-size: calc(var(--font-size-xsmall) * 0.8);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.site-footer-contacts {
  display: grid;
  gap: var(--global-spacing-25);
}
@media (min-width: 576px) {
  .site-footer-contacts {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }
}
.site-footer-contact-item,
.site-footer-contact-item p,
.site-footer-social {
  font-size: var(--font-size-xsmall);
  font-weight: 300;
  line-height: 1.3 !important;
}
.site-footer-contact-item a,
.site-footer-social a {
  text-decoration: none !important;
}
.site-footer-contact-item a:hover,
.site-footer-social a:hover {
  text-decoration: underline !important;
}
/* "Instagram | LinkedIn" - the bars drawn, not typed. */
.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: var(--global-spacing-50) 0 0;
  list-style: none;
}
.site-footer .site-footer-social {
  margin: 0;
}
.site-footer-social li + li::before {
  content: "|";
  padding: 0 0.35em;
}
.site-footer-bottom {
  padding-top: var(--global-spacing-100);
}
/* The logo spans the content width, in its own colour. */
.site-footer .site-footer-logo {
  display: block;
  color: var(--footer-logo, var(--tan));
  text-decoration: none !important;
}
.site-footer-logo .rola-logo {
  display: block;
  width: 100%;
  height: auto;
}
.site-footer-meta {
  display: flex;
  justify-content: flex-end;
  gap: var(--global-spacing-50);
  padding-top: var(--global-spacing-12);
  font-size: var(--font-size-xsmall);
  font-weight: 300;
}
/* -- FOOTER END -- */

/* -- SECTION HEIGHT -- */
/* Every component is a direct child of <main>. Short sections (a two-line
   Text block, say) otherwise collapse to almost nothing, so they get a
   floor, with content sitting at the top of it. Taller components (Project
   Feed, Team Dropdown) simply exceed the floor and are unaffected. */
main > article {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
/* Opt out per section - set by the Minimum Height field on the Text
   component. Needs the element in the selector to outweigh the rule
   above, which is main > article. */
main > article.no-min-height {
  min-height: 0;
}
/* -- SECTION HEIGHT END -- */

/* -- BASE COLOUR -- */
/* --light is the site default. --dark only appears where a component has had
   it set as its background - those components also set their own text
   colour inline (see functions/text_colour.php), overriding this. */
body {
  background-color: var(--light);
  color: var(--dark);
}
/* -- BASE COLOUR END -- */

/* -- SPACING -- */
.padding-3 {
  padding: var(--global-spacing-3);
}
.padding-6 {
  padding: var(--global-spacing-6);
}
.padding-12 {
  padding: var(--global-spacing-12);
}
.padding-25 {
  padding: var(--global-spacing-25);
}
.padding-50 {
  padding: var(--global-spacing-50);
}
.padding-75 {
  padding: var(--global-spacing-75);
}
.padding-100 {
  padding: var(--global-spacing-100);
}

.padding-left-3 {
  padding-left: var(--global-spacing-3);
}
.padding-left-6 {
  padding-left: var(--global-spacing-6);
}
.padding-left-12 {
  padding-left: var(--global-spacing-12);
}
.padding-left-25 {
  padding-left: var(--global-spacing-25);
}
.padding-left-50 {
  padding-left: var(--global-spacing-50);
}
.padding-left-75 {
  padding-left: var(--global-spacing-75);
}
.padding-left-100 {
  padding-left: var(--global-spacing-100);
}

.padding-right-3 {
  padding-right: var(--global-spacing-3);
}
.padding-right-6 {
  padding-right: var(--global-spacing-6);
}
.padding-right-12 {
  padding-right: var(--global-spacing-12);
}
.padding-right-25 {
  padding-right: var(--global-spacing-25);
}
.padding-right-50 {
  padding-right: var(--global-spacing-50);
}
.padding-right-75 {
  padding-right: var(--global-spacing-75);
}
.padding-right-100 {
  padding-right: var(--global-spacing-100);
}

.padding-top-3 {
  padding-top: var(--global-spacing-3);
}
.padding-top-6 {
  padding-top: var(--global-spacing-6);
}
.padding-top-12 {
  padding-top: var(--global-spacing-12);
}
.padding-top-25 {
  padding-top: var(--global-spacing-25);
}
.padding-top-50 {
  padding-top: var(--global-spacing-50);
}
.padding-top-75 {
  padding-top: var(--global-spacing-75);
}
.padding-top-100 {
  padding-top: var(--global-spacing-100);
}
.padding-top-150 {
  padding-top: var(--global-spacing-150);
}
.padding-top-200 {
  padding-top: var(--global-spacing-200);
}

.padding-bottom-3 {
  padding-bottom: var(--global-spacing-3);
}
.padding-bottom-6 {
  padding-bottom: var(--global-spacing-6);
}
.padding-bottom-12 {
  padding-bottom: var(--global-spacing-12);
}
.padding-bottom-25 {
  padding-bottom: var(--global-spacing-25);
}
.padding-bottom-50 {
  padding-bottom: var(--global-spacing-50);
}
.padding-bottom-75 {
  padding-bottom: var(--global-spacing-75);
}
.padding-bottom-100 {
  padding-bottom: var(--global-spacing-100);
}
.padding-bottom-150 {
  padding-bottom: var(--global-spacing-150);
}

.padding-block-3 {
  padding-block: var(--global-spacing-3);
}
.padding-block-6 {
  padding-block: var(--global-spacing-6);
}
.padding-block-12 {
  padding-block: var(--global-spacing-12);
}
.padding-block-25 {
  padding-block: var(--global-spacing-25);
}
.padding-block-50 {
  padding-block: var(--global-spacing-50);
}
.padding-block-75 {
  padding-block: var(--global-spacing-75);
}
.padding-block-100 {
  padding-block: var(--global-spacing-100);
}
.padding-block-150 {
  padding-block: var(--global-spacing-150);
}

.padding-inline-3 {
  padding-inline: var(--global-spacing-3);
}
.padding-inline-6 {
  padding-inline: var(--global-spacing-6);
}
.padding-inline-12 {
  padding-inline: var(--global-spacing-12);
}
.padding-inline-25 {
  padding-inline: var(--global-spacing-25);
}
.padding-inline-50 {
  padding-inline: var(--global-spacing-50);
}
.padding-inline-75 {
  padding-inline: var(--global-spacing-75);
}
.padding-inline-100 {
  padding-inline: var(--global-spacing-100);
}
.padding-inline-150 {
  padding-inline: var(--global-spacing-150);
}

.margin-3 {
  margin: var(--global-spacing-3);
}
.margin-6 {
  margin: var(--global-spacing-6);
}
.margin-12 {
  margin: var(--global-spacing-12);
}
.margin-25 {
  margin: var(--global-spacing-25);
}
.margin-50 {
  margin: var(--global-spacing-50);
}
.margin-75 {
  margin: var(--global-spacing-75);
}
.margin-100 {
  margin: var(--global-spacing-100);
}
.margin-150 {
  margin: var(--global-spacing-150);
}
.margin-200 {
  margin: var(--global-spacing-200);
}

.margin-left-3 {
  margin-left: var(--global-spacing-3);
}
.margin-left-6 {
  margin-left: var(--global-spacing-6);
}
.margin-left-12 {
  margin-left: var(--global-spacing-12);
}
.margin-left-25 {
  margin-left: var(--global-spacing-25);
}
.margin-left-50 {
  margin-left: var(--global-spacing-50);
}
.margin-left-75 {
  margin-left: var(--global-spacing-75);
}
.margin-left-100 {
  margin-left: var(--global-spacing-100);
}
.margin-left-150 {
  margin-left: var(--global-spacing-150);
}
.margin-left-200 {
  margin-left: var(--global-spacing-200);
}

.margin-right-3 {
  margin-right: var(--global-spacing-3);
}
.margin-right-6 {
  margin-right: var(--global-spacing-6);
}
.margin-right-12 {
  margin-right: var(--global-spacing-12);
}
.margin-right-25 {
  margin-right: var(--global-spacing-25);
}
.margin-right-50 {
  margin-right: var(--global-spacing-50);
}
.margin-right-75 {
  margin-right: var(--global-spacing-75);
}
.margin-right-100 {
  margin-right: var(--global-spacing-100);
}
.margin-right-150 {
  margin-right: var(--global-spacing-150);
}
.margin-right-200 {
  margin-right: var(--global-spacing-200);
}

.margin-top-3 {
  margin-top: var(--global-spacing-3);
}
.margin-top-6 {
  margin-top: var(--global-spacing-6);
}
.margin-top-12 {
  margin-top: var(--global-spacing-12);
}
.margin-top-25 {
  margin-top: var(--global-spacing-25);
}
.margin-top-50 {
  margin-top: var(--global-spacing-50);
}
.margin-top-75 {
  margin-top: var(--global-spacing-75);
}
.margin-top-100 {
  margin-top: var(--global-spacing-100);
}
.margin-top-150 {
  margin-top: var(--global-spacing-150);
}
.margin-top-200 {
  margin-top: var(--global-spacing-200);
}

.margin-bottom-3 {
  margin-bottom: var(--global-spacing-3);
}
.margin-bottom-6 {
  margin-bottom: var(--global-spacing-6);
}
.margin-bottom-12 {
  margin-bottom: var(--global-spacing-12);
}
.margin-bottom-25 {
  margin-bottom: var(--global-spacing-25);
}
.margin-bottom-50 {
  margin-bottom: var(--global-spacing-50);
}
.margin-bottom-75 {
  margin-bottom: var(--global-spacing-75);
}
.margin-bottom-100 {
  margin-bottom: var(--global-spacing-100);
}
.margin-bottom-150 {
  margin-bottom: var(--global-spacing-150);
}
.margin-bottom-200 {
  margin-bottom: var(--global-spacing-200);
}
@media (max-width: 767px) {
  .margin-bottom-200 {
    margin-bottom: 25px !important;
  }
}

.margin-block-3 {
  margin-block: var(--global-spacing-3);
}
.margin-block-6 {
  margin-block: var(--global-spacing-6);
}
.margin-block-12 {
  margin-block: var(--global-spacing-12);
}
.margin-block-25 {
  margin-block: var(--global-spacing-25);
}
.margin-block-50 {
  margin-block: var(--global-spacing-50);
}
.margin-block-75 {
  margin-block: var(--global-spacing-75);
}
.margin-block-100 {
  margin-block: var(--global-spacing-100);
}
.margin-block-150 {
  margin-block: var(--global-spacing-150);
}
.margin-block-200 {
  margin-block: var(--global-spacing-200);
}

.margin-inline-3 {
  margin-inline: var(--global-spacing-3);
}
.margin-inline-6 {
  margin-inline: var(--global-spacing-6);
}
.margin-inline-12 {
  margin-inline: var(--global-spacing-12);
}
.margin-inline-25 {
  margin-inline: var(--global-spacing-25);
}
.margin-inline-50 {
  margin-inline: var(--global-spacing-50);
}
.margin-inline-75 {
  margin-inline: var(--global-spacing-75);
}
.margin-inline-100 {
  margin-inline: var(--global-spacing-100);
}
.margin-inline-150 {
  margin-inline: var(--global-spacing-150);
}
.margin-inline-200 {
  margin-inline: var(--global-spacing-200);
}
/* -- SPACING END -- */

/* -- POSITION -- */
.position-fixed {
  position: fixed !important;
}
/* -- POSITION END -- */

/* -- SIZING -- */
.vh-100 {
  height: auto !important;
  min-height: 100vh !important;
}

.object-contain {
  object-fit: contain !important;
}

.object-cover {
  object-fit: cover !important;
}
/* -- SIZING END -- */

/* -- BORDER -- */
.border-radius-12 {
  border-radius: var(--global-spacing-12);
}
.border-radius-25 {
  border-radius: var(--global-spacing-25);
}
.border-radius-100 {
  border-radius: var(--global-spacing-100);
}
/* -- BORDER END -- */

/* -- GENERAL -- */
.hidden {
  opacity: 0;
}
.ml-auto {
  margin-left: auto !important;
}
.mr-auto {
  margin-right: auto !important;
}
/* -- GENERAL END -- */

/* -- LINKS AND BUTTONS -- */
/* The two link styles every component draws from. Both carry their own
   type styling, so a component never has to pair them with a size class. */

/* The small "Link ->" links are set in an accent that partners the body
   text (the design: Tan with Sand copy), turning to the text colour on
   hover - rather than a faded copy of the text. One token, so it can be
   changed in one place. */
:root {
  --link-accent: var(--tan);
}

/* Arrow link - "LABEL ->", no underline, the arrow nudging right on
   hover. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--font-size-xsmall);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none !important;
}
.arrow-link svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  transition: transform 0.2s ease;
}
.arrow-link:hover svg,
.arrow-link:focus svg {
  transform: translateX(3px);
}

/* Pill button - filled with the section's text colour, label in the
   section's background colour, so it sits correctly on any ground.
   --section-bg / --section-text come from the page (body) or from a
   component's own background colour; set them on a component wrapper and
   every pill inside it follows.
   The pair is held in --pill-bg / --pill-fg so hover can simply swap
   them, and so anything needing a different pair (a button over a dark
   image) only has to set those two. */
.pill-button {
  --pill-bg: var(--section-text, var(--dark));
  --pill-fg: var(--section-bg, var(--light));
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.4em;
  border: 0;
  /* Slightly rounded, not a full pill - as in every ROLA design. */
  border-radius: 6px;
  background-color: var(--pill-bg);
  color: var(--pill-fg);
  /* An inset outline rather than a border, so the button does not change
     size - it is what keeps the shape visible once inverted. */
  box-shadow: inset 0 0 0 1px var(--pill-bg);
  font-size: var(--font-size-xsmall);
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}
/* Inverts on hover: the fill drops away and the label takes the fill's
   colour, the outline holding the shape. */
.pill-button:hover,
.pill-button:focus-visible {
  background-color: var(--pill-fg);
  color: var(--pill-bg);
}
.pill-button svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}
/* Outline version - the same colours without the fill. */
.pill-button-outline {
  background-color: transparent;
  color: var(--pill-bg);
}
.pill-button-outline:hover,
.pill-button-outline:focus-visible {
  background-color: var(--pill-bg);
  color: var(--pill-fg);
}
/* -- LINKS AND BUTTONS END -- */

/* -- REVEALS -- */
/* Two scroll-in animations, driven by js/script.js:
     .shutter-reveal  on an <img> - it fades in once loaded
     .text-reveal     on a piece of text - it drops into place
   The hidden start state is scoped to .has-js (set in header.php before
   first paint), so with JS off or broken everything simply shows.

   Staggering: --reveal-i is an image's position in its grid, --card-i a
   card's position, --text-i a line's position inside its own block. The
   first two are set by script.js from [data-reveal-group]; --text-i is
   written in the component markup. */
@media (prefers-reduced-motion: no-preference) {
  /* Was a crop opening top-down; on review (18 Nov) it read as a slow,
     line-by-line image load rather than an effect, so images now simply
     fade in once loaded and decoded. The class name stays - the JS and
     rola_image() use it. */
  .has-js .shutter-reveal {
    opacity: 0;
    transition: opacity 0.6s ease;
    transition-delay: calc(var(--reveal-i, 0) * 0.08s);
  }
  .has-js .shutter-reveal.is-in {
    opacity: 1;
  }

  .has-js .text-reveal {
    opacity: 0;
    transform: translateY(-0.6em);
    transition: opacity 1.5s cubic-bezier(0.33, 0.1, 0.25, 1),
      transform 1.5s cubic-bezier(0.33, 0.1, 0.25, 1);
    /* Kept short - a long wait on the later cards reads as lag rather
       than as a stagger. */
    transition-delay: calc(var(--card-i, 0) * 0.1s + var(--text-i, 0) * 0.07s);
    will-change: opacity, transform;
  }
  .has-js .text-reveal.is-in {
    opacity: 1;
    transform: none;
  }

  /* The header drops in the same way on load - it is on screen from the
     start, so there is nothing to scroll into. Logo, Menu button, then
     the status line. */
  .has-js .site-header .site-header-logo,
  .has-js .site-header .site-header-status,
  .has-js .site-header .site-menu-toggle {
    opacity: 0;
    transform: translateY(-0.6em);
    transition: opacity 1.5s cubic-bezier(0.33, 0.1, 0.25, 1),
      transform 1.5s cubic-bezier(0.33, 0.1, 0.25, 1);
    transition-delay: calc(var(--text-i, 0) * 0.09s);
  }
  .has-js .site-header .site-menu-toggle { --text-i: 1; }
  .has-js .site-header .site-header-status { --text-i: 2; }
  .has-js .site-header.is-revealed .site-header-logo,
  .has-js .site-header.is-revealed .site-header-status,
  .has-js .site-header.is-revealed .site-menu-toggle {
    opacity: 1;
    transform: none;
  }
}
/* -- REVEALS END -- */

/* -- PROJECT META -- */
/* The text half of a project card (rola_project_meta() in
   component_helpers.php): "Name, Location", caption, pills. Shared by
   Featured Projects and Project Feed. */
.project-meta > * + * {
  margin-top: var(--global-spacing-6);
}
/* "Project Name, Location" - the small mono line in the designs. */
.project-meta-name {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-mono);
  opacity: 0.8;
}
.project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--global-spacing-6);
  margin: 0;
  padding: var(--global-spacing-6) 0 0;
  list-style: none;
}
/* Filled in the section's text colour, lettered in its background, so the
   pills invert with whatever colour the page is. */
.project-pills li {
  font-size: calc(var(--font-size-xsmall) * 0.8);
  line-height: 1.4;
}
/* A sector / region pill is a link to its landing page; climate is a
   plain label. Both look the same until hovered. */
.project-pills a,
.project-pills span {
  display: block;
  padding: 0.2em 0.8em;
  border-radius: 4px;
  background-color: var(--section-text, var(--dark));
  color: var(--section-bg, var(--light));
  text-decoration: none !important;
}
/* Hover inverts: the lettering takes the fill colour, the fill goes and
   an outline in that colour keeps the pill's shape. An inset shadow, not
   a border, so the pill doesn't change size. */
.project-pills a {
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.project-pills a:hover {
  background-color: transparent;
  color: var(--section-text, var(--dark));
  box-shadow: inset 0 0 0 1px var(--section-text, var(--dark));
}
.project-pills a:focus-visible {
  outline: 2px solid var(--section-text, var(--dark));
  outline-offset: 2px;
}

/* Project cards (rola_project_meta()): the caption is the link; a cover
   link over the whole card makes a click anywhere open the project. The
   pills sit above the cover, so they keep their own links. */
.project-card {
  position: relative;
}
.project-card-link {
  color: inherit;
  text-decoration: none !important;
}
.project-card-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.project-card-link:focus-visible {
  outline: none;
}
.project-card:has(.project-card-link:focus-visible) {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.project-card .project-pills {
  position: relative;
  z-index: 2;
}
/* -- PROJECT META END -- */

/* -- IMAGE CORNERS -- */
/* Every content image and every card's image gets the same small
   rounding, as in the designs. Full-bleed images (heroes, a project's
   hero, a call to action's background) and sketches stay square. On a
   wrapper the crop needs overflow:hidden; on a bare <img> the radius is
   enough. */
.project-feed-media,
.featured-projects-media,
.explore-more-media,
.featured-content-media,
.featured-sectors-card,
.team-feed-media,
.image-text-columns-media,
.steps-media,
.gallery-tile {
  overflow: hidden;
  border-radius: var(--radius-image);
}
.text-image-image,
.double-image-photo,
.image .image-image,
.project-facts-image,
.single-image img,
.video-poster-image,
.text-media:not(.text-media-blend) .text-media-image {
  border-radius: var(--radius-image);
}
/* -- IMAGE CORNERS END -- */

/* -- BACKGROUND SKETCHES -- */
/* functions/background_sketches.php. <main> is their positioning box but
   must NOT get a z-index: it would become a stacking context and trap the
   fixed hero logo (z-index 101) beneath the header. At z-index -1 the
   sketches paint over the page colour (body's background is the canvas)
   and under every section. */
main {
  position: relative;
}
.page-sketches {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
/* Centred on its anchor; --parallax (js/script.js) drifts it as the page
   scrolls. */
.page-sketch {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  transform: translate3d(0, calc(-50% + var(--parallax, 0px)), 0);
  will-change: transform;
  /* The drawings run to the edges of their files, so the lines would stop
     on a hard straight edge. Fade the top and bottom out so they dissolve
     into the page colour; the sides bleed off the screen. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
/* -- BACKGROUND SKETCHES END -- */
