/* ==========================================================================
   DUVA LTD — duva.css
   Single committed light identity. Every colour is painted explicitly.
   ========================================================================== */

/* Self-hosted — each file is Google's own variable-font build (one file
   covers the whole weight range), latin subset only. Previously loaded from
   fonts.googleapis.com: a 3-hop chain (this page → Google's CSS → gstatic's
   font files) that was over half the page's total weight on its own. */
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('../fonts/inter-var.woff2') format('woff2');
}
@font-face{
  font-family:'Space Grotesk';
  font-style:normal;
  font-weight:300 700;
  font-display:swap;
  src:url('../fonts/space-grotesk-var.woff2') format('woff2');
}
@font-face{
  font-family:'JetBrains Mono';
  font-style:normal;
  font-weight:400 800;
  font-display:swap;
  src:url('../fonts/jetbrains-mono-var.woff2') format('woff2');
}

:root{
  color-scheme: dark;

  /* Brand — dark base, blue is now the one saturated thing in the frame
     rather than an accent on white. --blue itself is untouched: it's the
     one value that has to stay literally DUVA blue. Every other token
     keeps its original NAME (so every rule elsewhere in this file that
     already reads var(--white)/var(--ink)/etc. still means the same
     *role* — surface / text / border — it's just the values that moved). */
  --blue:#0000FF;
  --blue-bright:#5C6EFF;
  --blue-deep:#4D5BFF;
  --blue-soft:#12123A;
  --white:#0A0A12;
  --ink:#F1F2FF;
  --tint:#111120;
  --line:#26273D;
  --line-strong:#3A3C5C;
  --muted:#9B9DC4;
  --muted-soft:#7A7EA8;

  /* Type scale — named so a new heading level picks from this, not a fresh clamp() */
  --text-hero:clamp(46px,7.6vw,116px);
  --text-h2:clamp(32px,5vw,60px);
  --text-h3:clamp(28px,4vw,46px);
  --text-stat:clamp(30px,4.2vw,50px);

  /* Type */
  --display:'Space Grotesk','Segoe UI',system-ui,sans-serif;
  --body:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,'SFMono-Regular',Consolas,monospace;

  /* System */
  --ease:cubic-bezier(.16,1,.3,1);
  --pad:120px;
  --pad-lg:150px;
  --max:1280px;
  --gutter:24px;
  --radius:4px;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  scroll-padding-top:96px;
}

body{
  background:var(--white);
  color:var(--ink);
  font-family:var(--body);
  font-size:17px;
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.nav-open{overflow:hidden}

h1,h2,h3,h4,h5,.display{
  font-family:var(--display);
  font-weight:600;
  line-height:1.02;
  letter-spacing:-.02em;
  text-wrap:balance;
}

p{text-wrap:pretty}

.mono{
  font-family:var(--mono);
  font-size:11px;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-variant-numeric:tabular-nums;
}

a{color:inherit;text-decoration:none}

img,svg,canvas{max-width:100%;display:block}

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

::selection{background:var(--blue);color:var(--ink)}

.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}

section{padding:var(--pad) 0;border-top:1px solid var(--line);position:relative}

/* Skip layout/paint work for these three below-the-fold sections until
   they're actually about to be scrolled into view — Lighthouse's mobile
   trace showed 2.4s of Style & Layout on a page this content-heavy.
   `auto <n>` is a size guess, not a fixed size: the browser measures the
   real height the first time each renders and remembers it, so this isn't
   a CLS risk the way a hardcoded height would be. */
#areas,#coverage{content-visibility:auto;contain-intrinsic-size:auto 1000px}

.skip{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--blue);color:var(--ink);
  padding:12px 20px;font-size:14px;font-weight:500;
}
.skip:focus{left:12px;top:12px}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ---------- announcement ------------------------------------------------ */
.announce{
  background:var(--blue);color:var(--ink);
  font-size:13px;line-height:1.4;padding:10px var(--gutter);
  text-align:center;position:relative;z-index:60;
}
/* Full 44px here would force the whole strip well past a slim announcement
   bar's own identity — a straight conflict with the brand's minimal rules,
   so this raises the tap height as far as a slim strip reasonably allows
   (~34px) rather than silently picking a side. */
.announce a{display:inline-block;border-bottom:1px solid rgba(255,255,255,.5);padding:8px 0 1px;white-space:nowrap}
.announce a:hover{border-bottom-color:var(--ink)}
.announce b{font-weight:600}
.announce .sep{opacity:.55;padding:0 8px}

/* ---------- header ------------------------------------------------------ */
header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,0);
  border-bottom:1px solid transparent;
  transition:background .35s var(--ease),border-color .35s var(--ease);
}
header.stuck{
  background:rgba(10,10,18,.85);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom-color:var(--line);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  height:70px;max-width:var(--max);margin:0 auto;padding:0 var(--gutter);
}
.brand{display:flex;align-items:center;gap:10px}
.mark{height:28px;width:auto;flex:0 0 auto;display:block}
.brand .name{font-family:var(--display);font-weight:700;font-size:17px;letter-spacing:-.01em}
.links{display:flex;gap:32px;font-size:14.5px;font-weight:500}
.links a{position:relative;padding:4px 0;color:var(--ink)}
.links a::after{
  content:'';position:absolute;left:0;bottom:0;
  width:0;height:1.5px;background:var(--blue);
  transition:width .4s var(--ease);
}
.links a:hover::after,.links a[aria-current="true"]::after{width:100%}

/* ---------- buttons ----------------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--blue);color:var(--ink);
  padding:13px 24px;font-family:var(--body);font-size:14px;font-weight:500;
  border:1px solid var(--blue);border-radius:3px;cursor:pointer;
  position:relative;overflow:hidden;
  transition:transform .3s var(--ease);
  will-change:transform;
}
.btn>span{position:relative;z-index:2}
.btn::before{
  content:'';position:absolute;inset:0;background:var(--blue-deep);
  transform:scaleX(0);transform-origin:left;
  transition:transform .45s var(--ease);
}
.btn:hover::before{transform:scaleX(1)}

.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn.ghost::before{background:var(--blue)}
.btn.ghost:hover{color:var(--ink);border-color:var(--blue)}

.btn.light{background:var(--white);color:var(--blue-bright);border-color:var(--ink)}
.btn.light::before{background:var(--tint)}

.btn.block{width:100%}

/* ---------- burger + mobile drawer -------------------------------------- */
.burger{
  display:none;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  width:44px;height:44px;background:none;border:0;cursor:pointer;margin-right:-11px;
}
.burger i{display:block;width:22px;height:1.5px;background:var(--ink);transition:transform .3s var(--ease),opacity .2s var(--ease)}
.burger[aria-expanded="true"] i:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.burger[aria-expanded="true"] i:nth-child(2){opacity:0}
.burger[aria-expanded="true"] i:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

.drawer{
  position:fixed;inset:0;z-index:45;
  background:var(--white);
  padding:96px var(--gutter) 40px;
  display:flex;flex-direction:column;gap:4px;
  transform:translateY(-100%);
  /* visibility keeps the off-screen links out of the tab order while closed,
     so aria-hidden never covers a focusable element */
  visibility:hidden;
  transition:transform .5s var(--ease),visibility 0s linear .5s;
  overflow-y:auto;
}
.drawer[data-open="true"]{transform:translateY(0);visibility:visible;transition-delay:0s,0s}
.drawer a.dlink{
  font-family:var(--display);font-size:30px;font-weight:600;letter-spacing:-.03em;
  padding:14px 0;border-bottom:1px solid var(--line);color:var(--ink);
}
.drawer .btn{margin-top:28px}
.drawer .dfoot{margin-top:auto;padding-top:32px;color:var(--muted);font-size:14px}
.drawer .dfoot a{color:var(--blue-bright);display:inline-block;padding:11px 0}

/* ---------- reveal ------------------------------------------------------ */
.reveal-line{overflow:hidden;display:block}
.reveal-line>span{display:block;transform:translateY(105%);transition:transform .6s var(--ease)}
.loaded .reveal-line>span{transform:translateY(0)}
.reveal-line:nth-of-type(2)>span{transition-delay:.06s}
.reveal-line:nth-of-type(3)>span{transition-delay:.12s}

.fade{opacity:0;transform:translateY(22px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
.fade.in{opacity:1;transform:none}

/* ---------- ambient cursor glow ------------------------------------------
   A soft blue field that follows the pointer site-wide — desktop only
   (duva.js gates creation behind (hover:hover) and (pointer:fine)), and
   never intercepts clicks. Reduced-motion gets no glow at all rather than
   one that snaps instead of trails. */
.cursor-glow{
  position:fixed;left:0;top:0;width:460px;height:460px;margin:-230px 0 0 -230px;
  border-radius:50%;pointer-events:none;z-index:90;
  background:radial-gradient(circle,rgba(0,0,255,.07),rgba(0,0,255,0) 70%);
  opacity:0;transition:opacity .5s var(--ease);
  will-change:transform;
}
.cursor-glow.active{opacity:1}

/* ---------- kinetic section headings -------------------------------------
   duva.js wraps every .shead h2 into a word per <span class="word"><span>,
   masked the same way .reveal-line already masks the hero heading — words
   rise into place with a slight tip, staggered, once the section's own
   .fade reveal fires (.shead already carries that class, so this rides
   the same IntersectionObserver rather than a second one). */
.shead h2 .word{overflow:hidden;display:inline-block;vertical-align:top}
.shead h2 .word>span{
  display:inline-block;transform:translateY(105%) rotateZ(3deg);transform-origin:0% 100%;
  filter:blur(7px);opacity:0;
  transition:transform .7s var(--ease),filter .5s var(--ease),opacity .4s var(--ease);
}
.shead.in h2 .word>span{transform:none;filter:blur(0);opacity:1}
.shead h2 .word:nth-child(1)>span{transition-delay:0s}
.shead h2 .word:nth-child(2)>span{transition-delay:.05s}
.shead h2 .word:nth-child(3)>span{transition-delay:.10s}
.shead h2 .word:nth-child(4)>span{transition-delay:.15s}
.shead h2 .word:nth-child(5)>span{transition-delay:.20s}
.shead h2 .word:nth-child(6)>span{transition-delay:.25s}
.shead h2 .word:nth-child(7)>span{transition-delay:.30s}
.shead h2 .word:nth-child(8)>span{transition-delay:.35s}

/* The hero reveals on load rather than on scroll. Delays are declared at the
   same specificity as the rule that reveals them, so they are not overridden. */
.loaded .hero .fade{opacity:1;transform:none}
.loaded .hero .eyebrow{transition-delay:.15s}
.loaded .hero .lede{transition-delay:.19s}
.loaded .hero .cta-row{transition-delay:.23s}
.loaded .hero .cta-note{transition-delay:.27s}
.loaded .hero .hero-visual{transition-delay:.10s}

/* ---------- hero -------------------------------------------------------- */
.hero{padding:72px 0 88px;border-top:0;overflow:hidden;position:relative}
.hero-scene{
  position:absolute;inset:0;width:100%;height:100%;
  z-index:0;pointer-events:none;
}
.hero-grid{
  position:relative;z-index:1;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);
  gap:56px;align-items:center;
}
.hero-copy{min-width:0}
.hero .eyebrow{color:var(--blue-bright);display:block;margin-bottom:26px}
.hero h1{
  font-size:var(--text-hero);
  font-weight:700;letter-spacing:-.045em;line-height:.94;
}
.hero h1 .b{color:var(--blue-bright)}
/* the scramble-in decode effect (duva.js writes per-character spans here
   on load) — unresolved characters read in blue while cycling, and settle
   to the heading's own ink/blue as each one locks in. */
.decode .ch{display:inline-block}
.decode .ch.cycling{color:var(--blue-bright);opacity:.72}
.lede{
  font-size:clamp(17px,2vw,20px);color:var(--muted);
  max-width:52ch;margin:32px 0 36px;line-height:1.55;
}
/* real emphasis, not just bold-for-the-sake-of-it — used sparingly on the
   handful of phrases each section actually wants a reader's eye to land
   on first (what we do, the one number that matters). */
.hl{color:var(--ink);font-weight:600}
.cta-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.cta-note{font-size:13.5px;color:var(--muted-soft);margin-top:18px}

/* ---------- Programme Signal card ---------------------------------------
   A real chart, not decoration: three.js/canvas scenes have occupied this
   slot before (see tools/hero-archive/) — this is plain SVG + CSS, so the
   labels are real, selectable, screen-reader text and the whole thing is
   a few KB instead of a render loop. */
.hero-visual{display:flex;flex-direction:column;min-width:0}
.signal-card{
  position:relative;width:100%;min-height:0;
  border:1px solid var(--line);border-radius:var(--radius);
  background:var(--white);
  padding:32px 32px 28px;
  display:flex;flex-direction:column;
}
/* the scanline sweep half of the periodic glitch — see "signal check-in"
   below. Sweeps via `top` 0%→100% of the card's own height, so it never
   needs `overflow:hidden` on the card (which would risk re-clipping the
   chart tooltips — see the notes on .signal-chart .tip further down).
   Pure blue, never full-bleed: a signal reading itself, not a rendering error. */
.signal-card::after{
  content:'';position:absolute;left:0;right:0;top:0;height:2px;
  background:linear-gradient(90deg,transparent,var(--blue) 25%,var(--blue) 75%,transparent);
  opacity:0;pointer-events:none;
}

/* ---------- ambient ground glow ------------------------------------------
   One soft blue bloom behind the card — the only place on the page that
   isn't flat white or flat tint. Sits behind .signal-card in DOM order,
   sized well past the card so the blur falloff never shows a hard edge. */
.glow{
  position:absolute;inset:-14% -10%;z-index:0;pointer-events:none;
  background:radial-gradient(60% 60% at 50% 42%,rgba(0,0,255,.16),rgba(0,0,255,0) 72%);
  filter:blur(2px);
}
.hero-visual{position:relative}
.signal-card{z-index:1}

/* ---------- HUD instrument frame ------------------------------------------
   Four corner brackets, quiet at rest, brighten and extend during the
   glitch burst — an instrument-panel frame reacting to its own signal
   check, not a decoration that just sits there. */
.hud{
  position:absolute;width:16px;height:16px;pointer-events:none;
  border:0 solid var(--blue);opacity:.35;
  transition:opacity .3s var(--ease),width .3s var(--ease),height .3s var(--ease);
}
.hud.tl{top:-1px;left:-1px;border-width:1.5px 0 0 1.5px}
.hud.tr{top:-1px;right:-1px;border-width:1.5px 1.5px 0 0}
.hud.bl{bottom:-1px;left:-1px;border-width:0 0 1.5px 1.5px}
.hud.br{bottom:-1px;right:-1px;border-width:0 1.5px 1.5px 0}

/* ---------- multi-band glitch slices + signal-lock flash ------------------
   Three independent horizontal bands, each briefly desaturating and
   shearing sideways on its own timing — a slice-corruption look built from
   real content underneath (backdrop-filter), not a fake screenshot. Kept to
   saturate()/brightness()/opacity + transform: no hue ever changes, so nothing
   drifts off the blue/white palette the way an RGB channel-split would. */
.glitch-slice{
  position:absolute;left:0;right:0;opacity:0;pointer-events:none;
  backdrop-filter:saturate(0) contrast(1.1);
  -webkit-backdrop-filter:saturate(0) contrast(1.1);
}
.glitch-slice.s1{top:8%;height:11%}
.glitch-slice.s2{top:41%;height:16%}
.glitch-slice.s3{top:76%;height:9%}
.glitch-flash{
  position:absolute;inset:0;background:var(--blue);opacity:0;pointer-events:none;
}

.signal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.signal-head .mono{color:var(--blue-bright)}
.signal-live{
  flex:0 0 auto;width:9px;height:9px;border-radius:50%;
  background:var(--blue);margin-top:3px;position:relative;
}
.signal-live::before{
  content:'';position:absolute;inset:-6px;border-radius:50%;
  border:1px solid var(--blue);opacity:0;
}
.signal-card .lede{
  font-size:15.5px;line-height:1.55;color:var(--muted);
  max-width:42ch;margin:12px 0 0;
}

.signal-chart{width:100%;height:auto;margin:22px 0 4px;overflow:visible}
/* a small blue reticle in place of the system arrow while reading the
   chart — reinforces "instrument," desktop-only so a touch visitor never
   sees a cursor hint that means nothing on their device. */
@media(hover:hover) and (pointer:fine){
  .signal-chart{
    cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22'><circle cx='11' cy='11' r='6.5' fill='none' stroke='%230000FF' stroke-width='1.4'/><path d='M11 0v5.5M11 16.5V22M0 11h5.5M16.5 11H22' stroke='%230000FF' stroke-width='1.4'/></svg>") 11 11,crosshair;
  }
}
.signal-chart .grid-line{stroke:var(--line);stroke-width:1}
.signal-chart .path-bg{fill:none;stroke:var(--line);stroke-width:2}
.signal-chart .path-line{
  fill:none;stroke:var(--blue);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.signal-chart .node-ring{fill:var(--white);stroke:var(--blue);stroke-width:2}
.signal-chart .node-label{
  font-family:var(--mono);font-size:9.5px;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;fill:var(--ink);
}
.signal-chart .node-sub{font-family:var(--mono);font-size:8px;letter-spacing:.06em;fill:var(--muted-soft)}
.signal-chart .now-dot{fill:var(--blue)}
/* transform-origin needs an explicit coordinate here: SVG elements default
   to transform-origin relative to the *viewBox*, not their own bounding
   box the way HTML does, so without this `scale()` balloons outward from
   the chart's top-left corner instead of growing in place around the ring.
   (matches the circle's own cx/cy below — keep them in sync if it moves.) */
.signal-chart .now-ring{
  fill:none;stroke:var(--blue);stroke-width:1.5;opacity:0;
  transform-origin:350px 67px;
}

.signal-chart .marker{cursor:pointer}
/* r=35 in viewBox units — as large as it can go without the Analyse/Grow
   circles clipping past the chart's own edges or overlapping their
   neighbour. The SVG's render scale swings from ~0.47× at 320px to ~1.08×
   at desktop widths, so this lands short of a true 44px touch target on the
   narrowest phones (~33px there) and comfortably clears it from ~400px up —
   a geometry limit, not an oversight. */
.signal-chart .marker .hit{fill:transparent}
.signal-chart .tip{opacity:0;transition:opacity .2s var(--ease)}
.signal-chart .marker:hover .tip,
.signal-chart .marker:focus-visible .tip,
.signal-chart .marker.tip-open .tip{opacity:1}
.signal-chart .tip rect{fill:var(--blue-soft);stroke:var(--line-strong);stroke-width:1}
.signal-chart .tip text{
  font-family:var(--mono);font-size:8.6px;fill:#fff;
}
.signal-chart .tip .tip-val{font-weight:600;letter-spacing:.02em}
.signal-chart .tip .tip-sub{fill:rgba(255,255,255,.62);letter-spacing:.04em}

.signal-caption{
  font-style:italic;font-size:12.5px;color:var(--muted-soft);
  line-height:1.5;margin:0 0 24px;
}

.signal-stats{
  display:grid;grid-template-columns:repeat(2,1fr);gap:1px;
  background:var(--line);border:1px solid var(--line);border-radius:2px;
  overflow:hidden;margin-top:auto;
}
.signal-stats div{background:var(--white);padding:16px 14px}
.signal-stats b{
  display:block;font-family:var(--display);font-size:22px;font-weight:600;
  color:var(--blue-bright);letter-spacing:-.02em;line-height:1;
  font-variant-numeric:tabular-nums;
}
.signal-stats .mono{color:var(--muted);margin-top:8px;display:block;line-height:1.4}

/* ---- reveal: the line draws in, the milestones land in sequence --------
   Triggered by `.loaded` — the same load-time reveal every other hero
   element uses (`.loaded .hero .fade`) — staggered to start once the card
   itself has settled into place (.hero-visual's own .10s delay). Trimmed
   from an earlier, slower pass: the full choreography was measured adding
   ~1.8s to Largest Contentful Paint, since LCP waits for the hero text to
   reach a visually stable state and this sequence was what it was waiting on. */
.signal-chart .path-line{
  stroke-dasharray:620;stroke-dashoffset:620;
  transition:stroke-dashoffset 1s var(--ease) .2s;
}
/* transform-origin is set per-marker inline (matching each one's own cx/cy)
   rather than a shared `center` here — the same viewBox-vs-bounding-box
   issue as .now-ring above, compounded by each marker's <g> bounding box
   also including its (invisible but still measured) tooltip content. */
.signal-chart .marker{opacity:0;transform:scale(.4);
  transition:opacity .3s var(--ease),transform .4s cubic-bezier(.34,1.56,.64,1);
}
.signal-chart .marker[data-i="0"]{transition-delay:.30s}
.signal-chart .marker[data-i="1"]{transition-delay:.68s}
.signal-chart .marker[data-i="2"]{transition-delay:1.10s}
.signal-chart .now{opacity:0;transition:opacity .4s var(--ease) 1.3s}

.loaded .hero .signal-chart .path-line{stroke-dashoffset:0}
.loaded .hero .signal-chart .marker{opacity:1;transform:scale(1)}
.loaded .hero .signal-chart .now{opacity:1}

/* the drawing tip — a small glowing point that travels the exact same
   path as the line above via CSS offset-path (not JS). It arrives as the
   stroke-dashoffset reveal finishes, then keeps looping the same route for
   as long as the hero is in view (gated on .hero.is-live, same pause
   pattern as the glitch cycle below) — a wave of light riding the real
   growth line, rather than a separate decorative animation next to it. */
.signal-chart .path-tip{
  offset-path:path('M36,176 C110,176 130,128 234,112 C310,100 350,56 424,40');
  offset-distance:0%;
  fill:var(--blue-bright);
  filter:drop-shadow(0 0 4px rgba(92,110,255,.9));
  opacity:0;
}
.hero.is-live .signal-chart .path-tip{
  animation:pathTipTravel 2.8s var(--ease) 1.4s infinite;
}
@keyframes pathTipTravel{
  0%{offset-distance:0%;opacity:0}
  6%{opacity:1}
  88%{offset-distance:100%;opacity:1}
  100%{offset-distance:100%;opacity:0}
}

/* ---- the signal check-in — required brand signature ---------------------
   One periodic moment instead of scattered infinite loops: a multi-layer
   glitch burst (card jitter, three independent slice-bands, a soft flash,
   the HUD frame brightening, a scanline sweep — all ~300ms) then the "now"
   ring's pulse lands as the burst settles, then everything holds still for
   the rest of a 24s cycle. Blue/white/ink only, and only ever
   transform/opacity/filter/a `top` sweep on tiny elements — no hue ever
   changes, so nothing drifts toward an RGB channel-split look, and it's
   cheap even mid-burst on a phone.

   Gated on `.hero.is-live`, toggled by duva.js via IntersectionObserver —
   nothing in this block runs while the hero is scrolled off-screen; it
   waits out its own 6s lead-in again once it comes back into view. */
.hero.is-live .signal-card{animation:signalGlitch 24s linear 6s infinite}
.hero.is-live .signal-card::after{animation:signalScan 24s linear 6s infinite}
.hero.is-live .glitch-flash{animation:signalFlash 24s linear 6s infinite}
.hero.is-live .glitch-slice.s1{animation:signalSlice1 24s linear 6s infinite}
.hero.is-live .glitch-slice.s2{animation:signalSlice2 24s linear 6s infinite}
.hero.is-live .glitch-slice.s3{animation:signalSlice3 24s linear 6s infinite}
.hero.is-live .hud{animation:hudPulse 24s linear 6s infinite}
.hero.is-live .signal-chart .now-ring{animation:signalPing 24s var(--ease) 6s infinite}
.hero.is-live .signal-live::before{animation:signalPing 24s var(--ease) 6s infinite}

@keyframes signalGlitch{
  0%,1.3%,100%{transform:none}
  .08%{transform:translateX(-4px)}
  .20%{transform:translateX(3px)}
  .32%{transform:translateX(-3px) skewX(-.6deg)}
  .44%{transform:translateX(2px) skewX(.6deg)}
  .56%{transform:translateX(-1px)}
  .68%{transform:none}
  .80%{transform:translateX(2px)}
  .92%{transform:none}
}
@keyframes signalScan{
  0%,1.3%,100%{opacity:0;top:0}
  .05%{opacity:1}
  1.1%{opacity:1;top:100%}
  1.2%{opacity:0}
}
@keyframes signalFlash{
  0%,1.3%,100%{opacity:0}
  .04%{opacity:.10}
  .18%{opacity:.02}
  .50%{opacity:.07}
  .62%{opacity:0}
}
@keyframes signalSlice1{
  0%,.10%,.50%,100%{opacity:0;transform:translateX(0)}
  .18%{opacity:1;transform:translateX(-6px)}
  .34%{opacity:1;transform:translateX(4px)}
  .46%{opacity:0;transform:translateX(0)}
}
@keyframes signalSlice2{
  0%,.25%,.65%,100%{opacity:0;transform:translateX(0)}
  .34%{opacity:1;transform:translateX(7px)}
  .50%{opacity:1;transform:translateX(-5px)}
  .62%{opacity:0;transform:translateX(0)}
}
@keyframes signalSlice3{
  0%,.42%,.86%,100%{opacity:0;transform:translateX(0)}
  .50%{opacity:1;transform:translateX(-5px)}
  .70%{opacity:1;transform:translateX(3px)}
  .82%{opacity:0;transform:translateX(0)}
}
@keyframes hudPulse{
  0%,1.3%,100%{opacity:.35;width:16px;height:16px}
  .10%{opacity:1;width:20px;height:20px}
  1.10%{opacity:1;width:20px;height:20px}
  1.3%{opacity:.35;width:16px;height:16px}
}
@keyframes signalPing{
  0%{transform:scale(.7);opacity:.7}
  6%{transform:scale(2.1);opacity:0}
  100%{transform:scale(2.1);opacity:0}
}

@media(prefers-reduced-motion:reduce){
  .signal-chart .path-line{transition:none;stroke-dashoffset:0}
  .hero.is-live .signal-chart .path-tip{animation:none;opacity:0}
  .signal-chart .marker{transition:none;opacity:1;transform:none}
  .signal-chart .now{transition:none;opacity:1}
  .hero.is-live .signal-card,.hero.is-live .signal-card::after,
  .hero.is-live .glitch-flash,.hero.is-live .glitch-slice,.hero.is-live .hud,
  .hero.is-live .signal-chart .now-ring,.hero.is-live .signal-live::before{animation:none}
  .globe-card.is-live .globe-live::before{animation:none}
  .m-line,.m-line-trend,.m-node{transition:none}
  .matrix-card.in .m-tip{animation:none!important;opacity:0!important}
  .matrix-card.glitching,.matrix-card.glitching .glitch-flash,
  .matrix-card.glitching .glitch-slice,.matrix-card.glitching .hud{animation:none!important}
  .form-success{transition:none}
}

/* ---------- stats strip ------------------------------------------------- */
.stats{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line)}
.stat{padding:40px 24px 40px 0;border-right:1px solid var(--line)}
.stat:last-child{border-right:0}
.stat b{
  display:block;font-family:var(--display);
  font-size:var(--text-stat);font-weight:600;
  color:var(--blue-bright);letter-spacing:-.03em;line-height:1;
  font-variant-numeric:tabular-nums;
}
.stat .mono{color:var(--muted);margin-top:10px;display:block}

/* ---------- section heading --------------------------------------------- */
.shead{max-width:760px;margin-bottom:64px}
.shead .mono{color:var(--blue-bright);display:block;margin-bottom:20px}
.shead h2{font-size:var(--text-h2);letter-spacing:-.035em;line-height:1.02}
.shead p{color:var(--muted);margin-top:22px;font-size:18px;max-width:62ch}

/* ---------- premise (three failures) ------------------------------------ */
.premise{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.pcell{background:var(--white);padding:44px 36px;display:flex;flex-direction:column;gap:14px}
.pcell .mono{color:var(--blue-bright)}
.pcell h3{font-size:23px;letter-spacing:-.02em}
.pcell p{color:var(--muted);font-size:15.5px}
.pcell .fix{
  margin-top:auto;padding-top:20px;border-top:1px solid var(--line);
  font-size:14.5px;color:var(--ink);
}
.pcell .fix b{font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--blue-bright);display:block;margin-bottom:6px}

/* ---------- capability grid --------------------------------------------- */
.grid10{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid var(--line)}
.cap{
  padding:30px 32px 30px 0;border-bottom:1px solid var(--line);
  display:flex;gap:24px;transition:padding-left .4s var(--ease);
}
.cap:nth-child(odd){padding-right:48px;padding-left:0;border-right:1px solid var(--line)}
.cap:nth-child(even){padding-left:32px}
.cap:hover{padding-left:12px}
.cap:nth-child(even):hover{padding-left:44px}
.cap .n{font-family:var(--mono);font-size:11px;color:var(--blue-bright);padding-top:5px;min-width:26px}
.cap h3{font-family:var(--display);font-size:18px;font-weight:600;margin-bottom:6px;letter-spacing:-.01em}
.cap p{font-size:14.5px;color:var(--muted);line-height:1.5}

/* ---------- platform / tools ---------------------------------------------
   The two apps clients get direct login access to — real software behind
   the reporting this page keeps promising, not a slide deck. Styled as a
   pair of static info cards (no href, unlike .ind next door): these aren't
   a category to pick between, they're both included. */
.tools{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.tool{
  border:1px solid var(--line);background:var(--tint);border-radius:var(--radius);
  padding:44px;transition:border-color .4s var(--ease),transform .3s var(--ease);
}
.tool-head{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.tool-icon{
  width:44px;height:44px;flex:0 0 44px;border-radius:10px;
  background:var(--blue-soft);border:1px solid var(--line-strong);
  display:grid;place-items:center;
}
.tool-icon svg{width:22px;height:22px}
.tool-head .mono{color:var(--blue-bright);display:block;margin-bottom:4px}
.tool h3{font-family:var(--display);font-size:24px;font-weight:600;letter-spacing:-.02em}
.tool>p{color:var(--muted);font-size:15px;line-height:1.55;margin-bottom:26px;max-width:42ch}
.tool ul{list-style:none;display:grid;gap:11px}
.tool li{font-size:14.5px;padding-left:20px;position:relative;color:var(--ink)}
.tool li::before{content:'';position:absolute;left:0;top:9px;width:7px;height:1.5px;background:var(--blue-bright)}

/* ---------- industries -------------------------------------------------- */
.inds{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.ind{
  background:var(--white);padding:56px 44px;
  display:flex;flex-direction:column;align-items:flex-start;gap:20px;
  transition:background .5s var(--ease),color .5s var(--ease);
}
.ind:hover,.ind:focus-visible{background:var(--blue);color:var(--ink)}
.ind h3{font-size:clamp(26px,3vw,36px);letter-spacing:-.03em;margin:16px 0 14px}
.ind p{color:var(--muted);font-size:15.5px;transition:color .5s var(--ease);max-width:44ch}
.ind .mono{color:var(--blue-bright);transition:color .5s var(--ease)}
.ind:hover p,.ind:hover .mono,.ind:focus-visible p,.ind:focus-visible .mono{color:rgba(255,255,255,.85)}
.arrow{font-size:22px;transition:transform .4s var(--ease);display:block}
.ind:hover .arrow,.ind:focus-visible .arrow{transform:translateX(8px)}

/* ---------- coverage ---------------------------------------------------- */
.mapsec{background:var(--tint)}

/* ---------- coverage network globe ---------------------------------------
   Same "content beside an instrument" pairing the hero already uses. Plain
   hand-rolled Canvas 2D — a Fibonacci-distributed point sphere with a slow
   autorotate, no WebGL/three.js dependency, consistent with the rest of
   the site's zero-build approach. */
.cov-intro{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);
  gap:56px;align-items:center;margin-bottom:64px;
}
.cov-intro .shead{margin-bottom:0}
.globe-visual{min-width:0}
.globe-card{
  position:relative;border:1px solid var(--line);border-radius:var(--radius);
  background:var(--white);padding:28px 28px 24px;
}
.globe-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:4px}
.globe-head .mono{color:var(--blue-bright)}
.globe-live{
  flex:0 0 auto;width:9px;height:9px;border-radius:50%;
  background:var(--blue);margin-top:3px;position:relative;
}
.globe-live::before{
  content:'';position:absolute;inset:-6px;border-radius:50%;
  border:1px solid var(--blue);opacity:0;
}
.globe-card.is-live .globe-live::before{animation:signalPing 2.6s var(--ease) infinite}
.globe-canvas{width:100%;aspect-ratio:1/1;display:block}
.globe-caption{
  font-style:italic;font-size:12.5px;color:var(--muted-soft);
  line-height:1.5;margin:14px 0 0;
}

.coverage{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:var(--line);border:1px solid var(--line);
  border-radius:var(--radius) var(--radius) 0 0;overflow:hidden;
}
.ccell{background:var(--white);padding:40px 34px;display:flex;flex-direction:column;gap:13px}
.ccell .mono{color:var(--blue-bright)}
.ccell h3{font-size:22px;letter-spacing:-.02em}
.ccell p{color:var(--muted);font-size:15.5px}
.mapstats{
  display:grid;grid-template-columns:repeat(4,1fr);
  border:1px solid var(--line);border-top:0;border-radius:0 0 var(--radius) var(--radius);overflow:hidden;
}
.mapstats div{padding:22px 20px;background:var(--white);border-right:1px solid var(--line)}
.mapstats div:last-child{border-right:0}
.mapstats b{
  font-family:var(--display);font-size:26px;color:var(--blue-bright);display:block;
  letter-spacing:-.02em;font-variant-numeric:tabular-nums;
}
.mapstats .mono{color:var(--muted);margin-top:6px;display:block}

/* ---------- FAQ --------------------------------------------------------- */
.faq{border-top:1px solid var(--line);max-width:900px}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{
  list-style:none;cursor:pointer;padding:26px 44px 26px 0;position:relative;
  font-family:var(--display);font-size:19px;font-weight:600;letter-spacing:-.015em;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:'';position:absolute;right:8px;top:34px;
  width:11px;height:11px;border-right:1.5px solid var(--blue);border-bottom:1.5px solid var(--blue);
  transform:rotate(45deg);transition:transform .35s var(--ease);
}
.faq details[open] summary::after{transform:rotate(-135deg);top:38px}
.faq .ans{padding:0 60px 28px 0;color:var(--muted);font-size:15.5px;max-width:68ch}
.faq .ans p+p{margin-top:12px}

/* ---------- contact ----------------------------------------------------- */
.contact .wrap{display:grid;grid-template-columns:1fr 1.15fr;gap:72px;align-items:start}
.cinfo h2{font-size:clamp(32px,5vw,58px);letter-spacing:-.035em}
.cinfo .lede{margin:24px 0 36px}
.clist{display:grid;gap:0;border-top:1px solid var(--line)}
.clist a,.clist span.row{
  display:flex;justify-content:space-between;gap:16px;align-items:baseline;
  padding:16px 0;border-bottom:1px solid var(--line);font-size:15px;
}
.clist a:hover{color:var(--blue-bright)}
.clist .k{font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted-soft)}

form{border:1px solid var(--line);border-radius:var(--radius);padding:36px;background:var(--tint)}
.frow{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px}
.field label{font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.field .req{color:var(--blue-bright)}
.field input,.field select,.field textarea{
  font-family:var(--body);font-size:15px;color:var(--ink);
  background:var(--white);border:1px solid var(--line);border-radius:3px;
  padding:12px 14px;width:100%;transition:border-color .25s var(--ease);
}
.field textarea{resize:vertical;min-height:110px}
.field input:hover,.field select:hover,.field textarea:hover{border-color:var(--line-strong)}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(0,0,255,.10)}
.field input[aria-invalid="true"],.field textarea[aria-invalid="true"],.field select[aria-invalid="true"]{border-color:#C81E3C}
.err{font-size:12.5px;color:#C81E3C;min-height:0}
.consent{display:flex;gap:11px;align-items:flex-start;font-size:13.5px;color:var(--muted);margin:6px 0 22px}
.consent input{width:16px;height:16px;flex:0 0 16px;margin-top:2px;accent-color:var(--blue)}
.formnote{font-size:12.5px;color:var(--muted-soft);margin-top:14px;line-height:1.5}
.formstatus{font-size:14px;color:var(--blue-bright);margin-top:14px;min-height:0}
.formstatus a{color:var(--blue-bright);text-decoration:underline}

/* ---------- form success state -------------------------------------------
   Replaces the form outright on a confirmed send — a quiet inline status
   line is easy to miss below a button the visitor has already stopped
   looking at; a full panel in the form's own place is not. */
.form-success{
  display:flex;flex-direction:column;align-items:flex-start;gap:14px;
  border:1px solid var(--line-strong);background:var(--blue-soft);border-radius:var(--radius);
  padding:56px 48px;outline:none;
  opacity:0;transform:translateY(14px);
  transition:opacity .5s var(--ease),transform .5s var(--ease);
}
.form-success[hidden]{display:none}
.form-success.show{opacity:1;transform:none}
.form-success .fs-icon{width:44px;height:44px}
.form-success .fs-icon svg{width:100%;height:100%}
.form-success h2{font-size:clamp(26px,3vw,32px);letter-spacing:-.02em}
.form-success p{color:var(--muted);font-size:15.5px;max-width:40ch;line-height:1.55}

/* ---------- final CTA --------------------------------------------------- */
.final{text-align:center;padding:var(--pad-lg) 0}
.final h1,.final h2{font-size:clamp(36px,7vw,92px);letter-spacing:-.04em;line-height:1}
.final p{color:var(--muted);margin:26px auto 40px;max-width:52ch}
.final .cta-row{justify-content:center}

/* ---------- footer -------------------------------------------------------
   Used to be the one dark panel on an otherwise light page (background:
   var(--ink), back when --ink was the near-black). Now the whole page is
   dark, so that trick would make the footer identical to the body behind
   it — hardcoded to true black instead, deliberately a shade past the
   page's own --white, so it still reads as its own distinct floor rather
   than blending into the section above it. */
footer{background:#000000;color:var(--ink);padding:80px 0 0;border-top:0;overflow:hidden}
.fgrid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding-bottom:64px}
.fgrid h2{
  font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.5);margin-bottom:18px;font-weight:500;
}
.fgrid a,.fgrid p{display:block;font-size:14px;color:rgba(255,255,255,.72);padding:11px 0;transition:color .3s}
.fgrid p{padding:0 0 11px}
.fgrid a:hover{color:var(--ink)}
.flogo{display:block;width:230px}
.flogo img{display:block;width:100%;height:auto}
.fbrand p{max-width:38ch;color:rgba(255,255,255,.55);margin-top:16px}
.fbot{
  border-top:1px solid rgba(255,255,255,.14);padding:22px 0;
  display:flex;justify-content:space-between;font-size:12.5px;
  color:rgba(255,255,255,.5);flex-wrap:wrap;gap:12px;
}
.giant{
  font-family:var(--display);font-weight:700;
  font-size:clamp(80px,20vw,290px);letter-spacing:-.05em;line-height:.8;
  color:rgba(255,255,255,.07);white-space:nowrap;padding-bottom:24px;user-select:none;
}

/* ---------- legal pages ------------------------------------------------- */
.legal{padding:80px 0 var(--pad);border-top:0}
.legal .wrap{max-width:800px}
.legal h1{font-size:clamp(34px,6vw,64px);letter-spacing:-.04em;margin-bottom:12px}
.legal .updated{font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted-soft);margin-bottom:48px;display:block}
.legal h2{font-size:22px;letter-spacing:-.02em;margin:44px 0 14px;padding-top:24px;border-top:1px solid var(--line)}
.legal p,.legal li{color:var(--muted);font-size:16px}
.legal p+p{margin-top:14px}
.legal ul{margin:14px 0 0 20px;display:grid;gap:9px}
.legal a{color:var(--blue-bright);border-bottom:1px solid var(--line)}
.legal .back{display:inline-block;margin-bottom:40px;font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--blue-bright)}

/* ---------- responsive -------------------------------------------------- */
@media(max-width:1080px){
  .links{gap:22px;font-size:14px}
  .contact .wrap{gap:48px}
  .hero-grid{gap:36px}
  .cov-intro{gap:36px}
  .coverage{grid-template-columns:1fr}
}

@media(max-width:960px){
  :root{--pad:76px}
  .links,.nav>.btn{display:none}
  .burger{display:flex}
  .hero{padding:56px 0 64px}
  .hero-grid{grid-template-columns:1fr;gap:44px}
  .hero-visual{order:2}
  .hero .lede{margin-bottom:30px}
  .cov-intro{grid-template-columns:1fr;gap:32px;margin-bottom:48px}
  .globe-visual{order:2}
  .stats{grid-template-columns:repeat(2,1fr)}
  .stat{border-bottom:0;padding-right:16px}
  .stat:nth-child(2n){border-right:0}
  .stat:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .premise{grid-template-columns:1fr}
  .grid10,.tools,.inds,.contact .wrap{grid-template-columns:1fr}
  .tool{padding:32px}
  .cap:nth-child(odd){border-right:0;padding-right:0}
  .cap:nth-child(even){padding-left:0}
  .cap:hover,.cap:nth-child(even):hover{padding-left:0}
  .ind{padding:40px 28px}
  .mapstats{grid-template-columns:repeat(2,1fr)}
  .mapstats div:nth-child(2n){border-right:0}
  .mapstats div:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .ccell{padding:30px 26px}
  .fgrid{grid-template-columns:1fr 1fr}
  .final{padding:96px 0}
  form{padding:26px}
}

@media(max-width:600px){
  :root{--gutter:20px}
  .frow{grid-template-columns:1fr;gap:0}
  .fgrid{grid-template-columns:1fr;gap:32px}
  .announce{font-size:12px}
  .announce .sep{display:none}
  .announce a{display:block;margin-top:4px}
  .drawer a.dlink{font-size:26px}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  html{scroll-behavior:auto}
  .reveal-line>span{transform:none}
  .fade{opacity:1;transform:none}
}

@media print{
  .announce,header,.drawer,.signal-card,.burger,form{display:none!important}
  body{font-size:12pt}
  section{padding:24pt 0;break-inside:avoid}
}

/* ---------- growth matrix ------------------------------------------------
   One chart, four switchable metrics — same card language as the hero's
   own .signal-card (border/tint/HUD corners/glitch bands), reused rather
   than reinvented, so this reads as the same instrument, not a bolted-on
   dashboard. */
.matrix-layout{
  display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);
  gap:48px;align-items:start;
}
@media(max-width:960px){
  .matrix-layout{grid-template-columns:1fr;gap:32px}
}
.matrix-card{
  position:relative;border:1px solid var(--line);border-radius:var(--radius);
  background:var(--tint);padding:6px;min-width:0;
}
.matrix-card .hud{width:20px;height:20px}
.matrix-card .glitch-flash{background:var(--blue)}

.matrix-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:8px}
.matrix-tab{
  display:flex;align-items:center;gap:7px;
  background:transparent;border:1px solid transparent;border-radius:3px;
  padding:8px 13px;font-family:var(--body);font-size:13px;font-weight:500;
  color:var(--muted);cursor:pointer;transition:background .3s var(--ease),color .3s var(--ease);
}
.matrix-tab:hover{color:var(--ink);background:var(--line)}
.matrix-tab.active{background:var(--blue);color:var(--ink)}
.tab-icon{width:16px;height:16px;flex:0 0 16px;color:inherit}

.matrix-body{background:var(--white);border-radius:2px;padding:28px 32px 24px}
.matrix-headline{
  font-family:var(--display);font-size:clamp(16px,2vw,20px);font-weight:600;
  letter-spacing:-.015em;margin-bottom:14px;max-width:56ch;
}

.guarantee-note{
  display:flex;align-items:flex-start;gap:12px;
  border:1px solid var(--line-strong);background:var(--blue-soft);border-radius:var(--radius);
  padding:12px 16px;margin-bottom:16px;font-size:13px;color:var(--ink);line-height:1.5;
}
.guarantee-note[hidden]{display:none}
.g-mark{width:18px;height:18px;flex:0 0 18px;margin-top:1px}
.g-mark svg{width:100%;height:100%}
.guarantee-note strong{font-weight:600}

.chart-stage{width:100%}
.matrix-svg{width:100%;height:auto;display:block;overflow:visible}
.m-grid line{stroke:var(--line);stroke-width:1}
.m-yaxis text{
  font-family:var(--mono);font-size:9.5px;fill:var(--muted-soft);
  letter-spacing:.04em;
}
.m-divider{stroke:var(--line-strong);stroke-width:1;stroke-dasharray:2 3}
.m-phase{
  font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;
  fill:var(--muted-soft);
}
.m-threshold{opacity:0;transition:opacity .3s var(--ease)}
.m-threshold.show{opacity:1}
.m-threshold line{stroke:var(--blue-bright);stroke-width:1;stroke-dasharray:4 3}
.m-threshold-label{
  font-family:var(--mono);font-size:9.5px;letter-spacing:.04em;fill:var(--blue-bright);
  opacity:0;transition:opacity .3s var(--ease);
}
.m-threshold-label.show{opacity:1}
.m-area{opacity:.5}
.m-line{fill:none;stroke:var(--blue);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.m-line-trend{
  fill:none;stroke:var(--blue-bright);stroke-width:2;stroke-linecap:round;
  stroke-dasharray:1 6;
}
.m-tip{fill:var(--blue-bright);filter:drop-shadow(0 0 4px rgba(92,110,255,.9))}
.m-node-ring{fill:var(--white);stroke:var(--blue);stroke-width:2}
.m-node-label{font-family:var(--mono);font-size:11px;font-weight:600;fill:var(--ink)}

.matrix-caption{
  font-style:italic;font-size:12.5px;color:var(--muted-soft);
  line-height:1.5;margin-top:16px;
}

/* ---- reveal: the two line segments draw in once the card scrolls into
   view (same .fade→.in IntersectionObserver every other section uses),
   staggered so the "reported" line settles before the "trend" continues
   past it — never the other way round. */
.m-line{stroke-dasharray:520;stroke-dashoffset:520;transition:stroke-dashoffset 1s var(--ease) .1s}
.m-line-trend{opacity:0;transition:opacity .6s var(--ease) 1.05s}
.m-node{opacity:0;transform:scale(.5);transition:opacity .3s var(--ease),transform .4s cubic-bezier(.34,1.56,.64,1)}
.m-node:nth-of-type(1){transition-delay:.15s}
.m-node:nth-of-type(2){transition-delay:.35s}
.m-node:nth-of-type(3){transition-delay:.55s}
.m-node:nth-of-type(4){transition-delay:.75s}
.matrix-card.in .m-line{stroke-dashoffset:0}
.matrix-card.in .m-line-trend{opacity:.75}
.matrix-card.in .m-node{opacity:1;transform:none}
.matrix-card.in .m-tip{animation:matrixTipTravel 2.6s var(--ease) 1.1s infinite}
@keyframes matrixTipTravel{
  0%{offset-distance:0%;opacity:0}
  6%{opacity:1}
  88%{offset-distance:100%;opacity:1}
  100%{offset-distance:100%;opacity:0}
}

/* ---- one-shot glitch burst on tab switch — same visual grammar as the
   hero's periodic .hero.is-live check-in (signalGlitch etc.), rescaled
   from a 24s loop down to a single ~0.4s trigger fired from duva.js. */
.matrix-card.glitching{animation:matrixGlitch .4s linear}
.matrix-card.glitching .glitch-flash{animation:matrixFlash .4s linear}
.matrix-card.glitching .glitch-slice.s1{animation:matrixSlice1 .4s linear}
.matrix-card.glitching .glitch-slice.s2{animation:matrixSlice2 .4s linear}
.matrix-card.glitching .glitch-slice.s3{animation:matrixSlice3 .4s linear}
.matrix-card.glitching .hud{animation:matrixHud .4s linear}
@keyframes matrixGlitch{
  0%,100%{transform:none}
  8%{transform:translateX(-4px)}
  20%{transform:translateX(3px)}
  32%{transform:translateX(-3px) skewX(-.6deg)}
  44%{transform:translateX(2px) skewX(.6deg)}
  56%{transform:translateX(-1px)}
  68%{transform:none}
  80%{transform:translateX(2px)}
  92%{transform:none}
}
@keyframes matrixFlash{
  0%,100%{opacity:0}
  4%{opacity:.14}
  18%{opacity:.03}
  50%{opacity:.09}
  62%{opacity:0}
}
@keyframes matrixSlice1{
  0%,10%,50%,100%{opacity:0;transform:translateX(0)}
  18%{opacity:1;transform:translateX(-6px)}
  34%{opacity:1;transform:translateX(4px)}
  46%{opacity:0;transform:translateX(0)}
}
@keyframes matrixSlice2{
  0%,25%,65%,100%{opacity:0;transform:translateX(0)}
  34%{opacity:1;transform:translateX(7px)}
  50%{opacity:1;transform:translateX(-5px)}
  62%{opacity:0;transform:translateX(0)}
}
@keyframes matrixSlice3{
  0%,42%,86%,100%{opacity:0;transform:translateX(0)}
  50%{opacity:1;transform:translateX(-5px)}
  70%{opacity:1;transform:translateX(3px)}
  82%{opacity:0;transform:translateX(0)}
}
@keyframes matrixHud{
  0%,100%{opacity:.35;width:16px;height:16px}
  30%,60%{opacity:1;width:22px;height:22px}
}

@media(max-width:720px){
  .matrix-body{padding:26px 20px 22px}
  .matrix-tab span:not(.tab-icon){font-size:13px}
  .matrix-tab{padding:9px 12px}
  /* the SVG's text is sized in viewBox units, so scaling it down to a
     phone's own width (via the default width:100%) shrinks every label
     past the point of reading — pin it to a real pixel width instead and
     let the chart scroll horizontally, the same trade-off any dense data
     chart makes on a narrow screen. */
  .chart-stage{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .matrix-svg{width:680px;max-width:none}
}
