/**
 * AGMA theme styles that theme.json cannot express.
 * Colors, fonts and sizes always come from theme.json presets (CSS custom properties).
 */

/* ------------------------------------------------------------------ */
/* Text never widens the page: a word or string that does not fit its  */
/* line breaks (long Bulgarian words in big headings, URLs, code).     */
/* Words that fit are untouched; on phones headings hyphenate.         */
/* ------------------------------------------------------------------ */

:where(h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, figcaption, td, th, summary) {
	overflow-wrap: break-word;
}

@media (max-width: 781px) {
	:where(h1, h2, h3, h4, h5, h6) {
		hyphens: auto;
	}
}

/* Embeds pasted into posts with a fixed width (e.g. iframe width="500"). */
:where(.wp-block-post-content) :where(iframe, embed, object, video) {
	max-width: 100%;
}

/* ------------------------------------------------------------------ */
/* Header: fixed, compact glass bar after the first 80px of scrolling. */
/* ------------------------------------------------------------------ */

:root {
	--agma-header-height: 160px;
	--agma-header-padding: 45px;

	/* Spacing preset "120": section padding of the original pages (120px, 80px up to 480px). */
	--agma-space-120: 120px;
}

@media (max-width: 480px) {
	:root {
		--agma-space-120: 80px;
	}
}

@media (max-width: 1024px) {
	:root {
		--agma-header-height: 96px;
		--agma-header-padding: 25px;
	}
}

.wp-site-blocks > header.wp-block-template-part {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	inset-inline: 0;
	z-index: 100;
	padding-inline: var(--wp--style--root--padding-left);
	pointer-events: none;
}

.wp-site-blocks > header.wp-block-template-part > * {
	pointer-events: auto;
}

/* Reserve the header height so the fixed header never covers content. */
.wp-site-blocks > header.wp-block-template-part + * {
	margin-block-start: var(--agma-header-height) !important;
}

@media (max-width: 600px) {
	/* Core moves the admin bar out of view on small screens. */
	.wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

.is-style-agma-header-bar {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto;
	padding: var(--agma-header-padding) 20px;
	border: 1px solid transparent;
	border-top: 0;
	border-radius: 0 0 30px 30px;
}

@supports (animation-timeline: scroll()) {
	.is-style-agma-header-bar,
	.is-style-agma-header-bar .is-style-agma-nav-pill {
		animation-duration: 1ms;
		animation-timing-function: linear;
		animation-fill-mode: both;
		animation-timeline: scroll(root);
		animation-range: 0 80px;
	}

	.is-style-agma-header-bar {
		animation-name: agma-header-compact;
	}

	.is-style-agma-header-bar .is-style-agma-nav-pill {
		animation-name: agma-pill-flatten;
	}
}

@keyframes agma-header-compact {
	to {
		padding-block: 10px;
		border-color: var(--wp--preset--color--white-10);
		background-color: var(--wp--preset--color--black-70);
		box-shadow: 0 4px 30px var(--wp--preset--color--black-70);
		backdrop-filter: blur(6.2px);
	}
}

@keyframes agma-pill-flatten {
	to {
		border-color: transparent;
		background-color: transparent;
		backdrop-filter: none;
	}
}

/* Navigation pill (desktop menu). */
.is-style-agma-nav-pill {
	padding: 20px clamp(30px, 5vw, 80px);
	border: 1px solid var(--wp--preset--color--white-10);
	border-radius: 32px;
	background-color: color-mix(in srgb, var(--wp--preset--color--black) 85%, transparent);
	backdrop-filter: blur(6.2px);
}

.is-style-agma-nav-pill .wp-block-navigation-item__content,
.is-style-agma-nav-pill .agma-action-button {
	line-height: 1;
	transition: color 1s ease;
}

.is-style-agma-nav-pill .wp-block-navigation-item__content:hover,
.is-style-agma-nav-pill .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--white-75);
}

/* Responsive visibility helpers (Advanced > Additional CSS class). */
@media (max-width: 1024px) {
	.agma-hide-below-desktop {
		display: none !important;
	}
}

@media (min-width: 1025px) {
	.agma-show-below-desktop {
		display: none !important;
	}
}

@media (max-width: 600px) {
	.agma-hide-mobile {
		display: none !important;
	}
}

/* Centre text on phones (as Elementor's "mobile alignment: center"). */
@media (max-width: 480px) {
	.agma-center-mobile {
		text-align: center;
	}
}

/* ------------------------------------------------------------------ */
/* Mega menu and cards.                                                */
/* ------------------------------------------------------------------ */

.is-style-agma-promo-card {
	padding: 40px;
	border: 1px solid var(--wp--preset--color--white-20);
	border-radius: 30px;
	background: linear-gradient(180deg, var(--wp--preset--color--blue-50) 0%, var(--wp--preset--color--blue-70) 90%);
}

.is-style-agma-link-card {
	position: relative;
	transition: opacity 0.3s ease;
}

.is-style-agma-link-card a {
	color: inherit;
	text-decoration: none;
}

/* The first link stretches over the whole card. */
.is-style-agma-link-card a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.is-style-agma-link-card:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--blue-light);
	outline-offset: 6px;
	border-radius: 10px;
}

.is-style-agma-link-card a:focus-visible {
	outline: none;
}

/* Hovering one card dims the others in the same panel or group. */
:where(.agma-offcanvas, .wp-block-group):has(.is-style-agma-link-card:hover) .is-style-agma-link-card:not(:hover) {
	opacity: 0.5;
}

.is-style-agma-eyebrow {
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 2px;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Footer.                                                             */
/* ------------------------------------------------------------------ */

.wp-site-blocks > footer.wp-block-template-part {
	padding: 0 10px 40px;
}

.is-style-agma-footer-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto;
	padding: clamp(40px, 7.5vw, 110px) clamp(20px, 7.5vw, 110px) clamp(30px, 4vw, 55px);
	border-radius: clamp(30px, 5.5vw, 80px);
	background-color: color-mix(in srgb, var(--wp--preset--color--white) 8%, transparent);
}

/* Blue radial glow behind the lower part of the card. */
.is-style-agma-footer-card::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 45%;
	width: 135%;
	aspect-ratio: 1;
	background: radial-gradient(circle, var(--wp--preset--color--blue-50) 0%, transparent 70%);
	transform: translateX(-50%);
	pointer-events: none;
}

/* Plain contact links (e-mail, phone) in the footer, as on the original design. */
.is-style-agma-footer-card p > a {
	text-decoration: none;
	transition: color 0.3s ease;
}

.is-style-agma-footer-card p > a:hover {
	color: var(--wp--preset--color--blue-light);
}

.wp-block-social-links.is-style-logos-only .wp-social-link a {
	transition: color 0.3s ease;
}

.wp-block-social-links.is-style-logos-only .wp-social-link a:hover {
	color: var(--wp--preset--color--blue-light);
}

/* Avatar stack: overlapping round photos with a ring in the background color (contact popup). */
.is-style-agma-avatars {
	flex-wrap: nowrap;
	gap: 0;
}

.is-style-agma-avatars > .wp-block-image {
	flex: none;
	width: 65px;
	margin: 0;
	border: 5px solid var(--wp--preset--color--white);
	border-radius: 50%;
	overflow: hidden;
}

.is-style-agma-avatars > .wp-block-image + .wp-block-image {
	margin-inline-start: -20px;
}

.is-style-agma-avatars > .wp-block-image:first-child {
	position: relative;
	z-index: 1;
}

.is-style-agma-avatars img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: top center;
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-link-card,
	.is-style-agma-nav-pill .wp-block-navigation-item__content {
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* Homepage.                                                           */
/* ------------------------------------------------------------------ */

/* Hero: first screen minus the header; the next section starts 100px above the fold line. */
.is-style-agma-hero {
	position: relative;
	z-index: 0;
	box-sizing: border-box;
	min-height: calc(90vh - var(--agma-header-height) - 100px);
	overflow-x: clip;
}

/* Blue (top left) and purple (top right) glow, measured from the page top. */
.is-style-agma-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: calc(-1 * var(--agma-header-height)) 0 auto;
	height: 1600px;
	background:
		radial-gradient(circle 848px at 200px 93px, var(--wp--preset--color--blue-50) 0%, transparent 70%),
		radial-gradient(circle 848px at calc(100% - 300px) 293px, var(--wp--preset--color--purple-50) 0%, transparent 70%);
	pointer-events: none;
}

@media (max-width: 480px) {
	.is-style-agma-hero::before {
		background:
			radial-gradient(circle 848px at 200px 343px, var(--wp--preset--color--blue-50) 0%, transparent 70%),
			radial-gradient(circle 848px at 100% 793px, var(--wp--preset--color--purple-50) 0%, transparent 70%);
	}
}

/* Translucent card with background blur (logos, testimonials). */
.is-style-agma-glass-card {
	position: relative;
	border-radius: 20px;
	background-color: var(--wp--preset--color--white-5);
	backdrop-filter: blur(6.2px);
}

/* Fixed column counts as on the original grid (6 → 3 → 2). */
.wp-block-group.is-style-agma-logo-grid {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	align-items: stretch;
}

@media (max-width: 1024px) {
	.wp-block-group.is-style-agma-logo-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 30px 0;
	}
}

@media (max-width: 620px) {
	.wp-block-group.is-style-agma-logo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.is-style-agma-logo-grid > .is-style-agma-glass-card {
		gap: 0;
	}

	.is-style-agma-logo-grid .wp-block-image {
		padding-block: 10px;
	}
}

@media (max-width: 480px) {
	.wp-block-group.is-style-agma-logo-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px 0;
	}
}

.is-style-agma-logo-grid > * {
	min-height: 100%;
}

/* Open frame around full-width content (e.g. the projects carousel): top and bottom halves. */
.is-style-agma-frame-top,
.is-style-agma-frame-bottom {
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--white-10);
}

.is-style-agma-frame-top {
	padding: 100px 100px 80px;
	border-bottom: 0;
	border-radius: 80px 80px 0 0;
	background: linear-gradient(180deg, var(--wp--preset--color--white-10) 0%, transparent 100%);
}

.is-style-agma-frame-bottom {
	min-height: 120px;
	border-top: 0;
	border-radius: 0 0 80px 80px;
	background: linear-gradient(0deg, var(--wp--preset--color--white-10) 0%, transparent 100%);
}

@media (max-width: 1366px) {
	.is-style-agma-frame-top {
		padding-bottom: 40px;
	}

	.is-style-agma-frame-bottom {
		min-height: 100px;
	}
}

@media (max-width: 1024px) {
	.is-style-agma-frame-top {
		padding-inline: 60px;
	}
}

@media (max-width: 768px) {
	.is-style-agma-frame-top {
		padding: 80px 40px 40px;
	}

	.is-style-agma-frame-bottom {
		min-height: 80px;
	}
}

@media (max-width: 620px) {
	.is-style-agma-frame-top {
		padding: 60px 20px 20px;
		border-radius: 30px 30px 0 0;
	}

	.is-style-agma-frame-bottom {
		min-height: 60px;
		border-radius: 0 0 30px 30px;
	}
}

/* Large glass card around a whole section, with a light gradient border. */
.is-style-agma-section-card {
	position: relative;
	box-sizing: border-box;
	padding: 100px;
	border-radius: 80px;
	background-color: color-mix(in srgb, var(--wp--preset--color--white) 8%, transparent);
}

.is-style-agma-section-card::before,
.is-style-agma-section-card-glass::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(
		107deg,
		color-mix(in srgb, var(--wp--preset--color--white) 58%, transparent) 1.22%,
		transparent 17.85%,
		transparent 80.23%,
		color-mix(in srgb, var(--wp--preset--color--white) 58%, transparent) 99.7%
	);
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
}

@media (max-width: 1366px) {
	.is-style-agma-section-card {
		padding: 100px 60px 60px;
	}
}

/* Up to 768px the original drops the card padding and fill (the frame line stays). */
@media (max-width: 768px) {
	.is-style-agma-section-card {
		padding: 0 !important;
		border-radius: 60px;
		background-color: transparent;
	}
}

/* Case study: text column + muted preview video (video first when stacked). */
.wp-block-columns.is-style-agma-case-card {
	box-sizing: border-box;
	padding: 40px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 15%, transparent);
	border-radius: 28px;
	background-color: var(--wp--preset--color--white-5);
}

.is-style-agma-case-card .wp-block-video {
	aspect-ratio: 4 / 3;
	height: auto;
}

@media (max-width: 1024px) {
	.wp-block-columns.is-style-agma-case-card {
		flex-direction: column;
	}

	.wp-block-columns.is-style-agma-case-card > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}

	.is-style-agma-case-card > .wp-block-column:has(.wp-block-video) {
		order: -1;
	}
}

@media (max-width: 620px) {
	.wp-block-columns.is-style-agma-case-card {
		padding: 40px 20px;
	}

	.is-style-agma-case-card .wp-block-video {
		border-radius: 15px;
	}
}

@media (max-width: 480px) {
	.wp-block-columns.is-style-agma-case-card {
		padding: 20px;
	}
}

/* Video popup: 16:9 player, white close button. */
.agma-offcanvas.is-placement-modal.is-style-agma-video {
	width: 70vw;
	max-width: 1024px;
	padding: 0;
	overflow: visible;
}

.is-style-agma-video .wp-block-embed {
	margin: 0;
}

.is-style-agma-video .wp-block-embed__wrapper,
.is-style-agma-video iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: inherit;
}

.agma-offcanvas.is-placement-modal.is-style-agma-video .agma-offcanvas__close {
	position: absolute;
	top: auto;
	right: 0;
	bottom: calc(100% + 8px);
	color: var(--wp--preset--color--white);
}

@media (max-width: 1024px) {
	.agma-offcanvas.is-placement-modal.is-style-agma-video {
		width: 80vw;
	}
}

@media (max-width: 768px) {
	.agma-offcanvas.is-placement-modal.is-style-agma-video {
		width: 90vw;
	}
}

/*
 * Slider layout: first child is the side panel (text, arrows), second the carousel.
 * The content starts at the content-width edge and the carousel runs to the right
 * edge of the screen (production: padding-left calc((100vw - 1480px) / 2) + 20px).
 * Below 1024px the panel becomes a row above the carousel (arrows on the right).
 */
.wp-block-group.is-style-agma-slider-layout {
	padding-right: 0;
	padding-left: max(
		var(--wp--style--root--padding-left),
		calc((100vw - var(--wp--style--global--content-size)) / 2)
	);
}

.is-style-agma-slider-layout > :first-child {
	flex-shrink: 0;
}

.is-style-agma-slider-layout > :first-child > :last-child {
	margin-top: auto;
}

@media (max-width: 1366px) {
	.wp-block-group.is-style-agma-slider-layout {
		padding-left: var(--wp--style--root--padding-left);
	}
}

@media (max-width: 1024px) {
	.wp-block-group.is-style-agma-slider-layout {
		flex-direction: column;
		align-items: stretch;
		row-gap: 30px;
	}

	.is-style-agma-slider-layout > :first-child {
		flex: none !important;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 30px 60px;
		width: auto;
		padding-right: var(--wp--style--root--padding-right);
	}

	.is-style-agma-slider-layout > :first-child {
		flex-wrap: nowrap;
	}

	.is-style-agma-slider-layout > :first-child > :first-child {
		flex: 1 1 100%;
		gap: 30px;
	}

	.is-style-agma-slider-layout > :first-child > :last-child {
		flex: none;
		margin-top: 0;
	}

	/* The intro text uses the full width. */
	.wp-block-group:has(> .is-style-agma-slider-layout) > :first-child > * {
		max-width: none !important;
	}
}

/* Up to 768px the arrows wrap under the text, on the left (as on the original). */
@media (max-width: 768px) {
	.is-style-agma-slider-layout > :first-child {
		flex-wrap: wrap;
	}
}

/* Reviews: 80px between the intro and the slider (30px up to 768px). */
.wp-block-group > .is-style-agma-slider-layout {
	margin-block-start: 80px !important;
}

@media (max-width: 768px) {
	.wp-block-group > .is-style-agma-slider-layout {
		margin-block-start: 30px !important;
	}
}

/* Review card (Query Loop item): glass panel, rating on top, author pinned to the bottom. */
.wp-block-group.is-style-agma-review-card {
	box-sizing: border-box;
	min-height: 500px;
	padding: 50px 50px 40px;
	border: 1px solid var(--wp--preset--color--white-10);
	border-radius: 30px;
	background-color: var(--wp--preset--color--white-5);
}

.is-style-agma-review-card > :last-child {
	margin-top: auto;
}

.is-style-agma-review-card .agma-rating {
	padding-bottom: 25px;
	border-bottom: 1px solid var(--wp--preset--color--white-50);
}

.is-style-agma-review-card .wp-block-post-featured-image {
	flex: none;
}

/* LinkedIn profile of the reviewer: a quiet text link, rendered only when the field is filled. */
.is-style-agma-review-card .agma-review-linkedin {
	margin-top: var(--wp--preset--spacing--10);
}

.is-style-agma-review-card .agma-review-linkedin .wp-block-button__link {
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--blue-light);
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 20px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 1366px) {
	.wp-block-group.is-style-agma-review-card {
		min-height: 450px;
		padding: 40px 40px 30px;
	}
}

@media (max-width: 1024px) {
	.wp-block-group.is-style-agma-review-card {
		min-height: 400px;
	}
}

@media (max-width: 480px) {
	.wp-block-group.is-style-agma-review-card {
		gap: 20px;
		padding: 30px 20px 20px;
	}

	.is-style-agma-review-card > :last-child {
		flex-direction: column;
		align-items: center;
	}

	.is-style-agma-review-card > :last-child > :last-child {
		align-items: center;
		text-align: center;
	}
}

/*
 * Technology grid: icon + label cells separated by thin lines (no outer frame),
 * 4 columns, 2 below 1024px. Hover: blue radial glow, icon grows, label brightens.
 */
.wp-block-group.is-style-agma-tech-grid {
	--agma-tech-columns: 4;
	--agma-tech-line: 1px solid var(--wp--preset--color--white-20);

	grid-template-columns: repeat(var(--agma-tech-columns), minmax(0, 1fr));
}

.is-style-agma-tech-grid > * {
	position: relative;
	box-sizing: border-box;
	padding: 60px;
	isolation: isolate;
}

/* Lines: right between columns, bottom between rows (none on the outer edges). */
@media (min-width: 1025px) {
	.is-style-agma-tech-grid > :not(:nth-child(4n)) {
		border-right: var(--agma-tech-line);
	}

	.is-style-agma-tech-grid > :nth-child(4n + 1):not(:nth-last-child(-n + 4)),
	.is-style-agma-tech-grid > :nth-child(4n + 1):not(:nth-last-child(-n + 4)) ~ * {
		border-bottom: var(--agma-tech-line);
	}

	.is-style-agma-tech-grid > :nth-child(4n + 1):nth-last-child(-n + 4),
	.is-style-agma-tech-grid > :nth-child(4n + 1):nth-last-child(-n + 4) ~ * {
		border-bottom: 0;
	}
}

.is-style-agma-tech-grid > ::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(at center center, var(--wp--preset--color--blue) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 1s;
	pointer-events: none;
}

.is-style-agma-tech-grid > :hover::before {
	opacity: 0.4;
}

.is-style-agma-tech-grid .wp-block-image {
	margin: 0;
	opacity: 0.85;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.is-style-agma-tech-grid .wp-block-image img {
	display: block;
	width: auto;
	height: 85px;
}

.is-style-agma-tech-grid p {
	opacity: 0.6;
	transition: opacity 0.4s ease;
}

.is-style-agma-tech-grid > :hover .wp-block-image {
	opacity: 1;
	transform: scale(1.1);
}

.is-style-agma-tech-grid > :hover p {
	opacity: 1;
}

@media (max-width: 1024px) {
	.wp-block-group.is-style-agma-tech-grid {
		--agma-tech-columns: 2;
	}

	.is-style-agma-tech-grid > * {
		border-bottom: var(--agma-tech-line);
	}

	.is-style-agma-tech-grid > :nth-child(odd) {
		border-right: var(--agma-tech-line);
	}

	.is-style-agma-tech-grid > :nth-child(odd):nth-last-child(-n + 2),
	.is-style-agma-tech-grid > :nth-child(odd):nth-last-child(-n + 2) ~ * {
		border-bottom: 0;
	}
}

@media (max-width: 480px) {
	.is-style-agma-tech-grid > * {
		padding: 60px 10px;
		gap: 1rem;
	}

	.is-style-agma-tech-grid .wp-block-image img {
		height: 65px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-tech-grid > ::before,
	.is-style-agma-tech-grid .wp-block-image,
	.is-style-agma-tech-grid p {
		transition: none;
	}
}

/* Slider navigation row (projects slider): arrows + progress bar, 40px below the slides. */
.wp-block-group.is-style-agma-slider-nav {
	margin-top: -10px;
	padding-left: 50px;
}

@media (max-width: 1024px) {
	.wp-block-group.is-style-agma-slider-nav {
		padding-left: 0;
	}
}

@media (max-width: 480px) {
	.wp-block-group.is-style-agma-slider-nav {
		gap: 20px;
	}
}

/* Carousel arrows on a section card: gray 25%, white with a dark icon on hover (production nav arrows). */
.agma-carousel-arrows.is-style-agma-gray .agma-carousel-arrows__button {
	border-color: color-mix(in srgb, var(--wp--preset--color--gray) 25%, transparent);
	background-color: color-mix(in srgb, var(--wp--preset--color--gray) 25%, transparent);
	transition: background-color 0.8s ease-in-out, border-color 0.8s ease-in-out, color 0.3s, opacity 0.3s;
}

.agma-carousel-arrows.is-style-agma-gray .agma-carousel-arrows__button:is(:hover, :focus-visible):not(:disabled) {
	border-color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--almost-black);
}

/* ------------------------------------------------------------------ */
/* Services section (homepage).                                        */
/* ------------------------------------------------------------------ */

/* Soft purple glow behind the left part of a section (hidden on small screens). */
.is-style-agma-glow-purple {
	position: relative;
	z-index: 0;
}

.is-style-agma-glow-purple::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -400px 0;
	background: radial-gradient(circle 850px at calc(50% - 486px) 1488px, var(--wp--preset--color--purple-70) 0%, transparent 70%);
	pointer-events: none;
}

@media (max-width: 768px) {
	.is-style-agma-glow-purple::before {
		display: none;
	}
}

/* Section card variant: fainter glass with background blur and tighter side padding. */
.is-style-agma-section-card-glass {
	position: relative;
	box-sizing: border-box;
	padding: 100px 80px;
	border-radius: 80px;
	background-color: color-mix(in srgb, var(--wp--preset--color--white) 4%, transparent);
	backdrop-filter: blur(6.2px);
}

@media (max-width: 768px) {
	.is-style-agma-section-card-glass {
		padding: 100px 60px 60px;
		border-radius: 60px;
	}
}

@media (max-width: 620px) {
	.wp-block-group.is-style-agma-section-card-glass {
		gap: 60px;
	}

	.is-style-agma-section-card-glass {
		padding: 60px 30px 30px;
	}
}

@media (max-width: 480px) {
	.is-style-agma-section-card-glass {
		padding: 60px 20px 20px;
	}
}

/* Two equal columns, one below 1024px. */
.wp-block-group.is-style-agma-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1024px) {
	.wp-block-group.is-style-agma-grid-2 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Outline pill: short note + image in a rounded frame with a gradient border, aligned to the end. */
.wp-block-group.is-style-agma-outline-pill {
	position: relative;
	box-sizing: border-box;
	width: 70%;
	padding: 20px;
	justify-self: end;
	align-self: start;
	border-radius: 80px;
}

.is-style-agma-outline-pill::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(
		156deg,
		color-mix(in srgb, var(--wp--preset--color--white) 58%, transparent) 1.22%,
		transparent 17.85%,
		transparent 80.23%,
		color-mix(in srgb, var(--wp--preset--color--white) 58%, transparent) 99.7%
	);
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
}

.is-style-agma-outline-pill .wp-block-image {
	flex: none;
	margin: 0;
}

.is-style-agma-outline-pill .wp-block-image img {
	display: block;
	width: 120px;
	height: auto;
}

@media (max-width: 1024px) {
	.wp-block-group.is-style-agma-outline-pill {
		justify-self: start;
	}
}

@media (max-width: 768px) {
	.wp-block-group.is-style-agma-outline-pill {
		width: 100%;
		justify-content: center;
		border-radius: 40px;
	}
}

@media (max-width: 480px) {
	.wp-block-group.is-style-agma-outline-pill {
		flex-direction: column;
		gap: 16px;
		padding: 30px;
	}

	.is-style-agma-outline-pill p {
		text-align: center;
	}

	.is-style-agma-outline-pill .wp-block-image img {
		width: 96px;
	}
}

/*
 * Service card: Lottie icon (first block, top left) next to the title, description below.
 * An Action button without a label stretches over the whole card as its link; its arrow icon
 * slides in from the right on hover. Hover: purple → dark blue gradient and purple border.
 */
.wp-block-group.is-style-agma-service-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	padding: 65px;
	border: 1px solid var(--wp--preset--color--white-10);
	border-radius: 40px;
	background-color: color-mix(in srgb, var(--wp--preset--color--gray) 17%, transparent);
	transition: border-color 0.3s;
}

.is-style-agma-service-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(120deg, var(--wp--preset--color--purple) 0%, var(--wp--preset--color--blue-dark) 100%);
	opacity: 0;
	transition: opacity 1s;
	pointer-events: none;
}

.is-style-agma-service-card:is(:hover, :focus-within) {
	border-color: var(--wp--preset--color--purple);
}

.is-style-agma-service-card:is(:hover, :focus-within)::before {
	opacity: 1;
}

.is-style-agma-service-card > .agma-lottie {
	position: absolute;
	top: 65px;
	left: 65px;
}

.is-style-agma-service-card > .agma-lottie + * {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 65px;
	padding-left: 80px;
}

.is-style-agma-service-card > .agma-action-button {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
}

.is-style-agma-service-card > .agma-action-button:focus-visible {
	outline-offset: -4px;
}

.is-style-agma-service-card > .agma-action-button .agma-icon {
	position: absolute;
	right: -65px;
	bottom: 30px;
	box-sizing: content-box;
	width: 15px;
	height: 15px;
	padding: 16px;
	border-radius: 50%;
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--blue);
	transition: all 0.6s ease;
}

/* Bolder arrow, as the solid Font Awesome arrow on the original design. */
.is-style-agma-service-card > .agma-action-button .agma-icon path {
	stroke-width: 3;
}

.is-style-agma-service-card:is(:hover, :focus-within) > .agma-action-button .agma-icon {
	right: 30px;
	transform: rotate(315deg);
}

.is-style-agma-service-card > .agma-action-button .agma-icon:hover {
	background-color: var(--wp--preset--color--purple);
}

@media (max-width: 620px) {
	.wp-block-group.is-style-agma-service-card {
		padding: 60px 30px 30px;
	}

	.is-style-agma-service-card > .agma-lottie {
		top: 60px;
		left: 30px;
	}
}

@media (max-width: 480px) {
	.wp-block-group.is-style-agma-service-card {
		padding: 50px 20px 30px;
	}

	.is-style-agma-service-card > .agma-lottie {
		top: 50px;
		left: 20px;
	}

	.is-style-agma-service-card > .agma-lottie + * {
		padding-left: 70px;
	}

	.is-style-agma-service-card > .agma-action-button .agma-icon {
		display: none;
	}

	/* Service cards sit closer together on phones. */
	.wp-block-group.is-style-agma-grid-2:has(> .is-style-agma-service-card) {
		gap: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-service-card,
	.is-style-agma-service-card::before,
	.is-style-agma-service-card > .agma-action-button .agma-icon {
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* FAQ section (homepage).                                             */
/* ------------------------------------------------------------------ */

/* Large soft blue glow right of the centre, spilling into the next section. */
.is-style-agma-glow-blue {
	position: relative;
	z-index: 0;
}

.is-style-agma-glow-blue::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -400px 0 -1300px;
	background: radial-gradient(circle 1683px at calc(50% + 237px) 1314px, var(--wp--preset--color--blue-70) 0%, transparent 70%);
	pointer-events: none;
}

/* Photo column (fixed width) + questions column; stacked and centred below 1024px. */
.wp-block-group.is-style-agma-faq-layout {
	gap: 60px 120px;
	align-items: flex-start;
}

.is-style-agma-faq-layout > :first-child {
	flex: none;
	width: 580px;
	max-width: 100%;
}

.is-style-agma-faq-layout > :last-child {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 1024px) {
	.wp-block-group.is-style-agma-faq-layout {
		flex-direction: column;
		align-items: center;
	}

	.is-style-agma-faq-layout > :last-child {
		flex: none;
		width: 100%;
	}
}

@media (max-width: 620px) {
	/* 100px below the section heading on small screens (120px otherwise, section block gap). */
	.wp-block-group.is-style-agma-faq-layout {
		margin-block-start: 100px;
	}

	.is-style-agma-faq-layout > :first-child {
		width: 400px;
	}
}

@media (max-width: 480px) {
	.is-style-agma-faq-layout > :first-child {
		width: 100%;
	}
}

/*
 * Photo with orbits: four thin rings with a dot each, turning while the photo scrolls
 * through the viewport (outer ring one way, inner rings the other way, at different
 * speeds). The last group (quote) floats over the lower right corner of the photo.
 * Rings are masks (shape + opacity) filled with the white preset.
 */
.is-style-agma-orbit-photo {
	position: relative;
	isolation: isolate;
	container-type: inline-size;
	view-timeline-name: --agma-orbit;
	/* Turning rings must not widen the page. */
	overflow: clip;
	overflow-clip-margin: 16px;
}

.is-style-agma-orbit-photo > .wp-block-image {
	margin: 0;
}

.is-style-agma-orbit-photo > .wp-block-image img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
}

.is-style-agma-orbit-photo::before,
.is-style-agma-orbit-photo::after,
.is-style-agma-orbit-photo > .wp-block-image::before,
.is-style-agma-orbit-photo > .wp-block-image::after,
.is-style-agma-orbit-phone::before,
.is-style-agma-orbit-phone::after,
.is-style-agma-orbit-phone > .wp-block-image::before,
.is-style-agma-orbit-phone > .wp-block-image::after {
	content: "";
	position: absolute;
	z-index: 0;
	top: 50%;
	left: 50%;
	width: calc(var(--agma-orbit-size) * 1.04);
	aspect-ratio: 1;
	translate: -50% -50%;
	background-color: var(--wp--preset--color--white);
	-webkit-mask: var(--agma-orbit-ring) center / 100% 100% no-repeat;
	mask: var(--agma-orbit-ring) center / 100% 100% no-repeat;
	pointer-events: none;
}

.is-style-agma-orbit-photo::before,
.is-style-agma-orbit-phone::before {
	--agma-orbit-size: 100%;
	--agma-orbit-turn: 50deg;
	--agma-orbit-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 104 104'%3E%3Ccircle cx='50' cy='50' r='50' fill='none' stroke='%23000' stroke-opacity='.2' vector-effect='non-scaling-stroke'/%3E%3Ccircle cx='8.45' cy='21.72' r='1.03'/%3E%3C/svg%3E");
}

.is-style-agma-orbit-photo::after,
.is-style-agma-orbit-phone::after {
	--agma-orbit-size: 86%;
	--agma-orbit-turn: -50deg;
	--agma-orbit-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 104 104'%3E%3Ccircle cx='50' cy='50' r='50' fill='none' stroke='%23000' stroke-opacity='.2' vector-effect='non-scaling-stroke'/%3E%3Ccircle cx='100' cy='49.2' r='1.2'/%3E%3C/svg%3E");
}

.is-style-agma-orbit-photo > .wp-block-image::before,
.is-style-agma-orbit-phone > .wp-block-image::before {
	--agma-orbit-size: 72%;
	--agma-orbit-turn: -215deg;
	--agma-orbit-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 104 104'%3E%3Ccircle cx='50' cy='50' r='50' fill='none' stroke='%23000' stroke-opacity='.2' vector-effect='non-scaling-stroke'/%3E%3Ccircle cx='0' cy='49.33' r='1.44'/%3E%3C/svg%3E");
}

.is-style-agma-orbit-photo > .wp-block-image::after,
.is-style-agma-orbit-phone > .wp-block-image::after {
	--agma-orbit-size: 58%;
	--agma-orbit-turn: -100deg;
	--agma-orbit-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 104 104'%3E%3Ccircle cx='50' cy='50' r='50' fill='none' stroke='%23000' stroke-opacity='.2' vector-effect='non-scaling-stroke'/%3E%3Ccircle cx='81.87' cy='10.7' r='1.78'/%3E%3C/svg%3E");
}

@keyframes agma-orbit-turn {
	from {
		rotate: var(--agma-orbit-turn);
	}

	to {
		rotate: calc(-1 * var(--agma-orbit-turn));
	}
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.is-style-agma-orbit-photo::before,
		.is-style-agma-orbit-photo::after,
		.is-style-agma-orbit-photo > .wp-block-image::before,
		.is-style-agma-orbit-photo > .wp-block-image::after,
		.is-style-agma-orbit-phone::before,
		.is-style-agma-orbit-phone::after,
		.is-style-agma-orbit-phone > .wp-block-image::before,
		.is-style-agma-orbit-phone > .wp-block-image::after {
			animation: agma-orbit-turn linear both;
			animation-timeline: --agma-orbit;
			animation-range: cover;
		}
	}
}

.is-style-agma-orbit-photo > .wp-block-group:last-child {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 15px;
	width: 280px;
	margin: 0;
}

@media (max-width: 480px) {
	.is-style-agma-orbit-photo > .wp-block-image {
		width: 80%;
		margin-inline: auto;
	}

	/* Rings stay centred on the (80% wide, square) photo, not on photo + quote. */
	.is-style-agma-orbit-photo::before,
	.is-style-agma-orbit-photo::after,
	.is-style-agma-orbit-photo > .wp-block-image::before,
	.is-style-agma-orbit-photo > .wp-block-image::after {
		top: 40cqw;
	}

	/* On phones the quote spans the full width and overlaps the bottom of the photo. */
	.is-style-agma-orbit-photo > .wp-block-group:last-child {
		position: relative;
		inset: auto;
		width: auto;
		margin-top: -88px;
	}
}

/*
 * FAQ list (Details blocks): large running number on the left (dim; white on hover and
 * when open), title, chevron on the right, a short line that grows on hover.
 * Details blocks with the same "name" act as an accordion (one open at a time).
 */
.is-style-agma-faq {
	counter-reset: agma-faq;
}

.is-style-agma-faq > .wp-block-details {
	counter-increment: agma-faq;
	margin: 0;
}

.is-style-agma-faq > .wp-block-details > summary {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 30px 30px 30px 115px;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 30%, transparent);
	background: linear-gradient(var(--wp--preset--color--white), var(--wp--preset--color--white)) left bottom / 0 2px no-repeat;
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 20px;
	font-weight: 500;
	line-height: 24px;
	list-style: none;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-size 0.3s linear;
}

.is-style-agma-faq > .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

/* Running number 01, 02… */
.is-style-agma-faq > .wp-block-details > summary::before {
	content: counter(agma-faq, decimal-leading-zero);
	position: absolute;
	top: 50%;
	left: 3px;
	translate: 0 -50%;
	color: color-mix(in srgb, var(--wp--preset--color--white) 30%, transparent);
	font-size: 48px;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.3s ease;
}

/* Chevron (down; up when open). */
.is-style-agma-faq > .wp-block-details > summary::after {
	--agma-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z'/%3E%3C/svg%3E");
	content: "";
	flex: none;
	width: 19px;
	height: 22px;
	margin-left: auto;
	background-color: var(--wp--preset--color--blue);
	-webkit-mask: var(--agma-chevron) center / contain no-repeat;
	mask: var(--agma-chevron) center / contain no-repeat;
}

.is-style-agma-faq > .wp-block-details > summary:hover {
	background-size: 105px 2px;
}

.is-style-agma-faq > .wp-block-details > summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--blue);
	outline-offset: 2px;
}

.is-style-agma-faq > .wp-block-details > summary:hover::before,
.is-style-agma-faq > .wp-block-details[open] > summary::before {
	color: var(--wp--preset--color--white);
	transform: scale(1.1);
}

.is-style-agma-faq > .wp-block-details[open] > summary {
	border-bottom-width: 0;
	background-size: 0 2px;
}

.is-style-agma-faq > .wp-block-details[open] > summary::after {
	rotate: 180deg;
}

/* Answer: 30px below the title and 30px above a 2px white line closing the open item. */
.is-style-agma-faq > .wp-block-details > summary ~ * {
	margin: 0;
}

.is-style-agma-faq > .wp-block-details > summary ~ * + * {
	margin-top: var(--wp--style--block-gap, 24px);
}

.is-style-agma-faq > .wp-block-details > summary + * {
	padding-top: 30px;
}

.is-style-agma-faq > .wp-block-details > summary ~ :last-child {
	padding-bottom: 30px;
	border-bottom: 2px solid var(--wp--preset--color--white);
}

.is-style-agma-faq strong {
	font-weight: 400;
}

/* Smooth open/close where the browser can animate to an auto height. */
@supports (interpolate-size: allow-keywords) {
	@media (prefers-reduced-motion: no-preference) {
		.is-style-agma-faq {
			interpolate-size: allow-keywords;
		}

		.is-style-agma-faq > .wp-block-details::details-content {
			block-size: 0;
			overflow: clip;
			transition: block-size 0.4s ease, content-visibility 0.4s allow-discrete;
		}

		.is-style-agma-faq > .wp-block-details[open]::details-content {
			block-size: auto;
		}
	}
}

@media (max-width: 768px) {
	.is-style-agma-faq > .wp-block-details > summary {
		padding: 30px 30px 30px 80px;
	}

	.is-style-agma-faq > .wp-block-details > summary::before {
		font-size: 46px;
	}
}

@media (max-width: 620px) {
	.is-style-agma-faq > .wp-block-details > summary {
		padding-right: 0;
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.is-style-agma-faq > .wp-block-details > summary {
		padding-left: 60px;
	}

	.is-style-agma-faq > .wp-block-details > summary::before {
		font-size: 35px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-faq > .wp-block-details > summary,
	.is-style-agma-faq > .wp-block-details > summary::before {
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* Blog section (homepage): post grid and post cards.                  */
/* ------------------------------------------------------------------ */

/* Full width on phones for groups narrowed with a percentage content size. */
@media (max-width: 480px) {
	.agma-wide-mobile.is-layout-constrained > * {
		max-width: none;
	}
}

/* Two columns, every row as tall as the tallest card. */
.wp-block-post-template.is-style-agma-post-grid {
	grid-auto-rows: 1fr;
}

.is-style-agma-post-grid > li {
	display: flex;
}

@media (max-width: 1024px) {
	.wp-block-post-template.is-style-agma-post-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: auto;
		gap: var(--wp--preset--spacing--20);
	}
}

/* Card: featured image on the left half, text on the right half. */
.wp-block-group.is-style-agma-post-card {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	flex: 1;
	width: 100%;
}

.is-style-agma-post-card > * {
	margin-block: 0;
}

.is-style-agma-post-card > .wp-block-post-featured-image {
	position: relative;
	overflow: hidden;
	border-radius: 30px 0 0 30px;
}

/* The image only fills the cell; the text column sets the height. */
.is-style-agma-post-card > .wp-block-post-featured-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.is-style-agma-post-card > .wp-block-group {
	padding: 40px;
	border-radius: 0 30px 30px 0;
}

.is-style-agma-post-card .wp-block-post-title {
	position: relative;
	z-index: 2;
}

.is-style-agma-post-card .wp-block-post-title a {
	text-decoration: none;
	transition: color 0.5s ease;
}

.is-style-agma-post-card .wp-block-post-title a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--blue-light);
}

/* At most five lines of the excerpt. */
.is-style-agma-post-card .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-line-clamp: 5;
	line-clamp: 5;
	-webkit-box-orient: vertical;
}

@media (max-width: 620px) {
	.wp-block-group.is-style-agma-post-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.is-style-agma-post-card > .wp-block-post-featured-image {
		min-height: 300px;
		border-radius: 30px 30px 0 0;
	}

	.is-style-agma-post-card > .wp-block-group {
		border-radius: 0 0 30px 30px;
	}

	.is-style-agma-post-card .wp-block-post-title {
		font-size: var(--wp--preset--font-size--x-large) !important;
		line-height: 30px !important;
	}
}

@media (max-width: 480px) {
	.is-style-agma-post-card > .wp-block-post-featured-image {
		min-height: 250px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-post-card .wp-block-post-title a {
		transition: none;
	}
}


/* ------------------------------------------------------------------ */
/* Layout shared by all pages (as the Elementor kit).                 */
/* ------------------------------------------------------------------ */

/* Heading and lead sizes step down at the Elementor kit breakpoints (they are not fluid there). */
@media (max-width: 1366px) {
	body {
		--wp--preset--font-size--heading-xl: 45px;
		--wp--preset--font-size--display: 55px;
	}
}

@media (max-width: 1024px) {
	body {
		--wp--preset--font-size--display: 50px;
	}
}

@media (max-width: 768px) {
	body {
		--wp--preset--font-size--heading-xl: 40px;
		--wp--preset--font-size--display: 45px;
	}
}

@media (max-width: 620px) {
	body {
		--wp--preset--font-size--heading-xl: 35px;
		--wp--preset--font-size--heading-l: 30px;
		--wp--preset--font-size--display: 40px;
	}
}

@media (max-width: 480px) {
	body {
		--wp--preset--font-size--xx-large: 25px;
		--wp--preset--font-size--heading-s: 25px;
		--wp--preset--font-size--display: 35px;
	}
}

/* Boxed content is 1280px wide on laptops (Elementor kit: 1440 → 1280 at 1366px). */
@media (max-width: 1366px) {
	:root {
		--wp--style--global--content-size: 1280px;
	}
}

/* Columns that stack below 1024px (class "agma-stack-1024"); "agma-stack-reverse" puts the last column first. */
@media (max-width: 1024px) {
	.wp-block-columns.agma-stack-1024 {
		flex-direction: column;
	}

	.wp-block-columns.agma-stack-1024 > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}

	.wp-block-columns.agma-stack-1024.agma-stack-reverse {
		flex-direction: column-reverse;
	}
}

/* A column with a fixed width keeps it; the other columns give way (class "agma-no-shrink"). */
.wp-block-column.agma-no-shrink {
	flex-shrink: 0;
}

/* Columns that stack below 768px (class "agma-stack-768"). */
@media (max-width: 768px) {
	.wp-block-columns.agma-stack-768 {
		flex-direction: column;
	}

	.wp-block-columns.agma-stack-768 > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}
}

/* Soft radial glows: an empty group "agma-glows" holding empty groups "agma-glow agma-glow--purple|blue". */
.agma-glows {
	position: absolute;
	z-index: 0;
	inset: 0;
	margin: 0 !important;
	pointer-events: none;
}

@media (min-width: 1921px) {
	.agma-glows {
		max-width: 1440px;
		margin-inline: auto !important;
	}
}

@media (max-width: 1440px) {
	.agma-glows {
		overflow: hidden;
	}
}

.agma-glows > .agma-glow {
	position: absolute;
	aspect-ratio: 1;
	margin: 0 !important;
}

.agma-glow--purple {
	background-image: radial-gradient(circle at center, var(--wp--preset--color--purple-50) 0%, transparent 70%);
}

.agma-glow--blue {
	background-image: radial-gradient(circle at center, var(--wp--preset--color--blue-50) 0%, transparent 70%);
}

/* Editor: decorative empty groups (glows, dividers) show no "select a layout" placeholder. */
.agma-glow > .components-placeholder,
.agma-badge-divider > .components-placeholder {
	display: none;
}

/* Everything else in a section with glows sits above them (and starts at the top). */
.agma-has-glows > .agma-glows + * {
	margin-block-start: 0 !important;
}

.agma-has-glows {
	position: relative;
}

.agma-has-glows > :not(.agma-glows) {
	position: relative;
	z-index: 1;
}

/* Spinning image (class "agma-rotating"): one turn every 12 seconds. */
@media (prefers-reduced-motion: no-preference) {
	.agma-rotating img {
		animation: agma-rotate 12s linear infinite;
	}
}

@keyframes agma-rotate {
	to {
		transform: rotate(1turn);
	}
}

/* ------------------------------------------------------------------ */
/* Project page (1:1 with the Elementor single project).              */
/* ------------------------------------------------------------------ */

/* Hero: starts under the fixed header; title row, then the video panel. */
.is-style-agma-project-hero {
	position: relative;
	margin-top: calc(-1 * var(--agma-header-height)) !important;
	padding: 303px 20px 0;
	overflow-x: clip;
}

.is-style-agma-project-hero::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: -200px;
	right: -50px;
	width: 1000px;
	aspect-ratio: 1;
	background-image: radial-gradient(circle at center, var(--wp--preset--color--purple-50) 0%, transparent 80%);
	pointer-events: none;
}

.is-style-agma-project-hero > * {
	position: relative;
	z-index: 2;
}

@media (max-width: 1024px) {
	.is-style-agma-project-hero::before {
		width: 80%;
	}
}

@media (max-width: 768px) {
	.is-style-agma-project-hero::before {
		top: 100px;
		right: 0;
	}
}

@media (max-width: 620px) {
	.is-style-agma-project-hero::before {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.is-style-agma-project-hero::before {
		top: 200px;
	}
}

/* Project facts: label above value, aligned to the right (a wrapping row below 1024px). */
.is-style-agma-project-details {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 20px 0;
	text-align: right;
}

.is-style-agma-project-details > *,
.is-style-agma-project-details > * > * {
	margin: 0 !important;
}

@media (max-width: 1024px) {
	.is-style-agma-project-details {
		flex-flow: row wrap;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 20px 40px;
		width: 100%;
		text-align: left;
	}
}

@media (max-width: 600px) {
	.is-style-agma-project-details {
		flex-direction: column;
	}
}

/* Video panel under the hero text: rounded top, the video covers it. */
.is-style-agma-project-video {
	position: relative;
	min-height: 620px;
	overflow: hidden;
	border-radius: 60px 60px 0 0;
}

.is-style-agma-project-video > .wp-block-video {
	position: absolute;
	inset: 0;
	margin: 0;
	border-radius: 0;
}

.is-style-agma-project-video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 1366px) {
	.is-style-agma-project-video {
		margin-inline: -20px !important;
	}
}

@media (max-width: 1024px) {
	.is-style-agma-project-video {
		min-height: 520px;
	}
}

@media (max-width: 768px) {
	.is-style-agma-project-video {
		min-height: 420px;
	}
}

@media (max-width: 620px) {
	.is-style-agma-project-video {
		min-height: 320px;
		border-radius: 40px 40px 0 0;
	}
}

/* Label with a blue dot in front ("For KWIAT"). */
.is-style-agma-dot-label::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 5px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--blue);
	vertical-align: -2px;
}

/* Results: number + label, a blue line on the left of each item. */
.is-style-agma-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	row-gap: 40px;
	width: 100%;
}

.is-style-agma-stats > * {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	margin: 0 !important;
	padding: 20px 40px 20px 20px;
	border-left: 1px solid var(--wp--preset--color--blue);
}

.is-style-agma-stats > * > * {
	margin: 0 !important;
	word-break: normal;
}

@media (max-width: 1024px) {
	.is-style-agma-stats > * {
		flex: unset;
		box-sizing: border-box;
		width: 50%;
	}
}

@media (max-width: 380px) {
	.is-style-agma-stats > * {
		width: 100%;
	}
}

/* Section paddings, as on the original page. */
.is-style-agma-project-about {
	padding: 100px 20px;
}

.is-style-agma-project-compare {
	padding: 150px 100px;
}

@media (max-width: 1024px) {
	.is-style-agma-project-compare {
		padding: 100px 50px;
	}
}

@media (max-width: 768px) {
	.is-style-agma-project-compare {
		padding: 100px 30px;
	}
}

/* Before / after slider as the original "twentytwenty" one: rotated labels outside the image. */
.agma-before-after.is-style-agma-twenty20 {
	overflow: visible;
	border: 0;
	border-radius: 0;
	background-color: transparent;
}

.is-style-agma-twenty20 > figure {
	overflow: hidden;
	border-radius: 30px;
}

.is-style-agma-twenty20 img {
	height: auto;
	aspect-ratio: auto;
}

.is-style-agma-twenty20 > figure:nth-of-type(2) {
	position: absolute;
	inset: 0;
}

.is-style-agma-twenty20 > figure:nth-of-type(2) img {
	height: 100%;
}

.is-style-agma-twenty20 .agma-before-after__line {
	width: 3px;
	box-shadow: 0 0 12px color-mix(in srgb, var(--wp--preset--color--gray-dark) 50%, transparent);
}

.is-style-agma-twenty20 .agma-before-after__handle {
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	border: 3px solid var(--wp--preset--color--white);
	background-color: transparent;
	box-shadow: 0 0 12px color-mix(in srgb, var(--wp--preset--color--gray-dark) 50%, transparent);
	backdrop-filter: none;
}

.is-style-agma-twenty20 .agma-before-after__handle svg {
	width: 22px;
	height: 22px;
}

.is-style-agma-twenty20 .agma-before-after__label {
	top: 50%;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--wp--preset--color--gray);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 18px;
	letter-spacing: 2px;
	transform: rotate(-90deg);
	backdrop-filter: none;
}

.is-style-agma-twenty20 .agma-before-after__label--before {
	left: -100px;
}

.is-style-agma-twenty20 .agma-before-after__label--after {
	right: -100px;
}

@media (max-width: 1366px) {
	.is-style-agma-twenty20 .agma-before-after__label--after {
		right: -95px;
	}
}

@media (max-width: 1024px) {
	.is-style-agma-twenty20 .agma-before-after__label--before {
		left: -60px;
	}

	.is-style-agma-twenty20 .agma-before-after__label--after {
		right: -55px;
	}
}

@media (max-width: 768px) {
	.is-style-agma-twenty20 .agma-before-after__label {
		font-size: var(--wp--preset--font-size--xx-small);
		line-height: 14px;
	}

	.is-style-agma-twenty20 .agma-before-after__label--before {
		left: -45px;
	}

	.is-style-agma-twenty20 .agma-before-after__label--after {
		right: -40px;
	}
}

@media (max-width: 600px) {
	.is-style-agma-twenty20 > figure {
		border-radius: 15px;
	}
}

/* Project stages: dark section with glows; the next section overlaps its bottom 80px. */
.is-style-agma-project-stages {
	position: relative;
	overflow: hidden;
	padding: 150px 20px 230px;
}

@media (max-width: 768px) {
	.is-style-agma-project-stages {
		padding: 100px 20px 180px;
	}
}

/* Icon boxes: 4 / 3 / 2 / 1 per row. */
.is-style-agma-icon-boxes {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	width: 100%;
}

.is-style-agma-icon-boxes > * {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: calc(25% - 22.5px);
	margin: 0 !important;
	padding: 50px 20px;
	border: 1px solid transparent;
	border-radius: 40px;
	background-color: var(--wp--preset--color--white-10);
	text-align: center;
	transition: all 0.6s ease;
}

.is-style-agma-icon-boxes > *:hover {
	border-color: var(--wp--preset--color--white-10);
}

.is-style-agma-icon-boxes > * > * {
	margin: 0 !important;
}

@media (max-width: 1200px) {
	.is-style-agma-icon-boxes > * {
		width: calc(33.333% - 22.5px);
	}
}

@media (max-width: 800px) {
	.is-style-agma-icon-boxes > * {
		width: calc(50% - 15px);
	}
}

@media (max-width: 600px) {
	.is-style-agma-icon-boxes > * {
		width: 100%;
	}
}

/* Glow positions in the stages section. */
.agma-glows--stages .agma-glow--purple {
	top: -300px;
	right: -200px;
	width: 1200px;
}

.agma-glows--stages .agma-glow--blue {
	bottom: -200px;
	left: -200px;
	width: 1000px;
}

@media (max-width: 1366px) {
	.agma-glows--stages .agma-glow--purple {
		top: -500px;
		right: -500px;
	}

	.agma-glows--stages .agma-glow--blue {
		bottom: -300px;
		left: -300px;
	}
}

@media (max-width: 768px) {
	.agma-glows--stages .agma-glow--purple {
		top: -300px;
		right: -300px;
		width: 1000px;
	}
}

@media (max-width: 620px) {
	.agma-glows--stages .agma-glow--blue {
		bottom: -400px;
		left: -500px;
	}
}

@media (max-width: 480px) {
	.agma-glows--stages .agma-glow--purple,
	.agma-glows--stages .agma-glow--blue {
		width: 800px;
	}

	.agma-glows--stages .agma-glow--blue {
		left: -300px;
	}
}

/* White panel with a rounded top that overlaps the section above by 80px. */
.is-style-agma-overlap-panel {
	position: relative;
	z-index: 1;
	margin-top: -80px !important;
	padding: 120px 20px 60px;
	border-radius: 80px 80px 0 0;
}

@media (max-width: 620px) {
	.is-style-agma-overlap-panel {
		border-radius: 60px 60px 0 0;
	}
}

@media (max-width: 480px) {
	.is-style-agma-overlap-panel {
		padding-top: 100px;
	}
}

/* Two phone screenshots side by side in light frames (drifting with the scroll). */
.is-style-agma-phone-pair {
	display: flex;
	flex-wrap: nowrap;
	gap: 50px;
}

.is-style-agma-phone-pair > .wp-block-image {
	flex: 0 0 calc(50% - 25px);
	max-width: calc(50% - 25px);
	margin: 0 !important;
}

.is-style-agma-phone-pair > .wp-block-image:first-child {
	z-index: 5;
}

.is-style-agma-phone-pair img {
	box-sizing: border-box;
	width: 100%;
	height: auto;
	border: 10px solid var(--wp--preset--color--gray-light);
	border-radius: 30px;
}

/* Screenshots that already contain the phone frame. */
.is-style-agma-phone-pair.agma-no-frame img {
	border: 0;
	border-radius: 0;
}

@media (max-width: 1024px) {
	.is-style-agma-phone-pair {
		justify-content: center;
		width: 80%;
		margin-inline: auto;
	}
}

@media (max-width: 768px) {
	.is-style-agma-phone-pair {
		justify-content: space-between;
		width: 100%;
	}
}

@media (max-width: 620px) {
	.is-style-agma-phone-pair {
		gap: 20px;
	}

	.is-style-agma-phone-pair > .wp-block-image {
		flex-basis: calc(50% - 10px);
		max-width: calc(50% - 10px);
	}
}

/* Wall of screenshots turned 45°, columns drifting up and down with the scroll.
   overflow: clip, not hidden: hidden makes the wall a scroll container, and the columns' view() timeline
   would then follow the wall (which never scrolls) instead of the page, so they would never move. */
.is-style-agma-screen-wall {
	position: relative;
	min-height: 900px;
	overflow: clip;
	view-timeline-name: --agma-screen-wall;
}

/* The columns move by the wall's pass through the viewport (as Elementor's motion effect on production),
   not by their own: a column turned 45° is far taller than the wall, which made the drift barely visible. */
@supports (animation-timeline: view()) {
	.is-style-agma-screen-wall .agma-scroll-up,
	.is-style-agma-screen-wall .agma-scroll-down {
		animation-timeline: --agma-screen-wall;
		animation-range: cover 0% cover 100%;
	}
}

.is-style-agma-screen-wall > .wp-block-group {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	width: 2000px;
	max-width: none !important;
	margin: 0 !important;
	transform: translate(-50%, -50%) rotate(45deg);
	backface-visibility: hidden;
}

.is-style-agma-screen-wall > .wp-block-group > .wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 30px;
	width: calc(25% - 22.5px);
	margin: 0 !important;
}

.is-style-agma-screen-wall .wp-block-image {
	margin: 0 !important;
}

.is-style-agma-screen-wall img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 30px;
	box-shadow: 0 0 10px color-mix(in srgb, var(--wp--preset--color--black) 25%, transparent);
}

@media (max-width: 1366px) {
	.is-style-agma-screen-wall > .wp-block-group {
		width: 1400px;
	}
}

@media (max-width: 768px) {
	.is-style-agma-screen-wall > .wp-block-group {
		width: 1200px;
	}
}

@media (max-width: 620px) {
	.is-style-agma-screen-wall {
		min-height: 600px;
	}

	.is-style-agma-screen-wall > .wp-block-group {
		gap: 20px;
		width: 1000px;
	}

	.is-style-agma-screen-wall > .wp-block-group > .wp-block-group {
		gap: 20px;
		width: calc(25% - 15px);
	}

	.is-style-agma-screen-wall img {
		border-radius: 15px;
	}
}

@media (max-width: 480px) {
	.is-style-agma-screen-wall > .wp-block-group {
		width: 800px;
	}
}

/* Results section: dark panel with rounded bottom, three media rows and the technologies. */
.is-style-agma-project-results {
	position: relative;
	z-index: 2;
	overflow: hidden;
	padding: 210px 20px 160px;
	border-radius: 0 0 80px 80px;
}

@media (max-width: 768px) {
	.is-style-agma-project-results {
		padding: 100px 20px;
	}
}

@media (max-width: 620px) {
	.is-style-agma-project-results {
		border-radius: 0 0 40px 40px;
	}
}

/* Media column: the video fills the column next to the text (a square on its own row on phones). */
.is-style-agma-media-cover {
	position: relative;
	display: flex;
	min-height: 100%;
}

.is-style-agma-media-cover > .wp-block-video.wp-block-video {
	position: relative;
	flex: 1;
	height: auto;
	width: 100%;
	margin: 0;
	border-radius: 40px;
}

/* At least a square, taller when the text next to it is taller. */
.is-style-agma-media-cover > .wp-block-video::before {
	content: "";
	display: block;
	padding-top: 100%;
}

/* Text and media share the row equally on laptops. */
@media (max-width: 1366px) {
	.agma-media-row > .wp-block-column {
		flex-basis: 50% !important;
	}
}

.is-style-agma-media-cover > .wp-block-video video {
	position: absolute;
	inset: 0;
}

.is-style-agma-media-cover > .wp-block-image {
	position: absolute;
	z-index: 2;
	top: 70px;
	left: -55px;
	margin: 0;
}

.is-style-agma-media-cover > .wp-block-image img {
	width: 110px;
	height: 110px;
	object-fit: contain;
}

@media (max-width: 1024px) {
	.is-style-agma-media-cover {
		min-height: 400px;
	}

	.is-style-agma-media-cover > .wp-block-image {
		top: 40px;
		left: 40px;
	}
}

@media (max-width: 620px) {
	.is-style-agma-media-cover {
		min-height: auto;
	}

	.is-style-agma-media-cover > .wp-block-video.wp-block-video {
		border-radius: 20px;
	}

	.is-style-agma-media-cover > .wp-block-image {
		top: 20px;
		left: 20px;
	}

	.is-style-agma-media-cover > .wp-block-image img {
		width: 80px;
		height: 80px;
	}
}

/* Improvements list: lines with a check circle that turns blue on hover. */
.wp-block-list.is-style-agma-check-lines {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Top margin stays with the block gap of the parent. */
.wp-block-list.is-style-agma-check-lines-start {
	width: 100%;
	margin-inline: 0;
	margin-bottom: 0;
	padding: 0;
	list-style: none;
}

.is-style-agma-check-lines > li,
.is-style-agma-check-lines-start > li {
	position: relative;
	margin: 0;
	padding: 15px 50px 15px 0;
	border-bottom: 1px solid var(--wp--preset--color--white-20);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--muller);
	font-size: 24px;
	font-weight: 400;
	line-height: 30px;
}

.is-style-agma-check-lines > li::after,
.is-style-agma-check-lines-start > li::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 33px;
	height: 33px;
	border-radius: 50%;
	background:
		no-repeat center / 15px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='9 10 17 13'%3E%3Cpath d='M24 12L15.0625 21L11 16.9091' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
		var(--wp--preset--color--white-10);
	transform: translateY(-50%);
	transition: background-color 0.6s ease;
}

.is-style-agma-check-lines > li:hover::after,
.is-style-agma-check-lines-start > li:hover::after {
	background-color: var(--wp--preset--color--blue);
}

/* Mark first ("invert position" on production). */
.is-style-agma-check-lines-start > li {
	padding: 15px 0 15px 50px;
}

.is-style-agma-check-lines-start > li::after {
	right: auto;
	left: 0;
}

@media (max-width: 600px) {
	.is-style-agma-check-lines > li,
	.is-style-agma-check-lines-start > li {
		font-size: 18px;
		line-height: 24px;
	}
}

/* Technologies as pills (Post Terms, style "Pills"). */
.wp-block-post-terms.is-style-agma-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 1.3rem;
}

.wp-block-post-terms.is-style-agma-pills .wp-block-post-terms__separator {
	display: none;
}

.wp-block-post-terms.is-style-agma-pills :is(a, span:not(.wp-block-post-terms__separator)) {
	padding: 9px 33px;
	border-radius: 40px;
	background-color: var(--wp--preset--color--white-10);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--muller);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	pointer-events: none;
}

@media (max-width: 1023px) {
	.wp-block-post-terms.is-style-agma-pills {
		justify-content: flex-start;
	}
}

/* Glow positions in the results section. */
.agma-glows--results .agma-glow:nth-child(1) {
	top: 0;
	left: -200px;
	width: 1200px;
}

.agma-glows--results .agma-glow:nth-child(2) {
	right: -300px;
	bottom: 50%;
	width: 1000px;
}

.agma-glows--results .agma-glow:nth-child(3) {
	right: -300px;
	bottom: 0;
	width: 1200px;
}

@media (max-width: 1366px) {
	.agma-glows--results .agma-glow:nth-child(1) {
		left: calc(50% - 600px);
	}

	.agma-glows--results .agma-glow:nth-child(3) {
		right: -500px;
	}
}

@media (max-width: 1024px) {
	.agma-glows--results .agma-glow:nth-child(1) {
		left: 0;
		width: 100%;
	}
}

@media (max-width: 768px) {
	.agma-glows--results .agma-glow:nth-child(3) {
		right: -300px;
		width: 1000px;
	}
}

@media (max-width: 620px) {
	.agma-glows--results .agma-glow:nth-child(1) {
		left: calc(50% - 400px);
		width: 800px;
	}
}

@media (max-width: 480px) {
	.agma-glows--results .agma-glow:nth-child(2) {
		width: 800px;
	}
}

/* Client testimonial: white panel over the rounded bottom of the results section. */
.is-style-agma-project-testimonial {
	position: relative;
	z-index: 1;
	overflow-x: clip;
	margin-top: -80px !important;
	padding: 205px 20px 125px;
}

.is-style-agma-project-testimonial > .wp-block-group {
	position: relative;
	padding-left: 130px;
}

/* Quote mark: blue circle in the top left corner of the testimonial. */
.is-style-agma-quote-mark {
	position: absolute;
	z-index: 1;
	top: -30px;
	left: 0;
	margin: 0 !important;
}

.is-style-agma-quote-mark img {
	box-sizing: content-box;
	width: 50px;
	height: 50px;
	padding: 25px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--blue);
	object-fit: contain;
}

.is-style-agma-project-testimonial > .wp-block-group > :not(.is-style-agma-quote-mark) {
	position: relative;
	z-index: 2;
}

@media (max-width: 620px) {
	.is-style-agma-project-testimonial > .wp-block-group {
		padding-left: 0;
	}

	.is-style-agma-quote-mark {
		top: -100px;
		right: -100px;
		left: auto;
	}

	.is-style-agma-quote-mark img {
		width: 80px;
		height: 80px;
		padding: 100px;
		background-color: var(--wp--preset--color--gray-muted);
	}
}

/* Results rows: 150px apart (100px on phones); stacked columns lose their side padding. */
.agma-results-rows {
	display: flex;
	flex-direction: column;
	gap: 150px;
}

.agma-results-rows > * {
	margin: 0 !important;
}

.agma-tech-row {
	padding-block: 100px;
}

.agma-stats-offset {
	padding-top: 60px;
}

@media (max-width: 1024px) {
	.agma-results-rows > .agma-stack-1024 > .wp-block-column {
		padding-block: 0 !important;
	}

	.agma-tech-row,
	.agma-stats-offset {
		padding-block: 0;
	}
}

@media (max-width: 768px) {
	.agma-results-rows {
		gap: 100px;
	}

	.agma-results-rows > .agma-stack-1024 {
		row-gap: 50px !important;
	}
}

/* Constrained group at full width on tablets and phones (e.g. a 60% heading). */
@media (max-width: 768px) {
	.agma-wide-768.is-layout-constrained > * {
		max-width: none;
	}
}

/* Sections of a project are stacked without gaps (overlaps use negative margins). */
.single-agma_project .wp-block-post-content > * {
	margin-block: 0;
}

/* ------------------------------------------------------------------ */
/* Related projects (template part under every project).              */
/* ------------------------------------------------------------------ */

.is-style-agma-related-projects {
	--agma-related-inset: max(20px, calc((100% - 1440px) / 2));

	display: flex;
	flex-direction: column;
	gap: 70px;
	padding-block: 150px;
}

.is-style-agma-related-projects > * {
	margin: 0 !important;
}

.agma-related-projects__head {
	padding-inline: var(--agma-related-inset) 65px;
}

.agma-related-projects__head > .wp-block-heading {
	margin: 0;
}

/* The arrows (64px) do not make the 48px title row taller. */
.agma-related-projects__head > .agma-carousel-arrows {
	margin-block: -8px;
}

.agma-related-projects__track {
	padding-left: var(--agma-related-inset);
}

@media (max-width: 1366px) {
	.agma-related-projects__head > .wp-block-heading {
		max-width: 992px;
	}
}

@media (max-width: 620px) {
	.agma-related-projects__head {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 30px;
		padding-right: 20px;
	}
}

/* Round arrows: translucent white, blue on hover. */
.agma-carousel-arrows.is-style-agma-round {
	gap: 21px;
}

.agma-carousel-arrows.is-style-agma-round .agma-carousel-arrows__button {
	width: 64px;
	height: 64px;
	border: 0;
	background-color: var(--wp--preset--color--white-10);
	color: var(--wp--preset--color--white);
}

.agma-carousel-arrows.is-style-agma-round .agma-carousel-arrows__button .agma-icon {
	width: 20px;
	height: 20px;
}

.agma-carousel-arrows.is-style-agma-round .agma-carousel-arrows__button:is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--blue);
}

/* Project card: featured image (video on hover), arrow in the corner, title bar; the whole card links. */
.is-style-agma-project-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 30px;
	transition: opacity 0.3s ease, filter 0.3s ease;
}

.is-style-agma-project-card > * {
	margin: 0 !important;
}

.agma-project-card__media {
	position: relative;
	min-height: 450px;
}

.agma-project-card__media > .wp-block-post-featured-image,
.agma-project-card__media > .wp-block-video {
	position: absolute;
	inset: 0;
	margin: 0;
	border-radius: 0;
}

.agma-project-card__media > .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.agma-project-card__media > .wp-block-video {
	z-index: 1;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.agma-project-card__media > .wp-block-video::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--wp--preset--color--purple-20);
}

.is-style-agma-project-card:hover .agma-project-card__media > .wp-block-video {
	opacity: 1;
}

.agma-project-card__arrow {
	position: absolute;
	z-index: 2;
	top: 20px;
	right: 20px;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin: 0;
	border-radius: 50%;
	transition: background-color 0.6s ease;
}

.agma-project-card__arrow img {
	width: 24px;
	height: 24px;
}

.is-style-agma-project-card:hover .agma-project-card__arrow {
	background-color: var(--wp--preset--color--blue);
}

.agma-project-card__bar {
	flex: 1;
	flex-wrap: nowrap !important;
	padding: 30px 35px;
}

.agma-project-card__bar > * {
	margin: 0 !important;
}

.agma-project-card__bar .wp-block-post-title a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

/* The title link covers the whole card. */
.agma-project-card__bar .wp-block-post-title a::after {
	content: "";
	position: absolute;
	z-index: 3;
	inset: 0;
}

.is-style-agma-project-card:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--blue-light);
	outline-offset: 4px;
}

/* Hovering one card dims and greys out the others. */
.wp-block-post-template:has(.is-style-agma-project-card:hover) .is-style-agma-project-card:not(:hover) {
	opacity: 0.25;
	filter: grayscale(100%);
}

@media (max-width: 1366px) {
	.agma-project-card__arrow {
		top: 16px;
		right: 15px;
	}
}

@media (max-width: 620px) {
	.agma-project-card__media {
		min-height: 300px;
	}

	.agma-project-card__bar {
		flex-direction: column;
		align-items: flex-start !important;
		padding: 30px 20px;
	}
}

/* ------------------------------------------------------------------ */
/* Service pages (1:1 with the Elementor service pages).              */
/* ------------------------------------------------------------------ */

/* Sections follow each other without gaps; spacing is their own padding. */
.agma-service-content > * {
	margin-block-start: 0;
}

/* Wide glows must not widen the page. */
.agma-service-content {
	overflow-x: clip;
}

/* The glows start at the top of the page, behind the header (as on the original page). */
.agma-glows.agma-glows--service {
	top: calc(-1 * var(--agma-header-height));
}

/* Page glows (first block of the content): seven soft lights down the page. */
.agma-glows--service > .agma-glow:nth-child(1) {
	top: -350px;
	left: -400px;
	width: 1200px;
	background-image: radial-gradient(circle at center, var(--wp--preset--color--blue-70) 0%, transparent 70%);
}

.agma-glows--service > .agma-glow:nth-child(2) {
	top: 0;
	right: -600px;
	width: 2000px;
	background-image: radial-gradient(circle at center, var(--wp--preset--color--purple-70) 0%, transparent 70%);
}

.agma-glows--service > .agma-glow:nth-child(3) {
	top: 20%;
	left: -700px;
	width: 2000px;
}

.agma-glows--service > .agma-glow:nth-child(4) {
	top: 40%;
	right: -400px;
	width: 2000px;
}

.agma-glows--service > .agma-glow:nth-child(5) {
	top: 52%;
	left: -700px;
	width: 2000px;
}

.agma-glows--service > .agma-glow:nth-child(6) {
	top: 70%;
	right: -700px;
	width: 2000px;
}

.agma-glows--service > .agma-glow:nth-child(7) {
	top: 83%;
	left: -700px;
	width: 2000px;
}

@media (min-width: 2400px) {
	.agma-glows--service > .agma-glow {
		width: 1200px !important;
	}
}

@media (max-width: 620px) {
	.agma-glows--service > .agma-glow:nth-child(6) {
		top: 65%;
	}
}

@media (max-width: 480px) {
	.agma-glows--service > .agma-glow:nth-child(1) {
		top: -100px;
	}

	.agma-glows--service > .agma-glow:nth-child(2) {
		top: 350px;
		width: 1200px;
	}

	.agma-glows--service > .agma-glow:nth-child(3) {
		top: -100px;
		width: 1200px;
	}

	.agma-glows--service > .agma-glow:nth-child(4) {
		right: -600px;
		width: 1200px;
	}
}

/* Hero: starts under the fixed header; text column + white illustration card. */
.wp-block-group.is-style-agma-service-hero {
	position: relative;
	box-sizing: border-box;
	margin-top: calc(-1 * var(--agma-header-height)) !important;
	padding: 280px 20px 250px;
}

.is-style-agma-service-hero > .wp-block-columns {
	gap: 60px;
	align-items: center;
	margin: 0;
}

@media (max-width: 1366px) {
	.wp-block-group.is-style-agma-service-hero {
		padding: 253px 20px 150px;
	}

	.is-style-agma-service-hero > .wp-block-columns {
		flex-direction: column;
		align-items: stretch;
		width: 60%;
		margin-inline: auto !important;
	}

	.is-style-agma-service-hero > .wp-block-columns > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}
}

@media (max-width: 1024px) {
	.wp-block-group.is-style-agma-service-hero {
		padding-top: 210px;
	}

	.is-style-agma-service-hero > .wp-block-columns {
		width: 80%;
	}
}

@media (max-width: 768px) {
	.is-style-agma-service-hero > .wp-block-columns {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.is-style-agma-service-hero .agma-hero-text,
	.is-style-agma-service-hero .agma-hero-meta {
		gap: 30px;
	}
}

/* Illustration card: white, title + icon on top, the illustration hangs from 180px down. */
.wp-block-group.is-style-agma-hero-card {
	position: relative;
	box-sizing: border-box;
	min-height: 650px;
	padding: 40px;
	border-radius: 30px;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
	align-items: flex-start;
	justify-content: space-between;
}

.is-style-agma-hero-card > :first-child {
	width: 60%;
	max-width: 60%;
}

.is-style-agma-hero-card > .wp-block-image:last-child {
	position: absolute;
	top: 180px;
	left: calc(50% + 10px);
	width: calc(100% - 80px);
	margin: 0;
	translate: -50% 0;
}

.is-style-agma-hero-card > .wp-block-image:last-child img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 1366px) {
	.wp-block-group.is-style-agma-hero-card {
		min-height: 700px;
	}

	.is-style-agma-hero-card > .wp-block-image:last-child {
		top: 220px;
	}
}

@media (max-width: 620px) {
	.wp-block-group.is-style-agma-hero-card {
		min-height: 520px;
		padding: 40px 20px 20px;
	}

	.is-style-agma-hero-card > :first-child {
		width: calc(100% - 85px);
		max-width: none;
		font-size: var(--wp--preset--font-size--x-large) !important;
		line-height: 30px !important;
	}

	.is-style-agma-hero-card > .wp-block-image:last-child {
		top: 180px;
		left: 50%;
		width: calc(100% - 40px);
	}
}

@media (max-width: 480px) {
	.is-style-agma-hero-card > :first-child {
		width: calc(100% - 76px);
	}

	.is-style-agma-hero-card > .wp-block-image:last-child {
		top: 230px;
	}
}

/* Icon in a round blue badge (an SVG image); purple on hover, as the Elementor icon widget. */
.wp-block-image.is-style-agma-icon-circle {
	flex: none;
	box-sizing: border-box;
	width: 76px;
	margin: 0;
	padding: 25px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--blue);
	transition: background-color 0.3s;
}

.wp-block-image.is-style-agma-icon-circle:hover {
	background-color: var(--wp--preset--color--purple-70);
}

.wp-block-image.is-style-agma-icon-circle img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
}

/* Statement: centred 1280px box, spinning badge in its top right corner, contact pill below. */
.wp-block-group.is-style-agma-statement {
	position: relative;
	box-sizing: border-box;
	max-width: 1280px;
	margin-inline: auto;
	padding: 120px 20px 250px;
}

.is-style-agma-statement > .wp-block-image:first-child {
	position: absolute;
	top: 0;
	right: 0;
	width: 115px;
	margin: 0;
}

.is-style-agma-statement > .wp-block-image:first-child img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 1024px) {
	.wp-block-group.is-style-agma-statement {
		padding-bottom: 200px;
	}

	.is-style-agma-statement > .wp-block-image:first-child {
		right: 5%;
	}
}

@media (max-width: 768px) {
	.wp-block-group.is-style-agma-statement {
		padding-bottom: 150px;
	}
}

@media (max-width: 480px) {
	.is-style-agma-statement > .wp-block-image:first-child {
		width: 90px;
	}
}

/* Contact pill: note + team photos + blue "a", glass with a gradient border. */
.wp-block-group.is-style-agma-contact-pill {
	position: relative;
	box-sizing: border-box;
	width: max-content;
	max-width: 100%;
	margin-inline: auto;
	padding: 20px 30px;
	gap: 30px;
	border-radius: 80px;
	background-color: color-mix(in srgb, var(--wp--preset--color--white) 4%, transparent);
	backdrop-filter: blur(6.2px);
}

.is-style-agma-contact-pill::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(
		156deg,
		color-mix(in srgb, var(--wp--preset--color--white) 58%, transparent) 1.22%,
		transparent 17.85%,
		transparent 80.23%,
		color-mix(in srgb, var(--wp--preset--color--white) 58%, transparent) 99.7%
	);
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
}

.is-style-agma-contact-pill .is-style-agma-avatars > * {
	flex: none;
	margin: 0;
}

.is-style-agma-contact-pill .is-style-agma-avatars > .wp-block-image {
	box-sizing: border-box;
	border-color: var(--wp--preset--color--almost-black);
}

.is-style-agma-contact-pill .is-style-agma-avatars > .wp-block-image + * {
	margin-inline-start: -15px;
}

.is-style-agma-contact-pill .is-style-agma-avatars > :nth-child(1) {
	position: relative;
	z-index: 4;
}

.is-style-agma-contact-pill .is-style-agma-avatars > :nth-child(2) {
	position: relative;
	z-index: 3;
}

.is-style-agma-contact-pill .is-style-agma-avatars > :nth-child(3) {
	position: relative;
	z-index: 2;
}

/* The round brand mark after the photos. */
.is-style-agma-contact-pill .is-style-agma-avatars > .wp-block-group {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 55px;
	height: 55px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--blue);
}

.is-style-agma-contact-pill .is-style-agma-avatars > .wp-block-group > * {
	position: relative;
	top: -1px;
	margin: 0;
}

@media (max-width: 768px) {
	.wp-block-group.is-style-agma-contact-pill {
		flex-direction: column;
		gap: 20px;
		padding: 30px;
		border-radius: 40px;
	}
}

@media (max-width: 480px) {
	.wp-block-group.is-style-agma-contact-pill {
		gap: 1rem;
		padding: 2rem;
	}

	.is-style-agma-contact-pill > p {
		text-align: center !important;
	}

	.is-style-agma-contact-pill .is-style-agma-avatars > .wp-block-group {
		width: 65px;
		height: 65px;
	}
}

/* Service sections: 300px apart (200px on tablets, 150px on phones). */
.wp-block-group.agma-service-section {
	box-sizing: border-box;
	padding-bottom: 300px;
}

.wp-block-group.agma-service-section--short {
	padding-bottom: 200px;
}

@media (max-width: 1024px) {
	.wp-block-group.agma-service-section {
		padding-bottom: 200px;
	}
}

@media (max-width: 768px) {
	.wp-block-group.agma-service-section {
		padding-bottom: 150px;
	}
}

/* Sections with 10px side padding from 1024px down (wider screens: none). */
@media (max-width: 1024px) {
	.wp-block-group.agma-service-section.agma-pad-10-tablet {
		padding-right: 10px;
		padding-left: 10px;
	}
}

/* Sections boxed with a 10px inset: the box (padding included) is the content size. */
.agma-inset-10.is-layout-constrained > * {
	max-width: calc(var(--wp--style--global--content-size) - 20px);
}

/* Section intro: 60% of the box, 80% below 1024px, full width below 768px. */
@media (max-width: 1024px) {
	.agma-intro-width.is-layout-constrained > * {
		max-width: 80%;
	}
}

@media (max-width: 768px) {
	.agma-intro-width.is-layout-constrained > * {
		max-width: none;
	}
}

/* Technologies below the intro: 100px, 60px from 768px down. */
@media (max-width: 768px) {
	.agma-tech-grid--service {
		margin-top: 60px !important;
	}

	/* Form with uploads: 50px below its title. */
	.agma-idea-form > * + * {
		margin-block-start: 50px !important;
	}
}

/* Single-colour SVG icons shown white (as the Elementor icon widget painted them). */
.wp-block-image.agma-icon-white img {
	filter: brightness(0) invert(1);
}

/* Logo frame: thin rounded border, label sitting on the top edge, 6 / 3 / 2 logos per row. */
.wp-block-group.is-style-agma-logo-frame {
	position: relative;
	border: 1px solid var(--wp--preset--color--white-10);
	border-radius: 40px;
}

.is-style-agma-logo-frame > p:first-child {
	position: absolute;
	z-index: 1;
	top: -16px;
	left: 50%;
	box-sizing: border-box;
	max-width: max-content;
	margin: 0;
	padding: 10px 20px 7px;
	border: 1px solid var(--wp--preset--color--white-10);
	border-radius: 15px;
	background-color: var(--wp--preset--color--black-70);
	translate: -50% 0;
	white-space: nowrap;
}

.is-style-agma-logo-frame > .wp-block-group {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 50px 80px;
	align-items: center;
	margin: 0;
	padding: 50px;
}

.is-style-agma-logo-frame > .wp-block-group > .wp-block-image {
	margin: 0;
}

.is-style-agma-logo-frame > .wp-block-group img {
	display: block;
	width: auto;
	max-width: min(100%, 140px);
	height: auto;
}

@media (max-width: 1024px) {
	.is-style-agma-logo-frame > .wp-block-group {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px 80px;
	}
}

@media (max-width: 620px) {
	.is-style-agma-logo-frame > .wp-block-group {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.wp-block-group.is-style-agma-logo-frame {
		border-radius: 20px;
	}

	.is-style-agma-logo-frame > p:first-child {
		top: -23px;
		width: 80%;
		max-width: 80%;
		border-radius: 23px;
		text-align: center;
		white-space: normal;
	}

	.is-style-agma-logo-frame > .wp-block-group {
		gap: 20px;
		padding: 50px 20px 30px;
	}
}

/* Project badge: white frame, light gray card with the text left and the video right. */
.wp-block-group.is-style-agma-badge-card {
	box-sizing: border-box;
	padding: 40px;
	border-radius: 60px;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
}

.is-style-agma-badge-card > .wp-block-group {
	display: flex;
	gap: 50px;
	align-items: stretch;
	margin: 0;
	padding: 40px;
	border-radius: 40px;
	background-color: var(--wp--preset--color--gray-light);
}

.is-style-agma-badge-card > .wp-block-group > :first-child {
	flex: 0 1 40%;
	justify-content: center;
	padding: 40px 0;
}

.is-style-agma-badge-card > .wp-block-group > :last-child {
	position: relative;
	flex: 0 1 calc(60% + 40px);
	min-height: 430px;
	margin: -40px -40px -40px 0;
	border-radius: 0 40px 40px 40px;
	overflow: hidden;
}

.is-style-agma-badge-card > .wp-block-group > :last-child > .wp-block-video {
	position: absolute;
	inset: 0;
	margin: 0;
	transition: scale 0.3s;
}

.is-style-agma-badge-card > .wp-block-group > :last-child > .wp-block-video:hover {
	scale: 1.1;
}

.is-style-agma-badge-card .wp-block-video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Category label | divider | flag. */
.is-style-agma-badge-card .agma-badge-category > :nth-child(2) {
	flex: none;
	width: 1px;
	height: 25px;
	margin: 0 20px;
	background-color: var(--wp--preset--color--gray);
}

.is-style-agma-badge-card .agma-badge-category .wp-block-image {
	flex: none;
	width: 25px;
	margin: 0;
}

.is-style-agma-badge-card .agma-badge-category .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

.is-style-agma-badge-card .agma-badge-author .wp-block-image {
	flex: none;
	width: 80px;
	margin: 0;
}

.is-style-agma-badge-card .agma-badge-author .wp-block-image img {
	display: block;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
}

@media (max-width: 1024px) {
	.is-style-agma-badge-card > .wp-block-group {
		flex-direction: column;
		gap: 40px;
	}

	.is-style-agma-badge-card > .wp-block-group > :first-child {
		flex: none;
		order: 2;
		padding: 0;
	}

	.is-style-agma-badge-card > .wp-block-group > :last-child {
		flex: none;
		order: 1;
		min-height: 400px;
		margin: -40px -40px 0;
		border-radius: 40px;
	}
}

@media (max-width: 620px) {
	.is-style-agma-badge-card > .wp-block-group {
		gap: 20px;
	}

	.is-style-agma-badge-card > .wp-block-group > :last-child {
		min-height: 300px;
	}

	.is-style-agma-badge-card .agma-badge-category > :first-child {
		font-size: var(--wp--preset--font-size--small) !important;
	}

	.is-style-agma-badge-card h3 {
		line-height: 1.15 !important;
	}
}

@media (max-width: 480px) {
	.wp-block-group.is-style-agma-badge-card {
		padding: 20px;
		border-radius: 30px;
	}

	.is-style-agma-badge-card > .wp-block-group {
		padding: 20px;
		border-radius: 20px;
	}

	.is-style-agma-badge-card > .wp-block-group > :last-child {
		margin: -20px -20px 0;
		border-radius: 20px;
	}
}

/* FAQ with a phone in the middle of the turning rings (service pages). */
.wp-block-group.is-style-agma-orbit-phone {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	container-type: inline-size;
	view-timeline-name: --agma-orbit;
	overflow: clip;
	overflow-clip-margin: 16px;
}

.is-style-agma-orbit-phone > .wp-block-image {
	margin: 0;
}

.is-style-agma-orbit-phone > .wp-block-image a {
	position: relative;
	z-index: 5;
	display: block;
	box-sizing: border-box;
	width: 82px;
	padding: 30px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--blue);
	transition: background-color 0.3s;
}

.is-style-agma-orbit-phone > .wp-block-image a:hover {
	background-color: var(--wp--preset--color--white-20);
}

.is-style-agma-orbit-phone > .wp-block-image img {
	display: block;
	width: 22px;
	height: 22px;
}

@media (prefers-reduced-motion: no-preference) {
	.is-style-agma-orbit-phone > .wp-block-image a {
		animation: agma-pulse-white 1.5s infinite;
	}
}

@keyframes agma-pulse-white {
	from {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--white) 40%, transparent);
	}

	to {
		box-shadow: 0 0 0 20px transparent;
	}
}

.is-style-agma-orbit-phone > :not(.wp-block-image) {
	position: absolute;
	z-index: 2;
	margin: 0;
}

.is-style-agma-orbit-phone > .wp-block-heading {
	bottom: 90px;
	left: 80px;
}

.is-style-agma-orbit-phone > .agma-action-button {
	bottom: 15px;
	left: 65px;
}

@media (max-width: 480px) {
	.is-style-agma-orbit-phone > .wp-block-heading {
		bottom: 55px;
		left: 0;
	}

	.is-style-agma-orbit-phone > .agma-action-button {
		bottom: -15px;
		left: -10px;
	}
}

/* Service FAQ: rows centred; stacked from 1366px down with a 580px questions column (as on production). */
.wp-block-group.is-style-agma-faq-layout.agma-faq-center {
	align-items: center;
}

@media (max-width: 1366px) {
	.wp-block-group.is-style-agma-faq-layout.agma-faq-center {
		flex-direction: column;
		align-items: center;
	}

	.is-style-agma-faq-layout.agma-faq-center > :last-child {
		flex: none;
		width: 580px;
		max-width: 100%;
	}
}

@media (max-width: 768px) {
	.is-style-agma-faq-layout.agma-faq-center > :last-child {
		width: 100%;
	}
}

@media (max-width: 620px) {
	.wp-block-group.is-style-agma-faq-layout.agma-faq-center {
		margin-block-start: 0;
	}

	/* Card titles step up to 22px / 30px on phones (Elementor "blog post title"). */
	.is-style-agma-orbit-phone > .wp-block-heading,
	.is-style-agma-image-card h3 {
		font-size: var(--wp--preset--font-size--x-large) !important;
		line-height: 30px !important;
	}
}

@media (max-width: 480px) {
	.wp-block-group.is-style-agma-faq-layout.agma-faq-center {
		gap: 40px;
	}
}

/* Laptop card: glass panel with a gradient border; text left, laptop with a before / after screen right. */
.wp-block-group.is-style-agma-laptop-card {
	position: relative;
	box-sizing: border-box;
	padding: 100px 80px;
	gap: 60px;
	border-radius: 80px;
	background-color: color-mix(in srgb, var(--wp--preset--color--white) 4%, transparent);
	backdrop-filter: blur(6.2px);
}

.is-style-agma-laptop-card::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(
		107deg,
		color-mix(in srgb, var(--wp--preset--color--white) 58%, transparent) 1.22%,
		transparent 17.85%,
		transparent 80.23%,
		color-mix(in srgb, var(--wp--preset--color--white) 58%, transparent) 99.7%
	);
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
}

.is-style-agma-laptop-card > :first-child {
	flex: 0 1 calc(40% - 30px);
}

.is-style-agma-laptop-card > :last-child {
	flex: 0 1 calc(60% - 30px);
}

/* Laptop frame image with the before / after slider placed on its screen. */
.agma-laptop {
	position: relative;
}

.agma-laptop > .wp-block-image {
	margin: 0;
}

.agma-laptop > .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

.agma-laptop > .agma-before-after {
	position: absolute;
	top: 4%;
	left: 7.3%;
	width: 85%;
	margin: 0;
}

.agma-before-after.is-style-agma-laptop-screen {
	overflow: visible;
	border: 0;
	border-radius: 2px;
	background-color: transparent;
	aspect-ratio: 333 / 209;
}

.is-style-agma-laptop-screen > figure {
	overflow: hidden;
	border-radius: 2px;
}

.is-style-agma-laptop-screen .agma-before-after__label {
	top: 46%;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	line-height: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
	transform: rotate(-90deg);
	backdrop-filter: none;
}

/* Labels sit on the laptop edges (30px / 20px outside it); the screen is inset 7.3% / 7.7%. */
.is-style-agma-laptop-screen .agma-before-after__label--before {
	left: calc(-8.59% - 30px);
}

.is-style-agma-laptop-screen .agma-before-after__label--after {
	right: calc(-9.06% - 20px);
}

@media (max-width: 1366px) {
	.wp-block-group.is-style-agma-laptop-card {
		flex-direction: column;
		align-items: stretch;
	}

	.is-style-agma-laptop-card > * {
		flex: none !important;
		width: 100%;
	}
}

@media (max-width: 768px) {
	.wp-block-group.is-style-agma-laptop-card {
		border-radius: 30px;
	}
}

@media (max-width: 620px) {
	.wp-block-group.is-style-agma-laptop-card {
		padding: 60px 20px;
	}
}

/* Image card: image on top (dimmed, zooms on hover), title + text; the title link covers the card. */
.wp-block-group.is-style-agma-image-card {
	position: relative;
	overflow: hidden;
	border-radius: 40px;
	background-color: var(--wp--preset--color--white-10);
}

.is-style-agma-image-card > .wp-block-image {
	position: relative;
	margin: 0;
	overflow: hidden;
}

.is-style-agma-image-card > .wp-block-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--wp--preset--color--black);
	opacity: 0.15;
	pointer-events: none;
}

.is-style-agma-image-card > .wp-block-image img {
	display: block;
	width: 100%;
	height: 290px;
	object-fit: cover;
	transition: scale 0.5s;
}

.is-style-agma-image-card:hover > .wp-block-image img {
	scale: 1.05;
}

.is-style-agma-image-card h3 a {
	color: inherit;
	text-decoration: none;
}

.is-style-agma-image-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

@media (max-width: 768px) {
	.wp-block-group.is-style-agma-image-card {
		border-radius: 20px;
	}
}

@media (max-width: 480px) {
	.is-style-agma-image-card > .wp-block-group {
		padding-right: 30px !important;
		padding-left: 30px !important;
	}
}

/* Three cards per row (one below 1024px). */
.wp-block-group.is-style-agma-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 50px;
}

.is-style-agma-grid-3 > * {
	margin: 0 !important;
}

@media (max-width: 1366px) {
	.wp-block-group.is-style-agma-grid-3 {
		gap: 50px 20px;
	}
}

@media (max-width: 1024px) {
	.wp-block-group.is-style-agma-grid-3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 768px) {
	.wp-block-group.is-style-agma-grid-3 {
		gap: 20px;
	}
}

/* ------------------------------------------------------------------ */
/* Website page (template "page-website"): light header and sections.  */
/* ------------------------------------------------------------------ */

/* Light header layout: no pill, compact height; glass bar on scroll (as the dark header). The logo and the
   links stay white like everywhere else (owner's decision 2026-11-17; production shows them black here). */
:root:has(.agma-header-light, .agma-night-on-light) {
	--agma-header-height: 46px;
	--agma-header-padding: 0px;
}

/* Black logo of the former light header (kept in the header part, never shown). */
.agma-logo-light {
	display: none;
}

.agma-header-light .is-style-agma-nav-pill {
	padding: 0;
	border-color: transparent;
	background-color: transparent;
	backdrop-filter: none;
}

/* Hero: background image under the header, blue side light, turning rings, award logos at the bottom. */
.wp-block-group.is-style-agma-website-hero {
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
	margin-top: calc(-1 * var(--agma-header-height)) !important;
	padding: var(--agma-header-height) 0 200px;
	background-color: var(--wp--preset--color--white);
}

/* Sections follow each other without the default block gap. */
.agma-website-content > * {
	margin-block-start: 0;
}

.is-style-agma-website-hero > * {
	margin-block: 0 !important;
}

.is-style-agma-website-hero::before,
.is-style-agma-website-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.is-style-agma-website-hero::before {
	background-image: linear-gradient(60deg, var(--wp--preset--color--blue-70) 0%, transparent 35%);
}

.is-style-agma-website-hero::after {
	background-image: linear-gradient(120deg, transparent 35%, var(--wp--preset--color--blue-70) 100%);
}

.is-style-agma-website-hero > .agma-cover-image {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.is-style-agma-website-hero > .agma-cover-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.agma-hero-rings {
	position: absolute;
	top: 50%;
	left: 58%;
	z-index: 1;
	width: 1200px;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.agma-hero-rings .agma-ring {
	position: absolute;
	inset: 0;
	margin: 0 !important;
	border-radius: 50%;
}

.agma-hero-rings .agma-ring--outer,
.agma-hero-rings .agma-ring--inner {
	border: 1px solid var(--wp--preset--color--gray-muted);
}

.agma-hero-rings .agma-ring--inner {
	inset: 15%;
}

.agma-hero-rings .agma-ring__dot {
	position: absolute;
	width: 20px;
	aspect-ratio: 1;
	margin: 0 !important;
	border-radius: 50%;
	background-color: var(--wp--preset--color--gray-muted);
}

.agma-ring--outer > .agma-ring__dot--1 { top: 25%; left: 65px; }
.agma-ring--outer > .agma-ring__dot--2 { top: 70%; right: 45px; width: 15px; }
.agma-ring--slow > .agma-ring__dot--1 { top: 73%; left: 63px; }
.agma-ring--slow > .agma-ring__dot--2 { top: 65%; right: 21px; }
.agma-ring--inner > .agma-ring__dot--1 { top: 15%; left: 104px; width: 15px; }
.agma-ring--inner > .agma-ring__dot--2 { top: 25%; left: 40px; }

/* The rings turn with the page scroll (Elementor scroll effect speeds 1.6 / 0.5 / 3). */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: scroll()) {
		.agma-hero-rings .agma-ring {
			animation: agma-ring-turn 1ms linear both;
			animation-timeline: scroll(root);
			animation-range: 0 100vh;
		}

		.agma-hero-rings .agma-ring--outer { --agma-turn: 58deg; }
		.agma-hero-rings .agma-ring--slow { --agma-turn: 18deg; }
		.agma-hero-rings .agma-ring--inner { --agma-turn: 108deg; }
	}
}

@keyframes agma-ring-turn {
	to {
		rotate: var(--agma-turn, 0deg);
	}
}

.agma-website-hero__row {
	position: relative;
	z-index: 3;
	box-sizing: border-box;
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto !important;
	padding-inline: 20px;
	gap: 20px;
}

.agma-website-hero__text {
	flex: 0 0 60%;
	align-items: flex-start;
}

.agma-website-hero__text > *,
.agma-website-hero__row > * {
	margin: 0;
}

.agma-website-hero__row > .agma-website-hero__phone {
	align-self: flex-end;
	margin-bottom: -200px;
}

.agma-website-hero__phone img {
	width: auto;
	height: 750px;
}

.agma-hero-rating > * {
	margin: 0;
}

/*
 * Production renders this page inside the post content widget, which puts 70px (30px up to 600px)
 * under text paragraphs and images; the hero keeps that spacing.
 */
.agma-hero-rating > .wp-block-image img,
.agma-website-hero__phone img,
.agma-website-hero__logos img {
	margin-bottom: var(--agma-prose-gap, 70px);
}

.agma-website-hero__text > p {
	margin-bottom: var(--agma-prose-gap, 70px) !important;
}

@media (max-width: 600px) {
	:root {
		--agma-prose-gap: 30px;
	}
}

.agma-website-hero__logos {
	position: absolute;
	bottom: 60px;
	left: 50%;
	z-index: 4;
	box-sizing: border-box;
	width: min(var(--wp--style--global--content-size), 100% - 40px);
	gap: 3%;
	transform: translateX(-50%);
}

.agma-website-hero__logos > .wp-block-image {
	margin: 0;
}

.agma-website-hero__logos img {
	width: 100%;
	height: auto;
}

.agma-website-hero__logos > .agma-w-3 { width: 3%; }
.agma-website-hero__logos > .agma-w-8 { width: 8%; }
.agma-website-hero__logos > .agma-w-9 { width: 9%; }
.agma-website-hero__logos > .agma-w-10 { width: 10%; }
.agma-website-hero__logos > .agma-w-12 { width: 12%; }
.agma-website-hero__logos > .agma-w-17 { width: 17%; }

/* Link with a 2px line under it (hero "Projects"). */
.is-style-agma-underline-link a {
	display: inline-block;
	border-bottom: 2px solid currentColor;
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease, border-color 0.3s ease;
}

.is-style-agma-underline-link a:hover,
.is-style-agma-underline-link a:focus-visible {
	color: var(--wp--preset--color--blue);
}

@media (max-width: 1366px) {
	.agma-hero-rings {
		width: 1000px;
	}
}

@media (max-width: 1024px) {
	.agma-hero-rings {
		left: 70%;
	}

	.agma-website-hero__row {
		flex-direction: column;
		flex-wrap: wrap !important;
	}

	.agma-website-hero__text {
		flex-basis: auto;
		box-sizing: border-box;
		width: 60%;
		padding-block: 50px;
		gap: 25px;
	}

	/* The title stays on one line as on production (wider than the 60% text column). */
	.agma-website-hero__text > .wp-block-post-title {
		width: max-content;
		max-width: calc(100vw - 40px);
	}

	.agma-website-hero__row > .agma-website-hero__phone {
		align-self: center;
	}

	.agma-website-hero__phone img {
		width: 400px;
		height: auto;
	}
}

@media (max-width: 620px) {
	.agma-hero-buttons {
		gap: 25px;
	}

	.agma-website-hero__logos {
		bottom: 30px;
		flex-wrap: wrap !important;
		align-items: stretch;
		justify-content: space-between !important;
	}

	.agma-website-hero__logos > :nth-child(-n + 4) {
		padding-block: 10px;
	}

	.agma-website-hero__logos > :nth-child(1),
	.agma-website-hero__logos > :nth-child(2) { width: 16%; }
	.agma-website-hero__logos > :nth-child(3) { width: 24%; }
	.agma-website-hero__logos > :nth-child(4) { width: 35%; }
	.agma-website-hero__logos > :nth-child(5) { width: 15%; }
	.agma-website-hero__logos > :nth-child(6) { width: 7%; }
	.agma-website-hero__logos > :nth-child(7) { width: 30%; }
	.agma-website-hero__logos > :nth-child(8) { width: 27%; }
}

@media (max-width: 600px) {
	.agma-website-hero__text > p {
		font-size: var(--wp--preset--font-size--18) !important;
	}
}

@media (max-width: 480px) {
	.agma-website-hero__text {
		width: 100%;
	}

	.agma-hero-rings {
		width: 600px;
	}

	.agma-hero-rings .agma-ring--inner {
		inset: 17.5%;
	}
}

/* Small label in a white pill with a light border ("Предимства"). */
.is-style-agma-pill-label {
	width: fit-content;
	padding: 12px 20px 8px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--black) 13%, transparent);
	border-radius: 20px;
	background-color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	line-height: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

/* Advantages: titles 60% wide, three columns of white icon cards. */
.wp-block-group.agma-advantages {
	padding: 100px 20px;
}

.agma-advantages__titles {
	--agma-titles-share: 0.6;

	align-items: center !important;
	width: calc(min(100%, var(--wp--style--global--content-size)) * var(--agma-titles-share));
	margin-inline: auto !important;
}

.agma-advantages__titles > * {
	margin: 0;
}

.agma-advantages__grid {
	display: grid;
	grid-template-columns: 442fr 506fr 442fr;
	gap: 25px;
}

.agma-advantages__grid > .agma-advantages__col {
	justify-content: space-between;
	gap: 25px;
	margin: 0;
}

.agma-advantages__col > * {
	width: 100%;
	margin: 0;
}

.wp-block-group.is-style-agma-icon-card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 35px 45px;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--gray-muted) 34%, transparent);
	border-radius: 30px;
	background-color: var(--wp--preset--color--white);
}

.is-style-agma-icon-card > * {
	margin: 0;
}

/* Elementor icon boxes: 45px under the icon (plus the icon line box), 20px under the title. */
.is-style-agma-icon-card > .agma-icon-card__icon {
	margin-bottom: 53px;
	line-height: 0;
}

/* Font Awesome glyphs are 24px high (the font size); the width follows the icon. */
.is-style-agma-icon-card > .agma-icon-card__icon img {
	width: auto !important;
	height: 24px !important;
}

.is-style-agma-icon-card > .wp-block-heading {
	margin-bottom: 20px;
}

/* Screenshot bleeding to the card edges at the bottom. */
.is-style-agma-icon-card > .agma-icon-card__bleed {
	width: calc(100% + 50px);
	margin: auto -25px -35px;
}

.is-style-agma-icon-card > .agma-icon-card__bleed img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: var(--agma-prose-gap, 70px);
}

/* Reviews: 100px above, 180px below (80 / 160 from 1024px). */
.wp-block-group.agma-website-reviews {
	padding-block: 100px 180px;
}

/* The post content spacing of production also applies to the images of the shared sections. */
.agma-website-reviews .is-style-agma-slider-layout .is-nowrap:first-child > .wp-block-image img,
.agma-website-reviews .wp-block-post-featured-image img,
.agma-website-content .is-style-agma-phone-pair img {
	margin-bottom: var(--agma-prose-gap, 70px);
}

/* Comparison: translucent card, AGMA vs a typical agency. */
.wp-block-group.agma-compare-section {
	padding: 150px 20px 0;
}

.wp-block-group.is-style-agma-compare-card {
	align-items: center !important;
	box-sizing: border-box;
	padding: 125px 200px;
	border-radius: 60px;
	background-color: color-mix(in srgb, var(--wp--preset--color--white) 8%, transparent);
}

.is-style-agma-compare-card > * {
	margin: 0;
}

.agma-compare__titles {
	align-items: center !important;
	width: 100%;
}

.agma-compare__titles > * {
	margin: 0;
}

.agma-compare__titles > .agma-compare__title {
	align-self: stretch;
}

.wp-block-table.is-style-agma-compare {
	width: 100%;
	margin: 0;
	overflow: auto;
	border: 1px solid var(--wp--preset--color--white-20);
	border-radius: 40px;
}

.wp-block-table.is-style-agma-compare table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.wp-block-table.is-style-agma-compare th,
.wp-block-table.is-style-agma-compare td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--white-20);
	color: var(--wp--preset--color--white);
}

.wp-block-table.is-style-agma-compare thead {
	border: 0;
}

.wp-block-table.is-style-agma-compare th {
	padding: 30px 20px 20px;
	background-color: var(--wp--preset--color--white-10);
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: var(--wp--preset--font-size--20);
	font-weight: 500;
	line-height: 24px;
	text-align: center;
}

.wp-block-table.is-style-agma-compare td {
	padding: 15px 20px 8px;
	background-color: var(--wp--preset--color--white-5);
	line-height: 0;
	text-align: center;
	vertical-align: middle;
}

.wp-block-table.is-style-agma-compare td:first-child {
	padding: 20px 30px;
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 22px;
	text-align: start;
}

.wp-block-table.is-style-agma-compare tr > :nth-child(1) {
	width: 40%;
}

.wp-block-table.is-style-agma-compare tr > :nth-child(2) {
	width: 30%;
	border-inline: 1px solid var(--wp--preset--color--white-20);
}

.wp-block-table.is-style-agma-compare tr > :nth-child(3) {
	width: 30%;
}

.wp-block-table.is-style-agma-compare tbody tr:last-child > * {
	border-bottom: 0;
}

.wp-block-table.is-style-agma-compare img {
	width: 32px;
	height: auto;
}

@media (max-width: 1366px) {
	.agma-advantages__titles {
		--agma-titles-share: 0.8;
	}

	.wp-block-group.is-style-agma-compare-card {
		padding: 100px 60px;
	}

	.wp-block-table.is-style-agma-compare tr > :nth-child(1) {
		width: 50%;
	}

	.wp-block-table.is-style-agma-compare tr > :nth-child(2),
	.wp-block-table.is-style-agma-compare tr > :nth-child(3) {
		width: 25%;
	}

	.wp-block-table.is-style-agma-compare th {
		padding-inline: 10px;
	}
}

@media (max-width: 1024px) {
	.wp-block-group.agma-advantages {
		padding-block: 80px;
	}

	.agma-advantages__grid {
		grid-template-columns: minmax(0, 1fr);
		width: 80%;
		margin-inline: auto;
	}

	.wp-block-group.agma-website-reviews {
		padding-block: 80px 160px;
	}

	.wp-block-group.agma-compare-section {
		padding-top: 80px;
	}

	.wp-block-table.is-style-agma-compare tr > :nth-child(1) {
		width: 52%;
	}

	.wp-block-table.is-style-agma-compare tr > :nth-child(2),
	.wp-block-table.is-style-agma-compare tr > :nth-child(3) {
		width: 24%;
	}

	.wp-block-table.is-style-agma-compare td:first-child {
		padding: 20px;
		font-size: var(--wp--preset--font-size--small);
	}
}

@media (max-width: 768px) {
	.wp-block-group.is-style-agma-compare-card {
		padding: 0;
		background-color: transparent;
	}

	.wp-block-table.is-style-agma-compare tr > :nth-child(1) {
		width: 60%;
	}

	.wp-block-table.is-style-agma-compare tr > :nth-child(2),
	.wp-block-table.is-style-agma-compare tr > :nth-child(3) {
		width: 20%;
	}

	.wp-block-table.is-style-agma-compare th {
		font-size: var(--wp--preset--font-size--medium);
	}
}

@media (max-width: 620px) {
	.agma-advantages__titles {
		--agma-titles-share: 1;
	}

	.agma-advantages__grid {
		width: 100%;
	}

	.is-style-agma-icon-card > .wp-block-heading {
		font-size: var(--wp--preset--font-size--x-large) !important;
		line-height: 30px !important;
	}
}

@media (max-width: 480px) {
	.agma-compare__titles {
		align-items: flex-start !important;
	}

	.agma-compare__title {
		font-size: var(--wp--preset--font-size--32) !important;
	}

	.wp-block-table.is-style-agma-compare th {
		padding-inline: 0;
		font-size: var(--wp--preset--font-size--small);
		line-height: 30px;
	}

	.wp-block-table.is-style-agma-compare td {
		padding: 15px 8px 8px;
	}

	.wp-block-table.is-style-agma-compare td:first-child {
		padding: 20px 5px 20px 10px;
	}
}

/* ------------------------------------------------------------------ */
/* Article: sticky sidebar (contents, share, related) + content column. */
/* ------------------------------------------------------------------ */

.wp-block-group.agma-article {
	padding-inline: 20px;
}

/* Posts and pillar pages: production pads the footer by 100px (20px come from the root gap). */
body.single .wp-block-group.agma-article {
	margin-bottom: 80px;
}

.agma-article__row {
	align-items: flex-start !important;
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto !important;
	gap: 0;
}

.agma-article__row > * {
	margin: 0 !important;
}

.agma-article__sidebar {
	position: sticky;
	top: 20px;
	flex: 0 0 35%;
	box-sizing: border-box;
	margin-top: 120px !important;
	padding: 0 120px 50px 0;
}

.agma-article__sidebar > * {
	margin-block: 0;
}

.agma-article__main {
	flex: 1 1 0;
	min-width: 0;
	margin-block: 120px 200px !important;
}

/* Labels of the sidebar (contents title, "Share:", "Related posts:"). */
.is-style-agma-side-label,
.agma-article .agma-toc__title {
	margin: 0;
	color: var(--wp--preset--color--gray);
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--18);
	font-weight: 400;
	line-height: 22px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.agma-article .agma-toc__title {
	margin-bottom: 32px;
}

.agma-article .agma-toc__list {
	gap: 15px;
}

.agma-article .agma-toc__item {
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--rubik);
	font-size: var(--wp--preset--font-size--18);
	font-weight: 400;
	line-height: 23px;
	letter-spacing: 0.4px;
}

.agma-article .agma-toc__item a:hover,
.agma-article .agma-toc__item a:focus-visible {
	color: inherit;
	text-decoration: underline;
}

.agma-share-row > * {
	margin: 0;
}

.agma-article__share-side {
	margin-top: 35px !important;
}

.agma-article__share-bottom {
	margin-top: 80px !important;
}

.agma-share-row .agma-share {
	gap: 0;
	color: var(--wp--preset--color--black);
}

.agma-share-row .agma-share__link {
	width: 45px;
}

/* Related posts: cards with a pink → blue frame. */
.agma-related-posts {
	margin-top: 70px !important;
}

.agma-related-posts > * {
	margin-block: 0;
}

.agma-related-posts .wp-block-query {
	margin-top: 35px;
}

.agma-related-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.agma-related-list > li {
	margin: 0;
}

.wp-block-group.is-style-agma-related-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 38px;
	box-sizing: border-box;
	padding: 35px 35px 30px;
	border: 1px solid transparent;
	border-radius: 40px;
	background:
		linear-gradient(var(--wp--preset--color--white), var(--wp--preset--color--white)) padding-box,
		linear-gradient(180deg, var(--wp--preset--color--pink), var(--wp--preset--color--blue)) border-box;
	color: var(--wp--preset--color--almost-black);
	transition: background 0.5s ease;
}

.is-style-agma-related-card > * {
	margin: 0;
}

/* The title can be a paragraph (link card outside the outline), so it sets the heading font itself. */
.agma-related-card__title {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: var(--wp--preset--font-size--20);
	font-weight: 500;
	line-height: 24px;
}

.agma-related-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.5s ease;
}

/* The title link covers the whole card. */
.agma-related-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.is-style-agma-related-card:hover .agma-related-card__title a {
	color: var(--wp--preset--color--blue);
}

.agma-related-card__excerpt,
.agma-related-card__excerpt p {
	margin: 0;
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 22px;
}

.agma-related-card__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

.agma-related-card__meta {
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--xx-small);
	line-height: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.agma-related-card__meta > * {
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Prose: the typography of the post content on production.           */
/* ------------------------------------------------------------------ */

.is-style-agma-prose > * {
	margin-block: 0;
}

.is-style-agma-prose p,
.is-style-agma-prose ul,
.is-style-agma-prose ol {
	margin: 0 0 var(--agma-prose-gap, 70px);
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--20);
	font-weight: 300;
	line-height: 1.4;
}

.is-style-agma-prose > :last-child,
.is-style-agma-prose > :last-child > p:last-child,
.is-style-agma-prose .is-style-agma-article-card > p:last-child,
.is-style-agma-prose .agma-step__text > p {
	margin-bottom: 0;
}

.is-style-agma-prose strong {
	font-weight: 700;
}

.is-style-agma-prose ul {
	padding-left: 40px;
	list-style: none;
}

.is-style-agma-prose ul li {
	position: relative;
}

.is-style-agma-prose ul li:not(:last-child),
.is-style-agma-prose ol li:not(:last-child) {
	margin-bottom: 35px;
}

/* Grey check circles that turn blue once the item is on screen. */
.is-style-agma-prose ul li::before {
	content: "";
	position: absolute;
	top: 0;
	left: -40px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--gray-light) 30%, var(--wp--preset--color--gray-muted)) url("../images/icon-list-marker.webp") center / 30px no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.is-style-agma-prose ul li::before {
			animation: agma-check-on 1ms linear both;
			animation-timeline: view();
			animation-range: entry 100% entry 100%;
		}
	}
}

@keyframes agma-check-on {
	to {
		background-color: var(--wp--preset--color--blue);
	}
}

.is-style-agma-prose a {
	position: relative;
	color: inherit;
	text-decoration: none;
}

.is-style-agma-prose p a::before,
.is-style-agma-prose li a::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--wp--preset--color--pink);
	transform: scaleX(0);
	transform-origin: bottom right;
	transition: transform 0.5s cubic-bezier(0.14, 0, 0, 1.01);
}

.is-style-agma-prose p a:hover::before,
.is-style-agma-prose li a:hover::before {
	transform: scaleX(1);
	transform-origin: bottom left;
}

.is-style-agma-prose h2 {
	margin: 80px 0 40px;
	font-size: var(--wp--preset--font-size--32);
	font-weight: 500;
	line-height: 1;
}

.is-style-agma-prose :is(h2, h3).agma-article-subtitle {
	margin: 80px 0 35px;
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 500;
	line-height: 1.5;
}

/* Heading widget right after a list widget: the margins add up on production. */
.is-style-agma-prose h2.agma-after-list {
	margin-top: calc(var(--agma-prose-gap, 70px) + 80px);
}

/* Plain H3 of the article (Elementor heading widget: 25px, line height 1). */
.is-style-agma-prose h3.wp-block-heading:not([class*="agma-"]) {
	font-size: 25px;
	line-height: 1;
}

/* H3 in the outline that keeps the size of an article H2. */
.is-style-agma-prose h3.agma-prose-major {
	font-size: var(--wp--preset--font-size--32);
	font-weight: 500;
	line-height: 1;
}

/* :where keeps the callout h3 at the specificity of h4, so card title rules still win over it. */
.is-style-agma-prose h4,
.is-style-agma-prose h3:where(.agma-prose-callout) {
	margin: 8px 0 16px;
	font-size: var(--wp--preset--font-size--24);
	font-weight: 500;
	line-height: 1.2;
}

.is-style-agma-prose h5,
.is-style-agma-prose h3.agma-prose-minor {
	margin: 2rem 0 1rem;
	font-size: var(--wp--preset--font-size--20);
	font-weight: 500;
	line-height: 1;
}

/* Elementor keeps both margins (separate widgets): 40px under the title + 2rem above. */
.is-style-agma-prose h2 + h5,
.is-style-agma-prose h2 + h3.agma-prose-minor {
	margin-top: calc(40px + 2rem);
}

.is-style-agma-prose .wp-block-embed {
	margin: 0;
}

/* Article cards: steps 01–05 and quotes. */
.wp-block-group.is-style-agma-article-card {
	display: flow-root;
	box-sizing: border-box;
	margin-bottom: 20px;
	padding: 2rem;
	border-radius: 3rem;
	background-color: var(--wp--preset--color--white);
	box-shadow: 0 4px 20px -9px color-mix(in srgb, var(--wp--preset--color--black) 50%, transparent);
}

.is-style-agma-article-card > .agma-step {
	margin-bottom: 20px;
}

/* Production keeps the 70px under the last list of a card (only paragraphs lose it). */
.is-style-agma-prose .is-style-agma-article-card > ul:last-child,
.is-style-agma-prose .is-style-agma-article-card > ol:last-child {
	margin-bottom: var(--agma-prose-gap, 70px);
}

.is-style-agma-article-card > .agma-step + * {
	padding-top: 2rem;
}

/* A heading right under the step keeps its own 8px (separate widgets on production). */
.is-style-agma-prose .is-style-agma-article-card > .agma-step + h4 {
	padding-top: calc(2rem + 8px);
}

.is-style-agma-prose .is-style-agma-article-card > ul + h4 {
	margin-top: calc(var(--agma-prose-gap, 70px) + 8px);
}

/* Wrappers with their own top margin do not swallow the margin of their first heading. */
.is-style-agma-prose > .wp-block-group:not(.is-layout-flex) {
	display: flow-root;
}

.agma-step > *,
.agma-quote > * {
	margin: 0;
}

.agma-step__icon {
	flex: none;
	box-sizing: border-box;
	width: 70px;
	height: 70px;
	padding: 17.5px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--blue);
}

.agma-step__icon img {
	display: block;
	width: 35px;
	height: 35px;
	margin: 0 !important;
}

.agma-step__text {
	flex: 1;
}

.agma-step > .agma-step__text {
	padding-top: 8px;
}

.agma-step__title {
	margin: 0 0 15px !important;
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 500;
	line-height: 1.2;
}

.is-style-agma-prose .agma-step__lead {
	color: var(--wp--preset--color--gray);
	line-height: 30px;
}

.agma-quote__icon {
	flex: none;
	width: 40px;
}

.agma-quote__icon img {
	display: block;
	width: 40px;
	height: auto;
	margin: 0 !important;
}

/* Phones: Elementor icon boxes put the icon above the text (mobile position "top"); step titles 22px,
   quote titles 20px (overrides the preset class of the h4 quote title). */
@media (max-width: 480px) {
	.wp-block-group.agma-step,
	.wp-block-group.agma-quote {
		flex-direction: column;
		align-items: flex-start;
	}

	.agma-step > .agma-step__text {
		padding-top: 0;
	}

	.agma-step .agma-step__title {
		font-size: var(--wp--preset--font-size--x-large) !important;
	}

	.agma-quote .agma-step__title {
		font-size: var(--wp--preset--font-size--20) !important;
	}

	/* The large (24px) quote text is 22px on phones. */
	.is-style-agma-prose .agma-quote__text.has-24-font-size {
		font-size: var(--wp--preset--font-size--x-large) !important;
	}
}

.is-style-agma-prose .agma-quote__text {
	font-family: var(--wp--preset--font-family--rubik);
	font-weight: 400;
	font-style: oblique;
	line-height: 30px;
}

/* Laptop in the article (template 5084). */
.is-style-agma-prose .agma-article-laptop {
	margin-inline: 10px;
	padding: 100px 80px;
	border-radius: 80px;
	background-color: color-mix(in srgb, var(--wp--preset--color--white) 4%, transparent);
	backdrop-filter: blur(6.2px);
}

.is-style-agma-prose .agma-article-laptop img {
	margin: 0;
}

/* Desktop / mobile screenshots: dark rounded panel. */
.agma-article-devices .agma-device-preview {
	padding-block: 50px;
	border-radius: 80px;
}

/* Call to action: blue card 20px wider than the column, spinning badge. */
.wp-block-group.is-style-agma-cta-card {
	position: relative;
	align-items: center !important;
	box-sizing: border-box;
	margin-inline: -20px;
	padding: 100px 200px;
	border-radius: 80px;
}

.is-style-agma-cta-card > * {
	margin: 0 !important;
}

.is-style-agma-cta-card > p {
	margin-bottom: var(--agma-prose-gap, 70px) !important;
}

.is-style-agma-cta-card > .agma-cta-card__badge {
	position: absolute;
	top: 40px;
	right: 40px;
	width: 115px;
}

.is-style-agma-cta-card > .agma-cta-card__badge img {
	width: 115px;
	height: 115px;
	margin: 0;
}

/* FAQ: cards from the FAQ items; the answer opens under the question. */
.agma-article-faq {
	margin: 0 -20px !important;
	padding: 80px;
	border-radius: 80px;
}

.agma-article-faq > * {
	margin-block: 0;
}

.agma-article-faq > .wp-block-query {
	margin-top: 50px;
}

.is-style-agma-prose :is(h2, h3).agma-article-faq__title {
	margin: 0;
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--heading-l);
	font-weight: 500;
	line-height: 1.2;
}

.agma-faq-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin: 0;
	padding: 0 !important;
	list-style: none;
}

.is-style-agma-prose ul.agma-faq-list > li {
	margin: 0;
}

.is-style-agma-prose .agma-faq-list > li::before {
	content: none;
}

.wp-block-group.is-style-agma-faq-card {
	position: relative;
	box-sizing: border-box;
	padding: 50px;
	border-radius: 40px;
	background-color: var(--wp--preset--color--white);
	box-shadow: 5px 5px 10px color-mix(in srgb, var(--wp--preset--color--black) 5%, transparent);
	anchor-scope: --agma-faq-row;
}

.is-style-agma-faq-card > * {
	margin: 0;
}

.agma-faq-card__row {
	padding-right: 77px;
}

.agma-faq-card__row > * {
	margin: 0;
}

.agma-faq-card__counter {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}

.is-style-agma-prose .agma-faq-card__counter p,
.agma-faq-card__counter .agma-field {
	margin: 0;
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 500;
	line-height: 1.2;
}

.agma-faq-card__titles {
	flex: 1;
	anchor-name: --agma-faq-row;
}

.agma-faq-card__titles > * {
	margin: 0;
}

.is-style-agma-prose .agma-faq-card__question {
	margin-bottom: 10px !important;
	color: var(--wp--preset--color--gray-dark);
	font-size: var(--wp--preset--font-size--heading-s);
	font-weight: 500;
	line-height: 1;
}

.is-style-agma-prose .agma-faq-card__lead p {
	margin: 0;
}

.agma-faq-card__answer > summary {
	position: absolute;
	top: 59px;
	right: 50px;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--gray);
	border-radius: 50%;
	box-sizing: border-box;
	color: transparent;
	list-style: none;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

@supports (anchor-name: --a) {
	.agma-faq-card__answer > summary {
		top: anchor(--agma-faq-row center);
		translate: 0 -50%;
	}
}

.agma-faq-card__answer > summary::-webkit-details-marker {
	display: none;
}

/* Plus sign. */
.agma-faq-card__answer > summary::before,
.agma-faq-card__answer > summary::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 2px;
	background-color: var(--wp--preset--color--black);
	transform: translate(-50%, -50%);
}

.agma-faq-card__answer > summary::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.agma-faq-card__answer > summary:hover {
	background-color: var(--wp--preset--color--gray);
	transform: rotate(90deg);
}

.agma-faq-card__answer[open] > summary {
	transform: rotate(45deg);
}

.agma-faq-card__answer .agma-field {
	padding-top: 50px;
}

.is-style-agma-prose .agma-faq-card__answer ul {
	padding-left: 1.5em;
	list-style: disc;
}

.is-style-agma-prose .agma-faq-card__answer ul li::before {
	content: none;
}

.is-style-agma-prose .agma-faq-card__answer p,
.is-style-agma-prose .agma-faq-card__answer ul {
	margin-bottom: 35px;
}

.is-style-agma-prose .agma-faq-card__answer .agma-field > :last-child {
	margin-bottom: 0;
}

@media (max-width: 1366px) {
	.agma-article__sidebar {
		padding-right: 60px;
	}
}

@media (max-width: 1024px) {
	.agma-article__row {
		flex-direction: column;
		align-items: center !important;
	}

	.agma-article__sidebar {
		position: static;
		flex: none;
		width: 400px;
		margin-top: 80px !important;
		padding: 0;
	}

	.agma-article__main {
		width: 100%;
		margin-block: 80px 100px !important;
	}

	.wp-block-group.is-style-agma-cta-card {
		padding-inline: 140px;
	}

	.agma-article__share-bottom {
		margin-top: 50px !important;
	}
}

@media (max-width: 768px) {
	.agma-article-faq {
		padding: 50px;
	}

	/* The counter gets its own centred line, the question keeps 77px for the plus button. */
	.agma-faq-card__row {
		flex-wrap: wrap !important;
		padding-right: 0;
	}

	.agma-faq-card__counter {
		margin-inline: auto !important;
	}

	.agma-faq-card__titles {
		flex: 0 0 calc(100% - 77px);
	}

	.agma-article-devices .agma-device-preview {
		border-radius: 40px;
	}
}

@media (max-width: 600px) {
	.is-style-agma-prose p,
	.is-style-agma-prose ul,
	.is-style-agma-prose ol {
		font-size: var(--wp--preset--font-size--18);
	}

	/* Icon box texts are not text-editor widgets on production: they keep their 20px. */
	.is-style-agma-prose .agma-step__lead,
	.is-style-agma-prose .agma-quote__text {
		font-size: var(--wp--preset--font-size--20);
	}
}

@media (max-width: 620px) {
	.agma-article__row {
		align-items: flex-start !important;
	}

	.agma-article__sidebar {
		width: 100%;
	}

	.wp-block-group.is-style-agma-cta-card {
		padding: 180px 50px 80px;
		border-radius: 40px;
	}

	.is-style-agma-cta-card > .agma-cta-card__badge {
		top: 35px;
		right: calc(50% - 57px);
	}

	.agma-article-faq {
		border-radius: 40px;
	}

	.wp-block-group.is-style-agma-faq-card {
		padding: 30px;
		border-radius: 20px;
	}

	.agma-faq-card__answer > summary {
		right: 30px;
	}
}

@media (max-width: 480px) {
	.wp-block-group.is-style-agma-article-card:not(.agma-article-card--keep-padding) {
		padding: 1rem;
	}

	.wp-block-group.is-style-agma-cta-card {
		padding-inline: 20px;
		border-radius: 20px;
	}

	.agma-article-faq {
		padding: 50px 20px 20px;
		border-radius: 30px;
	}

	.wp-block-group.is-style-agma-faq-card {
		padding: 20px;
	}

	.agma-faq-card__answer > summary {
		right: 20px;
	}

	@supports (anchor-name: --a) {
		.agma-faq-card__answer > summary {
			top: anchor(--agma-faq-row bottom);
			translate: 0 -100%;
		}
	}

	.wp-block-group.is-style-agma-related-card {
		padding: 35px 20px 30px;
		border-radius: 20px;
	}

	/* Date and reading time: 50px apart (loop 3514), no gap when they wrap. */
	.wp-block-group.agma-related-card__meta {
		gap: 0 50px;
	}
}

/* Related cards (Elementor loop 3514): the blog post title preset of the kit is 22/30px up to 620px. */
@media (max-width: 620px) {
	.agma-related-card__title {
		font-size: var(--wp--preset--font-size--x-large);
		line-height: 30px;
	}
}

/* Visitor rating under the article (YASR shortcode): label, stars and vote count on one row. */
.agma-article__rating {
	margin-top: 70px !important;
}

.agma-article__rating .yasr-visitor-votes {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0 20px;
}

.agma-article__rating .yasr-custom-text-vv-before {
	color: var(--wp--preset--color--gray);
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--18);
	font-weight: 400;
	line-height: 32px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.agma-article__rating .yasr-vv-second-row-container {
	display: flex;
	align-items: center;
	gap: 10px;
}

.agma-article__rating .yasr-vv-stats-text-container {
	font-family: var(--wp--preset--font-family--rubik);
	font-size: var(--wp--preset--font-size--18);
	letter-spacing: 0.4px;
}

/* Homepage globe section: 80px below the globe on phones (none above 480px, as on the original). */
@media (max-width: 480px) {
	.wp-block-group:has(> .agma-globe) {
		padding-bottom: 80px !important;
	}
}

/* Homepage hero: the photo row stacks (photo above stars + reviews), centred, up to 768px. */
@media (max-width: 768px) {
	/* The original first screen is 47px taller on tablets and phones. */
	.is-style-agma-hero {
		min-height: calc(90vh - var(--agma-header-height) - 53px);
	}

	.is-style-agma-hero > .wp-block-group:first-child {
		flex-direction: column;
		gap: 5px;
	}

	.is-style-agma-hero > .wp-block-group:first-child > .wp-block-group {
		align-items: center;
	}
}

/* Section intros (e.g. homepage blog): the title uses the full width, only the text is narrower. */
.agma-wide-mobile > .wp-block-heading {
	max-width: none !important;
}

/* Section card titles (case studies, projects slider): 32px / 40px on phones as on the original. */
@media (max-width: 480px) {
	.is-style-agma-section-card .wp-block-heading.has-heading-l-font-size {
		font-size: var(--wp--preset--font-size--32) !important;
		line-height: 40px !important;
	}
}

/* Projects slider card: edge to edge up to 768px (case studies keep the 20px inset). */
@media (max-width: 768px) {
	.wp-block-group.is-style-agma-section-card:has(> .agma-carousel) {
		max-width: none !important;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left)) !important;
	}
}

/* ------------------------------------------------------------------ */
/* About page ("За нас", 1:1 with the Elementor page 2777).            */
/* ------------------------------------------------------------------ */

/* Page glows: six soft lights, measured from the page top. */
.agma-glows.agma-glows--about {
	top: calc(-1 * var(--agma-header-height));
}

.agma-glows--about > .agma-glow {
	width: 1200px;
	background-image: radial-gradient(circle at center, var(--wp--preset--color--blue-70) 0%, transparent 70%);
}

.agma-glows--about > .agma-glow--purple {
	background-image: radial-gradient(circle at center, var(--wp--preset--color--purple-70) 0%, transparent 70%);
}

.agma-glows--about > .agma-glow:nth-child(1) {
	top: -350px;
	left: -400px;
}

.agma-glows--about > .agma-glow:nth-child(2) {
	top: -150px;
	right: -300px;
}

.agma-glows--about > .agma-glow:nth-child(3) {
	top: 20%;
	left: -400px;
}

.agma-glows--about > .agma-glow:nth-child(4) {
	top: 30%;
	left: -200px;
}

.agma-glows--about > .agma-glow:nth-child(5) {
	top: 36%;
	right: -600px;
}

.agma-glows--about > .agma-glow:nth-child(6) {
	top: 20%;
	right: -300px;
}

@media (max-width: 1024px) {
	.agma-glows--about > .agma-glow:nth-child(3) {
		top: 18%;
	}

	.agma-glows--about > .agma-glow:nth-child(6) {
		top: 22%;
	}
}

@media (max-width: 768px) {
	.agma-glows--about > .agma-glow:nth-child(3) {
		top: 20%;
	}

	.agma-glows--about > .agma-glow:nth-child(5) {
		top: 40%;
	}

	.agma-glows--about > .agma-glow:nth-child(6) {
		top: 23%;
	}
}

@media (max-width: 620px) {
	.agma-glows--about > .agma-glow:nth-child(3) {
		top: 18%;
	}

	.agma-glows--about > .agma-glow:nth-child(6) {
		top: 21%;
	}
}

@media (max-width: 480px) {
	.agma-glows--about > .agma-glow:nth-child(1) {
		top: -100px;
	}

	.agma-glows--about > .agma-glow:nth-child(2) {
		top: 350px;
		right: -600px;
	}

	.agma-glows--about > .agma-glow:nth-child(3) {
		top: 17%;
	}

	.agma-glows--about > .agma-glow:nth-child(4) {
		top: 26%;
		left: -400px;
	}

	.agma-glows--about > .agma-glow:nth-child(5) {
		top: 38%;
	}

	.agma-glows--about > .agma-glow:nth-child(6) {
		top: 18%;
		right: -600px;
	}
}

/* Hero: full viewport height including the header, content centred. */
.wp-block-group.agma-about-hero {
	position: relative;
	box-sizing: border-box;
	min-height: 100vh;
	margin-top: calc(-1 * var(--agma-header-height)) !important;
	padding: var(--agma-header-height) 0 0;
}

.agma-about-hero__lead {
	max-width: 55%;
}

.agma-history-link.agma-action-button {
	gap: 15px;
	padding-top: 100px;
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--20);
	font-weight: 500;
	line-height: 22px;
}

.agma-history-link .agma-icon {
	width: 20px;
	height: 20px;
}

@media (prefers-reduced-motion: no-preference) {
	.agma-history-link .agma-icon {
		animation: agma-bounce 2.5s infinite;
	}
}

@keyframes agma-bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-10px);
	}

	60% {
		transform: translateY(-15px);
	}
}

@media (max-width: 1366px) {
	.agma-history-link.agma-action-button {
		padding-top: 50px;
	}
}

@media (max-width: 1024px) {
	.agma-about-hero__lead {
		max-width: 80%;
	}

	.agma-history-link.agma-action-button {
		position: absolute;
		bottom: 40px;
		left: 50%;
		padding-top: 0;
		transform: translateX(-50%);
	}
}

@media (max-width: 768px) {
	.agma-history-link.agma-action-button {
		bottom: 20px;
	}

	/* Faces above the stars and the label (as on the original). */
	.agma-about-hero > .wp-block-group:first-child {
		flex-direction: column;
		gap: 5px;
	}

	.agma-about-hero > .wp-block-group:first-child > .wp-block-group {
		align-items: center;
	}
}

@media (max-width: 620px) {
	.agma-about-hero__lead {
		max-width: 90%;
	}
}

@media (max-width: 480px) {
	.agma-history-link.agma-action-button {
		font-size: var(--wp--preset--font-size--small);
	}
}

/* Section spacing (top of each section, as the Elementor containers). */
.wp-block-group.agma-about-section {
	box-sizing: border-box;
}

.agma-about-section--numbers,
.agma-about-section--process,
.agma-about-section--cases {
	padding-top: 320px;
}

.agma-about-section--tech {
	padding-top: 380px;
}

.agma-about-section--blog {
	padding-top: 200px;
}

.agma-about-section--form {
	padding-block: 200px;
}

@media (max-width: 1024px) {
	.agma-about-section--numbers,
	.agma-about-section--process,
	.agma-about-section--cases,
	.agma-about-section--tech {
		padding-top: 180px;
	}

	.agma-about-section--blog {
		padding-top: 160px;
	}

	.agma-about-section--form {
		padding-block: 180px;
	}
}

/* Team: intro, then the advantages and the people (290px apart; 200 / 180 on smaller screens). */
.agma-team-wrap {
	display: flex;
	flex-direction: column;
	gap: 290px;
}

.wp-block-group.agma-team-intro {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 1024px;
	margin-inline: auto;
	padding: 120px 20px 0;
}

.agma-team-intro__badge {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0 !important;
}

.wp-block-group.agma-specialists {
	position: relative;
	box-sizing: border-box;
	margin-top: 90px;
	padding: 20px 30px;
	border-radius: 80px;
	background: color-mix(in srgb, var(--wp--preset--color--white) 4%, transparent);
	backdrop-filter: blur(6.2px);
}

.agma-specialists::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(
		156deg,
		color-mix(in srgb, var(--wp--preset--color--white) 58%, transparent) 1.22%,
		transparent 17.85%,
		transparent 80.23%,
		color-mix(in srgb, var(--wp--preset--color--white) 58%, transparent) 99.7%
	);
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
}

.agma-specialists > p {
	flex: none;
	margin: 0;
}

.agma-faces > .agma-face {
	position: relative;
	flex: none;
	box-sizing: border-box;
	width: 65px;
	height: 65px;
	margin: 0 -15px 0 0;
	border: 5px solid var(--wp--preset--color--gray-dark);
	border-radius: 50%;
	overflow: hidden;
}

.agma-faces > .agma-face:nth-child(1) {
	z-index: 4;
}

.agma-faces > .agma-face:nth-child(2) {
	z-index: 3;
}

.agma-faces > .agma-face:nth-child(3) {
	z-index: 2;
}

.agma-faces > .agma-face img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: top center;
}

.agma-faces > .agma-face--letter {
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 55px;
	height: 55px;
	margin: 0;
	border: 0;
	background-color: var(--wp--preset--color--blue);
	font-family: var(--wp--preset--font-family--rubik);
	font-size: var(--wp--preset--font-size--heading-xl);
	font-weight: 700;
	line-height: 50px;
}

@media (max-width: 1024px) {
	.agma-team-wrap {
		gap: 200px;
	}

	.agma-team-intro__badge {
		right: 5%;
	}
}

@media (max-width: 768px) {
	.wp-block-group.agma-specialists {
		flex-direction: column;
		gap: 20px;
		padding: 30px;
		border-radius: 40px;
	}

	.agma-specialists > p {
		flex: 0 1 auto;
		text-align: center !important;
	}
}

@media (max-width: 620px) {
	.agma-team-wrap {
		gap: 180px;
	}

	.wp-block-group.agma-specialists {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.wp-block-group.agma-specialists {
		gap: 0;
		padding: 32px;
	}

	.agma-team-intro__badge img {
		width: 90px !important;
	}
}

/* Team: advantage cards (3 → 2 → 1 columns), blue lines between them, blue on hover. */
.agma-team {
	display: flex;
	flex-direction: column;
	gap: 290px;
	box-sizing: border-box;
	width: 100%;
	max-width: 1640px;
	margin-inline: auto;
	padding-inline: 20px;
}

.agma-advantages-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wp-block-group.agma-advantage {
	box-sizing: border-box;
	margin: 0;
	padding: 80px;
	border: 0 solid var(--wp--preset--color--blue-50);
	transition: background-color 0.3s;
}

.agma-advantage:hover {
	background-color: var(--wp--preset--color--blue-50);
}

.agma-advantage > * {
	margin: 0;
}

.agma-advantage:nth-child(-n + 3) {
	border-bottom-width: 1px;
}

.agma-advantage:not(:nth-child(3n)) {
	border-right-width: 1px;
}

@media (max-width: 1366px) {
	.wp-block-group.agma-advantage {
		padding: 60px;
	}
}

@media (max-width: 1024px) {
	.agma-team {
		gap: 200px;
	}

	.agma-advantages-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp-block-group.agma-advantage {
		border-width: 0 0 1px;
	}

	.agma-advantage:nth-child(odd) {
		border-right-width: 1px;
	}

	.agma-advantage:nth-last-child(-n + 2) {
		border-bottom-width: 0;
	}
}

@media (max-width: 620px) {
	.agma-team {
		gap: 180px;
	}

	.agma-advantages-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.wp-block-group.agma-advantage {
		border-width: 0 0 1px !important;
	}

	.agma-advantage:last-child {
		border-bottom-width: 0 !important;
	}
}

@media (max-width: 480px) {
	.wp-block-group.agma-advantage {
		padding: 60px 20px;
	}
}

/* Team: "Meet the team" label above the CEO, the CEO, then two columns of members. */
.agma-team-members {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wp--style--global--content-size);
	margin: 0 auto;
}

.agma-team-members__label {
	position: absolute;
	top: -75px;
	left: 0;
	margin: 0;
}

.wp-block-group.agma-ceo {
	align-items: center;
}

/* Photo and text shrink together like the Elementor flex items (photo 385px, text 75%). */
.agma-ceo__photo {
	flex: 0 1 385px;
	min-width: 0;
	margin: 0;
}

.agma-ceo__photo img {
	display: block;
	width: 100%;
	height: 520px;
	border-radius: 40px;
	object-fit: cover;
}

.wp-block-group.agma-ceo__info {
	flex: 0 1 75%;
	gap: 60px;
}

.agma-ceo__info > *,
.agma-ceo__signature > * {
	margin: 0;
}

.agma-ceo__signature img {
	display: block;
}

/* Team cards come from Query Loops: the bio is post content, so its paragraphs carry no own spacing. */
.agma-team-lead,
.agma-team-grid {
	padding: 0;
	list-style: none;
}

.wp-block-post-template.agma-team-grid > li {
	min-width: 0;
	margin: 0;
}

/* Core resets the margin of the post template, so the grid needs the higher specificity. */
.wp-block-post-template.agma-team-grid {
	margin-top: 230px;
}

.agma-ceo__quote p,
.agma-member__bio p {
	margin: 0;
}

.agma-team-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 80px;
	margin-top: 230px;
}

.wp-block-group.agma-member {
	align-items: center;
	margin: 0;
}

.agma-member__photo {
	flex: 0 1 305px;
	min-width: 0;
	margin: 0;
}

.agma-member__photo img {
	display: block;
	width: 100%;
	height: 410px;
	border-radius: 25px;
	object-fit: cover;
	/* In colour on every screen (owner 28.11.2026; the original showed them in black and white). */
}

.wp-block-group.agma-member__info {
	flex: 0 1 50%;
	align-self: stretch;
	justify-content: center;
}

.agma-member__info > *,
.agma-member__info > .wp-block-group > * {
	margin: 0;
}

.wp-block-social-links.agma-member__social {
	gap: 0;
	margin: 0;
	padding: 0;
}

.agma-member__social .wp-social-link {
	padding: 0;
	font-size: 26px;
}

.agma-member__social .wp-social-link svg {
	width: 26px;
	height: 26px;
}

@media (max-width: 1024px) {
	.wp-block-group.agma-ceo {
		gap: 60px;
	}

	.wp-block-post-template.agma-team-grid {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 80px;
	}
}

@media (max-width: 768px) {
	.wp-block-group.agma-ceo {
		flex-direction: column;
		align-items: center;
	}

	.agma-ceo__photo {
		flex: none;
		width: 385px;
		max-width: 100%;
	}

	.wp-block-group.agma-ceo__info {
		flex: none;
		align-items: center;
		width: 75%;
	}

	.agma-ceo__info > p,
	.agma-ceo__info > .agma-ceo__quote {
		align-self: stretch;
	}

	.agma-ceo__signature {
		width: 385px;
		max-width: 100%;
	}

	/* As on the original: the text no longer fits next to the photo and moves below it. */
	.wp-block-group.agma-member {
		flex-wrap: wrap;
		align-items: flex-start;
		row-gap: 0;
	}

	.agma-member__photo {
		flex-basis: calc(50% - 30px);
	}

	.wp-block-group.agma-member__info {
		flex-basis: 50%;
	}
}

@media (max-width: 480px) {
	.agma-ceo__photo,
	.wp-block-group.agma-ceo__info {
		width: 100%;
	}

	.agma-member__name {
		font-size: var(--wp--preset--font-size--x-large) !important;
		line-height: 30px !important;
	}

	.agma-ceo__signature > p {
		font-size: var(--wp--preset--font-size--medium) !important;
	}

	.agma-member__photo,
	.wp-block-group.agma-member__info {
		flex-basis: 100%;
	}

	.agma-member__photo {
		margin-bottom: 15px;
	}
}

/* In numbers: 4 → 2 → 1 columns, a blue line on the left of each counter. */
.agma-about-numbers > .wp-block-heading {
	max-width: 70% !important;
	margin-bottom: 0;
}

.agma-numbers {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 125px 0;
	margin-top: 125px;
}

.wp-block-group.agma-number {
	box-sizing: border-box;
	margin: 0;
	padding: 15px 60px 15px 20px;
	border-left: 1px solid var(--wp--preset--color--blue);
}

.agma-number * {
	margin: 0;
}

@media (max-width: 1024px) {
	.agma-numbers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 80px 0;
		margin-top: 80px;
	}
}

@media (max-width: 620px) {
	.agma-numbers {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Work process: 5 → 3 → 2 steps; "+" opens the blue note under the step (one at a time). */
.agma-about-process__title {
	max-width: 70% !important;
	margin-bottom: 0;
	padding-bottom: 70px;
}

.agma-about-process > .is-style-agma-dot-label {
	margin: 0 auto !important;
}

.agma-process {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	padding-top: 150px;
}

.wp-block-group.agma-process__step {
	position: relative;
	box-sizing: border-box;
	margin: 0;
	padding: 60px 20px 35px;
	border: 0 solid var(--wp--preset--color--white-20);
	border-right-width: 1px;
}

.agma-process__step:has(details[open]) {
	z-index: 10;
}

/* An open note can reach past its section: keep it above the next one, so it stays clickable. */
.agma-about-section:has(.agma-process__details[open]) {
	z-index: 2;
}

.agma-process__step > * {
	margin: 0;
}

.wp-block-details.agma-process__details {
	position: static;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.agma-process__details > summary {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	margin-top: 10px;
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: var(--wp--preset--font-size--20);
	font-weight: 500;
	line-height: 24px;
	text-align: center;
	list-style: none;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.agma-process__details > summary::-webkit-details-marker {
	display: none;
}

/* The round "+" button (turns into "×" when open). */
.agma-process__details > summary::after {
	content: "";
	flex: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background:
		linear-gradient(var(--wp--preset--color--white) 0 0) center / 16px 2px no-repeat,
		linear-gradient(var(--wp--preset--color--white) 0 0) center / 2px 16px no-repeat,
		var(--wp--preset--color--blue-70);
	transition: transform 0.6s ease;
}

.agma-process__details[open] > summary::after {
	transform: rotate(135deg);
}

.agma-process__details > summary:focus-visible {
	outline: none;
}

.agma-process__details > summary:focus-visible::after {
	outline: 2px solid var(--wp--preset--color--blue-light);
	outline-offset: 4px;
}

.agma-process__details > :not(summary) {
	position: absolute;
	z-index: 10;
	top: 260px;
	left: -10px;
	box-sizing: border-box;
	width: calc(100% + 20px);
	margin: 0;
	padding: 25px 40px;
	border-radius: 20px;
	background-color: var(--wp--preset--color--blue);
}

@media (prefers-reduced-motion: no-preference) {
	.agma-process__details[open] > :not(summary) {
		animation: agma-note-in 0.25s ease;
	}
}

@keyframes agma-note-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

@media (max-width: 1024px) {
	.agma-about-process__title {
		max-width: none !important;
	}

	.agma-process {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wp-block-group.agma-process__step {
		border-bottom-width: 1px;
	}

	.agma-process__step:nth-child(3) {
		border-right-width: 0;
	}

	.agma-process__step:nth-child(n + 4) {
		border-bottom-width: 0;
	}
}

@media (max-width: 768px) {
	.agma-process {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp-block-group.agma-process__step {
		border-width: 0 1px 1px 0;
	}

	.agma-process__step:nth-child(even) {
		border-right-width: 0;
	}

	.agma-process__step:nth-child(5) {
		border-bottom-width: 0;
	}
}

@media (max-width: 620px) {
	.agma-process__details > :not(summary) {
		top: 290px;
	}
}

@media (max-width: 480px) {
	.agma-process {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 50px;
	}

	.wp-block-group.agma-process__step {
		border-width: 0 0 1px;
	}

	.agma-process__step:last-child {
		border-bottom-width: 0;
	}

	.agma-process__details > summary {
		font-size: var(--wp--preset--font-size--x-large);
		line-height: 30px;
	}
}

/* Case studies: the card keeps the page inset on phones (the homepage projects slider goes edge to edge). */
@media (max-width: 768px) {
	.agma-about-cases .wp-block-group.is-style-agma-section-card:has(> .agma-carousel) {
		max-width: none !important;
		margin-inline: 0 !important;
	}
}

/* Post content paragraphs keep the 0.9rem gap below them (as the Elementor post content widget). */
.wp-block-post-content.agma-case-text > * {
	margin: 0 0 0.9rem;
}

.agma-case-logo {
	margin: auto 0 0;
}

.agma-about-cases .is-style-agma-case-card .wp-block-video {
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Contact page: section under the header, text + white form card.     */
/* ------------------------------------------------------------------ */

.wp-block-group.is-style-agma-contact-hero {
	position: relative;
	box-sizing: border-box;
	margin-top: calc(-1 * var(--agma-header-height)) !important;
	/* 90px to the footer, minus the root block gap that already separates main and footer. */
	margin-bottom: calc(90px - var(--wp--style--block-gap, 0px));
	padding: 247px 20px 150px;
	border-radius: 0 0 80px 80px;
	background-image: radial-gradient(at bottom left, var(--wp--preset--color--blue) 0%, transparent 100%);
}

/* Purple fade from the top (Elementor overlay, 80%). */
.is-style-agma-contact-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-image: linear-gradient(180deg, var(--wp--preset--color--purple-70) 0%, transparent 100%);
	opacity: 0.8;
	pointer-events: none;
}

.is-style-agma-contact-hero > .wp-block-columns {
	position: relative;
	justify-content: space-between;
	gap: 60px;
	margin: 0;
}

.is-style-agma-contact-hero .agma-contact-hero__text {
	flex-shrink: 0;
}

.is-style-agma-contact-hero .agma-contact-hero__card {
	flex-shrink: 1;
	min-width: 0;
	padding: 60px;
	border-radius: 40px;
}

.is-style-agma-contact-hero .wp-block-agma-form {
	--agma-form-gap: 30px;
	--agma-form-row-gap: 30px;
}

/* Production breakpoints instead of the form's container query: two fields per row above
   768px, privacy text beside the button above 480px. */
@media (min-width: 769px) {
	.is-style-agma-contact-hero .agma-form__fields > .is-width-50 {
		flex-basis: calc(50% - var(--agma-form-gap) / 2);
	}
}

@media (min-width: 481px) {
	.is-style-agma-contact-hero .agma-form__fields > .wp-block-columns {
		flex-wrap: nowrap !important;
	}

	.is-style-agma-contact-hero .agma-form__fields > .wp-block-columns > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1;
	}
}

.agma-contact-person > .agma-contact-person__photo {
	flex-shrink: 0;
	margin: 0;
}

.agma-contact-person__photo img {
	border-radius: 50%;
	object-position: top center;
}

.agma-contact-person > :last-child {
	min-width: 0;
}

@media (max-width: 1366px) {
	.is-style-agma-contact-hero .agma-contact-hero__text {
		flex-basis: 40% !important;
	}

	.is-style-agma-contact-hero .agma-contact-hero__card {
		flex-basis: 60% !important;
	}
}

@media (max-width: 1024px) {
	.wp-block-group.is-style-agma-contact-hero {
		padding: 197px 20px 20px;
		border-radius: 0 0 50px 50px;
	}

	/* Stacked, the text column stays centred (80% wide). */
	.is-style-agma-contact-hero > .wp-block-columns {
		flex-direction: column;
		flex-wrap: nowrap !important;
		align-items: center !important;
	}

	.is-style-agma-contact-hero > .wp-block-columns > .agma-contact-hero__text {
		flex-basis: auto !important;
		width: 80%;
	}

	.is-style-agma-contact-hero > .wp-block-columns > .agma-contact-hero__card {
		flex-basis: auto !important;
		width: 100%;
		box-sizing: border-box;
	}
}

@media (max-width: 768px) {
	.agma-contact-person__photo img {
		width: 100px !important;
	}
}

@media (max-width: 620px) {
	.is-style-agma-contact-hero > .wp-block-columns > .agma-contact-hero__text {
		width: 100%;
	}

	.is-style-agma-contact-hero .agma-contact-hero__card {
		padding: 40px 20px;
	}
}

@media (max-width: 480px) {
	/* Photo centred above the e-mail. */
	.agma-contact-person {
		flex-direction: column;
	}

	.agma-contact-person > :last-child {
		width: 100%;
	}

	.agma-contact-person__photo img {
		width: 150px !important;
	}

	.is-style-agma-contact-hero .is-style-agma-hover-line {
		font-size: var(--wp--preset--font-size--x-large) !important;
		line-height: 30px !important;
	}

	.agma-contact-person > :last-child > p:not(.is-style-agma-hover-line) {
		font-size: var(--wp--preset--font-size--medium) !important;
		line-height: 1.4 !important;
	}
}

/* Link with a 1px line that grows from the left on hover ("styled-link" on production). */
.is-style-agma-hover-line a {
	position: relative;
	color: inherit;
	text-decoration: none;
}

.is-style-agma-hover-line a::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: bottom right;
	transition: transform 0.5s cubic-bezier(0.14, 0, 0, 1.01);
}

.is-style-agma-hover-line a:hover::before,
.is-style-agma-hover-line a:focus-visible::before {
	transform: scaleX(1);
	transform-origin: bottom left;
}

/* ------------------------------------------------------------------ */
/* Pillar pages (/content/…): hero of template part "pillar-article". */
/* ------------------------------------------------------------------ */

.wp-block-group.agma-pillar-hero {
	padding: 85px 0 0;
}

.agma-pillar-hero__inner {
	max-width: var(--wp--style--global--content-size);
	margin: 0 auto !important;
}

.agma-pillar-hero__inner > * {
	margin-block: 0;
}

.agma-pillar-hero .agma-pillar-hero__meta {
	row-gap: 10px;
}

.agma-pillar-hero__meta {
	padding-inline: 50px 60px;
	color: var(--wp--preset--color--white-50);
	font-family: var(--wp--preset--font-family--rubik);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 24px;
}

.agma-pillar-hero__meta > *,
.agma-pillar-hero__time > * {
	margin: 0;
}

.agma-pillar-hero__icon img {
	display: block;
	width: 14px;
	height: 14px;
}

.agma-pillar-hero__title {
	padding: 35px 60px 0;
	font-weight: 500;
	line-height: 1.2;
}

.agma-pillar-hero__excerpt {
	box-sizing: border-box;
	width: 70%;
	padding: 55px 60px 0;
	font-weight: 300;
	line-height: 1.4;
}

.agma-pillar-hero__excerpt p {
	margin: 0;
}

.agma-pillar-hero__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

.wp-block-post-featured-image.agma-pillar-hero__image {
	height: 600px;
	margin-top: 100px !important;
	overflow: hidden;
	border-radius: 50px 50px 0 0;
}

/* Core styles the overlay only in steps of 10; production darkens the image by 15%. */
.wp-block-post-featured-image__overlay.has-background-dim-15 {
	opacity: 0.15;
}

.agma-pillar-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 1024px) {
	.agma-pillar-hero__excerpt {
		width: 100%;
	}

	.wp-block-post-featured-image.agma-pillar-hero__image {
		height: 500px;
	}
}

@media (max-width: 620px) {
	.wp-block-post-featured-image.agma-pillar-hero__image {
		height: 350px;
		margin-top: 80px !important;
	}
}

@media (max-width: 480px) {
	.agma-pillar-hero__meta {
		padding-inline: 10px 20px;
	}

	.agma-pillar-hero__title {
		padding-inline: 20px;
	}

	.agma-pillar-hero__excerpt {
		padding-inline: 20px;
	}
}

/* The post content is the article body (prose typography on the post-content block). */
.agma-article__main > .wp-block-post-content {
	margin: 0;
}

/* Blue promo card of the article (curved-text badge as background image, editable on the group). */
.wp-block-group.agma-article-card--promo {
	padding: 8rem 5rem;
	background-position: 48rem 2.5rem;
	text-align: center;
}

.is-style-agma-prose .agma-article-card--promo > * {
	max-width: 80%;
	margin-inline: auto;
}

.is-style-agma-prose .agma-article-card--promo h3.wp-block-heading {
	margin: 0 auto;
	color: inherit;
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 500;
	line-height: 1;
}

/* Promo title that is an h3 only for the outline: keeps the spacing of the article's h4. */
.is-style-agma-prose .agma-article-card--promo h3.agma-promo-title {
	margin: 8px auto 16px;
	line-height: 1.2;
}

/* Elementor text widget of the card: 2rem above (also without a heading). */
.is-style-agma-prose .agma-article-card--promo p {
	padding-top: 2rem;
}

.agma-action-button.agma-button-wide {
	display: flex;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	padding-inline: 30px;
}

@media (max-width: 768px) {
	.wp-block-group.agma-article-card--promo {
		background-position: 0 0;
	}
}

@media (max-width: 480px) {
	/* Card 1rem + the inner column's 120px (badge above the text) / 20px of production. */
	.wp-block-group.agma-article-card--promo {
		padding: calc(1rem + 120px) 1rem calc(1rem + 20px);
		background-position: top center;
	}

	.is-style-agma-prose .agma-article-card--promo > * {
		max-width: 100%;
	}

	.is-style-agma-prose .agma-article-card--promo h3.wp-block-heading {
		font-size: var(--wp--preset--font-size--24);
	}
}

/* Article text without the paragraph gap (Elementor "paragraph spacing: 0"; lists keep theirs). */
.is-style-agma-prose .agma-prose-tight > p {
	margin-bottom: 0;
}

.is-style-agma-article-card > .agma-step + .agma-flush-top {
	padding-top: 0;
}

/* Text wrappers keep the gap under their last paragraph / list (separate widgets on production)… */
.is-style-agma-prose .agma-flush-top > :is(p, ul, ol):last-child {
	margin-bottom: var(--agma-prose-gap, 70px);
}

/* …except at the end of a card, where production drops it under paragraphs. */
.is-style-agma-prose .is-style-agma-article-card > .agma-flush-top:last-child > p:last-child {
	margin-bottom: 0;
}

/* CTA / FAQ cards placed without the -20px widening of the article column. */
.wp-block-group.is-style-agma-cta-card.agma-no-bleed,
.agma-article-faq.agma-no-bleed {
	margin-inline: 0 !important;
}

/* Pillar pages and posts: responsive settings of templates 5069 and 3501 (identical layout; they differ
   from the website page). */
@media (max-width: 1366px) {
	:is(.agma-pillar, .agma-post) .agma-article__share-side {
		flex-direction: column;
		align-items: flex-start !important;
	}

	:is(.agma-pillar, .agma-post) .agma-article__share-side .agma-share {
		margin-left: -15px;
	}
}

@media (max-width: 1024px) {
	:is(.agma-pillar, .agma-post) .agma-article__sidebar {
		margin-top: 120px !important;
	}

	:is(.agma-pillar, .agma-post) .agma-article__main {
		margin-block: 120px 200px !important;
	}

	:is(.agma-pillar, .agma-post) .agma-article__share-bottom,
	:is(.agma-pillar, .agma-post) .agma-article__rating,
	:is(.agma-pillar, .agma-post) .agma-article__related-bottom {
		box-sizing: border-box;
		width: 480px;
		max-width: 100%;
		margin-inline: auto !important;
	}
}

@media (max-width: 768px) {
	:is(.agma-pillar, .agma-post) .agma-article__sidebar {
		margin-top: 80px !important;
	}

	:is(.agma-pillar, .agma-post) .agma-article__main {
		margin-block: 80px 100px !important;
	}
}

@media (max-width: 620px) {
	/* The contents column keeps its 400px (centred) until the screen is narrower. */
	:is(.agma-pillar, .agma-post) .agma-article__sidebar {
		align-self: center;
		width: 400px;
		max-width: 100%;
	}

	:is(.agma-pillar, .agma-post) .agma-article__share-bottom,
	:is(.agma-pillar, .agma-post) .agma-article__rating,
	:is(.agma-pillar, .agma-post) .agma-article__related-bottom {
		margin-inline: 0 !important;
	}

	:is(.agma-pillar, .agma-post) .agma-article__related-bottom {
		width: 100%;
	}
}

@media (max-width: 480px) {
	:is(.agma-pillar, .agma-post) .agma-article__share-bottom,
	:is(.agma-pillar, .agma-post) .agma-article__rating {
		width: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Message hero (thank-you page, 404): centred message under the header, blue glow top left,
   purple glow right, fading to black at the bottom; the footer follows directly. */
/* ------------------------------------------------------------------ */

.wp-block-group.is-style-agma-message-hero {
	position: relative;
	box-sizing: border-box;
	margin-top: calc(-1 * var(--agma-header-height)) !important;
	margin-bottom: calc(-1 * var(--wp--style--block-gap, 0px));
	padding: 307px 20px 150px;
	overflow: hidden;
}

/* Fade to black over the glows. */
.is-style-agma-message-hero::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: auto 0 0;
	height: 200px;
	background-image: linear-gradient(180deg, transparent 0%, var(--wp--preset--color--black) 100%);
	pointer-events: none;
}

.is-style-agma-message-hero > .agma-message-hero__content {
	z-index: 2;
	width: min(60%, 864px);
}

.agma-message-hero__content > .agma-message-hero__button {
	margin-top: 30px;
}

.agma-glows--message {
	overflow: visible;
}

@media (min-width: 1921px) {
	.agma-glows--message {
		max-width: none;
	}
}

.agma-glows--message > .agma-glow {
	width: 1200px;
}

.agma-glows--message > .agma-glow--blue {
	top: -350px;
	left: -400px;
	background-image: radial-gradient(circle at center, var(--wp--preset--color--blue-70) 0%, transparent 70%);
}

.agma-glows--message > .agma-glow--purple {
	top: -150px;
	right: -300px;
	background-image: radial-gradient(circle at center, var(--wp--preset--color--purple-70) 0%, transparent 70%);
}

@media (max-width: 1366px) {
	.is-style-agma-message-hero > .agma-message-hero__content {
		width: min(60%, 768px);
	}
}

@media (max-width: 1024px) {
	.wp-block-group.is-style-agma-message-hero {
		padding-top: 257px;
	}

	.is-style-agma-message-hero > .agma-message-hero__content {
		width: 80%;
	}
}

@media (max-width: 620px) {
	.wp-block-group.is-style-agma-message-hero {
		padding-bottom: 250px;
	}

	.is-style-agma-message-hero > .agma-message-hero__content {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.wp-block-group.is-style-agma-message-hero {
		padding-top: 207px;
	}

	.agma-message-hero__kicker {
		font-size: var(--wp--preset--font-size--large) !important;
	}

	.agma-glows--message > .agma-glow--blue {
		top: -100px;
	}

	.agma-glows--message > .agma-glow--purple {
		top: 350px;
		right: -600px;
	}
}

/* ------------------------------------------------------------------ */
/* Legal text card (privacy, terms, cookies): white card under the header, 1440/1280px wide
   with 10px side gaps, H3 headings and primary-text paragraphs. */
/* ------------------------------------------------------------------ */

.wp-block-group.is-style-agma-legal {
	/* Heading size stays 28px on phones (as production). */
	--wp--preset--font-size--xx-large: 28px;
	--agma-legal-width: min(1440px, calc(100% + 20px));
	display: flow-root;
	box-sizing: border-box;
	width: var(--agma-legal-width);
	max-width: none;
	margin-top: 0;
	margin-right: calc((100% - var(--agma-legal-width)) / 2) !important;
	margin-bottom: calc(40px - var(--wp--style--block-gap, 0px));
	margin-left: calc((100% - var(--agma-legal-width)) / 2) !important;
	padding: 0 40px 60px;
	border-radius: 40px;
}

:is(.is-style-agma-legal, .agma-legal__section) > * {
	margin-block: 0;
}

:is(.is-style-agma-legal, .agma-legal__section) > * + p {
	margin-block-start: 0.9rem;
}

/* A hidden page title takes no space, so the first paragraph stays at the top. */
.agma-legal__section > .screen-reader-text + p {
	margin-block-start: 0;
}

.wp-block-group:is(.is-style-agma-legal, .agma-legal__section) > :is(h1, h2, h3):not(.agma-legal__subhead, .screen-reader-text) {
	margin-block: 80px 35px;
}

/* Text labels that are headings for AI and screen readers but look like the paragraphs around them. */
.agma-legal__section > .agma-legal__subhead {
	margin-block-start: 0.9rem;
}

.is-style-agma-legal strong {
	font-weight: 400;
}

/* Links: text colour with a blue underline (production shows the Hello Elementor default pink). */
.is-style-agma-legal a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.is-style-agma-legal a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--blue);
}

@media (max-width: 1366px) {
	.wp-block-group.is-style-agma-legal {
		--agma-legal-width: min(1280px, calc(100% + 20px));
	}
}

/* Production reserves 107px for the header on tablets and phones (our header is 96px). */
@media (max-width: 1024px) {
	.wp-block-group.is-style-agma-legal {
		margin-top: calc(107px - var(--agma-header-height));
	}
}

@media (max-width: 620px) {
	.wp-block-group.is-style-agma-legal {
		padding-right: 20px;
		padding-left: 20px;
		border-radius: 20px;
	}
}

/* ------------------------------------------------------------------ */
/* Blog archives (template "category"): hero from the category fields, */
/* term filter pills, 3 / 2 / 1 columns of vertical post cards.        */
/* ------------------------------------------------------------------ */

/* Starts at the top of the page, under the fixed header (glows are measured from there). */
.wp-site-blocks > header.wp-block-template-part + .wp-block-group.is-style-agma-archive {
	margin-block-start: 0 !important;
}

/* Text box 1440px (1280px on laptops) as the Elementor container. */
.agma-archive__section > .agma-archive__hero {
	--agma-archive-box: 1440px;
	box-sizing: border-box;
	padding: 303px max(20px, (100% - var(--agma-archive-box)) / 2) 200px;
}

.agma-archive__hero > .agma-archive__description {
	width: 57%;
	margin: 0;
}

.agma-archive__section > .agma-archive__filter {
	margin-bottom: 90px;
}

.agma-archive__section > .agma-archive__posts {
	box-sizing: content-box;
	max-width: 1440px;
	margin: 0 auto 120px;
	padding-inline: 20px;
}

/* Pages (only when a category has more posts than one page holds): pills as the term filter. */
.agma-archive__posts .wp-block-query-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	margin-top: 50px;
}

.agma-archive__posts .wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.agma-archive__posts .wp-block-query-pagination :is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	margin: 0;
	padding: 10px 20px;
	border-radius: 15px;
	background-color: var(--wp--preset--color--white-20);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--rubik);
	font-size: var(--wp--preset--font-size--medium);
	line-height: normal;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.agma-archive__posts .wp-block-query-pagination :is(a:hover, a:focus-visible, .current) {
	background-color: var(--wp--preset--color--blue);
}

.agma-archive__posts .wp-block-query-pagination .dots {
	background-color: transparent;
}

.agma-glows--archive {
	overflow: hidden;
}

.agma-glows--archive > .agma-glow {
	width: 1200px;
}

.agma-glows--archive > .agma-glow--blue {
	top: -350px;
	left: -400px;
	background-image: radial-gradient(circle at center, var(--wp--preset--color--blue-70) 0%, transparent 70%);
}

.agma-glows--archive > .agma-glow--purple {
	top: -150px;
	right: -300px;
	background-image: radial-gradient(circle at center, var(--wp--preset--color--purple-70) 0%, transparent 70%);
}

/* Three columns; each row as tall as its tallest card. */
.wp-block-post-template.is-style-agma-post-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.is-style-agma-post-grid-3 > li {
	display: flex;
}

.is-style-agma-post-grid-3 > li[hidden] {
	display: none;
}

/* Vertical post card: image (290px, category pill bottom right) above title and excerpt. */
.wp-block-group.is-style-agma-post-card-vertical {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	overflow: hidden;
	border-radius: 40px;
}

.is-style-agma-post-card-vertical > .agma-post-card__media {
	position: relative;
}

.agma-post-card__media > .wp-block-post-featured-image {
	margin: 0;
}

.agma-post-card__media > .wp-block-post-featured-image img {
	width: 100%;
	object-fit: cover;
}

/* 15% black over the image (Elementor background overlay). */
.agma-post-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--wp--preset--color--black);
	opacity: 0.15;
	pointer-events: none;
}

.agma-post-card__media > .agma-post-card__terms {
	position: absolute;
	z-index: 1;
	right: 30px;
	bottom: 20px;
	max-width: calc(100% - 60px);
	margin: 0;
	padding: 10px 20px;
	border-radius: 1.5rem;
	background-color: color-mix(in srgb, var(--wp--preset--color--black) 40%, transparent);
	color: var(--wp--preset--color--white);
	font-weight: 400;
	line-height: 24px;
}

.agma-post-card__terms a {
	color: inherit;
	text-decoration: none;
}

.is-style-agma-post-card-vertical .wp-block-post-title a {
	text-decoration: none;
	transition: color 0.5s ease;
}

.is-style-agma-post-card-vertical .wp-block-post-title a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--blue-light);
}

.is-style-agma-post-card-vertical .wp-block-post-excerpt__excerpt {
	margin: 0;
}

@media (max-width: 1366px) {
	.agma-archive__section > .agma-archive__hero {
		--agma-archive-box: 1280px;
	}

	.agma-archive__section > .agma-archive__posts {
		max-width: 1280px;
	}
}

@media (max-width: 1024px) {
	.agma-archive__section > .agma-archive__hero {
		padding-top: 250px;
	}

	.wp-block-post-template.is-style-agma-post-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.agma-archive__hero > .agma-archive__description {
		width: 100%;
	}

	.wp-block-post-template.is-style-agma-post-grid-3 {
		gap: 20px;
	}

	.wp-block-group.is-style-agma-post-card-vertical {
		border-radius: 20px;
	}
}

@media (max-width: 620px) {
	.agma-archive__section > .agma-archive__filter {
		margin-bottom: 50px;
	}

	.agma-archive__section > .agma-archive__posts {
		margin-bottom: 90px;
	}

	.wp-block-post-template.is-style-agma-post-grid-3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 480px) {
	.agma-post-card__body {
		padding-right: 30px !important;
		padding-left: 30px !important;
	}

	.is-style-agma-post-card-vertical .wp-block-post-title {
		font-size: var(--wp--preset--font-size--x-large) !important;
		line-height: 30px !important;
	}

	.agma-glows--archive > .agma-glow--blue {
		top: -100px;
	}

	.agma-glows--archive > .agma-glow--purple {
		top: 350px;
		right: -600px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-post-card-vertical .wp-block-post-title a {
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* Project archive /projects/ (template part "projects-archive"):      */
/* hero and three hand-arranged packs of project cards ("bento").      */
/* Each card links through its arrow image; the link covers the card.  */
/* ------------------------------------------------------------------ */

/* Starts at the top of the page, under the fixed header. */
.wp-site-blocks > header.wp-block-template-part + .agma-projects-main {
	margin-block-start: 0 !important;
}

.agma-projects > * {
	margin-block: 0;
}

.agma-projects__hero {
	box-sizing: border-box;
	padding: 307px 20px 200px;
}

.agma-projects__hero > * {
	margin: 0;
}

.agma-projects__intro {
	max-width: 800px;
}

.agma-projects__packs {
	box-sizing: content-box;
	display: flex;
	flex-direction: column;
	gap: 30px;
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto !important;
	padding: 0 20px 200px;
}

.agma-projects__packs > *,
.agma-projects__pack > *,
.agma-projects__row > *,
.agma-projects__column > * {
	margin: 0 !important;
}

.agma-projects__pack {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.agma-projects__row {
	display: flex;
	gap: 30px;
	width: 100%;
}

.agma-projects__row--featured {
	justify-content: space-between;
}

.agma-projects__row > .agma-project-tile,
.agma-projects__column {
	width: calc(33.333333% - 20px);
}

.agma-projects__row > .agma-project-tile--featured {
	width: calc(66.666667% - 10px);
}

.agma-projects__pack--reverse .agma-project-tile--featured {
	order: 2;
}

.agma-projects__column {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	gap: 30px;
}

.agma-projects__column > .agma-project-tile {
	width: 100%;
}

/* Card: translucent box with name, category line and a screenshot mockup at the bottom. */
.agma-project-tile {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 400px;
	padding: 30px 30px 0;
	border: 1px solid var(--wp--preset--color--white-10);
	border-radius: 30px;
	background-color: color-mix(in srgb, var(--wp--preset--color--white) 4%, transparent);
	backdrop-filter: blur(6.2px);
	transition: background-color 0.6s ease;
}

.agma-project-tile > *,
.agma-project-tile__panel > *,
.agma-project-tile__titles > * {
	margin: 0 !important;
}

.agma-project-tile:not(.agma-project-tile--featured):hover {
	background-color: var(--wp--preset--color--white-10);
}

.agma-project-tile > .agma-project-tile__name {
	padding-right: 40px;
}

.agma-project-tile__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}

.agma-project-tile__meta > * {
	margin: 0 !important;
}

/* Thin divider between the category and the flag. */
.agma-project-tile__category::after {
	content: "";
	display: inline-block;
	width: 1px;
	height: 20px;
	margin-left: 20px;
	vertical-align: middle;
	background-color: var(--wp--preset--color--white-50);
}

.agma-project-tile__flag img {
	display: block;
	width: 25px;
	height: 25px;
}

.agma-project-tile__mockup {
	position: absolute;
	right: 35px;
	bottom: -1px;
	left: 35px;
}

.agma-project-tile__mockup img {
	display: block;
	width: 100%;
	height: auto;
}

/* Arrow: the link stretches over the card; the icon sits in a circle in the top corner. */
.agma-project-tile__arrow {
	position: static;
	margin: 0;
}

.agma-project-tile__arrow a::after {
	content: "";
	position: absolute;
	z-index: 3;
	inset: 0;
	border-radius: inherit;
}

.agma-project-tile__arrow img {
	position: absolute;
	z-index: 2;
	top: 30px;
	right: 30px;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	padding: 14px;
	border-radius: 50%;
	object-fit: contain;
	transition: background-color 0.6s ease;
}

.agma-project-tile--featured .agma-project-tile__arrow img {
	top: 20px;
	right: 20px;
	width: 60px;
	height: 60px;
	padding: 18px;
}

.agma-project-tile:hover .agma-project-tile__arrow img {
	background-color: var(--wp--preset--color--blue);
}

.agma-project-tile:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--blue-light);
	outline-offset: 4px;
}

/* Large card: background video; the title panel slides up on hover (always shown ≤1024px). */
.agma-project-tile--featured {
	justify-content: flex-end;
	min-height: 800px;
	padding: 0;
	overflow: hidden;
	border-radius: 40px;
	background-color: transparent;
	backdrop-filter: none;
}

.agma-project-tile--featured > .agma-project-tile__video {
	position: absolute;
	inset: 0;
	height: auto;
	border-radius: 0;
}

.agma-project-tile__panel {
	position: absolute;
	z-index: 1;
	right: 0;
	bottom: -100%;
	left: 0;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	padding: 60px 60px 40px 40px;
	opacity: 0;
	background-color: color-mix(in srgb, var(--wp--preset--color--black) 50%, transparent);
	backdrop-filter: blur(6.2px);
	transition: bottom 0.6s ease, opacity 0.6s ease;
}

.agma-project-tile--featured:is(:hover, :focus-within) .agma-project-tile__panel {
	bottom: 0;
	opacity: 1;
}

/* Editor: the title panel is always shown and the stretched link does not block selecting blocks. */
.agma-project-tile--featured.block-editor-block-list__block .agma-project-tile__panel {
	bottom: 0;
	opacity: 1;
}

.agma-project-tile.block-editor-block-list__block .agma-project-tile__arrow a::after {
	content: none;
}

/* Editor blocks are position: relative; keep the card layers where they are on the front end. */
.agma-project-tile > .block-editor-block-list__block:is(.agma-project-tile__mockup, .agma-project-tile__video),
.agma-project-tile > .block-editor-block-list__block.agma-project-tile__panel {
	position: absolute;
}

.agma-project-tile > .block-editor-block-list__block.agma-project-tile__arrow {
	position: absolute;
	z-index: 2;
	top: 30px;
	right: 30px;
	width: 40px;
}

.agma-project-tile--featured > .block-editor-block-list__block.agma-project-tile__arrow {
	top: 20px;
	right: 20px;
	width: 60px;
}

.agma-project-tile > .block-editor-block-list__block.agma-project-tile__arrow img {
	position: static;
}

.agma-project-tile__logo {
	flex: 0 1 auto;
	width: 160px;
	height: 100px;
}

.agma-project-tile__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.agma-project-tile__titles {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: calc(100% - 180px);
}

/* Glows: two behind the hero, one behind each pack (Elementor "Glow elements"). */
.agma-glows--projects {
	overflow: hidden;
}

.agma-glows--projects > .agma-glow:nth-child(1) {
	top: -100px;
	left: -10%;
	width: 70%;
}

.agma-glows--projects > .agma-glow:nth-child(2) {
	top: -150px;
	right: -15%;
	width: 70%;
}

.agma-glows--projects > .agma-glow:nth-child(n + 3) {
	left: 50%;
	width: 1440px;
	transform: translateX(-50%);
}

.agma-glows--projects > .agma-glow:nth-child(3) {
	top: 700px;
}

.agma-glows--projects > .agma-glow:nth-child(4) {
	top: 1800px;
}

.agma-glows--projects > .agma-glow:nth-child(5) {
	top: 3300px;
}

@media (max-width: 1366px) {
	.agma-project-tile__arrow img,
	.agma-project-tile--featured .agma-project-tile__arrow img {
		top: 16px;
		right: 15px;
	}

	.agma-glows--projects > .agma-glow:nth-child(1),
	.agma-glows--projects > .agma-glow:nth-child(2) {
		top: 0;
	}

	.agma-glows--projects > .agma-glow:nth-child(3) {
		top: 1000px;
	}
}

/* Tablets: one centred column of 600px cards. */
@media (max-width: 1024px) {
	.agma-projects__packs {
		padding-bottom: 100px;
	}

	.agma-projects__pack {
		align-items: center;
		gap: 20px;
	}

	.agma-projects__row {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.agma-projects__row > .agma-project-tile,
	.agma-projects__row > .agma-project-tile--featured,
	.agma-projects__column {
		width: 600px;
		max-width: 100%;
	}

	.agma-projects__pack--reverse .agma-project-tile--featured {
		order: 0;
	}

	.agma-project-tile {
		min-height: 500px;
	}

	.agma-project-tile--featured {
		min-height: 600px;
		border-radius: 30px;
	}

	.agma-project-tile__panel {
		bottom: 0;
		padding: 20px 40px;
		opacity: 1;
	}

	.agma-glows--projects > .agma-glow:nth-child(1) {
		left: 20%;
		width: 100%;
	}

	.agma-glows--projects > .agma-glow:nth-child(2) {
		top: 400px;
		right: 25%;
		width: 100%;
	}

	.agma-glows--projects > .agma-glow:nth-child(n + 3) {
		width: 2000px;
	}

	.agma-glows--projects > .agma-glow:nth-child(3) {
		top: 1500px;
	}

	.agma-glows--projects > .agma-glow:nth-child(4) {
		top: 5000px;
	}

	.agma-glows--projects > .agma-glow:nth-child(5) {
		top: 8000px;
	}
}

@media (max-width: 768px) {
	.agma-projects__row > .agma-project-tile,
	.agma-projects__row > .agma-project-tile--featured,
	.agma-projects__column {
		width: 580px;
	}

	.agma-project-tile--featured {
		min-height: 580px;
	}

	.agma-project-tile__panel {
		gap: 30px;
		padding: 30px;
	}

	.agma-project-tile__logo {
		width: 120px;
	}

	.agma-project-tile__titles {
		width: calc(100% - 150px);
	}
}

@media (max-width: 620px) {
	.agma-projects__hero {
		padding-top: 207px;
		padding-bottom: 100px;
	}

	.agma-projects__row > .agma-project-tile,
	.agma-projects__row > .agma-project-tile--featured,
	.agma-projects__column {
		width: 440px;
	}

	.agma-project-tile {
		min-height: 400px;
	}

	.agma-project-tile--featured {
		min-height: 440px;
	}

	.agma-project-tile--featured .agma-project-tile__name {
		font-size: var(--wp--preset--font-size--20) !important;
	}

	.agma-glows--projects > .agma-glow:nth-child(1) {
		top: 100px;
		left: 0;
		width: 150%;
	}

	.agma-glows--projects > .agma-glow:nth-child(2) {
		right: 0;
		width: 200%;
	}

	.agma-glows--projects > .agma-glow:nth-child(3) {
		top: 1000px;
	}

	.agma-glows--projects > .agma-glow:nth-child(4) {
		top: 3500px;
	}

	.agma-glows--projects > .agma-glow:nth-child(5) {
		top: 6200px;
	}
}

/* Phones: the hero starts below the header (107px), cards take the full width. */
@media (max-width: 480px) {
	.agma-projects__hero {
		padding-top: 257px;
		padding-bottom: 150px;
	}

	.agma-projects__row > .agma-project-tile,
	.agma-projects__row > .agma-project-tile--featured,
	.agma-projects__column {
		width: 100%;
	}

	.agma-project-tile--featured {
		min-height: 400px;
	}

	.agma-project-tile__panel {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding: 20px;
	}

	.agma-project-tile__logo {
		width: 80px;
		height: 60px;
	}

	.agma-project-tile__titles {
		gap: 10px;
		width: 100%;
	}

	.agma-project-tile--featured .agma-project-tile__name {
		line-height: 32px !important;
	}

	.agma-project-tile > .agma-project-tile__name {
		font-size: var(--wp--preset--font-size--x-large) !important;
		line-height: 30px !important;
	}

	.agma-project-tile__category {
		font-size: var(--wp--preset--font-size--medium) !important;
		line-height: 1.4 !important;
	}

	.agma-glows--projects > .agma-glow:nth-child(1) {
		top: 0;
		left: -50%;
		width: 200%;
	}

	.agma-glows--projects > .agma-glow:nth-child(2) {
		top: 200px;
		right: -100%;
		width: 300%;
	}

	.agma-glows--projects > .agma-glow:nth-child(3) {
		top: 1100px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.agma-project-tile,
	.agma-project-tile__panel,
	.agma-project-tile__arrow img {
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* Blog posts: raw HTML content (seo-autopilot / classic editor).      */
/* agma-core adds .agma-post-html to the Post Content block of posts   */
/* without blocks. Production shows this markup with the Hello         */
/* Elementor defaults plus a few child theme rules — kept 1:1.         */
/* ------------------------------------------------------------------ */

.agma-post-html {
	--agma-post-line: color-mix(in srgb, var(--wp--preset--color--gray) 50%, transparent);
	font-family: var(--wp--preset--font-family--rubik);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 1.5;
}

.agma-post-html :where(p, ul, ol, figure, table, blockquote, h1, h2, h3, h4, h5, h6) {
	margin-block: 0;
}

/* No block gap: the classic markup has its own margins (and the hidden .sidebar comes first). */
.wp-block-post-content.agma-post-html > * {
	margin-block-start: 0;
}

.wp-block-post-content.agma-post-html > :is(h1, h2, h3, h4, h5, h6) {
	margin-top: 0.5rem;
}

.agma-post-html p {
	margin-bottom: 0.9rem;
}

.agma-post-html :where(h1, h2, h3, h4, h5, h6) {
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	font-family: var(--wp--preset--font-family--unbounded);
	font-weight: 500;
	line-height: 1.2;
}

.agma-post-html h2 {
	font-size: var(--wp--preset--font-size--32);
}

.agma-post-html h3 {
	font-size: var(--wp--preset--font-size--28);
}

.agma-post-html h4 {
	font-size: var(--wp--preset--font-size--24);
}

.agma-post-html :where(ul, ol) {
	padding-left: 40px;
}

.agma-post-html strong {
	font-weight: 700;
}

/* Links: text colour with a blue underline (as the legal pages; production shows the Hello pink). */
.agma-post-html a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--blue);
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.agma-post-html a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--blue);
}

/* Images. */
.agma-post-html figure {
	margin-bottom: 1em;
}

.agma-post-html img {
	max-width: 100%;
	height: auto;
	border-radius: 20px;
}

/* Wide tables scroll inside their own box (agma-core wraps them), never the page. */
.agma-post-html .agma-table-scroll {
	max-width: 100%;
	margin-bottom: 15px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
}

.agma-post-html .agma-table-scroll:focus-visible {
	outline: 2px solid currentcolor;
	outline-offset: 2px;
}

.agma-post-html .agma-table-scroll > table {
	margin-bottom: 0;
}

/* Tables (Hello defaults: thin grey grid, striped rows). */
.agma-post-html table {
	width: 100%;
	margin-bottom: 15px;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 0.9em;
}

.agma-post-html :is(th, td) {
	padding: 15px;
	border: 1px solid var(--agma-post-line);
	line-height: 1.5;
	vertical-align: top;
	text-align: start;
}

.agma-post-html th {
	font-weight: 700;
}

.agma-post-html tbody > tr:nth-child(odd) > td {
	background-color: color-mix(in srgb, var(--wp--preset--color--gray) 7%, transparent);
}

/* The duplicate contents list of the new posts (the sidebar block lists the headings). */
.agma-post-html .sidebar {
	display: none;
}

/* Answer, quick facts and FAQ boxes. */
.agma-post-html :is(.ai-answer-block, .quick-facts, .faq-block) {
	margin-bottom: 15px;
	padding: 40px;
	border-radius: 20px;
	background-color: var(--wp--preset--color--gray-light);
	font-size: var(--wp--preset--font-size--18);
	font-weight: 300;
	line-height: 1.4;
}

.agma-post-html :is(.ai-answer-block, .faq-block) h3 {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.3;
}

.agma-post-html .ai-answer-block p:last-of-type,
.agma-post-html .quick-facts p:last-child {
	margin-bottom: 0;
}

.agma-post-html .quick-facts strong {
	font-weight: 600;
}

/* "Related articles" list at the end of some posts. */
.agma-post-html .related-articles-wrapper {
	display: block;
	margin-top: 40px;
}

.agma-post-html .related-articles-wrapper ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--18);
	line-height: 1.4;
}

/* Old FAQ format: questions open their answers (agma-core module "faq-toggle"). */
.agma-post-html .schema-faq-code {
	overflow: hidden;
	border: 1px solid var(--agma-post-line);
	border-radius: 10px;
	background-color: var(--wp--preset--color--white);
}

.agma-post-html .schema-faq-code .faq-q {
	position: relative;
	margin: 0;
	padding: 12px 56px 12px 12px;
	border-bottom: 1px solid var(--agma-post-line);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	user-select: none;
}

.agma-post-html .schema-faq-code .faq-q::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 0;
	width: 56px;
	transform: translateY(-50%);
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--20);
	font-weight: 700;
	text-align: center;
}

.agma-post-html .schema-faq-code .faq-q.faq-q-open::after {
	content: "-";
}

.agma-post-html .schema-faq-code .faq-a {
	display: none;
	margin: 0;
	padding: 12px;
	border-bottom: 1px solid var(--agma-post-line);
	background-color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

/* The answer follows the question directly or inside the microdata "acceptedAnswer" wrapper. */
.agma-post-html .schema-faq-code .faq-q-open ~ .faq-a,
.agma-post-html .schema-faq-code .faq-q-open ~ * .faq-a {
	display: block;
}

.agma-post-html .schema-faq-code .faq-question:last-child .faq-a {
	border-bottom: 0;
}

.agma-post-html .schema-faq-code .faq-a > :last-child {
	margin-bottom: 0;
}

/* Images of converted Elementor posts: the 70px gap of the article text. */
.is-style-agma-prose .agma-prose-image img {
	margin-bottom: var(--agma-prose-gap, 70px);
}

.is-style-agma-prose .agma-prose-image {
	margin-block: 0;
}

/*
 * Converted Elementor posts: every text widget (.agma-text) and container (.agma-box) is its own
 * group in a flex column — margins add up between them (Elementor widgets never collapse), and the
 * last text widget of a container ends without the paragraph gap, as on production.
 */
.wp-block-group.agma-post-prose,
.agma-post-prose .wp-block-group.agma-box {
	display: flex;
	flex-direction: column;
}

.agma-post-prose .agma-box > :is(.agma-text, .agma-box, .wp-block-image, .wp-block-embed, .wp-block-group, .wp-block-shortcode) {
	margin-block-start: 0;
}

.agma-post-prose .wp-block-group.agma-text {
	display: flow-root;
}

/* Core drops the bottom margin of a group's last child; an Elementor text widget keeps it… */
.agma-post-prose .agma-text > :is(p, ul, ol):last-child {
	margin-bottom: var(--agma-prose-gap, 70px);
}

/* …except the last text widget of a container. */
.agma-post-prose :is(.agma-box, .agma-post-prose) > .agma-text:last-child > p:last-child {
	margin-bottom: 0;
}

/* Tables of converted posts: the Hello Elementor grid. */
.agma-post-prose .wp-block-table {
	margin: 0;
}

.agma-post-prose .wp-block-table table {
	width: 100%;
	margin-bottom: 15px;
	border-collapse: collapse;
	font-size: 0.9em;
}

.agma-post-prose .wp-block-table td {
	padding: 15px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--gray) 50%, transparent);
	font-family: var(--wp--preset--font-family--rubik);
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.5;
	vertical-align: top;
}

/* Cells with paragraphs (Google Docs): the article text and its 70px gap (none in tight text). */
.agma-post-prose .wp-block-table.agma-table-text td {
	padding-bottom: calc(15px + var(--agma-prose-gap, 70px));
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--20);
	font-weight: 300;
	line-height: 1.4;
}

.agma-post-prose .agma-prose-tight .wp-block-table.agma-table-text td,
.agma-post-prose :is(.agma-box, .agma-post-prose) > .agma-text:last-child .wp-block-table.agma-table-text td {
	padding-bottom: 15px;
}

.agma-post-prose .wp-block-table tbody > tr:nth-child(odd) > td {
	background-color: color-mix(in srgb, var(--wp--preset--color--gray) 7%, transparent);
}
