/* ===== tokens.css ===== */
/* Design tokens mirrored from the Webflow variable set. */

:root {
  --primary: #e5192a;
  --black: #0d0d0d;
  --stroke: #333;
  --black-300: rgba(38, 38, 38, .3);
  --white: #fff;
  --white-100: rgba(255, 255, 255, .1);
  --white-400: rgba(255, 255, 255, .4);
  --white-800: rgba(255, 255, 255, .8);
  --grey: grey;
  --border-1: rgba(255, 255, 255, .5);

  /* --white-400 and --primary both fall under 4.5:1 on --black, so they are
     kept for fills and decoration only. Small text uses these instead. */
  --text-muted: rgba(255, 255, 255, .62);   /* 7.70:1 */
  --primary-text: #e93544;                  /* 4.68:1 */

  /* --white on --primary (the .btn fill, layout.css) is ~4.66:1 — passes AA
     for normal text but with almost no headroom. Don't darken --primary or
     override .btn label color without rechecking this. */

  --font-body: "Clash Display", "Arial Narrow", system-ui, sans-serif;
  --font-secondary: "Inter Tight", system-ui, -apple-system, sans-serif;

  --w-regular: 400;
  --w-medium: 500;
  --w-semibold: 600;
  --w-bold: 700;

  --lh-s: 100%;
  --lh-m: 120%;
  --lh-l: 132%;
  --lh-xl: 140%;
  --lh-2xl: 160%;

  --container-pad: 15px;
  --container-max: 1240px;

  /* Webflow held discrete values per breakpoint. clamp() interpolates the
     same endpoints so nothing jumps at a breakpoint edge. */
  --sp-small: clamp(20px, 1rem + 4vw, 90px);
  --sp-large: clamp(40px, 2rem + 8vw, 180px);

  --h1: clamp(43px, 1.5rem + 9vw, 204px);
  --h2: clamp(30px, 1.2rem + 5vw, 92px);
  --h3: clamp(24px, 1.1rem + 1.6vw, 46px);
  --h4: clamp(14px, .7rem + 1.1vw, 36px);
  --h5: clamp(17px, .9rem + .8vw, 32px);
  --h6: clamp(15px, .85rem + .5vw, 24px);
  --p1: clamp(16px, .95rem + .25vw, 20px);
  --p2: clamp(15px, .92rem + .1vw, 16px);
  --btn-text: 18px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .8s;
  --dur-fast: .3s;

  --radius-pill: 999px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 6px;
}

/* Self-hosted. Clash Display arrives from the brand's asset host as .otf and
   is converted to WOFF2 here (fontTools, flavor=woff2): same outlines, 39%
   fewer bytes, and unlike .otf it is a format the server never has to try to
   compress. The .otf originals stay in this folder as the source.
   Inter Tight is the Google Fonts variable cut, so one file covers 400-500. */
@font-face {
  font-family: "Clash Display";
  src: url("/fonts/ClashDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("/fonts/ClashDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("/fonts/ClashDisplay-Semibold.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/InterTight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/InterTight-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Keeps anchored sections clear of the fixed navbar on click-scroll. */
[id] { scroll-margin-top: 100px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-secondary);
  font-size: var(--p2);
  line-height: var(--lh-xl);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--w-semibold);
  line-height: var(--lh-s);
  letter-spacing: -.02em;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }

p { margin: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

::selection { background: var(--primary); color: var(--white); }

.container {
  z-index: 111;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: max(var(--container-pad), 5vw);
}

/* --sp-large is the section rhythm. Without it every band sat flush against
   its neighbour, which is what made the page read as a stack of blocks
   rather than a composition. (The old background-color here pointed at
   --dark-shade--black, a Webflow variable that was never carried over, so it
   resolved to nothing.) */
.section {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-large);
  overflow: hidden;
}

/* Consecutive .sections would otherwise stack a full rhythm from each. */
.section + .section { padding-top: 0; }

.section--tight { padding-block: var(--sp-small); }

.p1 { font-size: var(--p1); line-height: var(--lh-xl); }
.p2 { font-size: var(--p2); line-height: var(--lh-xl); color: var(--white-800); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--h6);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--white-800);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 15px;
  z-index: 101;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 15px; }

/* ===== layout.css ===== */
/* ---------- navbar ---------- */

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 20px;
  transition: transform .4s var(--ease), background-color .3s linear;
}

.navbar.is-hidden { transform: translateY(-100%); }

/* Same containing-block trap as the backdrop below, reached through transform
   this time. js/motion.js already refuses to hide the navbar while the menu is
   open, but the 0.4s slide back from hidden leaves a transform in flight, and
   opening the menu during it would mis-size the panel. */
.navbar:has(.nav-menu.is-open) {
  transform: none;
  transition: none;
}

/* The stuck backdrop lives on a pseudo-element, NOT on .navbar itself, and
   that is load-bearing. A non-none backdrop-filter (like transform, like
   filter) makes an element the containing block for its position:fixed
   descendants. With the blur on .navbar, the fixed full-screen .nav-menu
   inside it stopped resolving inset:0 against the viewport and resolved it
   against the navbar instead — so the moment you scrolled, opening the mobile
   menu produced an 84px strip across the top rather than a full-screen panel.
   Keeping the filter on ::after leaves .navbar a plain positioned box. */
.navbar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: rgba(13, 13, 13, .82);
  border-bottom: 1px solid var(--white-100);
  transition: opacity .3s linear;
}

.navbar.is-stuck::after {
  opacity: 1;
  backdrop-filter: blur(14px);
}

/* Permanent scrim so the logo/links keep contrast over light hero/section
   content before .is-stuck's solid backdrop kicks in at 40px of scroll.
   200px (not sized to today's ~110px navbar box) so it still covers the
   navbar at large text-zoom/system font sizes, where its content grows
   taller without this rule changing. */
.navbar::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 200px;
  background: linear-gradient(to bottom, rgba(13, 13, 13, .65), rgba(13, 13, 13, 0));
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s var(--ease);
}
.navbar.is-stuck::before { opacity: 0; }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* The SVG is inlined in the markup so its fill="currentColor" inherits this
   color instead of the SVG document's own black default. */
.navbar__logo {
  display: block;
  width: 150px;
  color: var(--white);
}
.navbar__logo svg {
  width: 100%;
  height: auto;
  /* Belt-and-braces contrast: holds up even where the scrim/backdrop is
     thin, e.g. mid-transition or over a bright frame of the liquid shader. */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .55));
}

.nav-menu { display: flex; align-items: center; gap: 32px; }

/* padding-block gets the hit area to 24px+ for WCAG 2.2 target size */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  min-height: 24px;
  font-size: var(--p2);
  color: var(--white-800);
  transition: color .25s;
}

.nav-link__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .25s, transform .25s var(--ease);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover .nav-link__dot,
.nav-link.is-active .nav-link__dot { opacity: 1; transform: none; }

/* Two stacked labels sliding as one block. Transform-only (no opacity fade)
   so the swap reads as one clean line rolling out and the next rolling in,
   with no mid-transition cross-fade blur between the two copies. */
.btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  font-size: var(--btn-text);
  font-family: var(--font-body);
  font-weight: var(--w-medium);
  line-height: 1;
  box-shadow: 0 8px 24px -10px rgba(229, 25, 42, .45);
  /* transform is intentionally NOT transitioned here: [data-magnetic]
     buttons drive it continuously via anime.js (js/animations.js), and a
     competing CSS transition on the same property reads as lag/rubber-
     banding against that. Plain .btn:hover below still gets an instant
     lift on devices animations.js doesn't attach to. */
  transition: box-shadow var(--dur-fast) var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(229, 25, 42, .75);
}

/* Its own overflow:hidden, sized tight to one line of content — .btn's own
   overflow:hidden clips at ITS padding edge (14px above/below the labels),
   not at the labels' own edge, so a label sliding by only 100% of its own
   height stayed partly inside that padding gap and never fully left view.
   Clipping right at the label box itself removes that gap entirely. */
.btn__labels { display: grid; overflow: hidden; }
.btn__labels span { grid-area: 1 / 1; transition: transform .25s var(--ease); }
.btn__labels span:last-child { transform: translateY(100%); }
.btn:hover .btn__labels span:first-child { transform: translateY(-100%); }
.btn:hover .btn__labels span:last-child { transform: none; }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-1);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 8px 24px -10px rgba(255, 255, 255, .35);
}

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--white);
  transition: transform .35s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991px) {
  .nav-toggle { display: block; }

  /* Hidden here, but NOT dropped: partials/cta-dock.php carries it at the
     bottom of the viewport instead, at full size. The header row on a phone
     is ~353px of content and a third control only fits by shrinking the
     button to 14px type and 20px padding against the 18px/34px it uses
     everywhere else — a miniature of the CTA rather than the CTA. The menu
     has no Contact link either, so without the dock a phone would have no
     route to the form at all. See the note in that file. */
  .navbar__cta { display: none; }

  .nav-menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: var(--black);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .55s var(--ease);
  }
  .nav-menu.is-open { clip-path: inset(0); }
  .nav-menu .nav-link {
    font-size: var(--h3);
    font-family: var(--font-body);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
    transition-delay: 0s;
  }
  .nav-menu.is-open .nav-link {
    opacity: 1;
    transform: none;
  }
  .nav-menu.is-open .nav-link:nth-child(1) { transition-delay: .08s; }
  .nav-menu.is-open .nav-link:nth-child(2) { transition-delay: .13s; }
  .nav-menu.is-open .nav-link:nth-child(3) { transition-delay: .18s; }
  .nav-menu.is-open .nav-link:nth-child(4) { transition-delay: .23s; }
  .nav-menu.is-open .nav-link:nth-child(5) { transition-delay: .28s; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  /* vh first so the rule survives where svh is unsupported — see the same
     pairing on .showcase__media in sections.css.
     The ceiling is the proportion fix: a plain 100svh on a tall monitor gave
     a 1200px section holding ~330px of copy, and no amount of type scaling
     closes a gap that grows with the viewport. Below the ceiling — every
     laptop and every phone — min() resolves to 100svh and nothing changes.
     Above it the hero stops growing and the next section starts to show,
     which also tells the visitor there is something to scroll to.

     920px to 820px on 2026-11-13, from design review: "cuidar que no haya
     tanto espacio entre la primer sección y la segunda". Measured at 1440x900
     before the change, the run from the last line of hero copy to the first
     number in the band below it was 402px — the hero's own 90px bottom
     padding, 165px of slack left by centring content in a box far taller than
     it needs, and 147px of the next section's top padding. This cuts the
     middle term; the pair rule on .stats cuts the third. The content is still
     centred, which is what stopped the hero reading top-heavy in the first
     place — there is simply less box to centre it in. */
  min-height: 100vh;
  min-height: min(100svh, 820px);
  display: flex;
  /* Centred, not bottom-pinned. Pinned to flex-end the copy occupied the
     last quarter of a full-height section and everything above it was empty
     backdrop — the headline read as a caption under the animation rather
     than as the page's opening statement. Centring splits the remaining
     space above and below it instead of banking it all at the top.
     The top value still clears the fixed navbar. */
  align-items: center;
  padding-block: 120px var(--sp-small);
  background-color: var(--black);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Was tuned to hold a photograph back, then to keep the copy legible over
     the lower half. The copy is centred now, so the dark band moves up with
     it: clear at the top where the ring is the whole point, dark from the
     middle down where the words are. Get this out of step with
     align-items on .hero and the headline sits in the one transparent
     stripe. */
  background: linear-gradient(to bottom, rgba(13,13,13,.55) 0%, rgba(13,13,13,.1) 26%, rgba(13,13,13,.82) 58%, rgba(13,13,13,.96) 100%);
}

/* ---------- hero backdrop: the lens ---------- */

/* Everything the client could buy, and the part worth buying.
 *
 * WHY THIS AND NOT THE WAVE IT REPLACED. The signal field drew one source
 * broadcasting and an audience lighting up, which illustrated the headline it
 * was built for. The headline is now "Scale Revenue / Not Just Ad Spend",
 * which is about efficiency rather than reach, so the wave referred to nothing
 * on the page any more. It is in _archive/2026-10-30-hero-signal/ with its
 * geometry and its comments intact if it is ever wanted back.
 *
 * WHAT MAKES IT A LENS AND NOT A SPOTLIGHT. The dots under the glass sit on a
 * 34px grid against the 26px one outside it. A spotlight brightens; a lens
 * enlarges, and that change of SIZE across the rim is the whole illusion.
 * Take the magnification out and this becomes a moving highlight.
 *
 * THE DOTS NEVER MOVE. Only the aperture and the glass travel, so the field
 * reads as fixed ground being inspected rather than as particles drifting.
 */
/* THE CONTAINER IS THIS ELEMENT, NOT .hero.
 *
 * Everything below is measured in cqh and cqw, so something has to be the
 * query container, and it has to have a size that does not come from its
 * contents. .hero does not qualify: its height comes from min-height, and a
 * min-height is not a definite block size — put container-type: size on it
 * and every cqh resolves to 0px with no warning, which collapses the glass
 * to nothing. Measured, not guessed: 40cqh came back as 0px while 62cqw came
 * back as 883px.
 *
 * This element is inset: 0 inside .hero, so its size is handed to it by its
 * containing block. That is definite in both axes, which is exactly what
 * size containment needs.
 */
.lens {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  /* Its own stacking context, so the glass cannot paint over the copy. */
  isolation: isolate;
  container-type: size;
}

/* The glass diameter, declared once: .lens__sharp sizes its mask from it,
   .lens__glass sizes itself from it, and both sets of keyframes subtract half
   of it. It lives on the children rather than on .lens because a container
   cannot read its own container units.
   min() of the two axes rather than a width, because the hero changes SHAPE
   between breakpoints and not merely size. A plain cqw value is 236px on a
   desktop hero and a lost 90px disc on a phone; a plain cqh is 236px on
   desktop and then taller than a phone hero is wide. */
.lens__sharp,
.lens__glass { --lens-d: min(40cqh, 62cqw); }

.lens__aura {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 86%;
  aspect-ratio: 1.3;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(229, 25, 42, .26) 0%, rgba(229, 25, 42, .07) 45%, rgba(229, 25, 42, 0) 70%);
  filter: blur(40px);
  opacity: .55;
}

/* Both layers are flush with the hero, NOT inset: the keyframes below are
   written in container units, so these boxes have to BE the container's box
   or every centre is off by the inset. */
.lens__field,
.lens__sharp {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}

/* The whole market: present, uniform, dim enough to stay texture. */
.lens__field {
  background-image: radial-gradient(rgba(255, 255, 255, .9) 1.1px, transparent 1.6px);
  background-size: 26px 26px;
  opacity: .2;
}

/* The same field seen through the glass: a 1.3x grid, and the dot grows with
   it. closest-side on a square mask box puts 100% exactly at the glass radius,
   so the aperture and the rim are the same circle by construction. */
.lens__sharp {
  background-image: radial-gradient(rgba(233, 53, 68, 1) 1.9px, transparent 2.7px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0 70%, rgba(0, 0, 0, .5) 88%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 0 70%, rgba(0, 0, 0, .5) 88%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: var(--lens-d) var(--lens-d);
  mask-size: var(--lens-d) var(--lens-d);
  animation: lens-aperture 17s cubic-bezier(.5, 0, .25, 1) infinite;
}

/* THE PATH, AND WHY BOTH LAYERS READ IT FROM THE SAME NUMBERS.
 *
 * mask-position percentages do not mean "centre here" — they mean "this
 * fraction of the leftover space". An earlier version had the aperture in
 * those percentages and the rim in left/top, hand-matched, and the two drifted
 * apart at every viewport: the rim was never quite around the magnified patch
 * it was meant to be bounding. Both are now written as a centre in cqw/cqh,
 * and the mask subtracts its own radius.
 *
 * Every stop sits in the right-hand or lower part of the frame. The copy is
 * left-aligned on a wide hero and centred on a narrow one, so a lens wandering
 * through the middle would sit on the headline. The 52% stop is at 82cqh
 * rather than the 64cqh it started at for exactly that reason: 64% of a 900px
 * desktop hero clears the copy, but 64% of an 812px phone hero is 520px, and
 * with a 116px radius that put the glass straight across "Not Just Ad Spend".
 * One stop that works at both shapes beats a second set of keyframes.
 *
 * Move a stop and move its twin in lens-glass, or the glass and the
 * magnification separate and the illusion dies instantly.
 */
@keyframes lens-aperture {
  0%       { -webkit-mask-position: calc(76cqw - var(--lens-d) / 2) calc(26cqh - var(--lens-d) / 2); mask-position: calc(76cqw - var(--lens-d) / 2) calc(26cqh - var(--lens-d) / 2); }
  28%      { -webkit-mask-position: calc(58cqw - var(--lens-d) / 2) calc(74cqh - var(--lens-d) / 2); mask-position: calc(58cqw - var(--lens-d) / 2) calc(74cqh - var(--lens-d) / 2); }
  52%      { -webkit-mask-position: calc(88cqw - var(--lens-d) / 2) calc(82cqh - var(--lens-d) / 2); mask-position: calc(88cqw - var(--lens-d) / 2) calc(82cqh - var(--lens-d) / 2); }
  74%, 92% { -webkit-mask-position: calc(70cqw - var(--lens-d) / 2) calc(30cqh - var(--lens-d) / 2); mask-position: calc(70cqw - var(--lens-d) / 2) calc(30cqh - var(--lens-d) / 2); }
  100%     { -webkit-mask-position: calc(76cqw - var(--lens-d) / 2) calc(26cqh - var(--lens-d) / 2); mask-position: calc(76cqw - var(--lens-d) / 2) calc(26cqh - var(--lens-d) / 2); }
}

/* THE GLASS ITSELF.
 *
 * Four cues, in the order the eye picks them up: light entering the top of the
 * body, a red bounce off the bottom where the dots underneath show through, a
 * bright line right at the rim, and a glow cast on the field outside.
 *
 * None of it is a border. A 1px outline reads as a circle drawn on the page,
 * and the whole point is that this is an object sitting above it.
 */
.lens__glass {
  position: absolute;
  width: var(--lens-d);
  height: var(--lens-d);
  margin: calc(var(--lens-d) / -2) 0 0 calc(var(--lens-d) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%,
    rgba(255, 255, 255, .075) 0%,
    rgba(255, 255, 255, .02) 40%,
    rgba(229, 25, 42, .05) 72%,
    rgba(229, 25, 42, .13) 100%);
  box-shadow:
    inset 0 12cqw 26cqw -14cqw rgba(255, 255, 255, .17),
    inset 0 -14cqw 30cqw -16cqw rgba(229, 25, 42, .55),
    0 0 7cqw 1cqw rgba(229, 25, 42, .13);
  animation: lens-glass 17s cubic-bezier(.5, 0, .25, 1) infinite;
}

/* Refraction at the edge. A real lens is brightest where its surface is
   steepest, and that is a ring rather than an outline. The conic gradient puts
   two bright arcs opposite each other, which is what a light above and a
   surface below produce. */
.lens__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 205deg,
    rgba(255, 255, 255, .55),
    rgba(255, 255, 255, 0) 26%,
    rgba(229, 53, 68, .5) 54%,
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, .55));
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(circle closest-side, transparent 0 calc(100% - 2px), #000 calc(100% - 2px));
}

/* The specular glint: the cheapest thing that turns a hole into an object.
   A soft gradient rather than filter: blur(), which would repaint on every
   frame of travel. */
.lens__glass::after {
  content: "";
  position: absolute;
  left: 17%;
  top: 12%;
  width: 34%;
  height: 21%;
  border-radius: 50%;
  transform: rotate(-24deg);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .34), rgba(255, 255, 255, .08) 45%, rgba(255, 255, 255, 0) 72%);
}

/* The twin of lens-aperture. Same four stops, in the same order. */
@keyframes lens-glass {
  0%       { left: 76cqw; top: 26cqh; }
  28%      { left: 58cqw; top: 74cqh; }
  52%      { left: 88cqw; top: 82cqh; }
  74%, 92% { left: 70cqw; top: 30cqh; }
  100%     { left: 76cqw; top: 26cqh; }
}

@media (prefers-reduced-motion: reduce) {
  /* Parked on the stop the loop settles at, which is where it spends most of
     its time anyway. Nothing moves; the lens is simply resting on the segment
     it chose. */
  .lens__sharp {
    animation: none;
    -webkit-mask-position: calc(70cqw - var(--lens-d) / 2) calc(30cqh - var(--lens-d) / 2);
    mask-position: calc(70cqw - var(--lens-d) / 2) calc(30cqh - var(--lens-d) / 2);
  }
  .lens__glass { animation: none; left: 70cqw; top: 30cqh; }
}

.hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
  /* Was the gap to the wordmark underneath. Nothing follows it now. */
  margin-bottom: 0;
}

.hero__claim {
  max-width: 22ch;
  font-family: var(--font-body);
  font-size: var(--h4);
  font-weight: var(--w-medium);
  line-height: var(--lh-m);
}

.hero__services { display: grid; gap: 4px; text-align: right; }
.hero__services p { font-size: var(--p2); color: var(--white-800); }


@media (max-width: 767px) {
  .hero__top { grid-template-columns: 1fr; }
  .hero__services { text-align: left; }
}

/* ---------- marquee ---------- */

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--marquee-gap, 48px);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--marquee-gap, 48px);
  min-width: 100%;
  animation: marquee var(--marquee-dur, 30s) linear infinite;
}

.marquee--reverse .marquee__track { animation-direction: reverse; }
/* Marquees never pause on hover — they're ambient/decorative motion, not
   something a user is meant to stop and read line-by-line. */

@keyframes marquee {
  to { transform: translate3d(calc(-100% - var(--marquee-gap, 48px)), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- mobile CTA dock ---------- */

/* The bottom-docked CTA. Markup and show/hide logic in
   partials/cta-dock.php; this is only its appearance.
   Mobile only — on desktop the navbar button is present and in reach.

   This base rule is load-bearing, not tidiness. Everything below lives in a
   max-width query, so without it the element falls back to a plain static
   <div> on desktop and renders a stray 157x46 "Book a call" in the page flow
   under the footer. Caught on a 1440px pass, not reasoned about. */
.cta-dock { display: none; }

@media (max-width: 991px) {
  .cta-dock {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* Above the page and the navbar (100), below the cookie notice (9997),
       which it also hides for — see cta-dock.php. */
    z-index: 95;
    padding: 16px var(--container-pad);
    /* The home-indicator strip on a notched iPhone. Without this the button
       sits under it and the bottom few pixels are not tappable. */
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    /* Fades the page out behind the bar instead of cutting it with a hard
       edge, so the bar reads as part of the page rather than pasted over it.
       pointer-events stays off here: only the button itself takes clicks, or
       the gradient would swallow taps across the full width. */
    background: linear-gradient(to top, rgba(13, 13, 13, .96) 60%, rgba(13, 13, 13, 0));
    pointer-events: none;
    /* Hidden state. visibility (not display) so the transition has something
       to run on, and so it leaves the tab order while out of view. */
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
    transition: transform .35s var(--ease), opacity .25s linear, visibility 0s .35s;
  }

  .cta-dock.is-in {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: transform .35s var(--ease), opacity .25s linear, visibility 0s 0s;
  }

  .cta-dock__btn {
    pointer-events: auto;
    display: grid;
    width: 100%;
    /* Full desktop proportions — the whole reason the button moved down
       here rather than being squeezed into the header. */
    padding: 16px 34px;
    font-size: var(--btn-text);
  }
}

/* A slide-in is motion for its own sake to anyone who has asked for less of
   it; the bar still appears and disappears, it just stops travelling. */
@media (prefers-reduced-motion: reduce) {
  .cta-dock { transition: opacity .2s linear, visibility 0s .2s; transform: none; }
  .cta-dock.is-in { transition: opacity .2s linear, visibility 0s 0s; }
}

/* Small phones (iPhone SE and the narrow Androids). The header is logo +
   burger only now, but the wordmark still crowds the burger at 320px. */
@media (max-width: 359px) {
  .navbar__logo { width: 112px; }
}

/* ===== sections.css ===== */
/* ---------- about ---------- */

.about__body {
  font-family: var(--font-body);
  font-size: var(--h4);
  font-weight: var(--w-regular);
  line-height: var(--lh-m);
  max-width: 40ch;
}

/* position/z-index are not decoration: since 2026-11-13 this strip lives
   inside .stats, whose .stats__media is absolutely positioned with z-index 0.
   A static element loses to a positioned one in the same stacking context, so
   without these the logos paint underneath the video. .stats__grid carries the
   same pair for the same reason. */
.logo-strip {
  position: relative;
  z-index: 1;
  margin-top: var(--sp-small);
  --marquee-gap: 72px;
  --marquee-dur: 38s;
}
/* The logos are already white on transparency (tools/clients/build.mjs), so
   there is no filter here — the previous set were black SVGs that needed
   invert(1) to show up at all.

   Both axes are capped rather than forcing a single height: these come in
   every ratio from a square badge to a long wordmark, and matching their
   heights would make the square ones read as half the size. */
.logo-strip img {
  max-height: 34px;
  max-width: 130px;
  width: auto;
  height: auto;
  opacity: .55;
  transition: opacity .3s;
}
.logo-strip img:hover { opacity: 1; }

/* ---------- section opening rule ---------- */

/* A hairline that draws itself left-to-right as the section arrives
   (js/interactions.js toggles .is-drawn; [data-line] in interactions.css owns
   the transition). It carries .container so it lines up with the copy below,
   and background-clip keeps the paint inside the gutter.

   Matched on class AND attribute deliberately: [data-line] sets `background`
   as a shorthand, which resets background-clip, and interactions.css loads
   after this file — so this needs to win on specificity, not order. */
.section__rule[data-line] {
  background-clip: content-box;
  margin-bottom: clamp(24px, 3vw, 56px);
}

/* ---------- work process ---------- */

.work__grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.work__head { position: sticky; top: 120px; }

.work__grid > div { display: grid; gap: 20px; }

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  padding: 32px clamp(20px, 3vw, 40px);
  border: 1px solid var(--white-100);
  border-radius: var(--radius-lg);
  background: var(--black-300);
  transition: border-color .3s, transform .4s var(--ease), background-color .3s;
}
.step:hover {
  border-color: var(--border-1);
  background: rgba(38, 38, 38, .5);
  transform: translateY(-4px);
}

.step__num {
  font-family: var(--font-body);
  font-size: var(--h5);
  color: var(--primary-text);
  font-variant-numeric: tabular-nums;
}

.step__title {
  font-family: var(--font-body);
  font-size: var(--h4);
  font-weight: var(--w-medium);
  margin-bottom: 12px;
}

@media (max-width: 991px) {
  .work__grid { grid-template-columns: 1fr; }
  .work__head { position: static; }
}

/* ---------- services ---------- */

.services__intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.services__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); }

.services__lead {
  max-width: 46ch;
  font-family: var(--font-body);
  font-size: var(--h4);
  line-height: var(--lh-m);
  margin-bottom: var(--sp-small);
}

.service {
  border-top: 1px solid var(--white-100);
}
.service:last-child { border-bottom: 1px solid var(--white-100); }

.service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding-block: clamp(20px, 2.5vw, 34px);
  text-align: left;
}

.service__title {
  font-family: var(--font-body);
  font-size: var(--h3);
  font-weight: var(--w-medium);
  text-transform: uppercase;
  letter-spacing: -.01em;
  transition: color .3s;
}

.service[open] .service__title,
.service__head:hover .service__title { color: var(--primary); }

.service__icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px; height: 22px;
}
.service__icon::before,
.service__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  background: currentColor;
  transition: transform .35s var(--ease);
}
.service__icon::after { transform: rotate(90deg); }
.service[open] .service__icon::after { transform: rotate(0); }

/* Animating grid-template-rows keeps the transition on the compositor and
   avoids the max-height guesswork. */
.service__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.service[open] .service__panel { grid-template-rows: 1fr; }

.service__panel > div { overflow: hidden; }

.service__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: 34px;
}

/* Rows, not pill badges: a small plus-mark + name per line, closer to the
   site's reference design than a wrapped chip cloud. */
.service__tags {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-content: start;
}

.tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--p1);
  color: var(--white-800);
  transition: color .25s, gap .25s var(--ease);
}
.tag:hover { color: var(--white); gap: 16px; }

.tag::before {
  content: "";
  width: 10px; height: 10px;
  flex: 0 0 auto;
  background: var(--primary);
  clip-path: polygon(45% 0, 55% 0, 55% 45%, 100% 45%, 100% 55%, 55% 55%, 55% 100%, 45% 100%, 45% 55%, 0 55%, 0 45%, 45% 45%);
  transition: transform .25s var(--ease);
}
.tag:hover::before { transform: rotate(90deg); }

@media (max-width: 767px) {
  .service__body { grid-template-columns: 1fr; }
}

/* ---------- testimonials ---------- */

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--white-100);
  border-radius: var(--radius-lg);
  background: var(--black-300);
  transition: border-color .3s, transform .4s var(--ease);
}
.quote:hover { border-color: var(--border-1); }

/* Alternating entrance offsets so the grid cascades in instead of every
   card rising in an identical line. These out-specificity the generic
   [data-reveal] rule in reveal.css, so the two overrides below (equal
   specificity to each other, "not resting" checked first) settle the
   final resting/hover transform once revealed. */
.testimonials__grid .quote:nth-child(3n+1) { transform: translate3d(0, 36px, 0); }
.testimonials__grid .quote:nth-child(3n+2) { transform: translate3d(0, 20px, 0); }
.testimonials__grid .quote:nth-child(3n+3) { transform: translate3d(0, 44px, 0); }
.testimonials__grid .quote.is-in:not(:hover) { transform: none; }
.testimonials__grid .quote.is-in:hover { transform: translateY(-4px); }

/* On a phone the grid collapses to one column and the five cards become a
   very long scroll that most people abandon after the second. A swipeable
   track puts them side by side instead.

   Deliberately no JavaScript: scroll-snap handles the gesture, the momentum
   and the landing natively, so there is no index to keep in sync and nothing
   that can disagree with what is on screen — which is precisely the failure
   the Results arrows had. There are no buttons here for the same reason.
   The peek of the next card is the affordance that says it moves. */
@media (max-width: 767px) {
  .testimonials__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    /* Pulled out to the screen edges, then padded back in, so a card can sit
       flush with the heading above while the track itself bleeds — otherwise
       the next card is clipped by the container instead of peeking. */
    margin-inline: calc(max(var(--container-pad), 5vw) * -1);
    padding-inline: max(var(--container-pad), 5vw);
    scroll-padding-inline: max(var(--container-pad), 5vw);
    padding-block: 4px;
    scrollbar-width: none;
  }

  .testimonials__grid::-webkit-scrollbar { display: none; }

  .testimonials__grid > .quote { scroll-snap-align: start; }

  /* The cards opt out of [data-reveal] here. motion.js only marks an element
     visible at 25% intersection, and the card peeking past the right edge
     shows 22% — just under — so it sat at opacity 0 and the track looked like
     a single card with dead space beside it. That peek IS the affordance that
     says the row moves, so it cannot be invisible. Revealing them one by one
     as they are swiped in was the alternative, and it reads as flicker. */
  .testimonials__grid > .quote[data-reveal] {
    opacity: 1;
    transform: none;
  }

  /* The staggered entrance offsets were drawn for a vertical cascade. Left on
     a horizontal track they shove cards out of their snap positions. */
  .testimonials__grid .quote:nth-child(3n+1),
  .testimonials__grid .quote:nth-child(3n+2),
  .testimonials__grid .quote:nth-child(3n+3),
  .testimonials__grid .quote.is-in:hover { transform: none; }
}

.quote__stars { display: flex; gap: 4px; color: var(--primary); }
.quote__stars svg { width: 16px; height: 16px; }

.quote__title {
  font-family: var(--font-body);
  font-size: var(--h5);
  font-weight: var(--w-medium);
  line-height: var(--lh-m);
}

.quote__text { font-size: var(--p2); color: var(--white-800); line-height: var(--lh-xl); }

.quote__person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
/* Serves both forms: the <img> when a portrait exists and the bare <span>
   when one does not, so a testimonial added without a photo still lines up
   instead of collapsing. object-fit matters even though the files are already
   square — it is what stops a wrong-sized upload from stretching a face. */
.quote__avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--stroke);
  object-fit: cover;
}
.quote__name { font-family: var(--font-body); font-weight: var(--w-medium); }
.quote__role { font-size: var(--p2); color: var(--text-muted); }

/* ---------- big image ---------- */

.showcase { position: relative; }

/* 56vw is the mobile fix, and it needs no breakpoint.
   The complaint (design review 2026-11-19) was that this band "queda
   demasiado largo" on a phone and should read as a transition into the form,
   not as a stop. The real fault was never the height on its own — it was the
   height RELATIVE TO THE WIDTH: 70svh on a 375x812 phone is 568px of photo in
   a 375px-wide column, a portrait slab. Capping against the viewport's width
   as well turns it into a band at every shape:

     375 x 812   70svh=568  56vw=210  ->  210   a banner
     768 x 1024  70svh=717  56vw=430  ->  430   a band
     1440 x 900  70svh=630  56vw=806  ->  630   unchanged
     1920 x 1080 70svh=756  56vw=1075 ->  756   unchanged

   So every desktop keeps exactly the height it had and only the narrow
   shapes change, which a max-width media query could not have expressed
   without guessing at a breakpoint.

   vh first, svh second: where svh is unsupported the second declaration is
   dropped at parse time and vh carries the band. Without the fallback the
   whole rule is lost and the media collapses to 0 — the img inside is sized
   in percent, so it has no intrinsic height to fall back on.

   .showcase--waves sets its own height later in media.css and is two classes
   deep, so it wins over this and is untouched. */
.showcase__media {
  position: relative;
  height: min(70vh, 56vw);
  height: min(70svh, 56vw);
  overflow: hidden;
}

/* <picture> is inline by default, which would introduce a line box between
   .showcase__media and the img it sizes. display:contents removes the wrapper
   from layout so the img stays an effective direct child. */
.showcase__media picture { display: contents; }

.showcase__media img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  transform: translate3d(0, var(--parallax, 0), 0);
  will-change: transform;
}

/* Fades the hard photo edges into the sections above/below so the
   transition feels continuous instead of a flat crop. */
.showcase__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, var(--black) 0%, transparent 12%, transparent 88%, var(--black) 100%);
  pointer-events: none;
}

/* ---------- contact ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.person { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.person__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--stroke);
  /* The source is a square head crop, but object-fit keeps it honest if the
     photo is ever replaced with something that is not. */
  object-fit: cover;
}
.person__name { font-family: var(--font-body); font-weight: var(--w-medium); text-transform: capitalize; }
.person__role { font-size: var(--p2); color: var(--text-muted); }

.form { display: grid; gap: 14px; }

.field {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--white-100);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--white);
  font: inherit;
  transition: border-color .25s;
}
.field::placeholder { color: var(--text-muted); }
.field:focus { border-color: var(--primary); }
/* Drop the ring for pointer focus only. Blanket outline:none on :focus
   would strip it for keyboard users too. */
.field:focus:not(:focus-visible) { outline: none; }
textarea.field { min-height: 140px; resize: vertical; }

.form__submit { justify-self: start; border: 0; }
.form__submit[disabled] { opacity: .6; cursor: progress; }

.form__note { font-size: var(--p2); border-radius: var(--radius-md); padding: 16px 20px; display: none; }
.form__note--ok { background: rgba(255,255,255,.06); border: 1px solid var(--border-1); }
.form__note--bad { background: rgba(229,25,42,.12); border: 1px solid var(--primary); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ---------- cta + footer ---------- */

/* Two rows crossing in opposite directions, like the site's reference
   design — one .marquee scrolling left, one .marquee--reverse scrolling
   right, stacked with a gap between. */
.cta-marquee {
  --marquee-gap: 40px;
  --marquee-dur: 26s;
  display: grid;
  gap: 16px;
  padding-block: 24px;
  background: var(--primary);
  color: var(--white);
}
.cta-marquee__word {
  font-family: var(--font-body);
  font-weight: var(--w-semibold);
  font-size: var(--h2);
  line-height: var(--lh-s);
  text-transform: capitalize;
  white-space: nowrap;
}
.cta-marquee .star { width: 22px; height: 22px; color: var(--white); flex: 0 0 auto; }

/* ---------- thank you (/thank-you/) ---------- */

/* The only section on its page, and the one page with no hero, so it carries
   the clearance the fixed .navbar would otherwise sit on top of. min-height
   keeps the footer from riding up under a short page on a tall screen.
   Deliberately NOT a flex container: .section__rule is a sibling of the
   .container here, and making the section flex turns both into flex items,
   which collapses the grid inside to zero width. */
.thanks {
  padding-top: clamp(140px, 8rem + 6vw, 240px);
  padding-bottom: clamp(80px, 4rem + 6vw, 160px);
  min-height: 78svh;
}

/* Same two-column rhythm as .work__grid: statement on the left, the numbered
   cards on the right. Reusing .step verbatim is the point — a visitor who
   just read the work process recognises the shape. */
.thanks__grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

/* 34ch is the homepage measure, set against its 420px column. This column is
   520px to hold the longer title, and at 34ch the paragraph read as a narrow
   strip beside a much wider heading. */
.thanks__lead { max-width: 42ch; margin-top: 24px; }

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.thanks__steps { display: grid; gap: 20px; }

.thanks__meanwhile {
  color: var(--text-muted);
  margin-top: 8px;
  padding-inline: clamp(20px, 3vw, 40px);
}

@media (max-width: 991px) {
  .thanks { min-height: 0; }
  .thanks__grid { grid-template-columns: 1fr; }
}

/* ---------- the divergence band ---------- */

/* Stands where the street photograph used to. Its animation hangs off the
   shared [data-reveal] .is-in contract (motion.js), which toggles both ways —
   so the chart redraws each time it is scrolled back to, instead of being
   missed once and never seen again. */
.divergence {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 120px);
  background: var(--black);
}

/* No ambient glow behind this one. A blurred radial here is wider than the
   section is tall, so overflow clips it into a visible rectangle — and with it
   gone the chart reads harder against flat black, which is the point. */

/* Wider than the 1240px text container every other section uses, on purpose.
   This band stands where a full-bleed photograph did, and capped at 1240 it
   arrived as a stamp on a big monitor: at 2560 the container's 5vw gutters ate
   256px, the fixed copy column took 420 of what was left, and the chart came
   out 508px wide — 20% of the screen. The copy still only wants ~420px to set
   four lines; everything beyond that belongs to the picture, which is the half
   carrying the argument. */
.divergence .divergence__inner {
  position: relative;
  max-width: min(1760px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

/* An h2 for the outline, but not at --h2's size: that scale tops out at 92px,
   which in a 420px column sets this sentence as seven lines and shoves the
   chart — the half that carries the argument — off the band. --h3 is the size
   this was drawn at. Same reasoning as .footer__label. */
.divergence__title {
  margin: 18px 0 18px;
  font-size: var(--h3);
  line-height: var(--lh-m);
  font-weight: var(--w-semibold);
}

.divergence__title span { color: var(--primary); }

.divergence__lede {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: var(--p2);
  line-height: var(--lh-xl);
  color: var(--text-muted);
}

/* The three parts of the strategy, under the lede. Sized at --p2 like the
   lede so they read as the same voice continuing, not as a caption. */
.divergence__parts {
  margin: clamp(18px, 2vw, 26px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-family: var(--font-secondary);
  font-size: var(--p2);
  line-height: var(--lh-l);
  color: var(--white-800);
}

.divergence__parts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* A short rule, not the legend's round swatch: a second set of dots in this
   section would read as a second key to the chart, and these describe the
   argument rather than anything plotted.
   flex-start plus a margin rather than align-items: baseline — an empty
   ::before has its baseline at its bottom edge, so baseline alignment drops
   the rule below the text instead of beside it. .7em lands it on the optical
   centre of the first line at this line-height. */
.divergence__parts li::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 1px;
  margin-top: .7em;
  background: var(--primary);
}

.divergence__chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.divergence__tick {
  font-family: var(--font-secondary);
  font-size: 12px;
  fill: rgba(255, 255, 255, .45);
}

.divergence__name {
  font-family: var(--font-secondary);
  font-size: 14px;
  fill: var(--white);
}

.divergence__sub {
  font-family: var(--font-secondary);
  font-size: 12px;
  fill: rgba(255, 255, 255, .55);
}

.divergence__mark text {
  font-family: var(--font-secondary);
  font-size: 12px;
  letter-spacing: .06em;
  fill: rgba(255, 255, 255, .72);
}

.divergence__line--flat {
  stroke: rgba(255, 255, 255, .42);
  stroke-width: 2;
  stroke-linecap: round;
}

/* Thicker and brighter than the flat line on purpose: when the two carried the
   same weight they competed, and the eye had no idea which one was the point. */
.divergence__line--grow {
  stroke: #ff3b4a;
  stroke-width: 3.5;
  stroke-linecap: round;
}

/* Hidden state. Everything that animates starts here, so a visitor who never
   reaches the band never pays for it, and one who does sees it build. */
.divergence__line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.divergence__line--flat { --len: 660px; }
.divergence__line--grow { --len: 740px; }
.divergence__gap,
.divergence__mark,
.divergence__endlabels { opacity: 0; }

/* Four beats, and the order is the lesson: together, then the split, then the
   gap it opened, then the names for what you are looking at. A chart that
   arrives finished has to be decoded; one that builds explains itself. */
.divergence.is-in .divergence__line {
  transition: stroke-dashoffset 2.2s cubic-bezier(.3, 0, .2, 1) .25s;
  stroke-dashoffset: 0;
}

.divergence.is-in .divergence__mark {
  transition: opacity .5s var(--ease) 1.05s;
  opacity: 1;
}

.divergence.is-in .divergence__gap {
  transition: opacity .9s var(--ease) 2s;
  opacity: 1;
}

.divergence.is-in .divergence__endlabels {
  transition: opacity .6s var(--ease) 2.35s;
  opacity: 1;
}

.divergence__legend {
  display: none;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-secondary);
  font-size: 14px;
  color: var(--white-800);
}

.divergence__legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
}

.divergence__legend em {
  font-style: normal;
  color: var(--text-muted);
}

.divergence__swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.divergence__swatch--grow { background: var(--primary); }
.divergence__swatch--flat { background: #6a6a6a; }

.divergence__note {
  margin: 14px 0 0;
  font-family: var(--font-secondary);
  font-size: 12px;
  color: var(--white-400);
}

@media (max-width: 991px) {
  /* Matches the base rule's specificity on purpose: that one is
     `.divergence .divergence__inner`, and a single-class selector here loses
     to it — which left the chart column sharing a phone's width with a fixed
     420px of copy and collapsing to zero. */
  .divergence .divergence__inner { grid-template-columns: 1fr; }
}

/* The in-chart labels sit in viewBox units, so at phone width they would
   render near 7px. Drop them and give the chart a real legend instead. */
@media (max-width: 767px) {
  .divergence__endlabels { display: none; }
  .divergence__legend { display: block; }
  /* The marker's label stays — a dashed rule with nothing naming it is just a
     line, and the moment it marks is the whole causal claim. These are viewBox
     units, not pixels: 22 of them land near 11px once the 760-unit chart is
     scaled into a 393px screen. */
  .divergence__mark text { font-size: 22px; }
  .divergence__tick { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .divergence__line { stroke-dashoffset: 0; }
  .divergence__gap,
  .divergence__mark,
  .divergence__endlabels { opacity: 1; }
  .divergence.is-in .divergence__line,
  .divergence.is-in .divergence__mark,
  .divergence.is-in .divergence__gap,
  .divergence.is-in .divergence__endlabels { transition: none; }
}

/* ===== footer.css ===== */
/* ---------- footer ---------- */

/* The old footer read as "not filling the bottom" for three compounding
   reasons, all fixed here:
   1. It had no surface of its own — same --black as every section above it,
      separated only by a 1px line, so it never registered as a terminal zone.
   2. It ended on a full-bleed RED marquee band. Saturated red advances; a
      page ending has to recede. That band read as a strip laid ON the page
      rather than the page's own last row.
   3. It ran on .section--tight, the site's *smallest* rhythm, so the heaviest
      moment on the page had the least mass.
   Fix: its own lifted surface, the site's large rhythm, a container-aligned
   wordmark carrying the visual weight, and a deliberate red terminal rule as
   the literal last pixel row.

   The FOOTER is still deliberately not min-height:100svh and not pinned as a
   whole — on a scroll this long it's always reached, and holding it open
   would fake a fill the page doesn't need. Only .footer__wordmark sticks, and
   only to the bottom of its own box, so it costs the content nothing. */
.footer {
  position: relative;
  /* Keeps the wordmark/content z-index pair below a local matter. Without it
     .footer__inner's z-index:1 would compete in the root stacking context
     against .section's z-index:1 and the navbar's 100. Note: does NOT create
     a containing block, so the sticky child still resolves against <footer>. */
  isolation: isolate;
  /* The gradient is the "surface": it separates the footer from the red
     .cta-marquee directly above without needing another hard band. */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) clamp(200px, 26vw, 420px)),
    var(--black);
  /* Terminal edge. Full-bleed, thin, and the brand accent — closes the page
     instead of letting it stop mid-air. */
  border-bottom: 3px solid var(--primary);
}

/* Opaque + above the wordmark: with .footer__wordmark sticky below, the two
   boxes overlap for the whole last screenful, so the content has to occlude
   rather than sit transparently on top of 200px letterforms.
   `inherit` — not a re-declared gradient — because this box's top edge is the
   footer's top edge (the only earlier child, the h2, is .visually-hidden and
   out of flow), so the inherited gradient's absolute stops line up pixel for
   pixel. Re-typing it would be a second copy to keep in sync. */
.footer__inner {
  position: relative;
  z-index: 1;
  background: inherit;
  padding-block: clamp(48px, 7vw, 104px) 0;
}

.footer__rule {
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* Two zones, not three columns. The old 1.4fr/1fr/1fr put a long email into
   the narrowest usable box and left "Follow" as a one-item column beside a
   three-item one, which is what read as lopsided. */
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding-bottom: clamp(48px, 7vw, 96px);
}

.footer__contact { min-width: 0; }

.footer__pitch {
  max-width: 24ch;
  font-family: var(--font-body);
  font-size: clamp(18px, 1rem + .6vw, 26px);
  font-weight: var(--w-medium);
  line-height: var(--lh-m);
  color: var(--white);
}

/* Sized well under the old .mailto (--h3, up to 46px): at 375px a 30-char
   address at that size can't fit the container, and this is the one string
   on the page that must never wrap mid-word. overflow-wrap is the net. */
.footer__mail {
  display: inline-block;
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 100%;
  font-family: var(--font-body);
  font-size: clamp(17px, .6rem + 2.1vw, 36px);
  font-weight: var(--w-medium);
  line-height: var(--lh-m);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .45s var(--ease);
}

.footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(28px, 3.2vw, 40px);
}

/* Ghost pill, so it sits beside the solid red .btn as a clear secondary.
   Height is the 44px touch target, not decoration. */
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--white-100);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--btn-text);
  font-weight: var(--w-medium);
  line-height: 1;
  color: var(--white-800);
  transition: color .25s, background-color .25s, border-color .25s, transform .16s var(--ease);
}

.footer__social-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* The profile links are a list, so assistive tech announces "3 items" instead
   of three loose links; the reset just removes the list's default furniture. */
.footer__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.footer__nav { min-width: 0; }

/* h3 for the landmark's accessible name, but it must not inherit --h3's
   display size — it's a label, not a heading moment. */
.footer__label {
  font-family: var(--font-body);
  font-size: var(--h6);
  font-weight: var(--w-medium);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: var(--lh-m);
  color: var(--text-muted);
}

.footer__list {
  display: grid;
  margin-top: 14px;
}

.footer__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  font-family: var(--font-body);
  font-size: var(--h6);
  color: var(--white-800);
  transition: color .25s;
}

/* Underline draws from the left rather than a border toggling on, so the
   hover has direction instead of just appearing. */
.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid var(--white-100);
  font-size: var(--p2);
  line-height: var(--lh-xl);
  color: var(--text-muted);
}

/* Shares the .container box (max-width + gutter) instead of running edge to
   edge: aligned to the grid above, it reads as the footer's own last line.
   The old full-bleed band read as a separate object stuck underneath.

   Sticky, bottom-anchored, behind the content. The containing block is
   <footer> — position:relative, no overflow, no transform/filter — and it is
   ~800px tall against a ~253px wordmark, so there are ~545px of travel: the
   word unpins at the footer's top edge and is fully revealed at page end.
   Every ancestor was checked for a scroll-container trigger: .footer is
   overflow:visible, <body> sets overflow-x:hidden BUT the root is visible so
   that value propagates to the viewport and body itself stays a non-scrolling
   box (document.scrollingElement is <html>), and <html> is visible. The
   <footer> is a direct child of <body> — no .section wrapper, and .section
   carries overflow:hidden, which is exactly what would have killed this.
   z-index 0 (not auto) so the sticky box has an explicit level under
   .footer__inner's 1 — otherwise .container's own z-index:111 would win the
   moment either got positioned.
   It can never cover the terminal red rule: sticky only ever lifts a box
   ABOVE its static position, and this box's static position is already the
   last row before the border. */
.footer__wordmark {
  position: sticky;
  bottom: 0;
  z-index: 0;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: max(var(--container-pad), 5vw);
  /* Air above and below the block, not just between the letters — the
     tracking below only opens the word up horizontally. */
  padding-top: clamp(24px, 3.4vw, 60px);
  padding-bottom: clamp(14px, 1.6vw, 30px);
  /* Guard, not a load-bearing part of the fit: the size below is solved
     against Clash Display's real metrics, but the fallback stack is Arial
     Narrow/system-ui, which measures differently. Clip rather than let a
     font-swap push horizontal overflow. (Safe on a sticky element — it's
     overflow on ANCESTORS that breaks sticky, not on the box itself.) */
  overflow: clip;
}

.footer__wordmark svg {
  display: block;
  width: 100%;
  height: auto;
  /* Ghosted, not red-on-black: it is a signature the eye lands on last, so it
     recedes into the surface instead of competing with the .btn above it.
     currentColor on the inlined SVG picks this up. */
  color: var(--white-100);
}

@media (hover: hover) and (pointer: fine) {
  .footer__mail:hover { background-size: 100% 1px; }
  .footer__link:hover { color: var(--white); }
  .footer__link:hover::after { transform: scaleX(1); }
  .footer__social:hover {
    color: var(--white);
    background: var(--white-100);
    border-color: var(--border-1);
  }
}

/* Press feedback — the pill has to answer the tap the way .btn does. */
.footer__social:active { transform: scale(.97); }

/* Keyboard parity: :focus-visible in tokens.css gives the ring, this gives
   the same colour lift as hover so the two states don't diverge. */
.footer__mail:focus-visible { background-size: 100% 1px; }
.footer__link:focus-visible { color: var(--white); }

@media (max-width: 991px) {
  .footer__grid { gap: clamp(36px, 5vw, 56px); }
}

/* Short viewports (phone in landscape, a half-height desktop window): the
   pinned wordmark would be a permanent band across a screen that has almost
   none to spare, and the reveal has no room to read as motion. Fall back to
   the static block it was before — same layout, minus the pin. */
@media (max-height: 620px) {
  .footer__wordmark { position: static; }
}

@media (max-width: 767px) {
  .footer__grid { grid-template-columns: 1fr; }
  /* The button takes the full row. Three labelled pills cannot share the row
     below it at 375px — they wrap 2 + 1 and read as a mistake — so the phone
     layout drops to icon-only circles. The name stays in the accessible tree,
     it just stops taking horizontal space. */
  .footer__actions > .btn { flex: 1 1 100%; justify-content: center; }
  .footer__socials { flex: 1 1 100%; gap: 12px; }
  .footer__social {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .footer__social-name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .footer__bottom { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .footer__mail,
  .footer__link,
  .footer__link::after,
  .footer__social {
    transition: none;
  }
  .footer__link::after { transform: scaleX(1); opacity: 0; }
  .footer__link:hover::after,
  .footer__link:focus-visible::after { opacity: 1; }
  .footer__social:active { transform: none; }
  /* The pin is scroll-coupled motion — a 200px word sliding under the content
     is exactly the kind of parallax this setting is asking us to drop. The
     wordmark still ends the page, it just doesn't travel. */
  .footer__wordmark { position: static; }
}

/* The 23. Deliberately quiet: at 16% white over the footer's black it lands
   around #343434, which is legible as a shape to anyone looking for it and
   invisible to anyone who is not — which is what "discreet" has to mean for a
   mark sitting in a row of legal text.
   The source is a black silhouette whose jersey outline is transparent gaps,
   so recolouring it white keeps the outline instead of flattening it into a
   blob. No hover, no transition: it is a signature, not a control. */
.footer__mark {
  height: 30px;
  width: auto;
  flex: 0 0 auto;
  opacity: .16;
}

@media (max-width: 767px) {
  /* The bottom row packs left on a phone, so the mark would sit tight against
     the tagline. Pushed to its own end of the line instead. */
  .footer__mark { margin-left: auto; }
}

/* The CCPA control. Styled like the Cookies button beside it rather than as a
   link, because it performs an action instead of going somewhere — and kept
   at the same quiet weight as the rest of the legal row: the law requires it
   to be present and findable, not loud. */
.footer__optout {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--white-400);
  text-underline-offset: 4px;
  transition: color .25s, text-decoration-color .25s;
}

.footer__optout:hover:not(:disabled),
.footer__optout:focus-visible { color: var(--white); text-decoration-color: currentColor; }

/* After opting out it stays as the receipt — the row should still say what
   happened rather than silently losing the control the visitor just used. */
.footer__optout:disabled { cursor: default; opacity: .6; text-decoration: none; }

/* ===== reveal.css ===== */
/* Reveal primitives. JS only toggles .is-in; everything else is CSS so the
   compositor handles it and the main thread stays free. */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal="fade"] { transform: none; }

[data-reveal="mask"] {
  opacity: 1;
  transform: translate3d(0, 100%, 0);
}

.mask {
  overflow: hidden;
  display: block;
}

[data-split] .char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, .5em, 0);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 8ms);
}

[data-split].is-in .char {
  opacity: 1;
  transform: none;
}

[data-reveal].is-in,
[data-split].is-in .char {
  will-change: auto;
}

/* Populated by js/animations.js only — a [data-kinetic] element is plain
   visible text until that script runs, so there's no CSS-only hidden state
   here to leave stuck if the anime.js CDN import ever fails. */
.kinetic__mask { display: inline-block; overflow: hidden; vertical-align: top; }
.kinetic__word { display: inline-block; will-change: transform, opacity; }

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

  [data-reveal],
  [data-split] .char,
  .nav-menu .nav-link {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== media.css ===== */
/* Media presentation layer: full-bleed video bands, the stats backdrop and
   the curtain reveal shared by both. Motion here is scroll-triggered but not
   scroll-driven — JS toggles one class, CSS transitions do the rest, so the
   compositor owns every frame and the scroll thread stays free. */

/* ---------- curtain reveal (video bands + [data-media-reveal]) ---------- */

/* The settle scales past the media box, so the crop has to happen one level
   up. .showcase was position:relative only; the band is full-bleed anyway. */
.showcase { overflow: hidden; }

/* Enters slightly over-scaled and clipped inward, then eases open. The two
   durations are deliberately unequal: the wipe lands first and the scale
   keeps easing under it, so the media settles instead of stopping.
   Repeatable in both directions — js/media.js toggles .is-media-in the same
   way motion.js toggles .is-in. */
.showcase--video .showcase__media,
[data-media-reveal] {
  clip-path: inset(12%);
  transform: scale(1.08);
  transform-origin: 50% 50%;
  transition: clip-path 1.2s var(--ease), transform 1.4s var(--ease);
}

.showcase--video .showcase__media.is-media-in,
[data-media-reveal].is-media-in {
  clip-path: inset(0%);
  transform: scale(1);
}

/* The scale lives on .showcase__media, never on the <img> — motion.js owns
   the img's transform (translate3d with --parallax) and the two would
   overwrite each other on the same property. Nesting composes them instead. */

/* ---------- video bands ---------- */

/* Black under the video covers the gap before the poster decodes and the
   letterbox edges if a source's aspect ever drifts from the band's. */
.showcase--video .showcase__media { background: var(--black); }

.showcase__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .showcase__media::before already fades the top/bottom edges into the page.
   This adds the centre falloff: video is busier than a still, and the band
   has to read as one continuous black page rather than an inserted panel. */
.showcase--video .showcase__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 30%, rgba(13, 13, 13, .55) 100%),
    linear-gradient(to bottom, rgba(13, 13, 13, .35), rgba(13, 13, 13, .15) 45%, rgba(13, 13, 13, .5));
  pointer-events: none;
}

.showcase__caption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 max(var(--container-pad), 5vw) var(--sp-small);
  font-family: var(--font-secondary);
  font-size: var(--p2);
  line-height: var(--lh-l);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* The caption is optional in the markup; an empty <p> would still eat clicks
   and reserve its padding box. */
.showcase__caption:empty { display: none; }

/* ---------- stats band ---------- */

.stats {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-large);
  background: var(--black);
}

/* Only when this band is what follows the hero, which it has been since
   2026-11-13. A full section rhythm on top of the air the hero already
   leaves below its copy put 147px here on a 1440 screen and read as a hole
   rather than a break. --sp-small is the same rhythm the hero uses for its
   own bottom padding, so the two sides of the seam now match.
   An adjacent-sibling rule rather than a modifier class: it is the position
   that earns the tighter padding, so move the section and the rule lets go
   by itself. */
.hero + .stats { padding-top: var(--sp-small); }

.stats__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Raised from .35 to .5 on 2026-10-09: the band was reading as a black
   rectangle with a hint of globe in it.

   The old note put the ceiling at .35, but it was measuring the wrong thing.
   The numbers are 88px of pure white and never come close to failing — they
   are still at 10.3:1 here. What actually binds is the LABEL, 16px at 62%
   white, which needs 4.5:1. Measured against a pure-white pixel of the globe
   under the scrim below, which is the worst case the band can produce:
   .35 → 6.2:1, .5 → 5.1:1, .6 → 4.5:1 exactly, .7 → 3.9:1 and fails.
   .5 is the brightest value that still leaves the labels a real margin.
   Raise this and you are spending the labels' legibility, not the numbers'. */
.stats__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}

.stats__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(13, 13, 13, .55), var(--black) 74%),
    linear-gradient(to bottom, var(--black), transparent 18%, transparent 82%, var(--black));
}

.stats__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-small);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--white-100);
}

/* Display sizes read too loose at default tracking, hence the negative
   letter-spacing. tabular-nums keeps the counter from reflowing its
   neighbours on every rAF tick as digit widths change. */
.stat__num {
  font-family: var(--font-body);
  font-weight: var(--w-semibold);
  font-size: clamp(40px, 1.8rem + 4.4vw, 104px);
  line-height: var(--lh-s);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

/* Small text takes positive tracking — the inverse of the heading above. */
.stat__label {
  font-family: var(--font-secondary);
  font-size: var(--p2);
  line-height: var(--lh-l);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}

@media (max-width: 767px) {
  .stats__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- client logo strip ---------- */

/* Fast in, slow out: the hover responds immediately, the release settles.

   No filter any more. The logos used to be black SVGs that needed invert(1)
   just to be visible; they are now baked to white on transparency by
   tools/clients/build.mjs, and inverting those would turn the strip black.
   Opacity alone carries the resting/hover states. */
.logo-strip img {
  opacity: .5;
  transition: opacity .9s var(--ease);
}

.logo-strip img:hover {
  opacity: 1;
  transition-duration: var(--dur-fast);
}

@media (prefers-reduced-motion: reduce) {
  .showcase--video .showcase__media,
  [data-media-reveal],
  .logo-strip img {
    clip-path: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- particle waves band ---------- */

/* Replaced the video band on 2026-10-09. The gradient below is not decoration
   waiting to be covered — it is the fallback. It shows when WebGL is absent
   and when the visitor asked for reduced motion, and js/particle-waves.js
   only attaches its canvas after the shader compiles, so a failure anywhere
   leaves this standing instead of a black rectangle. */
.showcase--waves .showcase__media {
  background:
    radial-gradient(ellipse 70% 50% at 50% 58%, rgba(229, 25, 42, .34) 0%, rgba(229, 25, 42, .08) 45%, rgba(229, 25, 42, 0) 72%),
    var(--black);
}

.waves__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Shorter than the 70vh the photo bands use. At full height this one filled
   the screen on its own, and a band whose only job is to let the page breathe
   between the results and the testimonials should not become a stop. The
   clamp keeps it from collapsing on a short laptop or ballooning on a tall
   monitor, where vh alone does both. */
.showcase--waves { position: relative; }

.showcase--waves .showcase__media {
  height: clamp(300px, 52vh, 520px);
}

/* Centred over the field. No scrim behind it: the waves are dim red on black
   and white type sits well clear of any contrast threshold over them — a
   panel here would only announce that we did not trust the background. */
.waves__line {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  display: grid;
  place-items: center;
  padding-inline: max(var(--container-pad), 8vw);
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--h3);
  font-weight: var(--w-semibold);
  line-height: var(--lh-m);
  letter-spacing: -.015em;
  color: var(--white);
  text-wrap: balance;
  pointer-events: none;
}

/* ===== consent.css ===== */
/* Cookie consent notice.
   Loaded last-ish in head.php; it styles one component and overrides nothing. */

.consent {
  position: fixed;
  /* Sits above the page and the navbar (100), below the intro wipe (9999) so
     it cannot appear over the loading overlay, and below the blend-mode
     cursor (9998), which is pointer-events:none and harmless on top. */
  z-index: 9997;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--container-pad) max(var(--container-pad), env(safe-area-inset-bottom));
  /* The bar is a bottom-anchored strip, not a full-width block: without this
     it would swallow clicks across the whole viewport width on tall screens. */
  pointer-events: none;
}

.consent__inner {
  pointer-events: auto;
  max-width: var(--container-max);
  margin: 0 auto var(--container-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding: 20px 24px;
  border: 1px solid var(--white-100);
  border-radius: var(--radius-lg);
  /* Opaque enough to stay readable over the photographic sections. The blur
     is decoration — note that backdrop-filter makes this element the
     containing block for any position:fixed descendant, so do not nest one. */
  background: rgba(13, 13, 13, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px -20px rgba(0, 0, 0, .9);
}

.consent__copy { flex: 1 1 320px; }

.consent__title {
  font-family: var(--font-body);
  font-size: var(--h6);
  font-weight: var(--w-medium);
  line-height: var(--lh-m);
  margin: 0 0 6px;
}

.consent__text {
  font-family: var(--font-secondary);
  font-size: var(--p2);
  line-height: var(--lh-xl);
  /* --text-muted, not --white-400: this is small body copy and has to clear
     4.5:1 on --black. See the note in tokens.css. */
  color: var(--text-muted);
  margin: 0;
  max-width: 62ch;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

/* .btn is sized for hero calls to action; this is a notice, not a pitch. */
.consent__btn {
  font-size: 15px;
  padding: 11px 26px;
}

/* Entry. Kept off the initial paint so the bar cannot flash before the
   stored decision has been read. */
.consent[hidden] { display: none; }

.consent__inner {
  transform: translateY(12px);
  opacity: 0;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.consent.is-in .consent__inner {
  transform: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .consent__inner { transition: none; }
}

/* Slimmed for phones, deliberately.
   This bar is now shown unprompted only in the UK/EU/CH/CA, where it is a
   consent gate — but it is still shown on a phone, and at 375x812 the old
   layout measured 375x278: 34% of the screen, over the headline, and the
   "Book a call" dock stays hidden while it is up. The copy was shortened in
   partials/consent-banner.php; this is the rest of it.
   The buttons sit SIDE BY SIDE rather than stacking, which is where most of
   the height went — and it also stops Accept sitting alone under Decline,
   where it reads as the louder of the two. They must stay equal: a Decline
   that is harder to reach than Accept is the pattern the GDPR guidance calls
   out by name. */
@media (max-width: 640px) {
  .consent__inner {
    padding: 14px 16px 16px;
    gap: 12px 16px;
  }
  .consent__title {
    font-size: var(--p2);
    margin-bottom: 2px;
  }
  .consent__text { line-height: var(--lh-l); }
  .consent__actions { width: 100%; }
  /* 1 1 0, not 1 1 auto: equal halves regardless of label length, so the
     wider word does not take the wider button. */
  .consent__btn {
    flex: 1 1 0;
    padding: 11px 12px;
  }
}

/* The same two controls, inline in /privacy/.
   The footer has carried them all along; they are repeated here because the
   notice is no longer shown unprompted outside the UK/EU/CH/CA, so this page
   had become the place people are sent to opt out — and sending someone to a
   page that only DESCRIBES a control is not giving them one. */
.legal__consent {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 8px;
}

.legal__consent .btn {
  font-size: 15px;
  padding: 11px 24px;
}

/* Same trap as the banner's, same fix: [hidden] comes from the UA stylesheet
   with no specificity and loses to `.btn { display: inline-grid }`, so these
   would render before the script unhides them — which is exactly the dead
   control the hidden attribute is there to prevent for a visitor with no
   JavaScript. Scoped, not global. */
.legal__consent [hidden] { display: none; }

/* The footer's "Cookies" control, in the bottom row next to the copyright.
   Deliberately NOT .footer__link: that is the navigation size — Clash Display
   at --h6 with a 44px tap target — and next to two lines of --p2 muted text
   it would read as a heading. This matches its neighbours instead, and takes
   the underline only on hover, since it is the one interactive thing there. */
.footer__cookies {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .25s, text-decoration-color .25s;
}

.footer__cookies:hover,
.footer__cookies:focus-visible {
  color: var(--white);
  text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .footer__cookies { transition: none; }
}

/* The policy link inside the notice. Underlined by default, unlike the rest
   of the site's links — in a block of muted grey copy an unmarked link is
   invisible, and this is the one the visitor may actually need. */
.consent__link {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--white-400);
  transition: text-decoration-color .25s;
  white-space: nowrap;
}

.consent__link:hover,
.consent__link:focus-visible { text-decoration-color: currentColor; }

/* Footer legal link. Matches the bottom row's muted copy, same as
   .footer__cookies beside it. */
.footer__legal {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .25s, text-decoration-color .25s;
}

.footer__legal:hover,
.footer__legal:focus-visible {
  color: var(--white);
  text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .consent__link,
  .footer__legal { transition: none; }
}

/* [hidden] loses to .btn.
   The attribute sets display:none through the UA stylesheet, which carries no
   specificity, and `.btn { display: inline-grid }` in layout.css overrides it
   — so the banner rendered BOTH its "Accept" and its "Got it" at once, in
   production, for two days. The script was right: the attribute was set
   correctly, which is exactly why a check that read `node.hidden` passed
   while the screen showed three buttons.
   Scoped to the banner rather than a global !important, so it fixes this
   without quietly changing every other hidden element on the site. */
.consent [hidden] { display: none; }

/* ===== legal.css ===== */
/* Long-form legal prose (/privacy/). One job: make a page nobody wants to
   read actually readable. */

.legal {
  padding-top: clamp(140px, 8rem + 6vw, 240px);
  padding-bottom: clamp(80px, 4rem + 6vw, 160px);
}

.legal__head { max-width: 46ch; }
.legal__lead { margin-top: 24px; }

.legal__updated {
  margin-top: 18px;
  font-family: var(--font-secondary);
  font-size: var(--p2);
  color: var(--text-muted);
}

/* ---------- the accordion ----------
   One <details> per section, a hairline between each: the row carries the
   heading and a chevron, the body drops out underneath. */

.legal__body {
  margin-top: clamp(56px, 5vw, 96px);
  /* The measure is the whole point. Full-width legal text on a 1240px
     container is a wall nobody finishes; ~72 characters is a column the eye
     can return from. */
  max-width: 72ch;
  /* The line above the first row; every row draws its own below. */
  border-top: 1px solid var(--white-100);
}

/* min-width:0 is load-bearing, and not subtly. A flex/grid item defaults to
   min-width:auto — "never shrink below my content" — so .legal__table's
   min-width:620px would propagate up and render the whole column 620px wide
   inside a 375px viewport, clipping every paragraph on the page rather than
   just the table. This lets .legal__tablewrap's overflow-x do its job. */
.legal__section {
  min-width: 0;
  border-bottom: 1px solid var(--white-100);
}

/* The row. list-style/::-webkit-details-marker kill the browser's own
   triangle so the chevron on the right is the only affordance. */
.legal__heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(18px, 2vw, 24px) 0;
  font-family: var(--font-body);
  font-size: var(--h6);
  font-weight: var(--w-medium);
  line-height: var(--lh-m);
  color: var(--white);
  cursor: pointer;
  list-style: none;
  transition: color .25s;
}

.legal__heading::-webkit-details-marker { display: none; }
.legal__heading:hover { color: var(--primary-text); }

/* The heading text takes the slack so the chevron is pushed to the edge. */
.legal__headingtext { flex: 1; min-width: 0; }

/* Same numbered motif as .step on the work and thank-you pages, so the shape
   is already familiar rather than a new invention for this page. In a
   sixteen-row accordion it also does real work: it is how you know where you
   are once most of the page is folded away. */
.legal__num {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: var(--p2);
  color: var(--primary-text);
  font-variant-numeric: tabular-nums;
}

.legal__chev {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .3s var(--ease), color .25s;
}

.legal__section[open] > .legal__heading > .legal__chev { transform: rotate(180deg); }
.legal__heading:hover .legal__chev { color: var(--white); }

.legal__panel { padding-bottom: clamp(20px, 2.5vw, 32px); }

.legal__p,
.legal__list {
  font-family: var(--font-secondary);
  font-size: var(--p1);
  line-height: var(--lh-2xl);
  color: var(--text-muted);
  margin: 0 0 16px;
}

.legal__p:last-child,
.legal__list:last-child { margin-bottom: 0; }

.legal__list {
  /* tokens.css strips list markers site-wide, which is right for navigation
     and wrong here — without them these read as loose paragraphs rather than
     as a list of distinct commitments. Put them back for this page only. */
  list-style: disc;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.legal__list li::marker { color: var(--primary-text); }

/* .hl is the site's emphasis mark; in body copy it needs to read as emphasis
   rather than decoration, so it lifts to full white instead of colouring. */
.legal__p .hl,
.legal__list .hl {
  color: var(--white);
  font-style: normal;
  font-weight: var(--w-medium);
}

.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  color: var(--white);
  background: var(--white-100);
  border-radius: var(--radius-sm);
  padding: .15em .4em;
  /* A long cookie name must be able to break rather than push the column. */
  word-break: break-word;
}

/* ---------- the cookie table ---------- */

.legal__tablewrap {
  margin: 24px 0 16px;
  /* Scrolls inside its own box: four columns will not fit a phone, and the
     page itself must never scroll sideways. */
  overflow-x: auto;
  border: 1px solid var(--white-100);
  border-radius: var(--radius-md);
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-secondary);
  font-size: var(--p2);
  line-height: var(--lh-xl);
  /* Below this the columns collapse into single words per line; the wrapper
     scrolls instead. */
  min-width: 620px;
}

.legal__table th,
.legal__table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--white-100);
}

.legal__table tr:last-child th,
.legal__table tr:last-child td { border-bottom: 0; }

.legal__table thead th {
  font-family: var(--font-body);
  font-weight: var(--w-medium);
  color: var(--white);
  white-space: nowrap;
  background: rgba(255, 255, 255, .03);
}

.legal__table tbody th { font-weight: var(--w-regular); }
.legal__table tbody td { color: var(--text-muted); }

@media (max-width: 640px) {
  .legal__heading { font-size: var(--p1); gap: 10px; }
}

/* Printed, or saved as a PDF, every section is open — js/interactions.js
   opens them on beforeprint, because whether CSS alone can reveal a closed
   <details> differs between engines and this is not a thing to be nearly
   right about. A notice that prints as sixteen headings and no text is not a
   copy of the notice, and saving one is exactly what somebody does when they
   want a record of what it said on the day they read it. */
@media print {
  .legal__section { break-inside: avoid; }
  .legal__chev { display: none; }
}

/* ===== results.css ===== */
/* The results section: case cards, KPI tiles, metric tabs and the charts
   js/results.js draws into them.

   Chart colour lives here, not in the script. The brand red is the only data
   colour: every chart is a single series, so there is one identity to carry
   and nothing for a second hue to do. It was run through the dataviz
   palette validator against both surfaces below — lightness band, chroma
   floor and >= 3:1 contrast all pass. */

.results {
  --chart-accent: var(--primary);
  /* The card's own colour — .case's --black-300 wash composited over
     --black. The dots' 2px ring is drawn in this, so it has to match what
     is actually behind the chart or the ring reads as a halo. */
  --chart-surface: #151515;
  --chart-grid: rgba(255, 255, 255, .08);
  --chart-ink: var(--text-muted);
}

.results__lead { max-width: 52ch; margin-top: 24px; }

/* ---------- the carousel ----------
   One case on screen at a time. The track is a scroll-snap container first
   and a scripted carousel second: touch, trackpad and a keyboard tabbing
   into a slide all move it natively, so the arrows are an addition rather
   than the mechanism. */

.results__carousel { margin-top: clamp(40px, 5vw, 72px); }

.results__cases {
  display: grid;
  grid-auto-flow: column;
  /* Each slide is the full track width, so one case fills the view and the
     next begins exactly at the edge. */
  grid-auto-columns: 100%;
  gap: clamp(20px, 3vw, 32px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* The cards carry their own rounded corners and the track has no padding,
     so nothing needs clipping — and a scrollbar under six cards would be
     chrome the arrows already replace. */
  scrollbar-width: none;
  /* Every card is as tall as the tallest, so stepping never jumps the page. */
  align-items: stretch;
}

.results__cases::-webkit-scrollbar { display: none; }

.case { scroll-snap-align: start; }

.results__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(20px, 2vw, 28px);
}

.results__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--white-100);
  border-radius: 50%;
  background: none;
  color: var(--white-800);
  cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s, opacity .25s;
}

.results__arrow:hover:not(:disabled) {
  border-color: var(--border-1);
  background: var(--white-100);
  color: var(--white);
}

/* Disabled at the ends rather than wrapping around: a results reel that
   silently loops back to the first case makes it impossible to tell you have
   seen them all. */
.results__arrow:disabled { opacity: .3; cursor: default; }

.results__count {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.results__now { color: var(--white); }

/* No script: no arrows to press, but the track still scrolls and swipes. */
.results__carousel:not(.is-ready) .results__nav { display: none; }

.results__note {
  margin-top: 20px;
  font-family: var(--font-secondary);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- the case card ---------- */

.case {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(20px, 3vw, 40px);
  /* Same card as .step on the work process: a visitor who has scrolled past
     it already knows the shape. */
  border: 1px solid var(--white-100);
  border-radius: var(--radius-lg);
  background: var(--black-300);
}

.case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.case__channel { color: var(--white); }

/* ---------- the one-line result ----------
   The whole case in one line, above the headline, so stepping through the
   carousel does not mean reading six paragraphs before you can compare two
   of them. Sized and worded (content/results.php) to stay on one line down
   to 375px; nowrap is deliberately NOT set — if a translation or a longer
   figure ever overflows, two lines is the right failure, a clipped number
   is not. */

.case__line {
  margin: 18px 0 0;
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* The outcome half in white: the eye lands on what the money bought, and the
   spend beside it stays legible without competing. */
.case__line .hl {
  color: var(--white);
  font-style: normal;
  font-weight: var(--w-medium);
}

.case__title {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: clamp(24px, 1rem + 1.3vw, 38px);
  font-weight: var(--w-medium);
  line-height: 1.08;
  /* Keeps a two-line headline from ending on one orphaned word. */
  text-wrap: balance;
}

.case__text {
  margin: 14px 0 0;
  max-width: 46ch;
  font-family: var(--font-secondary);
  font-size: var(--p2);
  line-height: var(--lh-xl);
  color: var(--text-muted);
}

/* .hl is the site's emphasis mark. In muted body copy it lifts to white. */
.case__title .hl { color: var(--primary-text); font-style: normal; }
.case__text .hl { color: var(--white); font-style: normal; }

/* ---------- KPI tiles ----------
   A 1px gap over a hairline-coloured background draws the dividers: the
   tiles never carry a border of their own, so the lines never double up
   where two tiles meet. */

.case__kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--white-100);
  border-radius: var(--radius-md);
  background: var(--white-100);
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  background: var(--chart-surface);
}

.kpi__label {
  font-family: var(--font-secondary);
  font-size: 13px;
  color: var(--text-muted);
}

/* Proportional figures, deliberately: tabular-nums gives every digit the
   width of a 0, and at this size "1,310" would read loose. */
.kpi__value {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(24px, 1rem + 1.2vw, 34px);
  font-weight: var(--w-medium);
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}

/* ---------- metric tabs ---------- */

/* A flex column so the one control on the card can be pinned to the bottom
   of it — see .case__proof. Everything above it stacks as it always did. */
.case__viz {
  display: flex;
  flex-direction: column;
  /* The gap does the spacing between every block in this column, so the
     button's margin-top:auto can take the slack without collapsing against
     whatever sits above it when a card happens to have none. */
  gap: 18px;
  min-width: 0;
}

.case__tabs {
  display: inline-flex;
  /* Its own width, not the column's: .case__viz is a flex column, and a
     stretched tab row turns a control into a band across the card. */
  align-self: flex-start;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--white-100);
  border-radius: var(--radius-pill);
  /* Four labels fit a 320px phone; this is the fallback if copy ever
     makes one longer — scroll inside the pill, never widen the page. */
  overflow-x: auto;
  scrollbar-width: none;
}

.case__tabs::-webkit-scrollbar { display: none; }

.case__tab {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  font: var(--w-medium) 14px/1 var(--font-secondary);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.case__tab:hover { color: var(--white); }

.case__tab[aria-selected="true"] {
  background: var(--white);
  color: var(--black);
}

/* ---------- the chart ---------- */

.chart {
  position: relative;
  /* The height includes the x-axis band: the script draws into exactly this
     box, so the labels are inside it rather than spilling into a nested
     scroll. */
  height: 300px;
  border-radius: var(--radius-sm);
}

.chart:focus-visible { outline-offset: 6px; }

.chart svg { display: block; overflow: visible; }

.chart__grid { stroke: var(--chart-grid); stroke-width: 1; shape-rendering: crispEdges; }

.chart__tick {
  font-family: var(--font-secondary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  fill: var(--chart-ink);
}

.chart__col {
  fill: var(--chart-accent);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: opacity .15s;
}

/* Emphasis on hover: the bar under the pointer keeps full strength and the
   rest step back, so the one being read is unmistakable. */
.chart.is-hovering .chart__col:not(.is-active) { opacity: .35; }

.chart__line {
  fill: none;
  stroke: var(--chart-accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Fill set per chart by the script (a url() to that chart's own gradient). */
.chart__area { stroke: none; }

.chart__dot {
  fill: var(--chart-accent);
  stroke: var(--chart-surface);
  stroke-width: 2;
}

.chart__cross {
  stroke: rgba(255, 255, 255, .28);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

/* Text never wears the series colour: values and labels stay in ink, and
   the red mark beside them carries the identity. */
.chart__endlabel {
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 600;
  fill: var(--white);
}

.chart__tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 9px 12px 10px;
  border: 1px solid var(--white-100);
  border-radius: 10px;
  background: #1d1d1d;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .9);
  font-family: var(--font-secondary);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s;
}

.chart__tip.is-on { opacity: 1; }

/* Value leads, label follows — the reader already knows the series. */
.chart__tipvalue {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

/* A short stroke, not a box: at tooltip size a filled square is data-weight
   ink doing a label's job. */
.chart__tipkey {
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--chart-accent);
}

.chart__tiplabel {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
}

.chart__live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Without the script there is nothing behind the tabs and nothing to draw
   into, so neither is shown. What survives is the KPI tiles and the link to
   the dashboard — the headline figures and the proof, just not the series. */
.case:not(.is-ready) .case__tabs,
.case:not(.is-ready) .case__panel { display: none; }

.case__footnote {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 991px) {
  /* Stacked, the card is two rows in a box sized by the tallest slide in
     the track, and left to themselves both rows grow — which opens a gap in
     the middle of the card, under the copy. Naming the rows instead hands
     every spare pixel to the second one: the copy stays the height it needs
     and the chart column absorbs the rest, which is also what lets the
     button inside it reach the bottom edge the way it does on a wide card. */
  .case { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
}

@media (max-width: 560px) {
  .chart { height: 240px; }
  .case__line { font-size: 14px; }
  .case__tab { padding: 0 11px; font-size: 13px; }
  .kpi { padding: 14px 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .case__tab,
  .chart__col,
  .chart__tip { transition: none; }
}

/* ---------- the evidence ----------
   Anyone can draw a chart. The screenshot is what makes the chart beside it
   worth believing, so the link to it is a real control, not fine print. */

.case__proof {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  /* The card's one action, in the corner a card's action belongs in.
     margin-top:auto takes whatever height the column has left over, so the
     button sits on the bottom edge whether the chart above it is 300px or
     the screenshot is 200px; align-self keeps it its own width at the right
     rather than stretching into a band. In flow, never absolute — an
     absolute corner would ride over the content on a card that fills. */
  align-self: flex-end;
  margin-top: auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--white-100);
  border-radius: var(--radius-pill);
  font-family: var(--font-secondary);
  font-size: 13px;
  color: var(--white-800);
  transition: border-color .25s, color .25s, background-color .25s;
}

.case__proof:hover,
.case__proof:focus-visible {
  border-color: var(--border-1);
  background: var(--white-100);
  color: var(--white);
}

.case__proof svg { flex-shrink: 0; opacity: .75; }

/* ---------- a case with no series to chart ----------
   The dashboard IS the visual here, rather than something tucked behind a
   link, and it gets the same framed panel the charts sit in so the slide has
   the same shape as its neighbours.

   Every card in the track is as tall as the tallest, so this one has height
   to spend. It is spent as air between the panel and the button pinned under
   it, never inside the frame: a frame stretched to 420px around a 175px
   screenshot is a visibly empty box, which reads worse than the thin strip
   it replaced. The frame hugs the image. */

/* Centred in whatever height the column has, not parked at the top: the
   figure takes the free space itself and centres the image and its caption
   inside it, so the button below still reaches the bottom edge. Doing it
   with the figure rather than the column matters — auto margins on both
   would split the slack three ways and land the image a third of the way
   down instead of halfway. */
.case__shotfig {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

/* Less frame, more picture — at every width. */
.case--shot .case__shotlink { padding: clamp(8px, 1vw, 12px); }

/* Wider than the 5/7 every other card uses: a screenshot IS the evidence on
   these two, and at 7 columns it was filling under a third of the height it
   had. The copy column pays for it, so two guards.

   It waits for 1200px: at 1024 the narrower column pushed "$5,680" and
   "$43.00" past the edge of their tiles, which are nowrap and so clip rather
   than wrap.

   And it never drops under 330px. Past about 1500 the card stops widening
   with the container while the tile type keeps growing to its 34px cap, so a
   pure fraction breaks those same two values at the other end of the range.
   330px is what the wider of them needs at that cap, plus the tile padding. */
@media (min-width: 1200px) {
  .case--shot {
    grid-template-columns: minmax(330px, 4fr) minmax(0, 8fr);
    gap: clamp(24px, 3vw, 40px);
  }
}

.case__shotlink {
  display: block;
  overflow: hidden;
  padding: clamp(10px, 1.6vw, 16px);
  border: 1px solid var(--white-100);
  border-radius: var(--radius-md);
  /* The same wash the KPI tiles sit on, so the two blocks on this card read
     as one family rather than a panel and a photo. */
  background: var(--chart-surface);
  transition: border-color .3s, background-color .3s, transform .4s var(--ease);
}

.case__shotlink:hover,
.case__shotlink:focus-visible {
  border-color: var(--border-1);
  transform: translateY(-3px);
}

/* The shots are light-UI screenshots on a dark page. Held back a little at
   rest so they sit in the page instead of glaring out of it, full strength
   on hover — which also signals they are worth clicking. */
.case__shotlink img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  opacity: .82;
  transition: opacity .3s;
}

.case__shotlink:hover img,
.case__shotlink:focus-visible img { opacity: 1; }

.case__shotfig figcaption {
  margin-top: 12px;
  font-family: var(--font-secondary);
  font-size: 12px;
  line-height: var(--lh-xl);
  color: var(--text-muted);
}

/* ---------- the overlay ----------
   A native <dialog>: the focus trap, Escape, and the inert background behind
   it come from the browser, not from code we would have to keep correct. */

.shots {
  width: min(1180px, 94vw);
  max-height: 92vh;
  /* iOS Safari resolves vh against the LARGE viewport — the one with the
     URL bar retracted — so with the bars showing a 92vh box runs under
     them. dvh tracks the viewport that is actually visible. The vh line
     above stays as the fallback for engines without dvh. */
  max-height: 92dvh;
  padding: 0;
  border: 1px solid var(--white-100);
  border-radius: var(--radius-lg);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.shots::backdrop {
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(6px);
}

.shots__body {
  max-height: 92vh;
  /* iOS Safari resolves vh against the LARGE viewport — the one with the
     URL bar retracted — so with the bars showing a 92vh box runs under
     them. dvh tracks the viewport that is actually visible. The vh line
     above stays as the fallback for engines without dvh. */
  max-height: 92dvh;
  padding: clamp(20px, 3vw, 36px);
  /* The close button floats over this box, so the content has to start below
     it or the first screenshot wears a × through its top-right corner. That
     corner is where a dashboard puts its date range and totals, and on a wide,
     short screenshot the 40px button covers a third of the image's height. */
  padding-top: 62px;
  overflow-y: auto;
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}

.shots__fig { margin: 0; }

.shots__fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--white-100);
  border-radius: var(--radius-md);
}

.shots__fig figcaption {
  margin-top: 12px;
  font-family: var(--font-secondary);
  font-size: 13px;
  line-height: var(--lh-xl);
  color: var(--text-muted);
}

.shots__full {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-secondary);
  font-size: 13px;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--white-400);
  text-underline-offset: 4px;
  transition: text-decoration-color .25s;
}

.shots__full:hover,
.shots__full:focus-visible { text-decoration-color: currentColor; }

.shots__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--white-100);
  border-radius: 50%;
  background: rgba(13, 13, 13, .82);
  backdrop-filter: blur(8px);
  color: var(--white);
  font: 400 22px/1 var(--font-secondary);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}

.shots__close:hover { background: var(--black); border-color: var(--border-1); }

/* On a phone every pixel of width is a pixel of a 1600px-wide dashboard, so
   the overlay hands the screenshot as much of the viewport as it can get. The
   preview is still only an index of what the shot says — "Open full size" is
   the way to actually read it — but it should not be smaller than it has to be. */
@media (max-width: 767px) {
  /* The UA stylesheet caps a dialog at calc(100% - 6px - 2em), which on a
     375px phone is 337px however wide we ask for. Override it or the width
     above does nothing. */
  .shots { width: 96vw; max-width: 96vw; }
  .shots__body {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case__proof,
  .case__shotlink,
  .case__shotlink img,
  .shots__close,
  .shots__full { transition: none; }
  .case__shotlink:hover { transform: none; }
}

/* ===== scroll-scene.css ===== */
/* Scroll-immersion layer: section-to-section scene transitions, plus the
   parallax the video bands were missing. Pairs with js/scroll-scene.js.

   Nothing here claims a property another sheet already owns:
   - the scene zoom sits on section.section, which no other sheet transforms;
   - video parallax sits on the <video> itself, while media.css owns the
     transform/clip-path on the .showcase__media wrapper above it and
     motion.js owns the <img> inside the picture bands. Nesting composes the
     two transforms instead of one overwriting the other. */

/* ================= 1. section scenes ================= */

/* The page reads as stacked scenes rather than one flat ribbon: a section
   recedes a few percent as it leaves and advances as it arrives.

   The whole effect is deliberately confined to the SEAMS. Both animations use
   fill-mode:none, so outside their range no value is contributed at all and
   the section falls back to its base style — scale 1, opacity 1, filter none —
   for every pixel of scroll it spends occupying the viewport. That also means
   no filter layer is rasterized while you are reading, and nothing is pinned
   in a transformed state on page load. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section {
      /* linear, not --ease: the scroll position IS the progress. An eased
         curve on top of it would make a constant-speed scroll produce
         non-constant motion. Shape lives in the keyframes instead. */
      animation-name: ls-scene-advance, ls-scene-recede, ls-scene-resolve, ls-scene-dissolve;
      animation-timeline: view(), view(), view(), view();
      animation-range:
        entry 0% entry 75%,
        exit 25% exit 100%,
        entry 0% entry 40%,
        exit 60% exit 100%;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: none;
      transform-origin: 50% 50%;
    }
  }
}

/* entry/exit are each capped at min(section height, viewport height) of
   scroll, and `contain` — the stretch where the section fills the screen —
   sits between them carrying no animation. Ending the zoom at entry 75% and
   starting it again at exit 25% widens that resting gap further, so even a
   section shorter than the viewport is fully at rest while it is centred. */

/* 0.965 is a 3.5% delta: ~48px of edge travel on a 1400px viewport, plainly
   readable as depth, while a 16px body line changes by half a pixel — below
   the threshold where scaled text goes soft. A 1.0->1.2 zoom would move a
   92px display heading by 18px and make the copy unreadable mid-seam. */
@keyframes ls-scene-advance {
  from { transform: scale(.965); }
  to   { transform: scale(1); }
}

@keyframes ls-scene-recede {
  from { transform: scale(1); }
  to   { transform: scale(.965); }
}

/* Opacity and blur run on a much tighter range than the zoom (the first 40%
   of entry, the last 40% of exit) and resolve at 55% of even that — by which
   point the section covers barely a fifth of the screen edge. Text is never
   dimmed or blurred anywhere a reader could be looking.

   3px is affordable precisely because of where it lives: `filter: none` at
   55% means the property is genuinely absent — not blur(0px), which would
   still force the section into a rasterized layer — for the rest of the range
   and for the entire time the section is on screen. The blur exists only
   while the section is a sliver at the viewport edge. It is there to bridge
   the seam so two sections read as one depth move rather than two panels
   swapping. */
@keyframes ls-scene-resolve {
  from { opacity: .4; filter: blur(3px); }
  55%  { opacity: 1; filter: none; }
  to   { opacity: 1; filter: none; }
}

@keyframes ls-scene-dissolve {
  from { opacity: 1; filter: none; }
  45%  { opacity: 1; filter: none; }
  to   { opacity: .4; filter: blur(3px); }
}

/* ---------- fallback: no scroll-driven animations ---------- */

/* js/scroll-scene.js arms this only when CSS.supports() says view() is
   missing AND IntersectionObserver exists, so the path is deterministic and
   the two never both run.

   The rest state is the DEFAULT and .is-scene-out is the added state, not the
   other way round: a section can never flash dimmed for the frame between
   first paint and the observer's first callback. No blur here — an
   unlinked 900ms blur transition across a full section is the expensive,
   low-information case the scroll-driven path avoids by construction. */
:root.js-scene .section {
  transition: transform .9s var(--ease), opacity .5s var(--ease);
}

:root.js-scene .section.is-scene-out {
  transform: scale(.965);
  opacity: .4;
}

/* ================= 2. video parallax ================= */

/* motion.js drifts .showcase__media img by writing --parallax on the <img>.
   The two video bands had none, so a photo band and a video band moved at
   different rates through the same scroll. scroll-scene.js writes the same
   property, with the same curve and the same -23% travel, onto the <video>
   elements only — no element is ever written by both files. */

/* A parallaxed element has to be oversized on the axis it moves or it drags
   an empty edge into frame. 130% matches .showcase__media img exactly: at the
   -23%-of-own-height extreme the element sits at -29.9%..100.1% of its box,
   so the crop stays covered end to end. Both selectors are two classes deep
   to out-specify media.css's height:100% regardless of link order. */
.showcase--video .showcase__video,
.stats .stats__video {
  height: 130%;
  transform: translate3d(0, var(--parallax, 0), 0);
}

/* will-change is bound to .is-scrolling, which js/interactions.js already
   adds to <html> for the duration of a scroll and drops when the damped
   velocity reaches zero. The transform only changes while scrolling, so this
   promotes the layer exactly when it earns one and releases it otherwise —
   no timer, no second bookkeeping path. */
:root.is-scrolling .showcase--video .showcase__video,
:root.is-scrolling .stats .stats__video {
  will-change: transform;
}

/* ================= 3. reduced motion ================= */

/* The scroll-driven path is pure CSS, so JS opting out is not enough — this
   has to switch it off from the sheet. Page stays fully usable and static. */
@media (prefers-reduced-motion: reduce) {
  .section {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .showcase--video .showcase__video,
  .stats .stats__video {
    height: 100% !important;
    transform: none !important;
    will-change: auto !important;
  }
}

/* ===== interactions.css ===== */
/* Motion/interaction layer. Depends only on tokens.css.
   Everything here is driven by two inherited custom properties that
   js/interactions.js publishes on :root from a single damped rAF loop:

     --scroll-progress   0 -> 1, document scroll position
     --scroll-velocity  -1 -> 1, damped scroll speed (negative = upward)

   Both default to 0 in every calc() below, so the whole file is inert if
   the JS never runs. Nothing here is required for the page to be usable. */

:root {
  --scroll-progress: 0;
  --scroll-velocity: 0;

  /* Signature curves. --ease (tokens) is the site's long editorial settle;
     these two are the short-interaction variants. ease-in is deliberately
     absent — it delays the first frame, which is the frame the user is
     watching hardest. */
  --ease-out-strong: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out-strong: cubic-bezier(.77, 0, .175, 1);
}

/* ---------- scroll progress line ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 2px;
  background: var(--primary);
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress));
  pointer-events: none;
}

/* Only promoted while the scroll loop is actually running — a permanent
   will-change would keep a layer alive for the whole session. */
.is-scrolling .scroll-progress,
.is-scrolling .marquee,
.is-scrolling .marquee__track { will-change: transform; }

/* ---------- page intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--black);
  /* Never traps: the overlay cannot swallow a click, and <body> overflow is
     never touched, so a JS failure mid-intro cannot lock the page. */
  pointer-events: none;
  clip-path: inset(0 0 0 0);
  transition: clip-path .62s var(--ease);
}

.intro__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  transition: opacity .38s var(--ease-out-strong), transform .62s var(--ease);
}

.intro__word {
  font-family: var(--font-body);
  font-weight: var(--w-medium);
  font-size: clamp(34px, 1.4rem + 6vw, 96px);
  line-height: var(--lh-s);
  /* Large display type reads too loose at default tracking. */
  letter-spacing: -.03em;
  color: var(--white);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: intro-word .5s var(--ease-out-strong) forwards;
}

@keyframes intro-word {
  to { opacity: 1; transform: none; }
}

.intro__bar {
  position: relative;
  width: min(220px, 42vw);
  height: 1px;
  overflow: hidden;
  background: var(--white-100);
}

.intro__bar-fill {
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform-origin: left center;
  transform: scaleX(var(--intro-progress, 0));
  /* Long-ish so a load that finishes instantly still reads as a fill and
     not as a flash of a full bar. */
  transition: transform .45s var(--ease);
}

/* Wipe upward: the hero is revealed from below, matching the direction the
   page itself moves next. */
.intro.is-out { clip-path: inset(0 0 100% 0); }
.intro.is-out .intro__inner {
  opacity: 0;
  transform: translate3d(0, -14px, 0);
}

/* ---------- custom cursor ---------- */

/* Additive only — the native cursor is never hidden, so pointer accuracy and
   OS cursor settings are untouched. difference blending keeps it legible
   over both the black page and the red/photographic sections. */
.cursor {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  /* -50% centres on the point; JS only ever writes the translate3d part. */
  will-change: transform;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--white);
}

.cursor__ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--white-400);
  /* Only the scale/background transition here — position is written every
     frame by the lerp, so transitioning transform would fight it. */
  transition: width .28s var(--ease-out-strong),
              height .28s var(--ease-out-strong),
              margin .28s var(--ease-out-strong),
              border-color .28s var(--ease-out-strong),
              background-color .28s var(--ease-out-strong);
}

.cursor__ring.is-active {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-color: var(--primary);
  background: rgba(229, 25, 42, .16);
}

/* ---------- velocity skew on marquees ---------- */

/* The keyframe in layout.css owns .marquee__track's `transform`, so the skew
   goes on the container and the nudge uses the standalone `translate`
   property, which composes instead of colliding. Both are capped by the
   clamp on --scroll-velocity in JS (|v| <= 1), so max skew is 4deg. */
.marquee { transform: skewX(calc(var(--scroll-velocity) * 4deg)); }
.marquee__track { translate: calc(var(--scroll-velocity) * -22px); }

/* ---------- cursor-following glow on cards ---------- */

/* isolation makes each card its own stacking context so the z-index:-1 layer
   paints above the card's own background but below its text — no tint on the
   copy, no extra wrapper element. */
.step,
.quote {
  position: relative;
  isolation: isolate;
}

.step::before,
.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(229, 25, 42, .22),
    rgba(229, 25, 42, .06) 45%,
    transparent 70%
  );
  opacity: 0;
  /* Asymmetric: arrives while the user is deciding, leaves slowly enough
     that crossing between two cards doesn't strobe. */
  transition: opacity .7s var(--ease);
}

.step.is-glowing::before,
.quote.is-glowing::before {
  opacity: 1;
  transition-duration: .4s;
}

/* ---------- section divider draw ---------- */

/* Reusable: put <span data-line></span> (or data-line="primary") anywhere a
   border-top would otherwise sit. Repeatable in both directions, matching
   the existing [data-reveal] system. */
[data-line] {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white-100);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .9s var(--ease);
}

[data-line="primary"] { background: var(--primary); }

[data-line].is-drawn { transform: scaleX(1); }

@media (hover: none), (pointer: coarse) {
  /* Velocity skew is a pointer-driven flourish; touch scrolling already has
     its own momentum and the skew only reads as jitter there. */
  .marquee { transform: none; }
  .marquee__track { translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* The intro and cursor are never built under reduced motion (JS bails), so
     only the always-present pieces need neutralising here. */
  .marquee { transform: none !important; }
  .marquee__track { translate: none !important; }

  .step::before,
  .quote::before { transition: opacity .2s linear; }

  [data-line] {
    transform: none !important;
    transition: none !important;
  }

  /* Kept: it's a static position indicator, not motion in the visual field. */
  .scroll-progress { transition: none !important; }
}

/* ===== typography.css ===== */
/* Typography, hierarchy and emphasis. Loads last so it can settle sizes the
   earlier sheets set; it only ever reads variables from tokens.css. */

/* ---------- keyword emphasis ---------- */

/* Marked up as <em>/<strong> so the emphasis is real to a screen reader, but
   rendered with weight + full white instead of italics: neither display face
   ships an italic cut, so the browser would synthesise a skew. Weight also
   survives the .p2/.quote__text muting that a colour change would fight. */
.hl {
  font-style: normal;
  font-weight: var(--w-semibold);
  color: var(--white);
}

/* ---------- section header ---------- */

/* Every section opens the same way: a small index label, then a real visible
   <h2>. The pattern is emitted by section_head() in partials/format.php — the
   markup shape is fixed there so no section can drift out of the system. */
.section-head {
  margin-bottom: clamp(24px, 3vw, 48px);
}

/* Overrides the 20px .services__intro carries as a standalone block. */
.section-head__label {
  margin-bottom: clamp(12px, 1.4vw, 18px);
}

/* Deliberately below .eyebrow's --h6: this line is a locator, not a title,
   and uppercase + tracking already buys it more presence per point size. */
.section-head__index {
  font-size: clamp(11px, .6rem + .3vw, 14px);
  letter-spacing: .14em;
  color: var(--text-muted);
}

.section-head__name { color: var(--white-800); }

.section-head__title {
  font-size: var(--h2);
  line-height: 1.04;
}

/* .mask clips overflow for the reveal, which also clips descenders once the
   heading is at rest. The padding gives them room without unmasking the
   translated start position. */
.section-head .mask { padding-bottom: .08em; }

.section-head--center { text-align: center; }
.section-head--center .section-head__label { justify-content: center; }

/* ---------- hero ---------- */

/* The blocks were within a few points of each other, so nothing read as the
   headline. The order of importance is claim > lede > service list > badge,
   and each step is a visible jump in size, weight or opacity. (The wordmark
   and the philosophy line this comment used to name are both gone: the first
   duplicated the navbar logo, the second said nothing actionable.) */

.hero .hero__top {
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
}

/* The slogan, and the page's h1 since the giant wordmark was removed from the
   hero — it duplicated the logo in the navbar. --h4 bottomed out at 14px, i.e.
   smaller than the service list it was meant to outrank; this makes it the
   loudest thing on screen and lets it hold its own line breaks. The tracking
   here is why promoting the <p> to an <h1> changed nothing visually: this rule
   already set what the global h1 rule would have applied. */
.hero .hero__claim {
  /* Wide enough that neither of the two lines wraps on its own, and no wider:
     the break between them is a <br> in the markup, so this is a guard rail
     rather than the thing doing the breaking. "Not just ad spend." is the
     longer line at 18 characters — 16ch, which is what this was when the
     headline was one long sentence, wrapped it into three lines. */
  max-width: 20ch;
  /* Ceiling raised from 68px: the headline is two short lines in a
     full-viewport section, and at 68px it read as a subtitle floating in a
     lot of empty backdrop. The floor is unchanged — 28px is what keeps
     "Not just ad spend." on one line at 375px. */
  font-size: clamp(28px, 1.1rem + 4.6vw, 92px);
  font-weight: var(--w-semibold);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--white);
}

/* The second half of the opposition, dimmed. This is the entire point of the
   headline: "Scale revenue" is what we sell, "not just ad spend" is what the
   prospect is currently getting, and showing the two at different weights
   makes that readable at a glance instead of only after reading the words.
   --text-muted rather than --white-800 — .8 against .62 is not a visible step
   at this size, and .62 is documented at 7.70:1. */
.hero .hero__claim-alt { color: var(--text-muted); }

/* The supporting line. Deliberately much quieter than the h1 and much louder
   than the service list beside it, so the eye goes claim -> lede -> services.
   Capped at 46ch: the sentence is 20 words, and at --p1 on a wide screen an
   uncapped line would run the full column and read as a paragraph of body
   copy rather than a subtitle. */
.hero .hero__lede {
  max-width: 46ch;
  margin-top: clamp(16px, 1.8vw, 28px);
  /* Its own ramp rather than --p1, whose 20px ceiling sat too far below a
     92px headline to read as the same block of copy. */
  font-size: clamp(16px, .9rem + .45vw, 23px);
  line-height: var(--lh-l);
  color: var(--white-800);
}

/* Sits below the lede and above the fold on a phone, so it wraps rather than
   squeezing: on a 375px screen the two labels do not fit on one line. */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 2.6vw, 40px);
}

.hero .hero__services { gap: 14px; }

/* Names the block, so four nouns stacked in a corner stop reading as a
   continuation of the sentence opposite them. */
/* Two classes deep on purpose: layout.css styles `.hero__services p` at --p2,
   which would otherwise out-specify a single class and flatten the label back
   into the list it is meant to introduce. */
.hero .hero__services-label {
  font-family: var(--font-body);
  font-size: clamp(11px, .6rem + .3vw, 13px);
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--white-100);
}

.hero__services-list { display: grid; gap: 8px; }

.hero__services-list li {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
  font-size: var(--p2);
  line-height: var(--lh-l);
  color: var(--white-800);
}

.hero__services-num {
  font-family: var(--font-body);
  font-size: clamp(10px, .55rem + .2vw, 12px);
  color: var(--primary-text);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 991px) {
  .hero .hero__top { align-items: start; }
}

@media (max-width: 767px) {
  /* One column: the list is left-aligned by layout.css, so the rows and the
     rule under the label have to follow it. */
  /* No max-width override here any more. It used to narrow the claim to 18ch
     so a single long sentence broke into more, shorter lines; the headline is
     now two authored lines, and anything under 20ch wraps the second one. */
  .hero__services-list li { justify-content: flex-start; }
  .hero .hero__services-label { display: inline-block; }
}

/* ---------- thank you ---------- */

/* Must live in this sheet, not sections.css: typography.css loads last, so a
   font-size set earlier loses to .section-head__title above no matter where it
   sits. --h2 is sized for two- to four-word section headings; this page's
   title is a full sentence, and at that scale it ran to six lines and swamped
   its column. One step down keeps it a display line instead of a wall. */
.thanks { --thanks-title: clamp(28px, 1.1rem + 3.2vw, 62px); }
.thanks__title { font-size: var(--thanks-title); }

/* .section-head .mask above carries the same padding, but this page builds its
   header by hand rather than through section_head(), so that selector never
   reaches it. Sized off the title variable rather than in em: .mask inherits
   the body font-size, so .08em there resolves to ~1px and would still clip a
   descender the moment the copy ends in a g or a y. */
.thanks .mask { padding-bottom: calc(var(--thanks-title) * .08); }

