/* Who Xomea is for — the strip under the workflow landscape. It keeps the
   plain strip's open layout over the artwork (a hairline across, three parts,
   the capability link) and adds light to that hairline, like the light on the
   horizon above it: js/home-who.js glides a glint along it to each part in
   turn, in the hue of the workflow card above that part; the part it rests on
   lights its index and its keywords one by one; the glint ends on the link (the
   hero's frosted button), which catches a sweep of light, and the tour starts again. Hover takes over
   and the cursor carries a faint light. Over the band the text takes deep ink
   in light and pale ink in dark, so it reads in both. Same footprint as the
   plain strip (88px tall on desktop); placement over the landscape stays in
   homepage-v2.css. Still under reduced motion. */

.system__foot {
  --who-1: 34 211 183; --who-2: 123 194 243; --who-3: 189 172 243;
  --who-hue: var(--who-1);
  --who-ink: var(--text); --who-copy: var(--muted); --who-index: var(--accent);
  --who-rule: var(--line-2); --who-divide: var(--line);
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-top: 22px; border-top: 1px solid var(--who-rule);
  color: var(--who-ink);
}
[data-theme='light'] .system__foot { --who-1: 10 122 107; --who-2: 36 104 163; --who-3: 108 84 170; }
@media (min-width: 961px) {
  .system__foot {
    --who-ink: #f4f2ec; --who-copy: rgb(244 242 236 / .76); --who-index: rgb(var(--hue));
    --who-rule: rgb(255 255 255 / .22); --who-divide: rgb(255 255 255 / .16);
    text-shadow: 0 1px 14px rgb(0 0 0 / .6);
  }
  [data-theme='light'] .system__foot {
    --who-ink: #0c0b09; --who-copy: #33312d; --who-index: rgb(12 11 9 / .6);
    --who-rule: rgb(12 11 9 / .2); --who-divide: rgb(12 11 9 / .13);
    text-shadow: 0 1px 12px rgb(245 243 238 / .45);
  }
}
/* A faint light under the cursor (mouse only), free of any box: the layer
   reaches past the light's radius on every side, so it shows no edge. */
.system__foot::after {
  content: ''; position: absolute; inset: -180px -200px; z-index: -1; pointer-events: none;
  background: radial-gradient(160px circle at var(--who-cx, 50%) var(--who-cy, 50%), rgb(var(--who-hue) / .12), transparent);
  opacity: 0; transition: opacity .5s ease;
}
.system__foot.is-pointer::after { opacity: 1; }

/* ---------- the three parts (the plain strip's own metrics) */
.system__foot ul { counter-reset: who; flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.system__foot li {
  --hue: var(--who-1);
  counter-increment: who; position: relative;
  display: flex; flex-direction: column; gap: 6px; padding-right: 20px;
  font-size: 13px; line-height: 1.45;
  transition: opacity .45s ease;
}
.system__foot li:nth-child(2) { --hue: var(--who-2); }
.system__foot li:nth-child(3) { --hue: var(--who-3); }
.system__foot li + li { padding-left: 20px; }
/* dividers fall from the hairline and fade out */
.system__foot li + li::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: linear-gradient(180deg, var(--who-divide), transparent 92%); }
.system__foot li b { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--who-ink); }
.system__foot li b::before { content: '0' counter(who); font: 400 11px/1 var(--mono); color: var(--who-index); transition: color .45s ease, text-shadow .45s ease; }
.system__foot li > span { color: var(--who-copy); text-wrap: pretty; }
.who-key { transition: color .45s ease; }

/* the part the glint rests on */
.system__foot li.is-live b::before { color: rgb(var(--hue)); text-shadow: 0 0 10px rgb(var(--hue) / .85); }
[data-theme='light'] .system__foot li.is-live b::before { text-shadow: none; }
.system__foot li.is-live .who-key { color: var(--who-ink); }
.system__foot li.is-live .who-key:nth-child(1) { transition-delay: .3s; }
.system__foot li.is-live .who-key:nth-child(2) { transition-delay: 1.2s; }
.system__foot li.is-live .who-key:nth-child(3) { transition-delay: 2.1s; }
.system__foot.is-focus li.is-live .who-key { transition-delay: 0s; }
.system__foot.is-focus li:not(.is-live) { opacity: .55; }

/* ---------- the glint: light on the hairline, gliding between the parts */
.who-glint {
  position: absolute; top: -1px; left: 0; z-index: 2;
  width: var(--who-w, 0px); height: 1px; pointer-events: none; opacity: 0;
  transform: translate3d(var(--who-x, 0px), var(--who-y, 0px), 0);
  transition: transform .8s var(--ease), width .8s var(--ease), height .8s var(--ease), opacity .6s ease;
}
.who-glint.is-on { opacity: 1; }
.who-glint::before, .who-glint::after {
  content: ''; position: absolute; inset: 0;
  background-color: rgb(var(--who-hue)); transition: background-color .7s ease;
  -webkit-mask: linear-gradient(var(--who-dir, 90deg), transparent, #000 32%, #000 68%, transparent);
  mask: linear-gradient(var(--who-dir, 90deg), transparent, #000 32%, #000 68%, transparent);
}
/* its bloom */
.who-glint::after { inset: -3px 0; filter: blur(5px); opacity: .75; }
[data-theme='light'] .who-glint::after { opacity: .65; }
.who-glint.is-upright { top: 0; height: var(--who-h, 0px); width: 1px; }
.who-glint.is-upright::after { inset: 0 -3px; }

/* ---------- the capability link: the hero's frosted button (css/home-hero-actions.css), so the
   homepage has one button style (25 November 2026; it was a solid paper or ink pill). A frosted
   plate with a hairline edge; a soft disc sweeps in from the right on hover, focus and press.
   Its text and edge take the strip's ink, so it reads over the band in both themes. */
.system__more {
  position: relative; isolation: isolate; overflow: hidden; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  box-sizing: border-box; min-height: 40px; padding: 0 18px; border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--who-ink) 22%, transparent);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--raise) 72%, transparent),
      color-mix(in srgb, var(--surface) 34%, transparent) 46%,
      color-mix(in srgb, var(--bg) 18%, transparent));
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .5),
    inset 0 -12px 16px -14px rgb(255 255 255 / .35);
  color: var(--who-ink);
  font-size: 14px; font-weight: 500; white-space: nowrap; text-shadow: none;
}
.system__more:hover { color: var(--who-ink); }
.system__more:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
/* the disc */
.system__more::before {
  content: ''; position: absolute; top: 100%; left: 100%; z-index: -1;
  width: 150%; min-height: 200px; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: color-mix(in srgb, var(--who-ink) 12%, transparent);
  transition: top .3s ease, left .3s ease, transform .3s ease;
}
.system__more:is(:focus-visible, :active)::before { top: 50%; left: 50%; transform: translate(-50%, -50%); }
@media (hover: hover) {
  .system__more:hover::before { top: 50%; left: 50%; transform: translate(-50%, -50%); }
}
/* the sweep of light when the glint arrives */
.system__more::after {
  content: ''; position: absolute; z-index: -1; top: -30%; bottom: -30%; left: 0; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(var(--who-1) / .38), transparent);
  transform: translateX(-140%) skewX(-18deg);
}
[data-theme='light'] .system__more::after { background: linear-gradient(100deg, transparent, rgb(var(--who-1) / .2), transparent); }
.system__more.is-called::after { animation: who-sheen 1.1s var(--ease); }
@keyframes who-sheen { to { transform: translateX(460%) skewX(-18deg); } }

/* ---------- entrance (once, when first seen) and rest */
.system__foot.is-armed > ul > li, .system__foot.is-armed > .system__more { opacity: 0; transform: translateY(8px); }
.system__foot.is-armed.is-in > ul > li, .system__foot.is-armed.is-in > .system__more {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease) calc(var(--n, 0) * .1s), transform .9s var(--ease) calc(var(--n, 0) * .1s);
}
.system__foot.is-paused *, .system__foot.is-paused *::before, .system__foot.is-paused *::after { animation-play-state: paused !important; }

/* ---------- smaller screens: the plain strip's breakpoints */
@media (max-width: 960px) {
  .system__foot { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  /* stacked parts hang from a spine, and the glint runs down it */
  .system__foot ul { position: relative; grid-template-columns: 1fr; gap: 18px; padding-left: 12px; }
  .system__foot ul::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: linear-gradient(180deg, var(--who-divide), transparent); }
  .system__foot li, .system__foot li + li { padding: 0; }
  .system__foot li + li::before { display: none; }
}
/* Phones: the parts take the full width and the link sits below them. */
@media (max-width: 480px) {
  .system__foot { row-gap: 24px; }
  .system__foot ul { flex-basis: 100%; }
}
