/* ==========================================================================
   Sky Oasis Digital — main stylesheet
   Architecture: CSS cascade layers, mobile-first, single file for zero
   build-step deployment. Edit within the relevant @layer block.
   ========================================================================== */

@layer tokens, base, layout, components, sections, utilities;

/* ==========================================================================
   TOKENS
   ========================================================================== */
@layer tokens {
  :root {
    /* --- Brand palette -------------------------------------------------- */
    --forest: #0E4034;   /* primary surface + all body text                 */
    --vital:  #1C7A5E;   /* interactive only: if it's this green, it clicks */
    --mint:   #7FD4AE;   /* highlights, focus rings, on-dark accents        */
    --linen:  #E8E2D6;   /* warm editorial sections                         */
    --mist:   #EDF3EF;   /* cards, subtle fills                             */
    --paper:  #FBFAF7;   /* page background                                 */

    /* Derived tints. Kept as explicit tokens so contrast stays auditable.  */
    --forest-80: #3E6B5C;
    --forest-60: #6E938708;
    --on-dark:   #E9F0EC;
    --on-dark-muted: #9CC4B4;

    /* --- Semantic roles ------------------------------------------------- */
    --bg: var(--paper);
    --text: var(--forest);
    --text-muted: var(--forest-80);
    --rule: rgba(14, 64, 52, 0.14);
    --rule-dark: rgba(233, 240, 236, 0.18);

    /* --- Type ----------------------------------------------------------- */
    --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Fluid scale. clamp() keeps every size proportional without media
       queries, which also means zero layout shift between breakpoints.     */
    --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
    --step-0:  clamp(1rem, 0.96rem + 0.20vw, 1.13rem);
    --step-1:  clamp(1.20rem, 1.10rem + 0.50vw, 1.55rem);
    --step-2:  clamp(1.50rem, 1.30rem + 1.00vw, 2.30rem);
    --step-3:  clamp(1.95rem, 1.55rem + 2.00vw, 3.40rem);
    --step-4:  clamp(2.50rem, 1.70rem + 4.00vw, 5.20rem);
    --step-5:  clamp(3.10rem, 1.60rem + 7.50vw, 8.00rem);

    /* --- Space & layout ------------------------------------------------- */
    --gutter: clamp(1.25rem, 5vw, 3.5rem);
    --measure: 62ch;
    --section-y: clamp(3.25rem, 7vw, 6.5rem);
    --radius: 14px;
    --radius-lg: 26px;
    --header-h: 68px;

    /* --- Motion --------------------------------------------------------- */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 180ms;
    --dur: 420ms;
    --dur-slow: 900ms;

    --z-header: 100;
    --z-nav: 200;
    --z-sticky: 90;
    --z-preload: 300;
  }
}

/* ==========================================================================
   BASE
   ========================================================================== */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
  }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  body.is-locked { overflow: hidden; }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.022em;
    margin: 0;
    text-wrap: balance;
  }

  p { margin: 0 0 1em; text-wrap: pretty; }
  p:last-child { margin-bottom: 0; }

  a { color: var(--vital); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

  img, svg, video { max-width: 100%; height: auto; display: block; }

  ul { margin: 0; padding: 0; list-style: none; }

  button { font: inherit; color: inherit; cursor: pointer; }

  /* Focus: visible, on-brand, and never removed. */
  :focus-visible {
    outline: 2px solid var(--vital);
    outline-offset: 3px;
    border-radius: 4px;
  }
  .on-dark :focus-visible, .panel-dark :focus-visible { outline-color: var(--mint); }

  ::selection { background: var(--mint); color: var(--forest); }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
@layer layout {
  .shell {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .shell--narrow { max-width: 900px; }

  .section { padding-block: var(--section-y); position: relative; }

  .skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 999;
    background: var(--forest);
    color: var(--on-dark);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius) var(--radius);
    text-decoration: none;
    transition: top var(--dur-fast) var(--ease);
  }
  .skip-link:focus { top: 0; }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
@layer components {

  /* --- Eyebrow label -------------------------------------------------- */
  .eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--vital);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: currentColor;
    flex: none;
  }
  .on-dark .eyebrow { color: var(--mint); }

  /* --- Buttons -------------------------------------------------------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0 1.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.005em;
    transition: transform var(--dur-fast) var(--ease),
                background-color var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease);
  }
  .btn:active { transform: scale(0.97); }
  .btn svg { width: 19px; height: 19px; flex: none; }

  .btn--primary { background: var(--vital); color: #fff; }
  .btn--primary:hover { background: #17654E; }

  .btn--ghost { border-color: var(--rule); color: var(--forest); }
  .btn--ghost:hover { border-color: var(--forest); background: var(--mist); }

  .on-dark .btn--ghost { border-color: var(--rule-dark); color: var(--mint); }
  .on-dark .btn--ghost:hover { border-color: var(--mint); background: rgba(127, 212, 174, 0.1); }

  /* --- Logo ----------------------------------------------------------- */
  .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
  }
  .logo__mark { width: 34px; height: 34px; flex: none; }
  .logo__text {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .logo__text small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-top: 3px;
  }
  /* The arc draws itself once on load. */
  .logo__arc {
    stroke-dasharray: 96;
    stroke-dashoffset: 96;
    animation: draw 1.1s var(--ease) 0.15s forwards;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  /* --- Header --------------------------------------------------------- */
  .header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: var(--z-header);
    height: var(--header-h);
    display: flex;
    align-items: center;
    color: var(--on-dark);
    transition: transform var(--dur) var(--ease),
                background-color var(--dur) var(--ease),
                color var(--dur) var(--ease);
  }
  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
  }
  /* Two scrolled states, picked by what is actually behind the bar. Without
     both, light header text can land on the light page background. */
  .header.is-solid {
    background: rgba(251, 250, 247, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule);
    color: var(--forest);
  }
  .header.is-dark {
    background: rgba(14, 64, 52, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule-dark);
    color: var(--on-dark);
  }
  .header.is-hidden { transform: translateY(-100%); }

  /* No JS: the bar keeps a solid light background rather than relying on a
     class that will never be applied. */
  .no-js .header {
    background: rgba(251, 250, 247, 0.92);
    border-bottom: 1px solid var(--rule);
    color: var(--forest);
  }

  .header__actions { display: flex; align-items: center; gap: 0.75rem; }
  .header .btn--primary { min-height: 44px; padding: 0 1.25rem; font-size: 0.87rem; }

  /* --- Desktop navigation + mega menu ---------------------------------
     Both are display:none below the desktop breakpoint. The mega panel in
     particular MUST be hidden here: it lives inside the flex header, so
     without this it becomes a flex item and paints off the right edge. */
  .nav { display: none; }
  .mega { display: none; }

  @media (min-width: 1024px) {
    .nav { display: block; }
    .mega { display: block; }
    .nav__list { display: flex; align-items: center; gap: 0.25rem; }

    /* Anchors and buttons both wear this class. Without the explicit
       colour/decoration reset the <a> items inherit the base link rule and
       render as green underlined text while the <button> does not. */
    .nav__trigger {
      background: none;
      border: 0;
      padding: 0.6rem 0.9rem;
      border-radius: 999px;
      font-family: var(--font-body);
      font-size: 0.9rem;
      font-weight: 500;
      color: inherit;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      transition: background-color var(--dur-fast) var(--ease),
                  color var(--dur-fast) var(--ease);
    }
    .nav__trigger:hover, .nav__trigger[aria-expanded="true"] {
      background: rgba(127, 212, 174, 0.14);
    }
    .header.is-solid .nav__trigger:hover,
    .header.is-solid .nav__trigger[aria-expanded="true"] { background: var(--mist); }
    .nav__trigger svg {
      width: 11px; height: 11px;
      transition: transform var(--dur-fast) var(--ease);
    }
    .nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

    .mega {
      position: absolute;
      left: 0; right: 0;
      top: var(--header-h);
      background: var(--paper);
      border-bottom: 1px solid var(--rule);
      color: var(--forest);
      box-shadow: 0 24px 60px -30px rgba(14, 64, 52, 0.35);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);
      transition: opacity var(--dur) var(--ease),
                  transform var(--dur) var(--ease),
                  visibility var(--dur);
    }
    .mega.is-open { opacity: 1; visibility: visible; transform: none; }

    .mega__grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr) 0.9fr;
      gap: 2rem;
      padding-block: 2.75rem 3rem;
    }
    /* Nav group labels, deliberately not headings: they sit before the page
       <h1> in the DOM and would otherwise wreck heading navigation. */
    .mega__col .mega__label {
      font-family: var(--font-body);
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--vital);
      margin: 0 0 1rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid var(--rule);
    }
    .mega__col li + li { margin-top: 0.1rem; }
    .mega__col a {
      display: block;
      padding: 0.32rem 0;
      font-size: 0.88rem;
      color: var(--text-muted);
      text-decoration: none;
      transition: color var(--dur-fast) var(--ease),
                  transform var(--dur-fast) var(--ease);
    }
    .mega__col a:hover { color: var(--forest); transform: translateX(4px); }
    /* Money-maker services get typographic priority, not a coloured badge. */
    .mega__col a.is-featured { color: var(--forest); font-weight: 600; }
    .mega__col a.is-featured::after {
      content: "";
      display: inline-block;
      width: 5px; height: 5px;
      border-radius: 50%;
      background: var(--vital);
      margin-left: 0.45rem;
      vertical-align: 0.18em;
    }
    .mega__aside {
      background: var(--forest);
      color: var(--on-dark);
      border-radius: var(--radius);
      padding: 1.5rem 1.4rem;
      align-self: start;
    }
    .mega__aside .mega__label { color: var(--mint); border-bottom-color: var(--rule-dark); }
    .mega__aside li {
      font-size: 0.83rem;
      color: var(--on-dark-muted);
      padding: 0.18rem 0;
    }
  }

  /* --- Mobile navigation overlay -------------------------------------- */
  .burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0 10px;
    background: none;
    border: 0;
  }
  .burger span {
    display: block;
    height: 1.5px;
    background: currentColor;
    transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
  }
  .burger span:last-child { width: 65%; }
  @media (min-width: 1024px) { .burger { display: none; } }

  .mobilenav {
    position: fixed;
    inset: 0;
    z-index: var(--z-nav);
    background: var(--forest);
    color: var(--on-dark);
    display: flex;
    flex-direction: column;
    /* clip-path wipe reads as a panel arriving, not a fade. */
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path var(--dur-slow) var(--ease), visibility var(--dur-slow);
  }
  .mobilenav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }

  .mobilenav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    flex: none;
  }
  .mobilenav__close {
    width: 44px; height: 44px;
    background: none;
    border: 0;
    display: grid;
    place-items: center;
  }
  .mobilenav__close svg { width: 20px; height: 20px; }

  .mobilenav__body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-block: 1.5rem 2rem;
  }
  .mobilenav__item { border-bottom: 1px solid var(--rule-dark); }
  .mobilenav__item:first-child { border-top: 1px solid var(--rule-dark); }

  .mobilenav__trigger {
    width: 100%;
    background: none;
    border: 0;
    padding: 0.95rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 300;
    /* Standard, readable menu size — smaller than the previous display scale. */
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
    letter-spacing: -0.015em;
    color: var(--on-dark);
    /* Same reset as .nav__trigger — this class is used on <a> and <button>. */
    text-decoration: none;
    /* Staggered arrival, driven by --i set in the markup. */
    opacity: 0;
    transform: translateY(18px);
  }
  .mobilenav.is-open .mobilenav__trigger {
    animation: navIn 0.6s var(--ease) forwards;
    animation-delay: calc(120ms + var(--i) * 70ms);
  }
  @keyframes navIn { to { opacity: 1; transform: none; } }

  .mobilenav__trigger svg {
    width: 15px; height: 15px;
    flex: none;
    color: var(--mint);
    transition: transform var(--dur) var(--ease);
  }
  .mobilenav__trigger[aria-expanded="true"] svg { transform: rotate(45deg); }

  .mobilenav__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur) var(--ease);
  }
  .mobilenav__panel > div { overflow: hidden; }
  .mobilenav__trigger[aria-expanded="true"] + .mobilenav__panel { grid-template-rows: 1fr; }
  .mobilenav__panel a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--on-dark-muted);
    text-decoration: none;
  }
  .mobilenav__panel a:hover { color: var(--mint); }
  .mobilenav__panel ul { padding-bottom: 1.25rem; }

  .mobilenav__foot {
    flex: none;
    padding-block: 1.25rem 1.75rem;
    border-top: 1px solid var(--rule-dark);
  }
  .mobilenav__foot .btn { width: 100%; }

  /* --- Sticky WhatsApp CTA -------------------------------------------- */
  .sticky-cta {
    position: fixed;
    right: clamp(1rem, 4vw, 2rem);
    bottom: clamp(1rem, 4vw, 2rem);
    z-index: var(--z-sticky);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    height: 56px;
    padding: 0 1.4rem;
    background: var(--vital);
    color: #fff;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 34px -12px rgba(14, 64, 52, 0.55);
    opacity: 0;
    transform: translateY(16px) scale(0.94);
    pointer-events: none;
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                padding var(--dur) var(--ease);
  }
  .sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  /* Retracts to an icon while reading downward, expands on scroll-up. */
  .sticky-cta.is-compact { padding: 0 1.05rem; }
  .sticky-cta.is-compact .sticky-cta__label {
    max-width: 0;
    opacity: 0;
    margin-left: -0.6rem;
  }
  .sticky-cta__label {
    max-width: 12rem;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width var(--dur) var(--ease),
                opacity var(--dur-fast) var(--ease),
                margin var(--dur) var(--ease);
  }
  .sticky-cta svg { width: 22px; height: 22px; flex: none; }
  .sticky-cta__pulse {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1.5px solid var(--vital);
    animation: pulse 2.8s var(--ease-in-out) infinite;
  }
  @keyframes pulse {
    0%   { transform: scale(1); opacity: 0.7; }
    70%  { transform: scale(1.32); opacity: 0; }
    100% { transform: scale(1.32); opacity: 0; }
  }

  /* --- Preloader ------------------------------------------------------ */
  .preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preload);
    background: var(--forest);
    display: grid;
    place-items: center;
    transition: clip-path 0.85s var(--ease);
  }
  .preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
  .preloader svg { width: 84px; height: 84px; color: var(--mint); }

  /* --- Scroll reveal -------------------------------------------------- */
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
    transition-delay: var(--delay, 0ms);
  }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* Line-by-line mask wipe for display headlines. */
  .line { display: block; overflow: hidden; }
  .line > span {
    display: block;
    transform: translateY(105%);
    transition: transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .is-lit .line > span, .reveal.is-visible .line > span { transform: none; }

  /* --- Accordion (services + FAQ) ------------------------------------- */
  .acc__item { border-top: 1px solid var(--rule); }
  .acc__item:last-child { border-bottom: 1px solid var(--rule); }

  .acc__trigger {
    width: 100%;
    background: none;
    border: 0;
    padding: clamp(1.25rem, 3vw, 1.9rem) 0;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    text-align: left;
    transition: color var(--dur-fast) var(--ease);
  }
  .acc__trigger:hover { color: var(--vital); }
  .acc__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--step-2);
    line-height: 1.1;
    letter-spacing: -0.022em;
    flex: 1;
  }
  .acc__icon {
    flex: none;
    width: 22px; height: 22px;
    position: relative;
    align-self: center;
  }
  .acc__icon::before, .acc__icon::after {
    content: "";
    position: absolute;
    inset: 50% 0 auto 0;
    height: 1.5px;
    background: currentColor;
    transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
  }
  .acc__icon::after { transform: rotate(90deg); }
  [aria-expanded="true"] .acc__icon::after { transform: rotate(0); opacity: 0; }

  .acc__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur) var(--ease);
  }
  .acc__panel > div { overflow: hidden; }
  [aria-expanded="true"] + .acc__panel { grid-template-rows: 1fr; }

  .acc__inner { padding: 0 0 clamp(1.5rem, 4vw, 2.5rem) 0; }
  @media (min-width: 768px) { .acc__inner { padding-left: 0; } }

  .acc__list {
    display: grid;
    gap: 0 2.5rem;
    grid-template-columns: 1fr;
    max-width: 780px;
  }
  @media (min-width: 620px) { .acc__list { grid-template-columns: 1fr 1fr; } }
  .acc__list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.94rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }
  .acc__list li::before {
    content: "";
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--vital);
    flex: none;
  }

  /* --- Marquee -------------------------------------------------------- */
  .marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 0;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .marquee__track {
    display: flex;
    flex: none;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-right: clamp(1.5rem, 4vw, 3rem);
    animation: slide 46s linear infinite;
  }
  .marquee:hover .marquee__track,
  .marquee:focus-within .marquee__track { animation-play-state: paused; }
  @keyframes slide { to { transform: translateX(-100%); } }

  .marquee__item {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.7rem, 5.5vw, 3.6rem);
    letter-spacing: -0.025em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    color: var(--forest);
  }
  .marquee__item::after {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--vital);
    flex: none;
  }
  /* Alternate items sit outlined, so the row reads as a texture. */
  .marquee__item:nth-child(even) {
    color: transparent;
    -webkit-text-stroke: 1px var(--forest-80);
  }

  /* --- Arrow link ------------------------------------------------------ */
  .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    /* Vertical padding lifts these to a comfortable ~44px thumb target
       without changing where the text sits on the line. */
    padding-block: 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vital);
    text-decoration: none;
  }
  .link-arrow::after {
    content: "";
    width: 1.4rem;
    height: 1px;
    background: currentColor;
    transition: width var(--dur) var(--ease);
  }
  .link-arrow:hover::after, a:hover .link-arrow::after { width: 2.4rem; }
  .on-dark .link-arrow { color: var(--mint); }

  .lead { font-size: var(--step-1); line-height: 1.5; max-width: 46ch; }

  /* --- Service cards (services hub) ------------------------------------ */
  .scards { display: grid; gap: 1.25rem; }
  @media (min-width: 760px)  { .scards { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1180px) { .scards { grid-template-columns: repeat(3, 1fr); } }

  .scard { display: flex; }
  .scard__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--mist);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--forest);
    transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
  }
  .scard__link:hover { transform: translateY(-5px); background: var(--linen); }
  .scard__art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .scard__body { padding: clamp(1.35rem, 3vw, 1.9rem); display: flex; flex-direction: column; flex: 1; }
  .scard__title { font-size: var(--step-2); margin-bottom: 0.7rem; }
  .scard__tag { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1.25rem; }
  .scard__items { margin-bottom: 1.5rem; }
  .scard__items li {
    font-size: 0.86rem; color: var(--text-muted);
    padding: 0.32rem 0; border-bottom: 1px solid var(--rule);
  }
  .scard__items li.is-more { color: var(--vital); font-weight: 600; border-bottom: 0; }
  .scard__body .link-arrow { margin-top: auto; }

  /* --- Definition list (service detail) -------------------------------- */
  .deflist { border-top: 1px solid var(--rule); }
  .deflist__row {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1.35rem, 3vw, 2rem) 0;
    border-bottom: 1px solid var(--rule);
  }
  .deflist__row h3 { font-size: var(--step-1); margin-bottom: 0.45rem; }
  .deflist__row p { font-size: 0.94rem; color: var(--text-muted); max-width: 56ch; margin: 0; }

  /* --- Mini cards (cross-links, 404) ----------------------------------- */
  .minicards { display: grid; gap: 1rem; }
  @media (min-width: 700px)  { .minicards { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1080px) { .minicards { grid-template-columns: repeat(4, 1fr); } }
  .minicard {
    display: flex; flex-direction: column;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: var(--mist);
    border-radius: var(--radius);
    text-decoration: none; color: var(--forest);
    transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
  }
  .minicard:hover { transform: translateY(-4px); background: var(--linen); }
  .minicard h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
  .minicard p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem; }
  .minicard .link-arrow { margin-top: auto; }
  .on-dark .minicard { background: rgba(233, 240, 236, 0.07); color: var(--on-dark); }
  .on-dark .minicard:hover { background: rgba(233, 240, 236, 0.12); }

  /* --- Specialty grid -------------------------------------------------- */
  .specgrid { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
  @media (min-width: 720px)  { .specgrid { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1100px) { .specgrid { grid-template-columns: repeat(3, 1fr); } }
  .spec { background: var(--paper); padding: clamp(1.5rem, 4vw, 2.25rem); }
  .spec__title { font-size: var(--step-2); margin: 0 0 0.7rem; }
  .spec__desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.35rem; }

  /* --- Beliefs (about) ------------------------------------------------- */
  .beliefs { display: grid; gap: 1px; background: var(--rule-dark); }
  @media (min-width: 720px)  { .beliefs { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1100px) { .beliefs { grid-template-columns: repeat(4, 1fr); } }
  .belief { background: var(--forest); padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 1.75rem); }
  .belief h3 { font-size: var(--step-1); margin-bottom: 0.75rem; }
  .belief p { font-size: 0.88rem; color: var(--on-dark-muted); margin: 0; }

  /* --- Step list (home preview of the process) ------------------------- */
  .steplist { counter-reset: none; }
  .steplist li {
    display: flex; gap: 1.25rem;
    padding: clamp(1.1rem, 3vw, 1.6rem) 0;
    border-bottom: 1px solid var(--rule);
  }
  .steplist li:first-child { border-top: 1px solid var(--rule); }
  .steplist h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
  .steplist p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

  /* --- Feature artwork -------------------------------------------------- */
  .feature-art {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
  }

  /* Wide, short banner used where a full-width image would otherwise be too
     tall (contact, privacy). Same art, letterboxed. */
  .feature-band {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
  }
  @media (max-width: 640px) { .feature-band { aspect-ratio: 16 / 10; } }

  /* --- Direct answer block ----------------------------------------------
     Deliberately plain and high on the page: this is the passage search
     engines and AI assistants quote, so it must read as a complete answer
     on its own. Full width, generous measure, no decoration competing. */
  .answer {
    border-top: 2px solid var(--vital);
    padding-top: clamp(1.5rem, 3vw, 2.25rem);
  }
  .answer__q {
    font-size: var(--step-2);
    max-width: none;
    margin-bottom: 1rem;
  }
  .answer__a {
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 68ch;
    margin: 0;
  }
  .on-dark .answer__a { color: var(--on-dark-muted); }

  /* --- Prose (privacy) -------------------------------------------------- */
  .prose h2 { font-size: var(--step-2); margin: 2.5rem 0 0.85rem; }
  .prose h2:first-child { margin-top: 0; }
  .prose p { color: var(--text-muted); max-width: 66ch; }
  .prose__note { padding-top: 1.5rem; border-top: 1px solid var(--rule); margin-top: 2.5rem; font-size: 0.9rem; }

  /* --- Contact cards ---------------------------------------------------- */
  .contact-cards { display: grid; gap: 1rem; }
  @media (min-width: 760px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
  .contact-card__label {
    font-family: var(--font-body);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--vital); margin-bottom: 0.9rem;
  }

  /* --- Metrics -------------------------------------------------------- */
  .metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.75rem, 5vw, 3.5rem) 1rem;
  }
  @media (min-width: 900px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
  .metric__value {
    font-family: var(--font-display);
    font-weight: 300;
    /* Sized for a single word rather than a big numeral, so it never
       overflows its column on narrow layouts. */
    font-size: clamp(1.65rem, 3.5vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--forest);
  }
  .on-dark .metric__value { color: var(--on-dark); }
  .metric__label {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    max-width: 22ch;
  }

  /* --- Process -------------------------------------------------------- */
  .steps { display: grid; gap: 0; }
  @media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
  .step { padding: clamp(1.5rem, 4vw, 2.25rem) 0; border-top: 1px solid var(--rule-dark); }
  @media (min-width: 900px) {
    .step { padding: 2.25rem clamp(1rem, 2vw, 1.75rem) 0 0; }
    .step + .step { border-left: 1px solid var(--rule-dark); padding-left: clamp(1rem, 2vw, 1.75rem); }
  }
  .step__n {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--mint);
    margin-bottom: 1rem;
  }
  .step h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
  .step p { font-size: 0.9rem; color: var(--on-dark-muted); margin: 0; }

  /* --- Testimonials --------------------------------------------------- */
  .quote { text-align: center; }
  .quote blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: var(--step-3);
    line-height: 1.22;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  .quote figcaption {
    margin-top: 2rem;
    font-size: 0.84rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
  }
  .quote figcaption strong { color: var(--forest); font-weight: 600; }
  .quote__slide { display: none; }
  .quote__slide.is-active { display: block; animation: fadeUp 0.7s var(--ease); }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
  .quote__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; }
  .quote__dot {
    width: 44px; height: 44px; /* minimum comfortable touch target */
    background: none;
    border: 0;
    display: grid;
    place-items: center;
  }
  .quote__dot::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 1px solid var(--vital);
    transition: background-color var(--dur-fast) var(--ease);
  }
  .quote__dot[aria-selected="true"]::before { background: var(--vital); }

  /* --- Logo wall ------------------------------------------------------ */
  .logowall {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
  }
  @media (min-width: 700px) { .logowall { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 1000px) { .logowall { grid-template-columns: repeat(6, 1fr); } }
  .logowall li {
    background: var(--paper);
    padding: 1.75rem 1rem;
    display: grid;
    place-items: center;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    color: var(--text-muted);
  }

  /* --- Form ----------------------------------------------------------- */
  .field { margin-bottom: 1.5rem; }
  .field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
  }
  .field input, .field select, .field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--forest);
    background: var(--paper);
    border: 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    padding: 0.85rem 0;
    min-height: 52px;
    transition: border-color var(--dur-fast) var(--ease);
  }
  .field textarea { resize: vertical; min-height: 130px; }
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-bottom-color: var(--vital);
  }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
    outline: 2px solid var(--vital);
    outline-offset: 4px;
  }
  .field__error {
    display: block;
    font-size: 0.8rem;
    color: #A32D2D;
    margin-top: 0.4rem;
    min-height: 1.2em;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
  }
  .form__status { margin-top: 1.25rem; font-size: 0.9rem; }

  /* --- Footer --------------------------------------------------------- */
  .footer { background: var(--forest); color: var(--on-dark); padding-block: clamp(3.5rem, 8vw, 6rem) 2rem; }
  .footer__grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
  }
  @media (min-width: 700px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
  @media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
  .footer h3 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 1.1rem;
  }
  .footer a { color: var(--on-dark-muted); text-decoration: none; font-size: 0.9rem; }
  .footer a:hover { color: var(--mint); }
  .footer li { padding: 0.24rem 0; }
  .footer__bottom {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding-top: 1.75rem;
    border-top: 1px solid var(--rule-dark);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--on-dark-muted);
  }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
@layer sections {

  .on-dark { background: var(--forest); color: var(--on-dark); }
  .on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-dark); }
  .on-linen { background: var(--linen); }

  /* --- Hero ----------------------------------------------------------- */
  .hero {
    position: relative;
    min-height: 86svh;
    display: flex;
    align-items: flex-end;
    padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 7vw, 5rem);
    overflow: hidden;
  }
  /* Optional hero photograph, set via build/images.js. The scrim is not
     decoration: it is what keeps the white headline legible over an
     arbitrary photo, so it is applied automatically rather than left to
     whoever picks the image. */
  .hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  .hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
      rgba(14, 64, 52, 0.94) 0%,
      rgba(14, 64, 52, 0.72) 45%,
      rgba(14, 64, 52, 0.55) 100%);
  }
  .hero.has-photo > .shell { position: relative; z-index: 2; }
  .hero.has-photo .hero__arc { z-index: 1; opacity: 0.1; }

  .hero__arc {
    position: absolute;
    left: 50%;
    top: 42%;
    width: min(150vw, 1500px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    color: var(--mint);
    opacity: 0.16;
    pointer-events: none;
    /* Parallax offset written by JS as a single custom property. */
    translate: 0 var(--drift, 0px);
  }
  .hero__title {
    font-size: var(--step-5);
    max-width: 15ch;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  }
  .hero__title em {
    font-style: italic;
    color: var(--mint);
  }
  .hero__sub {
    max-width: 46ch;
    color: var(--on-dark-muted);
    font-size: var(--step-1);
    line-height: 1.5;
    margin-bottom: clamp(2rem, 5vw, 3rem);
  }
  .hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
  .hero__meta {
    margin-top: clamp(2.5rem, 7vw, 4.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule-dark);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--on-dark-muted);
  }

  /* --- Editorial passage (the "40 seconds" section) ------------------- */
  .editorial { padding-block: var(--section-y); }
  .editorial__lines {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--step-3);
    line-height: 1.18;
    letter-spacing: -0.022em;
    max-width: 20ch;
  }
  .editorial__lines span {
    display: block;
    opacity: 0.55;
    transition: opacity 0.4s var(--ease);
  }
  .editorial__lines span.is-lit { opacity: 1; }
  .editorial__note {
    margin-top: clamp(2rem, 5vw, 3rem);
    max-width: 40ch;
    color: var(--text-muted);
  }

  /* --- Section heading pattern ---------------------------------------- */
  /* Headings run the full container width. A narrow measure on a 5rem
     display face leaves most of the row empty, which reads as an unfinished
     layout rather than as restraint. */
  .sec-head { margin-bottom: clamp(2.25rem, 5vw, 3.75rem); max-width: none; }
  .sec-head h2 {
    font-size: var(--step-4);
    max-width: none;
    /* balance packs short headings into even short lines, defeating the
       point; let the first line run out to the container edge. */
    text-wrap: normal;
  }
  .sec-head p { margin-top: 1.5rem; max-width: 56ch; color: var(--text-muted); font-size: var(--step-0); }
  .on-dark .sec-head p { color: var(--on-dark-muted); }

  /* --- Split layout --------------------------------------------------- */
  .split { display: grid; gap: clamp(2rem, 5vw, 4rem); }
  @media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1.15fr; align-items: start; }
    .split--sticky > :first-child { position: sticky; top: calc(var(--header-h) + 3rem); }
  }

  /* --- Final CTA ------------------------------------------------------ */
  .cta-final { text-align: center; }
  .cta-final h2 { font-size: var(--step-4); max-width: 26ch; margin-inline: auto; }
  .cta-final .hero__actions { justify-content: center; margin-top: clamp(2rem, 5vw, 3rem); }
  .areas {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding-top: 1.75rem;
    border-top: 1px solid var(--rule-dark);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.75rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--on-dark-muted);
  }

  /* --- Process: scroll-driven walkthrough ------------------------------
     The rail sticks while the steps scroll past it. Everything visual is
     driven by two custom properties written once per frame by JS:
     --p (0..1 overall progress) and the .is-active class on each step. */
  .pscroll { padding-block: clamp(3rem, 8vw, 6rem) 0; }
  .pscroll__grid { display: grid; gap: 2rem; }
  @media (min-width: 1000px) {
    .pscroll__grid { grid-template-columns: 320px 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  }

  .pscroll__rail { position: sticky; top: calc(var(--header-h) + 2rem); z-index: 2; }
  /* On mobile the rail collapses to a slim progress bar so it never eats
     the viewport the steps need. */
  @media (max-width: 999px) {
    .pscroll__rail {
      top: var(--header-h);
      background: var(--paper);
      padding-block: 0.9rem;
      border-bottom: 1px solid var(--rule);
      margin-inline: calc(var(--gutter) * -1);
      padding-inline: var(--gutter);
    }
    .prail__list { display: none; }
    /* Compact bar: current step name on the left, progress track filling
       the rest of the row. */
    .prail { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 1rem; }
    .prail__label { display: none; }
    .prail__name--lg { font-size: var(--step-1) !important; margin: 0 !important; }
    .prail__track { grid-column: 2; }
  }

  .prail__label {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--vital); margin-bottom: 1.25rem;
  }
  .prail__name {
    font-family: var(--font-display);
    font-size: var(--step-1);
    color: var(--vital);
    margin: 0.5rem 0 1.5rem;
  }
  /* Larger current-step name that replaced the giant step numeral. */
  .prail__name--lg {
    font-weight: 300;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--forest);
    margin: 0 0 1.5rem;
  }
  .prail__track {
    height: 3px;
    background: var(--rule);
    border-radius: 999px;
    overflow: hidden;
  }
  .prail__fill {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--vital);
    border-radius: 999px;
    transform: scaleX(var(--p, 0));
    transform-origin: left;
    transition: transform 120ms linear;
  }
  .prail__list { margin-top: 2rem; }
  .prail__list li + li { border-top: 1px solid var(--rule); }
  .prail__list a {
    display: flex; align-items: baseline; gap: 0.9rem;
    padding: 0.7rem 0;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: color var(--dur-fast) var(--ease);
  }
  .prail__list a span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; }
  .prail__list a:hover { color: var(--forest); }
  .prail__list a.is-current { color: var(--forest); font-weight: 600; }

  .pstep { padding-block: clamp(2rem, 6vh, 3.5rem); }
  .pstep:first-child { padding-top: clamp(1.5rem, 3vh, 2rem); }
  .pstep:last-child { padding-bottom: clamp(3rem, 8vh, 5rem); }
  .pstep__inner {
    opacity: 0.55;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .pstep.is-active .pstep__inner { opacity: 1; transform: none; }

  .pstep__eyebrow {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--vital); margin-bottom: 1rem;
  }
  .pstep__title { font-size: var(--step-4); margin-bottom: 1rem; }
  .pstep__lead {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--step-2);
    color: var(--vital);
    margin-bottom: 1.5rem;
    max-width: 24ch;
  }
  .pstep__body { color: var(--text-muted); max-width: 52ch; margin-bottom: 2rem; }
  .pstep__points {
    display: grid; gap: 0 2.5rem;
    border-top: 1px solid var(--rule);
    max-width: 620px;
  }
  @media (min-width: 620px) { .pstep__points { grid-template-columns: 1fr 1fr; } }
  .pstep__points li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 0.7rem;
  }
  .pstep__points li::before {
    content: ""; width: 4px; height: 4px; border-radius: 50%;
    background: var(--vital); flex: none;
  }

  /* --- Contact page --------------------------------------------------- */
  .page-head {
    padding-block: calc(var(--header-h) + clamp(3.5rem, 9vw, 7rem)) clamp(2.5rem, 6vw, 4.5rem);
  }
  .page-head h1 { font-size: var(--step-4); max-width: none; text-wrap: normal; }
  .page-head p { margin-top: 1.5rem; max-width: 56ch; color: var(--on-dark-muted); }

  .contact-card {
    background: var(--mist);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
  }
  .contact-card + .contact-card { margin-top: 1rem; }
  .contact-card h3 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--vital); margin-bottom: 0.9rem; }
  .contact-card p { font-size: 1.05rem; margin: 0; }
  .contact-card a { text-decoration: none; }
  .contact-card a:hover { text-decoration: underline; }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
@layer utilities {
  .sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .flow > * + * { margin-top: var(--flow, 1.25rem); }

  .eyebrow--center { justify-content: center; }
  .section--tight { padding-block: clamp(2rem, 5vw, 4rem); }
  .split--wide { align-items: center; }
  @media (min-width: 900px) { .split--wide { grid-template-columns: 1fr 1fr; } }
  .acc__title--sm { font-size: var(--step-1) !important; }
  .acc__inner--flush { padding-left: 0 !important; }
  .footer__label {
    font-family: var(--font-body);
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--mint); margin-bottom: 1.1rem;
  }
  .mega__more {
    display: inline-block;
    margin-top: 1rem;
    padding-block: 0.5rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--mint);
    text-decoration: none;
  }
  .mega__more:hover { text-decoration: underline; }
  .logowall--dark { border-color: var(--rule-dark); background: var(--rule-dark); margin-top: clamp(3rem, 7vw, 5rem); }
  .logowall--dark li { background: var(--forest); color: var(--on-dark-muted); }
  /* Service accordion: copy beside artwork on wide screens. */
  .acc__split { display: grid; gap: 2rem; }
  @media (min-width: 900px) { .acc__split { grid-template-columns: 1fr 0.8fr; align-items: start; } }
  .acc__art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

  /* No-JS: everything is open and visible. Content is never JS-dependent. */
  .no-js .reveal { opacity: 1; transform: none; }
  .no-js .line > span { transform: none; }
  .no-js .acc__panel, .no-js .mobilenav__panel { grid-template-rows: 1fr; }
  .no-js .preloader { display: none; }
  .no-js .quote__slide { display: block; }
  .no-js .editorial__lines span { opacity: 1; }

  /* Motion preferences are honoured globally, not per-component. */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .line > span { transform: none; }
    .editorial__lines span { opacity: 1; }
    .marquee__track { animation: none; }
    .hero__arc { translate: none; }
    /* Every process step reads at full strength rather than dimming. */
    .pstep__inner { opacity: 1; transform: none; }
  }

  /* No-JS: the process page still reads as a plain numbered document. */
  .no-js .pstep__inner { opacity: 1; transform: none; }
  .no-js .prail__track { display: none; }
}

/* ==========================================================================
   WORDPRESS COMPATIBILITY
   Standard classes WordPress emits from the editor, comments and pagination.
   Harmless on the static build (nothing there uses them); required for the
   theme to look right and to pass theme-review checks.
   ========================================================================== */
@layer components {

  /* Editor alignment + captions */
  .alignleft   { float: left;  margin: 0.4rem 1.5rem 1rem 0; }
  .alignright  { float: right; margin: 0.4rem 0 1rem 1.5rem; }
  .aligncenter { display: block; margin-inline: auto; }
  .alignwide   { max-width: min(1100px, 92vw); margin-inline: auto; }
  .alignfull   { width: 100%; }
  figure.wp-caption, .wp-caption { max-width: 100%; }
  .wp-caption-text, figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    text-align: center;
  }
  .sticky, .bypostauthor { display: block; }

  /* Accessibility helper WordPress core and plugins expect */
  .screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
  }
  .screen-reader-text:focus {
    position: fixed !important;
    top: 0.5rem; left: 0.5rem;
    width: auto; height: auto;
    clip: auto;
    z-index: 999;
    padding: 0.75rem 1.25rem;
    background: var(--forest); color: var(--on-dark);
    border-radius: var(--radius);
  }

  /* Post body: give editor content the same rhythm as .prose */
  .prose img { border-radius: 12px; }
  .prose ul, .prose ol { margin: 0 0 1.25rem 1.25rem; padding-left: 1rem; }
  .prose ul { list-style: disc; }
  .prose ol { list-style: decimal; }
  .prose li { margin-bottom: 0.4rem; }
  .prose blockquote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--vital);
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--step-1);
    color: var(--forest);
  }
  .prose a { color: var(--vital); }
  .prose code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.9em;
    background: var(--mist);
    padding: 0.15em 0.4em;
    border-radius: 4px;
  }
  .prose pre {
    background: var(--forest);
    color: var(--on-dark);
    padding: 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
  }
  .prose pre code { background: none; color: inherit; padding: 0; }

  /* Pagination (posts + comments) */
  .pagination, .navigation.pagination { margin-top: 2rem; }
  .pagination .nav-links, .navigation .nav-links {
    display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  }
  .pagination a, .pagination span,
  .navigation a, .navigation span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; padding: 0 0.85rem;
    border: 1px solid var(--rule); border-radius: 999px;
    text-decoration: none; font-size: 0.9rem; font-weight: 500;
    color: var(--forest);
  }
  .pagination a:hover, .navigation a:hover { border-color: var(--forest); background: var(--mist); }
  .pagination .current, .navigation .current {
    background: var(--vital); color: #fff; border-color: var(--vital);
  }

  /* Comments */
  .comment-list { margin: 0; }
  .comment-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
  .comment-list .children { margin-left: 1.5rem; }
  .comment-author { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; }
  .comment-author .avatar { border-radius: 50%; }
  .comment-meta { font-size: 0.82rem; color: var(--text-muted); margin: 0.35rem 0 0.75rem; }
  .comment-respond { margin-top: 2rem; }
  .comment-form { display: grid; gap: 1rem; margin-top: 1rem; }
  .comment-form label {
    display: block; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 0.4rem;
  }
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--forest);
    background: var(--paper); border: 0; border-bottom: 1px solid var(--rule);
    padding: 0.85rem 0; min-height: 52px;
  }
  .comment-form input:focus, .comment-form textarea:focus {
    outline: none; border-bottom-color: var(--vital);
  }

  /* Widgets (blog sidebar) */
  .widget { margin-bottom: 2rem; }
  .widget ul li { padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
  .widget a { color: var(--vital); text-decoration: none; }
}

/* ==========================================================================
   LUXURY: radar backdrop, glassmorphism, scroll-driven 3D charts
   Additive layer. Everything degrades gracefully: no backdrop-filter -> a
   solid translucent panel; no JS or reduced-motion -> charts render final.
   ========================================================================== */
@layer components {

  /* --- Full-width showcase image band ---------------------------------
     The designated "image space". Ships with the radar artwork; drop a real
     photo into the home-showcase slot in build/images.js to replace it.
     Export size + safe area are documented in the README. */
  .showband {
    position: relative;
    width: 100%;
    margin: 0; /* clear the default UA <figure> inline margin */
    aspect-ratio: 21 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--forest);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.55);
  }
  @media (max-width: 700px) { .showband { aspect-ratio: 4 / 3; } }
  .showband img { width: 100%; height: 100%; object-fit: cover; display: block; }
  /* Soft brass-free luxury vignette + top light, keeps any photo cohesive. */
  .showband__glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(90% 60% at 50% 8%, rgba(127, 212, 174, 0.16), transparent 60%),
      linear-gradient(to top, rgba(7, 26, 20, 0.55), transparent 55%);
  }
  .showband__cap {
    position: absolute; left: clamp(1.25rem, 4vw, 2.5rem); bottom: clamp(1.25rem, 4vw, 2.5rem);
    right: clamp(1.25rem, 4vw, 2.5rem);
    color: var(--on-dark);
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  }
  .showband__cap h3 {
    font-family: var(--font-display); font-weight: 300;
    font-size: clamp(1.4rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; max-width: 18ch;
  }
  .showband__cap span {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--mint); white-space: nowrap;
  }

  /* --- Radar backdrop motif (the attached image, as a section layer) --- */
  /* clip the bleeding art so it can never widen the page. */
  .radarbg { position: relative; isolation: isolate; overflow: hidden; }
  .radarbg__art {
    position: absolute; left: 50%; top: 50%;
    width: min(140%, 1500px); aspect-ratio: 1; transform: translate(-50%, -50%);
    color: var(--mint); opacity: 0.14; pointer-events: none; z-index: 0;
    /* parallax drift written by JS */
    translate: 0 var(--radar-drift, 0px);
  }
  .radarbg > .shell { position: relative; z-index: 1; }

  /* --- Glass panels ---------------------------------------------------- */
  .glasswrap {
    display: grid; gap: clamp(1rem, 2.5vw, 1.75rem);
    perspective: 1500px;
    /* scroll + pointer tilt, both written by JS as custom properties */
    --tilt: 0deg; --mx: 0deg; --my: 0deg;
  }
  @media (min-width: 900px) { .glasswrap { grid-template-columns: 1.5fr 1fr; align-items: stretch; } }

  .glass {
    position: relative; overflow: hidden;
    padding: clamp(1.35rem, 3vw, 2rem);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(233, 240, 236, 0.10), rgba(233, 240, 236, 0.03));
    border: 1px solid rgba(233, 240, 236, 0.14);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    transform: rotateX(var(--tilt)) rotateY(var(--my)) rotateX(var(--mx));
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease);
    will-change: transform;
  }
  /* Light shine sweeping the top corner. */
  .glass::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 80% at 18% 0%, rgba(127, 212, 174, 0.20), transparent 58%);
  }
  .glass__label {
    position: relative; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--mint); margin-bottom: 1.25rem;
  }
  .glass__note {
    position: relative; margin-top: 1.1rem; font-size: 0.82rem; color: var(--on-dark-muted);
  }

  /* --- Area/line chart (SVG, draws on scroll) -------------------------- */
  .areachart { width: 100%; height: auto; display: block; overflow: visible; }
  .areachart .ac-grid { stroke: rgba(233, 240, 236, 0.10); stroke-width: 1; }
  .areachart .ac-area { fill: url(#acGrad); opacity: 0; transition: opacity 0.9s var(--ease) 0.35s; }
  .areachart .ac-line {
    fill: none; stroke: var(--mint); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 1; stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.7s var(--ease);
    filter: drop-shadow(0 4px 10px rgba(127, 212, 174, 0.35));
  }
  .areachart .ac-dot { fill: var(--paper); stroke: var(--mint); stroke-width: 2.5; opacity: 0; transition: opacity 0.4s var(--ease) 1.45s; }
  .glass.is-drawn .ac-line { stroke-dashoffset: 0; }
  .glass.is-drawn .ac-area { opacity: 1; }
  .glass.is-drawn .ac-dot { opacity: 1; }
  .areachart__axis {
    position: relative; display: flex; justify-content: space-between;
    margin-top: 0.9rem; font-size: 0.74rem; color: var(--on-dark-muted); letter-spacing: 0.04em;
  }

  /* --- 3D glass bars (rise on scroll) ---------------------------------- */
  .bars3d { position: relative; }
  .bars3d__stage {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: clamp(0.5rem, 2vw, 1rem); height: clamp(160px, 26vw, 220px);
    transform: rotateX(20deg); transform-style: preserve-3d;
  }
  .bar3d {
    position: relative; flex: 1; height: calc(var(--v, 0.5) * 100%);
    transform-origin: bottom; transform: scaleY(0);
    transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms);
  }
  .glass.is-drawn .bar3d { transform: scaleY(1); }
  .bar3d__face {
    position: absolute; inset: 0; border-radius: 7px 7px 2px 2px;
    background: linear-gradient(180deg, rgba(127, 212, 174, 0.95), rgba(28, 122, 94, 0.55));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 24px -10px rgba(0, 0, 0, 0.5);
  }
  /* top cap gives the isometric 3D read */
  .bar3d__cap {
    position: absolute; left: 0; right: 0; top: -7px; height: 10px; border-radius: 3px;
    background: rgba(200, 240, 224, 0.95);
    transform: translateZ(1px);
  }
  .bars3d__labels {
    display: flex; justify-content: space-between; gap: clamp(0.5rem, 2vw, 1rem);
    margin-top: 1rem;
  }
  .bars3d__labels span {
    flex: 1; text-align: center; font-size: 0.68rem; letter-spacing: 0.04em;
    color: var(--on-dark-muted); line-height: 1.3;
  }

  /* No-JS / reduced-motion: show the final state, no animation. */
  .no-js .glass, .no-js .bar3d, .no-js .ac-line, .no-js .ac-area, .no-js .ac-dot { transition: none; }
  .no-js .bar3d { transform: scaleY(1); }
  .no-js .ac-line { stroke-dashoffset: 0; }
  .no-js .ac-area, .no-js .ac-dot { opacity: 1; }
}

@layer utilities {
  @media (prefers-reduced-motion: reduce) {
    .glass { transform: none !important; }
    .bar3d { transform: scaleY(1) !important; transition: none !important; }
    .ac-line { stroke-dashoffset: 0 !important; transition: none !important; }
    .ac-area, .ac-dot { opacity: 1 !important; transition: none !important; }
    .radarbg__art { translate: none !important; }
  }
}

/* ==========================================================================
   PREMIUM UPLIFT — site-wide polish + new section components
   Additive, layered, and honest (no fabricated stats or certifications).
   ========================================================================== */
@layer components {

  /* --- Softer, more expensive reveal (blur-in) ------------------------ */
  .reveal { filter: blur(6px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); }
  .reveal.is-visible { filter: blur(0); }
  .no-js .reveal { filter: none; }

  /* --- Premium primary button (subtle sheen + depth) ------------------ */
  .btn--primary {
    background: linear-gradient(180deg, #268a6a 0%, #1C7A5E 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px -12px rgba(14, 64, 52, 0.55);
  }
  .btn--primary:hover { background: linear-gradient(180deg, #2a9673 0%, #17654E 100%); }

  /* --- Card system: hairline, soft lift, border glow on hover --------- */
  .scard__link, .minicard, .contact-card, .spec, .belief {
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
                border-color 0.5s var(--ease), background-color 0.5s var(--ease);
  }
  .scard__link, .minicard {
    border: 1px solid var(--rule);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 34px -22px rgba(14, 64, 52, 0.30);
  }
  .scard__link:hover, .minicard:hover {
    border-color: rgba(28, 122, 94, 0.42);
    box-shadow: 0 26px 60px -28px rgba(14, 64, 52, 0.42);
  }
  .contact-card {
    border: 1px solid var(--rule);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }

  /* --- Feature imagery: framed with depth ----------------------------- */
  .feature-art, .feature-band {
    box-shadow: 0 34px 74px -38px rgba(14, 64, 52, 0.55);
    border: 1px solid rgba(14, 64, 52, 0.08);
  }
  .on-dark .feature-art, .on-dark .feature-band { border-color: rgba(233, 240, 236, 0.10); }

  /* --- Section heading accent rule ------------------------------------ */
  .sec-head h2 { position: relative; }

  /* --- Trust bar: honest commitment chips ----------------------------- */
  .trustbar {
    display: flex; flex-wrap: wrap; gap: 0.6rem 0.75rem;
    align-items: center; justify-content: center;
  }
  .trustbar li {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.6rem 1rem 0.6rem 0.85rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 0.82rem; font-weight: 500; letter-spacing: 0.01em;
    color: var(--forest);
    background: var(--paper);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
  .trustbar li::before {
    content: ""; width: 15px; height: 15px; flex: none; border-radius: 50%;
    background:
      linear-gradient(135deg, var(--mint), var(--vital));
    box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--vital);
  }
  .on-dark .trustbar li {
    color: var(--on-dark); background: rgba(233, 240, 236, 0.05);
    border-color: var(--rule-dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .on-dark .trustbar li::before { box-shadow: inset 0 0 0 3px var(--forest), inset 0 0 0 4px var(--mint); }

  /* --- Manifesto band: oversized editorial quote ---------------------- */
  .manifesto { text-align: center; }
  .manifesto__text {
    font-family: var(--font-display);
    font-weight: 300; font-style: italic;
    font-size: clamp(1.75rem, 4.5vw, 3.4rem);
    line-height: 1.22; letter-spacing: -0.02em;
    color: var(--on-dark); max-width: 22ch; margin-inline: auto;
    text-wrap: balance;
  }
  .manifesto__text em { color: var(--mint); font-style: italic; }
  .manifesto__by {
    margin-top: 1.75rem; font-family: var(--font-body);
    font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--mint);
  }
}

/* Depth gradient on dark sections. Must sit in a layer AFTER `sections`,
   because `.on-dark { background: var(--forest) }` there uses the background
   shorthand which would otherwise reset this image. background-color is left
   untouched, so the forest colour shows through under the glow. */
@layer utilities {
  .on-dark:not(.hero):not(.radarbg) {
    background-image: radial-gradient(130% 100% at 50% 0%, rgba(127, 212, 174, 0.09), transparent 60%);
  }
  .page-head {
    background-image: radial-gradient(120% 120% at 85% -20%, rgba(127, 212, 174, 0.12), transparent 55%);
  }
}
