/* RedMatic site. Every value is a token from tokens.css (copied verbatim from
   design-system/redai-tokens.css): edit the tokens there, not here. Five type sizes, weights
   400/500/600, the 4px spacing scale, 8px controls / 12px cards / pill radii. */

/* ---- Base ------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--space-16); color-scheme: light; }
/* Native controls (the select popups, scrollbars) follow the theme theme.js applies. */
html.dark { color-scheme: dark; }
body {
  margin: 0;
  background: rgb(var(--surface));
  color: var(--c-text);
  font: 400 var(--text-body) / var(--leading-body) var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--space-4); top: calc(-1 * var(--space-16)); z-index: 100;
  background: rgb(var(--surface-raised)); padding: var(--space-2) var(--space-4); border-radius: var(--radius-control);
  box-shadow: var(--shadow-pop);
}
.skip-link:focus { top: var(--space-4); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---- Type: the five sizes --------------------------------------------------------------------- */
.display { font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); font-weight: 600; text-wrap: balance; }
.h1 { font-size: var(--text-h1); line-height: var(--leading-h1); letter-spacing: var(--tracking-h1); font-weight: 600; text-wrap: balance; }
.h2 { font-size: var(--text-h2); line-height: var(--leading-h2); letter-spacing: var(--tracking-h2); font-weight: 600; }
.caption { font-size: var(--text-caption); line-height: var(--leading-caption); letter-spacing: var(--tracking-caption); }
.muted { color: var(--c-text-muted); }
.num { font-variant-numeric: tabular-nums; }
.link { color: var(--c-focus); text-underline-offset: 3px; font-weight: 500; }
/* Beside a primary button, or in the footer: red stays reserved for the one thing to do next. */
.link--quiet { color: var(--c-text); }
.link--quiet:hover { color: var(--c-focus); }
strong, b { font-weight: 600; }
.prose > * + * { margin-top: var(--space-3); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.measure { max-width: 40rem; }
/* Long user-typed values (a URL, an email) must wrap rather than push the page sideways at 375px. */
.break { overflow-wrap: anywhere; }

/* ---- Layout ----------------------------------------------------------------------------------- */
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--space-4); }
.section { padding-block: var(--space-12); border-top: 1px solid var(--c-border); }
.section-head { margin-bottom: var(--space-8); }
.section-head > * + * { margin-top: var(--space-2); }
.split { display: grid; gap: var(--space-8); }
.stack-4 > * + * { margin-top: var(--space-4); }
.stack-6 > * + * { margin-top: var(--space-6); }
@media (min-width: 48rem) {
  .wrap { padding-inline: var(--space-8); }
  .split--2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .section { padding-block: var(--space-16); }
}
@media (min-width: 64rem) {
  .split--3-2 { grid-template-columns: 3fr 2fr; gap: var(--space-12); align-items: start; }
}

/* ---- Header ----------------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(var(--surface) / 0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--space-16); }
.lockup { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; border-radius: var(--radius-control); }
.lockup__mark { width: var(--space-8); height: var(--space-8); }
.lockup__word { height: var(--space-4); width: auto; color: var(--c-text); }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav__link { color: var(--c-text-muted); text-decoration: none; font-weight: 500; transition: color var(--dur-fast) var(--ease-out); }
.nav__link:hover { color: var(--c-text); }
@media (max-width: 47.99rem) { .nav__link { display: none; } }

/* ---- Buttons ---------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--touch-min); padding: 0 var(--space-4); border-radius: var(--radius-control);
  font: 500 var(--text-body) / var(--leading-body) var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.btn--primary { background: var(--c-action); color: var(--c-on-action); box-shadow: var(--shadow-xs); }
.btn--primary:hover { background: var(--c-action-hover); }
.btn--outline { background: rgb(var(--surface-raised)); color: var(--c-text); border-color: var(--c-border-control); }
.btn--outline:hover { background: rgb(var(--surface-sunken)); }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

/* ---- Hero ------------------------------------------------------------------------------------- */
.hero { padding-block: var(--space-12) var(--space-12); }
.hero__body > * + * { margin-top: var(--space-4); }
.hero__body .actions { margin-top: var(--space-6); }
@media (min-width: 48rem) { .hero { padding-block: var(--space-16); } }

/* ---- Cards ------------------------------------------------------------------------------------ */
.card {
  background: rgb(var(--surface-raised)); border: 1px solid var(--c-border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: var(--space-6);
}
.card > * + * { margin-top: var(--space-4); }

/* ---- Feature list (icon + title + text) ------------------------------------------------------- */
.features { display: grid; gap: var(--space-6); }
@media (min-width: 48rem) { .features { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-6); } }
.feature { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-3); align-content: start; }
.feature .icon { grid-row: span 2; margin-top: var(--space-1); color: var(--c-text-muted); }
.feature p { color: var(--c-text-muted); }
.feature__body { grid-column: 2; }
.feature__body > * + * { margin-top: var(--space-4); }
/* A card's "more about" link sits on its own line under the text. */
.feature__body > .link { display: inline-block; }

/* ---- Icons: one stroke family, 16 and 20 ------------------------------------------------------ */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }

/* ---- Checklist and steps ---------------------------------------------------------------------- */
.checks > li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); }
.checks > li + li { margin-top: var(--space-3); }
.checks .icon { margin-top: 2px; color: var(--c-success); }
.steps { counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: var(--space-8) 1fr; gap: var(--space-3); }
.steps > li + li { margin-top: var(--space-4); }
.steps > li::before {
  content: counter(step); width: var(--space-8); height: var(--space-8); border-radius: var(--radius-pill);
  display: grid; place-items: center; border: 1px solid var(--c-border-control);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.steps p { color: var(--c-text-muted); }

/* ---- Snapshot vs full audit table ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius-card); background: rgb(var(--surface-raised)); box-shadow: var(--shadow-card); }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: var(--space-3) var(--space-4); text-align: left; vertical-align: top; border-top: 1px solid var(--c-border); }
.compare thead th { border-top: 0; background: rgb(var(--surface-sunken)); font-weight: 600; vertical-align: bottom; }
.compare thead th:first-child { color: var(--c-text-muted); font-weight: 500; }
.compare thead .caption { display: block; font-weight: 400; }
.compare tbody th { font-weight: 400; }
.compare td { width: 30%; }
.compare__yes { color: var(--c-success); }
.compare__no { color: var(--c-text-muted); }
@media (max-width: 47.99rem) { .compare th, .compare td { padding: var(--space-2) var(--space-3); } }

/* ---- Product chips (accents are detail only: a dot, never a fill) ----------------------------- */
.products > li + li { margin-top: var(--space-4); }
.product__start { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-2); }
.product__start .caption { flex: 1 1 14rem; }
/* The list's own link, kept apart from the last product. It's inline, so the margin needs inline-block. */
.products + .link { display: inline-block; margin-top: var(--space-6); }
.chip { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.chip::before { content: ""; width: var(--space-2); height: var(--space-2); border-radius: var(--radius-pill); background: var(--chip, var(--c-border-control)); }
.chip--redeal { --chip: var(--c-accent-redeal); }
.chip--retrack { --chip: var(--c-accent-retrack); }
.chip--albot { --chip: var(--c-accent-albot); }

/* ---- Footer ----------------------------------------------------------------------------------- */
.footer { display: grid; gap: var(--space-6); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
@media (min-width: 64rem) { .footer { grid-template-columns: 2fr 1fr; align-items: start; } }

/* ---- Price ------------------------------------------------------------------------------------ */
.price { display: flex; align-items: baseline; gap: var(--space-2); }
@media (min-width: 64rem) { .price-card { position: sticky; top: calc(var(--space-16) + var(--space-6)); } }

/* ---- Config-driven visibility (the Worker sets data-checkout / data-leads on <html>) ----------- */
.when-checkout-open, .when-leads-on, .when-snapshot-on { display: none; }
html[data-checkout="open"] .when-checkout-open, html[data-leads="on"] .when-leads-on, html[data-snapshot="on"] .when-snapshot-on { display: revert; }
html[data-checkout="open"] .when-checkout-closed, html[data-leads="on"] .when-leads-off, html[data-snapshot="on"] .when-snapshot-off { display: none; }

/* ---- The free snapshot, made louder (8 Nov 2026, Shane: "the free snapshot should be louder on the page") -----
   The header button is solid. The hero has a jump button only where the card stacks below the copy (under 64rem):
   beside it, the card is already in view. This rule comes after the visibility rules above, at the same
   specificity, so it wins over their display: revert. */
@media (min-width: 64rem) { html[data-snapshot] .hero__jump { display: none; } }
.card--offer { border-top: 3px solid var(--c-action); }
#snapshot-title { scroll-margin-top: var(--space-8); } /* every "Free snapshot" link lands here: keep the card's top edge in view */
.offer-facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--c-border); border-radius: var(--radius-card); }
.offer-facts > li { display: grid; align-content: start; gap: var(--space-1); padding: var(--space-3); }
.offer-facts > li + li { border-left: 1px solid var(--c-border); }
.offer-facts__value { font-size: var(--text-h1); line-height: var(--leading-h1); letter-spacing: var(--tracking-h1); font-weight: 600; }
.cta-band { display: grid; gap: var(--space-6); align-items: center; }
.card.cta-band > * + * { margin-top: 0; }
@media (min-width: 48rem) { .cta-band { grid-template-columns: 1fr auto; gap: var(--space-8); padding: var(--space-8); } }

/* ---- Hero motion (8 Nov 2026, Shane: "red moving clouds that look like data transferring", then "go strong") ----
   Decoration only: aria-hidden, pointer-events none, behind the hero's content. A deliberate exception
   to "nothing loops": the drift is ambient and slow. Only transform and opacity animate, so it stays on
   the compositor; fx.js pauses it off-screen and in a hidden tab; reduced motion gets the clouds and
   traces standing still and no packets.

   AA: the layer is strong where no text can sit and dimmed to --fx-pocket behind the copy. The mask is
   three regions added together (a base at --fx-pocket, full strength right of the copy column on wide
   screens, full strength below the copy when the hero has the snapshot card), then cut by a bottom fade.
   Measured 8 Nov with headless Chrome over 15 frames at 375/1024/1440, light and dark: see CLAUDE.md
   "Hero motion". Raise an alpha or move a region and that measurement has to be run again. */
.hero { position: relative; isolation: isolate; }
.hero-fx {
  --fx-band-a: 0.34; --fx-band-b: 0.26; --fx-band-c: 0.20; --fx-trace: 0.30; --fx-packet: 0.90;
  --fx-pocket: rgb(0 0 0 / 0.30);
  --fx-right: linear-gradient(transparent, transparent); /* none until wide screens */
  --fx-below: linear-gradient(transparent, transparent);
  --fx-fade: linear-gradient(to bottom, #000 75%, transparent);
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: paint;
  -webkit-mask-image: var(--fx-fade), var(--fx-right), var(--fx-below), linear-gradient(var(--fx-pocket), var(--fx-pocket));
  mask-image: var(--fx-fade), var(--fx-right), var(--fx-below), linear-gradient(var(--fx-pocket), var(--fx-pocket));
  -webkit-mask-composite: source-in, source-over, source-over;
  mask-composite: intersect, add, add;
}
.dark .hero-fx { --fx-band-a: 0.80; --fx-band-b: 0.62; --fx-band-c: 0.45; --fx-trace: 0.25; --fx-packet: 0.90; }
/* The home hero has the snapshot card under the copy (phones) or beside it (wide): below the copy is free. */
.hero--card .hero-fx { --fx-below: linear-gradient(to bottom, transparent 44%, #000 54%); }
@media (min-width: 64rem) {
  /* Full strength starts where the copy column ends: the .wrap's left edge + its 2rem padding + the
     40rem .measure, plus 1rem; then an 8rem ramp. */
  .hero-fx { --fx-right: linear-gradient(90deg, transparent calc(max(0px, (100% - 72rem) / 2) + 43rem), #000 calc(max(0px, (100% - 72rem) / 2) + 51rem)); }
  .hero--card .hero-fx { --fx-below: linear-gradient(to bottom, transparent 56%, #000 66%); }
}

/* Light bands at the mark's -32deg angle (the split in the logo tile), Brand Red to Deep Red with an
   edge of the RedMatic accent (tokens.css: detail only, so it stays a thin highlight at the band's
   leading edge, never a fill). Each band slides slowly across its own width and breathes. */
.hero-fx__band {
  position: absolute; left: -50%; width: 200%; height: 22rem; transform-origin: 50% 50%;
  animation: fx-band 34s ease-in-out infinite alternate;
}
.hero-fx__band--a {
  top: -9rem;
  background: linear-gradient(to bottom, rgb(var(--brand-700) / 0), rgb(var(--brand-700) / calc(var(--fx-band-a) * 0.5)) 30%,
    rgb(var(--brand-600) / var(--fx-band-a)) 62%, color-mix(in srgb, var(--c-accent-redmatic) calc(var(--fx-band-a) * 55%), transparent) 70%, rgb(var(--brand-500) / 0) 74%);
}
.hero-fx__band--b {
  top: 40%; height: 26rem; animation-duration: 44s; animation-direction: alternate-reverse;
  background: linear-gradient(to bottom, rgb(var(--brand-800) / 0), rgb(var(--brand-800) / var(--fx-band-b)) 45%, rgb(var(--brand-700) / var(--fx-band-b)) 66%, rgb(var(--brand-700) / 0) 80%);
}
.hero-fx__band--c {
  top: 14%; height: 9rem; animation-duration: 27s; animation-delay: -11s;
  background: linear-gradient(to bottom, rgb(var(--brand-500) / 0), rgb(var(--brand-500) / var(--fx-band-c)) 70%,
    color-mix(in srgb, var(--c-accent-redmatic) calc(var(--fx-band-c) * 70%), transparent) 80%, rgb(var(--brand-500) / 0) 86%);
}
@keyframes fx-band {
  from { transform: rotate(-32deg) translate3d(-6%, -10%, 0); opacity: 0.7; }
  to   { transform: rotate(-32deg) translate3d(6%, 12%, 0); opacity: 1; }
}

/* Hairline traces with a shooting star running along each; every other lane runs right to left.
   The trace is drawn by ::before so its end fade doesn't clip the star (a mask on the lane itself
   cut the star down to the lane's 1px height). */
.hero-fx__lane { position: absolute; left: 0; right: 0; height: 1px; }
.hero-fx__lane::before {
  content: ""; position: absolute; inset: 0;
  background: rgb(var(--brand-500) / var(--fx-trace));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hero-fx__lane:nth-of-type(even) { transform: scaleX(-1); }
.hero-fx__lane:nth-of-type(4)  { top: 10%; }
.hero-fx__lane:nth-of-type(5)  { top: 23%; }
.hero-fx__lane:nth-of-type(6)  { top: 36%; }
.hero-fx__lane:nth-of-type(7)  { top: 49%; }
.hero-fx__lane:nth-of-type(8)  { top: 62%; }
.hero-fx__lane:nth-of-type(9)  { top: 75%; }
.hero-fx__lane:nth-of-type(10) { top: 88%; }
/* The star: as wide as the lane, so translate(-100%) starts its head at the left edge. A 16rem tail
   that brightens towards a solid, glowing head. AA: the head is opaque brand-500, the brightest pixel
   the layer can have, and behind the copy it is cut to --fx-pocket: 0.30 gives 5.0:1 (dark) and 5.2:1
   (light) against muted text, worked out from the colours, so a frame that misses it can't hide a fail. */
.hero-fx__packet { position: absolute; left: 0; right: 0; top: 0; height: 1px; opacity: 0; animation: fx-flow 8s linear infinite; }
.hero-fx__packet::before {
  content: ""; position: absolute; right: 0; top: -1px; width: 16rem; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(var(--brand-500) / 0), rgb(var(--brand-500) / calc(var(--fx-packet) * 0.35)) 60%, rgb(var(--brand-500) / var(--fx-packet)));
}
.hero-fx__packet::after {
  content: ""; position: absolute; right: -4px; top: -3.5px; width: 8px; height: 8px; border-radius: 50%;
  background: rgb(var(--brand-500));
  box-shadow: 0 0 6px 2px rgb(var(--brand-500) / 0.65), 0 0 18px 6px rgb(var(--brand-600) / 0.35);
}
.hero-fx__lane:nth-of-type(5)  .hero-fx__packet { animation-duration: 10s; animation-delay: -6s; }
.hero-fx__lane:nth-of-type(6)  .hero-fx__packet { animation-duration: 7s;  animation-delay: -2s; }
.hero-fx__lane:nth-of-type(7)  .hero-fx__packet { animation-duration: 12s; animation-delay: -9s; }
.hero-fx__lane:nth-of-type(8)  .hero-fx__packet { animation-duration: 9s;  animation-delay: -4s; }
.hero-fx__lane:nth-of-type(9)  .hero-fx__packet { animation-duration: 11s; animation-delay: -7s; }
.hero-fx__lane:nth-of-type(10) .hero-fx__packet { animation-duration: 8.5s; animation-delay: -1s; }
@keyframes fx-flow {
  0%   { transform: translate3d(-100%, 0, 0); opacity: 0; }
  6%   { opacity: 1; }
  66%  { opacity: 1; }
  72%  { transform: translate3d(16rem, 0, 0); opacity: 0; }
  100% { transform: translate3d(16rem, 0, 0); opacity: 0; }
}
/* Phones (8 Nov, Shane: "make the stars brighter on phone"). Behind the copy the layer is held at
   --fx-pocket for AA, so it can't get brighter there. Instead five of the seven lanes move down into the
   board's room at the foot of the hero, which runs at full strength (--fx-below, measured from the
   bottom, starts 18rem up; the top lane there sits at 14rem plus its glow). The stars get a bigger,
   brighter head, a tail sized to a narrow screen, and a shorter cycle so more are in flight. The head is
   still opaque brand-500, so the contrast bound behind the copy is unchanged. */
@media (max-width: 47.99rem) {
  .hero-fx { --fx-trace: 0.40; }
  .hero-fx__lane:nth-of-type(4)  { top: 9%; }
  .hero-fx__lane:nth-of-type(5)  { top: 34%; }
  .hero-fx__lane:nth-of-type(6)  { top: auto; bottom: 3rem; }
  .hero-fx__lane:nth-of-type(7)  { top: auto; bottom: 5.75rem; }
  .hero-fx__lane:nth-of-type(8)  { top: auto; bottom: 8.5rem; }
  .hero-fx__lane:nth-of-type(9)  { top: auto; bottom: 11.25rem; }
  .hero-fx__lane:nth-of-type(10) { top: auto; bottom: 14rem; }
  .hero-fx__packet::before { width: 9rem; height: 3px; }
  .hero-fx__packet::after {
    width: 11px; height: 11px; right: -5.5px; top: -5px;
    box-shadow: 0 0 8px 3px rgb(var(--brand-500) / 0.85), 0 0 22px 8px rgb(var(--brand-600) / 0.5);
  }
  .hero-fx__lane:nth-of-type(4)  .hero-fx__packet { animation-duration: 5s;   animation-delay: -1s; }
  .hero-fx__lane:nth-of-type(5)  .hero-fx__packet { animation-duration: 6s;   animation-delay: -4s; }
  .hero-fx__lane:nth-of-type(6)  .hero-fx__packet { animation-duration: 4.5s; animation-delay: -2s; }
  .hero-fx__lane:nth-of-type(7)  .hero-fx__packet { animation-duration: 5.5s; animation-delay: -3.5s; }
  .hero-fx__lane:nth-of-type(8)  .hero-fx__packet { animation-duration: 4s;   animation-delay: -0.5s; }
  .hero-fx__lane:nth-of-type(9)  .hero-fx__packet { animation-duration: 5s;   animation-delay: -2.8s; }
  .hero-fx__lane:nth-of-type(10) .hero-fx__packet { animation-duration: 4.8s; animation-delay: -1.6s; }
}
.hero-fx.is-paused *, html.fx-hidden .hero-fx * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero-fx * { animation: none !important; }
  .hero-fx__packet { display: none; }
}

/* The circuit board (8 Nov, Shane: the rings-and-spokes hub "looks too much like" another site; put the
   mark in the middle). The RedMatic mark sits as a chip; pulses run out along copper traces to pads, or
   in from them, and a pad flashes as a pulse leaves or lands. Service pages only, 1280px and up, in the
   right-hand zone where no text sits; the hero grows to give it room. Pulses use one transform keyframe
   per trace (a waypoint at each bend, generated with the SVG), so it all stays on the compositor. */
/* Where the board sits (8 Nov, Shane: "wheres the chip or circuit board?" - it showed only on wide
   service pages):
   - phones, tablets, and service pages under 1280px: centred in extra room at the foot of the hero;
   - the home page from 1024px: under the copy, in the space beside the snapshot card;
   - service pages from 1280px: right of the copy.
   The foot room runs at full strength (--fx-below measured from the bottom, so it can't reach the copy,
   which ends at least --hub-room above it) and only the last 2rem fades. */
.hero { --hub-room: 17rem; padding-bottom: calc(var(--space-12) + var(--hub-room)); }
@media (min-width: 48rem) { .hero { padding-bottom: calc(var(--space-16) + var(--hub-room)); } }
.hero-fx {
  --fx-below: linear-gradient(to top, #000 var(--hub-room), transparent calc(var(--hub-room) + 1rem));
  --fx-fade: linear-gradient(to top, transparent, #000 2rem);
}
.hub { position: absolute; left: 50%; bottom: 2rem; width: 15rem; height: 15rem; margin-left: -7.5rem; }
@media (min-width: 64rem) {
  .hero--card { --hub-room: 0rem; }
  .hero--card .hub { left: calc(max(0px, (100% - 72rem) / 2) + 2rem); margin-left: 0; bottom: 3rem; width: 18rem; height: 18rem; }
}
@media (min-width: 80rem) {
  .hero:not(.hero--card) { --hub-room: 0rem; padding-block: 7rem; }
  .hero:not(.hero--card) .hero-fx { --fx-fade: linear-gradient(to bottom, #000 88%, transparent); }
  .hero:not(.hero--card) .hub {
    width: 20rem; height: 20rem; top: 50%; bottom: auto; margin: -10rem 0 0;
    left: calc(max(0px, (100% - 72rem) / 2) + 52rem);
  }
}
.hub__stop--in  { stop-color: rgb(var(--brand-600)); stop-opacity: 0.28; }
.hub__stop--out { stop-color: rgb(var(--brand-600)); stop-opacity: 0; }
.dark .hub__stop--in { stop-opacity: 0.50; }
.hub__halo-in  { stop-color: rgb(var(--brand-500)); stop-opacity: 0.75; }
.hub__halo-out { stop-color: rgb(var(--brand-500)); stop-opacity: 0; }
.hub__glow { animation: hub-glow 5s ease-in-out infinite alternate; }
.hub__trace path { fill: none; stroke: rgb(var(--brand-500) / 0.38); stroke-width: 1.5; stroke-linejoin: round; }
.hub__via { fill: rgb(var(--brand-500) / 0.55); }
.hub__pad { fill: rgb(var(--surface)); stroke: rgb(var(--brand-500)); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.hub__pulse { opacity: 0; }
.hub__spark { fill: rgb(var(--brand-200)); }
.hub__pins { fill: none; stroke: rgb(var(--brand-500) / 0.7); stroke-width: 2.5; }
.hub__chip { fill: rgb(var(--surface)); stroke: rgb(var(--brand-500)); stroke-width: 1.5; }
.hub__chip-ring { fill: none; stroke: rgb(var(--brand-500)); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: hub-chip 3.2s ease-out infinite; }
@keyframes hub-glow { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes hub-chip { from { transform: scale(1); opacity: 0.6; } to { transform: scale(1.35); opacity: 0; } }
@keyframes hub-flash-end {
  0%, 52% { transform: scale(1); }
  58%     { transform: scale(1.8); }
  75%, 100% { transform: scale(1); }
}
@keyframes hub-flash-start {
  0%   { transform: scale(1.8); }
  14%, 100% { transform: scale(1); }
}
@keyframes hub-run-1 {
  0% { transform: translate(109px, 140px); opacity: 0; }
  3% { opacity: 1; }
  17.1% { transform: translate(80px, 140px); }
  33.8% { transform: translate(60px, 120px); }
  55.0% { transform: translate(24px, 120px); opacity: 1; }
  59.0%, 100% { transform: translate(24px, 120px); opacity: 0; }
}
.hub__trace--1 .hub__pulse { animation: hub-run-1 3.08s linear 0.0s infinite; }
.hub__trace--1 .hub__pad { animation: hub-flash-end 3.08s ease-out 0.0s infinite; }
@keyframes hub-run-2 {
  0% { transform: translate(66px, 262px); opacity: 0; }
  3% { opacity: 1; }
  30.1% { transform: translate(66px, 200px); }
  43.8% { transform: translate(86px, 180px); }
  55.0% { transform: translate(109px, 180px); opacity: 1; }
  59.0%, 100% { transform: translate(109px, 180px); opacity: 0; }
}
.hub__trace--2 .hub__pulse { animation: hub-run-2 3.74s linear -1.7s infinite; }
.hub__trace--2 .hub__pad { animation: hub-flash-start 3.74s ease-out -1.7s infinite; }
@keyframes hub-run-3 {
  0% { transform: translate(140px, 109px); opacity: 0; }
  3% { opacity: 1; }
  15.8% { transform: translate(140px, 70px); }
  28.3% { transform: translate(118px, 48px); }
  55.0% { transform: translate(52px, 48px); opacity: 1; }
  59.0%, 100% { transform: translate(52px, 48px); opacity: 0; }
}
.hub__trace--3 .hub__pulse { animation: hub-run-3 4.5s linear -0.6s infinite; }
.hub__trace--3 .hub__pad { animation: hub-flash-end 4.5s ease-out -0.6s infinite; }
@keyframes hub-run-4 {
  0% { transform: translate(180px, 26px); opacity: 0; }
  3% { opacity: 1; }
  55.0% { transform: translate(180px, 109px); opacity: 1; }
  59.0%, 100% { transform: translate(180px, 109px); opacity: 0; }
}
.hub__trace--4 .hub__pulse { animation: hub-run-4 2.74s linear -2.9s infinite; }
.hub__trace--4 .hub__pad { animation: hub-flash-start 2.74s ease-out -2.9s infinite; }
@keyframes hub-run-5 {
  0% { transform: translate(211px, 140px); opacity: 0; }
  3% { opacity: 1; }
  16.4% { transform: translate(248px, 140px); }
  30.2% { transform: translate(270px, 118px); }
  55.0% { transform: translate(270px, 62px); opacity: 1; }
  59.0%, 100% { transform: translate(270px, 62px); opacity: 0; }
}
.hub__trace--5 .hub__pulse { animation: hub-run-5 4.1s linear -1.1s infinite; }
.hub__trace--5 .hub__pad { animation: hub-flash-end 4.1s ease-out -1.1s infinite; }
@keyframes hub-run-6 {
  0% { transform: translate(211px, 168px); opacity: 0; }
  3% { opacity: 1; }
  55.0% { transform: translate(298px, 168px); opacity: 1; }
  59.0%, 100% { transform: translate(298px, 168px); opacity: 0; }
}
.hub__trace--6 .hub__pulse { animation: hub-run-6 2.88s linear -2.2s infinite; }
.hub__trace--6 .hub__pad { animation: hub-flash-end 2.88s ease-out -2.2s infinite; }
@keyframes hub-run-7 {
  0% { transform: translate(282px, 260px); opacity: 0; }
  3% { opacity: 1; }
  31.3% { transform: translate(204px, 260px); }
  45.0% { transform: translate(180px, 236px); }
  55.0% { transform: translate(180px, 211px); opacity: 1; }
  59.0%, 100% { transform: translate(180px, 211px); opacity: 0; }
}
.hub__trace--7 .hub__pulse { animation: hub-run-7 4.53s linear -0.3s infinite; }
.hub__trace--7 .hub__pad { animation: hub-flash-start 4.53s ease-out -0.3s infinite; }
@keyframes hub-run-8 {
  0% { transform: translate(140px, 211px); opacity: 0; }
  3% { opacity: 1; }
  55.0% { transform: translate(140px, 296px); opacity: 1; }
  59.0%, 100% { transform: translate(140px, 296px); opacity: 0; }
}
.hub__trace--8 .hub__pulse { animation: hub-run-8 2.81s linear -3.4s infinite; }
.hub__trace--8 .hub__pad { animation: hub-flash-end 2.81s ease-out -3.4s infinite; }
/* Also used by the tagline dot below. */
@keyframes hub-ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.9); opacity: 0; } }

/* A live dot on the hero's tagline. */
.hero__body > .caption:first-child { position: relative; padding-left: 1.125rem; }
.hero__body > .caption:first-child::before,
.hero__body > .caption:first-child::after {
  content: ""; position: absolute; left: 0; top: 0.5rem; width: 0.5rem; height: 0.5rem; margin-top: -0.25rem;
  border-radius: 50%; background: rgb(var(--brand-500));
}
.hero__body > .caption:first-child::after { animation: hub-ping 2.4s ease-out infinite; }

/* Scroll reveal: fx.js tags blocks below the fold with .fx-rise and adds .is-in when they come into
   view. Without the script nothing is tagged, so nothing is ever hidden. */
.fx-rise { opacity: 0; transform: translate3d(0, 2rem, 0); transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.fx-rise.is-in { opacity: 1; transform: none; }
.fx-rise--2 { transition-delay: 90ms; }
.fx-rise--3 { transition-delay: 180ms; }
.fx-rise--4 { transition-delay: 270ms; }
html.fx-hidden .hero__body > .caption:first-child::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .hub__pulse, .hub__chip-ring, .hero__body > .caption:first-child::after { display: none; }
  .hub *, .hero__body > .caption:first-child::after { animation: none !important; }
  .fx-rise { opacity: 1; transform: none; transition: none; }
}
@media print { .fx-rise { opacity: 1; transform: none; } }
