/* --- 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-on-accent: var(--n-0);
  --color-line:      var(--n-200);
  --color-error:     #b3261e;   /* form errors; AA on white and the neutral surfaces */

  /* 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: 1920px;
  --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)));
  --px: calc(var(--size-font) / var(--size-unit));   /* one design px on the scaling system */
}

@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); }

.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; }
/* In a WebP <picture> the <source> carries the real image; off-screen slides never get marked loaded */
picture > img[data-lazyloaded] { 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: Sola Swim. The ONLY file that knows the client's tokens.
   Values from the July 2025 staging build (Elementor kit + Airvice theme mods).
   Component skins and the header/footer chrome live in css/base/solaswim.css,
   which loads last. */

/* Self-hosted, Latin subset. Roboto Slab = headings, Roboto = body,
   Saira Semi Condensed = nav, buttons, labels (as on staging). */
@font-face { font-family: 'Roboto Slab'; src: url('../fonts/RobotoSlab-Variable.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('../fonts/Roboto-Variable.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Saira Semi Condensed'; src: url('../fonts/SairaSemiCondensed-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Saira Semi Condensed'; src: url('../fonts/SairaSemiCondensed-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Saira Semi Condensed'; src: url('../fonts/SairaSemiCondensed-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --font-sans: 'Roboto', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-heading: 'Roboto Slab', Georgia, serif;
  --font-body: var(--font-sans);
  --font-ui: 'Saira Semi Condensed', 'Roboto', ui-sans-serif, sans-serif;

  --ss-yellow: #fbc20a;
  --ss-yellow-soft: #fff4cf;
  --ss-blue: #2b3290;
  --ss-navy: #1d284b;
  --ss-navy-soft: #2a365e;
  --ss-ink: #212237;
  --ss-grey: #666666;
  --ss-mist: #f4f6fa;
  --ss-line: #e3e6ee;
  --ss-white: #ffffff;

  /* The neutral ramp becomes Sola Swim's navy: n-900 is what dark sections paint. */
  --n-900: var(--ss-navy);
  --n-700: var(--ss-navy-soft);
  --n-500: #6b7290;
  --n-300: #b9bfd3;
  --n-200: var(--ss-line);
  --n-100: #edf0f6;
  --n-50: var(--ss-mist);

  --color-primary: var(--ss-blue);
  --color-accent: var(--ss-yellow);
  /* Navy on yellow, not staging's white on yellow (1.7:1 fails WCAG; navy is ~9:1). */
  --color-on-accent: var(--ss-navy);
  --color-ink: var(--ss-ink);
  --color-ink-soft: var(--ss-grey);
  --color-surface: var(--ss-white);
  --color-surface-2: var(--ss-mist);
  --color-line: var(--ss-line);

  /* Legacy compat aliases the carried components still read. */
  --theme-color: var(--color-primary);
  --dark-color: var(--ss-navy);
  --light-color: var(--ss-white);
  --cream-color: var(--ss-mist);
  --grey-color: var(--ss-mist);
}

html, body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-ink);
  line-height: 1.6;
  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.01em;
  line-height: 1.15;
  width: 100%;
  margin: 0 0 0.5em;
}

/* Heading LEVEL is semantic, SCALE is a class (<h1 class="h2">). */
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; }


/* --- css/base/brand-tokens.css --- */
/* base/brand-tokens.css — GENERATED by design-tokens/build-foundations.js from
   design-tokens/foundations.json (Figma OjFIyLiyv8aiozuUK0YdYs, pulled 2026-10-10).
   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(6 * var(--px));
  --radius-m: calc(12 * 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-06: calc(24 * var(--px));
  --space-07: calc(32 * var(--px));
  --space-08: calc(48 * var(--px));
  --space-09: calc(64 * var(--px));
  --space-10: calc(80 * var(--px));
  --space-11: calc(96 * var(--px));
  --space-12: calc(128 * var(--px));
  --padding-block: calc(120 * var(--px));
  --padding-content: calc(56 * var(--px));

  --brand-ink: #1a1918;
  --brand-cream: #faf8f3;
  --brand-lilac: #bea7f3;
  --brand-coral: #f4978e;
  --brand-yellow: #ffd464;
  --brand-blue: #aeccfa;
  --brand-sage: #c8ddcd;
  --brand-neutral: #cdc7c0;


  --size-container-ideal: 1920;
  --size-container-min: 1632px;
  --size-container-max: 1920px;
  --container-padding: calc(64 * var(--px));
  --grid-gutter: calc(24 * var(--px));
  --grid-columns: 12;

}

@media screen and (max-width: 1631px) {
  :root {
    --size-font: calc(11.56px + 0.125vw);
  }
}

/* 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.8px);
    --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(20 * var(--px));
    --grid-gutter: calc(16 * var(--px));
    --grid-columns: 6;

    --radius-l: calc(16 * var(--px));
    --space-08: calc(32 * var(--px));
    --space-09: calc(40 * var(--px));
    --space-10: calc(48 * var(--px));
    --space-11: calc(56 * var(--px));
    --space-12: calc(64 * var(--px));
    --padding-block: calc(64 * var(--px));
    --padding-content: calc(32 * var(--px));
  }
}



/* --- 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/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. */

:root {
  --nav-height: 4em;
}

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

.mega-nav__bar {
  z-index: 3;
  background-color: var(--color-surface);
  width: 100%;
  max-width: var(--size-container-max);
  margin-inline: auto;
  position: relative;
}

.mega-nav__container {
  height: var(--nav-height);
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.5em;
  display: flex;
}

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

.mega-nav__bar-logo {
  flex: none;
  max-width: 9em;
  margin-right: 3em;
  display: flex;
  font-weight: 550;
  letter-spacing: -0.02em;
}

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

.mega-nav__bar-list {
  gap: 0.75em;
  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: 0.375em 0.625em;
  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);
}

.mega-nav__bar-link-label {
  font-size: 0.9375em;
  font-weight: 500;
  line-height: 1.2;
}

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

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

.mega-nav__bar-cta {
  color: var(--color-surface);
  background-color: var(--color-primary);
  border-radius: var(--radius-s);
  justify-content: center;
  align-items: center;
  padding: 0.375em 0.625em;
  text-decoration: none;
  display: flex;
  transition: opacity var(--duration-fast) var(--ease-soft);
}

.mega-nav__bar-cta:hover {
  opacity: 0.85;
}

.mega-nav__bar-cta.is--secondary {
  color: var(--color-ink);
  background-color: transparent;
  border: 1px solid var(--color-line);
}

.mega-nav__bar-cta.is--secondary:hover {
  opacity: 1;
  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% - 0.25em);
  left: 0;
  right: 0;
}

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

.mega-nav__dropdown-bg {
  will-change: transform;
  background-color: var(--color-surface);
  border-bottom-right-radius: var(--radius-s);
  border-bottom-left-radius: var(--radius-s);
  position: absolute;
  inset: 0;
}

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

.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-left: 1em;
  font-size: 0.75em;
  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: 0.625em 0.75em;
  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 its real resting height
   (bar + the 1.25em it floats down). --nav-offset is that height for this
   page; 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: calc(var(--nav-height) + 1.25em);
  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, so the page measures the same logged in
   or out. On phones (<=600) the toolbar scrolls with the page, so it is hidden. */
:root { --admin-bar: 0px; }
.admin-bar { --admin-bar: var(--wp-admin--admin-bar--height, 0px); }
.admin-bar .mega-nav { top: calc(1.25em + 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 { --nav-offset: var(--nav-height); }
  .admin-bar .mega-nav { top: var(--admin-bar); }

  .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%;
  }

  .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;
  }

  .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);
  }

  /* Brand hook: --nav-restore-surface/-ink let brand.css pick the surface
     that fades back in (defaults to the standard tokens). */
  [data-nav-theme="dark"] .mega-nav__bar:hover,
  [data-nav-theme="dark"][data-menu-open="true"] .mega-nav__bar {
    background-color: var(--nav-restore-surface, var(--color-surface));
  }

  [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 {
    color: var(--nav-restore-ink, var(--color-ink));
  }
}

/* --- 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. */

.mega-nav__dropdown-inner.is--acf {
  flex-flow: column;
  gap: var(--gap-l);
  /* Horizontal inset matches the fallback panel columns (and the bar's
     container padding) so panel content aligns with the logo. */
  padding: var(--space-m) 1.5em;
}

.mega-nav__panel-intro { max-width: 40em; }

.mega-nav__panel-intro-title {
  font-size: 1.375em;
  font-weight: 600;
  line-height: 1.3;
}

.mega-nav__panel-intro-text {
  margin-top: 0.375em;
  color: var(--color-ink-soft);
}

.mega-nav__panel-row {
  display: flex;
  gap: var(--gap-l);
  align-items: flex-start;
}

.mega-nav__dropdown-inner.is--acf .mega-nav__panel-col {
  border: none;
  padding: 0;
  display: flex;
  flex-flow: column;
  gap: var(--gap-m);
  flex: 1;
}

.mega-nav__dropdown-inner.is--acf .mega-nav__panel-col.is--feature { max-width: 21em; }

.mega-nav__dropdown-inner.is--acf .mega-nav__panel-col.is--groups { gap: var(--gap-l); }

/* Feature card */
.mega-nav__panel-card {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  gap: var(--gap-xs);
  padding: var(--gap-m);
  border-radius: var(--radius-m);
  background-color: var(--color-surface-2);
}

.mega-nav__panel-card-image {
  width: 3.25em;
  height: 3.25em;
  object-fit: cover;
  border-radius: var(--radius-s);
  margin-bottom: var(--gap-s);
}

.mega-nav__panel-card-title {
  font-size: 1.25em;
  font-weight: 600;
}

.mega-nav__panel-card-text {
  font-size: 0.875em;
  color: var(--color-ink-soft);
}

.mega-nav__panel-card-link,
.mega-nav__panel-browse {
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  font-size: 0.875em;
  font-weight: 500;
  margin-top: var(--gap-xs);
}

.mega-nav__panel-arrow { width: 1.1em; flex: none; }

/* Rich links under a feature card */
.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; }

.mega-nav__panel-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5em;
  padding: 0.2em 0.5em;
  font-size: 0.65em;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-s);
  background-color: var(--color-surface-3);
}

/* Labelled link groups (optional icons + browse-all) */
.mega-nav__panel-group {
  display: flex;
  flex-flow: column;
  gap: var(--gap-xs);
}

.mega-nav__panel-link.has--icon {
  flex-flow: row;
  align-items: center;
  gap: 0.75em;
  padding: 0.25em 0;
}

.mega-nav__panel-link.has--icon:hover { background: none; }

.mega-nav__panel-link.has--icon:hover .mega-nav__panel-link-text { text-decoration: underline; }

.mega-nav__panel-link-icon {
  width: 1.375em;
  height: 1.375em;
  flex: none;
  object-fit: cover;
  border-radius: 4px;
}

/* Card grid (audience tiles) */
.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: var(--gap-s);
  flex: 2;
}

.mega-nav__panel-tile {
  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(--color-surface-2);
  transition: background-color 0.2s ease;
}

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

.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: 0.8125em;
  color: var(--color-ink-soft);
}

/* Popular-topic pills */
.mega-nav__panel-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--gap-xs);
  padding-top: var(--gap-m);
  border-top: 1px solid var(--color-line);
}

.mega-nav__panel-pills-label {
  font-weight: 600;
  margin-right: var(--gap-xs);
}

.mega-nav__panel-pill {
  padding: 0.4em 1em;
  font-size: 0.875em;
  border: 1px solid var(--color-line);
  border-radius: 100em;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mega-nav__panel-pill:hover {
  background-color: var(--color-surface-2);
  border-color: var(--color-ink-soft);
}

/* Bar utilities (region + search stubs) */
.mega-nav__bar-list.is--utils { gap: var(--gap-xs); }

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

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

/* Mobile: panels stack; grids collapse to one column */
@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-col.is--feature { max-width: none; }

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


/* --- css/core/footer.css --- */
/* core/footer.css — footer with the parallax reveal (footer-parallax.js).
   Widget areas + bottom bar carried; styling is DC-neutral dark. */
.footer__wrap { position: relative; overflow: hidden; }
.footer {
  background: var(--n-900); color: var(--n-50);
  --color-ink: var(--n-50); --color-line: var(--n-700);
  padding: var(--padding-s) var(--container-padding) 0;
}
.footer-top-inner {
  display: flex; flex-wrap: wrap; gap: var(--gap-l);
  max-width: var(--size-container); margin-inline: auto;
  padding-bottom: var(--padding-xs);
}
.footer-widget { flex: 1 1 12em; min-width: 10em; font-size: var(--text-s); }
.footer-widget a { color: var(--n-300); transition: color var(--animation-ease); }
.footer-widget a:hover { color: var(--n-0); }
.footer-widget .widget-title { color: var(--n-0); font-size: var(--text-s); margin: 0 0 1em; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-flow: column; gap: 0.5em; }
.footer__wordmark { margin-top: clamp(2rem, 5vh, 3rem); margin-bottom: 1.5rem; color: var(--n-50);
  max-width: var(--size-container); margin-inline: auto; pointer-events: none; }
.footer__wordmark-svg { width: 100%; height: auto; display: block; fill: currentColor; }
.footer-bottom-wrapper { border-top: 1px solid var(--n-700); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--gap-s);
  max-width: var(--size-container); margin-inline: auto;
  padding: 1.25em 0; font-size: var(--text-xs); color: var(--n-300);
}
.footer-bottom-inner a { color: var(--n-0); }
.footer__dark {
  position: absolute; inset: 0; z-index: 2;
  background: var(--n-900); pointer-events: none; opacity: 0;
}


/* --- css/components/pulse.css --- */
/* components/pulse.css: the live dot (a label's "we're open" marker). */
.pulse { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 70%, transparent); animation: dc-ping 2.2s infinite; }
@keyframes dc-ping { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }


/* --- css/sections/hero.css --- */
/* sections/hero.css — interim full-viewport hero (from the mega-nav demo
   page): cover image behind the floating nav, quiet title bottom-left.
   Replaced by the real DC hero later. */

.section_hero {
  justify-content: flex-start;
  align-items: center;
  min-height: 100svh;
  display: flex;
  position: relative;
  /* The section clips; the oversized bg wrapper is what the parallax moves */
  overflow: clip;
  /* Pull up behind the floating nav (body padding-top offsets it) */
  margin-top: calc(-1 * (4em + 1.25em));
}

/* 110% height gives the parallax room to travel without exposing edges */
.hero__bg {
  z-index: 0;
  pointer-events: none;
  color: #fff;
  isolation: isolate;
  border-radius: 1em;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 110%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  transform: translateX(0);
}

.hero__poster {
  position: absolute;
  inset: 0;
}

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

.hero__content {
  z-index: 1;
  position: relative;
  padding-block: var(--space-m);
  margin-top: var(--space-l);
}

.hero__title {
  color: var(--n-0);
  margin: 0;
}

@media screen and (max-width: 991px) {
  .section_hero {
    margin-top: -4em;
  }
}

.hero__video,
.hero__bg picture {
  object-fit: cover;
  width: 100%;
  height: 100%;
  padding-bottom: 0;
  padding-right: 0;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

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

.hero__video--vimeo {
  overflow: hidden;
}

.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;
}

/* Content stack — rylo careers-hero pattern: uppercase eyebrow, tight
   display title, large capped lead, button. All on our tokens. */

.hero__label {
  color: rgb(255 255 255 / 70%);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-s);
  font-weight: 600;
  display: block;
  margin-bottom: 2em;
}

.hero__title {
  max-width: 12em;
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero__text {
  color: var(--n-0);
  max-width: 26em;
  margin-top: 1em;
  font-size: var(--text-l);
  line-height: 1.15;
}

.hero__content .btn-group {
  margin-top: 2em;
}

/* --- css/sections/statement-hero.css --- */
/* sections/statement-hero.css — type-only hero (blocks/statement_hero). */

.statement-hero__labels {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-m);
  flex-wrap: wrap;
  margin-bottom: var(--space-m);
  font-family: ui-monospace, Menlo, monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.statement-hero__title {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.statement-hero__title .is--accent { color: var(--color-accent); }
.statement-hero__title .is--quiet  { opacity: 0.42; }

.statement-hero__lede {
  margin: var(--space-s) 0 0;
  max-width: 52ch;
  font-size: var(--text-l, 1.125rem);
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.statement-hero__buttons { margin-top: var(--space-m); }

@media (max-width: 47.99em) {
  .statement-hero__labels { flex-direction: column; gap: 0.35em; letter-spacing: 0.06em; }
  .statement-hero__labels span { text-wrap: balance; }
}

.statement-hero__title .is--circled { position: relative; display: inline-block; white-space: nowrap; }
.statement-hero__title .is--circled svg { position: absolute; left: -14%; top: -18%; width: 128%; max-width: none; height: 136%; overflow: visible; pointer-events: none; }
.statement-hero__title .is--circled path { fill: none; stroke: var(--color-accent); stroke-width: 0.06em; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* Undrawn until circle-draw.js tweens it in; only when JS is there to do it. */
@media (prefers-reduced-motion: no-preference) { .js .statement-hero__title .is--circled path { stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); } }

/* the coordinates span inside a label */
.statement-hero__labels > span > span:not(.pulse) { margin-left: 0.4rem; opacity: 0.6; }
.statement-hero__labels .pulse { margin: 0 0.6rem 0 0; vertical-align: middle; }


/* --- css/sections/video-reel.css --- */
/* sections/video-reel.css: blocks/video_reel. */

.video-reel {
  position: relative;
  isolation: isolate;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: clamp(16px, 1.6vw, 28px);
  overflow: hidden;
  background: var(--color-surface-2);
  box-shadow: 0 30px 60px -30px rgba(26, 25, 24, 0.35);
  will-change: transform;
}
.video-reel.is--narrow { width: 56%; margin-inline: auto; }
.video-reel > video,
.video-reel > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-reel.is--failed .video-reel__toggle { display: none; }

.video-reel__toggle {
  position: absolute;
  right: var(--space-s);
  bottom: var(--space-s);
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-ink) 55%, transparent);
  color: var(--color-surface);
  cursor: pointer;
  transition: background-color 0.2s;
}
.video-reel__toggle:hover { background: color-mix(in srgb, var(--color-ink) 80%, transparent); }
.video-reel__toggle:focus-visible {
  outline: 2px solid var(--color-surface);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-ink);
}
.js .video-reel__toggle { display: grid; }
.video-reel__icon { grid-area: 1 / 1; }
.video-reel__toggle[data-state="playing"] .is--play,
.video-reel__toggle[data-state="paused"] .is--pause { display: none; }

@media (max-width: 61.99em) {
  .video-reel { box-shadow: none; }
  .video-reel.is--narrow { width: 100%; }
}


/* --- css/sections/pill-hero.css --- */
/* sections/pill-hero.css — headline + pills, tinted card, media box
   (blocks/pill_hero). Measured from Figma DGC_841 189:195 at 1920:
   H1 108/1.05, pills 26 in a 55 pill, card 593 wide / 48 padding / 30 text,
   media 16:9 radius 24. Sizes are Figma px times --px so the block follows
   the scale model. */

.section_pill-hero { padding-top: calc(100 * var(--px)); }

.pill-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(593 * var(--px)));
  grid-template-rows: auto auto;
  column-gap: calc(40 * var(--px));
  align-items: start;
}
/* The head is a grid pass-through so the headline takes row 1 and the pills
   share row 2 with the card, whose top lines up with the pills (Figma). */
.pill-hero__head { display: contents; }
.pill-hero__title { grid-column: 1; grid-row: 1; }
.pill-hero__pills { grid-column: 1; grid-row: 2; }
.pill-hero__card  { grid-column: 2; grid-row: 2; }

.pill-hero__title {
  margin: 0;
  font-size: calc(108 * var(--px));
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

.pill-hero__pills {
  list-style: none;
  margin: calc(48 * var(--px)) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: calc(16 * var(--px));
}

.pill-hero__pill {
  background: var(--pill);
  color: var(--color-ink);
  font-weight: 500;
  font-size: calc(26 * var(--px));
  line-height: 1;
  padding: calc(14 * var(--px)) calc(24 * var(--px)) calc(15 * var(--px));
  border-radius: 999em;
}

.pill-hero__card {
  background: var(--color-surface-2);
  border-radius: var(--radius-l);
  padding: calc(48 * var(--px));
  align-self: start;
}

.pill-hero__card-title {
  margin: 0 0 0.4em;
  font-size: calc(40 * var(--px));
  line-height: 1.1;
}

.pill-hero__card-text {
  margin: 0;
  font-size: calc(30 * var(--px));
  line-height: 1.27;
  letter-spacing: -0.01em;
}
.pill-hero__card .btn-group { margin-top: calc(28 * var(--px)); }

.pill-hero__media { margin-top: calc(42 * var(--px)); }

.pill-hero__media-inner {
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--n-100);
  clip-path: inset(0 round var(--radius-l));
}

.pill-hero__media-inner video,
.pill-hero__media-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 61.99em) {
  .pill-hero__grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: calc(32 * var(--px)); }
  .pill-hero__pills { margin-top: 0; }
  .pill-hero__card { grid-column: 1; grid-row: 3; }
}
@media (max-width: 47.99em) {
  .section_pill-hero { padding-top: calc(40 * var(--px)); }
  .pill-hero__title { font-size: calc(44 * var(--px)); }
  .pill-hero__pill { font-size: calc(16 * var(--px)); padding: calc(9 * var(--px)) calc(16 * var(--px)) calc(10 * var(--px)); }
  .pill-hero__pills { margin-top: calc(24 * var(--px)); gap: calc(10 * var(--px)); }
  .pill-hero__card { padding: calc(24 * var(--px)); }
  .pill-hero__card-text { font-size: calc(18 * var(--px)); line-height: 1.4; }
  .pill-hero__media { margin-top: calc(24 * var(--px)); }
  .pill-hero__media-inner { border-radius: var(--radius-m); clip-path: inset(0 round var(--radius-m)); }
}


/* --- css/sections/service-plates.css --- */
/* sections/service-plates.css — slam heading + coloured plates with animated
   dot icons, word and caption inside the plate (blocks/service_plates). Plates measured
   from the live DC service cards in the Figma at 1920: 426 x 600, radius 24,
   icon 80 at a 44 inset, word 34 bottom-left. */

.service-plates__slam {
  margin: 0;
  font-size: calc(96 * var(--px));
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 14ch;
  text-wrap: balance;
}

.service-plates__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.25rem 3rem;
  margin-bottom: calc(64 * var(--px));
}
.service-plates__aside {
  margin: 0;
  color: var(--color-ink-soft);
  grid-column: 2;
  max-width: 44ch;
  justify-self: end;
}

.service-plates__grid {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: calc(30 * var(--px));
}
.service-plate { display: block; text-decoration: none; color: inherit; }

.service-plate__plate {
  background: var(--plate);
  color: var(--plate-fg);
  border-radius: var(--radius-l);
  aspect-ratio: 426 / 600;
  padding: calc(44 * var(--px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--duration-default, .6s) var(--cubic-default, ease);
}
.service-plate:hover .service-plate__plate { transform: translateY(-4px); }

.service-plate__icon { width: calc(88 * var(--px)); }
/* Static icons (icon_motion off) take the plate's ink too; the files ship with a hard-coded fill. */
.service-plate__icon:not([data-dot-icon]) svg { display: block; width: 100%; height: auto; overflow: visible; }
.service-plate__icon:not([data-dot-icon]) circle { fill: currentColor; }

.service-plate__body { display: flex; flex-direction: column; gap: calc(12 * var(--px)); }

.service-plate__word {
  margin-top: auto;
  font-weight: 500;
  font-size: calc(34 * var(--px));
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.service-plate__cap {
  margin: 0;
  font-size: calc(17 * var(--px));
  line-height: 1.45;
  color: var(--plate-fg);
  opacity: 0.82;
  max-width: 30ch;
}

@media (max-width: 61.99em) {
  .service-plates__head { grid-template-columns: 1fr; }
  .service-plates__aside { grid-column: 1; justify-self: start; }
  .service-plates__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-plate__plate { aspect-ratio: 4 / 3; }
}
@media (max-width: 47.99em) {
  .service-plates__slam { font-size: calc(44 * var(--px)); }
  .service-plates__head { margin-bottom: calc(32 * var(--px)); }
  .service-plates__grid { grid-template-columns: 1fr; gap: calc(20 * var(--px)); }
  .service-plate__plate { aspect-ratio: auto; min-height: calc(260 * var(--px)); padding: calc(24 * var(--px)); gap: calc(40 * var(--px)); }
  .service-plate__icon { width: calc(64 * var(--px)); }
  .service-plate__word { font-size: calc(24 * var(--px)); }
  .service-plate__cap { font-size: calc(16 * var(--px)); }
}


/* --- css/sections/client-tiles.css --- */
/* sections/client-tiles.css — work grid as client marks on client colours
   (blocks/client_tiles). Sits on the .dc-cols primitive. */

.client-tiles__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap-m);
  flex-wrap: wrap;
  margin-bottom: var(--space-s);
}

.client-tiles__title { margin: 0; }

.client-tiles__all {
  font-family: ui-monospace, Menlo, monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-ink);
}
.client-tiles__all:hover { color: var(--color-accent); }

.client-tile { text-decoration: none; color: inherit; display: block; }

.client-tile__plate {
  background: var(--tile-bg);
  color: var(--tile-fg);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
}

.client-tile__logo {
  max-width: 62%;
  max-height: 58%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Used until the real logo files land. Deliberately plain: it should read as a
   placeholder standing in for a mark, not as a designed lockup. */
.client-tile__wordmark {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  text-align: center;
}

.client-tile__name {
  display: block;
  margin-top: 0.7em;
  font-size: var(--text-m, 0.95rem);
}

.client-tile__services {
  display: block;
  margin-top: 0.15em;
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
}

.client-tile:hover .client-tile__name { color: var(--color-accent); }

/* Stacked one-up, six tiles ran to ~2,000px on a phone. Two-up overrides the
   .dc-cols single-column collapse for this grid only. */
@media screen and (max-width: 767px) {
  .dc-cols.client-tiles__cols { grid-template-columns: repeat(2, 1fr); gap: var(--gap-m); }
  .dc-cols.client-tiles__cols > .dc-col { grid-column: auto; }
  .client-tile__name { font-size: var(--text-s); }
}

/* Media tiles: the recording sits as a screen on the plate, never cropped so
   the site header stays visible. */
.client-tile__plate { border-radius: var(--radius-l); }
.client-tile__plate.has-media {
  padding: clamp(0.9rem, 2.4vw, 1.75rem);
  align-items: flex-start;
}
.client-tile__media {
  width: 100%; height: auto; max-height: 100%;
  display: block; object-fit: cover; object-position: top;
  border-radius: var(--radius-m);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  transition: transform var(--duration-default, .6s) var(--cubic-default, ease);
}
.client-tile:hover .client-tile__media { transform: scale(1.05); }
.client-tile__plate.has-media { overflow: hidden; }
@media screen and (max-width: 767px) {
  .dc-cols.client-tiles__cols.is-1-mobile { grid-template-columns: 1fr; }
}


/* --- css/sections/work-rail.css --- */
/* sections/work-rail.css: blocks/work_rail. Pinned sideways on desktop (js/components/work-rail.js),
   a two-up swipe row from 600 to 991px, stacked below 600px. */

.section_work-rail { overflow-x: clip; }

.work-rail__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vh, 2.5rem); }
.work-rail__title { margin: 0; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.work-rail__bar { flex: none; width: 11rem; height: 2px; background: var(--color-line); overflow: hidden; }
.work-rail__bar i { display: block; height: 100%; background: var(--color-ink); transform-origin: 0 50%; transform: scaleX(0.02); }

.work-rail__viewport {
  --rail-edge: max(var(--container-padding), calc((100vw - var(--size-container)) / 2 + var(--container-padding)));
  padding-left: var(--rail-edge);
}
.work-rail__track { list-style: none; margin: 0; padding: 0 var(--rail-edge) 1rem 0; display: flex; gap: clamp(1rem, 2vw, 1.75rem); width: max-content; }
/* Portrait tiles are 3:4. Width follows the window but is held to the window
   height too, so a short screen still fits the head, tile and caption. */
.work-rail { --rail-tile-w: clamp(14rem, min(24vw, 39vh), 24rem); }
.work-rail__item { width: var(--rail-tile-w); flex: none; }

.work-rail__media { position: relative; display: block; overflow: hidden; border-radius: clamp(12px, 1.1vw, 18px); background: var(--color-surface-2); aspect-ratio: 3 / 4; }
.work-rail__img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.work-rail__item:hover .work-rail__img { transform: scale(1.035); }

.work-rail__link { display: block; color: inherit; text-decoration: none; }
.work-rail__cap { margin-top: 1rem; display: grid; gap: 0.45rem; }
.work-rail__client { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-ink-soft); }
.work-rail__outcome { margin: 0; font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }

.work-rail__item.is--end { width: clamp(14rem, 22vw, 20rem); display: flex; }

/* Landscape 4:3 tiles: wider, about two and a half in view at 1440, held to the
   window height so a short screen still fits the head, tile and caption. */
.work-rail.is--landscape { --rail-tile-w: clamp(17rem, min(36vw, 60vh), 40rem); }
.work-rail.is--landscape .work-rail__item:not(.is--end) { width: var(--rail-tile-w); }
.work-rail.is--landscape .work-rail__media { aspect-ratio: 4 / 3; }
.work-rail.is--landscape .work-rail__all { height: calc(var(--rail-tile-w) * 0.75); }
.work-rail__all { flex: 1; height: calc(var(--rail-tile-w) * 4 / 3); border-radius: clamp(12px, 1.1vw, 18px); background: var(--color-ink); color: var(--color-surface); display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; text-decoration: none; transition: background-color 0.4s, color 0.4s; }
.work-rail__all i { font-style: normal; font-size: 2.5rem; align-self: flex-end; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.work-rail__all:hover { background: var(--color-accent); color: var(--color-on-accent); }
.work-rail__all:hover i { transform: translateX(8px); }

/* Desktop without the pin (reduced motion, or no script): the row scrolls
   natively so no tile is clipped off by the section's overflow. */
@media (min-width: 62em) {
  .work-rail__viewport { overflow-x: auto; overscroll-behavior-x: contain; }
  .work-rail[data-work-rail="pinned"] .work-rail__viewport { overflow: visible; }
}

/* The section carries is--cursor only while the following "View" cursor runs
   (fine pointer, motion allowed); see js/components/work-rail.js. */
.section_work-rail.is--cursor [data-cursor] { cursor: none; }
.dc-cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; width: 5.2rem; height: 5.2rem; margin: -2.6rem 0 0 -2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: var(--color-on-accent); font-size: 0.9rem; font-weight: 700; transform: scale(0); opacity: 0; }

@media (max-width: 61.99em) {
  .work-rail__bar { display: none; }
  .work-rail__viewport { padding-inline: var(--container-padding); }
  .work-rail__track { flex-direction: column; width: auto; padding-right: 0; gap: 2.5rem; }
  .work-rail__item, .work-rail__item.is--end { width: 100%; }
  .work-rail__media { aspect-ratio: 3 / 4; }
  .work-rail__all { height: auto; min-height: 10rem; }
  .work-rail.is--landscape .work-rail__item:not(.is--end) { width: 100%; }
  .work-rail.is--landscape .work-rail__media { aspect-ratio: 4 / 3; }
  .work-rail.is--landscape .work-rail__all { height: auto; }
}

/* 600 to 991px: a swipeable row with two tiles in view, snapping tile by tile.
   Below 600px the tiles stack (block above). */
@media (min-width: 37.5em) and (max-width: 61.99em) {
  .work-rail__viewport {
    container-type: inline-size; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--container-padding); scrollbar-width: thin;
  }
  .work-rail__track { flex-direction: row; width: max-content; padding-right: var(--container-padding); gap: 1.25rem; }
  .work-rail__item,
  .work-rail__item.is--end,
  .work-rail.is--landscape .work-rail__item:not(.is--end) { width: calc((100cqi - 1.25rem) / 2); scroll-snap-align: start; }
  .work-rail__all { aspect-ratio: 3 / 4; }
  .work-rail.is--landscape .work-rail__all { aspect-ratio: 4 / 3; }
}

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


/* --- css/sections/figures.css --- */
/* sections/figures.css — figures with a sentence each (blocks/figure_row). */

.figures__title { margin: 0 0 var(--space-s); }

.figure { border-top: 1px solid var(--color-line); padding-top: var(--space-s); }

.figure__number {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.figure__body {
  margin: 0.7em 0 0;
  font-size: var(--text-s, 0.875rem);
  line-height: 1.6;
  color: var(--color-ink-soft);
  max-width: 34ch;
}

/* A short title reads as a kicker: small, with the accent dot. */
.figures__title.is--kicker { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--text-s); font-weight: 500; color: var(--color-ink-soft); margin-bottom: var(--space-m); }
.figures__title.is--kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }


/* --- css/sections/qa.css --- */
/* sections/qa.css — question and answer band (blocks/qa_band). */

.qa__title { margin: 0 0 0.35em; max-width: 24ch; }

.qa__intro > :last-child { margin-bottom: var(--space-m); }

.qa__desc {
  margin: 0;
  max-width: 56ch;
  color: var(--color-ink-soft);
}

.qa__title .is--quiet { opacity: 0.45; }

.qa__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--color-ink-soft);
}
.qa__label::before {
  content: "";
  content: "" / "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-ink-soft);
}

/* Inset card: the grid wears the band's theme (render.php) and sits on the page colour. */
.qa__grid.is--card { padding: clamp(2rem, 5vw, 5rem); border-radius: var(--radius-l); }

/* Layout "split": intro on the left and sticky, one column of questions on the right.
   Stacked (default) keeps the intro above the questions in two columns. The sticky top
   clears the floating nav and, logged in, the WordPress toolbar. */
.qa__grid[data-qa-split] {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
}
.qa__grid[data-qa-split] .qa__intro { align-self: start; position: sticky; top: calc(var(--nav-offset) + var(--admin-bar, 0px) + var(--space-m)); }
.qa__grid[data-qa-split] .qa__intro > :last-child { margin-bottom: 0; }
.qa__grid[data-qa-split] .qa__list { grid-template-columns: minmax(0, 1fr); }
.qa__grid[data-qa-split] .qa__list:first-child { grid-column: 1 / -1; }
.qa__grid[data-qa-split] .qa__pair { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0.5rem 2rem; }

.qa__list {
  counter-reset: qa;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--gap-l);
}

.qa__pair {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: var(--gap-s);
  padding: 0.85em 0;
  border-top: 1px solid var(--color-line);
}

.qa__q {
  display: flex;
  margin: 0;
  font-family: ui-monospace, Menlo, monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.qa__q::before {
  counter-increment: qa;
  content: counter(qa, decimal-leading-zero);
  content: counter(qa, decimal-leading-zero) / "";
  flex: none;
  margin-right: 0.9rem;
  color: var(--color-ink-soft);
}

.qa__a { margin: 0; font-size: var(--text-s, 0.9rem); line-height: 1.6; }

@media (max-width: 61.99em) {
  .qa__list { grid-template-columns: minmax(0, 1fr); }
  .qa__grid[data-qa-split] { grid-template-columns: minmax(0, 1fr); }
  .qa__grid[data-qa-split] .qa__intro { position: static; }
}
@media (max-width: 40.99em) {
  .qa__pair,
  .qa__grid[data-qa-split] .qa__pair { grid-template-columns: minmax(0, 1fr); gap: 0.3em; }
}


/* --- 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;
}


/* --- 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 — corner-frame hover on the signature ease */
.dc-slider .dc-slider__nav {
  display: flex;
  gap: var(--gap-m);
  margin-top: var(--gap-l);
}

.dc-slider .dc-slider__btn {
  color: var(--color-ink);
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-s);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3.5em;
  height: 3.5em;
  padding: 0;
  position: relative;
  cursor: pointer;
  transition: transform 0.475s var(--cubic-default), opacity 0.475s var(--cubic-default);
}

.dc-slider .dc-slider__btn-arrow {
  flex: none;
  width: 1em;
  height: 0.75em;
}
.dc-slider .dc-slider__btn-arrow.next { transform: rotate(180deg); }

.dc-slider .dc-slider__btn-overlay {
  z-index: 2;
  position: absolute;
  inset: -1px;
  transition: transform 0.475s var(--cubic-default), opacity 0.475s var(--cubic-default);
}

.dc-slider .dc-slider__btn-overlay-corner {
  border-top: 1px solid var(--color-ink);
  border-left: 1px solid var(--color-ink);
  border-top-left-radius: var(--radius-s);
  width: 1em;
  height: 1em;
}
.dc-slider .dc-slider__btn-overlay-corner.top-right {
  position: absolute;
  inset: 0% 0% auto auto;
  transform: rotate(90deg);
}
.dc-slider .dc-slider__btn-overlay-corner.bottom-right {
  position: absolute;
  inset: auto 0% 0% auto;
  transform: rotate(180deg);
}
.dc-slider .dc-slider__btn-overlay-corner.bottom-left {
  position: absolute;
  inset: auto auto 0% 0%;
  transform: rotate(-90deg);
}

.dc-slider .dc-slider__btn:hover .dc-slider__btn-overlay { transform: scale(1.4); }
.dc-slider .dc-slider__nav:hover:has(.dc-slider__btn:hover) .dc-slider__btn { opacity: 0.4; }
.dc-slider .dc-slider__btn:hover {
  transform: scale(0.85);
  opacity: 1 !important;
}

@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;
  }
}

/* Marquee mode (blocks/image_carousel with mode=marquee, js/components/marquee.js) */
.dc-marquee { overflow: hidden; }
.dc-marquee__track { display: flex; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; width: max-content; }
.dc-marquee__item img { height: clamp(1.6rem, 2.4vw, 2.2rem); width: auto; max-width: calc(170 * var(--px)); object-fit: contain; display: block; }
.section_image-slider.is-marquee .dc-marquee { padding-block: calc(16 * var(--px)); }


/* --- css/sections/centered-slider.css --- */
/* Centered looping slider (Osmo "Centered Looping Slider", DC-tokenised).
   Behaviour: js/components/centered-slider.js. Markup: blocks/testimonial_slider.

   [data-centered-slider="wrapper"].centered-slider-group
     .centered-slider-bullet__list > .centered-slider-bullet*
     .centered-slider-row > .centered-slider-list > .centered-slider-slide*
     .centered-slider-buttons > .centered-slider-button*                    */

.centered-slider-group {
  --cs-slide-w: 28em;
  --cs-corner: var(--color-accent);
  --cs-card: var(--color-surface);
  --cs-card-line: var(--color-line);
}
[data-theme-section="dark"] .centered-slider-group {
  --cs-card: color-mix(in srgb, currentColor 8%, transparent);
  --cs-card-line: color-mix(in srgb, currentColor 14%, transparent);
}
[data-theme-section="light"] .centered-slider-group { --cs-card: var(--color-surface-2); }

.centered-slider-row {
  width: 100%;
  margin-top: 2em;
  margin-bottom: 2.5em;
  padding-block: 1em;
  display: flex;
  position: relative;
  overflow: clip;
}

.centered-slider-list {
  display: flex;
  flex-flow: row;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.centered-slider-list:active { cursor: grabbing; }

.centered-slider-slide {
  flex: none;
  padding: 0.75em;
  position: relative;
  transition: opacity 0.25s cubic-bezier(0.77, 0, 0.175, 1);
}

.centered-slider-slide__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5em;
  width: var(--cs-slide-w);
  height: 100%;
  margin: 0;
  padding: 2em;
  border: 1px solid var(--cs-card-line);
  border-radius: var(--radius-s);
  background-color: var(--cs-card);
  position: relative;
  user-select: none;
}

.centered-slider-row:has(.centered-slider-slide.active) .centered-slider-slide:not(.active) { opacity: 0.45; }

/* Corner brackets on the active slide: https://css-tip.com/corner-only-border-image/ */
.centered-slider-slide::after {
  --size: 1em;
  --width: 2px;
  --gap: 0.125em;
  content: '';
  position: absolute;
  inset: calc(var(--gap) * -1);
  z-index: 1;
  opacity: 0;
  padding: calc(var(--gap) + var(--width));
  outline: var(--width) solid var(--cs-corner);
  outline-offset: calc(var(--gap) / -1);
  mask:
    conic-gradient(at var(--size) var(--size), #0000 75%, #000 0)
    0 0 / calc(100% - var(--size)) calc(100% - var(--size)),
    linear-gradient(#000 0 0) content-box;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.65, 0.05, 0, 1);
}
.centered-slider-slide.active::after {
  outline-offset: calc(-1 * var(--width));
  opacity: 1;
}

.centered-slider-slide__quote { margin: 0; }
.centered-slider-slide__quote p {
  margin: 0;
  font-size: 1.0625em;
  line-height: 1.6;
}

.centered-slider-slide__details {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.centered-slider-slide__avatar,
.centered-slider-bullet span {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 100em;
  background-color: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-ui, inherit);
  font-weight: 600;
  line-height: 1;
}
.centered-slider-slide__avatar { width: 2.75em; height: 2.75em; font-size: 0.875em; }

.centered-slider-slide__by { display: flex; flex-direction: column; gap: 0.2em; }
.centered-slider-slide__name { font-weight: 600; }
.centered-slider-slide__eyebrow {
  font-family: var(--font-ui, inherit);
  font-size: 0.75em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.centered-slider-content {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
}

.centered-slider-bullet__list {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75em;
  margin: 1.5em 0 0;
  padding: 0;
  list-style: none;
}

.centered-slider-bullet {
  width: 2.5em;
  height: 2.5em;
  padding: 0;
  border: 0;
  border-radius: 100em;
  background-color: transparent;
  position: relative;
  cursor: pointer;
}
.centered-slider-bullet span { width: 100%; height: 100%; font-size: 0.8125em; opacity: 0.55; transition: opacity 0.3s; }
.centered-slider-bullet.active span,
.centered-slider-bullet:hover span { opacity: 1; }
.centered-slider-bullet:focus { outline: none; }
.centered-slider-bullet::after {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  border: 1px solid var(--cs-corner);
  border-radius: 100em;
  transition: all 0.5s cubic-bezier(0.65, 0.05, 0, 1);
}
.centered-slider-bullet:hover::after,
.centered-slider-bullet.active::after,
.centered-slider-bullet:focus-visible::after { inset: -5px; }

.centered-slider-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

.centered-slider-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3em;
  height: 3em;
  padding: 0;
  border: 1px solid var(--cs-card-line);
  border-radius: var(--radius-s);
  background-color: var(--cs-card);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.centered-slider-button:hover { border-color: var(--cs-corner); }
.centered-slider-button.is--prev { transform: rotate(-180deg); }
.slider-button-arrow { width: 1.25em; }

@media (max-width: 767px) {
  .centered-slider-slide { width: 85vw; }
  .centered-slider-slide__inner { width: 100%; padding: 1.5em; }
}

@media (prefers-reduced-motion: reduce) {
  .centered-slider-slide,
  .centered-slider-slide::after,
  .centered-slider-bullet::after { transition: none; }
}


/* --- css/sections/compare-table.css --- */
/* Compare table: two options side by side (blocks/compare_table).
   Desktop: a label column plus two card columns; the featured column is dark.
   Below 768px each row becomes its own card: label on top, the two values side by side.

   .compare[data-compare-featured="a|b"] > table.compare__table
     thead th.compare__head[data-col] · tbody tr.compare__row > th.compare__label + td.compare__cell[data-col]*
     tfoot td.compare__foot[data-col]                                                       */

.section_compare {
  --cmp-card: var(--color-surface);
  --cmp-ink: var(--color-ink);
  --cmp-soft: var(--color-ink-soft);
  --cmp-line: var(--color-line);
  --cmp-feat: var(--n-900, var(--color-ink));
  --cmp-feat-ink: var(--color-surface);
  --cmp-feat-line: color-mix(in srgb, var(--cmp-feat-ink) 14%, transparent);
  --cmp-pad: 1.1em 1.5em;
  --cmp-radius: var(--radius-m);
}
.section_compare[data-theme-section="light"] { --cmp-card: var(--color-surface-2); }

.section_compare .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.compare__table {
  border-collapse: separate;
  border-spacing: 1rem 0;
  margin-inline: -1rem;
  width: calc(100% + 2rem);
  table-layout: fixed;
  text-align: left;
}
.compare__table th, .compare__table td { vertical-align: top; }

/* Column surfaces */
.compare__table [data-col] { background-color: var(--cmp-card); color: var(--cmp-ink); }
.compare[data-compare-featured="a"] [data-col="a"],
.compare[data-compare-featured="b"] [data-col="b"] {
  --cmp-ink: var(--cmp-feat-ink);
  --cmp-soft: color-mix(in srgb, var(--cmp-feat-ink) 72%, transparent);
  --cmp-line: var(--cmp-feat-line);
  background-color: var(--cmp-feat);
}

/* Head */
.compare__corner { width: 26%; }
.compare__head {
  padding: 2em 1.5em 1.5em;
  border-radius: var(--cmp-radius) var(--cmp-radius) 0 0;
  font-weight: inherit;
  position: relative;
}
.compare__head-icon {
  display: grid;
  place-items: center;
  width: 3.25em;
  height: 3.25em;
  margin-bottom: 1.25em;
  border-radius: 100em;
  background-color: var(--color-surface-2);
  color: var(--color-primary);
}
.compare[data-compare-featured="a"] [data-col="a"] .compare__head-icon,
.compare[data-compare-featured="b"] [data-col="b"] .compare__head-icon {
  background-color: var(--color-accent);
  color: var(--color-on-accent);
}
.compare__head-svg { width: 1.6em; height: 1.6em; }
.compare__badge {
  position: absolute;
  top: 2em;
  right: 1.5em;
  padding: 0.35em 0.8em;
  border-radius: 100em;
  background-color: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-ui, inherit);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.compare__head-name {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-l);
  line-height: 1.15;
}
.compare__head-tagline {
  display: block;
  margin-top: 0.4em;
  color: var(--cmp-soft);
  font-size: var(--text-s);
}

/* Rows */
.compare__label,
.compare__cell {
  padding: var(--cmp-pad);
  border-top: 1px solid var(--cmp-line);
}
.compare__label {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding-left: 0;
  font-family: var(--font-ui, inherit);
  font-size: var(--text-m);
  font-weight: 600;
  color: var(--color-ink);
  border-top-color: var(--color-line);
}
.compare__label-svg {
  flex: none;
  width: 2.25em;
  height: 2.25em;
  padding: 0.5em;
  border-radius: 100em;
  background-color: var(--color-surface);
  color: var(--color-primary);
}
.section_compare[data-theme-section="light"] .compare__label-svg { background-color: var(--color-surface-2); }

.compare__value {
  display: flex;
  font-size: var(--text-m);
  align-items: flex-start;
  gap: 0.6em;
  line-height: 1.45;
}
.compare__cell:not(.is-edge) .compare__value { color: var(--cmp-soft); }
.compare__cell.is-edge .compare__value { font-weight: 500; }
.compare__tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.375em;
  height: 1.375em;
  margin-top: 0.05em;
  border-radius: 100em;
  background-color: var(--color-accent);
  color: var(--color-on-accent);
}
.compare__tick svg { width: 0.9em; height: 0.9em; }

/* 12-segment months bar */
.compare__bar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  max-width: 15em;
  margin-top: 0.85em;
}
.compare__bar i {
  height: 0.5em;
  border-radius: 100em;
  background-color: color-mix(in srgb, currentColor 16%, transparent);
}
.compare__bar i.is-on { background-color: var(--color-accent); }

/* Foot */
.compare__foot {
  padding: 1.5em 1.5em 2em;
  text-align: left;
  border-top: 1px solid var(--cmp-line);
  border-radius: 0 0 var(--cmp-radius) var(--cmp-radius);
}

.compare[data-compare-featured="a"] [data-col="a"] .btn-bubble-arrow,
.compare[data-compare-featured="b"] [data-col="b"] .btn-bubble-arrow { --btn-bg-hover: var(--n-0); --btn-fg-hover: var(--n-900); }

/* After the table: "or both" callout + outro */
.compare__after {
  display: grid;
  gap: 2em;
  justify-items: center;
  margin-top: 3em;
  text-align: center;
}
.compare__callout {
  display: flex;
  align-items: center;
  gap: 1.5em;
  max-width: 48em;
  padding: 1.5em 2em;
  border: 1px solid var(--color-line);
  border-radius: var(--cmp-radius);
  background-color: var(--color-surface);
  text-align: left;
}
.compare__callout-icons {
  display: flex;
  align-items: center;
  gap: 0.35em;
  flex: none;
  color: var(--color-primary);
  font-family: var(--font-ui, inherit);
  font-weight: 600;
}
.compare__callout-svg { width: 2em; height: 2em; }
.compare__callout-text > :first-child { margin-top: 0; }
.compare__callout-text > :last-child { margin-bottom: 0; }
.compare__outro { display: grid; gap: 1.25em; justify-items: center; }
.compare__outro p { margin: 0; max-width: 40em; font-size: var(--text-m); text-wrap: balance; }
.compare__callout-text { font-size: var(--text-m); }

/* Mobile: each row its own card */
@media (max-width: 767px) {
  .compare__table, .compare__table thead, .compare__table tbody, .compare__table tfoot { display: block; width: 100%; margin: 0; }
  .compare__table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; }
  .compare__corner { display: none; }
  .compare__table thead tr { margin-bottom: 1em; }
  .compare__head { padding: 1.25em 1em; border-radius: var(--radius-s); }
  .compare__head-icon { width: 2.5em; height: 2.5em; margin-bottom: 0.85em; }
  .compare__head-svg { width: 1.3em; height: 1.3em; }
  .compare__badge { position: static; display: inline-block; margin-bottom: 0.6em; font-size: 0.6875rem; }
  .compare__head-name { font-size: var(--text-m); }
  .compare__head-tagline { font-size: var(--text-xs); }
  .compare__row { margin-bottom: 1em; }
  .compare__label { grid-column: 1 / -1; padding: 0 0 0.15em; border: 0; font-size: var(--text-s); }
  .compare__label-svg { width: 2em; height: 2em; padding: 0.45em; }
  .compare__cell { padding: 0.9em 1em; border: 0; border-radius: var(--radius-s); }
  .compare__value { font-size: var(--text-s); }
  .compare__cell::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.4em;
    color: var(--cmp-soft);
    font-family: var(--font-ui, inherit);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .compare__bar { gap: 2px; }
  .compare__table tfoot tr { grid-template-columns: 1fr; }
  .compare__foot { padding: 1em; border: 0; border-radius: var(--radius-s); }
  .compare__callout-text { font-size: var(--text-s); }
  .compare__callout { flex-direction: column; align-items: flex-start; gap: 1em; padding: 1.25em; }
}


/* --- css/sections/word-marquee.css --- */
/* sections/word-marquee.css: blocks/word_marquee. Sits on the shared
   .dc-marquee track (slider.css); gap is zeroed because the words carry their
   own padding. */
.section_word-marquee { overflow: clip; }
.word-marquee { overflow: visible; }
.word-marquee__track { gap: 0; white-space: nowrap; }
.word-marquee__word { padding-inline: 0.18em; font-size: clamp(3.5rem, 1rem + 9vw, 10.5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.word-marquee__word.is--outline { color: transparent; -webkit-text-stroke: 1.5px var(--color-ink); }
.word-marquee__star { color: var(--color-accent); font-size: clamp(1.4rem, 0.4rem + 3.6vw, 4.2rem); padding-inline: 0.35em; font-weight: 400; }


/* --- css/sections/testimonial.css --- */
/* sections/testimonial.css: blocks/testimonial. */
.testimonial { margin: 0; }
.testimonial__quote { margin: 0; font-size: clamp(1.7rem, 0.9rem + 2.6vw, 3.6rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; max-width: 26ch; text-wrap: pretty; }
.testimonial__quote .w { opacity: 0.16; }
.testimonial__by { margin-top: 2rem; display: flex; align-items: center; gap: 1.25rem; color: var(--color-ink-soft); }
.testimonial__by b { color: var(--color-ink); }
.testimonial__logo { display: block; flex: none; color: var(--color-ink); padding-right: 1.25rem; border-right: 1px solid var(--color-line); }
.testimonial__logo svg, .testimonial__logo img { height: 1.7rem; width: auto; fill: currentColor; display: block; }
@media (prefers-reduced-motion: reduce) { .testimonial__quote .w { opacity: 1; } }


/* --- css/sections/contact-band.css --- */
/* sections/contact-band.css: blocks/contact_band. The live dot is components/pulse.css. */
.contact-band__label { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.25rem; font-size: var(--text-s); font-weight: 500; color: var(--color-ink-soft); }
.contact-band__title { margin: 0; font-size: clamp(3rem, 1rem + 7.4vw, 9.5rem); font-weight: 700; line-height: 0.92; letter-spacing: -0.06em; max-width: 12ch; overflow-wrap: break-word; }
.contact-band__row { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: clamp(2rem, 5vh, 3rem); }
.contact-band__mail { margin: 0; color: var(--color-ink-soft); }
.contact-band__mail a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }


/* --- 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; }

/* 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 {
  width: 100%;
  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;
  gap: var(--gap-s);
}

.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);
  margin-top: var(--gap-xs);
}

@media screen and (max-width: 767px) {
  .section_image-text.is-image-right .image-text__media { order: 0; }
}


/* --- 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); }


/* --- 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 ——— */

.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 — osmo 'Stacking Cards 3D (CSS)', DC recode.
   Markup: blocks/stacking_cards/render.php
     section_stacking-cards > .container
       > .block-intro (optional)
       > .card-stack > .card-stack__item > .card-stack__inner
                        > .card-stack__top (title + body) + .card-stack__media

   HOW IT WORKS — no JS at all:
   1. .card-stack is a grid with one --stack-row-tall row per card. That row is
      pure scroll distance; the card itself 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 through the viewport 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 is sliding over it. The last card never
      animates — nothing arrives to cover it.

   TUNING — everything below is a knob, change it on .card-stack (or per
   section via an inline style) and nothing else needs to move:
     --stack-row         scroll distance per card (the "dwell")
     --stack-top         where a parked card sits from the top
     --stack-perspective 3D depth: lower = more dramatic tilt
     --stack-rotate      how far a covered card lies back
     --stack-scale       how far it shrinks
     --stack-dim         how far it darkens (1 = no dimming)

   SUPPORT: scroll-driven animations are Chrome/Edge 115+ and Safari 26+.
   Elsewhere (Firefox today) the @supports block is skipped and the cards still
   stack as plain sticky cards — flat, but correct. Same for reduced-motion. */

.card-stack {
  --stack-row: 100svh;
  --stack-top: 10svh;
  --stack-card-height: calc(var(--stack-row) - 2 * var(--stack-top));

  --stack-card-pad: var(--gap-l);

  --stack-perspective: 60em;
  --stack-rotate: 25deg;
  --stack-scale: 0.85;
  --stack-dim: 0.45;

  display: grid;
  grid-auto-rows: var(--stack-row);
  width: 100%;
  max-width: 60em;
  margin-inline: auto;
  position: relative;
  view-timeline-name: --card-stack;
}

.card-stack__item {
  position: sticky;
  top: var(--stack-top);
  height: var(--stack-card-height);
  padding: var(--stack-card-pad);
  border-radius: var(--radius-l);
  overflow: hidden;
  transform-origin: 50% 100%;
  background-color: var(--card-bg, var(--color-surface-2));
  color: var(--card-ink, var(--color-ink));
}

.card-stack__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--gap-l);
  height: 100%;
}

.card-stack__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-m);
  align-items: end;
}

.card-stack__title {
  margin: 0;
  max-width: 8em;
  font-size: var(--text-xl);
}

.card-stack__text { margin: 0; }
.card-stack__text > p:last-child { margin-bottom: 0; }
.card-stack__body { display: flex; flex-direction: column; gap: var(--gap-s); }

.card-stack__media {
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background-color: color-mix(in srgb, currentColor 8%, transparent);
}

.card-stack__image,
.card-stack__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Index for the per-card animation offset. 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; }
.card-stack__item:nth-child(6) { --stack-i: 6; }
.card-stack__item:nth-child(7) { --stack-i: 7; }
.card-stack__item:nth-child(8) { --stack-i: 8; }

@supports (width: calc(sibling-index() * 1px)) {
  .card-stack__item { --stack-i: sibling-index(); }
}

@supports (animation-timeline: view()) {
  .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));
  }
  /* Nothing covers the last card, so it never recedes. */
  .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; }
}

@media screen and (max-width: 767px) {
  .card-stack {
    --stack-row: 90svh;
    --stack-top: 5svh;
    --stack-card-pad: var(--gap-m);
  }
  .card-stack__top { grid-template-columns: 1fr; }
  .card-stack__title { max-width: none; font-size: var(--text-l); }
}

/* ---- Variant: is--fanned ------------------------------------------------
   No fall-away. Each card pins one --stack-offset LOWER than the one before,
   and loses the same amount of 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 the new one, like a fanned deck.

   --stack-offset is the peek: make it the height of a card title plus its
   padding. The animation is switched off here, so 3D tilt and fanning are
   alternatives, not a stack you can combine. */

.card-stack.is--fanned { --stack-offset: 3.5em; }
/* Split cards know their title size, so the peek is exactly the card padding, the
   title's first line and a little air (Locale Homes' rule). */
.card-stack.is--fanned.is--split { --stack-offset: calc(var(--stack-card-pad) + var(--stack-title-size) * var(--stack-title-lh) + 1rem); }

.card-stack.is--fanned .card-stack__item {
  top: calc(var(--stack-top) + (var(--stack-i) - 1) * var(--stack-offset));
  height: calc(var(--stack-card-height) - (var(--stack-i) - 1) * var(--stack-offset));
  animation: none;
}

@media screen and (max-width: 767px) {
  .card-stack.is--fanned { --stack-offset: 2.75em; }
}

/* ---- Variant: is--flat ---------------------------------------------------
   A sticky pile with no CSS fall-away. Each card parks a step lower than the
   one before; stacking-cards-flat.js scales and dims the card beneath as the
   next one slides over it. The item is only the sticky shell, so the surface
   (border, shadow, radius, colour) sits on __inner and nothing clips it. */

.card-stack.is--flat {
  display: block;
  max-width: none;
  view-timeline-name: none;
}

.card-stack.is--flat .card-stack__item {
  top: calc(6rem + (var(--stack-i, 1) - 1) * 1.25rem + var(--admin-bar, 0px));
  height: auto;
  margin-bottom: 1.25rem;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background-color: transparent;
  animation: none;
  transform-origin: 50% 0;
  will-change: transform;
}

.card-stack.is--flat .card-stack__item:last-child { margin-bottom: 0; }

/* Title-over-media cards: the media needs a definite height or the card outgrows the viewport. */
.card-stack.is--flat .card-stack__media {
  flex: none;
  height: min(34vh, 20rem);
}

.card-stack.is--flat .card-stack__inner {
  height: auto;
  min-height: min(60vh, 32rem);
  padding: clamp(1.6rem, 3vw, 3rem);
  border: 1px solid var(--color-line);
  border-radius: calc(28 * var(--px));
  box-shadow: 0 -16px 40px -28px rgba(26, 25, 24, 0.5);
  background-color: var(--card-bg, var(--color-surface-2));
  color: var(--card-ink, var(--color-ink));
}

/* ---- Variant: is--osmo ---------------------------------------------------
   The vault's Stacking Cards Parallax on these cards: plain document flow, no
   sticky. Each card is about a viewport tall and tucks up under the one before
   by its corner radius; stacking-cards-parallax.js drifts the covered card
   DOWN (yPercent 0 to 50) while the next one slides over it. No fade, no
   scale. Only the last card rounds its bottom corners: a covered card drifts
   down behind the next one, and a rounded corner would show it through. */

.card-stack.is--osmo {
  --stack-radius: calc(28 * var(--px));
  display: flex;
  flex-direction: column;
  max-width: none;
  view-timeline-name: none;
}

.card-stack.is--osmo .card-stack__item {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100svh;
  margin-top: calc(-1 * var(--stack-radius));
  /* A card is only ever fully in view with its top at the top of the window, under the nav. */
  padding: calc(var(--nav-offset, 5rem) + clamp(1rem, 4vh, 2.5rem)) clamp(1.6rem, 4vw, 4rem) clamp(1.6rem, 6vh, 4rem);
  border-radius: var(--stack-radius) var(--stack-radius) 0 0;
  animation: none;
}

.card-stack.is--osmo .card-stack__item:first-child { margin-top: 0; }
.card-stack.is--osmo .card-stack__item:last-child { border-radius: var(--stack-radius); }
.card-stack.is--osmo .card-stack__inner { flex: 1; height: auto; }
.card-stack.is--osmo .card-stack__media { flex: 1; min-height: 40svh; }

/* Split: title top left, the link under it at the foot, text and checklist at the foot right. */
.card-stack.is--osmo.is--split .card-stack__inner { align-items: stretch; }
.card-stack.is--osmo.is--split .card-stack__body { align-self: end; }

/* ---- Layout: is--split ---------------------------------------------------
   Title and link left, text and checklist right. */

.card-stack.is--split .card-stack__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.card-stack.is--split .card-stack__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-content: space-between;
  align-self: stretch;
}

.card-stack.is--split {
  --stack-title-size: clamp(2rem, 1.2rem + 2.4vw, 4rem);
  --stack-title-lh: 1;
}

.card-stack.is--split .card-stack__title {
  max-width: none;
  font-size: var(--stack-title-size);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: var(--stack-title-lh);
  text-wrap: balance;
}

.card-stack.is--split .card-stack__link { justify-self: start; }

.card-stack.is--split .card-stack__body {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.card-stack.is--split .card-stack__text {
  max-width: 40ch;
  color: var(--color-ink-soft);
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem);
}

.card-stack__list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--color-line);
  list-style: none;
}

.card-stack__list li { display: flex; gap: 0.6rem; align-items: baseline; }
.card-stack__list li::before { content: "\2713"; content: "\2713" / ""; font-weight: 700; }

@media (max-width: 61.99em) {
  .card-stack.is--split .card-stack__inner { grid-template-columns: 1fr; min-height: 0; }
  .card-stack.is--osmo.is--split .card-stack__inner { grid-template-rows: 1fr auto; }
  .card-stack.is--osmo.is--split .card-stack__top { align-content: start; }
}

/* Fanned split cards keep everything but the title out of the peek: text and
   checklist sit at the card's foot, the link at the foot of the left column
   (one column: title, then text and checklist at the foot, then the link). */
/* safe: content taller than the card spills downward, where it can be measured. */
.card-stack.is--fanned.is--split .card-stack__body { align-self: end; align-self: safe end; }
@media (max-width: 61.99em) {
  .card-stack.is--fanned.is--split .card-stack__inner { grid-template-rows: auto 1fr auto; gap: 1.25rem; }
  .card-stack.is--fanned.is--split .card-stack__top { display: contents; }
  .card-stack.is--fanned.is--split .card-stack__link { order: 1; }
}

/* ---- Layout: split with media (.has--media) --------------------------------
   Title, text, checklist and link down the left column, a muted loop (or the
   image) filling the right. One column: the media is dropped, it is decorative. */

.card-stack.is--split .card-stack__item.has--media .card-stack__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}
.card-stack__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; min-width: 0; }
.card-stack__copy .card-stack__list { align-self: stretch; }
.card-stack__copy .card-stack__link { margin-top: auto; }
.card-stack__item.has--media .card-stack__media { flex: none; height: 100%; min-height: 0; }
.card-stack__video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A video keeps its own shape: full frame, no crop, no bars. The box fills
   the right column (its row is the card's height) and the video sizes to the
   largest frame that fits it, top right, with the box's radius on its corners.
   --media-ratio and the <video> width/height come from the poster, so the
   shape holds before the video loads. */
.card-stack.is--split .card-stack__item.has--media .card-stack__inner:has(> .card-stack__media.is--video) { grid-template-rows: minmax(0, 1fr); }
.card-stack__item.has--media .card-stack__media.is--video {
  align-self: stretch;
  height: auto;
  container-type: size;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  overflow: visible;
  background: none;
}
.card-stack__media.is--video .card-stack__video {
  width: min(100cqw, 100cqh * var(--media-ratio, 16 / 9));
  height: auto;
  border-radius: inherit;
}
@media (max-width: 61.99em) {
  .card-stack.is--split .card-stack__item.has--media .card-stack__inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .card-stack__item.has--media .card-stack__media { display: none; }
}

/* ---- Option: sticky intro ([data-stack-sticky], .has--sticky-intro) ---------
   The cards sit in a normal stack --stack-flow-gap (20px) apart and, as each
   reaches the top, stick one --stack-offset lower than the one before, so the
   parked titles fan out. Cards are capped at --stack-card-max and shrink on a
   short window so their bottoms line up.
   Each card sits in its own .card-stack__slot. A sticky card lets go when its
   containing block ends, so equal-height cards in one container would leave
   one by one, the last first, sliding over the others. The script lengthens
   each slot (--slot-extend, an ::after, cancelled in flow by a negative
   margin) so every card lets go at the same scroll, --stack-dwell after the
   last one parks.
   With .has--sticky-intro the block intro sticks under the nav too and the
   cards park below it. js/components/stacking-cards-intro.js measures the
   intro (--stack-intro-h, its margin --stack-intro-gap) and the tail
   (--stack-tail: first parked top to last parked bottom plus the gap). The
   stack's negative bottom margin of one tail ends the intro's containing block
   (the .container, a flow root so the margin cannot collapse through it)
   exactly where the cards let go; the section's bottom padding gives the space
   back. If a card's content would clip under the stuck intro (a short window)
   the script drops the class and the cards park under the nav. */

@property --stack-dwell { syntax: "<length>"; inherits: true; initial-value: 0px; }

.section_stacking-cards[data-stack-sticky] .card-stack {
  --stack-top: calc(var(--nav-offset, 5rem) + var(--admin-bar, 0px) + 1rem);
  --stack-card-height: calc(100svh - var(--stack-top) - 1rem);
  display: flex;
  flex-direction: column;
}

.card-stack__slot::after { content: ""; display: block; height: var(--slot-extend, 0px); }
.card-stack__slot:not(:last-child) { margin-bottom: calc(-1 * var(--slot-extend, 0px)); }

.section_stacking-cards[data-stack-sticky] .card-stack.is--fanned .card-stack__item {
  height: min(var(--stack-card-max, 100svh), calc(var(--stack-card-height) - (var(--stack-i) - 1) * var(--stack-offset)));
  margin-bottom: var(--stack-flow-gap, 20px);
}

.section_stacking-cards.has--sticky-intro {
  --stack-pin: calc(var(--nav-offset, 5rem) + var(--admin-bar, 0px));
  padding-bottom: var(--stack-tail, 0px);
}

.section_stacking-cards.has--sticky-intro > .container { display: flow-root; }

.section_stacking-cards.has--sticky-intro .block-intro {
  position: sticky;
  top: var(--stack-pin);
  padding-top: clamp(0.5rem, 2vh, 1rem);
}

.section_stacking-cards.has--sticky-intro .card-stack {
  --stack-top: calc(var(--stack-pin) + var(--stack-intro-h, 10rem) + var(--stack-intro-gap, 2rem));
  --stack-card-height: calc(100svh - var(--stack-top) - clamp(1rem, 3vh, 1.5rem));
  margin-bottom: calc(-1 * var(--stack-tail, 0px));
}


/* --- css/sections/stacking-cards-parallax.css --- */
/* sections/stacking-cards-parallax.css — osmo 'Stacking Cards Parallax', DC recode.
   Markup: blocks/stacking_cards_parallax/render.php
     section_stacking-cards-parallax
       > .stacking-cards__collection > .stacking-cards__list
         > .stacking-cards__item > h2 + img + .stacking-cards__item-top

   Full-bleed panels, each 100vh, pulled up by their own corner radius so the
   next panel's rounded lip overlaps the one before it. The stacking itself is
   plain document flow; js/components/stacking-cards-parallax.js adds the drift
   (previous card down, its image up and rotated) on a scrubbed ScrollTrigger.

   TRAP (from the resource docs): the collection's PARENT must not be
   display:flex or the stack breaks. dc_section_open emits a plain <section>,
   so this only bites if a wrapper is added later.

   Per-card colours arrive as inline --card-bg / --card-ink from ACF. */

.stacking-cards__collection { width: 100%; }

.stacking-cards__list {
  display: flex;
  flex-direction: column;
}

.stacking-cards__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  margin-top: -1em;
  padding: 5em var(--container-padding);
  border-top-left-radius: 1em;
  border-top-right-radius: 1em;
  background-color: var(--card-bg, var(--n-900));
  color: var(--card-ink, var(--n-0));
}

.stacking-cards__item-h {
  margin: 0;
  max-width: none;
  font-size: 10vw;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
}

.stacking-cards__heading-faded { opacity: 0.5; }

.stacking-cards__item-img {
  display: block;
  aspect-ratio: 1;
  width: 30vw;
  margin-top: -1vw;
  border-radius: 0.75em;
  object-fit: cover;
}

.stacking-cards__item-top {
  position: absolute;
  top: 2.5em;
  left: 2.5em;
  right: 2.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stacking-cards__top-span {
  font-size: var(--text-s);
  font-weight: 500;
}

@media screen and (max-width: 767px) {
  .stacking-cards__item-h { font-size: 14vw; }
  .stacking-cards__item-img { width: 55vw; }
  .stacking-cards__item-top { top: 1.5em; left: 1.5em; right: 1.5em; }
}


/* --- css/sections/bouncy-tabs.css --- */
/* sections/bouncy-tabs.css — vault resource 'Bouncy Content Tabs', DC recode.
   Markup: blocks/bouncy_tabs/render.php
     section_bouncy-tabs > .container
       > .block-intro (optional)
       > .bouncy-tabs[data-bouncy-tabs-init]
         > .bouncy-tabs__nav  (ghost + indicator + buttons)
         > .bouncy-tabs__collection > .bouncy-tabs__list > .bouncy-tabs__item*

   The pill (indicator) and the hover ghost are positioned by GSAP in
   js/components/bouncy-tabs.js — this file only gives them shape. Panels are
   absolutely positioned and the script animates the LIST's height between
   them, so the card grows and shrinks to fit the active panel.

   Keep overflow:hidden on .bouncy-tabs__collection: the sliding panels are
   meant to be clipped at the card's own rounded edge. */

.bouncy-tabs {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: var(--gap-l);
  width: min(100%, 50em);
  margin-inline: auto;
}

.bouncy-tabs__nav {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding: 0.4em;
  background-color: color-mix(in srgb, var(--color-ink) 8%, transparent);
  border-radius: 100em;
}

.bouncy-tabs__nav[data-wrapped] { border-radius: 1.25em; }

.bouncy-tabs__ghost {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 2em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background-color: color-mix(in srgb, var(--color-ink) 10%, transparent);
  border-radius: 100em;
}

.bouncy-tabs__indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 3em;
  pointer-events: none;
  background-color: var(--color-ink);
  border-radius: 100em;
}

.bouncy-tabs__button {
  position: relative;
  z-index: 3;
  padding: 0.65em 1.25em;
  font: inherit;
  color: var(--color-ink-soft);
  background-color: transparent;
  border: none;
  border-radius: 100em;
  cursor: pointer;
  transition: color 0.3s ease;
}

.bouncy-tabs__button[data-active] { color: var(--color-surface); }

.bouncy-tabs__collection {
  width: 100%;
  padding: var(--gap-l);
  background-color: var(--color-surface-2);
  border-radius: 1.5em;
  overflow: hidden;
}

.bouncy-tabs__list {
  position: relative;
  width: 100%;
}

.bouncy-tabs__item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--gap-m);
}

.bouncy-tabs__item:not([data-active]) {
  opacity: 0;
  visibility: hidden;
}

.bouncy-tabs__item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--gap-s);
}

.bouncy-tabs__heading {
  margin: 0;
  font-size: var(--text-l);
  line-height: 1;
}

.bouncy-tabs__para { margin: 0; }
.bouncy-tabs__para > p:last-child { margin-bottom: 0; }

.bouncy-tabs__item-visual {
  aspect-ratio: 1;
  width: 45%;
  border-radius: 1em;
  overflow: hidden;
}

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

@media screen and (max-width: 767px) {
  .bouncy-tabs__nav { border-radius: 1.25em; }
  .bouncy-tabs__collection { padding: var(--gap-m); }
  .bouncy-tabs__item {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }
  .bouncy-tabs__item-visual { width: 100%; }
}


/* --- 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: 1em;
  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: 1em;
}

.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 — FAQ accordion section (blocks/faq_section). The
   accordion itself is the carried component (css/components/accordion.css);
   this only sizes and centres it and spaces the see-all button. */

.faq__wrap {
  max-width: 46em;
  margin-inline: auto;
}

.faq__wrap .accordion-css { max-width: none; }

.faq_see_all_btn {
  justify-content: center;
  margin-top: var(--space-m);
}


/* --- 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.news-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: 10em;
  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: 10em;
  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 */
.news-card[data-filter-status] {
  transition: opacity var(--duration-default-half) var(--cubic-default),
              transform var(--duration-default-half) var(--cubic-default);
}

.news-card[data-filter-status="not-active"] { display: none; }

.news-card[data-filter-status="transition-out"] {
  opacity: 0;
  transform: scale(0.97);
}

.news-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-m);
  background-color: var(--color-surface-2);
}

.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-default) var(--cubic-default);
}

.news-card:hover .news-card__image { transform: scale(1.04); }

.news-card__body { padding-top: var(--gap-s); }

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
}

.news-card__cat {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.news-card__title {
  margin: 0.4em 0 0;
  font-size: var(--text-l);
  line-height: 1.2;
}

.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);
  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-accent);
  border-color: var(--color-accent);
}

.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/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/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: 10em;
  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/pages/project.css --- */
/* pages/project.css — the work index (archive-project.php, taxonomy-project_sector.php)
   and the case-study header (single-project.php). */

/* ---------- work index ---------- */

.work-index__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap-m);
  margin-bottom: var(--space-m);
}

.work-index__title { margin: 0; }

.work-index__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-s);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.work-index__filter { color: var(--color-ink-soft); text-decoration: none; }
.work-index__filter:hover,
.work-index__filter.is--current { color: var(--color-ink); }

.work-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

.work-index__row { border-bottom: 1px solid var(--color-line); }

.work-index__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 14rem) 6rem;
  align-items: baseline;
  gap: var(--gap-s);
  padding: clamp(0.9rem, 2vw, 1.6rem) 0;
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast, 0.2s) var(--ease-soft, ease);
}

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

.work-index__name {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.work-index__sector,
.work-index__year {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-soft);
}

.work-index__year { text-align: right; }

.work-index__empty { color: var(--color-ink-soft); }

@media (max-width: 47.99em) {
  .work-index__link {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .work-index__name { grid-column: 1 / -1; }
}

/* ---------- case-study header ---------- */

.project-header__eyebrow {
  margin: 0 0 var(--space-s);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-header__eyebrow a { color: var(--color-ink-soft); text-decoration: none; }
.project-header__eyebrow a:hover { color: var(--color-ink); }

.project-header__title { margin: 0 0 var(--space-s); }

.project-header__summary {
  max-width: 46rem;
  margin: 0 0 var(--space-m);
  font-size: var(--text-l, 1.25rem);
  color: var(--color-ink-soft);
}

.project-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-m);
  margin: 0 0 var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid var(--color-line);
}

.project-header__meta-item dt {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-soft);
  margin-bottom: 0.25em;
}

.project-header__meta-item dd { margin: 0; }

.project-cover__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m, 0);
}

/* Outcome-led rows: the headline is what the site does, the client name is the
   caption under it. */
.work-index__lead { display: block; }

.work-index__name {
  display: block;
  max-width: 30ch;
  text-wrap: balance;
}

.work-index__client {
  display: block;
  margin-top: 0.35em;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}


/* --- 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);
}

.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: 500em;
  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: 1em;
  }
}


/* --- 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: .25em;
  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: 10em;
  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: .5em;
  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: .25rem;
    width: 5rem;
  }
}

@media screen and (max-width: 479px) {
  .img-slider__thumb {
    width: 4.5rem;
  }
}


/* --- 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: 10em;
  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: 1.5em;
  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: .5em;
  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: 10em;
  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: 1.5em;
  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: .5em;
  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: 10em;
  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: 10em;
  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: 1.5em;
  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: .5em;
  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: 50em;
  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: 1.5em;
  flex-flow: column;
  width: 100%;
  padding: 1em;
  display: flex;
}

.demo-card__top {
  position: relative;
}

.demo-card__visual {
  background-color: #eaeaea;
  border-radius: .5em;
  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: .5em;
  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;
}


/* --- 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;
}

.modal__btn-close {
  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;
}

/* Site-wide Start a project modal (footer.php). Shares .modal with the team
   cards, so it sets its own visibility from data-modal-status instead of the
   group status those use. */
.modal.is--page {
  z-index: 120;
  display: grid;
  /* A definite track, so the panel's percentage width resolves against the
     viewport instead of shrinking to its content. */
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: var(--gap-s);
  transition: opacity 0.4s var(--cubic-default), visibility 0.4s;
}

.modal.is--page[data-modal-status="active"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 25, 24, 0.55);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  width: min(46rem, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  overscroll-behavior: contain;
  /* Sized to fit a laptop screen; on shorter ones it still scrolls, without a bar. */
  scrollbar-width: none;
  --gf-row-gap: 1.1rem;
  --gf-input-pad: 0.6em 0.9em;
  --gf-footer-gap: 1.5rem;
  background: var(--color-surface);
  color: var(--color-ink);
  border-radius: calc(28 * var(--px));
  padding: clamp(1.5rem, 3vw, 2.75rem);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.55s var(--cubic-default);
}

.modal__panel::-webkit-scrollbar { display: none; }

.modal.is--page[data-modal-status="active"] .modal__panel { transform: none; }

.modal__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface-2);
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: var(--color-ink);
  color: var(--color-surface);
}

.modal__label {
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--color-ink-soft);
  margin: 0 0 1rem;
}

.modal__title {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin: 0;
}

@media (min-width: 64em) {
  .modal__title { max-width: none; }
}

.modal__text {
  margin: 0.9rem 0 0;
  color: var(--color-ink-soft);
  max-width: 44ch;
}

.modal__panel .gform_wrapper { padding-top: 1.5rem; }

/* Laptop heights (1440x800, 1366x768) still fit without scrolling. */
@media (min-width: 48em) and (max-height: 50em) {
  .modal__panel { padding-block: 2rem; }
  .modal__label { margin-bottom: 0.75rem; }
  .modal__panel .gform_wrapper { padding-top: 1.25rem; }
}

/* Half GF's 288px textarea; its own rule is .gfield textarea.large. */
.modal__panel .gform_wrapper.gravity-theme .gfield textarea.textarea {
  height: 8em;
  min-height: 4em;
}

.modal__mail {
  margin: 1.25rem 0 0;
  color: var(--color-ink-soft);
}

.modal__close:focus-visible {
  background: var(--color-ink);
  color: var(--color-surface);
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

.modal__panel:focus { outline: none; }

.modal__mail a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

html.is-modal-open { overflow: clip; }

@media (prefers-reduced-motion: reduce) {
  .modal.is--page,
  .modal__panel {
    transition: none;
  }

  .modal__panel { transform: none; }
}

/* Demo Buttons */

.demo-btn {
  background-color: #efeeec;
  border-radius: 50em;
  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/section-intro.css --- */
/* components/section-intro.css — the standard section header, emitted by
   dc_acf_section_intro() (rylo features_contain pattern: tight display
   heading, faded capped description, button). Left-aligned by default;
   .is-center centres the stack. */

.block-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-s);
  margin-bottom: var(--gap-l);
}

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

.block-intro__title {
  margin: 0;
  max-width: 14em;
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.block-intro__text {
  max-width: 28em;
  color: var(--color-ink-soft);
  font-size: var(--text-l);
  line-height: 1.5;
}

.block-intro__text > :first-child { margin-top: 0; }
.block-intro__text > :last-child  { margin-bottom: 0; }

.block-intro.is-center {
  align-items: center;
  text-align: center;
}


/* --- 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/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-bubble-arrow, 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;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: from-font;
  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-bubble-arrow: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-heading);
  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(--text-xs);
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  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: #2a6b64;
}

: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);
  font-size: var(--text-l);
  line-height: 1.35;
  letter-spacing: -0.01em;
  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-ink-soft);
  text-align: center;
}

:where(.rte) iframe {
  max-width: 100%;
  border: 0;
  border-radius: var(--radius-m);
}

/* 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/gravity-forms.css --- */
/* components/gravity-forms.css — the theme form skin (ported from Locale Homes,
   trimmed to what a single-step form needs). Applies to forms that opt in
   with the CSS class "gf-skin" (GF puts it on the <form> and adds
   "gf-skin_wrapper" to the wrapper) or sit inside a .gf-skin element.
   includes/gravity-forms.php renders them on GF's lean gravity-theme with a
   <button> submit carrying the btn-bubble-arrow contract. Every rule carries
   the full wrapper prefix to outrank gravity-theme's own.
   Density hooks a container can set: --gf-row-gap, --gf-input-pad,
   --gf-footer-gap. */

.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-sans);
}

/* Two real columns instead of GF's twelve: half-width fields pair up,
   everything else runs full width. */
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap-m);
  row-gap: var(--gf-row-gap, var(--gap-l));
}
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_fields > .gfield { grid-column: 1 / -1; }
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_fields > .gfield--width-half { grid-column: auto; }

.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield_label {
  font-size: var(--text-s);
  font-weight: 500;
  margin-bottom: 0.5em;
}
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield_required { color: var(--color-ink-soft); padding-left: 0.2em; }
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield_description { font-size: var(--text-xs); color: var(--color-ink-soft); }

.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) select,
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) textarea {
  width: 100%;
  font: inherit;
  font-size: var(--text-m);
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--n-0);
  border: 1px solid var(--gf-border, var(--color-line));
  border-radius: var(--radius-m);
  padding: var(--gf-input-pad, 0.85em 1em);
  transition: border-color var(--animation-default-half), box-shadow var(--animation-default-half);
}
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) textarea { min-height: 9em; resize: vertical; }

.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) input:focus-visible,
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) select:focus-visible,
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) textarea:focus-visible {
  outline: none;
  border-color: var(--gf-focus, var(--color-ink));
  box-shadow: 0 0 0 3px var(--gf-ring, color-mix(in srgb, var(--color-ink) 12%, transparent));
}

.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) ::placeholder { color: var(--color-ink-soft); opacity: 1; }

/* Validation: one calm summary line, each message under its own field, the
   field border in --color-error. GF's boxed red messages are reset. */
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_validation_errors {
  width: auto;
  margin: 0 0 var(--gap-m);
  padding: 0.75em 1em;
  color: var(--color-error);
  background: color-mix(in srgb, var(--color-error) 6%, var(--color-surface));
  border: 1px solid color-mix(in srgb, var(--color-error) 30%, transparent);
  border-radius: var(--radius-m);
  box-shadow: none;
}
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_validation_errors:focus { outline: 2px solid var(--color-error); outline-offset: 2px; }
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_validation_errors > h2 {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0;
  color: inherit;
  font-size: var(--text-s);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}
/* GF's icon font glyph is swapped for a drawn badge that inherits the colour. */
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_validation_errors > h2 .gform-icon { display: none; }
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_validation_errors > h2::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: var(--color-error);
  color: var(--color-surface);
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1;
}
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_validation_errors > ol { margin: 0.5em 0 0; padding-inline-start: 2.2em; }
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_validation_errors > ol li { margin: 0; font-size: var(--text-xs); color: inherit; }
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_validation_errors > ol a { color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 0.2em; }

/* Message under the field whatever the form's "validation above" setting. */
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield_error:not(fieldset) { display: flex; flex-direction: column; }
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield_error > .gfield_label { order: 0; }
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield_error > .ginput_container { order: 1; }
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield_error > .gfield_validation_message { order: 2; }
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield_error > .gfield_description:not(.gfield_validation_message) { order: 3; }
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield_error .gfield_label,
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield_error legend { color: inherit; }
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield_error .gfield_required { color: var(--color-error); }
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield_error .gfield_validation_message {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0.5em 0 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-error);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.4;
}
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield_error .gfield_validation_message::before {
  content: "";
  flex: none;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: currentColor;
}
/* Through custom properties: the input rule above outranks any .gfield_error selector. */
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield_error {
  --gf-border: var(--color-error);
  --gf-focus: var(--color-error);
  --gf-ring: color-mix(in srgb, var(--color-error) 22%, transparent);
}

/* Invisible reCAPTCHA renders an empty field (its badge is fixed to the
   viewport): out of the grid so it adds no row gap. */
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gfield--captcha-invisible { position: absolute; }

/* Footer: the submit is a <button class="btn-bubble-arrow"> (includes/gravity-forms.php). */
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_footer {
  margin-top: var(--gf-footer-gap, var(--gap-l));
  padding: 0;
  display: flex;
  justify-content: flex-start;
}
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_footer button.btn-bubble-arrow {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_ajax_spinner { margin-left: 1em; }

/* Confirmation */
.gf-skin .gform_confirmation_message {
  padding: var(--gap-l);
  border-radius: var(--radius-l);
  background: var(--color-surface-2);
  font-size: var(--text-m);
}

@media (max-width: 47.99em) {
  .gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_fields > .gfield--width-half { grid-column: 1 / -1; }
}


/* --- css/components/button.css --- */
/* components/button.css — Sola Swim: a plain pill button. This file is the
   per-project swap layer for buttons (see main's button.css), so it replaces
   the standard bubble-arrow style outright. Same markup contract, arrows hidden:
     a.btn-bubble-arrow > .btn-bubble-arrow__arrow + __content + __arrow.is--duplicate
   Variants: .is-secondary (outline), .is--accent (same as primary here). */

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-s);
}

.btn-bubble-arrow {
  --btn-bg: var(--color-accent);
  --btn-fg: var(--color-on-accent);
  --btn-line: transparent;
  --btn-bg-hover: var(--n-900);
  --btn-fg-hover: var(--n-0);
  --btn-line-hover: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25em;
  padding: 0 1.75em;
  border: 0;
  border-radius: 10em;
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: inset 0 0 0 1.5px var(--btn-line);
  font-family: var(--font-ui);
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-bubble-arrow:hover {
  background-color: var(--btn-bg-hover);
  color: var(--btn-fg-hover);
  box-shadow: inset 0 0 0 1.5px var(--btn-line-hover);
}
.btn-bubble-arrow:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.btn-bubble-arrow__arrow { display: none; }
.btn-bubble-arrow__content { display: contents; }

.btn-bubble-arrow.is-secondary {
  --btn-bg: transparent;
  --btn-fg: var(--color-ink);
  --btn-line: currentColor;
  --btn-bg-hover: var(--color-ink);
  --btn-fg-hover: var(--color-surface);
}

/* Dark sections and the hero: the hover flips to white, outlines go white. */
:is([data-theme-section="dark"], .section_hero) .btn-bubble-arrow {
  --btn-bg-hover: var(--n-0);
  --btn-fg-hover: var(--n-900);
}
:is([data-theme-section="dark"], .section_hero) .btn-bubble-arrow.is-secondary { --btn-fg: var(--n-0); }

/* Gravity Forms submit (a <button class="btn-bubble-arrow">): beat its reset. */
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_footer button.btn-bubble-arrow { background-color: var(--btn-bg); font-family: var(--font-ui); font-size: 1.05em; font-weight: 600; }
.gform_wrapper.gravity-theme:is(.gf-skin *, .gf-skin_wrapper) .gform_footer button.btn-bubble-arrow:hover { background-color: var(--btn-bg-hover); }

@media (prefers-reduced-motion: reduce) {
  .btn-bubble-arrow { transition: none; }
}


/* --- css/sections/quote-form.css --- */
/* sections/quote-form.css — Sola Swim quote form (blocks/quote_form).
   Navy intro panel (sticky on desktop) beside the Gravity Form in a white card.
   Form field classes set in the form itself (seeds/20-form.php):
     .gf-choice-cards  enquiry type as icon cards (2 x 2)
     .gf-segmented     short radios as pill toggles
     .gf-group         section breaks as small group headings
   Every form rule is prefixed .section_quote-form .gform_wrapper.gf-skin_wrapper
   to outrank components/gravity-forms.css. */

.quote-form__cols { --cols: 12; align-items: start; gap: var(--gap-l); }
.quote-form__intro { --span: 5; position: sticky; top: calc(var(--nav-offset, 6em) + 1.5em); }
.quote-form__form { --span: 7; }

/* Intro panel */
.quote-form__panel {
  padding: clamp(1.75rem, 3vw, 3rem);
  border-radius: var(--radius-m);
  background: var(--ss-navy) url('../img/solaswim/sun-mark.svg') right -2.5em top -2.5em / 9em no-repeat;
  color: var(--ss-white);
}
.quote-form__title { margin: 0 0 0.6em; padding-right: 2.5em; color: var(--ss-white); }
.quote-form__text { color: color-mix(in srgb, var(--ss-white) 82%, transparent); }
.quote-form__text ul { margin-top: 1.25em; gap: 0.7em; }
.quote-form__text ul > li { padding-left: 2em; color: var(--ss-white); font-weight: 500; }
.quote-form__text ul > li::before {
  top: 0.15em; width: 1.3em; height: 1.3em;
  background: var(--ss-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231d284b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 75% no-repeat;
}
.quote-form__contact {
  display: flex; flex-direction: column; gap: 0.25em;
  margin-top: 2em; padding-top: 1.5em;
  border-top: 1px solid color-mix(in srgb, var(--ss-white) 18%, transparent);
}
.quote-form__contact-label { font-family: var(--font-ui); font-size: var(--text-s); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ss-yellow); }
.quote-form__phone { font-family: var(--font-heading); font-size: var(--text-xl); line-height: 1.2; color: var(--ss-white); text-decoration: none; }
.quote-form__phone:hover { color: var(--ss-yellow); }
.quote-form__email { color: color-mix(in srgb, var(--ss-white) 82%, transparent); }
.quote-form__email:hover { color: var(--ss-white); }

/* Form card */
.quote-form__form {
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: var(--radius-m);
  background: var(--ss-white);
  box-shadow: 0 20px 50px rgba(29, 40, 75, 0.08);
}

.section_quote-form .gform_wrapper.gf-skin_wrapper {
  --gf-row-gap: 1.5em;
  --gf-focus: var(--ss-blue);
  --gf-ring: color-mix(in srgb, var(--ss-blue) 18%, transparent);
  --gf-border: #d4d9e4;
  font-size: 18px;
}

/* Labels, required marks, help text */
.section_quote-form .gform_wrapper.gf-skin_wrapper .gfield_label { font-family: var(--font-ui); font-size: 1rem; font-weight: 600; color: var(--ss-navy); }
.section_quote-form .gform_wrapper.gf-skin_wrapper .gfield_required { color: var(--ss-blue); }
.section_quote-form .gform_wrapper.gf-skin_wrapper .gfield_description { margin-top: 0.4em; font-size: 0.875rem; line-height: 1.5; }
.section_quote-form .gform_wrapper.gf-skin_wrapper .gform_required_legend { margin-bottom: 1.25em; font-size: 0.875rem; color: var(--color-ink-soft); }

/* Inputs */
.section_quote-form .gform_wrapper.gf-skin_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.section_quote-form .gform_wrapper.gf-skin_wrapper select,
.section_quote-form .gform_wrapper.gf-skin_wrapper textarea {
  border-width: 1.5px;
  border-radius: var(--radius-s);
  padding: 0.8em 1em;
  font-size: 1rem;
  background-color: #f8f9fc;
}
.section_quote-form .gform_wrapper.gf-skin_wrapper :is(input, select, textarea):focus-visible { background-color: var(--ss-white); }
.section_quote-form .gform_wrapper.gf-skin_wrapper select {
  appearance: none;
  padding-right: 2.75em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d284b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 1.1em;
}
.section_quote-form .gform_wrapper.gf-skin_wrapper textarea { min-height: 7em; }

/* Group headings (section breaks) */
.section_quote-form .gform_wrapper.gf-skin_wrapper .gsection.gf-group {
  margin-top: 0.75em;
  padding: 1.25em 0 0;
  border: 0;
  border-top: 1px solid var(--color-line);
}
.section_quote-form .gform_wrapper.gf-skin_wrapper .gf-group .gsection_title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-s);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ss-blue);
}

/* Shared radio reset: the real input stays focusable, visually hidden */
.section_quote-form .gform_wrapper.gf-skin_wrapper :is(.gf-choice-cards, .gf-segmented) .gchoice { position: relative; margin: 0; }
.section_quote-form .gform_wrapper.gf-skin_wrapper :is(.gf-choice-cards, .gf-segmented) .gfield-choice-input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.section_quote-form .gform_wrapper.gf-skin_wrapper :is(.gf-choice-cards, .gf-segmented) label {
  max-width: none; margin: 0; cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* Enquiry type: icon cards */
.section_quote-form .gform_wrapper.gf-skin_wrapper .gf-choice-cards .gfield_radio {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75em;
}
.section_quote-form .gform_wrapper.gf-skin_wrapper .gf-choice-cards label {
  display: flex; align-items: center; gap: 0.85em;
  height: 100%;
  padding: 1em 1.1em;
  border: 1.5px solid var(--gf-border);
  border-radius: var(--radius-s);
  background: #f8f9fc;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ss-navy);
}
.section_quote-form .gform_wrapper.gf-skin_wrapper .gf-choice-cards label::before {
  content: "";
  flex: none;
  width: 2.5em; height: 2.5em;
  border-radius: 50%;
  background: var(--ss-white) var(--qf-icon) center / 55% no-repeat;
  box-shadow: inset 0 0 0 1px var(--gf-border);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.section_quote-form .gf-choice-cards .gchoice:nth-child(1) { --qf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a3a8f' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
.section_quote-form .gf-choice-cards .gchoice:nth-child(2) { --qf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a3a8f' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7l1-8Z'/%3E%3C/svg%3E"); }
.section_quote-form .gf-choice-cards .gchoice:nth-child(3) { --qf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a3a8f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4l-6 6a1.4 1.4 0 0 0 2 2l6-6a4 4 0 0 0 5.4-5.4l-2.5 2.5-2-2 2.5-2.5Z'/%3E%3C/svg%3E"); }
.section_quote-form .gf-choice-cards .gchoice:nth-child(4) { --qf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a3a8f' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4V5Z'/%3E%3C/svg%3E"); }
.section_quote-form .gform_wrapper.gf-skin_wrapper .gf-choice-cards .gchoice:hover label { border-color: var(--ss-blue); }
.section_quote-form .gform_wrapper.gf-skin_wrapper .gf-choice-cards .gfield-choice-input:checked + label {
  border-color: var(--ss-navy);
  background: color-mix(in srgb, var(--ss-yellow) 18%, var(--ss-white));
  box-shadow: inset 0 0 0 1px var(--ss-navy);
}
.section_quote-form .gform_wrapper.gf-skin_wrapper .gf-choice-cards .gfield-choice-input:checked + label::before { background-color: var(--ss-yellow); box-shadow: none; }

/* Short radios: pill toggles */
.section_quote-form .gform_wrapper.gf-skin_wrapper .gf-segmented .gfield_radio { display: flex; flex-wrap: wrap; gap: 0.4em; }
.section_quote-form .gform_wrapper.gf-skin_wrapper .gf-segmented label {
  display: inline-flex; align-items: center;
  padding: 0.55em 0.95em;
  border: 1.5px solid var(--gf-border);
  border-radius: 10em;
  background: #f8f9fc;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ss-navy);
}
.section_quote-form .gform_wrapper.gf-skin_wrapper .gf-segmented .gchoice:hover label { border-color: var(--ss-blue); }
.section_quote-form .gform_wrapper.gf-skin_wrapper .gf-segmented .gfield-choice-input:checked + label { border-color: var(--ss-navy); background: var(--ss-navy); color: var(--ss-white); }

/* Keyboard focus on the hidden radios */
.section_quote-form .gform_wrapper.gf-skin_wrapper :is(.gf-choice-cards, .gf-segmented) .gfield-choice-input:focus-visible + label { outline: 2px solid var(--ss-blue); outline-offset: 2px; }

/* Plain checkbox ("Not sure of the pool size") */
.section_quote-form .gform_wrapper.gf-skin_wrapper .gfield--type-checkbox { margin-top: -0.75em; }
.section_quote-form .gform_wrapper.gf-skin_wrapper .gfield--type-checkbox label { font-size: 0.9375rem; }
.section_quote-form .gform_wrapper.gf-skin_wrapper input[type="checkbox"] { accent-color: var(--ss-navy); width: 1.1em; height: 1.1em; }

/* Photo upload */
.section_quote-form .gform_wrapper.gf-skin_wrapper .gform_drop_area {
  display: flex; flex-direction: column; align-items: center; gap: 0.6em;
  padding: 1.75em 1em;
  border: 1.5px dashed var(--gf-border);
  border-radius: var(--radius-s);
  background: #f8f9fc;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.section_quote-form .gform_wrapper.gf-skin_wrapper .gform_drop_area::before {
  content: ""; width: 2.25em; height: 2.25em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a3a8f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.5'/%3E%3Cpath d='m21 15-5-5-8 9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section_quote-form .gform_wrapper.gf-skin_wrapper .gform_drop_area:hover,
.section_quote-form .gform_wrapper.gf-skin_wrapper .gform_drop_area.hover { border-color: var(--ss-blue); background: var(--ss-white); }
.section_quote-form .gform_wrapper.gf-skin_wrapper .gform_drop_instructions { font-size: 0.9375rem; color: var(--color-ink-soft); }
.section_quote-form .gform_wrapper.gf-skin_wrapper .gform_button_select_files {
  padding: 0.55em 1.2em;
  border: 1.5px solid var(--ss-navy);
  border-radius: 10em;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ss-navy);
  cursor: pointer;
}
.section_quote-form .gform_wrapper.gf-skin_wrapper .gform_button_select_files:hover { background: var(--ss-navy); color: var(--ss-white); }
.section_quote-form .gform_wrapper.gf-skin_wrapper .gform_fileupload_rules { display: block; margin-top: 0.5em; font-size: 0.8125rem; color: var(--color-ink-soft); }

/* Privacy line and submit */
.section_quote-form .gf-privacy { margin: 0; font-size: 0.875rem; color: var(--color-ink-soft); }
.section_quote-form .gf-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.section_quote-form .gform_wrapper.gf-skin_wrapper .gform_footer { margin-top: 1.25em; }
.section_quote-form .gform_wrapper.gf-skin_wrapper .gform_footer button.btn-bubble-arrow { width: 100%; min-height: 3.5em; font-size: 1.0625rem; }

@media (max-width: 991px) {
  .quote-form__intro, .quote-form__form { --span: 12; }
  .quote-form__intro { position: static; }
}
@media (max-width: 767px) {
  .quote-form__panel { background-image: none; }
  .quote-form__title { padding-right: 0; }
}
@media (max-width: 479px) {
  .section_quote-form .gform_wrapper.gf-skin_wrapper .gf-choice-cards .gfield_radio { grid-template-columns: 1fr; }
}


/* --- css/sections/intro-split.css --- */
/* sections/intro-split.css: Sola Swim home intro (blocks/intro_split).
   section_intro-split > .container > .intro-split
     > .intro-split__media (img + .intro-split__badge)
     > .intro-split__body (label, h2, .rte, .btn-group) */

.intro-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 5em;
}

.intro-split__media { position: relative; }
.intro-split__media img {
  display: block; width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover;
  border-radius: var(--radius-m);
}

.intro-split__badge {
  position: absolute; right: -2em; bottom: 2.5em; margin: 0;
  display: flex; align-items: center; gap: 0.85em;
  padding: 0.85em 1.4em 0.85em 0.85em; border-radius: 10em;
  background: var(--ss-navy); color: var(--ss-white);
  font-family: var(--font-ui); font-weight: 600; font-size: 1.0625em; line-height: 1.2;
  box-shadow: 0 12px 30px rgba(29, 40, 75, 0.25);
}
.intro-split__badge::before {
  content: ""; flex: none; width: 2.6em; height: 2.6em;
  background: url('../img/solaswim/sun-mark.svg') center / contain no-repeat;
}

.intro-split__body { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25em; }
.intro-split__title { margin: 0; font-weight: 400; color: var(--ss-navy); }
.intro-split__text p:first-child { font-size: 1.12em; color: var(--ss-ink); }
.intro-split__text p:not(:first-child) { color: var(--color-ink-soft); }
.intro-split__buttons { margin-top: 0.5em; }

/* Numbered steps: navy circles, bold lead-in on its own line */
.intro-split__text ol { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 1em; counter-reset: step; }
.intro-split__text ol li { position: relative; padding-left: 3em; counter-increment: step; color: var(--color-ink-soft); }
.intro-split__text ol li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%;
  background: var(--ss-navy); color: var(--ss-yellow); font-family: var(--font-ui); font-weight: 600; font-size: 0.95em;
}
.intro-split__text ol li strong { display: block; color: var(--ss-navy); }

@media (max-width: 991px) {
  .intro-split { grid-template-columns: minmax(0, 1fr); gap: 3em; }
  .intro-split__media img { aspect-ratio: 4 / 3; }
  .intro-split__badge { right: 1em; bottom: -1.4em; }
}
@media (max-width: 479px) {
  .intro-split__badge { left: 1em; right: 1em; font-size: 0.95em; }
}


/* --- css/sections/why-bento.css --- */
/* sections/why-bento.css: Sola Swim "why choose us" bento (blocks/why_bento).
   section_why[dark] > .container > .why__head + .why__grid > .why__card
   Modifiers: .is-wide (months bar), .is-photo, .has-mark (sun mark), .is-cta */

.why__head { display: flex; flex-direction: column; gap: 0.75em; margin-bottom: 2.5em; }
.why__title { margin: 0; font-weight: 400; max-width: 20em; }

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(15em, auto);
  grid-auto-flow: dense;
  gap: 1em;
}

.why__card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5em;
  padding: 2em; border-radius: var(--radius-m);
  background: var(--ss-navy-soft);
}
.why__card.is-wide, .why__card.is-photo { grid-column: span 2; }
.why__card.is-wide { justify-content: space-between; gap: 1.5em; }
.why__copy { display: flex; flex-direction: column; gap: 0.5em; }

.why__num { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-xl); line-height: 1; color: var(--ss-white); }
.why__card.is-wide .why__num { font-size: var(--text-2xl); color: var(--ss-yellow); }
.why__body { font-family: var(--font-ui); font-weight: 500; font-size: var(--text-body, 18px); line-height: 1.35; color: var(--color-ink-soft); max-width: 24em; }

.why__card.has-mark { justify-content: space-between; }
.why__card.has-mark::before {
  content: ""; width: 3.5em; height: 3.5em; margin-bottom: auto;
  background: url('../img/solaswim/sun-mark.svg') center / contain no-repeat;
}

.why__bar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.4em; }
.why__bar span { height: 0.75em; border-radius: 10em; background: rgba(255, 255, 255, 0.16); }
.why__bar span.is-on { background: var(--ss-yellow); }

.why__card.is-photo { padding: 1em; min-height: 18em; }
.why__card.is-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why__photo-label {
  position: relative; display: flex; flex-direction: column; gap: 0.35em; align-self: flex-start; max-width: 22em;
  padding: 1.25em 1.5em; border-radius: var(--radius-s); background: var(--ss-white);
}
.why__photo-label .why__num { color: var(--ss-navy); }
.why__photo-label .why__body { color: var(--ss-grey); }

.why__card.is-cta { justify-content: space-between; background: var(--ss-yellow); color: var(--ss-navy); text-decoration: none; transition: background-color 0.3s; }
.why__cta-text { font-family: var(--font-heading); font-size: var(--text-l); line-height: 1.2; }
.why__cta-link { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-ui); font-weight: 600; }
.why__cta-link svg { width: 1.2em; height: 1.2em; transition: transform 0.3s; }
@media (hover: hover) and (pointer: fine) {
  .why__card.is-cta:hover { background: var(--ss-white); }
  .why__card.is-cta:hover .why__cta-link svg { transform: translateX(0.25em); }
}
.why__card.is-cta:focus-visible { outline: 2px solid var(--ss-yellow); outline-offset: 3px; }

@media (max-width: 991px) {
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(12em, auto); }
}
@media (max-width: 479px) {
  .why__grid { grid-template-columns: minmax(0, 1fr); }
  .why__card.is-wide, .why__card.is-photo { grid-column: auto; }
  .why__card.has-mark::before { width: 2.75em; height: 2.75em; }
}


/* --- 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/text-reveal.css --- */
/* components/text-reveal.css: js/components/text-reveal.js wraps each heading line in
   .line-mask (overflow: clip). Tight display line-heights put descenders (g, y, commas)
   below the line box, where the mask cut them off. Extend the clip box downwards and
   cancel it with a negative margin so layout is unchanged; the reveal starts at
   yPercent 140 so nothing peeks out of the taller mask before it plays. */
[data-split] .line-mask { padding-bottom: 0.25em; margin-bottom: -0.25em; }


/* --- css/components/dot-icon.css --- */
/* components/dot-icon.css — inline dot-matrix icons (js/components/dot-icon.js) */
[data-dot-icon] { display: inline-block; width: 3.5rem; aspect-ratio: 1; line-height: 0; }
[data-dot-icon] line { stroke: currentColor; }
[data-dot-icon] svg { width: 100%; height: 100%; overflow: visible; }
[data-dot-icon] circle { fill: currentColor; }


/* --- css/components/bg-fade.css --- */
/* components/bg-fade.css — the page background changes colour as you scroll.
   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. Opt out per section (or per page on <main>) with
   data-bg-fade="off". */
body[data-bg-fade-page] { transition: background-color var(--duration-default-onehalf) var(--cubic-default); }
main > [data-bg-fade-state] { background-color: transparent; transition: color var(--duration-default-onehalf) var(--cubic-default); }
@media (prefers-reduced-motion: reduce) {
  body[data-bg-fade-page], main > [data-bg-fade-state] { transition: none; }
}


/* --- css/base/solaswim.css --- */
/* base/solaswim.css: Sola Swim skin. Loads LAST. Header chrome, hero wave, sun mark,
   buttons and per-block skins for the July 2025 look. Blocks stay generic; this file
   knows the brand. Built clean, not polished: Chris's styling pass is phase C. */

/* ---- Chrome sizes ---- */
:root {
  --topbar-h: 2.75em;
  --nav-height: 5.5em;
}
@media (max-width: 991px) {
  :root { --topbar-h: 0px; --nav-height: 4.25em; }
}

/* ---- Section themes: dark = navy, primary = brand blue, accent = yellow band ---- */
:where([data-theme-section="dark"]) { background: var(--ss-navy); --color-ink-soft: var(--n-300); --color-line: rgba(255, 255, 255, 0.14); --color-surface-2: var(--ss-navy-soft); }
:where([data-theme-section="tint"]) { background: var(--ss-mist); }

/* ---- Type: UI font for labels and small caps lines ---- */
.block-intro__label, .hero__label, .intro__label, .sticky-steps__eyebrow, .contact-band__label, .figure__body {
  font-family: var(--font-ui);
}
.block-intro__label, .intro__label {
  color: var(--ss-yellow); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; font-size: var(--text-s);
}
[data-theme-section="light"] .block-intro__label, [data-theme-section="tint"] .block-intro__label { color: var(--ss-blue); }

/* ---- Top bar (desktop only) ---- */
.topbar {
  position: fixed; z-index: 101; top: var(--admin-bar); left: 0; right: 0; height: var(--topbar-h);
  background: var(--ss-navy); color: var(--ss-white);
  font-family: var(--font-ui); font-weight: 500;
}
/* Smaller text lives on the inner row: an em font-size on .topbar itself would
   shrink its height (--topbar-h is em) and open a gap above the header. */
.topbar__inner { font-size: 0.9375em; height: 100%; display: flex; align-items: stretch; justify-content: space-between; max-width: var(--size-container-max); margin-inline: auto; }
.topbar__note {
  margin: 0; display: flex; align-items: center; padding: 0 3em 0 var(--container-padding);
  background: var(--ss-yellow); color: var(--ss-navy);
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.5em) 100%, 0 100%);
}
.topbar__list { display: flex; align-items: center; gap: 1.75em; margin: 0; padding: 0 var(--container-padding) 0 0; list-style: none; }
.topbar__link { display: inline-flex; align-items: center; gap: 0.5em; transition: color var(--animation-ease); }
.topbar__link:hover { color: var(--ss-yellow); }
.topbar__link.is--icon svg { width: 1.25em; height: 1.25em; }
@media (max-width: 991px) { .topbar { display: none; } }

/* ---- Header: solid white bar under the top bar (not the floating DC bar) ---- */
html body { --nav-offset: calc(var(--nav-height) + var(--topbar-h)); }
.mega-nav { top: calc(var(--topbar-h) + var(--admin-bar)); left: 0; right: 0; }
.admin-bar .mega-nav { top: calc(var(--topbar-h) + var(--admin-bar)); }
.mega-nav__bar { max-width: none; box-shadow: 0 1px 0 var(--color-line), 0 8px 24px rgba(29, 40, 75, 0.06); }
.mega-nav__container { max-width: var(--size-container-max); margin-inline: auto; padding: 0 var(--container-padding); }
.mega-nav__bar-logo { max-width: none; margin-right: 2em; }
.mega-nav__bar-logo img { height: 3em; max-height: none; width: auto; }
.mega-nav__bar-link { font-family: var(--font-ui); color: var(--ss-ink); }
.mega-nav__bar-link-label { font-size: 1em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.mega-nav__bar-link:hover { background: transparent; color: var(--ss-blue); }
.mega-nav__bar-list li.is-current > .mega-nav__bar-link { color: var(--ss-blue); }
.mega-nav__bar-cta {
  font-family: var(--font-ui); font-weight: 600; border-radius: 10em; padding: 0.85em 1.75em;
  background: var(--ss-yellow); color: var(--ss-navy);
}
.mega-nav__bar-cta .mega-nav__bar-link-label { text-transform: none; font-size: 1.1em; }
.mega-nav__bar-cta:hover { opacity: 1; background: var(--ss-navy); color: var(--ss-white); }
.mega-nav__bar-cta.is--secondary { background: transparent; color: var(--ss-navy); border: 1px solid var(--color-line); }
.mega-nav__bar-cta.is--secondary:hover { background: var(--ss-mist); color: var(--ss-navy); }
/* A solid bar always: the section-aware nav would turn links white over the dark hero. */
:root { --nav-restore-surface: var(--ss-white); --nav-restore-ink: var(--ss-ink); }
[data-nav-theme] .mega-nav__bar { background-color: var(--ss-white); }
[data-nav-theme] .mega-nav__bar-link, [data-nav-theme] .mega-nav__bar-logo { color: var(--ss-ink); }
[data-nav-theme] .mega-nav__bar-link:hover, [data-nav-theme] .mega-nav__bar-list li.is-current > .mega-nav__bar-link { color: var(--ss-blue); }
@media (min-width: 992px) {
  .mega-nav__bar-inner > .mega-nav__bar-list:first-child { margin-left: auto; margin-right: 1.5em; }
  .mega-nav__bar-list.is--actions { margin-left: 0; }
}
@media (max-width: 991px) {
  .mega-nav__bar-cta .mega-nav__bar-link-label { white-space: nowrap; }
}
@media (max-width: 991px) {
  .mega-nav__bar-logo img { height: 2.5em; }
  .mega-nav__bar-cta { justify-content: center; }
}

/* ---- Hero: below the header, navy wash, centred stack, wave into the next section ---- */
.section_hero { margin-top: 0; min-height: min(78svh, 46em); justify-content: center; text-align: center; padding-bottom: 4em; }
.hero__bg { border-radius: 0; }
.hero__darken { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(29, 40, 75, 0.55), rgba(29, 40, 75, 0.75)); pointer-events: none; }
.hero__content { display: flex; flex-direction: column; align-items: center; margin-top: 0; }
.hero__label { color: var(--ss-white); font-size: var(--text-m); font-weight: 500; letter-spacing: 0.18em; margin-bottom: 1em; }
.hero__title { max-width: 18em; font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
.hero__text { max-width: 36em; font-size: var(--text-m); line-height: 1.5; margin-inline: auto; }
.hero__content .btn-group { justify-content: center; }
.section_hero::after {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: -1px; height: clamp(28px, 5vw, 90px);
  background: var(--color-surface);
  -webkit-mask: url('../img/solaswim/wave.svg') center bottom / 100% 100% no-repeat;
  mask: url('../img/solaswim/wave.svg') center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

/* ---- Body copy: a flat 18px on every screen (Chris, 9 Nov 2026).
   Set on the copy containers, not on bare p, so intros, statements and the
   footer keep their own sizes. Buttons: components/button.css. ---- */
:root { --text-body: 18px; }
.rte, .text-block__prose, .image-text__text, .hotbox__text, .accordion-css__item-p,
.quote-form__text, .contact-band__row { font-size: var(--text-body); }

/* ---- Section intros centred, as on staging ---- */
.section_hotboxes .block-intro, .section_image-slider .block-intro, .section_faq .block-intro, .section_image-block .block-intro { text-align: center; margin-inline: auto; align-items: center; }
.block-intro__title { font-weight: 400; }

/* ---- Cards (hotbox_section): white cards with a soft border; a photo in the
   icon slot becomes the card image (service cards on Home) ---- */
.hotbox { background: var(--ss-white); border: 1px solid var(--color-line); border-radius: var(--radius-s); box-shadow: 0 10px 30px rgba(29, 40, 75, 0.06); }
[data-theme-section="tint"] .hotbox { border-color: transparent; }
.hotbox__title { font-family: var(--font-heading); font-weight: 400; }
.hotbox__text { color: var(--color-ink-soft); }
.hotbox__icon { width: calc(100% + 2 * var(--gap-l)); margin: calc(-1 * var(--gap-l)) calc(-1 * var(--gap-l)) var(--gap-s); }
.hotbox__icon img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-s) var(--radius-s) 0 0; }
.hotbox__icon:has(img[src*="colour"]) { width: 4.5em; margin: 0 0 var(--gap-xs); }
.hotbox__icon img[src*="colour"] { aspect-ratio: 1; border-radius: 50%; }
.hotbox__link .underline-link { font-family: var(--font-ui); font-weight: 600; color: var(--ss-blue); }

/* ---- Home "What we do" (#what-we-do): photo tiles with a white text card
   inset at the bottom and a yellow arrow; the whole tile is the link. The
   block title reads as the eyebrow, the intro line as the heading, and the
   quote button sits top right. ---- */
#what-we-do .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3em; }
#what-we-do .block-intro { grid-column: 1; text-align: left; align-items: flex-start; margin: 0; max-width: 42em; }
#what-we-do .block-intro__title {
  font-family: var(--font-ui); font-weight: 600; font-size: var(--text-s); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ss-blue);
}
#what-we-do .block-intro__text p { margin: 0; font-family: var(--font-heading); font-size: calc(var(--text-xl) * 1.15); line-height: 1.12; color: var(--ss-navy); }
/* 1200px up: the intro line stays on one line beside the button, scaling with
   the column (cqi) and capped at its normal size. */
@media (min-width: 1200px) {
  #what-we-do .block-intro { max-width: none; width: 100%; }
  #what-we-do .block-intro__text { container-type: inline-size; width: 100%; max-width: none; }
  #what-we-do .block-intro__text p { font-size: min(calc(var(--text-xl) * 1.15), 3.7cqi); white-space: nowrap; }
}
/* Home About section: photo no taller than 700px (About page keeps its full height). */
.home .intro-split__media img { max-height: 700px; object-position: left center; }
#what-we-do .hotboxes__buttons { grid-column: 2; grid-row: 1; margin: 0; }
#what-we-do .hotboxes__cols { grid-column: 1 / -1; }

#what-we-do .hotbox {
  position: relative; display: grid; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius-m); box-shadow: none;
  min-height: 36em;
  grid-template-columns: 1em 1.5em minmax(0, 1fr) auto 1.5em 1em;
  grid-template-rows: minmax(0, 1fr) 1.5em auto auto 1.5em 1em;
}
#what-we-do .hotbox__icon { grid-area: 1 / 1 / -1 / -1; width: auto; margin: 0; }
#what-we-do .hotbox__icon img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; transition: transform 0.8s var(--cubic-default); }
#what-we-do .hotbox::after { content: ""; grid-area: 2 / 2 / 6 / 6; border-radius: var(--radius-s); background: var(--ss-white); }
/* Grid items take z-index while static: the link stays static so its stretched
   ::after covers the whole tile, not just the arrow. */
#what-we-do .hotbox__icon, #what-we-do .hotbox::after { z-index: 0; }
#what-we-do .hotbox__title, #what-we-do .hotbox__text, #what-we-do .hotbox__link { z-index: 1; }
#what-we-do .hotbox__title { grid-area: 3 / 3; align-self: center; font-size: var(--text-l); color: var(--ss-navy); }
#what-we-do .hotbox__text { grid-area: 4 / 3 / 5 / 5; margin-top: 0.6em; }
#what-we-do .hotbox__link { grid-area: 3 / 4; margin: 0 0 0 1em; padding: 0; }
#what-we-do .hotbox__link a {
  position: static; display: block; width: 2.75em; height: 2.75em; border-radius: 50%;
  overflow: hidden; white-space: nowrap; text-indent: 110%;
  background: var(--ss-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d284b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 42% no-repeat;
  transition: background-position 0.3s;
}
#what-we-do .hotbox__link a::before { display: none; }
#what-we-do .hotbox__link a::after { content: ""; position: absolute; inset: 0; z-index: 2; width: auto; height: auto; background: none; transform: none; }
@media (hover: hover) and (pointer: fine) {
  #what-we-do .hotbox:hover .hotbox__icon img { transform: scale(1.04); }
  #what-we-do .hotbox:hover .hotbox__link a { background-position: 62% center; }
}
#what-we-do .hotbox:has(a:focus-visible) { outline: 2px solid var(--ss-blue); outline-offset: 3px; }
@media (max-width: 991px) {
  #what-we-do .container { grid-template-columns: minmax(0, 1fr); gap: 2em; }
  #what-we-do .hotboxes__buttons { grid-column: 1; grid-row: 2; }
  #what-we-do .hotboxes__cols { grid-row: 3; }
  #what-we-do .hotbox { min-height: 28em; }
}

/* ---- Trust strip (figure_row, dark): the sun mark above the title ---- */
.section_figures { text-align: center; }
.section_figures[data-theme-section="dark"] .figures__title::before {
  content: ""; display: block; width: 5.5em; height: 5.5em; margin: 0 auto 1.5em;
  background: url('../img/solaswim/sun-mark.svg') center / contain no-repeat;
}
.figure { border-top-color: var(--color-line); }
.figure__number { font-family: var(--font-heading); color: var(--ss-yellow); }

/* ---- Stacking cards (split, flat): white cards on tint, light headings,
   body-size lists with a yellow tick ---- */
.card-stack__title { font-weight: 400; color: var(--ss-navy); }
.card-stack.is--split .card-stack__title { font-size: var(--text-xl); font-weight: 400; letter-spacing: 0; line-height: 1.12; }
.card-stack.is--split .card-stack__text { font-size: var(--text-body); max-width: 46ch; }
.card-stack__list { gap: 0.75em; font-size: var(--text-body); color: var(--ss-ink); }
.card-stack__list li::before {
  content: ""; flex: none; width: 1.3em; height: 1.3em; border-radius: 50%; transform: translateY(0.22em);
  background: var(--ss-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d284b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.card-stack.is--split .card-stack__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); }
.card-stack__link { font-family: var(--font-ui); font-weight: 600; color: var(--ss-blue); }
[data-theme-section="tint"] .card-stack.is--flat .card-stack__inner { --card-bg: var(--ss-white); border-color: transparent; }
/* The block drops the photo on one column; Sola Swim keeps it, above the copy. */
@media (max-width: 991px) {
  .card-stack.is--split .card-stack__item.has--media .card-stack__media { display: block; order: -1; height: auto; }
  .card-stack.is--split .card-stack__media img { aspect-ratio: 16 / 10; }
}

/* ---- Sticky steps: heading weight and colour in line with the rest ---- */
.sticky-steps__eyebrow { color: var(--ss-blue); }
.sticky-steps__h2 { font-weight: 400; font-size: min(3.75em, 12vw); line-height: 1.02; letter-spacing: -0.02em; color: var(--ss-navy); }
.sticky-steps__p { opacity: 1; color: var(--color-ink-soft); font-size: var(--text-body); }

/* ---- Figures: sentences at body size ---- */
.figure__body { font-size: var(--text-body); }

/* ---- Collector colours (#colours): a row of six chips, ribbed like a collector ---- */
#colours .hotboxes__cols { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25em; }
#colours .hotbox { padding: 0; gap: 0.75em; background: none; border: 0; box-shadow: none; align-items: stretch; }
#colours .hotbox__icon, #colours .hotbox__icon:has(img[src*="colour"]) {
  position: relative; width: 100%; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-m);
  box-shadow: 0 10px 24px rgba(29, 40, 75, 0.12);
}
#colours .hotbox__icon img[src*="colour"] { width: 100%; height: 100%; border-radius: 0; transform: scale(1.5); }
#colours .hotbox__icon::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 7px),
              linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 45%, rgba(0, 0, 0, 0.18));
}
#colours .hotbox__title { font-family: var(--font-ui); font-weight: 600; font-size: var(--text-m); text-align: center; }
@media (max-width: 991px) { #colours .hotboxes__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { #colours .hotboxes__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } #colours .hotboxes__cols > .dc-col { grid-column: auto; } }

/* ---- Recent installs slider + supplier logo marquee ---- */
.section_image-slider .dc-slider__slide-inner img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); }
.section_image-slider.is-marquee .dc-marquee__item img { height: 4.5em; width: auto; object-fit: contain; }

/* ---- Projects grid ---- */
.image-block__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); }

/* ---- Testimonial ---- */
.section_testimonial + .section_testimonial { padding-top: var(--padding-xs); }
.testimonial__quote { font-family: var(--font-heading); }

/* ---- Rich text tables (heat pump comparison, About pool list) ---- */
.rte table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: var(--text-s); }
.rte th, .rte td { text-align: left; padding: 0.75em 1em; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.rte thead th { background: var(--ss-navy); color: var(--ss-white); font-family: var(--font-ui); font-weight: 600; }
@media (max-width: 767px) { .rte table { display: block; overflow-x: auto; } }

/* ---- CTA band (dark) ---- */
.section_cta .cta__overlay { background: linear-gradient(180deg, rgba(29, 40, 75, 0.7), rgba(29, 40, 75, 0.85)); }

/* ---- Footer: navy, white logo, yellow headings ---- */
.footer { background: var(--ss-navy); }
.footer__dark { background: var(--ss-navy); }
.footer-widget .widget-title { font-family: var(--font-ui); color: var(--ss-yellow); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--text-s); }
.footer-widget a { color: var(--n-300); }
.footer-widget a:hover { color: var(--ss-yellow); }
.footer-widget .footer-logo { width: 11em; height: auto; margin-bottom: 1em; }
.footer-widget .footer-badge { width: 9em; height: auto; background: var(--ss-white); border-radius: var(--radius-s); padding: 0.5em; }
.footer-widget address { font-style: normal; line-height: 1.7; }
.footer-bottom-inner .left { display: flex; flex-wrap: wrap; gap: 1em; align-items: center; }
.footer-bottom-inner .left p { margin: 0; }

/* ---- Rich text: brand-coloured list dots ---- */
:where(.rte) ul > li::before { background-color: var(--ss-blue); }

/* ---- Figures on a light or tint section: blue numbers (yellow is for dark) ---- */
.section_figures:not([data-theme-section="dark"]) .figure__number { color: var(--ss-blue); }
.section_figures:not([data-theme-section="dark"]) .figure { border-top-color: var(--color-line); }
.figures__title small { display: block; margin-top: 0.5em; font-family: var(--font-ui); font-size: var(--text-body); color: var(--color-ink-soft); letter-spacing: 0; }
.section_figures:not([data-theme-section="dark"]) .figures__cols { row-gap: var(--space-m); }

/* ---- About #installations and Projects #commercial: list in columns beside a card ---- */
:is(#installations, #commercial) .text-block__items { max-width: none; display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-l); align-items: start; margin-top: var(--space-s); }
:is(#installations, #commercial) .text-block__prose + .text-block__prose { margin-top: 0; }
:is(#installations, #commercial) .text-block__prose:first-child ul { display: block; columns: 2; column-gap: var(--gap-l); }
:is(#installations, #commercial) .text-block__prose:first-child li { break-inside: avoid; margin-bottom: 0.6em; }
:is(#installations, #commercial) .text-block__prose:last-child { padding: var(--gap-l); border-radius: var(--radius-m); background: var(--ss-navy-soft); }
/* Navy band (2026-11-09): the client list reads as a wall of names. */
:is(#installations, #commercial) .text-block__prose:first-child li { font-family: var(--font-heading); font-size: 1.2em; line-height: 1.3; }
:is(#installations, #commercial) .rte ul > li::before { background-color: var(--ss-yellow); }
:is(#installations, #commercial) .text-block__prose > h3 { color: var(--ss-yellow); }
:is(#installations, #commercial) .text-block__prose > h3 { font-size: var(--text-l); line-height: 1.2; }
@media (max-width: 767px) {
  :is(#installations, #commercial) .text-block__items { grid-template-columns: 1fr; }
  :is(#installations, #commercial) .text-block__prose:first-child ul { columns: 1; }
}

/* ---- About: Meet Dave review, SPASA band ---- */
#meet-dave blockquote { margin-top: var(--gap-m, 1.5em); font-family: var(--font-heading); font-weight: 400; font-size: var(--text-l); }
#meet-dave blockquote cite { display: block; margin-top: 1em; font-family: var(--font-ui); font-size: var(--text-s); font-style: normal; font-weight: 600; color: var(--color-ink-soft); }
#industry .image-text__cols { grid-template-columns: minmax(10em, 16em) 1fr; }
#industry .image-text__media img { border-radius: 0; }
@media (max-width: 767px) { #industry .image-text__cols { grid-template-columns: 1fr; } #industry .image-text__media { max-width: 12em; } }
@media (max-width: 767px) {
  .section_figures[data-theme-section="light"] .figures__cols { grid-template-columns: 1fr 1fr; }
  .section_figures[data-theme-section="light"] .figures__cols > .dc-col { grid-column: auto; }
}

/* ---- Servicing "Is your solar pool heating doing this?" (#symptoms): the
   symptom list as a numbered navy grid, the page's signature moment. ---- */
#symptoms .block-intro { max-width: 46em; }
#symptoms .block-intro__title { font-size: calc(var(--text-xl) * 1.3); line-height: 1.05; }
#symptoms .text-block__items { margin-top: 3.5em; max-width: none; }
#symptoms .text-block__prose > ul { max-width: none; }
#symptoms .rte ul {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0;
  background: var(--color-line); border: 1px solid var(--color-line); border-radius: var(--radius-m); overflow: hidden;
  counter-reset: symptom;
}
#symptoms .rte ul > li {
  counter-increment: symptom; margin: 0; padding: 2em 1.75em 2.25em; min-height: 10.5em;
  display: flex; flex-direction: column; gap: 1.5em;
  background: var(--ss-navy); color: var(--ss-white); font-size: 1.1em; line-height: 1.4;
  transition: background-color 0.4s var(--cubic-default);
}
#symptoms .rte ul > li::before {
  content: counter(symptom, decimal-leading-zero); position: static; width: auto; height: auto; border-radius: 0; background: none;
  font-family: var(--font-heading); font-size: 2.6em; line-height: 1; color: var(--ss-yellow);
}
@media (hover: hover) and (pointer: fine) { #symptoms .rte ul > li:hover { background: var(--ss-navy-soft); } }
@media (max-width: 991px) { #symptoms .rte ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } #symptoms .rte ul > li { min-height: 0; } }
@media (max-width: 479px) { #symptoms .rte ul > li { padding: 1.5em 1.25em; gap: 1em; font-size: 1em; } #symptoms .rte ul > li::before { font-size: 2.1em; } }

/* Reviews: no initials bullets under the slider (11 reviews makes a long row). */
.section_testimonial-slider .centered-slider-content { display: none; }

/* Heat pump brands: two wide tiles, each official white logo on its brand navy,
   sized by height so both marks carry the same weight. */
.section_client-tiles .client-tile__plate { aspect-ratio: 3 / 1; border-radius: var(--radius-m); }
.section_client-tiles .client-tile__logo { width: auto; height: 44%; max-width: 80%; max-height: none; }
.section_client-tiles .client-tile__wordmark { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.25rem); }
@media (max-width: 767px) { .section_client-tiles .client-tile__plate { aspect-ratio: 5 / 2; } }

/* Photo sliders: every slide at full strength (no faded inactive slides). */
.dc-slider [data-slider="slide"] { opacity: 1; }

/* Orphans: balance headings, keep the last line of body copy from ending on one
   word, and never break a button or nav action across lines. */
h1, h2, h3, h4, h5, h6,
.hero__title, .block-intro__title, .intro-split__title, .contact-band__title, .quote-form__title { text-wrap: balance; }
p, li, dd, blockquote, figcaption, .hero__text, .figure__body { text-wrap: pretty; }
.mega-nav__bar-action, .mega-nav__bar-action a, .btn, .button, .gform_button, .topbar__link { white-space: nowrap; }
.hero__label, label, .gform-field-label { text-wrap: balance; }
.mega-nav__bar-link { white-space: nowrap; }

/* Installations: name, then the town on its own smaller line. */
:is(#installations, #commercial) ul.places > li { line-height: 1.3; margin-bottom: 0.9em; }
:is(#installations, #commercial) ul.places > li > span { display: block; font-size: 0.8em; opacity: 0.7; }

/* Step headings: a little smaller so short titles fit in two lines, not three. */
.sticky-steps__h2 { font-size: min(3.25em, 11vw); }

/* Home service tiles: titles on one line at tablet widths. */
@media (min-width: 992px) and (max-width: 1199px) { #what-we-do .hotbox__title { font-size: var(--text-m); } }

/* Figures: two by two below desktop, so the sentences get room. */
@media (min-width: 480px) and (max-width: 991px) {
  .section_figures .figures__cols { grid-template-columns: 1fr 1fr; }
  .section_figures .figures__cols > .dc-col { grid-column: auto; }
}

/* Narrow desktop: drop the header phone pill (the top bar shows the number) so Get a Quote fits. */
@media (min-width: 992px) and (max-width: 1099px) { .mega-nav__bar-action:has(.is--secondary) { display: none; } }

/* Home service tiles: one per row below desktop (three were too narrow at tablet width). */
@media (max-width: 991px) {
  #what-we-do .hotboxes__cols { grid-template-columns: minmax(0, 1fr); }
  #what-we-do .hotboxes__cols > .dc-col { grid-column: auto; }
  #what-we-do .hotbox { min-height: 24em; }
}

/* Home hero (family stock photo): crop from the top so the faces sit below the heading. */
body.home .hero__bg img { object-position: center 60%; }
/* About hero (river roof photo): crop low so the river and collectors show, not sky. */
body.page-about .hero__bg img { object-position: center 70%; }
