/* ============================================================
   Frontier Labs — landing page components.

   Every value comes from tokens.css. Each component below names the
   reference it is ported from. The ports are vanilla CSS (and home.js where
   behaviour needs it), with the reference's timings kept where they can be
   kept and the deviations stated beside the code.

   Several components are ported from React Bits (https://reactbits.dev):
     Copyright (c) 2026 David Haz — MIT + Commons Clause License Condition v1.0.
     Used here as part of this website, which that licence permits; the
     ported components are not offered for reuse or redistribution on their own.

   Motion rule for the whole file: every animation is created inside
   `@media (prefers-reduced-motion: no-preference)`, so a reduce preference
   never creates one. Animated properties are transform and opacity, with
   two stated exceptions (Shiny Text, the bento glow gradient).
   ============================================================ */

/* ---------- texture ---------- */

/* Light grain over the base. Behind content (z-index -1 under body, above
   the canvas background), so text never sits under it. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background: url("/assets/home/grain.svg") 0 0 / 180px 180px;
	opacity: .05;
	pointer-events: none;
}

/* Dot Grid — ported from React Bits <DotGrid>.
   Without JavaScript (or under reduced motion) this is a static CSS dot
   field. home.js swaps in the canvas, where dots within the reference's
   150px proximity brighten toward the accent and a fast pointer pushes them
   (a damped spring stands in for GSAP's InertiaPlugin; see home.js). */
.dotgrid {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .09) 1px, transparent 1.6px);
	background-size: 28px 28px;
}

/* Light Rays — ported from React Bits <LightRays> (WebGL; see home.js).
   A spotlight from above the hero, screened onto the dark so it only ever
   adds light. Without WebGL the layer is simply empty. */
.rays {
	position: absolute;
	inset: 0;
	pointer-events: none;
	mix-blend-mode: screen;
	opacity: .85;
}
.rays canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dotgrid canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dotgrid.is-live { background-image: none; }

/* Soft radial glow, for section backgrounds. Opacity only. */
.glow-field {
	position: absolute;
	pointer-events: none;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--c-accent-glow), transparent);
	filter: blur(40px);
	opacity: .35;
}

/* ---------- buttons ---------- */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 48px;
	padding: 0 var(--sp-6);
	border-radius: var(--r-pill);
	border: 1px solid var(--c-line-strong);
	background: transparent;
	color: var(--c-text);
	font-weight: 550;
	font-size: var(--fs-sm);
	letter-spacing: .005em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color var(--dur-base) var(--ease-std), background-color var(--dur-base) var(--ease-std);
}
.btn:hover { border-color: rgb(255 255 255 / .28); background: rgb(255 255 255 / .04); }
.btn--sm { min-height: 44px; padding: 0 var(--sp-4); }
.btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Star Border — ported from React Bits <StarBorder>.
   The reference (current version) draws a comet on a canvas along the
   button's rounded outline. Ported as a conic-gradient light on an
   oversized square that ROTATES (transform only) behind a 1px window: the
   button's own fill is the track, ::after is the inner surface, and the
   light shows only in the 1px ring between them. The rotating square lives
   in its own clipped child (.star__ring) rather than on the button, so it
   never counts as the button's overflow — the responsive suite reads a
   button whose content overflows as a label that does not fit, and was
   right to. Deviation: a rotating
   light moves at constant angular speed, so it runs slightly faster along a
   wide pill's long edges than the reference's constant-perimeter comet. */
.star {
	isolation: isolate;
	border: 0;
	background: var(--c-line-strong);
	color: var(--c-text);
	transition: box-shadow var(--dur-base) var(--ease-std);
}
.star__ring {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}
.star__ring::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 300%;
	aspect-ratio: 1;
	translate: -50% -50%;
	rotate: .62turn;
	background: conic-gradient(from 0turn,
		transparent 0turn, transparent .7turn,
		var(--c-accent-2) .86turn, var(--c-accent) .96turn, transparent 1turn);
	pointer-events: none;
}
.star::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 1px;
	border-radius: inherit;
	background: linear-gradient(180deg, var(--c-surface-3), var(--c-surface-1));
	pointer-events: none;
}
.star:hover {
	background: var(--c-line-strong);
	box-shadow: 0 0 28px -8px var(--c-accent-glow);
}
.star .btn__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c-accent);
	box-shadow: 0 0 10px var(--c-accent);
}

/* Magnet — ported from React Bits <Magnet>. home.js writes --mx/--my in px
   while the pointer is within the padding; the transitions are the
   reference's: 0.3s ease-out while active, 0.5s ease-in-out on release. */
.magnet {
	display: inline-flex;
	translate: var(--mag-x, 0px) var(--mag-y, 0px);
	transition: translate .5s ease-in-out;
}
.magnet.is-active { transition: translate .3s ease-out; }

/* ---------- the contact affordance ---------- */
.mailchip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-1) var(--sp-3);
	margin-top: var(--sp-4);
	font-size: var(--fs-sm);
	color: var(--c-text-dim);
}
/* One tap selects the whole address. */
.mailchip__addr {
	font-family: var(--font-mono);
	color: var(--c-text);
	user-select: all;
	-webkit-user-select: all;
	overflow-wrap: anywhere;
}
.mailchip__copy {
	min-height: 44px;
	min-width: 4.75rem;
	padding: 0 var(--sp-4);
	border-radius: var(--r-pill);
	border: 1px solid var(--c-line-strong);
	background: transparent;
	font-size: var(--fs-xs);
	font-weight: 600;
	cursor: pointer;
	transition: border-color var(--dur-fast) var(--ease-std), color var(--dur-fast) var(--ease-std);
}
.mailchip__copy:hover { border-color: var(--c-accent); }
.mailchip__copy[data-state="done"] { border-color: var(--c-accent); color: var(--c-accent); }

/* ---------- status ---------- */
.live-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--c-accent);
	box-shadow: 0 0 0 3px var(--c-accent-soft);
	flex: none;
}
.live-dot--warn { background: var(--c-warn); box-shadow: 0 0 0 3px rgb(251 191 36 / .14); }

/* ---------- cards ---------- */

/* Magic Bento card — ported from React Bits <MagicBento> (border glow +
   global spotlight; the reference's particles, tilt and click ripple are
   left out on purpose: they move things without saying anything).
   ::after is the reference's border glow, verbatim in technique: a radial
   gradient at --glow-x/--glow-y, masked to a ring with mask-composite.
   home.js sets --glow-intensity with the reference's falloff: 1 within
   spotlightRadius × 0.5 of the card, fading to 0 at × 0.75.
   (The gradient's position and strength are custom properties, which
   repaints the ring: one of the two stated non-transform animations.) */
.bento-card {
	position: relative;
	isolation: isolate;
	background: var(--c-surface-1);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	overflow: clip;
	transition: border-color var(--dur-base) var(--ease-std), translate var(--dur-base) var(--ease-std);
}
.bento-card::after {
	content: "";
	position: absolute;
	inset: -1px;
	padding: 1.5px;
	border-radius: inherit;
	background: radial-gradient(var(--glow-radius, 300px) circle at var(--glow-x) var(--glow-y),
		rgb(var(--glow-rgb) / calc(var(--glow-intensity) * .9)) 0%,
		rgb(var(--glow-rgb) / calc(var(--glow-intensity) * .4)) 30%,
		transparent 60%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	pointer-events: none;
	z-index: 2;
}
/* The inner wash: the same light, much fainter, on the surface itself. */
.bento-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(420px circle at var(--glow-x) var(--glow-y),
		rgb(var(--glow-rgb) / .07), transparent 65%);
	opacity: var(--glow-intensity);
	pointer-events: none;
}
.bento-card:hover { translate: 0 -2px; }

/* The global spotlight that travels with the pointer over the grid
   (the reference's <GlobalSpotlight>, 800px, mix-blend screen). Moved by
   transform only. */
.bento-spot {
	position: absolute;
	left: 0;
	top: 0;
	width: 800px;
	height: 800px;
	margin: -400px 0 0 -400px;
	border-radius: 50%;
	background: radial-gradient(circle, rgb(var(--glow-rgb) / .12) 0%, rgb(var(--glow-rgb) / .05) 25%, transparent 70%);
	mix-blend-mode: screen;
	pointer-events: none;
	opacity: 0;
	transition: opacity var(--dur-slow) var(--ease-std);
	z-index: 0;
}

/* Spotlight Card — ported from React Bits <SpotlightCard>: a radial light
   at the pointer, faded in and out with the reference's 0.5s ease. */
.spot {
	position: relative;
	isolation: isolate;
	background: var(--c-surface-1);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	overflow: clip;
}
.spot::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgb(255 255 255 / .07), transparent 55%);
	opacity: var(--glow-intensity);
	transition: opacity .5s ease;
	pointer-events: none;
}

/* ---------- Logo Loop — ported from React Bits <LogoLoop> ----------
   Markup: one sequence of items; home.js clones it as many times as the
   reference's maths needs (ceil(viewport / sequence) + 2 copies) and drives
   the track with the reference's loop: velocity eased toward its target
   with time constant 0.25s, so pause-on-hover glides to a stop and resumes
   the same way. The edge fades are the reference's widths,
   clamp(24px, 8%, 120px), done with a mask rather than coloured overlays so
   they work on any surface. Hover: the reference's 1.2× scale on its
   cubic-bezier(.4,0,.2,1) 0.3s curve, plus a name label. */
.loop {
	position: relative;
	overflow: clip;
	--loop-gap: clamp(2rem, 1.4rem + 2vw, 3.25rem);
	--loop-h: 28px;
	--loop-fade: clamp(24px, 8%, 120px);
	mask-image: linear-gradient(90deg, transparent, #000 var(--loop-fade), #000 calc(100% - var(--loop-fade)), transparent);
	padding-block: var(--sp-2) var(--sp-6);
}
.loop__track {
	display: flex;
	width: max-content;
	will-change: transform;
	user-select: none;
}
.loop__seq {
	display: flex;
	align-items: center;
	gap: var(--loop-gap);
	padding-right: var(--loop-gap);
}
.loop__item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: calc(var(--loop-h) * 1.7);
	color: var(--c-text-faint);
	transition: color var(--dur-base) var(--ease-std);
}
.loop__logo {
	width: var(--loop-h);
	height: var(--loop-h);
	fill: currentColor;
	transition: transform var(--dur-base) var(--ease-std);
}
.loop__name {
	position: absolute;
	top: calc(100% + 2px);
	left: 50%;
	translate: -50% 4px;
	font-family: var(--font-mono);
	font-size: var(--fs-2xs);
	letter-spacing: .04em;
	white-space: nowrap;
	color: var(--c-text);
	opacity: 0;
	transition: opacity var(--dur-fast) var(--ease-std), translate var(--dur-base) var(--ease-out);
	pointer-events: none;
}
.loop__item:hover { color: var(--c-text); }
.loop__item:hover .loop__logo { transform: scale(1.2); }
.loop__item:hover .loop__name { opacity: 1; translate: -50% 0; }
.loop__pill {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	letter-spacing: .04em;
	color: var(--c-text-dim);
	white-space: nowrap;
	padding: var(--sp-2) var(--sp-3);
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	transition: border-color var(--dur-base) var(--ease-std), color var(--dur-base) var(--ease-std), transform var(--dur-base) var(--ease-std);
}
/* AWS and gRPC have no Simple Icons entry (AWS's was removed at the brand
   owner's request). They are set as wordmark text, never drawn by hand. */
.loop__pill--mark {
	font-family: var(--font-display);
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--c-text-faint);
	border-color: transparent;
	padding-inline: var(--sp-1);
}
.loop__item:hover .loop__pill { border-color: var(--c-accent); color: var(--c-text); transform: scale(1.06); }

/* ---------- terminal (the Text Type surface) ---------- */
.term {
	position: relative;
	background: var(--c-base);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	overflow: clip;
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	line-height: 1.75;
}
.term__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: var(--sp-2) var(--sp-3);
	border-bottom: 1px solid var(--c-line);
	color: var(--c-text-faint);
}
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; opacity: .55; }
.term__bar i + i { background: #febc2e; }
.term__bar i + i + i { background: #28c840; }
.term__bar span { margin-left: var(--sp-2); }
.term__bar .live-dot { margin-left: auto; }
/* A soft scanline that drifts down the screen while the terminal is live. */
.term__scan {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 48px;
	background: linear-gradient(180deg, transparent, rgb(94 234 212 / .06), transparent);
	pointer-events: none;
	opacity: 0;
}
.term__body { padding: var(--sp-3) var(--sp-4) var(--sp-4); min-height: 9.5em; }
.term__line { display: block; white-space: pre-wrap; color: var(--c-text-dim); }
.term__line--cmd { color: var(--c-text); }
.term__line--cmd::before { content: "$ "; color: var(--c-accent); }
.term__line--ok { color: var(--c-accent); }
.term__caret {
	display: inline-block;
	width: .55em;
	height: 1.1em;
	margin-left: 1px;
	vertical-align: -.15em;
	background: var(--c-accent);
}

/* ---------- Shiny Text — ported from React Bits <ShinyText> ----------
   ONE pass, not a loop (yoyo off, no repeat). Two background layers clipped
   to the text: a white band that sweeps once, over the resting
   accent gradient. At rest the band is parked off the right edge, so with
   no animation (reduced motion, no support) the text is simply the
   gradient. Deviation: the reference animates on rAF in JS; this is a CSS
   keyframe of background-position — the stated non-transform exception,
   on one element, once. */
.shine {
	background-image:
		linear-gradient(100deg, transparent 42%, rgb(255 255 255 / .95) 50%, transparent 58%),
		linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
	background-size: 250% 100%, 100% 100%;
	background-repeat: no-repeat;
	background-position: 100% 0, 0 0;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

/* ---------- reveal — after React Bits <AnimatedContent> ----------
   Rise and fade, scrubbed by the element's own view timeline. Reference
   distance 100px, scaled down to 24px for body content. */
.rv { --rv-d: 24px; }

/* ---------- step indicator — after React Bits <Stepper> ----------
   Its numbered indicator and filling connector, without the wizard (the
   method is read, not clicked through). Driven by scroll. */
.stepper { position: relative; counter-reset: step; }
.stepper__rail {
	position: absolute;
	left: 19px;
	top: 20px;
	bottom: 20px;
	width: 1px;
	background: var(--c-line-strong);
}
.stepper__fill {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, var(--c-accent), var(--c-accent-2));
	transform-origin: top;
	box-shadow: 0 0 12px var(--c-accent-glow);
}
.stepper__item { position: relative; padding-left: calc(40px + var(--sp-6)); }
.stepper__dot {
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--c-surface-2);
	border: 1px solid var(--c-line-strong);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	color: var(--c-text-dim);
}
/* The active state is a separate layer whose OPACITY animates, rather than
   the dot's own colours. */
.stepper__dot::after {
	content: attr(data-n);
	position: absolute;
	inset: -1px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--c-accent);
	color: var(--c-on-accent);
	font-weight: 700;
	box-shadow: 0 0 0 5px var(--c-accent-soft);
	/* Lit by default: with no scroll timeline (or reduced motion) the method
	   reads as complete rather than as four unvisited steps. */
	opacity: 1;
}

/* ---------- nav ----------
   A floating glass bar rather than a full-bleed strip: the page's own
   vocabulary at small scale — a hairline pill, a lit top edge (the bento
   glow's colour), mono section indices, the Star Border CTA, and a scroll
   progress hairline (CSS scroll timeline, transform only). home.js marks the
   section being read with aria-current. */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	padding-top: var(--sp-3);
}
.nav__in {
	position: relative;
	display: flex;
	align-items: center;
	gap: clamp(.6rem, 2vw, 1.25rem);
	min-height: 60px;
	padding: var(--sp-2) var(--sp-2) var(--sp-2) clamp(var(--sp-4), 2vw, var(--sp-6));
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	background: rgb(15 17 20 / .74);
	backdrop-filter: blur(18px) saturate(160%);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 18px 40px -24px rgb(0 0 0 / .9);
}
.nav__in::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 18%;
	right: 18%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--c-accent-glow), transparent);
	pointer-events: none;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: clamp(.4rem, 1.6vw, .6rem);
	margin-right: auto;
	min-width: 0;
	text-decoration: none;
}
.brand__mark { height: clamp(19px, 4.4vw, 24px); width: auto; flex: none; }
.brand__word { height: clamp(12px, 3vw, 17px); width: auto; flex: none; }
.nav__links {
	display: flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	background: rgb(255 255 255 / .02);
}
.nav__links a {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: 36px;
	padding: 0 var(--sp-4) 0 var(--sp-3);
	border-radius: var(--r-pill);
	font-size: var(--fs-sm);
	color: var(--c-text-dim);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--dur-fast) var(--ease-std), background-color var(--dur-fast) var(--ease-std), box-shadow var(--dur-fast) var(--ease-std);
}
.nav__idx {
	font-family: var(--font-mono);
	font-size: var(--fs-2xs);
	letter-spacing: var(--tracking-mono);
	color: var(--c-text-faint);
	transition: color var(--dur-fast) var(--ease-std);
}
.nav__links a:hover { color: var(--c-text); background: rgb(255 255 255 / .05); }
.nav__links a[aria-current="true"] {
	color: var(--c-text);
	background: rgb(255 255 255 / .06);
	box-shadow: inset 0 0 0 1px var(--c-line-strong);
}
.nav__links a:hover .nav__idx,
.nav__links a[aria-current="true"] .nav__idx { color: var(--c-accent); }
.nav__cta { flex: none; }
.nav__progress {
	position: absolute;
	left: 30px;
	right: 30px;
	bottom: -1px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--c-accent) 18%, var(--c-accent-2));
	box-shadow: 0 0 10px var(--c-accent-glow);
	transform-origin: left;
	scale: 0 1;
	pointer-events: none;
}
.nav__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	background: rgb(255 255 255 / .03);
	cursor: pointer;
}
.nav__burger span { width: 18px; height: 1.5px; background: var(--c-text); transition: transform var(--dur-base) var(--ease-out); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.nav__mobile {
	display: none;
	flex-direction: column;
	margin-top: var(--sp-2);
	padding: var(--sp-2) 0 var(--sp-5);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: rgb(15 17 20 / .94);
	backdrop-filter: blur(18px) saturate(160%);
	box-shadow: 0 24px 48px -24px rgb(0 0 0 / .9);
	opacity: 0;
	translate: 0 -8px;
	transition: opacity var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out), display var(--dur-base) allow-discrete;
}
.nav__mobile > a {
	display: flex;
	align-items: baseline;
	gap: var(--sp-3);
	min-height: 52px;
	padding: var(--sp-3) var(--sp-5);
	border-bottom: 1px solid var(--c-line);
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	font-weight: 600;
	letter-spacing: -.01em;
	color: var(--c-text);
	text-decoration: none;
}
.nav__mobile > a .nav__idx { color: var(--c-accent); }
.nav__mobile-reach {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: var(--sp-5) var(--sp-5) 0;
}
@media (max-width: 940px) {
	.nav__links, .nav__cta { display: none; }
	.nav__burger { display: flex; }
	.nav__mobile[data-open="true"] { display: flex; opacity: 1; translate: 0 0; }
	@starting-style {
		.nav__mobile[data-open="true"] { opacity: 0; translate: 0 -8px; }
	}
}

/* ============================================================
   Component motion. Created only for no-preference.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }

	.star__ring::before { animation: star-orbit var(--dur-orbit) linear infinite; }

	@supports (animation-timeline: scroll()) {
		.nav__progress { animation: nav-progress linear both; animation-timeline: scroll(root); }
	}

	.shine {
		animation: shine-once var(--dur-shine) var(--ease-std) .55s both;
	}

	.term__caret { animation: caret 1s steps(1, end) infinite; }
	.term__line.is-in { animation: line-in var(--dur-base) var(--ease-out) both; }
	.term.is-live .term__scan { animation: scan 5s linear infinite; }
	.term.is-live .live-dot { animation: live 2s var(--ease-in-out) infinite; }

	@supports ((animation-timeline: view()) and (animation-range: entry)) {
		.rv {
			animation: rv-in linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 55%;
		}
		.stepper { view-timeline: --steps block; }
		.stepper__fill {
			animation: fill-down linear both;
			animation-timeline: --steps;
			animation-range: entry 60% exit 40%;
		}
		.stepper__item .stepper__dot::after {
			animation: step-on linear both;
			animation-timeline: view();
			animation-range: entry 70% entry 100%;
		}
	}
}

@keyframes star-orbit { from { rotate: .62turn; } to { rotate: 1.62turn; } }
@keyframes nav-progress { to { scale: 1 1; } }
@keyframes shine-once {
	from { background-position: 0% 0, 0 0; }
	to { background-position: 100% 0, 0 0; }
}
@keyframes caret { 50% { opacity: 0; } }
@keyframes line-in { from { opacity: 0; translate: -6px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes scan { from { translate: 0 -48px; opacity: 1; } to { translate: 0 260px; opacity: 1; } }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes rv-in {
	from { opacity: 0; translate: 0 var(--rv-d); }
	to { opacity: 1; translate: 0 0; }
}
@keyframes fill-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes step-on { from { opacity: 0; } to { opacity: 1; } }
