/* threeAlpha design system: the shared layer every page loads after site.css.
   Owns the display face, the accent, the band colours and the global chrome (footer).
   Page sheets (home.css, inner.css) build on these tokens; DESIGN.md documents them. */

/* ---------- Display face ----------
   Fraunces (SIL OFL), self-hosted variable latin subset (opsz 9-144, wght 300-600): the serif
   voice of the site. Upright for section headings, italic for the hero's rotating words. */
@font-face {
  font-family: Fraunces;
  src: url("../fonts/fraunces-latin.5d2835174326.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("../fonts/fraunces-italic-latin.be1b7d1cec18.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --page-bg: var(--_color---body-bg);
  /* the sweep on black: one silver glint, light raking across blued steel. Bright platinum at the
     ends, a steel dip in the middle, neutral at the top-left end and cool at the lower-right, so the
     two-toned glow still reads as the gradient catching light. No warm stop: against steel neutrals it
     reads as a stain, not light. Never a fill on a white band. */
  --alpha-yellow: #eff0f1;
  --alpha-sage: #c8ccd1;
  --alpha-sky: #9aa0a8;
  --alpha-coral: #c3c7cd;
  --alpha-pink: #e6ebf1;
  --band-light-bg: #fff;
  --band-light-text: #05090f;
  --band-light-muted: #393e45;
  --band-light-line: rgba(5, 9, 15, .12);
  --band-light-soft: #fff;
  --home-radius: 20px;
  /* diagram lines, site-wide: one weight for the line that tells the story, a hairline for the lines around it */
  --line: 1.5px;
  --line-hair: 1px;
  /* every dot on the site, lit or hollow, still or sparkling: diagram nodes, label dots, tips, pager, nav */
  --node: 9px;
  --font-display: Fraunces, Georgia, "Times New Roman", serif;
  /* the wordmark's silver sweep (navbar logo), same stops as .text-linear-gradient */
  --brand-gradient: linear-gradient(90deg, var(--color--gray-5), var(--color--gray-3) 80%);
  /* blued steel and silver only: every neutral leans the same few steps toward blue. The signal is
     pure white on black (one step brighter than the silver text, so it reads as light, not as another
     grey) and steel black on silver bands. */
  --silver: #c9cdd3;
  --accent: #fff;
  --accent-ink: #05090f;
  --line-dark: rgba(255, 255, 255, .08);
  --line-dark-strong: rgba(255, 255, 255, .18);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

::selection { background: rgba(255, 255, 255, .92); color: var(--color--dark); -webkit-text-fill-color: var(--color--dark); }
html { scrollbar-color: #262c35 var(--page-bg); accent-color: var(--accent); }
/* in-page links glide; html's scroll-padding-top (site.css) keeps what they land on clear of the navbar */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* a band cancels that offset and lands on its own top edge, so no strip of the band above shows: 1px
   past it, because band tops fall on fractions of a pixel and scrolling stops on whole ones. Its top
   padding never drops below 6.25rem (below), which is what keeps its heading clear of the navbar. */
.h-section {
  --band-pad: clamp(4.5rem, 9vw, 7.5rem);
  scroll-margin-top: -111px;
}

/* ---------- Footer ----------
   The site's close, kept plain: one line on what we do beside two lists, the name at full width, and
   the legal row. No lines or nodes; the wordmark is the only thing with any weight. */
.site-footer {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  color: var(--color--gray-3);
}
.sf-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 3rem clamp(3rem, 8vw, 7rem);
}
.sf-pitch {
  max-width: 19em;
  margin: 0;
  color: var(--color--white);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 380;
  font-optical-sizing: auto;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.sf-nav {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem 2rem;
}
.sf-title {
  margin: 0 0 1.25rem;
  color: var(--color--gray-3);
  font-family: var(--_typography---font-family--body-alt);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sf-list { display: flex; flex-direction: column; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.sf-list li { margin-bottom: 0; } /* site.css gives every li 10px */
.sf-link {
  color: var(--color--gray-5);
  font-size: .9375rem;
  line-height: 1.4;
  text-decoration: none;
  text-underline-offset: .25em;
  transition: color .2s;
}
.sf-link:hover { color: var(--color--white); text-decoration: underline; text-decoration-color: var(--accent); }
.sf-link[aria-current="page"] { color: var(--color--white); }

.sf-wordmark { display: block; margin-top: clamp(3.5rem, 6vw, 5rem); border-radius: 6px; }
.sf-wordmark img { display: block; width: 100%; height: auto; }

.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 2rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: .8125rem;
}
.sf-bottom p { margin: 0; font-size: inherit; line-height: 1.4; }
.sf-bottom-group { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; }
.sf-bottom .sf-link { font-size: .8125rem; color: var(--color--gray-3); }
.sf-bottom .sf-link:hover { color: var(--color--white); }

.site-footer a:focus-visible,
.site-footer button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 44px targets where fingers are the input */
@media (pointer: coarse) {
  .faq-ask-mail { display: inline-flex; align-items: center; min-height: 44px; }
  .sf-link { display: inline-flex; align-items: center; min-height: 44px; }
  .sf-list { gap: 0; }
}

@media (max-width: 991px) {
  .sf-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .sf-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 479px) {
  .site-footer .container { padding-left: 16px; padding-right: 16px; }
  .sf-nav { grid-template-columns: minmax(0, 1fr); }
}
@media print { .sf-wordmark { display: none; } }

/* ---------- Navbar over light bands ----------
   Scoped to .navbar-content so the dark mobile overlay (.nav-menu-right) is untouched.
   system.js initNavLight sets .is-on-light while a .band-light sits behind the navbar, on any page. */
.navbar.is-on-light .navbar-content {
  background-color: rgba(255, 255, 255, .92);
  border-color: rgba(5, 9, 15, .08);
  box-shadow: 0 14px 34px -14px rgba(16, 24, 40, .22);
}
.navbar.is-on-light .navbar-content .nav-menu { border-left-color: rgba(5, 9, 15, .1); }
.navbar.is-on-light .navbar-content .nav-link { color: #474d57; }
.navbar.is-on-light .navbar-content .nav-link:hover,
.navbar.is-on-light .navbar-content .nav-link.is-current { background-color: rgba(5, 9, 15, .06); color: var(--band-light-text); }
.navbar.is-on-light .navbar-content .nav-link:focus-visible { outline-color: var(--band-light-text); }
.navbar.is-on-light .navbar-content .nav-button-sm { background: var(--band-light-text); color: var(--color--white); }
.navbar.is-on-light .navbar-content .nav-button-sm:hover { background: #262c35; }
.navbar.is-on-light .navbar-content .nav-button-sm:focus-visible { outline-color: var(--band-light-text); }
.navbar.is-on-light .navbar-content .brand .logo { filter: brightness(0); opacity: .88; }
.navbar.is-on-light .navbar-content .menu-button { color: #fff; } /* it keeps its dark circle */

/* ---------- Navbar: Services dropdown ----------
   Services is a plain link to /services/, the same size as its neighbours. The dot inside its pill
   is the toggle, so touch and keyboard can reach the list without leaving the page. One plain column
   under it, on the pill's own surface: dark capsule on dark bands, silver-white on light bands
   (.navbar.is-on-light, set by system.js initNavLight). Opens on hover, by the dot and by ArrowDown
   (system.js initDropdown). Without JS it opens on hover or focus-within, so the links stay reachable. */
.nav-drop-wrap { --drop-gap: 1.25rem; position: relative; display: flex; align-items: center; }
/* carries the pointer across the gap; on the wrapper, because the list scrolls and would clip it */
.nav-drop-wrap.is-open::after { content: ""; position: absolute; top: 100%; left: -.5rem; width: 17.5rem; height: var(--drop-gap); }
.navbar-content .nav-drop-main { padding-right: 1.75rem; }
.nav-drop-btn {
  position: absolute; top: 50%; right: .25rem; display: grid; place-items: center;
  width: 24px; height: 24px; margin-top: -12px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--_color---body-text); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-drop-dot { width: var(--node); height: var(--node); border-radius: 50%; background: currentColor; }
.nav-drop-btn:focus-visible { outline: 2px solid var(--color--white); outline-offset: -2px; }
.navbar-content .nav-drop-main.is-current ~ .nav-drop-btn, .nav-drop-wrap.is-open .nav-drop-btn { color: var(--color--white); }
.nav-drop-wrap.is-open .nav-drop-main { background-color: rgba(255, 255, 255, .07); color: var(--color--white); } /* the nav's own hover pill */

.nav-drop {
  position: absolute; top: calc(100% + var(--drop-gap)); left: -.5rem; z-index: 5;
  min-width: 17.5rem; max-height: calc(100vh - 7.5rem); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; /* no bar; on a very short window it still scrolls by wheel, touch and keyboard */
  display: flex; flex-direction: column; gap: 2px; /* rows never touch, so a hover pill and the current row stay apart */
  margin: 0; padding: .5rem; list-style: none;
  border: 1px solid var(--line-dark-strong); border-radius: var(--home-radius);
  background: #0e1118; /* the pill's surface, opaque so copy underneath never shows through */
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .65); /* floating, so a soft offset shadow is allowed */
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out), visibility 0s linear .15s;
}
.nav-drop-wrap.is-open .nav-drop {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out), visibility 0s;
}
html:not(.w-mod-js) .nav-drop-wrap:hover .nav-drop,
html:not(.w-mod-js) .nav-drop-wrap:focus-within .nav-drop { opacity: 1; visibility: visible; transform: none; }

.nav-drop::-webkit-scrollbar { display: none; }
/* one column of twelve rows needs about 673px of window: below that it runs down two columns, with
   All services across the foot. Six rows holds the eleven services; raise it if the list grows past twelve. */
@media (min-width: 992px) and (max-height: 680px) {
  .nav-drop { display: grid; grid-template-columns: repeat(2, max-content); grid-template-rows: repeat(6, auto); grid-auto-flow: column; gap: 2px .25rem; }
  .nav-drop-foot { grid-column: 1 / -1; grid-row: 7; }
}
.nav-drop li { margin: 0; }
.nav-drop-link, .nav-drop-all {
  display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .5rem .875rem;
  border-radius: 999px; color: var(--color--gray-3); font-size: .9375rem; line-height: 1.3;
  text-decoration: none; transition: background-color .2s, color .2s;
}
/* Two states that never read alike: hover is the nav's pill fill; the current page is white text
   with a node at the row's end, the same dot that opens the menu. Hovering the current row shows both. */
.nav-drop-link:hover, .nav-drop-all:hover { background-color: rgba(255, 255, 255, .07); color: var(--color--white); }
.nav-drop-link.is-current, .nav-drop-all.is-current { color: var(--color--white); }
.nav-drop-link.is-current::after, .nav-drop-all.is-current::after {
  content: ""; flex: none; width: var(--node); height: var(--node); margin-left: auto; border-radius: 50%; background: currentColor;
}
.nav-drop-link:focus-visible, .nav-drop-all:focus-visible { outline: 2px solid var(--color--white); outline-offset: -2px; }
.nav-drop-foot { margin-top: .375rem; padding-top: .375rem; border-top: 1px solid var(--line-dark); }
.nav-drop-all { color: var(--color--white); font-weight: 500; }
.nav-drop-all .nav-drop-arrow { margin-left: -.35em; } /* .4em from the label, inside the row's gap */

/* over a light band: the pill's light surface, black ink, black focus ring */
.navbar.is-on-light .nav-drop {
  background: var(--band-light-soft); border-color: rgba(5, 9, 15, .1);
  box-shadow: 0 14px 34px -14px rgba(16, 24, 40, .28);
}
.navbar.is-on-light .nav-drop-btn { color: #474d57; }
.navbar.is-on-light .nav-drop-btn:focus-visible { outline-color: var(--band-light-text); }
.navbar.is-on-light .navbar-content .nav-drop-main.is-current ~ .nav-drop-btn, .navbar.is-on-light .nav-drop-wrap.is-open .nav-drop-btn { color: var(--band-light-text); }
.navbar.is-on-light .navbar-content .nav-drop-wrap.is-open .nav-drop-main { background-color: rgba(5, 9, 15, .06); color: var(--band-light-text); }
.navbar.is-on-light .nav-drop-link, .navbar.is-on-light .nav-drop-all { color: #474d57; }
.navbar.is-on-light .nav-drop-link:hover, .navbar.is-on-light .nav-drop-all:hover { background-color: rgba(5, 9, 15, .06); color: var(--band-light-text); }
.navbar.is-on-light .nav-drop-link.is-current, .navbar.is-on-light .nav-drop-all.is-current { color: var(--band-light-text); }
.navbar.is-on-light .nav-drop-all { color: var(--band-light-text); }
.navbar.is-on-light .nav-drop-foot { border-top-color: var(--band-light-line); }
.navbar.is-on-light .nav-drop-link:focus-visible, .navbar.is-on-light .nav-drop-all:focus-visible { outline-color: var(--band-light-text); }

@media (prefers-reduced-motion: reduce) {
  .nav-drop, .nav-drop-wrap.is-open .nav-drop { transition: none; transform: none; }
  .nav-drop-dot { transition: none; }
}

/* ---------- Mobile menu ----------
   A solid black panel under the pill, in three tiers: Services and the page links in Fraunces on
   full-width hairline rows; the three group names small and grey; the eleven services, always open,
   in Inter at 72% white, indented. The current page ends on a 6px node, like the desktop dropdown.
   Contact is a full-width white pill pinned to the foot while the list scrolls under it.
   Plain links, so it works without JS; main.js initNav opens it and fades the rows in. */
.nav-m-services { width: 100%; }
@media (min-width: 992px) { .nav-m-services, .nav-m-cta { display: none; } }
@media (max-width: 991px) {
  .navbar .nav-menu-right {
    flex-wrap: nowrap; justify-content: flex-start; align-items: stretch;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
    padding: 0 1.5rem;
    background-color: var(--color--dark);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    /* iPhone Safari draws the page under the status bar and the bottom address bar, but a fixed
       inset: 0 box stops at their edges. Two solid copies of the panel, shifted half a screen up
       and down (no blur, so they stay exactly panel-wide), carry the dark surface under both bars
       and slide with it. A box's own shadow isn't clipped by its overflow, so scrolling is unaffected. */
    box-shadow: 0 -50vh 0 var(--color--dark), 0 50vh 0 var(--color--dark);
    /* its own compositor layer while shown (display: none otherwise), so the open/close slide
       (main.js initNav) never repaints the full screen per frame or re-layers the sticky bars */
    will-change: transform;
  }
  /* the band behind the pill: holds the first row clear of it, and rows scrolling up fade out under it */
  .navbar .nav-menu-right::before {
    content: ""; position: sticky; top: 0; z-index: 1; flex: none;
    height: 6.25rem; margin: 0 -1.5rem -.5rem;
    background: linear-gradient(to bottom, var(--color--dark) 5.25rem, rgba(5, 9, 15, 0));
    pointer-events: none;
  }
  .nav-menu-right::-webkit-scrollbar { display: none; }
  .nav-panel-list { flex: none; }

  /* tier 1: Services and the pages */
  .nav-menu-right .nav-link {
    display: flex; align-items: center; gap: 1rem; min-height: 68px; padding: .875rem 0;
    border-radius: 0; border-bottom: 1px solid var(--line-dark);
    background: none; color: var(--color--white);
    font-family: Fraunces, Georgia, serif; font-size: 1.75rem; font-weight: 380;
    letter-spacing: -.01em; line-height: 1.15;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-menu-right .nav-link:hover, .nav-menu-right .nav-link.is-current { background: none; color: var(--color--white); }
  .nav-menu-right .nav-link:active { color: rgba(255, 255, 255, .6); }

  /* tier 2: the group names */
  .nav-m-services { padding-bottom: .875rem; border-bottom: 1px solid var(--line-dark); }
  .nav-m-group {
    margin: 1.125rem 0 .25rem 1rem; color: var(--color--gray-3);
    font-size: .8125rem; font-weight: 500; letter-spacing: .01em; line-height: 1.3;
  }

  /* tier 3: the services */
  .nav-m-list { margin: 0; padding: 0; list-style: none; }
  .nav-m-list li { margin: 0; }
  .nav-m-link {
    display: flex; align-items: center; gap: 1rem; min-height: 44px; padding: .5rem 0 .5rem 1rem;
    color: rgba(255, 255, 255, .72); font-size: 1rem; line-height: 1.35; text-decoration: none;
    -webkit-tap-highlight-color: transparent; transition: color .2s;
  }
  .nav-m-link:hover, .nav-m-link:active, .nav-m-link.is-current { color: var(--color--white); }

  /* the current page: a node at the row's end, centred under the close button's axis */
  .nav-menu-right .nav-link.is-current::after, .nav-m-link.is-current::after {
    content: ""; flex: none; width: var(--node); height: var(--node); margin-left: auto; margin-right: 4px;
    border-radius: 50%; background: currentColor;
  }

  /* Contact, pinned to the foot; the list fades out under it */
  .nav-m-cta {
    position: sticky; bottom: 0; flex: none; margin-top: auto;
    padding: 2rem 0 max(1.25rem, env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, rgba(5, 9, 15, 0), var(--color--dark) 1.75rem);
  }
  .nav-menu-right .nav-m-cta .nav-button-sm { display: flex; justify-content: center; width: 100%; margin-top: 0; }

  .nav-menu-right .nav-link:focus-visible, .nav-m-link:focus-visible { outline: 2px solid var(--color--white); outline-offset: 2px; }
  .nav-menu-right .nav-button-sm:focus-visible { outline: 2px solid var(--color--white); outline-offset: 3px; }

  /* while it's open the pill is opaque, so rows scrolling up pass under it cleanly,
     and over a light band it goes back to dark: one surface with the panel */
  .navbar.is-open .navbar-content,
  .navbar.is-open.is-on-light .navbar-content {
    background-color: #0e1118; border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 14px 34px -12px rgba(0, 0, 0, .65);
  }
  .navbar.is-open.is-on-light .navbar-content .brand .logo { filter: none; opacity: 1; }
}

/* ---------- Shared page primitives ----------
   Moved out of home.css so every page builds from the same pieces (DESIGN.md §4–5).
   Section header type (.section-label/-heading/-intro) is set per page: home.css on home,
   inner.css everywhere else. */
/* First stop for keyboard users. Off screen until focused, then a white pill above the navbar. */
.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 2000;
  padding: .75rem 1.25rem; border-radius: 12px;
  background: var(--color--white); color: var(--color--dark);
  font-size: .9375rem; font-weight: 500; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:hover { color: var(--color--dark); }
.skip-link:focus { transform: none; outline: 2px solid var(--color--white); outline-offset: 3px; }
#main:focus { outline: none; } /* a skip target, focused by script only: it never needs a ring */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* the top never drops below 6.25rem: a jump lands on the band's edge, and its heading must clear the navbar */
.h-section:not(.section-spacing) {
  padding-top: max(var(--band-pad), 6.25rem);
  padding-bottom: var(--band-pad);
}

/* Bands: silver, full-bleed past .page-wrapper without widening the page. The clip keeps the fill to the
   band's own height, so it never paints a line into the dark band above; only where two light bands touch
   does it reach 1px up, to close the seam between them. */
.band-light {
  background-color: var(--band-light-bg);
  color: var(--band-light-muted);
  box-shadow: 0 0 0 100vmax var(--band-light-bg);
  clip-path: inset(0 -100vmax);
}
.band-light + .band-light { clip-path: inset(-1px -100vmax); }
.band-light h2,
.band-light h3,
.band-light dd,
.band-light .text-linear-gradient {
  color: var(--band-light-text);
  background-image: none;
  -webkit-text-fill-color: currentColor;
}
.band-light p,
.band-light li,
.band-light dt { color: var(--band-light-muted); }

/* White bands: where the visitor reads or acts (case studies, posts, forms, the how-we-work story).
   Silver stays for dense facts. A white band turns the dark palette over rather than restyling each
   component: every component below reads these tokens, so it inverts with no rules of its own. */
.band-white {
  --band-light-bg: #fff;
  --color--white: #05090f;
  --color--dark: #fff;
  --color--gray-1: #fff;
  --color--gray-2: #f1f5fb;
  --color--gray-3: #595e66;
  --color--gray-5: #393e45;
  --silver: #05090f;
  --accent: #05090f;
  --line-dark: rgba(5, 9, 15, .12);
  --line-dark-strong: rgba(5, 9, 15, .3);
}
/* A dark ground inside a white band (the contact reply panel): the dark band in miniature. It turns the
   tokens .band-white inverted back to their values on black, so whatever sits inside reads as it does
   on a dark band. The specks and the sweep go back to their bright values in colour.css. */
.ground-dark {
  --color--white: #fff;
  --color--dark: #05090f;
  --color--gray-1: #0f141b;
  --color--gray-2: #171d24;
  --color--gray-3: #8a9098;
  --color--gray-5: #e2e6ec;
  --silver: #c9cdd3;
  --accent: #fff;
  --line-dark: rgba(255, 255, 255, .08);
  --line-dark-strong: rgba(255, 255, 255, .18);
  --band-light-text: #fff;
  --band-light-muted: #8a9098;
  --accent-ink: #fff; /* the label dot and other ink marks a light band draws in black */
  color: var(--color--gray-3);
}
/* the few values written as white tints, and client logos drawn in white */
.band-white .case-card { border-color: var(--line-dark); }
.band-white .case-card:hover { border-color: rgba(5, 9, 15, .4); }
.band-white .case-media { border-bottom-color: var(--line-dark); }
.band-white .case-foot { border-top-color: var(--line-dark); }
.band-white :is(.case-client img, .case-fact-logo) { filter: brightness(0); }
.band-white .hero-cta-secondary { border-color: var(--line-dark-strong); }
.band-white :is(.post-cover, .post-figure) { background: var(--color--gray-2); }
.band-white :is(.field-control, .pill span) { border-color: rgba(5, 9, 15, .5); }  /* controls keep 3:1 against the band */

/* ---------- Client marquee (core/home/_clients.html) ----------
   A short white band: label, a one-line statement, then the logos, on home and closing contact. The one
   place two light bands touch, so a full-bleed hairline separates it from Why (or, with .is-seam-top,
   from the contact form above it), drawn like .band-light itself: a spread shadow
   clipped to its own height, because offsets past the page would make it scroll sideways. It sits
   1px up because the band below paints its white shadow 1px over this band's last row. */
#clients {
  position: relative;
  padding-block: clamp(3.5rem, 6vw, 5rem);
}
#clients::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: var(--band-light-line);
  box-shadow: 0 0 0 100vmax var(--band-light-line);
  clip-path: inset(0 -100vmax);
}
#clients.is-seam-top::after { top: 0; bottom: auto; }
#clients .section-label { margin-bottom: .875rem; }
#clients .section-intro {
  max-width: 52rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
  color: var(--band-light-text);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2vw, 1.5rem);
  font-weight: 380;
  letter-spacing: -.01em;
  line-height: 1.25;
  text-wrap: balance;
}
.clients-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee {
  display: flex;
  width: max-content;
}
/* four sets of logos, moved by two: one set is narrower than the window and would leave a gap */
.w-mod-js .marquee { animation: clients-drift 64s linear infinite; }
.marquee:hover,
.motion-paused .marquee { animation-play-state: paused; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem;
  flex: none;
}
/* the logo files are mid-grey for black grounds: darkened here to about 5:1 on white */
.marquee-logo { height: clamp(30px, 3vw, 36px); width: auto; opacity: .7; filter: brightness(.3); }
@keyframes clients-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .w-mod-js .marquee { animation: none; } }

/* Sparkle: six specks twinkling round a dot, the one place colour is allowed on the site (tokens in
   colour.css). Each speck is a shadow of the dot, so no extra element is needed: a shadow's spread
   shrinks the dot to speck size, which is why every sparkling element is --node wide. One size
   everywhere: the same dot, the same six specks at the same reach, on labels and spines alike. It twinkles
   by alpha alone and holds a still frame under reduced motion and the pause control. */
.h-section:is(.band-dark, .band-light) .section-label::before,
.brief-row:hover::before,
.brief-row:focus-within::before,
.related-item:is(:hover, :focus-within) > .related-node,
.spine.is-armed .spine-stop.is-on .spine-node,
.spine:not(.is-armed) .spine-stop .spine-node,
.spine.is-armed .spine-chapter.is-on .spine-node,
.spine:not(.is-armed) .spine-chapter .spine-node,
.spine-outcome:hover::before,
.topics.is-armed .topic.is-on .topic-node,
.topics:not(.is-armed) .topic-node,
.how-node.is-spark,
.route-node.is-spark,
.decide-node.is-spark,
.next-node.is-spark {
  --big: calc((3.4px - var(--node)) / 2);
  --small: calc((2.5px - var(--node)) / 2);
  --p1: -11px -7px 0 var(--big);
  --p2: -16px 3px 0 var(--small);
  --p3: -8px 9px 0 var(--small);
  --p4: 5px -11px 0 var(--small);
  --p5: -3px -14px 0 var(--small);
  --p6: 6px 10px 0 var(--big);
  box-shadow:
    var(--p1) rgb(var(--speck-1) / .9),
    var(--p2) rgb(var(--speck-2) / .8),
    var(--p3) rgb(var(--speck-3) / .6),
    var(--p4) rgb(var(--speck-4) / .9),
    var(--p5) rgb(var(--speck-5) / .75),
    var(--p6) rgb(var(--speck-6) / .7);
}
@media screen and (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .h-section:is(.band-dark, .band-light) .section-label::before,
  html:not(.motion-paused) .brief-row:hover::before,
  html:not(.motion-paused) .brief-row:focus-within::before,
  html:not(.motion-paused) .related-item:is(:hover, :focus-within) > .related-node,
  html:not(.motion-paused) .spine.is-armed .spine-stop.is-on .spine-node,
  html:not(.motion-paused) .spine:not(.is-armed) .spine-stop .spine-node,
  html:not(.motion-paused) .spine.is-armed .spine-chapter.is-on .spine-node,
  html:not(.motion-paused) .spine:not(.is-armed) .spine-chapter .spine-node,
  html:not(.motion-paused) .spine-outcome:hover::before,
  html:not(.motion-paused) .topics.is-armed .topic.is-on .topic-node,
  html:not(.motion-paused) .topics:not(.is-armed) .topic-node,
  html:not(.motion-paused) .how-node.is-spark,
  html:not(.motion-paused) .route-node.is-spark,
  html:not(.motion-paused) .decide-node.is-spark,
  html:not(.motion-paused) .next-node.is-spark { animation: glitter-twinkle 3.4s ease-in-out infinite; }
}
/* a line's child dots twinkle out of step, so two hovered in a row never blink as one. !important because
   the twinkle's shorthand above sits in longer selectors that would reset the delay */
:is(.brief-row, .spine-outcome):nth-child(3n+2)::before { animation-delay: -1.1s !important; }
:is(.brief-row, .spine-outcome):nth-child(3n)::before { animation-delay: -2.3s !important; }
@keyframes glitter-twinkle {
  0%, 100% {
    box-shadow:
        var(--p1) rgb(var(--speck-1) / .9),
      var(--p2) rgb(var(--speck-2) / .15),
      var(--p3) rgb(var(--speck-3) / .6),
      var(--p4) rgb(var(--speck-4) / .1),
      var(--p5) rgb(var(--speck-5) / .7),
      var(--p6) rgb(var(--speck-6) / .1);
  }
  33% {
    box-shadow:
        var(--p1) rgb(var(--speck-1) / .1),
      var(--p2) rgb(var(--speck-2) / .9),
      var(--p3) rgb(var(--speck-3) / .1),
      var(--p4) rgb(var(--speck-4) / .9),
      var(--p5) rgb(var(--speck-5) / .1),
      var(--p6) rgb(var(--speck-6) / .55);
  }
  66% {
    box-shadow:
        var(--p1) rgb(var(--speck-1) / .4),
      var(--p2) rgb(var(--speck-2) / .1),
      var(--p3) rgb(var(--speck-3) / .9),
      var(--p4) rgb(var(--speck-4) / .2),
      var(--p5) rgb(var(--speck-5) / .9),
      var(--p6) rgb(var(--speck-6) / .9);
  }
}

/* Buttons: the main action is near-black in the sparkle ring (colour.css), and all share one label style */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s, opacity .2s, background-position .6s var(--ease-out);
}
.hero-cta:hover { transform: translateY(-1px); }
.hero-cta-primary:hover { color: #fff; } /* on .band-white the template's a:hover would turn it ink on ink */
.hero-cta-secondary { border: 1px solid rgba(255, 255, 255, .18); color: var(--color--white); }

/* ---------- FAQ ----------
   Two columns on a light band: a sticky aside (heading, intro, a way to reach a person) beside
   the answers. Answers are open in the markup; system.js initAccordion closes all but the first
   and animates each open/close through grid rows, so nothing depends on JS to be readable.
   Used by the home FAQ and every service page. */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.faq-aside { position: sticky; top: 7.5rem; }
/* components/faq.html: its header sits straight in the aside and reads down the left edge. Scoped
   through .faq-section so it outranks the page's header type (inner.css) and the centred label
   (colour.css), which load later; the child combinator leaves the service pages' section_header alone. */
.faq-section .faq-aside > .section-label { justify-content: flex-start; margin-inline: 0; }
.faq-section .faq-aside > .section-heading { margin: 0 0 1.25rem; font-size: clamp(2.25rem, 3.4vw, 2.75rem); text-align: left; max-width: 20ch; }
.faq-section .faq-aside > .section-intro { margin: 0; text-align: left; max-width: 30rem; }

.faq-ask {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: 1.5rem;
  border: 1px solid var(--band-light-line);
  border-radius: var(--home-radius);
  background: var(--band-light-soft);
}
.band-light .faq-ask-title { margin: 0 0 .375rem; color: var(--band-light-text); font-size: 1.125rem; font-weight: 500; }
.faq-ask-body { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.5; }
.faq-ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.faq-ask-mail {
  padding-block: .1875rem; /* a 24px target: it stands alone, so the inline-text exemption does not apply */
  color: var(--band-light-text);
  font-size: .9375rem;
  text-decoration: underline;
  text-decoration-color: var(--accent-ink);
  text-underline-offset: .25em;
}
.faq-ask-mail:hover { color: var(--band-light-text); }

.faq-groups { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 3.5rem); }
/* each group opens on a small mono label; colour.css gives it the gradient */
.faq-groups .faq-topic {
  margin: 0 0 .5rem;
  color: var(--band-light-muted);
  font-family: var(--_typography---font-family--body-alt);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.faq-list { margin: 0; border-top: 1px solid var(--band-light-line); }
.faq-item { border-bottom: 1px solid var(--band-light-line); }
.faq-heading { margin: 0; font-size: inherit; line-height: inherit; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  min-height: 44px;
  padding: 1.25rem 0;
  border: 0;
  background: none;
  color: var(--band-light-text);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.faq-q:hover { color: #383e48; }
/* the marker sits in a small ring so the open state reads at a glance */
.faq-q::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--band-light-line);
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
  transition: transform .35s var(--ease-out), background-color .2s, border-color .2s;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); border-color: var(--accent-ink); color: var(--accent-ink); }
.faq-q:focus-visible { outline: 2px solid var(--band-light-text); outline-offset: 4px; border-radius: 4px; }

.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease-out); }
.faq-a.is-closed { grid-template-rows: 0fr; }
.faq-a-inner { min-height: 0; overflow: hidden; }
.faq-a p {
  max-width: 62ch;
  margin: 0;
  padding: 0 3rem 1.5rem 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
  transition: opacity .3s;
}
.faq-a.is-closed p { opacity: 0; }

@media (max-width: 991px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
}
@media (max-width: 479px) {
  .faq-a p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta, .faq-q, .faq-q::after, .faq-a, .faq-a p { transition: none; }
}

/* ---------- Case studies: cards ----------
   The three newest studies as whole-card links in the page's card style, led by the headline
   metric; "View all" goes to the full index. A broken preview image hides itself and the
   media slot keeps its quiet gradient. */
.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case { display: flex; min-width: 0; }
.case-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, var(--color--gray-1), var(--color--dark));
  color: inherit;
  text-decoration: none;
  transition: border-color .3s, transform .3s cubic-bezier(.16, 1, .3, 1);
}
.case-card:hover { border-color: rgba(255, 255, 255, .18); transform: translateY(-3px); }
.case-card:focus-visible { outline: 2px solid var(--color--white); outline-offset: 3px; }

.case-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 60%), var(--color--gray-1);
}
.case-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.case-media img[hidden] { display: none; }
.case-card:hover .case-media img { transform: scale(1.03); }

.case-body { display: flex; flex-direction: column; gap: .625rem; flex: 1; padding: 1.5rem 1.5rem 0; }
.case-category { margin: 0; color: var(--color--gray-3); font-size: .8125rem; }
.case-metric {
  margin: 0 0 .25rem;
  color: var(--color--white);
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
:is(.home, .case-index, .case-detail) .case-name { margin: 0; color: var(--color--gray-5); font-size: var(--h3-item); line-height: 1.3; text-wrap: balance; }
.case-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--color--gray-3);
  font-size: .9375rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.case-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 1.5rem 0;
  padding: 1.125rem 0 1.375rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
:is(.home, .case-index, .case-detail) .case-client {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: auto; /* site.css fixes this box at 96x24, which would cut a client name set as text */
  height: auto;
  min-width: 0;
  color: var(--color--gray-3);
  font-size: .875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-client img { width: auto; height: 1.125rem; opacity: .8; }
.case-more { display: inline-flex; align-items: center; gap: .375rem; flex: none; color: var(--color--white); font-size: .875rem; font-weight: 500; }
.case-more svg { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.case-card:hover .case-more svg { transform: translateX(3px); }

.cases-all { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }

@media (max-width: 991px) {
  .cases { grid-template-columns: minmax(0, 1fr); max-width: 34rem; margin: 0 auto; }
}

/* the accent on a card: its arrow and its hover edge (home.css repeats these in its accent block) */
.case-more svg { color: var(--accent); }
.case-card:hover { border-color: rgba(255, 255, 255, .32); }


/* ---------- Reveals ----------
   The page-load entrance and scroll reveals (system.js initReveal). The markup is the finished frame:
   these start states exist only while base.html's head script has armed html.reveal (never under
   reduced motion, the pause class, without IntersectionObserver or JS) and only on screen, never in
   print. They set opacity alone, so layout and the observer's geometry are the finished page's.
   initReveal adds .is-revealed as each block plays (and to anything it doesn't claim), which hands the
   element back to its GSAP from-state and then to its own styles. */
@media screen and (prefers-reduced-motion: no-preference) {
  html.reveal:not(.motion-paused) :is(
    .section-heading, .page-title, .hero-title, .cta-band-heading,
    .section-label:has(~ :is(.section-heading, .page-title, .hero-title, .cta-band-heading)),
    .section-intro, .page-lede, .hero-subheading, .hero-actions, .hero-scroll, .cta-band-note, .cta-band-actions,
    .case-card .case-media, .post-row .post-cover, .sample-card
  ):not(.is-revealed):not(.visually-hidden):not([data-reveal="off"]):not([data-reveal="off"] *) { opacity: 0; }
  html.reveal-nav:not(.motion-paused) .navbar:not(.is-revealed) { opacity: 0; }
}
/* SplitText wraps each heading line in an overflow-clipped mask named by suffixing every word of
   linesClass with -mask, so "reveal_line" (no hyphen) makes "reveal_line-mask". Fraunces' italic
   descenders reach below the line box, so each mask gets room below and gives it back */
.reveal_line-mask { padding-bottom: .12em; margin-bottom: -.12em; }
