/* ===========================================================
   Exemplar REITail — Landing page
   Pixel-perfect reproduction of the Figma design
   Canvas: 1920 x 6385  (node 1:2)
   =========================================================== */

:root {
  --bg: #010512;
  --gold: #cba54b;
  --cfg-gold: #d9a631;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll; /* always reserve the scrollbar so the scale calc is stable */
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  font-family: "Roboto", Arial, sans-serif;
}

img {
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---- Scaling wrapper: now just a responsive container ---- */
.ex-viewport {
  width: 100%;
  overflow-x: hidden;
}

.ex-stage {
  position: relative;
  width: 100%;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ============================ Section Wrappers ============================ */
.ex-section-hero,
.ex-section-building,
.ex-section-map,
.ex-section-white {
  position: relative;
  width: 100%;
}

.ex-section-white {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================ Shared ============================ */
.ex-arrow {
  width: 37px;
  height: 10px;
  flex: none;
  overflow: visible;
}

.ex-arrow--flip {
  transform: rotate(180deg);
}

.ex-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

/* The site header/nav now comes from the shared _ExemplarNav partial
   (styles in exemplar-shared.css), so the old .ex-header/.ex-nav rules
   were removed. */

/* ============================ Hero ============================ */
.ex-hero {
  position: relative;
  width: 100%;
  height: 1362px;
  overflow: hidden;
  z-index: 4;
}

.ex-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 1.2s ease,
    transform 8s ease;
  will-change: opacity, transform;
}

.ex-hero__img.is-active {
  opacity: 0.8;
  transform: scale(1);
}

.ex-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      -67.6837730865658deg,
      rgba(1, 5, 18, 0) 19.143%,
      rgb(1, 5, 18) 87.181%
    ),
    linear-gradient(180deg, rgba(1, 5, 18, 0) 59.398%, rgb(1, 5, 18) 100%);
}

.ex-hero__inner {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  max-width: 1600px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: min(40vh, 460px) 0 0 0;
}

/* Desktop: the hero used to be a fixed 1362px box with its content hung from
   40vh, so whatever the content didn't fill (~500px at 1920x1080, more on a
   shorter laptop screen, where the content rides higher) sat empty above the
   building section's own padding — the big gap before "Empowering Growth".
   The content now sits in normal flow and the hero ends a set distance below
   the ticker. That distance scales with width (240px at 1920 down to 160px at
   1280) and includes the ticker's 60px relative drop (.ex-hero-ticker), so the
   visible gap under the ticker is 60px less. min-height keeps the hero filling
   the first screen on very tall displays. Below 1024px the hero keeps its own
   viewport-based sizing (see the max-width media queries further down). */
@media (min-width: 1024px) {
  .ex-hero {
    height: auto;
    min-height: 100vh;
  }

  .ex-hero__inner {
    position: relative;
    inset: auto;
    padding-bottom: clamp(160px, 12.5vw, 240px);
  }
}

.ex-hero__titles {
  display: grid;
  width: 100%;
  max-width: 953px;
}

.ex-hero__title {
  grid-area: 1 / 1;
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 200;
  font-size: 70px;
  line-height: normal;
  color: #fff;
  opacity: 0;
  transform: translateY(26px);
  /* outgoing title: quick fade, then reset position while invisible */
  transition:
    opacity 0.5s ease,
    transform 0s 0.5s;
}

.ex-hero__title.is-active {
  opacity: 1;
  transform: none;
  /* incoming title: rises in after the outgoing one has started fading */
  transition:
    opacity 0.9s ease 0.35s,
    transform 0.9s ease 0.35s;
}

.ex-hero__title b {
  font-weight: 600;
  color: var(--gold);
}

/* Static lead copy under the slider titles (which crossfade above it).
   Design: 24px Roboto over 12px/18px Roboto, both white, the pair sitting
   50px below the title block and 44px above the hero stats. The strapline
   runs to one line at its design width (~733px); the max-width only stops
   it running the full 1600px band if the fallback face is set wider. */
.ex-hero__lead {
  max-width: 880px;
  margin-top: 50px;
  opacity: 0;
  /* fades up just ahead of the stats, which start at 0.4s */
  animation: exFadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.25s forwards;
}

.ex-hero__lead-title {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: normal;
  color: #fff;
}

.ex-hero__lead-copy {
  margin: 8px 0 0;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #fff;
}

/* slider navigation lines (right of hero) */
.ex-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  position: absolute;
  top: 50vh;
  right: 30px;
  z-index: 1;
  /* transform: translateY(-50%); */
}

.ex-scroll button {
  position: relative;
  display: block;
  width: 15px; /* wider hit area; the visible line is the ::before */
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  animation: exFadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.ex-scroll button::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: #d9d9d9;
  transition:
    width 0.45s ease,
    background-color 0.45s ease;
}

.ex-scroll button.is-active::before {
  width: 3px;
  background: var(--gold);
}

.ex-scroll button:nth-child(1) {
  height: 72px;
  animation-delay: 0.6s;
}
.ex-scroll button:nth-child(2) {
  height: 72px;
  animation-delay: 0.7s;
}
.ex-scroll button:nth-child(3) {
  height: 71px;
  animation-delay: 0.8s;
}

@media (prefers-reduced-motion: reduce) {
  .ex-hero__img,
  .ex-hero__title {
    transition: opacity 0.25s ease;
    transform: none;
  }
}

/* ============================ Stats blocks ============================ */
.ex-stats {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: 100%;
  max-width: 782px;
  flex-wrap: wrap;
}

.ex-stats--hero {
  margin-top: 44px;
  z-index: 10;
}

@keyframes exFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ex-stats--hero > * {
  opacity: 0;
  animation: exFadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.ex-stats--hero > *:nth-child(1) {
  animation-delay: 0.4s;
}
.ex-stats--hero > *:nth-child(2) {
  animation-delay: 0.5s;
}
.ex-stats--hero > *:nth-child(3) {
  animation-delay: 0.6s;
}
.ex-stats--hero > *:nth-child(4) {
  animation-delay: 0.7s;
}
.ex-stats--hero > *:nth-child(5) {
  animation-delay: 0.8s;
}
.ex-stats--hero > *:nth-child(6) {
  animation-delay: 0.9s;
}
.ex-stats--hero > *:nth-child(7) {
  animation-delay: 1s;
}

/* min-width stays auto (content-based), so a column whose figure + unit runs
   wider than an equal share ("+-770,000 sqm" ≈ 168px against ~166px) widens
   just enough and the others give way, instead of the unit dropping to a
   second line. Labels still wrap, so only a long value can widen a column. */
.ex-stat {
  flex: 1 1 0;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.ex-stat__label {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
  color: #fff;
}

/* nowrap: a figure and its unit always share one line ("+-770,000 sqm",
   "6 Provinces (SA)") */
.ex-stat__value {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 400;
  color: #fff;
  line-height: normal;
  white-space: nowrap;
}

.ex-stat__value .v-lg {
  font-size: 34px;
}
.ex-stat__value .v-md {
  font-size: 17px;
}
.ex-stat__value .v-r {
  font-size: 21.285px;
}
.ex-stat__value .v-sup {
  font-size: 11px;
}

.ex-stat-div {
  flex: none;
  width: 3px;
  height: 93px;
  align-self: flex-start;
}

/* ============================ Ticker ============================ */
.ex-ticker {
  position: absolute;
  bottom: 20px;
  top: auto;
  transform: none;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: normal;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 10;
}

.ex-hero-ticker {
  position: relative;
  bottom: -60px;
}

.ex-ticker .gold {
  color: var(--gold);
}

.ex-spaces .ex-stat__label {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.5s ease-in,
    transform 0.5s ease-in;
  pointer-events: none;
}
.ex-spaces .ex-stat:hover .ex-stat__label {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s cubic-bezier(0.1, 1, 0.2, 1),
    transform 0.8s cubic-bezier(0.1, 1, 0.2, 1);
}

.ex-spaces .ex-stat__value {
  color: #fff;
  opacity: 0;
  filter: blur(0);
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.4s ease;
}
.ex-spaces .ex-stats:has(.ex-stat:hover) .ex-stat:not(:hover) .ex-stat__value {
  opacity: 0.1;
  filter: blur(2px);
}

.ex-spaces .ex-stat-div {
  clip-path: inset(90px 0 0 0);
  transition: clip-path 0.4s cubic-bezier(0.8, 0, 0.9, 0.1);
}
.ex-spaces .ex-stat-div:has(+ .ex-stat:hover) {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.8s cubic-bezier(0.1, 1, 0.2, 1);
}

.ex-spaces .ex-stats.is-visible .ex-stat__value {
  opacity: 1;
  transform: translateY(0);
}
.ex-spaces .ex-stats.is-visible .ex-stat:nth-child(1) .ex-stat__value {
  transition-delay: 0.1s;
}
.ex-spaces .ex-stats.is-visible .ex-stat:nth-child(3) .ex-stat__value {
  transition-delay: 0.3s;
}
.ex-spaces .ex-stats.is-visible .ex-stat:nth-child(5) .ex-stat__value {
  transition-delay: 0.5s;
}
.ex-spaces .ex-stats.is-visible .ex-stat:nth-child(7) .ex-stat__value {
  transition-delay: 0.7s;
}
/* ============================ Background layers ============================ */
.ex-building {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  z-index: 1;
}

.ex-building img {
  position: absolute;
  left: 0.02%;
  top: 18.45%;
  width: 100%;
  height: 88.8%;
  object-fit: cover;
}

.ex-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.ex-map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ex-map__grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #000 0%, transparent 60%),
    linear-gradient(90deg, #000 0%, transparent 45%);
}

.ex-symbol {
  position: absolute;
  right: 0;
  top: 289px;
  width: 118px;
  height: 1222px;
  object-fit: cover;
  z-index: 2;
  /* decorative, and it overhangs the top of the map section — it must not
     intercept drags meant for the map underneath */
  pointer-events: none;
}

/* .ex-whiteblock removed, applied to .ex-section-white directly */

input[name="search"] {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  font-family: "Roboto Condensed", sans-serif;
  background: transparent;
  border: none;
}

input[name="search"]::placeholder {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  font-family: "Roboto Condensed", sans-serif;
}

input[name="search"]:focus-visible {
  outline: none;
}

/* ============================ Empowering heading ============================ */
/* The vertical rhythm here (and the heading-to-intro gap below) scales with
   the viewport width off the 1920px design, so laptop-size screens (e.g. a
   MacBook at 1280-1512px) aren't left with the full desktop spacing; it
   reaches the design values (184 / 250 / 100px) at 1920px and holds there. */
.ex-section-building {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(120px, 9.583vw, 184px);
  padding-bottom: clamp(160px, 13.021vw, 250px);
}

.ex-empower {
  position: relative;
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.ex-empower p {
  margin: 0;
  width: 100%;
  max-width: 752px;
  text-align: center;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 200;
  font-size: 60px;
  line-height: normal;
  color: #fff;
}

.ex-empower b {
  font-weight: 600;
}

/* ============================ Intro row ============================ */
.ex-intro {
  position: relative;
  margin-top: clamp(64px, 5.208vw, 100px);
  width: 90%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 90px;
  z-index: 10;
  flex-wrap: wrap;
}

.ex-intro__icons {
  width: 100%;
  max-width: 522px;
  height: auto;
  object-fit: contain;
  flex: 0 1 auto;
}

.ex-intro__col {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  max-width: 572px;
}

.ex-intro__text {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 26px;
  color: #fff;
}

.ex-intro__text p {
  margin: 0;
}
.ex-intro__text p.spacer {
  height: 26px;
}

.ex-btn--about {
  /* the intro column stretches its children, so keep this one content-width */
  align-self: flex-start;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.ex-btn--about:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ============================ Spaces of Impact ============================ */
.ex-section-map {
  display: flex;
  flex-direction: column;
  padding-top: 398px;
  padding-bottom: 0px;
}

.ex-spaces {
  position: relative;
  margin: 0 auto;
  width: 90%;
  max-width: 1600px;
  display: flex;
  flex-direction: column;
  gap: 96px;
  z-index: 10;
}

.ex-spaces__title {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 200;
  font-size: 60px;
  line-height: normal;
  color: #fff;
  white-space: nowrap;
}

.ex-spaces__title b {
  font-weight: 600;
}

/* From 1024px up the map is this section's full-bleed backdrop and it is
   draggable, so the copy stacked over it may only claim the pixels it actually
   draws — otherwise the wrappers' boxes (90% of the section, 96px gaps and all)
   would swallow every drag. pointer-events inherits, hence the explicit
   opt-ins. Below 1024px the map gets its own block with nothing over it. */
@media (min-width: 1024px) {
  .ex-spaces,
  .ex-spaces__body {
    pointer-events: none;
  }

  /* .ex-spaces__copy is deliberately absent: it is a wide block of body text
     with nothing to click, so it keeps the inherited pointer-events: none and
     lets drags through to the map beneath it. */
  .ex-spaces__title,
  .ex-search,
  .ex-btn--portfolio {
    pointer-events: auto;
  }

  .ex-spaces__title {
    width: max-content;
  }

  /* the map wrapper is the whole section here, so its bottom-right corner is
     down among the logo strip — sit the zoom control beside the copy instead,
     in the stretch the gradient washes leave clear */
  .ex-map .ex-mapzoom {
    top: 50%;
    bottom: auto;
    right: 48px;
    transform: translateY(-50%);
  }
}

.ex-spaces__body {
  display: flex;
  flex-direction: column;
  /* the copy reads as part of the search block, so it sits closer than the
     96px rhythm .ex-spaces uses between title / body / button */
  gap: 32px;
  width: 100%;
}

/* Lead copy under the search bar. It lies over the live map at every
   breakpoint, so it carries its own wash rather than leaning on the
   section gradients — see the ::before below. */
.ex-spaces__copy {
  position: relative;
  z-index: 10;
  margin: 0;
  width: 100%;
  max-width: 520px;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.ex-spaces__copy.is-visible {
  opacity: 1;
  transform: translateX(0);
  /* falls in behind the search bar's reveal (0.4s) */
  transition-delay: 0.55s;
}

/* readability wash: darkens the map only around the text and fades out
   well before the paragraph's edges, so it never reads as a panel.
   z-index:-1 keeps it inside the paragraph's own stacking context —
   above the map, below the text. */
.ex-spaces__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -28px -40px -32px;
  pointer-events: none;
  background: radial-gradient(
    115% 130% at 22% 45%,
    rgba(1, 5, 18, 0.85) 0%,
    rgba(1, 5, 18, 0.55) 45%,
    rgba(1, 5, 18, 0) 100%
  );
}

.ex-search {
  position: relative;
  width: 100%;
  max-width: 461px;
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10;
}

.ex-search.is-visible {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s;
  z-index: 999 !important;
}

.ex-search__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 54px;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #333333;
  border-radius: 3px;
}

.ex-search__border {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  pointer-events: none;
  fill: none;
  stroke: #fff;
  stroke-width: 2px;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition:
    stroke-dashoffset 0.8s ease-in-out,
    opacity 0.3s ease-out;
  opacity: 0;
}

.ex-search__box:focus-within .ex-search__border {
  stroke-dashoffset: 0;
  opacity: 1;
  transition:
    stroke-dashoffset 1.5s cubic-bezier(0.1, 1, 0.2, 1),
    opacity 0.1s;
}

.ex-search__box input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ex-search__box input::placeholder {
  color: #fff;
  opacity: 1;
}

.ex-search__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  opacity: 0;
  transform: translateX(-30px);
  pointer-events: none;
  transition:
    opacity 1.2s ease-out,
    transform 1.2s ease-out;
}

#exSearchInput:not(:placeholder-shown) + .ex-search__btn {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  animation: exSway 2s ease-in-out infinite 1.2s;
}

@keyframes exSway {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

/* results dropdown — mirrors .pf-search__results on the Portfolio page */
.ex-search__results {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 264px;
  overflow-y: scroll;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  display: none;
}

.ex-search__results.is-open {
  display: block;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.ex-search__results button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}

.ex-search__results button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ex-search__results small {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--mall-colour, var(--gold));
  white-space: nowrap;
}

.ex-search__empty {
  padding: 12px 20px;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.ex-btn--portfolio {
  align-self: flex-start;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.ex-btn--portfolio:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ============================ Map dots ============================ */
.ex-dots {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
}

.ex-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 6px 1px rgba(0, 0, 0, 0.35);
}

/* ==================== Portfolio logos (carousel) ==================== */
.ex-logos {
  /* One rendered height for every mall logo, so no artwork can read as larger
     than another (see .ex-logos__cell img). The width cap, gap and divider all
     scale off it, so the mobile override below shrinks the whole strip. */
  --ex-logo-h: 90px;
  --ex-logo-w: calc(var(--ex-logo-h) * 5 / 3);
  /* Distance from each logo to its neighbouring divider. The cells shrink-wrap
     their logo, so this is the real gap for every mall - it used to be 25px plus
     whatever slack the logo left inside a fixed 200px cell (~41px on average,
     but 0 for the widest), which is why the spacing read unevenly. */
  --ex-logo-gap: calc(var(--ex-logo-h) * 0.55);
  position: relative;
  margin-top: 350px;
  margin-bottom: 60px;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 10;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ex-logos.is-dragging {
  cursor: grabbing;
}

.ex-logos__track {
  display: flex;
  align-items: center;
  gap: var(--ex-logo-gap);
  width: max-content;
  will-change: transform;
}

.ex-logos__item {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--ex-logo-gap);
}

/* each cell is a link to its mall on the Portfolio page.
   Logo treatment is kept identical to the Portfolio strip (.pf-strip__logo) so
   both carousels render the same; only the entrance animation below is unique
   to the landing page. The reset declarations (padding/background/border) are
   no-ops on an <a> but are carried over verbatim so the two blocks stay
   diffable against each other. */
.ex-logos__cell {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  /* shrink-wraps the logo (max-width mirrors the img's cap) so the gaps above
     are measured from the artwork itself, not from a wider fixed cell */
  max-width: var(--ex-logo-w);
  min-height: calc(var(--ex-logo-h) * 1.25);
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-user-drag: none;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.ex-logos.is-visible .ex-logos__cell {
  opacity: 1;
  transform: translateY(0);
}

/* Every logo is fitted to the same rendered height with an auto width, so the
   near-square artwork (Mall of Thembisa, Chris Hani Crossing) can no longer read
   as larger than the landscape artwork - a shared width could not do this, since
   contain then left the wide logos short and the square ones full height. Wide
   wordmarks (Alex Mall is ~3.3:1) would overrun the strip at that height, so
   --ex-logo-w caps them and contain letterboxes what is left. The mall SVGs
   declare only a viewBox, but that still carries an intrinsic ratio, so a fixed
   height with width:auto resolves. Kept identical to .pf-strip__logo img. */
.ex-logos__cell img {
  width: auto;
  height: var(--ex-logo-h);
  max-width: var(--ex-logo-w);
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: grayscale(1);
  transition:
    transform 0.3s ease-in-out,
    filter 0.3s ease-in-out;
}

.ex-logos__cell:hover img {
  transform: scale(1.1667);
  filter: grayscale(0);
}

.ex-logos__cell--faded img {
  opacity: 0.8;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.ex-logos__div {
  flex: none;
  width: 3px;
  /* 53px against the desktop logo height; tracks it down on mobile */
  height: calc(var(--ex-logo-h) * 0.44);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.ex-logos.is-visible .ex-logos__div {
  opacity: 1;
}

/* Cascading delays up to 14 items (since it duplicates 7 items for the infinite loop) */
.ex-logos.is-visible .ex-logos__item:nth-child(1) .ex-logos__cell {
  transition-delay: 0.1s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(1) .ex-logos__div {
  transition-delay: 0.3s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(2) .ex-logos__cell {
  transition-delay: 0.2s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(2) .ex-logos__div {
  transition-delay: 0.4s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(3) .ex-logos__cell {
  transition-delay: 0.3s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(3) .ex-logos__div {
  transition-delay: 0.5s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(4) .ex-logos__cell {
  transition-delay: 0.4s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(4) .ex-logos__div {
  transition-delay: 0.6s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(5) .ex-logos__cell {
  transition-delay: 0.5s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(5) .ex-logos__div {
  transition-delay: 0.7s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(6) .ex-logos__cell {
  transition-delay: 0.6s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(6) .ex-logos__div {
  transition-delay: 0.8s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(7) .ex-logos__cell {
  transition-delay: 0.7s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(7) .ex-logos__div {
  transition-delay: 0.9s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(n + 8) .ex-logos__cell {
  transition-delay: 0.8s;
}
.ex-logos.is-visible .ex-logos__item:nth-child(n + 8) .ex-logos__div {
  transition-delay: 1s;
}

/* ============================ News & Insights ============================ */
.ex-news {
  position: relative;
  margin-top: 190px;
  width: 90%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  z-index: 10;
}

.ex-news__title {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 60px;
  line-height: normal;
  text-align: center;
  font-weight: 300;
  color: #010512;
}

.ex-news__title b {
  font-weight: 600;
  color: #010512;
}

/* Title Entrance Animation */
.ex-news .anim-word {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.8s ease;
}
.ex-news.is-visible .anim-word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.ex-news.is-visible .anim-word:nth-child(1) {
  transition-delay: 0.1s;
}
.ex-news.is-visible .anim-word:nth-child(2) {
  transition-delay: 0.2s;
}
.ex-news.is-visible .anim-word:nth-child(3) {
  transition-delay: 0.3s;
}

.ex-news__row {
  display: flex;
  align-items: stretch;
  gap: 31px;
  width: 100%;
}

/* featured — columns share the row 626:450:450 (the Figma widths) so the
   layout scales instead of crushing the featured story at narrow widths */
.ex-featured {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 626 1 0;
  min-width: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.ex-featured__imgwrap {
  width: 100%;
  padding: 10px;
  overflow: hidden;
}

.ex-featured__img {
  width: 100%;
  height: auto;
  aspect-ratio: 606 / 313;
  object-fit: cover;
  filter: grayscale(0);
  transform: scale(1);
  transition:
    filter 0.5s ease-in-out,
    transform 0.5s ease-in-out;
}

.ex-featured:hover .ex-featured__img {
  filter: grayscale(1);
  transform: scale(1.05);
}

.ex-featured__date,
.ex-item__date {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 26px;
  color: #010512;
  padding: 10px;
  padding-top: 4px !important;
  padding-bottom: 0px !important;
}

.ex-featured__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  flex: 1;
}

.ex-featured__title {
  margin: 0;
  padding: 10px;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: normal;
  color: #010512;
  transition: color 0.3s ease;
}

.ex-featured:hover .ex-featured__title {
  color: var(--gold);
}

.ex-featured__excerpt {
  margin: 0;
  padding: 10px;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #010512;
  margin-top: auto;
}

.ex-news__div {
  flex: none;
  width: 3px;
  height: 53px;
}

.ex-news__col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 50px;
  flex: 450 1 0;
  min-width: 0;
}

.ex-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.ex-item__imgwrap {
  flex: none;
  width: clamp(132px, 40%, 178px);
  padding: 10px;
  overflow: hidden;
}

.ex-item__img {
  width: 100%;
  height: auto;
  aspect-ratio: 158 / 110;
  object-fit: cover;
  filter: grayscale(0);
  transform: scale(1);
  transition:
    filter 0.5s ease-in-out,
    transform 0.5s ease-in-out;
}

.ex-item:hover .ex-item__img {
  filter: grayscale(1);
  transform: scale(1.05);
}

.ex-item__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ex-item__title {
  margin: 0;
  padding: 10px;
  padding-top: 0 !important;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  color: #010512;
  transition: color 0.3s ease;
}

.ex-item:hover .ex-item__title {
  color: var(--gold);
}

/* Entrance Animations */
.ex-news.is-visible .ex-featured,
.ex-news.is-visible .ex-item {
  opacity: 1;
  transform: translateY(0);
}
.ex-news.is-visible .ex-featured {
  transition-delay: 0.2s;
}
.ex-news.is-visible .ex-news__col:nth-child(3) .ex-item:nth-child(1) {
  transition-delay: 0.3s;
}
.ex-news.is-visible .ex-news__col:nth-child(3) .ex-item:nth-child(2) {
  transition-delay: 0.4s;
}
.ex-news.is-visible .ex-news__col:nth-child(3) .ex-item:nth-child(3) {
  transition-delay: 0.5s;
}
.ex-news.is-visible .ex-news__col:nth-child(4) .ex-item:nth-child(1) {
  transition-delay: 0.6s;
}
.ex-news.is-visible .ex-news__col:nth-child(4) .ex-item:nth-child(2) {
  transition-delay: 0.7s;
}
.ex-news.is-visible .ex-news__col:nth-child(4) .ex-item:nth-child(3) {
  transition-delay: 0.8s;
}

.ex-btn--news {
  color: #010512;
  border-color: rgba(1, 5, 18, 0.1);
}

.ex-btn--news:hover {
  background: rgba(1, 5, 18, 0.04);
}

/* ============================ Change for Good ============================ */
.ex-cfg {
  position: relative;
  margin-top: 170px;
  width: 100%;
  max-width: 1661px;
  height: 361px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cfg-gold);
  z-index: 10;
}

.ex-cfg__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ex-cfg__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 90px;
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.ex-cfg__logo {
  width: 252.343px;
  height: auto;
  aspect-ratio: 2.11 / 1;
  flex: none;
}

.ex-cfg__text {
  display: flex;
  flex-direction: column;
  gap: 19px;
  padding: 10px;
  width: 100%;
  max-width: 517px;
  color: #fff;
}

.ex-cfg__heading {
  margin: 0;
  width: 100%;
  max-width: 497px;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: normal;
  text-transform: uppercase;
}

.ex-cfg__copy {
  margin: 0;
  width: 100%;
  max-width: 497px;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: normal;
}

.ex-btn--learn {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.ex-btn--learn:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Footer (.ex-footer) is shared site-wide — see exemplar-shared.css. */

/* ============================ Scroll Animations ============================ */
.anim-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.ex-empower.is-visible .anim-word,
.ex-spaces__title.is-visible .anim-word {
  opacity: 1;
  transform: translateY(0);
}
.ex-empower.is-visible .anim-word:nth-child(1),
.ex-spaces__title.is-visible .anim-word:nth-child(1) {
  transition-delay: 0.1s;
}
.ex-empower.is-visible .anim-word:nth-child(2),
.ex-spaces__title.is-visible .anim-word:nth-child(2) {
  transition-delay: 0.2s;
}
.ex-empower.is-visible .anim-word:nth-child(4),
.ex-spaces__title.is-visible .anim-word:nth-child(3) {
  transition-delay: 0.3s;
}
.ex-empower.is-visible .anim-word:nth-child(5) {
  transition-delay: 0.4s;
}

.ex-intro__text p {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.ex-intro__text.is-visible p {
  opacity: 1;
  transform: translateY(0);
}
.ex-intro__text.is-visible p:nth-child(1) {
  transition-delay: 0.1s;
}
.ex-intro__text.is-visible p:nth-child(2) {
  transition-delay: 0.2s;
}
.ex-intro__text.is-visible p:nth-child(3) {
  transition-delay: 0.3s;
}
.ex-intro__text.is-visible p:nth-child(4) {
  transition-delay: 0.4s;
}
.ex-intro__text.is-visible p:nth-child(5) {
  transition-delay: 0.5s;
}

.ex-building .ex-building-off {
  filter: blur(15px);
  opacity: 0.2;
  transition:
    filter 0.5s ease-out,
    opacity 0.5s ease-out;
}
.ex-building.is-visible .ex-building-off {
  filter: blur(0);
  opacity: 1;
  transition:
    filter 1s ease-out,
    opacity 4s ease-out;
}

.ex-building .ex-building-on {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}
.ex-building.is-visible .ex-building-on {
  opacity: 1;
  transition: opacity 2s ease-in-out 1.5s;
}

/* =====================================================================
   MOBILE / TABLET  < 1024px — fluid stacked layout
   The 1920px canvas + scale transform only applies from 1024px up
   (see the fit() script in Views/Home/Index.cshtml). Below that the
   stage becomes a normal-flow page and the decorative canvas layers
   are hidden.
   ===================================================================== */
/* News & Insights, mid-size desktops: three columns would leave the
   featured story unreadably narrow, so it takes a full row above the
   two (still side-by-side) item columns. */
@media (max-width: 1439.98px) and (min-width: 1024px) {
  .ex-news__row {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 40px;
  }
  .ex-news__div {
    display: none;
  }
  .ex-featured {
    flex: none;
    width: min(100%, 760px);
  }
  /* basis ≤ half the row so the two columns never wrap onto separate lines
     (wrapped flex items wrap at base size before they shrink) */
  .ex-news__col {
    flex: 0 1 calc(50% - 16px);
    max-width: 450px;
  }
}

@media (max-width: 1023.98px) {
  /* Fast scroll animations for mobile */
  .anim-word,
  .ex-intro__text p,
  .ex-building img {
    transition-duration: 0.4s !important;
    transition-delay: 0s !important;
  }
  .ex-building .ex-building-off {
    filter: blur(0) !important;
    opacity: 0.7;
    transition: opacity 0.4s ease-out !important;
  }
  .ex-building.is-visible .ex-building-off {
    opacity: 1;
    transition: opacity 0.4s ease-out !important;
  }
  .ex-building .ex-building-on {
    opacity: 0;
    transition: opacity 0.4s ease-out !important;
  }
  .ex-building.is-visible .ex-building-on {
    opacity: 1;
    transition: opacity 1s ease-out 0.8s !important;
  }
  .ex-stage {
    width: 100%;
    height: auto;
  }

  /* flex column; the map (first in the DOM as a desktop background layer) is
     re-slotted after Spaces of Impact by the .ex-section-map grid below */
  .ex-stage {
    display: flex;
    flex-direction: column;
  }

  .ex-news,
  .ex-cfg,
  .ex-footer {
    order: 2;
  }

  /* decorative layers positioned in 1920px canvas coordinates */
  .ex-building,
  .ex-symbol,
  .ex-whiteblock {
    display: none;
  }

  /* ---- Map (geographic footprint) ---- */
  .ex-map {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1938 / 2194;
    margin-top: 48px;
  }

  /* fade the map's rectangular edges into the page background; the deeper
     bottom fade also mutes the attribution strip */
  .ex-map::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(1, 5, 18, 0) 18%),
      linear-gradient(0deg, var(--bg) 10%, rgba(1, 5, 18, 0) 26%),
      linear-gradient(90deg, var(--bg) 0%, rgba(1, 5, 18, 0) 12%),
      linear-gradient(270deg, var(--bg) 0%, rgba(1, 5, 18, 0) 12%);
  }

  /* the desktop layout overlays its copy on the map's left half and reserves
     that space with heavy black washes; standing alone on mobile the map
     must not carry them — the edge fade above frames it instead */
  .ex-map__grad {
    display: none;
  }

  .ex-dot {
    width: 8px;
    height: 8px;
  }

  /* Reset new section wrappers */
  .ex-section-building,
  .ex-section-map,
  .ex-section-white {
    padding: 0;
  }

  /* sections stay position:relative (they contain absolute children)
       but must drop their desktop canvas offsets */
  .ex-stats--hero,
  .ex-ticker,
  .ex-empower,
  .ex-intro,
  .ex-spaces,
  .ex-news,
  .ex-cfg,
  .ex-footer {
    top: auto;
    left: auto;
  }

  /* ---- Hero ---- */
  .ex-hero {
    position: relative;
    width: 100%;
    /* leave room below the fold line for the hero stats */
    height: calc(100vh - 260px);
    height: calc(100svh - 260px);
    min-height: 420px;
  }

  /* Drop the desktop 90% band: below 1024px the side inset is the flat 24px
     every other block on the site uses, and the 90% would stack on top of the
     padding set in the two sub-breakpoints below (5% + 24px ~ 43px on a phone,
     which read wider than the same hero on every other page). */
  .ex-hero__inner {
    width: 100%;
  }

  .ex-hero__titles {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    /* clears the slider dots, which now stop 39px in from the right edge
       (24px + their 15px hit area), leaving a 12px gap beside the text */
    padding-right: 27px;
  }

  .ex-hero__title {
    font-size: clamp(30px, 8vw, 44px);
  }

  /* the strapline wraps here, so it takes the full content width and the
     same 27px right inset as the titles, clearing the slider dots */
  .ex-hero__lead {
    max-width: none;
    margin-top: 28px;
    padding-right: 27px;
  }

  .ex-hero__lead-title {
    font-size: clamp(17px, 2.4vw, 24px);
  }

  .ex-hero__lead-copy {
    margin-top: 6px;
    font-size: clamp(11px, 1.4vw, 12px);
    line-height: 1.5;
  }

  /* dots line up with the content edge rather than sitting 4px outside it */
  .ex-scroll {
    right: 24px;
  }

  .ex-scroll button:nth-child(n) {
    height: 44px;
  }

  /* ---- Stats (hero + Spaces of Impact) ---- */
  .ex-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
    width: 100%;
  }

  /* sits inside .ex-hero__inner, which already supplies the 24px side
     inset — its own side padding would stack on top of it */
  .ex-stats--hero {
    position: relative;
    margin-top: 0;
    padding: 28px 0 0;
  }

  .ex-stat {
    min-height: 0;
    gap: 8px;
    justify-content: flex-start;
  }

  .ex-stat-div {
    display: none;
  }

  /* ---- Ticker ---- */
  /* the hero ticker is also a child of .ex-hero__inner, so no side padding
     here either (the footer ticker is out-specified in exemplar-shared.css) */
  .ex-ticker {
    position: relative;
    transform: none;
    padding: 24px 0 0;
    font-size: 14px;
    line-height: 22px;
    white-space: normal;
  }

  /* One line at every mobile width, overriding the .ex-ticker rule above — the
     footer ticker still drops "last close" onto a second line by design (see
     .ex-ticker__close in exemplar-shared.css). Full width so the box measures
     the space available rather than its own text: that is what fitHeroTicker()
     in site.js reads before sizing the line to fit.
       --ex-ticker-max  the design size, and the ceiling fitHeroTicker() works
                        down from; it lives here so the design value stays in
                        the stylesheet rather than the script.
       text-size-adjust pins the line to the size set here on handsets whose
                        browser text-scaling would otherwise inflate it past the
                        viewport — the reason this only ever bled on *some*
                        phones at a given width. Scoped to this one line, so the
                        reader's setting still applies to the rest of the page.
       overflow         backstop for an unscripted page: the line ends at the
                        content edge instead of off the right of the screen. */
  .ex-hero-ticker {
    --ex-ticker-max: 14px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* ---- Empowering heading ---- */
  /* the 140px drop is margin, not padding, so the box site.js watches for
     the reveal starts at the text — padding would fire it offscreen */
  .ex-empower {
    position: relative;
    transform: none;
    width: auto;
    align-items: center;
    margin-top: 140px;
    padding: 0 24px;
  }

  .ex-empower p {
    width: auto;
    font-size: clamp(28px, 7.5vw, 44px);
  }

  /* ---- Intro row ---- */
  .ex-intro {
    position: relative;
    margin-top: 0;
    transform: none;
    /* as with .ex-hero__inner: the desktop 90% band would stack on the 24px
       padding below and inset this row further than the rest of the page */
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 48px 24px 0;
  }

  .ex-intro__icons {
    width: 100%;
    max-width: 420px;
    height: auto;
    align-self: center;
  }

  .ex-intro__col {
    width: 100%;
    gap: 36px;
  }

  /* ---- Spaces of Impact ---- */
  .ex-spaces {
    position: relative;
    margin-left: 0;
    width: auto;
    gap: 40px;
    padding: 72px 24px 0;
  }

  .ex-spaces__title {
    white-space: normal;
    font-size: clamp(28px, 7.5vw, 44px);
  }

  /* ---- Spaces of Impact: mobile reflow ----
     Promote the .ex-spaces / .ex-spaces__body children into the map section's
     own grid so the live map can sit between the search bar and the View
     Portfolio button, and drop the stat block (desktop-only). The map, the lead
     copy and the button share one grid row: the map fills it while the copy
     rides its top edge and the button its foot, so the map runs on underneath
     both. .ex-map / .ex-logos stay full-bleed; the text blocks regain the 24px
     inset the .ex-spaces padding used to give. */
  .ex-spaces,
  .ex-spaces__body {
    display: contents;
  }

  .ex-section-map {
    display: grid;
    grid-template-columns: 100%;
    gap: 40px;
    padding-top: 170px;
  }

  .ex-spaces__title {
    grid-row: 1;
    padding-left: 24px;
    padding-right: 24px;
  }

  /* inset by margin, not padding: .ex-search__results is positioned against
     this box and has to line up with the input, not with the page edge */
  .ex-search {
    grid-row: 2;
    width: auto;
    margin-left: 24px;
    margin-right: 24px;
    /* keep the search — and its results dropdown — above the map below it */
    z-index: 15;
  }

  .ex-spaces__copy,
  .ex-map,
  .ex-btn--portfolio {
    grid-row: 3;
    grid-column: 1;
  }

  /* the box stays full-bleed so its wash can be (the map is too); the line
     length is capped with padding instead — ~640px of text on a tablet, the
     full 24px-inset width on a phone */
  .ex-spaces__copy {
    align-self: start;
    max-width: none;
    padding-left: 24px;
    padding-right: max(24px, 100% - 640px);
    z-index: 5;
  }

  /* full-bleed here (the map is too), and shaped so the map surfaces out of
     the page background as it passes under the last line of text */
  .ex-spaces__copy::before {
    inset: -40px 0 -48px;
    background: linear-gradient(
      180deg,
      var(--bg) 0%,
      rgba(1, 5, 18, 0.92) 40%,
      rgba(1, 5, 18, 0.6) 72%,
      rgba(1, 5, 18, 0) 100%
    );
  }

  .ex-map {
    /* replace the desktop-portrait aspect with a bounded mobile height so
       the map never dwarfs the page on tall phones or wide tablets, plus the
       strip the copy lies over — the map grows upward behind the text rather
       than losing map to it. landing-map.js pads its fit by the measured
       overlap, so the framing (and the zoom) below the copy is unchanged. */
    aspect-ratio: auto;
    height: calc(clamp(360px, 65vh, 560px) + 150px);
    margin-top: 0;
    z-index: 1;
  }

  .ex-btn--portfolio {
    align-self: end;
    justify-self: start;
    margin: 0 0 24px 24px;
    z-index: 10;
  }

  .ex-logos {
    grid-row: 4;
  }

  /* the stats row is desktop-only within Spaces of Impact */
  .ex-spaces__body .ex-stats {
    display: none;
  }

  /* ---- Portfolio logo carousel ---- */
  .ex-logos {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    /* the map image carries empty ocean at its foot, so a smaller
           margin here still reads as a full section break */
    margin-top: 40px;
    /* below 1024px the strip leaves the scaled 1920 canvas and renders at true
       size, where 120px logos dominate a phone; step the shared height down with
       the viewport - the width cap, gaps and dividers all follow it */
    --ex-logo-h: clamp(50px, 15vw, 90px);
  }

  /* ---- News & Insights ---- */
  .ex-news {
    position: relative;
    width: auto;
    margin-top: 60px;
    padding: 64px 24px;
    gap: 40px;
    background: #fff;
  }

  .ex-news__title {
    font-size: clamp(28px, 7.5vw, 44px);
  }

  .ex-news__row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    height: auto;
  }

  .ex-news__div {
    display: none;
  }

  .ex-featured {
    flex: none;
    width: 100%;
  }

  .ex-featured__img {
    height: auto;
    aspect-ratio: 2 / 1;
  }

  .ex-featured__title {
    font-size: 22px;
  }

  .ex-news__col {
    flex: none;
    gap: 24px;
  }

  .ex-item {
    width: 100%;
  }

  .ex-item__imgwrap {
    width: 138px;
  }

  .ex-item__img {
    width: 118px;
    height: 82px;
  }

  .ex-item__title {
    font-size: 16px;
  }

  /* ---- Change for Good ---- */
  .ex-cfg {
    position: relative;
    margin-top: 0;
    width: auto;
    height: auto;
    padding: 56px 24px;
  }

  .ex-cfg__inner {
    flex-direction: column;
    width: 100%;
    gap: 28px;
    text-align: center;
  }

  .ex-cfg__logo {
    /*        width: 200px;
        height: auto;*/
    transform: scale(0.8);
  }

  .ex-cfg__text {
    width: auto;
    align-items: center;
  }

  .ex-cfg__heading,
  .ex-cfg__copy {
    width: auto;
  }
}

@media (max-width: 1023.98px) and (min-width: 769px) {
  .ex-hero__inner {
    flex-wrap: wrap;
    /* the 0 here relied on the 90% band for its side inset */
    padding: min(35vh, 516px) 24px 493px;
  }
}

/* =====================================================================
   LARGE DESKTOP > 1200px — fluid stacked layout
   The 1920px canvas + scale transform only applies from 1024px up
   (see the fit() script in Views/Home/Index.cshtml). Below that the
   stage becomes a normal-flow page and the decorative canvas layers
   are hidden.
   ===================================================================== */

@media (max-width: 768px) {
  .ex-hero {
    height: 100svh;
  }
  .ex-hero__inner {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 24px 48px;
    /* align-items: flex-end; */
  }
  .ex-hero__titles {
    flex: unset;
  }
  .ex-hero__title {
    font-size: clamp(24px, 8vw, 44px);
  }

  /* the hero is bottom-anchored at 100svh here, so the lead tightens up to
     keep the title, stats and ticker inside a short handset viewport */
  .ex-hero__lead {
    margin-top: 18px;
  }

  .ex-hero__lead-title {
    font-size: clamp(15px, 4.4vw, 20px);
  }

  .ex-hero__lead-copy {
    margin-top: 6px;
    font-size: clamp(10.5px, 3vw, 12px);
  }
  .ex-stats--hero {
    padding: 28px 0;
    margin-top: 0;
  }
  /* The ticker string runs ~33em, so at its design size it outruns a phone
     viewport. Size it off the available width instead (the viewport less the
     24px of .ex-hero__inner padding each side) so an unscripted page still
     lands on one line; the divisor is deliberately generous because this is
     only the floor — fitHeroTicker() in site.js measures the laid-out line and
     takes the size back up to whatever actually fits, so a conservative value
     here costs nothing but a long feed string ("September", a five-digit
     price) is still safe without it. No !important: the inline size site.js
     sets has to be able to win. */
  #ex-ticker {
    padding: 24px 0 0;
    font-size: min(var(--ex-ticker-max, 14px), calc((100vw - 48px) / 36));
  }
  /* phones sit the line in normal flow; the desktop rule drops it 60px, which
     the tablet range above still keeps */
  .ex-hero-ticker {
    bottom: 0 !important;
  }
  .ex-stat__value .v-lg {
    font-size: 25px;
  }
  .ex-stat__value .v-r {
    font-size: 16px;
  }
  .ex-item__date {
    padding-top: 2px !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 500px) {
  .ex-item {
    flex-direction: column;
    border: 1px solid rgba(1, 5, 18, 0.1);
  }
  .ex-item__imgwrap,
  .ex-item__img {
    width: 100%;
    max-height: 102px;
    height: 100%;
  }
}

@media (min-width: 981px) {
  .ex-spaces__copy::before {
    display: none;
  }
}

/* Short viewports — landscape handsets and small phones. The hero is a fixed
   100svh box whose content is bottom-anchored, so anything taller than the
   screen rides up under the fixed nav and is cut off by the hero's own
   overflow (in the tablet range the wrapping inner column also throws the text
   off the right edge). The lead copy pushes the stack past that point on short
   screens, so below this height the hero grows with its content instead — the
   slider images and overlay are inset:0, so they still fill it. */
@media (max-width: 1023.98px) and (max-height: 660px) {
  .ex-hero {
    height: auto;
    min-height: 100svh;
  }

  /* in normal flow, so the hero measures the content; the top padding clears
     the fixed nav that the bottom-anchored layout used to sit under */
  .ex-hero__inner {
    position: relative;
    inset: auto;
    flex-wrap: nowrap;
    padding: 104px 24px 40px;
  }

  .ex-hero-ticker {
    bottom: 0;
  }

  .ex-hero__lead {
    margin-top: 14px;
  }

  .ex-hero__lead-copy {
    margin-top: 4px;
  }
}
