/*
 * site-refresh.css (Task 12, client brief "Seamless Ideas Website Prompt",
 * 26 Nov 2026). Loaded on every page after components, layout and motion,
 * so it is the one place the brief's site-wide changes live:
 *
 *  1. Tighter spacing (less blank space)
 *  2. Section rhythm: white, off-white, white ... on every page
 *  3. Navigation hover box
 *  4. Heading alignment per layout
 *  5. Videos: natural shape, no black bars, pause button
 *  6. Logos: full colour, no hover effect, one row
 *  7. Case study slider: one row, equal cards
 *  8. "Keep exploring" link cards
 *  9. Homepage hero animated graphic
 * 10. Scroll effects and micro-interactions
 *
 * Motion follows MOTION.md: everything that moves is scoped under
 * .si-motion (added only when the visitor has not asked for reduced
 * motion), or sits inside a prefers-reduced-motion: no-preference query.
 */

/* ---------- 1. Spacing ---------- */
:root {
	--section-pad-light: 72px;
	--section-pad-dark: 80px;
}
@media (max-width: 1023px) {
	:root { --section-pad-light: 60px; --section-pad-dark: 68px; }
}
@media (max-width: 767px) {
	:root { --section-pad-light: 48px; --section-pad-dark: 56px; }
}
.section-head { margin-bottom: var(--space-7); }
@media (max-width: 767px) { .section-head { margin-bottom: var(--space-5); } }
.si-logo-grid__title { margin-bottom: var(--space-6); }

/* ---------- 2. Section rhythm ----------
 * The hero is white, then every top-level section alternates off-white,
 * white, off-white ... whatever the editor picked per module. The dark
 * closing call to action is the one black band and is not counted. */
main > .section:not(.section--dark):not(.section--dark-soft):nth-child(odd of .section:not(.section--dark):not(.section--dark-soft)) { background: var(--bg-alt); }
main > .section:not(.section--dark):not(.section--dark-soft):nth-child(even of .section:not(.section--dark):not(.section--dark-soft)) { background: var(--bg); }
/* Panels and cards that are off-white themselves turn white on an off-white band, and their cards off-white. */
main > .section:nth-child(odd of .section:not(.section--dark):not(.section--dark-soft)) :is(.link-panel, .l3-related, .related-content:not(.related-content--cases)) { background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); }
main > .section:nth-child(odd of .section:not(.section--dark):not(.section--dark-soft)) :is(.link-card, .l3-related__card, .related-content__group) { background: var(--bg-alt); }
/* Breadcrumb strip / in-page nav sit between bands; keep them white. */
main > .section-nav { background: var(--bg); }

/* ---------- 3. Navigation hover box ---------- */
.primary-nav__list { gap: var(--space-1); }
.primary-nav__list > li > a {
	padding-inline: 14px;
	border-bottom: 0;
	border-radius: 8px;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.primary-nav__list > li > a:hover,
.primary-nav__list > li > a:focus-visible,
.primary-nav__list > li:focus-within > a,
.primary-nav__list > li.is-open > a,
.primary-nav__list > li > a[aria-expanded="true"] { background: var(--brand-pink-tint); color: var(--brand-pink-deep); }
.primary-nav__list > li[aria-current="page"] > a { color: var(--brand-pink-deep); box-shadow: inset 0 -2px 0 var(--brand-pink); }
/* The Products divider moves from inside the link to the item, so it sits outside the box. */
.primary-nav__list .nav-products { position: relative; padding-left: var(--space-3); margin-left: var(--space-2); }
.primary-nav__list .nav-products > a { padding-left: 14px; }
.primary-nav__list .nav-products > a::before { display: none; }
.primary-nav__list .nav-products::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 18px; background: currentColor; opacity: 0.3; transform: translateY(-50%); }
.site-header:not(.site-header--light) .primary-nav__list > li > a:hover,
.site-header:not(.site-header--light) .primary-nav__list > li > a:focus-visible { background: rgba(255, 255, 255, 0.12); color: var(--brand-white); }

/* ---------- 4. Heading alignment ----------
 * Centred where the content below is a symmetric showcase (cards, figures,
 * steps, logos, quotes, questions, the closing call to action). Left where
 * the heading leads into reading (text + image, lists, articles), or
 * shares its row with a button. No layout reads better right-aligned. */
.section-head:not(.section-head--split):has(+ :is(.card-grid, .stat-band, .process-list, .platforms-matrix, .testimonial-grid, .product-cards, .feature-grid, .accordion-item, .team-grid, .pricing-cards)) {
	text-align: center;
	margin-inline: auto;
	max-width: 760px;
}
.section-head:not(.section-head--split):has(+ :is(.card-grid, .stat-band, .process-list, .platforms-matrix, .testimonial-grid, .product-cards, .feature-grid, .accordion-item, .team-grid, .pricing-cards)) :is(p, .lead) { margin-inline: auto; }
.section-head:has(+ .accordion-item) ~ .accordion-item,
.section-head:has(+ * > .accordion-item) + * { max-width: 880px; margin-inline: auto; }
/* FAQ: the questions sit in an unnamed wrapper after the heading. */
.section-head:not(.section-head--split):has(+ * > .accordion-item) { text-align: center; margin-inline: auto; max-width: 760px; }
/* Stat bands with fewer than four figures stay centred under the heading. */
@media (min-width: 768px) {
	.stat-band { grid-template-columns: repeat(auto-fit, minmax(160px, 240px)); justify-content: center; text-align: center; }
}
.section-head:has(+ .stat-band) + .stat-band { text-align: center; }
.si-logo-grid__title { text-align: center; }
.si-logo-grid:not(.si-logo-grid--marquee) .si-logo-grid__list { justify-content: center; }
.cta-block { text-align: center; margin-inline: auto; }
.cta-block :is(p, .lead) { margin-inline: auto; }
.cta-block__actions { justify-content: center; }
.process-list { max-width: 920px; margin-inline: auto; }

/* ---------- 5. Videos ----------
 * The box takes the video's own shape (width/height on the file, the
 * oEmbed size on an embed), with nothing behind it, so no black bars. */
.si-video { aspect-ratio: auto; background: transparent; }
.si-video--embed { aspect-ratio: 16 / 9; }
.si-video iframe { background: transparent; }
.si-video--file video { height: auto; object-fit: initial; background: transparent; }
.si-video--file video { object-fit: contain; }
/* Tall (portrait or square) videos: never taller than the screen allows;
   the box narrows to the video's width and centres, so still no bars. */
.si-video--file, .si-video--embed { width: min(100%, calc(min(640px, 78vh) * var(--si-arw, 1.7778))); margin-inline: auto; }
.si-video--file video { width: 100%; }
.si-video--embed { width: min(100%, calc(min(640px, 78vh) * var(--si-arw, 1.7778))); margin-inline: auto; }
.si-video--autoplay iframe { pointer-events: none; }
.si-video__toggle {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(14, 14, 16, 0.62);
	color: var(--brand-white);
	cursor: pointer;
	opacity: 0.85;
	transition: opacity var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.si-video__toggle svg { fill: currentColor; }
.si-video__toggle:hover, .si-video__toggle:focus-visible { opacity: 1; background: var(--brand-pink-deep); }
.si-video__toggle:focus-visible { outline: 2px solid var(--brand-white); outline-offset: 2px; }
.si-video__icon-play, .si-video__toggle[aria-pressed="true"] .si-video__icon-pause { display: none; }
.si-video__toggle[aria-pressed="true"] .si-video__icon-play { display: block; }

/* ---------- 6. Logos: full colour, no hover effect ---------- */
.si-logo-grid__img,
.si-logo-grid__item:hover .si-logo-grid__img,
.si-logo-grid__link:focus-visible .si-logo-grid__img { filter: none; opacity: 1; transition: none; }
.si-logo-grid__item.is-white .si-logo-grid__img,
.si-logo-grid__item.is-white:hover .si-logo-grid__img { filter: brightness(0); }
/* Partner logos: one row at one size. */
.si-logo-grid--partners { --logo-h: 44px; }
.si-logo-grid--partners .si-logo-grid__title { font-size: var(--fs-h2); }
@media (min-width: 768px) {
	.si-logo-grid--partners:not(.si-logo-grid--marquee) .si-logo-grid__list { flex-wrap: nowrap; }
}

/* ---------- 7. Case study slider ---------- */
.cs-slider { --cs-gap: var(--card-gap); --cs-per-view: 3; position: relative; }
.cs-slider__track {
	position: relative; /* contains absolutely positioned children (screen-reader copies of figures) inside the scroll box */
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--cs-per-view) - 1) * var(--cs-gap)) / var(--cs-per-view));
	gap: var(--cs-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0;
	padding: 4px 2px 12px;
	margin: -4px -2px 0;
	scrollbar-width: thin;
	scrollbar-color: var(--border-strong) transparent;
}
.cs-slider__track:focus-visible { outline: 2px solid var(--brand-pink-deep); outline-offset: 4px; border-radius: var(--radius-card); }
.cs-slider__card { scroll-snap-align: start; min-width: 0; height: 100%; }
.cs-slider__card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.cs-slider__card .placeholder-media { aspect-ratio: 16 / 10; }
.cs-slider__card .case-study-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.cs-slider__card h3 { font-size: 1.25rem; line-height: 1.3; }
.cs-slider__card .case-study-card__metrics { margin-top: auto; }
.cs-slider__controls { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-4); }
.cs-slider__controls[hidden] { display: none; }
.cs-slider__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border: 1px solid var(--border-strong); border-radius: 50%;
	background: var(--bg); color: var(--text-main);
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.cs-slider__btn:hover:not(:disabled) { background: var(--brand-black); border-color: var(--brand-black); color: var(--brand-white); }
.cs-slider__btn:focus-visible { outline: 2px solid var(--brand-pink-deep); outline-offset: 2px; }
.cs-slider__btn:disabled { opacity: 0.35; cursor: default; }
.related-content--cases { background: none; padding: 0; border-radius: 0; box-shadow: none !important; }
.related-content--cases .related-content__head { margin-bottom: var(--space-7); }
@media (max-width: 1023px) { .cs-slider { --cs-per-view: 2; } }
@media (max-width: 767px) {
	.cs-slider { --cs-gap: var(--space-4); }
	.cs-slider__track { grid-auto-columns: 84%; }
}

/* ---------- 8. "Keep exploring" link cards ---------- */
.link-panel { background: var(--bg-alt); border-radius: var(--radius-card); padding: 40px 44px 44px; }
.link-panel__title { margin: 0 0 var(--space-5); font-size: var(--fs-h3); line-height: 1.2; letter-spacing: var(--tracking-h3); }
.link-panel__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.link-panel__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-panel__grid--1 { grid-template-columns: minmax(0, 1fr); }
.link-panel__grid > li { min-width: 0; display: flex; }
.link-card {
	position: relative;
	display: flex; flex-direction: column; gap: var(--space-2);
	width: 100%;
	min-height: 44px;
	padding: 24px 26px;
	background: var(--bg);
	border-radius: var(--radius-inset);
	color: var(--text-main);
	text-decoration: none;
	overflow: hidden;
	transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.link-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.link-card__arrow { display: inline-block; margin-left: 0.4em; color: var(--brand-pink-deep); font-family: var(--font-body); font-weight: 500; transition: transform var(--dur-base) var(--ease-out); }
.link-card__desc { font-size: 0.9375rem; line-height: 1.55; color: var(--text-body-light); }
.link-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(30, 30, 30, 0.08); }
.link-card:hover .link-card__arrow, .link-card:focus-visible .link-card__arrow { transform: translateX(4px); }
.link-card:focus-visible { outline: 2px solid var(--brand-pink-deep); outline-offset: 3px; }
.related-links + .related-links { padding-top: 0; }
@media (max-width: 1023px) {
	.link-panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.link-panel { padding: 26px 20px 22px; }
	.link-panel__grid, .link-panel__grid--2 { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
	.link-card { padding: 20px 22px; }
}

/* ---------- 9. Homepage hero animated graphic ---------- */
.hero-home--animated { overflow: hidden; }
.hero-home--animated::before {
	/* A faint pink wash behind the graphic column. */
	content: "";
	position: absolute;
	top: -20%; right: -10%;
	width: 60%; height: 140%;
	background: radial-gradient(closest-side, rgba(210, 58, 102, 0.10), rgba(210, 58, 102, 0) 70%);
	pointer-events: none;
}
.hero-home .si-hero-split__inner { position: relative; }
.hero-anim { position: relative; width: 100%; max-width: 620px; margin-inline: auto; perspective: 1200px; container: hero-anim / inline-size; }
.hero-anim__stage {
	position: relative;
	aspect-ratio: 6 / 5;
	transform: rotateX(var(--hero-rx, 0deg)) rotateY(var(--hero-ry, 0deg));
	transform-style: preserve-3d;
	transition: transform 600ms var(--ease-out);
}
.hero-anim__grid {
	position: absolute; inset: 4% 2%;
	background-image: radial-gradient(var(--border-strong) 1.2px, transparent 1.2px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
	mask-image: radial-gradient(closest-side, #000 55%, transparent);
	opacity: 0.9;
}
.hero-anim__glow {
	position: absolute; left: 30%; top: 28%;
	width: 44%; height: 44%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(210, 58, 102, 0.28), rgba(210, 58, 102, 0));
	filter: blur(6px);
}
.hero-anim__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-anim__path { fill: none; stroke: var(--border-strong); stroke-width: 2; stroke-dasharray: 4 7; vector-effect: non-scaling-stroke; }
.hero-anim__pulse { fill: none; stroke: var(--brand-pink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 26 600; stroke-dashoffset: 26; vector-effect: non-scaling-stroke; opacity: 0; }

.hero-anim__hub { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.hero-anim__core {
	position: absolute; inset: 22%;
	border-radius: 50%;
	background: var(--brand-pink-deep);
	box-shadow: 0 10px 30px rgba(184, 40, 94, 0.35), inset 0 0 0 6px rgba(255, 255, 255, 0.18);
}
.hero-anim__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--brand-pink); opacity: 0.55; }

.hero-anim__card {
	position: absolute;
	display: flex; flex-direction: column; gap: 8px;
	padding: 14px 16px 16px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(30, 30, 30, 0.10);
}
.hero-anim__label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); }
.hero-anim__card--mkt { left: 2%; top: 6%; width: 36%; }
.hero-anim__card--web { left: 4%; bottom: 6%; width: 34%; }
.hero-anim__card--crm { right: 1%; top: 30%; width: 34%; background: var(--brand-black); border-color: var(--brand-black); }
.hero-anim__card--crm .hero-anim__label { color: var(--border-strong); }

.hero-anim__spark { width: 100%; height: auto; overflow: visible; }
.hero-anim__spark path { fill: none; stroke: var(--brand-pink-deep); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 0; }
.hero-anim__bars { display: flex; align-items: flex-end; gap: 5px; height: 22px; }
.hero-anim__bars i { flex: 1; border-radius: 3px; background: var(--surface); height: var(--h, 40%); transform-origin: bottom; }
.hero-anim__bars i:nth-child(1) { --h: 35%; }
.hero-anim__bars i:nth-child(2) { --h: 55%; }
.hero-anim__bars i:nth-child(3) { --h: 45%; }
.hero-anim__bars i:nth-child(4) { --h: 75%; }
.hero-anim__bars i:nth-child(5) { --h: 100%; background: var(--brand-pink); }

.hero-anim__dots { display: flex; gap: 4px; }
.hero-anim__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.hero-anim__dots i:first-child { background: var(--brand-pink); }
.hero-anim__line { display: block; height: 7px; border-radius: 4px; background: var(--surface); }
.hero-anim__line--short { width: 62%; }
.hero-anim__btn { align-self: flex-start; margin-top: 2px; padding: 5px 12px; border-radius: 5px; background: var(--brand-pink-deep); color: var(--brand-white); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; }

.hero-anim__stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.hero-anim__stages i { height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 12% 50%); }
.hero-anim__stages i:nth-child(-n + 2) { background: var(--brand-white); }
.hero-anim__stages i:nth-child(3) { background: var(--brand-light); }
.hero-anim__row { display: flex; align-items: center; gap: 8px; }
.hero-anim__row b { width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); flex: none; }
.hero-anim__row span { height: 6px; flex: 1; border-radius: 3px; background: rgba(255, 255, 255, 0.16); }
.hero-anim__row:nth-of-type(2) span { margin-right: 22%; }
.hero-anim__row:nth-of-type(3) span { margin-right: 40%; }

.hero-anim__toasts { position: absolute; right: 3%; bottom: 7%; width: 50%; height: 64px; }
.hero-anim__toast {
	position: absolute; right: 0; bottom: 0;
	display: flex; align-items: center; gap: 10px;
	max-width: 100%;
	padding: 10px 14px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(30, 30, 30, 0.12);
	opacity: 0;
}
.hero-anim__toast:first-child { opacity: 1; }
.hero-anim__toast-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-pink); box-shadow: 0 0 0 4px var(--brand-pink-tint); }
.hero-anim__toast strong { display: block; font-size: 0.8125rem; line-height: 1.2; }
.hero-anim__toast small { display: block; font-size: 0.6875rem; line-height: 1.3; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1023px) {
	.hero-anim { max-width: 560px; }
}
/* Small graphic (phones): sized from the graphic's own width, not a new page breakpoint (§27.1). */
@container hero-anim (max-width: 440px) {
	.hero-anim__label { font-size: 0.5625rem; }
	.hero-anim__card { padding: 10px 11px 12px; gap: 6px; border-radius: 10px; }
	.hero-anim__toasts { width: 62%; }
	.hero-anim__toast { padding: 8px 10px; gap: 8px; }
	.hero-anim__toast small { display: none; }
	.hero-anim__btn { padding: 3px 8px; font-size: 0.5625rem; }
}

/* Motion for the graphic: only when motion is on. */
@keyframes hero-pulse-run {
	0% { stroke-dashoffset: 26; opacity: 0; }
	8% { opacity: 1; }
	60% { stroke-dashoffset: -330; opacity: 1; }
	70%, 100% { stroke-dashoffset: -330; opacity: 0; }
}
@keyframes hero-spin { to { transform: rotate(360deg); } }
@keyframes hero-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hero-draw { 0% { stroke-dashoffset: 160; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes hero-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.6); } }
@keyframes hero-stage { 0%, 30% { opacity: 0.25; } 40%, 100% { opacity: 1; } }
@keyframes hero-click { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(0.92); } }
@keyframes hero-toast {
	0% { opacity: 0; transform: translateY(14px) scale(0.98); }
	4%, 22% { opacity: 1; transform: none; }
	26%, 100% { opacity: 0; transform: translateY(-10px) scale(0.98); }
}
@keyframes hero-glow { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6%, -4%) scale(1.12); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }

.si-motion .hero-anim__card { animation: hero-in 700ms var(--si-ease) both, hero-float 7s ease-in-out 900ms infinite; }
.si-motion .hero-anim__card--web { animation-delay: 120ms, 2.2s; }
.si-motion .hero-anim__card--crm { animation-delay: 240ms, 3.4s; }
.si-motion .hero-anim__hub { animation: hero-in 700ms var(--si-ease) 80ms both; }
.si-motion .hero-anim__ring { animation: hero-spin 18s linear infinite; }
.si-motion .hero-anim__core { animation: hero-breathe 3.2s ease-in-out infinite; }
.si-motion .hero-anim__glow { animation: hero-glow 9s ease-in-out infinite; }
.si-motion .hero-anim__pulse { animation: hero-pulse-run 3.6s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
.si-motion .hero-anim__pulse--2 { animation-delay: 1.2s; }
.si-motion .hero-anim__pulse--3 { animation-delay: 2.1s; }
.si-motion .hero-anim__spark path { animation: hero-draw 6s var(--si-ease) infinite; }
.si-motion .hero-anim__bars i { animation: hero-bar 2.8s ease-in-out infinite; }
.si-motion .hero-anim__bars i:nth-child(2) { animation-delay: 300ms; }
.si-motion .hero-anim__bars i:nth-child(3) { animation-delay: 600ms; }
.si-motion .hero-anim__bars i:nth-child(4) { animation-delay: 900ms; }
.si-motion .hero-anim__stages i:nth-child(3) { animation: hero-stage 4s ease-in-out infinite alternate; }
.si-motion .hero-anim__btn { animation: hero-click 3.6s ease-in-out 1s infinite; }
.si-motion .hero-anim__toast { opacity: 0; animation: hero-toast 12s var(--si-ease) infinite; animation-delay: calc(var(--i) * 3s + 1s); }
.si-motion .hero-anim__toast:first-child { opacity: 0; }

/* ---------- 10. Scroll effects and micro-interactions ---------- */
/* Pink rule that draws in above centred section headings. */
.section-head:not(.section-head--split):has(+ :is(.card-grid, .stat-band, .process-list, .platforms-matrix, .testimonial-grid, .product-cards, .feature-grid, .accordion-item, .team-grid, .pricing-cards)) h2::before,
.section-head:not(.section-head--split):has(+ * > .accordion-item) h2::before,
.si-logo-grid__title::before {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	margin: 0 auto var(--space-4);
	border-radius: 2px;
	background: var(--brand-pink);
	transform-origin: center;
}
.si-motion [data-motion-state="pending"] h2::before,
.si-motion .si-logo-grid__title[data-motion-state="pending"]::before { transform: scaleX(0); }
.si-motion [data-motion-state="pending"].is-in h2::before,
.si-motion .si-logo-grid__title[data-motion-state="pending"].is-in::before { transform: scaleX(1); transition: transform 700ms var(--si-ease) 250ms; }

/* Cursor spotlight on cards (fine pointers; position set by site-refresh.js). */
@media (hover: hover) and (pointer: fine) {
	.si-motion :is(.info-card, .link-card, .feature-card, .l3-related__card, .l3-card, .card-list__item, .testimonial-card, .product-card)::after {
		content: "";
		position: absolute;
		inset: 0;
		border-radius: inherit;
		background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(210, 58, 102, 0.09), transparent 70%);
		opacity: 0;
		pointer-events: none;
		transition: opacity 250ms var(--si-ease);
	}
	.si-motion :is(.info-card, .link-card, .feature-card, .l3-related__card, .l3-card, .card-list__item, .testimonial-card, .product-card):hover::after { opacity: 1; }
	.si-motion :is(.info-card, .feature-card, .l3-related__card, .l3-card, .card-list__item, .testimonial-card, .product-card) { position: relative; }
}

/* Scroll-linked effects where the browser supports them (progressive, no JS). */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		@keyframes si-step-line { from { transform: scaleY(0); } to { transform: scaleY(1); } }
		@keyframes si-bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
		/* Process: a pink rule fills down the steps as the list scrolls through. */
		.si-motion .process-list { position: relative; }
		.si-motion .process-list::before {
			content: "";
			position: absolute;
			left: -20px; top: 0; bottom: 0;
			width: 2px;
			background: var(--brand-pink);
			transform-origin: top;
			animation: si-step-line linear both;
			animation-timeline: view();
			animation-range: entry 30% cover 70%;
		}
		/* Reading progress for every page except blog posts (they have their own). */
		body:not(.single-post) .site-header::after {
			content: "";
			position: absolute;
			left: 0; bottom: -1px;
			width: 100%; height: 3px;
			background: var(--brand-pink);
			transform-origin: left;
			animation: si-bar-grow linear both;
			animation-timeline: scroll(root);
		}
	}
}
@media (max-width: 1023px) {
	.si-motion .process-list::before { left: -12px; }
}
@media (max-width: 767px) {
	.si-motion .process-list::before { display: none; }
}

/* Hero graphic pause button (WCAG 2.2.2). Only shown while motion is on. */
.hero-anim__toggle { display: none; }
.si-motion .hero-anim__toggle {
	position: absolute; left: 0; bottom: -6px;
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 0 4px;
	border: 0; background: none;
	font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary);
	cursor: pointer;
}
.si-motion .hero-anim__toggle::before { content: ""; width: 8px; height: 10px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.si-motion .hero-anim__toggle[aria-pressed="true"]::before { width: 0; height: 0; border-inline: 0; border-left: 8px solid currentColor; border-block: 5px solid transparent; }
.si-motion .hero-anim__toggle:hover { color: var(--brand-pink-deep); }
.si-motion .hero-anim__toggle:focus-visible { outline: 2px solid var(--brand-pink-deep); outline-offset: 2px; border-radius: 4px; }
.hero-anim.is-paused *, .hero-anim.is-paused *::before, .hero-anim.is-paused *::after { animation-play-state: paused !important; }

/* Hero videos share the hero image radius (§27.2). */
.hero-split__media .si-video { border-radius: var(--radius-card); }

/* Feature card numbers are pink text on a light tile: the deep pink passes AA at every size (tokens.css). */
.section:not(.section--dark):not(.section--dark-soft) .feature-grid .feature-card__icon { color: var(--brand-pink-deep); }
