/* ======================================
   Persona Component Builder — entrance animation
   Loaded only on Component Pages with at least one section whose "Entrance
   Animation" switch is on (inc/components/assets.php), with js/pc-motion.js
   and a tiny <head> snippet that adds .pc-motion-js to <html> before the
   page paints. The renderer marks those sections data-pc-entrance.

   Each animation group waits until it reaches the viewport (12% above the
   bottom edge), then plays once: headings rise out of a mask, other groups
   rise 32px and fade in, 90ms apart when several arrive together. Groups
   already in view when the page loads play on load. Backgrounds, media,
   checklist tasks, counters and FAQ controls never animate, except the
   Leadership (People) photos: the list is one group, and when it plays every
   photo fades 0.85 → 1 together (no stagger, movement or scale; the cards,
   names and roles stay as they are). The Media Grid's card images do the
   same (its cards, titles, text and buttons are never hidden). Only opacity,
   translate, scale and clip-path change, so nothing shifts.

   The Hero and the Band are scenes: the whole section is one target, and
   when it plays its parts follow one timeline (sections below). The Hero's
   media is never hidden, only scaled and dimmed slightly (opacity 0.85); the
   video pause button never animates. The Band's year rolls like an odometer
   (every digit from 0, through 0–9, on to its own value): the script builds
   the reels while it plays (--pc-motion-odometers) and
   puts the original text back when it is done.

   Hero and Feature Promo headlines rise line by line, and Feature Promo's
   badge builds in, in their own section (last; desktop only; see there).

   The Banner's "Animated lines" switch (data-pc-signal, last section) uses
   the same files but its own script part and rules (desktop only).

   Nothing is hidden unless the head snippet ran (.pc-motion-js), the script
   has not failed (.pc-motion-failed: never ready within 3s, or an error) and
   motion is allowed; never in print. --pc-motion tells the script this file
   is loaded; --pc-motion-targets is the one list of animation groups and
   --pc-motion-scenes the list of scene sections (single classes); the script
   reads them, the rules below use the same selectors. --pc-motion-length is
   how long a target plays (transitions + delays); the script marks it done
   after that, so no transition is cut short.
====================================== */

:root {
	--pc-motion: 1;
	--pc-motion-targets: ".pc-section-header__label, .pc-timeline__title, .pc-feature__headline, .pc-banner__headline, .pc-section-header__statement, .pc-intro__pillar, .pc-feature__label, .pc-timeline__column, .pc-benefits__group, .pc-locations__card, .pc-banner__details, .pc-people__list, .pc-media-grid__list, .pc-list__rows, .pc-logos__list, .pc-carousel__track, .pc-products__title, .pc-products__list";
	--pc-motion-duration: 1100ms;
	--pc-motion-ease: cubic-bezier(0.45, 0, 0.2, 1);
	--pc-motion-rise: 32px;
	--pc-motion-scenes: ".pc-hero, .pc-band";
	--pc-motion-odometers: ".pc-band__est-year";
	--pc-motion-length: 1300ms;
}

/* Hero scene: the last part (scroll indicator, 1300ms + 1100ms) ends at 2400ms. */
.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero {
	--pc-motion-length: 2600ms;
}

/* Band scene: the last part (the year's fourth reel, 660ms + 1400ms) ends at 2060ms. */
.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band {
	--pc-motion-length: 2400ms;
}

/* Odometer reels (built by the script only while a Band plays): one per digit,
   a 1em window on a column 0, 1 … 9, 0 … the real digit. A reel at rest
   shows its last digit, so a failure mid-roll still shows the year. The reel
   sits on the line's top edge with the same line height, so each digit lands
   exactly where the text was (the script checks, and keeps the text if not).
   Type is inherited from the year: Hyperion sizes every span inside its page
   wrapper ([class*="website-page"] main span: font-size var(--fs-base)).
   Each reel is as wide as its own digit (the script sets it), and clips only
   vertically: a wider digit rolling past may overhang its neighbours. */
.pc-motion-js .pc-page .pc-odo {
	display: inline-block;
	height: 1em;
	clip-path: inset(0 -0.5em);
	font-size: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	vertical-align: top;
}

.pc-motion-js .pc-page .pc-odo__strip {
	display: block;
	font-size: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-align: center;
	white-space: pre;
	translate: 0 calc(-1em * var(--pc-odo-steps, 0));
}

@media screen and (prefers-reduced-motion: no-preference) {

	/* Headings: rise out of a mask (the clip opens upwards as the text rises into place). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] :is(
		.pc-section-header__label,
		.pc-timeline__title,
		.pc-feature__headline,
		.pc-banner__headline,
		.pc-products__title
	):not(.pc-in) {
		clip-path: inset(-0.5em -0.5em 100% -0.5em);
		translate: 0 0.9em;
	}

	/* Content groups: rise 32px and fade in. */
	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] :is(
		.pc-section-header__statement,
		.pc-intro__pillar,
		.pc-feature__label,
		.pc-timeline__column,
		.pc-benefits__group,
		.pc-locations__card,
		.pc-banner__details
	):not(.pc-in) {
		opacity: 0;
		translate: 0 var(--pc-motion-rise);
	}

	/* Playing (until the script marks it done). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] :is(
		.pc-section-header__label,
		.pc-timeline__title,
		.pc-feature__headline,
		.pc-banner__headline,
		.pc-products__title
	).pc-in:not(.pc-done) {
		clip-path: inset(-0.5em);
		transition: clip-path var(--pc-motion-duration) var(--pc-motion-ease), translate var(--pc-motion-duration) var(--pc-motion-ease);
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] :is(
		.pc-section-header__statement,
		.pc-intro__pillar,
		.pc-feature__label,
		.pc-timeline__column,
		.pc-benefits__group,
		.pc-locations__card,
		.pc-banner__details
	).pc-in:not(.pc-done) {
		transition: opacity var(--pc-motion-duration) var(--pc-motion-ease), translate var(--pc-motion-duration) var(--pc-motion-ease);
	}

	/* People (Leadership) and Media Grid (e.g. Meet Armstrong): the whole list (cards, photos and their text) waits
	   hidden and fades 0 → 1 when it plays, with the same duration and easing as the text around it; nothing moves.
	   (The list is one group: one opacity, no separate photo fade.) */
	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] :is(.pc-people__list, .pc-media-grid__list, .pc-list__rows, .pc-logos__list, .pc-carousel__track, .pc-products__list):not(.pc-in) {
		opacity: 0;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] :is(.pc-people__list, .pc-media-grid__list, .pc-list__rows, .pc-logos__list, .pc-carousel__track, .pc-products__list).pc-in:not(.pc-done) {
		transition: opacity var(--pc-motion-duration) var(--pc-motion-ease);
	}

	/* ======================================
	   Hero (initial load; also image only, video, overlays)
	   Timeline from the moment the Hero plays:
	     0ms      media scales 1.04 → 1 and brightens 0.85 → 1 over 1400ms
	              (never hidden; focus edge kept)
	     100ms    headline rises out of a mask
	     400ms    body text (Headline type) fades and rises
	     550ms    buttons fade and rise, 90ms apart
	     700ms    tick marks, left to right, 50ms apart
	     1300ms   scroll indicator fades in
	   Each part takes the shared duration and easing.
	====================================== */

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero[data-pc-entrance]:not(.pc-in) :is(.pc-hero__title, .pc-hero__display) {
		clip-path: inset(-0.5em -0.5em 100% -0.5em);
		translate: 0 0.9em;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero[data-pc-entrance]:not(.pc-in) :is(.pc-hero__body, .pc-hero__actions > *) {
		opacity: 0;
		translate: 0 var(--pc-motion-rise);
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero[data-pc-entrance]:not(.pc-in) :is(.pc-hero__image, .pc-hero__video) {
		opacity: 0.85;
		scale: 1.04;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero[data-pc-entrance]:not(.pc-in) .pc-hero__ticks .pc-ticks > i {
		opacity: 0;
		scale: 1 0;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero[data-pc-entrance]:not(.pc-in) .pc-hero__scroll {
		opacity: 0;
	}

	/* Scale around the media's focus edge, ticks grow upwards (no effect at rest). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero--focus-top[data-pc-entrance] :is(.pc-hero__image, .pc-hero__video) {
		transform-origin: 50% 0;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero--focus-bottom[data-pc-entrance] :is(.pc-hero__image, .pc-hero__video) {
		transform-origin: 50% 100%;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero[data-pc-entrance] .pc-hero__ticks .pc-ticks > i {
		transform-origin: 50% 100%;
	}

	/* Playing (until the script marks the Hero done). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero[data-pc-entrance].pc-in:not(.pc-done) :is(.pc-hero__image, .pc-hero__video) {
		transition: opacity 1400ms var(--pc-motion-ease), scale 1400ms var(--pc-motion-ease);
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero[data-pc-entrance].pc-in:not(.pc-done) :is(.pc-hero__title, .pc-hero__display) {
		clip-path: inset(-0.5em);
		transition: clip-path var(--pc-motion-duration) var(--pc-motion-ease), translate var(--pc-motion-duration) var(--pc-motion-ease);
		transition-delay: 100ms;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero[data-pc-entrance].pc-in:not(.pc-done) :is(.pc-hero__body, .pc-hero__actions > *) {
		transition: opacity var(--pc-motion-duration) var(--pc-motion-ease), translate var(--pc-motion-duration) var(--pc-motion-ease);
		transition-delay: 400ms;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero[data-pc-entrance].pc-in:not(.pc-done) .pc-hero__actions > * {
		transition-delay: calc(550ms + var(--pc-i, 0) * 90ms);
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero[data-pc-entrance].pc-in:not(.pc-done) .pc-hero__ticks .pc-ticks > i {
		transition: opacity var(--pc-motion-duration) var(--pc-motion-ease), scale var(--pc-motion-duration) var(--pc-motion-ease);
		transition-delay: calc(700ms + var(--pc-i, 0) * 50ms);
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-hero[data-pc-entrance].pc-in:not(.pc-done) .pc-hero__scroll {
		transition: opacity var(--pc-motion-duration) var(--pc-motion-ease);
		transition-delay: 1300ms;
	}

	/* Order within a scene: buttons, ticks (11) and spec cells (4). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] :is(.pc-hero__actions, .pc-ticks, .pc-stat-row--spec) > :nth-child(2) { --pc-i: 1; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] :is(.pc-ticks, .pc-stat-row--spec) > :nth-child(3) { --pc-i: 2; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] :is(.pc-ticks, .pc-stat-row--spec) > :nth-child(4) { --pc-i: 3; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] .pc-ticks > :nth-child(5) { --pc-i: 4; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] .pc-ticks > :nth-child(6) { --pc-i: 5; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] .pc-ticks > :nth-child(7) { --pc-i: 6; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] .pc-ticks > :nth-child(8) { --pc-i: 7; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] .pc-ticks > :nth-child(9) { --pc-i: 8; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] .pc-ticks > :nth-child(10) { --pc-i: 9; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page [data-pc-entrance] .pc-ticks > :nth-child(11) { --pc-i: 10; }

	/* ======================================
	   Band (scrolls into view; every type)
	   Lines draw left to right (a clip opening rightwards), ticks rise one by
	   one, text takes the shared reveal, and the year rolls like an odometer.
	   Date / Made in:  0ms badge outline draws in; 300ms year, each digit
	                    rolling from 0 through 0–9 to its value, 120ms apart
	                    (1400ms each, ~1.8s in all); 250ms ticks, 60ms apart;
	                    450ms "Made in" pill draws in
	   Spec sheet:      each spec sweeps in from its accent rule, 120ms apart
	   Lift point:      0ms arrows slide into place, 200ms side labels;
	                    150ms / 300ms hazard strips draw in; 350ms text,
	                    480ms rating
	   Caution:         one sweep left to right: 0ms left text, 150ms stripes,
	                    300ms pill, 450ms right text, 500ms stripes, 600ms
	                    crosshair turns into place
	====================================== */

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance]:not(.pc-in) :is(.pc-band__est, .pc-band__pill, .pc-band__hazard),
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance]:not(.pc-in) .pc-stat-row--spec .pc-stat {
		clip-path: inset(-8px calc(100% + 8px) -8px -8px);
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance]:not(.pc-in) .pc-band__est-year:not(.pc-odo-on),
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance]:not(.pc-in) .pc-band__lift-label {
		opacity: 0;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance]:not(.pc-in) .pc-odo__strip {
		translate: none;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance]:not(.pc-in) .pc-band__ticks .pc-ticks > i {
		opacity: 0;
		scale: 1 0;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance]:not(.pc-in) :is(.pc-band__limits, .pc-band__rating, .pc-band__corner--start, .pc-band__coords) {
		opacity: 0;
		translate: 0 var(--pc-motion-rise);
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance]:not(.pc-in) .pc-band__arrow--top {
		opacity: 0;
		translate: 0 -14px;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance]:not(.pc-in) .pc-band__arrow--bottom {
		opacity: 0;
		translate: 0 14px;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance]:not(.pc-in) .pc-band__crosshair {
		opacity: 0;
		rotate: -90deg;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance] .pc-band__ticks .pc-ticks > i {
		transform-origin: 50% 100%;
	}

	/* Playing (until the script marks the Band done). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) :is(.pc-band__est, .pc-band__pill, .pc-band__hazard),
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-stat-row--spec .pc-stat {
		clip-path: inset(-8px);
		transition: clip-path var(--pc-motion-duration) var(--pc-motion-ease);
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) :is(.pc-band__lift-label, .pc-band__limits, .pc-band__rating, .pc-band__corner--start, .pc-band__coords, .pc-band__arrow) {
		transition: opacity var(--pc-motion-duration) var(--pc-motion-ease), translate var(--pc-motion-duration) var(--pc-motion-ease);
	}

	/* The year fades in only without reels (they show it from the start, at 0). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-band__est-year:not(.pc-odo-on) {
		transition: opacity var(--pc-motion-duration) var(--pc-motion-ease);
		transition-delay: 300ms;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-odo__strip {
		transition: translate 1400ms var(--pc-motion-ease);
		transition-delay: calc(300ms + (var(--pc-odo-i, 0) + var(--pc-odo-base, 0)) * 120ms);
	}

	/* The year is two texts ("20", "24"): the second pair's reels follow the first's, as one 4-digit roll. */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band .pc-band__est-year--end {
		--pc-odo-base: 2;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-band__ticks .pc-ticks > i {
		transition: opacity var(--pc-motion-duration) var(--pc-motion-ease), scale var(--pc-motion-duration) var(--pc-motion-ease);
		transition-delay: calc(250ms + var(--pc-i, 0) * 60ms);
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-band__crosshair {
		transition: opacity var(--pc-motion-duration) var(--pc-motion-ease), rotate var(--pc-motion-duration) var(--pc-motion-ease);
		transition-delay: 600ms;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-band__pill--made-in { transition-delay: 450ms; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-stat-row--spec .pc-stat { transition-delay: calc(var(--pc-i, 0) * 120ms); }
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-band__hazard--top,
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-band__hazard--l { transition-delay: 150ms; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-band__hazard--bottom,
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-band__pill--caution { transition-delay: 300ms; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-band__hazard--r { transition-delay: 500ms; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-band__lift-label { transition-delay: 200ms; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-band__limits { transition-delay: 350ms; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-band__coords { transition-delay: 450ms; }
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-band[data-pc-entrance].pc-in:not(.pc-done) .pc-band__rating { transition-delay: 480ms; }
}

/* ======================================
   Banner "Animated lines" (data-pc-signal; Options tab, off by default)
   Separate from Entrance Animation (which reveals the headline and details):
   only the decorative lines and graphic move, never text. Desktop only (the
   Figma layout, 1100px and up) and only with motion allowed; nothing here
   applies on phones, in print, without the script or after a failure.

   The script (pc-motion.js, signals()) marks each banner:
   - .pc-signal-wait  below the fold at load: lines and graphic hidden until
                      scrolled to (12% above the bottom edge). A banner in view
                      at load never waits: its lines show at once.
   - .pc-signal-in    drawing in: each panel slides 16px towards the headline
                      while its lines fade in one after another, outer line
                      first (--pc-i, 40ms apart); then the graphic settles.
   - .pc-signal-out   while on screen, after SIGNAL_REPLAY_GAP_MS at rest
                      (pc-motion.js): the entrance in exact reverse (graphic
                      first, then the lines last-on first-off), then at once
                      .pc-signal-in again: entrance → rest → reverse → entrance.
                      Stopped when the banner leaves the screen, so nothing
                      runs offscreen.
   Only opacity, translate and scale change, inside the panels' own clip, so
   nothing shifts.
====================================== */

@media screen and (min-width: 1100px) and (prefers-reduced-motion: no-preference) {

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal].pc-signal-wait :is(.pc-banner__mark--reach, .pc-banner__mark--htx, .pc-banner__mark--flag, .pc-banner__arrow) {
		opacity: 0;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal].pc-signal-wait .pc-banner__stripes--start .pc-banner__lines {
		translate: -16px 0;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal].pc-signal-wait .pc-banner__stripes--end .pc-banner__lines {
		translate: 16px 0;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal].pc-signal-wait :is(.pc-banner__mark--reach, .pc-banner__mark--htx, .pc-banner__mark--flag) {
		scale: 0.9;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal].pc-signal-wait .pc-banner__arrow {
		translate: 0 -8px;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal].pc-signal-in .pc-banner__lines {
		transition: translate var(--pc-motion-duration) var(--pc-motion-ease);
	}

	/* The diagonals stay exactly where they are and switch on one by one, like a system powering up: each whole
	   stroke from off to fully on in 140ms, nothing moving; the left panel from its leftmost visible diagonal
	   rightwards, the right panel from its rightmost leftwards, both at once (pc-motion.js sets the order, --pc-i,
	   and the step, --pc-stagger: 35-55ms by the number of visible diagonals). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal].pc-signal-wait :is(.pc-banner__stripes--start, .pc-banner__stripes--end) .pc-banner__lines {
		translate: none;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal].pc-signal-wait .pc-banner__stripe {
		opacity: 0;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal].pc-signal-in .pc-banner__stripe {
		animation: pc-stripe-on 140ms cubic-bezier(0.2, 0, 0, 1) calc(var(--pc-i, 0) * var(--pc-stagger, 45ms)) both;
	}

	@keyframes pc-stripe-on {
		from { opacity: 0; }
		to { opacity: 1; }
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal].pc-signal-in :is(.pc-banner__mark--reach, .pc-banner__mark--htx, .pc-banner__mark--flag, .pc-banner__arrow) {
		transition: opacity 600ms var(--pc-motion-ease), scale 600ms var(--pc-motion-ease), translate 600ms var(--pc-motion-ease);
		transition-delay: 700ms;
	}

	/* The entrance in exact reverse (the loop's exit; pc-motion.js sets --pc-out-total, the entrance's length T).
	   Each line plays pc-stripe-off (pc-stripe-on backwards: same 140ms, the easing curve mirrored in time) starting
	   at T minus the moment it finished switching on, so the last line on is the first off and the outer one goes
	   last. Its own keyframes, not pc-stripe-on reversed: with the same name the entrance would not restart (the
	   lines would snap on). The graphic leaves
	   first, at T − 1300ms, over 600ms on the time-reversed ease. Over the .pc-signal-wait state, which they end in,
	   so .pc-signal-in follows straight on. */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal].pc-signal-out .pc-banner__stripe {
		animation: pc-stripe-off 140ms cubic-bezier(1, 0, 0.8, 1) calc(var(--pc-out-total, 1300ms) - var(--pc-i, 0) * var(--pc-stagger, 45ms) - 140ms) both;
	}

	@keyframes pc-stripe-off {
		from { opacity: 1; }
		to { opacity: 0; }
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal].pc-signal-out :is(.pc-banner__mark--reach, .pc-banner__mark--htx, .pc-banner__mark--flag, .pc-banner__arrow) {
		transition: opacity 600ms cubic-bezier(0.8, 0, 0.55, 1), scale 600ms cubic-bezier(0.8, 0, 0.55, 1), translate 600ms cubic-bezier(0.8, 0, 0.55, 1);
		transition-delay: calc(var(--pc-out-total, 1300ms) - 1300ms);
	}
}

/* ======================================
   Banner "Animated lines": signal sweep (drawing in only)
   While the lines draw in (.pc-signal-in), the script lays a copy of each
   panel's lines over them (.pc-banner__sweep, removed at rest) in a lighter
   tint of the banner's own line colour (dusk, sunset, sunrise or morning,
   mixed with the text colour). A soft gradient mask (transparent, solid,
   transparent) carries a band of it across the panel towards the headline
   once: the start panel left to right, the end panel right to left. The
   copy slides with the panel. No filters, no glow; nothing stays behind.
====================================== */

@media screen and (min-width: 1100px) and (prefers-reduced-motion: no-preference) {

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal] .pc-banner__sweep {
		position: absolute;
		inset: 0;
		display: block;
		color: #f4f4f2;
		color: color-mix(in srgb, var(--pc-banner-lines, var(--pc-color-brand-dusk)) 45%, var(--pc-color-text-primary, #f4f4f2));
		pointer-events: none;
		-webkit-mask-image: linear-gradient(90deg, transparent 33.333%, #000 50%, transparent 66.667%);
		mask-image: linear-gradient(90deg, transparent 33.333%, #000 50%, transparent 66.667%);
		-webkit-mask-size: 300% 100%;
		mask-size: 300% 100%;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		animation: pc-sweep-start 1200ms var(--pc-motion-ease) 100ms both;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal] .pc-banner__stripes--end .pc-banner__sweep {
		animation-name: pc-sweep-end;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal][data-pc-signal-turn="centre"] .pc-banner__sweep {
		animation-direction: reverse;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal] .pc-banner__sweep-lines {
		display: block;
		width: 100%;
		height: 100%;
		animation: pc-sweep-slide-start var(--pc-motion-duration) var(--pc-motion-ease) both;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal] .pc-banner__stripes--end .pc-banner__sweep-lines {
		animation-name: pc-sweep-slide-end;
	}

	/* The copy at the design size from the panel's inner edge, like the lines, and sliding inside
	   Figma's rectangles (which stay put). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal] :is(.pc-banner__stripes--start, .pc-banner__stripes--end) .pc-banner__sweep-lines {
		width: calc(var(--pc-banner-panel) * var(--pc-banner-u));
		animation: none;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal] .pc-banner__stripes--start .pc-banner__sweep-lines .pc-banner__line-set {
		animation: pc-sweep-slide-start var(--pc-motion-duration) var(--pc-motion-ease) both;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-signal] .pc-banner__stripes--end .pc-banner__sweep-lines .pc-banner__line-set {
		animation: pc-sweep-slide-end var(--pc-motion-duration) var(--pc-motion-ease) both;
	}

	/* The mask is three panels wide: at 100% its band sits left of the panel, at 0% right of it. */
	@keyframes pc-sweep-start {
		from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
		to { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
	}

	@keyframes pc-sweep-end {
		from { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
		to { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
	}

	@keyframes pc-sweep-slide-start {
		from { translate: -16px 0; }
		to { translate: 0 0; }
	}

	@keyframes pc-sweep-slide-end {
		from { translate: 16px 0; }
		to { translate: 0 0; }
	}
}

/* ======================================
   Banner headline, line by line (data-pc-reveal="lines": Entrance
   Animation on, "Headline reveal: Line by line")
   The shared heading mask never hides this headline (first rule): the
   script (pc-motion.js, signals()) hides it only for a banner below the fold
   on desktop with motion allowed (.pc-lines-wait), then (.pc-lines-in) each
   visual line (.pc-banner__lr: a typed line, or a piece of one that wraps,
   .pc-banner__vline) is a fixed, invisible window around its own box (a
   static clip, never animated); the text moves inside it (.pc-reveal-move),
   from entirely below the window (at least 1.35em: the script measures the
   line's glyph ink so no part of any letter starts inside the window) up into
   place, growing from 96% to 100% (a subtle zoom-in), over 1100ms
   on an ease-out expo (a decisive start, a long controlled landing, no
   overshoot); 220ms apart (--pc-l), 250ms after the
   lines when Animated lines is on too; the graphic then settles last. At
   rest every class is removed and the markup is the original. The detail
   row keeps its own entrance. Only clip-path, translate, scale and opacity
   change, so nothing shifts.

   Letter decoding: about 12.5% of the letters (10–15%) (chosen by the script, the same
   on every load; never two within two letters, at most two per line) each flicker through five alternates, 48ms apiece (one glyph per cell at any moment), in the
   banner's own line colour (dusk, sunset, sunrise or morning), then their own
   letter again. They are drawn by a decorative copy next to the heading
   (.pc-banner__decode, aria-hidden, no pointer, not selectable): one box per
   line that rises with it (same animation), holding each letter's cell
   (its own glyph, then the alternates in turn, --d / --s). Meanwhile a mask
   on the real line (.pc-banner__decoding: all of it minus those letters'
   boxes, from the script's --pc-holes-*) hides just those glyphs. The copy
   and the mask only apply while the line plays; at rest both are removed.
====================================== */

.pc-motion-js .pc-page .pc-banner[data-pc-reveal="lines"][data-pc-entrance] .pc-banner__headline.pc-banner__headline {
	clip-path: none;
	translate: none;
	transition: none;
}

/* Pieces of a wrapped line, and the moving content of a masked line (only while it plays): the heading's type,
   against Hyperion's span rule. The Banner's lines travel at least 1.35em (the script makes it more if the ink
   needs it to start fully below its window). */
.pc-motion-js .pc-page :is(.pc-banner__vline, .pc-reveal-move) {
	display: inline-block;
	font: inherit;
}

.pc-page .pc-banner {
	--pc-reveal-travel: 1.35;
}

/* The decorative copy: hidden unless the line reveal is playing (below). */
.pc-motion-js .pc-page .pc-banner__decode {
	display: none;
}

@media screen and (min-width: 1100px) and (prefers-reduced-motion: no-preference) {

	/* Waiting: the text is invisible (Figma's black blocks behind it stay, as drawn). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-reveal="lines"].pc-lines-wait .pc-banner__headline {
		color: transparent;
	}

	/* Each line: a fixed window around its own box (never animated; its bottom from the script's --pc-reveal-ext)… */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-reveal="lines"].pc-lines-in :is(.pc-banner__lr, .pc-banner__decode-line) {
		clip-path: inset(-0.6em -0.5em calc(-1 * var(--pc-reveal-ext, 0.07em)) -0.5em);
	}

	/* …and its content moving up through it from entirely below (--pc-reveal-from, measured from the line's ink). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-reveal="lines"].pc-lines-in :is(.pc-banner__lr > .pc-reveal-move, .pc-banner__decode-move) {
		transform-origin: 50% 100%;
		animation: pc-line-rise 1100ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--pc-lines-delay, 0ms) + var(--pc-l, 0) * 220ms) both;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-reveal="lines"][data-pc-signal] {
		--pc-lines-delay: 250ms;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-reveal="lines"][data-pc-signal].pc-signal-in :is(.pc-banner__mark--reach, .pc-banner__mark--htx, .pc-banner__mark--flag, .pc-banner__arrow) {
		transition-delay: 1100ms;
	}

	/* Letter decoding (see above). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-reveal="lines"].pc-lines-in .pc-banner__lr.pc-banner__decoding > .pc-reveal-move {
		-webkit-mask-image: var(--pc-holes-image);
		mask-image: var(--pc-holes-image);
		-webkit-mask-size: var(--pc-holes-size);
		mask-size: var(--pc-holes-size);
		-webkit-mask-position: var(--pc-holes-position);
		mask-position: var(--pc-holes-position);
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-composite: xor;
		mask-composite: exclude;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-reveal="lines"].pc-lines-in .pc-banner__decode {
		position: absolute;
		z-index: 1;
		inset: 0;
		display: block;
		line-height: normal;
		text-transform: none;
		pointer-events: none;
		user-select: none;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-reveal="lines"].pc-lines-in :is(.pc-banner__decode-line, .pc-banner__decode-char, .pc-banner__decode-real, .pc-banner__decode-alt) {
		position: absolute;
		display: block;
		font: inherit;
		white-space: pre;
	}

	/* font: inherit on every part of the copy, the moving box included: Hyperion's span rule would otherwise
	   size them at its body size (tiny letters that snap to full size). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-reveal="lines"].pc-lines-in :is(.pc-banner__decode-move, .pc-banner__decode-real, .pc-banner__decode-alt) {
		position: absolute;
		display: block;
		inset: 0;
		font: inherit;
	}

	/* An alternate is centred on the letter's box (it may be a little wider or narrower). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-reveal="lines"].pc-lines-in .pc-banner__decode-alt {
		display: flex;
		justify-content: center;
		visibility: hidden;
		color: var(--pc-banner-lines, currentColor);
		animation: pc-decode-on 48ms linear calc(var(--d, 0ms) + var(--s, 0) * 48ms);
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-banner[data-pc-reveal="lines"].pc-lines-in .pc-banner__decode-real {
		animation: pc-decode-off 240ms linear var(--d, 0ms);
	}

	/* Held only while active (no fill): an alternate shows just for its slot, the real letter's copy hides
	   just for the whole swap; neither depends on an end value (a steps() end can round short and stick).
	   Visibility, not opacity: opacity runs on the compositor, which can paint one cell's neighbouring slots a
	   frame apart (two glyphs at once); visibility is sampled for every cell in the same frame. */
	@keyframes pc-decode-on {
		from, to { visibility: visible; }
	}

	@keyframes pc-decode-off {
		from, to { visibility: hidden; }
	}

	@keyframes pc-line-rise {
		from { translate: 0 var(--pc-reveal-from, 1.35em); scale: 0.96; }
		to { translate: 0 0; scale: 1; }
	}
}

/* ======================================
   Hero and Feature Promo headlines, line by line; Feature Promo badge build
   (with the section's Entrance Animation; desktop 1100px+, motion allowed)
   The shared heading mask never applies to these headlines (first rule).
   The script (pc-motion.js, headlines()) leaves a headline in view at load
   static; one below the fold waits hidden (.pc-rise-wait, opacity only) and,
   when the section's entrance starts, is split into its visual lines
   (.pc-rise-piece; natural wraps included) only while it plays. Each piece
   is a fixed, invisible window around its own box (a static clip); its text
   moves inside it (.pc-reveal-move) from entirely below the window (at least
   1em, more if the measured glyph ink needs it) while it grows from
   --pc-rise-scale to 100%,
   on a premium ease-out (no overshoot), --pc-rise-gap apart. At rest the
   pieces are removed and the markup is the original.

   Feature Promo's badge starts 250ms after the first line and completes as
   the last line settles (--pc-rise-hold), built from its own artwork with
   masks matched to the SVG geometry (the artwork is never changed):
   - US flag: seven bands, one per stripe row of the drawing (10 of 65
     units each), each sweeping left to right, top to bottom (canton stars
     arrive with their rows).
   - HTX badge: the frame is drawn by a clockwise sweep from the top while
     the "HTX" letters stay masked; then the letters resolve from their
     centre line. It settles from 96% as it builds.
   Only clip-path, translate, scale, opacity and masks change; no filters,
   no loops; nothing remains hidden after the animation.
====================================== */

.pc-page .pc-hero {
	--pc-rise-dur: 1000ms;
	--pc-rise-gap: 180ms;
	--pc-rise-scale: 0.96;
	--pc-rise-hold: 0ms;
	--pc-reveal-travel: 1;
}

.pc-page .pc-feature {
	--pc-rise-dur: 900ms;
	--pc-rise-gap: 160ms;
	--pc-rise-scale: 0.97;
	--pc-rise-hold: 1450ms;
	--pc-reveal-travel: 1;
}

.pc-motion-js .pc-page .pc-hero[data-pc-entrance] :is(.pc-hero__title, .pc-hero__display),
.pc-motion-js .pc-page .pc-feature[data-pc-entrance] .pc-feature__headline {
	clip-path: none !important;
	translate: none !important;
	transition: none !important;
}

/* Pieces (only while a headline plays): the heading's type, against Hyperion's span rule. */
.pc-motion-js .pc-page .pc-rise-piece {
	display: inline-block;
	font: inherit;
}

@property --pc-flag-p {
	syntax: "<number>";
	inherits: false;
	initial-value: 1;
}

@property --pc-htx-a {
	syntax: "<angle>";
	inherits: false;
	initial-value: 370deg;
}

@property --pc-htx-t {
	syntax: "<number>";
	inherits: false;
	initial-value: 1;
}

@media screen and (min-width: 1100px) and (prefers-reduced-motion: no-preference) {

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-rise-wait :is(.pc-hero__title, .pc-hero__display, .pc-feature__headline),
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-feature.pc-rise-wait .pc-feature__art :is(.pc-feature__flag, .pc-feature__htx) {
		opacity: 0;
	}

	/* Each line: a fixed window around its own box (never animated)… */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-rise-in .pc-rise-piece {
		clip-path: inset(-0.6em -0.5em calc(-1 * var(--pc-reveal-ext, 0.07em)) -0.5em);
	}

	/* …and its content moving up through it from entirely below (--pc-reveal-from, measured from the line's ink). */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-rise-in .pc-rise-piece > .pc-reveal-move {
		transform-origin: 50% 100%;
		animation: pc-rise var(--pc-rise-dur, 1000ms) cubic-bezier(0.22, 1, 0.36, 1) calc(var(--pc-l, 0) * var(--pc-rise-gap, 180ms)) both;
	}

	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-feature.pc-rise-in .pc-feature__art .pc-feature__flag {
		-webkit-mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000);
		mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000);
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-position: 0 0, 0 18.182%, 0 36.364%, 0 54.545%, 0 72.727%, 0 90.909%, 0 109.091%;
		mask-position: 0 0, 0 18.182%, 0 36.364%, 0 54.545%, 0 72.727%, 0 90.909%, 0 109.091%;
		-webkit-mask-size: calc(clamp(0, var(--pc-flag-p) * 9, 3) * 33.34%) 15.385%, calc(clamp(0, var(--pc-flag-p) * 9 - 1, 3) * 33.34%) 15.385%, calc(clamp(0, var(--pc-flag-p) * 9 - 2, 3) * 33.34%) 15.385%, calc(clamp(0, var(--pc-flag-p) * 9 - 3, 3) * 33.34%) 15.385%, calc(clamp(0, var(--pc-flag-p) * 9 - 4, 3) * 33.34%) 15.385%, calc(clamp(0, var(--pc-flag-p) * 9 - 5, 3) * 33.34%) 15.385%, calc(clamp(0, var(--pc-flag-p) * 9 - 6, 3) * 33.34%) 15.385%;
		mask-size: calc(clamp(0, var(--pc-flag-p) * 9, 3) * 33.34%) 15.385%, calc(clamp(0, var(--pc-flag-p) * 9 - 1, 3) * 33.34%) 15.385%, calc(clamp(0, var(--pc-flag-p) * 9 - 2, 3) * 33.34%) 15.385%, calc(clamp(0, var(--pc-flag-p) * 9 - 3, 3) * 33.34%) 15.385%, calc(clamp(0, var(--pc-flag-p) * 9 - 4, 3) * 33.34%) 15.385%, calc(clamp(0, var(--pc-flag-p) * 9 - 5, 3) * 33.34%) 15.385%, calc(clamp(0, var(--pc-flag-p) * 9 - 6, 3) * 33.34%) 15.385%;
		animation: pc-flag-build 1200ms var(--pc-motion-ease) 250ms both;
	}

	/* Layers, top first: the letters (growing from their centre line) added to [the sweep intersected with
	   (everything except the letters' box)]. */
	.pc-motion-js:not(.pc-motion-failed) .pc-page .pc-feature.pc-rise-in .pc-feature__art .pc-feature__htx {
		-webkit-mask-image: linear-gradient(#000, #000), conic-gradient(from 0deg at 50% 50%, #000 calc(var(--pc-htx-a) - 10deg), transparent var(--pc-htx-a)), linear-gradient(#000, #000), linear-gradient(#000, #000);
		mask-image: linear-gradient(#000, #000), conic-gradient(from 0deg at 50% 50%, #000 calc(var(--pc-htx-a) - 10deg), transparent var(--pc-htx-a)), linear-gradient(#000, #000), linear-gradient(#000, #000);
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-position: 50% 50%, 0 0, 50% 50%, 0 0;
		mask-position: 50% 50%, 0 0, 50% 50%, 0 0;
		-webkit-mask-size: 54% calc(30% * var(--pc-htx-t)), 100% 100%, 54% 30%, 100% 100%;
		mask-size: 54% calc(30% * var(--pc-htx-t)), 100% 100%, 54% 30%, 100% 100%;
		mask-composite: add, intersect, exclude, add;
		animation: pc-htx-build 1200ms var(--pc-motion-ease) 250ms both;
	}

	@keyframes pc-rise {
		from { translate: 0 var(--pc-reveal-from, 1em); scale: var(--pc-rise-scale, 0.97); }
		to { translate: 0 0; scale: 1; }
	}

	@keyframes pc-flag-build {
		from { --pc-flag-p: 0; }
		to { --pc-flag-p: 1; }
	}

	@keyframes pc-htx-build {
		0% { --pc-htx-a: 0deg; --pc-htx-t: 0; scale: 0.96; }
		65% { --pc-htx-a: 370deg; --pc-htx-t: 0; }
		100% { --pc-htx-a: 370deg; --pc-htx-t: 1; scale: 1; }
	}
}
