/* AV - Explore the agents (va-agents). Ported from the concept section 02-agents.
   A sticky text column on the left; on the right the available agents as a grid of 2:1 tiles (two
   columns from 768px), each followed by its name and line, then the coming soon agents as one compact
   row (name, tag, line; no tile). No card box.
   Tile art is a small crop of a DrDoctor pattern (the concept's assets/patterns/tile-*.svg, embedded
   below as data URIs, so the module needs no extra files or requests) used as a CSS mask over a token
   fill, intersected with a two-stop fall-off that gives each tile a focal point. module.js redraws the
   same marks on a canvas only while a tile acts out its agent, then hands back to the CSS layers.
   Everything is scoped under .va.va-agents and uses the tokens from va-kit.css. */

/* The gap gives way only when eleven of them would not fit (320px at 150 to 200% text), as .va-grid-12 does. */
.va.va-agents .va-agents__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: min(var(--col-gap), 100% / 11); row-gap: 56px; }
.va.va-agents .va-agents__intro { grid-column: 1 / -1; }
.va.va-agents .va-agents__sticky { display: grid; gap: 20px; justify-items: start; }
.va.va-agents .va-agents__title { max-width: 14ch; }
.va.va-agents .va-agents__body { max-width: 38ch; }

.va.va-agents .va-agents__agents { grid-column: 1 / -1; min-width: 0; }
.va.va-agents .va-agents__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 24px; }
@media (min-width: 768px) { .va.va-agents .va-agents__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (min-width: 1024px) {
  .va.va-agents .va-agents__intro { grid-column: 1 / span 5; padding-right: clamp(0px, 3vw, 48px); }
  /* 128px from the top of the viewport, as in the concept: the theme nav plus 46px. */
  .va.va-agents .va-agents__sticky { position: sticky; top: calc(var(--nav-h) + 46px); }
  .va.va-agents .va-agents__agents { grid-column: 6 / -1; }
  /* The h2 size follows the viewport (4.8vw, up to 72px), which suits Wide. In Standard the container,
     and so the five-column text column, stops growing at 1192px, so the size is also held to the grid
     (5.143cqi is 72px at Wide's 1400px of content): the heading keeps a sensible line count instead of
     stacking six lines. In Wide 5.143cqi is never the smaller value, so nothing changes there.
     Container-unit values in this file sit in @supports (width: 1cqi): without them (Safari 15) a var()
     mixed with an unknown unit fails at computed time and drops the kit's value too. */
  .va.va-agents .va-agents__grid { container-type: inline-size; }
  @supports (width: 1cqi) { .va.va-agents .va-agents__title { font-size: min(var(--fs-display-l), 5.143cqi); } }
}

/* ---------- Item: tile, then name and line. No card box. ---------- */
.va.va-agents .va-agents__item { position: relative; display: flex; flex-direction: column; min-width: 0; }
/* Side by side (from 768px), each item is a four-row subgrid (tile, name, line, capability lines), so the
   two lines and the two lists start level, whatever the length of each line. The last row is as tall as
   the longer list, so the shorter list packs from the top (see .va-agents__caps) rather than spreading. */
@media (min-width: 768px) { .va.va-agents .va-agents__item { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; } }

.va.va-agents .va-agents__tile {
  position: relative; aspect-ratio: 2 / 1; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: var(--night-800); container-type: inline-size;
  transition: transform var(--t-ui) var(--ease-out);
}
/* Phones keep the 2:1 window too (it was 16:9 there), so the tiles stay short. The masks are 16:9 windows laid from the top, so the
   shorter tile only crops the bottom of the pattern; the focal points sit in the top half. */
/* Available tiles get a little depth: the surface lifts one step (night-700) under the focal point. */
@supports (width: 1cqi) { .va.va-agents .va-agents__item--live .va-agents__tile { background: radial-gradient(circle calc(var(--fr) * 100cqw) at calc(var(--fx) * 100cqw) calc(var(--fy) * 100cqw), var(--night-700), var(--night-800)); } }
/* Hairline on top of the art so the tile edge reads on night-900. */
.va.va-agents .va-agents__tile::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t-ui) var(--ease-out);
}

.va.va-agents .va-agents__art { position: absolute; inset: 0; z-index: 0; }
.va.va-agents .va-agents__layer { position: absolute; inset: 0; display: block; }
.va.va-agents .va-agents__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
/* While the canvas is drawing it replaces the CSS layers (it draws the identical frame at hand-over). */
.va.va-agents .va-agents__art.is-live .va-agents__layer { visibility: hidden; }
.va.va-agents .va-agents__art.is-live .va-agents__canvas { opacity: 1; }

/* ---------- Pattern geometry, shared by CSS and the canvas (which reads these variables) ----------
   --va-mask  the tile's own window of the pattern (16:9), laid from the top left at full width
   --fx --fy  focal point of the fall-off, in tile widths;  --fr its radius in tile widths
   --fc       where the full-strength core ends (fraction of --fr)
   --fe       how much of the pattern survives at the edge of the fall-off (0 to 1)
   --a        pattern opacity (the canvas uses the same value) */
.va.va-agents .va-agents__item {
  --a: 0.9; --fx: 0.6; --fy: 0.25; --fr: 0.7; --fc: 0.3; --fe: 0.26;
  /* Without container units (Safari 15): the same circle in percentages of the 2:1 tile (a tile height
     is half a width), so the pattern keeps its fall-off instead of losing its mask. */
  --falloff: radial-gradient(ellipse calc(var(--fr) * 100%) calc(var(--fr) * 200%) at calc(var(--fx) * 100%) calc(var(--fy) * 200%),
    #000 calc(var(--fc) * 100%), rgba(0, 0, 0, var(--fe)) 100%);
}
@supports (width: 1cqi) {
  .va.va-agents .va-agents__item {
    --falloff: radial-gradient(circle calc(var(--fr) * 100cqw) at calc(var(--fx) * 100cqw) calc(var(--fy) * 100cqw),
    #000 calc(var(--fc) * 100%), rgba(0, 0, 0, var(--fe)) 100%);
  }
}
.va.va-agents .va-agents__layer--pat {
  opacity: var(--a);
  -webkit-mask-size: 100% auto, 100% 100%; mask-size: 100% auto, 100% 100%;
  -webkit-mask-position: 0 0, 0 0; mask-position: 0 0, 0 0;
  -webkit-mask-repeat: no-repeat, no-repeat; mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  -webkit-mask-image: var(--va-mask), var(--falloff); mask-image: var(--va-mask), var(--falloff);
}

/* Bold strokes (Appointments): signal at 90%, cropped on one of the pattern's swirls (the queue). */
.va.va-agents [data-art="strokes"] { --a: 0.9; --fx: 0.6; --fy: 0.22; --fr: 0.72; --fc: 0.3; --fe: 0.3; }
.va.va-agents [data-art="strokes"] .va-agents__layer { background-color: var(--signal); }
.va.va-agents [data-art="strokes"] { --va-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 270'%3E%3Cg fill='none' stroke='%23000' stroke-width='6' stroke-linecap='round'%3E%3Cline x1='2.2' y1='22.1' x2='28.3' y2='7.3'/%3E%3Cline x1='54.1' y1='25.3' x2='75.8' y2='4.6'/%3E%3Cline x1='107.2' y1='28.3' x2='122.2' y2='2.2'/%3E%3Cline x1='161.7' y1='30.4' x2='167.4' y2='1'/%3E%3Cline x1='212' y1='1.5' x2='217' y2='31'/%3E%3Cline x1='256.9' y1='4' x2='272.5' y2='29.6'/%3E%3Cline x1='303' y1='8.4' x2='327.2' y2='26'/%3E%3Cline x1='351.1' y1='13.9' x2='380.2' y2='21'/%3E%3Cline x1='401.4' y1='19.7' x2='431.1' y2='15.3'/%3E%3Cline x1='453.6' y1='24.6' x2='479.9' y2='10.1'/%3E%3Cline x1='3.6' y1='74.6' x2='26.4' y2='55.1'/%3E%3Cline x1='56.5' y1='77.7' x2='73' y2='52.7'/%3E%3Cline x1='110.6' y1='80.1' x2='118.5' y2='51.1'/%3E%3Cline x1='163.3' y1='51.2' x2='165.8' y2='81.1'/%3E%3Cline x1='208' y1='53.2' x2='221.3' y2='80.1'/%3E%3Cline x1='253.7' y1='57.3' x2='276.3' y2='77'/%3E%3Cline x1='301.3' y1='62.8' x2='329.8' y2='72.1'/%3E%3Cline x1='351.2' y1='68.7' x2='381.1' y2='66.3'/%3E%3Cline x1='403.2' y1='74' x2='430.1' y2='60.7'/%3E%3Cline x1='456.7' y1='77.9' x2='477.4' y2='56.2'/%3E%3Cline x1='5.6' y1='126.9' x2='24' y2='103.2'/%3E%3Cline x1='59.3' y1='129.5' x2='69.8' y2='101.4'/%3E%3Cline x1='114.2' y1='131' x2='114.8' y2='101'/%3E%3Cline x1='159.5' y1='102.4' x2='169.7' y2='130.6'/%3E%3Cline x1='204.8' y1='105.9' x2='225' y2='128.1'/%3E%3Cline x1='251.8' y1='111.1' x2='279' y2='123.6'/%3E%3Cline x1='301' y1='117' x2='330.9' y2='117.9'/%3E%3Cline x1='352.5' y1='122.7' x2='380.6' y2='112.1'/%3E%3Cline x1='405.8' y1='127.1' x2='428.2' y2='107.1'/%3E%3Cline x1='460' y1='129.8' x2='474.6' y2='103.6'/%3E%3Cline x1='8' y1='178.8' x2='21.3' y2='151.9'/%3E%3Cline x1='62.5' y1='180.7' x2='66.6' y2='150.9'/%3E%3Cline x1='111.3' y1='151.7' x2='117.7' y2='181'/%3E%3Cline x1='156.4' y1='154.4' x2='173.1' y2='179.3'/%3E%3Cline x1='202.7' y1='159' x2='227.7' y2='175.5'/%3E%3Cline x1='251' y1='164.8' x2='280.5' y2='170.2'/%3E%3Cline x1='301.7' y1='170.7' x2='331' y2='164.3'/%3E%3Cline x1='354.4' y1='175.6' x2='379.3' y2='158.8'/%3E%3Cline x1='408.4' y1='179' x2='426' y2='154.7'/%3E%3Cline x1='462.8' y1='180.7' x2='472.1' y2='152.2'/%3E%3Cline x1='10.7' y1='230.1' x2='18.4' y2='201.1'/%3E%3Cline x1='63.4' y1='201.1' x2='65.6' y2='231.1'/%3E%3Cline x1='108.3' y1='203' x2='120.9' y2='230.2'/%3E%3Cline x1='154.1' y1='206.8' x2='175.8' y2='227.4'/%3E%3Cline x1='201.5' y1='212' x2='229.5' y2='222.8'/%3E%3Cline x1='251.1' y1='217.9' x2='281' y2='217.1'/%3E%3Cline x1='302.8' y1='223.4' x2='330.3' y2='211.4'/%3E%3Cline x1='356.3' y1='227.5' x2='377.8' y2='206.6'/%3E%3Cline x1='410.6' y1='230.1' x2='424.1' y2='203.3'/%3E%3Cline x1='464.7' y1='231' x2='470.3' y2='201.5'/%3E%3Cline x1='13.4' y1='280.9' x2='15.6' y2='250.9'/%3E%3Cline x1='60.6' y1='251.9' x2='68.5' y2='280.9'/%3E%3Cline x1='106' y1='254.7' x2='123.6' y2='279'/%3E%3Cline x1='152.6' y1='259.2' x2='177.8' y2='275.4'/%3E%3Cline x1='201' y1='264.7' x2='230.4' y2='270.3'/%3E%3Cline x1='251.6' y1='270.3' x2='281' y2='264.6'/%3E%3Cline x1='304' y1='275.2' x2='329.5' y2='259.4'/%3E%3Cline x1='357.8' y1='278.6' x2='376.6' y2='255.3'/%3E%3Cline x1='411.8' y1='280.5' x2='422.9' y2='252.6'/%3E%3Cline x1='465.6' y1='281.1' x2='469.4' y2='251.3'/%3E%3C/g%3E%3C/svg%3E"); }

/* Fade dots (FAQs): signal, cropped where the halftone fades, so dots grow towards the focal point. */
.va.va-agents [data-art="dots"] { --a: 0.9; --fx: 0.74; --fy: 0.22; --fr: 0.78; --fc: 0.3; --fe: 0.24; }
.va.va-agents [data-art="dots"] .va-agents__layer { background-color: var(--signal); }
.va.va-agents [data-art="dots"] { --va-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 562.5'%3E%3Cg fill='%23000'%3E%3Ccircle cx='1020.6' cy='14.8' r='10.8'/%3E%3Ccircle cx='952' cy='14.8' r='10.2'/%3E%3Ccircle cx='883.4' cy='14.8' r='9.8'/%3E%3Ccircle cx='814.8' cy='14.8' r='9.4'/%3E%3Ccircle cx='746.1' cy='14.8' r='8.8'/%3E%3Ccircle cx='677.5' cy='14.8' r='8.2'/%3E%3Ccircle cx='608.9' cy='14.8' r='7.6'/%3E%3Ccircle cx='540.3' cy='14.8' r='6.8'/%3E%3Ccircle cx='471.6' cy='14.8' r='6.2'/%3E%3Ccircle cx='403' cy='14.8' r='5.6'/%3E%3Ccircle cx='334.4' cy='14.8' r='4.8'/%3E%3Ccircle cx='265.8' cy='14.8' r='4.2'/%3E%3Ccircle cx='197.1' cy='14.8' r='3.6'/%3E%3Ccircle cx='128.5' cy='14.8' r='3'/%3E%3Ccircle cx='59.9' cy='14.8' r='2.4'/%3E%3Ccircle cx='-8.7' cy='14.8' r='2'/%3E%3Ccircle cx='1020.6' cy='83.4' r='11'/%3E%3Ccircle cx='952' cy='83.5' r='10.6'/%3E%3Ccircle cx='883.4' cy='83.4' r='10'/%3E%3Ccircle cx='814.8' cy='83.4' r='9.6'/%3E%3Ccircle cx='746.1' cy='83.4' r='9'/%3E%3Ccircle cx='677.5' cy='83.4' r='8.4'/%3E%3Ccircle cx='608.9' cy='83.5' r='7.8'/%3E%3Ccircle cx='540.3' cy='83.4' r='7'/%3E%3Ccircle cx='471.6' cy='83.4' r='6.4'/%3E%3Ccircle cx='403' cy='83.4' r='5.8'/%3E%3Ccircle cx='334.4' cy='83.4' r='5'/%3E%3Ccircle cx='265.8' cy='83.4' r='4.4'/%3E%3Ccircle cx='197.1' cy='83.4' r='3.8'/%3E%3Ccircle cx='128.5' cy='83.4' r='3.2'/%3E%3Ccircle cx='59.9' cy='83.4' r='2.6'/%3E%3Ccircle cx='-8.7' cy='83.4' r='2'/%3E%3Ccircle cx='1020.6' cy='152.1' r='11.2'/%3E%3Ccircle cx='952' cy='152.1' r='10.8'/%3E%3Ccircle cx='883.4' cy='152.1' r='10.2'/%3E%3Ccircle cx='814.8' cy='152.1' r='9.8'/%3E%3Ccircle cx='746.1' cy='152.1' r='9.2'/%3E%3Ccircle cx='677.5' cy='152.1' r='8.6'/%3E%3Ccircle cx='608.9' cy='152.1' r='8'/%3E%3Ccircle cx='540.3' cy='152.1' r='7.2'/%3E%3Ccircle cx='471.6' cy='152.1' r='6.6'/%3E%3Ccircle cx='403' cy='152.1' r='5.8'/%3E%3Ccircle cx='334.4' cy='152.1' r='5.2'/%3E%3Ccircle cx='265.8' cy='152.1' r='4.6'/%3E%3Ccircle cx='197.1' cy='152.1' r='4'/%3E%3Ccircle cx='128.5' cy='152.1' r='3.4'/%3E%3Ccircle cx='59.9' cy='152.1' r='2.8'/%3E%3Ccircle cx='-8.7' cy='152.1' r='2.2'/%3E%3Ccircle cx='1020.6' cy='220.7' r='11.4'/%3E%3Ccircle cx='952' cy='220.7' r='11'/%3E%3Ccircle cx='883.4' cy='220.7' r='10.4'/%3E%3Ccircle cx='814.8' cy='220.7' r='10'/%3E%3Ccircle cx='746.1' cy='220.7' r='9.4'/%3E%3Ccircle cx='677.5' cy='220.7' r='8.8'/%3E%3Ccircle cx='608.9' cy='220.7' r='8'/%3E%3Ccircle cx='540.3' cy='220.7' r='7.4'/%3E%3Ccircle cx='471.6' cy='220.7' r='6.8'/%3E%3Ccircle cx='403' cy='220.7' r='6'/%3E%3Ccircle cx='334.4' cy='220.7' r='5.4'/%3E%3Ccircle cx='265.8' cy='220.7' r='4.6'/%3E%3Ccircle cx='197.1' cy='220.7' r='4'/%3E%3Ccircle cx='128.5' cy='220.7' r='3.4'/%3E%3Ccircle cx='59.9' cy='220.7' r='2.8'/%3E%3Ccircle cx='-8.7' cy='220.7' r='2.4'/%3E%3Ccircle cx='1020.6' cy='289.3' r='11.6'/%3E%3Ccircle cx='952' cy='289.3' r='11'/%3E%3Ccircle cx='883.4' cy='289.3' r='10.6'/%3E%3Ccircle cx='814.8' cy='289.3' r='10'/%3E%3Ccircle cx='746.1' cy='289.3' r='9.4'/%3E%3Ccircle cx='677.5' cy='289.3' r='8.8'/%3E%3Ccircle cx='608.9' cy='289.3' r='8.2'/%3E%3Ccircle cx='540.3' cy='289.3' r='7.6'/%3E%3Ccircle cx='471.6' cy='289.3' r='6.8'/%3E%3Ccircle cx='403' cy='289.3' r='6.2'/%3E%3Ccircle cx='334.4' cy='289.3' r='5.4'/%3E%3Ccircle cx='265.8' cy='289.3' r='4.8'/%3E%3Ccircle cx='197.1' cy='289.3' r='4.2'/%3E%3Ccircle cx='128.5' cy='289.3' r='3.6'/%3E%3Ccircle cx='59.9' cy='289.3' r='3'/%3E%3Ccircle cx='-8.7' cy='289.3' r='2.4'/%3E%3Ccircle cx='1020.6' cy='357.9' r='11.6'/%3E%3Ccircle cx='952' cy='357.9' r='11.2'/%3E%3Ccircle cx='883.4' cy='357.9' r='10.8'/%3E%3Ccircle cx='814.8' cy='357.9' r='10.2'/%3E%3Ccircle cx='746.1' cy='357.9' r='9.6'/%3E%3Ccircle cx='677.5' cy='357.9' r='9'/%3E%3Ccircle cx='608.9' cy='357.9' r='8.4'/%3E%3Ccircle cx='540.3' cy='357.9' r='7.6'/%3E%3Ccircle cx='471.6' cy='357.9' r='7'/%3E%3Ccircle cx='403' cy='357.9' r='6.2'/%3E%3Ccircle cx='334.4' cy='357.9' r='5.6'/%3E%3Ccircle cx='265.8' cy='357.9' r='5'/%3E%3Ccircle cx='197.1' cy='357.9' r='4.2'/%3E%3Ccircle cx='128.5' cy='357.9' r='3.6'/%3E%3Ccircle cx='59.9' cy='357.9' r='3.2'/%3E%3Ccircle cx='-8.7' cy='357.9' r='2.6'/%3E%3Ccircle cx='1020.6' cy='426.6' r='11.8'/%3E%3Ccircle cx='952' cy='426.6' r='11.2'/%3E%3Ccircle cx='883.4' cy='426.6' r='10.8'/%3E%3Ccircle cx='814.8' cy='426.6' r='10.2'/%3E%3Ccircle cx='746.1' cy='426.6' r='9.6'/%3E%3Ccircle cx='677.5' cy='426.6' r='9'/%3E%3Ccircle cx='608.9' cy='426.6' r='8.4'/%3E%3Ccircle cx='540.3' cy='426.6' r='7.8'/%3E%3Ccircle cx='471.6' cy='426.6' r='7'/%3E%3Ccircle cx='403' cy='426.6' r='6.4'/%3E%3Ccircle cx='334.4' cy='426.6' r='5.6'/%3E%3Ccircle cx='265.8' cy='426.6' r='5'/%3E%3Ccircle cx='197.1' cy='426.6' r='4.4'/%3E%3Ccircle cx='128.5' cy='426.6' r='3.8'/%3E%3Ccircle cx='59.9' cy='426.6' r='3.2'/%3E%3Ccircle cx='-8.7' cy='426.6' r='2.6'/%3E%3Ccircle cx='1020.6' cy='495.2' r='11.8'/%3E%3Ccircle cx='952' cy='495.2' r='11.4'/%3E%3Ccircle cx='883.4' cy='495.2' r='10.8'/%3E%3Ccircle cx='814.8' cy='495.2' r='10.2'/%3E%3Ccircle cx='746.1' cy='495.2' r='9.6'/%3E%3Ccircle cx='677.5' cy='495.2' r='9'/%3E%3Ccircle cx='608.9' cy='495.2' r='8.4'/%3E%3Ccircle cx='540.3' cy='495.2' r='7.8'/%3E%3Ccircle cx='471.6' cy='495.2' r='7'/%3E%3Ccircle cx='403' cy='495.2' r='6.4'/%3E%3Ccircle cx='334.4' cy='495.2' r='5.8'/%3E%3Ccircle cx='265.8' cy='495.2' r='5'/%3E%3Ccircle cx='197.1' cy='495.2' r='4.4'/%3E%3Ccircle cx='128.5' cy='495.2' r='3.8'/%3E%3Ccircle cx='59.9' cy='495.2' r='3.2'/%3E%3Ccircle cx='-8.7' cy='495.2' r='2.8'/%3E%3Ccircle cx='1020.6' cy='563.8' r='11.8'/%3E%3Ccircle cx='952' cy='563.8' r='11.4'/%3E%3Ccircle cx='883.4' cy='563.8' r='10.8'/%3E%3Ccircle cx='814.8' cy='563.8' r='10.2'/%3E%3Ccircle cx='746.1' cy='563.8' r='9.6'/%3E%3Ccircle cx='677.5' cy='563.8' r='9'/%3E%3Ccircle cx='608.9' cy='563.8' r='8.4'/%3E%3Ccircle cx='540.3' cy='563.8' r='7.8'/%3E%3Ccircle cx='471.6' cy='563.8' r='7.2'/%3E%3Ccircle cx='403' cy='563.8' r='6.4'/%3E%3Ccircle cx='334.4' cy='563.8' r='5.8'/%3E%3Ccircle cx='265.8' cy='563.8' r='5.2'/%3E%3Ccircle cx='197.1' cy='563.8' r='4.4'/%3E%3Ccircle cx='128.5' cy='563.8' r='3.8'/%3E%3Ccircle cx='59.9' cy='563.8' r='3.4'/%3E%3Ccircle cx='-8.7' cy='563.8' r='2.8'/%3E%3C/g%3E%3C/svg%3E"); }


/* ---------- Status tag, inside the tile at top left ---------- */
.va.va-agents .va-agents__tag { position: absolute; top: 16px; left: 16px; z-index: 2; }
.va.va-agents .va-agents__tag.va-tag--live { background: color-mix(in srgb, var(--signal) 16%, var(--night-800)); }

/* ---------- The record chip: a small paper receipt that prints when the agent has acted ----------
   Decorative (aria-hidden): the name and line carry the meaning. Hidden at rest and in reduced motion. */
.va.va-agents .va-agents__chip {
  --done: var(--forest); --bg-raised: var(--paper);
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 3px 12px 0 9px;
  border-radius: 0 0 8px 8px; background: var(--paper); color: var(--night-900);
  font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap;
  -webkit-mask: radial-gradient(circle at 50% 0, transparent 2.5px, #000 3px) top left / 8px 100% repeat-x;
          mask: radial-gradient(circle at 50% 0, transparent 2.5px, #000 3px) top left / 8px 100% repeat-x;
  clip-path: inset(0 0 100% 0); opacity: 0; transform: translateY(-6px);
  transition: clip-path 240ms var(--ease-out), transform 240ms var(--ease-out), opacity 120ms linear;
}
.va.va-agents .va-agents__chip .va-glyph { --g: 16px; }
.va.va-agents .is-done .va-agents__chip { clip-path: inset(0); opacity: 1; transform: none; }
/* The glyph's halves snap together just after the chip prints: the platform did it. */
.va.va-agents .va-agents__chip .va-glyph::before, .va.va-agents .va-agents__chip .va-glyph::after { transition-delay: 140ms; }
.va.va-agents .va-agents__item:not(.is-done) .va-agents__chip .va-glyph::before { transform: translate(-30%, 20%) rotate(-50deg); opacity: 0; }
.va.va-agents .va-agents__item:not(.is-done) .va-agents__chip .va-glyph::after { transform: rotate(60deg); }
.va.va-agents .va-agents__item:not(.is-done) .va-agents__chip .va-glyph .va-i { opacity: 0; }

/* ---------- Name and line ---------- */
.va.va-agents .va-agents__name { margin-top: 22px; color: var(--ink); }
.va.va-agents .va-agents__line { margin-top: 10px; max-width: 34ch; font-size: var(--fs-body); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Capability lines: an optional short list under the line (three for each agent by default) ----------
   Same left edge as the line, one step smaller, each led by a plain small dot in the accent (the tag's
   dot). Half-discs are kept for things the platform did; a list of capabilities is not one. */
/* align-content: start: in the side-by-side subgrid the list stretches to the longer list's height, and
   without it the shorter list's rows would share out the spare space, so its items sat further apart. */
.va.va-agents .va-agents__caps { display: grid; align-content: start; gap: 6px; max-width: 42ch; margin: 14px 0 0; padding: 0; list-style: none; }
.va.va-agents .va-agents__cap { position: relative; margin: 0; padding-left: 17px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.va.va-agents .va-agents__cap::before {
  content: ""; position: absolute; left: 0; top: calc(0.725em - 3px); width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
@media (max-width: 767px) { .va.va-agents .va-agents__caps { margin-top: 12px; gap: 5px; } }

/* ---------- Coming soon: one compact row under the available tiles ----------
   No tile and no link: the name (one size down, greyed), the dashed tag, the line. From 768px the items
   sit in the tiles' two columns under one hairline that spans both; on phones a short list. */
.va.va-agents .va-agents__soon { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 24px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.va.va-agents .va-agents__list + .va-agents__soon { margin-top: 48px; }
.va.va-agents .va-agents__soon-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; padding: 20px 0; }
.va.va-agents .va-agents__soon-item + .va-agents__soon-item { border-top: 1px solid var(--line); }
/* With large text the coming soon name is held to its row, as the available names are (see below): the
   item is an inline-size container and the name is capped at 14.5cqi, so "Switchboard" never breaks bare
   at 320px with 200% text. At default text sizes 1em is always the smaller value. */
.va.va-agents .va-agents__soon-item { container-type: inline-size; }
.va.va-agents .va-agents__soon-name { color: color-mix(in srgb, var(--paper) 72%, transparent); }
@supports (width: 1cqi) { .va.va-agents .va-agents__soon-name { font-size: min(var(--fs-h4), 14.5cqi); } }
.va.va-agents .va-agents__soon-line { flex-basis: 100%; margin-top: 0; }
@media (min-width: 768px) {
  .va.va-agents .va-agents__soon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .va.va-agents .va-agents__soon-item { padding-bottom: 0; }
  .va.va-agents .va-agents__soon-item + .va-agents__soon-item { border-top: 0; }
}

/* Inline, so a long name wraps with the arrow kept after its last word (the concept's names are one word). */
.va.va-agents .va-agents__link { display: inline; color: inherit; text-decoration: none; outline-color: transparent; }
/* With large text a one-word name can be wider than its column, and a capitalised word is never
   hyphenated, so it would break bare ("Appointment|s"). The name is held to its own width instead: the h3
   is an inline-size container, and its one child (the link, or a plain span) is capped at 14.5cqi, which
   fits a word of about 6.9em such as "Appointments"; the arrow wraps after it. At default text sizes 1em
   is always the smaller value, so nothing changes there. */
.va.va-agents .va-agents__name { container-type: inline-size; }
.va.va-agents .va-agents__name > * { font-size: min(1em, 14.5cqi); }
.va.va-agents .va-agents__link::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: var(--r-lg); }
.va.va-agents .va-agents__arrow { width: 0.78em; height: 0.78em; margin-left: 0.18em; vertical-align: -0.126em; color: var(--accent); transform: translate(0, 0.04em); transition: transform var(--t-ui) var(--ease-out); }

/* Hover or focus: the tile lifts 4px, the arrow nudges down (the link jumps to the demo on this page). The focus ring sits on the tile. */
@media (hover: hover) {
  .va.va-agents .va-agents__item--live:hover .va-agents__tile { transform: translateY(-4px); }
  .va.va-agents .va-agents__item--live:hover .va-agents__tile::after { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper) 22%, transparent); }
  .va.va-agents .va-agents__item--live:hover .va-agents__arrow { transform: translate(0, calc(0.04em + 2px)); }
}
.va.va-agents .va-agents__item--live:has(.va-agents__link:focus-visible) .va-agents__tile { transform: translateY(-4px); outline: 3px solid var(--focus); outline-offset: 3px; }
.va.va-agents .va-agents__item--live:has(.va-agents__link:focus-visible) .va-agents__arrow { transform: translate(0, calc(0.04em + 2px)); }
.va.va-agents .va-agents__link:focus-visible { outline: 3px solid transparent; }

/* Windows high contrast: the patterns are decorative fills and drop out; keep the tile edge. */
@media (forced-colors: active) {
  .va.va-agents .va-agents__tile { border: 1px solid CanvasText; }
  .va.va-agents .va-agents__chip { display: none; }
}
