/* --- css/base/base.css --- */
/* base/base.css — neutral, client-agnostic foundation.
   Brand values live in brand.css (loaded next in the manifest), which remaps
   the semantic slots. Nothing client-specific belongs in this file. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:root {
  /* Neutral ramp (warm gray). The ramp is the only place raw hex lives. */
  --n-0: #ffffff;
  --n-50: #f7f6f3;
  --n-100: #efede8;
  --n-200: #e0ddd5;
  --n-300: #c9c5ba;
  --n-500: #8a877e;
  --n-700: #4c4a45;
  --n-900: #1a1917;

  /* Semantic slots — components read THESE, never the ramp directly.
     brand.css points them at client colours; the defaults are DC-neutral. */
  --color-ink: var(--n-900);
  --color-ink-soft: var(--n-700);
  --color-surface: var(--n-0);
  --color-surface-2: var(--n-50);
  --color-surface-3: var(--n-100);
  --color-primary: var(--n-900);
  --color-accent: var(--n-700);
  --color-line: var(--n-200);

  /* Type slots (brand.css sets the families) */
  --font-sans: ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-heading: var(--font-sans);
  --font-body: var(--font-sans);

  /* Fluid type scale */
  --text-xs: 0.8125rem;
  --text-s: 0.9375rem;
  --text-m: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-l: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --text-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --text-2xl: clamp(2.25rem, 1.6rem + 3vw, 4rem);

  /* Spacing scale — em-based so the whole system scales from one font-size */
  --padding-xl: 12.5em;
  --padding-l: 10em;
  --padding-m: 7.5em;
  --padding-s: 5em;
  --padding-xs: 3.75em;

  /* Gaps */
  --gap-l: 1.875em;
  --gap-m: 1.5em;
  --gap-s: 1em;
  --gap-xs: 0.75em;

  /* Space — element-level spacing between the gap scale (intra-component)
     and the padding scale (section rhythm). Use for content-stack breathing
     room: hero content, intro offsets, in-section blocks. */
  --space-xs: 0.5em;
  --space-s: 1em;
  --space-m: 2em;
  --space-l: 4em;
  --space-xl: 6em;

  /* Radius */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 24px;

  /* Layout */
  --container-padding: 20px;
  --max-width: 1600px;

  /* Motion — the signature ease lives here AND in main.js (CustomEase 'dc').
     Durations come in multiples of the default so related animations stay
     in rhythm; the --animation-* composites are drop-in transition values. */
  --cubic-default: cubic-bezier(0.625, 0.05, 0, 1);
  --cubic-bounce: linear(0, 0.5737 7.6%, 0.8382 11.87%, 0.9463 14.19%, 1.0292 16.54%, 1.0886 18.97%, 1.1258 21.53%, 1.137 22.97%, 1.1424 24.48%, 1.1423 26.1%, 1.1366 27.86%, 1.1165 31.01%, 1.0507 38.62%, 1.0219 42.57%, 0.9995 46.99%, 0.9872 51.63%, 0.9842 58.77%, 1.0011 81.26%, 1);
  --duration-default: 0.6s;
  --duration-default-half: 0.3s;
  --duration-default-quarter: 0.15s;
  --duration-default-onehalf: 0.9s;
  --duration-default-double: 1.2s;
  --duration-fast: 0.25s;
  --ease-soft: ease-in-out;
  --animation-default: var(--duration-default) var(--cubic-default);
  --animation-default-half: var(--duration-default-half) var(--cubic-default);
  --animation-default-quarter: var(--duration-default-quarter) var(--cubic-default);
  --animation-default-onehalf: var(--duration-default-onehalf) var(--cubic-default);
  --animation-default-double: var(--duration-default-double) var(--cubic-default);
  --animation-ease: 0.2s ease;
  --animation-ease-double: 0.4s ease;
}

/* ------------------------- DC scaling system ----------------------------
   The root font-size is derived from the viewport against the design's
   ideal width, so every em-based measurement in the theme (sections,
   components, nav) scales proportionally between the breakpoint stops.
   16px at 1440w desktop, growing to ~21px at 1920w; each breakpoint
   restates its own design-ideal width. */
:root {
  --size-unit: 16;
  /* body font-size at the ideal width, unitless */
  --size-container-ideal: 1440;
  /* design ideal width, unitless */
  --size-container-min: 992px;
  --size-container-max: 1600px;
  --size-container: clamp(var(--size-container-min), 100vw, var(--size-container-max));
  --size-font: calc(var(--size-container) / (var(--size-container-ideal) / var(--size-unit)));
}

@media screen and (max-width: 991px) {
  :root {
    --size-container-ideal: 850;
    --size-container-min: 768px;
    --size-container-max: 991px;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --size-container-ideal: 390;
    --size-container-min: 480px;
    --size-container-max: 767px;

    --padding-xl: 10em;
    --padding-l: 7.5em;
    --padding-m: 5em;
    --padding-s: 3.75em;
  }
}

@media screen and (max-width: 479px) {
  :root {
    --size-container-ideal: 390;
    --size-container-min: 320px;
    --size-container-max: 479px;
  }
}

body {
  font-size: var(--size-font);
  overscroll-behavior: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Native scrollbars hidden — Lenis owns the scroll experience */
body::-webkit-scrollbar,
html::-webkit-scrollbar {
  display: none;
}

.lenis {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Utilities carried from the legacy layer (the last two survivors) */
.link-overlay a,
a.overlay {
  position: absolute;
  z-index: 10;
  inset: 0;
}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  max-width: 100%;
  height: auto;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
  position: absolute;
  inset: 0;
}

/* Thin reset — no normalize; this and the resets above are the whole layer */
::selection {
  background-color: var(--color-surface-3);
  text-shadow: none;
}

textarea {
  resize: none;
}

button {
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--size-container);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container.is--m {
  max-width: calc(var(--size-container) * 0.825);
}

.container.is--sm {
  max-width: calc(var(--size-container) * 0.65);
}

.container.is--s {
  max-width: calc(var(--size-container) * 0.5);
}

/* The narrow widths are fractions of the container, so on a phone they
   squeezed text into half the screen. Phones use the full container. */
@media screen and (max-width: 767px) {
  .container.is--m,
  .container.is--sm,
  .container.is--s {
    max-width: none;
  }
}

.main {
  overflow: clip;
}

/* <body> carries .main too. Its overflow spreads to the viewport, and a vertical
   clip there blocks touch scrolling on phones. Clip sideways only. */
body.main {
  overflow: visible;
  overflow-x: clip;
}

/* LiteSpeed Cache lazy-load shim (our hosting stack) */
img[data-lazyloaded] {
  opacity: 0;
}

img.litespeed-loaded {
  transition: opacity 0.5s linear 0.2s;
  opacity: 1;
}

/* Visually hidden, kept for screen readers */
.u--sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Responsive utilities */
.u--show-mobile {
  display: none;
}

@media screen and (max-width: 767px) {
  .u--hide-mobile {
    display: none;
  }

  .u--show-mobile {
    display: block;
  }
}

/* --- css/base/brand.css --- */
/* base/brand.css — the ONLY file that knows the client.
   LOCALE PROJECT brand (shared by all four Locale sites). Per-brand deltas
   (~10%) switch on [data-brand] in the generated token sheets — this file
   holds what the brands share: fonts, the semantic colour mapping and the
   component skins that express them.

   Source of truth: Figma "Experience Design | Locale Property Group", pulled
   into design-tokens/*.json and generated as brand-tokens.css + brand-type.css.
   The brand is <html data-brand="homes|invest|financial|group">.

   The "legacy compat" block remaps the carried legacy variable names onto the
   brand tokens; it shrinks away as legacy.css is dismantled. */

/* Manrope — UI/body (Google, variable, latin). */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-200-800.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

/* Libre Baskerville — display serif for headings (Google, variable, latin).
   The Figma type scale uses the in-between weights (450, 550, 600). */
@font-face {
  font-family: 'LibreBaskerville';
  src: url('../fonts/LibreBaskerville-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'LibreBaskerville';
  src: url('../fonts/LibreBaskervilleItalic-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: 'LibreBaskerville', Baskerville, Georgia, serif;
  --font-heading: var(--font-serif);
  --font-body: var(--font-sans);

  /* Palette, text colours, radii and the per-brand --color-accent are
     generated into brand-tokens.css from Figma. These map them onto the
     theme's semantic slots. */
  --color-ink: var(--color-text-dark);
  --color-ink-soft: var(--color-text-dark-secondary);
  --color-primary: var(--brand-charcoal);
  --color-surface-2: var(--brand-silver);

  /* ---- Legacy compat: carried variable names → brand tokens ---- */
  --theme-color: var(--color-primary);
  --dark-color: var(--brand-charcoal);
  --light-color: var(--n-0);
  --green-color: var(--color-primary);
  --greenlight-color: var(--n-300);
  --lightgreen-color: var(--n-300);
  --cream-color: var(--color-surface-2);
  --grey-color: var(--color-surface-2);
  --blue-color: var(--n-700);
  --orange-color: var(--n-500);
  --brown-color: var(--n-500);
  --desertsand-color: var(--n-200);
}

/* Homes light sections are #f9f9f9 in the Figma designs (First Home Buyers 1996:145483,
   Investors 2226:110569), with white cards on top. Only the section/page colour moves;
   --color-surface stays white so cards and fields keep their white. */
[data-brand="homes"] [data-theme-section="light"] { background: var(--brand-group-white); }

/* Dark bands use the Figma charcoal + silver text, not the base theme's warm
   neutral ramp. Attribute selectors (not :where) because section-system.css
   loads after this file; block class selectors still win on order. */
[data-theme-section="dark"] {
  background: var(--brand-charcoal);
  color: var(--color-text-light);
  --color-ink: var(--color-text-light);
  --color-ink-soft: var(--color-text-light-secondary);
  --color-line: color-mix(in srgb, var(--brand-silver) 15%, transparent);
  --color-surface: var(--brand-charcoal);
  --color-surface-2: color-mix(in srgb, var(--brand-silver) 10%, transparent);
  --color-surface-3: color-mix(in srgb, var(--brand-silver) 15%, transparent);
  /* On charcoal the accent itself is the line (Group's charcoal line would vanish). */
  --color-accent-line: var(--color-accent);
  --color-select: var(--color-accent);
  --color-select-ink: var(--brand-charcoal);
}

[data-theme-section="primary"] {
  color: var(--color-text-light);
  --color-ink: var(--color-text-light);
  --color-ink-soft: var(--color-text-light-secondary);
}

html,
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-ink);
  line-height: 1.5;
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  width: 100%;
  margin: 0 0 0.5em;
}

/* Convention: heading LEVEL is semantic, SCALE is a class — e.g.
   <h1 class="h2"> renders h2-sized. Pick the level for the document
   outline, the class for the design. */
h1,
.h1 {
  font-size: var(--text-2xl);
}

h2,
.h2 {
  font-size: var(--text-xl);
}

h3,
.h3 {
  font-size: var(--text-l);
}

h4,
.h4 {
  font-size: var(--text-m);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- */
/* Nav — Locale skin over the section-aware theming (Figma navBar tokens:
   topNavBg-mouseEnter mint, navbar-subtlebtn-onmedia charcoal 30% + blur,
   navBarItem light/dark). The bar that fades in on hover/open is MINT with
   charcoal items, per the design's mouseenter state. */

:root {
  /* The bar surface that fades in on hover/menu-open over media (Figma
     surface/topNavBg-mouseEnter) + its item colour. Read by core/nav.css. */
  --nav-restore-surface: var(--color-accent);
  --nav-restore-ink: var(--brand-charcoal);
}

@media (min-width: 992px) {

  /* Region + search stubs on media: subtle charcoal chip, silver text. */
  [data-nav-theme="dark"] .mega-nav__bar:not(:hover) .mega-nav__bar-link.is--util {
    background-color: rgba(50, 50, 50, 0.3);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-s);
    padding: 0.5em 0.75em;
  }
}

/* --- css/base/brand-tokens.css --- */
/* base/brand-tokens.css — GENERATED by design-tokens/build-foundations.js from
   design-tokens/foundations.json (Figma PiEAExprxGGtshcaUTIrlQ, pulled 2026-09-22).
   Do not edit by hand: change the JSON and rebuild. */

:root {
  --px: calc(var(--size-font) / var(--size-unit));

  --radius-none: 0;
  --radius-xs: calc(4 * var(--px));
  --radius-s: calc(8 * var(--px));
  --radius-m: calc(16 * var(--px));
  --radius-l: calc(24 * var(--px));
  --radius-full: 999em;

  --space-00: 0;
  --space-01: calc(2 * var(--px));
  --space-02: calc(4 * var(--px));
  --space-03: calc(8 * var(--px));
  --space-04: calc(12 * var(--px));
  --space-05: calc(16 * var(--px));
  --space-05b: calc(20 * var(--px));
  --space-06: calc(24 * var(--px));
  --space-06b: calc(24 * var(--px));
  --space-07: calc(35 * var(--px));
  --space-07b: calc(35 * var(--px));
  --space-08: calc(48 * var(--px));
  --space-09: calc(56 * var(--px));
  --space-10: calc(64 * var(--px));
  --space-11: calc(80 * var(--px));
  --space-12: calc(88 * var(--px));
  --padding-block: calc(112 * var(--px));
  --padding-content: calc(56 * var(--px));

  /* Figma card-elevationGrad-top: dark charcoal 80% fading out by 40%. */
  --card-elevation-grad-top: linear-gradient(180deg, rgb(37 37 37 / 80%) 0%, rgb(37 37 37 / 0%) 40%);

  --brand-charcoal: #323232;
  --brand-silver: #f2f2f2;
  --brand-dark-charcoal: #252525;
  --brand-white: #ffffff;
  --brand-haven-green: #9ce3db;
  --brand-sky-blue: #c8d5f5;
  --brand-nectar: #f7d4b7;
  --brand-group-white: #f9f9f9;

  --color-text-dark: var(--brand-charcoal);
  --color-text-dark-secondary: color-mix(in srgb, var(--brand-charcoal) 85%, transparent);
  --color-text-dark-tertiary: color-mix(in srgb, var(--brand-charcoal) 55%, transparent);
  --color-text-light: var(--brand-silver);
  --color-text-light-secondary: color-mix(in srgb, var(--brand-silver) 80%, transparent);
  --color-text-light-tertiary: color-mix(in srgb, var(--brand-silver) 55%, transparent);

  --size-container-ideal: 1600;
  --size-container-min: 1440px;
  --size-container-max: 1600px;
  --container-padding: calc(80 * var(--px));
  --grid-gutter: calc(24 * var(--px));
  --grid-columns: 12;

  --color-accent: var(--brand-haven-green);
  --color-accent-line: var(--brand-haven-green);
  --color-accent-tint-1: #a6e6df;
  --color-accent-tint-2: #baebe6;
  --color-accent-tint-3: #cdf1ed;
  --color-accent-tint-4: #d7f4f1;
  --color-accent-shade: #2a6b64;
  --brand-graphic: url("../img/brand/arch-line.svg");
  --brand-shape-tiny-radius: 50% 50% 0 0;
  --brand-shape-tiny-mask: none;
  --brand-shape-tiny-image: none;
  --brand-graphic-hero: url("../img/brand/arch-line.svg");
  --color-btn-hover: var(--brand-haven-green);
  --color-btn-hover-ink: var(--brand-charcoal);
  --color-select: var(--brand-haven-green);
  --color-select-ink: var(--brand-charcoal);
}

@media screen and (max-width: 1439px) {
  :root {
    --size-font: calc(11.8286px + 0.1786vw);
  }
}

/* Containers tighten before the tablet layout starts: a flat 36px from
   1200 down (Chris, 6 Oct 2026). */
@media screen and (max-width: 1200px) {
  :root {
    --container-padding: 36px;
  }
}

@media screen and (max-width: 991px) {
  :root {
    --size-font: calc(var(--size-unit) * 0.85px);
    --size-container-ideal: 850;
    --size-container-min: 768px;
    --size-container-max: 991px;
    --container-padding: 36px;
    --grid-gutter: calc(24 * var(--px));
    --grid-columns: 12;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --size-font: calc(var(--size-unit) * 1px);
    --size-container-ideal: 393;
    --size-container-min: 320px;
    --size-container-max: 767px;
    --container-padding: calc(15 * var(--px));
    --grid-gutter: calc(16 * var(--px));
    --grid-columns: 6;

    --radius-m: calc(12 * var(--px));
    --radius-l: calc(18 * var(--px));
    --space-03: calc(6 * var(--px));
    --space-04: calc(10 * var(--px));
    --space-05: calc(12 * var(--px));
    --space-05b: calc(16 * var(--px));
    --space-06: calc(16 * var(--px));
    --space-07: calc(20 * var(--px));
    --space-08: calc(35 * var(--px));
    --space-09: calc(35 * var(--px));
    --space-10: calc(48 * var(--px));
    --padding-block: calc(56 * var(--px));
    --padding-content: calc(20 * var(--px));
  }
}

[data-brand="homes"] {
  --color-accent: var(--brand-haven-green);
  --color-accent-line: var(--brand-haven-green);
  --color-accent-tint-1: #a6e6df;
  --color-accent-tint-2: #baebe6;
  --color-accent-tint-3: #cdf1ed;
  --color-accent-tint-4: #d7f4f1;
  --color-accent-shade: #2a6b64;
  --brand-graphic: url("../img/brand/arch-line.svg");
  --brand-shape-tiny-radius: 50% 50% 0 0;
  --brand-shape-tiny-mask: none;
  --brand-shape-tiny-image: none;
  --brand-graphic-hero: url("../img/brand/arch-line.svg");
  --color-btn-hover: var(--brand-haven-green);
  --color-btn-hover-ink: var(--brand-charcoal);
  --color-select: var(--brand-haven-green);
  --color-select-ink: var(--brand-charcoal);
}

[data-brand="invest"] {
  --color-accent: var(--brand-sky-blue);
  --color-accent-line: var(--brand-sky-blue);
  --color-accent-tint-1: #ced9f6;
  --color-accent-tint-2: #d9e2f8;
  --color-accent-tint-3: #e3eafa;
  --color-accent-tint-4: #e9eefb;
  --color-accent-shade: #5269a1;
  --brand-graphic: url("../img/brand/pattern-invest.svg");
  --brand-shape-tiny-radius: 0 32% 0 32%;
  --brand-shape-tiny-mask: none;
  --brand-shape-tiny-image: none;
  --brand-graphic-hero: url("../img/brand/pattern-invest.svg");
  --color-btn-hover: var(--brand-sky-blue);
  --color-btn-hover-ink: var(--brand-charcoal);
  --color-select: var(--brand-sky-blue);
  --color-select-ink: var(--brand-charcoal);
}

[data-brand="financial"] {
  --color-accent: var(--brand-nectar);
  --color-accent-line: var(--brand-nectar);
  --color-accent-tint-1: #f8d8be;
  --color-accent-tint-2: #f9e1cd;
  --color-accent-tint-3: #fbe9db;
  --color-accent-tint-4: #fceee2;
  --color-accent-shade: #966740;
  --brand-graphic: url("../img/brand/pattern-financial.svg");
  --brand-shape-tiny-radius: 0;
  --brand-shape-tiny-mask: url("../img/brand/shape-financial.svg");
  --brand-shape-tiny-image: none;
  --brand-graphic-hero: url("../img/brand/pattern-financial.svg");
  --color-btn-hover: var(--brand-nectar);
  --color-btn-hover-ink: var(--brand-charcoal);
  --color-select: var(--brand-nectar);
  --color-select-ink: var(--brand-charcoal);
}

[data-brand="group"] {
  --color-accent: var(--brand-silver);
  --color-accent-line: var(--brand-charcoal);
  --color-accent-tint-1: #f9f9f9;
  --color-accent-tint-2: #f9f9f9;
  --color-accent-tint-3: #fcfcfc;
  --color-accent-tint-4: #fcfcfc;
  --color-accent-shade: #323232;
  --brand-graphic: url("../img/brand/group-shapes-soft.svg");
  --brand-shape-tiny-radius: 0;
  --brand-shape-tiny-mask: none;
  --brand-shape-tiny-image: url("../img/brand/shape-tiny-group.svg");
  --brand-graphic-hero: url("../img/brand/group-shapes-outline.svg");
  --color-btn-hover: #474747;
  --color-btn-hover-ink: var(--brand-silver);
  --color-select: var(--brand-charcoal);
  --color-select-ink: var(--brand-white);
}


/* --- css/base/brand-icons.css --- */
/* base/brand-icons.css: GENERATED by design-tokens/build-brand-icons.js.
   Per-brand icon tokens for the icons stylesheets reference by url().
   Do not edit by hand. */

:root {
  --icon-lightbulb: url("../img/icons/lightbulb.svg");
  --icon-bullet-check: url("../img/icons/bullet-check.svg");
  --icon-guide: url("../img/icons/guide.svg");
  --icon-podcast: url("../img/icons/podcast.svg");
  --icon-calculator: url("../img/icons/calculator.svg");
  --icon-article: url("../img/icons/article.svg");
  --icon-type-faq: url("../img/icons/type-faq.svg");
  --icon-checkbox-on: url("../img/icons/checkbox-on.svg");
  --icon-radio-on: url("../img/icons/radio-on.svg");
}

[data-brand="invest"] {
  --icon-lightbulb: url("../img/icons/brand/invest/lightbulb.svg");
  --icon-bullet-check: url("../img/icons/brand/invest/bullet-check.svg");
  --icon-guide: url("../img/icons/brand/invest/guide.svg");
  --icon-podcast: url("../img/icons/brand/invest/podcast.svg");
  --icon-calculator: url("../img/icons/brand/invest/calculator.svg");
  --icon-article: url("../img/icons/brand/invest/article.svg");
  --icon-type-faq: url("../img/icons/type-faq.svg");
  --icon-checkbox-on: url("../img/icons/brand/invest/checkbox-on.svg");
  --icon-radio-on: url("../img/icons/brand/invest/radio-on.svg");
}

[data-brand="financial"] {
  --icon-lightbulb: url("../img/icons/brand/financial/lightbulb.svg");
  --icon-bullet-check: url("../img/icons/brand/financial/bullet-check.svg");
  --icon-guide: url("../img/icons/brand/financial/guide.svg");
  --icon-podcast: url("../img/icons/brand/financial/podcast.svg");
  --icon-calculator: url("../img/icons/brand/financial/calculator.svg");
  --icon-article: url("../img/icons/brand/financial/article.svg");
  --icon-type-faq: url("../img/icons/type-faq.svg");
  --icon-checkbox-on: url("../img/icons/brand/financial/checkbox-on.svg");
  --icon-radio-on: url("../img/icons/brand/financial/radio-on.svg");
}

[data-brand="group"] {
  --icon-lightbulb: url("../img/icons/brand/group/lightbulb.svg");
  --icon-bullet-check: url("../img/icons/brand/group/bullet-check.svg");
  --icon-guide: url("../img/icons/brand/group/guide.svg");
  --icon-podcast: url("../img/icons/brand/group/podcast.svg");
  --icon-calculator: url("../img/icons/brand/group/calculator.svg");
  --icon-article: url("../img/icons/brand/group/article.svg");
  --icon-type-faq: url("../img/icons/type-faq.svg");
  --icon-checkbox-on: url("../img/icons/brand/group/checkbox-on.svg");
  --icon-radio-on: url("../img/icons/brand/group/radio-on.svg");
}


/* --- css/base/brand-type.css --- */
/* base/brand-type.css — GENERATED by design-tokens/build-type.js from
   design-tokens/typography.json (Figma PiEAExprxGGtshcaUTIrlQ, node 1158:40409,
   pulled 2026-09-14). Do not edit by hand: change the JSON and rebuild.

   Two modes, matching Figma's Desktop / Mobile variable modes. The mobile
   set takes over at the theme's 767px breakpoint; between breakpoints the DC
   scaling system (--size-font) keeps everything fluid. */

:root {
  --display-xxxl-size: calc(110 * var(--px));
  --display-xxxl-lh: 1.1;
  --display-xxxl-ls: -0.05em;
  --display-xxxl-weight: 400;
  --display-xxl-size: calc(78 * var(--px));
  --display-xxl-lh: 1.1026;
  --display-xxl-ls: -0.0321em;
  --display-xxl-weight: 400;
  --display-xl-size: calc(65 * var(--px));
  --display-xl-lh: 1.1077;
  --display-xl-ls: -0.0308em;
  --display-xl-weight: 400;
  --display-l-size: calc(54 * var(--px));
  --display-l-lh: 1.1111;
  --display-l-ls: -0.0278em;
  --display-l-weight: 450;
  --display-m-size: calc(40 * var(--px));
  --display-m-lh: 1.125;
  --display-m-ls: -0.0275em;
  --display-m-weight: 450;
  --display-s-size: calc(29 * var(--px));
  --display-s-lh: 1.2414;
  --display-s-ls: -0.0259em;
  --display-s-weight: 550;
  --utility-l-size: calc(23 * var(--px));
  --utility-l-lh: 1.2174;
  --utility-l-ls: -0.025em;
  --utility-l-weight: 600;
  --utility-m-size: calc(14 * var(--px));
  --utility-m-lh: 1.2;
  --utility-m-ls: 0.1429em;
  --utility-m-weight: 700;
  --utility-s-size: calc(13 * var(--px));
  --utility-s-lh: 1.2;
  --utility-s-ls: 0.0769em;
  --utility-s-weight: 700;
  --utility-xs-size: calc(10 * var(--px));
  --utility-xs-lh: 1.1;
  --utility-xs-ls: 0.075em;
  --utility-xs-weight: 700;
  --body-l-size: calc(20 * var(--px));
  --body-l-lh: 1.4;
  --body-l-ls: 0;
  --body-l-weight: 500;
  --body-m-size: calc(17 * var(--px));
  --body-m-lh: 1.4706;
  --body-m-ls: 0;
  --body-m-weight: 500;
  --body-s-size: calc(15 * var(--px));
  --body-s-lh: 1.4667;
  --body-s-ls: 0.0067em;
  --body-s-weight: 500;
  --body-xs-size: calc(13 * var(--px));
  --body-xs-lh: 1.3846;
  --body-xs-ls: 0.0154em;
  --body-xs-weight: 500;
  --faq-q-size: calc(23 * var(--px));
  --faq-q-lh: 1.2174;
  --faq-q-ls: -0.025em;
  --faq-q-weight: 600;
  --faq-a-size: calc(17 * var(--px));
  --faq-a-lh: 1.4706;
  --faq-a-ls: 0;
  --faq-a-weight: 500;
  --testimonial-size: calc(23 * var(--px));
  --testimonial-lh: 1.3913;
  --testimonial-ls: -0.025em;
  --testimonial-weight: 600;

  /* Legacy scale -> nearest Figma role (size only). Retire as sections move
     onto .type-* classes. */
  --text-2xl: var(--display-xl-size);
  --text-xl: var(--display-m-size);
  --text-l: var(--display-s-size);
  --text-m: var(--body-m-size);
  --text-s: var(--body-s-size);
  --text-xs: var(--body-xs-size);
}

@media screen and (max-width: 767px) {
  :root {
    --display-xxxl-size: calc(49 * var(--px));
    --display-xxxl-lh: 1.102;
    --display-xxxl-ls: -0.0306em;
    --display-xxxl-weight: 400;
    --display-xxl-size: calc(39 * var(--px));
    --display-xxl-lh: 1.1282;
    --display-xxl-ls: -0.0282em;
    --display-xxl-weight: 400;
    --display-xl-size: calc(39 * var(--px));
    --display-xl-lh: 1.1282;
    --display-xl-ls: -0.0282em;
    --display-xl-weight: 400;
    --display-l-size: calc(39 * var(--px));
    --display-l-lh: 1.1282;
    --display-l-ls: -0.0282em;
    --display-l-weight: 400;
    --display-m-size: calc(30 * var(--px));
    --display-m-lh: 1.1333;
    --display-m-ls: -0.0267em;
    --display-m-weight: 450;
    --display-s-size: calc(22 * var(--px));
    --display-s-lh: 1.2273;
    --display-s-ls: -0.0273em;
    --display-s-weight: 600;
    --utility-l-size: calc(20 * var(--px));
    --utility-l-lh: 1.25;
    --utility-l-ls: -0.025em;
    --utility-l-weight: 600;
    --utility-m-size: calc(11 * var(--px));
    --utility-m-lh: 1.2;
    --utility-m-ls: 0.1818em;
    --utility-m-weight: 700;
    --utility-s-size: calc(11 * var(--px));
    --utility-s-lh: 1.2;
    --utility-s-ls: 0.0909em;
    --utility-s-weight: 700;
    --utility-xs-size: calc(9 * var(--px));
    --utility-xs-lh: 1.1;
    --utility-xs-ls: 0.0833em;
    --utility-xs-weight: 700;
    --body-l-size: calc(18 * var(--px));
    --body-l-lh: 1.3889;
    --body-l-ls: 0;
    --body-l-weight: 500;
    --body-m-size: calc(16 * var(--px));
    --body-m-lh: 1.375;
    --body-m-ls: 0;
    --body-m-weight: 500;
    --body-s-size: calc(14 * var(--px));
    --body-s-lh: 1.4286;
    --body-s-ls: 0;
    --body-s-weight: 500;
    --body-xs-size: calc(12 * var(--px));
    --body-xs-lh: 1.3333;
    --body-xs-ls: 0.0083em;
    --body-xs-weight: 500;
    --faq-q-size: calc(18 * var(--px));
    --faq-q-lh: 1.2778;
    --faq-q-ls: -0.025em;
    --faq-q-weight: 600;
    --faq-a-size: calc(14 * var(--px));
    --faq-a-lh: 1.4286;
    --faq-a-ls: 0;
    --faq-a-weight: 500;
    --testimonial-size: calc(17 * var(--px));
    --testimonial-lh: 1.4118;
    --testimonial-ls: -0.025em;
    --testimonial-weight: 600;
  }
}

.type-display-xxxl {
  font-family: var(--font-serif);
  font-size: var(--display-xxxl-size);
  line-height: var(--display-xxxl-lh);
  letter-spacing: var(--display-xxxl-ls);
  font-weight: var(--display-xxxl-weight);
  text-box: trim-both cap alphabetic;
}

.type-display-xxl {
  font-family: var(--font-serif);
  font-size: var(--display-xxl-size);
  line-height: var(--display-xxl-lh);
  letter-spacing: var(--display-xxl-ls);
  font-weight: var(--display-xxl-weight);
  text-box: trim-both cap alphabetic;
}

.type-display-xl {
  font-family: var(--font-serif);
  font-size: var(--display-xl-size);
  line-height: var(--display-xl-lh);
  letter-spacing: var(--display-xl-ls);
  font-weight: var(--display-xl-weight);
  text-box: trim-both cap alphabetic;
}

.type-display-l {
  font-family: var(--font-serif);
  font-size: var(--display-l-size);
  line-height: var(--display-l-lh);
  letter-spacing: var(--display-l-ls);
  font-weight: var(--display-l-weight);
  text-box: trim-both cap alphabetic;
}

.type-display-m {
  font-family: var(--font-serif);
  font-size: var(--display-m-size);
  line-height: var(--display-m-lh);
  letter-spacing: var(--display-m-ls);
  font-weight: var(--display-m-weight);
  text-box: trim-both cap alphabetic;
}

.type-display-s {
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
  font-weight: var(--display-s-weight);
  text-box: trim-both cap alphabetic;
}

.type-utility-l {
  font-family: var(--font-sans);
  font-size: var(--utility-l-size);
  line-height: var(--utility-l-lh);
  letter-spacing: var(--utility-l-ls);
  font-weight: var(--utility-l-weight);
  text-box: trim-both cap alphabetic;
}

.type-utility-m {
  font-family: var(--font-sans);
  font-size: var(--utility-m-size);
  line-height: var(--utility-m-lh);
  letter-spacing: var(--utility-m-ls);
  font-weight: var(--utility-m-weight);
  text-box: trim-both cap alphabetic;
  text-transform: uppercase;
}

.type-utility-s {
  font-family: var(--font-sans);
  font-size: var(--utility-s-size);
  line-height: var(--utility-s-lh);
  letter-spacing: var(--utility-s-ls);
  font-weight: var(--utility-s-weight);
  text-box: trim-both cap alphabetic;
  text-transform: uppercase;
}

.type-utility-xs {
  font-family: var(--font-sans);
  font-size: var(--utility-xs-size);
  line-height: var(--utility-xs-lh);
  letter-spacing: var(--utility-xs-ls);
  font-weight: var(--utility-xs-weight);
  text-box: trim-both cap alphabetic;
  text-transform: uppercase;
}

.type-body-l {
  font-family: var(--font-sans);
  font-size: var(--body-l-size);
  line-height: var(--body-l-lh);
  letter-spacing: var(--body-l-ls);
  font-weight: var(--body-l-weight);
  text-box: trim-both cap alphabetic;
}

.type-body-m {
  font-family: var(--font-sans);
  font-size: var(--body-m-size);
  line-height: var(--body-m-lh);
  letter-spacing: var(--body-m-ls);
  font-weight: var(--body-m-weight);
  text-box: trim-both cap alphabetic;
}

.type-body-s {
  font-family: var(--font-sans);
  font-size: var(--body-s-size);
  line-height: var(--body-s-lh);
  letter-spacing: var(--body-s-ls);
  font-weight: var(--body-s-weight);
  text-box: trim-both cap alphabetic;
}

.type-body-xs {
  font-family: var(--font-sans);
  font-size: var(--body-xs-size);
  line-height: var(--body-xs-lh);
  letter-spacing: var(--body-xs-ls);
  font-weight: var(--body-xs-weight);
  text-box: trim-both cap alphabetic;
}

.type-faq-q {
  font-family: var(--font-sans);
  font-size: var(--faq-q-size);
  line-height: var(--faq-q-lh);
  letter-spacing: var(--faq-q-ls);
  font-weight: var(--faq-q-weight);
  text-box: trim-both cap alphabetic;
}

.type-faq-a {
  font-family: var(--font-sans);
  font-size: var(--faq-a-size);
  line-height: var(--faq-a-lh);
  letter-spacing: var(--faq-a-ls);
  font-weight: var(--faq-a-weight);
  text-box: trim-both cap alphabetic;
}

.type-testimonial {
  font-family: var(--font-sans);
  font-size: var(--testimonial-size);
  line-height: var(--testimonial-lh);
  letter-spacing: var(--testimonial-ls);
  font-weight: var(--testimonial-weight);
  text-box: trim-both cap alphabetic;
}


/* --- css/base/section-system.css --- */
/* base/section-system.css — section-level layout via data attributes, not
   modifier classes. Kept low-specificity with :where() so block CSS always
   wins without !important.

   data-section-pt / pb : none | s | m | l | xl   (top / bottom padding)
   data-section-bg      : light | dark | theme
   data-theme-section   : light | dark            (text colour coordination)
   Defaults (no attribute): pt = m, pb = m, bg none. */

/* Default rhythm: any .section without explicit attributes gets medium
   padding, so unconverted blocks still breathe. */
:where([class^="section_"]:not([data-section-pt]), [class*=" section_"]:not([data-section-pt])) { padding-top: var(--padding-s); }
:where([class^="section_"]:not([data-section-pb]), [class*=" section_"]:not([data-section-pb])) { padding-bottom: var(--padding-s); }

:where([data-section-pt="none"]) { padding-top: 0; }
:where([data-section-pt="s"])    { padding-top: var(--padding-xs); }
:where([data-section-pt="m"])    { padding-top: var(--padding-s); }
:where([data-section-pt="l"])    { padding-top: var(--padding-m); }
:where([data-section-pt="xl"])   { padding-top: var(--padding-l); }

:where([data-section-pb="none"]) { padding-bottom: 0; }
:where([data-section-pb="s"])    { padding-bottom: var(--padding-xs); }
:where([data-section-pb="m"])    { padding-bottom: var(--padding-s); }
:where([data-section-pb="l"])    { padding-bottom: var(--padding-m); }
:where([data-section-pb="xl"])   { padding-bottom: var(--padding-l); }

:where([data-section-bg="light"]) { background-color: var(--light-color); }
:where([data-section-bg="dark"])  { background-color: var(--dark-color); color: var(--light-color); }
:where([data-section-bg="theme"]) { background-color: var(--theme-color); color: var(--light-color); }

/* Section theming: set once on the <section>, everything inside inherits.
   Dark/primary sections retune the ink + line tokens so nested components
   stay readable without section-specific overrides. */
:where([data-theme-section="light"]) {
  background: var(--color-surface);
  color: var(--color-ink);
}
:where([data-theme-section="tint"]) {
  background: var(--color-surface-2);
  color: var(--color-ink);
}
:where([data-theme-section="dark"]) {
  background: var(--n-900);
  color: var(--n-50);
  /* Mapped aliases: inside a dark section every semantic token is re-pointed,
     so section CSS never needs to know its theme. */
  --color-ink: var(--n-50);
  --color-ink-soft: var(--n-300);
  --color-line: var(--n-700);
  --color-surface: var(--n-900);
  --color-surface-2: var(--n-700);
  --color-surface-3: var(--n-700);
  /* Buttons flip to a light pill so they don't sink into the dark band. */
  --btn-surface: var(--n-0);
  --btn-ink: var(--n-900);
  --btn-arrow-ink: var(--n-900);
  --btn-arrow-surface: var(--n-0);
}
:where([data-theme-section="primary"]) {
  background: var(--color-primary);
  color: var(--n-0);
  --color-ink: var(--n-0);
  --color-ink-soft: var(--n-100);
  --color-line: var(--n-500);
  /* Buttons flip to a light pill so they don't sink into the primary band. */
  --btn-surface: var(--n-0);
  --btn-ink: var(--n-900);
  --btn-arrow-ink: var(--n-900);
  --btn-arrow-surface: var(--n-0);
}

:where(section[data-section-pt], section[data-section-pb], section[data-section-bg]) {
  overflow: visible;
}


/* --- css/base/grid.css --- */
/* base/grid.css — the DC grid system (var-driven, Flip-animatable).
   A grid is: [data-layout-group data-layout-status="large|small"]
     > [data-layout-grid] > [data-layout-grid-collection]
       > .dc-grid[data-layout-grid-list] > .dc-grid__item[data-layout-grid-item]
   Column count + gap live in CSS vars, so layouts swap by attribute and
   js/components/grid-flip.js animates the change with GSAP Flip. */

.dc-grid {
  display: flex;
  flex-flow: wrap;
  column-gap: var(--column-gap, var(--gap-m));
  row-gap: var(--row-gap, var(--gap-l));
  position: relative;
  --columns: 3;
}

.dc-grid__item,
[data-layout-grid-item] {
  will-change: transform;
  position: relative;
  width: calc((100% - (var(--columns) - 1) * var(--column-gap, var(--gap-m))) / var(--columns));
}

[data-layout-status="large"] { --columns: 3; --column-gap: 1.5em; }
[data-layout-status="small"] { --columns: 5; --column-gap: 1em; }

/* Column presets for static grids (no flip needed) */
.dc-grid.is--2 { --columns: 2; }
.dc-grid.is--4 { --columns: 4; }

@media screen and (max-width: 991px) {
  .dc-grid, [data-layout-status] { --columns: 2; }
}
@media screen and (max-width: 479px) {
  .dc-grid, [data-layout-status] { --columns: 1; }
}


/* --- css/base/cols.css --- */
/* base/cols.css — the DC column primitive.

   A generic CSS-grid row that any section can instantiate. Column count and
   per-cell spans are CSS vars, not classes, so one primitive covers 2-col
   image/text, 3-col cards and asymmetric splits without a class per shape.

     <div class="dc-cols" style="--cols:3">
       <div class="dc-col" style="--span:2"> … </div>
       <div class="dc-col"> … </div>
     </div>

   Modes:
     (default)    gapped columns, transparent
     is-divided   hairline rules between cells — the grid paints the line
                  colour and each cell paints surface over it, so dividers
                  need no border maths and stay correct when cells wrap
     is-flush     no gap, no rules

   Not to be confused with .dc-grid (base/grid.css), which is the flex-based
   filterable/Flip collection grid. This one is page layout. */

.dc-cols {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), 1fr);
  gap: var(--gap-l);
  width: 100%;
}

.dc-cols > .dc-col {
  grid-column: span var(--span, 1);
  grid-row: span var(--row-span, 1);
  /* Grid items default to min-content; without this, long words and media
     blow the track out instead of shrinking. */
  min-width: 0;
  min-height: 0;
}

.dc-cols.is-divided {
  gap: 1px;
  background-color: var(--color-line);
}

.dc-cols.is-divided > .dc-col {
  background-color: var(--color-surface);
  padding: var(--col-pad, var(--gap-l));
}

.dc-cols.is-flush { gap: 0; }

.dc-cols.is-middle { align-items: center; }

@media screen and (max-width: 767px) {
  .dc-cols { grid-template-columns: 1fr; }
  .dc-cols > .dc-col { grid-column: 1 / -1; }
}


/* --- css/components/chip.css --- */
/* components/chip.css — the suggestion chip (Figma Elements > Suggestion
   chips: border style on light 1972:94169, on dark 1972:95071, fill style on
   accent 1972:94507). One chip for every chip cloud: the mega menu's popular
   topics, nav search, the resource hero, the resource listing, the
   wayfinding and discover clouds, a design's key features.

   40 tall, 20 in, 16/580 label, an optional 22 mono icon 8 from it. The
   surface comes from the nearest [data-surface]: none = light (1.5 line,
   icon at half strength), "dark" (light line and ink), "accent" (filled
   #f9f9f9, no line). Hover on a link or button: the 2px ring (accent, or
   charcoal on accent), the card shadow, the icon at full strength, and on
   light/dark the chip fills. The 2px is the 1.5 line plus a 0.5 inset ring,
   so nothing moves. A chip that is not a link (a feature tag) never hovers.
   A toggle chip (aria-pressed, the booking popup's regions) stays in the
   hover look while picked. */

.chip {
  --chip-ink: var(--brand-charcoal);
  --chip-bg: transparent;
  --chip-line: rgb(50 50 50 / 0.2);
  --chip-icon: 0.5;
  --chip-bg-hover: var(--brand-group-white);
  --chip-line-hover: var(--color-accent-line);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-03);
  min-width: calc(75 * var(--px));
  height: calc(40 * var(--px));
  padding: 0 calc(20 * var(--px));
  border: 1.5px solid var(--chip-line);
  border-radius: var(--radius-full);
  background-color: var(--chip-bg);
  color: var(--chip-ink);
  font-family: var(--font-sans);
  font-size: calc(16 * var(--px));
  font-weight: 580;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background-color var(--animation-default-half),
    border-color var(--animation-default-half),
    box-shadow var(--animation-default-half);
}

.chip__icon {
  flex: none;
  width: calc(22 * var(--px));
  height: calc(22 * var(--px));
  object-fit: contain;
  opacity: var(--chip-icon);
  transition: opacity var(--animation-default-half);
}

:is(a, button).chip:hover,
:is(a, button).chip:focus-visible,
.chip[aria-pressed="true"] {
  --chip-icon: 1;
  border-color: var(--chip-line-hover);
  background-color: var(--chip-bg-hover);
  box-shadow:
    inset 0 0 0 0.5px var(--chip-line-hover),
    0 3px 4px rgb(0 0 0 / 0.03),
    0 0 3px rgb(0 0 0 / 0.12);
  outline: none;
}

[data-surface="dark"] .chip {
  --chip-ink: var(--color-text-light);
  --chip-line: rgb(242 242 242 / 0.15);
  --chip-bg-hover: #252525;
}

[data-surface="accent"] .chip {
  --chip-bg: var(--brand-group-white);
  --chip-line: transparent;
  --chip-icon: 1;
  --chip-line-hover: var(--brand-charcoal);
}


/* --- css/components/brand-tile.css --- */
/* components/brand-tile.css — dc_brand_tile(): a brand's colour with its full
   logo centred (Figma Group homepage "Brand" 2235:112783: 448 x 298.67 tile,
   260 logo = 58% of the width; careers jobCard brand-img 2266:169051). */

.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-m);
  background-color: var(--brand-haven-green);
}

.brand-tile[data-tile-brand="invest"] { background-color: var(--brand-sky-blue); }
.brand-tile[data-tile-brand="financial"] { background-color: var(--brand-nectar); }

.brand-tile__logo {
  display: block;
  width: 58%;
  height: auto;
}


/* --- css/core/nav.css --- */
/* core/nav.css — the DC mega navigation (see js/components/mega-nav.js and
   header.php for the markup contract). Token-driven; recoded from the vault
   reference. Desktop: floating bar + morphing dropdown. Mobile (≤991px):
   burger + slide-over panels. */

/* Declared on :root as well so page content (the hero's top padding) can
   read the bar's resting height; the scrolled / open overrides stay on the
   nav itself. Without it the hero fell back to 140px at every width. */
:root,
[data-menu-wrap] {
  --nav-height: clamp(60px, 10vw, 140px);
}

.mega-nav {
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.mega-nav__bar {
  z-index: 3;
  width: 100%;
  position: relative;
  background-color: var(--color-surface);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
}

.mega-nav__container {
  height: var(--nav-height);
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--container-padding);
  margin-inline: auto;
  display: flex;
  max-width: var(--size-container-max);
}

.mega-nav__bar-start {
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  display: flex;
  position: relative;
}

.mega-nav__bar-logo {
  flex: none;
  margin-right: 6.5em;
  display: flex;
  font-weight: 550;
  letter-spacing: -0.02em;
  aspect-ratio: 174 / 25;
  height: 1.56em;
  min-width: 125px;
}

.mega-nav__bar-logo img {
  max-height: 2.5em;
  width: auto;
}

.mega-nav__bar-logo-wrapper svg {
  height: auto;
  width: 100% !important;
  overflow: visible;
}

.mega-nav__bar-list {
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
}

.mega-nav__bar-link {
  color: var(--color-ink);
  background-color: transparent;
  border: none;
  border-radius: var(--radius-s);
  justify-content: flex-start;
  align-items: center;
  padding: 10px 1.5em;
  text-decoration: none;
  display: flex;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-soft);
}

.mega-nav__bar-link:hover {
  background-color: var(--color-surface-2);
}

/* The item the current page sits under (set by dcNavMarkCurrent in
   js/components/nav-theme.js) rests in its hover state on desktop. */
@media (min-width: 992px) {
  .mega-nav__bar-link[data-nav-current] {
    background-color: var(--color-surface-2);
  }
}

.mega-nav__bar-link-label {
  font-weight: 650;
  line-height: 1.2;
}

.mega-nav__bar-link-icon {
  width: 1.25em;
  display: none;
}

.mega-nav__bar-list.is--utils {
  margin-left: auto;
}

/* Primary action is .btn.is-enquire (components/button.css). */
.mega-nav__bar-cta {
  justify-content: center;
  align-items: center;
  padding: 0.375em 0.625em;
  text-decoration: none;
  display: flex;
  color: var(--color-ink);
  background-color: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-s);
}

.mega-nav__bar-cta.is--secondary:hover {
  background-color: var(--color-surface-2);
}

.mega-nav__bar-end {
  gap: 0.75em;
  justify-content: flex-end;
  align-items: center;
  display: none;
}

.mega-nav__burger {
  gap: 0.2em;
  background-color: var(--color-surface-2);
  border: none;
  border-radius: var(--radius-s);
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 2.5em;
  height: 2.5em;
  padding: 0;
  display: flex;
  cursor: pointer;
}

.mega-nav__burger-line {
  z-index: 1;
  background-color: var(--color-ink);
  border-radius: 0.125em;
  flex: none;
  width: 1.25em;
  height: 0.125em;
  padding: 0;
  display: block;
  position: relative;
}

.mega-nav__back {
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: -0.625em;
}

.mega-nav__backdrop {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.25);
  position: fixed;
  inset: 0%;
}

.mega-nav__dropdown-wrapper {
  z-index: 2;
  pointer-events: none;
  width: 100%;
  max-width: var(--size-container-max);
  margin-inline: auto;
  position: absolute;
  top: calc(100% - 15px);
  left: 0;
  right: 0;
}

.mega-nav__dropdown-container {
  position: relative;
}

.mega-nav__dropdown-bg {
  will-change: transform;
  background-color: var(--color-surface-2);
  border-bottom-right-radius: var(--radius-s);
  border-bottom-left-radius: var(--radius-s);
  position: absolute;
  top: 0;
  height: 100%;
  width: 100vw;
  left: calc(50% - 50vw);
}

.mega-nav__dropdown-panel {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  position: absolute;
  inset: 0 0 auto;
}

.mega-nav__dropdown-inner {
  display: flex;
}

.mega-nav__panel-col {
  gap: 1.25em;
  border-right: 1px solid var(--color-line);
  flex-flow: column;
  flex: 1;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 2.5em 1.5em;
  display: flex;
}

.mega-nav__panel-col:last-of-type {
  border: none;
}

.mega-nav__panel-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-soft);
  padding: 10px 22px;
  font-size: 0.8em;
  line-height: 1;
}

.mega-nav__panel-list {
  flex-flow: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.mega-nav__panel-link {
  color: var(--color-ink);
  border-radius: var(--radius-s);
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 10px 22px;
  text-decoration: none;
  display: flex;
  transition: background-color var(--duration-fast) var(--ease-soft);
}

.mega-nav__panel-link:hover {
  background-color: var(--color-surface-2);
}

.mega-nav__panel-link-text {
  font-weight: 500;
}

.mega-nav__panel-link-desc {
  opacity: 0.6;
  font-size: 0.875em;
  font-weight: 400;
}

/* Push the page content below the floating bar, by exactly the bar's
   resting height (Chris, 9 Oct 2026; it was a flat 84 under a 140 bar, so
   the top 56 of plain pages hid behind it). --nav-offset is that height for
   this page: the :root --nav-height on desktop, and on phones the solid
   bar's 59 on inner pages (nav-theme.js keeps data-nav-solid current across
   Barba swaps). Heroes that sit behind the bar pull up by the same amount.
   html body (0,0,2): WordPress prints a body{padding-top:0} reset in its
   global styles on pages whose content holds blocks, after this bundle. */
html body {
  --nav-offset: var(--nav-height);
  padding-top: calc(var(--nav-offset) + var(--admin-bar));
}

/* Logged in, WordPress's toolbar sits above the header (functions.php turns
   off its html margin bump). --admin-bar is its height, else 0: the header
   drops by it, the body pads by it, and every sticky offset adds it, so the
   page measures the same logged in or out. On phones (<=600) the toolbar
   scrolls with the page and would cover the bar, so it is hidden there. */
:root { --admin-bar: 0px; }
.admin-bar { --admin-bar: var(--wp-admin--admin-bar--height, 0px); }
.admin-bar .mega-nav { top: var(--admin-bar); }

@media screen and (max-width: 600px) {
  .admin-bar { --admin-bar: 0px; }
  #wpadminbar { display: none; }
}

@media screen and (max-width: 991px) {
  .mega-nav {
    top: 0;
    left: 0;
    right: 0;
  }

  html body:has([data-menu-wrap][data-nav-solid="true"]) { --nav-offset: 59px; }

  .mega-nav__bar-start {
    justify-content: space-between;
    align-items: center;
  }

  .mega-nav__bar-list {
    gap: 0;
    flex-flow: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    display: block;
  }

  .mega-nav__bar-list.is--actions {
    gap: 1em;
    flex-flow: row;
    justify-content: space-between;
    align-items: stretch;
  }

  .mega-nav__bar-action {
    flex: 1;
  }

  .mega-nav__bar-cta {
    padding: 1em 0.75em 1em 1em;
  }

  .mega-nav__bar-link {
    border-bottom: 1px solid var(--color-line);
    border-radius: 0;
    width: 100%;
    padding: 0.75em 0;
    font-size: 1.25em;
    background: none;
  }

  .mega-nav__bar-link.is--dropdown {
    justify-content: space-between;
    align-items: center;
  }

  .mega-nav__bar-link.is--back {
    border-bottom-style: none;
    font-size: 1em;
  }

  .mega-nav__bar-link-label {
    font-size: 1.25em;
  }

  .mega-nav__bar-link-icon {
    width: 1.5em;
    display: none;
  }

  .mega-nav__bar-link-icon.is--dropdown {
    transform: rotate(-90deg);
  }

  .mega-nav__bar-end {
    display: flex;
  }

  .mega-nav__bar-inner {
    opacity: 0;
    bottom: 0%;
    left: 0%;
    right: 0%;
    top: var(--nav-height);
    visibility: hidden;
    background-color: var(--color-surface);
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
    padding: 2em 1.5em;
    position: fixed;
    overflow: auto;
  }

  .mega-nav__backdrop {
    display: none;
  }

  .mega-nav__dropdown-wrapper {
    z-index: 4;
    bottom: 0;
    top: var(--nav-height);
    position: fixed;
  }

  .mega-nav__dropdown-container {
    height: 100%;
    overflow: auto;
  }

  .mega-nav__dropdown-bg {
    display: none;
  }

  .mega-nav__dropdown-panel {
    background-color: var(--color-surface);
    bottom: 0;
    overflow: auto;
  }

  .mega-nav__dropdown-inner {
    flex-flow: column;
  }

  .mega-nav__panel-col {
    border-bottom: 1px solid var(--color-line);
    border-right-style: none;
    padding-top: 1.5em;
    padding-bottom: 1.5em;
  }

  .mega-nav__panel-label {
    width: 100%;
  }
}

@media screen and (min-width: 992px) {
  .mega-nav__bar-inner {
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    display: flex;
  }

  /* Utilities/actions cluster to the right; the first right-cluster list
     carries the auto margin so utils + actions stay together. */
  .mega-nav__bar-list.is--actions,
  .mega-nav__bar-list.is--utils {
    margin-left: auto;
  }

  .mega-nav__bar-list.is--utils~.mega-nav__bar-list.is--actions {
    margin-left: 0;
  }
}

@media screen and (max-width: 479px) {
  .mega-nav__bar-link-label {
    font-size: 1em;
  }

  .mega-nav__bar-link-icon {
    width: 1.375em;
  }
}

/* ---------------------------------------------------------------- */
/* Section-aware nav theming (js/components/nav-theme.js — vault
   check-section-theme-on-scroll). data-nav-theme mirrors the section under
   the bar; over dark media the bar goes transparent with light items, and
   hover / open / mobile restores the solid surface. Desktop only — the
   mobile slide-over keeps the solid bar. */

.mega-nav__bar {
  transition: background-color 0.35s ease;
}

.mega-nav__bar-link,
.mega-nav__bar-logo {
  transition: color 0.35s ease;
}

@media (min-width: 992px) {
  [data-nav-theme="dark"] .mega-nav__bar {
    background-color: transparent;
  }

  [data-nav-theme="dark"] .mega-nav__bar-link,
  [data-nav-theme="dark"] .mega-nav__bar-logo {
    color: var(--n-0);
  }

  /* The restored surface slides down from above instead of fading in: a
     ::before layer behind the bar content (the bar is its own stacking
     context, so z-index -1 stays inside it). Parked past its own shadow so
     no edge peeks in at rest. */
  [data-nav-theme="dark"] .mega-nav__bar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background-color: var(--color-accent);
    box-shadow: 0 0 7px 6px rgba(30, 30, 30, 0.05);
    transform: translateY(calc(-100% - 20px));
    transition:
      transform var(--animation-default),
      background-color var(--animation-default-half);
    pointer-events: none;
  }

  /* White while the mega menu is open, so the bar joins the dropdown panel. */
  [data-nav-theme="dark"][data-menu-open="true"] .mega-nav__bar::before {
    background-color: var(--n-0);
  }

  [data-nav-theme="dark"] .mega-nav__bar:hover::before,
  [data-nav-theme="dark"][data-menu-open="true"] .mega-nav__bar::before,
  [data-nav-theme="dark"][data-nav-scrolled="true"] .mega-nav__bar::before {
    transform: translateY(0);
  }

  [data-nav-theme="dark"] .mega-nav__bar:hover .mega-nav__bar-link,
  [data-nav-theme="dark"] .mega-nav__bar:hover .mega-nav__bar-logo,
  [data-nav-theme="dark"][data-menu-open="true"] .mega-nav__bar-link,
  [data-nav-theme="dark"][data-menu-open="true"] .mega-nav__bar-logo,
  [data-nav-theme="dark"][data-nav-scrolled="true"] .mega-nav__bar-link,
  [data-nav-theme="dark"][data-nav-scrolled="true"] .mega-nav__bar-logo {
    color: var(--nav-restore-ink, var(--color-ink));
  }
}

/* Inline SVG logo (header.php falls back to img/logo.svg when no ACF logo is
   set). Fills are currentColor so the mark follows the nav's ink as
   nav-theme.js flips between light and dark contexts. */
.mega-nav__bar-logo-svg {
  display: block;
  width: auto;
  height: 29px;
  color: currentColor;
}

@media (max-width: 767px) {
  .mega-nav__bar-logo-svg {
    height: 1.875em;
  }
}

/* Region switcher (Figma btn-topNav-region). A native <select> so it works
   without JS: .mega-nav__region is the 40px chip (pin + caret drawn on it),
   the select fills it and carries the label, so the whole chip is the
   click target. Colours per bar context match the search button:
     on silver (light bar)        rest charcoal 10% / charcoal  hover accent / charcoal
     on media  (dark bar at rest) rest charcoal 30% / silver    hover charcoal / silver
     on accent (dark bar hovered) rest charcoal 10% / charcoal  hover charcoal / silver
   The label shows the current region, "Region" when none (the
   locale_region_plain_label filter in includes/helpers.php). */
.mega-nav__region {
  --region-bg: color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  --region-ink: var(--brand-charcoal);
  --region-bg-hover: var(--color-accent);
  --region-ink-hover: var(--brand-charcoal);

  position: relative;
  display: inline-flex;
  align-items: center;
  height: calc(40 * var(--px));
  border-radius: var(--radius-s);
  background-color: var(--region-bg);
  color: var(--region-ink);
  transition:
    background-color var(--animation-default-half),
    border-radius var(--animation-default-half),
    color var(--animation-default-half);
}

.mega-nav__region:hover {
  background-color: var(--region-bg-hover);
  color: var(--region-ink-hover);
  border-radius: calc(20 * var(--px));
}

.mega-nav__region::before,
.mega-nav__region::after {
  content: '';
  position: absolute;
  top: 50%;
  background-color: currentColor;
  pointer-events: none;
}

.mega-nav__region::before {
  left: calc(12 * var(--px));
  width: calc(16 * var(--px));
  height: calc(16 * var(--px));
  margin-top: calc(-8 * var(--px));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath transform='translate%281.906 .5%29' d='M 6.094 4.5 C 6.922 4.5 7.594 5.172 7.594 6 C 7.594 6.828 6.922 7.5 6.094 7.5 C 5.265 7.5 4.594 6.828 4.594 6 C 4.594 5.172 5.265 4.5 6.094 4.5 Z M 6.094 0 C 7.826 0 9.274 0.589 10.439 1.768 C 11.605 2.946 12.188 4.408 12.188 6.152 C 12.188 7.415 11.686 8.776 10.684 10.234 C 9.681 11.693 8.151 13.281 6.094 15 C 4.049 13.294 2.523 11.709 1.514 10.244 C 0.505 8.779 0 7.415 0 6.152 C 0 4.517 0.509 3.13 1.527 1.992 L 1.738 1.768 C 2.897 0.589 4.349 0 6.094 0 Z M 6.094 1.25 C 4.663 1.25 3.54 1.72 2.63 2.645 C 1.715 3.575 1.25 4.715 1.25 6.152 C 1.25 7.078 1.621 8.197 2.543 9.535 C 3.336 10.686 4.509 11.959 6.093 13.353 C 7.689 11.947 8.866 10.672 9.653 9.526 C 10.568 8.196 10.938 7.08 10.938 6.152 C 10.938 4.717 10.471 3.577 9.551 2.646 C 8.632 1.717 7.508 1.25 6.094 1.25 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath transform='translate%281.906 .5%29' d='M 6.094 4.5 C 6.922 4.5 7.594 5.172 7.594 6 C 7.594 6.828 6.922 7.5 6.094 7.5 C 5.265 7.5 4.594 6.828 4.594 6 C 4.594 5.172 5.265 4.5 6.094 4.5 Z M 6.094 0 C 7.826 0 9.274 0.589 10.439 1.768 C 11.605 2.946 12.188 4.408 12.188 6.152 C 12.188 7.415 11.686 8.776 10.684 10.234 C 9.681 11.693 8.151 13.281 6.094 15 C 4.049 13.294 2.523 11.709 1.514 10.244 C 0.505 8.779 0 7.415 0 6.152 C 0 4.517 0.509 3.13 1.527 1.992 L 1.738 1.768 C 2.897 0.589 4.349 0 6.094 0 Z M 6.094 1.25 C 4.663 1.25 3.54 1.72 2.63 2.645 C 1.715 3.575 1.25 4.715 1.25 6.152 C 1.25 7.078 1.621 8.197 2.543 9.535 C 3.336 10.686 4.509 11.959 6.093 13.353 C 7.689 11.947 8.866 10.672 9.653 9.526 C 10.568 8.196 10.938 7.08 10.938 6.152 C 10.938 4.717 10.471 3.577 9.551 2.646 C 8.632 1.717 7.508 1.25 6.094 1.25 Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mega-nav__region::after {
  right: calc(12 * var(--px));
  width: calc(16 * var(--px));
  height: calc(20 * var(--px));
  margin-top: calc(-10 * var(--px));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath transform='translate%283.29 7.29%29' d='M 4.711 5.485 L 0 0.774 L 0.774 0 L 4.711 3.938 L 8.649 0 L 9.423 0.774 L 4.711 5.485 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath transform='translate%283.29 7.29%29' d='M 4.711 5.485 L 0 0.774 L 0.774 0 L 4.711 3.938 L 8.649 0 L 9.423 0.774 L 4.711 5.485 Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The visible label: rolls on hover like .btn (dc_button_label()). */
.mega-nav__region-label {
  display: flex;
  align-items: center;
  height: 100%;
  /* 12 edge + 16 icon + 5 gap on each side */
  padding: 0 calc(33 * var(--px));
  font-family: var(--font-sans);
  font-size: calc(13 * var(--px));
  font-weight: 600;
  line-height: 1;
  letter-spacing: calc(0.25 * var(--px));
  white-space: nowrap;
}

.mega-nav__region-label .btn__label,
.mega-nav__region-label .btn__text { height: 1.25em; line-height: 1.25; }

/* The real control: invisible, over the whole chip, so clicks, keyboard and
   screen readers all reach the native select. */
.mega-nav__region-select {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  opacity: 0;
  appearance: none;
  font: inherit;
  cursor: pointer;
}

/* "A region is chosen": a ring that pulses out once on the page that loads
   with a region selected (decided server-side), then clears. */
.mega-nav__region:has(option:checked:not([data-region=""])) {
  animation: mega-nav-region-chosen 1.4s var(--cubic-default) 0.4s both;
}

@keyframes mega-nav-region-chosen {
  from { outline: 2px solid currentColor; outline-offset: 2px; }
  to   { outline: 2px solid transparent; outline-offset: 14px; }
}

/* Keyboard focus borrows the hover state instead of the outline, so choosing
   a region does not flash the "chosen" ring before the reload. */
.mega-nav__region-select:focus-visible { outline: none; }

.mega-nav__region:has(.mega-nav__region-select:focus-visible) {
  background-color: var(--region-bg-hover);
  color: var(--region-ink-hover);
  border-radius: calc(20 * var(--px));
}

/* The open list is OS-drawn: keep it readable whatever the bar is doing. */
.mega-nav__region-select option {
  background-color: var(--brand-white);
  color: var(--brand-charcoal);
}

[data-nav-theme="dark"] .mega-nav__bar:not(:hover) .mega-nav__region {
  --region-bg: color-mix(in srgb, var(--brand-charcoal) 30%, transparent);
  --region-ink: var(--brand-silver);
  --region-bg-hover: var(--brand-charcoal);
  --region-ink-hover: var(--brand-silver);
}

[data-nav-theme="dark"] .mega-nav__bar:hover .mega-nav__region {
  --region-bg: color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  --region-ink: var(--brand-charcoal);
  --region-bg-hover: var(--brand-charcoal);
  --region-ink-hover: var(--brand-silver);
}

/* Search button (Figma btn-topNav-search). 40x40, 8px corners easing to a
   circle; the glyph rolls down on hover (a fresh one drops in from above).
   One masked layer carries both glyphs so the roll clips to the 24px icon
   window, as in Figma. The markup's outline svg is swapped for the Figma
   filled glyph. Colours per bar context:
     on silver (light bar)        rest charcoal 10% / charcoal  hover accent / charcoal
     on media  (dark bar at rest) rest charcoal 30% / silver    hover charcoal / silver
     on accent (dark bar hovered) rest charcoal 10% / charcoal  hover charcoal / silver */
.mega-nav__bar-link.is--search {
  --search-bg: color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  --search-ink: var(--brand-charcoal);
  --search-bg-hover: var(--color-accent);
  --search-ink-hover: var(--brand-charcoal);
  --search-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='translate%283.404 3.404%29' d='M 16.138 17.192 L 9.858 10.911 C 9.358 11.324 8.782 11.647 8.132 11.881 C 7.482 12.114 6.81 12.231 6.115 12.231 C 4.408 12.231 2.961 11.638 1.777 10.454 C 0.592 9.269 0 7.823 0 6.115 C 0 4.408 0.592 2.961 1.777 1.777 C 2.961 0.592 4.408 0 6.115 0 C 7.823 0 9.269 0.592 10.454 1.777 C 11.638 2.961 12.231 4.408 12.231 6.115 C 12.231 6.829 12.111 7.512 11.871 8.162 C 11.631 8.812 11.311 9.377 10.911 9.858 L 17.192 16.138 L 16.138 17.192 Z M 6.115 10.731 C 7.404 10.731 8.495 10.284 9.389 9.389 C 10.284 8.495 10.731 7.404 10.731 6.115 C 10.731 4.827 10.284 3.735 9.389 2.841 C 8.495 1.947 7.404 1.5 6.115 1.5 C 4.827 1.5 3.735 1.947 2.841 2.841 C 1.947 3.735 1.5 4.827 1.5 6.115 C 1.5 7.404 1.947 8.495 2.841 9.389 C 3.735 10.284 4.827 10.731 6.115 10.731 Z'/%3E%3C/svg%3E");

  position: relative;
  flex: none;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  padding: 0;
  border-radius: var(--radius-s);
  background-color: var(--search-bg);
  transition:
    background-color var(--animation-default-half),
    border-radius var(--animation-default-half);
}

.mega-nav__bar-link.is--search .mega-nav__bar-link-icon {
  display: none;
}

.mega-nav__bar-link.is--search::before {
  content: '';
  position: absolute;
  inset: calc(8 * var(--px));
  background-color: var(--search-ink);
  -webkit-mask: var(--search-glyph) no-repeat, var(--search-glyph) no-repeat;
  mask: var(--search-glyph) no-repeat, var(--search-glyph) no-repeat;
  -webkit-mask-size: 100% 100%, 100% 100%;
  mask-size: 100% 100%, 100% 100%;
  -webkit-mask-position: 0 0, 0 calc(-24 * var(--px));
  mask-position: 0 0, 0 calc(-24 * var(--px));
  transition:
    -webkit-mask-position var(--animation-default),
    mask-position var(--animation-default),
    background-color var(--animation-default-half);
}

.mega-nav__bar-link.is--search:hover {
  background-color: var(--search-bg-hover);
  border-radius: calc(20 * var(--px));
}

.mega-nav__bar-link.is--search:hover::before {
  background-color: var(--search-ink-hover);
  -webkit-mask-position: 0 calc(24 * var(--px)), 0 0;
  mask-position: 0 calc(24 * var(--px)), 0 0;
}

.mega-nav__bar-link.is--search:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Dark bar over media at rest. Matches brand.css's .is--util chip selector
   plus .is--search, so it wins over that rule's padding. */
[data-nav-theme="dark"] .mega-nav__bar:not(:hover) .mega-nav__bar-link.is--util.is--search {
  --search-bg: color-mix(in srgb, var(--brand-charcoal) 30%, transparent);
  --search-ink: var(--brand-silver);
  --search-bg-hover: var(--brand-charcoal);
  --search-ink-hover: var(--brand-silver);
  padding: 0;
  border-radius: var(--radius-s);
}

/* Dark bar restored to the accent surface (bar hovered or menu open). */
[data-nav-theme="dark"] .mega-nav__bar:hover .mega-nav__bar-link.is--search {
  --search-bg: color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  --search-ink: var(--brand-charcoal);
  --search-bg-hover: var(--brand-charcoal);
  --search-ink-hover: var(--brand-silver);
}

/* Menu items + the region chip roll their label on hover, like .btn. */
.mega-nav__bar-link:hover .btn__roll,
.mega-nav__region:hover .btn__roll {
  transform: translateY(-50%);
}

/* Sticky (menu closed): the bar is accent, so the chips use their on-accent
   colours whatever section is underneath. Same specificity as the on-media
   rules and later; background-color repeated over brand.css's util chip. */
[data-nav-scrolled="true"]:not([data-menu-open="true"]) .mega-nav__bar .mega-nav__region,
[data-nav-scrolled="true"]:not([data-menu-open="true"]) .mega-nav__bar .mega-nav__bar-link.is--util.is--search,
[data-nav-solid="true"]:not([data-menu-open="true"]) .mega-nav__bar .mega-nav__region,
[data-nav-solid="true"]:not([data-menu-open="true"]) .mega-nav__bar .mega-nav__bar-link.is--util.is--search {
  --region-bg: color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  --region-ink: var(--brand-charcoal);
  --region-bg-hover: var(--brand-charcoal);
  --region-ink-hover: var(--brand-silver);
  --search-bg: color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  --search-ink: var(--brand-charcoal);
  --search-bg-hover: var(--brand-charcoal);
  --search-ink-hover: var(--brand-silver);
}

[data-nav-scrolled="true"]:not([data-menu-open="true"]) .mega-nav__bar .mega-nav__bar-link.is--util.is--search,
[data-nav-solid="true"]:not([data-menu-open="true"]) .mega-nav__bar .mega-nav__bar-link.is--util.is--search {
  background-color: var(--search-bg);
  backdrop-filter: none;
}

[data-nav-scrolled="true"]:not([data-menu-open="true"]) .mega-nav__bar .mega-nav__bar-link.is--util.is--search:hover,
[data-nav-solid="true"]:not([data-menu-open="true"]) .mega-nav__bar .mega-nav__bar-link.is--util.is--search:hover {
  background-color: var(--search-bg-hover);
}

/* Mega menu open: the bar is white, so the chips use their on-silver
   colours (charcoal ink, accent hover). Matches the on-media selectors'
   specificity and comes later, and repeats background-color because
   brand.css paints the .is--util chip directly over media. */
[data-nav-theme="dark"][data-menu-open="true"] .mega-nav__bar .mega-nav__region,
[data-nav-theme="dark"][data-menu-open="true"] .mega-nav__bar .mega-nav__bar-link.is--util.is--search {
  --region-bg: color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  --region-ink: var(--brand-charcoal);
  --region-bg-hover: var(--color-accent);
  --region-ink-hover: var(--brand-charcoal);
  --search-bg: color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  --search-ink: var(--brand-charcoal);
  --search-bg-hover: var(--color-accent);
  --search-ink-hover: var(--brand-charcoal);
}

[data-nav-theme="dark"][data-menu-open="true"] .mega-nav__bar .mega-nav__bar-link.is--util.is--search {
  background-color: var(--search-bg);
  backdrop-filter: none;
}

[data-nav-theme="dark"][data-menu-open="true"] .mega-nav__bar .mega-nav__bar-link.is--util.is--search:hover {
  background-color: var(--search-bg-hover);
}

/* Sticky state: past 150px of scroll (initNavSticky in nav-theme.js). Desktop
   only (the mobile bar keeps its own height). The bar compacts to 80px and
   turns accent; the dark theme slides its accent layer in (above), the light
   theme's solid bar changes colour, and both go white when the menu opens. */
.mega-nav__container {
  transition: height var(--animation-default);
}

/* The logo's brand word fades out rather than being cut off: the wrapper
   hugs the whole SVG and a mask keeps the wordmark (the logo box's 1.56em)
   solid while the part below fades to --logo-word-alpha. Registered so the
   mask gradient itself transitions. */
@property --logo-word-alpha {
  syntax: '<number>';
  inherits: false;
  initial-value: 1;
}

/* The lockup art touches the bottom of its viewBox, so at fractional scales
   (e.g. Windows 125% / 150%) the svg box and this mask shaved the last pixel
   row off HOMES. A 3px bleed below (cancelled by the margin) gives it room. */
.mega-nav__bar-logo-wrapper {
  align-self: flex-start;
  padding-bottom: 3px;
  margin-bottom: -3px;
  --logo-word-alpha: 1;
  -webkit-mask-image: linear-gradient(#000 0 1.56em, rgb(0 0 0 / var(--logo-word-alpha)) 1.56em);
  mask-image: linear-gradient(#000 0 1.56em, rgb(0 0 0 / var(--logo-word-alpha)) 1.56em);
  transition: --logo-word-alpha var(--animation-default);
}

@media (min-width: 992px) {
  [data-menu-wrap][data-nav-scrolled="true"] {
    --nav-height: calc(80 * var(--px));
  }

  [data-nav-scrolled="true"] .mega-nav__bar-logo-wrapper {
    --logo-word-alpha: 0;
  }

  [data-nav-theme="light"][data-nav-scrolled="true"] .mega-nav__bar,
  [data-nav-solid="true"] .mega-nav__bar {
    background-color: var(--color-accent);
  }

  [data-nav-theme="light"][data-nav-scrolled="true"][data-menu-open="true"] .mega-nav__bar,
  [data-nav-solid="true"][data-menu-open="true"] .mega-nav__bar {
    background-color: var(--n-0);
  }
}

/* Enquire on the accent bar (Figma btn-topNav-enquire menuBg=onAccent): the
   brand shape goes silver so it does not vanish into the accent surface. Not
   while the menu is open, when the bar is white and the accent shape reads. */
[data-nav-theme="dark"]:not([data-menu-open="true"]) .mega-nav__bar:hover .btn.is-enquire .brand-shape::before,
[data-nav-theme="dark"]:not([data-menu-open="true"]) .mega-nav__bar:hover .btn.is-enquire .brand-shape::after,
[data-nav-scrolled="true"]:not([data-menu-open="true"]) .btn.is-enquire .brand-shape::before,
[data-nav-scrolled="true"]:not([data-menu-open="true"]) .btn.is-enquire .brand-shape::after,
[data-nav-solid="true"]:not([data-menu-open="true"]) .btn.is-enquire .brand-shape::before,
[data-nav-solid="true"]:not([data-menu-open="true"]) .btn.is-enquire .brand-shape::after {
  background-color: var(--brand-silver);
}

/* Mobile bar (Figma homepage mobile 1154:42729): 22px logo, a plain Enquire
   button beside a bare 16px burger. Over the hero ([data-nav-theme="dark"])
   the bar is transparent with light ink; open or sticky it turns accent. */
@media (max-width: 991px) {
  :root,
  [data-menu-wrap] {
    --nav-height: 72px;
  }

  .mega-nav__bar-start {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .mega-nav__bar-logo {
    height: 22px;
    min-width: 0;
    margin-right: 0;
  }

  .mega-nav__bar-end {
    gap: calc(12 * var(--px));
  }

  /* .btn loads after core/nav.css at the same specificity, so the bar
     scopes this one to keep the 14px label (Figma navBarMobile). */
  .mega-nav__bar .mega-nav__mobile-enquire {
    height: 35px;
    padding: 2px 20px 0;
    font-size: 14px;
  }

  .mega-nav__bar { border-radius: 0 0 8px 8px; }

  .mega-nav__burger {
    gap: 3px;
    width: calc(32 * var(--px));
    height: calc(32 * var(--px));
    background: none;
    color: var(--brand-charcoal);
  }

  .mega-nav__burger-line {
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background-color: currentColor;
  }

  .mega-nav__bar {
    transition: background-color var(--animation-default-half);
  }

  .mega-nav__bar-logo,
  .mega-nav__burger {
    transition: color var(--animation-default-half);
  }

  [data-nav-theme="dark"] .mega-nav__bar {
    background-color: transparent;
  }

  [data-nav-theme="dark"] .mega-nav__bar-logo,
  [data-nav-theme="dark"] .mega-nav__burger {
    color: var(--n-0);
  }

  [data-menu-open="true"] .mega-nav__bar,
  [data-nav-scrolled="true"] .mega-nav__bar,
  [data-nav-solid="true"] .mega-nav__bar,
  [data-nav-theme="dark"][data-menu-open="true"] .mega-nav__bar,
  [data-nav-theme="dark"][data-nav-scrolled="true"] .mega-nav__bar {
    background-color: var(--color-accent);
  }

  [data-nav-theme="dark"][data-menu-open="true"] .mega-nav__bar-logo,
  [data-nav-theme="dark"][data-menu-open="true"] .mega-nav__burger,
  [data-nav-theme="dark"][data-nav-scrolled="true"] .mega-nav__bar-logo,
  [data-nav-theme="dark"][data-nav-scrolled="true"] .mega-nav__burger {
    color: var(--brand-charcoal);
  }
}

@media (min-width: 992px) {
  .mega-nav__mobile-enquire {
    display: none;
  }
}

/* Mobile slide-over (Figma mobileMenu-homes-1.1 / 1.2, 899:42592 / 899:42620).
   Open bar 59px with the LOCALE word only and a silver brand-shape close
   button; root screen = region strip, 25px items with arrows, sticky
   Search + Enquire footer. A panel swaps the logo for a back arrow + the
   section name (mega-nav.js fills [data-mobile-back-label]). */
@media (max-width: 991px) {
  [data-menu-wrap][data-menu-open="true"],
  [data-menu-wrap][data-nav-scrolled="true"],
  [data-menu-wrap][data-nav-solid="true"] {
    --nav-height: 59px;
  }

  /* Solid and sticky bars show the LOCALE word only, like the open menu
     (Figma navBarMobile 1740:45732: the logo box clips to the wordmark). */
  [data-nav-scrolled="true"] .mega-nav__bar-logo-wrapper,
  [data-nav-solid="true"] .mega-nav__bar-logo-wrapper {
    --logo-word-alpha: 0;
  }

  [data-menu-open="true"] .mega-nav__bar {
    border-radius: 0;
    box-shadow: 0 -1px 2px rgb(0 0 0 / 8%), 0 1px 2px rgb(0 0 0 / 8%), 0 7px 12px rgb(50 50 50 / 8%);
  }

  [data-menu-open="true"] .mega-nav__bar-logo-wrapper {
    height: 22px;
    padding-bottom: 0;
    margin-bottom: 0;
    overflow: hidden;
  }

  [data-menu-open="true"] .mega-nav__mobile-enquire {
    opacity: 0;
    pointer-events: none;
  }

  .mega-nav__burger.brand-shape {
    --color-accent: transparent;
    display: flex;
    width: 35px;
    height: 35px;
  }

  [data-menu-open="true"] .mega-nav__burger.brand-shape {
    --color-accent: var(--brand-silver);
    color: var(--brand-charcoal);
  }

  [data-menu-open="true"] .mega-nav__burger.brand-shape::before {
    border-radius: var(--shape-radius);
  }

  [data-brand="financial"] [data-menu-open="true"] .mega-nav__burger.brand-shape::before { opacity: 0; }
  [data-brand="financial"] [data-menu-open="true"] .mega-nav__burger.brand-shape::after { opacity: 1; }

  /* Back: arrow + section name in place of the logo */
  .mega-nav__back {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .mega-nav__bar-link.is--back {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 35px 0 0;
    border: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    color: var(--brand-charcoal);
  }

  .mega-nav__back-arrow {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    margin-left: -4px;
  }

  .mega-nav__back-arrow svg {
    width: 28px;
    height: 28px;
    transform: scaleX(-1);
  }

  /* Root screen */
  .mega-nav__bar-inner {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    background-color: var(--brand-silver);
  }

  .mega-nav__bar-list.is--utils {
    order: -1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    margin: 0;
    background-color: color-mix(in srgb, var(--brand-charcoal) 5%, transparent);
    backdrop-filter: blur(10px);
  }

  .mega-nav__bar-list.is--utils > li:not(.mega-nav__region),
  .mega-nav__bar-list.is--actions {
    display: none;
  }

  .mega-nav__bar-list.is--utils .mega-nav__region,
  [data-nav-theme="dark"] .mega-nav__bar-list.is--utils .mega-nav__region {
    --region-bg: transparent;
    --region-bg-hover: transparent;
    --region-ink: var(--brand-charcoal);
    --region-ink-hover: var(--brand-charcoal);
    height: 40px;
    border-radius: 0;
  }

  .mega-nav__bar-list.is--utils .mega-nav__region:hover {
    border-radius: 0;
  }

  .mega-nav__bar-list:not(.is--utils):not(.is--actions) {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 16px 24px;
  }

  .mega-nav__bar-list:not(.is--utils):not(.is--actions) .mega-nav__bar-link {
    justify-content: space-between;
    height: 50px;
    padding: 0;
    border: 0;
    font-size: 25px;
    color: var(--brand-charcoal);
  }

  .mega-nav__bar-list:not(.is--utils):not(.is--actions) .mega-nav__bar-link-label {
    font-size: 1em;
    font-weight: 450;
  }

  /* Phone menu: the current item's label takes the accent underline. */
  .mega-nav__bar-link[data-nav-current] .mega-nav__bar-link-label {
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
  }

  .mega-nav__bar-link.is--dropdown .mega-nav__bar-link-icon {
    display: none;
  }

  .mega-nav__bar-link-arrow {
    display: grid;
    place-items: center;
    flex: none;
    width: 35px;
    height: 35px;
  }

  .mega-nav__bar-link-arrow svg {
    width: 28px;
    height: 28px;
  }

  .mega-nav__mobile-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 9px;
    margin-top: auto;
    padding: 16px;
    background-color: var(--brand-group-white);
    box-shadow: 0 0 1.5px rgb(0 0 0 / 12%), 0 3px 2px rgb(0 0 0 / 3%);
  }

  .mega-nav__mobile-footer-btn {
    flex: 1;
    gap: 8px;
    height: 43px;
    padding: 2px 17px 0;
  }

  .mega-nav__mobile-footer-btn .mega-nav__mobile-icon {
    flex: none;
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
  }
}

@media (min-width: 992px) {
  .mega-nav__mobile-footer,
  .mega-nav__bar-link-arrow {
    display: none;
  }

  .mega-nav__burger.brand-shape::before,
  .mega-nav__burger.brand-shape::after {
    content: none;
  }
}

/* ---------------------------------------------------------------- */
/* Mid desktop, 992-1439 (Chris 2026-09-28; no Figma frame covers this band).
   Below the 1440 scaling floor every header size is frozen at its 1440 value,
   so the bar ran out of room: labels wrapped inside their 1.25em roll box
   (only the first word showed) and the right cluster ran off the edge from
   ~1130px. Link padding and the logo gap now tighten fluidly from their 1440
   values to 992; at 1279 and below the links drop a type step and the region
   chip keeps only its pin and chevron until a region is chosen (then it shows
   the short WA / VIC / QLD). */
@media (min-width: 992px) {
  .mega-nav__bar-link-label { white-space: nowrap; }
}

@media (min-width: 992px) and (max-width: 1439px) {
  .mega-nav__bar-link { padding-inline: clamp(0.35em, calc(0.35em + (100vw - 992px) * 0.037), 1.5em); }
  .mega-nav__bar-logo { margin-right: clamp(1em, calc(1em + (100vw - 992px) * 0.1768), 6.5em); }
}

@media (min-width: 992px) and (max-width: 1279px) {
  .mega-nav__bar-list:not(.is--utils):not(.is--actions) .mega-nav__bar-link { font-size: calc(14.5 * var(--px)); }

  .mega-nav__region:not(:has(option:checked:not([data-region=""]))) .mega-nav__region-label { padding-inline: calc(30 * var(--px)); }
  .mega-nav__region:not(:has(option:checked:not([data-region=""]))) .mega-nav__region-label .btn__label { display: none; }
}


/* --- css/core/nav-panels.css --- */
/* ACF-driven mega menu panels (template-parts/mega-panel.php).
   Extends css/core/nav.css — the menu-children fallback keeps the styles
   there; everything here is the richer panel anatomy: intro, feature cards,
   icon link groups, card grids (tiles), badges, browse-all links, pills.

   Figma PiEAExprxGGtshcaUTIrlQ, desktopMenu-Homes1..6 (899:40602, 899:40643,
   899:40688, 899:40729, 899:40773, 899:40823). All sizes are Figma px times
   --px, colours are brand tokens, so each brand re-skins through tokens. */

.mega-nav__dropdown-inner.is--acf {
  --mm-shadow-card: 0 0 calc(3 * var(--px)) rgb(0 0 0 / 12%), 0 calc(3 * var(--px)) calc(4 * var(--px)) rgb(0 0 0 / 3%);
  --mm-shadow-raised: 0 -1px 2px rgb(0 0 0 / 5%), 0 1px 2px rgb(0 0 0 / 5%), 0 calc(7 * var(--px)) calc(12 * var(--px)) rgb(50 50 50 / 5%);
  --mm-surface-hover: var(--brand-group-white);
  --mm-placeholder: color-mix(in srgb, var(--brand-charcoal) 37%, var(--brand-white));

  flex-flow: column;
  gap: 0;
  /* +15px: the dropdown wrapper tucks 15px up under the bar. */
  padding: calc(56 * var(--px) + 15px) var(--container-padding) 0;
  color: var(--brand-charcoal);
  font-family: var(--font-sans);
}

/* ---- Intro (Figma mmHeader) ------------------------------------------ */

.mega-nav__panel-intro {
  display: flex;
  flex-flow: column;
  gap: calc(20 * var(--px));
  padding-bottom: calc(48 * var(--px));
}

.mega-nav__panel-intro-title {
  font-family: var(--font-serif);
  font-size: calc(27 * var(--px));
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: calc(-0.5 * var(--px));
  font-feature-settings: "liga" 0;
}

.mega-nav__panel-intro-text {
  font-size: calc(16 * var(--px));
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: calc(0.2 * var(--px));
  color: color-mix(in srgb, var(--brand-charcoal) 75%, transparent);
}

/* ---- Body row (Figma mmBodyContainer) -------------------------------- */

.mega-nav__panel-row {
  display: flex;
  gap: calc(48 * var(--px));
  align-items: stretch;
}

.mega-nav__dropdown-inner.is--acf .mega-nav__panel-col {
  display: flex;
  flex-flow: column;
  align-items: stretch;
  flex: 1 1 0;
  min-width: 0;
  gap: calc(24 * var(--px));
  padding: 0;
  border: none;
}

.mega-nav__dropdown-inner.is--acf .mega-nav__panel-col.is--groups {
  gap: calc(35 * var(--px));
  padding-top: calc(24 * var(--px));
}

.mega-nav__panel-group {
  display: flex;
  flex-flow: column;
}

/* Section heading (Figma mmItem-sectionHeading) */
.mega-nav__dropdown-inner.is--acf .mega-nav__panel-label {
  padding: 0 0 calc(16 * var(--px)) calc(16 * var(--px));
  font-size: calc(12 * var(--px));
  font-weight: 700;
  line-height: 1;
  letter-spacing: calc(1.5 * var(--px));
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand-charcoal) 60%, transparent);
}

.mega-nav__dropdown-inner.is--acf .mega-nav__panel-list {
  gap: 0;
}

.mega-nav__dropdown-inner.is--acf .mega-nav__panel-list.is--tiles {
  gap: 0;
}

/* ---- Badge ----------------------------------------------------------- */

.mega-nav__panel-badge {
  vertical-align: middle;
  margin-left: 0.5em;
}

.mega-nav__panel-badge.is-pill {
  --badge-ink: currentColor;
  align-self: flex-start;
  margin-left: 0;
  box-shadow: inset 0 0 0 1px currentColor;
  font-size: calc(10 * var(--px));
  font-weight: 700;
  letter-spacing: calc(0.75 * var(--px));
  text-transform: uppercase;
}

/* ---- Feature card (Figma mmItem-featureCard-l) ------------------------
   light  : surface card, copy only
   accent : tinted top, image fills the rest under a rounded top edge
   dark   : as accent on charcoal-90
   image  : photo fills the card, copy sits on a top gradient
   An empty media slot renders the wireframe grey until a photo is set. */

.mega-nav__panel-card {
  position: relative;
  display: flex;
  flex-flow: column;
  flex: 1;
  gap: calc(32 * var(--px));
  min-height: calc(424 * var(--px));
  padding-top: calc(32 * var(--px));
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-m);
  background-color: var(--brand-white);
  box-shadow: var(--mm-shadow-card);
}

.mega-nav__panel-intro + .mega-nav__panel-row .mega-nav__panel-card {
  min-height: calc(220 * var(--px));
}

.mega-nav__panel-card-body {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  gap: calc(16 * var(--px));
  padding: 0 calc(52 * var(--px)) 0 calc(32 * var(--px));
}

.mega-nav__panel-card-title {
  padding-top: calc(4 * var(--px));
  font-family: var(--font-serif);
  font-size: calc(27 * var(--px));
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: calc(-0.75 * var(--px));
  font-feature-settings: "liga" 0;
  /* Trimmed like Figma (featureCard-l/Desktop): badge 20 to the title, 16 to the description (Monique QA 11 Nov). */
  text-box: trim-both cap alphabetic;
}

.mega-nav__panel-card-text {
  font-size: calc(13 * var(--px));
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: calc(0.2 * var(--px));
  text-box: trim-both cap alphabetic;
}

.mega-nav__panel-card-media {
  position: relative;
  flex: 1;
  min-height: calc(120 * var(--px));
  overflow: hidden;
  border-radius: var(--radius-m) var(--radius-m) 0 0;
}

.mega-nav__panel-card-media.is--placeholder {
  background-color: var(--mm-placeholder);
}

.mega-nav__panel-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--animation-default);
}

.mega-nav__panel-card:hover .mega-nav__panel-card-image {
  transform: scale(1.03);
}

.mega-nav__panel-card.is--accent {
  background-color: var(--color-accent-tint-1);
}

.mega-nav__panel-card.is--dark {
  background-color: color-mix(in srgb, var(--brand-charcoal) 90%, var(--brand-white));
  color: var(--brand-silver);
}

.mega-nav__panel-card.is--image {
  color: var(--brand-silver);
}

.mega-nav__panel-card.is--image .mega-nav__panel-card-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 0;
}

.mega-nav__panel-card.is--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(37 37 37 / 80%) 0%, rgb(37 37 37 / 40%) 30%, rgb(37 37 37 / 0%) 55%);
  pointer-events: none;
}

.mega-nav__panel-card.is--image .mega-nav__panel-card-text {
  color: color-mix(in srgb, var(--brand-silver) 80%, transparent);
}

/* Circle arrow (Figma mmBtn-circleArrow): the Enquire cap on silver, so it
   morphs into the brand shape and rolls its arrow when the card is hovered. */
.mega-nav__panel-card .mega-nav__panel-card-arrow,
.is--cards.is--cover .mega-nav__panel-tile-arrow.brand-shape {
  --color-accent: var(--brand-silver);
  position: absolute;
  right: calc(32 * var(--px));
  bottom: calc(32 * var(--px));
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  color: var(--brand-charcoal);
}

/* The whole feature card clicks through (review board, 17 Nov). */
.mega-nav__panel-card-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
}

[data-brand-shape-trigger]:hover .btn__cap-icon { transform: translateX(175%); }
[data-brand-shape-trigger]:hover .btn__cap-icon + .btn__cap-icon { transform: translateX(0); }

/* ---- Link rows: shared hover (Figma compactLinkCard hover) ------------ */

.mega-nav__dropdown-inner.is--acf .is--groups .mega-nav__panel-link {
  position: relative;
  display: flex;
  flex-flow: row;
  align-items: center;
  text-align: left;
  border-radius: calc(10 * var(--px));
  color: var(--brand-charcoal);
  transition:
    background-color var(--animation-default-half),
    box-shadow var(--animation-default-half);
}

.mega-nav__dropdown-inner.is--acf .is--groups .mega-nav__panel-link:hover,
.mega-nav__dropdown-inner.is--acf .is--groups .mega-nav__panel-link:focus-visible {
  background-color: var(--mm-surface-hover);
  box-shadow: var(--mm-shadow-raised);
}

.mega-nav__panel-link-body {
  display: flex;
  flex-flow: column;
  flex: 1;
  min-width: 0;
  gap: calc(12 * var(--px));
}

.mega-nav__dropdown-inner.is--acf .mega-nav__panel-link-text {
  font-size: calc(17 * var(--px));
  font-weight: 600;
  line-height: 1;
}

.mega-nav__dropdown-inner.is--acf .mega-nav__panel-link-desc {
  opacity: 1;
  font-size: calc(13 * var(--px));
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: calc(0.2 * var(--px));
  color: var(--color-text-dark-tertiary);
}

/* Arrow slides in from the left on hover */
.mega-nav__panel-link-arrow {
  flex: none;
  display: flex;
  align-items: center;
  width: calc(15 * var(--px));
  overflow: hidden;
}

.mega-nav__panel-link-arrow-track {
  display: flex;
  transform: translateX(-100%);
  transition: transform var(--animation-default-half);
}

.mega-nav__panel-link-arrow svg {
  width: calc(12 * var(--px));
  height: calc(12 * var(--px));
}

.mega-nav__panel-link:hover .mega-nav__panel-link-arrow-track,
.mega-nav__panel-link:focus-visible .mega-nav__panel-link-arrow-track {
  transform: translateX(0);
}

/* Icon slot */
.mega-nav__panel-link-tile {
  flex: none;
  display: grid;
  place-items: center;
  transition: background-color var(--animation-default-half);
}

.mega-nav__panel-link-icon {
  object-fit: contain;
}

/* ---- Compact row (Figma mmItem-compactLinkCard-v2) -------------------- */

.mega-nav__dropdown-inner.is--acf .is--compact .mega-nav__panel-link {
  gap: calc(8 * var(--px));
  min-height: calc(45 * var(--px));
  padding: calc(10 * var(--px)) calc(16 * var(--px));
}

.mega-nav__dropdown-inner.is--acf .is--compact .mega-nav__panel-link.has--icon {
  padding-left: calc(12 * var(--px));
}

.is--compact .mega-nav__panel-link-tile {
  width: calc(26 * var(--px));
  height: calc(26 * var(--px));
  border-radius: calc(6 * var(--px));
}

.is--compact .mega-nav__panel-link-icon {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}

.is--compact .mega-nav__panel-link:hover .mega-nav__panel-link-tile {
  background-color: color-mix(in srgb, var(--color-accent) 60%, transparent);
}

/* ---- Rich row (Figma mmItem-richLinkCard-v3) -------------------------- */

.mega-nav__dropdown-inner.is--acf .mega-nav__panel-link.is--tile {
  gap: calc(16 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px));
}

.is--tile .mega-nav__panel-link-tile {
  width: calc(60 * var(--px));
  height: calc(60 * var(--px));
  margin: calc(2 * var(--px));
  border-radius: calc(10 * var(--px));
  background-color: var(--color-accent-tint-2);
}

.is--tile .mega-nav__panel-link-icon {
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
}

.is--tile .mega-nav__panel-link-body {
  gap: calc(6 * var(--px));
}

/* Rich links under a feature card (legacy anatomy) */
.mega-nav__panel-list.is--rich {
  gap: var(--gap-s);
}

.mega-nav__panel-link.is--rich {
  padding: 0;
}

.mega-nav__panel-link.is--rich:hover {
  background: none;
}

.mega-nav__panel-link.is--rich:hover .mega-nav__panel-link-text {
  text-decoration: underline;
}

/* ---- Card grid ------------------------------------------------------- */

.mega-nav__dropdown-inner.is--acf .mega-nav__panel-col.is--cards {
  display: grid;
  grid-template-columns: repeat(var(--mm-card-cols, 2), 1fr);
  align-items: start;
  gap: calc(16 * var(--px));
  flex: 2;
}

.mega-nav__panel-tile {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--gap-s);
  padding: var(--gap-s) var(--gap-m) var(--gap-s) var(--gap-s);
  border-radius: var(--radius-m);
  background-color: var(--brand-white);
  box-shadow: var(--mm-shadow-card);
  transition: background-color var(--animation-default-half);
}

.mega-nav__panel-tile:hover {
  background-color: var(--mm-surface-hover);
}

.mega-nav__panel-tile-image {
  width: 3em;
  height: 3em;
  flex: none;
  object-fit: cover;
  border-radius: var(--radius-s);
}

.mega-nav__panel-tile-body {
  display: flex;
  flex-flow: column;
  gap: 0.25em;
}

.mega-nav__panel-tile-title {
  font-weight: 600;
}

.mega-nav__panel-tile-text {
  font-size: calc(13 * var(--px));
  color: var(--color-text-dark-tertiary);
}

.mega-nav__panel-tile-arrow {
  position: absolute;
  right: var(--gap-m);
  bottom: var(--gap-m);
  display: grid;
  place-items: center;
  width: calc(12 * var(--px));
  opacity: 0;
  transition: opacity var(--animation-default-half);
}

.mega-nav__panel-tile:hover .mega-nav__panel-tile-arrow {
  opacity: 1;
}

.mega-nav__panel-tile.is--accent {
  background-color: var(--color-accent-tint-1);
}

/* Cover cards: the image feature card (Figma featureCard, Why Locale row) */
.mega-nav__dropdown-inner.is--acf .mega-nav__panel-col.is--cards.is--cover {
  gap: calc(48 * var(--px));
}

.mega-nav__dropdown-inner.is--acf .is--cards.is--cover .mega-nav__panel-tile {
  flex-flow: column;
  gap: 0;
  min-height: calc(424 * var(--px));
  padding: calc(32 * var(--px)) calc(52 * var(--px)) calc(32 * var(--px)) calc(32 * var(--px));
  overflow: hidden;
  isolation: isolate;
  color: var(--brand-silver);
}

.is--cards.is--cover .mega-nav__panel-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(37 37 37 / 80%) 0%, rgb(37 37 37 / 40%) 30%, rgb(37 37 37 / 0%) 55%);
  pointer-events: none;
}

.is--cards.is--cover .mega-nav__panel-tile-body {
  gap: calc(16 * var(--px));
}

.is--cards.is--cover .mega-nav__panel-tile-title {
  padding-top: calc(4 * var(--px));
  font-family: var(--font-serif);
  font-size: calc(27 * var(--px));
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: calc(-0.75 * var(--px));
  font-feature-settings: "liga" 0;
  text-box: trim-both cap alphabetic;
}

.is--cards.is--cover .mega-nav__panel-tile-text {
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: calc(0.2 * var(--px));
  text-box: trim-both cap alphabetic;
  color: color-mix(in srgb, var(--brand-silver) 80%, transparent);
}

.is--cards.is--cover .mega-nav__panel-tile-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.is--cards.is--cover .mega-nav__panel-tile-image.is--placeholder {
  background-color: var(--mm-placeholder);
}

.is--cards.is--cover .mega-nav__panel-tile-arrow {
  display: inline-flex;
  opacity: 1;
}

/* ---- Pills footer (Figma mmFooter, chipList) -------------------------- */

.mega-nav__panel-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: calc(10 * var(--px));
  padding: calc(56 * var(--px)) 0 calc(64 * var(--px));
}

.mega-nav__panel-pills-label {
  margin-right: calc(5 * var(--px));
  font-size: calc(17 * var(--px));
  font-weight: 600;
  line-height: 1;
}

/* The pills are components/chip.css; a brand's menu keeps its own hover fill. */
.mega-nav__panel-pill { --chip-bg-hover: var(--mm-surface-hover, var(--brand-group-white)); }

.mega-nav__panel-pills-more {
  margin-left: calc(5 * var(--px));
}

/* ---- CTA footer (Figma mmFooter, contentContainer) ---------------------
   Full-bleed accent band; the ::after draws the panel's rounded bottom edge
   over the top of the band. */

.mega-nav__panel-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: calc(20 * var(--px));
  margin-top: calc(40 * var(--px));
  padding: calc(48 * var(--px)) 0 calc(32 * var(--px));
  color: var(--brand-charcoal);
}

.mega-nav__panel-cta:before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  height: 105%;
  z-index: -1;
  background-color: var(--color-accent);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
}

.mega-nav__panel-cta:after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  height: calc(16 * var(--px));
  z-index: -1;
  background-color: var(--color-surface-2);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
}

.mega-nav__panel-cta-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(16 * var(--px));
  font-size: calc(17 * var(--px));
  line-height: 1;
}

.mega-nav__panel-cta-lead {
  font-weight: 630;
}

.mega-nav__panel-cta-sub {
  font-weight: 500;
}

.mega-nav__panel-cta .btn { padding-inline: calc(24 * var(--px)); }

/* ---- Bar: the open item sits on an accent pill ------------------------ */

@media (min-width: 992px) {
  [data-menu-open="true"] .mega-nav__bar-link.is--dropdown[aria-expanded="true"] {
    background-color: var(--color-accent);
    color: var(--brand-charcoal);
  }
}

/* Bar utilities (region + search stubs) */
.mega-nav__bar-list.is--utils {
  gap: clamp(1px, 0.4vw, 6px);
  margin-right: clamp(1px, 0.4vw, 6px);
}

.mega-nav__bar-link.is--util {
  gap: 0.375em;
}

.mega-nav__bar-link-icon.is--util {
  width: 1.25em;
}

/* ---- Tablet and mobile: panels stack, grids collapse ------------------ */

@media (max-width: 991px) {
  .mega-nav__panel-row {
    flex-flow: column;
  }

  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-col.is--cards {
    grid-template-columns: 1fr;
  }

  .mega-nav__panel-card,
  .mega-nav__dropdown-inner.is--acf .is--cards.is--cover .mega-nav__panel-tile {
    min-height: calc(260 * var(--px));
  }

  .mega-nav__panel-pills {
    justify-content: flex-start;
  }

  .mega-nav__panel-cta {
    margin-inline: 0;
    text-align: center;
  }
}

/* ---- Mobile panels (Figma mobileMenu-homeDesigns, 899:42620) -----------
   Cards shed their media and badges into compact rows (first card accent,
   the rest light), groups become 35px rows without descriptions, chips sit
   under a heading, and the panel ends with Search + the panel CTA. */

.mega-nav__panel-mobile-actions {
  display: none;
}

@media (max-width: 991px) {
  .mega-nav__dropdown-panel {
    background-color: var(--brand-silver);
  }

  .mega-nav__dropdown-inner.is--acf {
    gap: 32px;
    padding: 16px 16px 56px;
  }

  /* Figma mmHeader (2517:47797): the looser 1.2 title is the change Monique asked for (QA 11 Nov). */
  .mega-nav__panel-intro {
    gap: 12px;
    padding-block: 6px 0;
  }

  .mega-nav__panel-intro-title {
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0;
    text-box: trim-both cap alphabetic;
  }

  .mega-nav__panel-intro-text {
    font-size: 12px;
    letter-spacing: 0.2px;
    color: var(--brand-charcoal);
    text-box: trim-both cap alphabetic;
  }

  .mega-nav__panel-row {
    gap: 12px;
  }

  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-col {
    flex: none;
    gap: 12px;
  }

  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-col.is--groups {
    gap: 20px;
    padding-top: 20px;
  }

  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-col.is--groups + .mega-nav__panel-col.is--groups {
    padding-top: 8px;
  }

  /* Compact feature card */
  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-card,
  .mega-nav__dropdown-inner.is--acf .is--cards.is--cover .mega-nav__panel-tile,
  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-intro + .mega-nav__panel-row .mega-nav__panel-card {
    flex-flow: row;
    align-items: stretch;
    gap: 16px;
    min-height: 0;
    padding: 16px 16px 18px;
    border-radius: 12px;
    background-color: var(--brand-group-white);
    color: var(--brand-charcoal);
  }

  /* Colour follows the desktop card; an image card turns dark. "Card style on
     mobile" overrides it (mega-panel.php sets is--m-*; Monique QA 11 Nov). */
  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-row .mega-nav__panel-card.is--m-accent,
  .mega-nav__dropdown-inner.is--acf .is--cards.is--cover .mega-nav__panel-tile.is--m-accent {
    background-color: var(--color-accent-tint-1);
  }

  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-row .mega-nav__panel-card.is--m-dark,
  .mega-nav__dropdown-inner.is--acf .is--cards.is--cover .mega-nav__panel-tile.is--m-dark {
    background-color: color-mix(in srgb, var(--brand-charcoal) 90%, var(--brand-white));
    color: var(--brand-silver);
  }

  .mega-nav__dropdown-inner.is--acf .is--m-dark :is(.mega-nav__panel-card-title, .mega-nav__panel-card-text, .mega-nav__panel-tile-title, .mega-nav__panel-tile-text) {
    color: var(--brand-silver);
  }

  .mega-nav__panel-card::before,
  .is--cards.is--cover .mega-nav__panel-tile::before,
  .mega-nav__panel-card-media,
  .is--cards.is--cover .mega-nav__panel-tile-image,
  .mega-nav__panel-card .mega-nav__panel-badge,
  .mega-nav__panel-tile .mega-nav__panel-badge {
    display: none;
  }

  .mega-nav__panel-card-body,
  .is--cards.is--cover .mega-nav__panel-tile-body {
    flex: 1;
    gap: 12px;
    padding: 0;
  }

  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-card-title,
  .is--cards.is--cover .mega-nav__panel-tile-title {
    color: var(--brand-charcoal);
    padding-top: 0;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: 0;
    /* Trimmed like Figma so the 12px gap to the description reads as 12 (Monique QA 10 Nov). */
    text-box: trim-both cap alphabetic;
  }

  .mega-nav__panel-card-text,
  .mega-nav__panel-card.is--image .mega-nav__panel-card-text,
  .is--cards.is--cover .mega-nav__panel-tile-text {
    font-size: 12px;
    color: var(--brand-charcoal);
    opacity: 0.67;
    text-box: trim-both cap alphabetic;
  }

  .mega-nav__panel-card .mega-nav__panel-card-arrow,
  .is--cards.is--cover .mega-nav__panel-tile-arrow.brand-shape {
    --color-accent: color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
    position: relative;
    right: auto;
    bottom: auto;
    align-self: flex-end;
    flex: none;
    width: 24px;
    height: 24px;
  }

  .mega-nav__panel-card:is(.is--m-accent, .is--m-dark) .mega-nav__panel-card-arrow,
  .is--cards.is--cover .mega-nav__panel-tile:is(.is--m-accent, .is--m-dark) .mega-nav__panel-tile-arrow.brand-shape {
    --color-accent: var(--brand-silver);
  }

  .mega-nav__panel-card-arrow .btn__cap-icon,
  .mega-nav__panel-tile-arrow .btn__cap-icon {
    width: 14px;
    height: 14px;
  }

  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-col.is--cards.is--cover {
    gap: 12px;
  }

  /* Groups: heading + 35px rows */
  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-label {
    padding: 0 0 12px;
    font-size: 11px;
  }

  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-list.is--tiles {
    gap: 0;
  }

  .mega-nav__dropdown-inner.is--acf .is--groups .mega-nav__panel-link,
  .mega-nav__dropdown-inner.is--acf .is--compact .mega-nav__panel-link,
  .mega-nav__dropdown-inner.is--acf .is--compact .mega-nav__panel-link.has--icon,
  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-link.is--tile {
    gap: 8px;
    min-height: 35px;
    padding: 0;
    border-bottom: 0;
  }

  .mega-nav__dropdown-inner.is--acf .is--groups .mega-nav__panel-link:hover {
    background: none;
    box-shadow: none;
  }

  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-link-text {
    font-size: 14px;
    font-weight: 650;
  }

  .mega-nav__panel-link-arrow {
    display: none;
  }

  .is--compact .mega-nav__panel-link-tile {
    width: 26px;
    height: 26px;
    margin: 0;
    border-radius: 6px;
    background: none;
  }

  .is--compact .mega-nav__panel-link-icon {
    width: 20px;
    height: 20px;
  }

  /* Icon tiles keep their description as the medium card
     (Figma mmItem-richLinkCard-m, 2517:47808; Monique QA 11 Nov). */
  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-list.is--tiles {
    gap: 16px;
  }

  /* A section after the taller tile rows needs the mock's ~32 above its label (Finance, Learn). */
  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-col.is--groups:has(.is--tiles) + .mega-nav__panel-col.is--groups {
    padding-top: 20px;
  }

  /* Unlabelled tile groups read as one list, 16 under the card (Start Here). */
  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-col.is--groups:not(:has(.mega-nav__panel-label)),
  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-col.is--groups + .mega-nav__panel-col.is--groups:not(:has(.mega-nav__panel-label)) {
    gap: 16px;
    padding-top: 4px;
  }

  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-link.is--tile {
    gap: 10px;
    min-height: 40px;
  }

  .is--tile .mega-nav__panel-link-tile {
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 6px;
    background-color: var(--color-accent-tint-2);
  }

  .is--tile .mega-nav__panel-link-icon {
    width: 24px;
    height: 24px;
  }

  .is--tile .mega-nav__panel-link-body {
    gap: 8px;
  }

  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-link.is--tile .mega-nav__panel-link-text {
    text-box: trim-both cap alphabetic;
  }

  .mega-nav__dropdown-inner.is--acf .mega-nav__panel-link.is--tile .mega-nav__panel-link-desc {
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.2px;
    color: var(--brand-charcoal);
    opacity: 0.67;
    text-box: trim-both cap alphabetic;
  }

  /* Chips */
  .mega-nav__panel-pills {
    justify-content: flex-start;
    gap: 8px 6px;
    padding: 0;
  }

  .mega-nav__panel-pills-label {
    flex-basis: 100%;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--brand-charcoal) 60%, transparent);
  }

  /* Figma chip/mobile (2510:67406): the light chip (grey line, no fill) at
     38 tall; the surface rules in chip.css still apply, so the search
     sheet's chips stay white on accent. No top padding: it sat the text low. */
  .mega-nav__panel-pill {
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .mega-nav__panel-pill-icon {
    width: 20px;
    height: 20px;
  }

  /* Matches the 14px panel links ("Two storey"); .btn.is-link's 17px would win otherwise (Monique QA 10 Nov). */
  .mega-nav__panel-pills .mega-nav__panel-pills-more.btn {
    margin: 8px 0 0;
    font-size: 14px;
  }

  /* No hover on phones: the chip list shows the accent underline at rest (Figma 925:24115). */
  .mega-nav__panel-pills .mega-nav__panel-pills-more .btn__label {
    background-size: 100% 2px, 100% 2px;
  }

  /* The CTA band becomes an accent card above the end actions
     (Figma 2517:47834 / 2517:46879; Monique QA 11 Nov). */
  .mega-nav__panel-cta {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    background-color: var(--color-accent);
    text-align: left;
  }

  .mega-nav__panel-cta::before,
  .mega-nav__panel-cta::after {
    display: none;
  }

  .mega-nav__panel-cta-text {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
  }

  .mega-nav__panel-cta-lead {
    font-size: 16px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.025px;
    text-box: trim-both cap alphabetic;
  }

  .mega-nav__panel-cta-sub {
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.2px;
    opacity: 0.67;
    text-box: trim-both cap alphabetic;
  }

  .mega-nav__panel-cta .btn {
    flex: none;
    padding-inline: 16px;
    font-size: 14px;
  }

  .mega-nav__panel-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mega-nav__panel-mobile-search {
    gap: 9px;
    height: 45px;
    font-size: 13px;
  }

  .mega-nav__panel-mobile-search .mega-nav__mobile-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
  }

  .mega-nav__panel-mobile-cta {
    height: 43px;
    font-size: 14px;
  }
}


/* --- css/core/nav-search.css --- */
/* core/nav-search.css — the nav search overlay (Figma "Search" board
   730:21160: Search Focus 730:20502, DropDown Focus 730:20696, Search
   Results 730:20590). Lives in the mega-nav dropdown panel
   (data-nav-content="dc-search"), opened by [data-dropdown-toggle="dc-search"].

     .nav-search > __heading + form.__bar + __results + __chips

   The panel is an accent-filled sheet: heading, one wide pill search bar with
   a charcoal go button, then "Or browse by" and the suggestion chips. While
   the visitor types, __results becomes a white card hanging under the bar. */

/* The search panel fills with accent, unlike the mega menu's own panels. */
[data-nav-content="dc-search"] .mega-nav__dropdown-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(640 * var(--px));
  background-color: var(--color-accent);
  border-radius: 0 0 calc(15 * var(--px)) calc(15 * var(--px));
  box-shadow:
    0 calc(-1 * var(--px)) calc(2 * var(--px)) rgb(0 0 0 / 0.05),
    0 calc(1 * var(--px)) calc(2 * var(--px)) rgb(0 0 0 / 0.05),
    0 calc(7 * var(--px)) calc(12 * var(--px)) rgb(50 50 50 / 0.05);
}

.nav-search {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-09);
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-block: calc(64 * var(--px));
  color: var(--color-text-dark);
}

.nav-search__heading {
  font-family: var(--font-serif);
  font-size: calc(46 * var(--px));
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.0217em;
  text-align: center;
  text-box: trim-both cap alphabetic;
}

/* Figma wraps the bar and the results in one container (Frame 9759), which is
   what anchors the results card to the bar rather than to the panel. */
/* The chips come after this in the DOM, so the field needs its own stacking
   context above them or they paint over the results card. */
.nav-search__field {
  position: relative;
  z-index: 3;
  width: calc(720 * var(--px));
  max-width: 100%;
  margin-top: calc(var(--space-08) - var(--space-09));
}

/* ---- the bar ---- */
.nav-search__bar {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--px));
  width: 100%;
  padding: calc(12 * var(--px)) calc(12 * var(--px)) calc(12 * var(--px)) calc(24 * var(--px));
  /* At rest (Figma DropDown Focus 730:20706): accent line, near-flat shadow,
     grey go button. In use: the charcoal line and go button; the searchShadow
     only while the field has focus (Monique QA 11 Nov). */
  border: 1px solid var(--color-accent);
  border-radius: calc(54 * var(--px));
  background-color: var(--brand-white);
  box-shadow: 0 calc(-1 * var(--px)) calc(1 * var(--px)) rgb(0 0 0 / 0.05);
  transition:
    border-color var(--animation-default-half),
    box-shadow var(--animation-default-half);
}

.nav-search__bar:focus-within,
.nav-search__bar:has(.nav-search__input:not(:placeholder-shown)) {
  border-color: color-mix(in srgb, var(--brand-charcoal) 80%, transparent);
}

.nav-search__bar:focus-within {
  /* Figma searchShadow */
  box-shadow:
    0 calc(12 * var(--px)) calc(18 * var(--px)) rgb(50 50 50 / 0.1),
    0 calc(2 * var(--px)) calc(4 * var(--px)) rgb(0 0 0 / 0.06),
    0 calc(-1 * var(--px)) calc(2 * var(--px)) rgb(0 0 0 / 0.05);
}

.nav-search__icon {
  flex: none;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  color: var(--brand-charcoal);
}

.nav-search__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: calc(18 * var(--px));
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-dark);
  outline: none;
}

.nav-search__input::placeholder { color: color-mix(in srgb, var(--brand-charcoal) 50%, transparent); }
.nav-search__input::-webkit-search-cancel-button { display: none; }

.nav-search__clear {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: none;
  font-size: calc(20 * var(--px));
  line-height: 1;
  color: color-mix(in srgb, var(--brand-charcoal) 55%, transparent);
  cursor: pointer;
}

.nav-search__clear:hover { color: var(--color-text-dark); }

/* display:grid above beats the UA [hidden] rule, so an empty field showed the ×. */
.nav-search__clear[hidden] { display: none; }

/* Figma btn-go: a charcoal circle with the brand arrow, not a text button. */
.nav-search__go {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background-color: color-mix(in srgb, var(--brand-charcoal) 10%, var(--brand-white));
  color: var(--brand-charcoal);
  cursor: pointer;
  transition: background-color var(--animation-default-half), color var(--animation-default-half);
}

.nav-search__bar:focus-within .nav-search__go,
.nav-search__bar:has(.nav-search__input:not(:placeholder-shown)) .nav-search__go {
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
}

.nav-search__bar .nav-search__go:hover { background-color: var(--color-accent); color: var(--brand-charcoal); }

.nav-search__go svg { width: calc(24 * var(--px)); height: calc(24 * var(--px)); }

/* ---- results: a white card under the bar ---- */
/* [hidden] is display:none from the UA sheet, which a display:flex here would
   override — the empty results card then shows as a white bar. */
.nav-search__results[hidden] { display: none; }

.nav-search__results {
  position: absolute;
  top: calc(100% + calc(10 * var(--px)));
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  width: calc(760 * var(--px));
  max-width: 100%;
  max-height: calc(391 * var(--px));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  padding: calc(10 * var(--px));
  border-radius: calc(20 * var(--px));
  /* Silver panel, white result cards (Figma 730:20601; Monique QA 11 Nov). */
  background-color: var(--brand-silver);
  box-shadow:
    0 calc(12 * var(--px)) calc(18 * var(--px)) rgb(50 50 50 / 0.1),
    0 calc(2 * var(--px)) calc(4 * var(--px)) rgb(0 0 0 / 0.06);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--brand-charcoal) 25%, transparent) transparent;
}

.nav-search__results-label {
  margin: 0;
  padding-inline: calc(10 * var(--px));
  font-size: calc(11 * var(--px));
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand-charcoal) 45%, transparent);
}

.nav-search__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(15 * var(--px));
  padding: calc(15 * var(--px)) calc(20 * var(--px)) calc(15 * var(--px)) calc(15 * var(--px));
  border-radius: calc(10 * var(--px));
  background-color: var(--brand-white);
  color: var(--color-text-dark);
  text-decoration: none;
  transition: box-shadow var(--animation-default-half);
}

.nav-search__item:hover,
.nav-search__item.is--active {
  /* Figma cardDefault-shadow */
  box-shadow:
    0 calc(3 * var(--px)) calc(4 * var(--px)) rgb(0 0 0 / 0.03),
    0 0 calc(3 * var(--px)) rgb(0 0 0 / 0.12);
}

/* The thumb slot doubles as the design's content-type tile. */
.nav-search__thumb {
  flex: none;
  width: calc(32 * var(--px));
  height: calc(32 * var(--px));
  object-fit: cover;
  border-radius: calc(6 * var(--px));
  background-color: rgb(0 0 0 / 0.15);
}

.nav-search__thumb.is--empty { display: inline-block; }

.nav-search__item-body {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  flex: 1;
  min-width: 0;
}

.nav-search__item-title {
  font-size: calc(16 * var(--px));
  font-weight: 500;
  line-height: 1.25;
  /* Trimmed like Figma so the 10 gap to the type label reads as 10 (Monique QA 11 Nov). */
  text-box: trim-both cap alphabetic;
}

/* The matched term is emboldened inside the title (nav-search.js). */
.nav-search__item-title mark {
  background: none;
  color: inherit;
  font-weight: 700;
}

/* Two lines then ellipsis, per the design's fixed excerpt box. */
.nav-search__item-label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: calc(13 * var(--px));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  color: rgb(0 0 0 / 0.45);
  /* Top trim only: the clamp's overflow cut the descenders of a trimmed
     last line, e.g. the g in "home design" (board 20 Nov, Search 7). */
  text-box: trim-start cap alphabetic;
}

.nav-search__item-arrow {
  flex: none;
  width: calc(15 * var(--px));
  height: calc(20 * var(--px));
  color: color-mix(in srgb, var(--brand-charcoal) 50%, transparent);
}

.nav-search__empty {
  margin: 0;
  padding: calc(20 * var(--px));
  color: color-mix(in srgb, var(--brand-charcoal) 55%, transparent);
  text-align: center;
}

/* ---- browse by + chips ---- */
.nav-search__chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: calc(12 * var(--px));
  width: calc(860 * var(--px));
  max-width: 100%;
}

.nav-search__chips-label {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: calc(16 * var(--px));
  font-weight: 650;
  line-height: 1;
  color: var(--color-text-dark);
}

/* The chips are components/chip.css on the accent sheet. */

@media screen and (max-width: 991px) {
  .nav-search {
    gap: var(--space-07);
    padding-block: var(--space-09);
  }

  /* display-l mobile, 39/44 (Monique QA 11 Nov). */
  .nav-search__heading {
    font-size: calc(39 * var(--px));
    line-height: calc(44 / 39);
  }

  .nav-search__field { width: 100%; margin-top: 0; }

  .nav-search__bar {
    gap: calc(10 * var(--px));
    padding-left: calc(16 * var(--px));
  }

  .nav-search__results {
    position: static;
    translate: none;
    width: 100%;
    max-height: none;
    box-shadow: none;
    /* In the flow, so the panel scrolls it: as a scroll box with contained
       overscroll it swallowed swipes that started on the list (board 20 Nov,
       Search 6). */
    overflow: visible;
    overscroll-behavior: auto;
  }

  .nav-search__chips { width: 100%; }
}


/* --- css/core/footer.css --- */
/* core/footer.css — the persistent footer chrome (footer.php; Figma
   Footer/Desktop 1484:42452, Footer/Mobile 1484:42960, board 1484:7949).
   Image CTA band, then the charcoal footer body on a dark-charcoal root:
   a brand column (heading, intro, region selector, L motif) beside three
   link columns, with the share line and socials on a row beneath them, then
   the fine print. The parallax reveal (js/components/footer-parallax.js)
   moves .footer__inner: the CTA band and the footer slide in together, the
   CTA under the page's rounded bottom (Monique QA #45, Chris 10 Nov). The
   dark overlay sits inside the inner so the Group silver CTA can stay above
   it.

   Geometry is the Figma frame: the 1440 container splits 290 / 197 / 953,
   and the right-hand side is 447 tall with the follow row pinned to its
   bottom (304 columns + 103 + 40). */

/* Above the floating region strip (components/region-strip.css, z-index 60), so the strip
   slides behind the footer instead of sitting over its legal lines; still under the nav and
   the popups (100). */
.footer__wrap { position: relative; z-index: 61; overflow: hidden; }
.footer__inner { position: relative; }

/* The page above ends on rounded bottom corners with the CTA image showing in
   them (Figma homepage 1154:39409). Drawn as a page-coloured lip over the top
   of the CTA rather than by overlapping the Barba wrapper: that would need a
   z-index on the wrapper, which traps its modals under the fixed nav.
   Inheriting the colour from <body> keeps it in step with bg-fade.js; a last
   section with its own background sets --footer-lip (footer-parallax.js). */
.footer__wrap:has(.footer-cta) { background-color: inherit; }

.footer__wrap:has(.footer-cta)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 4; /* over .footer__dark, which shades the footer, not the page */
  height: var(--radius-l);
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  background-color: inherit;
  pointer-events: none;
}

.footer__wrap[style*="--footer-lip"]::before { background-color: var(--footer-lip); }

/* ---- CTA band ---- */
.footer-cta {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: calc(675 * var(--px));
  overflow: hidden;
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
  text-align: center;
}

.footer-cta__image,
.footer-cta__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Optional video over the image (the image is its poster): fades in once it
   plays; listing-cta.js never plays it under reduced motion. */
.footer-cta__video {
  opacity: 0;
  transition: opacity var(--animation-default);
}

.footer-cta__video.is-playing { opacity: 1; }

.footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: color-mix(in srgb, var(--brand-charcoal) 40%, transparent);
  mix-blend-mode: multiply;
}

.footer-cta__arch {
  position: absolute;
  right: calc(-240 * var(--px));
  top: calc(270 * var(--px));
  z-index: 1;
  width: calc(574 * var(--px));
  pointer-events: none;
}

/* Figma: 547 wide with a space-10 gap, so the title wraps to two lines. */
.footer-cta__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
  /* 547 is the design's TEXT width; this element is also .container, whose
     inline padding sits inside max-width, so add it back. */
  max-width: calc(547 * var(--px) + 2 * var(--container-padding));
}

.footer-cta__label,
.footer-cta__title { color: var(--color-accent); }

/* Group (Figma Group footer 2138:158590): a silver band, no photo, the
   three brand shapes top right, copy left-aligned in charcoal on a 916 column,
   a plain dark button, and a 10% charcoal shade under the page lip. */
.footer-cta[data-theme-section="light"] {
  /* Above .footer__dark (z-index 3): the parallax reveal fades that overlay
     over the whole wrap, which dimmed the silver band (Chris, 3 Nov 2026). */
  z-index: 4;
  place-items: center start;
  background-color: var(--brand-silver);
  color: var(--color-text-dark);
  text-align: left;
}

.footer-cta[data-theme-section="light"]::before {
  background: linear-gradient(rgb(50 50 50 / 0.1), rgb(50 50 50 / 0) calc(142 * var(--px)));
  mix-blend-mode: normal;
}

.footer-cta[data-theme-section="light"] .footer-cta__image { display: none; }

.footer-cta[data-theme-section="light"] .footer-cta__arch {
  top: 0;
  right: 0;
  width: calc(703 * var(--px));
}

.footer-cta[data-theme-section="light"] .footer-cta__content {
  align-items: flex-start;
  width: 100%;
  max-width: none;
}

.footer-cta[data-theme-section="light"] .footer-cta__label { color: var(--color-text-dark-tertiary); }
.footer-cta[data-theme-section="light"] .footer-cta__title { max-width: calc(916 * var(--px)); color: var(--color-text-dark); }

/* Full width of the 547 content box, so the title breaks over two lines as
   drawn rather than shrink-to-fit inside the centred flex column. */
.footer-cta__title { width: 100%; margin: 0; }
.footer-cta__title em { font-style: italic; }

/* Frosted pill over the photo: Figma design-nav-cta, silver 25% + bg blur
   (Pastel #47). The cap keeps its accent brand shape. */
.footer-cta .btn.is-enquire .btn__pill {
  background-color: color-mix(in srgb, var(--brand-silver) 25%, transparent);
  -webkit-backdrop-filter: blur(calc(10 * var(--px)));
  backdrop-filter: blur(calc(10 * var(--px)));
  transition: border-radius var(--animation-default-half), background-color var(--animation-default-half);
}

.footer-cta .btn.is-enquire:hover .btn__pill { background-color: color-mix(in srgb, var(--brand-silver) 35%, transparent); }

/* ---- Footer ---- */
.footer {
  position: relative;
  margin-top: calc(-1 * var(--radius-l));
  background: var(--brand-dark-charcoal);
  color: var(--color-text-light);
}

/* The design's inner charcoal block; the fine print sits outside it on the
   dark-charcoal root. */
.footer__body {
  padding-top: calc(72 * var(--px) + var(--radius-l));
  border-radius: var(--radius-l);
  background: var(--brand-charcoal);
}

/* Two rows: brand + columns, then the L motif + the follow row. In the frame
   the motif and the follow row both bottom out at the same y, which is why
   they share a row and align to its end. */
.footer__main {
  display: grid;
  grid-template-columns: calc(290 * var(--px)) 1fr;
  grid-template-areas:
    "brand columns"
    "motif follow";
  column-gap: calc(197 * var(--px));
  row-gap: calc(103 * var(--px));
  padding-bottom: calc(56 * var(--px));
}

.footer__start {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-07);
}

.footer__brand-title {
  margin: 0;
  color: var(--color-accent);
}

.footer__brand-title em { font-style: italic; }

.footer__brand-text {
  margin: 0;
  max-width: calc(360 * var(--px));
  color: var(--color-text-light-secondary);
}

.footer__motif {
  grid-area: motif;
  align-self: end;
  width: calc(98 * var(--px));
  height: auto;
  color: var(--color-accent);
}

.footer__region {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: calc(45 * var(--px));
  border-radius: var(--radius-s);
  background-color: color-mix(in srgb, var(--brand-silver) 10%, transparent);
  backdrop-filter: blur(10px);
}

.footer__region-pin {
  position: absolute;
  left: calc(12 * var(--px));
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  pointer-events: none;
}

.footer__region select {
  width: 100%;
  height: 100%;
  padding: 0 calc(40 * var(--px));
  border: 0;
  background: transparent url("../img/icons/caret-down.svg") no-repeat right calc(12 * var(--px)) center / calc(20 * var(--px));
  color: inherit;
  font: inherit;
  font-size: var(--body-m-size);
  text-align: center;
  text-align-last: center;
  appearance: none;
  cursor: pointer;
}

.footer__region option { color: var(--brand-charcoal); }

.footer__quick {
  display: flex;
  flex-direction: column;
  gap: calc(26 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__quick-link {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--px));
  color: var(--color-text-light);
  font-size: calc(17 * var(--px));
  font-weight: 630;
  text-decoration: none;
}

.footer__quick-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(45 * var(--px));
  height: calc(45 * var(--px));
  border-radius: var(--radius-s);
  background-color: color-mix(in srgb, var(--brand-silver) 10%, transparent);
}

.footer__quick-icon img { width: calc(30 * var(--px)); height: calc(30 * var(--px)); }

.footer__quick-label {
  padding-bottom: calc(4 * var(--px));
  background:
    linear-gradient(var(--color-accent-line), var(--color-accent-line)) left bottom / 0 calc(2 * var(--px)) no-repeat,
    linear-gradient(color-mix(in srgb, var(--brand-silver) 20%, transparent), color-mix(in srgb, var(--brand-silver) 20%, transparent)) left bottom / 100% calc(2 * var(--px)) no-repeat;
  transition: background-size var(--animation-default);
}

.footer__quick-link:hover .footer__quick-label { background-size: 100% calc(2 * var(--px)), 100% calc(2 * var(--px)); }

.footer__columns {
  grid-area: columns;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: calc(48 * var(--px));
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: var(--space-07b);
}

.footer__heading {
  margin: 0;
  color: var(--color-accent);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: calc(28 * var(--px));
  margin: 0;
  padding: calc(8 * var(--px)) 0 0;
  list-style: none;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--px));
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--animation-default-half);
}

.footer__link:hover { color: var(--color-accent); }

.footer__link img { width: calc(11 * var(--px)); height: calc(11 * var(--px)); }

.footer__follow {
  grid-area: follow;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(24 * var(--px));
}

.footer__socials {
  display: flex;
  gap: calc(10 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The Figma social icons are complete 40px tiles: silver-10 rounded square
   plus the accent glyph, so there is no tile to draw here. */
.footer__social img {
  display: block;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  transition: opacity var(--animation-default-half);
}

.footer__social:hover img { opacity: 0.7; }

.footer__share {
  margin: 0;
  color: var(--color-accent);
}

.footer__share em {
  font-family: var(--font-serif);
  font-size: calc(18 * var(--px));
  font-style: italic;
}

/* ---- Legal bar ---- */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: calc(35 * var(--px));
  padding-block: calc(48 * var(--px));
  font-size: var(--body-xs-size, calc(13 * var(--px)));
  line-height: 1.4;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: calc(20 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-text-light-secondary);
}

.footer__legal-links a { color: inherit; text-decoration: none; }
.footer__legal-links a:hover { color: var(--color-accent); }

.footer__legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(20 * var(--px));
  color: var(--color-text-light-tertiary);
}

.footer__legal p { margin: 0; }
/* The site's footer disclaimer (Disclaimers library) runs the full width above the two legal columns. */
.footer__disclaimer { grid-column: 1 / -1; }
.footer__disclaimer:not(:has(> :not([hidden]))) { display: none; }
.footer__disclaimer p + p { margin-top: calc(10 * var(--px)); }

.footer__dark {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--brand-dark-charcoal);
  pointer-events: none;
  opacity: 0;
}

@media screen and (max-width: 991px) {
  .footer__main {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand   brand"
      "columns columns"
      "motif   follow";
    column-gap: calc(24 * var(--px));
    row-gap: var(--space-07);
  }

  .footer__columns { flex-wrap: wrap; gap: calc(48 * var(--px)); }
}

@media screen and (max-width: 767px) {
  .footer-cta { min-height: calc(560 * var(--px)); }
  .footer-cta__arch { display: none; }

  .footer__columns { display: grid; grid-template-columns: 1fr 1fr; }
  .footer__column--quick { grid-column: 1 / -1; }

  /* Quick links go two-up on mobile (Figma Footer/Mobile). */
  .footer__column--quick .footer__quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-07);
  }

  /* Share line above the socials, both to the right of the motif. */
  .footer__follow {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(16 * var(--px));
  }

  .footer__share { max-width: calc(200 * var(--px)); }

  .footer__legal { grid-template-columns: 1fr; }

  /* Spacing and type to Footer-v2/Mobile (1775:43400): 35 above the content
     (plus the CTA's overlapping radius), 48 between groups, 14px links on a
     38 pitch, 35 socials; fine print 35 / 20 / 16 at 12 on 16. */
  .footer__body { padding-top: calc(35 * var(--px) + var(--radius-l)); }

  /* 48 under the motif row: 24 plus the body's 24 corner, as the mobile
     frame draws it (Monique QA #20). */
  .footer__main {
    row-gap: calc(48 * var(--px));
    padding-bottom: calc(48 * var(--px));
  }

  /* The L stands as tall as the share line + socials beside it (82 in
     Footer/Mobile; Monique QA #18). */
  .footer__motif {
    width: auto;
    height: calc(82 * var(--px));
  }

  /* A two-line label underlines each line, not the box (Monique QA #17). */
  .footer__quick-label {
    padding-bottom: 0;
    background: none;
    text-decoration: underline;
    text-decoration-thickness: calc(2 * var(--px));
    text-underline-offset: calc(5 * var(--px));
    text-decoration-color: color-mix(in srgb, var(--brand-silver) 20%, transparent);
    transition: text-decoration-color var(--animation-default-half);
  }

  .footer__quick-link:hover .footer__quick-label { text-decoration-color: var(--color-accent-line); }

  .footer__columns {
    column-gap: calc(12 * var(--px));
    row-gap: calc(48 * var(--px));
  }

  .footer__column--quick { gap: calc(24 * var(--px)); }
  .footer__column--quick .footer__quick { gap: calc(20 * var(--px)) calc(10 * var(--px)); }

  .footer__quick-link {
    gap: calc(12 * var(--px));
    font-size: calc(14 * var(--px));
    font-weight: 700;
    line-height: 1.19;
  }

  .footer__column { gap: calc(22 * var(--px)); }

  .footer__links {
    gap: calc(16 * var(--px));
    padding-top: 0;
    line-height: calc(22 * var(--px)); /* each li's strut, else 24 adds 2 to the pitch */
  }

  .footer__link {
    font-size: calc(14 * var(--px));
    line-height: calc(22 * var(--px));
  }

  .footer__share { font-size: calc(14 * var(--px)); }
  .footer__share em { font-size: calc(15 * var(--px)); }
  .footer__social img { width: calc(35 * var(--px)); height: calc(35 * var(--px)); }

  .footer__bottom {
    gap: calc(20 * var(--px));
    padding-top: calc(35 * var(--px));
    line-height: calc(16 * var(--px));
  }

  .footer__legal-links,
  .footer__legal { gap: calc(16 * var(--px)); }
}


/* --- css/sections/hero.css --- */
/* sections/hero.css — blocks/hero, the Page Layouts hero row (Figma "Hero
   Area" 1158:39147 desktop 1600x900, "Hero" 1154:42999 mobile 393x699).
   Full-bleed media behind the floating nav, accent label + display title,
   buttons anchored to the bottom, arch-line brand graphic bottom-right.
   Type comes from the .type-* classes in the markup. */

.section_hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  /* The section clips; the oversized bg wrapper is what the parallax moves */
  overflow: clip;
  /* Pull up behind the floating nav (by the body's padding, core/nav.css) */
  margin-top: calc(-1 * var(--nav-offset, 0px));
}

/* ---- Media ---- */

/* 110% height gives the parallax room to travel without exposing edges */
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: flex;
  width: 100%;
  height: 110%;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}

.hero__poster,
.hero__bg img,
.hero__bg picture,
.hero__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video--vimeo {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
}

.hero__video--vimeo iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78svh);
  height: max(100svh, 56.25vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Figma scrims: 20% charcoal multiply + a darkening fall over the whole
   frame, and a top shade the nav sits on. */
.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg::before {
  background:
    linear-gradient(0deg, rgb(50 50 50 / 0.2), rgb(50 50 50 / 0.2)),
    linear-gradient(180deg, rgb(0 0 0 / 0.09) 0.72%, rgb(33 33 33 / 0.3) 86.14%);
  background-blend-mode: multiply, normal;
}

.hero__bg::after {
  bottom: auto;
  height: calc(140 * var(--px));
  background: linear-gradient(180deg, rgb(50 50 50 / 0.3), rgb(50 50 50 / 0));
}

/* The full-screen hero the nav floats over (homepage): the nav's elevation
   (Figma navBarElevation in 1158:52925; Monique QA #46), a 200 charcoal 30%
   fall with a progressive blur, strongest at the top. */
.section_hero:not(.is-header) .hero__bg::after {
  height: calc(200 * var(--px));
  -webkit-backdrop-filter: blur(calc(12 * var(--px)));
  backdrop-filter: blur(calc(12 * var(--px)));
  -webkit-mask: linear-gradient(180deg, #000 0, rgb(0 0 0 / 0.6) 45%, transparent 100%);
  mask: linear-gradient(180deg, #000 0, rgb(0 0 0 / 0.6) 45%, transparent 100%);
}

/* Fades in as the hero scrolls away (js/components/scroll-darken.js) */
.hero__scroll-darken {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--brand-charcoal);
  opacity: 0;
  pointer-events: none;
}

/* Arch-line brand graphic bleeding off the bottom-right (accent stroke baked
   into the SVG). Above the media, below the content. */
.section_hero::after {
  content: "";
  position: absolute;
  right: calc(-78 * var(--px));
  bottom: calc(-329 * var(--px));
  z-index: 1;
  width: calc(574 * var(--px));
  height: calc(960 * var(--px));
  background: var(--brand-graphic-hero) no-repeat center / contain;
  pointer-events: none;
}

/* ---- Content ---- */

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(178 * var(--px));
  width: 100%;
  padding-top: calc(var(--nav-height, 140px) + var(--space-08));
  padding-bottom: calc(100 * var(--px));
}

.hero__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(70 * var(--px));
}

/* Figma measures gaps from cap height to baseline (text-box-trim). Browsers
   without text-box fall back to line-box spacing, slightly looser. */
.hero__label,
.hero__title {
  text-box: trim-both cap alphabetic;
}

/* Label: accent caps after the brand shape (square with a rounded top) */
/* Block (not flex) so text-box can trim it; the shape sits on the baseline,
   which lines it up with the cap height. */
.hero__label {
  display: block;
  color: var(--color-accent);
}

.hero__label::before {
  content: "";
  display: inline-block;
  margin-right: calc(10 * var(--px));
  width: calc(10 * var(--px));
  height: calc(10 * var(--px));
  border-radius: var(--brand-shape-tiny-radius);
  -webkit-mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  background-color: var(--color-accent);
}

.hero__title {
  max-width: calc(965 * var(--px));
  margin: 0;
  text-wrap: balance;
  color: var(--color-accent);
}

.hero__text {
  max-width: calc(640 * var(--px));
  margin-top: calc(-35 * var(--px));
  color: var(--color-text-light);
}

.hero__content .btn-group {
  gap: calc(12 * var(--px));
}

/* Secondary on media: Figma silver-alpha-10 */
.hero__content .btn.is-subtle {
  --btn-bg: color-mix(in srgb, var(--brand-silver) 10%, transparent);
  --btn-ink: var(--color-text-light);
  --btn-bg-hover: color-mix(in srgb, var(--brand-silver) 20%, transparent);
  --btn-ink-hover: var(--color-text-light);
  backdrop-filter: blur(calc(10 * var(--px)));
  -webkit-backdrop-filter: blur(calc(10 * var(--px)));
}

@media screen and (max-width: 767px) {
  .section_hero::after {
    right: calc(-162 * var(--px));
    bottom: calc(-20 * var(--px));
    width: calc(258 * var(--px));
    height: calc(431 * var(--px));
  }

  .hero__content {
    gap: calc(56 * var(--px));
    padding-bottom: calc(27 * var(--px));
  }

  .hero__main {
    gap: var(--space-06b);
  }

  .hero__label::before {
    margin-right: calc(7 * var(--px));
    width: calc(8 * var(--px));
    height: calc(8 * var(--px));
    border-radius: var(--brand-shape-tiny-radius);
    -webkit-mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
    mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  }

  .hero__text {
    margin-top: 0;
  }

  /* Two buttons share the width when both labels fit; longer labels stack
     instead of running to the screen edges (review board, 17 Nov). Figma
     mobile uses silver-alpha-15. */
  .hero__content .btn-group {
    flex-wrap: wrap;
  }

  /* The 35 mobile height is global in button.css */
  .hero__content .btn-group .btn {
    flex: 1 1 auto;
  }

  .hero__content .btn.is-subtle {
    --btn-bg: color-mix(in srgb, var(--brand-silver) 15%, transparent);
  }
}

/* ---- Page header (media "none", Figma pageHeadeerB 1575:121682) ----
   Text-only charcoal band with rounded bottom corners, centred copy, the
   arch line lower right. Still pulled up behind the floating nav. */

.section_hero.is-header {
  flex-direction: column;
  align-items: center;
  min-height: 0;
  overflow: clip;
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  background-color: var(--brand-charcoal);
  text-align: center;
}

.section_hero.is-header::after {
  top: calc(341 * var(--px));
  right: calc(-173 * var(--px));
  bottom: auto;
  width: calc(605 * var(--px));
  height: calc(752 * var(--px));
}

.section_hero.is-header .hero__content {
  align-items: center;
  gap: var(--space-08);
  max-width: calc(1100 * var(--px) + 2 * var(--container-padding));
  padding-top: calc(var(--nav-height, 140px) + var(--space-11) + var(--space-06));
  padding-bottom: calc(var(--space-11) + var(--space-06));
}

.section_hero.is-header .hero__main {
  align-items: center;
  gap: var(--space-08);
}

.section_hero.is-header .hero__label::before { display: none; }

.section_hero.is-header .hero__title {
  max-width: none;
  font-size: calc(92 * var(--px));
  line-height: calc(101 * var(--px));
  letter-spacing: calc(-2.5 * var(--px));
}

/* An emphasised phrase never breaks at its hyphen ("best- / value"). */
.section_hero.is-header .hero__title em { white-space: nowrap; }

.section_hero.is-header .hero__text {
  max-width: none;
  margin-top: var(--space-01);
  padding-inline: var(--space-10);
  color: var(--color-text-light-secondary);
}

/* Left-aligned page header (Figma pageHeaderA, curated range page
   1851:35296): copy in 9 of 12 columns, label with its brand-shape dot,
   the arch line bigger and higher on the right. */
.section_hero.is-header.is-left { align-items: stretch; text-align: left; }

.section_hero.is-header.is-left::after {
  top: calc(80 * var(--px));
  right: calc(-275 * var(--px));
  width: calc(683 * var(--px));
  height: calc(849 * var(--px));
}

.section_hero.is-header.is-left .hero__content,
.section_hero.is-header.is-left .hero__main { align-items: flex-start; }

.section_hero.is-header.is-left .hero__content { max-width: var(--size-container); }

.section_hero.is-header.is-left .hero__main {
  max-width: calc(9 / 12 * 100%);
  padding-right: var(--space-08);
}

.section_hero.is-header.is-left .hero__label::before { display: inline-block; }

.section_hero.is-header.is-left .hero__text { padding-inline: 0 var(--space-11); }

/* A text-only header is shorter than the arch, so the band cut off its base
   (board 20 Nov, Low Deposit 1) when it hung from the drawn 341. There the
   arch starts 48 under the nav at a fixed size and bleeds out below the
   band, behind the next block's content (Kristen 24 Nov: shrinking it to
   the band's height made it tiny on one-line headers; Chris 25 Nov: fixed
   size, scaling with the window width, smaller sooner on small screens,
   bleeding below the header). Drawn size up to 1600, capped at 37.8% of
   the window (42.7% left-aligned) below that. Headers with a photo take
   the same size but keep the drawn position; phones keep theirs. */
@media screen and (min-width: 768px) {
  .section_hero.is-header::after {
    --arch-w: min(calc(605 * var(--px)), 37.8vw);
    right: calc(var(--arch-w) * -173 / 605);
    width: var(--arch-w);
    height: calc(var(--arch-w) * 752 / 605);
  }

  .section_hero.is-header.is-left::after {
    --arch-w: min(calc(683 * var(--px)), 42.7vw);
    right: calc(var(--arch-w) * -275 / 683);
    width: var(--arch-w);
    height: calc(var(--arch-w) * 849 / 683);
  }

  .section_hero.is-header:not(:has(.hero__feature)) {
    overflow-x: clip;
    overflow-y: visible;
  }

  .section_hero.is-header:not(:has(.hero__feature))::after {
    top: calc(var(--nav-height, 140px) + var(--space-08));
    bottom: auto;
    background-position: center top;
  }

  /* The block after the header paints over the bleed, so the line runs
     behind its photos and cards. :where() keeps blocks that set their own
     position (sticky stacks) as they are. */
  :where(.section_hero.is-header:not(:has(.hero__feature))) + * {
    position: relative;
    z-index: 2;
  }
}

/* Header image (hero_header_image): full container width, 1440:700 with a
   16 radius (pageHeader/standard-B, Figma 2226:110572), 80 above the band's bottom edge; on the plain URL the region
   selector sits 56 up from its bottom, blurb open (Figma 1885:34982). */
.hero__feature {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: var(--space-11);
}

.hero__feature-media {
  overflow: hidden;
  aspect-ratio: 1440 / 700;
  border-radius: var(--radius-m);
}

.hero__feature-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The row after a header image keeps a full gap even with its own top
   padding switched off: 160 image to heading (Figma 2226:110569). Listing
   grids keep their hard edge. */
.section_hero:has(.hero__feature) + [data-section-pt="none"]:not(.section_home-design-grid) {
  padding-top: var(--padding-s);
}

/* Same after a full-bleed hero: 120 hero to content, as the homepage. */
.section_hero:not(.is-header) + [data-section-pt="none"] {
  padding-top: calc(120 * var(--px));
}

.hero__feature .region-strip.is-inline {
  position: absolute;
  left: 50%;
  bottom: calc(var(--space-11) + 56 * var(--px));
  translate: -50% 0;
  width: calc(1196 * var(--px));
  max-width: calc(100% - 2 * var(--space-06));
  text-align: left;
}

.hero__feature .region-strip.is-inline .region-strip__inner {
  box-shadow:
    0 calc(-1 * var(--px)) calc(2 * var(--px)) rgb(0 0 0 / 0.05),
    0 calc(3 * var(--px)) calc(4 * var(--px)) rgb(0 0 0 / 0.08),
    0 calc(7 * var(--px)) calc(12 * var(--px)) rgb(50 50 50 / 0.08);
}

.hero__feature .region-strip__reveal {
  grid-template-rows: minmax(0, 1fr);
  opacity: 1;
}

.hero__feature .region-strip__text { max-width: calc(658 * var(--px)); }

.hero__content .btn .btn__icon.is-down {
  width: calc(11 * var(--px));
  height: calc(11 * var(--px));
  margin: calc(-3 * var(--px)) 0 0 var(--space-03);
  rotate: 90deg;
}

@media screen and (max-width: 767px) {
  .section_hero.is-header::after,
  .section_hero.is-header.is-left::after {
    top: auto;
    right: calc(-190 * var(--px));
    bottom: calc(-330 * var(--px));
    width: calc(258 * var(--px));
    height: calc(431 * var(--px));
  }

  /* Under the 59px solid bar every inner page has, 48 to the overline
     (Figma MB Home Designs Listing 1630:110382): 20 overline to title, 28 to
     the text, 35 to the buttons, 48 below. */
  .section_hero.is-header .hero__content {
    gap: calc(35 * var(--px));
    padding-top: calc(59px + 48 * var(--px));
    padding-bottom: calc(48 * var(--px));
  }

  .section_hero.is-header .hero__main { gap: calc(20 * var(--px)); }
  .section_hero.is-header .hero__text { margin-top: calc(8 * var(--px)); }

  .section_hero.is-header .hero__title {
    font-size: var(--display-xxl-size);
    line-height: var(--display-xxl-lh);
    letter-spacing: var(--display-xxl-ls);
  }

  .section_hero.is-header .hero__text { padding-inline: 0; }
  .section_hero.is-header.is-left .hero__main { max-width: none; padding-right: 0; }

  /* Centred header: buttons size to their labels rather than splitting the row,
     and stay centred under the copy when two labels are too long to share
     one row (Finance at 393: 197 + 212 of 363, so they stack; review board
     20 Nov, they had stacked hard left). */
  .section_hero.is-header .hero__content .btn-group .btn { flex: none; }
  .section_hero.is-header:not(.is-left) .hero__content .btn-group { justify-content: center; }

  /* No phone frame for this state: the image keeps a taller crop and the
     selector stacks under it rather than covering most of it. */
  .hero__feature { padding-bottom: calc(48 * var(--px)); }

  /* 60 image to content, the homepage's hero gap on phones. */
  .section_hero:has(.hero__feature) + [data-section-pt="none"]:not(.section_home-design-grid) {
    padding-top: calc(12 * var(--px));
  }

  .section_hero:not(.is-header) + [data-section-pt="none"] {
    padding-top: calc(60 * var(--px));
  }
  .hero__feature-media { aspect-ratio: 4 / 3; border-radius: var(--radius-m); }

  .hero__feature .region-strip.is-inline {
    position: relative;
    left: auto;
    bottom: auto;
    translate: none;
    max-width: none;
    width: auto;
    margin-top: calc(-48 * var(--px));
    margin-inline: calc(12 * var(--px));
  }
}

/* Group homepage hero (Figma 2080:95184): the three brand shapes as outlines
   at 60%, 3 off the bottom-right corner, 606 x 674. */
:root[data-brand="group"] .section_hero:not(.is-header)::after {
  right: calc(-3 * var(--px));
  bottom: calc(-3 * var(--px));
  width: calc(606 * var(--px));
  height: calc(674 * var(--px));
  background-position: right bottom;
  opacity: 0.6;
}

@media screen and (max-width: 767px) {
  :root[data-brand="group"] .section_hero:not(.is-header)::after {
    width: calc(273 * var(--px));
    height: calc(303 * var(--px));
  }
}

/* Secondary text link over the hero photo (Invest, Financial, Group; Homes
   keeps its pill): silver at 90% (Figma 2080:95211), accent underline. */
.section_hero .btn.is-link {
  --btn-ink: color-mix(in srgb, var(--brand-silver) 90%, transparent);
  --btn-ink-hover: var(--brand-silver);
  --btn-line: color-mix(in srgb, var(--brand-silver) 30%, transparent);
  --color-accent-line: var(--color-accent);
}

/* 404 (404.php): popular pages inside the page header, chips on the dark
   surface; the page is only that band, so the page behind its rounded
   corners is charcoal too (it showed white corners over the footer CTA). */
body.error404 { background-color: var(--brand-charcoal) !important; }
/* The footer's page lip already rounds the page over the footer CTA in the
   last band's colour; square the band off so the two do not stack into a
   second dark slice (Chris 25 Nov). */
body.error404 .section_hero.is-header { border-radius: 0; }
.error-404-links { margin-top: var(--space-04); text-align: center; }
.error-404-links__title { margin: 0 0 var(--space-05); color: var(--color-text-light-secondary); }
.error-404-links__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-03); }


/* --- css/sections/intro.css --- */
/* sections/intro.css — large opening statement (blocks/intro_section):
   eyebrow label + big text that colours in on scroll (data-highlight-text). */

.intro__label {
  display: block;
  margin-bottom: var(--space-s);
  color: var(--color-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-xs);
  font-weight: 600;
}

.intro__statement {
  max-width: 24em;
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.intro__statement p { margin: 0; }
.intro__statement p + p { margin-top: 0.75em; }


/* --- css/sections/text-block.css --- */
/* sections/text-block.css — freeform prose section (blocks/text_block_section).
   Items stack in a narrow reading column sharing the single-post prose rhythm. */

.text-block__items {
  max-width: 42em;
}

.text-block__prose + .text-block__prose { margin-top: var(--space-m); }

.text-block__prose > p,
.text-block__prose > ul,
.text-block__prose > ol {
  line-height: 1.7;
  margin-block: 0 1.25em;
}

.text-block__prose > :is(h2, h3, h4, h5, h6) {
  margin-block: 1.75em 0.6em;
  letter-spacing: -0.02em;
}

.text-block__prose > :first-child { margin-top: 0; }
.text-block__prose > :last-child { margin-bottom: 0; }

.text-block__prose a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.text-block__prose blockquote {
  margin: 1.75em 0;
  padding-left: 1.25em;
  border-left: 2px solid var(--color-ink);
  font-size: var(--text-l);
  line-height: 1.4;
}

/* Long legal copy with no heading: full container width (blocks/text_block_section). */
.text-block.is-wide .block-intro__main,
.text-block.is-wide .block-intro__body {
  max-width: none;
  padding-right: 0;
}

/* Style "Numbered list": heading pinned on the left, items numbered down the
   right, one per row between hairlines. */
.text-block.is-list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gutter);
  align-items: start;
  counter-reset: text-block-item;
}

.text-block.is-list > .block-intro {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(80 * var(--px) + var(--space-08) + var(--admin-bar));
  margin-bottom: 0;
}

.text-block.is-list > .block-intro .block-intro__main { padding-right: 0; }

.text-block.is-list .text-block__items {
  grid-column: 7 / span 6;
  max-width: none;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.text-block.is-list .text-block__prose {
  display: grid;
  grid-template-columns: calc(64 * var(--px)) minmax(0, 1fr);
  padding-block: var(--space-07);
  border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  counter-increment: text-block-item;
}

.text-block.is-list .text-block__prose + .text-block__prose { margin-top: 0; }

.text-block.is-list .text-block__prose::before {
  content: counter(text-block-item, decimal-leading-zero);
  grid-row: 1 / span 9;
  /* The darker brand green: the accent was too faint on a light page (Karina,
     review board Keystart 3; Chris 18 Nov 2026). */
  color: var(--color-accent-shade);
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  line-height: var(--display-s-lh);
  text-box: trim-both cap alphabetic;
}

.text-block.is-list .text-block__prose > * { grid-column: 2; }

.text-block.is-list .text-block__prose > :is(h2, h3, h4) {
  margin-block: 0 var(--space-05);
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
  font-weight: var(--display-s-weight);
  text-box: trim-both cap alphabetic;
}

.text-block.is-list .text-block__prose > p { margin-bottom: 0; opacity: 0.85; }
.text-block.is-list .text-block__prose > p + p { margin-top: 1em; }

@media screen and (max-width: 991px) {
  .text-block.is-list { display: block; }
  .text-block.is-list > .block-intro { position: static; margin-bottom: var(--space-08); }
  .text-block.is-list .text-block__prose { grid-template-columns: calc(48 * var(--px)) minmax(0, 1fr); padding-block: var(--space-06); }
}

/* Style "Comparison": the items side by side as cards, the last one the
   option being recommended, in the accent colour with tick bullets
   (Broker vs Direct, Chris 16 Nov 2026). */
.text-block.is-compare .text-block__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(24 * var(--px));
  max-width: none;
  margin-top: var(--space-08);
}

.text-block.is-compare > .block-intro { margin-bottom: 0; }

.text-block.is-compare .text-block__prose {
  padding: calc(48 * var(--px));
  border-radius: var(--radius-l);
  background-color: var(--brand-silver, #f2f2f2);
  color: var(--brand-charcoal, #2f2f2f);
}

.text-block.is-compare .text-block__prose + .text-block__prose { margin-top: 0; }

/* The other option sits back on silver with no border, so the recommended
   card carries the weight (Monique, Figma 2585:89600). */
.text-block.is-compare .text-block__prose:last-child {
  background-color: var(--color-accent);
}

.text-block.is-compare .text-block__prose > :is(h2, h3, h4) {
  margin-block: 0 calc(35 * var(--px));
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
  font-weight: var(--display-s-weight);
  text-box: trim-both cap alphabetic;
}

.text-block.is-compare .text-block__prose > ul {
  display: grid;
  gap: var(--space-06);
  margin: 0;
  padding: 0;
  list-style: none;
}

.text-block.is-compare .text-block__prose:last-child > ul { gap: var(--space-05); }

.text-block.is-compare .text-block__prose > ul > li {
  position: relative;
  padding-left: calc(32 * var(--px));
  line-height: 1.5;
}

.text-block.is-compare .text-block__prose > ul > li::before {
  content: "";
  position: absolute;
  left: calc(6 * var(--px));
  top: calc(0.75em - 4 * var(--px));
  width: calc(8 * var(--px));
  height: calc(8 * var(--px));
  border-radius: 50%;
  background-color: color-mix(in srgb, currentColor 40%, transparent);
}

.text-block.is-compare .text-block__prose:last-child > ul > li::before {
  left: 0;
  top: calc(0.75em - 10 * var(--px));
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
  border-radius: 0;
  background: url("../img/icons/check-circle.svg") center / contain no-repeat;
}

@media screen and (max-width: 767px) {
  .text-block.is-compare .text-block__items { grid-template-columns: minmax(0, 1fr); }
  .text-block.is-compare .text-block__prose { padding: calc(28 * var(--px)) calc(24 * var(--px)); }
}


/* --- css/sections/cta.css --- */
/* sections/cta.css — full-width CTA band (blocks/cta_section): dark section,
   optional cover image behind a tint overlay, centred block-intro + buttons. */

.section_cta {
  position: relative;
  overflow: clip;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background-color: rgb(0 0 0 / 55%);
}

.cta__content {
  position: relative;
  z-index: 1;
}

/* Inside the band the intro stack loses its own bottom margin */
.section_cta .block-intro { margin-bottom: 0; }


/* --- css/sections/slider.css --- */
/* The DC slider — token-driven styling for the GSAP loop slider
   (js/components/slider.js), plus the CSS-only mobile carousel.

   .dc-slider markup:
     .dc-slider__wrap > [data-slider="list"] > [data-slider="slide"]*
     .dc-slider__nav  > [data-slider-button="prev"|"next"]              */

.dc-slider .dc-slider__wrap {
  width: 100%;
  overflow: hidden;
}

.dc-slider .dc-slider__list {
  display: flex;
  flex-flow: row;
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
  cursor: grab;
}
.dc-slider .dc-slider__list:active { cursor: grabbing; }

.dc-slider .dc-slider__slide {
  aspect-ratio: 3 / 2;
  flex: none;
  width: 28vw;
  padding-inline: calc(var(--gap-m) / 2);
  transition: opacity 0.4s;
  position: relative;
}

.dc-slider .dc-slider__slide-inner {
  border-radius: var(--radius-m);
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.dc-slider .dc-slider__slide-inner img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Non-active slides recede */
.dc-slider [data-slider="slide"] { opacity: 0.35; }
.dc-slider [data-slider="slide"].active { opacity: 1; }

/* Nav buttons are .btn-arrow (components/button.css) */
.dc-slider .dc-slider__nav {
  display: flex;
  gap: calc(8 * var(--px));
  margin-top: var(--gap-l);
}

@media screen and (max-width: 991px) {
  .dc-slider .dc-slider__slide { width: 60vw; }
}

@media screen and (max-width: 767px) {
  .dc-slider .dc-slider__slide { width: 85vw; }

  /* CSS-only mobile carousel for [data-mobile-carousel] grids
     (hotboxes, team cards, info cards) */
  [data-mobile-carousel] {
    display: flex !important;
    gap: var(--gap-m);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  [data-mobile-carousel]::-webkit-scrollbar { display: none; }
  [data-mobile-carousel] > * {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }
}


/* --- css/sections/image-text.css --- */
/* sections/image-text.css — two-up media + copy.

   Owns no layout of its own: the columns come from .dc-cols (base/cols.css).
   This file only styles what is specific to the section — the media framing
   and the copy stack. section_video-text shares it wholesale.

   Markup: blocks/image_text_block_section/render.php
     section.section_image-text[.is-image-right]
       > .container
         > .block-intro (optional)
         > .dc-cols.image-text__cols
           > .dc-col.image-text__media
           > .dc-col.image-text__body */

.image-text__cols { --cols: 2; column-gap: var(--space-11); }

/* Image right = swap the visual order only; DOM order stays media-first so
   the copy reads after the image on mobile regardless of the setting. */
.section_image-text.is-image-right .image-text__media { order: 2; }

.image-text__media { position: relative; }

.image-text__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 708 / 500;
  object-fit: cover;
  border-radius: var(--radius-m);
}

/* Video variant (section_video-text): play button over the poster */
.image-text__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4.5em;
  height: 4.5em;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-ink);
  background-color: var(--color-surface);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform var(--duration-default-half) var(--cubic-default);
}

.image-text__play:hover { transform: scale(1.1); }

.image-text__play svg { width: 40%; }

.image-text__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  --image-text-gap: var(--space-11);
  gap: var(--image-text-gap);
  padding-top: var(--space-06);
}

.image-text__title { max-width: calc(652 * var(--px)); text-box: trim-both cap alphabetic; }

/* Eyebrow (Figma headingCouplet 2141:167081): utility-s at 55% ink, 35 above
   the title while the body keeps its 80 gap below. */
.image-text__label {
  margin: 0 0 calc(var(--space-07) - var(--image-text-gap, var(--space-11)));
  color: var(--color-text-dark-tertiary);
  text-transform: uppercase;
  text-box: trim-both cap alphabetic;
}

[data-theme-section="dark"] .image-text__label { color: var(--color-text-light-tertiary); }

/* Light grey band (Figma bg-light-lighter #f9f9f9); bg-fade reads it as the page colour. */
.section_image-text.is-bg-lighter { background-color: var(--brand-group-white); }

.image-text__text { color: var(--color-text-dark-secondary); }
/* Dark card on a light page (Figma Investors 2226:110569, "Have you considered rentvesting?"):
   charcoal panel, 24 inset, narrow photo left whatever the image position, accent title.
   The render marks the panel data-theme-section="dark" so ink and buttons follow. */
.section_image-text.is-card .image-text__cols {
  --cols: 1;
  grid-template-columns: minmax(0, 5fr) minmax(0, 11fr);
  column-gap: calc(40 * var(--px));
  align-items: center;
  padding: calc(24 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--brand-charcoal);
}
.section_image-text.is-card .image-text__media { order: 0; }
.section_image-text.is-card .image-text__media img { aspect-ratio: 416 / 290; }
.section_image-text.is-card .image-text__body { padding-top: 0; --image-text-gap: var(--space-06); }
.section_image-text.is-card .image-text__title { color: var(--color-accent); font-size: var(--display-m-size); line-height: var(--display-m-lh); letter-spacing: var(--display-m-ls); }
.section_image-text.is-card .image-text__text { color: var(--color-text-light-secondary); }
@media screen and (max-width: 767px) {
  .section_image-text.is-card .image-text__cols { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-06); }
}

/* Accent card (Figma txtMediaBlock-2col-50-50 2463:80720, Monique 4 Nov): accent tint
   panel, copy left at 80 / 88 inset, photo flush right at 817 of 1440 whatever the
   image position, display-m charcoal title 56 above the copy, charcoal button. */
.section_image-text.is-card-accent .image-text__cols {
  grid-template-columns: minmax(0, 623fr) minmax(0, 817fr);
  column-gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: clip;
  background-color: var(--color-accent-tint-2);
}
.section_image-text.is-card-accent .image-text__media { order: 2; }
.section_image-text.is-card-accent .image-text__media img { height: 100%; aspect-ratio: auto; min-height: calc(500 * var(--px)); }
.section_image-text.is-card-accent .image-text__body {
  justify-content: center;
  padding: calc(88 * var(--px)) calc(80 * var(--px));
  --image-text-gap: var(--space-09);
}
.section_image-text.is-card-accent .image-text__title { color: var(--brand-charcoal); }
.section_image-text.is-card-accent .image-text__text { color: var(--brand-charcoal); padding-right: var(--space-09); }
.section_image-text.is-card-accent .image-text__text h3 { font-family: var(--font-serif); font-size: var(--display-s-size); line-height: var(--display-s-lh); letter-spacing: var(--display-s-ls); font-weight: var(--display-s-weight); margin: 0 0 calc(16 * var(--px)); }
@media screen and (max-width: 767px) {
  .section_image-text.is-card-accent .image-text__cols { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .section_image-text.is-card-accent .image-text__media { order: 0; }
  .section_image-text.is-card-accent .image-text__media img { min-height: 0; aspect-ratio: 4 / 3; }
  .section_image-text.is-card-accent .image-text__body { padding: var(--space-08) var(--space-06); }
  .section_image-text.is-card-accent .image-text__text { padding-right: 0; }
}

[data-theme-section="dark"] .image-text__text { color: var(--color-text-light-secondary); }
.image-text__text p { margin: 0; }
.image-text__text p + p { margin-top: calc(10 * var(--px)); }
/* Lists get the rich-text gap on both sides; p { margin: 0 } above would otherwise butt a paragraph against a list. */
.image-text__text > :is(ul, ol) + *,
.image-text__text > * + :is(ul, ol) { margin-top: calc(16 * var(--px)); }
/* A heading inside the copy keeps a gap to the text under it (the paragraph reset above removed it). */
.image-text__text > :is(h2, h3, h4) + * { margin-top: calc(16 * var(--px)); }

.image-text__icon img {
  width: 3em;
  height: auto;
}

.image-text__body > :is(h1, h2, h3, h4, h5, h6) { margin: 0; }

.image-text__text > :first-child { margin-top: 0; }
.image-text__text > :last-child  { margin-bottom: 0; }

.image-text__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-s);
  /* 35 from the copy to its buttons, not the body's 80 title gap: the button read
     as floating (Kellie, review board 5% Deposit 6). */
  margin-top: calc(var(--space-07) - var(--image-text-gap, var(--space-11)));
}

@media screen and (max-width: 767px) {
  .section_image-text.is-image-right .image-text__media { order: 0; }
  /* Straight after a block that ends on a photo, lead with the copy so two
     photos do not sit on top of each other (review board 17 Nov: Next Home
     Buyers 5, Keystart 1, 5% Deposit 4). A hero with a header photo counts.
     Not the accent card: its photo is flush. */
  :is(.section_image-block, .section_stacking-cards, .section_media-columns, .section_hero:has(.hero__feature-media)) + .section_image-text:not(.is-card-accent) .image-text__media { order: 2; }
  .image-text__body { --image-text-gap: var(--space-07); padding-top: 0; }
}

/* "Use image ratio" (Kellie, review board 13 Nov): the image keeps its own shape,
   no crop, full column width. Last in the file so it also wins over the card ratios. */
.section_image-text.is-image-ratio .image-text__media img {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: initial;
}


/* --- css/sections/hotboxes.css --- */
/* sections/hotboxes.css — icon cards on .dc-cols.
   Markup: blocks/hotbox_section/render.php
     section_hotboxes > .container
       > .block-intro (optional)
       > .dc-cols.hotboxes__cols[--cols] > .dc-col.hotbox
       > .btn-group.hotboxes__buttons (optional) */

.hotbox {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-xs);
  padding: var(--gap-l);
  background-color: var(--color-surface-2);
  border-radius: var(--radius-m);
}

.hotbox__icon img {
  width: 3em;
  height: 3em;
  object-fit: contain;
}

.hotbox__title {
  margin: 0;
  font-size: var(--text-l);
}

.hotbox__subtitle {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: var(--text-s);
}

.hotbox__text p { margin: 0; }

.hotbox__link { margin-top: auto; padding-top: var(--gap-s); }

.hotboxes__buttons { margin-top: var(--gap-l); }


/* --- css/sections/info-cards.css --- */
/* sections/info-cards.css — linked cards on .dc-cols.
   Markup: blocks/info_cards/render.php
     section_info-cards > .container
       > .block-intro (optional)
       > .dc-cols.info-cards__cols[--cols] > .dc-col.info-card
   The whole card is clickable (info-card__link stretch link); the corner
   arrow nudges on hover. */

.info-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  padding: var(--gap-l);
  background-color: var(--color-surface-2);
  border-radius: var(--radius-m);
  transition: background-color var(--duration-default-half) var(--cubic-default);
}

.info-card:hover { background-color: var(--color-surface-3); }

.info-card__title {
  margin: 0;
  font-size: var(--text-l);
  padding-right: 2em; /* clear the corner arrow */
}

.info-card__text {
  margin: 0;
  color: var(--color-ink-soft);
}

.info-card__arrow {
  position: absolute;
  top: var(--gap-l);
  right: var(--gap-l);
  width: 1.25em;
  color: var(--color-ink);
  transition: transform var(--duration-default-half) var(--cubic-default);
}

.info-card__arrow svg { width: 100%; display: block; }

.info-card:hover .info-card__arrow { transform: translate(0.15em, -0.15em); }

/* Stretch link: covers the card */
.info-card__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }


/* --- css/sections/image-block.css --- */
/* sections/image-block.css — image gallery grid on .dc-cols.
   Markup: blocks/image_block_section/render.php
     section_image-block > .container
       > .block-intro (optional)
       > .dc-cols.image-block__cols[--cols] > .dc-col.image-block__item
       > .btn-group (optional) */

.image-block__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.image-block__buttons { margin-top: var(--gap-l); }

/* Wide (Figma 1553:59739): 24 from the viewport, 1552 x 750 at 1600, radius-l. */
.section_image-block.is-wide .container {
  max-width: calc(1552px + 48 * var(--px));
  padding-inline: calc(24 * var(--px));
}

.section_image-block.is-wide[data-section-pb="none"] { padding-bottom: calc(24 * var(--px)); }

.section_image-block.is-wide .image-block__item img {
  aspect-ratio: 1552 / 750;
  border-radius: var(--radius-l);
}

@media screen and (max-width: 767px) {
  .section_image-block.is-wide .container { padding-inline: var(--container-padding); }
  .section_image-block.is-wide[data-section-pb="none"] { padding-bottom: calc(24 * var(--px)); }

.section_image-block.is-wide .image-block__item img { aspect-ratio: 4 / 3; border-radius: var(--radius-m); }
}

/* "Use image ratio": the whole image at its own shape (diagrams, charts),
   centred and no wider than 1000 so a small file is not blown up. */
.section_image-block.is-image-ratio .image-block__item { text-align: center; }
.section_image-block.is-image-ratio .image-block__item img,
.section_image-block.is-image-ratio.is-wide .image-block__item img {
  width: auto;
  max-width: min(100%, 1000px);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}


/* --- css/sections/video-block.css --- */
/* sections/video-block.css — full-width autoplaying video band
   (blocks/video_block_section). */

.video-block__media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-l);
  display: block;
}

.video-block__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-m);
  margin-top: var(--gap-l);
}

.video-block__caption {
  max-width: 36em;
  color: var(--color-ink-soft);
}

.video-block__caption p { margin: 0; }


/* --- css/sections/video-wall.css --- */
/* sections/video-wall.css — full-viewport band with floating video cards on a
   cursor-parallax stage (blocks/video_wall). JS (components/video-wall.js)
   owns stage + card transforms and the FLIP top/left/width/height inline
   values; this sheet supplies the layout, the .is-animating transition the
   FLIP rides on, and the <768px inline-slider fallback. */

.section_video-wall {
  position: relative;
  overflow: hidden;
}

/* The wall proper. In hero-intro mode it sits below a 100svh hero. */
.video-wall__wall {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wall__stage-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ——— Hero intro (optional): full-bleed video that FLIP-shrinks into card 1 ——— */

/* Hero mode sits flush to the viewport top: pull up behind the floating nav
   by the body's padding (core/nav.css), same as .section_hero. */
.section_video-wall.is-hero-intro {
  margin-top: calc(-1 * var(--nav-offset, 0px));
}

.video-wall__hero {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wall__hero-media {
  position: absolute;
  inset: 0;
}

/* The FLIP target. GSAP owns x/y/width/height between hero and slot; the
   0.001deg rotate forces GPU rasterising so the scrub stays subpixel-smooth
   (Osmo scaling-element recipe). Radius matches the cards so the shrink
   reads as becoming one of them. */
.video-wall__flip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-m);
  will-change: transform;
  transform: translateX(0) rotate(0.001deg);
  z-index: 3; /* above wall text while in transit */
}

.video-wall__flip-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Parked inside card 1: fills the card, card owns interaction again. */
.video-wall__flip.is-docked {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
}

.video-wall__hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 10, 10, 0.2), rgba(10, 10, 10, 0.55));
  pointer-events: none;
  z-index: 4;
}

.video-wall__hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-s);
}

.video-wall__hero-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8125em;
  color: var(--n-50);
}

.video-wall__hero-title {
  color: var(--n-0);
  margin: 0;
}

/* The destination card is invisible until the video docks into it — the
   video flying in IS the card; a visible empty box reads as a glitch. */
.video-wall__card.is-flip-slot:not(.is-docked) { background: transparent; }
.video-wall__card.is-flip-slot .video-wall__play { opacity: 0; }
.video-wall__card.is-flip-slot.is-docked.is-active .video-wall__play { opacity: 1; }

/* Oversized stage, centred; % translate resolves to px and JS reads that
   resolved value as the parallax base. */
.video-wall__stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  height: 100%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.video-wall__content {
  position: relative;
  z-index: 1;
}

/* ——— Cards ——— */

.video-wall__card {
  position: absolute;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface-2);
  opacity: 0; /* staggered load-in fade; JS transitions to 1 */
  will-change: transform;
}

.video-wall__card:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

/* Placement + size tiers by repeater index. Tuned to ring the centred intro
   the way the reference does: two large anchors top, mid-size flanks, small
   fills. Positions are % of the 150%-wide stage. */
.video-wall__card.is-1 { width: 15%; left: 24%; top: 4%; }
.video-wall__card.is-2 { width: 30%; left: 67%; top: -10%; }
.video-wall__card.is-3 { width: 25%; left: 12%; top: 80%; }
.video-wall__card.is-4 { width: 16%; left: 75%; top: 60%; }
.video-wall__card.is-5 { width: 12%; left: 60%; top: 85%; }
.video-wall__card.is-6 { width: 12%; left: 16%; top: 32%; }

.video-wall__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-wall__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2.5em;
  height: 2.5em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: var(--n-0);
  opacity: 0;
  transition: opacity 0.25s;
}

.video-wall__play svg { width: 1em; height: 1em; }

.video-wall__card.is-active .video-wall__play { opacity: 1; }

/* The cursor-nearest card lifts above the intro text. */
.video-wall__card.is-active { z-index: 2; }

/* ——— FLIP transit ——— */

/* While flying between stage and lightbox the card is pinned to the viewport;
   JS sets inline top/left/width/height and this transition animates them. */
.video-wall__card.is-animating {
  position: fixed;
  z-index: 1002;
  margin: 0;
  opacity: 1;
  transition:
    top    0.55s cubic-bezier(0.625, 0.05, 0, 1),
    left   0.55s cubic-bezier(0.625, 0.05, 0, 1),
    width  0.55s cubic-bezier(0.625, 0.05, 0, 1),
    height 0.55s cubic-bezier(0.625, 0.05, 0, 1);
}

/* Parked in the lightbox slot. */
.video-wall__card.is-lightboxed {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  opacity: 1;
  cursor: default;
}

.video-wall__card.is-lightboxed .video-wall__play { display: none; }

.video-wall__card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ——— Lightbox ——— */

.video-wall__lightbox {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 10, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0s 0.4s;
}

.video-wall__lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s;
}

.video-wall__lightbox-inner {
  width: min(70vw, 142svh); /* 16:9 capped at ~80svh tall */
}

.video-wall__lightbox-slot {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: opacity 0.4s;
}

.video-wall__lightbox-slot.is-leaving,
.video-wall__lightbox-name.is-leaving { opacity: 0; }

.video-wall__lightbox-slot.is-entering,
.video-wall__lightbox-name.is-entering { opacity: 0; transition: none; }

.video-wall__lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-m);
  margin-top: var(--gap-s);
  color: var(--n-50);
}

.video-wall__lightbox-name {
  font-size: 0.9375em;
  color: var(--n-300);
  transition: opacity 0.4s;
}

.video-wall__lightbox-actions {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
}

.video-wall__lightbox-story {
  font-size: 0.9375em;
  color: var(--n-50);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  margin-right: var(--gap-s);
}

.video-wall__lightbox-story[href=""],
.video-wall__lightbox-story:not([href]) { display: none; }

.video-wall__lightbox-btn {
  width: 2.25em;
  height: 2.25em;
  display: grid;
  place-items: center;
  border: 1px solid var(--n-700);
  border-radius: 50%;
  background: transparent;
  color: var(--n-50);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.video-wall__lightbox-btn:hover {
  background: var(--n-0);
  color: var(--n-900);
}

.video-wall__lightbox-btn svg { width: 1em; height: 1em; }

/* ——— Reduced motion ——— */

@media (prefers-reduced-motion: reduce) {
  .video-wall__card.is-animating,
  .video-wall__lightbox,
  .video-wall__lightbox-slot,
  .video-wall__lightbox-name { transition: none; }
}

/* ——— Mobile fallback (<768px): inline poster slider ——— */

@media (max-width: 767px) {
  .video-wall__wall {
    flex-direction: column;
    justify-content: center;
    gap: var(--space-m);
    min-height: 0;
    padding-block: var(--space-l);
  }

  /* Hero: static full-bleed video, no FLIP (the scrub is desktop-only). */
  .video-wall__hero { height: 70svh; }

  .video-wall__stage-wrap { display: none; }

  /* JS re-mounts the lightbox in flow and keeps it open as a slider. */
  .video-wall__lightbox {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    background: none;
    opacity: 1;
    visibility: visible;
    padding-inline: var(--container-pad, 5vw);
  }

  .video-wall__lightbox-inner { width: 100%; }

  .video-wall__card { opacity: 1; }

  /* Close is a no-op on mobile — the slider is permanently open. */
  .video-wall__lightbox-btn[data-vw="close"] { display: none; }
}


/* --- css/sections/stacking-cards.css --- */
/* sections/stacking-cards.css — Process Card Stack (blocks/stacking_cards;
   Figma block-processCardStack 1158:39546, blocks board "Large process card
   stacking block"; mobile 1154:42887). Osmo 'Stacking Cards 3D (CSS)'.
     section_stacking-cards > .container > .block-intro
       > .card-stack[.is--fanned] > .card-stack__item
         > .card-stack__inner > .card-stack__copy (title + body) + .card-stack__media

   HOW IT WORKS — no JS at all:
   1. .card-stack is a grid with one --stack-row row per card. That row is pure
      scroll distance; the card is shorter and position:sticky, so each card
      parks at --stack-top while its row scrolls past.
   2. .card-stack carries view-timeline-name, so every card can animate against
      the STACK's progress rather than its own.
   3. Each card's animation-range is offset by its index (--stack-i), so card N
      only tilts away while card N+1 slides over it (3D variant only).

   Cards take the accent at 100/80/60/40/25% over white, first to last, per the
   board note ("5 background colours for a max of 5 cards").

   SUPPORT: scroll-driven animations are Chrome/Edge 115+ and Safari 26+.
   Elsewhere the cards still stack as plain sticky cards. */

.card-stack {
  --stack-row: 100svh;
  --stack-top: calc(80 * var(--px) + calc(24 * var(--px)) + var(--admin-bar));
  --stack-card-height: min(calc(568 * var(--px)), calc(100svh - var(--stack-top) - calc(24 * var(--px))));

  --stack-perspective: 60em;
  --stack-rotate: 25deg;
  --stack-scale: 0.85;
  --stack-dim: 0.45;

  display: grid;
  grid-auto-rows: var(--stack-row);
  width: 100%;
  position: relative;
  view-timeline-name: --card-stack;
}

.card-stack > .card-stack__item:last-child { margin-bottom: 0; }

.card-stack__item {
  --card-shade: 100%;

  position: sticky;
  top: var(--stack-top);
  height: var(--stack-card-height);
  padding: calc(22 * var(--px));
  border-radius: var(--radius-l);
  overflow: hidden;
  transform-origin: 50% 100%;
  background-color: color-mix(in srgb, var(--color-accent) var(--card-shade), var(--brand-white));
  color: var(--color-text-dark);
  box-shadow: 0 calc(-2 * var(--px)) calc(12 * var(--px)) rgb(0 0 0 / 0.06);
}

.card-stack__item:nth-child(2) { --card-shade: 80%; }
.card-stack__item:nth-child(3) { --card-shade: 60%; }
.card-stack__item:nth-child(4) { --card-shade: 40%; }
.card-stack__item:nth-child(5) { --card-shade: 25%; }

.card-stack__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.11fr);
  gap: calc(35 * var(--px));
  height: 100%;
}

.card-stack__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(24 * var(--px));
  padding: calc(13 * var(--px)) 0 calc(13 * var(--px)) calc(13 * var(--px));
  min-height: 0;
}

.card-stack__title { margin: 0; }
.card-stack__title em { font-style: italic; }

.card-stack__body {
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--px));
  /* The 420 measure is the body copy's; the title runs the full column so
     "Your very own home design" stays on one line as drawn. */
  max-width: calc(420 * var(--px));
  /* so long copy cannot push past the card's bottom edge */
  min-height: 0;
}

.card-stack__subheading {
  margin: 0;
  font-size: calc(17 * var(--px));
  font-weight: 700;
  line-height: 1.45;
}

.card-stack__text {
  margin: 0;
  color: var(--color-text-dark-secondary);
}

/* Figma card-large-process (1622:80883): 30 subheading to text, 48 text to
   buttons, 12 between buttons (Monique QA #38). */
.card-stack__body { gap: calc(30 * var(--px)); }
.card-stack__subheading,
.card-stack__text { text-box: trim-both cap alphabetic; }

.card-stack__body .btn-group {
  margin-top: calc(18 * var(--px));
  gap: calc(12 * var(--px));
}

.card-stack__media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-m);
  background-color: color-mix(in srgb, var(--brand-charcoal) 30%, transparent);
}

/* Brand arch line in the image's bottom-right corner */
.card-stack__media::after {
  content: "";
  position: absolute;
  right: calc(-108 * var(--px));
  bottom: calc(-108 * var(--px));
  width: calc(216 * var(--px));
  height: calc(216 * var(--px));
  border: calc(1.5 * var(--px)) solid var(--brand-white);
  border-radius: 50%;
  pointer-events: none;
}

.card-stack__image,
.card-stack__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Index for the per-card offsets. sibling-index() is the real answer;
   the nth-child ladder is the fallback for browsers without it. */
.card-stack__item:nth-child(1) { --stack-i: 1; }
.card-stack__item:nth-child(2) { --stack-i: 2; }
.card-stack__item:nth-child(3) { --stack-i: 3; }
.card-stack__item:nth-child(4) { --stack-i: 4; }
.card-stack__item:nth-child(5) { --stack-i: 5; }

@supports (width: calc(sibling-index() * 1px)) {
  .card-stack__item { --stack-i: sibling-index(); }
}

@supports (animation-timeline: view()) {
  .card-stack:not(.is--fanned) .card-stack__item {
    animation: card-stack-away linear forwards;
    animation-timeline: --card-stack;
    animation-range:
      exit-crossing calc(var(--stack-i, 1) * var(--stack-row) - 100svh)
      exit-crossing calc(var(--stack-i, 1) * var(--stack-row) - var(--stack-top));
  }
  .card-stack:not(.is--fanned) .card-stack__item:last-child { animation: none; }
}

@keyframes card-stack-away {
  to {
    transform: perspective(var(--stack-perspective)) rotateX(var(--stack-rotate)) scale(var(--stack-scale));
    filter: brightness(var(--stack-dim));
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-stack__item { animation: none; }
}

/* ---- Variant: is--fanned (default) -------------------------------------
   Each card pins one --stack-offset LOWER than the one before and loses the
   same height, so every card's bottom edge lands on the same line while its
   top steps down: the previous card's title stays readable above it. The
   offset = card padding + the title's first line + a little air, so the
   FIRST LINE of the previous title shows (Chris 2026-09-15; Figma's 64 hid it).
   It reads the title's type tokens, so it follows the type scale. */

.card-stack.is--fanned {
  --stack-title-pad: calc(35 * var(--px));
  --stack-offset: calc(var(--stack-title-pad) + var(--display-m-size) * var(--display-m-lh) + calc(16 * var(--px)));
  /* Room under the card for the floating region bar, so the buttons at the
     foot of a card are never behind it (review board, 17 Nov). */
  --stack-bottom: calc(96 * var(--px));
  --stack-card-height: min(calc(568 * var(--px) + (var(--stack-count, 5) - 1) * var(--stack-offset)), calc(100svh - var(--stack-top) - var(--stack-bottom)));
  /* A row is as tall as the tallest card plus a short hold: the next card
     only starts to cover this one once it is parked and fully in view. At
     0.6 of a window the next card covered the text and buttons before they
     were ever on screen on laptops, and the last card hung over the block
     below on phones. */
  grid-auto-rows: calc(min(calc(672 * var(--px)), var(--stack-card-height)) + 12svh);
}

.card-stack.is--fanned .card-stack__item {
  top: calc(var(--stack-top) + (var(--stack-i) - 1) * var(--stack-offset));
  /* No card taller than 672 (Monique QA #39, Chris 10 Nov): on big screens
     the fan's full height made the first card very tall. */
  height: min(calc(672 * var(--px)), calc(var(--stack-card-height) - (var(--stack-i) - 1) * var(--stack-offset)));
}

/* Tablet (768-991): the copy needs more of the card than the desktop split
   gives it, and the fan tightens so five cards still fit the screen. */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .card-stack { --stack-row: 95svh; }

  .card-stack.is--fanned { --stack-title-pad: calc(24 * var(--px)); }

  .card-stack__item { padding: calc(16 * var(--px)); }

  .card-stack__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: calc(24 * var(--px));
  }

  .card-stack__body { max-width: none; }

  .card-stack__copy {
    padding: calc(8 * var(--px)) 0 calc(8 * var(--px)) calc(8 * var(--px));
    gap: calc(16 * var(--px));
  }

  .card-stack__body .btn-group { flex-wrap: wrap; }
}

@media screen and (max-width: 767px) {
  .card-stack {
    --stack-row: 90svh;
    --stack-top: calc(59px + calc(12 * var(--px)) + var(--admin-bar)); /* the solid mobile bar */
  }

  /* Mobile cards cover each other fully, no fanned titles, so each card gets
     the room for the design's padding (Monique QA #10, Chris 10 Nov; Figma
     1154:42887: 24 top, 20 sides and bottom, 30 between groups). */
  .card-stack.is--fanned { --stack-offset: 0px; --stack-bottom: calc(84 * var(--px)); }

  .card-stack__item { padding: calc(24 * var(--px)) calc(20 * var(--px)) calc(20 * var(--px)); }

  .card-stack__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: calc(30 * var(--px));
  }

  .card-stack__body { max-width: none; }

  .card-stack__copy {
    padding: 0;
    gap: calc(30 * var(--px));
  }

  .card-stack__body .btn-group { flex-direction: column; align-items: stretch; }

  /* Mobile frame: 16 subheading to text, 30 text to button. */
  .card-stack__body { gap: calc(16 * var(--px)); }
  .card-stack__body .btn-group { margin-top: calc(14 * var(--px)); gap: calc(8 * var(--px)); }
}


/* --- css/sections/stacking-cards-parallax.css --- */
/* sections/stacking-cards-parallax.css — Home Designs Stack
   (blocks/stacking_cards_parallax; Figma 1158:39471 / card 1480:35058, which
   replaced 1158:39507 in the 22 Sep update; mobile 1154:42792). CSS sticky
   stack; the only JS is the first card's arch reveal (Chris 2026-09-15).

     section_home-designs > .container > .block-intro
       > .home-designs__stack
         > article.home-design-card[data-arch-reveal on the first]*
             > img + header (title, specs, button, mobile arrow)
               + figure.home-design-card__floorplan + footer (description)

   HOW IT STACKS: every card is position:sticky at --stack-top (just under the
   compact sticky header), so it stops dead when it gets there. Each later card
   sits one viewport below the previous card's parked position plus --stack-hold,
   so it only appears once the card before has parked and held for a moment.
   A spacer after the stack gives the last card the same hold.

   --stack-top = the compact header in core/nav.css (80 Figma px from 992px,
   72px below) + --stack-gap (24, Chris 2026-09-16), which is also the section's
   inline padding, so a parked card clears the header and the page edges by the
   same amount. overflow: clip on the section does not break sticky. */

.section_home-designs {
  --stack-gap: calc(24 * var(--px));
  --stack-top: calc(80 * var(--px) + var(--stack-gap) + var(--admin-bar));
  --stack-hold: 25svh;

  /* WIDTH leads (Chris 2026-09-16): full width up to the 1600 frame less the
     side padding. HEIGHT is whatever is left between the parked position and a
     --stack-gap strip at the bottom, floor 500, ceiling 900 — and never taller
     than 16:9 of the width it actually has, so the card never out-grows the
     1600 x 900 shape on a tall window. */
  --stack-card-w: min(calc(100vw - 2 * var(--stack-gap)), calc(1600px - 48px));
  --stack-room: calc(100svh - var(--stack-top) - var(--stack-gap));
  --stack-card: min(clamp(500px, var(--stack-room), 900px),
      calc(var(--stack-card-w) * 9 / 16));

  overflow: clip;
}

@media screen and (max-width: 991px) {
  .section_home-designs {
    --stack-top: calc(59px + var(--stack-gap) + var(--admin-bar)); /* the solid mobile bar */
  }
}

.home-designs__stack {
  position: relative;
  padding-inline: var(--stack-gap);
}

/* ARCH REVEAL: the first card starts as the Locale arch (Figma's arch: 1286
   wide, a full semicircle top) and opens into its rectangle as it scrolls up.
   js/components/arch-reveal.js scrubs --arch-progress 0 -> 1 until the card
   parks; 1 is the plain card, so no JS / reduced motion just shows the card.
   The card's content fades in over the last 30% so the curve never cuts it. */
.home-design-card[data-arch-reveal] {
  --arch-progress: 1;
  --arch-w: min(calc(1286 * var(--px)), 90vw);
  --arch-side: calc((100% - var(--arch-w)) / 2 * (1 - var(--arch-progress)));
  --arch-r: calc(var(--arch-w) / 2 * (1 - var(--arch-progress)) + var(--radius-l) * var(--arch-progress));
  --arch-r-btm: calc(var(--radius-l) * var(--arch-progress));

  clip-path: inset(0 var(--arch-side) 0 var(--arch-side) round var(--arch-r) var(--arch-r) var(--arch-r-btm) var(--arch-r-btm));
}

/* Content reveal, scrubbed by js/components/lock-reveal.js as the card comes
   up to its sticky top. Default 1 so no-JS and reduced motion get the finished
   card. The three groups are staggered so the eye lands top-left, then the
   description, then the floorplan; each window is 0.45 wide and they overlap.
   The arch only controls card one's SHAPE now, not its content. */
.home-design-card { --lock-progress: 1; }

.home-design-card__header,
.home-design-card__footer,
.home-design-card__floorplan {
  opacity: var(--lock-reveal);
  will-change: opacity, translate;
}

.home-design-card__header {
  --lock-reveal: clamp(0, calc((var(--lock-progress) - 0.1) / 0.45), 1);
  translate: 0 calc((1 - var(--lock-reveal)) * 24 * var(--px));
}

.home-design-card__footer {
  --lock-reveal: clamp(0, calc((var(--lock-progress) - 0.3) / 0.45), 1);
  translate: 0 calc((1 - var(--lock-reveal)) * 24 * var(--px));
}

/* The floorplan slides in from the right rather than up, so it reads as
   arriving onto the card. */
.home-design-card__floorplan {
  --lock-reveal: clamp(0, calc((var(--lock-progress) - 0.45) / 0.45), 1);
  translate: calc((1 - var(--lock-reveal)) * 48 * var(--px)) 0;
}

@media (prefers-reduced-motion: reduce) {
  .home-design-card__header,
  .home-design-card__footer,
  .home-design-card__floorplan {
    opacity: 1;
    translate: none;
  }
}

/* Sticky is bounded by the content box, so the last card's hold is a spacer,
   not padding */
.home-designs__stack::after {
  content: "";
  display: block;
  height: var(--stack-hold);
}

.home-design-card {
  position: sticky;
  top: var(--stack-top);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: calc(1600px - 48px);
  height: var(--stack-card);
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-l);
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
}

.home-design-card+.home-design-card {
  margin-top: calc(100svh - var(--stack-top) - var(--stack-card) + var(--stack-hold));
}

.home-design-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Elevation, to Monique's formula (Figma "Applying Elevation Effects"
   2500:59458; QA #28): a 30% dark wash; under the header a 289 black 10% fade
   and a 450 charcoal gradient (60% at the top, gone by about 290); over the
   footer a 200 charcoal 50% fade and a 190 near-black 67% fade. */
.home-design-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgb(50 50 50 / 0.6) 0, rgb(50 50 50 / 0.24) calc(180 * var(--px)), rgb(50 50 50 / 0) calc(290 * var(--px))),
    linear-gradient(to bottom, rgb(0 0 0 / 0.1) 0, rgb(0 0 0 / 0) calc(289 * var(--px))),
    linear-gradient(to top, rgb(12 12 12 / 0.67) 0, rgb(12 12 12 / 0) calc(190 * var(--px))),
    linear-gradient(to top, rgb(50 50 50 / 0.5) 0, rgb(50 50 50 / 0) calc(200 * var(--px))),
    rgb(0 0 0 / 0.3);
  pointer-events: none;
}

/* The header's soft blur: a backdrop blur that fades out down the top 289
   (the "bg-blur" layer in the same formula). */
.home-design-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: calc(289 * var(--px));
  -webkit-backdrop-filter: blur(calc(10 * var(--px)));
  backdrop-filter: blur(calc(10 * var(--px)));
  -webkit-mask: linear-gradient(to bottom, #000 0, transparent 100%);
  mask: linear-gradient(to bottom, #000 0, transparent 100%);
  pointer-events: none;
}

.home-design-card__header,
.home-design-card__footer {
  position: relative;
  z-index: 2;
  padding: calc(56 * var(--px));
}

.home-design-card__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(24 * var(--px));
}

.home-design-card__title {
  margin: 0;
}

.home-design-card__footer {
  display: flex;
  align-items: flex-end;
}

.home-design-card__text {
  margin: 0;
  max-width: calc(750 * var(--px));
}

/* Keep the description clear of the floorplan. At 1600 the text (56 + 750)
   stops well short of it, but the design stops scaling at 1440, so from about
   1210 down the card narrows while the floorplan does not and the two would
   overlap. Only cards that actually have a floorplan are narrowed. */
@media screen and (min-width: 768px) {
  .home-design-card:has(.home-design-card__floorplan) .home-design-card__footer {
    padding-right: calc(512 * var(--px));
  }
}

/* Each design's own floorplan, bottom right, inset by the card's 56 padding.
   The plan sits straight on the photo, no card behind it (Chris, 6 Oct 2026):
   floorplans are being supplied as PNGs that are transparent outside the plan
   with solid rooms. A floorplan not yet swapped (white background) shows as
   a white rectangle until its PNG lands. Height is capped at 60% of the viewport (Chris, 6 Oct 2026) so short
   laptop screens keep the plan inside the card; the minimum gives way to the
   cap and the image follows it inside the 24 padding. */
.home-design-card__floorplan {
  --plan-max: clamp(200px, 60vh, calc(540 * var(--px)));
  position: absolute;
  right: calc(56 * var(--px));
  bottom: calc(56 * var(--px));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--space-06);
  min-width: calc(300 * var(--px));
  min-height: min(calc(300 * var(--px)), var(--plan-max));
  max-width: calc(400 * var(--px));
  max-height: var(--plan-max);
}

.home-design-card__floorplan-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(var(--plan-max) - 2 * var(--space-06));
  object-fit: contain;
}

/* Mobile only: the arrow replaces the button (Figma 1154:42792). */
.home-design-card__arrow { display: none; }

.home-design-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: calc(24 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-design-card__spec {
  display: flex;
  align-items: center;
  gap: calc(9.6 * var(--px));
  font-size: calc(24 * var(--px));
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0.005em;
}

.home-design-card__spec img {
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  object-fit: contain;
}

.home-design-card__text {
  margin: 0;
}

.home-design-card .btn-group {
  flex-wrap: nowrap;
  gap: calc(12 * var(--px));
}

@media screen and (max-width: 767px) {
  .home-design-card[data-arch-reveal] {
    --arch-w: calc(310 * var(--px));
  }

  /* Figma's mobile card is its own shape, not the 1600 x 900 frame
     (1480:36649: 363 x 390, photo in the top 275). */
  .section_home-designs {
    --stack-card: calc(390 * var(--px));
  }

  .home-design-card {
    max-width: none;
  }

  .home-design-card__img {
    height: 70%;
  }

  .home-design-card::before {
    background:
      linear-gradient(to bottom, transparent 40%, var(--brand-charcoal) 72%),
      rgb(0 0 0 / 0.15);
  }

  .home-design-card::after { display: none; }

  /* Mobile card (Figma 1480:36649): title top left with the accent arrow
     beside it; the spec row and description sit together at the bottom.
     The header steps out of the box (display: contents) so its title and
     spec row can be ordered apart without duplicating markup; they still
     inherit the header's --lock-reveal, so the scroll-in fade carries on. */
  .home-design-card__header { display: contents; }

  .home-design-card__header > * {
    opacity: var(--lock-reveal);
    translate: 0 calc((1 - var(--lock-reveal)) * 24 * var(--px));
  }

  .home-design-card__title {
    position: relative;
    z-index: 2;
    order: 1;
    display: flex;
    align-items: center;
    min-height: calc(35 * var(--px));
    max-width: calc(100% - 95 * var(--px)); /* clear of the 35 arrow: 20 + 35 + 20 gap, plus the 20 left inset */
    margin: calc(20 * var(--px)) 0 0 calc(20 * var(--px));
    font-size: var(--display-m-size);
    line-height: var(--display-m-lh);
    letter-spacing: var(--display-m-ls);
    color: var(--color-text-light);
  }

  .home-design-card__specs {
    position: relative;
    z-index: 2;
    order: 3;
    margin: auto calc(20 * var(--px)) 0;
    gap: calc(18 * var(--px));
  }

  .home-design-card__spec {
    gap: calc(7 * var(--px));
    font-size: calc(13.5 * var(--px));
    letter-spacing: 0.09px;
  }

  .home-design-card__spec img {
    width: calc(18 * var(--px));
    height: calc(18 * var(--px));
  }

  /* Block, not the desktop flex row: inside a flex item the 4-line clamp
     resolved to ~3.5 lines and cut the last one in half. */
  .home-design-card__footer {
    order: 4;
    display: block;
    padding: calc(16 * var(--px)) calc(20 * var(--px)) calc(20 * var(--px));
  }

  .home-design-card__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    /* The type class trims the box to cap height at both ends; with the clamp's
       overflow hidden that sliced the descenders off the last line. Trim the
       top only, so the 16 gap to the spec row still matches Figma. */
    text-box: trim-start cap alphabetic;
    font-size: var(--body-s-size);
    line-height: var(--body-s-lh);
    letter-spacing: var(--body-s-ls);
  }

  .home-design-card__header .btn-group,
  .home-design-card__floorplan { display: none; }

  .home-design-card__arrow {
    position: absolute;
    top: calc(20 * var(--px));
    right: calc(20 * var(--px));
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(35 * var(--px));
    height: calc(35 * var(--px));
    border-radius: var(--radius-full);
    background-color: var(--color-accent);
    color: var(--brand-charcoal);
  }

  .home-design-card__arrow svg {
    width: calc(21 * var(--px));
    height: calc(21 * var(--px));
  }

  .home-design-card .btn-group>.btn {
    flex: 1;
  }
}

/* The intro body reads at body-l in this section's design, not the default body-m */
.section_home-designs .block-intro__text {
  font-size: var(--body-l-size);
  line-height: var(--body-l-lh);
  letter-spacing: var(--body-l-ls);
}


/* --- css/sections/bouncy-tabs.css --- */
/* sections/bouncy-tabs.css — Audience Tabs (Figma block-tabs-audience,
   node 1158:39448; mobile 1154:42760). Vault 'Bouncy Content Tabs' motion.
   Markup: blocks/bouncy_tabs/render.php
     section_bouncy-tabs > .container > .block-intro
       > .bouncy-tabs[data-bouncy-tabs-init]
         > .bouncy-tabs__bar > .bouncy-tabs__nav (ghost + indicator + buttons)
         > .bouncy-tabs__collection > .bouncy-tabs__list > .bouncy-tabs__item*
             > .bouncy-tabs__feature (visual + panel card) + .bouncy-tabs__resources (.card x2)

   The pill and ghost are positioned by GSAP; this file only shapes them.
   Panels are absolutely positioned and the script animates the list height,
   so .bouncy-tabs__collection keeps overflow:hidden. Resource cards are the
   shared .card component. */

.bouncy-tabs {
  display: flex;
  flex-direction: column;
  gap: calc(48 * var(--px));
}

.bouncy-tabs__bar { padding-inline: calc(35 * var(--px)); }

.bouncy-tabs__nav {
  position: relative;
  display: flex;
  gap: calc(2 * var(--px));
  padding: calc(4 * var(--px));
  border-radius: var(--radius-full);
  background-color: color-mix(in srgb, var(--brand-charcoal) 5%, transparent);
  box-shadow: inset 0 0 4px rgb(0 0 0 / 0.05), inset 0 1px 2px rgb(0 0 0 / 0.05);
}

.bouncy-tabs__ghost,
.bouncy-tabs__indicator {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: var(--radius-full);
}

.bouncy-tabs__ghost {
  z-index: 1;
  width: 2em;
  opacity: 0;
  visibility: hidden;
  background-color: color-mix(in srgb, var(--brand-charcoal) 8%, transparent);
}

.bouncy-tabs__indicator {
  z-index: 2;
  width: 3em;
  background-color: var(--brand-charcoal);
  filter: drop-shadow(0 2px 1.5px rgb(0 0 0 / 0.2));
}

.bouncy-tabs__button {
  position: relative;
  z-index: 3;
  flex: 1 0 0;
  /* Never narrower than its label: on a short window the block narrows with
     the height and equal tabs cut "Next Home Buyers" (Kellie, 24 Nov 2026,
     1280 x 670). Long labels keep their width, the rest share what is left. */
  min-width: max-content;
  height: calc(40 * var(--px));
  padding: 0 calc(24 * var(--px));
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  font-size: calc(16 * var(--px));
  font-weight: 630;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--animation-default-half);
}

.bouncy-tabs__button[data-active] { color: var(--color-text-light); }

/* clip, not hidden: hidden makes this a scroll container and the sticky
   panel card inside would stick to it instead of the page */
.bouncy-tabs__collection {
  width: 100%;
  overflow: clip;
  /* The last card title is trimmed to its baseline and ends flush with the
     panel, so the clip cut its descenders (board 20 Nov, Homepage 22). The
     panels carry 10 below them (counted in the height the script animates)
     and this margin gives the space back. */
  margin-bottom: calc(-10 * var(--px));
}

.bouncy-tabs__list {
  position: relative;
  width: 100%;
}

.bouncy-tabs__item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding-bottom: calc(10 * var(--px));
  display: flex;
  align-items: flex-start;
  gap: calc(35 * var(--px));
}

.bouncy-tabs__item:not([data-active]) {
  opacity: 0;
  visibility: hidden;
}

.bouncy-tabs__feature {
  position: relative;
  flex: 1 0 0;
  align-self: stretch;
  min-width: 0;
  min-height: calc(474 * var(--px));
  padding-left: calc(35 * var(--px));
}

.bouncy-tabs__visual {
  position: absolute;
  inset: 0 0 0 calc(35 * var(--px));
  overflow: hidden;
  border-radius: var(--radius-m);
}

.bouncy-tabs__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bouncy-tabs__panel-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(24 * var(--px));
  width: min(calc(380 * var(--px)), 100%);
  margin-top: calc(65 * var(--px));
  margin-left: calc(-35 * var(--px));
  padding: calc(35 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--color-accent-tint-2);
  color: var(--color-text-dark);
  filter: drop-shadow(0 3px 2px rgb(0 0 0 / 0.05));
}

/* Desktop + tablet: the card rides down the image, 50 below the compact
   sticky header (80 Figma px from 992px, 59px below), and stops 50 before the
   bottom of .bouncy-tabs__feature (sticky stays inside the parent's content
   box, so the feature's bottom padding is that 50). */
/* A short window (14 and 16 inch laptops): the tabs narrow with the window
   height so a whole panel fits the screen, the same rule as the featured
   resources bento (1420 wide less the page gutters at 1080 high). The block
   intro above keeps the full container. */
@media screen and (min-width: 992px) {
  .bouncy-tabs {
    width: 100%;
    max-width: calc(100svh * 1420 / 1080 - 2 * var(--container-padding));
    margin-inline: auto;
  }
}

@media screen and (min-width: 768px) {
  /* The image keeps the Figma crop (1007 x 758 inside the 1042 feature) and no
     longer stretches to the height of the resource cards beside it. */
  .bouncy-tabs__feature {
    --panel-card-gap: calc(50 * var(--px));
    align-self: flex-start;
    aspect-ratio: 1042 / 758;
    padding-bottom: var(--panel-card-gap);
  }

  .bouncy-tabs__panel-card {
    position: sticky;
    top: calc(80 * var(--px) + var(--panel-card-gap) + var(--admin-bar));
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .bouncy-tabs__panel-card { top: calc(59px + var(--panel-card-gap)); } /* the solid mobile bar */
}

.bouncy-tabs__heading,
.bouncy-tabs__para { margin: 0; }

.bouncy-tabs__para { color: var(--color-text-dark-secondary); }

.bouncy-tabs__cta { width: 100%; }

.bouncy-tabs__resources {
  display: flex;
  flex-direction: column;
  gap: calc(24 * var(--px));
  /* Figma: 363 of the 1440 block, so the column narrows with the block. */
  width: clamp(calc(240 * var(--px)), 25.2%, calc(363 * var(--px)));
  flex-shrink: 0;
}

/* The panel card scales with the feature (Figma 380 of 1042, a little wider
   so the heading still fits) and tightens on a short window, so it covers
   less of the smaller photo. */
@media screen and (min-width: 992px) {
  .bouncy-tabs__panel-card { width: clamp(calc(290 * var(--px)), 42%, calc(380 * var(--px))); }
}

@media screen and (min-width: 992px) and (max-height: 900px) {
  .bouncy-tabs__panel-card {
    gap: calc(16 * var(--px));
    margin-top: calc(40 * var(--px));
    padding: calc(24 * var(--px));
  }
}

/* A very short window (a 14 inch laptop at 150%, about 1280 x 670): the tab
   bar sits closer to its panel and the two resource cards closer together,
   so the tabs and a whole panel fit under the header. */
@media screen and (min-width: 992px) and (max-height: 760px) {
  .bouncy-tabs { gap: calc(24 * var(--px)); }
  .bouncy-tabs__resources { gap: calc(16 * var(--px)); }
}

/* Tablet (768-991): same two columns, tighter insets and a smaller panel card
   so the image keeps its width and nothing collides. */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .bouncy-tabs { gap: calc(35 * var(--px)); }

  .bouncy-tabs__bar { padding-inline: calc(24 * var(--px)); }

  .bouncy-tabs__item { gap: calc(24 * var(--px)); }

  .bouncy-tabs__feature {
    min-height: calc(380 * var(--px));
    padding-left: calc(24 * var(--px));
  }

  .bouncy-tabs__visual { inset: 0 0 0 calc(24 * var(--px)); }

  .bouncy-tabs__panel-card {
    width: min(calc(320 * var(--px)), 100%);
    gap: calc(16 * var(--px));
    margin-top: calc(40 * var(--px));
    margin-left: calc(-24 * var(--px));
    padding: calc(24 * var(--px));
  }

  .bouncy-tabs__resources { gap: calc(16 * var(--px)); }
}

@media screen and (max-width: 767px) {
  .bouncy-tabs { gap: calc(24 * var(--px)); }

  /* Sticky tabs within the block, swipe for the overflow tabs */
  .bouncy-tabs__bar {
    position: sticky;
    top: calc(var(--nav-height, 0px) + var(--admin-bar));
    z-index: 5;
    margin-inline: calc(-1 * var(--container-padding));
    padding: calc(8 * var(--px)) var(--container-padding);
    overflow-x: auto;
    scrollbar-width: none;
    background-color: var(--color-surface);
  }

  .bouncy-tabs__bar::-webkit-scrollbar { display: none; }

  .bouncy-tabs__nav { width: max-content; }

  .bouncy-tabs__button {
    flex: 0 0 auto;
    padding: 0 calc(12 * var(--px));
    font-size: calc(14 * var(--px));
  }

  .bouncy-tabs__item {
    flex-direction: column;
    align-items: stretch;
    gap: calc(24 * var(--px));
  }

  /* flex: none — in a column the desktop's flex: 1 0 0 means zero height */
  .bouncy-tabs__feature {
    display: flex;
    flex: none;
    flex-direction: column;
    min-height: 0;
    padding: 0;
  }

  /* flex: none or the column flex item collapses its aspect-ratio height to 0 */
  .bouncy-tabs__visual {
    position: relative;
    flex: none;
    inset: auto;
    aspect-ratio: 345 / 260;
  }

  .bouncy-tabs__panel-card {
    width: auto;
    margin: calc(-24 * var(--px)) 0 0;
    padding: calc(24 * var(--px));
    border-radius: 0 0 var(--radius-m) var(--radius-m);
  }

  .bouncy-tabs__resources { width: 100%; }
}

/* Figma homepage: 160 between the region strip and the Your Journey label
   (Monique QA #24). */
@media screen and (min-width: 768px) {
  .section_region-strip + .section_bouncy-tabs { padding-top: calc(160 * var(--px)); }
}

/* Mobile: the centred intro runs to the 15 page margin, without the shared
   8 intro inset (Monique QA #3). */
@media screen and (max-width: 767px) {
  .section_bouncy-tabs .block-intro { padding-inline: 0; }
}

/* Resource cards (Figma card-article in block-tabs-audience): title trimmed
   so the gaps are the visible ones. Image to badges 20, badges to title 20
   on desktop; 12 and 16 on mobile (Monique QA #5, #6, #26, #27). */
.bouncy-tabs__resources .card__link { gap: calc(20 * var(--px)); }
.bouncy-tabs__resources .card__body { gap: calc(20 * var(--px)); }
.bouncy-tabs__resources .card__title { text-box: trim-both cap alphabetic; }

@media screen and (max-width: 767px) {
  .bouncy-tabs__resources .card__link { gap: calc(12 * var(--px)); }
  .bouncy-tabs__resources .card__body { gap: calc(16 * var(--px)); }
}

/* Phones: the two supporting resources sit side by side as small cards under
   the main card, so they read as its support (Hayden, review board Homepage 9;
   Chris 18 Nov 2026). */
@media screen and (max-width: 767px) {
  .bouncy-tabs__resources { flex-direction: row; gap: calc(12 * var(--px)); }
  .bouncy-tabs__resources > * { flex: 1 1 0; min-width: 0; }
  .bouncy-tabs__resources .card__title { font-size: calc(16 * var(--px)); line-height: 1.3; }
  .bouncy-tabs__resources .card__body { gap: calc(12 * var(--px)); }
}


/* --- css/sections/video-bento.css --- */
/* sections/video-bento.css — blocks/video_bento (Figma block-bento-01,
   node 1158:39417; mobile 1154:42731). 12-column bento: large video 8 cols,
   small video + text 4 cols. Client details slide in on hover; on mobile
   the videos become a swipe row with the details always visible.
   Play button = components/play-button.css. */

.section_video-bento .block-intro__title {
  color: var(--color-accent);
}

.video-bento {
  /* Card inset: client details and (on mobile) the body text share it so
     they line up. Figma: 35 desktop, 12 mobile. */
  --video-bento-inset: calc(35 * var(--px));

  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  gap: var(--grid-gutter);
}

.video-bento__videos {
  display: contents;
}

.video-bento__card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--color-surface-2);
  color: var(--color-text-light);
  text-align: left;
  cursor: pointer;
}

.video-bento__card:nth-child(1) {
  grid-column: 1 / span 8;
  grid-row: 1 / span 2;
  height: calc(530 * var(--px));
}

.video-bento__card:nth-child(2) {
  grid-column: 9 / span 4;
  grid-row: 1;
  margin-inline: var(--space-06);
  height: calc(234 * var(--px));
}

.video-bento__card:nth-child(n + 3) {
  display: none;
}

.video-bento__poster,
.video-bento__clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The clip sits over the poster, which stays as the fallback and first paint. */
.video-bento__clip { pointer-events: none; }

/* 20% charcoal multiply scrim, plus the bottom shade the details sit on */
.video-bento__card::before,
.video-bento__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.video-bento__card::before {
  background: color-mix(in srgb, var(--brand-charcoal) 20%, transparent);
  mix-blend-mode: multiply;
}

.video-bento__card::after {
  /* top: auto;
  height: calc(127 * var(--px));
  background: linear-gradient(to top, rgb(0 0 0 / 0.25), transparent);
  opacity: 0;
  transition: opacity var(--animation-default-half); */

  background: linear-gradient(0deg, rgba(50, 50, 50, 0.20) 0%, rgba(50, 50, 50, 0.20) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.09) 0.72%, rgba(33, 33, 33, 0.30) 86.14%);
  background-blend-mode: multiply, normal;
}

.video-bento__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  translate: -50% -50%;
}

.video-bento__client {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--px));
  padding: 0 var(--video-bento-inset) var(--video-bento-inset);
  opacity: 0;
  translate: 0 calc(20 * var(--px));
  transition: opacity var(--animation-default-half), translate var(--animation-default-half);
}

/* Figma sets the name as raw 17 / 15 ExtraBold, not a text style. */
.video-bento__name {
  font-weight: 800;
  font-size: calc(17 * var(--px));
  line-height: 1.45;
}

.video-bento__suburb {
  color: var(--color-text-light-secondary);
}

@media (hover: hover) {

  .video-bento__card:hover::after,
  .video-bento__card:focus-visible::after {
    opacity: 1;
  }

  .video-bento__card:hover .video-bento__client,
  .video-bento__card:focus-visible .video-bento__client {
    opacity: 1;
    translate: 0 0;
  }
}

.video-bento__body {
  grid-column: 9 / span 4;
  grid-row: 2;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: calc(35 * var(--px));
  padding: 0 var(--space-06) var(--space-06);
}

.video-bento__text {
  color: var(--color-text-light-secondary);
}

.video-bento__text p {
  margin: 0;
}

.video-bento__text p+p {
  margin-top: calc(24 * var(--px));
}

.video-bento__text strong {
  font-weight: 700;
}

@media screen and (max-width: 767px) {
  .video-bento {
    --video-bento-inset: calc(12 * var(--px));
    /* Figma card-testimonialVideo-large/mobile: 340 x 189 */
    --video-bento-card: calc(340 * var(--px));

    display: flex;
    flex-direction: column;
    gap: calc(24 * var(--px));
  }

  /* Swipe row that starts on the page margin and bleeds off the right edge */
  .video-bento__videos {
    display: flex;
    gap: calc(12 * var(--px));
    margin-inline: calc(-1 * var(--container-padding));
    padding-inline: var(--container-padding);
    scroll-padding-inline: var(--container-padding);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .video-bento__videos::-webkit-scrollbar {
    display: none;
  }

  .video-bento__card,
  .video-bento__card:nth-child(1),
  .video-bento__card:nth-child(2),
  .video-bento__card:nth-child(n + 3) {
    display: block;
    flex: 0 0 var(--video-bento-card);
    height: auto;
    aspect-ratio: 340 / 189;
    margin: 0;
    scroll-snap-align: start;
  }

  /* The last card's start lies past the end of the row, so iOS Safari
     snapped back to the card before and left it cut off (board, Homepage 8).
     Snapping it by its end makes the row's end a real stop. */
  .video-bento__card:last-child { scroll-snap-align: end; }

  .video-bento__card::after {
    opacity: 1;
  }

  .video-bento__client {
    opacity: 1;
    translate: 0 0;
    gap: calc(8 * var(--px));
  }

  .video-bento__name {
    font-size: calc(15 * var(--px));
  }

  /* Figma mobile drops the title to display-m */
  .section_video-bento .block-intro__title {
    font-size: var(--display-m-size);
    line-height: var(--display-m-lh);
    letter-spacing: var(--display-m-ls);
    font-weight: var(--display-m-weight);
  }

  /* Figma mobile (1154:42736) reads text, then the videos, then a
     full-width button, 24 apart. The body steps out of the box so its text
     and button can sit either side of the video row. The text keeps the
     card's width and the client details' 12 inset. */
  .video-bento__body { display: contents; }

  .video-bento__text {
    order: 1;
    width: var(--video-bento-card);
    max-width: 100%;
    padding: 0 var(--video-bento-inset);
  }

  .video-bento__videos { order: 2; }

  .video-bento__body .btn-group {
    order: 3;
    width: 100%;
  }

  .video-bento__body .btn {
    width: 100%;
  }

  .video-bento__text p+p {
    margin-top: calc(20 * var(--px));
  }
}

/* Figma homepage: 120 from the hero to the heading, 59 (35 + 24) from the
   heading to the videos (Monique QA #21, #22). */
@media screen and (min-width: 768px) {
  .section_hero + .section_video-bento { padding-top: calc(120 * var(--px)); }
  .section_video-bento .block-intro { margin-bottom: calc(59 * var(--px)); }
}

/* Phones: the play button sits bottom right, smaller, so it does not cover the
   moving preview (Hayden, review board Homepage 7; Chris 18 Nov 2026). The
   client's name keeps clear of it. */
@media screen and (max-width: 767px) {
  .video-bento__play {
    top: auto;
    left: auto;
    right: var(--video-bento-inset);
    bottom: var(--video-bento-inset);
    translate: none;
    scale: 0.7;
    transform-origin: 100% 100%;
  }
  .video-bento__client { padding-right: calc(var(--video-bento-inset) + 60 * var(--px)); }
}


/* --- css/sections/icon-cards.css --- */
/* sections/icon-cards.css — blocks/icon_cards (Figma block-bento-02, node
   1158:39440; mobile 1154:42746, "card rows are retained with overflow").
   Intro 3 of 12 columns, cards 9 of 12, three to a row. The tile itself is
   .card.is-icon in components/card.css; this file only lays the grid out. */

.icon-cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gutter);
  align-items: start;
}

.icon-cards__intro { grid-column: 1 / span 3; }
.icon-cards__intro .block-intro { margin-bottom: 0; }
.icon-cards__intro .block-intro__main { padding-right: 0; }

.icon-cards__scroller { grid-column: 4 / span 9; }

.icon-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Intro above, cards four across on white (Figma 1553:58313). */
.icon-cards.is-top { display: block; }
.icon-cards.is-top .icon-cards__intro { margin-bottom: var(--space-09); }
.icon-cards.is-top .icon-cards__intro .block-intro__main { padding-right: calc(250 * var(--px)); }
.icon-cards.is-top .icon-cards__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Six cards four across leave a hole in the second row: two rows of three instead. */
@media screen and (min-width: 992px) {
  .icon-cards.is-top .icon-cards__grid:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.icon-cards.is-top .card.is-icon:not(.is-cta, .is-photo) { justify-content: flex-start; }
/* Cards are white on every theme (Figma Investors / First Home Buyers designs). */
.section_icon-cards .card.is-icon:not(.is-cta, .is-photo) {
  background-color: var(--brand-white);
  transition: background-color var(--duration-default-onehalf) var(--cubic-default);
}
/* The card is white on a dark band too, so its text link keeps the dark ink. */
.section_icon-cards .card.is-icon:not(.is-cta, .is-photo) .btn.is-link { --btn-ink: var(--color-text-dark); }
/* Homepage layout (intro beside the cards): accent cards while the band is
   dark, white once the background fades light (Chris, 3 Nov 2026). The
   top-layout content pages keep white cards on dark bands (2 Nov). */
.section_icon-cards[data-theme-section="dark"] .icon-cards:not(.is-top) .card.is-icon:not(.is-cta, .is-photo) { background-color: var(--color-accent); }

/* Centred intro, cards three across (Figma Investors "Why property investors
   choose" 2226:110821, card-default-m/icon): 385 tall, 35/32/40 padding, 94
   icon, serif display-s title. Keyed on the intro alignment so the four-across
   range page benefits keep their look. A row with no intro at all takes the
   same cards. */
.icon-cards.is-top > .icon-cards__intro:empty { display: none; }
.icon-cards.is-top:has(> .icon-cards__intro [data-intro-align="center"]) .icon-cards__intro { margin-bottom: var(--space-11); }
.icon-cards.is-top:has(> .icon-cards__intro [data-intro-align="center"]) .icon-cards__intro .block-intro__main { padding-right: 0; }
@media screen and (min-width: 992px) {
  .icon-cards.is-top:has(> .icon-cards__intro [data-intro-align="center"]) .icon-cards__grid,
  .icon-cards.is-top:has(> .icon-cards__intro:empty) .icon-cards__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Exactly four cards: one row of four, not three and a hole. */
  .icon-cards.is-top .icon-cards__grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.icon-cards.is-top:has(> .icon-cards__intro [data-intro-align="center"]) .card.is-icon:not(.is-cta, .is-photo),
.icon-cards.is-top:has(> .icon-cards__intro:empty) .card.is-icon:not(.is-cta, .is-photo) {
  min-height: calc(385 * var(--px));
  padding: calc(35 * var(--px)) calc(32 * var(--px)) calc(40 * var(--px));
}
.icon-cards.is-top:has(> .icon-cards__intro [data-intro-align="center"]) .card.is-icon .card__top,
.icon-cards.is-top:has(> .icon-cards__intro:empty) .card.is-icon .card__top { gap: calc(32 * var(--px)); }
.icon-cards.is-top:has(> .icon-cards__intro [data-intro-align="center"]) .card__icon,
.icon-cards.is-top:has(> .icon-cards__intro:empty) .card__icon { width: calc(94 * var(--px)); height: calc(94 * var(--px)); }
.icon-cards.is-top:has(> .icon-cards__intro [data-intro-align="center"]) .card.is-icon .card__title,
.icon-cards.is-top:has(> .icon-cards__intro:empty) .card.is-icon .card__title {
  margin-bottom: calc(24 * var(--px) - 32 * var(--px));
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
  font-weight: var(--display-s-weight);
}

@media screen and (max-width: 991px) {
  .icon-cards.is-top .icon-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icon-cards.is-top .icon-cards__intro .block-intro__main { padding-right: 0; }
}

@media screen and (max-width: 767px) {
  .icon-cards {
    display: flex;
    flex-direction: column;
    gap: calc(24 * var(--px));
  }

  .icon-cards__scroller {
    width: calc(100% + 2 * var(--container-padding));
    margin-inline: calc(-1 * var(--container-padding));
    padding-inline: var(--container-padding);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .icon-cards__scroller::-webkit-scrollbar { display: none; }

  .icon-cards__grid,
  .icon-cards.is-top .icon-cards__grid {
    /* One swipe row on phones, however many cards (review board 17 Nov:
       Investors 8, Next Home Buyers 8, Second Home Offer 1). The is-top
       selector beats the tablet two-column rule, which otherwise sized the
       first two cards to their unwrapped text (board 20 Nov, Finance 7). */
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc(280 * var(--px));
    gap: calc(12 * var(--px));
    width: max-content;
  }

  /* Figma mobile partner cards: 35 top and bottom, 20 at the sides. */
  .icon-cards__grid .card.is-icon { padding: calc(35 * var(--px)) calc(20 * var(--px)); }

  .icon-cards.is-top .icon-cards__intro { margin-bottom: var(--space-06); }
}

/* Compact tiles (Figma block-cardGroup-default, Group homepage 2235:112816 and
   careers 2266:169003): 32 / 32 / 35 padding, the sans utility-l title, 32
   icon, no minimum height, 64 between intro and cards, and the intro button
   centred under the cards. On a charcoal band the tile is silver at 10% with
   the title in the accent. */
.section_icon-cards .icon-cards.is-compact.is-top .icon-cards__intro { margin-bottom: var(--space-10); }
.section_icon-cards .icon-cards.is-compact.is-top .card.is-icon:not(.is-cta, .is-photo) {
  min-height: 0;
  padding: calc(32 * var(--px)) calc(32 * var(--px)) calc(35 * var(--px));
}
.section_icon-cards .icon-cards.is-compact.is-top .card.is-icon .card__top { gap: calc(20 * var(--px)); }
.section_icon-cards .icon-cards.is-compact.is-top .card__icon { width: calc(32 * var(--px)); height: calc(32 * var(--px)); }
.section_icon-cards .icon-cards.is-compact.is-top .card.is-icon .card__title {
  margin-bottom: 0;
  font-family: var(--font-sans);
  font-size: var(--utility-l-size);
  line-height: var(--utility-l-lh);
  letter-spacing: var(--utility-l-ls);
  font-weight: var(--utility-l-weight);
}
.section_icon-cards[data-theme-section="dark"] .icon-cards.is-compact .card.is-icon:not(.is-cta, .is-photo) {
  background-color: color-mix(in srgb, var(--brand-silver) 10%, transparent);
  color: var(--color-text-light);
}
.section_icon-cards[data-theme-section="dark"] .icon-cards.is-compact .card.is-icon:not(.is-cta, .is-photo) .card__title { color: var(--color-accent); }
.section_icon-cards[data-theme-section="dark"] .icon-cards.is-compact .card.is-icon:not(.is-cta, .is-photo) .card__text { color: var(--color-text-light-secondary); opacity: 1; }
.section_icon-cards[data-theme-section="dark"] .icon-cards.is-compact .card.is-icon:not(.is-cta, .is-photo) .btn.is-link { --btn-ink: var(--color-text-light); }
.icon-cards__actions { justify-content: center; margin-top: var(--space-10); }

@media screen and (max-width: 767px) {
  .icon-cards__actions { margin-top: var(--space-06); }
}


/* --- css/sections/media-columns.css --- */
/* sections/media-columns.css — blocks/media_columns (Figma txtMediaBlock-columns,
   Investors 2226:110573). Intro, 80 gap, then three columns 48 apart: a 3:2
   photo (radius 16), 35 down to the title, then title / text / text link 24
   apart. Mobile stacks the columns. */

.section_media-columns .block-intro { margin-bottom: var(--space-11); }
.section_media-columns .block-intro__main { padding-right: 0; }

.media-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(48 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
}

.media-columns__item {
  display: flex;
  flex-direction: column;
  gap: calc(35 * var(--px));
}

.media-columns__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-m);
  background-color: var(--color-surface-alt, rgba(178, 178, 178, 0.6));
}

.media-columns__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-columns__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(24 * var(--px));
}

.media-columns__title,
.media-columns__text { margin: 0; }

.media-columns__text { color: var(--color-ink-soft); }

.media-columns__link { padding-top: calc(4 * var(--px)); }

/* Four columns sit four across, tighter (Finance "Where are you at?"); two by two on tablet. */
.media-columns:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gutter);
}

@media screen and (max-width: 991px) {
  .media-columns { gap: var(--grid-gutter); }
  .media-columns:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-08); }
}

@media screen and (max-width: 767px) {
  .media-columns,
  .media-columns:has(> :nth-child(4):last-child) {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-08);
  }
  .media-columns__item { gap: calc(24 * var(--px)); }
  .media-columns__body { gap: calc(16 * var(--px)); }
}

/* A brand tile in place of the photo (Group homepage 2235:112783). */
.media-columns__media.brand-tile { background-color: var(--brand-haven-green); }
.media-columns__media.brand-tile[data-tile-brand="invest"] { background-color: var(--brand-sky-blue); }
.media-columns__media.brand-tile[data-tile-brand="financial"] { background-color: var(--brand-nectar); }


/* --- css/sections/job-list.css --- */
/* sections/job-list.css — blocks/job_list (Figma GROUP - Careers "Current
   opportunities" 2266:169030). Light band, centred intro, a 1196 column of
   job cards 20 apart: white card (48 padding, 300 tall), display-m title,
   35 to the text and to the button, the brand tile 300 x 203 on the right.
   The last card is the expressions-of-interest card: 5% charcoal, centred. */

.section_job-list .block-intro { margin-bottom: var(--space-09); }

.job-list {
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--px));
  max-width: calc(1196 * var(--px));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.job-card {
  display: flex;
  align-items: center;
  gap: var(--space-08);
  min-height: calc(300 * var(--px));
  padding: var(--space-08);
  border-radius: var(--radius-m);
  background-color: var(--brand-white);
  box-shadow: 0 0 3px rgb(0 0 0 / 12%), 0 3px 4px rgb(0 0 0 / 3%);
  color: var(--color-text-dark);
}

.job-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 0;
  gap: var(--space-07);
  min-width: 0;
}

.job-card__title,
.job-card__text { margin: 0; text-box: trim-both cap alphabetic; }
.job-card__text { color: var(--color-text-dark-secondary); }

.job-card__brand {
  flex: none;
  width: calc(300 * var(--px));
  aspect-ratio: 300 / 203;
  border-radius: calc(12 * var(--px));
}

.job-card.is-eoi {
  flex-direction: column;
  justify-content: center;
  gap: var(--space-07);
  padding-inline: var(--space-11);
  background-color: color-mix(in srgb, var(--brand-charcoal) 5%, transparent);
  box-shadow: none;
  text-align: center;
}

/* The link out to the job ad: the fill button with an up-right arrow. */
.btn.is-external::after {
  content: "";
  flex: none;
  width: calc(11 * var(--px));
  height: calc(11 * var(--px));
  margin-left: calc(8 * var(--px));
  background-color: currentColor;
  mask: url("../img/icons/arrow-right-15.svg") center / contain no-repeat;
  rotate: -45deg;
}

@media screen and (max-width: 767px) {
  .job-card {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: var(--space-06);
    min-height: 0;
    padding: var(--space-06);
  }
  .job-card__brand { width: 100%; aspect-ratio: 3 / 2; }
  .job-card.is-eoi { flex-direction: column; padding: var(--space-08) var(--space-06); }
  .job-card__body { gap: var(--space-06); }
}


/* --- css/sections/key-stats.css --- */
/* sections/key-stats.css — Key Stats marquee (blocks/key_stats; Figma Key
   stats block, Wealth homepage 2543:195605, glyph combinations 2544:195883).
   Desktop sizes are the frame's: 459 x 238 pills, 2px accent outline, 16
   apart; the number in Libre Baskerville 114.4 with an optional character
   either side ("$" 105.6 centred, M / B / K / % 58.67 on the baseline, "+"
   95 from the top); the label in utility-s caps 24 under it. --ks scales the
   whole strip down on phones. */

.section_key-stats {
  --ks: 1;
  overflow-x: clip;
}

.key-stats__intro { margin-bottom: var(--space-10); }

.key-stats {
  --ks-gap: calc(16 * var(--px) * var(--ks));
  --ks-h: calc(238 * var(--px) * var(--ks));
  position: relative;
  outline: none;
}

.key-stats__track {
  display: flex;
  width: max-content;
  animation: key-stats-marquee calc(var(--key-stats-count, 5) * 9s) linear infinite;
}

.key-stats:hover .key-stats__track,
.key-stats:focus-visible .key-stats__track { animation-play-state: paused; }

@keyframes key-stats-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.key-stats__run {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--ks-gap);
  margin: 0;
  padding: 0 var(--ks-gap) 0 0;
  list-style: none;
}

.key-stats__item { flex: none; height: var(--ks-h); }

/* Stat pill */
.key-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(24 * var(--px) * var(--ks));
  width: calc(459 * var(--px) * var(--ks));
  padding: calc(35 * var(--px) * var(--ks)) calc(24 * var(--px) * var(--ks));
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent);
}

.key-stat__figure {
  display: flex;
  align-items: flex-end;
  margin: 0;
  font-family: var(--font-serif, "Libre Baskerville", serif);
  font-weight: 400;
  white-space: nowrap;
  font-feature-settings: "liga" 0;
}

.key-stat__value {
  font-size: calc(114.4 * var(--px) * var(--ks));
  line-height: 1;
  letter-spacing: -0.0615em;
  text-box: trim-both cap alphabetic;
}

.key-stat__char {
  line-height: 1;
  text-box: trim-both cap alphabetic;
}

/* "$": centred on the figure's height */
.key-stat__char.is-currency {
  align-self: center;
  font-size: calc(105.6 * var(--px) * var(--ks));
  letter-spacing: -0.033em;
}

/* M / B / K / %: small, sitting on the baseline */
.key-stat__char.is-unit {
  font-size: calc(58.67 * var(--px) * var(--ks));
  font-weight: 500;
  letter-spacing: -0.045em;
}

.key-stat__char.is-unit.is-right { margin-left: calc(4 * var(--px) * var(--ks)); }

/* "+" / "-": large, hung from the cap line */
.key-stat__char.is-sign {
  align-self: flex-start;
  font-size: calc(95 * var(--px) * var(--ks));
  letter-spacing: -0.028em;
}

.key-stat__char.is-sign.is-left { margin-right: calc(4 * var(--px) * var(--ks)); }
.key-stat__char.is-sign.is-right { margin-left: calc(4 * var(--px) * var(--ks)); }

.key-stat__label {
  max-width: 100%;
  margin: 0;
  font-size: var(--utility-s-size, calc(13 * var(--px)));
  line-height: 1.2;
  letter-spacing: var(--utility-s-ls, 0.077em);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  text-box: trim-both cap alphabetic;
}

/* Brand mark: a square the pill's height */
.key-stats__mark img {
  display: block;
  width: auto;
  height: 100%;
}

/* Photo cut into the brand's shape (Figma brand-shape-wealth/short: 413 x 394) */
.key-stats__photo {
  aspect-ratio: 413 / 394;
  -webkit-mask: var(--shape) center / 100% 100% no-repeat;
  mask: var(--shape) center / 100% 100% no-repeat;
}

.key-stats__photo.is-rounded { border-radius: var(--radius-l); overflow: hidden; }

.key-stats__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 767px) {
  .section_key-stats { --ks: 0.62; }
  .key-stat__label { font-size: calc(11 * var(--px)); }
}

/* Reduced motion: the strip stands still and scrolls by hand */
@media (prefers-reduced-motion: reduce) {
  .key-stats { overflow-x: auto; scrollbar-width: none; }
  .key-stats__track { animation: none; }
  .key-stats__run[aria-hidden="true"] { display: none; }
  .key-stats__run { padding-left: var(--container-padding); }
}

/* On a light band (Background: Light, or the page fading light behind it) the
   accent outline and figures vanish, so each pill fills with the accent and
   the figures take the charcoal ink (Chris 16 Nov 2026, 6 Month page). */
.section_key-stats:is([data-theme-section="light"], [data-theme-section="tint"]) .key-stat {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: var(--brand-charcoal);
}

/* ---- Styles (block field Style; Chris 17 Nov 2026) ------------------------ */

/* No pills: the outline and fill go, and the stat is only as tall as its
   figure and label. On the moving strip the marks and photos stretch to
   that same height. */
.section_key-stats:is([data-style="marquee-plain"], [data-style="row-plain"]) .key-stat {
  height: auto;
  width: auto;
  min-width: calc(300 * var(--px) * var(--ks));
  padding: 0 calc(24 * var(--px) * var(--ks));
  border: 0;
  border-radius: 0;
  background-color: transparent;
}

.section_key-stats:is([data-style="marquee-plain"], [data-style="row-plain"]):is([data-theme-section="light"], [data-theme-section="tint"]) .key-stat {
  background-color: transparent;
  color: var(--brand-charcoal);
}

/* 120 = the figure's cap height (82) + 24 + the label: every item on the
   strip is that tall, so marks and photos match the stat. */
.section_key-stats[data-style="marquee-plain"] .key-stats {
  --ks-gap: calc(40 * var(--px) * var(--ks));
  --ks-h: calc(120 * var(--px) * var(--ks));
}

.section_key-stats[data-style="marquee-plain"] .key-stat { height: var(--ks-h); }

/* Row: the stats stand still, side by side. */
.key-stats__row {
  display: flex;
  justify-content: center;
  gap: calc(16 * var(--px) * var(--ks));
  margin: 0;
  padding: 0;
  list-style: none;
}

.key-stats__row .key-stat {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: calc(459 * var(--px) * var(--ks));
  height: calc(238 * var(--px) * var(--ks));
}

.section_key-stats[data-style="row-plain"] .key-stats__row { gap: var(--space-08); }
.section_key-stats[data-style="row-plain"] .key-stats__row .key-stat { height: auto; }

@media screen and (max-width: 991px) {
  .key-stats__row { flex-wrap: wrap; }
  .key-stats__row .key-stat { flex: 0 0 auto; width: calc(459 * var(--px) * var(--ks)); }
  .section_key-stats[data-style="row-plain"] .key-stats__row .key-stat { width: 100%; max-width: none; }
}

/* ---- Classic (Monique's Option A, 18 Nov 2026; Figma biLx8EedM2zCsmlqiy6X99
   Wealth 3933:136625, Group 3933:135217) ---------------------------------
   Figures on their own, no pill: the number at 98 (the strip's 114.4 x
   0.8566, so "$" 90, M 50, "+" 81), the label 24 under it, each stat 300
   wide and 24 apart, centred. The block's own intro sits 88 above. */
.section_key-stats[data-style="classic"] { --ks: 0.8566; }

.section_key-stats[data-style="classic"] .key-stats__intro { margin-bottom: calc(88 * var(--px)); }

.section_key-stats[data-style="classic"] .key-stats__row {
  align-items: center;
  gap: var(--space-06);
}

.section_key-stats[data-style="classic"] .key-stats__row .key-stat {
  flex: 0 1 calc(300 * var(--px));
  gap: calc(24 * var(--px));
  width: auto;
  min-width: 0;
  max-width: calc(400 * var(--px));
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
}

[data-brand="group"] .section_key-stats[data-style="classic"] .key-stat__label { opacity: 0.8; }

.section_key-stats[data-style="classic"]:is([data-theme-section="light"], [data-theme-section="tint"]) .key-stat {
  background-color: transparent;
  color: var(--brand-charcoal);
}

/* Brand mark between the numbers (block field, off by default): Karina's
   18 Nov ask, not in the frames. A proposal: the mark 32 tall in the accent,
   level with the figures. */
.key-stats__sep {
  flex: none;
  width: calc(32 * var(--px));
  height: calc(32 * var(--px));
  margin-bottom: calc(33 * var(--px));
  background-color: var(--color-accent);
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}

.section_key-stats:is([data-theme-section="light"], [data-theme-section="tint"]) .key-stats__sep { background-color: var(--brand-charcoal); }

/* While a figure counts up its width is held, so the row does not shift. */
.key-stat__value[data-counting] { display: inline-block; text-align: center; }

@media screen and (max-width: 991px) {
  .section_key-stats[data-style="classic"] .key-stats__row { row-gap: var(--space-08); }
  .section_key-stats[data-style="classic"] .key-stats__row .key-stat { flex: 0 0 calc(50% - var(--space-06) / 2); width: auto; max-width: none; }
  .key-stats__sep { display: none; }
}

@media screen and (max-width: 767px) {
  .section_key-stats[data-style="classic"] { --ks: 0.56; }
  .section_key-stats[data-style="classic"] .key-stats__intro { margin-bottom: var(--space-08); }
  .section_key-stats[data-style="classic"] .key-stats__row .key-stat { gap: calc(16 * var(--px)); }
}


/* --- css/sections/disclaimer.css --- */
/* sections/disclaimer.css — the page disclaimer accordion at the base of the
   page (template-parts/page-disclaimer.php; Figma Disclaimer Treatment,
   closed 2547:198010, open 2547:198183). Closed: a 5% charcoal card with the
   info icon, the heading and a 10% charcoal plus. Open: the card turns white
   with cardHover-shadow-v2 and the plus becomes an accent x, as the FAQ
   accordion does. The asterisk / icon links to it ([disclaimer_ref]) are at
   the end of this file. */

.section_page-disclaimer {
  padding-block: var(--space-06);
  background-color: var(--color-bg, transparent);
}

.page-disclaimer.accordion-css { max-width: none; }

.page-disclaimer__item.accordion-css__item {
  border-radius: var(--radius-m);
  background-color: color-mix(in srgb, var(--brand-charcoal) 5%, transparent);
  transition:
    background-color var(--animation-default-half),
    box-shadow var(--animation-default-half);
}

/* Figma cardHover-shadow-v2 */
.page-disclaimer__item[data-accordion-status="active"] {
  background-color: var(--brand-white);
  box-shadow:
    0 calc(-1 * var(--px)) calc(2 * var(--px)) rgb(0 0 0 / 0.05),
    0 calc(3 * var(--px)) calc(4 * var(--px)) rgb(0 0 0 / 0.08),
    0 calc(7 * var(--px)) calc(12 * var(--px)) rgb(50 50 50 / 0.08);
}

.page-disclaimer__top.accordion-css__item-top {
  align-items: center;
  gap: var(--space-08);
  width: 100%;
  padding: var(--space-07);
  border: 0;
  background: none;
  color: var(--brand-charcoal);
  text-align: left;
}

.page-disclaimer__title {
  display: flex;
  align-items: center;
  gap: var(--space-05);
  min-width: 0;
}

/* iconSet-s/utility info, outline: a 19.5 glyph in a 24 frame */
.page-disclaimer__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
}

.page-disclaimer__icon img {
  width: calc(19.5 * var(--px));
  height: calc(19.5 * var(--px));
}

.page-disclaimer__heading {
  font-size: var(--body-l-size);
  line-height: var(--body-l-lh);
  letter-spacing: var(--body-l-ls);
  font-weight: 600;
  text-box: trim-both cap alphabetic;
}

.page-disclaimer__top:hover .page-disclaimer__heading {
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--color-accent);
}

.page-disclaimer__toggle.accordion-css__item-icon {
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  transform: none;
  background-color: color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  color: var(--brand-charcoal);
  transition:
    transform var(--animation-default-half),
    background-color var(--animation-default-half);
}

.page-disclaimer__toggle .accordion-css__item-icon-svg { width: 60%; }

.page-disclaimer__top:hover .page-disclaimer__toggle,
.page-disclaimer__item[data-accordion-status="active"] .page-disclaimer__toggle {
  background-color: var(--color-accent);
}

.page-disclaimer__item[data-accordion-status="active"] .page-disclaimer__toggle { transform: rotate(45deg); }

/* The text sits 35 under the heading, clear of the toggle column */
.page-disclaimer__content.accordion-css__item-bottom-content {
  padding: 0 calc(var(--space-07) + 40 * var(--px) + var(--space-08)) var(--space-07) var(--space-07);
}

.disclaimer {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  color: var(--brand-charcoal);
  font-size: var(--body-s-size);
  line-height: var(--body-s-lh);
  letter-spacing: var(--body-s-ls);
}

.disclaimer__label {
  margin: 0;
  font-weight: 600;
}

.disclaimer p { margin: 0; }
.disclaimer p + p,
.disclaimer__text > * + * { margin-top: calc(10 * var(--px)); }
.disclaimer__text a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }

@media screen and (max-width: 767px) {
  .page-disclaimer__top.accordion-css__item-top {
    gap: var(--space-05);
    padding: var(--space-06);
  }

  .page-disclaimer__content.accordion-css__item-bottom-content {
    padding: 0 var(--space-06) var(--space-06);
  }
}

/* [disclaimer_ref] / dc_disclaimer_ref(): a link to the accordion around an
   asterisk (Figma 2547:205866: the asterisk over a 2px accent bar), the info
   icon or the editor's own words. Sized to the text it follows. */
.disclaimer-ref {
  display: inline-flex;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  vertical-align: baseline;
}

.disclaimer-ref__mark {
  display: inline-block;
  width: auto;
  height: 0.63em;
  transform: translateY(-0.05em);
}

.disclaimer-ref__icon {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  vertical-align: -0.1em;
}

.disclaimer-ref:hover .disclaimer-ref__mark,
.disclaimer-ref:hover .disclaimer-ref__icon { opacity: 0.7; }

.disclaimer-ref.is-text {
  display: inline;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 0.15em;
}

.disclaimer-ref:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }


/* --- css/sections/card-carousel.css --- */
/* sections/card-carousel.css — blocks/card_carousel (Figma block-house&land,
   node 1158:39540; mobile 1154:42870). Two cards per view on the DC slider,
   arrows + explore link in the intro actions; on mobile the arrows go, cards
   swipe, and the explore link becomes a full-width button.
 */

/* The track bleeds to the screen edge on phones; clip at the section so a
   page with a wider inset (the design page) cannot scroll sideways. */
.section_card-carousel { overflow-x: clip; }

/* The wrap reaches half a gutter past the content box each side so the
   cards' half-gutter margins tile evenly (the loop measures them). The clip
   pulls the visible edge back to the content box, so a card sliding in or out
   never shows past it. */
.card-carousel__wrap {
  overflow: hidden;
  margin-inline: calc(-0.5 * var(--grid-gutter));
  clip-path: inset(0 calc(0.5 * var(--grid-gutter)));
}

.card-carousel__list {
  display: flex;
  cursor: grab;
}

.card-carousel__list:active { cursor: grabbing; }

.card-carousel__arrows {
  display: flex;
  gap: calc(8 * var(--px));
}

.card-carousel__mobile-cta { display: none; }

/* The package card itself is .card.is-package (components/card.css); the
   carousel only sizes it. */
.card.is-package {
  flex: none;
  width: calc(50% - var(--grid-gutter));
  margin-inline: calc(0.5 * var(--grid-gutter));
}

/* Home design cards (Figma 1724:80615): three to a view, 35 apart. */
.section_card-carousel[data-cards="home_designs"] { --card-gap: calc(35 * var(--px)); }

.section_card-carousel[data-cards="home_designs"] .card-carousel__wrap { margin-inline: calc(-0.5 * var(--card-gap)); padding-block: calc(8 * var(--px)); clip-path: inset(0 calc(0.5 * var(--card-gap))); }

.section_card-carousel .card.is-design {
  flex: none;
  width: calc(100% / 3 - var(--card-gap));
  margin-inline: calc(0.5 * var(--card-gap));
}

@media screen and (max-width: 991px) {
  .section_card-carousel .card.is-design { width: calc(50% - var(--card-gap)); }
}

@media screen and (max-width: 767px) {
  .section_card-carousel .block-intro__actions { display: none; }

  .section_card-carousel .card.is-design { width: 82%; }

  /* The track bleeds to the screen edge on the right; the left edge still
     clips at the content box. */
  .card-carousel__wrap { margin-right: calc(-1 * var(--container-padding)); clip-path: inset(0 0 0 calc(0.5 * var(--grid-gutter))); }
  .section_card-carousel[data-cards="home_designs"] .card-carousel__wrap { clip-path: inset(0 0 0 calc(0.5 * var(--card-gap))); }

  .card.is-package { width: 82%; }

  .card-carousel__mobile-cta {
    display: block;
    margin-top: calc(24 * var(--px));
  }

  .card-carousel__mobile-cta .btn { width: 100%; }
}

/* sections/slider.css recedes non-active .dc-slider slides to opacity 0.35,
   which is the vault's single-focus behaviour. This carousel shows two cards
   side by side and the frame (1158:39540) has BOTH at full strength, so the
   recede is off here. Both class names are on the section, which also wins
   over the 0.35 rule regardless of file order. */
.dc-slider.section_card-carousel [data-slider="slide"] { opacity: 1; }

/* The intro body reads at body-l in this section's design, not the default body-m */
.section_card-carousel .block-intro__text {
  font-size: var(--body-l-size);
  line-height: var(--body-l-lh);
  letter-spacing: var(--body-l-ls);
}

/* The design page's "You may also like" intro reads at body-m (1724:80615). */
.section_card-carousel[data-cards="home_designs"] .block-intro__text {
  font-size: var(--body-m-size);
  line-height: var(--body-m-lh);
  letter-spacing: var(--body-m-ls);
}

/* Figma homepage: the H&L block opens 160 below the home designs stack
   (Monique QA #29). */
@media screen and (min-width: 768px) {
  .section_home-designs + .section_card-carousel { padding-top: calc(160 * var(--px)); }
}


/* --- css/sections/reviews.css --- */
/* sections/reviews.css — blocks/google_reviews_carousel (Figma
   block-ReviewCarousel 1158:39547; mobile 1154:42896). A dark review card that
   takes the room left by a 365 intro column and an 88 gap (space-12), intro +
   arrows inset 48 top and bottom in that column. Items stack in one
   grid cell and js/components/testimonials.js (Osmo Line Reveal Testimonials)
   swaps them. On mobile the intro comes first, the story button moves to the
   top right of the card and the arrows sit inside the card. */

.section_reviews { padding-block: var(--padding-block); }

/* The FAQ follows straight on (Figma: its content starts at the reviews block's
   edge); two paddings stacked read as a hole (Monique QA #14). */
.section_reviews + .section_faq { padding-top: 0; }

.reviews {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(365 * var(--px));
  column-gap: calc(88 * var(--px));
  align-items: stretch;
}

/* Figma card-testimonial/desktop: a FIXED 466 box, which is exactly
   64 padding x2 + 48 gap x2 + 20 stars + 182 quote + 40 button. Fixed because
   every slide shares one grid cell, so without it the cell takes the tallest
   review and the card grows to fit the longest one. */
.reviews__card {
  position: relative;
  height: calc(466 * var(--px));
  padding: calc(64 * var(--px)) var(--padding-content);
  border-radius: var(--radius-m);
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
}

.reviews__list {
  display: grid;
  height: 100%;
}

.reviews__item {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-08);
  opacity: 0;
  visibility: hidden;
}

.reviews__item.is--active {
  opacity: 1;
  visibility: visible;
}

/* Figma star-rating: 20px stars, space-03 (8) apart. */
.reviews__stars {
  display: flex;
  gap: var(--space-03);
  color: var(--color-accent);
}

.reviews__stars svg {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}

/* The design's quote box. render.php bounds the text to about five lines, so
   this is a backstop rather than the usual clip: padding-right is Figma's
   space-07 on reviewContainer. */
.reviews__quote {
  height: calc(182 * var(--px));
  margin: 0;
  padding-right: var(--space-07);
  overflow: hidden;
  color: var(--color-accent);
}

.reviews__quote .text-line {
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}

.reviews__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(24 * var(--px));
  margin-top: auto;
}

/* Figma authorDetails: 17 ExtraBold name, body-m source, space-04 (12) apart. */
.reviews__cite {
  display: flex;
  flex-direction: column;
  gap: var(--space-04);
  font-size: calc(17 * var(--px));
  line-height: 1.45;
}

.reviews__cite .review-proof { font-size: var(--body-m-size); }

.reviews__author { font-weight: 800; }
.reviews__source { color: var(--color-text-light-secondary); }

.reviews__card-arrows { display: none; }

.reviews__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(48 * var(--px));
  padding-block: calc(48 * var(--px));
}

.reviews__side .block-intro {
  margin-bottom: 0;
  grid-template-columns: minmax(0, 1fr);
}

.reviews__side .block-intro__main,
.reviews__side .block-intro__body { padding-right: 0; }

/* Figma txtGroup: 48 title to text (the intro's row gap), 24 text to link. */
.reviews__side .block-intro__body { gap: var(--space-06); }

.reviews__arrows {
  display: flex;
  gap: calc(8 * var(--px));
}

/* The fixed 365 column would squeeze the card on narrow desktops/tablets. */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .reviews {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    column-gap: var(--grid-gutter);
  }
}

@media screen and (max-width: 767px) {
  .reviews {
    display: flex;
    flex-direction: column-reverse;
    gap: calc(24 * var(--px));
  }

  .reviews__side { padding: 0; }
  .reviews__side > .reviews__arrows { display: none; }

  /* Height back to the content: the bounded quote sets it, and the mobile
     frame (1154:42896) has not been measured yet. */
  .reviews__card {
    height: auto;
    padding: var(--padding-content);
  }

  .reviews__quote {
    height: auto;
    padding-right: 0;
  }

  .reviews__item { gap: calc(16 * var(--px)); }

  /* The desktop 17px cite wraps the review date under the source here. */
  .reviews__cite,
  .reviews__cite .review-proof { font-size: calc(15 * var(--px)); }

  /* Inset like the arrows, not flush in the corner (Monique QA #12). */
  .reviews__story {
    position: absolute;
    top: calc(16 * var(--px));
    right: calc(16 * var(--px));
  }

  .reviews__footer { padding-right: calc(96 * var(--px)); }

  .reviews__card-arrows {
    display: block;
    position: absolute;
    right: calc(16 * var(--px));
    bottom: calc(16 * var(--px));
  }

  /* On the charcoal card: a full silver disc whenever it can move, the faint
     disc only when disabled (Monique QA #13). */
  .reviews__card-arrows .btn-arrow {
    --arrow-bg: var(--brand-silver);
    --arrow-ink: var(--brand-charcoal);
    --arrow-bg-hover: var(--color-accent);
    --arrow-ink-hover: var(--brand-charcoal);
    --arrow-bg-disabled: color-mix(in srgb, var(--brand-silver) 15%, transparent);
    --arrow-ink-disabled: color-mix(in srgb, var(--brand-silver) 45%, transparent);
  }
}

/* Layout "List" (a Reviews page): every review as a card, three across. No
   Figma frame; cards follow the white card on the Homes page colour. */
.section_reviews.is-list .block-intro { margin-bottom: var(--space-08); }

.reviews-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(24 * var(--px));
  align-items: start;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: calc(24 * var(--px));
  padding: calc(32 * var(--px));
  border-radius: var(--radius-m);
  background-color: #fff;
  color: var(--brand-charcoal);
}

.review-card .reviews__stars { color: var(--brand-charcoal); }

.review-card__quote {
  margin: 0;
  font-size: calc(17 * var(--px));
  line-height: 1.5;
}

.review-card__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(8 * var(--px));
}

.review-card__author { font-weight: 630; }

.reviews-list__more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-08);
}

@media screen and (max-width: 991px) {
  .reviews-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 767px) {
  .reviews-list { grid-template-columns: minmax(0, 1fr); gap: calc(16 * var(--px)); }
  .review-card { padding: calc(24 * var(--px)); }
}


/* --- css/components/review-proof.css --- */
/* components/review-proof.css — template-parts/review-proof.php: the Google
   markers on every review card (G badge, source, date, View on Google). Colour
   comes from the card it sits in. */

.review-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: calc(8 * var(--px));
  row-gap: calc(4 * var(--px));
  font-size: calc(15 * var(--px));
  line-height: 1.45;
}

.review-proof__badge {
  flex: none;
  width: calc(16 * var(--px));
  height: calc(16 * var(--px));
}

.review-proof__date::before,
.review-proof__link::before {
  content: "·";
  margin-right: calc(8 * var(--px));
  opacity: 0.6;
}

.review-proof__source,
.review-proof__date { opacity: 0.72; }

.review-proof__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.review-proof__link:hover { text-decoration: none; }

/* A verified review embedded on a client story page. */
.review-embed {
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--px));
  margin-block: calc(48 * var(--px));
  padding: calc(32 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
}

.review-embed__label {
  margin: 0;
  font-size: calc(13 * var(--px));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light-secondary);
}

.review-embed__stars {
  display: flex;
  gap: calc(4 * var(--px));
  color: var(--color-accent);
}

.review-embed__stars svg {
  width: calc(16 * var(--px));
  height: calc(16 * var(--px));
}

.review-embed__quote {
  margin: 0;
  color: var(--color-accent);
}

.review-embed__author { font-weight: 700; }


/* --- css/sections/wayfinding.css --- */
/* sections/wayfinding.css — blocks/wayfinding ("Where to next?", Figma
   homepage 1158:76999; mobile 1154:42898). Heading right-aligned, two equal
   cards (image card + accent pill card), full-width search strip below, and
   the brand arch line tucked behind the left edge. */

.section_wayfinding { position: relative; overflow: clip; }

/* The arch keeps its place against the CONTENT, 355 left of the container's
   inner edge (Figma 1600: x -275; 1920: x -115; Monique QA #41), so it no
   longer drifts off on wide screens. It does not move on scroll: the section
   clips it, so a shifted arch lost its top and read as a broken line (review
   board, Homepage 15 / Second Home Offer 3). */
.section_wayfinding::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc((100% - var(--size-container)) / 2 + var(--container-padding) - 355 * var(--px));
  width: calc(574 * var(--px));
  height: calc(960 * var(--px));
  border: calc(1.5 * var(--px)) solid var(--color-accent-line);
  border-bottom: 0; /* the arch line is open at the foot, as drawn */
  border-radius: 999em 999em 0 0;
  pointer-events: none;
}

/* The arch above is the Homes graphic drawn in CSS; the other brands show
   their own (Invest / Financial line pattern, Group shapes). */
:root:not([data-brand="homes"]) .section_wayfinding::before {
  border: 0;
  border-radius: 0;
  background: var(--brand-graphic) no-repeat center top / contain;
}

.wayfinding {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--px));
}

.wayfinding__heading {
  margin: 0 0 calc(32 * var(--px));
  text-align: right;
}

.wayfinding__heading em { font-style: italic; }

.wayfinding__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(16 * var(--px));
}

.wayfinding__feature,
.wayfinding__explore {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(32 * var(--px));
  min-height: calc(488 * var(--px));
  padding: calc(32 * var(--px));
  overflow: hidden;
  border-radius: var(--radius-m);
}

.wayfinding__feature {
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
  text-decoration: none;
}

.wayfinding__feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale var(--animation-default);
}

.wayfinding__feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--card-elevation-grad-top), rgb(0 0 0 / 0.1);
  pointer-events: none;
}

.wayfinding__feature:hover .wayfinding__feature-img { scale: 1.03; }

/* Hover (Figma card-default-l/photo-fullBleed hover, 2468:96348; Monique QA
   #42): the bottom darkens, the title underlines in the accent and the arrow
   becomes the accent brand shape. */
.wayfinding__feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(175deg, rgb(50 50 50 / 0.04) 10%, rgb(50 50 50 / 0.04) 52%, rgb(0 0 0 / 0.4) 94%);
  opacity: 0;
  transition: opacity var(--animation-default-half);
  pointer-events: none;
}

.wayfinding__feature:hover::after { opacity: 1; }

.wayfinding__feature .wayfinding__card-title {
  text-decoration: underline;
  text-decoration-thickness: 0.065em;
  text-underline-offset: 0.12em;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--animation-default-half);
}

.wayfinding__feature:hover .wayfinding__card-title { text-decoration-color: var(--color-accent); }

.wayfinding__card-head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(16 * var(--px));
  max-width: calc(480 * var(--px));
}

.wayfinding__feature .badge { --badge-ink: var(--color-text-light); }

.wayfinding__card-title { margin: 0; }

.wayfinding__arrow {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(48 * var(--px));
  height: calc(48 * var(--px));
  color: var(--brand-charcoal);
}

.wayfinding__arrow svg { position: relative; z-index: 1; width: calc(24 * var(--px)); height: calc(24 * var(--px)); }

.wayfinding__arrow::before { background-color: var(--brand-silver); }
.wayfinding__feature:hover .wayfinding__arrow::before,
.wayfinding__feature:hover .wayfinding__arrow::after { background-color: var(--color-accent); }

.wayfinding__explore {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
}

.wayfinding__pills {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The pills are components/chip.css on the accent card. */

.wayfinding__search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(48 * var(--px));
  min-height: calc(150 * var(--px));
  padding: calc(24 * var(--px));
  border-radius: var(--radius-m);
  background-color: color-mix(in srgb, var(--color-accent) 55%, var(--brand-white));
}

.wayfinding__search-icon {
  flex: none;
  width: calc(94 * var(--px));
  height: calc(94 * var(--px));
}

.wayfinding__search-text { margin: 0; }

/* Dark call to action strip (Figma card-ctaStrip-s 2226:110854): charcoal,
   35 padding, accent text and an accent button. */
.wayfinding__search.is-dark {
  min-height: 0;
  padding: calc(35 * var(--px));
  background-color: var(--brand-charcoal);
}
.wayfinding__search.is-dark .wayfinding__search-text { color: var(--color-accent); }

@media screen and (max-width: 767px) {
  /* Mobile arch top left (Figma 1154:42898: 201 x 336 at x -77; Monique QA
     #15) and less padding under the block (#16). */
  .section_wayfinding::before {
    left: calc(-77 * var(--px));
    width: calc(201 * var(--px));
    height: calc(336 * var(--px));
    border-width: 1px;
  }

  .section_wayfinding { padding-bottom: var(--space-07); }

  /* To Figma mobile 1154:42898: the heading stays right-aligned as on
     desktop, both cards 300 tall, chips at the 30 mobile size (same as the
     resource hub's discover chips) and the search strip left-aligned with
     the button at its own width. */
  .wayfinding__heading { margin-bottom: calc(8 * var(--px)); }

  .wayfinding__cards { grid-template-columns: 1fr; }

  .wayfinding__feature,
  .wayfinding__explore {
    min-height: calc(300 * var(--px));
    padding: calc(20 * var(--px));
  }

  .wayfinding__explore { gap: calc(24 * var(--px)); }

  .wayfinding__pills { gap: calc(10 * var(--px)); }

  .wayfinding__pill {
    gap: calc(6 * var(--px));
    height: calc(30 * var(--px));
    padding: 0 calc(12 * var(--px)) 0 calc(8 * var(--px));
    font-size: calc(14 * var(--px));
    font-weight: 500;
  }

  .wayfinding__pill .chip__icon { width: calc(16 * var(--px)); height: calc(16 * var(--px)); }

  .wayfinding__search {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(16 * var(--px));
    min-height: 0;
    padding: calc(20 * var(--px));
    text-align: left;
  }

  .wayfinding__search .btn { width: auto; }

  /* Mobile frame: text + button stacked on the left, the magnifier on the right. */
  .wayfinding__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
  }

  .wayfinding__search-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: calc(72 * var(--px));
    height: calc(72 * var(--px));
  }
}


/* --- css/components/bg-fade.css --- */
/* components/bg-fade.css — the website background colour change (Figma
   1158:77911). js/components/bg-fade.js makes the sections transparent and
   sets <body>'s colour + every section's theme from the section crossing the
   switch line; this animates it. main > raises specificity over a block's own
   background rule. Text that inherits its colour rides the color transition. */

body[data-bg-fade-page] {
  transition: background-color var(--duration-default-onehalf) var(--cubic-default);
}

/* body[data-bg-fade-page] lifts this over theme rules that paint a section
   (e.g. Homes' [data-brand] [data-theme-section="light"] #f9f9f9): a section
   painting itself snaps to the new colour while the hero fades with body. */
body[data-bg-fade-page] main > [data-bg-fade-state] {
  background-color: transparent;
  transition: color var(--duration-default-onehalf) var(--cubic-default);
}

/* The text-only header hero (resource hub) paints its own charcoal band, which
   outranked the transparent rule above, so it stayed dark over a page that had
   faded to light. It joins the fade like any section, and once the page is
   light its copy turns dark ink (mint and silver text vanish on white). */
main > .section_hero.is-header[data-bg-fade-state] { background-color: transparent; }

main > .section_hero.is-header[data-bg-fade-state] :is(.hero__label, .hero__title, .hero__text) {
  transition: color var(--duration-default-onehalf) var(--cubic-default);
}

main > .section_hero.is-header[data-bg-fade-state]:not([data-theme-section="dark"]) :is(.hero__label, .hero__title) { color: var(--color-text-dark); }
main > .section_hero.is-header[data-bg-fade-state]:not([data-theme-section="dark"]) .hero__text { color: var(--color-text-dark-secondary); }

@media (prefers-reduced-motion: reduce) {
  body[data-bg-fade-page],
  main > [data-bg-fade-state],
  main > .section_hero.is-header[data-bg-fade-state] :is(.hero__label, .hero__title, .hero__text) { transition: none; }
}


/* --- css/sections/dome-grid.css --- */
/* sections/dome-grid.css — vault resource 'Infinite Dome Grid' (Jesper
   Landberg, open sourced to the Osmo community), DC recode.
   Markup: blocks/dome_grid/render.php — the section IS the stage, so it takes
   no container and no section padding; the grid tiles from its top-left corner
   and the page does not scroll while the grid is on screen.

   Everything visible is one matrix3d per card, written each frame by
   js/components/dome-grid.js. This file only supplies shape, colour and the
   two properties the script reads back: the shade's opacity (how dark the
   grid goes outside the flashlight) and --panel-gap.

   --panel-gap MUST equal minus twice the card's border-radius, so the sliding
   panel's corners stay hidden behind the image when a card opens. Change one,
   change the other. */

.dome-grid {
  --panel-gap: -2em;
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background-color: var(--n-900);
  cursor: grab;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}

.dome-grid[data-dragging] { cursor: grabbing; }

.dome-grid__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2em;
  width: 100%;
}

.dome-grid__item {
  --slide: 0;
  --dim: 0;
  position: relative;
  aspect-ratio: 1;
  transform-origin: 0 0;
  will-change: transform;
}

.dome-grid__item[data-lifted] { z-index: 10; }
.dome-grid__item[data-active] .dome-grid__caption { opacity: 0; }
.dome-grid__item .dome-grid__content { display: none; }

.dome-grid__panel {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: var(--n-0);
  border-radius: var(--radius-m);
  transform: translateX(calc((100% + var(--panel-gap)) * var(--slide)));
}

.dome-grid__media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--n-900);
  border-radius: var(--radius-m);
}

.dome-grid__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transform: scale(1.1);
}

.dome-grid__caption {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  gap: 0.5em;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1.25em;
  color: var(--n-0);
  pointer-events: none;
  background-image: linear-gradient(rgb(0 0 0 / 0) 40%, rgb(0 0 0 / 0.6));
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: opacity 0.35s ease-out;
}

.dome-grid__text { margin: 0; font-size: var(--text-s); line-height: 1.2; }
.dome-grid__text.is--faded { opacity: 0.6; }

.dome-grid__meta { margin: 0; font-size: var(--text-xs); line-height: 1.2; opacity: 0.6; }

.dome-grid__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--dim);
  background-color: #000;
  transform: translateZ(0);
  transform-style: preserve-3d;
}

.dome-grid__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--gap-m);
  min-height: 100%;
  padding: 2.5em;
}

.dome-grid__title { margin: 0; font-size: var(--text-l); line-height: 1; }

/* The flashlight. Its OPACITY is read back by the script as "how dark", and
   its mask is rewritten on every resize — the value here is only the
   first-paint fallback. */
.dome-grid__shade {
  --fx: 50%;
  --fy: 50%;
  position: absolute;
  inset: 0;
  opacity: 0.7;
  pointer-events: none;
  background-color: #000;
  mask-image: radial-gradient(circle at var(--fx) var(--fy), transparent 25%, #000 75%);
  -webkit-mask-image: radial-gradient(circle at var(--fx) var(--fy), transparent 25%, #000 75%);
}

.dome-grid__cover {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background-color: #000;
  transition: opacity 0.3s ease-out;
}

.dome-grid[data-loaded] .dome-grid__cover { opacity: 0; pointer-events: none; }

.dome-grid__lightbox {
  position: absolute;
  top: 50%;
  left: calc(50% + var(--lightbox-gap, 0px) / 2);
  z-index: 10;
  display: block;
  width: var(--lightbox-size, 70vh);
  height: var(--lightbox-size, 70vh);
  opacity: 0;
  pointer-events: none;
  color: var(--n-900);
  transform: translateY(-50%);
  transition: opacity 0.2s ease-out;
}

.dome-grid__lightbox[data-open] { opacity: 1; transition: opacity 0.35s ease-out 0.15s; }

.dome-grid__lightbox-inner {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: calc(0px - var(--lightbox-gap, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: none;
}

.dome-grid__lightbox[data-open] .dome-grid__lightbox-inner { pointer-events: auto; }

@media (orientation: portrait) {
  .dome-grid__panel { transform: translateY(calc((100% + var(--panel-gap)) * var(--slide))); }
  .dome-grid__lightbox {
    top: calc(50% + var(--lightbox-gap, 0px) / 2);
    left: 50%;
    width: var(--lightbox-size, 80vw);
    height: var(--lightbox-size, 80vw);
    transform: translateX(-50%);
  }
  .dome-grid__lightbox-inner { left: 0; top: calc(0px - var(--lightbox-gap, 0px)); }
  .dome-grid__content { padding: 2em; }
}

@media (max-width: 767px) {
  .dome-grid__item .dome-grid__text.is--faded { display: none; }
}


/* --- css/sections/ui-kit.css --- */
/* sections/ui-kit.css — layout only for blocks/ui_kit/render.php, the host
   that gives the Toggle Switch and Display Read Time utilities somewhere to
   sit on a builder page. The toggle's own styling is
   css/components/toggle-switch.css; nothing here should style it. */

.section_ui-kit .container { display: flex; flex-direction: column; gap: var(--gap-l); align-items: flex-start; }

.ui-kit__read-time {
  margin: 0;
  font-size: var(--text-s);
  color: var(--color-ink-soft);
}

.ui-kit__article { margin: 0; }
.ui-kit__article > p:last-child { margin-bottom: 0; }


/* --- css/sections/faq.css --- */
/* sections/faq.css — blocks/faq_section (Figma homepage "You ask, we answer."
   1158:77080, card-faq 1137:37028 / open 1137:37040; mobile block-faq/mobile
   1154:42897). Intro 447 wide on the left, the Osmo accordion
   (components/accordion.css) capped at 905 on the right. This file gives the
   accordion the design's skin inside this block only: 5% charcoal rows, the
   open row lifts to a white card with the cardHover shadow, the plus becomes
   an accent x. Spacing tokens follow the Figma variables (desktop / mobile). */

.faq {
  --faq-pad-y: var(--space-07);          /* 35 / 20 */
  --faq-pad-x: var(--space-07);          /* 35 / 16 (mobile below) */
  --faq-icon-gap: var(--space-08);       /* 48 / 16 (mobile below) */
  --faq-qa-gap: var(--space-08);         /* question to answer: 48 / 24 */
  --faq-icon: calc(40 * var(--px));

  display: grid;
  grid-template-columns: minmax(0, calc(447 * var(--px))) minmax(0, 1fr);
  column-gap: var(--grid-gutter);
  align-items: start;
}

/* "You ask," sits on its own line above "we answer." */
.faq__intro .block-intro__title em { display: block; }

.faq__intro .block-intro {
  margin-bottom: 0;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--space-07);
}

.faq__intro .block-intro__main,
.faq__intro .block-intro__body {
  gap: var(--space-07);
  padding-right: 0;
}

/* .faq prefix: components/accordion.css loads after sections and sets its own
   29em max-width */
.faq .faq__accordion {
  justify-self: end;
  width: 100%;
  max-width: calc(905 * var(--px));
}

.faq__accordion .accordion-css__list {
  gap: calc(20 * var(--px));
}

.faq__accordion .accordion-css__item {
  border-radius: var(--radius-m);
  background-color: color-mix(in srgb, var(--brand-charcoal) 5%, transparent);
  backdrop-filter: blur(calc(10 * var(--px)));
  -webkit-backdrop-filter: blur(calc(10 * var(--px)));
  transition:
    background-color var(--animation-default-half),
    box-shadow var(--animation-default-half);
}

/* Figma cardHover-shadow-v2 */
.faq__accordion .accordion-css__item[data-accordion-status="active"] {
  background-color: var(--brand-white);
  box-shadow:
    0 calc(-1 * var(--px)) calc(2 * var(--px)) rgb(0 0 0 / 0.05),
    0 calc(3 * var(--px)) calc(4 * var(--px)) rgb(0 0 0 / 0.08),
    0 calc(7 * var(--px)) calc(12 * var(--px)) rgb(50 50 50 / 0.08);
}

.faq__accordion .accordion-css__item-top {
  align-items: flex-start;
  gap: var(--faq-icon-gap);
  width: 100%;
  padding: var(--faq-pad-y) var(--faq-pad-x);
  border: 0;
  background: none;
  color: var(--color-text-dark);
  text-align: left;
}

/* Trimmed to cap height and baseline, as Figma measures it. On hover the
   question underlines (Figma 1622-79003, Monique QA #40, Chris 10 Nov; was no
   underline): a text-decoration, so it wraps with a two-line question.
   Accent at Figma's 10% thickness (about 2px), Monique Pastel #40, 11 Nov. */
.faq__accordion .accordion-css__item-h3 {
  font-size: var(--faq-q-size);
  line-height: var(--faq-q-lh);
  letter-spacing: var(--faq-q-ls);
  font-weight: var(--faq-q-weight);
  text-box: trim-both cap alphabetic;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--animation-default-half);
}

.faq__accordion .accordion-css__item-top:hover .accordion-css__item-h3 {
  text-decoration-color: var(--color-accent);
}

/* Circle centred on the first line's cap height */
.faq__accordion .accordion-css__item-icon {
  width: var(--faq-icon);
  height: var(--faq-icon);
  margin-block: calc((var(--faq-q-size) * 0.72 - var(--faq-icon)) / 2);
  transform: none;
  background-color: color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  color: var(--color-text-dark);
  transition:
    transform var(--animation-default-half),
    background-color var(--animation-default-half);
}

.faq__accordion .accordion-css__item-icon-svg {
  width: 60%;
}

.faq__accordion .accordion-css__item-top:hover .accordion-css__item-icon,
.faq__accordion [data-accordion-status="active"] .accordion-css__item-icon {
  background-color: var(--color-accent);
}

.faq__accordion [data-accordion-status="active"] .accordion-css__item-icon {
  transform: rotate(45deg);
}

/* Answer lines up under the question, clear of the icon column */
.faq__accordion .accordion-css__item-bottom-content {
  padding:
    calc(var(--faq-qa-gap) - var(--faq-pad-y))
    calc(var(--faq-pad-x) + var(--faq-icon) + var(--faq-icon-gap))
    var(--faq-pad-y)
    var(--faq-pad-x);
}

.faq__accordion .accordion-css__item-p {
  font-size: var(--faq-a-size);
  line-height: var(--faq-a-lh);
  color: var(--color-text-dark-secondary);
}

.faq__accordion .accordion-css__item-p > :first-child { margin-top: 0; }
.faq__accordion .accordion-css__item-p > :last-child { margin-bottom: 0; }

.faq__accordion .accordion-css__item-more {
  margin-top: calc(35 * var(--px));
}

@media screen and (max-width: 767px) {
  .faq {
    --faq-pad-x: var(--space-06);
    --faq-icon-gap: var(--space-06);
    --faq-qa-gap: var(--space-06b);
    --faq-icon: calc(30.6 * var(--px));

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-07b);
  }

  /* The See all FAQs button follows the questions on mobile */
  .faq__intro { display: contents; }
  .faq__intro .block-intro { display: contents; }
  .faq__intro .block-intro__main { order: 1; }
  /* The intro is display: contents here, so it misses the shared 8 inset. */
  .faq__intro .block-intro__main,
  .faq__intro .block-intro__text { padding-inline: calc(8 * var(--px)); }
  .faq__intro .block-intro__body { display: contents; }
  .faq__intro .block-intro__text { order: 2; margin-top: calc(var(--space-07) - var(--space-07b)); }
  .faq .faq__accordion { order: 3; max-width: none; }
  .faq__intro .btn-group { order: 4; }
  .faq__intro .btn-group .btn { width: 100%; }

  .faq__accordion .accordion-css__list {
    gap: var(--space-05);
  }

  .faq__accordion .accordion-css__item-bottom-content {
    padding-right: var(--faq-pad-x);
  }

  .faq__accordion .accordion-css__item-more {
    margin-top: calc(24 * var(--px));
  }
}


/* --- css/sections/news-grid.css --- */
/* sections/news-grid.css — posts grid on .dc-grid with basic filter +
   List.js live search. Markup: blocks/posts_grid/render.php
     section_news-grid > .container > .news-grid[data-live-search][data-filter-group]
       > .news-grid__controls (filter buttons + search field)
       > .dc-grid.live-search__list > .dc-grid__item.card[data-filter-name]
       > .news-grid__not-found */

.news-grid__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-s);
  margin-bottom: var(--space-m);
}

.news-grid__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.news-grid__filter-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background-color: var(--color-surface-2);
  color: var(--color-ink);
  border-radius: var(--radius-full);
  padding: 0.65em 1.25em;
  transition: color var(--duration-default) var(--cubic-default),
              background-color var(--duration-default) var(--cubic-default);
}

.news-grid__filter-btn[data-filter-status="active"] {
  background-color: var(--color-ink);
  color: var(--color-surface);
}

.news-grid__search {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--color-surface-2);
  border-radius: var(--radius-full);
  height: 3em;
  min-width: 16em;
}

.news-grid__search-icon {
  position: absolute;
  left: 1em;
  width: 1.1em;
  color: var(--color-ink-soft);
  pointer-events: none;
}

.news-grid__search-input {
  appearance: none;
  border: 0;
  background: none;
  width: 100%;
  height: 100%;
  padding: 0 1.25em 0 2.75em;
  color: var(--color-ink);
  font: inherit;
}

.news-grid__search-input:focus { outline: none; }

/* Cards are .card (components/card.css). */

.news-grid__not-found {
  padding: var(--space-m) 0;
  text-align: center;
  color: var(--color-ink-soft);
}

/* ---------------------------------------------------------------- */
/* In-grid CTAs — grid items injected after the Nth card (render.php
   grid_ctas). No data-filter-name, so filters leave them in place; the
   card takes one cell, the strip spans the full row. */

.news-grid__cta {
  background-color: var(--color-primary);
  color: var(--n-0);
  border-radius: var(--radius-m);
  padding: var(--gap-m);
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  gap: var(--gap-m);
  min-height: 16em;
}

.news-grid__cta.is--strip {
  width: 100%;
  flex-flow: row;
  align-items: center;
  min-height: 0;
  padding: var(--gap-m) var(--gap-l);
}

.news-grid__cta-label {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.145em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.75em;
}

.news-grid__cta-title {
  color: inherit;
  font-size: 1.5em;
  margin: 0;
}

.news-grid__cta.is--strip .news-grid__cta-title { font-size: 1.375em; }

.news-grid__cta-text {
  margin: 0.75em 0 0;
  font-size: 0.875em;
  opacity: 0.8;
}

.news-grid__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  font-weight: 500;
  color: inherit;
  flex: none;
}

.news-grid__cta-arrow { width: 1.25em; flex: none; }

/* Sidebar filter layout (filter_layout = sidebar, data-filter-mode="multi") */

.news-grid.is--sidebar .news-grid__layout {
  display: flex;
  gap: var(--gap-l);
  align-items: flex-start;
}

.news-grid__sidebar {
  flex: none;
  width: 15em;
  position: sticky;
  top: calc(var(--nav-height, 4em) + 2.5em + var(--admin-bar));
  display: flex;
  flex-flow: column;
  gap: var(--gap-m);
}

.news-grid__main { flex: 1; min-width: 0; }

.news-grid__sidebar-group {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-s);
  padding: var(--gap-s);
  display: flex;
  flex-flow: column;
  gap: 0.25em;
}

.news-grid__sidebar-label {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: 0.5em;
}

.news-grid__sidebar-check {
  display: flex;
  align-items: center;
  gap: 0.625em;
  background: none;
  border: none;
  padding: 0.375em 0.25em;
  font-size: 0.9375em;
  color: var(--color-ink);
  cursor: pointer;
  text-align: left;
}

.news-grid__sidebar-box {
  width: 1em;
  height: 1em;
  flex: none;
  border: 1px solid var(--color-ink-soft);
  border-radius: 3px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.news-grid__sidebar-check[data-filter-status="active"] .news-grid__sidebar-box {
  background-color: var(--color-select);
  border-color: var(--color-select);
}

.news-grid__sidebar-reset {
  background: none;
  border: none;
  padding: 0.25em;
  font-size: 0.8125em;
  color: var(--color-ink-soft);
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

@media (max-width: 991px) {
  .news-grid.is--sidebar .news-grid__layout { flex-flow: column; }

  .news-grid__sidebar { position: static; width: 100%; }
}


/* --- css/sections/resource-grid.css --- */
/* sections/resource-grid.css — the Resources browse page
   (Figma "Resource Hub - Listing - 1720", 978:28212, 1 Oct 2026).
   Markup: blocks/resource_grid/render.php
     section_resource-grid > .container > form.resource-grid[data-resource-filters]
       > .resource-grid__sidebar (back link, groups[data-filter-panel], actions)
       > .resource-grid__main
         > .resource-grid__topbar (Show me: type + format selects; Sort by)
         > .resource-featured__grid (the hub bento, sections/resource-hub.css)
         > .dc-grid.resource-grid__list > .card (components/card.css)
             + .resource-grid__cta.is--card / .is--strip (injected)
         > .resource-grid__chips, .resource-grid__more
   Sizes are Figma px times --px. The page is the tint theme (silver). */

.resource-grid {
  display: grid;
  grid-template-columns: calc(296 * var(--px)) minmax(0, 1fr);
  column-gap: calc(35 * var(--px));
  align-items: start;
}

/* ---- Sidebar -------------------------------------------------------- */

.resource-grid__sidebar {
  position: sticky;
  top: calc(var(--nav-height, 100px) + var(--space-05) + var(--admin-bar));
  display: flex;
  flex-direction: column;
  gap: var(--space-05b);
}

.resource-grid__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-03);
  width: fit-content;
  padding: calc(10 * var(--px)) var(--space-05b);
  color: var(--brand-charcoal);
  font-size: calc(15 * var(--px));
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1px;
  text-decoration: none;
}

/* The copy above the phone filter bar; the sidebar's own shows from 992. */
.resource-grid__back.is--bar { display: none; }

/* From 992 the sheet wrapper is not a box: the sidebar lays out as before. */
@media (min-width: 992px) {
  .resource-grid__sidebar .hd-sheet__body { display: contents; }
}

.resource-grid__back img { width: calc(11 * var(--px)); height: calc(11 * var(--px)); }

.resource-grid__back span {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: calc(2 * var(--px));
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--animation-default-half);
}

.resource-grid__back:hover span { text-decoration-color: var(--color-accent-line); }

.resource-grid__groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-04);
}

.resource-grid__group {
  padding: var(--space-03) var(--space-05b);
  border: 1px solid color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  border-radius: var(--radius-m);
  background-color: var(--brand-white);
}

.resource-grid__group-head {
  appearance: none;
  display: flex;
  align-items: center;
  gap: var(--space-03);
  width: 100%;
  height: calc(40 * var(--px));
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-charcoal);
  font-family: var(--font-sans);
  font-size: calc(17 * var(--px));
  font-weight: 620;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.resource-grid__caret {
  flex: none;
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  transition: rotate var(--animation-default-half);
}

.resource-grid__group-head .resource-grid__caret { margin-left: auto; rotate: 180deg; }
.resource-grid__group.is--collapsed .resource-grid__group-head .resource-grid__caret { rotate: 0deg; }

.resource-grid__group-count {
  display: inline-grid;
  place-items: center;
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  border-radius: var(--radius-xs);
  background-color: var(--color-select);
  color: var(--color-select-ink);
  font-size: calc(12 * var(--px));
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}

.resource-grid__group-count[hidden] { display: none; }

.resource-grid__group-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-05);
  padding: var(--space-02) 0 var(--space-04);
}

.resource-grid__group-body[hidden] { display: none; }

.resource-grid__check {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  color: var(--brand-charcoal);
  font-size: var(--body-s-size);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1px;
  cursor: pointer;
}

.resource-grid__check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.resource-grid__check-box {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: calc(16 * var(--px));
  height: calc(16 * var(--px));
  border: 2px solid color-mix(in srgb, var(--brand-charcoal) 80%, transparent);
  border-radius: var(--radius-xs);
  transition: background-color var(--animation-default-half), border-color var(--animation-default-half);
}

.resource-grid__check input:checked + .resource-grid__check-box {
  border-color: var(--color-select);
  background-color: var(--color-select);
}

.resource-grid__check input:checked + .resource-grid__check-box::after {
  content: "";
  width: calc(4 * var(--px));
  height: calc(8 * var(--px));
  margin-top: calc(-2 * var(--px));
  border-right: 2px solid var(--color-select-ink);
  border-bottom: 2px solid var(--color-select-ink);
  rotate: 45deg;
}

.resource-grid__check input:focus-visible + .resource-grid__check-box {
  outline: 2px solid var(--brand-charcoal);
  outline-offset: 2px;
}

.resource-grid__sidebar-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-03);
  padding: 0 var(--space-05b);
  font-size: calc(13 * var(--px));
  font-weight: 500;
  letter-spacing: 0.2px;
}

.resource-grid__reset,
.resource-grid__collapse {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-charcoal);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  cursor: pointer;
  transition: text-decoration-color var(--animation-default-half);
}

.resource-grid__reset:hover,
.resource-grid__collapse:hover { text-decoration-color: var(--color-accent-line); }

.resource-grid__collapse[hidden] { display: none; }

.resource-grid__apply[hidden] { display: none; }

/* ---- Main: control bar ---------------------------------------------- */

.resource-grid__main { min-width: 0; }

.resource-grid__topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-04) var(--space-07);
  padding: 0 var(--space-04) var(--space-06);
}

.resource-grid__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-04);
}

.resource-grid__controls.is--sort { margin-left: auto; }

.resource-grid__control-label {
  color: var(--brand-charcoal);
  font-size: calc(15 * var(--px));
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1px;
}

.resource-grid__select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: calc(40 * var(--px));
  border: 1px solid color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  border-radius: var(--radius-s);
  background-color: var(--brand-white);
  color: var(--brand-charcoal);
}

.resource-grid__select {
  appearance: none;
  height: 100%;
  padding: 0 calc(40 * var(--px)) 0 var(--space-04);
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--font-sans);
  font-size: calc(15 * var(--px));
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1px;
  cursor: pointer;
}

/* Under 16px, iPhones zoom the page when a select is tapped. */
@media screen and (max-width: 767px) {
  .resource-grid__select { font-size: 16px; }
}

.resource-grid__select-wrap .resource-grid__caret {
  position: absolute;
  right: var(--space-04);
  pointer-events: none;
}

.resource-grid__select-wrap.is-dropdown-open .resource-grid__caret { rotate: 180deg; }

/* ---- Featured bento + grid ------------------------------------------ */

.resource-grid__featured { margin-bottom: calc(56 * var(--px)); }

.resource-grid__list {
  --column-gap: calc(35 * var(--px));
  --row-gap: calc(56 * var(--px));
}

/* ---- Injected CTAs (card-inline-cta-variation-1, cta-strip-A) ------- */

.resource-grid__cta.is--card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-07);
  padding: calc(35 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--color-accent);
  color: var(--brand-charcoal);
}

.resource-grid__cta-shape {
  align-self: flex-end;
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
  border-radius: calc(10 * var(--px)) calc(10 * var(--px)) 0 0;
  background-color: var(--brand-charcoal);
}

.resource-grid__cta-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(35 * var(--px));
}

.resource-grid__cta-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: calc(30 * var(--px));
  line-height: 1.25;
  letter-spacing: -0.5px;
  font-weight: 550;
}

.resource-grid__cta-title em { font-style: italic; }

.resource-grid__cta-text {
  margin: calc(-11 * var(--px)) 0 0;
  font-size: var(--body-s-size);
  line-height: var(--body-s-lh);
  color: var(--color-text-dark-secondary);
}

.resource-grid__cta.is--strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(48 * var(--px));
  width: 100%;
  min-height: calc(155 * var(--px));
  padding: calc(35 * var(--px));
  border-radius: var(--radius-m);
  background-color: color-mix(in srgb, var(--color-accent) 55%, var(--brand-white));
  color: var(--brand-charcoal);
}

.resource-grid__cta-icon {
  flex: none;
  width: calc(94 * var(--px));
  height: calc(94 * var(--px));
}

.resource-grid__cta-line {
  margin: 0;
  font-size: var(--utility-l-size);
  line-height: var(--utility-l-lh);
  letter-spacing: var(--utility-l-ls);
  font-weight: 600;
  text-align: center;
}

/* ---- Load more, then You might be interested in (Figma 1933:109704: a
   near-white panel under the button) -------------------------------------- */

.resource-grid__chips {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(35 * var(--px));
  margin-top: calc(90 * var(--px));
  padding: calc(56 * var(--px)) var(--space-11);
  border-radius: var(--radius-m);
  background-color: color-mix(in srgb, var(--brand-white) 50%, var(--brand-silver));
  text-align: center;
}

.resource-grid__chips-label { color: var(--brand-charcoal); }

.resource-grid__chips-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-04);
}

/* The chips are components/chip.css. */

.resource-grid__more {
  display: flex;
  justify-content: center;
  margin-top: calc(35 * var(--px));
}

.resource-grid__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-06);
  padding: var(--space-08) var(--space-04);
}

.resource-grid__empty p { margin: 0; }

/* ---- Responsive ----------------------------------------------------- */

@media screen and (max-width: 991px) {
  /* The Home Designs listing's bar and filter sheet (shared .hd-grid__mobilebar
     and .hd-sheet__* rules in home-design-grid.css). The top bar's selects are
     radio groups in the sheet. */
  /* 9 + the back link's own 10 padding = the Home Designs listing's 19 under the bar. */
  .section_resource-grid { padding-top: calc(9 * var(--px)); }
  .resource-grid { display: block; }
  .resource-grid > .resource-grid__sidebar { gap: 0; }
  .resource-grid__topbar,
  .resource-grid__sidebar .resource-grid__back,
  .resource-grid__sidebar-actions,
  .resource-grid__apply { display: none; }
  .resource-grid__back.is--bar { display: inline-flex; margin-bottom: var(--space-04); padding-inline: 0; }
  .resource-grid .hd-grid__mobilebar { margin-bottom: var(--space-07); }

  .resource-grid__groups { gap: 0; }
  .resource-grid__group {
    padding: calc(8 * var(--px)) calc(20 * var(--px));
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
    border-radius: 0;
  }
  /* In the sheet every group sits open and lists its choices in rows. */
  .resource-grid__group-head { height: calc(40 * var(--px)); font-size: calc(16 * var(--px)); pointer-events: none; }
  .resource-grid__group-head .resource-grid__caret { display: none; }
  .resource-grid__group-body,
  .resource-grid__group-body[hidden] {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: calc(12 * var(--px)) calc(20 * var(--px));
    padding: 0 0 calc(10 * var(--px));
  }
  .resource-grid__list { --column-gap: calc(20 * var(--px)); --row-gap: calc(35 * var(--px)); }
  .resource-grid__cta.is--strip { flex-direction: column; gap: var(--space-06); text-align: center; }
  .resource-grid__chips { margin-top: var(--space-08); padding: var(--space-08) var(--space-06); }
}


/* --- css/sections/resource-hub.css --- */
/* sections/resource-hub.css — the Resources hub landing sections, restyled
   30 Sep 2026 to Figma Knowledge Hub 925:28648 with the homepage blocks as
   the master styles (Chris). Blocks: resource_hero, resource_featured,
   interest_carousel, resource_tabs, faq_teaser, discover_links.
   The first three share the dark band; bg-fade.js then carries the page to
   the silver theme for the rest (the frame's gradient only illustrates that
   change). Cards live in components/card.css. */

/* ---- hero: the homepage hero's centred header + search + chips ---- */

/* The frame shows no arch line here, and the featured cards follow on the
   same band, so the header's bottom padding tightens. */
.section_resource-hero::after { display: none; }

.section_hero.is-header.section_resource-hero .hero__content {
  gap: var(--space-09);
  max-width: calc(1000 * var(--px) + 2 * var(--container-padding));
  padding-bottom: var(--space-10);
}

/* Figma Resource Hub - LP 1933:111254: a silver label (not accent), the
   title at 91 / 1.15, the lead at 19 held to 752. */
.section_hero.is-header.section_resource-hero .hero__label { color: rgb(242 242 242 / 0.85); letter-spacing: calc(2 * var(--px)); }

.section_hero.is-header.section_resource-hero .hero__title {
  font-size: calc(91 * var(--px));
  line-height: 1.15;
  letter-spacing: calc(-1 * var(--px));
}

.section_hero.is-header.section_resource-hero .hero__text {
  max-width: calc(752 * var(--px));
  padding-inline: 0;
  font-size: calc(19 * var(--px));
  line-height: 1.5;
  color: rgb(242 242 242 / 0.85);
}

/* search-bar-large: 720 wide, a hairline charcoal edge and the lifted shadow. */
.resource-hero__search {
  display: flex;
  align-items: center;
  gap: var(--space-05);
  width: min(calc(720 * var(--px)), 100%);
  padding: var(--space-04) var(--space-04) var(--space-04) var(--space-06);
  border: 1px solid rgb(50 50 50 / 0.8);
  border-radius: calc(54 * var(--px));
  background-color: var(--brand-white);
  color: var(--brand-charcoal);
  box-shadow: 0 -1px 2px rgb(0 0 0 / 0.05), 0 2px 4px rgb(0 0 0 / 0.06), 0 12px 18px rgb(50 50 50 / 0.1);
}

.resource-hero__search-icon {
  flex: none;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  color: var(--brand-charcoal);
}

.resource-hero__search-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-charcoal);
  font-family: var(--font-sans);
  font-size: calc(18 * var(--px));
  font-weight: 500;
}

.resource-hero__search-input::placeholder { color: rgb(50 50 50 / 0.5); }
.resource-hero__search-input:focus { outline: none; }
.resource-hero__search:focus-within { box-shadow: 0 0 0 2px var(--color-accent-line), 0 12px 18px rgb(50 50 50 / 0.1); }

.resource-hero__search-btn {
  appearance: none;
  display: grid;
  flex: none;
  place-items: center;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  color: var(--brand-charcoal);
  cursor: pointer;
  transition: background-color var(--animation-default-half);
}

.resource-hero__search-btn:hover { background-color: var(--brand-charcoal); color: var(--color-accent); }
.resource-hero__search-btn svg { width: calc(24 * var(--px)); height: calc(24 * var(--px)); }

/* Outline suggestion chips, 40 tall, 12 apart, in an 860 column. */
.resource-hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-04);
  max-width: calc(860 * var(--px));
  margin-top: calc(-1 * var(--space-02));
}

/* The pills are components/chip.css, dark surface. */

/* ---- featured: one large card, two small stacked, on the dark band ---- */

.section_resource-featured { padding-bottom: var(--space-10); }

/* Figma Resource Hub 1933:111128: a 958 large card beside a 450 column of two
   cards, 32 between the columns, 56 between the two small cards. Every photo
   is 4.5 / 3 and each card is as tall as its own content: nothing stretches
   to match its neighbour. */
.resource-featured__grid {
  display: grid;
  grid-template-columns: minmax(0, 958fr) minmax(0, 450fr);
  align-items: start;
  gap: calc(56 * var(--px)) calc(32 * var(--px));
}

/* resource-grid.css sizes .card.is--wide to half width for the grid page's
   flex rows; here the grid cell is the width. */
.resource-featured__grid > .card { width: auto; }

.resource-featured__grid:not(.is-row) > .card:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.resource-featured__grid:not(.is-row) > .card:nth-child(n + 2) { grid-column: 2; }

.resource-featured__grid:not(.is-row) > .card .card__media { aspect-ratio: 4.5 / 3; }
/* 17 from the photo to the badges (the shared card gap is 24). */
.resource-featured__grid:not(.is-row) > .card .card__link { gap: calc(17 * var(--px)); }

/* A short window (14 and 16 inch laptops): the block narrows with the window
   height so the whole bento fits the screen. 1420 wide at 1080 high, and in
   proportion below that; taller windows keep the full container. */
@media screen and (min-width: 992px) {
  .section_resource-featured:has(.resource-featured__grid:not(.is-row)) .container { max-width: min(var(--size-container), calc(100svh * 1420 / 1080)); }
}

/* A very short window (about 1280 x 670): the two small cards sit closer
   together. Narrowing further does not help here, the titles only wrap onto
   more lines. */
@media screen and (min-width: 992px) and (max-height: 760px) {
  .resource-featured__grid:not(.is-row) { row-gap: calc(32 * var(--px)); }
  /* The large card title drops one size, so a three-line title still fits. */
  .resource-featured__grid:not(.is-row) > .card.is-large .card__title {
    font-size: var(--display-m-size);
    line-height: var(--display-m-lh);
    letter-spacing: var(--display-m-ls);
    font-weight: var(--display-m-weight);
  }
}

/* ---- I'm interested in: heading + arrows, then the accent tiles ---- */

.section_interest-carousel { padding-bottom: var(--space-11); }

.section_interest-carousel .block-intro { margin-bottom: var(--space-07); }

/* Figma block-carousel-smallTile (1622:69009): the description runs 903 wide,
   up towards the arrows, not the default 760 intro column. */
.section_interest-carousel .block-intro__main { padding-right: 0; }
.section_interest-carousel .block-intro__body { max-width: calc(903 * var(--px)); padding-right: 0; }

.interest-carousel__arrows {
  display: flex;
  gap: calc(8 * var(--px));
}

/* Every tile already in view (slider.js sets data-slider-fits): no arrows. */
[data-slider-fits] .interest-carousel__arrows { display: none; }

/* Same slider chrome as the homepage card carousel: the wrap clips at the
   container edge, the list drags, tiles carry half a gutter each side. */
.interest-carousel__wrap {
  overflow: hidden;
  margin-inline: calc(-0.5 * var(--grid-gutter));
  clip-path: inset(0 calc(0.5 * var(--grid-gutter)));
}

.interest-carousel__list {
  display: flex;
  cursor: grab;
}

.interest-carousel__list:active { cursor: grabbing; }

/* Cards are .card.is-tile (components/card.css); the carousel only spaces
   them. Every tile stays at full strength: the frame shows the row side by
   side, not a receding slider. */
.interest-carousel__list .card.is-tile { margin-inline: calc(0.5 * var(--grid-gutter)); }

/* Four tiles fill the content width on desktop, three on tablets, so the
   next tile sits wholly past the edge. Phones keep the 300 tile and its peek. */
@media screen and (min-width: 992px) {
  .interest-carousel__list .card.is-tile { width: calc(25% - var(--grid-gutter)); }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .interest-carousel__list .card.is-tile { width: calc(100% / 3 - var(--grid-gutter)); }
}

.dc-slider.section_interest-carousel [data-slider="slide"] { opacity: 1; }

/* ---- explore resources (Figma 1933:111163): straight on the silver page ---- */

.section_resource-tabs { padding-block: calc(104 * var(--px)); }

.resource-tabs__panel { color: var(--brand-charcoal); }

.resource-tabs__panel .block-intro { margin-bottom: var(--space-10); }

.resource-tabs__panel .block-intro__title {
  font-size: calc(72 * var(--px));
  line-height: 1.1;
  letter-spacing: calc(-1.5 * var(--px));
}

/* Full-width recessed track (inset 35 a side), four equal tabs, each a
   24 icon 8 from its label; the active one filled charcoal, its icon light. */
.resource-tabs__bar {
  display: flex;
  gap: calc(2 * var(--px));
  margin: 0 var(--space-07) var(--space-08);
  padding: calc(4 * var(--px));
  border-radius: calc(72 * var(--px));
  background-color: color-mix(in srgb, var(--brand-charcoal) 5%, transparent);
  box-shadow: inset 0 0 4px rgb(0 0 0 / 0.05), inset 0 1px 2px rgb(0 0 0 / 0.05);
  /* When the tabs outgrow the screen they swipe inside the pill; before,
     the row pushed the whole page wider. */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.resource-tabs__bar::-webkit-scrollbar { display: none; }

.resource-tabs__tab {
  flex: 1 0 auto;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-03);
  min-width: calc(75 * var(--px));
  height: calc(40 * var(--px));
  padding: 0 var(--space-06);
  border: none;
  border-radius: calc(66 * var(--px));
  background: transparent;
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  font-size: calc(16 * var(--px));
  font-weight: 630;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color var(--animation-default-half),
    background-color var(--animation-default-half);
}

.resource-tabs__icon { flex: none; width: calc(24 * var(--px)); height: calc(24 * var(--px)); }
.resource-tabs__icon :is([fill="#323232"], [fill="#9CE3DB"]) { transition: fill var(--animation-default-half); }

.resource-tabs__tab:hover { background-color: color-mix(in srgb, var(--brand-charcoal) 8%, transparent); }

.resource-tabs__tab[data-filter-status="active"] {
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
  filter: drop-shadow(0 2px 1.5px rgb(0 0 0 / 0.2));
}

/* Selected: the icon drops its mint fill and goes outline only (Monique, 4 Nov). */
.resource-tabs__tab[data-filter-status="active"] .resource-tabs__icon [fill="#323232"] { fill: var(--brand-silver); }
.resource-tabs__tab[data-filter-status="active"] .resource-tabs__icon [fill="#9CE3DB"] { fill: transparent; }

.resource-tabs__grid { --column-gap: calc(35 * var(--px)); --row-gap: calc(35 * var(--px)); }

.resource-tabs__cell .card { height: 100%; }

/* The Osmo basic filter flips data-filter-status; these styles do the actual
   show/hide (the vault CSS binds them to its demo class, not generically).
   not-active leaves the flow via position:absolute so the visible tab's
   cards reflow into a clean row. */
.resource-tabs__cell[data-filter-status="active"] {
  transition: opacity var(--duration-default) var(--cubic-default),
              transform var(--duration-default) var(--cubic-default);
  transform: scale(1) rotate(0.001deg);
  opacity: 1;
  visibility: visible;
  position: relative;
}

.resource-tabs__cell[data-filter-status="transition-out"] {
  transition: opacity var(--duration-default-half) var(--cubic-default),
              transform var(--duration-default-half) var(--cubic-default);
  transform: scale(0.94) rotate(0.001deg);
  opacity: 0;
  visibility: visible;
}

.resource-tabs__cell[data-filter-status="not-active"] {
  transform: scale(0.94) rotate(0.001deg);
  opacity: 0;
  visibility: hidden;
  position: absolute;
}

.resource-tabs__links {
  display: flex;
  justify-content: center;
  margin-top: var(--space-07);
}

.resource-tabs__all {
  color: var(--brand-charcoal);
  font-size: calc(15 * var(--px));
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--animation-default-half);
}

.resource-tabs__all:hover { text-decoration-color: var(--color-accent-line); }
.resource-tabs__all[data-filter-status="not-active"] { display: none; }

/* ---- common questions ---- */

.section_faq-teaser .block-intro { margin-bottom: var(--space-07); }

.faq-teaser__arrows {
  display: flex;
  gap: calc(8 * var(--px));
}

/* Three question cards per view on the DC slider, card carousel chrome. */
.faq-teaser__wrap {
  overflow: hidden;
  margin-inline: calc(-0.5 * var(--grid-gutter));
  clip-path: inset(0 calc(0.5 * var(--grid-gutter)));
}

.faq-teaser__list {
  display: flex;
  align-items: stretch;
  cursor: grab;
}

.faq-teaser__list:active { cursor: grabbing; }

.faq-teaser__list .card.is-question {
  flex: none;
  width: calc(33.333% - var(--grid-gutter));
  margin-inline: calc(0.5 * var(--grid-gutter));
}

.dc-slider.section_faq-teaser [data-slider="slide"] { opacity: 1; }

/* ---- more to explore (Figma 1933:111187): mint chip card + photo card,
   487 tall side by side, 24 apart, the search strip 24 under them ---- */

.section_discover-links { padding-top: calc(136 * var(--px)); }

.discover-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-06);
  align-items: stretch;
}

.discover-links__cloud {
  min-height: calc(487 * var(--px));
  padding: calc(35 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--color-accent);
  color: var(--brand-charcoal);
}

.discover-links__heading {
  margin: 0 0 var(--space-08);
  font-family: var(--font-serif);
  font-size: var(--display-l-size);
  line-height: var(--display-l-lh);
  letter-spacing: var(--display-l-ls);
  font-weight: var(--display-l-weight);
  text-box: trim-both cap alphabetic;
}

.discover-links__pills {
  display: flex;
  flex-wrap: wrap;
  gap: calc(10 * var(--px));
}

/* The pills are components/chip.css on the accent cloud. */

/* The mega menu feature card: photo, dark wash down to clear at 40%,
   display-l title top left, a silver round arrow bottom right. */
.discover-links__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-07);
  min-height: calc(487 * var(--px));
  padding: calc(43 * var(--px)) calc(32 * var(--px)) calc(32 * var(--px));
  overflow: hidden;
  border-radius: var(--radius-m);
  background-color: var(--brand-charcoal);
  box-shadow: 0 3px 4px rgb(0 0 0 / 0.03), 0 0 3px rgb(0 0 0 / 0.12);
  color: var(--color-text-light);
  text-decoration: none;
}

.discover-links__panel.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgb(37 37 37 / 0.8), rgb(37 37 37 / 0) 40%), rgb(0 0 0 / 0.1);
  pointer-events: none;
}

.discover-links__panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale var(--animation-default);
}

.discover-links__panel:hover .discover-links__panel-img { scale: 1.03; }

.discover-links__panel-title {
  position: relative;
  z-index: 2;
  padding-right: calc(20 * var(--px));
  font-family: var(--font-serif);
  font-size: var(--display-l-size);
  line-height: var(--display-l-lh);
  letter-spacing: var(--display-l-ls);
  font-weight: var(--display-l-weight);
  color: var(--brand-silver);
  text-box: trim-both cap alphabetic;
}

.discover-links__panel:not(.has-image) .discover-links__panel-title { color: var(--color-accent); }

.discover-links__panel-arrow {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(48 * var(--px));
  height: calc(48 * var(--px));
  color: var(--brand-charcoal);
}

.discover-links__panel-arrow svg { position: relative; z-index: 1; width: calc(29 * var(--px)); height: calc(29 * var(--px)); }

/* A silver circle that turns accent and morphs into the brand shape on card
   hover, like the "I'm interested in" tiles (Figma 1622:79003). */
.discover-links__panel-arrow::before,
.discover-links__panel-arrow::after {
  background-color: var(--brand-silver);
  transition:
    border-radius var(--animation-default),
    opacity var(--animation-default-half),
    background-color var(--animation-default-half);
}

.discover-links__panel:hover .discover-links__panel-arrow::before,
.discover-links__panel:hover .discover-links__panel-arrow::after { background-color: var(--color-accent); }

.discover-links__search { margin-top: var(--space-06); }

/* ---- responsive ---- */

@media screen and (max-width: 991px) {
  .resource-featured__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: calc(20 * var(--px)); }
  /* :not(.is-row) matches the 8/4 desktop rule's weight, or it wins on phones. */
  .resource-featured__grid:not(.is-row) > .card:nth-child(1),
  .resource-featured__grid:not(.is-row) > .card:nth-child(n + 2) { grid-column: auto; grid-row: auto; }
  .resource-tabs__bar { margin-inline: 0; }
  .resource-tabs__tab { flex: none; }
}

@media screen and (max-width: 767px) {
  /* The 91 / 72 titles are desktop sizes: phones take the type scale's own. */
  .section_hero.is-header.section_resource-hero .hero__title {
    font-size: var(--display-xxl-size);
    line-height: var(--display-xxl-lh);
    letter-spacing: var(--display-xxl-ls);
  }

  .section_hero.is-header.section_resource-hero .hero__text { font-size: var(--body-m-size); line-height: var(--body-m-lh); }

  .resource-tabs__panel .block-intro__title {
    font-size: var(--display-xl-size);
    line-height: var(--display-xl-lh);
    letter-spacing: var(--display-xl-ls);
  }

  .section_resource-tabs { padding-block: var(--padding-block); }
  .resource-tabs__panel .block-intro { margin-bottom: var(--space-07); }

  .resource-hero__search { width: 100%; }
  .resource-hero__search-input { font-size: var(--body-m-size); }
  .section_discover-links { padding-top: var(--padding-block); }
  .discover-links { grid-template-columns: 1fr; gap: calc(20 * var(--px)); }
  .discover-links__cloud,
  .discover-links__panel { min-height: 0; padding: var(--space-06); }
  .discover-links__panel { min-height: calc(300 * var(--px)); }
  .discover-links__heading { font-size: var(--display-m-size); line-height: var(--display-m-lh); letter-spacing: var(--display-m-ls); margin-bottom: var(--space-06); }

  /* Chips at the wayfinding card's mobile size (Figma 1154:42729): 30 tall,
     10 apart, 16 icon 6 from a 14 label. */
  .discover-links__pills { gap: calc(10 * var(--px)); }

  .discover-links__pill {
    gap: calc(6 * var(--px));
    padding: calc(5 * var(--px)) calc(12 * var(--px)) calc(5 * var(--px)) calc(8 * var(--px));
    font-size: calc(14 * var(--px));
    font-weight: 500;
    line-height: calc(20 * var(--px));
    height: auto;
  }

  .discover-links__pill .chip__icon { width: calc(16 * var(--px)); height: calc(16 * var(--px)); }

  /* FAQ teaser on a phone: the homepage card carousel's pattern. One card
     at a time with the next peeking, the row running to the screen edge,
     swipe instead of arrows, and a 24 inset in the card. */
  .faq-teaser__arrows { display: none; }

  .faq-teaser__wrap { margin-right: calc(-1 * var(--container-padding)); clip-path: inset(0 0 0 calc(0.5 * var(--grid-gutter))); }

  .faq-teaser__list .card.is-question {
    width: 82%;
    padding: calc(24 * var(--px));
  }
}

/* Three across (Figma Group homepage Articles 2235:112833): equal cards, the
   intro left with its text link on the title row. */
.resource-featured__grid.is-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: var(--grid-gutter);
}

@media screen and (max-width: 767px) {
  .resource-featured__grid.is-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-08); }
}


/* --- css/sections/home-design-grid.css --- */
/* sections/home-design-grid.css — the Home Designs listing
   (Figma "Home Designs PERTH Listing": R2 1812:21824 elevations, first round
   1575:121679, 1575:121887 floorplans; mobile 1287:37949, filter sheet
   1379:42117).

   .section_home-design-grid > .hd-grid[data-view]
     > __mobilebar (below 992: sheet trigger + compact view toggle)
     > __sidebar  (desktop: filter groups + sidebar CTA; below 992: the sheet)
     > __main     > __bar (Show me / View / Sort by) + __results
                    > __list (.card.is-design…, __cta) + __more

   The card itself lives in components/card.css (.card.is-design). This file
   positions it and owns the listing chrome. Sizes are Figma px times --px.
   Width and side gutters come from the standard .container inside the
   section; the section owns vertical padding only. */

.section_home-design-grid {
  padding-block: calc(48 * var(--px)) var(--padding-block);
  scroll-margin-top: calc(100 * var(--px));
}

.hd-grid {
  display: grid;
  grid-template-columns: calc(296 * var(--px)) minmax(0, 1fr);
  column-gap: calc(35 * var(--px));
  align-items: start;
}

.hd-grid__mobilebar { display: none; }

/* ---- Sidebar -------------------------------------------------------- */

.hd-sheet__head,
.hd-sheet__foot,
.hd-grid__sidebar [data-hd-face="sheet"],
.resource-grid__sidebar [data-hd-face="sheet"] { display: none; }

/* Desktop: the filters stay in view under the compact bar while the cards
   scroll (Chris, 8 Oct 2026). Taller than the window (short laptops), the
   column has no scroll box of its own: it scrolls with the page and sticks
   once its bottom is in view (Kellie, review board 23 Nov).
   home-design-grid.js sets data-tall and --hd-side-h. Below 992 the sidebar
   is the filter sheet. */
@media (min-width: 992px) {
  .hd-grid__sidebar {
    position: sticky;
    top: calc(80 * var(--px) + var(--space-05) - 4px + var(--admin-bar));
    margin: -4px;
    padding: 4px;
  }

  .hd-grid__sidebar[data-tall] { top: calc(100svh - var(--hd-side-h, 0px) - var(--space-05) + 4px); }
}

.hd-sheet__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-07);
}

.hd-grid__groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-04);
}

.hd-group {
  min-width: 0;
  margin: 0;
  padding: var(--space-03) var(--space-05b);
  border: 1px solid color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  border-radius: var(--radius-m);
  background-color: var(--brand-white);
}

.hd-group__head {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
  width: 100%;
  height: calc(40 * var(--px));
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-charcoal);
  text-align: left;
  cursor: pointer;
}

.hd-group__title {
  padding: 0;
  font-family: var(--font-sans);
  font-size: calc(17 * var(--px));
  font-weight: 620;
  line-height: 1.4;
  color: #0e0f0e;
}

.hd-group__count {
  display: inline-grid;
  place-items: center;
  min-width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  padding-inline: calc(5 * var(--px));
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  font-size: calc(11 * var(--px));
  font-weight: 700;
}

.hd-group__count[hidden] { display: none; }

/* Range groups (Lot Width, Price) have no count: a dot says the slider is set
   (Figma Active filter visibility 1946:46560). */
.hd-group__count.is-dot {
  min-width: 0;
  width: calc(8 * var(--px));
  height: calc(8 * var(--px));
  padding: 0;
}

.hd-caret {
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  flex: none;
  transition: rotate var(--animation-default-half);
}

.hd-group__head .hd-caret { margin-left: auto; }
.hd-group__head[aria-expanded="true"] .hd-caret { rotate: 180deg; }

.hd-group__body { padding: calc(6 * var(--px)) 0 calc(10 * var(--px)); }
.hd-group__body[hidden] { display: none; }

.hd-group__list {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}

/* Checkbox + radio (Figma checkbox / radio components). */
.hd-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--px));
  font-size: var(--body-s-size);
  font-weight: 500;
  line-height: var(--body-s-lh);
  color: var(--color-text-dark-secondary);
  cursor: pointer;
}

.hd-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.hd-check__box {
  flex: none;
  width: calc(18 * var(--px));
  height: calc(18 * var(--px));
  border-radius: var(--radius-xs);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-charcoal) 50%, transparent);
  background: center / 100% 100% no-repeat;
}

.hd-check.is-radio .hd-check__box { border-radius: 50%; }

.hd-check input:checked + .hd-check__box {
  box-shadow: none;
  background-image: var(--icon-checkbox-on);
}

.hd-check.is-radio input:checked + .hd-check__box { background-image: var(--icon-radio-on); }

.hd-check input:focus-visible + .hd-check__box { outline: 2px solid var(--brand-charcoal); outline-offset: 2px; }

/* Range sliders (Figma rangeSlider, Lot Width 1830:97153): two native range
   inputs over one track. The track and ticks sit 12 in from each side, which
   is where a 14 thumb's centre stops, so the inputs are inset by 12 - 7. */
.hd-range {
  --lo: 0%;
  --hi: 100%;
  --inset: calc(12 * var(--px));
  --thumb: calc(14 * var(--px));
  position: relative;
  display: grid;
  gap: calc(6 * var(--px));
  padding-top: calc(4 * var(--px));
}

.hd-range__track {
  position: relative;
  height: 2px;
  margin: calc((var(--thumb) - 2px) / 2) var(--inset);
  background-color: var(--color-accent);
}

.hd-range__fill {
  position: absolute;
  inset: 0 calc(100% - var(--hi)) 0 var(--lo);
  background-color: var(--brand-charcoal);
}

.hd-range__input {
  position: absolute;
  top: calc(4 * var(--px));
  left: calc(var(--inset) - var(--thumb) / 2);
  width: calc(100% - 2 * var(--inset) + var(--thumb));
  height: var(--thumb);
  margin: 0;
  background: none;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.hd-range__input::-webkit-slider-runnable-track { background: none; height: var(--thumb); }
.hd-range__input::-moz-range-track { background: none; }

.hd-range__input::-webkit-slider-thumb {
  width: var(--thumb);
  height: var(--thumb);
  border: 0;
  border-radius: 50%;
  background: var(--brand-charcoal);
  cursor: grab;
  pointer-events: auto;
  -webkit-appearance: none;
}

.hd-range__input::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  border: 0;
  border-radius: 50%;
  background: var(--brand-charcoal);
  cursor: grab;
  pointer-events: auto;
}

/* Both handles: accent with a charcoal ring (Chris 2026-10-09). */
.hd-range__input::-webkit-slider-thumb { background: var(--color-accent); box-shadow: inset 0 0 0 1.5px var(--brand-charcoal); }
.hd-range__input::-moz-range-thumb { background: var(--color-accent); box-shadow: inset 0 0 0 1.5px var(--brand-charcoal); }

.hd-range__input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--brand-charcoal); outline-offset: 2px; }
.hd-range__input:focus-visible::-moz-range-thumb { outline: 2px solid var(--brand-charcoal); outline-offset: 2px; }

.hd-range__labels {
  display: flex;
  justify-content: space-between;
  margin-top: calc(3 * var(--px));
  font-size: var(--body-xs-size);
  font-weight: var(--body-xs-weight);
  letter-spacing: var(--body-xs-ls);
  color: var(--brand-charcoal);
}

/* Lot Width's ruler: a tick per step, every other one darker, labels under
   the dark ones. */
.hd-range__ticks {
  display: flex;
  justify-content: space-between;
  height: calc(6 * var(--px));
  padding-inline: var(--inset);
  opacity: 0.6;
}

.hd-range__tick {
  width: 1px;
  background-color: color-mix(in srgb, var(--brand-charcoal) 25%, transparent);
}

.hd-range__tick.is-major { background-color: color-mix(in srgb, var(--brand-charcoal) 90%, transparent); }

.hd-range__scale {
  position: relative;
  height: calc(18 * var(--px));
  font-size: calc(12 * var(--px));
  font-weight: 500;
  line-height: calc(18 * var(--px));
  letter-spacing: 0.2px;
  color: var(--color-text-dark-secondary);
}

.hd-range__scale span {
  position: absolute;
  left: calc(var(--inset) + var(--at) * (100% - 2 * var(--inset)));
  translate: -50% 0;
  white-space: nowrap;
}

.hd-grid__sidebar-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(32 * var(--px));
  margin-top: calc(-23 * var(--px)); /* 12 below the groups, not the 35 stack gap */
  padding-inline: var(--space-05b);
}

.hd-grid__link {
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--body-xs-size);
  font-weight: var(--body-xs-weight);
  letter-spacing: var(--body-xs-ls);
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.hd-grid__link:hover { text-decoration: underline; }

/* Sidebar ad slider (Figma card-mini-advert 1830:97079, a "rotating message
   panel"). Every slide is a whole panel in one shared grid cell, so the
   slider keeps the height of the tallest; slides crossfade on opacity alone.
   data-colourway="dark" is the Figma card with its colours flipped. */
.listing-advert {
  display: grid;
}

.listing-advert__slide {
  --advert-bg: var(--color-accent);
  --advert-ink: var(--brand-charcoal);
  --advert-text: var(--color-text-dark-secondary);
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-07);
  min-height: calc(212 * var(--px));
  padding: var(--space-08) var(--space-06) calc(28 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--advert-bg);
  color: var(--advert-ink);
  opacity: 0;
  visibility: hidden;
  /* The outgoing slide holds, solid, until the incoming one has faded in
     over it, so the page never shows through mid-fade. */
  transition: opacity 0s linear 0.8s, visibility 0s linear 0.8s;
}

.listing-advert__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease;
}

.listing-advert__slide[data-colourway="dark"] {
  --advert-bg: var(--brand-charcoal);
  --advert-ink: var(--color-accent);
  --advert-text: var(--color-text-light-secondary);
}

.listing-advert__shape {
  position: absolute;
  top: var(--space-06);
  right: var(--space-06);
  width: calc(11 * var(--px));
  height: calc(11 * var(--px));
  border-radius: var(--brand-shape-tiny-radius);
  -webkit-mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  background-color: var(--advert-ink);
}

.listing-advert__heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: calc(27 * var(--px));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-feature-settings: "liga" 0;
}

.listing-advert__text {
  margin: 0;
  padding-right: var(--space-05b);
  font-size: var(--body-s-size);
  font-weight: 500;
  line-height: calc(21 * var(--px));
  letter-spacing: 0.1px;
  color: var(--advert-text);
}

/* ---- Filter bar ----------------------------------------------------- */

.hd-grid__bar {
  display: flex;
  flex-wrap: wrap; /* narrow desktops (992 to ~1080): View + Sort drop under Show me instead of pushing the page wider */
  justify-content: space-between;
  align-items: center;
  gap: var(--space-04) var(--space-07);
  padding: 0 var(--space-04) var(--space-06);
}

/* "Showing WA designs. Change region: WA VIC QLD" on the plain URL. */
.hd-grid__region-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: calc(6 * var(--px)) calc(12 * var(--px));
  margin: 0;
  padding: 0 var(--space-04) var(--space-06);
  font-size: var(--body-s-size);
  line-height: var(--body-s-lh);
}

.hd-grid__region-note-label { opacity: 0.7; }

.hd-grid__region-note a {
  color: inherit;
  font-weight: 630;
  text-decoration: underline;
  text-decoration-color: var(--color-accent-line);
  text-decoration-thickness: calc(2 * var(--px));
  text-underline-offset: 0.2em;
}

.hd-grid__region-note a:hover { text-decoration-color: currentColor; }

.hd-grid__bar-group {
  display: flex;
  align-items: center;
  gap: var(--space-07);
}

.hd-grid__control {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
}

.hd-grid__control-label {
  font-size: calc(15 * var(--px));
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1px;
  color: var(--brand-charcoal);
}

.hd-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hd-select select {
  height: calc(40 * var(--px));
  padding: 0 calc(46 * var(--px)) 0 var(--space-05b);
  border: 1px solid color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  border-radius: calc(20 * var(--px));
  background-color: var(--brand-white);
  font-family: var(--font-sans);
  font-size: calc(15 * var(--px));
  font-weight: 600;
  letter-spacing: 0.1px;
  color: var(--brand-charcoal);
  cursor: pointer;
  appearance: none;
}

.hd-select .hd-caret {
  position: absolute;
  right: var(--space-05);
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
  pointer-events: none;
}

/* Elevations / Floorplans toggle (Figma filter-toggle). */
.hd-toggle {
  display: flex;
  width: calc(283 * var(--px));
  height: calc(40 * var(--px));
  padding: var(--space-01);
  border-radius: calc(20 * var(--px));
  background-color: color-mix(in srgb, var(--brand-charcoal) 5%, transparent);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05), inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hd-toggle__btn {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  gap: var(--space-03);
  padding: 0 var(--space-06);
  border: 0;
  border-radius: calc(66 * var(--px));
  background: none;
  font-family: var(--font-sans);
  font-size: calc(16 * var(--px));
  font-weight: 630;
  line-height: 1;
  color: var(--brand-charcoal);
  cursor: pointer;
  transition: background-color var(--animation-default-half), color var(--animation-default-half);
}

.hd-toggle__btn[aria-pressed="true"] {
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
  filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, 0.2));
}

/* Mask icons so they follow the button ink. */
.hd-toggle__icon {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
  flex: none;
  background-color: currentColor;
  mask: center / 75% no-repeat;
}

.hd-toggle__icon.is-elevations { mask-image: url('../img/icons/elevation.svg'); }
.hd-toggle__icon.is-floorplans { mask-image: url('../img/icons/floorplan.svg'); }

/* ---- Grid ----------------------------------------------------------- */

.hd-grid__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-06);
}

.hd-grid[data-view="floorplans"] .hd-grid__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hd-grid__more {
  display: flex;
  justify-content: center;
  padding-top: calc(35 * var(--px));
}

.hd-grid__more[hidden] { display: none; }

.hd-grid__results.is-loading { opacity: 0.5; transition: opacity var(--animation-default-half); }

.hd-grid__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-06);
  padding: var(--space-08) var(--space-04);
}

.hd-grid__empty p { margin: 0; }

/* Inline CTA (Figma cta-strip-xl, R2 1812:21940): spans the whole grid row.
   No right padding: the copy column carries its own (200 of the frame's 1319,
   kept as a share so the copy still has room at 1440, where the grid column
   is ~950 wide). The image scales the same way, up to its 417. */
.hd-grid__cta {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: var(--space-09);
  padding: var(--space-08) 0 var(--space-08) var(--space-08);
  overflow: hidden;
  border-radius: var(--radius-m);
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
}

.hd-grid__cta-media {
  flex: none;
  width: min(31.6%, calc(417 * var(--px)));
  aspect-ratio: 417 / 290;
  overflow: hidden;
  border-radius: calc(10.8 * var(--px));
}

.hd-grid__cta-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hd-grid__cta-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 0;
  gap: var(--space-07);
  min-width: 0;
  padding-right: 15%;
}

.hd-grid__cta-title {
  margin: 0;
  color: var(--color-accent);
}

.hd-grid__cta-text { color: var(--color-text-light-secondary); }
.hd-grid__cta-text p { margin: 0; }

.hd-grid__cta-arch {
  position: absolute;
  right: calc(-107 * var(--px));
  bottom: calc(-159 * var(--px));
  width: calc(274 * var(--px));
  height: auto;
  color: var(--color-accent);
  pointer-events: none;
}

/* Colour CTA (Figma 1853:35702): the accent fill, charcoal copy and button,
   a white arch. Same layout as the charcoal one. */
.hd-grid__cta[data-cta-style="colour"] {
  background-color: var(--color-accent);
  color: var(--brand-charcoal);
}

.hd-grid__cta[data-cta-style="colour"] .hd-grid__cta-title,
.hd-grid__cta[data-cta-style="colour"] .hd-grid__cta-text { color: var(--brand-charcoal); }

/* The charcoal button would hover to the accent it sits on. */
.hd-grid__cta[data-cta-style="colour"] .btn {
  --btn-bg-hover: var(--color-text-light);
  --btn-ink-hover: var(--brand-charcoal);
}

.hd-grid__cta[data-cta-style="colour"] .hd-grid__cta-arch { color: var(--color-text-light); }

/* Video CTA (Figma 1853:35839): full-bleed video under a dark scrim, copy
   centred in a 600 column, the arch rising from the bottom-right corner and
   flipped into the top-left. The poster shows until the video plays (and
   instead of it for reduced motion: components/listing-cta.js). */
.hd-grid__cta[data-cta-style="video"] {
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-08);
  isolation: isolate;
  text-align: center;
}

.hd-grid__cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--brand-charcoal);
}

.hd-grid__cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(30, 30, 30, 0.55);
}

.hd-grid__cta-poster,
.hd-grid__cta-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hd-grid__cta-video {
  opacity: 0;
  transition: opacity var(--animation-default);
}

.hd-grid__cta-video.is-playing { opacity: 1; }

.hd-grid__cta[data-cta-style="video"] .hd-grid__cta-body {
  flex: 0 1 auto;
  width: calc(600 * var(--px));
  max-width: 100%;
  align-items: center;
  padding-right: 0;
}

.hd-grid__cta[data-cta-style="video"] .btn-group { justify-content: center; }

.hd-grid__cta[data-cta-style="video"] .hd-grid__cta-arch {
  z-index: 1;
  opacity: 0.7;
}

.hd-grid__cta[data-cta-style="video"] .hd-grid__cta-arch.is-br { bottom: calc(-199 * var(--px)); }

.hd-grid__cta-arch.is-tl {
  top: calc(-199 * var(--px));
  right: auto;
  bottom: auto;
  left: calc(-107 * var(--px));
  transform: rotate(180deg);
}

/* Narrow desktops (992 to 1300; Chris, 7 Oct 2026, was 1260): the bar
   compacts so it stays one line beside the sidebar. The Show me label goes,
   the view toggle drops to its icons (the words stay for screen readers;
   Figma's mobile toggle is the same two 44 icon buttons), type steps down
   to 14 and the selects slim. The View and Sort by labels stay. */
@media screen and (max-width: 1300px) {
  .hd-grid__bar { gap: var(--space-04) var(--space-05); }
  .hd-grid__bar-group { gap: var(--space-05); }

  .hd-grid__bar-group:first-child .hd-grid__control-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hd-grid__bar .hd-toggle { width: auto; }
  .hd-grid__bar .hd-toggle__btn { flex: none; width: calc(44 * var(--px)); padding: 0; }

  .hd-grid__bar .hd-toggle__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hd-grid__control-label { font-size: calc(14 * var(--px)); }

  .hd-select select {
    padding: 0 calc(38 * var(--px)) 0 calc(16 * var(--px));
    font-size: calc(14 * var(--px));
  }

  .hd-select .hd-caret { right: calc(14 * var(--px)); }

  /* A native select sizes to its longest option ("Area (Large -> Small)");
     fixed here, the chosen label ellipses if it is the long one. */
  .hd-grid__bar select[name="sort"] {
    width: calc(140 * var(--px));
    text-overflow: ellipsis;
  }
}

/* Floorplan cards drop to two across before they get cramped. */
@media screen and (max-width: 1199px) {
  .hd-grid[data-view="floorplans"] .hd-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Below 992: the sheet ------------------------------------------- */

@media screen and (max-width: 991px) {
  .section_home-design-grid { padding-top: calc(19 * var(--px)); }

  .hd-grid { display: block; }

  .hd-grid__bar,
  .hd-grid__sidebar [data-hd-face="desktop"] { display: none; }

  .hd-grid__mobilebar {
    display: flex;
    align-items: center;
    gap: calc(10 * var(--px));
    margin-bottom: calc(41 * var(--px));
  }

  .hd-grid__sheet-open {
    display: flex;
    flex: 1 0 0;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-03);
    height: calc(40 * var(--px));
    padding: 0 var(--space-04) 0 var(--space-05);
    border: 1px solid color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
    border-radius: calc(20 * var(--px));
    background-color: var(--brand-charcoal);
    font-family: var(--font-sans);
    font-size: calc(16 * var(--px));
    font-weight: 620;
    color: var(--brand-silver);
    cursor: pointer;
  }

  .hd-grid__sheet-open img { width: calc(20 * var(--px)); height: calc(20 * var(--px)); }
  .hd-grid__sheet-open > span:first-of-type { flex: 1; text-align: center; }

  .hd-grid__count {
    display: inline-grid;
    place-items: center;
    min-width: calc(18 * var(--px));
    height: calc(18 * var(--px));
    border-radius: var(--radius-full);
    background-color: var(--color-accent);
    font-size: calc(11 * var(--px));
    font-weight: 700;
    color: var(--brand-charcoal);
  }

  .hd-grid__count[hidden] { display: none; }

  .hd-toggle.is-compact {
    width: auto;
    padding: calc(4 * var(--px));
    background-color: color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  }

  .hd-toggle.is-compact .hd-toggle__btn { flex: none; padding: 0 var(--space-04); }
  .hd-toggle.is-compact .hd-toggle__btn[aria-pressed="true"] { background-color: #3c3c3c; }

  /* The sidebar becomes a full-screen sheet (the resources listing's too). */
  .hd-grid__sidebar,
  .resource-grid > .resource-grid__sidebar {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background-color: var(--brand-silver);
    visibility: hidden;
    opacity: 0;
    translate: 0 calc(24 * var(--px));
    transition: opacity var(--animation-default-half), translate var(--animation-default-half), visibility 0s linear var(--duration-default-half);
  }

  .hd-grid.is-sheet-open .hd-grid__sidebar,
  .resource-grid.is-sheet-open > .resource-grid__sidebar {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
    transition-delay: 0s;
  }

  .hd-sheet__head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    height: calc(59 * var(--px));
    padding: calc(10 * var(--px)) calc(20 * var(--px));
    background-color: var(--brand-charcoal);
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.08), 0 7px 12px rgba(50, 50, 50, 0.08);
  }

  .hd-sheet__title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: calc(18 * var(--px));
    font-weight: 500;
    line-height: 1;
    color: var(--brand-silver);
  }

  .hd-sheet__close {
    display: grid;
    place-items: center;
    width: calc(24 * var(--px));
    height: calc(24 * var(--px));
    padding: calc(4 * var(--px));
    border: 0;
    background: none;
    color: var(--brand-silver);
    cursor: pointer;
  }

  .hd-sheet__close svg { width: 100%; height: 100%; }

  .hd-sheet__body {
    flex: 1;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .hd-grid__sidebar [data-hd-face="sheet"],
  .resource-grid__sidebar [data-hd-face="sheet"] { display: block; }

  .hd-grid__groups { gap: 0; }

  .hd-group {
    padding: calc(8 * var(--px)) calc(20 * var(--px));
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
    border-radius: 0;
  }

  .hd-group.is-radio { padding-bottom: calc(18 * var(--px)); }

  .hd-group.is-radio .hd-group__title {
    display: flex;
    align-items: center;
    height: calc(40 * var(--px));
    float: left;
    width: 100%;
  }

  .hd-group__title { font-size: calc(16 * var(--px)); }

  /* In the sheet every group is open (Figma 1379:42117): no toggles. */
  .hd-group__head { pointer-events: none; }
  .hd-group__head .hd-caret { display: none; }
  .hd-group__body[hidden] { display: block; }

  /* In the sheet every group sits open and lists its choices in rows. */
  .hd-group__list {
    clear: both;
    flex-direction: row;
    flex-wrap: wrap;
    gap: calc(12 * var(--px)) calc(20 * var(--px));
  }

  .hd-sheet__foot {
    display: flex;
    flex: none;
    align-items: center;
    gap: calc(16 * var(--px));
    padding: calc(12 * var(--px)) calc(15 * var(--px)) calc(12 * var(--px)) calc(20 * var(--px));
    background-color: var(--brand-white);
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.08);
  }

  .hd-sheet__clear {
    flex: 1;
    font-size: calc(16 * var(--px));
    font-weight: 630;
    color: var(--brand-charcoal);
    text-align: center;
    text-decoration: none;
  }

  .hd-sheet__apply {
    flex: 1.7;
    height: calc(40 * var(--px));
    border: 0;
    border-radius: calc(20 * var(--px));
    background-color: var(--color-accent);
    font-family: var(--font-sans);
    font-size: calc(16 * var(--px));
    font-weight: 630;
    color: var(--brand-charcoal);
    cursor: pointer;
  }

  .hd-grid__list,
  .hd-grid[data-view="floorplans"] .hd-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hd-grid__cta { flex-direction: column; align-items: flex-start; gap: var(--space-07); padding: var(--space-07); }
  .hd-grid__cta[data-cta-style="video"] { align-items: center; padding: var(--space-09) var(--space-07); }
  /* A short centred card: full-size arches would cross the copy. */
  .hd-grid__cta[data-cta-style="video"] .hd-grid__cta-arch { width: calc(160 * var(--px)); }
  .hd-grid__cta[data-cta-style="video"] .hd-grid__cta-arch.is-br { right: calc(-62 * var(--px)); bottom: calc(-116 * var(--px)); }
  .hd-grid__cta[data-cta-style="video"] .hd-grid__cta-arch.is-tl { left: calc(-62 * var(--px)); top: calc(-116 * var(--px)); }
  .hd-grid__cta-media { width: 100%; }
  .hd-grid__cta-body { padding-right: 0; }
}

@media screen and (max-width: 767px) {
  .hd-grid__list,
  .hd-grid[data-view="floorplans"] .hd-grid__list {
    grid-template-columns: minmax(0, 1fr);
    gap: calc(12 * var(--px));
  }
}

html.is-hd-sheet-open { overflow: hidden; }

/* Small CTA strip (Figma card-ctaStrip-s, Group homepage 2235:112815): one
   line and its button centred on a silver card, 155 tall. blocks/cta_strip. */
.cta-strip-s {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-06) var(--space-08);
  min-height: calc(155 * var(--px));
  padding: var(--space-07);
  border-radius: var(--radius-m);
  background-color: var(--brand-silver);
  color: var(--color-text-dark);
  text-align: center;
}
.cta-strip-s__title { margin: 0; }
.cta-strip-s .btn { --btn-bg: var(--brand-charcoal); --btn-ink: var(--color-text-light); --btn-bg-hover: var(--brand-dark-charcoal); --btn-ink-hover: var(--color-text-light); }

/* Phones: no arch over the strip, it crossed the copy (Kellie, review board
   First Home Buyers 4; Chris 18 Nov 2026). */
@media screen and (max-width: 767px) {
  /* !important: the arch SVG carries an inline display from its markup. */
  .hd-grid__cta-arch { display: none !important; }
}


/* --- css/sections/home-design-range.css --- */
/* sections/home-design-range.css — blocks/home_design_range (Figma
   "Featured Dual Key Designs" 1553:58403): heading, then the listing's
   design cards two to a row, 24 apart, Load more centred 48 below. */

.design-range__title {
  margin: 0 0 var(--space-09);
  text-box: trim-both cap alphabetic;
}

.design-range__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-06);
  margin: 0;
  padding: 0;
  list-style: none;
}

.design-range__item[hidden] { display: none; }

.design-range__item > .card { height: 100%; }

.design-range__more {
  display: flex;
  justify-content: center;
  padding-top: var(--space-08);
}

@media screen and (max-width: 767px) {
  .design-range__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-04); }
  .design-range__title { margin-bottom: var(--space-07); }
}


/* --- css/sections/package-map.css --- */
/* sections/package-map.css — the House & Land map above the listing grid
   (Figma "H&L PERTH Listing - V2 - Map View ON" 1885:35794: map 1886:59846,
   pins 1887:31579 single / 1887:31569 cluster, Hide Map in the bar
   1885:35821). Map styling is "TBC" in Figma; until then the base is Mapbox
   Standard in monochrome (components/package-map.js).

   .pkg-map > __canvas        the Mapbox container
   .pkg-pin[.is-cluster]      HTML markers. Mapbox positions the marker root
     > __body > __icon        with transform, so never set position or
                              transform on .pkg-pin; animate __body instead
   .pkg-popup                 Mapbox popup skin: a card, or a list when
                              several packages share one spot
   .pkg-map-toggle            Hide / Show Map in the listing bar
   .pkg-pin.is-lit            the pin (or cluster) of the card under the pointer
   .card.is-map-lit           the card(s) of the pin under the pointer / open
   .card__map                 "Show on map" on a package card
   .hd-toggle.is-map-mode     List / Map for the "toggle" layout

   Layouts (form[data-map-layout], the block's Map layout; desktop only,
   phones keep the map above unless the layout is "toggle"):
     above   map over the cards (the default, as built)
     side    three columns: filters, ONE column of cards, the map sticky on
             the right under the nav. Hide Map gives the cards the width back
     toggle  the cards or a tall map, never both (List / Map) */

.pkg-map {
  margin-bottom: var(--space-06);
  border-radius: var(--radius-m);
  overflow: hidden;
  background-color: color-mix(in srgb, var(--brand-charcoal) 6%, transparent);
}

.pkg-map[hidden] { display: none; }

.pkg-map__canvas {
  width: 100%;
  height: min(570px, 70svh);
  min-height: 320px;
}

/* ---- Pins ----------------------------------------------------------- */

.pkg-pin {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.pkg-pin__body {
  display: grid;
  place-items: center;
  width: calc(46 * var(--px));
  height: calc(46 * var(--px));
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px 999px var(--radius-s) var(--radius-s);
  background-color: var(--color-accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform var(--animation-default-half, 0.2s) ease;
}

.pkg-pin__icon {
  width: 45%;
  height: 45%;
  background-color: var(--brand-charcoal);
  mask: url('../img/icons/house-fill.svg') center / contain no-repeat;
}

.pkg-pin.is-cluster .pkg-pin__body {
  width: calc(50 * var(--px));
  height: calc(50 * var(--px));
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 45%, white), 0 2px 6px rgba(0, 0, 0, 0.18);
  font-family: var(--font-sans);
  font-size: calc(16 * var(--px));
  font-weight: 630;
  line-height: 1;
  color: var(--brand-charcoal);
}

.pkg-pin:hover .pkg-pin__body { transform: scale(1.08); }
.pkg-pin:focus-visible { outline: none; }
.pkg-pin:focus-visible .pkg-pin__body { outline: 2px solid var(--brand-charcoal); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .pkg-pin__body { transition: none; }
  .pkg-pin:hover .pkg-pin__body { transform: none; }
}

/* Lit from the list: charcoal with an accent house, lifted over its
   neighbours. z-index only: Mapbox owns the marker's position. */
.pkg-pin.is-lit { z-index: 2; }
.pkg-pin.is-lit .pkg-pin__body { background-color: var(--brand-charcoal); color: var(--brand-white); transform: scale(1.15); }
.pkg-pin.is-lit .pkg-pin__icon { background-color: var(--color-accent); }
.pkg-pin.is-cluster.is-lit .pkg-pin__body { box-shadow: 0 0 0 3px var(--color-accent-line), 0 2px 6px rgba(0, 0, 0, 0.18); }

/* ---- Map and list ---------------------------------------------------- */

.card.is-hl.is-map-lit { box-shadow: 0 0 0 2px var(--color-accent-line), 0 6px 16px rgba(0, 0, 0, 0.08); }

.card.is-design .card__map {
  position: absolute;
  right: calc(var(--space-04) + 32 * var(--px) + var(--space-03));
  bottom: var(--space-04);
  z-index: 3;
  display: grid;
  place-items: center;
  width: calc(32 * var(--px));
  height: calc(32 * var(--px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background-color: var(--brand-silver);
  color: var(--brand-charcoal);
  cursor: pointer;
  transition: background-color var(--animation-default-half);
}

.card.is-design .card__media:not(:has(.card__peek)) .card__map { right: var(--space-04); }
.card.is-design .card__map:hover,
.card.is-design .card__map:focus-visible { background-color: var(--color-accent); outline: none; }

.card__map-icon {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
  background-color: currentColor;
  /* The trifold's own 24 box carries a 3px margin: drawn full size it matches the floorplan glyph (Figma card-houseAndLand 2465:81788). */
  mask: url('../img/icons/map-trifold.svg') center / 100% no-repeat;
}

/* ---- Popup ---------------------------------------------------------- */

.pkg-popup .mapboxgl-popup-content {
  width: 280px;
  max-width: calc(100vw - 48px);
  padding: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  font-family: var(--font-sans);
  color: var(--brand-charcoal);
}

.pkg-popup .mapboxgl-popup-close-button {
  top: var(--space-02);
  right: var(--space-02);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1;
  color: var(--brand-charcoal);
}

.pkg-popup__card,
.pkg-popup__row {
  display: block;
  color: inherit;
  text-decoration: none;
}

.pkg-popup__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.pkg-popup__body,
.pkg-popup__row-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-01);
}

.pkg-popup__body { padding: var(--space-04) var(--space-05) var(--space-05); }

.pkg-popup__name {
  font-size: 17px;
  font-weight: 630;
  line-height: 1.2;
}

.pkg-popup__price { font-size: 15px; font-weight: 500; }

.pkg-popup__specs,
.pkg-popup__note { font-size: 13px; opacity: 0.7; }

.pkg-popup__cta {
  margin-top: var(--space-02);
  font-size: 14px;
  font-weight: 630;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pkg-popup__card:hover .pkg-popup__cta { text-decoration-thickness: 2px; }

.pkg-popup__list {
  max-height: 320px;
  overflow-y: auto;
  padding: var(--space-04);
}

.pkg-popup__heading {
  margin: 0 var(--space-06) var(--space-03) 0;
  font-size: 15px;
  font-weight: 630;
}

.pkg-popup__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-03);
  padding: var(--space-02);
  border-radius: var(--radius-s);
}

.pkg-popup__row:hover { background-color: color-mix(in srgb, var(--brand-charcoal) 5%, transparent); }

.pkg-popup__row .pkg-popup__name { font-size: 15px; }
.pkg-popup__row .pkg-popup__price { font-size: 13px; }

.pkg-popup__thumb {
  width: 64px;
  height: 44px;
  border-radius: calc(var(--radius-s) / 2);
  object-fit: cover;
}

/* ---- Hide / Show Map ------------------------------------------------- */

.pkg-map-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-03);
  height: calc(40 * var(--px));
  min-height: 36px;
  padding: 0 var(--space-06);
  border: 0;
  border-radius: calc(66 * var(--px));
  background-color: var(--brand-charcoal);
  font-family: var(--font-sans);
  font-size: calc(16 * var(--px));
  font-weight: 630;
  line-height: 1;
  color: var(--color-text-light);
  filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, 0.2));
  cursor: pointer;
}

/* Hide Map plus the package count would push the full bar 2px past one line
   at 1301-1302; a tighter gap inside that group keeps it whole. */
.hd-grid__bar-group:has(> .pkg-map-toggle) { gap: var(--space-05); }

.pkg-map-toggle__icon {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
  flex: none;
  background-color: currentColor;
  mask: url('../img/icons/map-trifold.svg') center / 90% no-repeat;
}

/* ---- List / Map (toggle layout) -------------------------------------- */

.hd-toggle.is-map-mode { width: auto; }
.hd-toggle.is-map-mode .hd-toggle__btn { padding-inline: var(--space-05); }
.hd-toggle__icon.is-list { mask-image: url('../img/icons/more-squares.svg'); }
.hd-toggle__icon.is-map { mask-image: url('../img/icons/map-trifold.svg'); }

.hd-grid[data-map-layout="toggle"][data-map-shown="true"] .hd-grid__results { display: none; }
.hd-grid[data-map-layout="toggle"] .pkg-map { margin-bottom: 0; }
.hd-grid[data-map-layout="toggle"] .pkg-map__canvas {
  height: calc(100svh - var(--nav-height, 100px) - calc(140 * var(--px)));
  min-height: 480px;
}

/* ---- Map beside the cards (side layout) ------------------------------ */

@media (min-width: 1200px) {
  .hd-grid[data-map-layout="side"][data-map-shown="true"] .hd-grid__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    column-gap: calc(35 * var(--px));
    align-items: start;
  }

  .hd-grid[data-map-layout="side"][data-map-shown="true"] .hd-grid__main > * { grid-column: 1; }
  .hd-grid[data-map-layout="side"][data-map-shown="true"] .hd-grid__bar { grid-column: 1 / -1; }

  /* It only sticks once the page has scrolled, when the bar is always the
     compact 80 (core/nav.css sets that height on the nav, not on :root). */
  .hd-grid[data-map-layout="side"][data-map-shown="true"] .pkg-map {
    position: sticky;
    top: calc(80 * var(--px) + var(--space-05) + var(--admin-bar));
    grid-column: 2;
    grid-row: 2 / span 2;
    margin-bottom: 0;
  }

  .hd-grid[data-map-layout="side"][data-map-shown="true"] .pkg-map__canvas {
    height: calc(100svh - 80 * var(--px) - 2 * var(--space-05) - var(--admin-bar));
    min-height: 420px;
  }

  .hd-grid[data-map-layout="side"][data-map-shown="true"] .hd-grid__results { grid-row: 2; }

  .hd-grid[data-map-layout="side"][data-map-shown="true"] .hd-grid__list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 991px) {
  .pkg-map__canvas { height: min(460px, 60svh); }
  .hd-grid[data-map-layout="toggle"] .pkg-map__canvas { height: calc(100svh - var(--nav-height, 60px) - 120px); min-height: 360px; }
}

@media (max-width: 767px) {
  .pkg-map__canvas { height: min(400px, 60svh); min-height: 300px; }
}


/* --- css/sections/form-split.css --- */
/* sections/form-split.css — blocks/form_split (Figma webformBlock
   1575:121812): intro + checklist left, the form panel right, on one accent
   card. The fields themselves are components/gravity-forms.css. */

.section_form-split {
  padding-block: 0 var(--padding-block);
}

/* The card is inset 24 from the viewport like the floorplan and hub cards
   (Figma formBlock 1724:80577: x 24, w 1552, padding 48), not held to the
   80 container; its text then sits 48 + 35 in. */
.form-split__frame {
  max-width: var(--size-container);
  margin-inline: auto;
  padding-inline: calc(24 * var(--px));
}

.form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  padding-inline: var(--space-08);
  border-radius: var(--radius-l);
  background-color: var(--color-accent);
  color: var(--color-text-dark);
}

.form-split__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-09);
  min-width: 0;
  padding: var(--space-12) var(--space-09) var(--space-12) var(--space-07b);
}

.form-split__title {
  margin: 0;
  text-box: trim-both cap alphabetic;
}

.form-split__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-07);
  padding-right: var(--space-09);
}

.form-split__text p { margin: 0; }
.form-split__text > :is(p, ul, ol) + :is(p, ul, ol) { margin-top: var(--space-04); }
.form-split__text strong { font-weight: 750; }

.form-split__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-04);
  margin: 0;
  padding: 0;
  list-style: none;
}

.form-split__point {
  display: flex;
  align-items: center;
  gap: var(--space-04);
}

.form-split__point img {
  flex: none;
  width: calc(28 * var(--px));
  height: calc(28 * var(--px));
}

/* "Ready to chat?" + a call button on a lighter accent pill (Figma 1843:26398). */
.form-split__chat {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: flex-start;
  gap: var(--space-05);
  padding: calc(20 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--color-accent-tint-2);
}

.form-split__chat-text {
  font-size: calc(17 * var(--px));
  line-height: 1;
  font-weight: 630;
}

.form-split__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-block: var(--space-09);
}

/* A fixed height on desktop so moving between the form's steps never
   resizes the card (Figma formContainer 592). */
.form-split__panel {
  min-height: calc(592 * var(--px));
  padding: calc(40 * var(--px)) var(--space-07) var(--space-07);
  border: 4px solid var(--brand-white);
  border-radius: var(--radius-m);
  background-color: var(--color-accent-tint-3);
  filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, 0.12)) drop-shadow(0 10px 7.5px rgba(0, 0, 0, 0.1));
}

/* A form whose later steps open in a popup only ever shows step 1 here,
   so the card fits its content. */
.form-split__panel:has([data-gf-popup-steps]) { min-height: 0; }

.form-split__missing { margin: 0; }

/* Optional panel heading (Figma Home Designs - Detail 2, 1724:80576). */
.form-split__heading {
  margin: 0 0 var(--space-08);
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
  font-weight: 400;
  text-box: trim-both cap alphabetic;
}

@media screen and (max-width: 991px) {
  .form-split {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0;
  }

  .form-split__intro { padding: var(--space-10) var(--space-08) var(--space-08); }
  .form-split__form { padding: 0 var(--space-08) var(--space-08); }
  .form-split__panel { min-height: 0; }
}

@media screen and (max-width: 767px) {
  .form-split__frame { padding-inline: var(--container-padding); }

  .form-split__intro { gap: var(--space-07); padding: var(--space-08) var(--space-06) var(--space-07); }
  .form-split__body { padding-right: 0; }
  .form-split__form { padding: 0 var(--space-04) var(--space-04); }
  .form-split__panel { padding: var(--space-06); }
}

/* Last block on the page: the card keeps its side inset below it too, so it
   reads as a card and the footer's rounded edge takes the page colour, not the
   card's (Chris, 18 Nov 2026; was flush to the footer). */
.section_form-split:last-child { padding-bottom: calc(24 * var(--px)); }

/* Group: the form card is charcoal, not the (silver) accent (Figma GROUP -
   Careers "Form Block - Group - Career EOI" 2266:169090). */
:root[data-brand="group"] .form-split:not(.form-popup__split) {
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
}


/* --- css/sections/rent-calculator.css --- */
/* sections/rent-calculator.css — blocks/rent_calculator. Intro left, a quarter
   dial right on one accent card (the live site's #calculator band, in the
   form_split card language). The dial is an svg scaled by its viewBox, so it
   needs no resize handling. Result replaces the dial in the same column. */

.rent-calc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--space-09);
  padding: var(--space-11) var(--space-10);
  border-radius: var(--radius-l);
  background-color: var(--color-accent);
  color: var(--color-text-dark);
}

.rent-calc__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-08);
  min-width: 0;
}

.rent-calc__intro .block-intro { margin-bottom: 0; padding-inline: 0; }
.rent-calc__intro .block-intro__main { padding-right: 0; }

.rent-calc__question,
.rent-calc__text { margin: 0; max-width: calc(520 * var(--px)); }

.rent-calc__stage { min-width: 0; }

.rent-calc__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-08);
  text-align: center;
}

.rent-calc__panel[hidden] { display: none; }

.rent-calc__dial {
  position: relative;
  width: 100%;
  max-width: calc(600 * var(--px));
}

.rent-calc__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: pan-y;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.rent-calc__track,
.rent-calc__fill { stroke-linecap: butt; }

.rent-calc__fill { stroke-width: 6; }

.rent-calc__track {
  stroke-width: 4;
  stroke: color-mix(in srgb, var(--color-text-dark) 40%, transparent);
  stroke-dasharray: 0.014 0.014;
}

.rent-calc__fill { stroke: var(--color-text-dark); }

.rent-calc__handle {
  cursor: grab;
  outline: none;
  filter: drop-shadow(0 3px 4px rgb(0 0 0 / 25%));
}

.rent-calc__knob { fill: var(--color-text-dark); }

.rent-calc__ring {
  fill: none;
  stroke: var(--color-text-dark);
  stroke-width: 3;
  opacity: 0;
}

.rent-calc__handle:focus-visible .rent-calc__ring { opacity: 1; }

.rent-calc__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-top: var(--space-03);
  line-height: 1;
}

.rent-calc__input {
  width: 4.2ch;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  appearance: none;
  -moz-appearance: textfield;
}

.rent-calc__input:hover { border-bottom-color: color-mix(in srgb, var(--color-text-dark) 35%, transparent); }
.rent-calc__input:focus-visible { outline: none; border-bottom-color: var(--color-text-dark); }

.rent-calc__hint {
  display: block;
  margin-top: var(--space-04);
  font-size: calc(14 * var(--px));
  line-height: 1.3;
  color: var(--color-text-dark-secondary);
}

.rent-calc__panel--result { gap: var(--space-05); }

.rent-calc__lead,
.rent-calc__total,
.rent-calc__comment { margin: 0; }

.rent-calc__total { margin-bottom: var(--space-02); }
.rent-calc__comment { max-width: calc(480 * var(--px)); margin-top: var(--space-04); }

.rent-calc__back {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.rent-calc__back:hover { text-decoration-thickness: 2px; }
.rent-calc__back:focus-visible { outline: 2px solid var(--color-text-dark); outline-offset: 4px; border-radius: var(--radius-xs); }

@media (prefers-reduced-motion: no-preference) {
  .rent-calc__fill { transition: stroke-dasharray 0.12s linear; }
  .rent-calc.is-switched .rent-calc__panel:not([hidden]) { animation: rent-calc-in var(--animation-default-onehalf) both; }
}

@keyframes rent-calc-in {
  from { opacity: 0; transform: translateY(calc(12 * var(--px))); }
  to   { opacity: 1; transform: none; }
}

@media screen and (max-width: 991px) {
  .rent-calc {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-08);
    padding: var(--space-10) var(--space-08);
  }

  .rent-calc__question,
  .rent-calc__text { max-width: none; }
}

@media screen and (max-width: 767px) {
  .rent-calc { padding: var(--space-08) var(--space-06); }
}


/* --- css/sections/design-quiz.css --- */
/* sections/design-quiz.css — blocks/design_quiz, the Home Design Quiz
   (Figma "QUIZ - Home Designs" 1087:33069). One tint card 24 in from the
   page edges: body (tint, rounded bottom) over the accent footer bar. The
   root's data-step (start | 1..8 | finale | results) drives the layout.

   The Depth Tiles gallery (components/depth-tiles.js) takes its tile size
   from the slot it sits in: 600 wide on the start screen (cut off by the
   card's bottom edge), 180 beside a question. Tiles are 3:2.

   The steps and the finale run in a full-screen popup (Step 2 / Step 5
   UPDATED 2474:67475, 2474:67657): the same card goes fixed, 24 in from the
   screen edges over a blurred scrim, while the root carries data-open. */

.section_design-quiz {
  padding: var(--space-06);
}

.design-quiz {
  --quiz-w: calc(1196 * var(--px));
}

/* ---- Card ----------------------------------------------------------------- */

.design-quiz__card {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--nav-offset, 0px) - var(--admin-bar, 0px) - 2 * var(--space-06));
  border-radius: var(--radius-m);
  overflow: clip;
  background-color: var(--color-accent);
  color: var(--brand-charcoal);
}

.design-quiz__card[hidden] { display: none; }

/* Start screen: at least the window, and taller when the window is short so
   the whole gallery shows (Chris, 24 Nov). */
.design-quiz[data-step="start"] .design-quiz__card {
  min-height: max(calc(560 * var(--px)), calc(100svh - var(--nav-offset, 0px) - var(--admin-bar, 0px) - 2 * var(--space-06)));
}

/* ---- Popup ---------------------------------------------------------------- */

.design-quiz[data-open]::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: color-mix(in srgb, var(--brand-charcoal) 60%, transparent);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.design-quiz[data-open] .design-quiz__card {
  position: fixed;
  inset: var(--space-06);
  z-index: 1001;
  min-height: 0;
}

.design-quiz[data-open] .design-quiz__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

html.is-quiz-open { overflow: hidden; }

.design-quiz__exit {
  position: absolute;
  top: calc(28 * var(--px));
  right: calc(32 * var(--px));
  z-index: 3;
  padding: 0;
  border: 0;
  background: none;
  color: color-mix(in srgb, var(--brand-charcoal) 85%, transparent);
  font-size: calc(15 * var(--px));
  font-weight: 500;
  line-height: calc(22 * var(--px));
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.design-quiz__exit:hover { color: var(--brand-charcoal); }
.design-quiz__exit[hidden] { display: none; }

.design-quiz__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  background-color: var(--color-accent-tint-3);
}

.design-quiz__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-03);
  margin: 0;
  text-transform: uppercase;
}

/* The brand's tiny shape before the label (Homes: the arch). */
.design-quiz__label::before {
  content: '';
  flex: none;
  width: calc(10 * var(--px));
  height: calc(10 * var(--px));
  border-radius: var(--brand-shape-tiny-radius);
  -webkit-mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  background-color: currentColor;
}

/* ---- Start screen (2286:54243) --------------------------------------------- */

.design-quiz__start,
.design-quiz__finale {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, calc(1100 * var(--px)));
  margin-inline: auto;
  padding: calc(104 * var(--px)) var(--space-06) var(--space-09);
  text-align: center;
}

.design-quiz__start { padding-top: clamp(var(--space-08), 9svh, calc(104 * var(--px))); }

/* Prompt and Start button share one accent bar under the intro
   (Monique, Figma 2582:186368, 17 Nov 2026). */
.design-quiz__start-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(16 * var(--px));
  margin-top: var(--space-08);
  padding: calc(20 * var(--px)) calc(24 * var(--px)) calc(20 * var(--px)) calc(36 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--color-accent);
}

.design-quiz__start-prompt {
  margin: 0;
  font-size: calc(17 * var(--px));
  line-height: 1.2;
  font-weight: 600;
}

@media screen and (max-width: 767px) {
  .design-quiz__start-bar {
    flex-direction: column;
    width: 100%;
    padding: calc(20 * var(--px));
  }
  .design-quiz__start-bar .btn { width: 100%; }
}

.design-quiz__start[hidden],
.design-quiz__finale[hidden] { display: none; }

.design-quiz__title {
  margin: var(--space-08) 0 0;
  text-wrap: balance;
}

.design-quiz__title em { font-style: italic; }

/* The start title is a raw 92/101 in the frame (between display-xxl and -xxxl). */
@media (min-width: 768px) {
  .design-quiz__start .design-quiz__title {
    font-size: calc(92 * var(--px));
    line-height: calc(101 * var(--px));
    letter-spacing: calc(-2.5 * var(--px));
  }
}

.design-quiz__intro {
  max-width: calc(972 * var(--px));
  margin: var(--space-09) 0 0;
  color: color-mix(in srgb, currentColor 85%, transparent);
}

/* ---- Gallery slots ------------------------------------------------------------ */

.design-quiz__stage {
  --tile-w: calc(600 * var(--px));
  --tile-r: calc(14 * var(--px));
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: var(--space-11);
}

.design-quiz:not([data-step="start"], [data-step="finale"]) .design-quiz__stage { display: none; }

.design-quiz[data-step="finale"] .design-quiz__stage {
  flex: 1 0 auto;
  align-items: center;
  min-height: calc(var(--tile-w) * 0.667 + 2 * var(--space-10));
}

.design-quiz__mini {
  --tile-w: calc(180 * var(--px));
  --tile-r: calc(4 * var(--px));
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  width: calc(309 * var(--px));
  height: calc(var(--tile-w) * 0.667);
}

.depth-tiles__list {
  display: grid;
  place-items: center;
}

.depth-tiles__item {
  grid-area: 1 / 1;
  will-change: transform, filter;
}

.depth-tiles__card {
  position: relative;
  width: var(--tile-w);
  aspect-ratio: 3 / 2;
  border-radius: var(--tile-r);
  overflow: hidden;
  background-color: var(--color-accent-tint-1);
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.05), 0 3px 4px rgba(0, 0, 0, 0.08), 0 7px 12px rgba(50, 50, 50, 0.08);
}

.depth-tiles__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A tile in flight from the gallery to its result card. */
.design-quiz__flyer {
  position: fixed;
  z-index: 1001;
  margin: 0;
  aspect-ratio: auto;
  border-radius: var(--radius-m);
  pointer-events: none;
}

/* ---- Steps (2286:51242 to 2302:104298) ---------------------------------------- */

.design-quiz__steps {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

.design-quiz__steps[hidden] { display: none; }

.design-quiz__head {
  display: flex;
  align-items: flex-start;
  gap: calc(25 * var(--px));
  width: min(100%, var(--quiz-w));
  min-height: calc(256 * var(--px));
  margin-inline: auto;
  padding: var(--space-11) 0 var(--space-08);
}

.design-quiz__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-07);
  min-width: 0;
}

.design-quiz__question {
  max-width: calc(865 * var(--px));
  margin: 0;
  outline: none;
}

.design-quiz__help { margin: 0; }
.design-quiz__help[hidden] { display: none; }

.design-quiz__form {
  flex: 1 0 auto;
  width: min(100%, var(--quiz-w));
  margin-inline: auto;
  padding-bottom: var(--space-11);
}

.design-quiz__step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.design-quiz__step[hidden] { display: none; }

.design-quiz__fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-06);
}

.design-quiz__fields > * { grid-column: span 6; }
.design-quiz__fields > .quiz-choices,
.design-quiz__fields > .quiz-field__note { grid-column: 1 / -1; }
.design-quiz__fields > .quiz-field.is-wide { grid-column: span 8; }

.design-quiz__error {
  margin: var(--space-06) 0 0;
  color: var(--brand-charcoal);
  font-weight: 700;
}

.design-quiz__error[hidden] { display: none; }

/* Text fields (Figma text-field/design) */
.quiz-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-05);
}

.quiz-field__label {
  font-size: calc(17 * var(--px));
  font-weight: 700;
  line-height: 1.47;
}

.quiz-field__input {
  width: 100%;
  min-height: calc(50 * var(--px));
  padding: calc(14 * var(--px)) var(--space-05);
  border: 0;
  border-radius: var(--radius-s);
  background-color: var(--brand-white);
  color: var(--brand-charcoal);
  font: inherit;
  font-size: calc(16 * var(--px));
  font-weight: 630;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow var(--animation-default-half);
}

textarea.quiz-field__input {
  min-height: calc(220 * var(--px));
  resize: vertical;
}

.quiz-field__input::placeholder { color: color-mix(in srgb, var(--brand-charcoal) 55%, transparent); }
.quiz-field__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--color-accent); }
.quiz-field__input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--brand-charcoal); }

.quiz-field.is-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quiz-field__note { margin: 0; }
.quiz-field__note a { color: inherit; }

/* Choice cards (Figma quiz-choiceCard, /img variant 2302:103712) */
.quiz-choices {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-05);
}

.quiz-choices[hidden] { display: none; }
.quiz-choices[data-cols="3"] > * { grid-column: span 4; }
.quiz-choices[data-cols="4"] > * { grid-column: span 3; }
.quiz-choices[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.quiz-choices[data-cols="5"] > * { grid-column: auto; }

.quiz-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-05b);
  min-height: calc(180 * var(--px));
  padding: var(--space-06);
  border-radius: var(--radius-m);
  background-color: color-mix(in srgb, var(--color-accent) 60%, transparent);
  color: var(--brand-charcoal);
  font-size: calc(23 * var(--px));
  font-weight: 600;
  line-height: calc(28 * var(--px));
  letter-spacing: -0.025px;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--animation-default-half), box-shadow var(--animation-default-half);
}

.quiz-choice[data-media="image"] {
  justify-content: flex-start;
  gap: 0;
  min-height: 0;
  padding: 0 var(--space-03) var(--space-03);
}

.quiz-choice__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 271 / 159;
  border-radius: calc(10 * var(--px));
  overflow: hidden;
  background-color: var(--color-accent-tint-1);
}

.quiz-choice__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-choice[data-media="image"] .quiz-choice__label {
  padding: var(--space-05) var(--space-05) calc(14 * var(--px));
  font-size: calc(17 * var(--px));
  line-height: calc(25 * var(--px));
}

.quiz-choice__icon {
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
}

.quiz-choice__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-choice__check {
  position: absolute;
  top: calc(10 * var(--px));
  right: calc(10 * var(--px));
  z-index: 1;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  opacity: 0;
  scale: 0.6;
  transition: opacity var(--animation-default-half), scale var(--animation-default-half);
}

/* Hover (quiz-choiceCard-hover) and selected (quiz-choiceCard-selected) */
.quiz-choice:hover,
.quiz-choice:has(:checked) {
  background-color: var(--brand-white);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.03), 0 0 3px rgba(0, 0, 0, 0.12), inset 0 0 0 2px var(--color-accent);
}

.quiz-choice:has(:checked) { box-shadow: 0 3px 4px rgba(0, 0, 0, 0.03), 0 0 3px rgba(0, 0, 0, 0.12), inset 0 0 0 2px var(--brand-charcoal); }
.quiz-choice:has(:checked) .quiz-choice__check { opacity: 1; scale: 1; }
.quiz-choice:has(:focus-visible) { outline: 2px solid var(--brand-charcoal); outline-offset: 3px; }

/* ---- Footer bar (quizFooter) ----------------------------------------------------- */

/* Sticky to the bottom of the screen while the card is taller than it (the
   start frame shows the bar over the gallery); at rest it ends the card.
   The tint lip along its top is the body's rounded bottom edge. */
.design-quiz__bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: calc(114 * var(--px));
  padding: calc(var(--radius-m) + var(--space-06)) calc(35 * var(--px)) var(--space-06);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  background-color: var(--color-accent);
  box-shadow: 0 -7px 12px rgba(50, 50, 50, 0.06), 0 -1px 2px rgba(0, 0, 0, 0.04);
}

.design-quiz[data-step="start"] .design-quiz__bar { display: none; }

.design-quiz__bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--radius-m);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  background-color: var(--color-accent-tint-3);
}

.design-quiz[data-step="finale"] .design-quiz__bar { display: none; }

.design-quiz__bar-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-06);
  width: min(100%, var(--quiz-w));
}

.design-quiz__bar-steps[hidden] { display: none; }

.design-quiz__bar-steps .btn { min-width: calc(120 * var(--px)); }

.design-quiz__next {
  gap: var(--space-04);
  min-width: calc(150 * var(--px)) !important;
}

.design-quiz__next:disabled { opacity: 0.6; cursor: progress; }

.design-quiz__arrow {
  width: calc(22 * var(--px));
  height: calc(22 * var(--px));
  margin-top: calc(-3 * var(--px));
}

.design-quiz__progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-04);
  width: calc(200 * var(--px));
}

.design-quiz__progress p { margin: 0; }

.design-quiz__track {
  display: flex;
  width: 100%;
  height: calc(6 * var(--px));
  border-radius: calc(3 * var(--px));
  overflow: hidden;
}

.design-quiz__seg {
  flex: 1;
  background-color: color-mix(in srgb, var(--brand-charcoal) 15%, transparent);
  transition: background-color var(--animation-default);
}

.design-quiz__seg.is-done { background-color: color-mix(in srgb, var(--brand-charcoal) 90%, transparent); }

/* ---- Results (2304:143554) ---------------------------------------------------------- */

.design-quiz__results {
  padding: var(--space-11) 0 var(--padding-block);
}

.design-quiz__results[hidden] { display: none; }

.design-quiz__results .block-intro__title { outline: none; }

.design-quiz__summary {
  max-width: calc(760 * var(--px));
  margin-inline: auto;
}

.design-quiz__list { margin-top: var(--space-08); }

/* House & Land Quiz results (Figma 2582:182229): the photo package card,
   two across, one on phones. */
.design-quiz__list.is-packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-06);
}

/* card-carousel.css sizes .card.is-package as a slide; here the grid does. */
.design-quiz__list.is-packages .card.is-package {
  flex: none;
  width: 100%;
}

.design-quiz__list[hidden] { display: none; }

@media (max-width: 767px) {
  .design-quiz__list.is-packages { grid-template-columns: minmax(0, 1fr); gap: var(--space-05); }
}

/* The peek popup needs the listing's script; the card links to the design. */
.design-quiz__list .card.is-design .card__peek,
.design-quiz__list .card.is-design + .card__popup,
.design-quiz__list .card__popup { display: none; }

.design-quiz__help-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-07);
  margin-top: var(--padding-block);
  padding: calc(140 * var(--px)) var(--space-10);
  border-radius: var(--radius-m);
  background-color: var(--color-accent-tint-2);
  text-align: center;
}

.design-quiz__help-card h2,
.design-quiz__help-card p { max-width: calc(900 * var(--px)); margin: 0; }
.design-quiz__help-card em { font-style: italic; }
.design-quiz__help-card .btn-group { justify-content: center; }

/* ---- Tablet + mobile ------------------------------------------------------------- */

@media (max-width: 991px) {
  .quiz-choices[data-cols="4"] > * { grid-column: span 4; }
  .quiz-choices[data-cols="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .design-quiz__fields > .quiz-field.is-wide { grid-column: 1 / -1; }
  .design-quiz__mini { width: auto; }
}

@media (max-width: 767px) {
  .section_design-quiz { padding: calc(15 * var(--px)); }

  .design-quiz__card { min-height: calc(100svh - var(--nav-offset, 0px) - var(--admin-bar, 0px) - 30px); }
  .design-quiz[data-step="start"] .design-quiz__card { min-height: calc(100svh - var(--nav-offset, 0px) - var(--admin-bar, 0px) - 30px); }

  .design-quiz[data-open] .design-quiz__card { inset: 0; border-radius: 0; }
  .design-quiz[data-open] .design-quiz__bar { border-radius: 0; }

  .design-quiz__exit { top: var(--space-05); right: var(--space-05); }

  .design-quiz__start,
  .design-quiz__finale { padding: var(--space-10) var(--space-05) var(--space-07); }

  .design-quiz__stage { --tile-w: calc(250 * var(--px)); --tile-r: calc(10 * var(--px)); }

  .design-quiz__head {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: var(--space-06);
    min-height: 0;
    padding: calc(56 * var(--px)) var(--space-05) var(--space-07);
  }

  .design-quiz__mini { --tile-w: calc(110 * var(--px)); align-self: center; }

  .design-quiz__form { padding: 0 var(--space-05) var(--space-08); }

  .design-quiz__fields > *,
  .design-quiz__fields > .quiz-field.is-wide { grid-column: 1 / -1; }

  .quiz-choices { gap: var(--space-04); }
  .quiz-choices[data-cols] > * { grid-column: span 6; }
  .quiz-choices[data-cols="5"] { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .quiz-choice {
    min-height: calc(110 * var(--px));
    padding: var(--space-05);
    font-size: calc(17 * var(--px));
    line-height: calc(22 * var(--px));
  }

  .quiz-choice[data-media="image"] .quiz-choice__label { padding: var(--space-04) var(--space-03); font-size: calc(15 * var(--px)); line-height: calc(20 * var(--px)); }
  .quiz-choice__icon { width: calc(32 * var(--px)); height: calc(32 * var(--px)); }

  .design-quiz__bar { min-height: 0; padding: calc(var(--radius-m) + var(--space-05)) var(--space-05) var(--space-05); }
  .design-quiz__bar-steps { gap: var(--space-04); }
  .design-quiz__bar-steps .btn { min-width: 0; }
  .design-quiz__next { min-width: 0 !important; }
  .design-quiz__progress { width: calc(110 * var(--px)); }

  .design-quiz__help-card { padding: var(--space-10) var(--space-05); }
}


/* --- css/sections/team-cards.css --- */
/* sections/team-cards.css — team CPT cards on .dc-cols, bio in the shared
   modal. Markup: blocks/team_cards/render.php
     section_team-cards > .container
       > .dc-cols.team-cards__cols > .dc-col.team-card
         > .team-card__open (stretch button when a bio exists)
     + .modal group with a card per member. */

.team-card { position: relative; }

/* Whole card opens the bio modal */
.team-card__open {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: none;
  cursor: pointer;
}

.team-card__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-m);
  background-color: var(--color-surface-2);
}

.team-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-default) var(--cubic-default);
}

.team-card:hover .team-card__image { transform: scale(1.04); }

.team-card__name {
  margin: 0.75em 0 0;
  font-size: var(--text-m);
}

.team-card__position {
  margin: 0.25em 0 0;
  color: var(--color-ink-soft);
  font-size: var(--text-s);
}

/* Modal head: portrait beside name/position */
.team-card__modal-head {
  display: flex;
  align-items: center;
  gap: var(--gap-m);
  margin-bottom: var(--gap-m);
}

.team-card__modal-head .modal__h2 { margin: 0; }

.team-card__modal-image {
  width: 5.5em;
  height: 5.5em;
  object-fit: cover;
  border-radius: 50%;
  flex: none;
}


/* --- css/sections/team-listing.css --- */
/* sections/team-listing.css — the "Your Advocates" listing + member profile
   modal (Figma wireframe 108:20625). Markup: blocks/team_listing/render.php
     section_team-listing > .container
       > .block-intro (label / title / description)
       > .team-listing__grid > .card.is-team (components/card.css)
     + .modal.team-modal-group with a .team-modal card per member:
       __main (two cols: __profile | __contact), __reviews carousel,
       __page prev/next member buttons.
   Page skin from Figma "Team - Listing" 899:19991 (30 Sep 2026): silver
   page, 104px header with the dot label, 91px serif title and 22px lead,
   the arch line bleeding in top right behind the cards, 3-up grid at 35px.
   The modal follows the Team Member Detail design (2075:86534). */

.section_team-listing {
  position: relative;
  overflow: clip;
  padding-top: calc(104 * var(--px));
}

/* Arch-line brand graphic, top right, behind the header text and the cards
   (Figma places it at x 1162 / y 69 on the 1600 frame, 683 wide). */
.section_team-listing::before {
  content: "";
  position: absolute;
  top: calc(69 * var(--px));
  right: calc(-245 * var(--px));
  z-index: 0;
  width: calc(683 * var(--px));
  height: calc(1143 * var(--px));
  background: var(--brand-graphic) no-repeat center / contain;
  pointer-events: none;
  translate: 0 var(--bg-parallax, 0px); /* js/components/parallax.js */
}

.section_team-listing > .container { position: relative; z-index: 1; }

/* Header: label 14px bold with the brand-shape dot, title 91/1.15 serif,
   lead 22px medium at 80% ink, 48 label to title, 64 title to lead, 88 lead
   to grid. */
.section_team-listing .block-intro {
  row-gap: calc(64 * var(--px));
  margin-bottom: calc(88 * var(--px));
}

.section_team-listing .block-intro__main { gap: calc(48 * var(--px)); }

.section_team-listing .block-intro__label {
  display: block;
  color: var(--brand-charcoal);
  font-size: var(--utility-m-size);
  line-height: var(--utility-m-lh);
  letter-spacing: var(--utility-m-ls);
  font-weight: var(--utility-m-weight);
}

.section_team-listing .block-intro__label::before {
  content: "";
  display: inline-block;
  margin-right: calc(8 * var(--px));
  width: calc(10 * var(--px));
  height: calc(10 * var(--px));
  border-radius: var(--brand-shape-tiny-radius);
  -webkit-mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  background-color: var(--color-accent);
}

.section_team-listing .block-intro__title {
  font-size: calc(91 * var(--px));
  line-height: 1.15;
  letter-spacing: -0.011em;
  font-weight: 450;
}

.section_team-listing .block-intro__body { max-width: none; padding-right: 0; }

.section_team-listing .block-intro__text {
  font-size: calc(22 * var(--px));
  line-height: 1.25;
  font-weight: 500;
  color: var(--color-text-dark-secondary);
}

/* Charcoal band (Group team page, Figma 2046:104447): label and title in
   the accent, lead at 80% silver, white cards. */
.section_team-listing[data-theme-section="dark"] .block-intro__label,
.section_team-listing[data-theme-section="dark"] .block-intro__title { color: var(--color-accent); }
.section_team-listing[data-theme-section="dark"] .block-intro__text { color: var(--color-text-light-secondary); }

/* Group's shapes sit high on the right of its header (Figma 2141:167044:
   666 x 741, 16 off the right edge, 149 above the header). */
:root[data-brand="group"] .section_team-listing::before {
  top: calc(-9 * var(--px));
  right: calc(-16 * var(--px));
  width: calc(666 * var(--px));
  height: calc(741 * var(--px));
  background-position: right top;
}

.team-listing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(35 * var(--px));
}

/* Cards are .card.is-team (components/card.css). */

/* --- Profile modal (Figma Team Member Detail 2075:86534, mobile 2118:174391)
   1100 wide on the lighter page colour, radius-l, 80 padding, 56 between the
   head, the bio row and each silver panel; the Homes arch line flipped into
   the top-right corner. The shared .modal__card / .modal__scroll chrome
   (components/modal.css) is reset here: the card IS the surface. */

.modal__card.team-modal {
  /* The modal can open from a dark band (Group team page), whose section
     theme re-points the ink, line, surface and button tokens: reset them to
     the light defaults so cards and buttons inside read as on a light page. */
  --color-ink: var(--n-900);
  --color-ink-soft: var(--n-700);
  --color-line: var(--n-200);
  --color-surface: var(--n-0);
  --color-surface-2: var(--n-50);
  --color-surface-3: var(--n-100);
  --btn-surface: initial;
  --btn-ink: initial;
  --btn-arrow-ink: initial;
  --btn-arrow-surface: initial;
  max-width: calc(1100 * var(--px));
  padding: 0;
  border-radius: var(--radius-l);
  background-color: var(--brand-group-white);
  color: var(--color-text-dark);
}

.team-modal .modal__scroll {
  border-radius: inherit;
  background: transparent;
  scrollbar-width: none;
}

.team-modal .modal__scroll::-webkit-scrollbar { display: none; }

.team-modal .modal__content {
  position: relative;
  gap: var(--space-09);
  padding: var(--space-11);
}

/* The arch line sits behind the content, upside down in the top-right corner:
   the design's own crop of the Homes arch (img/brand/arch-line-corner.svg,
   Figma LOCALE HOMES ARCH LINE HAVEN 2), so only a quarter arc shows. */
.team-modal .modal__content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: calc(574 * var(--px));
  height: calc(960 * var(--px));
  background: url("../../img/brand/arch-line-corner.svg") no-repeat 0 0 / 100% 100%;
  transform: scaleY(-1);
  transform-origin: center;
  pointer-events: none;
}

/* The arch is taller than a short profile: clip it to the content, or it adds
   empty space to scroll through (Kellie, review board Your Advocates 7). */
.team-modal .modal__content { overflow: clip; }

.team-modal .modal__content > * { position: relative; z-index: 1; }

.team-modal__head {
  display: flex;
  flex-direction: column;
  gap: calc(24 * var(--px));
}

.team-modal__name { margin: 0; }

.team-modal__role {
  margin: 0;
  color: var(--color-text-dark-tertiary);
}

/* Bio row: copy on the left, a 290 column on the right, 56 apart. */
.team-modal__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(290 * var(--px));
  gap: var(--space-09);
  align-items: start;
}

.team-modal__profile {
  display: flex;
  flex-direction: column;
  gap: var(--space-07);
  padding-top: calc(20 * var(--px));
}

/* Figma blockQuote: 4px accent bar, 16 inset, body-l semibold. */
.team-modal__personality {
  margin: 0;
  padding-left: calc(16 * var(--px));
  border-left: 4px solid var(--color-accent);
  font-weight: 600;
}

.team-modal__bio { color: var(--color-text-dark-secondary); }
.team-modal__bio p { margin: 0 0 calc(10 * var(--px)); }
.team-modal__bio p:last-child { margin-bottom: 0; }

.team-modal__side {
  display: flex;
  flex-direction: column;
  gap: calc(30 * var(--px));
}

.team-modal__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-m);
}

/* Get in touch: 12 inset, display-s label, icon rows, full-width dark button. */
.team-modal__contact {
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--px));
  padding-inline: calc(12 * var(--px));
}

.team-modal__contact-label { margin: 0; }

.team-modal__contact-rows {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-modal__contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-03);
}

.team-modal__contact-row img {
  flex: none;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
}

.team-modal__contact-row a {
  color: inherit;
  text-decoration: none;
}

.team-modal__contact-row a:hover { text-decoration: underline; }

.team-modal__book { width: 100%; }

/* Silver panels: Happy clients and Articles & insights, 35 padding, radius-l,
   display-s heading with the carousel arrows on the right. */
.team-modal__panel {
  display: flex;
  flex-direction: column;
  padding: var(--space-07);
  border-radius: var(--radius-l);
  background-color: var(--brand-silver);
}

.team-modal__panel + .team-modal__panel { margin-top: calc(24 * var(--px) - var(--space-09)); }

.team-modal__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(20 * var(--px));
  padding-bottom: calc(24 * var(--px));
}

.team-modal__panel-title { margin: 0; }

.team-modal__arrows {
  display: flex;
  gap: var(--space-03);
}

/* Scroll-snap strips: one review per view, two articles per view. */
.team-modal__track {
  display: flex;
  gap: var(--space-07);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.team-modal__track::-webkit-scrollbar { display: none; }

.team-modal__track > * {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.team-modal__track.is-articles > * { flex-basis: calc(50% - var(--space-07) / 2); }

/* Figma card-testimonial/desktop, as the homepage reviews card: charcoal,
   64 / 56 padding, 48 between stars, quote and footer; the quote box is
   bounded at 182 so long reviews never stretch the card. */
.team-modal__review {
  display: flex;
  flex-direction: column;
  gap: var(--space-08);
  margin: 0;
  padding: calc(64 * var(--px)) var(--padding-content);
  border-radius: var(--radius-m);
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
}

.team-modal__stars {
  display: flex;
  gap: var(--space-03);
  color: var(--color-accent);
}

.team-modal__star,
.team-modal__stars svg {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}

.team-modal__quote {
  max-height: calc(182 * var(--px));
  margin: 0;
  padding-right: var(--space-07);
  overflow: hidden;
  color: var(--color-accent);
}

.team-modal__review-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(24 * var(--px));
}

.team-modal__review-foot .btn { flex: none; }

.team-modal__cite {
  display: flex;
  flex-direction: column;
  gap: var(--space-04);
  font-size: calc(17 * var(--px));
  line-height: 1.45;
}

.team-modal__cite .review-proof { font-size: var(--body-m-size); }
.team-modal__author { font-weight: 800; }
.team-modal__source { color: var(--color-text-light-secondary); }

.team-modal__article .card { height: 100%; }

/* Close: the 20px X at 16 / 16, no disc. */
.team-modal__close {
  position: absolute;
  top: calc(16 * var(--px));
  right: calc(16 * var(--px));
  z-index: 3;
  display: grid;
  place-items: center;
  width: calc(36 * var(--px));
  height: calc(36 * var(--px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
}

.team-modal__close img {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
}

.team-modal__close:hover { background-color: color-mix(in srgb, var(--brand-charcoal) 8%, transparent); }

@media (max-width: 991px) {
  .team-modal .modal__content { padding: var(--space-09) var(--space-07); }
  .team-modal__main { grid-template-columns: minmax(0, 1fr); }
  .team-modal__main .team-modal__side { order: -1; }
  .team-modal__profile { padding-top: 0; }
  .team-modal__track.is-articles > * { flex-basis: 85%; }
}

/* Mobile (Figma 2118:174391): 52 / 20 padding, display-l name, the photo a
   full-width 310 band, contact under it, the quote and bio below. */
@media (max-width: 767px) {
  .modal__card.team-modal { border-radius: var(--radius-m); }
  .team-modal .modal__content { gap: calc(30 * var(--px)); padding: calc(52 * var(--px)) calc(20 * var(--px)); }
  .team-modal .modal__content::before { width: calc(355 * var(--px)); height: calc(724 * var(--px)); }
  .team-modal__head { gap: calc(16 * var(--px)); }
  .team-modal__name { font-size: var(--display-l-size); line-height: var(--display-l-lh); letter-spacing: var(--display-l-ls); font-weight: var(--display-l-weight); }
  .team-modal__main { gap: calc(30 * var(--px)); }
  .team-modal__side { gap: calc(24 * var(--px)); }
  .team-modal__photo { aspect-ratio: auto; height: calc(310 * var(--px)); }
  .team-modal__contact { padding-inline: calc(16 * var(--px)); gap: calc(16 * var(--px)); }
  .team-modal__contact-rows { gap: var(--space-03); }
  .team-modal__profile { gap: calc(30 * var(--px)); }
  .team-modal__personality { font-size: var(--testimonial-size); line-height: var(--testimonial-lh); }
  .team-modal__panel { padding: var(--space-07) calc(20 * var(--px)); }
  .team-modal__panel + .team-modal__panel { margin-top: calc(12 * var(--px) - 30 * var(--px)); }
  .team-modal__track { gap: calc(12 * var(--px)); }
  .team-modal__review { gap: calc(24 * var(--px)); padding: calc(20 * var(--px)) calc(20 * var(--px)) calc(24 * var(--px)); }
  .team-modal__star, .team-modal__stars svg { width: calc(16 * var(--px)); height: calc(16 * var(--px)); }
  .team-modal__stars { gap: calc(5 * var(--px)); }
  .team-modal__quote { max-height: calc(184 * var(--px)); padding-right: 0; }
  .team-modal__review-foot { flex-wrap: wrap; align-items: center; }
  .team-modal__cite { font-size: calc(14 * var(--px)); gap: calc(10 * var(--px)); }
  .team-modal__close { top: calc(12 * var(--px)); right: calc(12 * var(--px)); }
}

/* HubSpot booking modal: the scheduler needs real height to avoid its own
   inner scrollbar */
.modal__card.team-modal-booking { max-width: 60em; }

.team-modal-booking__content {
  display: flex;
  flex-flow: column;
  gap: var(--gap-s);
  padding: var(--space-m) var(--space-m) var(--gap-m);
}

.team-modal-booking__title {
  margin: 0;
  font-size: var(--text-l);
}

/* Phones: the base close disc (56px, 40px in) sat on the title. Tuck it into
   the corner like the team modal's close and keep the title clear of it. */
@media screen and (max-width: 767px) {
  .team-modal-booking .modal__btn-close {
    top: calc(12 * var(--px));
    right: calc(12 * var(--px));
    width: calc(40 * var(--px));
    height: calc(40 * var(--px));
  }
  /* Less inline padding so the calendar gets the width: drop the vault
     card's outer frame and halve the content padding (two classes: modal.css
     loads later and its .modal__content 2em would win). */
  .modal__card.team-modal-booking { padding: 0; }
  .team-modal-booking .team-modal-booking__content { padding: calc(20 * var(--px)) calc(16 * var(--px)) calc(16 * var(--px)); }
  .team-modal-booking__title { padding-right: calc(44 * var(--px)); }
}

.booking-regions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-03);
}

.booking-regions__label {
  margin-right: var(--space-03);
  font-size: var(--body-m-size);
  font-weight: 700;
}

.booking-regions .chip { cursor: pointer; }

.team-modal-booking__frame {
  width: 100%;
  height: min(43em, 70vh);
  border: 0;
  border-radius: var(--radius-s);
  background-color: var(--color-surface-2);
}

.team-modal-booking__fallback {
  margin: 0;
  font-size: 0.8125em;
  color: var(--color-ink-soft);
  text-align: center;
}

.team-modal-booking__fallback a { text-decoration: underline; }

/* Prev/next member paging, pinned to the modal edges */
.team-modal__page {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 2.75em;
  height: 2.75em;
  border: 0;
  border-radius: var(--radius-full);
  background-color: var(--color-surface);
  box-shadow: 0 1px 3px rgb(0 0 0 / 15%);
  cursor: pointer;
  z-index: 2;
}

.team-modal__page.is--prev { left: -1.375em; }
.team-modal__page.is--next { right: -1.375em; }

@media (max-width: 991px) {
  .section_team-listing { padding-top: calc(56 * var(--px)); }
  .section_team-listing::before { top: 0; right: calc(-320 * var(--px)); width: calc(520 * var(--px)); height: calc(870 * var(--px)); }
  .section_team-listing .block-intro { row-gap: calc(35 * var(--px)); margin-bottom: calc(48 * var(--px)); }
  .section_team-listing .block-intro__main { gap: calc(24 * var(--px)); }
  .section_team-listing .block-intro__title { font-size: var(--display-xl-size); line-height: var(--display-xl-lh); letter-spacing: var(--display-xl-ls); }
  .section_team-listing .block-intro__text { font-size: var(--body-l-size); }
  .team-listing__grid { grid-template-columns: repeat(2, 1fr); gap: calc(20 * var(--px)); }

  .team-modal__main { grid-template-columns: 1fr; }

  /* Phones: smaller and straddling the card edge, so they cover less of the photo and bio. */
  .team-modal__page { width: calc(36 * var(--px)); height: calc(36 * var(--px)); }
  .team-modal__page.is--prev { left: calc(-8 * var(--px)); }
  .team-modal__page.is--next { right: calc(-8 * var(--px)); }
}

@media (max-width: 600px) {
  .team-listing__grid { grid-template-columns: 1fr; }
}


/* --- css/pages/single-post.css --- */
/* pages/single-post.css — the single post editorial layout (single.php):
   centred header (meta pill, display title, standfirst), full-container
   featured image, narrow prose column, share + prev/next footer. */

.single-post__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-s);
  padding-block: var(--space-l) var(--space-m);
}

.single-post__meta {
  display: flex;
  align-items: center;
  gap: 1em;
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
}

.single-post__cat {
  background-color: var(--color-surface-2);
  color: var(--color-ink);
  border-radius: var(--radius-full);
  padding: 0.5em 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  transition: background-color var(--duration-default-half) var(--cubic-default);
}

.single-post__cat:hover { background-color: var(--color-surface-3); }

.single-post__title {
  margin: 0;
  max-width: 14em;
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.single-post__standfirst {
  margin: 0;
  max-width: 28em;
  color: var(--color-ink-soft);
  font-size: var(--text-l);
  line-height: 1.4;
}

.single-post__media { margin-bottom: var(--space-l); }

.single-post__image {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-l);
}

/* Prose column */
.single-post__prose > p,
.single-post__prose > ul,
.single-post__prose > ol {
  line-height: 1.7;
  margin-block: 0 1.25em;
}

.single-post__prose > :is(h2, h3, h4) {
  margin-block: 1.75em 0.6em;
  letter-spacing: -0.02em;
}

.single-post__prose > :first-child { margin-top: 0; }

.single-post__prose a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.single-post__prose blockquote {
  margin: 1.75em 0;
  padding-left: 1.25em;
  border-left: 2px solid var(--color-ink);
  font-size: var(--text-l);
  line-height: 1.4;
}

.single-post__prose img { border-radius: var(--radius-m); }

/* Footer: share + nav */
.single-post__footer {
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-m);
}

.dc-social-share {
  display: flex;
  align-items: center;
  gap: var(--gap-s);
}

.single-post__share-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-ink-soft);
}

.dc-social-share ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5em;
}

.dc-social-share li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background-color: var(--color-surface-2);
  color: var(--color-ink);
  transition: background-color var(--duration-default-half) var(--cubic-default);
}

.dc-social-share li a:hover { background-color: var(--color-surface-3); }


/* --- css/components/audio-player.css --- */
/* components/audio-player.css — podcast player, wireframe skin.
   Markup: template-parts/audio-player.php
     .audio-player[data-audio-player][data-audio-state][data-audio-ready]
       > __art + __body (__meta, __controls, __track, __links)

   State lives on the root as data attributes so the CSS never has to guess:
     data-audio-state = paused | playing | error
     data-audio-ready = "true" once JS has taken over from native controls */

.audio-player {
  display: flex;
  gap: var(--space-s);
  align-items: center;
  flex-wrap: wrap;
  padding: var(--space-s);
  border: 1px solid var(--color-line);
  border-radius: 0.75em;
  background-color: var(--color-surface-2);
}

.audio-player__art {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: var(--radius-s);
  object-fit: cover;
  background-color: var(--color-surface-3);
}

.audio-player__body {
  flex: 1 1 16rem;
  min-width: 0;
}

.audio-player__meta {
  display: flex;
  gap: 0.75em;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5em;
}

/* Native controls are the no-JS fallback: visible until the script says
   otherwise, so a broken bundle still leaves a usable player. */
.audio-player__audio {
  width: 100%;
  margin-top: 0.5em;
}
.audio-player[data-audio-ready='true'] .audio-player__audio {
  display: none;
}
.audio-player__ui {
  display: none;
}
.audio-player[data-audio-ready='true'] .audio-player__ui {
  display: block;
}

.audio-player__controls {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.audio-player__btn {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background-color: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-dc),
              color var(--dur-fast) var(--ease-dc);
}
.audio-player__btn:hover:not(:disabled) {
  background-color: var(--color-ink);
  color: var(--color-surface);
}
.audio-player__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.audio-player__btn.is--play {
  width: 3.25em;
  height: 3.25em;
  background-color: var(--color-ink);
  color: var(--color-surface);
  border-color: var(--color-ink);
}

/* One icon pair, swapped by state, so there is no flash of the wrong glyph. */
.audio-player__icon-pause { display: none; }
.audio-player[data-audio-state='playing'] .audio-player__icon-play { display: none; }
.audio-player[data-audio-state='playing'] .audio-player__icon-pause { display: block; }

.audio-player__rate {
  width: auto;
  padding-inline: 0.75em;
  border-radius: 1.25em;
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.audio-player__track {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-top: 0.75em;
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  font-variant-numeric: tabular-nums;
}

.audio-player__bar {
  position: relative;
  flex: 1 1 auto;
  height: 0.5em;
  border-radius: var(--radius-xs);
  background-color: var(--color-surface-3);
  cursor: pointer;
  touch-action: none;
}
.audio-player__bar:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

.audio-player__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
}

.audio-player__error {
  display: none;
  margin-top: 0.75em;
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
}
.audio-player[data-audio-state='error'] .audio-player__error {
  display: block;
}

.audio-player__links {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin-top: 0.75em;
  font-size: var(--text-xs);
}
.audio-player__links a {
  color: var(--color-ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .audio-player__btn {
    transition: none;
  }
}

@media (max-width: 640px) {
  .audio-player {
    gap: var(--space-xs);
  }
  .audio-player__art {
    width: 64px;
    height: 64px;
  }
}


/* --- css/pages/single-resource.css --- */
/* pages/single-resource.css — one resource (template-parts/
   content-single-resource.php; Figma Resource - Article 1724:78896, podcast
   1751:32280, mobile 1740:45622 / 45849 / 45948).

   Desktop (1440 content box): the main column is 1109 with the text held to
   900 at 80 in; takeaways, images, CTA cards and the podcast player break
   out to 1060 (80 either side of the text). The 291 sidebar sits 40 to the
   right and sticks under the compact header: contents list, related tile,
   share. Below 992 the sidebar drops under the article and the contents
   list becomes the sticky dropdown at the top of the article. */

.single-article {
  --article-text: calc(900 * var(--px));
  --article-bleed: calc(80 * var(--px));
  background-color: var(--brand-group-white);
}

/* ---- Header ----------------------------------------------------------- */

.article-header {
  position: relative;
  overflow: clip;
  /* The body is padded by the bar (core/nav.css); the frame puts the back
     link 80 under it. */
  padding-block: calc(80 * var(--px));
}

/* Arch-line brand graphic top right, behind the hero (1724:80477: x 1192). */
.article-header::before {
  content: "";
  position: absolute;
  top: calc(160 * var(--px));
  right: calc(-275 * var(--px));
  width: calc(683 * var(--px));
  height: calc(849 * var(--px));
  background: var(--brand-graphic) no-repeat center top / contain;
  opacity: 0.6;
  pointer-events: none;
  translate: 0 var(--bg-parallax, 0px); /* js/components/parallax.js */
}

.article-header .container { position: relative; }

.article-header__inner {
  display: flex;
  flex-direction: column;
  gap: calc(64 * var(--px));
  /* Long FAQ frame (1763:32299): the title runs 1198 wide, so a question of
     a dozen words sets on three lines; the article frame's 1029 was a
     shorter placeholder. */
  max-width: calc(1246 * var(--px));
  padding: 0 calc(48 * var(--px)) 0 0;
}

/* "All Resources" (btn-back 1983:99327, every article): it now heads the
   header where the title's 24 used to be; accent underline on hover, like
   the listing's Back to Resource Hub. */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-02);
  width: fit-content;
  color: var(--brand-charcoal);
  font-size: calc(15 * var(--px));
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1px;
  text-decoration: none;
  text-box: trim-both cap alphabetic;
}

.article-back img { width: calc(11 * var(--px)); height: calc(11 * var(--px)); }

.article-back span {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: calc(2 * var(--px));
  text-underline-offset: 0.35em;
  transition: text-decoration-color var(--animation-default-half);
}

.article-back:hover span { text-decoration-color: var(--color-accent-line); }

.article-header__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: calc(92 * var(--px));
  line-height: calc(101 / 92);
  letter-spacing: -0.027em;
  font-weight: 400;
  text-box: trim-both cap alphabetic;
  text-wrap: balance;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: calc(12 * var(--px)) calc(35 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--body-m-size);
  line-height: var(--body-m-lh);
  font-weight: 500;
}

.article-meta li {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
}

.article-meta img { width: calc(24 * var(--px)); height: calc(24 * var(--px)); }

/* ---- Hero ------------------------------------------------------------- */

.article-hero { position: relative; }

.article-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(700 * var(--px));
  aspect-ratio: 1440 / 700;
  object-fit: cover;
  border-radius: var(--radius-l);
  background-color: var(--brand-silver);
}

/* ---- Columns ---------------------------------------------------------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(291 * var(--px));
  column-gap: calc(40 * var(--px));
  align-items: start;
  padding-block: calc(80 * var(--px)) var(--padding-s);
}

.article-main {
  container-type: inline-size;
  min-width: 0;
  padding-inline: var(--article-bleed);
  scroll-margin-top: calc(120 * var(--px));
}

.article-prose {
  max-width: var(--article-text);
  font-size: var(--body-m-size);
  line-height: var(--body-m-lh);
}

.article-prose [id] { scroll-margin-top: calc(110 * var(--px)); }

/* Out to the 1060 column: the designed boxes, and images on their own. */
.article-prose > .article-takeaways,
.article-prose > .article-cta.is-card,
.article-prose > figure,
.article-prose > .wp-caption,
.article-prose > .video-wrapper,
.article-prose > .article-images,
.article-prose > p:has(> img:only-child),
.article-prose > p:has(> a:only-child > img:only-child) {
  max-width: none;
  margin-inline: calc(-1 * var(--article-bleed));
}

.article-prose > figure img,
.article-prose > .wp-caption img,
.article-prose > p > img:only-child,
.article-prose > p > a:only-child > img:only-child {
  display: block;
  width: 100%;
  max-height: calc(560 * var(--px));
  object-fit: cover;
}

.article-prose > .wp-caption { width: auto !important; }

.article-prose > figure a { display: block; }

/* Illustrations (SVG) sit whole inside the frame rather than being cropped. */
.article-prose > figure img[src$=".svg"] { max-height: none; object-fit: contain; }

/* The main column is padded by the bleed on both sides, so the overhang
   fills exactly that padding and never runs under the sidebar: when the
   column narrows the text narrows with it and the overhang stays 80. */

.article-prose > .article-takeaways { margin-bottom: calc(64 * var(--px)); }
.article-prose > .article-takeaways:first-child + * { margin-top: 0; }
.article-prose > figure,
.article-prose > .wp-caption,
.article-prose > .article-images,
.article-prose > .article-cta { margin-block: calc(48 * var(--px)); }

/* [image_row] (network article-content.php): captioned images side by side
   at the 1060 column, each 518 x 400 with its caption under it (Figma
   1772:33505). Captions take the .rte figcaption style. */
.article-images {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: calc(24 * var(--px));
}

.article-images > :is(figure, .wp-caption) {
  width: auto !important;
  margin: 0;
}

.article-images img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 518 / 400;
  object-fit: cover;
}

/* ---- Sidebar ---------------------------------------------------------- */

/* Full height of the row, or the sticky inside has nothing to stick within. */
.article-aside { align-self: stretch; }

.article-aside__sticky {
  position: sticky;
  top: calc(80 * var(--px) + 24 * var(--px) + var(--admin-bar));
  /* A long contents list (some migrated articles have 20 sections) scrolls
     inside the sidebar rather than running off the bottom of the screen. */
  max-height: calc(100vh - 128 * var(--px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: calc(35 * var(--px));
}

.article-aside__sticky::-webkit-scrollbar { display: none; }

.article-toc__label {
  margin: 0 0 calc(16 * var(--px));
  padding-left: calc(16 * var(--px));
  font-size: calc(13 * var(--px));
  line-height: 1.2;
  letter-spacing: 0.077em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-dark-tertiary);
}

.article-toc__list {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc__link {
  display: flex;
  align-items: flex-start;
  gap: calc(12 * var(--px));
  min-height: calc(40 * var(--px));
  padding: calc(12 * var(--px)) calc(16 * var(--px));
  border-radius: var(--radius-s);
  color: var(--color-text-dark-tertiary);
  font-size: calc(15 * var(--px));
  line-height: 1.25;
  font-weight: 630;
  text-decoration: none;
  transition: background-color var(--animation-default-half), color var(--animation-default-half);
}

.article-toc__marker {
  flex: none;
  width: calc(9 * var(--px));
  height: calc(9 * var(--px));
  margin-top: calc(4 * var(--px));
  border-radius: var(--brand-shape-tiny-radius);
  -webkit-mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  background-color: var(--color-accent);
  scale: 0;
  transition: scale var(--animation-default-half);
}

.article-toc__link:hover { color: var(--color-text-dark); }

/* Figma sitckyAnchorNav: the current section sits in a white pill (the
   page is group-white, so a group-white pill vanished). */
.article-toc__link[aria-current="true"] {
  background-color: var(--brand-white);
  box-shadow: 0 0 3px rgb(0 0 0 / 12%), 0 3px 4px rgb(0 0 0 / 3%);
  color: var(--color-text-dark);
}

.article-toc__link[aria-current="true"] .article-toc__marker { scale: 1; }

.article-related {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(20 * var(--px));
  min-height: calc(207 * var(--px));
  padding: calc(24 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--color-accent-tint-1);
  color: var(--brand-charcoal);
  text-decoration: none;
  flex-shrink: 0; /* the sticky sidebar is a flex column: a squeezed card let a long title run out of the tile */
}

.article-related__badge {
  display: inline-flex;
  align-items: center;
  height: calc(20 * var(--px));
  padding: 0 calc(8 * var(--px));
  border: 1px solid rgb(50 50 50 / 0.7);
  border-radius: var(--radius-xs);
  font-size: calc(10 * var(--px));
  letter-spacing: 0.075em;
  font-weight: 700;
  text-transform: uppercase;
}

.article-related__title {
  font-family: var(--font-serif);
  font-size: calc(27 * var(--px));
  line-height: 1.2;
  letter-spacing: -0.0185em;
  font-weight: 500;
}

.article-related__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  margin-top: auto;
  border-radius: var(--radius-full);
  transition: background-color var(--animation-default-half);
}

.article-related__arrow svg { width: calc(24 * var(--px)); height: calc(24 * var(--px)); }

.article-related:hover .article-related__arrow { background-color: var(--brand-silver); }

/* About the author (Figma about-the-author 1826:96853, card-teamMember-small):
   a white card, the photo on top, name 27 serif + role 15, arrow bottom right. */
.article-author__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-m);
  background-color: var(--brand-white);
  color: var(--brand-charcoal);
  text-decoration: none;
  box-shadow: 0 0 3px rgb(0 0 0 / 12%), 0 3px 4px rgb(0 0 0 / 3%);
}

.article-author__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 291 / 293;
  object-fit: cover;
}

.article-author__body {
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--px));
  padding: calc(24 * var(--px)) calc(24 * var(--px)) calc(56 * var(--px));
}

.article-author__name {
  font-family: var(--font-serif);
  font-size: calc(27 * var(--px));
  line-height: 1.2;
  letter-spacing: -0.0185em;
  font-weight: 500;
}

.article-author__role {
  padding-right: calc(52 * var(--px));
  font-size: var(--body-s-size);
  line-height: calc(20 / 15);
  color: var(--color-text-dark-secondary);
}

.article-author__arrow {
  position: absolute;
  right: calc(24 * var(--px));
  bottom: calc(24 * var(--px));
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  border-radius: var(--radius-full);
  transition: background-color var(--animation-default-half);
}

.article-author__arrow svg { width: calc(24 * var(--px)); height: calc(24 * var(--px)); }

.article-author__card:hover .article-author__arrow { background-color: var(--brand-silver); }

.article-share.dc-social-share {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(16 * var(--px));
  padding-left: calc(36 * var(--px));
}

.article-share__label {
  margin: 0;
  font-size: calc(13 * var(--px));
  line-height: 1.2;
  letter-spacing: 0.077em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-dark-tertiary);
}

.article-share ul {
  display: flex;
  gap: calc(8 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-share.dc-social-share li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  border-radius: var(--radius-s);
  background-color: var(--brand-charcoal);
  color: var(--color-accent);
  transition: background-color var(--animation-default-half);
}

.article-share.dc-social-share li a:hover { background-color: var(--brand-dark-charcoal); }

/* ---- Mobile contents dropdown (hidden on desktop) ---------------------- */

.article-toc.is-mobile { display: none; }

/* ---- Podcast player (1751:32830): charcoal bar, artwork left ---------- */

/* Not inside the 900 prose, so cap it to the same 1060 the prose breaks out to. */
.article-player {
  max-width: calc(var(--article-text) + 2 * var(--article-bleed));
  margin-bottom: calc(35 * var(--px));
}

.article-main > .article-player { margin-inline: calc(-1 * var(--article-bleed)) 0; }

.article-player .audio-player {
  flex-wrap: nowrap;
  gap: calc(24 * var(--px));
  padding: calc(16 * var(--px)) calc(24 * var(--px)) calc(16 * var(--px)) calc(16 * var(--px));
  border: 0;
  border-radius: var(--radius-m);
  background-color: var(--brand-charcoal);
  color: var(--brand-silver);
}

.article-player .audio-player__art {
  width: calc(130 * var(--px));
  height: calc(130 * var(--px));
  border-radius: var(--radius-s);
}

.article-player .audio-player__meta { display: none; }

.article-player .audio-player__ui { display: none; }

.article-player .audio-player[data-audio-ready='true'] .audio-player__ui {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
}

.article-player .audio-player__controls { gap: calc(12 * var(--px)); }

.article-player .audio-player__btn {
  width: calc(50 * var(--px));
  height: calc(50 * var(--px));
  border: 0;
  background-color: rgb(242 242 242 / 0.12);
  color: var(--brand-silver);
}

.article-player .audio-player__btn:hover:not(:disabled) { background-color: rgb(242 242 242 / 0.22); color: var(--brand-silver); }

.article-player .audio-player__btn.is--play {
  width: calc(64 * var(--px));
  height: calc(64 * var(--px));
  background-color: var(--brand-silver);
  color: var(--brand-charcoal);
}

.article-player .audio-player__btn.is--play:hover:not(:disabled) { background-color: var(--brand-white); color: var(--brand-charcoal); }

.article-player .audio-player__rate { width: calc(50 * var(--px)); padding: 0; border-radius: 50%; font-size: calc(15 * var(--px)); }

.article-player .audio-player__track {
  flex: 1 1 0;
  gap: calc(16 * var(--px));
  height: calc(50 * var(--px));
  margin: 0;
  padding: 0 calc(16 * var(--px));
  border-radius: var(--radius-full);
  background-color: rgb(242 242 242 / 0.08);
  color: var(--brand-silver);
  font-size: calc(13 * var(--px));
  font-weight: 600;
  letter-spacing: 0.08em;
}

.article-player .audio-player__bar { height: calc(8 * var(--px)); border-radius: var(--radius-full); background-color: rgb(242 242 242 / 0.25); }
.article-player .audio-player__fill { background-color: var(--brand-silver); }

.article-player .audio-player__links {
  gap: calc(12 * var(--px));
  margin-top: calc(14 * var(--px));
  font-size: calc(12 * var(--px));
  color: var(--brand-silver);
}

.article-player .audio-player__links a { color: rgb(242 242 242 / 0.7); text-decoration: underline; text-underline-offset: 0.2em; }
.article-player .audio-player__links a:hover { color: var(--color-accent); }

/* ---- Related resources carousel (1756:29661) -------------------------- */

.section_article-more {
  --card-gap: calc(35 * var(--px));
  background-color: var(--brand-silver);
}

/* The frame's heading runs on one line at 1440. */
.section_article-more .block-intro__main { max-width: none; }

.section_article-more .card-carousel__wrap { margin-inline: calc(-0.5 * var(--card-gap)); }

.card-carousel__slide {
  flex: none;
  width: calc(100% / 3 - var(--card-gap));
  margin-inline: calc(0.5 * var(--card-gap));
}

.section_article-more .block-intro__text {
  font-size: var(--body-m-size);
  line-height: var(--body-m-lh);
  letter-spacing: var(--body-m-ls);
}

/* ---- Below desktop ---------------------------------------------------- */

@media screen and (max-width: 991px) {
  .article-header { padding-block: calc(40 * var(--px)) calc(32 * var(--px)); }
  .article-header::before { top: calc(80 * var(--px)); right: calc(-460 * var(--px)); }
  .article-header__inner { gap: calc(24 * var(--px)); padding: 0; }
  .article-header__title { font-size: var(--display-xl-size); line-height: 1.1; }

  .article-layout { grid-template-columns: minmax(0, 1fr); row-gap: calc(48 * var(--px)); padding-top: calc(20 * var(--px)); }
  .article-main { padding-inline: 0; }
  .article-prose { max-width: none; }

  .article-prose > .article-takeaways,
  .article-prose > .article-cta.is-card,
  .article-prose > figure,
  .article-prose > .wp-caption,
  .article-prose > .video-wrapper,
  .article-prose > .article-images,
  .article-prose > p:has(> img:only-child),
  .article-prose > p:has(> a:only-child > img:only-child) { margin-inline: 0; }

  .article-main > .article-player { margin-inline: 0; max-width: none; }

  .article-aside__sticky { position: static; max-height: none; overflow: visible; }
  .article-toc.is-desktop { display: none; }
  .article-share.dc-social-share { padding-left: 0; }

  .card-carousel__slide { width: calc(50% - var(--card-gap)); }

  /* The dropdown: a bar under the hero that sticks under the header and
     names the section being read; open, the sections drop down as pills
     over a blurred scrim. */
  .article-toc.is-mobile {
    position: sticky;
    top: calc(80px + var(--admin-bar)); /* the 72px mobile bar + 8 */
    z-index: 20;
    display: block;
    margin-bottom: calc(20 * var(--px));
  }

  .article-toc__toggle {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(12 * var(--px));
    width: 100%;
    min-height: calc(50 * var(--px));
    padding: calc(12 * var(--px)) calc(16 * var(--px));
    border: 0;
    border-radius: var(--radius-s);
    background-color: var(--brand-white);
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.03), 0 0 3px rgba(0, 0, 0, 0.12);
    color: var(--color-text-dark);
    font: inherit;
    font-size: calc(17 * var(--px));
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  /* At the top it reads as a label; once a section is current, its name. */
  .article-toc__toggle [data-anchor-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .article-toc.is-mobile:has(li:first-child [aria-current="true"]) [data-anchor-current] {
    font-size: calc(12 * var(--px));
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
  }

  .article-toc__toggle svg { flex: none; }

  .article-toc__panel {
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    visibility: hidden;
    opacity: 0;
    translate: 0 calc(-8 * var(--px));
    transition: opacity var(--animation-default-half), translate var(--animation-default-half), visibility 0s linear var(--duration-default-half);
  }

  .article-toc.is-mobile[data-open] .article-toc__panel {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
    transition-delay: 0s;
  }

  .article-toc.is-mobile .article-toc__list { gap: calc(4 * var(--px)); }

  .article-toc.is-mobile .article-toc__link {
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    min-height: calc(50 * var(--px));
    padding: calc(12 * var(--px)) calc(16 * var(--px));
    background-color: var(--brand-silver);
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.03), 0 0 3px rgba(0, 0, 0, 0.12);
    color: var(--color-text-dark);
    font-size: calc(17 * var(--px));
    font-weight: 600;
  }

  .article-toc.is-mobile .article-toc__link[aria-current="true"] { background-color: var(--brand-white); }

  .article-toc.is-mobile .article-toc__marker { width: calc(14 * var(--px)); height: calc(14 * var(--px)); margin: 0; border-radius: calc(7 * var(--px)) calc(7 * var(--px)) 0 0; }

  .article-toc__scrim {
    position: fixed;
    inset: 0;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    background-color: rgb(50 50 50 / 0.2);
    backdrop-filter: blur(8px);
    transition: opacity var(--animation-default-half), visibility 0s linear var(--duration-default-half);
  }

  .article-toc.is-mobile[data-open] .article-toc__scrim { visibility: visible; opacity: 1; transition-delay: 0s; }

  .article-player .audio-player { flex-wrap: wrap; padding: calc(16 * var(--px)); }
  .article-player .audio-player__art { width: calc(120 * var(--px)); height: calc(120 * var(--px)); }
  .article-player .audio-player__body { flex-basis: 100%; }
  .article-player .audio-player[data-audio-ready='true'] .audio-player__ui { flex-wrap: wrap; }
  .article-player .audio-player__track { flex-basis: 100%; }
}

@media screen and (max-width: 767px) {
  .article-header__title { font-size: calc(39 * var(--px)); }
  .article-meta { gap: calc(8 * var(--px)) calc(16 * var(--px)); font-size: calc(14 * var(--px)); }
  .article-meta img { width: calc(18 * var(--px)); height: calc(18 * var(--px)); }
  .article-hero__img { aspect-ratio: 363 / 176; border-radius: var(--radius-m); }
  .article-images { grid-auto-flow: row; }

  .card-carousel__slide { width: 82%; }
}


/* --- css/pages/single-package.css --- */
/* pages/single-package.css — a house & land package
   (template-parts/content-single-package.php; Figma House & Land Detail 4,
   2087:136654). The page wears the home design page's hero card, bands,
   sticky Explore rail and plan card (pages/single-home-design.css); this file
   owns the package's own parts. No mobile frame yet: below 992 the rail drops
   and everything stacks, as on the design page. */

/* ---- Hero: place label, suburb, back link -------------------------------- */

.single-package__hero-header { gap: var(--space-06); }

.single-package__place {
  --badge-ink: var(--brand-silver);
  background-color: rgb(50 50 50 / 0.8);
  box-shadow: none;
  text-transform: uppercase;
}

/* The photo stops short of the window so the heading shows under it on a
   laptop (review board, 17 Nov); the design page keeps its full-height hero. */
@media screen and (min-width: 768px) {
  .single-package .single-design__hero {
    --hero-h: min(clamp(420px, calc(var(--hero-room) * 0.72), 900px), calc(var(--hero-w) * 9 / 16));
  }
}

.single-package__back { color: var(--brand-silver); }
.single-package__back svg { width: calc(11 * var(--px)); height: calc(11 * var(--px)); }

/* ---- Overview: title, price, specs (Figma sectionHeader 2087:136658) ----- */

.single-package__col { gap: calc(35 * var(--px)); }

.single-package__head {
  display: flex;
  flex-direction: column;
  gap: calc(35 * var(--px));
}

.single-package__title {
  margin: 0;
  font-family: var(--font-serif);
  /* One step down from the frame's display-xxl: Mantis headings run long
     (review board, 17 Nov). */
  font-size: var(--display-xl-size);
  line-height: var(--display-xl-lh);
  letter-spacing: var(--display-xl-ls);
  font-weight: 400;
  text-box: trim-both cap alphabetic;
  text-wrap: balance;
}

.single-package__price {
  display: flex;
  align-items: flex-end;
  gap: calc(8 * var(--px));
  margin: 0;
  color: var(--color-text-dark);
}

.single-package__price-from {
  font-size: calc(20 * var(--px));
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.12px;
  text-box: trim-both cap alphabetic;
}

.single-package__price-value {
  font-size: calc(35 * var(--px));
  line-height: var(--utility-l-lh);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-box: trim-both cap alphabetic;
}

.single-package__price-star {
  margin-left: calc(-6 * var(--px));
  font-size: calc(30 * var(--px));
  font-weight: 400;
  line-height: var(--utility-l-lh);
  text-box: trim-both cap alphabetic;
}

/* House / Land read label first like Frontage; the design page's spec row. */
.single-package__specs strong { font-weight: 720; }

/* ---- Description, agent card, disclaimer (Figma 2087:136725) ------------- */

.single-package__copy {
  display: flex;
  flex-direction: column;
  gap: calc(35 * var(--px));
}

.single-package__prose {
  font-size: var(--body-m-size);
  line-height: var(--body-m-lh);
}


/* Lists rebuilt from the agent's emoji bullets (includes/package-description.php). */
.single-package__prose .package-desc__heading { margin-bottom: 0; }
.single-package__prose .package-desc__heading + .package-desc__list { margin-top: calc(4 * var(--px)); }
.single-package__prose ul { gap: 0; }
.single-package__prose ul > li { margin: 0; }
/* Figma's description bullets are the text colour, not the rich-text green. */
.single-package__prose ul > li::before { background-color: currentColor; }

/* The listing agent: replaces the contact lines typed into the description. */
.package-agent {
  display: flex;
  align-items: stretch;
  gap: calc(30 * var(--px));
  padding: calc(20 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--color-accent-tint-4);
}

.package-agent__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(24 * var(--px));
  padding: calc(20 * var(--px));
}

.package-agent__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
  font-weight: var(--display-s-weight);
  text-box: trim-both cap alphabetic;
  text-wrap: pretty;
}

.package-agent__details {
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--px));
}

.package-agent__name {
  margin: 0;
  font-size: calc(20 * var(--px));
  line-height: calc(28 * var(--px));
  font-weight: 700;
  text-box: trim-both cap alphabetic;
}

.package-agent__name a,
.package-agent__contact a { color: inherit; text-decoration: none; }
.package-agent__name a:hover,
.package-agent__contact a:hover { text-decoration: underline; text-decoration-color: var(--brand-charcoal); text-underline-offset: 0.3em; }

.package-agent__contact {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--body-m-size);
  line-height: var(--body-m-lh);
}

.package-agent__contact li {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
}

.package-agent__contact img { width: calc(24 * var(--px)); height: calc(24 * var(--px)); }

.package-agent__book { align-self: flex-start; }

/* Figma photoFrame: a 250 square, radius 16 (its mask). */
.package-agent__photo {
  flex: none;
  width: calc(250 * var(--px));
  height: calc(250 * var(--px));
  border-radius: var(--radius-m);
  object-fit: cover;
}

/* Mantis land-ownership disclaimer, split off the description. */
.single-package__disclaimer {
  padding: calc(20 * var(--px));
  border-radius: var(--radius-m);
  background-color: color-mix(in srgb, var(--brand-silver) 50%, white);
  font-size: var(--body-xs-size);
  line-height: var(--body-xs-lh);
  letter-spacing: var(--body-xs-ls);
  color: var(--color-text-dark);
}

.single-package__disclaimer p { margin: 0; }
.single-package__disclaimer p + p { margin-top: var(--space-02); }

/* ---- Inspiration + floorplans: Osmo lightbox triggers -------------------- */

.single-package__inspiration {
  display: flex;
  flex-direction: column;
  gap: calc(35 * var(--px));
}

.single-package__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(12 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
}

.single-package__zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.single-package__photo .single-package__zoom img {
  display: block;
  width: 100%;
  height: calc(300 * var(--px));
  border-radius: var(--radius-m);
  object-fit: cover;
  transition: scale var(--animation-default-half);
}

.single-package__photo { overflow: hidden; border-radius: var(--radius-m); }
.single-package__photo .single-package__zoom:hover img { scale: 1.03; }

/* Floorplan card (Figma FLOORPLAN 2087:136802): heading + a compact spec row,
   then the plans: three or fewer share one row, four sit two by two (Chris,
   15 Oct), more wrap three to a row. Clear of the rail like the design page. */
.single-package__plan-head {
  display: flex;
  flex-direction: column;
  gap: calc(35 * var(--px));
  padding: calc(80 * var(--px)) calc(56 * var(--px)) 0;
}

.single-package__plan-head .single-design__heading { padding: 0; }

.single-package__plan-specs {
  display: flex;
  flex-wrap: wrap;
  gap: calc(12 * var(--px)) calc(24 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--body-m-size);
  line-height: 1.45;
}

.single-package__plan-specs li { display: flex; align-items: center; gap: calc(12 * var(--px)); white-space: nowrap; }
.single-package__plan-specs img { width: calc(24 * var(--px)); height: calc(24 * var(--px)); }
.single-package__plan-specs strong { font-weight: 720; }

.single-package__plans-wrap {
  width: calc(100% - var(--design-aside) - var(--design-aside-gap));
  padding: calc(56 * var(--px)) calc(80 * var(--px)) calc(80 * var(--px)) calc(56 * var(--px));
}

.single-package__plans {
  --plan-cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--plan-cols), minmax(0, 1fr));
  gap: calc(56 * var(--px));
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.single-package__plans:has(> :only-child) { --plan-cols: 1; }
.single-package__plans:has(> :nth-child(2):last-child) { --plan-cols: 2; }
.single-package__plans.is-two-up { --plan-cols: 2; }

.single-package__plan { display: flex; justify-content: center; }

.single-package__plan .single-package__zoom img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(700 * var(--px));
  margin-inline: auto;
  object-fit: contain;
}

.single-package__plans.is-two-up .single-package__zoom img { max-height: calc(560 * var(--px)); }

/* The Osmo viewer (components/lightbox.css) above the nav, on a dark scrim. */
.single-package .lightbox-wrap { z-index: 1000; background-color: rgb(37 37 37 / 0.92); }
.single-package .lightbox-nav { color: var(--brand-silver); }
.single-package .lightbox-nav__button { color: inherit; border: 0; cursor: pointer; }
.single-package .lightbox-img__item img { background-color: var(--brand-white); border-radius: var(--radius-m); }

/* ---- Location (Figma LOCATION 2087:136869) ------------------------------- */

.single-package__location { background-color: var(--brand-white); }

.single-package__location-head {
  display: flex;
  flex-direction: column;
  gap: calc(35 * var(--px));
}

.single-package__address {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
  margin: 0;
  font-size: var(--body-m-size);
  line-height: var(--body-m-lh);
}

.single-package__address img { width: calc(24 * var(--px)); height: calc(24 * var(--px)); }

.single-package__map {
  position: relative;
  height: calc(552 * var(--px));
  overflow: hidden;
  border-radius: var(--radius-m);
  background-color: var(--brand-silver);
}

/* ---- Sidebar share (Figma share 2087:137040) ----------------------------- */

.single-package__share {
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--px));
  padding-left: calc(16 * var(--px));
}

.single-package__share-label {
  margin: 0;
  font-size: var(--utility-s-size);
  letter-spacing: var(--utility-s-ls);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-dark-tertiary);
}

.single-package__share-list {
  display: flex;
  gap: calc(8 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
}

.single-package__share-list img { display: block; width: calc(40 * var(--px)); height: calc(40 * var(--px)); }
.single-package__share-list a { display: block; border-radius: var(--radius-s); transition: opacity var(--animation-default-half); }
.single-package__share-list a:hover { opacity: 0.8; }

/* The enquiry block sits on white here, as on the design page. */
main:has(.single-package) .section_form-split[data-theme-section="tint"] { background-color: var(--brand-white); }

/* Agent lines under the enquiry form's intro (blocks/form_split on a package page). */
.form-split__agent {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
}

.form-split__agent li { display: flex; align-items: center; gap: calc(8 * var(--px)); }
.form-split__agent img { width: calc(20 * var(--px)); height: calc(20 * var(--px)); }
.form-split__agent a { color: inherit; text-decoration: none; }
.form-split__agent a:hover { text-decoration: underline; }

/* ---- Folded description (js/components/read-more.js) --------------------- */

.single-package__more { --read-more-h: 420px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-05); }

.single-package__more.is-folded .single-package__prose {
  max-height: var(--read-more-h);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 120px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 120px), transparent);
}

/* ---- Enquire under the specs: phones and tablets only, where the Explore
   rail (and its Enquire Now button) is not shown ------------------------- */

.single-package .single-package__enquire { display: none; }

/* ---- A short window (14 inch laptops): the Explore card, quiz card and
   share row all fit under the bar (review board, 17 Nov) ------------------ */

@media screen and (min-width: 992px) and (max-height: 860px) {
  .single-package .single-design__sticky { gap: calc(16 * var(--px)); }
  .single-package .anchor-nav { gap: var(--space-05); padding-top: var(--space-06); }
  .single-package .anchor-nav__list { gap: calc(2 * var(--px)); }
  .single-package .anchor-nav__link { min-height: calc(40 * var(--px)); padding-block: calc(10 * var(--px)); }
  .single-package .single-design__cta { height: calc(200 * var(--px)); }
}

/* ---- Below desktop ------------------------------------------------------- */

@media screen and (max-width: 991px) {
  .single-package .single-package__enquire { display: inline-flex; align-self: flex-start; }
  .single-package__plans-wrap { width: auto; padding: var(--space-06); }
  .single-package__plan-head { padding: var(--space-08) var(--space-06) 0; }
  .single-package__plans { --plan-cols: 2; gap: var(--space-06); }
}

@media screen and (max-width: 767px) {
  .package-agent { flex-direction: column-reverse; gap: 0; }
  .package-agent__photo { width: 100%; height: auto; aspect-ratio: 1; }
  .single-package__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-package__photo .single-package__zoom img { height: calc(180 * var(--px)); }
  .single-package__plans,
  .single-package__plans:has(> :nth-child(2):last-child) { --plan-cols: 1; }
  .single-package__map { height: calc(360 * var(--px)); }
  .single-package__price-value { font-size: calc(30 * var(--px)); }
  .single-package__more { --read-more-h: 300px; }
  .single-package .single-package__enquire { align-self: stretch; }
}

/* The Location map's pin is the listing pin, not a button. */
.pkg-pin.is-static { cursor: default; }


/* --- css/pages/single-home-design.css --- */
/* pages/single-home-design.css — one home design
   (template-parts/content-single-home-design.php; Figma Home Design Detail -
   Gated Price 1819:53751 / No Price 1920:38532, popup 1822:92967). No mobile
   frame yet: below 992 the sidebar drops and the columns stack, which is
   Claude's reading, open to review.

   The page stays white top to bottom (Chris, 9 Oct 2026, to the Gated
   Price frame): the floorplan is a white card with a 15% charcoal line on
   white, and the shared blocks below are white too (their Design Page rows
   are set to the light background; form_split, always tint elsewhere, is
   turned white here).

   The Overview (white) and Floorplan bands run full width;
   the sidebar sits in a rail laid over all three in the same grid cell, so
   the cell grows to fit whichever is taller and the menu sticks under the
   compact header the whole way down. Every band keeps its content left of
   the rail (the column max-width; the plan body's 1189 cap). */

.single-design {
  --design-aside: calc(331 * var(--px));
  --design-aside-gap: calc(80 * var(--px));
  --design-band-pad: calc(112 * var(--px));
  --design-rule: rgb(50 50 50 / 0.15);
}

/* ---- Hero: the elevation as a card (Figma card 1822:96364) -------------
   The homepage home design card's rules (sections/stacking-cards-parallax.css,
   Chris 2026-09-16): width leads, full width up to the 1600 frame less 24 a
   side; height is the room between the card's top and a 24 strip at the
   bottom of the window, floor 500, ceiling 900, never taller than 16:9 of its
   width. Its top sits 24 under the bar (the body is padded by the bar). */
.single-design__hero {
  --hero-gap: calc(24 * var(--px));
  --hero-top: calc(var(--nav-offset, 0px) + var(--hero-gap));
  --hero-w: min(calc(100vw - 2 * var(--hero-gap)), calc(1600px - 48px));
  --hero-room: calc(100svh - var(--hero-top) - var(--hero-gap));
  --hero-h: min(clamp(500px, var(--hero-room), 900px), calc(var(--hero-w) * 9 / 16));

  margin-top: var(--hero-gap);
  padding-inline: var(--hero-gap);
  scroll-margin-top: var(--hero-top);
}

.single-design__hero-card {
  position: relative;
  width: 100%;
  max-width: calc(1600px - 48px);
  height: var(--hero-h);
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-l);
  background-color: var(--brand-silver);
  color: var(--color-text-light);
}

/* Figma elevation-bgBlur: black 10% at the top edge, clear by 289. */
.single-design__hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.25) 0, transparent calc(289 * var(--px)));
  pointer-events: none;
}

.single-design__hero-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-design__hero-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-06);
  padding: var(--space-09);
}

.single-design__hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: calc(92 * var(--px));
  line-height: calc(86 * var(--px));
  letter-spacing: -0.027em;
  font-weight: 400;
  color: var(--color-text-light);
  text-box: trim-both cap alphabetic;
}

.single-design__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-03);
}

.single-design__badges .badge.is-dark {
  --badge-ink: var(--brand-silver);
  background-color: rgb(50 50 50 / 0.8);
  box-shadow: none;
}

/* ---- Bands + sidebar rail ------------------------------------------------ */

.single-design__layout { display: grid; }

.single-design__bands,
.single-design__rail { grid-area: 1 / 1; }

.single-design__bands {
  display: flex;
  flex-direction: column;
}

.single-design__bands > :last-child { flex-grow: 1; }

.single-design__band { padding-block: var(--design-band-pad); }

.single-design__band.is-overview { background-color: var(--brand-white); }

.single-design__col {
  display: flex;
  flex-direction: column;
  gap: calc(35 * var(--px));
  max-width: calc(100% - var(--design-aside) - var(--design-aside-gap));
}

.single-design__rail { pointer-events: none; }

.single-design__rail .container { height: 100%; }

.single-design__aside {
  width: var(--design-aside);
  height: 100%;
  margin-left: auto;
  padding-block: calc(106 * var(--px)) calc(104 * var(--px));
  pointer-events: auto;
}

.single-design__sticky {
  position: sticky;
  top: calc(80 * var(--px) + 24 * var(--px) + var(--admin-bar));
  display: flex;
  flex-direction: column;
  gap: calc(26 * var(--px));
}

/* ---- Overview (Figma 01. Overview 1819:53893) ------------------------- */

.single-design__col { gap: var(--space-08); }

.single-design__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-07);
}

.single-design__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--display-xxl-size);
  line-height: var(--display-xxl-lh);
  letter-spacing: var(--display-xxl-ls);
  font-weight: 400;
  text-box: trim-both cap alphabetic;
}

/* View Price (Figma btn-viewPrice 1920:39724): outlined, 50 tall, lock icon. */
.price-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-04);
  min-width: calc(80 * var(--px));
  height: calc(50 * var(--px));
  padding: calc(3 * var(--px)) var(--space-06) 0;
  border: 1.5px solid var(--brand-charcoal);
  border-radius: var(--radius-s);
  background: none;
  color: var(--brand-charcoal);
  font-family: var(--font-sans);
  font-size: calc(17 * var(--px));
  font-weight: 630;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--animation-default-half), border-radius var(--animation-default-half);
}

.price-btn:hover {
  background-color: var(--color-accent);
  border-radius: calc(25 * var(--px));
}

.price-btn__icon {
  width: calc(13 * var(--px));
  height: calc(17 * var(--px));
  margin-top: calc(-3 * var(--px));
}

/* The unlocked price. No frame for it yet: Claude's reading, open to review. */
.price-btn[hidden],
.single-design__price-reveal[hidden] { display: none; }

.single-design__price-value {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
  text-box: trim-both cap alphabetic;
}

.single-design__price-note {
  max-width: calc(640 * var(--px));
  margin: var(--space-04) 0 0;
  font-size: var(--body-xs-size, calc(13 * var(--px)));
  line-height: 1.4;
  color: var(--color-text-dark-secondary);
}

.single-design__price-note:empty { display: none; }

.single-design__specs {
  display: flex;
  flex-wrap: wrap;
  gap: calc(16 * var(--px)) calc(48 * var(--px));
  margin: 0;
  padding: 0 0 calc(35 * var(--px));
  border-bottom: 1px solid var(--design-rule);
  list-style: none;
  font-size: var(--body-l-size);
  line-height: var(--body-l-lh);
  font-weight: 500;
}

.single-design__specs li,
.single-design__plan-specs li {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
  white-space: nowrap;
}

.single-design__specs img {
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  margin-right: calc(8 * var(--px));
}

.single-design__specs strong,
.single-design__plan-specs strong { font-weight: 720; }

.single-design__copy {
  display: flex;
  flex-direction: column;
  gap: calc(30 * var(--px));
}

.single-design__lead {
  font-size: var(--testimonial-size);
  line-height: var(--testimonial-lh);
  letter-spacing: var(--testimonial-ls);
  font-weight: 600;
}

.single-design__lead p { margin: 0; }

.single-design__text {
  font-size: var(--body-l-size);
  line-height: var(--body-l-lh);
  font-weight: 500;
}

.single-design__text p { margin: 0; }
.single-design__text p + p { margin-top: calc(10 * var(--px)); }

/* Key features (Figma 1844:26710): chip-mm pills. */
.single-design__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-07);
  margin-top: var(--space-02);
}

.single-design__features-heading,
.single-design__heading { margin: 0; }

.single-design__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-04);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The chips are components/chip.css (a tag, so no hover). */

/* ---- Sidebar image card (Figma sideBar-large) ---------------------------- */

.single-design__cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(350 * var(--px));
  padding: calc(32 * var(--px)) var(--space-06) var(--space-06);
  overflow: hidden;
  border-radius: var(--radius-m);
  background-color: var(--brand-charcoal);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.03), 0 0 3px rgba(0, 0, 0, 0.12);
  color: var(--brand-silver);
  text-decoration: none;
}

.single-design__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgb(37 37 37 / 0.8), rgb(37 37 37 / 0) 40%);
  pointer-events: none;
}

.single-design__cta-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale var(--animation-default);
}

/* The card as the popup opener (Design Page > Popup heading). */
button.single-design__cta {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.single-design__cta:hover .single-design__cta-img { scale: 1.03; }

.single-design__cta-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: calc(27 * var(--px));
  line-height: 1.2;
  letter-spacing: -0.0185em;
  font-weight: 500;
}

.single-design__cta-arrow {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  border-radius: var(--radius-full);
  background-color: var(--brand-silver);
  color: var(--brand-charcoal);
  transition: background-color var(--animation-default-half);
}

.single-design__cta-arrow svg { width: calc(24 * var(--px)); height: calc(24 * var(--px)); }

.single-design__cta:hover .single-design__cta-arrow { background-color: var(--color-accent); }

/* ---- Floorplan card ------------------------------------------------------ */

.single-design__plan-section {
  padding: 0 calc(24 * var(--px)) calc(24 * var(--px));
  background-color: var(--brand-white);
}

/* The card sits 24 below the Overview, whose bottom padding is 72 there, not
   112 (Kellie, review board 20 Nov: the space felt large). */
.single-design__band.is-overview + .single-design__plan-section { padding-top: calc(24 * var(--px)); }
.single-design__band.is-overview:has(+ .single-design__plan-section) { padding-bottom: calc(72 * var(--px)); }

.single-design__plan-card {
  max-width: calc(var(--size-container) - 48 * var(--px));
  margin-inline: auto;
  border: 1px solid var(--design-rule);
  border-radius: var(--radius-l);
  background-color: var(--brand-white);
}

/* The shared enquiry block, tint on every other page. */
.single-home_design .section_form-split[data-theme-section="tint"] { background-color: var(--brand-white); }

.single-design__plan-card > .single-design__heading { padding: calc(80 * var(--px)) calc(56 * var(--px)) calc(48 * var(--px)); }

/* The plan keeps clear of the sticky sidebar, like the bands' columns. */
.single-design__plan-body {
  display: flex;
  align-items: flex-start;
  width: calc(100% - var(--design-aside) - var(--design-aside-gap));
  padding: 0 calc(80 * var(--px)) calc(80 * var(--px)) calc(56 * var(--px));
}

.single-design__plan-specs {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: calc(24 * var(--px));
  width: calc(226 * var(--px));
  margin: 0;
  padding: calc(24 * var(--px)) 0 0;
  list-style: none;
  font-size: var(--body-m-size);
  line-height: var(--body-m-lh);
  font-weight: 500;
}

.single-design__plan-specs li { gap: calc(4 * var(--px)); }

.single-design__plan-specs img {
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  margin-right: calc(8 * var(--px));
}

.single-design__plan {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  min-width: 0;
  padding-inline: calc(56 * var(--px)) calc(80 * var(--px));
}

.single-design__plan-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(700 * var(--px));
  object-fit: contain;
}

/* A short window: the whole plan fits under the header. */
@media screen and (min-width: 992px) {
  .single-design__plan-img { max-height: min(calc(700 * var(--px)), calc(100svh - 128px)); }
}

/* ---- Below desktop: no sidebar, columns stack ---------------------------- */

@media screen and (max-width: 991px) {
  .single-design { --design-band-pad: calc(64 * var(--px)); }
  .single-design__band.is-overview:has(+ .single-design__plan-section) { padding-bottom: calc(40 * var(--px)); }


  .single-design__rail { display: none; }

  .single-design__col { max-width: none; }


  .single-design__plan-body {
    flex-direction: column;
    width: auto;
    gap: calc(32 * var(--px));
    padding: 0 var(--space-06) var(--space-08);
  }

  .single-design__plan-card > .single-design__heading { padding: var(--space-08) var(--space-06) var(--space-06); }

  .single-design__plan-specs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: calc(16 * var(--px)) calc(32 * var(--px));
    width: auto;
    padding-top: 0;
  }

  .single-design__plan { padding-inline: 0; align-self: stretch; }
}

@media screen and (max-width: 767px) {
  /* The homepage card's mobile shape (Figma 1480:36649: 390 tall). */
  .single-design__hero {
    --hero-gap: var(--container-padding);
    --hero-h: calc(390 * var(--px));
  }

  .single-design__hero-header { padding: calc(20 * var(--px)); gap: var(--space-04); }

  .single-design__hero-title {
    font-size: var(--display-xl-size);
    line-height: var(--display-xl-lh);
  }

  .single-design__specs { gap: calc(12 * var(--px)) calc(24 * var(--px)); font-size: var(--body-m-size); }


  .single-design__plan-section { padding-inline: calc(12 * var(--px)); }
}


/* --- css/sections/footer-cta.css --- */
/* sections/footer-cta.css — site-wide CTA (blocks/footer-cta/render.php).
   Standalone: dark section before the footer. .is-in-footer: rendered inside
   the footer chrome, so it paints no background of its own and just spaces
   itself against the footer's top edge. */

.section_footer-cta .footer-cta__cols { --cols: 2; }

.footer-cta__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-xs);
  padding: var(--gap-l);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
}

/* Scoped to this block's own section: footer.php's footer band uses the same
   .footer-cta__title class, and this file loads after core/footer.css, so an
   unscoped rule here was overriding the band's type-display-xxl with 29px. */
.section_footer-cta .footer-cta__title {
  margin: 0;
  font-size: var(--text-l);
}

.footer-cta__text {
  margin: 0;
  color: var(--color-ink-soft);
}

.footer-cta__item .btn-group { margin-top: auto; padding-top: var(--gap-s); }

.section_footer-cta.is-in-footer {
  padding-top: var(--padding-s);
  padding-bottom: var(--padding-xs);
}

/* Inside the footer the CTA is a guest, not a hero: one size down. */
.section_footer-cta.is-in-footer .block-intro__title { font-size: var(--text-xl); }


/* --- css/sections/block-index.css --- */
/* sections/block-index.css — the dev section-index checklist (blocks/block_index). */

.block-index__title {
  margin: 0 0 var(--space-s);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink-soft);
}

.block-index__title + .block-index__list { margin-bottom: var(--space-m); }

.block-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.block-index__item {
  display: flex;
  align-items: center;
  gap: var(--gap-s);
  padding: 0.5em 0;
  border-bottom: 1px solid var(--color-line);
}

.block-index__check input {
  width: 1.1em;
  height: 1.1em;
  accent-color: var(--color-ink);
  cursor: pointer;
}

.block-index__link { font-weight: 500; }
.block-index__link:hover { text-decoration: underline; }

.block-index__item:has(input:checked) .block-index__link {
  text-decoration: line-through;
  color: var(--color-ink-soft);
}

.block-index__meta {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  font-family: ui-monospace, monospace;
}


/* --- css/components/sticky-steps.css --- */
/* components/sticky-steps.css — carried from vault 'sticky-steps-basic'; tokenise on first real use. */

.sticky-steps {
  min-height: 100dvh;
  position: relative;
  overflow: clip;
}

.sticky-steps__container {
  max-width: 74em;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5em;
  padding-right: 1.5em;
}

.sticky-steps__collection {
  min-height: 100dvh;
  display: flex;
  position: relative;
}

.sticky-steps__list {
  grid-column-gap: 30dvh;
  grid-row-gap: 30dvh;
  flex-flow: column;
  flex: 1;
  padding-top: calc(50dvh - 7.5em);
  padding-bottom: calc(50dvh - 7.5em);
  display: flex;
}

.sticky-steps__text {
  grid-column-gap: 2em;
  grid-row-gap: 2em;
  flex-flow: column;
  width: 50%;
  padding-right: 6em;
  display: flex;
}

.sticky-steps__eyebrow {
  opacity: .5;
  text-transform: uppercase;
  font-size: 1.3125em;
  font-weight: 700;
}

.sticky-steps__h2 {
  letter-spacing: -.04em;
  margin-top: 0;
  margin-bottom: 0;
  font-size: min(5.5em, 15vw);
  font-weight: 500;
  line-height: .9;
}

.sticky-steps__p {
  opacity: .6;
  margin-bottom: 0;
  font-size: min(1.4375em, 5vw);
  line-height: 1.4;
}

.sticky-steps__media {
  width: 50%;
  height: 100%;
  padding-left: 3em;
  position: absolute;
  top: 0;
  right: 0;
}

.sticky-steps__sticky {
  align-items: center;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  position: sticky;
  top: 0;
}

.sticky-steps__visual {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-full);
  width: 100%;
  position: relative;
}

.sticky-steps__cover-image {
  object-fit: cover;
  border-radius: inherit;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

@media screen and (min-width: 992px) {
  [data-sticky-steps-item-status] .sticky-steps__visual {
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    opacity: 0;
    visibility: hidden;
  }

  [data-sticky-steps-item-status="before"] .sticky-steps__visual,
  [data-sticky-steps-item-status="active"] .sticky-steps__visual {
    opacity: 1;
    visibility: visible;
  }

  [data-sticky-steps-item-status] .sticky-steps__text {
    transition: opacity 0.5s ease-in-out;
    opacity: 0.25;
  }

  [data-sticky-steps-item-status="active"] .sticky-steps__text {
    opacity: 1;
  }
}

@media screen and (max-width: 991px) {
  .sticky-steps__list {
    grid-column-gap: 7.5em;
    grid-row-gap: 7.5em;
    padding-top: 10em;
    padding-bottom: 10em;
  }

  .sticky-steps__text {
    width: 100%;
    padding-bottom: 5em;
    padding-right: 0;
  }

  .sticky-steps__sticky {
    min-height: auto;
    position: relative;
    top: auto;
  }

  .sticky-steps__media {
    width: 100%;
    height: auto;
    padding-left: 0;
    position: relative;
    top: auto;
    right: auto;
  }
}

@media screen and (max-width: 767px) {
  .sticky-steps__text {
    grid-column-gap: 1.5em;
    grid-row-gap: 1.5em;
  }
}


/* --- css/components/image-cycle.css --- */
/* components/image-cycle.css — carried from vault 'auto-image-cycle-slideshow'; tokenise on first real use. */

.image-cycle-collection {
  width: min(95vw, 60em);
  position: relative;
}

.image-cycle-collection__before {
  padding-top: 66.666%;
}

.image-cycle-collection__list {
  z-index: 0;
  border-radius: 2em;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.image-cycle-collection__item {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

[data-image-cycle-item="active"] {
  transition: opacity 0.4s ease 0s, visibility 0s ease 0s;
  opacity: 1;
  visibility: visible;
  z-index: 3;
}

[data-image-cycle-item="previous"] {
  transition: opacity 0.4s ease 0.4s, visibility 0s ease 0.4s;
  opacity: 0;
  visibility: visible;
  z-index: 2;
}

[data-image-cycle-item="not-active"] {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

.image-cycle-collection__img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
}

@media screen and (max-width: 767px) {
  .image-cycle-collection__list {
    border-radius: var(--radius-m);
  }
}


/* --- css/components/lightbox.css --- */
/* components/lightbox.css — carried from vault 'lightbox-setup'; tokenise on first real use. */

.gallery-grid {
  grid-column-gap: 1.25em;
  grid-row-gap: 4em;
  flex-flow: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  padding-bottom: 8em;
  display: flex;
}

.gallery-grid__item {
  width: calc(33.3333% - .833333em);
}

.gallery-item__button {
  outline-offset: -1px;
  background-color: #0000;
  border: 1px #000;
  border-radius: .375em;
  outline: 1px #131313;
  width: 100%;
  padding: 0;
}

.gallery-item__button:focus-visible {
  outline-offset: 3px;
  border-radius: var(--radius-xs);
  outline: 1px solid #131313;
}

.gallery-item__img {
  border-radius: .375em;
  width: 100%;
}

.lightbox-wrap {
  z-index: 100;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100dvh;
  display: none;
  position: fixed;
  inset: 0% 0% auto;
}

.lightbox-wrap.is-active {
  display: flex;
}

.lightbox-img__wrap {
  width: 90vw;
  height: calc(100svh - 10em);
}

.lightbox-img__container {
  width: 100%;
  height: 100%;
}

.lightbox-img__list {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.lightbox-img__item {
  visibility: hidden;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
}

.lightbox-img__item.is-active {
  visibility: visible;
}

.lightbox-img {
  object-fit: contain;
  border-radius: .375em;
  min-width: auto;
  max-height: 100%;
}

.lightbox-img__item img { 
  object-fit: contain !important;
  min-width: auto;
  width: auto;
  max-height: 100%;
}

.lightbox-nav {
  z-index: 2;
  color: #fff;
  justify-content: space-between;
  align-items: center;
  display: flex;
  position: absolute;
  bottom: 2em;
  left: 2em;
  right: 2em;
}

.lightbox-nav__col {
  width: 33.333%;
}

.lightbox-nav__col.start {
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

.lightbox-nav__col.center {
  grid-column-gap: 2em;
  grid-row-gap: 2em;
  justify-content: center;
  align-items: center;
  display: flex;
}

.lightbox-nav__col.end {
  justify-content: flex-end;
  align-items: center;
  display: flex;
}

.lightbox-nav__text {
  margin-bottom: 0;
  font-size: 1em;
}

.lightbox-nav__button {
  grid-column-gap: .5em;
  grid-row-gap: .5em;
  background-color: #0000;
  justify-content: flex-start;
  align-items: center;
  margin: -1em;
  padding: 1em;
  display: flex;
}

.lightbox-nav__dot {
  background-color: currentColor;
  border-radius: var(--radius-full);
  width: .375em;
  height: .375em;
  margin-bottom: -.1em;
  transition-property: transform;
  transition-duration: .45s;
  transition-timing-function: cubic-bezier(.625, .05, 0, 1);
}

@media screen and (max-width: 767px) {
  .gallery-grid {
    grid-column-gap: 1em;
  }

  .gallery-grid__item {
    width: calc(50% - .5em);
  }
}

@media screen and (max-width: 479px) {
  .gallery-grid {
    grid-column-gap: .75em;
    grid-row-gap: 3em;
  }

  .gallery-grid__item {
    width: calc(50% - .375em);
  }
}


/* --- css/components/gallery-slideshow.css --- */
/* components/gallery-slideshow.css — carried from vault 'parallax-image-gallery-with-thumbnails'; tokenise on first real use. */

.img-slider {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  border-radius: var(--radius-s);
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 100vh;
  display: flex;
  position: relative;
}

.img-slider__list {
  grid-template-rows: 100%;
  grid-template-columns: 100%;
  place-items: center;
  width: 100%;
  height: 100%;
  display: grid;
  overflow: hidden;
}

.img-slide {
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  grid-area: 1 / 1 / -1 / -1;
  place-items: center;
  width: 100%;
  height: 100%;
  display: grid;
  position: relative;
  overflow: hidden;
}

.img-slide.is--current {
  opacity: 1;
  pointer-events: auto;
}

.img-slide__inner {
  object-fit: cover;
  will-change: transform;
  width: 100%;
  height: 100%;
  position: absolute;
}

.img-slider__nav {
  z-index: 2;
  grid-column-gap: .5rem;
  grid-row-gap: .5rem;
  pointer-events: none;
  flex-flow: wrap;
  justify-content: center;
  align-items: center;
  max-width: 95vw;
  display: flex;
  position: absolute;
  bottom: 2rem;
}

.img-slider__thumb {
  aspect-ratio: 1.5;
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid #fff3;
  border-radius: .3125rem;
  width: 7rem;
  transition: border-color .2s;
  position: relative;
  overflow: hidden;
}

.img-slider__thumb:hover {
  border-color: #fff6;
}

.img-slider__thumb.is--current {
  border-color: #fff;
}

.slider-thumb__img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 991px) {
  .img-slider__list {
    width: 100%;
  }

  .img-slider__thumb {
    flex: none;
  }
}

@media screen and (max-width: 767px) {
  .img-slider__nav {
    flex-flow: wrap;
  }

  .img-slider__thumb {
    border-radius: var(--radius-xs);
    width: 5rem;
  }
}

@media screen and (max-width: 479px) {
  .img-slider__thumb {
    width: 4.5rem;
  }
}


/* --- css/components/card.css --- */
/* components/card.css — every Locale card (Figma "Cards", node 925:23940).
   One component, variants by modifier. Blocks position cards; this file owns
   how they look.

   .card                  article card (Figma card-article/desktop; resources, news): template-parts/resource-card.php,
                          blocks/posts_grid
     > __link > __media (__image) + __body (__badges [.badge…, __meta], __title)
   .card.is-large         the same card at large scale (serif display-l title; default is utility-l)
   .card.is-question      FAQ question card (not in Figma yet; wireframe skin)
   .card.is-team          team member: blocks/team_listing
     > __media (__image) + __body (__title, __role, __actions .btn…)
   .card.is-tile          small tile: blocks/interest_carousel
     > .badge + __title + __arrow.brand-shape
   .card.is-icon[.is-cta|.is-photo] icon tile: blocks/icon_cards
     > __top (__icon, __title, __text) + .btn.is-link
   .card.is-package       house and land package: blocks/card_carousel
     > __image + __head (__title, __specs > __spec) + __foot (__arrow)
   .card.is-design        home design listing card: template-parts/home-design-card.php
     > __media (__image.is-elevation, __plan, __badges, __peek) + __popup + __body (__title > __link, __specs)

   Titles use the type tokens; colours read the semantic slots so dark bands
   flip them. Sizes are Figma px times --px. */

.card {
  position: relative;
  color: var(--color-ink);
}

.card__link {
  display: flex;
  flex-direction: column;
  gap: calc(24 * var(--px));
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-m);
  /* A shade darker than the silver page, so a card still waiting for its
     photo reads as a card, not a hole in the grid. */
  background-color: color-mix(in srgb, var(--brand-charcoal) 10%, var(--brand-silver));
}

.card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card body gaps are the Figma gaps less 5: Figma trims every text box to
   its cap height, our titles keep their half-leading, so the drawn gap
   read 5 bigger (Chris, 6 Oct 2026). */
.card__body {
  display: flex;
  flex-direction: column;
  gap: calc(19 * var(--px));
}

.card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(8 * var(--px));
}

/* Time estimate after the badges (Figma badgeList: dot, then "3 mins"). */
.card__meta {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--px));
  font-size: calc(10 * var(--px));
  font-weight: 580;
  letter-spacing: 0.25px;
  line-height: 1;
  color: var(--color-ink);
}

.card__meta::before {
  content: '';
  width: calc(3 * var(--px));
  height: calc(3 * var(--px));
  border-radius: 50%;
  background-color: currentColor;
}

/* The content-type icon on the image corner (Figma mmItem-richLinkCard-icon-v2). */
.card__type {
  position: absolute;
  top: var(--space-04);
  right: var(--space-04);
  z-index: 2;
  display: grid;
  place-items: center;
  width: calc(32 * var(--px));
  height: calc(32 * var(--px));
  border-radius: var(--radius-s);
  background-color: color-mix(in srgb, var(--brand-silver) 90%, transparent);
}

.card__type img { width: calc(24 * var(--px)); height: calc(24 * var(--px)); object-fit: contain; }

/* Podcast card (Figma card-article/v2): square artwork centred on the green
   audio-graphic background. The artwork is a square, never the cover. */
.card.is-podcast .card__media { background-color: #85c786; }

.card__audio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.card.is-podcast .card__image.is-artwork {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(170 * var(--px));
  height: calc(170 * var(--px));
  border-radius: var(--radius-m);
  translate: -50% -50%;
  object-fit: cover;
}

.card.is-large.is-podcast .card__image.is-artwork { width: calc(300 * var(--px)); height: calc(300 * var(--px)); }

.card__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--utility-l-size);
  line-height: var(--utility-l-lh);
  letter-spacing: var(--utility-l-ls);
  font-weight: var(--utility-l-weight);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: calc(2 * var(--px));
  text-underline-offset: 0.15em;
  transition: text-decoration-color var(--animation-default-half);
}

.card:hover .card__title { text-decoration-color: var(--color-accent-line); }

.card.is-large .card__body { gap: calc(27 * var(--px)); }

.card.is-large .card__title,
.card.is-team .card__title,
.card.is-tile .card__title { font-family: var(--font-serif); }

.card.is-team .card__title,
.card.is-tile .card__title {
  font-size: var(--display-s-size);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
  font-weight: var(--display-s-weight);
}

.card.is-large .card__title {
  font-size: var(--display-l-size);
  line-height: var(--display-l-lh);
  letter-spacing: var(--display-l-ls);
  font-weight: var(--display-l-weight);
}

/* Filter + live search states (the grid components set data-filter-status) */
.card[data-filter-status] {
  transition:
    opacity var(--duration-default-half) var(--cubic-default),
    transform var(--duration-default-half) var(--cubic-default);
}

.card[data-filter-status="not-active"] { display: none; }

.card[data-filter-status="transition-out"] {
  opacity: 0;
  transform: scale(0.97);
}

/* ---- Question (FAQ) ------------------------------------------------- */

/* Figma Knowledge Hub 925:28648 "Common questions" (30 Sep 2026): white
   card, accent icon square, serif question, answer, Learn more link. */
.card.is-question {
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--px));
  padding: calc(35 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--brand-white);
  color: var(--brand-charcoal);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.03), 0 0 3px rgba(0, 0, 0, 0.12);
  transition: box-shadow var(--animation-default-half);
}

.card.is-question:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 0 3px rgba(0, 0, 0, 0.12); }

.card.is-question .card__title {
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
  font-weight: var(--display-s-weight);
  text-decoration: none;
}

/* Figma card-faqTile: 50px accent-70 square, 40px mono icon, 35 to the question. */
.card__question-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(50 * var(--px));
  height: calc(50 * var(--px));
  margin-bottom: calc(19 * var(--px));
  border-radius: var(--radius-s);
  background-color: var(--color-accent-tint-2);
  color: var(--brand-charcoal);
  font-weight: 700;
}

.card__question-icon svg,
.card__question-icon img { width: calc(40 * var(--px)); height: calc(40 * var(--px)); }

.card__excerpt {
  margin: 0;
  font-size: var(--body-s-size);
  line-height: var(--body-s-lh);
  color: var(--color-text-dark-secondary);
}

.card__more {
  align-self: flex-start;
  margin-top: auto;
}

/* Figma: 60 from the answer to Learn more. space-09 (56) is the nearest
   token; the flex gap makes up the rest. */
.card.is-question .card__more { padding-top: calc(var(--space-09) - var(--space-05)); }

/* ---- Team member ---------------------------------------------------- */

.card.is-team {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-m);
  background-color: var(--brand-white);
  color: var(--brand-charcoal);
  box-shadow: 0 0 3px rgb(0 0 0 / 12%), 0 3px 4px rgb(0 0 0 / 3%);
  transition:
    background-color var(--animation-default),
    box-shadow var(--animation-default);
}

/* Figma: 450x461 full bleed at rest; on hover a 24px-inset photo 381 tall
   with the arch mask. Heights balance so the card does not grow. */
.card.is-team .card__media {
  aspect-ratio: 450 / 461;
  margin: 0;
  transition:
    margin var(--animation-default),
    aspect-ratio var(--animation-default),
    border-radius var(--animation-default);
}

.card.is-team .card__body {
  flex: 1;
  gap: calc(11 * var(--px));
  padding: calc(35 * var(--px)) calc(32 * var(--px)) calc(32 * var(--px));
}

.card.is-team .card__title,
.card.is-package .card__title { text-decoration: none; }

.card__role {
  margin: calc(-8 * var(--px)) 0 0;
  font-size: var(--body-s-size);
  line-height: 1;
  font-weight: 600;
}

.card__actions {
  display: flex;
  gap: calc(12 * var(--px));
}

.card__actions .btn { flex: 1; }

/* The card is always light, so on a dark band (Group team page) its subtle
   button keeps the light-page colours instead of the band's light ink. */
.card.is-team .btn.is-subtle {
  --btn-bg: color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  --btn-ink: var(--brand-charcoal);
  --btn-bg-hover: color-mix(in srgb, var(--brand-charcoal) 15%, transparent);
  --btn-ink-hover: var(--brand-charcoal);
}

/* The card turns accent on hover, so its button takes the on-green hover. */
.card.is-team:hover .btn:not(.is-subtle, .is-accent, .is-link) { --btn-bg-hover: var(--brand-dark-charcoal); --btn-ink-hover: var(--color-text-light); }

.card.is-team:hover {
  background-color: var(--color-accent);
  box-shadow: 0 7px 12px rgb(50 50 50 / 8%), 0 3px 4px rgb(0 0 0 / 8%), 0 -1px 2px rgb(0 0 0 / 5%);
}

.card.is-team:hover .card__media {
  aspect-ratio: 402 / 381;
  margin: calc(24 * var(--px)) calc(24 * var(--px)) 0;
  border-radius: 50% 50% var(--radius-m) var(--radius-m) / 61% 61% var(--radius-m) var(--radius-m);
}

@media (hover: hover) {
  .card.is-team .card__actions {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
      max-height var(--animation-default),
      opacity var(--animation-default-half);
  }

  .card.is-team:hover .card__actions,
  .card.is-team:focus-within .card__actions {
    max-height: calc(40 * var(--px));
    opacity: 1;
  }
}

/* ---- Small tile ----------------------------------------------------- */

.card.is-tile {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: calc(20 * var(--px));
  width: calc(300 * var(--px));
  min-height: calc(207 * var(--px));
  padding: calc(24 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--color-accent);
  color: var(--brand-charcoal);
  text-decoration: none;
}

.card.is-tile .badge {
  --badge-ink: var(--brand-charcoal);
  align-self: flex-start;
}

.card.is-tile:hover .card__title { text-decoration-color: var(--brand-silver); }

.card__arrow {
  align-self: flex-end;
  align-items: center;
  justify-content: center;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  margin-top: auto;
}

.card__arrow svg {
  position: relative;
  z-index: 1;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
}

/* The tile's arrow shape is silver and only appears on hover */
.card.is-tile .brand-shape::before,
.card.is-tile .brand-shape::after {
  background-color: var(--brand-silver);
  opacity: 0;
}

.card.is-tile:hover .brand-shape::before { opacity: 1; }
[data-brand="financial"] .card.is-tile:hover .brand-shape::before { opacity: 0; }
[data-brand="financial"] .card.is-tile:hover .brand-shape::after { opacity: 1; }

/* ---- Icon tile (Figma cardp-iconTile) --------------------------------
   > __icon + __title + __text [+ .btn.is-link]; .is-cta = the call-to-action
   variant (silver 10% on dark bands, charcoal on light ones). */

.card.is-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(20 * var(--px));
  padding: calc(35 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--color-accent);
  color: var(--color-text-dark);
}

.card.is-icon .card__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(20 * var(--px));
}

.card__icon {
  display: block;
  width: calc(32 * var(--px));
  height: calc(32 * var(--px));
  object-fit: contain;
}

.card.is-icon .card__title {
  font-family: var(--font-sans);
  font-size: var(--utility-l-size);
  line-height: var(--utility-l-lh);
  letter-spacing: var(--utility-l-ls);
  font-weight: var(--utility-l-weight);
  text-decoration: none;
}

/* Trimmed like Figma, so the 20 between title and text is the visible gap
   (Monique QA #4, #23: it read about 30). */
.card.is-icon:not(.is-photo) .card__title,
.card.is-icon .card__text { text-box: trim-both cap alphabetic; }

.card.is-icon .card__text {
  margin: 0;
  font-size: var(--body-s-size);
  line-height: var(--body-s-lh);
  letter-spacing: var(--body-s-ls);
  font-weight: var(--body-s-weight);
  color: var(--color-text-dark-secondary);
}

/* Solid, not silver 10% over whatever is behind: the page background fades
   between themes (components/bg-fade.css), and a see-through card flashed
   while its theme swapped mid-fade. Same colour as silver 10% on charcoal
   (Figma charcoal-tint-90), and it fades on the page's timing. */
.card.is-icon.is-cta {
  background-color: color-mix(in srgb, var(--brand-silver) 10%, var(--brand-charcoal));
  color: var(--color-text-light);
  transition: background-color var(--duration-default-onehalf) var(--cubic-default);
}

:where([data-theme-section="light"], [data-theme-section="tint"]) .card.is-icon.is-cta {
  background-color: var(--brand-charcoal);
}

.card.is-icon.is-cta .card__title { color: var(--color-accent); }
.card.is-icon.is-cta .card__text { color: var(--color-text-light-secondary); }
.card.is-icon .btn.is-link { align-self: flex-start; }
.card.is-icon.is-cta .btn.is-link { --btn-ink: var(--color-text-light); }

/* Photo variant (Figma card-default-m/photo-fullBleed, Investors 2226:110840):
   the photo fills the card under the top elevation gradient, serif title top
   left, silver arrow disc bottom right; the whole card is one link. */
.card.is-icon.is-photo {
  position: relative;
  padding: 0;
  overflow: hidden;
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
}

/* A row of photo cards only (Figma block-cardGroup "with photo cards" 2212:181788):
   nothing else sets the row height, so each card keeps the frame's 464 x 420. */
.icon-cards__grid:not(:has(> .card:not(.is-photo))) > .card.is-photo { aspect-ratio: 464 / 420; }

.card.is-photo .card__cover {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(16 * var(--px));
  padding: calc(32 * var(--px));
  color: inherit;
  text-decoration: none;
}

.card.is-photo .card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale var(--animation-default);
}

.card.is-photo .card__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--card-elevation-grad-top), rgb(0 0 0 / 0.1);
  pointer-events: none;
}

.card.is-photo .card__title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding-right: calc(20 * var(--px));
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
  font-weight: var(--display-s-weight);
  color: var(--brand-silver);
}

.card.is-photo .card__arrow {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  border-radius: var(--radius-full);
  background-color: var(--brand-silver);
  color: var(--brand-charcoal);
  transition: background-color var(--animation-default-half);
}

/* Photo card with text: title and text top left, the link's label beside the
   arrow, and a darker wash so the copy reads over any photo. */
.card.is-photo.has-text .card__cover::before { background: linear-gradient(180deg, rgb(0 0 0 / 0.72) 0%, rgb(0 0 0 / 0.5) 55%, rgb(0 0 0 / 0.38) 100%); }
.card.is-photo.has-text .card__top { position: relative; z-index: 2; display: flex; flex-direction: column; gap: calc(16 * var(--px)); }
.card.is-photo.has-text .card__text { opacity: 1; color: var(--brand-silver); font-size: var(--body-m-size); line-height: var(--body-m-lh); }
.card.is-photo.has-text .card__foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: calc(16 * var(--px)); }
.card.is-photo.has-text .card__link-label { color: var(--brand-silver); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; }
.card.is-photo.has-text .card__arrow { flex: none; }
.icon-cards__grid:not(:has(> .card:not(.is-photo))) > .card.is-photo.has-text { aspect-ratio: auto; min-height: calc(420 * var(--px)); }
/* In the phone swipe row the card keeps the row's 280 column (its text would otherwise set the width). */
@media screen and (max-width: 767px) {
  .icon-cards__grid > .card.is-photo.has-text { width: calc(280 * var(--px)); }
}

.card.is-photo .card__arrow svg { width: calc(24 * var(--px)); height: calc(24 * var(--px)); }
.card.is-photo:hover .card__photo { scale: 1.03; }
.card.is-photo:hover .card__arrow { background-color: var(--color-accent); }

/* ---- Package card (Figma block-house&land 1158:39540) ----------------
   Photo card with a charcoal ground: the carousel sizes it, this is its
   look. */

.card.is-package {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 708 / 468;
  overflow: hidden;
  border-radius: var(--radius-m);
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
  text-decoration: none;
}

.card.is-package .card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale var(--animation-default);
}

/* Figma card-houseAndLand-feature "elevationGradient" (1158:39544): dark
   charcoal at 80% on the top edge, down to 8% by 40%, then clear by the
   bottom. The long faint tail matters - it is not a top wash that stops.
   (The frame also layers a 10% black band over the top 127 with a 0px blur;
   left out because its direction is ambiguous and the main gradient carries
   the contrast.) */
.card.is-package::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Above .card__image: both are absolute with z-index auto and the image is
     later in the DOM, so without this the photo painted over the gradient and
     it never showed at all. */
  z-index: 1;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--brand-dark-charcoal) 80%, transparent) 0,
    color-mix(in srgb, var(--brand-dark-charcoal) 8%, transparent) 40%,
    transparent 100%
  );
  pointer-events: none;
}

.card.is-package:hover .card__image { scale: 1.03; }

.card.is-package .card__head,
.card.is-package .card__foot {
  position: relative;
  z-index: 2;
  display: flex;
  padding: calc(35 * var(--px));
}

.card.is-package .card__head {
  flex-direction: column;
  gap: calc(20 * var(--px));
}

/* Figma card-houseAndLand-feature (1158:39544): display-s title trimmed to
   cap height, 20 to the spec row (Monique QA #33). */
.card.is-package .card__title {
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
  font-weight: var(--display-s-weight);
  text-box: trim-both cap alphabetic;
}

/* Specs: bed, bath, car, lot width, home area; 20 icons in the light mono
   set, 8 to the value, 20 apart (Monique QA #31, #32, #35). */
.card.is-package .card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: calc(12 * var(--px)) calc(20 * var(--px));
}

.card.is-package .card__spec {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--px));
  font-size: calc(15 * var(--px));
  font-weight: 650;
  letter-spacing: 0.1px;
  line-height: 1;
}

.card.is-package .card__spec img {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
  object-fit: contain;
}

.card.is-package .card__foot { justify-content: flex-end; }

/* 40 silver circle that morphs to the brand shape (the Homes arch) in the
   accent on hover (Monique QA #36, #37). The shape is .brand-shape's
   ::before; the card carries data-brand-shape-trigger. */
.card.is-package .card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  color: var(--brand-charcoal);
}

.card.is-package .card__arrow::before { background-color: var(--brand-silver); }
.card.is-package:hover .card__arrow::before,
.card.is-package:hover .card__arrow::after { background-color: var(--color-accent); }

.card.is-package .card__arrow svg {
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
}

@media screen and (max-width: 767px) {
  .card.is-package { aspect-ratio: 318 / 300; }

  .card.is-package .card__head,
  .card.is-package .card__foot { padding: calc(20 * var(--px)); }

  /* Tighter title to spec row on phones (Monique QA #9). */
  .card.is-package .card__head { gap: calc(12 * var(--px)); }
}

/* ---- Home design card (Figma card-homeDesign 1575:121787 / 1575:122006) --
   Both images ship in the card. The listing's [data-view] picks which one is
   the card image and which one is the peek popup behind the corner button.
   The title link stretches over the card; the peek button and popup sit
   above that overlay so nothing interactive is nested inside the link. */

.card.is-design {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-m);
  background-color: var(--brand-white);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.03), 0 0 3px rgba(0, 0, 0, 0.12);
  color: var(--brand-charcoal);
  transition: box-shadow var(--animation-default-half);
}

/* Hover (Figma cardHover-shadow-v2, listing R2 1812:21942): a lifted shadow
   and the title underlined in the accent. */
.card.is-design:hover { box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.05), 0 3px 4px rgba(0, 0, 0, 0.08), 0 7px 12px rgba(50, 50, 50, 0.08); }

.card.is-design .card__media {
  aspect-ratio: 420 / 280;
  margin: 1px;
  border-radius: calc(var(--radius-m) - 1px);
  background-color: var(--brand-silver);
}

.card.is-design .card__image {
  transition: scale var(--animation-default);
}

.card.is-design:hover .card__image.is-elevation { scale: 1.03; }

.card.is-design .card__image.is-empty { display: block; background-color: var(--brand-silver); }

.card.is-design .card__plan {
  position: absolute;
  inset: 0;
  display: none;
  padding: calc(48 * var(--px)) calc(35 * var(--px)) calc(35 * var(--px));
  background-color: var(--brand-white);
}

.card.is-design .card__plan .card__image {
  object-fit: contain;
  mix-blend-mode: multiply;
}

.card.is-design .card__badges {
  position: absolute;
  top: var(--space-04);
  left: var(--space-04);
  right: var(--space-04);
  z-index: 2;
}

.card.is-design .badge svg { width: calc(11 * var(--px)); height: calc(11 * var(--px)); }

.card.is-design .badge.is-dark {
  --badge-ink: var(--brand-silver);
  background-color: color-mix(in srgb, var(--brand-charcoal) 80%, transparent);
  box-shadow: none;
}

/* The corner button that opens the other view (Figma "topRight icon"). */
.card.is-design .card__peek {
  position: absolute;
  right: var(--space-04);
  bottom: var(--space-04);
  z-index: 3;
  display: grid;
  place-items: center;
  width: calc(32 * var(--px));
  height: calc(32 * var(--px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background-color: var(--brand-silver);
  color: var(--brand-charcoal);
  cursor: pointer;
  transition: background-color var(--animation-default-half);
}

.card.is-design .card__peek:hover,
.card.is-design.is-peek .card__peek { background-color: var(--color-accent); }

.card.is-design .card__peek-icon {
  grid-area: 1 / 1;
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
  background-color: currentColor;
  mask: center / 75% no-repeat;
}

.card.is-design .card__peek-icon.is-floorplan { mask-image: url('../img/icons/floorplan.svg'); }
.card.is-design .card__peek-icon.is-elevation { mask-image: url('../img/icons/elevation.svg'); display: none; }

/* The popup (Figma frames 1575:121799 / 1575:122007). Opens on hover of the
   button, on focus, and on tap (JS toggles .is-peek). It stays while the
   pointer is near the button (.is-peek-near, js/components/card-peek.js),
   not while it is anywhere over the popup (Monique 4 Nov). */
.card.is-design .card__popup {
  position: absolute;
  right: calc(-12 * var(--px));
  bottom: calc(-10 * var(--px));
  z-index: 4;
  display: block;
  padding: calc(27 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--brand-white);
  box-shadow: 0 -1.1px 2.2px rgba(0, 0, 0, 0.1), 0 3px 8px rgba(0, 0, 0, 0.2), 0 2.4px 22.5px rgba(50, 50, 50, 0.1);
  opacity: 0;
  visibility: hidden;
  translate: 0 calc(8 * var(--px));
  scale: 0.96;
  transform-origin: 90% 90%;
  transition: opacity var(--animation-default-half), translate var(--animation-default-half), scale var(--animation-default-half), visibility 0s linear var(--duration-default-half);
}

.card.is-design .card__popup-img {
  display: block;
  object-fit: contain;
}

.card.is-design .card__popup-img.is-floorplan { width: auto; height: calc(305 * var(--px)); max-width: calc(200 * var(--px)); }
.card.is-design .card__popup-img.is-elevation { display: none; width: calc(280 * var(--px)); height: calc(210 * var(--px)); object-fit: cover; border-radius: calc(12 * var(--px)); }

.card.is-design.is-peek-near,
.card.is-design:has(.card__peek:focus-visible),
.card.is-design.is-peek { z-index: 5; }

/* Hover opens it only where there is a real pointer. On a phone a hover rule
   that reveals content swallows the first tap, so the popup needed a press
   and hold (review board, 17 Nov); there the tap toggle (.is-peek) is the
   only way in. */
@media (hover: hover) {
  .card.is-design:has(.card__peek:hover) { z-index: 5; }
  .card.is-design:has(.card__peek:hover) .card__popup {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    scale: 1;
    transition-delay: 0s;
  }
}

.card.is-design:has(.card__peek:focus-visible) .card__popup,
.card.is-design.is-peek-near .card__popup,
.card.is-design.is-peek .card__popup {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  scale: 1;
  transition-delay: 0s;
}

.card.is-design .card__body {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-06) - 5 * var(--px));
  padding: var(--space-06);
}

.card.is-design .card__title {
  /* Figma trims the title to its cap height; the top trim puts it the
     body's padding below the photo as drawn. */
  text-box: trim-start cap alphabetic;
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
  font-weight: var(--display-s-weight);
  font-feature-settings: "liga" 0;
}

.card.is-design .card__link {
  display: inline;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
  transition: text-decoration-color var(--animation-default-half);
}

.card.is-design:hover .card__link { text-decoration-color: var(--color-accent-line); }

.card.is-design .card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.card.is-design .card__link:focus-visible { outline: none; }
.card.is-design:has(.card__link:focus-visible) { outline: 2px solid var(--brand-charcoal); outline-offset: 3px; }

/* House & land variant (template-parts/package-card.php): a price + address
   line between the suburb title and the specs. */
.card.is-design.is-hl .card__body { gap: calc(var(--space-04) - 5 * var(--px)); }
.card.is-design.is-hl .card__specs { margin-top: var(--space-03); }

.card.is-design .card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-02) var(--space-04);
  margin: 0;
  line-height: 1.3;
}

/* Same class as the resource card's time line, without its leading dot. */
.card.is-design .card__meta::before { content: none; }

.card.is-design .card__price {
  font-size: calc(17 * var(--px));
  font-weight: 700;
}

.card.is-design .card__address {
  font-size: calc(13 * var(--px));
  color: var(--color-text-dark-tertiary);
}

.card.is-design .card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-03) var(--space-05b);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card.is-design .card__spec {
  display: inline-flex;
  align-items: center;
  gap: var(--space-03);
  font-size: calc(15 * var(--px));
  font-weight: 650;
  line-height: calc(20 * var(--px)); /* the row is the icon's height, as drawn */
  letter-spacing: 0.1px;
  color: var(--color-text-dark-secondary);
}

.card.is-design .card__spec img {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
  object-fit: contain;
}

/* Floorplan view: the plan is the card, the elevation is the popup. */
[data-view="floorplans"] .card.is-design { background-color: var(--color-accent-tint-4); }
[data-view="floorplans"] .card.is-design .card__media { aspect-ratio: auto; height: calc(500 * var(--px)); background-color: var(--brand-white); }
[data-view="floorplans"] .card.is-design .card__image.is-elevation { visibility: hidden; }
[data-view="floorplans"] .card.is-design .card__plan { display: block; }
[data-view="floorplans"] .card.is-design .card__peek-icon.is-floorplan { display: none; }
[data-view="floorplans"] .card.is-design .card__peek-icon.is-elevation { display: block; }
[data-view="floorplans"] .card.is-design .card__popup { bottom: calc(36 * var(--px)); padding: calc(4 * var(--px)); }
[data-view="floorplans"] .card.is-design .card__popup-img.is-floorplan { display: none; }
[data-view="floorplans"] .card.is-design .card__popup-img.is-elevation { display: block; }
[data-view="floorplans"] [data-hd-peek-label-elevations],
[data-view="elevations"] [data-hd-peek-label-floorplans] { display: none; }

@media screen and (max-width: 767px) {
  .card.is-design .card__body { gap: calc(13 * var(--px)); padding: calc(20 * var(--px)); }
  .card.is-design .card__specs { column-gap: calc(17 * var(--px)); }
  .card.is-design .card__spec { gap: calc(6 * var(--px)); font-size: calc(14 * var(--px)); line-height: calc(18 * var(--px)); }
  .card.is-design .card__spec img { width: calc(18 * var(--px)); height: calc(18 * var(--px)); }
  [data-view="floorplans"] .card.is-design .card__media { height: auto; aspect-ratio: 418 / 500; }
  .card.is-design .card__popup { right: var(--space-04); }
}


/* --- css/components/gravity-forms.css --- */
/* components/gravity-forms.css — the Locale form skin (Figma webformBlock
   1575:121837: "formFields" panel, selectBtn / multiSelectBtn choices).

   Applies inside .gf-skin (the wrapper blocks put around a form) to forms
   that opt in with the CSS class "gf-skin", which includes/gravity-forms.php
   renders on GF's lean gravity-theme with <button> next/submit. Every rule is
   prefixed with .gf-skin .gform_wrapper to outrank gravity-theme's own.

   Radio and checkbox fields with the class "gf-choice-buttons" render as
   chip buttons: accent at rest, white with a charcoal outline when picked. */

.gf-skin .gform_wrapper.gravity-theme {
  margin: 0;
  color: var(--color-text-dark);
  font-family: var(--font-sans);
}

/* Two real columns instead of GF's twelve: GF pays the column gap eleven
   times across its 12-track grid, so a designed 56 gap needed 616px and
   pushed the fields out of narrower panels. Half-width fields pair up,
   everything else runs full width (skinned forms use only halves). */
.gf-skin .gform_wrapper.gravity-theme .gform_fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-06);
  row-gap: var(--space-07);
}

.gf-skin .gform_wrapper.gravity-theme .gform_fields > .gfield { grid-column: 1 / -1; }
.gf-skin .gform_wrapper.gravity-theme .gform_fields > .gfield--width-half { grid-column: auto; }

.gf-skin .gform_wrapper.gravity-theme .gfield {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.gf-skin .gform_wrapper.gravity-theme .gfield_label,
.gf-skin .gform_wrapper.gravity-theme legend.gfield_label {
  display: block;
  margin: 0 0 var(--space-05);
  padding: 0;
  font-size: var(--body-m-size);
  font-weight: 700;
  line-height: var(--body-m-lh);
  color: var(--color-text-dark);
}

/* GF 3 wraps the label text in a span and pads it before the asterisk. */
.gf-skin .gform_wrapper.gravity-theme .gfield_label .gform-field-label__text { padding: 0; }

.gf-skin .gform_wrapper.gravity-theme .gfield_required {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* The design marks required fields with the asterisk alone. */
.gf-skin .gform_wrapper.gravity-theme .gform_required_legend { display: none; }

/* ---- Choice chips ---------------------------------------------------- */

.gf-skin .gform_wrapper.gravity-theme .gf-choice-buttons .gfield_radio,
.gf-skin .gform_wrapper.gravity-theme .gf-choice-buttons .gfield_checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: calc(10 * var(--px));
}

.gf-skin .gform_wrapper.gravity-theme .gf-choice-buttons .gchoice {
  position: relative;
  display: flex;
  margin: 0;
}

.gf-skin .gform_wrapper.gravity-theme .gf-choice-buttons .gchoice input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.gf-skin .gform_wrapper.gravity-theme .gf-choice-buttons .gchoice label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: calc(64 * var(--px));
  max-width: none;
  height: calc(50 * var(--px));
  margin: 0;
  padding: 0 var(--space-04);
  border-radius: var(--radius-s);
  background-color: var(--color-accent);
  box-shadow: inset 0 0 0 1.5px transparent;
  font-size: calc(16 * var(--px));
  font-weight: 630;
  line-height: var(--body-s-lh);
  letter-spacing: 0.1px;
  color: var(--color-text-dark-secondary);
  white-space: nowrap;
  transition: background-color var(--animation-default-half), box-shadow var(--animation-default-half);
}

.gf-skin .gform_wrapper.gravity-theme .gf-choice-buttons .gchoice input:checked + label {
  background-color: var(--brand-white);
  box-shadow: inset 0 0 0 1.5px rgba(50, 50, 50, 0.9), 0 3px 2px rgba(0, 0, 0, 0.03), 0 0 1.5px rgba(0, 0, 0, 0.12);
  color: var(--color-text-dark);
}

.gf-skin .gform_wrapper.gravity-theme .gf-choice-buttons .gchoice input:focus-visible + label {
  outline: 2px solid var(--brand-charcoal);
  outline-offset: 2px;
}

/* gf-choice-fill: the chips share the row equally (Figma Finance Health
   Check: WA / QLD / VIC and Yes / No fill their column). */
.gf-skin .gform_wrapper.gravity-theme .gf-choice-fill .gchoice { flex: 1 0 0; }
.gf-skin .gform_wrapper.gravity-theme .gf-choice-fill .gchoice label { width: 100%; }

/* A half-width field with up to four short chips (Help Me Find a Design:
   where, storeys, bedrooms, bathrooms) keeps them on one row: on a laptop
   at 1280 the four bedroom chips needed 251 of the column's 229 and the
   fourth dropped to a second row (Kellie, review board 20 Nov). Each chip
   starts at its usual 64 and gives up width, then padding, only when the
   row is short; longer labels keep their own width. */
@media screen and (min-width: 768px) {
  .gf-skin .gform_wrapper.gravity-theme .gfield--width-half.gf-choice-buttons:not(.gf-choice-fill):not(:has(.gchoice:nth-child(5))) :is(.gfield_radio, .gfield_checkbox) {
    flex-wrap: nowrap;
  }

  .gf-skin .gform_wrapper.gravity-theme .gfield--width-half.gf-choice-buttons:not(.gf-choice-fill):not(:has(.gchoice:nth-child(5))) .gchoice {
    flex: 0 1 calc(64 * var(--px));
  }

  .gf-skin .gform_wrapper.gravity-theme .gfield--width-half.gf-choice-buttons:not(.gf-choice-fill):not(:has(.gchoice:nth-child(5))) .gchoice label {
    width: 100%;
    min-width: 0;
    padding-inline: calc(8 * var(--px));
  }
}

/* Hovered chips go white with an accent ring before they are picked (Figma
   1589:46266, ring from listing R2 1812:21957). */
.gf-skin .gform_wrapper.gravity-theme .gf-choice-buttons .gchoice:hover input:not(:checked) + label {
  background-color: var(--brand-white);
  box-shadow: inset 0 0 0 1.5px var(--color-accent-line), 0 3px 2px rgba(0, 0, 0, 0.03), 0 0 1.5px rgba(0, 0, 0, 0.12);
}

/* ---- Steps (Figma Webform Block/2 1590:68569) ------------------------ */

/* Step 1 pairs bedrooms/bathrooms 56 apart; every other pair sits 24 apart. */
.gf-skin .gform_wrapper.gravity-theme .gform_page:first-child:not(:only-child) .gform_fields { column-gap: var(--space-09); }

/* Step change (js/components/gf-steps.js): the outgoing step is a snapshot
   laid over the incoming one, and the two slide as a pair. The wrapper clips
   them to the panel's padding box while they move. */
.gf-skin .gform_wrapper.gravity-theme.is-stepping { overflow: clip; }
.gf-skin .gform_wrapper.gravity-theme .gform_body { position: relative; }

.gf-skin .gf-step-ghost {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.gf-skin .gform_wrapper.gravity-theme .gsection {
  margin: 0;
  padding: 0 0 var(--space-05);
  border: 0;
}

.gf-skin .gform_wrapper.gravity-theme .gsection_title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  font-weight: var(--display-s-weight);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
  color: var(--color-text-dark);
}

/* Step heading with its count and lead (Figma multiStepform-header
   2146:32973, Finance Health Check): heading left, "STEP 1 OF 3" right on
   its baseline, the lead under both, held 120 short of the right edge. */
.gf-skin .gform_wrapper.gravity-theme .gsection:has(> span.gf-step-count) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--space-08);
  align-items: end;
}

.gf-skin .gform_wrapper.gravity-theme span.gf-step-count {
  font-size: var(--utility-xs-size, calc(10 * var(--px)));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-text-dark-tertiary);
}

.gf-skin .gform_wrapper.gravity-theme .gsection_description {
  grid-column: 1 / -1;
  margin: var(--space-06) 0 0;
  padding: 0 calc(120 * var(--px)) 0 0;
  font-size: var(--body-m-size);
  font-weight: 500;
  line-height: var(--body-m-lh);
  color: var(--color-text-dark-secondary);
  text-box: trim-both cap alphabetic;
}

/* A short line between fields ("Please answer ... with combined totals."). */
.gf-skin .gform_wrapper.gravity-theme .gf-intro-note,
.gf-skin .gform_wrapper.gravity-theme .gf-intro-note p {
  margin: 0;
  font-size: calc(16 * var(--px));
  font-weight: 500;
  line-height: var(--body-m-lh);
  text-box: trim-both cap alphabetic;
}

/* A half-width field that starts its own row, so a Yes/No never slides up
   beside the amount above it when that amount is hidden. */
@media screen and (min-width: 768px) {
  .gf-skin .gform_wrapper.gravity-theme .gform_fields > .gfield--width-half.gf-row-start { grid-column: 1 / span 1; }
}

/* ---- Text fields ----------------------------------------------------- */

.gf-skin .gform_wrapper.gravity-theme input:is([type="text"], [type="email"], [type="tel"], [type="number"], [type="url"]),
.gf-skin .gform_wrapper.gravity-theme select,
.gf-skin .gform_wrapper.gravity-theme textarea {
  width: 100%;
  height: calc(50 * var(--px));
  padding: 0 var(--space-05);
  border: 1.5px solid transparent;
  border-radius: var(--radius-s);
  background-color: var(--brand-white);
  font-family: var(--font-sans);
  font-size: calc(16 * var(--px));
  font-weight: 630;
  line-height: var(--body-s-lh);
  letter-spacing: 0.1px;
  color: var(--color-text-dark);
  transition: border-color var(--animation-default-half);
}

.gf-skin .gform_wrapper.gravity-theme ::placeholder { color: var(--color-text-dark-tertiary); opacity: 1; }

.gf-skin .gform_wrapper.gravity-theme input:hover,
.gf-skin .gform_wrapper.gravity-theme textarea:hover { border-color: var(--color-accent-line); }

/* .gfield + .textarea: outranks GF 3's `.gravity-theme .gfield textarea.medium { height: 192px }`. */
.gf-skin .gform_wrapper.gravity-theme .gfield textarea.textarea {
  height: calc(96 * var(--px));
  min-height: calc(50 * var(--px));
  padding-block: calc(13 * var(--px));
  resize: vertical;
}

.gf-skin .gform_wrapper.gravity-theme input:focus,
.gf-skin .gform_wrapper.gravity-theme select:focus,
.gf-skin .gform_wrapper.gravity-theme textarea:focus {
  border-color: var(--brand-charcoal);
  outline: none;
}

/* ---- Opt-in tick + small print (Unlock content 1981:98954) -----------
   A checkbox field with the class "gf-optin" is one white 22 box beside a
   bold line; an HTML field with "gf-note" is 13px small print. A note right
   after the opt-in sits 24 under it, not the usual 35. */

.gf-skin .gform_wrapper.gravity-theme .gf-optin .gchoice {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
}

.gf-skin .gform_wrapper.gravity-theme .gf-optin input[type="checkbox"] {
  appearance: none;
  flex-shrink: 0;
  width: calc(22 * var(--px));
  height: calc(22 * var(--px));
  margin: 0;
  border: 1.5px solid transparent;
  border-radius: var(--radius-xs);
  background: var(--brand-white) no-repeat center / 70%;
  cursor: pointer;
  transition: border-color var(--animation-default-half), background-color var(--animation-default-half);
}

.gf-skin .gform_wrapper.gravity-theme .gf-optin input[type="checkbox"]:hover { border-color: var(--color-accent-line); }

.gf-skin .gform_wrapper.gravity-theme .gf-optin input[type="checkbox"]:checked {
  border-color: var(--brand-charcoal);
  background-color: var(--brand-charcoal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3.2 3.2L13 4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.gf-skin .gform_wrapper.gravity-theme .gf-optin input[type="checkbox"]:focus-visible { outline: 2px solid var(--brand-charcoal); outline-offset: 2px; }

.gf-skin .gform_wrapper.gravity-theme .gf-optin label {
  margin: 0;
  font-size: var(--body-m-size);
  font-weight: 700;
  line-height: var(--body-m-lh);
  color: var(--color-text-dark);
  cursor: pointer;
}

.gf-skin .gform_wrapper.gravity-theme .gf-note,
.gf-skin .gform_wrapper.gravity-theme .gf-note p {
  margin: 0;
  font-size: calc(13 * var(--px));
  font-weight: 500;
  line-height: calc(18 * var(--px));
  letter-spacing: 0.2px;
}

.gf-skin .gform_wrapper.gravity-theme .gf-note a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }

.gf-skin .gform_wrapper.gravity-theme .gf-optin + .gf-note { margin-top: calc(-11 * var(--px)); }

/* gf-info: the description as an (i) tooltip beside the label. */
.gf-skin .gform_wrapper.gravity-theme .gf-info .gfield_label { display: inline-block; margin-right: var(--space-03); }

.gf-skin .gform_wrapper.gravity-theme .gf-info__btn {
  position: relative;
  display: inline-flex;
  vertical-align: calc(1 * var(--px));
  cursor: help;
}

.gf-skin .gform_wrapper.gravity-theme .gf-info__btn img { width: calc(16 * var(--px)); height: calc(16 * var(--px)); }

.gf-skin .gform_wrapper.gravity-theme .gf-info__tip {
  position: absolute;
  bottom: calc(100% + var(--space-03));
  left: 50%;
  z-index: 2;
  width: max-content;
  max-width: calc(260 * var(--px));
  padding: var(--space-03) var(--space-04);
  border-radius: var(--radius-s);
  background-color: var(--brand-charcoal);
  color: var(--brand-white);
  font-size: calc(13 * var(--px));
  font-weight: 500;
  line-height: calc(18 * var(--px));
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity var(--animation-default-half), transform var(--animation-default-half), visibility var(--animation-default-half);
  pointer-events: none;
}

.gf-skin .gform_wrapper.gravity-theme .gf-info__btn:is(:hover, :focus-visible) .gf-info__tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.gf-skin .gform_wrapper.gravity-theme .gf-info .gfield_description {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* ---- Validation ------------------------------------------------------ */

.gf-skin .gform_wrapper.gravity-theme .gfield_error input,
.gf-skin .gform_wrapper.gravity-theme .gfield_error textarea { border-color: #b3261e; }

.gf-skin .gform_wrapper.gravity-theme .gfield_validation_message,
.gf-skin .gform_wrapper.gravity-theme .validation_message {
  margin-top: var(--space-03);
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--body-xs-size);
  color: #b3261e;
}

.gf-skin .gform_wrapper.gravity-theme .gform_validation_errors {
  margin: 0 0 var(--space-07);
  padding: var(--space-04) var(--space-05);
  border: 0;
  border-radius: var(--radius-s);
  background-color: var(--brand-white);
  box-shadow: none;
}

.gf-skin .gform_wrapper.gravity-theme .gform_validation_errors h2 {
  display: flex;
  align-items: center;
  gap: var(--space-03);
  padding: 0;
  font-size: var(--body-s-size);
  font-weight: 600;
  color: #b3261e;
}

/* GF positions the icon over the text's start; the skin sets the text flush. */
.gf-skin .gform_wrapper.gravity-theme .gform_validation_errors h2 .gform-icon { position: static; flex: none; inset: auto; }

/* ---- Buttons + footer ------------------------------------------------ */

.gf-skin .gform_wrapper.gravity-theme .gform_footer,
.gf-skin .gform_wrapper.gravity-theme .gform_page_footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-04);
  margin: var(--space-07) 0 0;
  padding: 0;
}

/* Go Back left, Submit right. */
.gf-skin .gform_wrapper.gravity-theme .gform_page_footer:has(.is-back) { justify-content: space-between; }

/* gf-next-full: step 1's Continue runs full width (Finance Health Check);
   later steps keep Go Back left and Next / Submit right, at least 150 wide. */
.gf-skin .gform_wrapper.gravity-theme form.gf-next-full .gform_page:first-child .gform_page_footer .button.btn { width: 100%; }
.gf-skin .gform_wrapper.gravity-theme form.gf-step-count :is(.gform_page_footer, .gform_footer) .button.btn:not(.is-back) { min-width: calc(150 * var(--px)); }

/* .button.btn: gravity-theme styles .gform_previous_button.button at the same weight. */
.gf-skin .gform_wrapper.gravity-theme .button.btn {
  margin: 0;
  border: 0;
  background-color: var(--btn-bg);
  color: var(--btn-ink);
}

.gf-skin .gform_wrapper.gravity-theme .button.btn:hover { background-color: var(--btn-bg-hover); }

/* Opt-in: a form with the class gf-submit-full runs its submit full width
   (design page enquiry, Figma 1724:80576). */
.gf-skin .gform_wrapper.gravity-theme form.gf-submit-full .gform_footer .button.btn { width: 100%; }

.gf-skin .gform_wrapper.gravity-theme .btn .btn__icon {
  width: calc(11 * var(--px));
  height: calc(11 * var(--px));
  margin-left: var(--space-04);
  color: var(--color-accent);
}

.gf-skin .gform_wrapper.gravity-theme .btn:hover .btn__icon { color: var(--brand-charcoal); }

/* GF's spinner lands next to the button. */
.gf-skin .gform_wrapper.gravity-theme .gform_ajax_spinner {
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
  margin-left: var(--space-03);
}

.gf-skin .gform_confirmation_message {
  font-size: var(--body-l-size);
  line-height: var(--body-l-lh);
  color: var(--color-text-dark);
}

@media screen and (max-width: 767px) {
  .gf-skin .gform_wrapper.gravity-theme .gform_fields { column-gap: var(--space-06); }


  .gf-skin .gform_wrapper.gravity-theme .gsection_description { padding-right: 0; }

  /* Half-width fields stack on phones. */
  .gf-skin .gform_wrapper.gravity-theme .gform_fields > .gfield--width-half { grid-column: 1 / -1; }

  .gf-skin .gform_wrapper.gravity-theme .gf-choice-buttons .gchoice label {
    min-width: calc(52 * var(--px));
    height: calc(44 * var(--px));
    font-size: calc(15 * var(--px));
  }
}

/* Compact phone forms (every skinned form, phones only; was the opt-in
   gf-compact class on GF 29 until Chris made it global, 13 Nov). Typed text
   stays 16px, or iPhone Safari zooms in on the field; labels, chips, gaps
   and field heights come down instead (values set by Chris in DevTools). */
@media screen and (max-width: 767px) {
  .gf-skin .gform_wrapper.gravity-theme .gform_fields { row-gap: calc(9 * var(--px)); }

  .gf-skin .gform_wrapper.gravity-theme .gfield_label,
  .gf-skin .gform_wrapper.gravity-theme legend.gfield_label {
    margin-bottom: calc(2 * var(--px));
    font-size: calc(12 * var(--px));
    line-height: 1.3;
  }

  .gf-skin .gform_wrapper.gravity-theme input:is([type="text"], [type="email"], [type="tel"], [type="number"], [type="url"]),
  .gf-skin .gform_wrapper.gravity-theme select { height: calc(38 * var(--px)); }

  .gf-skin .gform_wrapper.gravity-theme .gfield textarea.textarea {
    height: calc(80 * var(--px));
    min-height: calc(44 * var(--px));
    padding-block: calc(10 * var(--px));
  }

  .gf-skin .gform_wrapper.gravity-theme .gf-choice-buttons .gchoice label {
    height: calc(38 * var(--px));
    font-size: calc(14 * var(--px));
  }

  .gf-skin .gform_wrapper.gravity-theme .gfield_description { font-size: calc(13 * var(--px)); }

  .gf-skin .gform_wrapper.gravity-theme .gform_footer,
  .gf-skin .gform_wrapper.gravity-theme .gform_page_footer { margin-top: calc(16 * var(--px)); }
}

/* File upload (Figma GROUP - Careers EOI form "Upload your resume"): the
   browser's button as a 40 grey button, the file name beside it. */
.gf-skin .gform_wrapper.gravity-theme input[type="file"] {
  width: 100%;
  font-size: var(--body-s-size);
  color: var(--color-text-dark-secondary);
}
.gf-skin .gform_wrapper.gravity-theme input[type="file"]::file-selector-button {
  height: calc(40 * var(--px));
  margin-right: calc(12 * var(--px));
  padding: 0 calc(20 * var(--px));
  border: 0;
  border-radius: var(--radius-s, calc(8 * var(--px)));
  background-color: color-mix(in srgb, var(--brand-charcoal) 12%, transparent);
  color: var(--color-text-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}


/* --- css/components/dropdown.css --- */
/* components/dropdown.css — the open menu of every [data-dropdown] select
   (js/components/dropdown.js): Show me / Sort by, the header and footer
   region pickers, the resources grid. It takes the dark sticky anchor-nav
   look (Figma sitckyAnchorNav, 1696:36109): charcoal card, radius-m, rows
   of 17px semibold light text, the chosen row tinted and marked with the
   brand shape in accent. Chris chose that panel as the master dropdown
   style on 30 Sep 2026. Fixed to the viewport and appended to <body>, so no
   parent's overflow or stacking can clip it. */

.dc-dropdown {
  position: fixed;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: var(--space-03);
  /* Tall enough for the resource Format list (7 options) without a scroll
     bar (Kellie, 23 Nov); longer lists still scroll. */
  max-height: min(calc(560 * var(--px)), 70vh);
  padding: var(--space-04);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-m);
  background-color: var(--brand-charcoal);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), 0 2.4px 22.5px rgba(50, 50, 50, 0.16);
  color: var(--brand-silver);
  font-family: var(--font-sans);
  opacity: 0;
  visibility: hidden;
  translate: 0 calc(-6 * var(--px));
  transition:
    opacity var(--animation-default-half),
    translate var(--animation-default-half),
    visibility 0s linear var(--duration-default-half);
}


.dc-dropdown[data-side="above"] { translate: 0 calc(6 * var(--px)); }

.dc-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition-delay: 0s;
}

.dc-dropdown__option {
  display: flex;
  align-items: center;
  gap: var(--space-04);
  min-height: calc(50 * var(--px));
  padding: 0 var(--space-05);
  border-radius: var(--radius-s);
  font-size: calc(17 * var(--px));
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--animation-default-half), color var(--animation-default-half);
}

.dc-dropdown__option.is-active { background-color: color-mix(in srgb, var(--brand-silver) 8%, transparent); }

.dc-dropdown__option[aria-selected="true"] {
  background-color: color-mix(in srgb, var(--brand-silver) 5%, transparent);
  color: var(--color-accent);
}

.dc-dropdown__option[aria-selected="true"].is-active { background-color: color-mix(in srgb, var(--brand-silver) 10%, transparent); }

/* The marker keeps its width on every row so labels line up; only the
   chosen row paints the brand shape. */
.dc-dropdown__dot {
  flex: none;
  width: calc(9 * var(--px));
  height: calc(9 * var(--px));
  border-radius: var(--brand-shape-tiny-radius);
  -webkit-mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  background-color: var(--color-accent);
  opacity: 0;
  transition: opacity var(--animation-default-half);
}

.dc-dropdown__option[aria-selected="true"] .dc-dropdown__dot { opacity: 1; }

/* Light variant, the original white filter-group look, for selects marked
   data-dropdown="light" (the footer region picker, Chris 30 Sep 2026). */
.dc-dropdown.is-light {
  border: 1px solid color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  background-color: var(--brand-white);
  color: var(--brand-charcoal);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 2.4px 22.5px rgba(50, 50, 50, 0.1);
}

.dc-dropdown.is-light .dc-dropdown__option.is-active { background-color: var(--brand-silver); }

.dc-dropdown.is-light .dc-dropdown__option[aria-selected="true"] {
  background-color: color-mix(in srgb, var(--brand-charcoal) 5%, transparent);
  color: var(--brand-charcoal);
}

.dc-dropdown.is-light .dc-dropdown__option[aria-selected="true"].is-active { background-color: var(--brand-silver); }

/* The trigger's caret turns while its menu is open. */
.is-dropdown-open .hd-caret,
.is-dropdown-open .resource-grid__caret { rotate: 180deg; }

/* Opened with the mouse: no focus ring on the trigger. Keyboard focus keeps a
   charcoal ring (the data flag is cleared on the first key press). */
select[data-dropdown][data-dropdown-pointer]:focus { outline: none; }
select[data-dropdown]:focus-visible:not([data-dropdown-pointer]) { outline: 2px solid var(--brand-charcoal); outline-offset: 2px; }


/* --- css/components/anchor-nav.css --- */
/* components/anchor-nav.css — the sticky Explore menu (Figma sitckyAnchorNav,
   1724:80834; the same panel the dropdown menus copy). Charcoal card, a
   dimmed section list where the current row gets a soft pill, accent text
   and the tiny arch marker, then a full-width accent button.
   js/components/anchor-nav.js sets aria-current as the page scrolls. */

.anchor-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-06);
  padding: var(--space-07b) var(--space-06) var(--space-06);
  border-radius: var(--radius-m);
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
}

.anchor-nav__label {
  margin: 0;
  padding-left: calc(16 * var(--px));
  font-size: var(--utility-m-size);
  line-height: var(--utility-m-lh);
  letter-spacing: var(--utility-m-ls);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.7;
}

.anchor-nav__list {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--px));
  margin: 0;
  padding: 0;
  list-style: none;
}

.anchor-nav__link {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  min-height: calc(50 * var(--px));
  padding: calc(16 * var(--px));
  border-radius: var(--radius-s);
  color: var(--color-text-light);
  font-size: calc(17 * var(--px));
  line-height: 1.2;
  font-weight: 630;
  text-decoration: none;
  transition: background-color var(--animation-default-half), color var(--animation-default-half);
}

.anchor-nav__marker {
  flex: none;
  width: calc(9 * var(--px));
  height: calc(9 * var(--px));
  border-radius: var(--brand-shape-tiny-radius);
  -webkit-mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  mask: var(--brand-shape-tiny-mask) center / 100% 100% no-repeat;
  background-color: var(--color-accent);
  scale: 0;
  transition: scale var(--animation-default-half);
}

.anchor-nav__link:hover { background-color: rgb(242 242 242 / 0.05); }

.anchor-nav__link[aria-current="true"] {
  background-color: rgb(242 242 242 / 0.1);
  color: var(--color-accent);
}

.anchor-nav__link[aria-current="true"] .anchor-nav__marker { scale: 1; }

.anchor-nav .anchor-nav__cta {
  width: 100%;
  height: calc(50 * var(--px));
  font-size: calc(17 * var(--px));
}


/* --- css/components/article-blocks.css --- */
/* components/article-blocks.css — the designed sections inside an article
   body, written as shortcodes in the one wysiwyg (locale-network/
   article-content.php; Figma Resource - Article 1724:78915):
     .article-takeaways   [key_takeaways]  grey box, display-l title, body-l list
     .article-tip         [tip]            mint box, accent chip overlapping the top
     .article-checklist   [checklist]      list with the mint tick bullet
     .article-links       [link_list]      two-column link cards, icon by resource type
     .article-cta         [cta]            .is-strip (charcoal line) / .is-card (mint, image)
   Breaking out of the 900 text column into the 1060 one is the page's job
   (pages/single-resource.css), so these also work in any other text block. */

/* ---- Key takeaways ---------------------------------------------------- */

.article-takeaways {
  padding: calc(80 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--brand-silver);
}

.rte .article-takeaways__title {
  margin: 0 0 calc(35 * var(--px));
  font-size: var(--display-l-size);
  line-height: var(--display-l-lh);
  letter-spacing: var(--display-l-ls);
}

.article-takeaways__body {
  font-size: var(--body-l-size);
  line-height: var(--body-l-lh);
}

.article-takeaways__body ul { gap: calc(18 * var(--px)); }

/* ---- Tip -------------------------------------------------------------- */

.rte .article-tip {
  position: relative;
  margin-top: calc(56 * var(--px));
  padding: calc(55 * var(--px)) calc(35 * var(--px)) calc(43 * var(--px));
  border-radius: var(--radius-m);
  background-color: color-mix(in srgb, var(--color-accent) 30%, var(--brand-white));
}

.article-tip__chip {
  position: absolute;
  top: calc(-20 * var(--px));
  left: calc(35 * var(--px));
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--px));
  height: calc(40 * var(--px));
  padding: 0 calc(20 * var(--px));
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  font-size: calc(16 * var(--px));
  font-weight: 600;
}

.article-tip__chip::before {
  content: "";
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  background: var(--icon-lightbulb) no-repeat center / calc(17 * var(--px)) auto;
}

.article-tip__body {
  font-size: var(--body-l-size);
  line-height: var(--body-l-lh);
}

.article-tip__body > * { margin: 0; }
.article-tip__body > * + * { margin-top: calc(12 * var(--px)); }

/* ---- Checklist -------------------------------------------------------- */

.rte .article-checklist ul {
  /* Figma's 24 is between trimmed text boxes; a 25px line adds ~13 of
     leading, so 12 here reads as the drawn 24. */
  gap: calc(12 * var(--px));
  padding-left: calc(20 * var(--px));
}

.rte .article-checklist li {
  min-height: calc(24 * var(--px));
  padding: calc(1 * var(--px)) 0 0 calc(39 * var(--px));
}

.rte .article-checklist li::before {
  top: 0;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  border-radius: 0;
  background: var(--icon-bullet-check) no-repeat center / contain;
}

/* ---- Link cards ------------------------------------------------------- */

.article-links {
  padding: calc(35 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--brand-silver);
}

.rte .article-links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(16 * var(--px));
  margin: 0;
  padding: 0;
}

.rte .article-links li {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--px));
  padding: 0;
}

.rte .article-links li::before { content: none; }

.article-links__icon {
  flex: none;
  width: calc(45 * var(--px));
  height: calc(45 * var(--px));
  /* Figma iconContainer: a 28 icon in a white 45 tile. The icon files are the
     tight vector exports, so contain them in that 28 box rather than scaling
     every one to 28 wide (which blew the narrow podcast mic up). */
  padding: calc(8.5 * var(--px));
  border-radius: var(--radius-s);
  background: var(--brand-white) var(--icon-guide) no-repeat center / contain;
  background-origin: content-box;
  background-clip: border-box;
}

.article-links__icon[data-type="podcast"]    { background-image: var(--icon-podcast); }
.article-links__icon[data-type="calculator"] { background-image: var(--icon-calculator); }
.article-links__icon[data-type="article"]    { background-image: var(--icon-article); }
.article-links__icon[data-type="faq"]        { background-image: var(--icon-type-faq); }

.rte .article-links a.article-links__link {
  font-size: calc(17 * var(--px));
  font-weight: 600;
  text-decoration-color: rgb(50 50 50 / 0.2);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.rte .article-links a.article-links__link:hover { text-decoration-color: var(--color-accent-line); }

/* ---- CTAs ------------------------------------------------------------- */

.article-cta.is-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: calc(16 * var(--px));
  padding: calc(20 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--brand-charcoal);
  text-align: center;
}

.rte .article-cta__text {
  margin: 0;
  color: var(--color-accent);
  font-size: calc(17 * var(--px));
  font-weight: 630;
  line-height: 1.2;
}

.article-cta.is-card {
  display: flex;
  align-items: stretch;
  gap: calc(56 * var(--px));
  overflow: hidden;
  border-radius: var(--radius-m);
  background-color: var(--color-accent-tint-3);
}

.article-cta__body {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: calc(35 * var(--px));
  padding: calc(48 * var(--px)) 0 calc(35 * var(--px)) calc(48 * var(--px));
}

.rte .article-cta__heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--display-m-size);
  line-height: var(--display-m-lh);
  letter-spacing: var(--display-m-ls);
  font-weight: var(--display-m-weight);
}

.rte .article-cta__img {
  flex: none;
  width: calc(417 * var(--px));
  height: auto;
  min-height: calc(290 * var(--px));
  object-fit: cover;
  border-radius: 0;
}

@media screen and (max-width: 767px) {
  .article-takeaways { padding: calc(24 * var(--px)) calc(20 * var(--px)) calc(28 * var(--px)); }

  .rte .article-takeaways__title { margin-bottom: calc(20 * var(--px)); }

  .article-takeaways__body,
  .article-tip__body { font-size: var(--body-m-size); line-height: var(--body-m-lh); }

  .rte .article-tip { padding: calc(40 * var(--px)) calc(20 * var(--px)) calc(24 * var(--px)); }

  .article-links { padding: calc(20 * var(--px)); }
  .rte .article-links ul { grid-template-columns: minmax(0, 1fr); }

  .article-cta.is-strip { flex-direction: column; gap: calc(8 * var(--px)); background-color: var(--brand-silver); }
  .rte .article-cta.is-strip .article-cta__text { color: var(--color-text-dark); }

  .article-cta.is-card { flex-direction: column-reverse; gap: 0; }
  .article-cta__body { padding: calc(32 * var(--px)) calc(20 * var(--px)) calc(20 * var(--px)); }
  .article-cta.is-card .btn { width: 100%; }
  .rte .article-cta__img { width: 100%; min-height: 0; aspect-ratio: 363 / 252; }
}


/* --- css/components/filter-basic.css --- */
/* components/filter-basic.css — carried from vault 'basic-filter-setup'; tokenise on first real use. */

.filter-group {
  min-height: 100vh;
  padding-bottom: 10em;
}

/* Filter Buttons */
.filter-buttons {
  grid-column-gap: .5em;
  grid-row-gap: .5em;
  flex-flow: wrap;
  justify-content: flex-start;
  padding: 1em 1em 3em;
  display: flex;
}

.filter-btn {
  -webkit-appearance: none;
  appearance: none;
  background-color: #efeeec;
  border-radius: var(--radius-full);
  padding: .65em 1.25em;
  font-size: 1.5em;
  transition: color 0.6s cubic-bezier(0.625, 0.05, 0, 1), background-color 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}

.filter-btn[data-filter-status="active"] {
  background-color: #131313;
  color: #EFEEEC;
}

/* Filter List */
.filter-list {
  flex-flow: wrap;
  width: 100%;
  display: flex;
}

.filter-list__item {
  width: 25%;
  padding: .75em;
}

.filter-list__item[data-filter-status="active"] {
  transition: opacity 0.6s cubic-bezier(0.625, 0.05, 0, 1), transform 0.6s cubic-bezier(0.625, 0.05, 0, 1);
  transform: scale(1) rotate(0.001deg);
  opacity: 1;
  visibility: visible;
  position: relative;
}
.filter-list__item[data-filter-status="transition-out"] {
  transition: opacity 0.45s cubic-bezier(0.625, 0.05, 0, 1), transform 0.45s cubic-bezier(0.625, 0.05, 0, 1);
  transform: scale(0.9) rotate(0.001deg);
  opacity: 0;
  visibility: visible;
}
.filter-list__item[data-filter-status="not-active"] {
  transform: scale(0.9) rotate(0.001deg);
  opacity: 0;
  visibility: hidden; 
  position: absolute;
}

/* Demo Card */
.demo-card {
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  background-color: #efeeec;
  border-radius: var(--radius-l);
  flex-flow: column;
  width: 100%;
  padding: 1em;
  display: flex;
}

.demo-card__bottom {
  justify-content: flex-start;
  align-items: center;
  padding-bottom: .25em;
  padding-left: .5em;
  padding-right: .5em;
  display: flex;
}

.demo-card__h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.25em;
  font-weight: 500;
  line-height: 1;
}

.demo-card__visual {
  background-color: #e2dfdf;
  border-radius: var(--radius-s);
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
  position: relative;
}

.demo-card__visual-before {
  padding-top: 66%;
}

.demo-title {
  padding: 10em 1em 2em;
}

.demo-title__h2 {
  font-size: 5em;
  font-weight: 500;
  line-height: 1;
}

.demo-card__emoji {
  font-size: 4em;
}

@media screen and (max-width: 991px) {
  .filter-list__item {
    width: 50%;
  }
}

@media screen and (max-width: 767px) {
  .filter-list__item {
    width: 100%;
  }

  .demo-title__h2 {
    font-size: 4em;
  }
}


/* --- css/components/filter-basic-multi.css --- */
/* components/filter-basic-multi.css — carried from vault 'basic-filter-setup-multi-match'; tokenise on first real use. */

.filter-group {
  min-height: 100vh;
  padding-bottom: 10em;
}

/* Filter Buttons */
.filter-buttons {
  grid-column-gap: .5em;
  grid-row-gap: .5em;
  flex-flow: wrap;
  justify-content: flex-start;
  padding: 1em 1em 3em;
  display: flex;
}

.filter-btn {
  -webkit-appearance: none;
  appearance: none;
  background-color: #efeeec;
  border-radius: var(--radius-full);
  padding: .65em 1.25em;
  font-size: 1.5em;
  transition: color 0.6s cubic-bezier(0.625, 0.05, 0, 1), background-color 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}

.filter-btn[data-filter-status="active"] {
  background-color: #131313;
  color: #EFEEEC;
}

/* Filter List */
.filter-list {
  flex-flow: wrap;
  width: 100%;
  display: flex;
}

.filter-list__item {
  width: 25%;
  padding: .75em;
}

.filter-list__item[data-filter-status="active"] {
  transition: opacity 0.6s cubic-bezier(0.625, 0.05, 0, 1), transform 0.6s cubic-bezier(0.625, 0.05, 0, 1);
  transform: scale(1) rotate(0.001deg);
  opacity: 1;
  visibility: visible;
  position: relative;
}
.filter-list__item[data-filter-status="transition-out"] {
  transition: opacity 0.45s cubic-bezier(0.625, 0.05, 0, 1), transform 0.45s cubic-bezier(0.625, 0.05, 0, 1);
  transform: scale(0.9) rotate(0.001deg);
  opacity: 0;
  visibility: visible;
}
.filter-list__item[data-filter-status="not-active"] {
  transform: scale(0.9) rotate(0.001deg);
  opacity: 0;
  visibility: hidden; 
  position: absolute;
}

/* Demo Card */
.demo-card {
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  background-color: #efeeec;
  border-radius: var(--radius-l);
  flex-flow: column;
  width: 100%;
  padding: 1em;
  display: flex;
}

.demo-card__top {
  position: relative;
}

.demo-card__bottom {
  justify-content: flex-start;
  align-items: center;
  padding-bottom: .25em;
  padding-left: .5em;
  padding-right: .5em;
  display: flex;
}

.demo-card__h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.25em;
  font-weight: 500;
  line-height: 1;
}

.demo-card__visual {
  background-color: #e2dfdf;
  border-radius: var(--radius-s);
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
  position: relative;
}

.demo-card__visual-before {
  padding-top: 66%;
}

.demo-title {
  padding: 10em 1em 2em;
}

.demo-title__h2 {
  font-size: 5em;
  font-weight: 500;
  line-height: 1;
}

.demo-card__emoji {
  font-size: 4em;
}

.demo-card__tags-collection {
  width: 100%;
  padding: 1em;
  position: absolute;
  top: 0;
  left: 0;
}

.demo-card__tags-list {
  display: flex;
}

.demo-card__tags-item {
  background-color: #efeeec;
  border-radius: 3em;
  padding: .25em .75em;
}

.demo-card__tags-item-p {
  margin-bottom: 0;
  font-size: .875em;
}

@media screen and (max-width: 991px) {
  .filter-list__item {
    width: 50%;
  }
}

@media screen and (max-width: 767px) {
  .filter-list__item {
    width: 100%;
  }
}


/* --- css/components/filter-multi.css --- */
/* components/filter-multi.css — carried from vault 'multi-filter-setup-multi-match'; tokenise on first real use. */

.filter-group {
  min-height: 100vh;
  padding-bottom: 10em;
}

/* Filter Buttons */
.filter-buttons {
  grid-column-gap: .5em;
  grid-row-gap: .5em;
  flex-flow: wrap;
  justify-content: flex-start;
  padding: 1em 1em 3em;
  display: flex;
}

.filter-btn {
  -webkit-appearance: none;
  appearance: none;
  background-color: #efeeec;
  border-radius: var(--radius-full);
  padding: .65em 1.25em;
  font-size: 1.5em;
  transition: color 0.6s cubic-bezier(0.625, 0.05, 0, 1), background-color 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}

.filter-btn[data-filter-status="active"] {
  background-color: #131313;
  color: #EFEEEC;
}

/* Reset Button */
.reset-btn {
  outline-offset: -2px;
  color: #c90f0f;
  -webkit-appearance: none;
  appearance: none;
  background-color: #c90f0f0d;
  border-radius: var(--radius-full);
  outline: 2px solid #c90f0f;
  padding: .65em 1.25em;
  font-size: 1.5em;
  transition: all 0.6s cubic-bezier(0.625, 0.05, 0, 1);
  opacity: 0;
  visibility: hidden;
}

.reset-btn[data-filter-status="active"] {
  opacity: 1;
  visibility: visible;
}

/* Filter List */
.filter-list {
  flex-flow: wrap;
  width: 100%;
  display: flex;
}

.filter-list__item {
  width: 25%;
  padding: .75em;
}

.filter-list__item[data-filter-status="active"] {
  transition: opacity 0.6s cubic-bezier(0.625, 0.05, 0, 1), transform 0.6s cubic-bezier(0.625, 0.05, 0, 1);
  transform: scale(1) rotate(0.001deg);
  opacity: 1;
  visibility: visible;
  position: relative;
}
.filter-list__item[data-filter-status="transition-out"] {
  transition: opacity 0.45s cubic-bezier(0.625, 0.05, 0, 1), transform 0.45s cubic-bezier(0.625, 0.05, 0, 1);
  transform: scale(0.9) rotate(0.001deg);
  opacity: 0;
  visibility: visible;
}
.filter-list__item[data-filter-status="not-active"] {
  transform: scale(0.9) rotate(0.001deg);
  opacity: 0;
  visibility: hidden; 
  position: absolute;
}

/* Demo Card */
.demo-card {
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  background-color: #efeeec;
  border-radius: var(--radius-l);
  flex-flow: column;
  width: 100%;
  padding: 1em;
  display: flex;
}

.demo-card__top {
  position: relative;
}

.demo-card__bottom {
  justify-content: flex-start;
  align-items: center;
  padding-bottom: .25em;
  padding-left: .5em;
  padding-right: .5em;
  display: flex;
}

.demo-card__h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.25em;
  font-weight: 500;
  line-height: 1;
}

.demo-card__visual {
  background-color: #e2dfdf;
  border-radius: var(--radius-s);
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
  position: relative;
}

.demo-card__visual-before {
  padding-top: 66%;
}

.demo-title {
  padding: 10em 1em 2em;
}

.demo-title__h2 {
  font-size: 5em;
  font-weight: 500;
  line-height: 1;
}

.demo-card__emoji {
  font-size: 4em;
}

.demo-card__tags-collection {
  width: 100%;
  padding: 1em;
  position: absolute;
  top: 0;
  left: 0;
}

.demo-card__tags-list {
  display: flex;
}

.demo-card__tags-item {
  background-color: #efeeec;
  border-radius: 3em;
  padding: .25em .75em;
}

.demo-card__tags-item-p {
  margin-bottom: 0;
  font-size: .875em;
}

@media screen and (max-width: 991px) {
  .filter-list__item {
    width: 50%;
  }
}

@media screen and (max-width: 767px) {
  .filter-list__item {
    width: 100%;
  }
}


/* --- css/components/live-search.css --- */
/* components/live-search.css — carried from vault 'live-search-list-js'; tokenise on first real use. */

.live-search {
  grid-column-gap: 3em;
  grid-row-gap: 3em;
  flex-flow: column;
  display: flex;
}

.live-search__search {
  justify-content: center;
  align-items: center;
  display: flex;
}

.live-search__search-field {
  background-color: #f4f4f4;
  border: 1px solid #0000;
  border-radius: var(--radius-full);
  align-items: center;
  width: 100%;
  max-width: 22em;
  height: 4em;
  display: flex;
  position: relative;
}

.live-search__search-icon {
  z-index: 1;
  pointer-events: none;
  color: #6840ff;
  -webkit-user-select: none;
  user-select: none;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 1.5em;
  height: 1.5em;
  padding: 0;
  display: flex;
  position: absolute;
  left: 1em;
}

.live-search__search-input {
  letter-spacing: -.015em;
  -webkit-appearance: none;
  appearance: none;
  background-color: #0000;
  border: 0;
  outline: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 0 0 2.75em;
  font-size: 1.125em;
  font-weight: 400;
}

.live-search__search-field:has(input:focus) {
  border-color: rgba(0, 0, 0, 0.1);
}

.live-search__search-field input::placeholder {
  color: rgba(0, 0, 0, 0.4);
  opacity: 1;
}

.live-search__list {
  grid-column-gap: 1.5em;
  grid-row-gap: 1.5em;
  flex-flow: wrap;
  justify-content: center;
  width: 100%;
  display: flex;
}

.live-search__item {
  width: calc(33.33% - 1em);
}

.live-search__not-found-p {
  color: #817f7f;
  text-align: center;
  font-size: 1em;
}

.live-search__data, .live-search__not-found {
  display: none;
}

@media screen and (max-width: 991px) {
  .live-search__item {
    width: calc(49.995% - .75em);
  }
}

@media screen and (max-width: 767px) {
  .live-search__item {
    width: 100%;
  }
}

.demo-card {
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  background-color: #f4f4f4;
  border-radius: var(--radius-l);
  flex-flow: column;
  width: 100%;
  padding: 1em;
  display: flex;
}

.demo-card__top {
  position: relative;
}

.demo-card__visual {
  background-color: #eaeaea;
  border-radius: var(--radius-s);
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
  position: relative;
}

.demo-card__visual-before {
  padding-top: 66%;
}

.demo-card__emoji {
  font-size: 4em;
}

.demo-card__tags-collection {
  width: 100%;
  padding: 1em;
  position: absolute;
  top: 0;
  left: 0;
}

.demo-card__tags-list {
  display: flex;
}

.demo-card__tags-item {
  background-color: #f4f4f4;
  border-radius: 3em;
  padding: .25em .75em;
}

.demo-card__tags-item-p {
  letter-spacing: -.01em;
  margin-bottom: 0;
  font-size: .875em;
  font-weight: 400;
}

.demo-card__bottom {
  justify-content: flex-start;
  align-items: center;
  padding-bottom: .25em;
  padding-left: .5em;
  padding-right: .5em;
  display: flex;
}

.demo-card__h3 {
  letter-spacing: -.02em;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.25em;
  font-weight: 500;
  line-height: 1.2;
}


/* --- css/components/accordion.css --- */
/* components/accordion.css — vault accordion-css-animation, tokenised. */

.accordion-css {
  max-width: 29em;
  position: relative;
}

.accordion-css__list {
  grid-column-gap: .5em;
  grid-row-gap: .5em;
  flex-flow: column;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  display: flex;
  position: static;
}

.accordion-css__item {
  background-color: var(--color-surface-2);
  border-radius: var(--radius-s);
  list-style: none;
}

.accordion-css__item-top {
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1em 1em 1.5em;
  display: flex;
}

.accordion-css__item-bottom {
  transition: grid-template-rows 0.6s var(--cubic-default);
  grid-template-rows: 0fr;
  display: grid;
  position: relative;
  overflow: hidden;
}

[data-accordion-status="active"] .accordion-css__item-bottom {
   grid-template-rows: 1fr;
}

.accordion-css__item-bottom-wrap {
  flex-flow: column;
  height: 100000%;
  display: flex;
  position: relative;
  overflow: hidden;
}

.accordion-css__item-bottom-content {
  padding-bottom: 1.5em;
  padding-left: 1.5em;
  padding-right: 1.5em;
}

.accordion-css__item-h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.125em;
  font-weight: 500;
  line-height: 1.3;
}

.accordion-css__item-icon {
  transition: transform 0.6s var(--cubic-default);
  background-color: var(--color-surface-3);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 2em;
  height: 2em;
  display: flex;
  transform: rotate(180deg);
}

[data-accordion-status="active"] .accordion-css__item-icon {
   transform: rotate(0.001deg);
}

.accordion-css__item-icon-svg {
  width: 1em;
}

.accordion-css__item-p {
  color: var(--color-ink-soft);
  margin-bottom: 0;
  font-size: .875em;
  line-height: 1.5;
}

/* The link to a question's long-form resource page. The accordion answer stays
   short; this is the way through to the full article. */
.accordion-css__item-more {
  margin: 0.75em 0 0;
  font-size: var(--text-s);
}


/* --- css/components/tab-system.css --- */
/* components/tab-system.css — vault 'tab-system-with-autoplay-option',
   tokenised (ink/line/accent slots, DC ease). Markup contract in
   blocks/accordion_section/render.php; behaviour in js/components/tab-system.js. */

.tab-layout__wrap {
  z-index: 1;
  grid-row-gap: 3em;
  flex-flow: wrap;
  display: flex;
  position: relative;
}

.tab-layout__col {
  width: 50%;
  padding-left: .5em;
  padding-right: .5em;
}

.tab-content__inner {
  grid-column-gap: 3em;
  grid-row-gap: 3em;
  flex-flow: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 100%;
  padding-top: 1em;
  padding-right: 2.5em;
  display: flex;
}

.tab-content__top {
  grid-column-gap: 2em;
  grid-row-gap: 2em;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
}

.tab-heading {
  margin-top: 0;
  margin-bottom: 0;
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1;
}

.tab-visual__wrap {
  aspect-ratio: 1.6;
  position: relative;
}

.tab-visual__item {
  visibility: hidden;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
}

.tab-visual__item.active {
  visibility: visible;
}

.tab-visual__inner {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-s);
  width: 100%;
  height: 100%;
  padding: .5em;
  overflow: hidden;
}

.tab-image {
  object-fit: cover;
  object-position: 0% 50%;
  border-radius: calc(var(--radius-s) / 2);
  width: 100%;
  height: 100%;
  position: relative;
}

.tab-content__wrap {
  width: 100%;
  height: 100%;
}

.tab-content__bottom {
  flex-flow: column;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  max-width: 30em;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  display: flex;
}

.tab-content__item {
  color: var(--color-ink);
  width: 100%;
  padding-top: 2em;
  padding-bottom: 2em;
  text-decoration: none;
  transition: opacity .25s;
  position: relative;
}

.tab-content__item-main {
  grid-column-gap: 2em;
  grid-row-gap: 2em;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  display: flex;
}

.content-item__heading {
  margin-top: 0;
  margin-bottom: 0;
  font-size: var(--text-l);
  font-weight: 500;
  line-height: 1;
}

.tab-content__item-detail {
  width: 100%;
  height: 0;
  overflow: hidden;
}

.tab-description {
  margin-bottom: 0;
  font-size: 1em;
}

.tab-description__spacer {
  padding-top: 1em;
}

.tab-content__item-bottom {
  background-color: var(--color-line);
  width: 100%;
  height: 1px;
  transition: background-color .2s;
  position: absolute;
  inset: auto 0% 0%;
}

.tab-progress {
  transform-origin: 0%;
  transform-style: preserve-3d;
  background-color: var(--color-accent);
  width: 100%;
  height: 1px;
  transform: scale3d(0, 1, 1);
}

@media screen and (max-width: 991px) {
  .tab-layout__col {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .tab-content__inner {
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
  }

  .tab-content__top {
    grid-column-gap: 1.5em;
    grid-row-gap: 1.5em;
  }

  .tab-visual__wrap {
    height: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .tab-visual__item {
    overflow: hidden;
  }

  .tab-content__wrap {
    max-width: none;
    margin-left: 0;
  }
}

@media screen and (max-width: 767px) {
  .tab-layout__wrap {
    grid-row-gap: 2em;
  }

  .tab-visual__item {
    border-radius: calc(var(--radius-s) / 2);
  }

  .tab-content__bottom {
    max-width: none;
  }

  .tab-content__item-main {
    grid-column-gap: 1.5em;
    grid-row-gap: 1.5em;
  }

}

@media screen and (max-width: 479px) {
  .tab-visual__inner {
    border-style: none;
    border-radius: calc(var(--radius-s) / 2);
    padding: 0;
  }

  .tab-image {
    aspect-ratio: auto;
  }

  .tab-content__item {
    padding-top: 1.5em;
    padding-bottom: 1.5em;
  }

  .tab-content__item-main {
    grid-column-gap: 1em;
    grid-row-gap: 1em;
  }

}


/* --- css/components/toggle-switch.css --- */
/* components/toggle-switch.css — vault resource 'Toggle Switch'.
   Markup: [data-toggle-init] > [data-toggle-btn]* with one .toggle-switch__bg
   pill behind them. js/components/toggle-switch.js only writes two custom
   properties (--toggle-count, --toggle-active); all motion is this file, so
   the control still reads correctly with JS off (first button styled active).

   --toggle-count   number of buttons, written by the script on load
   --toggle-padding gap between the pill and the track edge */

.toggle-switch {
  --toggle-count: 3;
  --toggle-padding: 0.25em;
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(var(--toggle-count, 2), 1fr);
  width: 100%;
  max-width: 30em;
  padding: var(--toggle-padding);
  background-color: var(--color-surface-2);
  border-radius: 0.875em;
}

.toggle-switch__bg {
  position: absolute;
  top: var(--toggle-padding);
  bottom: var(--toggle-padding);
  left: var(--toggle-padding);
  width: calc((100% - 2 * var(--toggle-padding)) / var(--toggle-count, 2));
  transform: translateX(calc(var(--toggle-active, 0) * 100%));
  background-color: var(--color-surface);
  border-radius: 0.625em;
  transition: transform 0.5s cubic-bezier(0.625, 0.05, 0, 1);
}

.toggle-switch__btn {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.625em;
  justify-content: center;
  align-items: center;
  padding: 1.5em 1em;
  font: inherit;
  color: var(--color-ink-soft);
  background-color: transparent;
  border: none;
  border-radius: 0.625em;
  cursor: pointer;
  transition: color 0.2s;
}

.toggle-switch__btn[data-toggle-active] { color: var(--color-ink); }

@media (prefers-reduced-motion: reduce) {
  .toggle-switch__bg { transition: none; }
}


/* --- css/components/modal.css --- */
/* components/modal.css — vault basic-modal-setup, tokenised on use. */

.modal {
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  justify-content: center;
  align-items: center;
  padding: 2em 1em;
  display: flex;
  position: fixed;
  inset: 0;
  overflow: hidden;
  transition: all 0.2s linear;
}

.modal[data-modal-group-status="active"] {
  opacity: 1;
  visibility: visible;
}

.modal__dark {
  opacity: .5;
  pointer-events: auto;
  cursor: pointer;
  background-color: #131313;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.modal__card {
  pointer-events: auto;
  background-color: #efeeec;
  border-radius: 2em;
  width: 100%;
  max-width: 54em;
  max-height: 100%;
  padding: .75em;
  display: none;
  position: relative;
}

.modal__card[data-modal-status="active"] {
  display: flex;
}

.modal__scroll {
  grid-column-gap: 1.5em;
  grid-row-gap: 1.5em;
  background-color: #e2e1df;
  border-radius: 1.25em;
  flex-flow: column;
  width: 100%;
  max-height: 100%;
  display: flex;
  position: relative;
  overflow: scroll;
}

.modal__content {
  grid-column-gap: 1.5em;
  grid-row-gap: 1.5em;
  flex-flow: column;
  padding: 2em;
  display: flex;
}

.modal__h2 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 2.5em;
  font-weight: 500;
  line-height: 1.175;
}

.modal__p {
  margin-bottom: 0;
  font-size: 1em;
  line-height: 1.5;
}

/* color pins the bars (currentColor) to charcoal: popups printed inside a
   dark section inherited its light text and drew a blank disc. */
.modal__btn-close {
  color: var(--color-text-dark, #323232);
  background-color: #efeeec;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 3.5em;
  height: 3.5em;
  display: flex;
  position: absolute;
  top: 2.5em;
  right: 2.5em;
}

.modal__btn-close-bar {
  background-color: currentColor;
  width: .125em;
  height: 40%;
  position: absolute;
  transform: rotate(45deg);
}

.modal__btn-close-bar.is--second {
  transform: rotate(-45deg);
}

/* Video card: 16:9 iframe, no scroll chrome */

.modal__card.is--video {
  max-width: 64em;
  padding: 0;
  background: none;
  border-radius: var(--radius-m);
  overflow: hidden;
}

.modal__card.is--video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background-color: #000;
}

/* Demo Buttons */

.demo-btn {
  background-color: #efeeec;
  border-radius: var(--radius-full);
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}

.demo-btn__p {
  margin-bottom: 0;
  padding: .65em 1.25em;
  font-size: 1em;
}


/* --- css/components/price-gate.css --- */
/* components/price-gate.css — what the design page's View Price form adds
   to its confirmation: the unlocked price and its disclaimer. The popup is
   template-parts/form-popup.php (Unlock content from a home design, Figma
   1981:99015), styled by components/form-popup.css. */

/* The confirmation, with the price the form unlocked. */
.price-gate__price {
  margin: var(--space-06) 0 0;
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
}

.price-gate__disclaimer {
  margin: var(--space-04) 0 0;
  font-size: var(--body-xs-size);
  line-height: 1.4;
}


/* --- css/components/content-gate.css --- */
/* components/content-gate.css — a gated article (Figma Resource - Guide -
   GATED 1981:96785) and its Unlock content popup (1981:98926).

   .content-gate is "gated-content-prompt" 1981:96907: a 200 fade from clear
   to the page colour laid over the end of the opening, then the 1060 tint
   card (out to the same column as the takeaways box). The popup is a 900
   accent card, centred copy over the shared form panel
   (sections/form-split.css .form-split__panel); its close button is the
   View Price popup's (components/price-gate.css). */

/* The opening is capped at 300: the server sends about that much text, the
   clip makes it exact whatever the column width. */
.article-prose[data-content-gate] {
  max-height: calc(300 * var(--px));
  overflow: hidden;
}

.content-gate {
  position: relative;
  max-width: calc(var(--article-text) + 2 * var(--article-bleed));
  margin: calc(-200 * var(--px)) 0 0 calc(-1 * var(--article-bleed));
  padding-top: calc(200 * var(--px));
  background: linear-gradient(to bottom, rgb(249 249 249 / 0), var(--brand-group-white) 30%);
  scroll-margin-top: calc(110 * var(--px));
  pointer-events: none;
}

.content-gate__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-07);
  padding: var(--space-11) calc(104 * var(--px));
  border-radius: var(--radius-m);
  background-color: var(--color-accent-tint-2);
  text-align: center;
  pointer-events: auto;
}

.content-gate__title { margin: 0; text-wrap: balance; }

.content-gate__text {
  margin: 0;
  padding-inline: var(--space-08);
  font-size: var(--body-l-size);
  line-height: var(--body-l-lh);
  font-weight: 500;
  text-box: trim-both cap alphabetic;
  text-wrap: pretty;
}

@media screen and (max-width: 991px) {
  .content-gate { max-width: none; margin-left: 0; }
  .content-gate__card { padding: var(--space-10) var(--space-08); }
  .content-gate__text { padding-inline: 0; }
}

@media screen and (max-width: 767px) {
  .content-gate__card { padding: var(--space-09) var(--space-06); gap: var(--space-06); }
  .content-gate__text { font-size: var(--body-m-size); line-height: var(--body-m-lh); }
}


/* --- css/components/form-popup.css --- */
/* components/form-popup.css — template-parts/form-popup.php: a Gravity Form
   in a popup, centred (Unlock content 1981:98926, Finance Health Check
   2184:91772: heading over a 900 card) or split (House & land package
   1983:102193: the form_split card at 1100 in a 5/7 split). components/
   modal.css opens it, sections/form-split.css styles the panel and intro. */

.modal.form-popup { padding: calc(24 * var(--px)); }

.modal.form-popup .modal__dark {
  opacity: 0.6;
  background-color: var(--brand-charcoal);
  backdrop-filter: blur(15px);
}

.modal__card.form-popup__card {
  flex-direction: column;
  max-height: calc(100svh - 48 * var(--px));
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-l);
  background-color: var(--color-accent);
}

.form-popup__panel.form-split__panel { flex-shrink: 0; min-height: 0; }

.form-popup__close {
  position: absolute;
  top: calc(16 * var(--px));
  right: calc(16 * var(--px));
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(32 * var(--px));
  height: calc(32 * var(--px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: none;
  color: var(--brand-charcoal);
  cursor: pointer;
  transition: background-color var(--animation-default-half);
}

.form-popup__close:hover { background-color: rgb(255 255 255 / 0.5); }
.form-popup__close svg { width: calc(20 * var(--px)); height: calc(20 * var(--px)); }

/* ---- Centre ---------------------------------------------------------- */

.form-popup.is-center .form-popup__card {
  gap: var(--space-08);
  max-width: calc(900 * var(--px));
  padding: var(--space-11);
}

.form-popup__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-07);
  text-align: center;
}

.form-popup__title { margin: 0; }

.form-popup__text {
  margin: 0;
  padding-inline: var(--space-10);
  font-size: var(--body-m-size);
  line-height: var(--body-m-lh);
  font-weight: 500;
  text-box: trim-both cap alphabetic;
  text-wrap: pretty;
}

/* ---- Split ----------------------------------------------------------- */

.form-popup.is-split .form-popup__card { max-width: calc(1100 * var(--px)); }

.form-popup__split {
  grid-template-columns: 5fr 7fr;
  width: 100%;
  border-radius: 0;
}

.form-popup__split .form-split__intro {
  gap: var(--space-07);
  padding: var(--space-11) var(--space-08) var(--space-09) 0;
}

/* One row, as in the frame (365 wide in a 362 column). */
.form-popup__split .form-split__chat { flex-wrap: nowrap; white-space: nowrap; }

.form-popup__split .form-split__body { gap: var(--space-06); padding-right: 0; }

.form-popup__split .form-split__text,
.form-popup__split .form-split__point {
  font-size: var(--body-m-size);
  line-height: var(--body-m-lh);
}

.form-popup__split .form-split__point { align-items: flex-start; gap: calc(15 * var(--px)); }
.form-popup__split .form-split__point img { width: calc(24 * var(--px)); height: calc(24 * var(--px)); }

.form-popup__split .form-split__form { padding: var(--space-09) 0 var(--space-09); }

@media screen and (max-width: 991px) {
  .form-popup.is-center .form-popup__card { padding: var(--space-10) var(--space-08) var(--space-08); }
  .form-popup__text { padding-inline: 0; }

  .form-popup__split { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
  .form-popup__split .form-split__intro { padding: var(--space-10) var(--space-08) var(--space-06); }
  .form-popup__split .form-split__form { padding: 0 var(--space-08) var(--space-08); }
}

@media screen and (max-width: 767px) {
  .modal.form-popup { padding: var(--container-padding); }
  .form-popup.is-center .form-popup__card { gap: var(--space-07); padding: var(--space-09) var(--space-04) var(--space-04); }
  .form-popup__intro { padding-inline: var(--space-04); }
  .form-popup__split .form-split__intro { padding: var(--space-08) var(--space-06) var(--space-06); }
  .form-popup__split .form-split__form { padding: 0 var(--space-04) var(--space-04); }
  .form-popup__split .form-split__chat { flex-wrap: wrap; white-space: normal; }
}

/* ---- Steps that start in the page (gf-popup-steps) --------------------
   Step 1 sits in the page; from step 2 the form moves into its popup
   (js/components/form-popup.js) and the page keeps a way back in. */

.gf-popup-steps__resume {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-07);
}

.gf-popup-steps__resume[hidden] { display: none; }

.gf-popup-steps__resume-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--display-s-size);
  font-weight: var(--display-s-weight);
  line-height: var(--display-s-lh);
  letter-spacing: var(--display-s-ls);
  text-box: trim-both cap alphabetic;
}

.gf-popup-steps__resume-text { margin: 0; font-size: var(--body-m-size); line-height: var(--body-m-lh); }

/* Group: charcoal popup card with light copy (Figma GROUP - Careers EOI Form 2266:170371). */
:root[data-brand="group"] .form-popup.is-center .form-popup__card {
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
}
:root[data-brand="group"] .form-popup.is-center .form-popup__text { color: var(--color-text-light-secondary); }
:root[data-brand="group"] .form-popup.is-center .form-popup__close { color: var(--color-text-light); }


/* --- css/components/section-intro.css --- */
/* components/section-intro.css — THE block intro, emitted by dc_block_intro()
   (Figma component "blockHeader", node 1158:39541). One component for every
   block: label (utility-s) + display title (italic via *asterisks*) + body
   text + button, and an optional actions slot on the right (carousel arrows,
   explore link). Type comes from the .type-* classes on the elements; this
   file owns layout and the faded inks, which follow the section theme.

   data-intro-align="left"    stacked left, actions bottom-right
   data-intro-align="center"  centred stack
   data-intro-align="split"   title left, text right (bottom-aligned) */

.block-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: calc(35 * var(--px));
  row-gap: calc(48 * var(--px));
  align-items: end;
  /* Figma space-08: 48 desktop, 35 mobile. The intro-to-content gap on every block. */
  margin-bottom: var(--space-08);
}

.block-intro__main,
.block-intro__body {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.block-intro__main {
  gap: calc(35 * var(--px));
  padding-right: calc(250 * var(--px));
}

.block-intro__body {
  gap: calc(32 * var(--px));
  padding-right: calc(80 * var(--px));
  max-width: calc(760 * var(--px));
}

.block-intro__label {
  color: color-mix(in srgb, currentColor 55%, transparent);
}

.block-intro__title {
  margin: 0;
  color: inherit;
}

.block-intro__title em { font-style: italic; }

.block-intro__text {
  color: color-mix(in srgb, currentColor 85%, transparent);
}

.block-intro__text > :first-child { margin-top: 0; }
.block-intro__text > :last-child  { margin-bottom: 0; }

.block-intro__actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  display: flex;
  align-items: center;
  gap: calc(35 * var(--px));
}

/* No body: spanning two rows would add an empty row and its gap, dropping
   the actions below the title. They sit on the title's baseline instead. */
.block-intro:not(:has(> .block-intro__body)) > .block-intro__actions { grid-row: 1; }

/* Centre */
.block-intro[data-intro-align="center"] {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.block-intro[data-intro-align="center"] .block-intro__main,
.block-intro[data-intro-align="center"] .block-intro__body {
  align-items: center;
  padding-right: 0;
  max-width: calc(1196 * var(--px));
}

.block-intro[data-intro-align="center"] .block-intro__actions {
  grid-column: 1;
  grid-row: auto;
}

/* Split: title left, text right */
.block-intro[data-intro-align="split"] {
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(400 * var(--px)));
}

.block-intro[data-intro-align="split"] .block-intro__main { padding-right: 0; }

.block-intro[data-intro-align="split"] .block-intro__body {
  grid-column: 2;
  grid-row: 1;
  padding-right: 0;
}

/* Mobile = Figma blockHeader/mobile (in 1154:42792): an 8 inset either
   side, 28 overline to title, 35 title to text, 24 text to button. */
@media screen and (max-width: 767px) {
  .block-intro,
  .block-intro[data-intro-align="split"] {
    grid-template-columns: minmax(0, 1fr);
    row-gap: calc(35 * var(--px));
    padding-inline: calc(8 * var(--px));
  }

  .block-intro__main { gap: calc(28 * var(--px)); }
  .block-intro__body { gap: calc(24 * var(--px)); }

  .block-intro__main,
  .block-intro__body,
  .block-intro[data-intro-align="split"] .block-intro__body {
    grid-column: 1;
    grid-row: auto;
    padding-right: 0;
  }

  .block-intro__actions {
    grid-column: 1;
    grid-row: auto;
  }
}


/* --- css/components/underline-link.css --- */
/* components/underline-link.css — vault underline-link-animation.
   Usage: add [data-underline-link] (or ="alt") to any inline link. */

.link-group {
  gap: 1em;
  justify-content: center;
  font-size: 3em;
  display: flex;
}

.underline-link {
  color: inherit;
  font-size: 1em;
  line-height: 1.25;
}

[data-underline-link] {
  text-decoration: none;
  position: relative;
}

[data-underline-link]::before,
[data-underline-link="alt"]::before,
[data-underline-link="alt"]::after{
  content: "";
  position: absolute;
  bottom: -0.0625em;
  left: 0;
  width: 100%;
  height: 0.0625em;
  background-color: currentColor;
  transition: transform 0.735s var(--cubic-default);
  transform-origin: right;
  transform: scaleX(0) rotate(0.001deg);
}

[data-underline-link="alt"]::before {
  transform-origin: left;
  transform: scaleX(1) rotate(0.001deg);
  transition-delay: 0.3s;
}

[data-underline-link="alt"]::after {
  transform-origin: right;
  transform: scaleX(0) rotate(0.001deg);
  transition-delay: 0s;
}

@media (hover: hover) and (pointer: fine) {
  [data-hover]:hover [data-underline-link]::before,
  [data-underline-link]:hover::before {
    transform-origin: left;
    transform: scaleX(1) rotate(0.001deg);
  }  
  
  [data-hover]:hover [data-underline-link="alt"]::before,
  [data-underline-link="alt"]:hover::before {
    transform-origin: right;
    transform: scaleX(0) rotate(0.001deg);
    transition-delay: 0s;
  }
  
  [data-hover]:hover [data-underline-link="alt"]::after,
  [data-underline-link="alt"]:hover::after {
    transform-origin: left;
    transform: scaleX(1) rotate(0.001deg);
    transition-delay: 0.3s;
  }
}


/* --- css/components/button.css --- */
/* components/button.css — LOCALE buttons (Figma "Elements", node 925:23730).
   Markup comes from dc_button() / dc_button_html() in includes/helpers.php.

   .btn              fill, Figma btn-primary "Dark" (on dark bands: "Accent")
   .btn.is-subtle    Figma "Dark Subtle" (on dark bands: "Light Subtle")
   .btn.is-accent    Figma "Accent"
   .btn.is-link      text link + arrow (.is-secondary is the legacy alias)
   .btn.is-enquire   label + brand-shape arrow cap (Figma btn-topNav-enquire)
   .brand-shape      circle at rest, the site's brand shape on hover
   .btn-arrow        carousel arrow (Figma btn-carouselArrow)
   .badge            ghost badge; .is-fill accent, .is-pill round

   Colours flow through --btn-* / --arrow-* so dark bands flip the whole set
   in one place. All sizes are Figma px times --px. */

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-s);
}

.btn {
  --btn-bg: var(--brand-charcoal);
  --btn-ink: var(--color-text-light);
  /* Accent on the three brands, lighter charcoal on Group (brand tokens). */
  --btn-bg-hover: var(--color-btn-hover);
  --btn-ink-hover: var(--color-btn-hover-ink);

  /* One height for every button: 40 desktop, 35 mobile (see the breakpoint at
     the end of this file). Blocks must NOT override it per Figma frame, or
     buttons change size from section to section. */
  --btn-h: calc(40 * var(--px));

  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding: calc(3 * var(--px)) calc(20 * var(--px)) 0;
  border-radius: var(--radius-s);
  background-color: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-sans);
  font-size: calc(16 * var(--px));
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  appearance: none;
  transition:
    background-color var(--animation-default-half),
    border-radius var(--animation-default-half);
}

.btn.is-subtle {
  --btn-bg: color-mix(in srgb, var(--brand-charcoal) 10%, transparent);
  --btn-ink: var(--brand-charcoal);
  --btn-bg-hover: color-mix(in srgb, var(--brand-charcoal) 15%, transparent);
  --btn-ink-hover: var(--brand-charcoal);
}

.btn.is-accent {
  --btn-bg: var(--color-accent);
  --btn-ink: var(--brand-charcoal);
  --btn-bg-hover: var(--brand-silver);
  --btn-ink-hover: var(--brand-charcoal);
}

:where([data-theme-section="dark"], [data-theme-section="primary"]) .btn {
  --btn-bg: var(--color-accent);
  --btn-ink: var(--brand-charcoal);
  --btn-bg-hover: var(--brand-silver);
  --btn-ink-hover: var(--brand-charcoal);
}

:where([data-theme-section="dark"], [data-theme-section="primary"]) .btn.is-subtle {
  --btn-bg: color-mix(in srgb, var(--brand-silver) 10%, transparent);
  --btn-ink: var(--color-text-light);
  --btn-bg-hover: color-mix(in srgb, var(--brand-silver) 15%, transparent);
  --btn-ink-hover: var(--color-text-light);
}

/* On a green (accent) surface the fill's accent hover would vanish into the
   background: the button stays dark and deepens on hover instead (Chris
   2026-09-25). Surfaces opt in with data-surface="accent". */
:where([data-surface="accent"]) .btn:not(.is-subtle, .is-accent, .is-link, .is-secondary, .is-enquire) {
  --btn-bg: var(--brand-charcoal);
  --btn-ink: var(--color-text-light);
  --btn-bg-hover: var(--brand-dark-charcoal);
  --btn-ink-hover: var(--color-text-light);
}

.btn:hover {
  background-color: var(--btn-bg-hover);
  /* Half the 40px height (Figma: 20), not --radius-full: animating to 999em
     spends the whole transition above the pill shape, so it just snaps. */
  border-radius: calc(20 * var(--px));
}

/* Rolling label: two copies stacked, the second rises into view on hover. */
.btn__label {
  display: block;
  overflow: hidden;
  height: 1.25em;
}

.btn__roll {
  display: flex;
  flex-direction: column;
  transition: transform var(--animation-default);
}

.btn__text {
  display: block;
  height: 1.25em;
  color: var(--btn-ink);
}

.btn__text + .btn__text { color: var(--btn-ink-hover); }

.btn:hover .btn__roll { transform: translateY(-50%); }

/* ---- Text link ------------------------------------------------------ */

.btn.is-link,
.btn.is-secondary {
  --btn-ink: var(--color-ink);
  --btn-line: color-mix(in srgb, currentColor 20%, transparent);

  height: auto;
  padding: 0;
  gap: calc(4 * var(--px));
  border-radius: 0;
  background: none;
  font-size: calc(17 * var(--px));
}

.btn.is-link:hover,
.btn.is-secondary:hover { background: none; border-radius: 0; }

/* A long text link wraps inside its card instead of running out of it
   (review board, 17 Nov). */
.btn.is-link,
.btn.is-secondary {
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.25;
}

.btn.is-link .btn__label,
.btn.is-secondary .btn__label {
  height: auto;
  padding-bottom: calc(4 * var(--px));
  background:
    linear-gradient(var(--color-accent-line), var(--color-accent-line)) left bottom / 0 calc(2 * var(--px)) no-repeat,
    linear-gradient(var(--btn-line), var(--btn-line)) left bottom / 100% calc(2 * var(--px)) no-repeat;
  transition: background-size var(--animation-default);
}

.btn.is-link:hover .btn__label,
.btn.is-secondary:hover .btn__label {
  background-size: 100% calc(2 * var(--px)), 100% calc(2 * var(--px));
}

.btn__icon {
  width: calc(11 * var(--px));
  height: calc(11 * var(--px));
  flex: none;
  margin-bottom: calc(4 * var(--px));
}

/* ---- Enquire: label + brand-shape cap ------------------------------- */

.btn.is-enquire {
  height: auto;
  padding: 0;
  background: none;
  border-radius: 0;
}

.btn.is-enquire:hover { background: none; border-radius: 0; }

.btn__pill {
  display: flex;
  align-items: center;
  height: var(--btn-h);
  padding: calc(3 * var(--px)) calc(20 * var(--px)) 0;
  border-radius: var(--radius-s);
  background-color: var(--brand-charcoal);
  transition: border-radius var(--animation-default-half);
}

.btn.is-enquire .btn__text,
.btn.is-enquire .btn__text + .btn__text { color: var(--color-text-light); }

.btn.is-enquire:hover .btn__pill { border-radius: calc(var(--btn-h) / 2); }

.btn__cap {
  width: var(--btn-h);
  height: var(--btn-h);
  color: var(--brand-charcoal);
}

.btn__cap-track {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.btn__cap-icon {
  flex: none;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  margin: auto;
  transition: transform var(--animation-default);
}

.btn__cap-icon + .btn__cap-icon {
  position: absolute;
  inset: 0;
  transform: translateX(-175%);
}

.btn.is-enquire:hover .btn__cap-icon { transform: translateX(175%); }
.btn.is-enquire:hover .btn__cap-icon + .btn__cap-icon { transform: translateX(0); }

/* ---- Brand shape ------------------------------------------------------
   Reusable: .brand-shape morphs when it, or a .btn / [data-brand-shape-
   trigger] ancestor, is hovered. Financial's hexagon is a mask crossfade
   because border-radius cannot draw it. */

.brand-shape {
  --shape-radius: 50%;
  position: relative;
  display: inline-flex;
  isolation: isolate;
}

[data-brand="homes"]  .brand-shape { --shape-radius: 50% 50% 0 0; }
[data-brand="invest"] .brand-shape { --shape-radius: 0 21% 0 21%; }
[data-brand="group"]  .brand-shape { --shape-radius: 20%; }

.brand-shape::before,
.brand-shape::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background-color: var(--color-accent);
  transition:
    border-radius var(--animation-default),
    opacity var(--animation-default-half);
}

.brand-shape::before { border-radius: 50%; }

.brand-shape::after {
  inset: -4.6% 0;
  opacity: 0;
  -webkit-mask: url('../img/brand/shape-financial.svg') center / 100% 100% no-repeat;
  mask: url('../img/brand/shape-financial.svg') center / 100% 100% no-repeat;
}

:is(.btn, [data-brand-shape-trigger]):hover .brand-shape::before,
.brand-shape:hover::before { border-radius: var(--shape-radius); }

[data-brand="financial"] :is(.btn, [data-brand-shape-trigger]):hover .brand-shape::before,
[data-brand="financial"] .brand-shape:hover::before { opacity: 0; }

[data-brand="financial"] :is(.btn, [data-brand-shape-trigger]):hover .brand-shape::after,
[data-brand="financial"] .brand-shape:hover::after { opacity: 1; }

/* Group's label dot (Figma shape-tiny-group 2135:114306): the three brand
   shapes in a strip, sliding one cell every 2s. Still on reduced motion. */
@keyframes brand-shape-tiny-cycle {
  0%, 22% { background-position: 0 0; }
  33%, 55% { background-position: 33.333% 0; }
  66%, 88% { background-position: 66.667% 0; }
  100% { background-position: 100% 0; }
}

:root[data-brand="group"] .hero__label::before,
:root[data-brand="group"] .section_team-listing .block-intro__label::before,
:root[data-brand="group"] .anchor-nav__marker,
:root[data-brand="group"] .listing-advert__shape,
:root[data-brand="group"] .article-toc__marker,
:root[data-brand="group"] .dc-dropdown__dot {
  background: var(--brand-shape-tiny-image) 0 0 / 400% 100% no-repeat;
  animation: brand-shape-tiny-cycle 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  :root[data-brand="group"] :is(.anchor-nav__marker, .listing-advert__shape, .article-toc__marker, .dc-dropdown__dot),
  :root[data-brand="group"] .hero__label::before,
  :root[data-brand="group"] .section_team-listing .block-intro__label::before { animation: none; }
}

/* ---- Carousel arrow ------------------------------------------------- */

.btn-arrow {
  /* Figma btn-carouselArrow on light (1195:79307, Monique QA 9 Nov): soft
     charcoal disc, hover deepens to charcoal with an accent arrow. */
  --arrow-bg: color-mix(in srgb, var(--brand-charcoal) 85%, transparent);
  --arrow-ink: var(--brand-silver);
  --arrow-bg-hover: var(--brand-charcoal);
  --arrow-ink-hover: var(--color-accent);
  --arrow-bg-disabled: color-mix(in srgb, var(--brand-charcoal) 5%, transparent);
  --arrow-ink-disabled: color-mix(in srgb, var(--brand-charcoal) 30%, transparent);

  appearance: none;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background-color: var(--arrow-bg);
  color: var(--arrow-ink);
  cursor: pointer;
  transition:
    background-color var(--animation-ease),
    color var(--animation-ease);
}

:where([data-theme-section="dark"], [data-theme-section="primary"]) .btn-arrow {
  --arrow-bg: color-mix(in srgb, var(--brand-silver) 90%, transparent);
  --arrow-ink: var(--brand-charcoal);
  --arrow-bg-hover: var(--brand-silver);
  --arrow-ink-hover: var(--brand-charcoal);
  --arrow-bg-disabled: color-mix(in srgb, var(--brand-silver) 10%, transparent);
  --arrow-ink-disabled: color-mix(in srgb, var(--brand-silver) 45%, transparent);
}

.btn-arrow:hover {
  background-color: var(--arrow-bg-hover);
  color: var(--arrow-ink-hover);
}

.btn-arrow:disabled,
.btn-arrow[aria-disabled="true"],
.btn-arrow.is--disabled {
  background-color: var(--arrow-bg-disabled);
  color: var(--arrow-ink-disabled);
  cursor: default;
}

.btn-arrow svg {
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
}

.btn-arrow.is-prev svg { transform: scaleX(-1); }

/* ---- Badge ---------------------------------------------------------- */

.badge {
  --badge-ink: var(--color-ink);

  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--px));
  height: calc(20 * var(--px));
  padding: calc(1 * var(--px)) calc(8 * var(--px)) 0;
  border-radius: var(--radius-xs);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--badge-ink) 70%, transparent);
  color: var(--badge-ink);
  font-family: var(--font-sans);
  font-size: var(--utility-xs-size);
  font-weight: var(--utility-xs-weight);
  line-height: var(--utility-xs-lh);
  letter-spacing: var(--utility-xs-ls);
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.is-fill {
  --badge-ink: var(--brand-charcoal);
  background-color: var(--color-accent);
  box-shadow: none;
}

.badge.is-pill { border-radius: var(--radius-full); }

.badge svg {
  width: calc(11 * var(--px));
  height: calc(11 * var(--px));
  flex: none;
}

@media screen and (max-width: 767px) {
  .btn { --btn-h: calc(35 * var(--px)); }

  .badge {
    height: calc(18 * var(--px));
    padding-inline: calc(6 * var(--px));
  }
}


/* --- css/components/play-button.css --- */
/* components/play-button.css — THE play button, emitted by dc_play_button()
   (Figma playBtn). 64px frosted silver circle with a silver triangle; grows to
   72px and fills accent (charcoal triangle) on hover of itself or of the
   nearest [data-play-host] (the card that opens the video). Size and colours
   flow through --play-* so a block can resize without restyling. */

.play-btn {
  --play-size: calc(64 * var(--px));
  --play-size-hover: calc(72 * var(--px));
  --play-bg: color-mix(in srgb, var(--brand-silver) 20%, transparent);
  --play-ink: var(--brand-silver);
  --play-bg-hover: var(--color-accent);
  --play-ink-hover: var(--brand-charcoal);

  display: grid;
  place-items: center;
  width: var(--play-size);
  height: var(--play-size);
  border-radius: 50%;
  background-color: var(--play-bg);
  color: var(--play-ink);
  backdrop-filter: blur(calc(12 * var(--px)));
  -webkit-backdrop-filter: blur(calc(12 * var(--px)));
  transition:
    width var(--animation-default-half),
    height var(--animation-default-half),
    background-color var(--animation-default-half),
    color var(--animation-default-half);
}

/* The triangle keeps its Figma proportion at any circle size. */
.play-btn__icon {
  width: 100%;
  height: 100%;
}

@media (hover: hover) {
  .play-btn:hover,
  [data-play-host]:hover .play-btn,
  [data-play-host]:focus-visible .play-btn {
    width: var(--play-size-hover);
    height: var(--play-size-hover);
    background-color: var(--play-bg-hover);
    color: var(--play-ink-hover);
  }
}


/* --- css/components/rich-text.css --- */
/* components/rich-text.css — client wysiwyg output (PHP: dc_rte(), wrapper
   carries the `rte` class). Two rules so editor content needs no thought from
   the client: a link on its own line has already become the standard text
   button (.btn.is-link, styled in button.css), and a link inside a sentence
   reads as body text with an accent underline (mint text on white is ~1.6:1,
   under the 4.5:1 minimum; the underline carries the brand cue instead). */

.rte a:not(.btn) {
  color: inherit;
  text-decoration: underline;
  /* Mixed with the text colour so the line shows on white as well as on
     dark bands; thicker than the font's own (Kellie, 23 Nov: links could
     not be told from text). */
  text-decoration-color: color-mix(in srgb, var(--color-accent-line) 60%, currentColor);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--animation-default-half);
}

.rte a:not(.btn):hover {
  text-decoration-color: currentColor;
}

/* A text button on its own line keeps the paragraph rhythm, not tight to the
   sentence above it. */
.rte p > .btn.is-link:only-child {
  margin-top: calc(4 * var(--px));
}

/* ---- Global text formatting (Figma Resource - Article 1724:78915) --------
   Every wysiwyg text block shares one type scale: H2 display-l, H3
   display-m, body-m paragraphs, dot and numbered lists, the accent-ruled
   blockquote and rounded images with a centred caption. Written at element
   weight (:where(.rte) h2 = 0,0,1): later in the bundle than the bare base
   rules in brand.css so it beats them, while any block's own class rule (a
   tight intro, a card's text) still beats it. */

:where(.rte) p,
:where(.rte) ul,
:where(.rte) ol,
:where(.rte) blockquote,
:where(.rte) figure { margin: 0; }

:where(.rte) > :where(*) + p,
:where(.rte) > :where(*) + ul,
:where(.rte) > :where(*) + ol,
:where(.rte) > :where(*) + blockquote,
:where(.rte) > :where(*) + figure,
:where(.rte) > :where(*) + :where(div, section, aside, nav, table) { margin-top: calc(16 * var(--px)); }

:where(.rte) h2,
:where(.rte) h3,
:where(.rte) h4 {
  width: auto;
  margin: 0;
  font-family: var(--font-serif);
  color: inherit;
  text-wrap: balance;
}

:where(.rte) h2 {
  margin-top: calc(67 * var(--px));
  font-size: var(--display-l-size);
  line-height: var(--display-l-lh);
  letter-spacing: var(--display-l-ls);
  font-weight: var(--display-l-weight);
}

:where(.rte) h3 {
  margin-top: calc(48 * var(--px));
  font-size: var(--display-m-size);
  line-height: var(--display-m-lh);
  letter-spacing: var(--display-m-ls);
  font-weight: var(--display-m-weight);
}

:where(.rte) h4 {
  margin-top: calc(32 * var(--px));
  font-family: var(--font-body);
  font-size: var(--utility-l-size);
  line-height: var(--utility-l-lh);
  letter-spacing: var(--utility-l-ls);
  font-weight: 700;
}

:where(.rte) > :where(h2, h3, h4) + p,
:where(.rte) > :where(h2, h3, h4) + ul,
:where(.rte) > :where(h2, h3, h4) + ol { margin-top: calc(24 * var(--px)); }

:where(.rte) > :first-child { margin-top: 0; }

:where(.rte) ul,
:where(.rte) ol {
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--px));
  padding-left: calc(20 * var(--px));
}

:where(.rte) ul { list-style: none; }

:where(.rte) ul > li {
  position: relative;
  padding-left: calc(23 * var(--px));
}

:where(.rte) ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.5lh - 4 * var(--px));
  width: calc(8 * var(--px));
  height: calc(8 * var(--px));
  border-radius: 50%;
  background-color: var(--color-accent-shade);
}

/* Tick list: <ul class="is-ticks"> (Figma GROUP - Careers "What we look for"
   2266:169019): a 20 check circle, 12 to the text, items 12 apart. */
.rte ul.is-ticks { gap: calc(12 * var(--px)); padding-left: 0; }
.rte ul.is-ticks > li { padding-left: calc(32 * var(--px)); }
.rte ul.is-ticks > li::before {
  top: calc(0.5lh - 10 * var(--px));
  width: calc(20 * var(--px));
  height: calc(20 * var(--px));
  border-radius: 0;
  background: url("../img/icons/check-circle.svg") center / contain no-repeat;
}

:where(.rte) ol { padding-left: calc(40 * var(--px)); }
:where(.rte) ol > li::marker { font-weight: 700; }

:where(.rte) strong,
:where(.rte) b { font-weight: 700; }

:where(.rte) blockquote {
  padding: calc(16 * var(--px)) 0 calc(16 * var(--px)) calc(20 * var(--px));
  border-left: 4px solid var(--color-accent-line);
  font-size: var(--testimonial-size);
  line-height: var(--testimonial-lh);
  letter-spacing: var(--testimonial-ls);
  font-weight: 600;
}

:where(.rte) blockquote p { margin: 0; }

:where(.rte) img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-m);
}

:where(.rte) figcaption,
:where(.rte) .wp-caption-text {
  margin-top: calc(16 * var(--px));
  padding-inline: calc(24 * var(--px));
  font-size: calc(15 * var(--px));
  line-height: calc(22 / 15);
  color: var(--color-text-dark-tertiary);
  text-align: center;
}

:where(.rte) iframe {
  max-width: 100%;
  border: 0;
  border-radius: var(--radius-m);
}

/* Bunny videos pasted as a link on their own line (locale-network client-stories.php). */
:where(.rte) .video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-block: 1.5em;
}
:where(.rte) .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Inline videos (the migrated .video-wrapper and plain <video>): their own
   shape, centred, never taller than 70% of the screen, rounded. A portrait
   clip stays portrait rather than sitting in a wide letterbox. */
:where(.rte) video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  margin-inline: auto;
  border-radius: var(--radius-m);
}

:where(.rte) .video-wrapper { max-height: 70vh; }


/* --- css/components/marker-reveal.css --- */
/* components/marker-reveal.css — vault highlight-marker-text-reveal. */

[data-highlight-marker-reveal] {
  visibility: hidden;
}

[data-highlight-marker-reveal] .highlight-marker-line {
  width: auto;
  display: inline-block !important;
  margin: -0.055em 0px;
}

.highlight-marker-bar {
  position: absolute;
  inset: -0.055em 0px;
  z-index: 1;
  pointer-events: none;
}


/* --- css/components/region-strip.css --- */
/* components/region-strip.css — the sticky region selector floating at the
   bottom of every page (template-parts/region-strip.php; Figma 978:25094
   collapsed, 978:25098 expanded, 978:25102 region chosen, 978:25106 arrow
   hover). A charcoal strip: heading and blurb on the left, the region buttons
   and the go arrow on the right. The blurb is collapsed and opens on hover
   (Chris 2026-09-23), so the strip rests as state 01 and becomes state 02
   under the pointer; the close dismisses it for the visit.

   The header chip and this strip are both kept on purpose: the chip reports
   the region being served, the strip invites a first choice. */

.region-strip {
  position: fixed;
  z-index: 60;
  left: 50%;
  translate: -50% 0;
  bottom: calc(16 * var(--px) + env(safe-area-inset-bottom, 0px));
  width: calc(1196 * var(--px));
  max-width: calc(100vw - 2 * var(--container-padding));
  pointer-events: none;
  transition: opacity var(--animation-default-half), visibility var(--animation-default-half);
}

/* Popups live inside the page wrapper's stacking context, under this strip:
   step it aside while one is open. */
body:has(.modal[data-modal-group-status="active"], .lightbox-wrap.is-active) .region-strip { opacity: 0; visibility: hidden; }

.region-strip__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-06);
  position: relative;
  overflow: clip;
  padding: var(--space-05b) var(--space-07) var(--space-05b) var(--space-08);
  border-radius: calc(24 * var(--px));
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
  pointer-events: auto;
  /* Figma cardHover-shadow-v2 */
  box-shadow:
    0 calc(-1 * var(--px)) calc(2 * var(--px)) rgb(0 0 0 / 0.05),
    0 calc(3 * var(--px)) calc(4 * var(--px)) rgb(0 0 0 / 0.08),
    0 calc(7 * var(--px)) calc(12 * var(--px)) rgb(50 50 50 / 0.08);
}

/* No flex gap: it would still apply while the blurb is collapsed to 0 and
   push the strip past Figma's 80px. The blurb carries the space instead. */
.region-strip__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.region-strip__heading {
  display: flex;
  align-items: center;
  gap: var(--space-04);
  height: calc(40 * var(--px));
  margin: 0;
  font-size: calc(23 * var(--px));
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.region-strip__icon {
  flex: none;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
}

/* The blurb is closed at rest and opens on hover: the row animates from 0 to
   the real content height, so nothing here has to guess a max-height.
   minmax(0, Nfr) not a bare Nfr — an fr track keeps an `auto` minimum, which
   min-height on the item cannot override, and 0fr alone left a 16px sliver. */
.region-strip__reveal {
  display: grid;
  grid-template-rows: minmax(0, 0fr);
  transition:
    grid-template-rows var(--animation-default),
    opacity var(--animation-default-half);
  opacity: 0;
}

/* min-height:0 as well as overflow: a grid item defaults to min-height:auto
   and will not shrink below its content, so 0fr still left the paragraph's
   padding showing as a 16px sliver. */
.region-strip__reveal > * {
  overflow: hidden;
  min-height: 0;
}

.region-strip__inner:hover .region-strip__reveal,
.region-strip__inner:focus-within .region-strip__reveal {
  grid-template-rows: minmax(0, 1fr);
  opacity: 1;
}

.region-strip__text {
  margin: 0;
  padding-top: var(--space-04);
  padding-bottom: var(--space-05);
  max-width: calc(578 * var(--px));
  font-size: calc(15 * var(--px));
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.0067em;
}

/* No pointer to hover with: leave the blurb open rather than unreachable. */
@media (hover: none) {
  .region-strip__reveal {
    grid-template-rows: minmax(0, 1fr);
    opacity: 1;
  }
}

.region-strip__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: stretch;
  padding-right: var(--space-09);
}

.region-strip__buttons {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
}

.region-strip__region {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(40 * var(--px));
  padding: calc(10 * var(--px)) var(--space-05);
  border-radius: var(--radius-s);
  background-color: color-mix(in srgb, var(--brand-silver) 15%, transparent);
  color: var(--color-text-light);
  font-size: calc(16 * var(--px));
  font-weight: 630;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color var(--animation-default-half),
    color var(--animation-default-half),
    border-radius var(--animation-default-half);
}

.region-strip__region:hover {
  background-color: color-mix(in srgb, var(--brand-silver) 28%, transparent);
}

/* Chosen: a silver pill with charcoal ink. */
.region-strip__region[aria-current="true"] {
  border-radius: calc(20 * var(--px));
  background-color: var(--brand-silver);
  color: var(--color-text-dark);
}

/* ---- go ---- */
.region-strip__go {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: calc(40 * var(--px));
  height: calc(40 * var(--px));
  color: var(--color-text-light);
}

.region-strip__go[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
}

/* The fill is its own element so it can morph on hover without moving the
   arrow. Deliberately NOT .brand-shape: that class is the Enquire cap and
   carries pseudo-element fills that paint accent over anything set here. */
.region-strip__go-shape {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background-color: color-mix(in srgb, var(--brand-silver) 15%, transparent);
  transition:
    background-color var(--animation-default-half),
    border-radius var(--animation-default-half);
}

.region-strip__go:not([aria-disabled="true"]) .region-strip__go-shape {
  background-color: var(--color-accent);
}

.region-strip__go:not([aria-disabled="true"]):hover .region-strip__go-shape {
  border-radius: var(--radius-full) var(--radius-full) calc(6 * var(--px)) calc(6 * var(--px));
}

.region-strip__go:not([aria-disabled="true"]) { color: var(--brand-charcoal); }

.region-strip__go-icon {
  position: relative;
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
}

/* ---- close ---- */
.region-strip__close {
  position: absolute;
  top: var(--space-05b);
  right: var(--space-05b);
  display: grid;
  place-items: center;
  width: calc(16 * var(--px));
  height: calc(16 * var(--px));
  padding: 0;
  border: 0;
  background: none;
  color: color-mix(in srgb, var(--brand-silver) 60%, transparent);
  cursor: pointer;
  transition: color var(--animation-default-half);
}

.region-strip__close:hover { color: var(--color-text-light); }
.region-strip__close svg { width: 100%; height: 100%; }

/* A finger-sized target around the 16px cross. */
.region-strip__close::after {
  content: "";
  position: absolute;
  inset: calc(-14 * var(--px));
}

/* Dismissed for this visit. */
.region-strip[hidden] { display: none; }

/* A region is chosen or remembered (regions.php sets the flag from the URL's
   region, else the visitor's cookie): the floating invitation has done its
   job. The header chip and footer picker change the region from here; the
   in-page copy stays (Chris, 18 Nov 2026). */
.has-locale-region .region-strip:not(.is-inline) { display: none; }

/* ---- floating copy: parked while the page's inline copy is on or below screen ---- */
.region-strip {
  transition:
    transform var(--animation-default),
    opacity var(--animation-default-half),
    visibility 0s;
}

.region-strip.is-parked {
  transform: translateY(calc(100% + 32 * var(--px)));
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--animation-default),
    opacity var(--animation-default-half),
    visibility 0s var(--duration-default);
}

.region-strip.is-parked .region-strip__inner { pointer-events: none; }

/* A listing page has no floating strip at all (blocks/package_grid). */
.region-strip.is-off { display: none; }

/* ---- inline copy (blocks/region_strip): in the page stack on the dark band ---- */
.region-strip.is-inline {
  position: relative;
  z-index: auto;
  left: auto;
  right: auto;
  bottom: auto;
  translate: none;
  width: calc(1196 * var(--px));
  max-width: 100%;
  margin-inline: auto;
  pointer-events: auto;
  transition: none;
}

/* Figma charcoal-tint-90 on the charcoal band, no float shadow. */
.region-strip.is-inline .region-strip__inner {
  background-color: color-mix(in srgb, var(--brand-silver) 10%, var(--brand-charcoal));
  box-shadow: none;
}

@media screen and (max-width: 991px) {
  .region-strip {
    width: auto;
    left: var(--container-padding);
    right: var(--container-padding);
    translate: none;
    max-width: none;
  }

  .region-strip__inner {
    flex-direction: column;
    gap: var(--space-05);
    padding: var(--space-05b);
  }

  .region-strip__heading {
    height: auto;
    padding-right: var(--space-07);
    font-size: calc(18 * var(--px));
  }

  .region-strip__text { padding-bottom: 0; }

  .region-strip__actions {
    align-items: stretch;
    align-self: auto;
    width: 100%;
    padding-right: 0;
  }

  .region-strip__buttons { justify-content: space-between; }

  .region-strip__region { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .region-strip,
  .region-strip.is-parked,
  .region-strip__region,
  .region-strip__go-shape,
  .region-strip__reveal { transition: none; }
}


/* --- css/components/client-preview.css --- */
/* components/client-preview.css — client preview mode (js/components/client-preview.js,
   network locale-network/client-preview.php). Links to pages that are not open
   to the client carry a small "Soon" tag; clicking any locked link shows the
   toast instead of navigating. Only ever rendered for logged-out visitors while
   Settings > Client preview is on. */

.preview-soon {
  display: inline-flex;
  align-items: center;
  margin-left: calc(8 * var(--px));
  padding: calc(3 * var(--px)) calc(7 * var(--px));
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  color: var(--brand-charcoal);
  font-size: calc(10.5 * var(--px));
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.15em;
  white-space: nowrap;
}

[data-preview-locked] { cursor: help; }

/* Just under the header (the same clamp as its --nav-height), clear of the region strip below. */
.preview-toast {
  position: fixed;
  z-index: 200;
  top: calc(clamp(60px, 10vw, 140px) + 16px + env(safe-area-inset-top, 0px));
  left: 50%;
  max-width: min(calc(560 * var(--px)), calc(100vw - 2 * var(--container-padding)));
  padding: calc(14 * var(--px)) calc(20 * var(--px));
  border-radius: var(--radius-s);
  background-color: var(--brand-charcoal);
  color: var(--color-text-light);
  font-size: calc(15 * var(--px));
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  box-shadow:
    0 calc(3 * var(--px)) calc(4 * var(--px)) rgb(0 0 0 / 0.08),
    0 calc(7 * var(--px)) calc(12 * var(--px)) rgb(50 50 50 / 0.12);
  opacity: 0;
  visibility: hidden;
  translate: -50% calc(-8 * var(--px));
  transition:
    opacity var(--animation-default-half),
    translate var(--animation-default-half),
    visibility 0s var(--duration-default-half);
  pointer-events: none;
}

.preview-toast.is-visible {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
  transition:
    opacity var(--animation-default-half),
    translate var(--animation-default-half),
    visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .preview-toast,
  .preview-toast.is-visible { translate: -50% 0; transition: opacity var(--animation-default-half), visibility 0s; }
}
