/* ==========================================================================
   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.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  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; }
  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.png") center / contain no-repeat; mask: url("/assets/img/logo-mask.png") 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; } }

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

  /* ---------- 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-l); padding-block: var(--space-2xl); }
  .cta-band h2 { font-size: var(--step-4); max-width: 16ch; }
  .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-s); }
  .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-2xl) 0; align-items: end; }
    .cta-band__copy { padding-bottom: var(--space-2xl); align-self: center; }
    .cta-band__alex { display: block; justify-self: end; width: min(100%, 22rem); margin-top: var(--space-l); }
    .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: 5fr 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.png") center / contain no-repeat; mask: url("/assets/img/abw-mask.png") 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: none; }
    .hero__float { display: block; float: right; width: 40%; height: auto; max-width: none; margin: 0 -7% 0 0.4rem; shape-margin: 0.5rem; filter: drop-shadow(0 8px 20px rgba(5, 15, 24, 0.45)); }
    .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: auto; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; }
    .hero--home .hero__scene picture { inset: -34% -2% auto; height: 134%; }
    .hero--home .hero__scene img { object-position: 58% 50%; }
    .hero--home .hero__word { font-size: 21vw; top: 150px; }
    .hero--home .hero__scrim { -webkit-mask-image: none; mask-image: none; background: linear-gradient(0deg, rgba(7, 20, 32, 0.94) 0%, rgba(7, 20, 32, 0.78) 32%, rgba(7, 20, 32, 0.25) 58%, rgba(7, 20, 32, 0) 75%); }
    .hero--home .hero__alex { display: none; }
    .hero--home .hero__scrim { background: linear-gradient(0deg, rgba(7, 20, 32, 0.97) 0%, rgba(7, 20, 32, 0.86) 34%, rgba(7, 20, 32, 0.3) 58%, rgba(7, 20, 32, 0) 75%); }
    .hero--home .hero__copy { position: relative; left: 0; right: 0; bottom: auto; width: auto; padding: 0 var(--gutter) var(--space-l); margin-top: 15rem; }
    .hero--home .hero__copy .label { display: none; }
    .hero--home .hero__copy .label { font-size: 0.8rem; }
    .hero--home h1 { font-size: 1.75rem; margin: 0 0 0.7rem; max-width: none; }
    .hero--home .lede { font-size: 0.97rem; max-width: none; }
    .hero--home .btn-row { margin-top: 1rem; gap: 0.6rem; clear: both; }
    .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%; }
  @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(560px, 86svh); }
    .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 { float: none; width: 50%; margin: 0 -4% 0 0; justify-self: end; }
    .hero--page.has-alex .hero__scrim { background: linear-gradient(0deg, rgba(7, 20, 32, 0.97) 0%, rgba(7, 20, 32, 0.86) 38%, rgba(7, 20, 32, 0.3) 62%, rgba(7, 20, 32, 0.05) 80%); }
    .hero--page.has-alex .hero__copy { padding-top: calc(var(--header-h) + 6rem); padding-bottom: var(--space-xl); }
    .hero--page.has-alex h1 { font-size: 1.85rem; }
    .hero--page.has-alex .btn-row { clear: both; }
    .hero--page.has-alex .lede { font-size: 0.98rem; }
    .hero--page .btn__num { display: none; }
    .hero--page .btn { padding-inline: 1rem; font-size: 0.95rem; }
  }
  @media (min-width: 900px) { .hero--page.has-alex .hero__copy > * { max-width: min(44rem, 52vw); } }

  /* 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: 14ch; 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) =============== */
  .why { padding-block: var(--space-3xl) var(--space-2xl); }
  .why__head { max-width: 44rem; }
  .why__head h2 { font-size: var(--step-4); }
  .why__head p { color: var(--ink); margin-top: var(--space-s); font-size: var(--step-1); line-height: 1.5; max-width: 40em; }
  .why__cols { list-style: none; padding: 0; margin-top: var(--space-xl); display: grid; gap: var(--space-l); }
  @media (min-width: 700px) { .why__cols { grid-template-columns: repeat(3, 1fr); } }
  .why__cols li { border-top: 2px solid var(--navy); padding-top: var(--space-m); }
  .why__cols h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
  .why__cols p { color: var(--slate); max-width: 30ch; }
  .why__foot { margin-top: var(--space-xl); color: var(--ink); max-width: 60ch; }

  /* =============== 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.png") center / contain no-repeat; mask: url("/assets/img/abw-mask.png") 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__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; } }

  /* =============== service guide layout =============== */
  .article-section { padding-block: var(--space-2xl) var(--space-3xl); }
  .article { display: grid; gap: var(--space-2xl); }
  @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-2xl); display: grid; gap: var(--space-l); }
  @media (min-width: 700px) { .values { grid-template-columns: repeat(3, 1fr); } }
  .values li { border-top: 2px solid var(--navy); padding-top: var(--space-m); }
  .values h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
  .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.png") center / contain no-repeat; mask: url("/assets/img/abw-mask.png") 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; }
}

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

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