/* Digital Help Desk — "Purple & Paper"
   Single stylesheet, no preprocessor, no build step.

   Brand: rich purple (#72337F) with a fresh green (#65BC7B) secondary, carried
   over from the existing digitalhelpdesk.scot identity, on a cool near-white
   base. Curved, weighty, warm — but held to a premium editorial standard with
   Source Serif display type. Real token system throughout. */

/* ─── Tokens ─────────────────────────────────────────────── */

:root {
  /* base — cool near-white, a hair of lavender so it sits with purple */
  --c-paper:       #FCFBFD;
  --c-paper-deep:  #F4EFF8;
  --c-ink:         #211528;   /* dark aubergine — warmer, weightier than neutral black */
  --c-muted:       #6C6474;

  /* brand purple */
  --c-purple:      #72337F;
  --c-purple-deep: #4A1C58;   /* weighty bands, footer */
  --c-purple-dark: #35123F;   /* deepest, gradient anchor */
  --c-purple-bright: #8B3F9C; /* hover */
  --c-lav:         #EAD9F3;   /* lavender tint — icon fields */
  --c-lav-line:    #E2D3EC;

  /* fresh green secondary */
  --c-green:       #3E9E5E;   /* accessible on white for text/marks */
  --c-green-bright: #65BC7B;  /* brand green — fills, dots on dark */

  --c-line:        rgba(33, 21, 40, 0.10);
  --c-line-strong: rgba(33, 21, 40, 0.20);

  /* type */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:  "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --t-display: clamp(40px, 6vw, 78px);
  --t-h1:      clamp(33px, 4.6vw, 56px);
  --t-h2:      clamp(28px, 3.4vw, 42px);
  --t-h3:      23px;
  --t-body:    18px;
  --t-small:   15px;
  --t-eyebrow: 12px;

  --lh-tight: 1.05;
  --lh-body:  1.75;
  --ls-tight: -0.026em;

  /* space */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 40px;
  --s-5: 64px; --s-6: 96px; --s-7: 140px;
  --s-flow: 32px;   /* gap between stacked paragraphs / prose blocks */

  /* radius — deliberately generous, this brand is round */
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-xl: 44px; --r-pill: 999px;

  /* shadow — tinted purple, softer + weightier than a neutral grey */
  --sh-card: 0 4px 14px rgba(74, 28, 88, 0.06), 0 22px 50px rgba(74, 28, 88, 0.12);
  --sh-lift: 0 2px 6px rgba(74, 28, 88, 0.10), 0 18px 40px rgba(74, 28, 88, 0.20);
  --sh-btn:  0 12px 26px rgba(114, 51, 127, 0.34);

  --ease-out:  cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-wipe: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1240px;
  --gutter:    32px;
  /* Header logo height. Studio -> Design overrides --logo-h in an inline
     block; the header grows with it, and 58 + 34 = 92 keeps the original
     geometry exactly when nothing has been changed. */
  --logo-h:    48px;
  --header-h:  max(92px, calc(var(--logo-h, 48px) + 34px));
}

/* Breakpoints used literally (custom props can't go in media queries):
   1100 · 820 · 600 · 420                                                    */

/* ─── Fonts ──────────────────────────────────────────────── */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ─── Base ───────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-serif);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-weight: 600;               /* heavier than before — more oomph */
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
  margin: 0 0 var(--s-3);
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.015em; }
p { margin: 0 0 var(--s-flow); }

:focus-visible { outline: 2px solid var(--c-purple); outline-offset: 3px; border-radius: var(--r-sm); }

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

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

/* ─── Shared devices ─────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-sans); font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 2.2px; text-transform: uppercase; color: var(--c-purple);
  margin: 0 0 var(--s-2);
}
.section--deep .eyebrow { color: var(--c-green-bright); }

/* the accent full-stop — brand purple */
.dot { color: var(--c-purple); font-size: 1.35em; line-height: 0; }
.section--deep .dot { color: var(--c-green-bright); }

/* pill-rounded accent rule */
.rule { width: 54px; height: 5px; border-radius: 999px; background: var(--c-purple); margin: 0 0 var(--s-3); }
.section--deep .rule { background: var(--c-green-bright); }

/* organic decorative blob */
.blob { position: absolute; border-radius: 42% 58% 63% 37% / 45% 42% 58% 55%; filter: blur(2px); opacity: 0.5; z-index: 0; pointer-events: none; }

/* wave divider — full-bleed SVG placed at a section edge */
.wave { line-height: 0; position: relative; z-index: 1; }
.wave svg { width: 100%; height: clamp(48px, 6vw, 90px); display: block; }
.wave--flip svg { transform: scaleY(-1); }
/* As a section divider, overlay the section's TRUE top/bottom edge — above its
   padding — so no flat band of the section colour shows above/below the wave. */
.section > .wave--flip { position: absolute; top: -1px; left: 0; right: 0; }
.section > .wave:not(.wave--flip) { position: absolute; bottom: -1px; left: 0; right: 0; }

/* ─── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  line-height: 1; padding: 16px 30px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background 0.2s ease, color 0.2s ease,
              box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn__arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--c-purple); color: #fff; box-shadow: var(--sh-btn); }
.btn--primary:hover { background: var(--c-purple-bright); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--c-purple); border-color: var(--c-line-strong); }
.btn--ghost:hover { border-color: var(--c-purple); transform: translateY(-2px); }

.btn--on-dark { background: #fff; color: var(--c-purple); }
.btn--on-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--c-purple); text-decoration: none;
}
.link-arrow svg { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--deep .link-arrow { color: var(--c-green-bright); }

/* ─── Header ─────────────────────────────────────────────── */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(252, 251, 253, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, height 0.25s ease;
}
.site-header--scrolled { border-bottom-color: var(--c-line); }
body.has-hero .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.has-hero .site-header--scrolled {
  background: rgba(252, 251, 253, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: var(--logo-h, 48px); width: auto; display: block; }
/* .brand + descendant class beats `.brand img`, so the hide actually applies */
.brand .brand__logo--light { display: none; }

/* Over a dark image page-hero: transparent header, white logo + nav, until scroll. */
body.has-dark-hero .site-header:not(.site-header--scrolled) {
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent;
}
body.has-dark-hero .site-header:not(.site-header--scrolled) .brand__logo--dark { display: none; }
body.has-dark-hero .site-header:not(.site-header--scrolled) .brand__logo--light { display: block; }
body.has-dark-hero .site-header:not(.site-header--scrolled) .header-social a { color: #fff; }
body.has-dark-hero .site-header:not(.site-header--scrolled) .nav-toggle { color: #fff; }

/* ── Header social row (social-first, like Rene works) ── */
.header-social {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(14px, 2vw, 26px);
}
.header-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; color: var(--c-ink); opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}
.header-social a:hover { opacity: 1; color: var(--c-purple); transform: translateY(-2px); }
.header-social svg { width: 19px; height: 19px; }
@media (max-width: 700px) { .header-social { display: none; } } /* icons live in the menu + footer on phones */

/* ── Burger: always visible; morphs to an X while the menu is open ── */
.nav-toggle {
  position: relative; z-index: 130; /* stays clickable above the open menu */
  display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: var(--c-purple);
}
.nav-toggle span {
  display: block; width: 26px; height: 2.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
}
body.nav-open .nav-toggle { color: #fff; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* While the menu is open, the whole header rides above it (so the X stays
   clickable) and goes white-on-purple. */
body.nav-open .site-header,
body.nav-open .site-header.site-header--scrolled {
  z-index: 130; background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent;
}
body.nav-open .site-header .brand__logo--dark { display: none; }
body.nav-open .site-header .brand .brand__logo--light { display: block; }
body.nav-open .site-header .header-social a { color: #fff; }
body.nav-open .site-header .header-social a:hover { color: var(--c-green-bright); }

/* ── Header action cluster: social · search · CTA · burger ── */
.site-header__actions { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); }

.header-search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1.5px solid var(--c-line-strong); color: var(--c-ink);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out);
}
.header-search-toggle:hover { color: #fff; background: var(--c-purple); border-color: var(--c-purple); transform: translateY(-2px); }

/* The header CTA — a touch tighter than a body button so it sits well in the bar. */
.header-cta { padding: 12px 24px; font-size: 14.5px; box-shadow: 0 10px 24px rgba(114, 51, 127, 0.32); }
.header-cta .btn__arrow { font-size: 1.05em; }

/* Over a dark image hero (and the transparent home header): white outline icon. */
body.has-dark-hero .site-header:not(.site-header--scrolled) .header-search-toggle { color: #fff; border-color: rgba(255,255,255,0.5); }
body.has-dark-hero .site-header:not(.site-header--scrolled) .header-search-toggle:hover { background: #fff; color: var(--c-purple); border-color: #fff; }

/* When the menu is open, the header's CTA + search collapse (the menu carries
   its own search field and Get-help link) — kept in the layout via visibility
   so the burger doesn't jump. */
body.nav-open .header-cta,
body.nav-open .header-search-toggle { opacity: 0; visibility: hidden; pointer-events: none; }

@media (max-width: 600px) {
  .site-header__actions { gap: 8px; }
  .header-search-toggle { width: 40px; height: 40px; }
  .header-cta { padding: 11px 16px; font-size: 13.5px; }
  .header-cta .btn__arrow { display: none; }
}

/* ── Live search overlay ─────────────────────────────────── */
.site-search {
  position: fixed; inset: 0; z-index: 140;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.site-search.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
body.search-open { overflow: hidden; }
.site-search__backdrop {
  position: absolute; inset: 0; background: rgba(35, 18, 45, 0.62);
  -webkit-backdrop-filter: blur(8px) saturate(140%); backdrop-filter: blur(8px) saturate(140%);
}
.site-search__panel {
  position: relative; margin: 13vh auto 0; width: min(720px, 92vw);
  background: var(--c-paper, #fff); border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(20, 8, 26, 0.5);
  transform: translateY(-24px) scale(0.985); transition: transform 0.32s var(--ease-out);
}
.site-search.is-open .site-search__panel { transform: none; }

.site-search__form {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px; border-bottom: 1px solid var(--c-line);
}
.site-search__icon { color: var(--c-purple); flex: 0 0 auto; }
.site-search__input {
  flex: 1 1 auto; min-width: 0; border: 0; background: none; outline: none;
  font-family: var(--font-serif); font-size: clamp(20px, 3.4vw, 27px); color: var(--c-ink);
}
.site-search__input::placeholder { color: var(--c-muted); opacity: 0.7; }
.site-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.site-search__close {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--c-wash, #f2edf4); color: var(--c-muted); font-size: 24px; line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}
.site-search__close:hover { background: var(--c-purple); color: #fff; }

.site-search__results { max-height: min(56vh, 520px); overflow-y: auto; padding: 8px; }
.site-search__hint { padding: 26px 22px; color: var(--c-muted); font-size: 15px; text-align: center; }
.site-search__result {
  display: block; text-decoration: none; color: inherit;
  padding: 15px 16px; border-radius: 13px;
  transition: background 0.15s ease, transform 0.15s var(--ease-out);
}
.site-search__result:hover,
.site-search__result:focus-visible,
.site-search__result.is-active { background: var(--c-wash, #f5f0f7); outline: none; }
.site-search__result-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.site-search__result-title { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--c-ink); }
.site-search__result:hover .site-search__result-title { color: var(--c-purple); }
.site-search__badge {
  flex: 0 0 auto; font-family: var(--font-sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--c-green-dark, #2f7d45);
  background: rgba(101, 188, 123, 0.16); padding: 3px 9px; border-radius: 999px;
}
.site-search__result-excerpt { margin: 5px 0 0; font-size: 14px; line-height: 1.5; color: var(--c-muted); }
.site-search__result mark { background: rgba(101, 188, 123, 0.34); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Menu search field (phones + anyone using the overlay from the menu) */
.site-menu__search {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  margin-bottom: var(--s-3); padding: 15px 20px; width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill); color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-sans); font-size: 16px; text-align: left;
  opacity: 0; transform: translateY(28px);
}
body.nav-open .site-menu__search {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease, transform 0.55s var(--ease-out), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  transition-delay: calc(0.12s + var(--i, 0) * 0.06s);
}
.site-menu__search:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--c-green-bright); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .site-search, .site-search__panel { transition: none; }
  .site-menu__search { opacity: 1; transform: none; }
}

/* ─── Full-screen menu (the wow) ─────────────────────────── */
.site-menu {
  position: fixed; inset: 0; z-index: 120;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(101, 188, 123, 0.16), transparent 60%),
    radial-gradient(700px 700px at -10% 110%, rgba(139, 63, 156, 0.35), transparent 60%),
    linear-gradient(150deg, var(--c-deep, #35123F) 0%, #4A1C58 100%);
  color: #fff; overflow: hidden auto;
  visibility: hidden; pointer-events: none;
  clip-path: circle(0px at calc(100% - 44px) 40px);
  transition: clip-path 0.65s var(--ease-out), visibility 0s linear 0.65s;
}
body.nav-open .site-menu {
  visibility: visible; pointer-events: auto;
  clip-path: circle(160% at calc(100% - 44px) 40px);
  transition: clip-path 0.65s var(--ease-out);
}
body.nav-open { overflow: hidden; }

.site-menu__blob-1 {
  width: 44vw; height: 44vw; max-width: 560px; max-height: 560px; top: -14%; right: -10%;
  background: radial-gradient(circle at 35% 35%, rgba(101, 188, 123, 0.5), rgba(101, 188, 123, 0.12) 70%);
  animation: menu-drift 16s ease-in-out infinite alternate;
}
.site-menu__blob-2 {
  width: 34vw; height: 34vw; max-width: 430px; max-height: 430px; bottom: -12%; left: -8%;
  background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 70%);
  animation: menu-drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes menu-drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(-4%, 5%, 0) rotate(10deg); }
}

.site-menu__inner {
  position: relative; z-index: 1; min-height: 100%;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6);
  align-items: center; padding-top: calc(var(--header-h) + var(--s-4)); padding-bottom: var(--s-6);
}

/* Left: the big editorial links, staggered in */
.site-menu__nav { display: flex; flex-direction: column; gap: clamp(6px, 1.6vh, 18px); }
.site-menu__link {
  display: flex; align-items: baseline; gap: 18px; width: fit-content;
  text-decoration: none; color: #fff;
  opacity: 0; transform: translateY(28px);
}
body.nav-open .site-menu__link {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease, transform 0.55s var(--ease-out);
  transition-delay: calc(0.18s + var(--i) * 0.06s);
}
.site-menu__num {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--c-green-bright); min-width: 2ch;
}
.site-menu__label {
  font-family: var(--font-serif); font-weight: 500; line-height: 1.08;
  font-size: clamp(34px, 6vh, 58px); letter-spacing: -0.02em;
  position: relative; transition: color 0.2s ease;
}
.site-menu__label::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 3px; width: 0;
  background: var(--c-green-bright); border-radius: 2px; transition: width 0.3s var(--ease-out);
}
.site-menu__link:hover .site-menu__label::after { width: 100%; }
.site-menu__link:hover .site-menu__label { color: #E9DDF0; }
.site-menu__dot { color: var(--c-green-bright); }
.site-menu__link--cta .site-menu__label { color: var(--c-green-bright); }
.site-menu__link--cta:hover .site-menu__label { color: #7ED496; }

/* Right: contact + address + social */
.site-menu__aside {
  display: flex; flex-direction: column; gap: var(--s-4);
  border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: var(--s-5);
}
.site-menu__group { opacity: 0; transform: translateY(22px); }
body.nav-open .site-menu__group {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease, transform 0.55s var(--ease-out);
  transition-delay: calc(0.3s + var(--i) * 0.08s);
}
.site-menu__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--c-green-bright); margin: 0 0 10px;
}
.site-menu__contact {
  display: block; font-family: var(--font-serif); font-size: clamp(19px, 2.2vh, 24px);
  color: #fff; text-decoration: none; margin: 0 0 6px; width: fit-content;
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease;
}
.site-menu__contact:hover { border-bottom-color: var(--c-green-bright); }
.site-menu__address { font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.82); margin: 0; }

.site-menu__social {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.site-menu__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out), color 0.2s ease;
}
.site-menu__social a:hover {
  background: var(--c-green-bright); border-color: var(--c-green-bright); color: #24102B; transform: translateY(-3px);
}
.site-menu__social svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .site-menu__inner { grid-template-columns: 1fr; gap: var(--s-4); align-items: start; }
  .site-menu__aside { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: var(--s-4); }
  .site-menu__label { font-size: clamp(30px, 4.6vh, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu { clip-path: none; opacity: 0; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
  body.nav-open .site-menu { opacity: 1; transition: opacity 0.25s ease; }
  .site-menu__link, .site-menu__group { transition: none; }
  .site-menu__blob-1, .site-menu__blob-2 { animation: none; }
}

/* ─── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative; min-height: 100svh; min-height: 100dvh;
  display: flex; align-items: center; overflow: hidden; background: var(--c-paper);
}
.hero__blob-1 { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; top: -12%; right: -8%;
  background: radial-gradient(circle at 30% 30%, var(--c-lav), rgba(234,217,243,0)); }
.hero__blob-2 { width: 30vw; height: 30vw; max-width: 380px; max-height: 380px; bottom: -6%; left: 8%;
  background: radial-gradient(circle at 50% 50%, rgba(101,188,123,0.28), rgba(101,188,123,0)); }

.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; z-index: 0; transition: opacity 1600ms ease-in-out; will-change: opacity; }
.hero__slide.is-under { opacity: 1; z-index: 1; transition: none; }
.hero__slide.is-active { opacity: 1; z-index: 2; }
.hero__slide picture, .hero__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active img { animation: kb-in 9200ms linear both; }
.hero__slide.is-active[data-dir="out"] img { animation-name: kb-out; }

@keyframes kb-in { from { transform: scale(1.00) translate3d(0,0,0); } to { transform: scale(1.13) translate3d(var(--kb-x,-2%), var(--kb-y,-1.5%), 0); } }
@keyframes kb-out { from { transform: scale(1.13) translate3d(var(--kb-x,2%), var(--kb-y,-2%), 0); } to { transform: scale(1.00) translate3d(0,0,0); } }

/* light purple-tinted scrim, not a dark overlay */
.hero__scrim {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(252,251,253,.72) 0%, rgba(252,251,253,0) 130px),
    linear-gradient(100deg, rgba(252,251,253,.98) 0%, rgba(252,251,253,.92) 30%,
                            rgba(252,251,253,.62) 50%, rgba(250,247,252,.2) 74%, rgba(252,251,253,0) 100%);
}
.hero__inner { position: relative; z-index: 4; width: 100%; }
.hero__content { max-width: min(60vw, 720px); padding: calc(var(--header-h) + var(--s-4)) 0 var(--s-6); transition: opacity 380ms ease; }
.hero__content.is-swapping { opacity: 0; }
.hero__title { font-size: var(--t-display); margin: 0 0 var(--s-3); }
.hero__lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--c-muted); max-width: 46ch; margin: 0 0 var(--s-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

/* slider controls — prev/next in the bottom-right corner */
.hero__controls { position: absolute; right: var(--gutter); bottom: 34px; z-index: 6; display: flex; gap: 12px; }
.hero__ctrl {
  width: 54px; height: 54px; border-radius: var(--r-pill);
  border: 1.5px solid rgba(114, 51, 127, 0.35);
  background: rgba(252, 251, 253, 0.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--c-purple); display: grid; place-items: center; cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hero__ctrl:hover { background: var(--c-purple); color: #fff; border-color: var(--c-purple); transform: translateY(-2px); }
.hero__ctrl:active { transform: translateY(0); }

/* autoplay progress bar — purple, along the very bottom of the hero */
.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; z-index: 6; background: rgba(114, 51, 127, 0.16); }
.hero__progress-bar { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center; background: var(--c-purple); }

@media (max-width: 600px) {
  .hero__controls { bottom: 26px; gap: 10px; }
  .hero__ctrl { width: 46px; height: 46px; }
}

/* ─── Section rhythm ─────────────────────────────────────── */

/* Vertical rhythm scales with the screen.
   140px is right on a wide monitor and absurd on a 390px phone, where it puts
   most of a screen's worth of nothing between every row — and a page built of
   rows multiplies that. Tapers to 64px by about 640px wide. (.article keeps its
   flat --s-7 bottom padding; same complaint, not touched here.) */
.section { position: relative; padding: clamp(64px, 10vw, 140px) 0; }
.section--tight { padding: clamp(48px, 7vw, 96px) 0; }
.section--paper-deep { background: var(--c-paper-deep); }

/* the weighty band — rich purple gradient, replaces the old flat ink block */
.section--deep { background: linear-gradient(155deg, var(--c-purple) 0%, var(--c-purple-deep) 58%, var(--c-purple-dark) 100%); color: #fff; }
.section--deep .section__intro { color: rgba(255,255,255,0.78); }
.section--deep .section__title { color: #fff; }

.section__head { max-width: 660px; margin: 0 0 var(--s-5); position: relative; z-index: 1; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .rule { margin-inline: auto; }
.section__title { font-size: var(--t-h2); margin: 0 0 var(--s-2); }
.section__intro { font-size: clamp(18px, 1.4vw, 20px); color: var(--c-muted); margin: 0; }
/* Rich-text blocks (Studio-editable): the wrapper owns the outer margin */
.section__intro p:last-child, .split__body p:last-child, .cta-band__intro p:last-child { margin-bottom: 0; }

/* ─── Steps ──────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); position: relative; z-index: 1; }
.step { position: relative; padding: var(--s-4); background: var(--c-paper); border-radius: var(--r-lg); box-shadow: var(--sh-card); }
.step__n {
  /* Big enough for the two-line "Step 01" label to sit fully inside */
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 76px; height: 76px; text-align: center; line-height: 1.25;
  border-radius: 999px; background: var(--c-lav); color: var(--c-purple);
  font-family: var(--font-sans); font-size: 15px; font-weight: 700; margin-bottom: var(--s-3);
}
.step__title { font-size: var(--t-h3); margin: 0 0 var(--s-1); }
.step__body { color: var(--c-muted); margin: 0; font-size: var(--t-small); line-height: 1.7; }

/* ─── Pillars ────────────────────────────────────────────── */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.pillar {
  position: relative; background: var(--c-paper); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-4);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--sh-card); border-color: transparent; }
.pillar__icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: var(--s-3); border-radius: 16px; background: var(--c-lav); color: var(--c-purple); }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar__title { font-size: var(--t-h3); margin: 0 0 var(--s-1); }
.pillar__body { color: var(--c-muted); font-size: var(--t-small); line-height: 1.7; margin: 0; }
.pillar__title a { color: inherit; text-decoration: none; }
.pillar__title a::after { content: ""; position: absolute; inset: 0; }

/* ─── Stats ──────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); position: relative; z-index: 1; }
.stat { text-align: center; }
.stat__n { font-size: clamp(44px, 5.5vw, 66px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat__n .dot { color: var(--c-green-bright); }
/* A symbol suffix (%, +, k) at the full number size swamps the figure it is
   attached to — half size, nudged up off the baseline, reads as a suffix. */
.stat__n .dot--sym { font-size: 0.5em; vertical-align: 0.42em; letter-spacing: 0; margin-left: 0.14em; }
.stat__label { font-family: var(--font-sans); font-size: 14px; color: rgba(255,255,255,0.72); margin-top: var(--s-2); }

/* ─── Split ──────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-6); align-items: center; }
.split__media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-paper-deep); box-shadow: var(--sh-lift); }
/* the <picture> must fill the frame, else height:100% on the img resolves to
   auto and a short (landscape) photo leaves a gap of the panel showing through */
.split__media picture { display: block; width: 100%; height: 100%; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
/* a founder portrait, capped so it reads as a headshot rather than a wall */
.split--founder { align-items: center; }
.split__media--portrait { aspect-ratio: 4 / 5; max-width: 400px; }
.split__media--portrait img { object-position: 50% 22%; }
.split__title { font-size: var(--t-h2); margin: 0 0 var(--s-3); }
.split__body { color: var(--c-muted); margin: 0 0 var(--s-3); }
/* Paragraphs inside a split body keep the split's own 24px rhythm rather than
   the global 32px. Two templates used to write two sibling p.split__body at
   24px each and two used a single div of rich text, whose inner paragraphs took
   the global spacing — an 8px difference that survived About's migration as the
   one thing still 5px off. Every page renders from rows now, so there is one
   spelling left to be consistent with. */
.split__body p { margin-bottom: var(--s-3); }
.split__list { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: var(--s-2); }
.split__list li { position: relative; padding-left: 34px; font-size: var(--t-small); }
.split__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 999px;
  background: rgba(101,188,123,0.18);
}
.split__list li::after {
  content: ""; position: absolute; left: 7px; top: 8px; width: 9px; height: 5px;
  border-left: 2px solid var(--c-green); border-bottom: 2px solid var(--c-green); transform: rotate(-45deg);
}

/* ─── CTA band ───────────────────────────────────────────── */

.cta-band { text-align: center; position: relative; z-index: 1; }
.cta-band__title { font-size: var(--t-h2); margin: 0 0 var(--s-2); color: #fff; }
.cta-band__intro { color: rgba(255,255,255,0.8); max-width: 46ch; margin: 0 auto var(--s-4); }

/* ─── Footer ─────────────────────────────────────────────── */

.site-footer { background: var(--c-purple-dark); color: #fff; padding: var(--s-6) 0 var(--s-4); position: relative; overflow: hidden; }
/* Decorative tone-on-tone circles behind the content (inspired by tuminds.com
   footer) — a deliberate mix of solid discs and hollow rings. A ring is just a
   radial-gradient left transparent in the centre with a coloured band near the
   edge (e.g. transparent 0 95%, colour 95% 99%, transparent 100%). */
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    /* solid discs */
    radial-gradient(circle 240px at 3% 112%,  rgba(114,51,127,0.40) 0 99%, transparent 100%),
    radial-gradient(circle 85px  at 24% 26%,  rgba(114,51,127,0.26) 0 99%, transparent 100%),
    radial-gradient(circle 60px  at 8% 48%,   rgba(255,255,255,0.04) 0 99%, transparent 100%),
    radial-gradient(circle 80px  at 89% 82%,  rgba(139,63,156,0.18) 0 99%, transparent 100%),
    /* hollow rings — ~32px stroke, set with absolute px stops on the circle
       radius; kept very faint so they stay subliminal and never dominate */
    radial-gradient(circle 130px at 14% 78%,  transparent 0 96px,  rgba(216,190,228,0.10) 96px 128px,  transparent 130px),
    radial-gradient(circle 165px at 34% 120%, transparent 0 131px, rgba(216,190,228,0.08) 131px 163px, transparent 165px),
    radial-gradient(circle 135px at 95% 14%,  transparent 0 101px, rgba(255,255,255,0.06) 101px 133px, transparent 135px);
}
.site-footer > .container { position: relative; z-index: 1; }
.site-footer__top { display: flex; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-5); }
.site-footer .brand img { height: 44px; opacity: 0.96; margin-bottom: var(--s-2); }
.site-footer__mission { color: rgba(255,255,255,0.72); max-width: 32ch; margin: 0; }
.site-footer__social {
  list-style: none; margin: var(--s-3) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 9px;
}
.site-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out), color 0.2s ease;
}
.site-footer__social a:hover {
  background: var(--c-green-bright); border-color: var(--c-green-bright); color: #24102B; transform: translateY(-3px);
}
.site-footer__social svg { width: 17px; height: 17px; }
.site-footer__col-label { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; color: var(--c-green-bright); margin: 0 0 var(--s-2); }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: var(--t-small); font-family: var(--font-sans); }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; padding-top: var(--s-3); border-top: 1px solid rgba(255,255,255,0.16); font-family: var(--font-sans); font-size: 12px; color: rgba(255,255,255,0.55); }

/* ─── Motion off ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
  .hero__slide.is-active img, .hero__slide.is-active[data-dir="out"] img { animation: none; }
  .hero__content { transition: none; }
  .btn, .pillar, .link-arrow svg, .btn__arrow { transition: none; }
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; gap: var(--s-4); }
  .split__media { aspect-ratio: 16 / 9; }
  .split__media--portrait { aspect-ratio: 4 / 5; max-width: 320px; margin-inline: auto; }
}
@media (max-width: 820px) {
  /* Mobile composition: text sits at the TOP (under the header), and the
     photograph fills the lower half. Centring the content left the tall top
     half as washed-out dead space on phones.
     Height is deliberately NOT set here — the base rule's 100dvh makes the
     hero fill the screen. An override to 94dvh once left a ~50px band of the
     next section peeping under every phone hero. */
  .hero { align-items: flex-start; }
  .hero__content { max-width: none; padding: calc(var(--header-h) + 2svh) 0 var(--s-5); }
  .hero__scrim { background:
    linear-gradient(to bottom, rgba(252,251,253,.92) 0%, rgba(252,251,253,.86) 46%,
                               rgba(252,251,253,.45) 68%, rgba(252,251,253,.08) 100%); }
  /* Per-slide mobile focal point, set in Studio ("Mobile focus"): picks which
     part of the landscape photo survives the portrait cover-crop.
     50% 50% (the var's fallback) = the old centred behaviour. */
  .hero__slide img { object-position: var(--m-focal, 50% 50%); }
}
@media (max-width: 600px) {
  .steps, .pillars, .stats { grid-template-columns: 1fr; }
  .site-footer__top { flex-direction: column; gap: var(--s-4); }
}

/* ═══ Content pages ══════════════════════════════════════════
   Everything below supports the inner pages + blog: a page-hero header band,
   long-form prose, the blog card grid, pagination, and forms. */

/* ─── Page hero (inner-page header band) ─────────────────── */

.page-hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(320px, 44vh, 480px);
  padding: calc(var(--header-h) + var(--s-5)) 0 var(--s-6);
  background: var(--c-purple-dark); color: #fff;
}
.page-hero__img { position: absolute; inset: 0; z-index: 0; display: block; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(112deg, rgba(53,18,63,0.95) 0%, rgba(74,28,88,0.84) 46%, rgba(33,21,40,0.62) 100%),
    linear-gradient(to top, rgba(33,21,40,0.55) 0%, rgba(33,21,40,0) 42%);
}
.page-hero__inner { position: relative; z-index: 2; max-width: 780px; }
.page-hero .rule { background: var(--c-green-bright); }
.page-hero .eyebrow { color: var(--c-green-bright); }
.page-hero__title { font-size: var(--t-h1); margin: 0 0 var(--s-3); color: #fff; text-shadow: 0 1px 20px rgba(20,6,28,0.3); }
.page-hero__title .dot { color: var(--c-green-bright); }
.page-hero__intro { font-size: clamp(18px, 1.5vw, 21px); color: rgba(255,255,255,0.84); margin: 0; max-width: 46ch; }
.page-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }
.page-hero__wave svg { width: 100%; height: clamp(40px, 5vw, 72px); display: block; }

/* ─── Prose (the_content / article body) ─────────────────── */

.prose { max-width: 720px; font-size: var(--t-body); line-height: 1.75; color: var(--c-ink); }
.prose > * + * { margin-top: var(--s-flow); }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: var(--s-5); }
.prose h3 { font-size: var(--t-h3); margin-top: var(--s-4); }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--c-purple); }
.prose a { color: var(--c-purple); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--c-purple-bright); }
.prose strong { font-weight: 600; }
.prose img { border-radius: var(--r-lg); box-shadow: var(--sh-card); }
.prose blockquote {
  margin: var(--s-4) 0; padding: var(--s-2) 0 var(--s-2) var(--s-3);
  border-left: 4px solid var(--c-purple); border-radius: 2px;
  font-size: clamp(20px, 2vw, 24px); line-height: 1.5; color: var(--c-ink);
}
.prose blockquote p { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--c-line); margin: var(--s-5) 0; }
.prose figure { margin: var(--s-4) 0; }
.prose figcaption { font-family: var(--font-sans); font-size: 13px; color: var(--c-muted); margin-top: var(--s-1); }

/* ─── Blog card grid ─────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-paper); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-card); border-color: transparent; }
.card__media { aspect-ratio: 16 / 10; background: var(--c-paper-deep); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--s-3) var(--s-3) var(--s-4); display: flex; flex-direction: column; flex: 1; }
.card__meta { font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; color: var(--c-purple); margin-bottom: var(--s-1); }
.card__title { font-size: var(--t-h3); line-height: 1.25; margin: 0 0 var(--s-1); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__excerpt { color: var(--c-muted); font-size: var(--t-small); line-height: 1.7; margin: 0 0 var(--s-2); }
.card__more { margin-top: auto; font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--c-purple); }

/* a large lead card for the first/featured post */
.card--feature { grid-column: 1 / -1; flex-direction: row; }
.card--feature .card__media { flex: 0 0 52%; aspect-ratio: auto; }
.card--feature .card__body { justify-content: center; padding: var(--s-5); }
.card--feature .card__title { font-size: var(--t-h2); }
.card--feature .card__excerpt { font-size: var(--t-body); }

/* ─── Pagination ─────────────────────────────────────────── */

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: var(--s-6); }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: var(--r-pill); border: 1px solid var(--c-line-strong);
  font-family: var(--font-sans); font-size: 15px; color: var(--c-ink); text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pagination .page-numbers:hover { border-color: var(--c-purple); color: var(--c-purple); }
.pagination .page-numbers.current { background: var(--c-purple); color: #fff; border-color: var(--c-purple); }

/* ─── Article layout (single post) ───────────────────────── */

.article { padding: var(--s-6) 0 var(--s-7); }
.article__head { max-width: 760px; margin: 0 auto var(--s-5); text-align: center; }
.article__title { font-size: var(--t-h1); margin: var(--s-2) 0 var(--s-3); }
.article__meta { font-family: var(--font-sans); font-size: 14px; color: var(--c-muted); }
.article__media { max-width: 960px; margin: 0 auto var(--s-5); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lift); }
.article__media img { width: 100%; height: auto; display: block; }
.article .prose { margin-inline: auto; }
.article__bar { max-width: 720px; margin: 0 auto var(--s-4); display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.article__back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--c-purple); text-decoration: none; }
.article__back:hover { color: var(--c-purple-bright); }

/* ─── Forms ──────────────────────────────────────────────── */
/* The enquiry forms style themselves INLINE — see dhd_form_styles() in
   inc/form-render.php for why (a stale cached copy of this file repeatedly
   rendered them naked). Only the surrounding page layout lives here. */

/* two-column contact layout: form + reassurance aside */
.contact { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s-6); align-items: start; }
.contact__aside { background: var(--c-paper-deep); border-radius: var(--r-lg); padding: var(--s-4); }
.contact__aside h3 { font-size: var(--t-h3); margin: 0 0 var(--s-2); }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.contact__list li { position: relative; padding-left: 30px; font-size: var(--t-small); color: var(--c-muted); }
.contact__list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 999px; background: rgba(101,188,123,0.2); }
.contact__list li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 8px; height: 5px; border-left: 2px solid var(--c-green); border-bottom: 2px solid var(--c-green); transform: rotate(-45deg); }

/* ─── FAQ (accordion via <details>) ──────────────────────── */

.faq { max-width: 780px; }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary { cursor: pointer; list-style: none; padding: var(--s-3) 40px var(--s-3) 0; position: relative; font-size: var(--t-h3); font-weight: 500; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--c-purple); transition: transform 0.2s ease; }
.faq__item[open] summary::after { content: "\2013"; }
.faq__body { padding: 0 0 var(--s-3); color: var(--c-muted); line-height: 1.7; }
.faq__body p { margin: 0; }

/* ─── Cookie consent ─────────────────────────────────────── */

.cookie {
  position: fixed; left: var(--s-3); bottom: var(--s-3); z-index: 90;
  width: min(440px, calc(100vw - var(--s-3) * 2));
}
.cookie[hidden] { display: none; }
.cookie__card {
  background: var(--c-paper); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lift);
  padding: var(--s-4); position: relative;
}
/* thin brand accent along the top edge */
.cookie__card::before {
  content: ""; position: absolute; top: 0; left: var(--s-4); right: var(--s-4); height: 4px;
  border-radius: 0 0 999px 999px; background: linear-gradient(90deg, var(--c-purple), var(--c-green-bright));
}
.cookie__title { font-size: 21px; margin: 0 0 var(--s-2); }
.cookie__text { font-size: 14px; line-height: 1.6; color: var(--c-muted); margin: 0 0 var(--s-3); }
.cookie__text a { color: var(--c-purple); text-decoration: underline; text-underline-offset: 2px; }
.cookie__text a:hover { color: var(--c-purple-bright); }

.cookie__prefs { display: grid; gap: var(--s-2); margin: 0 0 var(--s-3); padding: var(--s-2) 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.cookie__prefs[hidden] { display: none; }
.cookie__pref { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); cursor: pointer; }
.cookie__pref-text { font-size: 13px; line-height: 1.45; color: var(--c-muted); }
.cookie__pref-text strong { display: block; color: var(--c-ink); font-weight: 600; font-size: 14px; }

/* toggle switch */
.cookie__switch { position: relative; flex: 0 0 44px; width: 44px; height: 26px; }
.cookie__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie__switch::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: var(--c-line-strong); transition: background 0.2s ease; }
.cookie__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.2s var(--ease-out); }
.cookie__switch:has(input:checked)::before { background: var(--c-green); }
.cookie__switch:has(input:checked)::after { transform: translateX(18px); }
.cookie__switch--locked::before { background: var(--c-purple); opacity: 0.5; }
.cookie__switch:has(input:focus-visible)::before { outline: 2px solid var(--c-purple); outline-offset: 2px; }

.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__actions .btn { flex: 1; justify-content: center; padding: 12px 16px; font-size: 14px; }
.cookie__actions .btn--ghost { flex: 1 1 auto; }

/* a subtle footer link to reopen preferences */
.site-footer__cookie { background: none; border: 0; padding: 0; cursor: pointer;
  color: rgba(255,255,255,0.82); text-decoration: none; font-size: var(--t-small); font-family: var(--font-sans); text-align: left; }
.site-footer__cookie:hover { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .cookie { animation: cookie-in 0.5s var(--ease-out) both; }
  @keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 520px) {
  .cookie { left: var(--s-2); right: var(--s-2); bottom: var(--s-2); width: auto; }
  .cookie__actions .btn { flex: 1 1 100%; }
}

/* ─── Content-page responsive ────────────────────────────── */

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--feature { flex-direction: column; }
  .card--feature .card__media { flex: none; aspect-ratio: 16 / 9; }
  .card--feature .card__body { padding: var(--s-4); }
  .contact { grid-template-columns: 1fr; gap: var(--s-4); }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .page-hero { padding: calc(var(--header-h) + var(--s-4)) 0 var(--s-5); }
}

/* ═══ Row layouts ═══════════════════════════════════════════
   The arrangements the page builder can choose between. Everything below is
   either a brand-new class or a modifier scoped so it cannot match anything on
   a page that has not migrated yet — so this file can ship with no template
   using it and nothing moves by a pixel.

   Two responsive fixes the audit turned up are deliberately NOT here: a
   2-column tier for the card grids between 600 and 1100px, and .section's flat
   140px padding at every width down to 320px. Both change pages that have not
   migrated, which would make the migration diffs unreadable. They come after,
   as their own change. */

/* ── Reversed split: the photo on the left ──
   .split is a plain two-column grid, so today which side the photo sits on is
   decided by DOM order alone — and that same order decides the STACKING order
   once the grid collapses at 1100px. Flipping by source order would therefore
   stack photo-above-text on phones for half the rows.

   So the markup is always content-then-media, and the swap is `order` at
   desktop only. The column ratio flips with it: .split gives its first column
   the wider 1.05fr, and the words should keep the wider column whichever side
   they are on. */
@media (min-width: 1101px) {
  /* Order only — the column ratio is deliberately NOT flipped.
     .split's first column is the wider 1.05fr, and every reversed split this
     theme already ships puts the photo first, so today the photo always gets
     the wider column. An earlier version of this rule flipped the ratio so the
     words kept it, which reads better in the abstract and moved the photo on
     two live pages the moment they migrated. Matching what the site does beats
     the theory. */
  .split--reverse > .split__media { order: -1; }

  /* Equal halves, for rows where neither side should dominate. */
  .split--even { grid-template-columns: 1fr 1fr; }
}

/* ── Two columns of running text ──
   1101px, not a smaller breakpoint, and for a typographic reason: at 821px the
   container leaves each column about 44 characters, which is below comfortable
   reading. At 1101 it is ~62. It also collapses at exactly the width .split
   does, so "two-column things become one column" is a single rule to hold in
   your head rather than two. */
.prose--cols { max-width: none; }
@media (min-width: 1101px) {
  .prose--cols { column-count: 2; column-gap: var(--s-6); }
  /* Never strand a heading at the foot of a column, away from its own text. */
  .prose--cols > h2, .prose--cols > h3 { break-after: avoid-column; }
  .prose--cols > *:first-child { margin-top: 0; }
}

/* ── A wide photo with the words beneath it ──
   The letterbox row. .split__media is a 4:3 framed panel and .page-hero is a
   full-bleed band with a dark overlay; this is neither — a wide, clean crop
   that keeps the page's rounded, lifted card language. */
.rowbanner__media {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); aspect-ratio: 16 / 6;
  background: var(--c-paper-deep); box-shadow: var(--sh-lift);
}
.rowbanner__media picture { display: block; width: 100%; height: 100%; }
.rowbanner__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rowbanner__body { margin-top: var(--s-5); }
@media (max-width: 820px) {
  /* 16:6 is a slot on a phone — give the picture back some height. */
  .rowbanner__media { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
  .rowbanner__body { margin-top: var(--s-4); }
}

/* ── The dark-only blocks, on a light band ──
   .stats and .cta-band hard-code white text, so today they only work inside
   .section--deep. A row may put either on paper, so each gets a light variant.
   Note the green switches from --c-green-bright (legible on purple) to
   --c-green (the one that passes contrast on white). */
.stats--light .stat__n .dot { color: var(--c-green); }
.stats--light .stat__label { color: var(--c-muted); }
.cta-band--light .cta-band__title { color: var(--c-ink); }
.cta-band--light .cta-band__intro { color: var(--c-muted); }

/* ── The card grids get a two-column tier ───────────────────
   .steps and .pillars jumped straight from three columns to one at 600px, so
   between 600 and 900 they were three cramped columns — about 210px each once
   the gaps are taken out, for a card carrying a 76px numbered disc, a heading
   and a paragraph. .cards already had this ladder; these now match it.

   Bounded at both ends on purpose: the existing 600px rule sets a single
   column and sits earlier in the file, so an unbounded max-width here would
   win at phone widths and undo it. */
@media (min-width: 601px) and (max-width: 900px) {
  .steps, .pillars { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Back to top ────────────────────────────────────────────
   Bottom-right, clear of the cookie card (which owns bottom-left) and under
   the menu overlay. Hidden until the visitor is a screen down, then eases in;
   [hidden] keeps it out of the tab order entirely while it is not shown. */
.to-top {
  position: fixed; right: var(--s-3); bottom: var(--s-3); z-index: 80;
  width: 48px; height: 48px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--c-purple); color: #fff; box-shadow: var(--sh-btn);
  /* visibility swaps AFTER the fade-out, and with it the tab stop —
     one class, no [hidden] bookkeeping in the script */
  opacity: 0; transform: translateY(10px); visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out),
              background 0.2s ease, visibility 0s linear 0.25s;
}
.to-top.is-show {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out),
              background 0.2s ease, visibility 0s;
}
.to-top:hover { background: var(--c-purple-bright); transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--c-green-bright); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; transform: none; }
  .to-top:hover { transform: none; }
}
@media print { .to-top { display: none; } }

/* ─── Row scroll effects ─────────────────────────────────────
   Chosen per row in the Studio. The hidden state exists ONLY once theme.js
   has stamped fx-on on <html> — no JS (or reduced motion, which never arms)
   means every row is simply visible. Reveals play once and stay. */
html.fx-on .fx-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.55s var(--ease-out);
}
html.fx-on .fx--zoom { transform: scale(0.96) translateY(12px); }
html.fx-on .fx-reveal.is-inview { opacity: 1; transform: none; }

/* One by one: the row fades up as a whole while its items join in sequence —
   steps, cards, stats, FAQ entries and prose paragraphs are all grandchildren
   of the container, so one selector covers every row type. */
html.fx-on .fx--stagger .container > * > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.55s var(--ease-out);
}
html.fx-on .fx--stagger.is-inview .container > * > * { opacity: 1; transform: none; }
html.fx-on .fx--stagger.is-inview .container > * > :nth-child(2) { transition-delay: 0.09s; }
html.fx-on .fx--stagger.is-inview .container > * > :nth-child(3) { transition-delay: 0.18s; }
html.fx-on .fx--stagger.is-inview .container > * > :nth-child(4) { transition-delay: 0.27s; }
html.fx-on .fx--stagger.is-inview .container > * > :nth-child(5) { transition-delay: 0.36s; }
html.fx-on .fx--stagger.is-inview .container > * > :nth-child(n+6) { transition-delay: 0.45s; }

/* Slide over: the marked row rides up over the pinned row above it. Sticky is
   occlusion by ordinary scrolling — not autonomous motion — so it stays on
   under reduced motion, and needs no JS at all. theme.js only refines
   --pin-top so a row taller than the viewport pins bottom-aligned instead of
   trapping its own lower content off-screen. */
.fx-pin { position: sticky; top: var(--pin-top, 0px); }
/* a plain white row paints no background of its own; a covering row must */
:where(.fx-cover) { background: var(--c-paper); }
