/* Align theme — layout & accessibility CSS that theme.json can't express.
   Colour, type, spacing and radius tokens all come from theme.json /
   global styles; nothing here duplicates those values. */

/* General Sans — self-hosted variable font (weight axis 200-700), used
   as the primary typeface in place of the earlier system-font stack
   (theme.json's "primary" font family). Free for commercial use under
   Fontshare's license; see assets/fonts/LICENSE.txt. A single variable
   file covers every weight the design uses (400 body, 600 nav/labels),
   so there's only one font request instead of one per weight. */
@font-face {
	font-family: 'General Sans';
	src: url('../fonts/GeneralSans-Variable.woff2') format('woff2');
	font-weight: 200 700;
	font-style: normal;
	font-display: swap;
}


/* Body text stays left-aligned; this evens out line lengths and avoids
   single-word last lines. Browsers without support ignore it. */
p,
li {
	text-wrap: pretty;
}

/* Ambient backgrounds — a little atmosphere in place of flat colour
   blocks. Three treatments:
   1. A whole-site paper-grain texture: reinforces the Paper/Cloud/Mist
      surface tokens with tactile noise instead of perfectly flat
      colour. Barely visible on its own (2.5% opacity) — felt more than
      seen — and never intercepts clicks (fixed, pointer-events:none).
   2. .align-hero-glow: the brand deck's fine-line wave ribbons and soft
      colour discs behind the Home hero, in the Align logo's own
      gradient colours (theme.json's "align-brand") — the same accent
      language the floating UI fragments already borrow from the logo,
      so the hero's backdrop and its foreground cards read as one system.
   3. .align-fade-mist: softens the CTA band's flat Paper-to-Mist edge
      into a gradient, so the section boundary reads as a soft tonal
      shift instead of a hard colour cut, with a fainter mirrored copy
      of the hero waves. Needs two classes combined to
      out-specificity core's own `!important` background-color rule on
      .has-mist-background-color. */
body {
	position: relative;
}
body::after {
	content: "";
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: 0.025;
	mix-blend-mode: multiply;
	pointer-events: none;
	z-index: 2;
}

/* Hero backdrop, matching the brand deck: large soft discs in the logo's
   colours (::before) plus the fine-line twisting wave ribbons (::after,
   assets/images/hero-waves.svg — regenerate with
   scripts/generate-hero-waves.mjs). The section is full-bleed and both
   layers fade out before its top/bottom edges, so the backdrop never
   reads as a box with a hard edge against the page. */
.align-hero-glow {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.align-hero-glow::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 6% 4%, rgba(255, 183, 120, 0.22), rgba(255, 183, 120, 0) 30vw),
		radial-gradient(circle at 104% 46%, rgba(129, 220, 190, 0.2), rgba(129, 220, 190, 0) 24vw),
		radial-gradient(circle at 70% 98%, rgba(160, 180, 255, 0.14), rgba(160, 180, 255, 0) 22vw),
		radial-gradient(circle at 0% 70%, rgba(240, 98, 146, 0.08), rgba(240, 98, 146, 0) 24vw);
	pointer-events: none;
	z-index: -1;
	/* Entrance + idle drift (transform), with cursor parallax layered on
	   via the individual translate property (--mx/--my, -1..1, set by
	   assets/js/hero-intro.js). */
	animation: align-disc-in 1.8s ease-out backwards, align-disc-drift 18s ease-in-out infinite alternate;
	translate: calc(var(--mx, 0) * -22px) calc(var(--my, 0) * -14px);
}
.align-hero-glow::after,
.align-hero-waves {
	content: "";
	position: absolute;
	left: -5%;
	right: -5%;
	top: 6%;
	height: 88%;
	background: url("../images/hero-waves.svg") center / cover no-repeat;
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
	pointer-events: none;
	z-index: -1;
	animation: align-wave-in 2.4s cubic-bezier(0.22, 0.7, 0.2, 1) 0.15s backwards, align-wave-drift 22s ease-in-out infinite alternate;
	/* Scroll-linked motion (assets/js/scroll-waves.js sets --wave-p, -1..1,
	   as the section crosses the viewport) plus cursor parallax (--mx/--my
	   from assets/js/hero-intro.js). Uses the individual translate/
	   rotate/scale properties so it layers on top of the drift keyframes,
	   which own `transform`. */
	translate: calc(var(--wave-p, 0) * -14% + var(--mx, 0) * 30px) calc(var(--wave-p, 0) * -160px + var(--my, 0) * 18px);
	rotate: calc(var(--wave-p, 0) * 5deg);
	scale: calc(1.15 + var(--wave-p, 0) * 0.12);
}

/* hero-intro.js swaps the static SVG background for a canvas
   (.align-hero-waves) that redraws the same ribbons so they can ripple
   under the cursor. The canvas shares every rule above; these overrides
   stop it inheriting the SVG background and core's constrained-layout
   max-width/auto margins, and give it an explicit width (a canvas is a
   replaced element, so left+right alone wouldn't stretch it). */
.align-hero-waves {
	background: none;
	right: auto;
	width: 110%;
	max-width: none;
	margin: 0 !important;
}
.align-hero-glow.has-wave-canvas::after {
	display: none;
}

/* Subpage hero: a lighter take on Home's — softer discs and ribbons that
   just drift (no sweep-in entrance, cursor or scroll motion), so the
   page's copy and tabs stay the focus. */
.align-hero-glow--light::before {
	opacity: 0.7;
	animation: align-disc-drift 18s ease-in-out infinite alternate;
}
.align-hero-glow--light::after {
	opacity: 0.45;
	animation: align-wave-drift 22s ease-in-out infinite alternate;
}

/* First-load entrance: the ribbons sweep in left to right, the colour
   discs bloom in and then breathe slowly. */
@keyframes align-wave-in {
	from { opacity: 0; clip-path: inset(0 100% 0 0); }
	to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes align-disc-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes align-disc-drift {
	0% { transform: scale(1) translate(0, 0); }
	100% { transform: scale(1.08) translate(1.5%, 2%); }
}

/* Barely-there drift so the ribbons feel alive without drawing the eye
   away from the copy; disabled by the reduced-motion block below. */
@keyframes align-wave-drift {
	0% { transform: translateX(-2%) scaleY(1); }
	100% { transform: translateX(2%) scaleY(1.08); }
}

/* CTA band echoes the hero's waves at a lower strength so the page opens
   and closes on the same motif. */
.align-fade-mist {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.align-fade-mist.has-mist-background-color {
	background: linear-gradient(180deg, var(--wp--preset--color--paper) 0%, var(--wp--preset--color--mist) 100%) !important;
}
.align-fade-mist::after {
	content: "";
	position: absolute;
	inset: -20% -5%;
	background: url("../images/hero-waves.svg") center / cover no-repeat;
	transform: scaleX(-1);
	translate: calc(var(--wave-p, 0) * 14%) calc(var(--wave-p, 0) * -160px);
	rotate: calc(var(--wave-p, 0) * 5deg);
	scale: calc(1.15 + var(--wave-p, 0) * 0.12);
	opacity: 0.55;
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 75%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 75%, transparent 100%);
	pointer-events: none;
	z-index: -1;
}

/* Skip link */
.skip-link {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--paper);
	padding: var(--wp--preset--spacing--13) var(--wp--preset--spacing--20);
	position: absolute;
	left: 0;
	top: -100px;
	z-index: 100000;
	border-radius: 0 0 var(--wp--custom--radius--tags) 0;
	transition: top 0.15s ease;
}
.skip-link:focus {
	top: 0;
}

/* Micro-interactions: buttons & links (site-wide). Two independent
   pointer-driven effects on primary buttons — a hover shadow-lift, a
   quick press-scale, and a subtle magnetic pull toward the cursor
   (assets/js/micro-interactions.js sets --magnet-x/--magnet-y on
   pointermove) — plus a from-the-left underline grow on in-content
   links. All CSS-only except the two custom properties JS drives; the
   script itself no-ops on touch/coarse pointers and under
   prefers-reduced-motion, so these are always inert there regardless. */
.wp-block-button__link {
	--magnet-x: 0px;
	--magnet-y: 0px;
	transform: translate(var(--magnet-x), var(--magnet-y));
	transition: transform 0.15s ease-out, box-shadow 0.25s ease;
}
.wp-block-button__link:hover {
	box-shadow: 0 14px 28px -10px rgba(5, 44, 84, 0.35);
}
.wp-block-button__link:active {
	transform: translate(var(--magnet-x), var(--magnet-y)) scale(0.96);
	box-shadow: 0 6px 14px -6px rgba(5, 44, 84, 0.3);
}

.entry-content a:not(.wp-element-button) {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0% 1px;
	transition: background-size 0.3s ease;
}
.entry-content a:not(.wp-element-button):hover,
.entry-content a:not(.wp-element-button):focus-visible {
	background-size: 100% 1px;
}

/* Consistent, visible focus state for keyboard users on every interactive
   element — buttons, links, block-based nav all inherit this. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--wp--preset--color--link);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: var(--wp--preset--color--paper);
	border-radius: var(--wp--custom--radius--tags);
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.3);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--ink);
	display: block;
	font-size: var(--wp--preset--font-size--body-sm);
	height: auto;
	left: var(--wp--preset--spacing--10);
	line-height: normal;
	padding: var(--wp--preset--spacing--13) var(--wp--preset--spacing--20);
	text-decoration: none;
	top: var(--wp--preset--spacing--10);
	width: auto;
	z-index: 100000;
}

/* Section divider hairline, used by the align/hairline block style. */
.is-style-align-hairline {
	border: none;
	border-top: 1px solid var(--wp--preset--color--border);
}

/* Category tag / pill, used inside card patterns for status or topic
   labels. Purely decorative, never interactive — matches DESIGN.md's
   "Category Color Tag" component. */
.align-tag {
	display: inline-block;
	border-radius: var(--wp--custom--radius--tags);
	padding: var(--wp--preset--spacing--5) var(--wp--preset--spacing--13);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: var(--wp--custom--font-weight--semibold);
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--mint-whisper);
}
.align-tag.is-lavender {
	background: var(--wp--preset--color--lavender-drift);
}
.align-tag.is-mist {
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--slate);
}

/* Stat tile grid spacing fallback for browsers where the block's own
   editor.css hasn't been enqueued (front end always has this file). */
.wp-block-align-stat-tile {
	text-align: center;
}

/* Section sub-navigation: tabs at the top of a subpage that jump to its
   sections. It sticks under the floating header, and
   assets/js/subnav-scroll.js marks the tab for the section in view with
   `.is-current` and sets --align-subnav-top to the header's height. (For
   tabs that link to other pages, align_mark_current_subnav_item() in
   functions.php marks the current page's tab instead.) */
.align-section-subnav {
	position: sticky;
	top: var(--align-subnav-top, 0px);
	z-index: 90;
	background: var(--wp--preset--color--paper);
}
.align-feature-section,
.align-page-part {
	scroll-margin-top: var(--align-section-offset, 140px);
}

/* On a top-level page, each tab is a part (.align-page-part, generated by
   scripts/generate-starter-content.ps1) opening with its own left-aligned
   heading and intro; a hairline separates one part from the next. */
.align-page-part + .align-page-part > .align-part-intro,
.align-page-part + .align-page-part > .align-feature-section:first-child,
.align-page-part + .align-page-part > .align-page-summary {
	border-top: 1px solid var(--wp--preset--color--mist);
}
/* The tabs always start at the left edge of the content column, where
   each section's heading starts. */
@media (max-width: 600px) {
	/* One swipeable row on phones rather than several wrapped rows
	   taking up the screen while the bar is stuck. */
	.align-section-subnav__list {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.align-section-subnav__list li { flex: none; }
}
.align-section-subnav__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--10) var(--wp--preset--spacing--10);
	list-style: none;
	margin: 0;
	padding: 0;
}
.align-section-subnav__list a {
	display: inline-block;
	font-size: var(--wp--preset--font-size--caption);
	font-weight: var(--wp--custom--font-weight--semibold);
	text-decoration: none;
	color: var(--wp--preset--color--slate);
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--19);
	border-radius: 999px;
	transition: background-color 0.15s ease-out, color 0.15s ease-out;
}
.align-section-subnav__list a:hover,
.align-section-subnav__list a:focus-visible {
	color: var(--wp--preset--color--navy);
}
.align-section-subnav__list .is-current a {
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--navy);
}

/* Sub-page hero (patterns/page-hero-simple.php, "constrained" layout with
   a narrower contentSize for readable line length) sits directly before
   the sub-nav on every grouped subpage. The constrained layout's default
   auto/auto margins centre that narrower box within the wide row, which
   reads as off-centre against the full-width sections below it — so
   left-align it instead, keeping the same max width. Targeted
   structurally (not by class) so it applies regardless of how the page's
   content was authored. */
.entry-content > .is-layout-constrained:not(.align-hero-glow):has(+ .align-section-subnav) > * {
	/* Beats core's own per-block "margin-left/right: auto !important"
	   layout rule (same specificity, but this selector is more specific). */
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Scroll-reveal for the Home page's top-level sections (see
   assets/js/scroll-reveal.js, enqueued only on the front page). Each
   section starts faded/offset and settles into place the first time it
   scrolls into view; JS decides which sections qualify — this file only
   supplies the two visual states. */
.align-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.align-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* First-load entrance for the hero copy. Every rule uses `backwards`
   fill and only a `from` keyframe, so once it finishes the element sits
   in its normal style. */
.align-hero-glow .wp-block-group > p,
.align-hero-glow h1,
.align-hero-glow .wp-block-buttons {
	animation: align-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.align-hero-glow .wp-block-group > p:first-child { animation-delay: 0.05s; }
.align-hero-glow h1 { animation-delay: 0.2s; animation-duration: 1.1s; }
.align-hero-glow .wp-block-group > p:nth-of-type(2) { animation-delay: 0.5s; }
.align-hero-glow .wp-block-group > p:nth-of-type(3) { animation-delay: 0.62s; }
.align-hero-glow .wp-block-buttons { animation-delay: 0.8s; }
@keyframes align-rise {
	from { opacity: 0; translate: 0 28px; filter: blur(8px); }
}

/* Brand-gradient emphasis on a key phrase of the H1 (wrapped by
   assets/js/hero-intro.js), with a slow colour sweep. */
.align-gradient-text {
	background: linear-gradient(100deg, #f57c00 0%, #b44fc4 30%, #1f9fd6 62%, #35a86b 85%, #f57c00 100%) 0 0 / 220% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	animation: align-text-sweep 9s linear infinite;
}
@keyframes align-text-sweep {
	to { background-position: -220% 0; }
}

@keyframes align-float {
	0%, 100% { transform: rotate(var(--rotate)) translateY(0); }
	50% { transform: rotate(var(--rotate)) translateY(-14px); }
}

/* Feature-section floating UI fragments (Home page) — a small "mini
   dashboard" card plus an overlapping corner badge, used in place of a
   device screenshot for each of the six two-column feature sections
   (Platform Overview through Security & Governance). Calmer than the
   hero collage on purpose: a UI panel shouldn't wobble, so only the
   corner badge gets the idle float (align-float, reused from the hero),
   at a slower pace so six of them down one page doesn't read as six
   separate busy animations. Card rotation and badge corner vary per
   section via the --N modifiers so six near-identical components don't
   look copy-pasted. */
.align-feature-visual {
	/* Fixed width, not 100% — the parent section is a flex row and this
	   div's own wp:group ancestor is a flex item with no flex-grow, so it
	   shrink-wraps to whatever width its content needs. A percentage
	   here would resolve against that already-shrunk parent and do
	   nothing; stating the width outright is what makes the ancestor
	   grow to fit it, so every section's card sits at the same width
	   and position instead of drifting per section. */
	width: 560px;
	max-width: 100%;
	position: relative;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Gives .align-feature-card's rotateX/rotateY (below) somewhere to
	   go — without a perspective on an ancestor, 3D transforms on the
	   card flatten to no visible effect. */
	perspective: 1200px;
}
.align-feature-card {
	--rotate: 0deg;
	/* Pointer-driven mouse-tilt (assets/js/micro-interactions.js) reads
	   as a static card until hovered: it sets these two on
	   pointermove and resets both to 0deg on pointerleave, and the
	   transition here is what eases that reset instead of it snapping
	   back. Doesn't fight the badge's own idle float above — that's a
	   different element animating a different property. */
	--tilt-x: 0deg;
	--tilt-y: 0deg;
	width: 100%;
	max-width: 380px;
	background: var(--wp--preset--color--paper);
	border-radius: var(--wp--custom--radius--cards);
	padding: var(--wp--preset--spacing--26);
	box-shadow: 0 24px 48px -12px rgba(5, 44, 84, 0.16), 0 4px 12px rgba(5, 44, 84, 0.06);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--13);
	transform: rotate(var(--rotate)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.align-feature-card:hover {
	box-shadow: 0 32px 60px -14px rgba(5, 44, 84, 0.24), 0 6px 16px -4px rgba(5, 44, 84, 0.08);
}
.align-feature-card--1 { --rotate: -2deg; }
.align-feature-card--2 { --rotate: 2deg; }
.align-feature-card--3 { --rotate: -3deg; }
.align-feature-card--4 { --rotate: 2deg; }
.align-feature-card--5 { --rotate: -2deg; }
.align-feature-card--6 { --rotate: 3deg; }

.align-feature-card__header {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--10);
}
.align-feature-card__heading {
	margin: 0;
	font-size: var(--wp--preset--font-size--body-lg);
	font-weight: var(--wp--custom--font-weight--semibold);
	color: var(--wp--preset--color--ink);
}
.align-feature-card__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--10);
}
.align-feature-card__label {
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--slate);
}
.align-feature-card__value {
	font-size: var(--wp--preset--font-size--body-lg);
	font-weight: var(--wp--custom--font-weight--semibold);
	color: var(--wp--preset--color--ink);
}
.align-feature-card__bar {
	width: 100%;
	height: 6px;
	border-radius: 999px;
	background: var(--wp--preset--color--mist);
	overflow: hidden;
}
.align-feature-card__bar-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	/* The server-rendered inline width (its real, final value — see the
	   generator) is the no-JS fallback and always wins over any class
	   rule here on specificity grounds. assets/js/scroll-animations.js
	   drops that inline width to 0 for any bar not already on screen,
	   then restores it via the same inline style as the bar scrolls
	   into view; this transition is what makes that read as a "fill"
	   rather than the two jump-cuts it actually is. */
	transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.align-feature-card__bar-fill--orange { background: #ff9800; }
.align-feature-card__bar-fill--blue { background: #4fc3f7; }
.align-feature-card__bar-fill--green { background: #81c784; }
.align-feature-card__bar-fill--purple { background: #ba68c8; }
.align-feature-card__pill-group {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--10);
}

.align-feature-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	flex-shrink: 0;
}
.align-feature-card__icon svg { width: 16px; height: 16px; display: block; }
.align-feature-card__icon--orange { background: rgba(255, 152, 0, 0.22); color: var(--wp--preset--color--navy); }
.align-feature-card__icon--blue { background: rgba(79, 195, 247, 0.24); color: var(--wp--preset--color--navy); }
.align-feature-card__icon--green { background: rgba(129, 199, 132, 0.26); color: var(--wp--preset--color--navy); }
.align-feature-card__icon--purple { background: rgba(186, 104, 200, 0.2); color: var(--wp--preset--color--navy); }

.align-feature-badge {
	position: absolute;
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--10);
	background: var(--wp--preset--color--paper);
	border-radius: 999px;
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20) var(--wp--preset--spacing--10) var(--wp--preset--spacing--10);
	box-shadow: 0 16px 32px -10px rgba(5, 44, 84, 0.18), 0 2px 8px rgba(5, 44, 84, 0.06);
	animation: align-float 9s ease-in-out infinite;
}
.align-feature-badge--1 { bottom: -14px; right: 6%; animation-delay: 0s; }
.align-feature-badge--2 { top: -14px; right: 10%; animation-delay: 1.5s; }
.align-feature-badge--3 { bottom: -14px; left: 4%; animation-delay: 3s; }
.align-feature-badge--4 { top: -10px; left: 8%; animation-delay: 4.5s; }
.align-feature-badge--5 { bottom: -14px; right: 4%; animation-delay: 6s; }
.align-feature-badge--6 { top: -14px; left: 6%; animation-delay: 7.5s; }

.align-feature-badge__dot {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	flex-shrink: 0;
}
.align-feature-badge__dot--orange { background: #ff9800; }
.align-feature-badge__dot--blue { background: #4fc3f7; }
.align-feature-badge__dot--green { background: #81c784; }
.align-feature-badge__dot--purple { background: #ba68c8; }
.align-feature-badge__text {
	font-size: var(--wp--preset--font-size--caption);
	font-weight: var(--wp--custom--font-weight--semibold);
	color: var(--wp--preset--color--ink);
	white-space: nowrap;
}

/* The shrink-wrapping group around .align-feature-visual grows to the
   visual's fixed 560px width (see above), and the visual's own
   max-width:100% resolves against that already-grown group — so on
   narrow screens neither ever shrinks and the page scrolls sideways.
   Capping the group at its section's width breaks that loop. */
.entry-content > section > :has(> .align-feature-visual) {
	max-width: 100%;
	min-width: 0;
}

@media (max-width: 600px) {
	.align-feature-visual {
		min-height: auto;
		flex-direction: column;
		gap: var(--wp--preset--spacing--13);
		padding: var(--wp--preset--spacing--13) 0;
	}
	.align-feature-card {
		max-width: 320px;
		--rotate: 0deg;
	}
	.align-feature-badge {
		position: static;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	/* The rule above still leaves content sitting at opacity:0 until JS
	   flips the class; that's a hide-then-appear pattern some
	   reduced-motion users find just as unwelcome as the slide/fade
	   itself. Skip the hidden state entirely instead of just speeding
	   up the transition out of it. */
	.align-reveal {
		opacity: 1;
		transform: none;
	}

	/* Hero entrance and gradient sweep: show the finished state at once. */
	.align-hero-glow::before,
	.align-hero-glow::after,
	.align-hero-glow .wp-block-group > p,
	.align-hero-glow h1,
	.align-hero-glow .wp-block-buttons,
	.align-gradient-text {
		animation: none !important;
	}
}

/* "Live" device mockups (Home page feature sections — markup from
   scripts/generate-starter-content.ps1, behaviour in assets/js/live-
   phone.js). Each .align-live-stage stands its device(s) in a soft
   brand-colour glow with floating chips beside them. Devices bob gently
   and turn in 3D with scroll via --live-ry/--live-rx (set by the script;
   the fallbacks are the resting angle), scaled per device by --tilt-k
   and mirrored by --tilt-dir.

   Phones are iPhone 17s drawn in CSS. Their app screen is laid out at
   320x696 and scaled to fit, so text stays crisp at any size, and it
   plays a short timeline: .is-live (added by the script) hides each
   [data-live-step] until the script marks it .is-shown. Without the
   script, or with reduced motion, the finished state shows. */
.align-live-stage {
	--live-ry: -12deg;
	--live-rx: 3deg;
	--live-shift: 0px;
	position: relative;
	/* Explicit, not 100%: the column wrapper is a shrink-to-fit flex item,
	   so a percentage would collapse the stage to the phone's width. The
	   52px leaves the page's 26px side gutters on small screens. */
	width: min(560px, calc(100vw - 52px));
	min-height: 660px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.align-live-stage__glow {
	position: absolute;
	inset: 2% 0;
	border-radius: 50%;
	background:
		radial-gradient(circle at 30% 35%, rgba(186, 104, 200, 0.6), transparent 60%),
		radial-gradient(circle at 72% 62%, rgba(79, 195, 247, 0.62), transparent 60%),
		radial-gradient(circle at 60% 18%, rgba(255, 152, 0, 0.4), transparent 54%),
		radial-gradient(circle at 35% 85%, rgba(129, 199, 132, 0.42), transparent 52%);
	filter: blur(36px);
	animation: align-live-glow 14s ease-in-out infinite alternate;
	pointer-events: none;
}
@keyframes align-live-glow {
	from { transform: rotate(0deg) scale(1); }
	to { transform: rotate(24deg) scale(1.08); }
}

.align-live-phone {
	--screen-w: 262px;
	--screen-h: 570px;
	--app-scale: 0.81875;
	position: relative;
	z-index: 1;
	perspective: 1400px;
}
.align-live-phone__float {
	animation: align-live-float 6s ease-in-out infinite;
}
@keyframes align-live-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}
.align-live-phone__tilt {
	transform:
		rotateY(calc(var(--live-ry) * var(--tilt-k, 1) * var(--tilt-dir, 1)))
		rotateX(calc(var(--live-rx) * var(--tilt-k, 1)))
		rotateZ(var(--live-rz, 0deg));
	transition: transform 0.12s linear;
}
.align-live-phone__body {
	position: relative;
	padding: 3px;
	border-radius: 46px;
	background: linear-gradient(135deg, #62646a 0%, #2b2c31 14%, #1a1b1f 50%, #2b2c31 86%, #62646a 100%);
	box-shadow:
		inset 0 0 0 0.75px rgba(255, 255, 255, 0.22),
		0 60px 90px -30px rgba(5, 44, 84, 0.5),
		0 30px 40px -24px rgba(5, 44, 84, 0.4);
}
.align-live-phone__bezel {
	padding: 6px;
	border-radius: 43px;
	background: #000;
}
.align-live-phone__screen {
	position: relative;
	width: var(--screen-w);
	height: var(--screen-h);
	border-radius: 37px;
	overflow: hidden;
	background: #00314d;
	isolation: isolate;
}
/* Faint glass sheen across the screen. */
.align-live-phone__screen::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 38%);
	pointer-events: none;
	z-index: 10;
}
.align-live-phone__btn {
	position: absolute;
	width: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, #1a1b1f, #5a5c62 50%, #1a1b1f);
}
.align-live-phone__btn--action { left: -2px; top: 18%; height: 4%; }
.align-live-phone__btn--vol-up { left: -2px; top: 26%; height: 7.5%; }
.align-live-phone__btn--vol-down { left: -2px; top: 35%; height: 7.5%; }
.align-live-phone__btn--side { right: -2px; top: 28%; height: 11%; }
.align-live-phone__btn--camera { right: -2px; top: 61%; height: 6%; }

.align-live-app {
	position: absolute;
	top: 0;
	left: 0;
	width: 320px;
	height: 696px;
	transform: scale(var(--app-scale));
	transform-origin: 0 0;
	display: flex;
	flex-direction: column;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #fff;
	background: linear-gradient(180deg, #00314d 0%, #00426a 55%, #003152 100%);
}
.align-live-app__status {
	height: 44px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 3px 28px 0 38px;
	font-size: 14px;
	font-weight: 600;
}
.align-live-app__icons { display: flex; gap: 5px; align-items: center; }
.align-live-app__icons svg { display: block; height: 10px; width: auto; fill: #fff; }
.align-live-app__island {
	position: absolute;
	top: 9px;
	left: 50%;
	width: 100px;
	height: 29px;
	margin-left: -50px;
	border-radius: 15px;
	background: #000;
}
.align-live-app__header {
	position: relative;
	height: 38px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
}
.align-live-app__back { position: absolute; left: 14px; color: #1fb0e8; font-size: 14px; font-weight: 500; }
.align-live-app__title { font-size: 17px; font-weight: 700; }
.align-live-app__thread {
	flex: 1;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0 11px 8px;
	-webkit-mask-image: linear-gradient(transparent, #000 24px);
	mask-image: linear-gradient(transparent, #000 24px);
}
.align-live-app__composer { flex: none; display: flex; align-items: center; gap: 7px; padding: 6px 11px 8px; }
.align-live-app__input {
	flex: 1;
	height: 34px;
	display: flex;
	align-items: center;
	padding: 0 13px;
	border-radius: 17px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.55);
	font-size: 12px;
}
.align-live-app__send {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fb9812;
	display: flex;
	align-items: center;
	justify-content: center;
}
.align-live-app__send svg { width: 16px; height: 16px; }
.align-live-app__homebar { height: 22px; flex: none; position: relative; }
.align-live-app__homebar::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 7px;
	width: 107px;
	height: 4px;
	margin-left: -53.5px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.85);
}

/* Each message collapses to zero height until shown (grid rows 0fr to
   1fr animates the height), so newer messages push older ones up
   smoothly. Spacing lives inside the collapsing row, not as a gap. */
.align-live-msg {
	display: grid;
	grid-template-rows: 1fr;
	flex: none;
}
.align-live-msg__inner {
	overflow: hidden;
	min-height: 0;
	display: flex;
	padding-top: 9px;
}
.align-live-msg--me .align-live-msg__inner { justify-content: flex-end; }
.align-live-msg__bubble {
	margin: 0;
	max-width: 88%;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 11px;
	line-height: 1.42;
}
.align-live-msg--bot .align-live-msg__bubble { background: #fff; color: #111; border-bottom-left-radius: 2px; }
.align-live-msg--me .align-live-msg__bubble { background: #fb9812; color: #fff; font-weight: 500; border-bottom-right-radius: 2px; }
.align-live-msg--typing .align-live-msg__bubble { display: flex; gap: 4px; padding: 11px 12px; }
.align-live-msg--typing i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #8a96a3;
	animation: align-live-typing 1s ease-in-out infinite;
}
.align-live-msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.align-live-msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes align-live-typing {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
	30% { transform: translateY(-3px); opacity: 1; }
}

.is-live .align-live-msg {
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.is-live .align-live-msg__bubble {
	opacity: 0;
	transform: translateY(8px) scale(0.96);
	transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.is-live .align-live-msg--me .align-live-msg__bubble { transform-origin: 100% 100%; }
.is-live .align-live-msg--bot .align-live-msg__bubble { transform-origin: 0 100%; }
.is-live .align-live-msg.is-shown { grid-template-rows: 1fr; }
.is-live .align-live-msg.is-shown .align-live-msg__bubble { opacity: 1; transform: none; }

/* Floating glass chips overlapping the phone's edges (positioned against
   the phone, not the stage), drifting against the scroll. */
.align-live-chip {
	--chip-y: var(--live-shift);
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 16px 9px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 24px 48px -16px rgba(5, 44, 84, 0.3), 0 4px 12px rgba(5, 44, 84, 0.08);
	transform: translateY(var(--chip-y));
	transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.align-live-chip--a { top: 30%; right: 90%; white-space: nowrap; }
.align-live-chip--b { bottom: 20%; left: 90%; white-space: nowrap; --chip-y: calc(var(--live-shift) * -1); }
.align-live-chip__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	flex: none;
}
.align-live-chip__icon svg { width: 16px; height: 16px; display: block; }
.align-live-chip__icon--blue { background: rgba(79, 195, 247, 0.24); color: var(--wp--preset--color--navy); }
.align-live-chip__icon--orange { background: rgba(255, 152, 0, 0.22); color: var(--wp--preset--color--navy); }
.align-live-chip__icon--purple { background: rgba(186, 104, 200, 0.2); color: var(--wp--preset--color--navy); }
.align-live-chip__icon--green { background: rgba(129, 199, 132, 0.26); color: var(--wp--preset--color--navy); }
.align-live-chip__text { display: flex; flex-direction: column; line-height: 1.25; }
.align-live-chip__title { font-size: 14px; font-weight: var(--wp--custom--font-weight--semibold); color: var(--wp--preset--color--ink); }
.align-live-chip__meta { font-size: 12px; color: var(--wp--preset--color--slate); }
.is-live .align-live-chip { opacity: 0; transform: translateY(calc(var(--chip-y) + 14px)) scale(0.96); }
.is-live .align-live-chip.is-shown { opacity: 1; transform: translateY(var(--chip-y)); }

/* Lean the other way — for a stage directly below another phone, so
   consecutive phones alternate. */
.align-live-stage--flip { --tilt-dir: -1; }

/* Finished screenshots (laptop, monitor, iMac) on a stage: same glow,
   float and chips, but a gentler turn so a flat image doesn't distort. */
.align-live-device {
	--tilt-k: 0.4;
	position: relative;
	z-index: 1;
	width: 100%;
	perspective: 1600px;
}
.align-live-device img {
	display: block;
	width: 100%;
	height: auto;
}
.align-live-device .align-live-chip--a { top: 8%; left: -2%; right: auto; }
.align-live-device .align-live-chip--b { bottom: 12%; right: -2%; left: auto; }

/* Two overlapping phones (Mobile App), back one up-left, front one
   down-right, each with its own resting roll. */
.align-live-stage--pair { min-height: 720px; }
.align-live-stage--pair .align-live-phone {
	--screen-w: 236px;
	--screen-h: 513px;
	--app-scale: 0.7375;
	position: absolute;
}
.align-live-stage--pair .align-live-phone__body { border-radius: 42px; }
.align-live-stage--pair .align-live-phone__bezel { border-radius: 39px; }
.align-live-stage--pair .align-live-phone__screen { border-radius: 33px; }
.align-live-phone--back { --live-rz: -5deg; top: 2%; left: 4%; }
.align-live-phone--front { --live-rz: 5deg; bottom: 2%; right: 4%; z-index: 2; }
.align-live-phone--front .align-live-phone__float { animation-delay: -3s; }
.align-live-stage--pair .align-live-phone--back .align-live-chip--a { top: -5%; left: 38%; right: auto; }
.align-live-stage--pair .align-live-phone--front .align-live-chip--b { bottom: -5%; right: 38%; left: auto; }

/* My wellbeing screen. */
.align-live-wb {
	display: flex;
	flex-direction: column;
	gap: 11px;
	padding: 2px 13px 0;
}
.align-live-wb__intro { margin: 0; font-size: 11px; color: rgba(255, 255, 255, 0.8); }
.align-live-wb__seg {
	display: flex;
	padding: 3px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.align-live-wb__seg span {
	flex: 1;
	padding: 7px 0;
	border-radius: 15px;
	text-align: center;
	font-size: 11.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.75);
}
.align-live-wb__seg .is-active { background: #0a90c8; color: #fff; }
.align-live-wb__card,
.align-live-wb__list {
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.align-live-wb__card { display: flex; flex-direction: column; gap: 3px; padding: 12px 13px; }
.align-live-wb__label { font-size: 9.5px; color: rgba(255, 255, 255, 0.7); }
.align-live-wb__avg { font-size: 20px; font-weight: 700; line-height: 1.2; }
.align-live-wb__row {
	display: flex;
	gap: 10px;
	padding: 11px 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.align-live-wb__row:first-child { border-top: 0; }
.align-live-wb__emoji { font-size: 19px; line-height: 1; }
.align-live-wb__body { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.align-live-wb__title { font-size: 12.5px; font-weight: 700; }
.align-live-wb__scale { display: flex; align-items: center; gap: 9px; }
.align-live-wb__dots { display: flex; gap: 5px; }
.align-live-wb__dots i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #48637c;
	transition: background-color 0.25s ease;
}
.align-live-wb__row.is-red .align-live-wb__dots .is-on { background: #ff5d6c; }
.align-live-wb__row.is-blue .align-live-wb__dots .is-on { background: #12a7e0; }
.align-live-wb__dots i:nth-child(2) { transition-delay: 0.09s; }
.align-live-wb__dots i:nth-child(3) { transition-delay: 0.18s; }
.align-live-wb__dots i:nth-child(4) { transition-delay: 0.27s; }
.align-live-wb__dots i:nth-child(5) { transition-delay: 0.36s; }
.align-live-wb__level { font-size: 10px; font-weight: 600; color: #d3dde6; }
.align-live-wb__row.is-red .align-live-wb__level { color: #ff6b78; }
.align-live-wb__note { font-size: 10.5px; color: rgba(255, 255, 255, 0.75); }
.align-live-wb__date { font-size: 9.5px; color: rgba(255, 255, 255, 0.65); }

.is-live .align-live-wb__row {
	transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.is-live .align-live-wb__row:not(.is-shown) { opacity: 0; transform: translateY(10px); }
.is-live .align-live-wb__row:not(.is-shown) .align-live-wb__dots .is-on { background: #48637c; }

/* Report a hazard screen. */
.align-live-hz {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 0 12px;
}
.align-live-hz__note {
	margin: 0;
	padding: 9px 11px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 9.5px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.82);
}
.align-live-hz__label {
	margin: 5px 0 0;
	font-size: 8.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}
.align-live-hz__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.align-live-hz__chips span {
	position: relative;
	padding: 6px 10px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 10px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.align-live-hz__chips .is-sel { background: rgba(31, 176, 232, 0.22); border-color: #1fb0e8; color: #fff; }
.align-live-hz__field {
	min-height: 32px;
	padding: 9px 11px;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 11px;
}
.align-live-hz__field--tall { min-height: 52px; }
.align-live-hz__placeholder { display: none; color: rgba(255, 255, 255, 0.5); }
.align-live-hz__submit {
	margin-top: 6px;
	padding: 10px;
	border-radius: 10px;
	background: #0a90c8;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
}
.align-live-hz__toast {
	position: absolute;
	top: 48px;
	left: 12px;
	right: 12px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 12px;
	border-radius: 14px;
	background: #fff;
	color: #111;
	font-size: 10.5px;
	line-height: 1.35;
	box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45);
	transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.align-live-hz__toast b { font-size: 11.5px; }
.align-live-hz__tick {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	flex: none;
	background: #2fb36d;
	color: #fff;
}
.align-live-hz__tick svg { width: 13px; height: 13px; }

.is-live .align-live-hz__chips .is-sel:not(.is-shown) {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.85);
}
/* A tap: a ring pulses out from the chip or button as it's selected. */
.is-live .align-live-hz__chips .is-sel.is-shown::after,
.is-live .align-live-hz__submit.is-shown::after {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	animation: align-live-tap 0.6s ease-out;
}
.is-live .align-live-hz__submit { position: relative; }
.is-live .align-live-hz__submit.is-shown { animation: align-live-press 0.3s ease; }
@keyframes align-live-tap {
	from { box-shadow: 0 0 0 0 rgba(31, 176, 232, 0.7); }
	to { box-shadow: 0 0 0 10px rgba(31, 176, 232, 0); }
}
@keyframes align-live-press {
	50% { transform: scale(0.95); }
}
.is-live .align-live-hz__value:not(.is-shown) { display: none; }
.is-live .align-live-hz__value:not(.is-shown) + .align-live-hz__placeholder { display: inline; }
.align-live-hz__value.is-typing::after {
	content: "";
	display: inline-block;
	width: 1px;
	height: 12px;
	margin-left: 1px;
	vertical-align: -2px;
	background: #fff;
	animation: align-live-caret 0.8s steps(1) infinite;
}
@keyframes align-live-caret {
	50% { opacity: 0; }
}
.is-live .align-live-hz__toast:not(.is-shown) { opacity: 0; transform: translateY(-24px); }

/* The glows (blurred, slowly rotating) and the chips deliberately spill
   past their stage; clip that at the page edge so it never adds a
   sideways scroll. clip, not hidden, so sticky elements keep working. */
.wp-site-blocks { overflow-x: clip; }

/* Floating top menu: the header template part sticks to the top of the
   viewport (below the admin bar when signed in) above page content. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }

/* Where the side gutters get narrow, tuck the chips in a little closer
   to the phone so they stay on screen. */
@media (max-width: 1399px) {
	.align-live-chip--a { right: 80%; }
	.align-live-chip--b { left: 78%; }
}

@media (max-width: 600px) {
	.align-live-stage { min-height: 560px; }
	.align-live-phone {
		--screen-w: 212px;
		--screen-h: 461px;
		--app-scale: 0.6625;
	}
	.align-live-phone__body { border-radius: 38px; }
	.align-live-phone__bezel { border-radius: 35px; }
	.align-live-phone__screen { border-radius: 30px; }
	.align-live-chip { padding: 7px 12px 7px 7px; gap: 8px; }
	.align-live-chip__icon { width: 26px; height: 26px; }
	.align-live-chip__title { font-size: 12px; }
	.align-live-chip__meta { font-size: 11px; }
	/* No room beside the phone: tuck the chips over its top and bottom
	   edges (status bar, home bar) instead of over the screen content. */
	.align-live-chip--a { right: 42%; top: -12px; }
	.align-live-chip--b { left: 42%; bottom: -12px; }
	.align-live-stage--pair { min-height: 500px; }
	.align-live-stage--pair .align-live-phone {
		--screen-w: 164px;
		--screen-h: 357px;
		--app-scale: 0.5125;
	}
	.align-live-stage--pair .align-live-phone__body { border-radius: 30px; padding: 2px; }
	.align-live-stage--pair .align-live-phone__bezel { border-radius: 28px; padding: 4px; }
	.align-live-stage--pair .align-live-phone__screen { border-radius: 24px; }
	.align-live-stage--pair .align-live-phone--back .align-live-chip--a { left: 30%; top: -4%; right: auto; }
	.align-live-stage--pair .align-live-phone--front .align-live-chip--b { right: 30%; bottom: -4%; left: auto; }
	.align-live-device .align-live-chip--a { top: 0; }
	.align-live-device .align-live-chip--b { bottom: 0; }
}

/* Scenes: several chat threads take turns on one phone, one
   .align-live-scene showing at a time. Without the script only the
   first shows. */
.align-live-scene ~ .align-live-scene { display: none; }
.is-live .align-live-scene { display: none; }
.is-live .align-live-scene.is-active { display: flex; transition: opacity 0.45s ease; }
.is-live .align-live-scene.is-leaving { opacity: 0; }

/* Zoom: a device screenshot pans and zooms in on the parts its chips
   describe (zoom steps in assets/js/live-phone.js set the focal point
   and scale). Scaling about the focal point keeps the view inside the
   image, so the clip never shows empty edges. */
.align-live-zoom {
	--zoom-x: 50%;
	--zoom-y: 50%;
	--zoom-s: 1;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--cards);
}
.align-live-zoom img {
	transform: scale(var(--zoom-s));
	transform-origin: var(--zoom-x) var(--zoom-y);
	transition:
		transform 1.3s cubic-bezier(0.65, 0, 0.35, 1),
		transform-origin 1.3s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Home and subpage feature sections (scripts/generate-starter-content.ps1):
   every other one puts its visual on the left, and on Home those ones also
   sit on a full-bleed pale mist band to separate the sections. */
@media (min-width: 783px) {
	.align-home-section.is-reversed,
	.align-feature-section.is-reversed { flex-direction: row-reverse; }
}
.align-home-section.is-tinted {
	position: relative;
	isolation: isolate;
}
.align-home-section.is-tinted::before {
	content: "";
	position: absolute;
	inset: 0 calc(50% - 50vw);
	z-index: -1;
	background: var(--wp--preset--color--mist);
}
/* Slate is just under 4.5:1 on mist, so body text goes a shade darker here. */
.align-home-section.is-tinted .has-slate-color { color: var(--wp--preset--color--slate) !important; }

@media (max-width: 1399px) {
	.align-live-chip--c { right: 80%; }
}
@media (max-width: 600px) {
	.align-live-chip--c { right: 42%; bottom: -12px; }
}

/* Contact form ([align_contact_form] — Contact Form 7 markup, from the
   Align Blocks plugin). */
/* Name and Work email, then Company and Role, side by side; everything
   else takes the full width. One column on phones. */
.align-contact-form .wpcf7-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
}
.align-contact-form .wpcf7-form > * { grid-column: 1 / -1; }
.align-contact-form .wpcf7-form > p { margin: 0; }
.align-contact-form .wpcf7-form > p:nth-of-type(-n+4) { grid-column: auto; }
@media (max-width: 600px) {
	.align-contact-form .wpcf7-form > p:nth-of-type(-n+4) { grid-column: 1 / -1; }
}
.align-contact-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 15px;
	font-weight: var(--wp--custom--font-weight--semibold, 600);
	color: var(--wp--preset--color--navy);
}
.align-contact-form .wpcf7-form-control-wrap { display: block; }
.align-contact-form input[type="text"],
.align-contact-form input[type="email"],
.align-contact-form select,
.align-contact-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 8px 14px;
	font: inherit;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
	transition: box-shadow 0.2s ease;
}
.align-contact-form textarea { height: 110px; resize: vertical; }
.align-contact-form input:focus,
.align-contact-form select:focus,
.align-contact-form textarea:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(59, 57, 150, 0.16);
}
.align-contact-form .align-contact-form__note { font-size: 14px; color: var(--wp--preset--color--slate); }
.align-contact-form .wpcf7-submit {
	padding: 12px 24px;
	border: 0;
	border-radius: var(--wp--custom--radius--buttons);
	background: var(--wp--preset--color--navy);
	color: #fff;
	font: inherit;
	font-weight: var(--wp--custom--font-weight--semibold, 600);
	cursor: pointer;
}
.align-contact-form .wpcf7-submit:hover { background: var(--wp--preset--color--action-hover); }
.align-contact-form .wpcf7-not-valid-tip { margin-top: 4px; font-size: 13px; font-weight: 400; }
.align-contact-form .wpcf7-response-output { margin: var(--wp--preset--spacing--20, 20px) 0 0; border-radius: var(--wp--custom--radius--cards); }

/* Get Support page: the banner above the helpline cards (the cards
   themselves are with the other .align-summary-list cards, below). */
.align-support-urgent {
	padding: var(--wp--preset--spacing--26, 26px);
	border-radius: var(--wp--custom--radius--cards);
	background: #fdecea;
	color: var(--wp--preset--color--ink);
}

/* Home stats: the page's only navy band, with four equal-width tiles whose
   numbers line up whatever the length of their labels (their sources are
   the page footnote). */
.align-home-stats-band {
	background:
		radial-gradient(ellipse at 85% 0%, rgba(31, 176, 232, 0.22), transparent 55%),
		linear-gradient(180deg, var(--wp--preset--color--navy) 0%, #0a3a6c 100%);
	color: #fff;
}
.align-home-stats-band h2 { color: #fff; margin-top: var(--wp--preset--spacing--10, 10px); text-wrap: balance; }
.align-home-stats-band > p { color: rgba(255, 255, 255, 0.8); }
.align-home-stats.is-layout-flex { gap: var(--wp--preset--spacing--33, 33px); align-items: flex-start; justify-content: center; }
.align-home-stats .align-stat-tile { flex: 1 1 200px; max-width: 270px; }
.align-home-stats .align-stat-tile__value { color: #fff; }
.align-home-stats .align-stat-tile__label { color: rgba(255, 255, 255, 0.8); }

/* Short section pages (Meet Alex, Workforce Intelligence): what you get
   as a grid of cards, then why it matters at reading width. */
.align-summary-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--wp--preset--spacing--20, 20px);
	margin: var(--wp--preset--spacing--26, 26px) 0 var(--wp--preset--spacing--78, 78px);
	padding: 0;
	list-style: none;
}
/* With nothing after the cards (no why it matters), no gap below them. */
.align-summary-list:last-child { margin-bottom: 0; }
/* Four cards go two by two rather than three plus one on its own. */
@media (min-width: 601px) {
	.align-summary-list:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
}
/* Six cards (Meet Alex) go three by two, or two by three on tablets. */
@media (min-width: 601px) {
	.align-summary-list:has(> li:nth-child(6):last-child) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
	.align-summary-list:has(> li:nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); }
}
.align-summary-list {
	--align-card-tile: var(--wp--preset--color--mist);
}
/* Every box on the site: white, with the logo's gradient as a border that
   is always there (white fills the padding box, and the gradient shows only
   in the transparent border around it). */
.align-summary-list,
.align-team-card,
.align-benefits-card,
.align-contact-form {
	--align-card-brand: linear-gradient(135deg, #ff9800 0%, #ba68c8 41.5%, #4fc3f7 68%, #81c784 100%);
}
.align-summary-list li,
.align-team-card,
.align-benefits-card,
.align-contact-form input[type="text"],
.align-contact-form input[type="email"],
.align-contact-form select,
.align-contact-form textarea {
	border: 2px solid transparent;
	border-radius: var(--wp--custom--radius--cards);
	background:
		linear-gradient(var(--wp--preset--color--paper), var(--wp--preset--color--paper)) padding-box,
		var(--align-card-brand) border-box;
}
/* Inputs: plain "border strong" edges, 6px corners — the guidelines keep
   the gradient out of inputs. */
.align-contact-form input[type="text"],
.align-contact-form input[type="email"],
.align-contact-form select,
.align-contact-form textarea {
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--custom--radius--tags);
	background: var(--wp--preset--color--paper);
}
.align-summary-list li {
	display: flex;
	flex-direction: column;
	padding: var(--wp--preset--spacing--26, 26px);
	color: var(--wp--preset--color--slate);
}
.align-summary-list li strong {
	display: block;
	margin-bottom: 6px;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--subheading);
}
/* A card's one icon, filled with the brand gradient. */
.align-summary-icon {
	display: block;
	box-sizing: border-box;
	width: 52px;
	height: 52px;
	margin-bottom: var(--wp--preset--spacing--20, 20px);
	padding: 12px;
	border-radius: var(--wp--custom--radius--cards);
	background: var(--align-card-tile);
}
.align-summary-icon::before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background: var(--align-card-brand);
	-webkit-mask: var(--align-icon) center / contain no-repeat;
	mask: var(--align-icon) center / contain no-repeat;
}
.align-summary-icon--info { --align-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v5.500M12 7.500v.01'/%3E%3C/svg%3E"); }
.align-summary-icon--language { --align-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.500 12h19M12 2.500c2.500 2.600 3.800 5.800 3.800 9.500s-1.300 6.900-3.800 9.500c-2.500-2.600-3.800-5.800-3.800-9.500s1.300-6.900 3.800-9.500z'/%3E%3C/svg%3E"); }
.align-summary-icon--face { --align-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M8 14.5c1 1.3 2.4 2 4 2s3-.7 4-2M9 9.5v.01M15 9.5v.01'/%3E%3C/svg%3E"); }
.align-summary-icon--shield { --align-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l8 3V12c0 5-3.5 8-8 9.5-4.5-1.5-8-4.5-8-9.5V5.5z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.align-summary-icon--hazard { --align-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l10 17H2z'/%3E%3Cpath d='M12 10v5M12 17.8v.01'/%3E%3C/svg%3E"); }
.align-summary-icon--vent { --align-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5h18v12H9.5L4 21v-4.500H3z'/%3E%3Cpath d='M8 10.5v.01M12 10.5v.01M16 10.5v.01'/%3E%3C/svg%3E"); }
.align-summary-icon--trend { --align-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l5.5-5.5 4 3.500L21 6.5'/%3E%3Cpath d='M15.5 6.5H21V12'/%3E%3C/svg%3E"); }
.align-summary-icon--pin { --align-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21.5s7.500-6.500 7.500-12a7.500 7.500 0 0 0-15 0c0 5.500 7.500 12 7.500 12z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.align-summary-icon--people { --align-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.5-4 3-6 6.500-6s6 2 6.500 6'/%3E%3Cpath d='M16 4.800a3.500 3.500 0 0 1 0 6.400M18 14.300c2 .7 3.200 2.700 3.500 5.700'/%3E%3C/svg%3E"); }
.align-summary-icon--phone { --align-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3H4a1.500 1.500 0 0 0-1.500 1.600C3.200 13.200 10.800 20.800 19.400 21.500A1.500 1.500 0 0 0 21 20v-2.500a1.500 1.500 0 0 0-1.100-1.400l-3.500-.9a1.500 1.500 0 0 0-1.500.4l-1.400 1.400a13 13 0 0 1-6.500-6.500l1.400-1.400a1.500 1.500 0 0 0 .4-1.500l-.9-3.500A1.500 1.500 0 0 0 6.500 3z'/%3E%3C/svg%3E"); }
.align-summary-icon--bell { --align-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 0 1 12 0c0 6 2.500 7.500 2.500 7.500h-17S6 15 6 9z'/%3E%3Cpath d='M10 20.500a2 2 0 0 0 4 0'/%3E%3C/svg%3E"); }
/* A card's "why it matters" line: on hover it slides up over the card in
   the brand-blue gradient, with a glow that follows the cursor and a
   slight lift, and a small label at the foot of the card hints that it is
   there. Touch screens, with no hover, show it under the text. */
.align-summary-list li:has(.align-summary-list__why) {
	position: relative;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.align-summary-list__why {
	display: block;
	color: #fff;
	font-size: var(--wp--preset--font-size--body-lg);
	line-height: 1.5;
}
.align-summary-list__why > span {
	display: block;
	margin-bottom: 6px;
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	color: #4fc3f7;
}
@media (hover: hover) {
	.align-summary-list li:has(.align-summary-list__why) { padding-bottom: 52px; }
	.align-summary-list li:has(.align-summary-list__why)::after {
		content: var(--align-card-hint, "Why it matters \2192");
		position: absolute;
		left: var(--wp--preset--spacing--26, 26px);
		bottom: var(--wp--preset--spacing--20, 20px);
		font-size: var(--wp--preset--font-size--caption);
		font-weight: 600;
		letter-spacing: var(--wp--custom--tracking--label);
		text-transform: uppercase;
		color: var(--wp--preset--color--link);
	}
	.align-summary-list li:has(.align-summary-list__why):hover {
		box-shadow: 0 12px 30px rgba(5, 44, 84, 0.18);
		transform: translateY(-4px);
	}
	.align-summary-list__why {
		position: absolute;
		inset: 0;
		z-index: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: var(--wp--preset--spacing--26, 26px);
		background:
			radial-gradient(280px circle at var(--align-card-x, 85%) var(--align-card-y, 0%), rgba(79, 195, 247, 0.3), transparent 70%),
			linear-gradient(180deg, var(--wp--preset--color--navy) 0%, #0a3a6c 100%);
		opacity: 0;
		transform: translateY(100%);
		transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
	}
	.align-summary-list li:hover .align-summary-list__why {
		opacity: 1;
		transform: none;
	}
}
@media (hover: none) {
	.align-summary-list__why {
		margin-top: var(--wp--preset--spacing--13, 13px);
		padding: var(--wp--preset--spacing--13, 13px) var(--wp--preset--spacing--20, 20px);
		border-radius: 12px;
		background: var(--wp--preset--color--navy);
		font-size: var(--wp--preset--font-size--body-sm);
	}
}
@media (prefers-reduced-motion: reduce) {
	.align-summary-list__why { transition: none; transform: none; }
	.align-summary-list li:has(.align-summary-list__why):hover { transform: none; }
}
/* Cards whose panel can hold more than the card (Get Support, Leadership).
   The card's front and its panel share one grid cell, so the card is always
   tall enough for whichever is longer. Keyboard focus opens the panel too,
   and overflow: clip stops focus scrolling the card to a hidden panel's link. */
.align-card-stack__front { align-self: stretch; }
@media (hover: hover) {
	.align-summary-list > li.align-card-stack:has(.align-summary-list__why) {
		display: grid;
		align-items: stretch;
		padding: 0;
		overflow: clip;
	}
	.align-card-stack > * {
		grid-area: 1 / 1;
		min-width: 0;
	}
	.align-card-stack__front {
		padding: var(--wp--preset--spacing--26, 26px) var(--wp--preset--spacing--26, 26px) 52px;
	}
	li.align-card-stack > .align-summary-list__why { position: relative; inset: auto; }
	.align-card-stack:focus-visible > .align-summary-list__why,
	.align-card-stack:has(:focus-visible) > .align-summary-list__why {
		opacity: 1;
		transform: none;
	}
}
@media (hover: none) {
	.align-card-stack > .align-summary-list__why { align-self: stretch; }
}

/* Get Support: the helpline's number in the card's text, and its name,
   numbers and website in the panel. Touch screens already have the name in
   the card, so their panel is just the numbers and website. */
.align-support-list { --align-card-hint: "Contact details \2192"; }
.align-support-number {
	color: var(--wp--preset--color--ink);
	font-weight: var(--wp--custom--font-weight--semibold, 600);
	white-space: nowrap;
}
.align-summary-list__why > .align-support-panel__name {
	margin-bottom: var(--wp--preset--spacing--13, 13px);
	color: #fff;
	font-size: var(--wp--preset--font-size--subheading);
	letter-spacing: normal;
	text-transform: none;
}
.align-summary-list__why > .align-support-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--13, 13px) var(--wp--preset--spacing--26, 26px);
	margin-bottom: var(--wp--preset--spacing--13, 13px);
	color: #fff;
	letter-spacing: normal;
	text-transform: none;
}
.align-support-panel__action > span:first-child {
	display: block;
	margin-bottom: 2px;
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	color: #4fc3f7;
}
.align-support-panel__action > a,
.align-support-panel__action > span:last-child:not(:first-child) {
	color: #fff;
	font-size: var(--wp--preset--font-size--subheading);
	font-weight: 600;
	line-height: 1.3;
}
.align-support-panel__action > a { font-size: var(--wp--preset--font-size--heading-sm); white-space: nowrap; }
.align-support-panel__site {
	align-self: flex-start;
	color: #4fc3f7;
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 600;
}
@media (hover: none) {
	.align-summary-list__why > .align-support-panel__name { display: none; }
	.align-support-panel__site { display: inline-block; }
}

/* The cards' entrance. Only runs once summary-cards.js has added
   .is-animated, which it skips for reduced motion, so otherwise everything
   is simply there. Cards wait out of sight until they scroll into view,
   then each plays once, offset by --align-card-delay so a row arrives one
   card after another. */
.align-summary-list > li:nth-child(1) { --align-card-delay: 0s; }
.align-summary-list > li:nth-child(2) { --align-card-delay: 0.09s; }
.align-summary-list > li:nth-child(3) { --align-card-delay: 0.18s; }
.align-summary-list > li:nth-child(4) { --align-card-delay: 0.27s; }
.align-summary-list > li:nth-child(5) { --align-card-delay: 0.36s; }
.align-summary-list > li:nth-child(6) { --align-card-delay: 0.45s; }
.align-summary-list.is-animated > li:not(.is-in) { opacity: 0; }
.align-summary-list.is-animated > li.is-in { animation: align-card-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) var(--align-card-delay) backwards; }
.align-summary-list.is-animated > li.is-in .align-summary-icon::before { animation: align-card-wipe 0.8s ease-in-out calc(var(--align-card-delay) + 0.35s) backwards; }
@keyframes align-card-rise { from { opacity: 0; transform: translateY(22px); } }
.align-summary-list.is-animated > li.is-in .align-team-card__photo { animation: align-card-photo 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--align-card-delay) + 0.2s) backwards; }
@keyframes align-card-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes align-card-photo { from { opacity: 0; transform: scale(0.8); } }
.align-page-summary > p { max-width: 760px; }
/* A lead section with a photo to its right (Meet Alex); stacked, photo
   below, on narrow screens. */
.align-summary-lead { gap: var(--wp--preset--spacing--49, 49px); }
.align-summary-lead__text { flex: 1 1 420px; max-width: 640px; }
.align-summary-lead .align-summary-lead__image { flex: 0 1 460px; margin: 0; }
/* Every lead photo fills the same frame, about as tall as the text beside
   it on a desktop screen, whatever the shape of the original. */
.align-summary-lead .align-summary-lead__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 460 / 310;
	object-fit: cover;
}
/* Keeps the worker's hard hat in the frame. */
.align-summary-lead .align-summary-lead__image img[src*="alex-worker-phone"] { object-position: 50% 0; }
@media (max-width: 781px) {
	.align-summary-lead .align-summary-lead__image { flex-basis: 100%; }
}

/* About Leadership: the section's heading and intro sit on the left, with
   the team cards two by two filling the space to their right. Below
   1000px the intro sits above the cards. */
.align-feature-section:has(.align-team-grid),
.align-feature-section.is-reversed:has(.align-team-grid) {
	flex-direction: column;
	align-items: flex-start;
}
.align-feature-section:has(.align-team-grid) > .wp-block-group:has(.align-team-grid) {
	align-self: stretch;
	width: 100%;
}
@media (min-width: 1000px) {
	.align-feature-section:has(.align-team-grid),
	.align-feature-section.is-reversed:has(.align-team-grid) {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: var(--wp--preset--spacing--49, 49px);
	}
	.align-feature-section:has(.align-team-grid) > .wp-block-group:not(:has(.align-team-grid)) { flex: 0 0 340px; }
	.align-feature-section:has(.align-team-grid) > .wp-block-group:has(.align-team-grid) {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}
}
/* Team cards, two to a row (one on phones), each with a round photo (or a
   placeholder silhouette), name and role, and their bio in the same sliding
   panel as the other cards (.align-summary-list__why). */
.align-feature-section .align-team-grid {
	--align-card-hint: "Read bio \2192";
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	width: 100%;
	max-width: none;
	gap: var(--wp--preset--spacing--20, 20px);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (max-width: 600px) {
	.align-feature-section .align-team-grid { grid-template-columns: 1fr; }
}
.align-team-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--wp--preset--spacing--26, 26px) var(--wp--preset--spacing--20, 20px);
	text-align: center;
}
.align-team-card__photo {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 96px;
	height: 96px;
	margin-bottom: var(--wp--preset--spacing--13, 13px);
	overflow: hidden;
	border-radius: 50%;
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--border);
}
.align-team-card__photo svg { width: 78px; height: 78px; }
.align-team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.align-team-card strong { color: var(--wp--preset--color--ink); }
.align-team-card__role {
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--slate);
}
.align-team-card .align-card-stack__front {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.align-team-card .align-summary-list__why p {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: #fff;
	text-align: left;
}
.align-team-card .align-summary-list__why { text-align: left; }
@media (hover: hover) {
	/* A taller card than the bio-less front needs, so a bigger photo. */
	.align-team-card .align-card-stack__front { justify-content: center; }
	.align-team-card .align-team-card__photo { width: 140px; height: 140px; }
	.align-team-card.align-card-stack::after { left: 0; right: 0; text-align: center; }
	.align-team-card > .align-summary-list__why { padding: var(--wp--preset--spacing--20, 20px); }
}
@media (hover: none) {
	/* The name is right above on touch screens. */
	.align-team-card .align-summary-list__why > span { display: none; }
	.align-team-card .align-summary-list__why p:first-of-type { margin-top: 0; }
}

/* Why Align tabs: a box of benefits beside each tab's intro. */
.align-benefits-card {
	padding: var(--wp--preset--spacing--33, 33px);
	color: var(--wp--preset--color--slate);
}
@media (max-width: 600px) {
	.align-benefits-card { padding: var(--wp--preset--spacing--26, 26px); }
}
/* The intro beside a box starts level with the box's top, rather than
   centred on it like the other feature sections. */
.align-feature-section:has(.align-benefits-card) { align-items: flex-start; }

/* Text-only sections (Trust Centre How we work and Standards): the
   intro keeps a readable line length, and the named points sit in two
   columns, one on narrow screens. */
.align-text-section > p { max-width: 760px; }
.align-text-section__items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--33, 32px) var(--wp--preset--spacing--49, 48px);
	margin-top: var(--wp--preset--spacing--33, 32px);
}
/* The grid's gap spaces the items; drop the flow layout's top margin on
   all but the first, which would push the second column down. */
.align-text-section__items.align-text-section__items > * { margin-block-start: 0; }
.align-text-section__item > * { margin-top: 0; margin-bottom: 0; }
.align-text-section__item > * + * { margin-top: var(--wp--preset--spacing--10, 8px); }
@media (max-width: 781px) {
	.align-text-section__items { grid-template-columns: 1fr; }
}
/* The line under a section heading (Trust Centre "Technology that earns
   trust..."): body-sized, set apart by weight. */
.align-subheading-line { font-weight: 600; }
/* Principles (Trust Centre's Our AI Principles): each one's name, then the
   same two-column grid as How we work (.align-text-section__items), with a
   rule between principles. Each cell is a bold line over body text. */
.align-principles > .align-principle {
	margin-top: var(--wp--preset--spacing--33, 32px);
	padding-top: var(--wp--preset--spacing--33, 32px);
	border-top: 1px solid rgba(15, 23, 42, 0.1);
}
.align-principle > * { margin-top: 0; margin-bottom: 0; }
.align-principle > .align-text-section__items { margin-top: var(--wp--preset--spacing--20, 20px); }
.align-principle__lead { font-weight: 600; }
.align-principles > .align-principles__note {
	margin-top: var(--wp--preset--spacing--33, 32px);
	padding-top: var(--wp--preset--spacing--20, 20px);
	border-top: 1px solid rgba(15, 23, 42, 0.1);
}
.align-benefits-card__list {
	display: grid;
	gap: var(--wp--preset--spacing--20, 20px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.align-benefits-card__list li {
	padding-left: 22px;
}
.align-benefits-card__list strong {
	position: relative;
	display: block;
	margin-bottom: 4px;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--subheading);
	line-height: 1.8;
}
/* The bullet hangs off the heading, centred on its first line (half the
   line height), out in the list item's left padding. */
.align-benefits-card__list strong::before {
	content: "";
	position: absolute;
	top: 0.9em;
	left: -22px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--blue);
	transform: translateY(-50%);
}
.align-page-footnote a { color: inherit; }

/* Home Supply Chain Transparency: the flat tiered diagram fills its column. */
.align-home-diagram { display: block; width: 100%; height: auto; }

/* Brand minimum: the full logo is never shown narrower than 90px on
   screen, so the header logo doesn't shrink when the nav gets crowded. */
.align-site-header .wp-block-site-logo {
	flex-shrink: 0;
	min-width: 90px;
}

/* Footer: the link lists are plain columns of links (no bullets), in the
   site's navy, and the small print row wraps on narrow screens. */
.align-site-footer .wp-block-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.align-site-footer .wp-block-list a,
.align-site-footer__legal a {
	display: inline-block;
	padding: 6px 0;
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}
.align-site-footer .wp-block-list a:hover,
.align-site-footer .wp-block-list a:focus-visible,
.align-site-footer__legal a:hover,
.align-site-footer__legal a:focus-visible {
	color: var(--wp--preset--color--link);
	text-decoration: underline;
}
.align-site-footer__legal { margin: 0; }
.align-site-footer__legal a + a { margin-left: 16px; }

/* Cookie banner (align-blocks' cookie-consent.php). Sits below the mobile
   menu and skip link. The "Cookie settings" links only show on pages that
   have something to set. */
.align-cookie-settings-link { display: none !important; }
.align-has-cookie-consent .align-cookie-settings-link { display: inline-block !important; }
.entry-content .align-cookie-settings-link { display: none !important; }
.align-has-cookie-consent .entry-content .align-cookie-settings-link { display: inline !important; }
.align-cookie-consent {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 99999;
	box-sizing: border-box;
	max-width: 1120px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	margin: 0 auto;
	padding: 24px;
	overflow-y: auto;
	display: flex;
	gap: 16px 32px;
	align-items: center;
	border: 1px solid var(--wp--preset--color--border-strong, #6B7D93);
	border-radius: 20px;
	background: var(--wp--preset--color--paper, #FFFFFF);
	color: var(--wp--preset--color--slate, #4A5B70);
	font-size: 16px;
	line-height: 1.5;
	box-shadow: 0 18px 48px -16px rgba(5, 44, 84, 0.35);
}
.align-cookie-consent[hidden],
.align-cookie-consent [hidden] { display: none; }
.align-cookie-consent:focus { outline: 2px solid var(--wp--preset--color--link, #0B6FA4); outline-offset: 2px; }
.align-cookie-consent__text { flex: 1 1 auto; min-width: 0; }
.align-cookie-consent__text p { margin: 0; }
.align-cookie-consent__text a { color: var(--wp--preset--color--link, #0B6FA4); text-decoration: underline; }
.align-cookie-consent__title {
	margin: 0 0 4px;
	color: var(--wp--preset--color--navy, #052C54);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
}
.align-cookie-consent__text .align-cookie-consent__current { margin-top: 8px; color: var(--wp--preset--color--navy, #052C54); font-weight: 600; }
.align-cookie-consent__actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }
.align-cookie-consent__button {
	min-height: 44px;
	padding: 10px 20px;
	border: 0;
	border-radius: 12px;
	background: var(--wp--preset--color--navy, #052C54);
	color: #FFFFFF;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.align-cookie-consent__button:hover { background: var(--wp--preset--color--action-hover, #0A3A6C); }
html.align-cookie-consent-open { scroll-padding-bottom: var(--align-cookie-consent-room, 0px); }
html.align-cookie-consent-open body { padding-bottom: var(--align-cookie-consent-room, 0px); }
@media (max-width: 781px) {
	.align-cookie-consent { flex-direction: column; align-items: stretch; padding: 16px; font-size: 15px; }
	.align-cookie-consent__text { flex: none; }
}
@media print {
	.align-cookie-consent { display: none; }
}

/* Cookie policy and other plain text pages: lists sit a little in from
   the text, with room between their points. */
.align-prose .wp-block-list { padding-left: 1.2em; }
.align-prose .wp-block-list li + li { margin-top: var(--wp--preset--spacing--10, 8px); }
.align-prose h2:not(:first-child) { margin-top: var(--wp--preset--spacing--33, 32px); }
.align-prose a { text-decoration: underline; }

/* ---------------------------------------------------------------------
   Phones and small tablets. Layout already reflows above; this is the
   finishing: tap targets of about 44px, a tidier footer, and less work
   for slower phone processors.
   --------------------------------------------------------------------- */
@media (max-width: 781px) {
	/* The paper-grain layer is a full-screen blended SVG filter that the
	   phone has to composite over everything on every scroll frame, for a
	   texture too fine to see on a small screen. */
	body::after { display: none; }

	/* The hero copy still rises and fades in, but without the blur, which
	   is slow to paint on phones and holds back the first readable frame. */
	.align-hero-glow .wp-block-group > p,
	.align-hero-glow h1,
	.align-hero-glow .wp-block-buttons {
		animation-name: align-rise-plain;
		animation-duration: 0.6s;
	}
	.align-hero-glow h1 { animation-delay: 0.1s; }
	.align-hero-glow .wp-block-group > p:nth-of-type(2) { animation-delay: 0.2s; }
	.align-hero-glow .wp-block-group > p:nth-of-type(3) { animation-delay: 0.25s; }
	.align-hero-glow .wp-block-buttons { animation-delay: 0.3s; }

	/* Glass chips: a solid white is as good at this size, and saves a
	   backdrop blur per chip. */
	.align-live-chip {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: rgba(255, 255, 255, 0.96);
	}

	/* Section tabs: taller, so each is easy to tap. */
	.align-section-subnav__list a { padding-top: 13px; padding-bottom: 13px; }

	/* Footer: the strapline takes the full width, and the link groups sit
	   side by side under it instead of one long column. */
	.align-site-footer > .wp-block-group:first-of-type { align-items: flex-start; gap: var(--wp--preset--spacing--33, 32px) var(--wp--preset--spacing--26, 24px); }
	.align-site-footer > .wp-block-group:first-of-type > .wp-block-group { flex: 1 1 130px; }
	.align-site-footer > .wp-block-group:first-of-type > .wp-block-group:first-child { flex-basis: 100%; }
	.align-site-footer .wp-block-list a,
	.align-site-footer__legal a { padding: 9px 0; }

	/* Get Support: the helpline numbers and website links are what people
	   come to tap. */
	.align-support-panel__action > a,
	.align-support-panel__site { display: inline-block; padding: 8px 0; }
}
@keyframes align-rise-plain {
	from { opacity: 0; translate: 0 16px; }
}

/* Home feature sections, once the text and the visual no longer fit side
   by side (the text's 460px, the 48px gap and the visual's 560px need
   about 1116px of screen): the section becomes one column and its
   "Book a demo" button drops below the visual, so each section reads
   heading, text, picture, then the button. The text group's box is
   removed (display: contents) so its heading, paragraphs and button
   can be ordered alongside the visual; they keep their own spacing and
   reading width. */
@media (max-width: 1119px) {
	.align-home-section,
	.align-home-section.is-reversed {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 0;
	}
	.align-home-section > .wp-block-group:first-child { display: contents; }
	.align-home-section > .wp-block-group:first-child > * {
		box-sizing: border-box;
		width: 100%;
		margin-left: 0 !important;
		margin-right: auto !important;
	}
	.align-home-section > .wp-block-group:last-child {
		order: 1;
		align-self: center;
		margin-top: var(--wp--preset--spacing--49, 48px);
	}
	.align-home-section > .wp-block-group:first-child > .wp-block-buttons {
		order: 2;
		/* Centred under the visual, which is centred too. */
		justify-content: center;
		margin-top: var(--wp--preset--spacing--33, 32px) !important;
	}
}
