/* ==========================================================================
   Alex Thomson Mortgages. One file, ordered by cascade layers (lowest first).
   Raw values live only in the tokens layer (from DIRECTION.md).
   ========================================================================== */
@layer reset, tokens, base, layout, components, sections, motion, utilities;

@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/mona-sans-var-latin.woff2") format("woff2-variations");
  /* partial instance of Mona Sans: only the width 100-110% and weight 400-760 ranges the site uses (58 KB instead of 98 KB). Re-instance with scripts if a new weight/width is needed. */
  font-weight: 400 760;
  font-stretch: 100% 110%;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so headlines don't reflow when Mona Sans arrives */
@font-face {
  font-family: "Mona Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 90%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* -------------------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; }
  img, video { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  :target { scroll-margin-block: 5ex; }
}

/* -------------------------------------------------------------------------- */
@layer tokens {
  :root {
    /* Raw palette (DIRECTION.md) */
    --white: #ffffff;
    --mist: #eef2f4;
    --line: #d6dee3;
    --navy: #173749;
    --ink: #12232f;
    --slate: #52616b;
    --lake: #2d6a8e;
    --deep: #0f2534;
    --deep-2: #16354b;
    --deep-3: #0a1a26;
    --sky: #9fd3f0;

    /* Semantic tokens: light theme */
    --c-bg: var(--white);
    --c-surface: var(--mist);
    --c-fg: var(--ink);
    --c-heading: var(--navy);
    --c-muted: var(--slate);
    --c-line: var(--line);
    --c-link: var(--lake);
    --c-label: var(--lake);
    --c-accent: var(--navy);
    --c-on-accent: var(--white);
    --c-accent-hover: var(--deep);
    --c-focus: var(--lake);
    --c-error: #b3261e;

    --font-display: "Mona Sans", "Mona Fallback", system-ui, sans-serif;
    --font-body: "Mona Sans", "Mona Fallback", system-ui, sans-serif;

    /* Fluid type scale: 16 → 18 px base, 1.2 → 1.333 ratio, 360 → 1440 px */
    --step--1: clamp(0.83rem, 0.83rem + 0.02vw, 0.84rem);
    --step-0: clamp(1.00rem, 0.96rem + 0.19vw, 1.13rem);
    --step-1: clamp(1.20rem, 1.10rem + 0.44vw, 1.50rem);
    --step-2: clamp(1.44rem, 1.25rem + 0.83vw, 2.00rem);
    --step-3: clamp(1.73rem, 1.42rem + 1.39vw, 2.66rem);
    --step-4: clamp(2.07rem, 1.58rem + 2.19vw, 3.55rem);
    --step-5: clamp(2.49rem, 1.74rem + 3.33vw, 4.73rem);
    --step-6: clamp(2.99rem, 1.88rem + 4.93vw, 6.31rem);

    --space-2xs: clamp(0.5rem, 0.48rem + 0.1vw, 0.56rem);
    --space-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.84rem);
    --space-s: clamp(1rem, 0.96rem + 0.19vw, 1.13rem);
    --space-m: clamp(1.5rem, 1.44rem + 0.28vw, 1.69rem);
    --space-l: clamp(2rem, 1.85rem + 0.65vw, 2.44rem);
    --space-xl: clamp(3rem, 2.7rem + 1.3vw, 3.88rem);
    --space-2xl: clamp(4rem, 3.4rem + 2.6vw, 5.75rem);
    --space-3xl: clamp(5rem, 3.9rem + 4.9vw, 8.5rem);

    --gutter: clamp(1rem, 4vw, 3.5rem);
    --container: 1280px;
    --header-h: 5.5rem;
    --r-s: 8px;
    --r-m: 14px;
    --r-l: 18px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);      /* expo.out */
    --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);  /* expo.inOut */
    --ease-ui: cubic-bezier(0.33, 1, 0.68, 1);      /* power2.out */
    --dur-micro: 180ms;
    --dur-ui: 400ms;
    --dur-reveal: 1100ms;
    --dur-line: 1200ms; /* LINE_MS in core/reveals.js */
  }

  .theme-dark {
    --c-bg: var(--deep);
    --c-surface: var(--deep-2);
    --c-fg: rgba(255, 255, 255, 0.86);
    --c-heading: var(--white);
    --c-muted: rgba(255, 255, 255, 0.68);
    --c-line: rgba(255, 255, 255, 0.16);
    --c-link: var(--sky);
    --c-label: var(--sky);
    --c-accent: var(--white);
    --c-on-accent: var(--navy);
    --c-accent-hover: var(--mist);
    --c-focus: var(--sky);
    background: var(--c-bg);
    color: var(--c-fg);
  }
}

/* -------------------------------------------------------------------------- */
@layer base {
  html {
    scroll-padding-top: calc(var(--header-h) + 1rem);
    background: var(--deep-3);
  }
  body {
    min-height: 100svh;
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--c-fg);
    background: var(--c-bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--c-heading);
    font-weight: 650;
    font-stretch: 106%;
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  p, li { text-wrap: pretty; }
  a { color: inherit; text-decoration-skip-ink: none; text-decoration-thickness: 1.5px; text-underline-offset: 0.28em; }
  strong, b { font-weight: 640; }
  :focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }
  ::selection { background: var(--navy); color: var(--white); }
  .skip-link {
    position: absolute; left: var(--gutter); top: -100%; z-index: 1000;
    padding: 0.6rem 1rem; background: var(--white); color: var(--navy); border-radius: var(--r-s); font-weight: 600;
  }
  .skip-link:focus { top: 0.5rem; }
}

/* -------------------------------------------------------------------------- */
@layer layout {
  .container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
  .section { padding-block: var(--space-3xl); }
  .section--tight { padding-block: var(--space-2xl); }
  .surface { background: var(--mist); }
  .split { display: grid; gap: var(--space-xl); }
  .split > .section-head { margin-bottom: 0; }
  @media (min-width: 900px) {
    .split { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
    .split--even { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 899px) {
    .js [data-menu]:not([data-open]) { visibility: hidden; opacity: 0; pointer-events: none; }
  }
  @media (min-width: 900px) {
    [data-menu-button] { display: none; }
  }
  html.menu-open { overflow: hidden; }
}

/* -------------------------------------------------------------------------- */
@layer components {
  /* ---------- text ---------- */
  .section-head { display: grid; gap: var(--space-s); max-width: 44rem; margin-bottom: var(--space-xl); }
  .section-head h2 { font-size: var(--step-4); }
  .section-head p { color: var(--c-muted); font-size: var(--step-1); line-height: 1.5; max-width: 38em; }
  .lede { font-size: var(--step-1); line-height: 1.55; color: var(--c-muted); max-width: 38em; }
  .label { display: inline-flex; align-items: center; gap: 0.6em; font-size: var(--step--1); font-weight: 580; letter-spacing: 0.01em; color: var(--c-label); }
  .label::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; flex: none; }
  .small-head { font-size: 0.95rem; font-stretch: 100%; letter-spacing: 0; color: var(--c-muted); font-weight: 600; margin-bottom: 0.7rem; }

  /* ---------- buttons and links ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
    min-height: 3rem; padding: 0.85rem 1.5rem; border-radius: var(--r-s);
    background: var(--c-accent); color: var(--c-on-accent); border: 1.5px solid var(--c-accent);
    font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
    transition: background-color var(--dur-micro) var(--ease-ui), border-color var(--dur-micro) var(--ease-ui), color var(--dur-micro) var(--ease-ui), transform var(--dur-micro) var(--ease-ui);
  }
  .btn:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); }
  .btn:active { transform: translateY(1px); }
  .btn--ghost { background: transparent; color: var(--c-heading); border-color: var(--c-line); }
  .btn--ghost:hover { background: var(--c-surface); border-color: var(--c-surface); }
  .hero .btn--ghost, .cta-band .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
  .hero .btn--ghost:hover, .cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.6); }
  .aside-card .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.4); --c-accent: transparent; --c-on-accent: var(--white); --c-accent-hover: rgba(255, 255, 255, 0.12); }
  .btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); }
  .btn-row .aside-text { color: var(--c-muted); font-size: 0.95rem; }
  .btn-row .aside-text a { color: var(--c-heading); font-weight: 640; text-decoration: none; white-space: nowrap; }
  .btn-row .aside-text a:hover { text-decoration: underline; }
  .text-link {
    color: var(--c-link); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.25em;
    text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); transition: text-decoration-color var(--dur-micro) var(--ease-ui);
  }
  .text-link:hover { text-decoration-color: currentColor; }
  .inline-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font-size: 1rem; }
  .inline-links a { color: var(--c-heading); font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: var(--c-line); transition: text-decoration-color var(--dur-micro) var(--ease-ui); }
  .inline-links a:hover { text-decoration-color: currentColor; }

  /* ---------- logo (mask, so it takes any colour) ---------- */
  .logo {
    display: block; width: 6.2rem; aspect-ratio: 709 / 463; background: currentColor;
    -webkit-mask: url("/assets/img/logo-mask.webp") center / contain no-repeat; mask: url("/assets/img/logo-mask.webp") center / contain no-repeat;
  }

  /* ---------- header ---------- */
  .site-header {
    position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white);
    transition: background-color var(--dur-ui) var(--ease-ui), color var(--dur-ui) var(--ease-ui), box-shadow var(--dur-ui) var(--ease-ui), transform var(--dur-ui) var(--ease-out);
  }
  html[data-header-light] .site-header { color: var(--navy); }
  html[data-header-light] .site-header::before { display: none; }
  html[data-header-light] .site-header .btn { --c-accent: var(--navy); --c-on-accent: var(--white); --c-accent-hover: var(--deep); }
  html[data-header-light].menu-open .site-header { color: var(--white); }
  .site-header__inner { display: flex; align-items: center; gap: var(--space-l); height: var(--header-h); }
  .site-header__brand { color: inherit; flex: none; }
  .site-header__brand .logo { width: 5.9rem; }
  .site-header__nav { margin-left: auto; }
  .site-header__nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); font-size: 0.97rem; font-weight: 540; }
  .site-header__nav a { text-decoration: none; padding-block: 0.4rem; position: relative; }
  .site-header__nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
    transform: scaleX(0); transform-origin: left; transition: transform var(--dur-ui) var(--ease-out);
  }
  .site-header__nav a:not(.btn):hover::after, .site-header__nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-header__tel { font-weight: 640; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.45rem; }
  .site-header__tel .ico { width: 1rem; height: 1rem; }
  .has-sub { position: relative; display: flex; align-items: center; gap: 0.2rem; }
  .sub-toggle { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 0; background: none; color: inherit; border-radius: 50%; }
  .sub-toggle svg { width: 0.7rem; height: 0.7rem; transition: transform var(--dur-micro) var(--ease-ui); }
  .site-header__nav ul.nav-sub { position: absolute; left: -1rem; top: calc(100% + 0.6rem); min-width: 16rem; padding: 0.5rem; background: var(--white); color: var(--navy); border-radius: var(--r-m); box-shadow: 0 18px 44px -18px rgba(15, 37, 52, 0.45), 0 0 0 1px var(--line); display: grid; gap: 0.1rem; font-size: 0.95rem; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--dur-micro) var(--ease-ui), transform var(--dur-micro) var(--ease-ui), visibility 0s linear var(--dur-micro); }
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -0.7rem; height: 0.7rem; } /* keeps the hover alive on the way down */
  .nav-sub li a { display: block; padding: 0.55rem 0.8rem; border-radius: var(--r-s); font-weight: 520; font-size: 0.95rem; }
  .nav-sub li a:hover, .nav-sub li a[aria-current="page"] { background: var(--mist); }
  .nav-sub li a::after { display: none; }
  .has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub, .has-sub[data-open] .nav-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-sub:hover .sub-toggle svg, .has-sub[data-open] .sub-toggle svg { transform: rotate(180deg); }
  .site-header .btn { --c-accent: var(--white); --c-on-accent: var(--navy); --c-accent-hover: var(--mist); padding-inline: 1.3rem; }
  .site-header.is-scrolled .btn { --c-accent: var(--navy); --c-on-accent: var(--white); --c-accent-hover: var(--deep); }
  .site-header__menu-button {
    margin-left: auto; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.9rem; padding: 0 1rem;
    border-radius: var(--r-s); border: 1.5px solid currentColor; background: transparent; color: inherit; font-weight: 600;
  }
  .site-header__menu-button span { display: grid; gap: 4px; }
  .site-header__menu-button span i { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform var(--dur-ui) var(--ease-out); }
  .site-header__menu-button[aria-expanded="true"] span i:first-child { transform: translateY(2.75px) rotate(45deg); }
  .site-header__menu-button[aria-expanded="true"] span i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
  .site-header::before {
    content: ""; position: absolute; inset: 0 0 -2.5rem; z-index: -1; pointer-events: none;
    background: linear-gradient(rgba(7, 20, 32, 0.55), rgba(7, 20, 32, 0)); transition: opacity var(--dur-ui) var(--ease-ui);
  }
  .site-header.is-scrolled { background: rgba(255, 255, 255, 0.97); color: var(--navy); box-shadow: 0 1px 0 var(--line); }
  .site-header.is-scrolled::before { opacity: 0; }
  .site-header.is-hidden { transform: translateY(-100%); }
  html.menu-open .site-header { background: transparent; color: var(--white); box-shadow: none; transform: none; }
  html.menu-open .site-header::before { opacity: 0; }
  html.menu-open .site-header .btn { --c-accent: var(--white); --c-on-accent: var(--navy); }

  @media (max-width: 899px) {
    :root { --header-h: 4.5rem; }
    .site-header__brand .logo { width: 4.8rem; }
    .site-header__nav {
      position: fixed; inset: 0; z-index: -1; margin: 0; padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
      background: var(--deep); overflow-y: auto; transition: opacity var(--dur-ui) var(--ease-ui), visibility var(--dur-ui);
    }
    .site-header__nav ul { flex-direction: column; align-items: flex-start; gap: 0.2rem; font-size: var(--step-3); font-weight: 620; letter-spacing: -0.02em; color: var(--white); }
    .site-header__nav li { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
    .site-header__nav li a { display: block; padding-block: 0.8rem; }
    .site-header__nav a:not(.btn)::after { display: none; }
    .site-header__nav .nav-cta { border: 0; margin-top: 1.5rem; }
    .site-header__nav .nav-cta .btn { display: flex; justify-content: center; width: 100%; font-size: 1.05rem; --c-accent: var(--white); --c-on-accent: var(--navy); }
    .site-header__nav li a.site-header__tel { display: flex; align-items: center; gap: 0.5rem; }
    .site-header__nav .site-header__tel { font-size: var(--step-1); }
    .has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
    .sub-toggle { width: 2.75rem; height: 2.75rem; }
    .sub-toggle svg { width: 1rem; height: 1rem; }
    .site-header__nav ul.nav-sub { position: static; grid-column: 1 / -1; min-width: 0; padding: 0 0 0.6rem 0; background: none; color: inherit; box-shadow: none; transform: none; display: none; }
    .has-sub[data-open] .nav-sub { display: grid; opacity: 1; visibility: visible; }
    .nav-sub li { border: 0; }
    .nav-sub li a { padding: 0.45rem 0 0.45rem 1rem; font-size: var(--step-0); font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, 0.8); }
    .nav-sub li a:hover, .nav-sub li a[aria-current="page"] { background: none; color: var(--white); }
  }
  @media (min-width: 900px) { .site-header__menu-button { display: none; } }
  @media (min-width: 900px) and (max-width: 1099px) {
    .site-header__tel { display: none; }
    /* narrow laptops: keep every nav item on one line (Blog made the row longer) */
    .site-header__inner { gap: var(--space-m); }
    .site-header__nav ul { gap: 0.85rem; font-size: 0.93rem; }
    .site-header__nav a { white-space: nowrap; }
    .site-header .btn { padding-inline: 1rem; }
  }

  /* ---------- sticky call bar (phones) ---------- */
  .call-bar { display: none; }
  @media (max-width: 899px) {
    .call-bar {
      position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
      padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96);
      border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
      transform: translateY(110%); transition: transform var(--dur-ui) var(--ease-out);
    }
    .call-bar.is-shown { transform: none; }
    html.menu-open .call-bar { transform: translateY(110%); }
    .call-bar .btn { min-height: 2.8rem; font-size: 0.95rem; }
    body { padding-bottom: 0; }
  }

  /* ---------- FAQ (native details) ---------- */
  .faq { border-top: 1px solid var(--c-line); }
  .faq details { border-bottom: 1px solid var(--c-line); interpolate-size: allow-keywords; }
  .faq summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-m);
    padding-block: 1.3rem; font-size: var(--step-1); font-weight: 600; font-stretch: 104%; color: var(--c-heading); letter-spacing: -0.01em; line-height: 1.3;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: ""; flex: none; width: 1.6rem; height: 1.6rem;
    background:
      linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
    transition: transform var(--dur-ui) var(--ease-out);
  }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq details::details-content { height: 0; overflow: clip; transition: height var(--dur-ui) var(--ease-out), content-visibility var(--dur-ui) allow-discrete; }
  .faq details[open]::details-content { height: auto; }
  .faq .answer { transition: visibility 0s linear var(--dur-ui); padding: 0 3rem 1.6rem 0; color: var(--c-fg); max-width: 62ch; display: grid; gap: 0.8em; }
  .faq details:not([open]) .answer { visibility: hidden; }
  .faq details[open] .answer { visibility: visible; transition-delay: 0s; }
  .faq .answer ul { padding-left: 1.2em; display: grid; gap: 0.4em; }

  /* ---------- prose ---------- */
  .prose { display: grid; gap: 1.05em; max-width: 68ch; }
  .prose > h2 { font-size: var(--step-3); margin-top: 1.5em; }
  .prose > h2:first-child { margin-top: 0; }
  .prose > h3 { font-size: var(--step-1); margin-top: 0.6em; }
  .prose p, .prose li { color: var(--c-fg); }
  .prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: 0.8em; }
  .prose ul li { position: relative; padding-left: 1.4em; }
  .prose ul li::before { content: ""; position: absolute; left: 0.1em; top: 0.72em; width: 0.5em; height: 1.5px; background: var(--navy); }
  .prose ol { counter-reset: n; }
  .prose ol li { position: relative; padding-left: 2.4em; counter-increment: n; }
  .prose ol li::before { content: counter(n) "."; position: absolute; left: 0; top: 0; color: var(--navy); font-weight: 640; font-variant-numeric: tabular-nums; }
  .prose li strong:first-child { color: var(--navy); font-weight: 600; }
  .prose .callout { background: var(--mist); border-radius: var(--r-m); padding: var(--space-m); }
  .prose .callout p { color: var(--ink); }
  .prose a:not(.btn) { color: var(--lake); font-weight: 600; text-underline-offset: 0.2em; }
  .narrow { max-width: 46rem; }

  /* ---------- Broki embeds: calculators, quizzes, the call-back form ---------- */
  .tool { border-radius: var(--r-l); overflow: clip; background: var(--white); }
  .tool iframe { display: block; width: 100%; border: 0; }
  .calc { display: grid; gap: var(--space-l); max-width: 56rem; }
  .calc__title { font-size: var(--step-3); }
  .calc__body { max-width: 62ch; }
  .calc__body h2 { font-size: var(--step-2); }
  .calc__guide a { color: var(--navy); font-weight: 640; }
  .calc__next { max-width: 62ch; margin-top: calc(-1 * var(--space-s)); padding: var(--space-s) var(--space-m); background: var(--mist); border-radius: var(--r-m); color: var(--ink); }
  .calc__next a { color: var(--navy); font-weight: 640; }
  .calc__faq { max-width: 62ch; display: grid; gap: var(--space-s); }
  .calc__faq .faq-title { font-size: var(--step-2); }
  .calc .tools { margin-top: var(--space-m); }
  .tools { display: grid; gap: var(--space-s); margin-block: var(--space-m) var(--space-l); }
  .tools__head { font-size: var(--step-1); }
  .quiz { margin-block: var(--space-l); padding: var(--space-l); background: var(--mist); border-radius: var(--r-l); display: grid; gap: var(--space-s); }
  .quiz h2 { font-size: var(--step-2); }
  .quiz > p { color: var(--slate); }
  .quiz .tool { margin-top: var(--space-xs); }
  .call-back { display: grid; gap: var(--space-s); }
  .call-back h2 { font-size: var(--step-2); }
  .call-back > p { color: var(--slate); }
  .call-back .tool { margin-top: var(--space-xs); border: 1.5px solid var(--line); }
  @media (max-width: 599px) {
    /* phones: quizzes and calculators run edge to edge, the embed has its own inner padding */
    .quiz { margin-inline: calc(-1 * var(--gutter)); padding: var(--space-m) var(--gutter) var(--gutter); border-radius: 0; }
    .quiz .tool { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
    .calc .tool { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  }

  /* ---------- embed slots ---------- */
  .embed {
    min-height: 22rem; border-radius: var(--r-l); border: 1.5px dashed var(--line); background: var(--mist);
    display: grid; place-content: center; text-align: center; gap: var(--space-s); padding: var(--space-xl) var(--space-l);
  }
  .embed h2, .embed h3 { font-size: var(--step-2); }
  .embed p { color: var(--slate); max-width: 34em; margin-inline: auto; }

  /* ---------- CTA band: copy left, Alex standing at the right ---------- */
  .cta-band { background: var(--deep-2); position: relative; isolation: isolate; overflow: clip; }
  .cta-band__inner { position: relative; display: grid; gap: var(--space-m); padding-block: var(--space-xl); }
  .cta-band h2 { font-size: var(--step-4); max-width: 18ch; }
  .cta-band p { color: var(--c-muted); margin-top: var(--space-s); max-width: 38em; font-size: var(--step-1); line-height: 1.5; }
  .cta-band .btn-row { margin-top: var(--space-m); }
  .cta-band__alex { display: block; justify-self: center; width: min(68%, 17rem); margin-top: var(--space-m); }
  .cta-band__alex img { width: 100%; height: auto; display: block; }
  .btn__num { display: inline; }
  @media (max-width: 899px) {
    .cta-band__inner { padding-bottom: 0; }
    .cta-band h2 { max-width: none; }
    .cta-band .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .cta-band .btn { padding-inline: 0.9rem; white-space: nowrap; }
    .cta-band__scene { opacity: 0.3; }
  }
  @media (max-width: 479px) { .cta-band .btn__num { display: none; } .cta-band .btn { font-size: 0.95rem; } }
  .cta-band__scene { position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0.38; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 55%, #000 100%); mask-image: linear-gradient(180deg, transparent 0, #000 55%, #000 100%); }
  .cta-band__scene picture, .cta-band__scene img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 42%; }
  .cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 80% at 78% 100%, rgba(159, 211, 240, 0.18), transparent 70%); }
  @media (min-width: 900px) {
    .cta-band__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-xl); padding-block: var(--space-xl) 0; align-items: end; }
    .cta-band__copy { padding-bottom: var(--space-xl); align-self: center; }
    .cta-band__alex { display: block; justify-self: end; width: min(100%, 18rem); margin-top: var(--space-m); }
    .cta-band__alex img { width: 100%; height: auto; display: block; }
  }

  /* ---------- footer ---------- */
  .site-footer { background: var(--deep-3); color: rgba(255, 255, 255, 0.72); font-size: 0.96rem; }
  .site-footer a { text-decoration: none; }
  .site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 0.2em; }
  .site-footer__top { display: grid; gap: var(--space-xl); padding-block: var(--space-2xl) var(--space-xl); }
  @media (min-width: 900px) { .site-footer__top { grid-template-columns: 4fr 3fr 3fr 3fr 2fr; gap: var(--space-l); } }
  .site-footer h2 { font-size: 1rem; font-stretch: 100%; font-weight: 620; color: var(--white); letter-spacing: 0; margin-bottom: 1rem; }
  .site-footer ul { display: grid; gap: 0.55rem; }
  .site-footer__brand .logo { color: var(--white); width: 7rem; margin-bottom: var(--space-m); }
  .site-footer__brand p { max-width: 30em; line-height: 1.55; }
  .site-footer__abw { display: block; width: 7rem; aspect-ratio: 1; margin-top: var(--space-m); background: rgba(255, 255, 255, 0.85);
    -webkit-mask: url("/assets/img/abw-mask.webp") center / contain no-repeat; mask: url("/assets/img/abw-mask.webp") center / contain no-repeat; }
  .site-footer__big { color: var(--white); font-size: var(--step-1); font-weight: 620; }
  .site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: var(--space-m); display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); }
  @media (max-width: 899px) {
    .site-footer__bottom { padding-bottom: calc(var(--space-m) + 4.5rem); justify-content: center; text-align: center; }
    .site-footer__top { text-align: center; justify-items: center; }
    .site-footer__brand .logo, .site-footer__abw { margin-inline: auto; }
    .site-footer__brand p { margin-inline: auto; }
  }
  /* honeypot and validation, from the kit */
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  :is(input, textarea, select):user-invalid { border-color: var(--c-error); }
}

/* -------------------------------------------------------------------------- */
@layer sections {
  /* =============== the layered scene (home hero, About, Services, Contact) =============== */
  .hero { position: relative; isolation: isolate; overflow: clip; background: var(--deep); }
  .hero__scene { position: absolute; inset: 0; overflow: hidden; }
  .hero__scene picture { position: absolute; inset: -3% -2%; max-width: none; }
  .hero__scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; max-width: none; }
  .hero__sky { z-index: 1; }
  .hero__word {
    position: absolute; z-index: 2; left: 0; right: 0; top: 88px; margin: 0; text-align: center; pointer-events: none; user-select: none;
    color: var(--white); font-size: 16.4vw; font-weight: 760; font-stretch: 110%; letter-spacing: -0.05em; line-height: 0.8; text-shadow: 0 4px 40px rgba(8, 22, 34, 0.35);
  }
  .hero__hills { z-index: 3; }
  .hero__scrim {
    position: absolute; z-index: 4; inset: 0; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 34%, #000 52%); mask-image: linear-gradient(180deg, transparent 0, transparent 34%, #000 52%);
    background:
      linear-gradient(90deg, rgba(7, 20, 32, 0.78) 0%, rgba(7, 20, 32, 0.5) 34%, rgba(7, 20, 32, 0) 58%),
      linear-gradient(0deg, rgba(7, 20, 32, 0.72) 0%, rgba(7, 20, 32, 0.25) 30%, rgba(7, 20, 32, 0) 52%);
  }
  .hero__alex { position: absolute; z-index: 5; right: max(2vw, (100% - var(--container)) / 2); bottom: 0; height: 73%; aspect-ratio: 1245 / 1824; }
  .hero__alex img { width: 100%; height: 100%; filter: drop-shadow(0 10px 28px rgba(15, 37, 52, 0.22)); }
  .hero__copy { position: relative; z-index: 6; }
  .hero__float { display: none; }
  @media (max-width: 899px) {
    .hero__alex { display: block; right: -12%; bottom: 0; height: 50%; z-index: 5; }
    .hero__alex img { filter: drop-shadow(0 8px 20px rgba(5, 15, 24, 0.45)); }
    /* the float is an invisible copy of the cut-out: it only pushes the text around his outline */
    .hero__float { display: block; float: right; width: auto; height: 50svh; max-width: none; margin: 0 calc(-1 * var(--gutter) - 12vw) 0 0.6rem; shape-margin: 0.7rem; opacity: 0; pointer-events: none; }
    .hero .btn--ghost { background: rgba(7, 20, 32, 0.6); border-color: rgba(255, 255, 255, 0.7); }
  }
  .hero__copy .label { color: var(--white); text-shadow: 0 1px 14px rgba(7, 20, 32, 0.8); }
  .hero__copy .label::before { background: var(--sky); }
  .hero--home .hero__copy h1, .hero--home .lede, .hero--page h1, .hero--page .lede { text-shadow: 0 2px 24px rgba(7, 20, 32, 0.45); }
  .hero--home .lede, .hero--page .lede { color: rgba(255, 255, 255, 0.88); }
  .hero__lic { margin-top: var(--space-m); font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }

  .hero--home { height: clamp(660px, 100svh, 940px); }
  .hero--home .hero__copy { position: absolute; left: max(var(--gutter), (100% - var(--container)) / 2); bottom: 64px; width: min(580px, 42vw); }
  .hero--home h1 { font-size: clamp(2.4rem, 3.9vw, 3.9rem); line-height: 1.02; margin: 1rem 0 1.1rem; font-weight: 660; font-stretch: 108%; letter-spacing: -0.025em; }
  .hero--home .lede { font-size: 1.1rem; max-width: 46ch; }
  .hero--home .btn-row { margin-top: 1.75rem; }
  @media (min-width: 900px) and (max-height: 820px) {
    .hero--home .hero__copy { bottom: 40px; }
    .hero--home h1 { font-size: clamp(2.1rem, 3.3vw, 3rem); margin: 0.75rem 0 0.9rem; }
    .hero--home .lede { font-size: 1.03rem; }
    .hero--home .hero__word { top: 76px; }
    .hero--home .hero__lic { display: none; }
  }
  @media (max-width: 899px) {
    .hero--home { height: max(640px, 100svh); }
    .hero--home .hero__scene picture { inset: -30% -2% auto; height: 130%; }
    .hero--home .hero__scene .hero__hills { inset: -43% -2% auto; }
    .hero--home .hero__scene img { object-position: 58% 50%; }
    .hero--home .hero__word { font-size: 21vw; top: calc(19.4svh - 14.3vw - 8px); } /* keeps the same bite out of the word on every phone: the ridge sits at ~19.4% of the hero */
    .hero--home .hero__scrim { -webkit-mask-image: none; mask-image: none; background: linear-gradient(0deg, rgba(7, 20, 32, 0.92) 0%, rgba(7, 20, 32, 0.8) 30%, rgba(7, 20, 32, 0.56) 50%, rgba(7, 20, 32, 0.42) 62%, rgba(7, 20, 32, 0.2) 72%, rgba(7, 20, 32, 0.04) 82%, rgba(7, 20, 32, 0) 90%); }
    .hero--home .hero__alex { height: 50svh; }
    .hero--home .hero__copy .label { display: none; }
    .hero--home h1 { font-size: 1.85rem; margin: 0 0 0.7rem; max-width: none; }
    .hero--home .lede { font-size: 0.93rem; line-height: 1.5; max-width: none; }
    .hero--home .lede .lede__more { display: none; }
    .hero--home .btn { padding-inline: 1rem; font-size: 0.95rem; }
    .hero--home .btn__num { display: none; }
  }

  /* photo page heroes: dusk (About, with Alex) and day (Services, Contact) */
  .hero--page { min-height: clamp(30rem, 62svh, 38rem); display: flex; align-items: flex-end; }
  .hero--page .hero__scene img { object-position: 50% 62%; }
  .hero--page .hero__scrim {
    -webkit-mask-image: none; mask-image: none;
    background:
      linear-gradient(90deg, rgba(7, 20, 32, 0.8) 0%, rgba(7, 20, 32, 0.45) 45%, rgba(7, 20, 32, 0.05) 75%),
      linear-gradient(0deg, rgba(7, 20, 32, 0.75) 0%, rgba(7, 20, 32, 0) 60%);
  }
  .hero--day { background: var(--deep); }
  .hero--day .hero__scene img { object-position: 50% 40%; }
  .hero--single .hero__scene img { object-position: 50% 55%; }
  .hero--day .hero__scrim {
    background:
      linear-gradient(90deg, rgba(15, 37, 52, 0.82) 0%, rgba(15, 37, 52, 0.55) 40%, rgba(15, 37, 52, 0.1) 72%),
      linear-gradient(0deg, rgba(15, 37, 52, 0.8) 0%, rgba(15, 37, 52, 0) 55%);
  }
  .hero--page .hero__copy { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-2xl); display: grid; gap: var(--space-s); justify-items: start; }
  .hero--page .hero__copy > * { max-width: 44rem; }
  .hero--page h1 { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.03em; font-stretch: 108%; }
  .hero--page .lede { font-size: var(--step-1); }
  .hero--page .btn-row { margin-top: var(--space-xs); }
  .hero--page.has-alex .hero__alex { height: 86%; aspect-ratio: 1245 / 1908; }
  @media (max-width: 899px) {
    .hero--page:not(.has-alex) .hero__scrim { background: linear-gradient(0deg, rgba(7, 20, 32, 0.9) 0%, rgba(7, 20, 32, 0.72) 55%, rgba(7, 20, 32, 0.35) 100%); }
    .hero--page.has-alex { min-height: max(600px, 88svh); display: block; position: relative; }
    .hero--page.has-alex .hero__scene img { object-position: 60% 40%; }
    .hero--page.has-alex .hero__scrim { background: linear-gradient(0deg, rgba(7, 20, 32, 0.94) 0%, rgba(7, 20, 32, 0.8) 36%, rgba(7, 20, 32, 0.3) 62%, rgba(7, 20, 32, 0.05) 80%); }
    .hero--page.has-alex .hero__float { height: 46svh; }
    .hero--page.has-alex .hero__alex { height: 46svh; }
    .hero--page.has-alex .hero__scrim { background: linear-gradient(0deg, rgba(7, 20, 32, 0.92) 0%, rgba(7, 20, 32, 0.8) 28%, rgba(7, 20, 32, 0.56) 48%, rgba(7, 20, 32, 0.4) 60%, rgba(7, 20, 32, 0.18) 72%, rgba(7, 20, 32, 0) 84%); }
    .hero--page.has-alex .hero__copy > * { max-width: none; }
    .hero--page.has-alex .lede { margin: 0; font-size: 0.98rem; line-height: 1.5; }
    .hero--page.has-alex .lede .lede__more { display: none; }
    .hero--page.has-alex h1 { font-size: 1.85rem; margin-bottom: 0.7rem; }
    .hero--page .btn__num { display: none; }
    .hero--page .btn { padding-inline: 1rem; font-size: 0.95rem; }
    /* the copy block sits on the hero's bottom edge: h1 above Alex's head, lede wrapped around him, buttons pinned to the edge */
    .hero--home .hero__copy, .hero--page.has-alex .hero__copy { --hero-foot: 5.4rem; position: absolute; left: 0; right: 0; bottom: 0; width: auto; margin: 0; padding: 0 var(--gutter) var(--hero-foot); display: flow-root; }
    .hero--home .hero__float, .hero--page.has-alex .hero__float { margin-bottom: calc(-1 * var(--hero-foot)); }
    .hero--home .btn-row, .hero--page.has-alex .btn-row { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.5rem; z-index: 7; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  }
  @media (min-width: 900px) { .hero--page.has-alex .hero__copy > * { max-width: min(44rem, 52vw); } }
  /* phones: content-sized hero. Big full-width h1, the lede wraps around Alex (the float IS the photo here),
     buttons right under it, and the hero's bottom edge cuts Alex wherever the copy ends. The float's margin box
     is pulled up (--hero-pull) so it is only as tall as the lede; below that the photo just hangs over the edge. */
  @media (max-width: 599px) {
    .hero--home, .hero--page.has-alex { height: auto; min-height: 0; display: block; }
    .hero--home .hero__alex, .hero--page.has-alex .hero__alex { display: none; }
    .hero--home .hero__copy, .hero--page.has-alex .hero__copy {
      position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: 0; display: block;
      padding: var(--hero-top) var(--gutter) 1.75rem;
    }
    .hero--home .hero__copy { --hero-top: calc(var(--header-h) + 40vw); }
    /* About lines up with the other page heroes: same top padding and the same height, so Alex is cut lower down */
    .hero--page.has-alex { min-height: clamp(30rem, 62svh, 38rem); }
    .hero--page.has-alex .hero__copy { --hero-top: calc(var(--header-h) + var(--space-xl)); }
    .hero--home h1, .hero--page.has-alex h1 { font-size: clamp(2.05rem, 9.4vw, 2.6rem); line-height: 1.02; margin: 0 0 0.9rem; max-width: none; letter-spacing: -0.025em; }
    .hero__body { display: flow-root; }
    .hero--home .hero__float, .hero--page.has-alex .hero__float {
      display: block; float: right; width: 68vw; height: auto; opacity: 1; pointer-events: none;
      margin: 0 calc(-1 * var(--gutter) - 12vw) var(--hero-pull, 0px) 0.75rem; shape-margin: 0.75rem;
      filter: drop-shadow(0 8px 20px rgba(5, 15, 24, 0.45));
    }
    /* --hero-lines = how many lede lines wrap around him at this width (measured; the lede is 1.56rem per line).
       The float's margin box is pulled up to exactly that, so the buttons follow the lede and the photo hangs
       over the hero's bottom edge. Re-measure (scripts/tmp or qa) if the lede copy or its font size changes. */
    .hero--home .hero__float { --hero-pull: calc(var(--hero-lines, 6) * 1.56rem + 2px - 99.6vw); }           /* 68vw wide at 1245:1824 is 99.6vw tall */
    .hero--page.has-alex .hero__float { --hero-pull: calc(var(--hero-lines, 4) * 1.56rem + 2px - 104.2vw); } /* lake cut-out is 1245:1908 */
    .hero--home .hero__float { --hero-lines: 4; }
    @media (max-width: 569px) { .hero--home .hero__float { --hero-lines: 5; } }
    @media (max-width: 459px) { .hero--home .hero__float { --hero-lines: 6; } }
    @media (max-width: 411px) { .hero--home .hero__float { --hero-lines: 7; } }
    @media (max-width: 374px) { .hero--home .hero__float { --hero-lines: 9; } }
    .hero--page.has-alex .hero__float { --hero-lines: 3; }
    @media (max-width: 499px) { .hero--page.has-alex .hero__float { --hero-lines: 4; } }
    @media (max-width: 411px) { .hero--page.has-alex .hero__float { --hero-lines: 5; } }
    .hero--home .lede, .hero--page.has-alex .lede { font-size: 1.04rem; line-height: 1.5; margin: 0; max-width: none; }
    .hero--home .btn-row, .hero--page.has-alex .btn-row { position: relative; left: auto; right: auto; bottom: auto; z-index: 7; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    /* home scene: the word sits under the header and the ridge takes a small bite out of it, independent of the hero's height */
    .hero--home .hero__word { top: calc(var(--header-h) + 7vw); }
    .hero--home .hero__scene .hero__hills { top: calc(var(--header-h) - 83vw + 22px); bottom: auto; height: 220vw; }
    .hero--home .hero__scrim { background: linear-gradient(0deg, rgba(7, 20, 32, 0.92) 0%, rgba(7, 20, 32, 0.82) 30%, rgba(7, 20, 32, 0.6) 50%, rgba(7, 20, 32, 0.42) 62%, rgba(7, 20, 32, 0.2) 74%, rgba(7, 20, 32, 0) 90%); }
  }

  /* article hero: light, for the service guides and the calculator */
  .hero--article { background: var(--white); border-bottom: 1px solid var(--line); }
  .hero--article .hero__copy { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-xl); display: grid; gap: var(--space-s); justify-items: start; }
  .hero--article .hero__copy > * { max-width: 46rem; }
  .hero--article h1 { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.03em; font-stretch: 108%; }
  .hero--article .lede { font-size: var(--step-1); color: var(--slate); }
  .hero--article .btn-row { margin-top: var(--space-xs); }

  /* =============== home: what are you working on (grid with photos) =============== */
  .picker { padding-block: var(--space-3xl); }
  .picker__head { max-width: 40rem; margin-bottom: var(--space-xl); }
  .picker__head h2 { font-size: var(--step-5); letter-spacing: -0.03em; }
  .picker__head p { color: var(--slate); font-size: var(--step-1); line-height: 1.5; margin-top: var(--space-s); max-width: 30em; }
  .picker__grid { list-style: none; padding: 0; display: grid; gap: 2px; grid-template-columns: repeat(4, 1fr); background: var(--line); border: 2px solid var(--line); border-radius: var(--r-l); overflow: clip; }
  .picker__grid li { display: grid; }
  .pick { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--navy); background: var(--white); min-height: 100%; }
  .pick__img { aspect-ratio: 3 / 2; overflow: clip; background: var(--mist); }
  .pick__body { display: grid; gap: 0.35rem; padding: 1rem 1.15rem 1.3rem; align-content: start; }
  .pick__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
  .pick:hover .pick__img img { transform: scale(1.05); }
  .pick__name { font-size: var(--step-1); font-weight: 640; font-stretch: 106%; letter-spacing: -0.015em; line-height: 1.2; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.18em; transition: text-decoration-color var(--dur-micro) var(--ease-ui); }
  .pick:hover .pick__name { text-decoration-color: var(--navy); }
  .pick__blurb { color: var(--slate); font-size: 0.95rem; line-height: 1.45; }
  .pick--ask { background: var(--white); color: var(--white); }
  .pick__img--mark { display: grid; place-items: center; background: var(--white); }
  .pick__mark { width: 52%; aspect-ratio: 512 / 512; background: var(--navy); -webkit-mask: url("/assets/img/mark-mask.png") center / contain no-repeat; mask: url("/assets/img/mark-mask.png") center / contain no-repeat; }
  .pick--ask .pick__body { background: var(--navy); }
  .pick--ask .pick__name { color: var(--white); }
  .pick--ask .pick__blurb { color: rgba(255, 255, 255, 0.75); }
  .pick--ask:hover .pick__name { text-decoration-color: var(--sky); }
  @media (max-width: 899px) { .picker__grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 599px) { .pick__blurb { display: none; } .pick__name { font-size: 1rem; } .pick__body { padding: 0.8rem 0.9rem 1rem; } }

  /* =============== home: why not a bank (two panels, rows that light up as you scroll) =============== */
  .compare { padding-block: var(--space-2xl) var(--space-3xl); }
  .compare__head { max-width: 40rem; margin-bottom: var(--space-xl); }
  .compare__head h2 { font-size: var(--step-4); }
  .compare__head p { color: var(--slate); margin-top: var(--space-s); font-size: var(--step-1); line-height: 1.5; }
  .compare__panels { display: grid; gap: var(--space-m); }
  @media (min-width: 800px) { .compare__panels { grid-template-columns: 1fr 1fr; gap: var(--space-l); align-items: stretch; } }
  .panel { border-radius: var(--r-l); padding: var(--space-l); display: grid; align-content: start; gap: var(--space-s); }
  .panel h3 { font-size: var(--step-2); }
  .panel ol { list-style: none; padding: 0; margin: var(--space-s) 0 0; display: grid; }
  .panel li { display: grid; gap: 0.15rem; padding: 0.95rem 0; border-top: 1px solid var(--c-line); }
  .panel li small { font-size: 0.85rem; color: var(--c-muted); }
  .panel li span { font-size: 1.05rem; font-weight: 560; }
  .panel--bank { background: var(--mist); color: var(--slate); --c-line: var(--line); --c-muted: var(--slate); }
  .panel--bank h3 { color: var(--slate); font-weight: 600; }
  .panel--bank li span { color: var(--ink); font-weight: 480; }
  .panel--me { background: var(--navy); color: var(--white); --c-line: rgba(255, 255, 255, 0.16); --c-muted: rgba(255, 255, 255, 0.68); }
  .panel--me h3 { color: var(--white); }
  .panel--me li { position: relative; padding-left: 1.6rem; }
  .panel--me li::before { content: ""; position: absolute; left: 0; top: 1.3rem; width: 0.9rem; height: 0.5rem; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg); }
  .panel--me .btn { justify-self: start; margin-top: var(--space-m); --c-accent: var(--white); --c-on-accent: var(--navy); --c-accent-hover: var(--mist); }
  .panel .tag { font-size: 0.85rem; letter-spacing: 0; color: var(--c-muted); }

  /* =============== home + services: steps (the one dark band) =============== */
  .steps { padding-block: var(--space-3xl); }
  .steps h2 { font-size: var(--step-5); max-width: 16ch; letter-spacing: -0.03em; }
  .steps__intro { color: var(--c-muted); font-size: var(--step-1); line-height: 1.5; max-width: 36em; margin-top: var(--space-s); }
  .steps__track { position: relative; margin-top: var(--space-2xl); }
  .steps__rail, .steps__fill { position: absolute; left: 0; right: 0; top: 1.25rem; height: 2px; }
  .steps__rail { background: rgba(255, 255, 255, 0.14); }
  .steps__fill { background: var(--sky); transform-origin: left; }
  .steps__list { position: relative; list-style: none; padding: 0; display: grid; gap: var(--space-l); counter-reset: s; }
  @media (min-width: 900px) { .steps__list { grid-template-columns: repeat(4, 1fr); } }
  .steps__list li { counter-increment: s; }
  .steps__list li::before { content: counter(s); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--deep); border: 2px solid var(--sky); color: var(--white); font-weight: 620; margin-bottom: 1.4rem; }
  .steps__list h3 { font-size: var(--step-1); font-stretch: 104%; margin-bottom: 0.5rem; }
  .steps__list p { color: var(--c-muted); max-width: 30ch; }
  .steps__foot { margin-top: var(--space-xl); }
  @media (max-width: 899px) {
    .steps__rail, .steps__fill { left: 1.2rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
    .steps__fill { transform-origin: top; }
    .steps__list li { padding-left: 4rem; position: relative; }
    .steps__list li::before { position: absolute; left: 0; top: -0.3rem; margin: 0; }
  }

  /* =============== home: full-bleed local expert photo, with the ABW photo card =============== */
  .local { position: relative; isolation: isolate; overflow: clip; background: var(--deep); color: var(--white); }
  .local__media { position: absolute; inset: 0; z-index: -1; }
  .local__media picture { position: absolute; inset: -8% 0; }
  .local__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
  .local__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 26, 38, 0.92) 0%, rgba(10, 26, 38, 0.55) 45%, rgba(10, 26, 38, 0.15) 80%); }
  .local__grid { display: grid; gap: var(--space-xl); padding-block: var(--space-3xl); align-items: end; }
  @media (min-width: 900px) { .local__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); } }
  .local__copy { display: grid; gap: var(--space-s); }
  .local__copy h2 { font-size: var(--step-5); letter-spacing: -0.03em; max-width: 15ch; color: var(--white); }
  .local__copy p { color: rgba(255, 255, 255, 0.84); font-size: var(--step-1); line-height: 1.5; max-width: 36em; }
  .local__copy .btn-row { margin-top: var(--space-s); }
  .local .btn { --c-accent: var(--white); --c-on-accent: var(--navy); --c-accent-hover: var(--mist); }
  .local__card { margin: 0; background: var(--white); padding: 0.6rem; border-radius: var(--r-m); display: grid; gap: 0.5rem; max-width: 30rem; justify-self: end; width: 100%; }
  .local__card img { border-radius: calc(var(--r-m) - 0.4rem); width: 100%; height: auto; }
  .local__card figcaption { color: var(--slate); font-size: 0.85rem; padding: 0 0.3rem 0.2rem; }

  /* =============== home: why work with Alex (intro + three columns with rules) =============== */

  /* =============== home: brokerage (quiet band, prose) =============== */
  .brokerage { padding-block: var(--space-2xl); border-top: 1px solid var(--line); }
  .brokerage__grid { display: grid; gap: var(--space-l); align-items: center; }
  @media (min-width: 900px) { .brokerage__grid { grid-template-columns: 3fr 9fr; gap: clamp(3rem, 7vw, 7rem); } }
  @media (max-width: 899px) { .brokerage__logo { justify-self: center; } }
  .brokerage__logo { width: min(12rem, 60%); aspect-ratio: 1; background: var(--navy); -webkit-mask: url("/assets/img/abw-mask.webp") center / contain no-repeat; mask: url("/assets/img/abw-mask.webp") center / contain no-repeat; }
  .brokerage h2 { font-size: var(--step-3); }
  .brokerage p { color: var(--ink); margin-top: var(--space-s); max-width: 60ch; font-size: var(--step-1); line-height: 1.5; }
  .brokerage p + p { font-size: 1rem; color: var(--slate); }

  /* =============== reviews: a carousel of client reviews =============== */
  .reviews { padding-block: var(--space-3xl); background: var(--mist); overflow: clip; }
  .reviews__head { display: grid; gap: var(--space-s); margin-bottom: var(--space-xl); }
  @media (min-width: 900px) { .reviews__head { grid-template-columns: 1fr auto; align-items: end; gap: var(--space-l); } }
  .reviews h2 { font-size: var(--step-4); }
  .reviews__intro { color: var(--slate); max-width: 34em; font-size: var(--step-1); line-height: 1.5; }
  .carousel__nav { display: flex; gap: 0.5rem; }
  .carousel__nav button { width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); display: grid; place-items: center; transition: background-color var(--dur-micro) var(--ease-ui), color var(--dur-micro) var(--ease-ui); }
  .carousel__nav button:hover { background: var(--navy); color: var(--white); }
  .carousel__nav button:disabled { opacity: 0.35; pointer-events: none; }
  .carousel__nav svg { width: 1.1rem; height: 1.1rem; }
  .carousel { display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 24rem); gap: var(--space-m); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-block: 0.25rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .carousel::-webkit-scrollbar { display: none; }
  .review { scroll-snap-align: start; background: var(--white); border-radius: var(--r-l); padding: var(--space-l); display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-m); min-height: 20rem; margin: 0; }
  .review h3 { font-size: var(--step-1); color: var(--navy); font-weight: 620; }
  .stars { display: flex; gap: 0.15rem; color: #e8a33d; }
  .stars svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
  .review { grid-template-rows: auto auto 1fr auto; }
  .review blockquote p { font-size: 1.08rem; line-height: 1.5; color: var(--navy); }
  .review figcaption { color: var(--slate); font-size: 0.95rem; }
  .review figcaption b { color: var(--ink); }
  .reviews .container { display: grid; }
  .reviews__widget { display: block; min-width: 0; }
  .reviews .container { grid-template-columns: minmax(0, 1fr); }
  .reviews__widget .reviews__foot { order: 0; margin: var(--space-l) 0 0; }
  .reviews__foot { margin-top: var(--space-l); display: flex; gap: var(--space-m); align-items: center; justify-content: space-between; flex-wrap: wrap; color: var(--slate); font-size: 0.95rem; }
  @media (min-width: 900px) { .reviews__foot { order: -1; margin: calc(-1 * var(--space-m)) 0 var(--space-m); } .reviews__head { order: -2; } }
  .carousel__dots { display: flex; gap: 0.4rem; }
  .carousel__dots i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--line); transition: background-color var(--dur-micro); }
  .carousel__dots i.is-on { background: var(--navy); }

  /* =============== FAQ section (narrow, one column) =============== */
  .faq-section { padding-block: var(--space-2xl) var(--space-3xl); }
  .faq-section .faq-wrap { max-width: 50rem; }
  .faq-section h2 { font-size: var(--step-4); margin-bottom: var(--space-l); }

  /* =============== services list (overview, 404) =============== */
  .svc-list { list-style: none; padding: 0; border-top: 1.5px solid var(--navy); }
  .svc-list li { border-bottom: 1px solid var(--line); }
  .svc-list a { display: grid; gap: 0.35rem 2rem; padding: 1.4rem 0; text-decoration: none; align-items: baseline; transition: padding var(--dur-ui) var(--ease-out); }
  .svc-list h3 { font-size: var(--step-2); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.18em; transition: text-decoration-color var(--dur-micro) var(--ease-ui); }
  .svc-list p { color: var(--slate); max-width: 52ch; }
  .svc-list a:hover { padding-left: 1rem; }
  .svc-list a:hover h3 { text-decoration-color: var(--navy); }
  @media (min-width: 900px) { .svc-list a { grid-template-columns: 5fr 7fr; } .svc-list p { grid-row: 1; grid-column: 2; } }
  /* calculator link rows inside a guide (sections layer, so they beat the prose list rules) */
  .prose .tools ul.svc-list { gap: 0; border-top: 1.5px solid var(--navy); }
  .prose .tools ul.svc-list li { padding-left: 0; border-bottom: 1px solid var(--line); }
  .prose .tools ul.svc-list li::before { content: none; }
  .prose .tools ul.svc-list h3 { font-size: var(--step-1); font-stretch: 104%; letter-spacing: -0.01em; margin: 0; }
  .prose .tools ul.svc-list a { padding: 0.9rem 0; gap: 0.2rem 2rem; }
  .prose .tools ul.svc-list p { font-size: 0.95rem; margin: 0; }

  /* =============== service guide layout =============== */
  .article-section { padding-block: var(--space-2xl) var(--space-3xl); }
  .article { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); } /* minmax(0): a nowrap button in the aside must not widen the column past the container */
  @media (max-width: 359px) { .aside-card { padding: var(--space-m); } }
  @media (min-width: 1000px) { .article { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; } }
  .article__aside { display: grid; gap: var(--space-l); }
  @media (min-width: 1000px) { .article__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
  .toc { border-left: 2px solid var(--line); padding-left: var(--space-m); }
  .toc h2 { font-size: 0.95rem; font-stretch: 100%; letter-spacing: 0; color: var(--slate); font-weight: 600; margin-bottom: 0.8rem; }
  .toc ol { list-style: none; padding: 0; display: grid; gap: 0.55rem; font-size: 0.97rem; }
  .toc a { text-decoration: none; color: var(--slate); transition: color var(--dur-micro) var(--ease-ui); }
  .toc a:hover, .toc a.is-current { color: var(--navy); font-weight: 600; }
  .aside-card { background: var(--navy); color: rgba(255, 255, 255, 0.82); border-radius: var(--r-m); padding: var(--space-l); display: grid; gap: var(--space-s); }
  .aside-card h2 { color: var(--white); font-size: var(--step-2); }
  .aside-card .btn { --c-accent: var(--white); --c-on-accent: var(--navy); --c-accent-hover: var(--mist); justify-self: start; }
  .aside-card a:not(.btn) { color: var(--white); font-weight: 620; }
  .article .faq { margin-top: var(--space-xl); }
  .article .faq-title { font-size: var(--step-3); margin-top: var(--space-2xl); margin-bottom: var(--space-m); }
  .author { display: grid; grid-template-columns: auto 1fr; gap: var(--space-m); align-items: center; margin-top: var(--space-2xl); padding-top: var(--space-l); border-top: 1px solid var(--line); max-width: 68ch; }
  .author picture { width: 4.5rem; height: 4.5rem; border-radius: 50%; overflow: hidden; background: var(--mist); display: block; }
  .author img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
  .author p { color: var(--slate); font-size: 0.95rem; line-height: 1.5; }
  .author b { color: var(--ink); }
  .also { margin-top: var(--space-xl); display: grid; gap: 0.6rem; }
  .also h2 { font-size: 0.95rem; font-stretch: 100%; letter-spacing: 0; color: var(--slate); font-weight: 600; }

  /* =============== about =============== */
  .about-intro { padding-block: var(--space-3xl) var(--space-2xl); }
  .about-intro p { font-size: var(--step-2); line-height: 1.4; color: var(--navy); font-weight: 450; letter-spacing: -0.012em; max-width: 30em; }
  .about-balance { padding-block: var(--space-2xl); background: var(--mist); }
  .about-balance__grid { display: grid; gap: var(--space-xl); }
  @media (min-width: 900px) { .about-balance__grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; } }
  .about-photo { border-radius: var(--r-l); overflow: clip; aspect-ratio: 4 / 5; background: var(--line); }
  .about-photo picture { display: block; height: 100%; }
  .about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
  /* connecting people: photo of Alex right, copy left, then his values as three columns */
  .about-why { padding-block: var(--space-3xl) var(--space-2xl); }
  .about-why__grid { display: grid; gap: var(--space-xl); }
  @media (min-width: 900px) { .about-why__grid { grid-template-columns: 7fr 5fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; } }
  .about-why h2 { font-size: var(--step-4); margin-bottom: var(--space-m); }
  .about-why .prose p { font-size: var(--step-1); line-height: 1.5; }
  .about-why__photo { border-radius: var(--r-l); overflow: clip; aspect-ratio: 4 / 5; background: var(--mist); }
  .about-why__photo picture { display: block; height: 100%; }
  .about-why__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
  .values { list-style: none; padding: 0; margin-top: var(--space-l); display: grid; gap: var(--space-m); }
  .values h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
  .values p { color: var(--slate); }
  .about-licence { padding-block: var(--space-3xl); }
  .about-licence__grid { display: grid; gap: var(--space-xl); align-items: center; }
  @media (min-width: 900px) { .about-licence__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(3rem, 7vw, 7rem); } }
  .about-licence h2 { font-size: var(--step-4); }
  .about-licence p { color: var(--c-muted); margin-top: var(--space-s); font-size: var(--step-1); line-height: 1.5; max-width: 36em; }
  .licence-card { background: var(--white); color: var(--ink); border-radius: var(--r-l); padding: var(--space-l); display: grid; gap: var(--space-m); }
  .licence-card__logos { display: flex; justify-content: space-between; align-items: center; gap: var(--space-m); padding-bottom: var(--space-m); border-bottom: 1.5px solid var(--navy); }
  .licence-card__logos .logo { color: var(--navy); width: 5.5rem; }
  .licence-card__abw { width: 4.5rem; aspect-ratio: 1; background: var(--navy); -webkit-mask: url("/assets/img/abw-mask.webp") center / contain no-repeat; mask: url("/assets/img/abw-mask.webp") center / contain no-repeat; }
  .licence-card dl { display: grid; gap: 0; }
  .licence-card dl div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .licence-card dl div:last-child { border-bottom: 0; }
  .licence-card dt { color: var(--slate); font-size: 0.9rem; }
  .licence-card dd { color: var(--navy); font-weight: 620; font-stretch: 104%; line-height: 1.3; }
  @media (max-width: 479px) { .licence-card dl div { grid-template-columns: 1fr; gap: 0.1rem; } }

  /* =============== contact =============== */
  .contact-section { padding-block: var(--space-2xl) var(--space-3xl); }
  .contact-grid { display: grid; gap: var(--space-xl); }
  @media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; } }
  .contact-ways { display: grid; gap: var(--space-l); align-content: start; }
  .contact-ways h2 { font-size: var(--step-3); }
  .contact-way { display: grid; gap: 0.2rem; padding-bottom: var(--space-m); border-bottom: 1px solid var(--line); }
  .contact-way dt { color: var(--slate); font-size: 0.95rem; }
  .contact-way dd { font-size: var(--step-2); font-weight: 620; color: var(--navy); font-stretch: 104%; letter-spacing: -0.01em; overflow-wrap: anywhere; }
  @media (max-width: 479px) { .contact-way dd { font-size: var(--step-1); } }
  .contact-way dd a { text-decoration: none; }
  .contact-way dd a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

  /* =============== Blog (listing + post). Markers and placeholders: docs/site-guide/blog.md =============== */
  /* listing: the first card is the feature, the rest sit in a grid; the dashboard writes the cards */
  .blog-index { padding-block: var(--space-2xl) var(--space-3xl); }
  .blog-index__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.4rem var(--space-l); padding-bottom: var(--space-s); margin-bottom: var(--space-l); border-bottom: 1.5px solid var(--navy); }
  .blog-index__head h2 { font-size: var(--step-3); }
  .blog-index__head p { color: var(--slate); font-size: 0.95rem; }
  .post-list { display: grid; gap: var(--space-xl) var(--space-l); }
  @media (min-width: 640px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1100px) { .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .post-card__link { display: grid; grid-template-rows: auto 1fr; height: 100%; color: var(--navy); text-decoration: none; }
  .post-card__media { display: block; aspect-ratio: 3 / 2; overflow: clip; border-radius: var(--r-l); background: var(--mist); }
  .post-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
  .post-card__link:hover .post-card__image { transform: scale(1.04); }
  .post-card__media:has(.post-card__mark) { display: grid; place-items: center; background: var(--navy); }
  .post-card__mark { display: block; width: 34%; aspect-ratio: 1; background: var(--white); -webkit-mask: url("/assets/img/mark-mask.png") center / contain no-repeat; mask: url("/assets/img/mark-mask.png") center / contain no-repeat; }
  .post-card__body { display: grid; gap: 0.55rem; align-content: start; padding-top: 1.1rem; }
  .post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.7rem; font-size: 0.88rem; color: var(--slate); }
  .post-card__meta > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-right: 0.7rem; border-radius: 50%; background: currentColor; vertical-align: middle; }
  .post-card__category { color: var(--lake); font-weight: 600; }
  .post-card__title { font-size: var(--step-2); line-height: 1.12; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.16em; transition: text-decoration-color var(--dur-micro) var(--ease-ui); }
  .post-card__link:hover .post-card__title { text-decoration-color: var(--navy); }
  .post-card__excerpt { color: var(--slate); line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .post-card__more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; color: var(--lake); font-weight: 600; font-size: 0.95rem; }
  .post-card__more svg { width: 1rem; height: 1rem; transition: transform var(--dur-ui) var(--ease-out); }
  .post-card__link:hover .post-card__more svg { transform: translateX(4px); }
  @media (min-width: 900px) {
    .post-list > .post-card:first-child { grid-column: 1 / -1; padding-bottom: var(--space-xl); border-bottom: 1px solid var(--line); }
    .post-card:first-child .post-card__link { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
    .post-card:first-child .post-card__body { padding-top: 0; gap: 0.8rem; }
    .post-card:first-child .post-card__title { font-size: var(--step-3); line-height: 1.06; letter-spacing: -0.02em; }
    .post-card:first-child .post-card__excerpt { font-size: var(--step-1); -webkit-line-clamp: 4; line-clamp: 4; }
  }
  .post-list__empty { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-m); align-items: center; padding: var(--space-l); background: var(--mist); border-radius: var(--r-l); }
  .post-list__mark { display: grid; place-items: center; width: 4.5rem; aspect-ratio: 1; border-radius: 50%; background: var(--white); }
  .post-list__mark::before { content: ""; width: 62%; aspect-ratio: 1; background: var(--navy); -webkit-mask: url("/assets/img/mark-mask.png") center / contain no-repeat; mask: url("/assets/img/mark-mask.png") center / contain no-repeat; }
  .post-list__empty p { color: var(--navy); font-size: var(--step-1); line-height: 1.45; max-width: 40ch; }
  @media (max-width: 479px) { .post-list__empty { grid-template-columns: 1fr; } }
  .blog-guides { padding-block: 0 var(--space-3xl); }
  .blog-guides__calc { margin-top: var(--space-l); color: var(--slate); }

  /* post: a light head (mist) with the hero photo stepping down out of it, then the guide layout */
  .post-head { --overlap: clamp(3rem, 9vw, 7.5rem); background: var(--mist); padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-xl); }
  .post-head:has(+ .post-hero) { padding-bottom: calc(var(--space-xl) + var(--overlap)); }
  .post-head__inner { display: grid; gap: var(--space-s); justify-items: start; }
  .post-head__title { font-size: var(--step-5); line-height: 1.03; letter-spacing: -0.03em; font-stretch: 108%; max-width: 22ch; }
  .crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.55rem; font-size: 0.88rem; color: var(--slate); margin-bottom: var(--space-xs); }
  .crumbs li { min-width: 0; }
  .crumbs li + li::before { content: "/"; margin-right: 0.55rem; color: var(--line); }
  .crumbs a { text-decoration: none; color: var(--slate); }
  .crumbs a:hover { color: var(--navy); text-decoration: underline; }
  .crumbs [aria-current] { color: var(--ink); }
  @media (max-width: 599px) { .crumbs [aria-current] { display: none; } } /* phones: Home / Blog only, the title is right below */
  .byline { display: grid; grid-template-columns: auto auto; column-gap: 0.85rem; align-items: center; justify-content: start; margin-top: var(--space-xs); }
  .byline__photo { grid-row: span 2; width: 3.25rem; height: 3.25rem; border-radius: 50%; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
  .byline__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
  .byline__who { color: var(--ink); font-weight: 620; line-height: 1.3; }
  .byline__title { color: var(--slate); font-weight: 450; }
  .byline__title::before { content: " · "; }
  .byline__meta { display: flex; flex-wrap: wrap; gap: 0 0.6rem; color: var(--slate); font-size: 0.9rem; line-height: 1.3; }
  .byline__meta > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-right: 0.6rem; border-radius: 50%; background: currentColor; vertical-align: middle; }
  @media (max-width: 479px) { .byline__meta .byline__licence { flex-basis: 100%; } .byline__meta .byline__licence::before { display: none; } }
  .post-hero { margin-top: calc(-1 * clamp(3rem, 9vw, 7.5rem)); }
  .post-hero img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-l); background: var(--line); }
  @media (max-width: 599px) { .post-hero img { aspect-ratio: 3 / 2; border-radius: var(--r-m); } }
  .post-main { padding-block: var(--space-2xl) var(--space-3xl); }
  @media (max-width: 999px) { .post .toc { display: none; } }

  .post-flow { display: grid; gap: 1.05em; }
  .post-flow > h3 { font-size: var(--step-1); margin-top: 0.6em; }
  .post-flow > h4 { font-size: var(--step-0); margin-top: 0.4em; }
  .post-flow blockquote { border-left: 2px solid var(--navy); padding-left: var(--space-m); color: var(--navy); font-size: var(--step-1); line-height: 1.5; }
  .post-flow table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
  @media (max-width: 599px) { .post-flow table { display: block; overflow-x: auto; } } /* wide tables scroll sideways on phones */
  .post-flow th, .post-flow td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
  .post-flow th { background: var(--mist); color: var(--navy); font-weight: 620; }
  .post-flow img { border-radius: var(--r-m); }
  /* Generated posts arrive with inline table styles (15px text, grey header,
     grey borders) meant for Webflow's rich text; on this site the table follows
     the site's own design, so those inline values are overridden. */
  .post-flow table[style] { width: 100% !important; font-size: 1em !important; }
  .post-flow tr[style] { background: none !important; }
  .post-flow :is(th, td)[style] { border: 0 !important; border-bottom: 1px solid var(--line) !important; padding: 0.7rem 0.9rem !important; text-align: left !important; }
  .post-flow th[style] { background: var(--mist) !important; }
  /* A post cites a source in most paragraphs, so its links stay at body weight
     (blue, underlined) instead of the bold links of the service pages. */
  .post-body a:not(.btn):not(.text-link) { font-weight: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
  .post-body strong a, .post-body a strong { font-weight: 600; }
  .post-conclusion { padding-top: var(--space-m); border-top: 1px solid var(--line); margin-top: var(--space-s); }

  .post-panel { display: grid; gap: 0.7rem; padding: var(--space-m) var(--space-l); border-radius: var(--r-m); background: var(--mist); }
  .post-panel > div { display: grid; gap: 0.8em; }
  .post-panel p, .post-panel li { color: var(--ink); }
  .prose .post-panel__label { display: inline-flex; align-items: center; gap: 0.6em; margin: 0; font-size: var(--step--1); font-stretch: 100%; font-weight: 600; letter-spacing: 0.01em; line-height: 1.4; color: var(--lake); }
  .post-panel__label::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; flex: none; }
  .post-panel--takeaways { background: var(--white); border: 1.5px solid var(--line); }
  .prose .post-panel--takeaways ul li { padding-left: 1.7em; }
  .prose .post-panel--takeaways ul li::before { left: 0.1em; top: 0.42em; width: 0.8em; height: 0.42em; background: none; border-left: 2px solid var(--lake); border-bottom: 2px solid var(--lake); transform: rotate(-45deg); }

  /* the FAQ arrives as <div class="post-faq"><h2>…</h2><details><summary>…</summary><div>…</div></details>…</div> */
  .post-questions { margin-top: var(--space-l); }
  .post-faq h2 { font-size: var(--step-3); margin-bottom: var(--space-m); }
  .post-faq details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
  .post-faq h2 + details { border-top: 1px solid var(--line); }
  .post-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-m); padding-block: 1.2rem; font-size: var(--step-1); font-weight: 600; font-stretch: 104%; color: var(--navy); letter-spacing: -0.01em; line-height: 1.3; }
  .post-faq summary::-webkit-details-marker { display: none; }
  .post-faq summary::after { content: ""; flex: none; width: 1.6rem; height: 1.6rem; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform var(--dur-ui) var(--ease-out); }
  .post-faq details[open] summary::after { transform: rotate(45deg); }
  .post-faq details::details-content { height: 0; overflow: clip; transition: height var(--dur-ui) var(--ease-out), content-visibility var(--dur-ui) allow-discrete; }
  .post-faq details[open]::details-content { height: auto; }
  .post-faq details > div { padding: 0 3rem 1.5rem 0; transition: visibility 0s linear var(--dur-ui); } /* block, not grid: an answer is inline text with links in it */
  /* a closed answer keeps its layout box under the clip; hide it like the home FAQ does, so it never sits on the content below */
  .post-faq details:not([open]) > div { visibility: hidden; }
  .post-faq details[open] > div { visibility: visible; transition-delay: 0s; }
  .post-faq details > div > * + * { margin-top: 0.8em; }

  /* the fixed author card at the end of every post: photo, name, role and
     licence, then the two actions. Laid out by the card's own width (narrow
     beside the sidebar on a laptop and on a phone): the actions sit under the
     text when narrow and to the right when wide. */
  .post-author { container-type: inline-size; margin-top: var(--space-xl); padding: var(--space-m) clamp(1rem, 4cqi, var(--space-l)); border: 1.5px solid var(--line); border-radius: var(--r-l); }
  .post-author__inner { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; gap: var(--space-s) 1rem; }
  .post-author__photo { width: 4.5rem; aspect-ratio: 1; border-radius: 50%; overflow: clip; background: var(--mist); }
  .post-author__photo picture { display: block; height: 100%; }
  .post-author__photo img { width: 100%; height: 100%; object-fit: cover; }
  .post-author__copy { display: grid; gap: 0.15rem; }
  .prose .post-author h2 { font-size: var(--step-1); margin: 0; line-height: 1.2; }
  .prose .post-author__role { margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.4; }
  .prose .post-author__licence { margin: 0; color: var(--slate); font-size: 0.85rem; line-height: 1.4; }
  .post-author__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .post-author__actions .btn { flex: 1 1 12rem; justify-content: center; }
  @container (max-width: 20rem) {
    .post-author__inner { grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 0.8rem; }
    .post-author__photo { width: 3.5rem; }
  }
  @container (min-width: 40rem) {
    .post-author__inner { grid-template-columns: 5rem minmax(0, 1fr) auto; column-gap: var(--space-m); }
    .post-author__photo { width: 5rem; }
    .post-author__actions { grid-column: auto; flex-direction: column; }
    .post-author__actions .btn { flex: none; }
  }
  .post-back { margin-top: var(--space-l); }
  .post-back a { display: inline-flex; align-items: center; gap: 0.5rem; }
  .post-back svg { width: 1rem; height: 1rem; }
}

/* -------------------------------------------------------------------------- */
@layer motion {
  .motion [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition:
      opacity var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms),
      transform var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms);
  }
  .motion [data-reveal].is-revealed { opacity: 1; transform: none; }

  .motion [data-reveal="media"] { opacity: 1; transform: none; overflow: clip; }
  .motion [data-reveal="media"] > * {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1400ms var(--ease-in-out) var(--reveal-delay, 0ms);
  }
  .motion [data-reveal="media"] :is(img, video) {
    transform: scale(1.12);
    transition:
      clip-path 1400ms var(--ease-in-out) var(--reveal-delay, 0ms),
      transform 1800ms var(--ease-out) var(--reveal-delay, 0ms);
  }
  .motion [data-reveal="media"].is-revealed > * { clip-path: inset(0); }
  .motion [data-reveal="media"].is-revealed :is(img, video) { transform: none; }

  /* The hero intro's start state, so the first paint is the "before" frame and the intro is the first thing
     that moves (without this the page paints finished, then the intro replays over it once fonts are ready).
     Only while motion is starting: is-ready ends it, and the failsafe removes .motion if motion never starts. */
  .motion:not(.is-ready) [data-module="hero"] .hero__alex { opacity: 0; }
  .motion:not(.is-ready) [data-module="hero"] .hero__word { transform: translateY(42%); }
  @media (max-width: 899px) { .motion:not(.is-ready) [data-module="hero"] .hero__word { transform: translateY(70%); } }
  .motion [data-split]:not(.is-split) { visibility: hidden; }
  .motion [data-split] .split-line {
    transform: translateY(110%);
    transition: transform var(--dur-line) var(--ease-out);
    transition-delay: calc(var(--reveal-delay, 0ms) + var(--i, 0) * 80ms);
  }
  .motion [data-split].is-revealed .split-line { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* -------------------------------------------------------------------------- */
@layer utilities {
  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .mt-l { margin-top: var(--space-l); }
  .mt-xl { margin-top: var(--space-xl); }
}
