/* ============================================================
   Frontier Labs — landing page sections: layout only.
   Components and tokens come from components.css and tokens.css; nothing
   here introduces a colour, a duration or a curve of its own.
   ============================================================ */

.section {
	position: relative;
	padding-block: var(--sp-section);
}
.section + .section { border-top: 1px solid var(--c-line); }
.sec-head { max-width: 46rem; margin-bottom: clamp(var(--sp-10), 2rem + 3vw, var(--sp-16)); }

/* ---------- hero ----------
   Reading order, top to bottom: what we are (the tag), the claim (a
   full-width headline, so it reads in two or three lines rather than five),
   then the explanation, the action and the evidence side by side. The
   manifest card sits level with the lede, not floating below the fold. */
.hero {
	position: relative;
	overflow: clip;
	padding-block: clamp(var(--sp-10), 1rem + 4.5vw, 6.5rem) clamp(var(--sp-16), 3rem + 5vw, 7.5rem);
}
.hero .glow-field { width: 960px; height: 620px; left: 50%; margin-left: -480px; top: -380px; opacity: .5; }
.hero__top { position: relative; }
.hero .rays { mask-image: linear-gradient(180deg, #000 55%, transparent); }
.hero__h1 { font-size: var(--fs-hero); max-width: 17ch; }
.hero__h1 .ln { display: block; }
.hero__h1 .shine { padding-bottom: .06em; }
.hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(var(--sp-10), 2rem + 3vw, var(--sp-16));
	align-items: start;
	margin-top: clamp(var(--sp-8), 1.2rem + 2.4vw, var(--sp-12));
}
.hero .lede { margin-top: 0; font-size: var(--fs-md); max-width: 52ch; }
.reach { margin-top: var(--sp-8); }
.reach__row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.proof {
	display: grid;
	gap: var(--sp-3);
	margin-top: var(--sp-8);
	padding-top: var(--sp-6);
	border-top: 1px solid var(--c-line);
}
.proof li {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	font-size: var(--fs-sm);
	color: var(--c-text-dim);
}
.proof li::before {
	content: "\2713";
	display: grid;
	place-items: center;
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--c-accent-soft);
	color: var(--c-accent);
	font-size: var(--fs-2xs);
	font-weight: 700;
}

/* The handover manifest: a file, read top to bottom, line-numbered by CSS. */
.manifest {
	position: relative;
	background: var(--c-surface-1);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	counter-reset: ln;
	overflow: clip;
	transform-origin: 50% 100%;
	transition: border-color var(--dur-base) var(--ease-std), box-shadow var(--dur-base) var(--ease-std);
}
.manifest:hover { border-color: var(--c-line-strong); box-shadow: 0 24px 60px -30px var(--c-accent-glow); }
.manifest__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	padding: var(--sp-3) var(--sp-5);
	border-bottom: 1px solid var(--c-line);
	color: var(--c-text-dim);
}
.manifest__bar b { font-weight: 500; color: var(--c-text); }
.manifest__list { padding: var(--sp-3) 0; }
.manifest__cap, .manifest__row {
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr) auto;
	gap: var(--sp-3);
	align-items: baseline;
	padding: var(--sp-1) var(--sp-5) var(--sp-1) var(--sp-3);
	line-height: 1.9;
}
.manifest__cap::before, .manifest__row::before {
	counter-increment: ln;
	content: counter(ln);
	text-align: right;
	color: var(--c-text-faint);
}
.manifest__cap { color: var(--c-text-faint); }
.manifest__cap span::before { content: "# "; }
.manifest__row dt { color: var(--c-text); }
.manifest__row dd { color: var(--c-accent); text-align: right; }
.manifest__row--last { background: rgb(251 191 36 / .05); }
.manifest__row--last dt { color: var(--c-text-dim); text-decoration: line-through; text-decoration-color: var(--c-warn); }
.manifest__row--last dd { color: var(--c-warn); font-weight: 600; }
.manifest__note {
	padding: var(--sp-3) var(--sp-5) var(--sp-4);
	border-top: 1px solid var(--c-line);
	font-family: var(--font-body);
	font-size: var(--fs-xs);
	line-height: 1.5;
	color: var(--c-text-dim);
}

/* ---------- what we build: the bento ---------- */
/* `clip` keeps the 800px travelling spotlight inside the grid. Unclipped,
   it stuck 10px past the viewport whenever the pointer was elsewhere. The
   clip margin leaves room for the cards' hover lift. */
.bento {
	position: relative;
	overflow: clip;
	overflow-clip-margin: var(--sp-4);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sp-4);
}
.bento-card { padding: clamp(var(--sp-5), 1rem + 1vw, var(--sp-8)); container-type: inline-size; display: flex; flex-direction: column; }
.tile__kicker { color: var(--c-accent); margin-bottom: var(--sp-4); }
.tile__title {
	word-spacing: var(--word-display);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--fs-xl);
	line-height: var(--lh-snug);
	letter-spacing: -.02em;
	text-wrap: balance;
}
.tile__body { margin-top: var(--sp-3); color: var(--c-text-dim); font-size: var(--fs-sm); max-width: 56ch; text-wrap: pretty; }

/* Agents: text and the live loop side by side. */
.tile--agents .tile__split { display: grid; gap: var(--sp-8); height: 100%; align-items: start; }
@container (min-width: 620px) {
	.tile--agents .tile__split { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
}
.agent { display: grid; gap: var(--sp-6); justify-items: center; }
.agent__art { width: min(290px, 100%); overflow: visible; }
.agent__orbit, .agent__runner { transform-box: view-box; transform-origin: 50% 50%; }
.agent__pulse { transform-box: fill-box; transform-origin: center; }
.agent__halo { opacity: .8; }
.agent__ring { fill: none; stroke: var(--c-line-strong); stroke-width: 1; }
.agent__ring--inner { stroke-dasharray: 2 6; }
.agent__sat { fill: var(--c-accent-2); }
.agent__core { fill: var(--c-surface-2); stroke: var(--c-accent); stroke-width: 1; stroke-opacity: .6; }
.agent__core-dot { fill: var(--c-accent); }
.agent__trail { fill: none; stroke: var(--c-accent); stroke-linecap: round; }
.agent__trail--1 { stroke-width: 3; opacity: .95; }
.agent__trail--2 { stroke-width: 2; opacity: .4; }
.agent__trail--3 { stroke-width: 1.5; opacity: .14; }
.agent__head { fill: #fff; }
.agent__head-glow { fill: var(--c-accent); opacity: .35; }
.agent__node { fill: var(--c-surface-2); stroke: var(--c-line-strong); stroke-width: 1.25; }
.agent__lit { fill: var(--c-accent); opacity: 0; }
.agent__pulse { fill: none; stroke: var(--c-accent); stroke-width: 1.5; opacity: 0; }
.agent__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); width: 100%; }
.agent__steps li {
	position: relative;
	display: grid;
	gap: 2px;
	padding: var(--sp-3);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	background: var(--c-surface-2);
	isolation: isolate;
}
.agent__steps li::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	border: 1px solid var(--c-accent);
	background: linear-gradient(160deg, var(--c-accent-soft), transparent 70%);
	box-shadow: 0 0 24px -8px var(--c-accent-glow);
	opacity: 0;
}
.agent__steps .n { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--c-text-faint); }
.agent__steps b { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); }
.agent__steps span:last-child { font-size: var(--fs-xs); color: var(--c-text-dim); line-height: 1.4; }

/* AI-native: five stages on a rail. Three packets a cycle: the evaluation
   gate passes two and holds the third, and its verdict says so. */
.flow { position: relative; margin-top: var(--sp-8); padding-left: var(--sp-8); }
.flow::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 17px;
	bottom: 17px;
	width: 1px;
	background: linear-gradient(var(--c-line-strong), var(--c-accent-soft) 70%, var(--c-line-strong));
}
.flow ol { display: grid; gap: var(--sp-2); }
.flow__node {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	min-height: 34px;
	padding: 0 var(--sp-3);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	background: var(--c-surface-2);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	color: var(--c-text-dim);
}
.flow__node > span { flex: 1; }
.flow__node i { font-style: normal; color: var(--c-text-faint); }
/* the node's dot on the rail */
.flow__node > span::before {
	content: "";
	position: absolute;
	left: calc(-1 * var(--sp-8) + 7px);
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -4.5px;
	border-radius: 50%;
	background: var(--c-surface-1);
	border: 1px solid var(--c-line-strong);
}
/* the lit state, a layer whose opacity animates */
.flow__node::after {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	border: 1px solid var(--c-accent);
	background: var(--c-accent-soft);
	opacity: 0;
}
.flow__node--gate { color: var(--c-text); border-color: rgb(94 234 212 / .3); }
.flow__verdict { position: relative; width: 4.8em; height: 1.4em; font-style: normal; font-weight: 600; }
.flow__verdict span { position: absolute; inset: 0; text-align: right; }
.flow__ok { color: var(--c-accent); }
.flow__no { color: var(--c-warn); opacity: 0; }
/* A packet is a column from the first node's centre to the last's, with the
   dot at its top: a percentage translate (of its own height) carries the dot
   node to node with no JavaScript measuring anything. */
.flow__packet { position: absolute; left: 7px; top: 13px; bottom: 21px; width: 9px; opacity: 0; z-index: 1; }
.flow__packet::before, .flow__packet::after {
	content: "";
	position: absolute;
	top: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--c-accent);
	box-shadow: 0 0 0 3px var(--c-accent-soft), 0 0 14px var(--c-accent);
}
.flow__packet::after { background: var(--c-warn); box-shadow: 0 0 0 3px rgb(251 191 36 / .18), 0 0 14px var(--c-warn); opacity: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-6); }
.chips li {
	font-family: var(--font-mono);
	font-size: var(--fs-2xs);
	letter-spacing: .04em;
	color: var(--c-text-dim);
	padding: var(--sp-1) var(--sp-3);
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
}

/* Developer tools: the terminal leads, the words follow. */
.tile--tools .term { margin-bottom: var(--sp-6); }
.tile--tools .status {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	margin-top: var(--sp-5);
	color: var(--c-text-dim);
}

/* Platform: words, then the merge-to-customer pipeline across the foot: a
   fill with a glowing head, and each stage lighting and ticking as the head
   reaches it. */
.tile--platform .tile__head { display: grid; gap: var(--sp-3); }
@container (min-width: 560px) {
	.tile--platform .tile__head { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--sp-8); align-items: start; }
	.tile--platform .tile__body { margin-top: 0; }
}
.pipe { position: relative; margin-top: auto; padding-top: var(--sp-8); }
.pipe__track {
	position: relative;
	height: 3px;
	border-radius: 3px;
	background: var(--c-line-strong);
	margin: 0 var(--sp-2) var(--sp-5);
}
.pipe__fill {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--c-accent-2), var(--c-accent));
	box-shadow: 0 0 12px var(--c-accent-glow);
	transform-origin: left;
	transform: scaleX(1);
}
/* The head rides a lane as wide as the track; translating the lane by 100%
   of its own width carries the head the length of the track. */
.pipe__lane { position: absolute; left: var(--sp-2); right: var(--sp-2); top: calc(var(--sp-8) + 1.5px); height: 0; opacity: 0; }
.pipe__head {
	position: absolute;
	left: -6px;
	top: -6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 4px var(--c-accent-soft), 0 0 20px var(--c-accent);
}
.pipe__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
@container (min-width: 380px) {
	.pipe__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pipe__steps li {
	position: relative;
	font-family: var(--font-mono);
	font-size: var(--fs-2xs);
	letter-spacing: var(--tracking-mono);
	text-transform: uppercase;
	color: var(--c-text-dim);
	text-align: center;
	padding: var(--sp-3) var(--sp-1);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	background: var(--c-surface-2);
	isolation: isolate;
}
.pipe__steps li::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	border: 1px solid var(--c-accent);
	background: var(--c-accent-soft);
	box-shadow: 0 0 20px -6px var(--c-accent-glow);
	opacity: 0;
}
.pipe__steps li::after {
	content: "\2713";
	position: absolute;
	/* Inside the stage's right edge: a badge hanging past it widens the
	   stage's scroll box, which the suite reads as a label that does not fit. */
	top: -9px;
	right: var(--sp-2);
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--c-accent);
	color: var(--c-on-accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0;
	opacity: 0;
}

/* ---------- principles ---------- */
.quote {
	position: relative;
	margin-bottom: var(--sp-12);
	padding: clamp(var(--sp-8), 1.5rem + 3vw, var(--sp-16)) 0;
	border-block: 1px solid var(--c-line);
}
.quote blockquote p {
	word-spacing: var(--word-display);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--fs-3xl);
	line-height: 1.04;
	letter-spacing: var(--tracking-display);
	max-width: 20ch;
	text-wrap: balance;
}
.quote figcaption { margin-top: var(--sp-5); color: var(--c-text-dim); max-width: 58ch; }
.quote .w { display: inline; }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.spot { padding: var(--sp-6); }
.spot h3 {
	word-spacing: var(--word-display);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--fs-md);
	line-height: var(--lh-snug);
	letter-spacing: -.01em;
}
.spot h3::before {
	content: "";
	display: block;
	width: 20px;
	height: 1px;
	margin-bottom: var(--sp-4);
	background: var(--c-accent);
}
.spot p { margin-top: var(--sp-3); color: var(--c-text-dim); font-size: var(--fs-sm); text-wrap: pretty; }

/* ---------- stack ---------- */
.stack__sum {
	margin-top: var(--sp-5);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	letter-spacing: var(--tracking-mono);
	text-transform: uppercase;
	color: var(--c-text-dim);
}
.stack__sum b { color: var(--c-text); font-weight: 600; }
/* minmax(0, 1fr) and min-width: 0 are load-bearing. A grid item's automatic
   minimum is its content width unless it is a SCROLL container, and
   `overflow: clip` is not one — so each row grew to the width of its own
   track, every clone widened it again, and the ResizeObserver kept cloning
   (1,134 copies, caught by an interaction probe). */
.marquee { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); margin-inline: calc(50% - 50vw); }
.marquee .loop { min-width: 0; }
/* The marquee spans the viewport, but `50vw` includes the scrollbar gutter
   on desktop: the rows are trimmed by their own `overflow: clip`, and this
   wrapper by the section's. */
.section--stack { overflow: clip; }
.groups { margin-top: var(--sp-10); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface-1); }
.groups summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	min-height: 52px;
	padding: 0 var(--sp-5);
	cursor: pointer;
	font-size: var(--fs-sm);
	color: var(--c-text);
	list-style: none;
}
.groups summary::-webkit-details-marker { display: none; }
.groups summary::after {
	content: "+";
	font-family: var(--font-mono);
	color: var(--c-accent);
	transition: rotate var(--dur-base) var(--ease-out);
}
.groups[open] summary::after { rotate: 45deg; }
.groups__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sp-6);
	padding: var(--sp-5);
	border-top: 1px solid var(--c-line);
}
.groups__grid h3 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--c-accent); font-weight: 500; }
.groups__grid ul { margin-top: var(--sp-2); display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); font-size: var(--fs-sm); }
.groups__grid p { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--c-text-dim); }
.groups__credit { padding: 0 var(--sp-5) var(--sp-5); font-size: var(--fs-2xs); color: var(--c-text-faint); }

/* ---------- how we work ---------- */
.work { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-12); }
.stepper__list { display: grid; gap: var(--sp-12); }
.stepper__item h3 {
	word-spacing: var(--word-display);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--fs-lg);
	line-height: var(--lh-snug);
	padding-top: var(--sp-2);
	text-wrap: balance;
}
.stepper__item p { margin-top: var(--sp-3); color: var(--c-text-dim); font-size: var(--fs-sm); max-width: 60ch; text-wrap: pretty; }
.terms {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: var(--sp-10);
	border-top: 1px solid var(--c-line);
}
.terms div { padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; border-bottom: 1px solid var(--c-line); }
.terms dt { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--c-text-faint); }
.terms dd { margin-top: var(--sp-1); font-size: var(--fs-sm); font-weight: 550; }

/* ---------- closing CTA ---------- */
.close-band { position: relative; overflow: clip; }
.close-band .glow-field { width: 900px; height: 500px; left: 50%; bottom: -320px; margin-left: -450px; }
.close { position: relative; text-align: center; display: grid; justify-items: center; }
.close .h2 { font-size: var(--fs-display); max-width: 14ch; }
.close .lede { margin-inline: auto; }
.close .reach__row, .close .mailchip { justify-content: center; }
.close__micro { margin-top: var(--sp-8); max-width: 60ch; font-size: var(--fs-xs); color: var(--c-text-dim); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--c-line); padding-block: var(--sp-10) var(--sp-12); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-6) var(--sp-10); }
.foot__in img { width: 112px; }
.foot__meta { flex: 1 1 22rem; font-size: var(--fs-xs); line-height: 1.7; color: var(--c-text-dim); }
.foot__meta a { color: var(--c-text); text-underline-offset: 3px; display: inline-block; padding-block: var(--sp-2); }

/* ============================================================
   Breakpoints
   ============================================================ */
@media (min-width: 640px) {
	.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tile--agents, .tile--platform { grid-column: 1 / -1; }
	.pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.groups__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.terms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: var(--sp-16); }
	.bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); }
	.tile--agents { grid-column: span 4; grid-row: span 2; }
	.tile--native { grid-column: span 2; grid-row: span 2; }
	.tile--tools { grid-column: span 3; }
	.tile--platform { grid-column: span 3; }
	.pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.groups__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.work { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--sp-16); }
	.work__head { position: sticky; top: 7rem; align-self: start; }
	.terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   Section motion. Created only for no-preference; loops run only while
   their element is on screen (.is-live, toggled by home.js).
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
	/* Hero entrance, on load: one stagger, then still. */
	.hero__top > *, .hero__copy > * { animation: rv-in var(--dur-reveal) var(--ease-out) both; }
	.hero__top > :nth-child(2) { animation-delay: 80ms; }
	.hero__copy > :nth-child(1) { animation-delay: 180ms; }
	.hero__copy > :nth-child(2) { animation-delay: 260ms; }
	.hero__copy > :nth-child(3) { animation-delay: 340ms; }

	/* The manifest's ONLY motion: a slight wobble when hovered. */
	.manifest:hover { animation: wobble 700ms var(--ease-out); }

	/* Agent loop: one 12s cycle drives the runner and its comet trail, the
	   node it reaches (a lit dot and an expanding pulse ring) and the step
	   it names (lit and lifted). Negative delays set each phase. */
	.is-live .agent__runner { animation: spin 12s linear infinite; }
	.is-live .agent__orbit { animation: spin 20s linear infinite reverse; }
	.is-live .agent__halo { animation: breathe 4s var(--ease-in-out) infinite alternate; }
	.is-live .agent__lit, .is-live .agent__steps li::before { animation: lit 12s linear infinite; }
	.is-live .agent__pulse { animation: pulse 12s var(--ease-out) infinite; }
	.is-live .agent__steps li { animation: lift 12s var(--ease-out) infinite; }
	.is-live .agent__lit--2, .is-live .agent__pulse--2,
	.is-live .agent__steps li:nth-child(2), .is-live .agent__steps li:nth-child(2)::before { animation-delay: -9s; }
	.is-live .agent__lit--3, .is-live .agent__pulse--3,
	.is-live .agent__steps li:nth-child(3), .is-live .agent__steps li:nth-child(3)::before { animation-delay: -6s; }
	.is-live .agent__lit--4, .is-live .agent__pulse--4,
	.is-live .agent__steps li:nth-child(4), .is-live .agent__steps li:nth-child(4)::before { animation-delay: -3s; }

	/* Flow, on a 3.6s cycle with packets a third of a cycle apart. A packet
	   travels linearly from 5% to 95% of its cycle, so node k is reached at
	   .05 + .9(k-1)/4 of it; each node lights on that beat (1.2s period for
	   nodes 1-4, which all three packets reach). The held packet stops at the
	   gate, turns amber and drops out; only two packets reach the answer. */
	.is-live .flow__packet { animation: packet 3.6s linear infinite; }
	.is-live .flow__packet--2 { animation-delay: -2.4s; }
	.is-live .flow__packet--held { animation: packet-held 3.6s linear -1.2s infinite; }
	.is-live .flow__packet--held::after { animation: turn-warn 3.6s linear -1.2s infinite; }
	.is-live .flow__node::after { animation: node-lit 1.2s linear infinite; }
	.is-live .flow__node--1::after { animation-delay: -1.02s; }
	.is-live .flow__node--2::after { animation-delay: -.21s; }
	.is-live .flow__node--3::after { animation-delay: -.6s; }
	.is-live .flow__node--4::after { animation-delay: -.99s; }
	.is-live .flow__node--5::after { animation: answer-lit 3.6s linear infinite; }
	.is-live .flow__ok { animation: verdict-ok 3.6s linear infinite; }
	.is-live .flow__no { animation: verdict-no 3.6s linear infinite; }

	/* Pipeline, on a 4.8s cycle: fill and head sweep linearly over the first
	   70%; each stage lights and ticks as the head reaches its centre. */
	.is-live .pipe__fill { animation: sweep 4.8s linear infinite; }
	.is-live .pipe__lane { animation: ride 4.8s linear infinite; }
	.is-live .pipe__steps li::before, .is-live .pipe__steps li::after { animation: stage 4.8s var(--ease-out) infinite; }
	.is-live .pipe__steps li { animation: stage-lift 4.8s var(--ease-out) infinite; }
	.is-live .pipe__steps li:nth-child(1), .is-live .pipe__steps li:nth-child(1)::before, .is-live .pipe__steps li:nth-child(1)::after { animation-delay: .42s; }
	.is-live .pipe__steps li:nth-child(2), .is-live .pipe__steps li:nth-child(2)::before, .is-live .pipe__steps li:nth-child(2)::after { animation-delay: 1.26s; }
	.is-live .pipe__steps li:nth-child(3), .is-live .pipe__steps li:nth-child(3)::before, .is-live .pipe__steps li:nth-child(3)::after { animation-delay: 2.1s; }
	.is-live .pipe__steps li:nth-child(4), .is-live .pipe__steps li:nth-child(4)::before, .is-live .pipe__steps li:nth-child(4)::after { animation-delay: 2.94s; }

	@supports ((animation-timeline: view()) and (animation-range: entry)) {
		/* A stagger with no timers: neighbours get later ranges. */
		.bento .rv:nth-child(3n + 2), .pgrid .rv:nth-child(3n + 2) { animation-range: entry 8% entry 62%; }
		.bento .rv:nth-child(3n), .pgrid .rv:nth-child(3n) { animation-range: entry 16% entry 70%; }

		/* Scroll Reveal (React Bits <ScrollReveal>): the quote's words come
		   up from the reference's baseOpacity 0.1 as it is read, each a little
		   later (--i, written by home.js). Blur and tilt are left out: they
		   are not transform or opacity animations. */
		.quote { view-timeline: --quote block; }
		.quote .w {
			animation: word linear both;
			animation-timeline: --quote;
			animation-range: entry calc(30% + var(--i, 0) * 4%) cover calc(36% + var(--i, 0) * 3%);
		}
	}
}

@keyframes wobble {
	0% { rotate: 0deg; translate: 0 0; }
	22% { rotate: -1.1deg; translate: 0 -3px; }
	48% { rotate: .8deg; translate: 0 -3px; }
	72% { rotate: -.35deg; translate: 0 -1px; }
	100% { rotate: 0deg; translate: 0 0; }
}
@keyframes spin { from { rotate: 0turn; } to { rotate: 1turn; } }
@keyframes breathe { from { opacity: .45; } to { opacity: 1; } }
@keyframes lit { 0%, 20% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes pulse {
	0% { transform: scale(1); opacity: .9; }
	12% { transform: scale(2.8); opacity: 0; }
	100% { transform: scale(2.8); opacity: 0; }
}
@keyframes lift { 0%, 20% { translate: 0 -3px; } 27%, 100% { translate: 0 0; } }
@keyframes packet {
	0% { opacity: 0; translate: 0 0; }
	5% { opacity: 1; translate: 0 0; }
	95% { opacity: 1; translate: 0 100%; }
	100% { opacity: 0; translate: 0 100%; }
}
@keyframes packet-held {
	0% { opacity: 0; translate: 0 0; }
	5% { opacity: 1; translate: 0 0; }
	72.5% { opacity: 1; translate: 0 75%; }
	82% { opacity: 1; translate: 0 75%; }
	94% { opacity: 0; translate: 22px 75%; }
	100% { opacity: 0; translate: 22px 75%; }
}
@keyframes turn-warn { 0%, 72% { opacity: 0; } 76%, 100% { opacity: 1; } }
@keyframes node-lit { 0% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@keyframes answer-lit {
	0%, 27% { opacity: 0; } 28.5% { opacity: 1; } 38% { opacity: 0; }
	94% { opacity: 0; } 95.5% { opacity: 1; } 100% { opacity: .6; }
}
@keyframes verdict-ok {
	0%, 4.5% { opacity: .15; } 6% { opacity: 1; } 15% { opacity: .15; }
	71% { opacity: .15; } 72.5% { opacity: 1; } 82%, 100% { opacity: .15; }
}
@keyframes verdict-no { 0%, 38% { opacity: 0; } 39.5% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes sweep {
	0% { transform: scaleX(0); opacity: 1; }
	70% { transform: scaleX(1); opacity: 1; }
	100% { transform: scaleX(1); opacity: 0; }
}
@keyframes ride {
	0% { translate: 0 0; opacity: 1; }
	70% { translate: 100% 0; opacity: 1; }
	80%, 100% { translate: 100% 0; opacity: 0; }
}
@keyframes stage { 0% { opacity: 0; } 4% { opacity: 1; } 55% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes stage-lift { 0% { translate: 0 0; } 4% { translate: 0 -3px; } 55% { translate: 0 -3px; } 68%, 100% { translate: 0 0; } }
@keyframes word { from { opacity: .1; } to { opacity: 1; } }
