/**
 * AGMA Night design system: the foundation of the site redesign.
 * Every selector starts with a Night style class, so pages that do not use these styles are unaffected
 * (enforced by tests/theme/check-theme-json.php). Colors, fonts and sizes come from theme.json presets.
 */

/* ------------------------------------------------------------------ */
/* Section rhythm and light fields. Light is always ground, never a   */
/* flat color, text or border.                                        */
/* ------------------------------------------------------------------ */

.is-style-section-night {
	--agma-night-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	color-scheme: dark;
	accent-color: var(--wp--preset--color--night-signal);
}

.is-style-section-night :focus-visible {
	outline: 2px solid var(--wp--preset--color--night-signal);
	outline-offset: 4px;
}

.is-style-agma-night-hero {
	background: var(--wp--preset--gradient--night-hero);
}

.is-style-agma-night-field-left,
.is-style-agma-night-field-right {
	position: relative;
	isolation: isolate;
	overflow-x: clip;
}

.is-style-agma-night-field-left::before,
.is-style-agma-night-field-right::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 4%;
	width: min(920px, 150vw);
	aspect-ratio: 1;
	border-radius: 50%;
	pointer-events: none;
}

.is-style-agma-night-field-left::before {
	left: max(-460px, -40vw);
	background: var(--wp--preset--gradient--night-field-blue);
}

.is-style-agma-night-field-right::before {
	right: max(-460px, -40vw);
	background: var(--wp--preset--gradient--night-field-purple);
}

.is-style-agma-night-corner {
	background: var(--wp--preset--gradient--night-corner-purple);
}

.is-style-agma-night-enquiry {
	background: var(--wp--preset--gradient--night-enquiry);
}

.is-style-agma-night-footer {
	background: var(--wp--preset--gradient--night-footer);
}

@media (max-width: 640px) {
	.is-style-agma-night-footer {
		background: var(--wp--preset--gradient--night-footer-phone);
	}
}

/* ------------------------------------------------------------------ */
/* Type                                                                */
/* ------------------------------------------------------------------ */

/* Two-tone heading: the text set in italics in the editor becomes the quiet second line. */
.is-style-agma-night-two-tone {
	text-wrap: balance;
}

.is-style-agma-night-two-tone em {
	display: block;
	font-style: normal;
	color: var(--wp--preset--color--night-quiet);
}

.is-style-agma-night-lead {
	max-width: 62ch;
	/* Constrained layouts centre narrower children; keep the lead on the left edge of the content. */
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
	margin-right: auto !important;
	font-size: var(--wp--preset--font-size--night-lead);
	color: var(--wp--preset--color--night-muted);
	text-wrap: pretty;
}

/* Content that still waits for confirmation by AGMA. */
.is-style-agma-night-unconfirmed {
	text-decoration: underline dotted 2px;
	text-decoration-color: var(--wp--preset--color--night-unconfirmed);
	text-underline-offset: 0.22em;
}

/* ------------------------------------------------------------------ */
/* Buttons and links                                                   */
/* ------------------------------------------------------------------ */

.is-style-agma-night-primary .wp-block-button__link,
.is-style-agma-night-secondary .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.is-style-agma-night-primary .wp-block-button__link {
	background: var(--wp--preset--color--night-action);
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-primary .wp-block-button__link:hover {
	background: var(--wp--preset--color--night-action-hover);
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-secondary .wp-block-button__link {
	border-color: var(--wp--preset--color--night-line-2);
	background: transparent;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-secondary .wp-block-button__link:hover {
	background: var(--wp--preset--color--night-panel-2);
	color: var(--wp--preset--color--night-text);
}

/* Text link followed by an arrow in a circle. */
.is-style-agma-night-arrow-link a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	color: var(--wp--preset--color--night-signal);
	text-decoration: none;
}

.is-style-agma-night-arrow-link a::after {
	content: "→";
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--wp--preset--color--night-signal-edge);
	border-radius: 50%;
	background: var(--wp--preset--color--night-signal-wash);
	line-height: 1;
	transition: transform 0.25s var(--agma-night-ease, ease);
}

.is-style-agma-night-arrow-link a:hover::after {
	transform: translateX(3px);
}

/* Link to a page that is not published yet (agma-core renders it as text): information, not an action */
.is-style-agma-night-arrow-link .agma-planned-link {
	font-weight: 700;
	color: var(--wp--preset--color--night-muted);
}

/* ------------------------------------------------------------------ */
/* Lists are rows with thin lines, not cards                           */
/* ------------------------------------------------------------------ */

.is-style-agma-night-rows {
	border-top: 1px solid var(--wp--preset--color--night-line);
}

.is-style-agma-night-rows > * {
	margin-block: 0;
	padding: 18px 14px;
	border-bottom: 1px solid var(--wp--preset--color--night-line);
	transition: background-color 0.2s ease;
}

.is-style-agma-night-rows > *:hover {
	background: var(--wp--preset--color--night-panel);
}

/* ------------------------------------------------------------------ */
/* Cards: no shadows; the inverting card turns light on hover          */
/* ------------------------------------------------------------------ */

.is-style-agma-night-card,
.is-style-agma-night-card-invert {
	padding: 36px;
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 24px;
	background: var(--wp--preset--color--night-panel);
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-card-invert {
	transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.is-style-agma-night-card-invert:hover,
.is-style-agma-night-card-invert:focus-within {
	border-color: var(--wp--preset--color--night-text);
	background: var(--wp--preset--color--night-text);
	color: var(--wp--preset--color--night-ink);
}

@media (max-width: 640px) {
	.is-style-agma-night-card,
	.is-style-agma-night-card-invert {
		padding: 24px;
	}
}

/* ------------------------------------------------------------------ */
/* FAQ and table                                                       */
/* ------------------------------------------------------------------ */

.is-style-agma-night-faq {
	margin-block: 0;
	border-bottom: 1px solid var(--wp--preset--color--night-line);
}

.is-style-agma-night-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

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

.is-style-agma-night-faq summary:hover {
	color: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-faq summary::after {
	content: "+";
	flex: none;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	color: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-faq[open] summary::after {
	content: "−";
}

.is-style-agma-night-faq > :not(summary) {
	max-width: 68ch;
	padding: 0 44px 24px 0;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-table table {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid var(--wp--preset--color--night-line-2);
}

.is-style-agma-night-table th,
.is-style-agma-night-table td {
	padding: 22px 16px;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--night-line);
	text-align: left;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-table thead {
	border-bottom: 0;
}

.is-style-agma-night-table thead th {
	padding-block: 16px 14px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-table tbody tr:hover {
	background: var(--wp--preset--color--night-panel);
}

/* ------------------------------------------------------------------ */
/* Header: transparent over the hero, glass on scroll                  */
/* ------------------------------------------------------------------ */

.is-style-agma-night-shell.is-style-agma-night-shell.wp-block-template-part {
	--agma-night-bar-height: 84px;
	box-sizing: border-box;
	padding-inline: 0;
	font-family: var(--wp--preset--font-family--muller);
	color: var(--wp--preset--color--night-text);
	transition: transform 0.35s ease;
}

.is-style-agma-night-shell.is-style-agma-night-shell.wp-block-template-part + * {
	margin-block-start: 0 !important;
}

/* Pages not redesigned yet keep the space their layout reserves for the header. */
.is-style-agma-night-shell.is-style-agma-night-shell.agma-night-offset.wp-block-template-part + :not(.agma-projects-main):not(.is-style-agma-archive) {
	margin-block-start: var(--agma-header-height) !important;
}

.is-style-agma-night-shell.is-away {
	transform: translateY(-100%);
}

.is-style-agma-night-shell::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: color-mix(in srgb, var(--wp--preset--color--night-ground) 52%, transparent);
	opacity: 0;
	backdrop-filter: blur(20px) saturate(160%);
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.is-style-agma-night-shell.is-scrolled::before {
	opacity: 1;
}

/* Pages not redesigned yet can have light content under the bar: a denser base keeps the white logo and menu readable. */
.is-style-agma-night-shell.agma-night-offset::before {
	background: color-mix(in srgb, var(--wp--preset--color--night-ground) 90%, transparent);
}

/* A light hero starts under the header, so the base is visible from the top of the page. */
.is-style-agma-night-shell.agma-night-on-light::before {
	opacity: 1;
}

.is-style-agma-night-bar {
	display: flex;
	align-items: center;
	gap: 20px;
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--content-size) + 48px);
	height: var(--agma-night-bar-height, 84px);
	margin-inline: auto;
	padding-inline: 24px;
}

.is-style-agma-night-bar .wp-block-site-logo {
	flex: none;
	margin: 0;
}

.is-style-agma-night-pill {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-inline: auto;
	padding: 5px;
	border: 1px solid var(--wp--preset--color--white-10);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--night-panel) 45%, transparent);
	backdrop-filter: blur(14px) saturate(180%);
}

.is-style-agma-night-pill .wp-block-navigation {
	gap: 2px;
	font-size: 15px;
	font-weight: 500;
}

.is-style-agma-night-pill .wp-block-navigation-item__content,
.is-style-agma-night-nav.wp-block-agma-action-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 17px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-family: var(--wp--preset--font-family--muller);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--wp--preset--color--night-muted);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.is-style-agma-night-pill .wp-block-navigation-item__content:hover,
.is-style-agma-night-nav.wp-block-agma-action-button:hover,
.is-style-agma-night-nav.wp-block-agma-action-button[aria-expanded="true"] {
	background: var(--wp--preset--color--white-10);
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-nav svg {
	width: 14px;
	height: 14px;
}

.is-style-agma-night-actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 10px;
}

.is-style-agma-night-cta.wp-block-agma-action-button,
.is-style-agma-night-ghost.wp-block-agma-action-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--muller);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.is-style-agma-night-cta.wp-block-agma-action-button {
	background: var(--wp--preset--color--night-action);
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-cta.wp-block-agma-action-button:hover {
	background: var(--wp--preset--color--night-action-hover);
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-ghost.wp-block-agma-action-button {
	border-color: var(--wp--preset--color--white-20);
	background: color-mix(in srgb, var(--wp--preset--color--night-panel) 45%, transparent);
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-ghost.wp-block-agma-action-button:hover {
	background: var(--wp--preset--color--night-panel-2);
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-cta svg,
.is-style-agma-night-ghost svg {
	width: 16px;
	height: 16px;
}

.is-style-agma-night-burger.wp-block-agma-action-button {
	display: none;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--white-10);
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--night-panel) 45%, transparent);
	color: var(--wp--preset--color--white);
	cursor: pointer;
}

.is-style-agma-night-burger svg {
	width: 20px;
	height: 20px;
}

/* ------------------------------------------------------------------ */
/* Dropdown panels                                                     */
/* ------------------------------------------------------------------ */

.is-style-agma-night-mega.agma-offcanvas.is-placement-dropdown {
	width: min(var(--wp--style--global--content-size), 100% - 48px);
	padding: 0;
	overflow: auto;
	border: 1px solid var(--wp--preset--color--white-10);
	border-radius: 22px;
	background: color-mix(in srgb, var(--wp--preset--color--night-panel) 88%, transparent);
	backdrop-filter: blur(30px) saturate(170%);
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-mega.agma-offcanvas.is-placement-dropdown::before {
	display: none;
}

.is-style-agma-night-mega .agma-offcanvas__close {
	display: none;
}

.is-style-agma-night-mega > * {
	max-width: none;
	margin-block: 0;
}

.is-style-agma-night-projects > *,
.is-style-agma-night-bar > *,
.is-style-agma-night-pill > *,
.is-style-agma-night-actions > *,
.is-style-agma-night-cards > *,
.is-style-agma-night-area-body > *,
.is-style-agma-night-chips > *,
.is-style-agma-night-sitemap > *,
.is-style-agma-night-foot-proof > *,
.is-style-agma-night-proof-item > *,
.is-style-agma-night-badges > * {
	margin-block: 0;
}

.is-style-agma-night-mega a {
	color: inherit;
	text-decoration: none;
}

.is-style-agma-night-kicker {
	margin: 0;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-proof {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-proof strong {
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-proof.is-style-agma-night-proof a {
	font-weight: 700;
	color: var(--wp--preset--color--night-signal);
}

/* Services: the areas are details; their summaries form the side column and the open one fills the rest. */
.is-style-agma-night-services {
	--agma-night-side: 304px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-sizing: border-box;
	min-height: 680px;
	padding: 22px calc(100% - var(--agma-night-side) + 16px) 18px 16px;
}

.is-style-agma-night-services::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--agma-night-side);
	border-right: 1px solid var(--wp--preset--color--night-line);
	background: var(--wp--preset--color--white-5);
	pointer-events: none;
}

.is-style-agma-night-services > * {
	position: relative;
	margin: 0;
}

.is-style-agma-night-services > .is-style-agma-night-kicker {
	padding: 0 12px 10px;
}

.is-style-agma-night-services > .is-style-agma-night-arrow-link {
	margin-top: auto;
	padding: 10px 12px;
	font-size: 14.5px;
}

.is-style-agma-night-services > .is-style-agma-night-arrow-link a::after {
	width: 28px;
	height: 28px;
}

.is-style-agma-night-area.agma-menu-development {
	--agma-area: var(--wp--preset--color--menu-development);
}

.is-style-agma-night-area.agma-menu-design {
	--agma-area: var(--wp--preset--color--menu-design);
}

.is-style-agma-night-area.agma-menu-marketing {
	--agma-area: var(--wp--preset--color--menu-marketing);
}

.is-style-agma-night-area.agma-menu-ai {
	--agma-area: var(--wp--preset--color--menu-ai);
}

.is-style-agma-night-area {
	position: static;
}

.is-style-agma-night-area > summary {
	display: grid;
	gap: 2px;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 14px;
	list-style: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.is-style-agma-night-area > summary::-webkit-details-marker {
	display: none;
}

.is-style-agma-night-area > summary strong {
	font-size: 15px;
	line-height: 1.3;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-area > summary em {
	font-size: 13px;
	font-style: normal;
	line-height: 1.35;
	color: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-area > summary:hover {
	background: var(--wp--preset--color--white-5);
}

.is-style-agma-night-area[open] > summary {
	border-color: color-mix(in srgb, var(--agma-area) 40%, transparent);
	background: color-mix(in srgb, var(--agma-area) 12%, transparent);
}

.is-style-agma-night-area[open] > summary strong {
	color: var(--agma-area);
}

.is-style-agma-night-area-body {
	position: absolute;
	inset: 0 0 0 var(--agma-night-side);
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 22px;
	overflow: auto;
}

.is-style-agma-night-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.is-style-agma-night-menu-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	padding: 18px;
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 18px;
	background: var(--wp--preset--color--night-panel);
	transition: border-color 0.25s ease;
}

.is-style-agma-night-menu-card:hover,
.is-style-agma-night-menu-card:focus-within {
	border-color: color-mix(in srgb, var(--agma-area, var(--wp--preset--color--night-signal)) 45%, transparent);
}

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

.is-style-agma-night-menu-card h3 {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 19px;
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.25;
}

.is-style-agma-night-menu-card p {
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-menu-card .is-style-agma-night-kicker {
	font-size: 13px;
	color: var(--agma-area, var(--wp--preset--color--night-signal));
}

.is-style-agma-night-menu-card .is-style-agma-night-arrow-link {
	margin-top: auto;
	padding-top: 8px;
}

.is-style-agma-night-menu-card .is-style-agma-night-arrow-link a {
	font-size: 14.5px;
	color: var(--agma-area, var(--wp--preset--color--night-signal));
}

.is-style-agma-night-menu-card .is-style-agma-night-arrow-link a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 18px;
}

.is-style-agma-night-menu-card .is-style-agma-night-arrow-link a::after {
	width: 30px;
	height: 30px;
	border-color: color-mix(in srgb, currentColor 40%, transparent);
	background: color-mix(in srgb, currentColor 12%, transparent);
}

.is-style-agma-night-menu-card img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	object-fit: cover;
	object-position: top;
}

.is-style-agma-night-ticks {
	display: grid;
	gap: 7px;
	margin: 4px 0 8px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.4;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-ticks li {
	display: flex;
	gap: 9px;
}

.is-style-agma-night-ticks li::before {
	content: "✓";
	flex: none;
	font-weight: 700;
	color: var(--agma-area, var(--wp--preset--color--night-signal));
}

.is-style-agma-night-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 8px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--wp--preset--color--night-line);
}

.is-style-agma-night-chips > p {
	margin: 0;
	font-size: 13.5px;
}

.is-style-agma-night-chips > p:not(.is-style-agma-night-arrow-link) a {
	display: block;
	padding: 8px 13px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 999px;
	color: var(--wp--preset--color--night-muted);
	transition: border-color 0.18s ease, color 0.18s ease;
}

.is-style-agma-night-chips > p:not(.is-style-agma-night-arrow-link) a:hover {
	border-color: color-mix(in srgb, var(--agma-area, var(--wp--preset--color--night-signal)) 45%, transparent);
	color: var(--wp--preset--color--white);
}

/* Projects */
.is-style-agma-night-projects {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px;
	gap: 22px;
	padding: 22px;
}

.is-style-agma-night-project-col,
.is-style-agma-night-reel {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.is-style-agma-night-project-col > *,
.is-style-agma-night-reel > * {
	margin: 0;
}

.is-style-agma-night-project-col > .is-style-agma-night-menu-card {
	flex: 1;
}

.is-style-agma-night-reel {
	padding-left: 22px;
	border-left: 1px solid var(--wp--preset--color--night-line);
}

.is-style-agma-night-reel-screen {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 16px;
	background: var(--wp--preset--color--black);
}

.is-style-agma-night-reel-screen > * {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	transition: opacity 0.5s ease;
}

.is-style-agma-night-reel-screen img,
.is-style-agma-night-reel-screen video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.is-style-agma-night-reel-screen .wp-block-video {
	opacity: 0;
}

.is-style-agma-night-reel.at-intro .agma-night-reel-intro,
.is-style-agma-night-reel.at-loop .agma-night-reel-loop {
	opacity: 1;
}

.is-style-agma-night-search {
	padding: 18px;
}

.is-style-agma-night-search .wp-block-search__inside-wrapper {
	gap: 8px;
	padding: 0;
	border: 0;
}

.is-style-agma-night-search .wp-block-search__input {
	min-height: 50px;
	padding: 12px 16px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 12px;
	background: var(--wp--preset--color--night-ground);
	font-size: 17px;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-search .wp-block-search__button {
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--night-action);
	font-family: var(--wp--preset--font-family--muller);
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--white);
}

/* Phone menu */
.is-style-agma-night-drawer.agma-offcanvas {
	display: none;
	padding: 20px 16px 28px;
	background: var(--wp--preset--color--night-ground);
	font-family: var(--wp--preset--font-family--muller);
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-drawer.agma-offcanvas[open] {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.is-style-agma-night-drawer.agma-offcanvas > :not(.agma-offcanvas__close) {
	width: 100%;
	max-width: none;
	margin-block: 0;
	margin-inline: 0 !important; /* Constrained layout centres its children. */
}

.is-style-agma-night-drawer.agma-offcanvas > .wp-block-site-logo.wp-block-site-logo {
	width: fit-content;
	margin-bottom: 16px;
}

.is-style-agma-night-drawer .wp-block-navigation__container {
	width: 100%;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0;
}

.is-style-agma-night-drawer > .wp-block-navigation .wp-block-navigation-item {
	padding: 16px 4px;
	border-bottom: 1px solid var(--wp--preset--color--night-line);
}

.is-style-agma-night-drawer-group .wp-block-navigation-item {
	padding-block: 6px;
}

.is-style-agma-night-drawer a {
	color: inherit;
	text-decoration: none;
}

.is-style-agma-night-drawer > .wp-block-navigation {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 20px;
	font-weight: 500;
}

.is-style-agma-night-drawer-group > summary,
.is-style-agma-night-drawer-link {
	padding: 16px 4px;
	border-bottom: 1px solid var(--wp--preset--color--night-line);
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 20px;
	font-weight: 500;
	cursor: pointer;
}

.is-style-agma-night-drawer-group .wp-block-navigation {
	gap: 12px;
	padding: 16px 4px;
	font-size: 16px;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-drawer .is-style-agma-night-cta {
	min-height: 54px;
	margin-top: 16px;
}

/* Film */
.is-style-agma-night-film.agma-offcanvas.is-placement-modal {
	width: min(1100px, 100vw - 32px);
	padding: 0;
	overflow: hidden;
	border-radius: 18px;
	background: var(--wp--preset--color--black);
}

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

.is-style-agma-night-film video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.is-style-agma-night-film .agma-offcanvas__close {
	z-index: 2;
	color: var(--wp--preset--color--white);
}

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

.is-style-agma-night-foot-shell.is-style-agma-night-foot-shell.wp-block-template-part {
	margin-block-start: 0;
	padding: 0;
}

.is-style-agma-night-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-top: 96px;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-foot-inner {
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--content-size) + 48px);
	margin-inline: auto;
	padding-inline: 24px;
}

.is-style-agma-night-foot-inner a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.is-style-agma-night-foot-inner a:hover {
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-sitemap {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 56px 44px;
}

.is-style-agma-night-foot-col {
	margin: 0;
}

.is-style-agma-night-foot-col > summary {
	margin-bottom: 28px;
	padding-bottom: 22px;
	border-bottom: 2px solid var(--wp--preset--color--white-20);
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 21px;
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: var(--wp--preset--color--night-text);
	list-style: none;
	cursor: default;
}

.is-style-agma-night-foot-col > summary::-webkit-details-marker {
	display: none;
}

.is-style-agma-night-foot-group {
	margin-bottom: 24px;
}

.is-style-agma-night-foot-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-links {
	display: grid;
	gap: 3px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.45;
}

.is-style-agma-night-foot-col .wp-block-agma-action-button {
	width: fit-content;
	margin-top: 12px;
}

.is-style-agma-night-foot-brand {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px 48px;
	margin-top: 72px;
}

.is-style-agma-night-foot-brand > * {
	margin-block: 0;
}

.is-style-agma-night-foot-intro p {
	max-width: 42ch;
	margin: 16px 0 0;
	font-size: 15px;
}

.is-style-agma-night-foot-contact {
	display: grid;
	justify-items: start;
	gap: 6px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-foot-contact > * {
	margin: 0;
}

.is-style-agma-night-contact-link.wp-block-agma-action-button {
	padding: 0 0 4px;
	border: 0;
	background: transparent;
	font-family: var(--wp--preset--font-family--muller);
	font-size: 14px;
	font-weight: 700;
	color: var(--wp--preset--color--night-signal);
	text-decoration: none;
}

.is-style-agma-night-contact-link.wp-block-agma-action-button:hover {
	color: var(--wp--preset--color--night-signal-hi);
}

.is-style-agma-night-foot-proof {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 32px;
	margin-top: 48px;
}

.is-style-agma-night-proof-item {
	display: grid;
	align-content: start;
	gap: 14px;
}

.is-style-agma-night-badges {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 116px;
}

.is-style-agma-night-badges .wp-block-image {
	height: 100%;
	margin: 0;
}

.is-style-agma-night-badges img {
	display: block;
	width: auto;
	height: 100%;
}

.is-style-agma-night-badges .agma-night-plate {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	padding: 0 22px;
	border-radius: 16px;
	background: var(--wp--preset--color--white);
}

.is-style-agma-night-badges .agma-night-plate img {
	height: 66px;
}

.is-style-agma-night-footer > .is-style-agma-night-foot-inner > .is-style-agma-night-proof {
	max-width: 62ch;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--night-line);
	font-size: 13.5px;
	color: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-awards {
	margin-top: 8px;
	font-size: 13.5px;
	color: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-awards > summary {
	min-height: 36px;
	font-weight: 700;
	line-height: 36px;
	color: var(--wp--preset--color--night-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.is-style-agma-night-awards strong {
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-foot-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 24px;
	font-size: 14px;
	color: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-foot-legal > * {
	margin: 0;
}

.is-style-agma-night-foot-legal .wp-block-navigation {
	font-size: 14px;
}

.is-style-agma-night-foot-legal .wp-block-navigation__container {
	flex-wrap: wrap;
	gap: 6px 22px;
}

.is-style-agma-night-footer > .wp-block-template-part {
	height: 0;
	margin: 0;
}

.is-style-agma-night-wordmark {
	margin: 72px 0 0;
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: clamp(110px, 25vw, 380px);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 0.78;
	text-align: center;
	color: var(--wp--preset--color--night-text);
	transform: translateY(0.14em);
	user-select: none;
}

@media (max-width: 1140px) {
	.is-style-agma-night-services {
		--agma-night-side: 250px;
	}

	.is-style-agma-night-projects {
		grid-template-columns: 1fr 1fr;
	}

	.is-style-agma-night-reel {
		grid-column: 1 / -1;
		flex-flow: row wrap;
		align-items: center;
		padding: 16px 0 0;
		border-top: 1px solid var(--wp--preset--color--night-line);
		border-left: 0;
	}

	.is-style-agma-night-reel > .is-style-agma-night-kicker,
	.is-style-agma-night-reel-screen {
		display: none;
	}

	.is-style-agma-night-ghost.agma-night-search-toggle.wp-block-agma-action-button {
		width: 46px;
		padding: 0;
		overflow: hidden;
		font-size: 0;
	}

	.is-style-agma-night-ghost.agma-night-search-toggle.wp-block-agma-action-button::before {
		content: "⌕";
		font-size: 22px;
		line-height: 1;
	}
}

@media (max-width: 920px) {
	.is-style-agma-night-shell.is-style-agma-night-shell.wp-block-template-part {
		--agma-night-bar-height: 72px;
	}

	.is-style-agma-night-bar {
		justify-content: space-between;
		padding-inline: 16px;
	}

	.is-style-agma-night-pill,
	.is-style-agma-night-actions .is-style-agma-night-cta {
		display: none;
	}

	.is-style-agma-night-burger.wp-block-agma-action-button {
		display: grid;
	}

	.is-style-agma-night-mega.agma-offcanvas.is-placement-dropdown {
		width: calc(100% - 24px);
	}

	.is-style-agma-night-services {
		min-height: 0;
		padding: 16px;
	}

	.is-style-agma-night-services::before {
		display: none;
	}

	.is-style-agma-night-area-body {
		position: static;
		padding: 12px 0;
	}

	.is-style-agma-night-cards,
	.is-style-agma-night-projects {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.is-style-agma-night-footer {
		padding-top: 64px;
	}

	.is-style-agma-night-foot-inner {
		padding-inline: 16px;
	}

	.is-style-agma-night-sitemap {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.is-style-agma-night-foot-col > summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0;
		padding: 16px 0;
		border-bottom: 1px solid var(--wp--preset--color--night-line-2);
		font-size: 20px;
		cursor: pointer;
	}

	.is-style-agma-night-foot-col > summary::after {
		content: "+";
		font-size: 24px;
		line-height: 1;
		color: var(--wp--preset--color--night-signal);
	}

	.is-style-agma-night-foot-col[open] > summary {
		margin-bottom: 22px;
	}

	.is-style-agma-night-foot-col[open] > summary::after {
		content: "−";
	}

	.is-style-agma-night-badges {
		height: 96px;
	}

	.is-style-agma-night-foot-legal {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ------------------------------------------------------------------ */
/* Footer v4 (docs/agma-footer-v4, migration 2027-01-02-footer-v4):    */
/* one row of five columns of about the same height (Услуги over two), */
/* a strip of six profile tiles below, the logo beside the awards.     */
/* Phones (up to 760px) keep the five accordions.                      */
/* ------------------------------------------------------------------ */

.is-style-agma-night-sitemap {
	grid-template-columns: 218fr 246fr 196fr 253fr 220fr;
	gap: 48px clamp(24px, calc(24px + (100vw - 1280px) * 0.15), 56px);
	align-items: stretch;
}

.is-style-agma-night-foot-col {
	min-width: 0;
}

/* the summary's margin alone sets the space above the content (no flow-layout gap, which does not collapse in flex) */
.is-style-agma-night-foot-col > :not(summary) {
	margin-block-start: 0;
}

.is-style-agma-night-foot-col.agma-foot-services {
	grid-column: span 2;
}

.is-style-agma-night-foot-col.agma-foot-profiles {
	grid-column: 1 / -1;
}

.is-style-agma-night-foot-col > summary {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom-width: 1px;
}

.is-style-agma-night-footer .agma-foot-services .agma-foot-groups {
	display: grid;
	grid-template-columns: 218fr 246fr;
	gap: 24px clamp(24px, calc(24px + (100vw - 1280px) * 0.15), 56px);
}

.is-style-agma-night-footer .agma-foot-groups > *,
.is-style-agma-night-footer .agma-foot-stack > *,
.is-style-agma-night-footer .agma-foot-actions > *,
.is-style-agma-night-footer .agma-foot-tiles > *,
.is-style-agma-night-footer .agma-foot-tile > *,
.is-style-agma-night-footer .agma-foot-tile-text > *,
.is-style-agma-night-footer .agma-foot-awards > * {
	margin-block: 0;
}

.is-style-agma-night-footer .agma-foot-stack {
	display: grid;
	align-content: start;
	gap: 22px;
	min-width: 0;
}

.is-style-agma-night-footer .agma-foot-stack .is-style-agma-night-foot-group {
	margin-bottom: 0;
}

.is-style-agma-night-sitemap .is-style-agma-night-links {
	gap: 4px;
	line-height: 1.4;
}

.is-style-agma-night-sitemap .agma-foot-pairs {
	grid-template-columns: max-content minmax(0, 1fr);
	column-gap: var(--wp--preset--spacing--20);
}

/* AGMA Studio: contacts and buttons; the column fills the height of the row */
.is-style-agma-night-footer .agma-foot-company .is-style-agma-night-foot-contact {
	gap: 4px;
	margin-top: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--small);
}

.is-style-agma-night-footer .agma-foot-company .agma-foot-actions {
	display: grid;
	gap: var(--wp--preset--spacing--10);
}

.is-style-agma-night-footer .agma-foot-company .agma-foot-actions .wp-block-agma-action-button {
	width: 100%;
	margin: 0;
	padding: 0 var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--small);
}

.is-style-agma-night-footer .agma-foot-company .agma-foot-actions svg {
	display: none;
}

.is-style-agma-night-footer .agma-foot-company .is-style-agma-night-contact-link.wp-block-agma-action-button {
	margin: 0;
}

.is-style-agma-night-footer .agma-foot-company {
	display: flex;
	flex-direction: column;
}

.is-style-agma-night-footer .agma-foot-company > .agma-foot-stack {
	flex: 1;
	align-content: space-between;
}

/* Профили: six tiles of one size, logo and words in the same place on each; the name link covers the tile */
.is-style-agma-night-footer .agma-foot-profiles .agma-foot-tiles {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-auto-rows: 76px;
	gap: 12px;
}

.is-style-agma-night-footer .agma-foot-tile {
	position: relative;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 14px;
	background: color-mix(in srgb, var(--wp--preset--color--night-panel) 70%, transparent);
	transition: border-color 0.18s, background-color 0.18s;
}

.is-style-agma-night-footer .agma-foot-tile:hover {
	border-color: var(--wp--preset--color--night-line-2);
	background: var(--wp--preset--color--night-panel-2);
}

.is-style-agma-night-footer .agma-foot-tile:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--night-signal);
	outline-offset: 2px;
}

.is-style-agma-night-footer .agma-foot-tile .agma-foot-tile-name a:focus-visible {
	outline: 0;
}

.is-style-agma-night-footer .agma-foot-tile-name a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.is-style-agma-night-footer .agma-foot-tile .agma-foot-tile-logo {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 56px;
	height: 48px;
	margin: 0;
}

.is-style-agma-night-footer .agma-foot-tile .agma-foot-tile-logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 48px;
}

.is-style-agma-night-footer .agma-foot-tile .agma-foot-tile-logo.is-plate {
	padding: 5px;
	border-radius: 8px;
	background: var(--wp--preset--color--white);
}

.is-style-agma-night-footer .agma-foot-tile .agma-foot-tile-logo.is-plate img {
	width: 100%;
	max-height: 38px;
	object-fit: contain;
}

.is-style-agma-night-footer .agma-foot-tile-text {
	display: grid;
	gap: 1px;
	min-width: 0;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.3;
	text-wrap: balance;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-footer .agma-foot-tile-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-footer .agma-foot-tile.is-wide {
	grid-template-columns: auto minmax(0, 1fr);
}

.is-style-agma-night-footer .agma-foot-tile.is-wide .agma-foot-tile-logo {
	width: 114px;
}

/* the TechBehemoths badge carries its name: the link text stays for screen readers, its cover still spans the tile */
.is-style-agma-night-footer .agma-foot-tile.is-wide .agma-foot-tile-name {
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}

/* the logo, and beside it the awards */
.is-style-agma-night-foot-brand {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 28px clamp(40px, 6vw, 96px);
	margin-top: 48px;
	padding-top: 36px;
	border-top: 1px solid var(--wp--preset--color--night-line);
}

.is-style-agma-night-foot-intro {
	display: flex;
	align-items: center;
	gap: 28px;
}

.is-style-agma-night-foot-intro > * {
	margin: 0;
}

.is-style-agma-night-foot-intro img {
	display: block;
	width: 168px;
	max-width: 100%;
	height: auto;
}

.is-style-agma-night-foot-intro p {
	max-width: 34ch;
	margin: 0;
}

.is-style-agma-night-footer .agma-foot-awards {
	min-width: 0;
}

.is-style-agma-night-footer .agma-foot-awards > .is-style-agma-night-proof {
	font-size: 13.5px;
}

.is-style-agma-night-footer .agma-foot-awards .is-style-agma-night-awards {
	margin: 2px 0 0;
}

/* the last rows stand on the blue and purple ground: the lighter grey keeps them above 4.5:1 there */
.is-style-agma-night-awards,
.is-style-agma-night-foot-legal {
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-foot-legal {
	padding-top: var(--wp--preset--spacing--20);
	border-top: 1px solid var(--wp--preset--color--night-line);
}

/* small laptops: still six tiles in a row, slightly tighter */
@media (max-width: 1400px) and (min-width: 1241px) {
	.is-style-agma-night-footer .agma-foot-tile {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: var(--wp--preset--spacing--10);
		padding: 0 9px;
	}

	.is-style-agma-night-footer .agma-foot-tile .agma-foot-tile-logo {
		width: 48px;
	}

	.is-style-agma-night-footer .agma-foot-tile.is-wide .agma-foot-tile-logo {
		width: 102px;
	}
}

/* below five columns: Услуги and Браншове; then Ресурси and AGMA Studio with their groups side by side */
@media (max-width: 1240px) {
	.is-style-agma-night-footer .agma-foot-profiles .agma-foot-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.is-style-agma-night-sitemap {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 48px 32px;
	}

	.is-style-agma-night-footer .agma-foot-services .agma-foot-groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 32px;
	}

	.is-style-agma-night-foot-col.agma-foot-resources,
	.is-style-agma-night-foot-col.agma-foot-company {
		grid-column: 1 / -1;
	}

	.is-style-agma-night-footer .agma-foot-resources .agma-foot-stack,
	.is-style-agma-night-footer .agma-foot-company .agma-foot-stack {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px 32px;
	}

	.is-style-agma-night-footer .agma-foot-company .agma-foot-actions {
		align-content: start;
		justify-items: start;
	}

	.is-style-agma-night-footer .agma-foot-company .agma-foot-actions .wp-block-agma-action-button {
		width: min(100%, 220px);
	}

	.is-style-agma-night-foot-brand {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 960px) and (min-width: 761px) {
	.is-style-agma-night-sitemap {
		grid-template-columns: minmax(0, 1fr);
	}

	.is-style-agma-night-foot-col.is-style-agma-night-foot-col {
		grid-column: 1;
	}

	.is-style-agma-night-footer .agma-foot-industries .agma-foot-stack {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.is-style-agma-night-sitemap {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.is-style-agma-night-foot-col.is-style-agma-night-foot-col {
		grid-column: 1;
	}

	.is-style-agma-night-foot-col > summary {
		margin: 0;
		padding: 16px 0;
	}

	.is-style-agma-night-foot-col[open] {
		padding-bottom: 28px;
	}

	.is-style-agma-night-footer .agma-foot-services .agma-foot-groups,
	.is-style-agma-night-footer .agma-foot-resources .agma-foot-stack,
	.is-style-agma-night-footer .agma-foot-company .agma-foot-stack {
		grid-template-columns: minmax(0, 1fr);
	}

	.is-style-agma-night-footer .agma-foot-profiles .agma-foot-tiles {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: 70px;
		gap: var(--wp--preset--spacing--10);
	}

	.is-style-agma-night-sitemap .is-style-agma-night-links {
		gap: 0;
	}

	.is-style-agma-night-sitemap .agma-foot-pairs {
		grid-template-columns: minmax(0, 1fr);
	}

	.is-style-agma-night-sitemap .is-style-agma-night-links a {
		display: block;
		padding: 7px 0;
	}

	.is-style-agma-night-foot-intro {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}

/* level bottoms: the buttons end where the longest column ends */
@media (min-width: 761px) {
	.is-style-agma-night-footer .agma-foot-company::details-content {
		flex: 1;
		display: flex;
		flex-direction: column;
	}

	.is-style-agma-night-footer .agma-foot-industries .agma-foot-stack {
		gap: 16px;
	}

	.is-style-agma-night-sitemap .agma-foot-industries .is-style-agma-night-links {
		row-gap: 2px;
		margin-top: 8px;
	}
}

/* ------------------------------------------------------------------ */
/* Service hub: layout                                                 */
/* ------------------------------------------------------------------ */

.is-style-agma-night-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--wp--style--global--content-size) + 48px);
	margin-inline: auto;
	padding-inline: 24px;
}

.is-style-agma-night-wrap > *,
.is-style-agma-night-dir-head > *,
.is-style-agma-night-dir-body > *,
.is-style-agma-night-sec-head > *,
.is-style-agma-night-service-list > *,
.is-style-agma-night-work > *,
.is-style-agma-night-why > *,
.is-style-agma-night-ask-grid > *,
.is-style-agma-night-step > *,
.is-style-agma-night-work-card > *,
.is-style-agma-night-why-box > *,
.is-style-agma-night-team > * {
	margin-block: 0;
}

.is-style-agma-night-hub-hero {
	--agma-night-hero-bar: 84px;
	margin-top: calc(var(--agma-night-hero-bar) * -1);
	padding: calc(28px + var(--agma-night-hero-bar)) 0 240px;
	text-align: center;
}

.is-style-agma-night-hub-hero h1 {
	margin: 56px auto 0;
}

.is-style-agma-night-hub-hero .is-style-agma-night-lead {
	max-width: 60ch;
	margin: 28px auto 0 !important;
	font-size: 19px;
}

.is-style-agma-night-hub-hero .wp-block-buttons {
	justify-content: center;
	gap: 12px;
	margin-top: 34px;
}

.is-style-agma-night-crumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	font-size: 14px;
	color: var(--wp--preset--color--night-dim);
	list-style: none;
}

.is-style-agma-night-crumbs li + li::before {
	content: "/";
	margin-right: 8px;
	opacity: 0.6;
}

.is-style-agma-night-crumbs a {
	color: var(--wp--preset--color--night-muted);
	text-decoration: none;
}

.is-style-agma-night-crumbs a:hover {
	color: var(--wp--preset--color--white);
}

/* Directions bar: stays under the header, takes its place when the header leaves. */
.is-style-agma-night-subnav {
	position: sticky;
	z-index: 40;
	top: 84px;
	background: color-mix(in srgb, var(--wp--preset--color--night-ground) 55%, transparent);
	backdrop-filter: blur(20px) saturate(160%);
	transition: transform 0.35s var(--agma-night-ease, ease);
}

.is-style-agma-night-subnav.is-raised {
	transform: translateY(-84px);
}

.is-style-agma-night-subnav .is-style-agma-night-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 58px;
	overflow-x: auto;
	scrollbar-width: none;
}

.is-style-agma-night-subnav p {
	flex: none;
	margin: 0;
	font-size: 14.5px;
	white-space: nowrap;
}

.is-style-agma-night-subnav .is-style-agma-night-kicker {
	margin-right: 8px;
}

.is-style-agma-night-subnav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 13px;
	border-radius: 999px;
	color: var(--wp--preset--color--night-muted);
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.is-style-agma-night-subnav a em {
	font-size: 12.5px;
	font-style: normal;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-subnav a:hover {
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-subnav a.is-current {
	background: var(--wp--preset--color--night-action);
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-subnav a.is-current em {
	color: var(--wp--preset--color--night-signal-hi);
}

/* ------------------------------------------------------------------ */
/* Service hub: directions                                             */
/* ------------------------------------------------------------------ */

.is-style-agma-night-direction {
	padding: 128px 0 40px;
	scroll-margin-top: 58px;
}

.is-style-agma-night-dir-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 56px;
	margin-bottom: 52px;
}

.is-style-agma-night-dir-head > :first-child {
	flex: 1;
	min-width: 0;
}

.is-style-agma-night-dir-head .is-style-agma-night-lead {
	margin: 22px 0 0 !important;
}

.is-style-agma-night-dir-head .is-style-agma-night-arrow-link {
	flex: none;
	font-size: 15px;
	white-space: nowrap;
}

/* Inline links of the hub carry a small arrow, as in the approved page. */
.is-style-agma-night-dir-head .is-style-agma-night-arrow-link a,
.is-style-agma-night-team .is-style-agma-night-arrow-link a,
.is-style-agma-night-wrap > .is-style-agma-night-arrow-link a {
	gap: 8px;
}

.is-style-agma-night-dir-head .is-style-agma-night-arrow-link a::after,
.is-style-agma-night-team .is-style-agma-night-arrow-link a::after,
.is-style-agma-night-wrap > .is-style-agma-night-arrow-link a::after {
	width: auto;
	height: auto;
	border: 0;
	border-radius: 0;
	background: none;
}

.is-style-agma-night-wrap > .is-style-agma-night-arrow-link {
	margin-top: 28px;
}

.is-style-agma-night-hub-hero .is-style-agma-night-primary .wp-block-button__link::after {
	content: "→";
	margin-left: 8px;
	transition: transform 0.25s var(--agma-night-ease, ease);
}

.is-style-agma-night-hub-hero .is-style-agma-night-primary .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

.is-style-agma-night-dir-body {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: 56px;
}

.is-style-agma-night-direction.is-flipped .is-style-agma-night-dir-body {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.is-style-agma-night-direction.is-flipped .is-style-agma-night-viz {
	order: 2;
}

.is-style-agma-night-viz {
	--agma-viz-4: color-mix(in srgb, var(--wp--preset--color--night-text) 4%, var(--wp--preset--color--night-ground));
	--agma-viz-8: color-mix(in srgb, var(--wp--preset--color--night-text) 8%, var(--wp--preset--color--night-ground));
	--agma-viz-10: color-mix(in srgb, var(--wp--preset--color--night-text) 10%, var(--wp--preset--color--night-ground));
	--agma-viz-15: color-mix(in srgb, var(--wp--preset--color--night-text) 15%, var(--wp--preset--color--night-ground));
	--agma-viz-21: color-mix(in srgb, var(--wp--preset--color--night-text) 21%, var(--wp--preset--color--night-ground));
	--agma-viz-35: color-mix(in srgb, var(--wp--preset--color--night-text) 35%, var(--wp--preset--color--night-ground));
	--agma-viz-74: color-mix(in srgb, var(--wp--preset--color--night-text) 74%, var(--wp--preset--color--night-ground));
	--agma-viz-79: color-mix(in srgb, var(--wp--preset--color--night-text) 79%, var(--wp--preset--color--night-ground));
	--agma-viz-90: color-mix(in srgb, var(--wp--preset--color--night-text) 90%, var(--wp--preset--color--night-ground));
	--agma-viz-93: color-mix(in srgb, var(--wp--preset--color--night-text) 93%, var(--wp--preset--color--night-ground));
	--agma-viz-95: color-mix(in srgb, var(--wp--preset--color--night-text) 95%, var(--wp--preset--color--night-ground));
	position: relative;
	margin: 0;
	padding: clamp(10px, 2vw, 24px);
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 24px;
	background: var(--wp--preset--color--night-panel);
}

.is-style-agma-night-viz svg {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}

.is-style-agma-night-viz text {
	font-family: var(--wp--preset--font-family--muller);
	font-size: 12px;
	fill: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-viz .vt { fill: var(--wp--preset--color--night-dim); }
.is-style-agma-night-viz .vt-d { fill: var(--agma-viz-21); }
.is-style-agma-night-viz .vt-b { font-size: 13px; font-weight: 700; fill: var(--wp--preset--color--night-ground-2); }
.is-style-agma-night-viz .vt-w { font-size: 13px; font-weight: 700; fill: var(--wp--preset--color--night-text); }
.is-style-agma-night-viz .vt-c { font-weight: 700; fill: var(--wp--preset--color--night-ground-2); }

.is-style-agma-night-viz .vt-h {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 40px;
	font-weight: 500;
	letter-spacing: -0.04em;
	fill: var(--wp--preset--color--night-text);
}

.is-style-agma-night-viz .g {
	transition: opacity 0.35s ease;
}

.is-style-agma-night-viz.has-active .g:not(.is-active) {
	opacity: 0.28;
}

.is-style-agma-night-viz .hl {
	fill: none;
	stroke: var(--wp--preset--color--night-signal);
	stroke-width: 2.5;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.is-style-agma-night-viz .g.is-active .hl {
	opacity: 1;
}

.is-style-agma-night-viz .draw {
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
}

.is-style-agma-night-viz .pop {
	transform-box: fill-box;
	transform-origin: center;
}

.is-style-agma-night-viz .grow {
	transform-box: fill-box;
	transform-origin: 0 50%;
}

.is-style-agma-night-viz .g.is-active .draw { animation: agma-night-draw 0.9s var(--agma-night-ease, ease) both; }
.is-style-agma-night-viz .g.is-active .pop { animation: agma-night-pop 0.5s var(--agma-night-ease, ease) both; animation-delay: var(--d, 0s); }
.is-style-agma-night-viz .g.is-active .grow { animation: agma-night-grow 0.9s var(--agma-night-ease, ease) both; animation-delay: var(--d, 0s); }
.is-style-agma-night-viz .g.is-active .ph { animation: agma-night-playhead 4s linear infinite; }
.is-style-agma-night-viz .g.is-active .mdot { animation: agma-night-dot 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate; }

@keyframes agma-night-draw { from { stroke-dashoffset: 1; } }
@keyframes agma-night-pop { from { opacity: 0; transform: scale(0.5); } }
@keyframes agma-night-grow { from { transform: scaleX(0); } }
@keyframes agma-night-playhead { to { transform: translateX(520px); } }
@keyframes agma-night-dot { to { transform: translate(230px, -56px); } }

.is-style-agma-night-service-list {
	border-top: 1px solid var(--wp--preset--color--night-line);
}

.is-style-agma-night-service {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 18px;
	align-items: center;
	gap: 0 16px;
	padding: 18px 14px;
	border-bottom: 1px solid var(--wp--preset--color--night-line);
}

.is-style-agma-night-service > * {
	margin: 0;
}

.is-style-agma-night-service::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -1px 0;
	border: 1px solid var(--wp--preset--color--night-signal-edge);
	border-radius: 14px;
	background: var(--wp--preset--color--night-panel);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.is-style-agma-night-service::after {
	content: "→";
	color: var(--wp--preset--color--night-dim);
	transition: transform 0.25s ease, color 0.25s ease;
}

.is-style-agma-night-service.is-active::before {
	opacity: 1;
}

.is-style-agma-night-service.is-active::after {
	color: var(--wp--preset--color--night-signal);
	transform: translateX(3px);
}

.is-style-agma-night-service .agma-night-service-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 12px;
	background: var(--wp--preset--color--night-panel);
	color: var(--wp--preset--color--night-dim);
	transition: color 0.25s ease, background-color 0.25s ease;
}

.is-style-agma-night-service .agma-night-service-icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.is-style-agma-night-service.is-active .agma-night-service-icon {
	border-color: transparent;
	background: var(--wp--preset--color--night-action);
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-service h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--muller);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
}

.is-style-agma-night-service h3 a {
	color: var(--wp--preset--color--night-muted);
	text-decoration: none;
}

.is-style-agma-night-service.is-active h3 a {
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-service h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 14px;
}

.is-style-agma-night-service p {
	margin: 3px 0 0;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-service.is-active p {
	color: var(--wp--preset--color--night-muted);
}

/* ------------------------------------------------------------------ */
/* Service hub: bands, process, work, reasons                          */
/* ------------------------------------------------------------------ */

.is-style-agma-night-band {
	padding: 128px 0;
	scroll-margin-top: 58px;
}

/*
 * Section lights (design team 27.11): no lines and no flat color steps between sections. Every band carries a blue
 * or a purple light that fades out before its top and bottom edge, so sections meet in a gradient, never at an edge.
 * The bands alternate by themselves (odd: blue from the left, even: purple from the right); the enquiry band joins
 * both colors, and on a page without it the fourth section does. Bands with a light of their own keep it, and the
 * homepage keeps its own glow layer.
 */
.is-style-agma-night-band:nth-of-type(odd):not(.is-style-agma-night-enquiry, .is-style-agma-night-corner, .is-style-agma-night-home *) {
	background-image: var(--wp--preset--gradient--night-glow-blue);
}

.is-style-agma-night-band:nth-of-type(even):not(.is-style-agma-night-enquiry, .is-style-agma-night-corner, .is-style-agma-night-home *) {
	background-image: var(--wp--preset--gradient--night-glow-purple);
}

.is-style-section-night:not(:has(> .is-style-agma-night-enquiry)) > .is-style-agma-night-band:nth-of-type(4):not(.is-style-agma-night-corner, .is-style-agma-night-home *) {
	background-image: var(--wp--preset--gradient--night-glow-mixed);
}

.is-style-agma-night-sec-head {
	max-width: 780px;
	margin-bottom: 56px;
}

.is-style-agma-night-sec-head .is-style-agma-night-lead {
	margin: 20px 0 0 !important;
}

.is-style-agma-night-table .agma-night-cell-label {
	display: none;
	color: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-table table.has-fixed-layout {
	table-layout: auto;
}

.is-style-agma-night-table tbody th {
	width: 40%;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--wp--preset--color--night-text);
}

@media (min-width: 761px) {
	.is-style-agma-night-table tbody td:nth-child(2) {
		width: 24%;
	}
}

.is-style-agma-night-table tbody td:nth-child(2) a {
	font-weight: 700;
	color: var(--wp--preset--color--night-signal);
	text-decoration: none;
}

.is-style-agma-night-table tbody td:nth-child(2) a::after {
	content: " →";
}

.is-style-agma-night-sec-head + .agma-night-faq-list {
	max-width: 880px;
	border-top: 1px solid var(--wp--preset--color--night-line);
}

.is-style-agma-night-table tbody td:nth-child(3) a {
	color: var(--wp--preset--color--night-muted);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--night-line-2);
	text-underline-offset: 4px;
}

.is-style-agma-night-table tbody td:nth-child(3) a:hover {
	color: var(--wp--preset--color--white);
	text-decoration-color: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-table td {
	font-size: 16px;
}

.is-style-agma-night-wrap > .agma-night-service-note {
	max-width: 68ch;
	margin-top: 28px;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-wrap > .agma-night-service-note strong {
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-wrap > .is-style-agma-night-next {
	max-width: 780px;
	margin-top: 0;
}

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

.is-style-agma-night-wrap > .is-style-agma-night-card > * + * {
	margin-top: 12px;
	color: var(--wp--preset--color--night-muted);
}

/* The process row runs to the screen edge while its first card lines up with the content. */
.is-style-agma-night-band > .agma-carousel {
	--agma-night-edge: max(24px, calc((100% - var(--wp--style--global--content-size)) / 2));
	margin-block: 56px 0;
}

.is-style-agma-night-band > .agma-carousel .agma-carousel__track {
	padding-inline: var(--agma-night-edge);
	scroll-padding-inline: var(--agma-night-edge);
}

.is-style-agma-night-band > .agma-carousel .agma-carousel__track > * {
	flex: 0 0 344px;
	height: auto;
}

.is-style-agma-night-wrap > .agma-night-process-ui {
	display: flex;
	align-items: center;
	gap: 32px;
	margin-top: 36px;
}

.is-style-agma-night-wrap > .agma-night-process-ui > * {
	margin: 0;
}

.is-style-agma-night-wrap > .agma-night-process-ui .agma-carousel-arrows {
	gap: 12px;
}

.is-style-agma-night-wrap > .agma-night-process-ui .agma-carousel-arrows__button {
	width: 56px;
	height: 56px;
	border-color: var(--wp--preset--color--white-20);
	background-color: transparent;
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-wrap > .agma-night-process-ui .agma-carousel-arrows__button:hover:not(:disabled) {
	border-color: var(--wp--preset--color--white-50);
	background-color: var(--wp--preset--color--white-10);
}

.is-style-agma-night-wrap > .agma-night-process-ui .agma-carousel-progress {
	flex: 1;
	height: 2px;
	margin: 0;
	border-radius: 2px;
	background-color: var(--wp--preset--color--white-20);
	color: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-wrap > .agma-night-process-ui .agma-carousel-progress__fill {
	top: 0;
	height: 2px;
	border-radius: 2px;
}

.is-style-agma-night-form-card .agma-form-submit .agma-form-submit__button {
	width: 100%;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 999px;
	background: var(--wp--preset--color--night-action);
	font-family: var(--wp--preset--font-family--muller);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
}

.is-style-agma-night-form-card .agma-form-submit .agma-form-submit__button:hover {
	background: var(--wp--preset--color--night-action-hover);
}

.is-style-agma-night-step {
	--agma-step-accent: var(--wp--preset--color--night-signal);
	--agma-step-art: color-mix(in srgb, var(--wp--preset--color--night-text) 93%, var(--wp--preset--color--night-ground));
	--agma-step-body: var(--wp--preset--color--night-muted);
	--agma-step-line: var(--wp--preset--color--night-line);
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	padding: 28px 28px 26px;
	border: 1px solid var(--wp--preset--color--white-20);
	border-radius: 24px;
	color: var(--wp--preset--color--night-text);
	transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

/* Owner 25.11: the card is not inverted on hover; only the step number turns white with a black digit. */
.is-style-agma-night-step:hover .agma-night-step-number {
	border-color: var(--wp--preset--color--night-text);
	background: var(--wp--preset--color--night-text);
	color: var(--wp--preset--color--night-ink);
}

.is-style-agma-night-step .agma-lottie {
	display: grid;
	place-items: center;
	height: 176px;
	margin-bottom: 24px;
}

.is-style-agma-night-step .lb path { stroke: var(--agma-step-art); transition: stroke 0.35s ease; }
.is-style-agma-night-step .la path { stroke: var(--agma-step-accent); transition: stroke 0.35s ease; }
.is-style-agma-night-step .lf path { fill: var(--agma-step-accent); transition: fill 0.35s ease; }

.is-style-agma-night-step .agma-night-step-when {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--agma-step-accent);
}

.is-style-agma-night-step .agma-night-step-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 6px;
}

.is-style-agma-night-step .agma-night-step-row > * {
	margin: 0;
}

.is-style-agma-night-step h3 {
	color: inherit;
}

.is-style-agma-night-step .agma-night-step-number {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.is-style-agma-night-step .agma-night-step-text {
	margin: 12px 0 20px;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--agma-step-body);
}

.is-style-agma-night-step .agma-night-step-get {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--agma-step-line);
	font-size: 14.5px;
}

.is-style-agma-night-work {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.is-style-agma-night-work-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding-bottom: 24px;
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 20px;
	background: var(--wp--preset--color--night-panel);
	transition: border-color 0.25s ease;
}

.is-style-agma-night-work-card:hover {
	border-color: var(--wp--preset--color--night-signal-edge);
}

.is-style-agma-night-work-card > :not(.wp-block-image) {
	margin-inline: 24px;
}

.is-style-agma-night-work-card .wp-block-image {
	aspect-ratio: 16 / 10;
	margin-bottom: 22px;
	overflow: hidden;
	background: var(--wp--preset--color--night-panel-2);
}

.is-style-agma-night-work-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.6s var(--agma-night-ease, ease);
}

.is-style-agma-night-work-card:hover img {
	transform: scale(1.03);
}

/*
 * Device mockup (owner 26.11.2026, docs/screenshot-app-envato-com-2026-11-25-21-42-23.png): the card image on a
 * laptop screen, the site's mobile screenshot on a phone standing in front of its left edge. Markup from agma-core
 * Device_Mockup. All sizes are in cqw of the 16:10 stage and keep the example's proportions: the pair spans 88% of
 * the stage, the phone is 0.29 of the laptop width and 0.86 of its screen height, phone and laptop base share the
 * floor line.
 */
.is-style-agma-night-work-card .wp-block-image.agma-device {
	--agma-device-floor: 7cqw;
	--agma-device-laptop-x: 13cqw;
	box-sizing: border-box;
	position: relative;
	display: block;
	padding: 0;
	container-type: inline-size;
	background:
		radial-gradient(80% 60% at 55% 92%, var(--wp--preset--color--night-signal-wash), transparent 70%),
		var(--wp--preset--color--night-panel-2);
}

.is-style-agma-night-work-card .agma-device.has-agma-phone {
	--agma-device-laptop-x: 15.4cqw;
}

.is-style-agma-night-work-card .agma-device-laptop {
	position: absolute;
	left: var(--agma-device-laptop-x);
	bottom: calc(var(--agma-device-floor) + 2.4cqw);
	display: block;
	width: 70.4cqw;
}

/* Lid: black bezel with a thin rim, deeper chin, notch at the top. */
.is-style-agma-night-work-card .agma-device-screen {
	box-sizing: border-box;
	position: relative;
	display: block;
	aspect-ratio: 902 / 623;
	padding: 1.4cqw 1.3cqw 3.1cqw;
	border: 0.25cqw solid var(--wp--preset--color--night-line-2);
	border-bottom: 0;
	border-radius: 2.4cqw 2.4cqw 0 0;
	background: var(--wp--preset--color--night-deep);
	box-shadow: 0 3cqw 6cqw -2cqw var(--wp--preset--color--night-deep);
}

.is-style-agma-night-work-card .agma-device-screen::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: 1.3cqw;
	left: 50%;
	width: 8.2cqw;
	height: 1.5cqw;
	translate: -50% 0;
	border-radius: 0 0 0.7cqw 0.7cqw;
	background: var(--wp--preset--color--night-deep);
}

.is-style-agma-night-work-card .agma-device-screen img {
	border-radius: 0.4cqw;
}

/* Base: wider than the lid, metallic, with the opening recess in the middle. */
.is-style-agma-night-work-card .agma-device-laptop::after,
.is-style-agma-night-work-card .agma-device-laptop::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	translate: -50% 0;
}

.is-style-agma-night-work-card .agma-device-laptop::after {
	width: 118.2%;
	height: 2.4cqw;
	border-radius: 0.3cqw 0.3cqw 2cqw 2cqw / 0.3cqw 0.3cqw 1.6cqw 1.6cqw;
	background: linear-gradient(var(--wp--preset--color--night-muted), var(--wp--preset--color--night-dim) 30%, var(--wp--preset--color--night-line-2) 70%, var(--wp--preset--color--night-panel));
	box-shadow: 0 1.4cqw 2.4cqw -0.6cqw var(--wp--preset--color--night-deep);
}

.is-style-agma-night-work-card .agma-device-laptop::before {
	z-index: 1;
	width: 22%;
	height: 0.9cqw;
	border-radius: 0 0 1.2cqw 1.2cqw;
	background: linear-gradient(var(--wp--preset--color--night-line-2), var(--wp--preset--color--night-dim));
}

/* Phone: metal rim, black bezel, camera island, side buttons. */
.is-style-agma-night-work-card .agma-device-phone {
	box-sizing: border-box;
	position: absolute;
	z-index: 2;
	left: 6cqw;
	bottom: var(--agma-device-floor);
	display: block;
	width: 20cqw;
	height: 42cqw;
	padding: 0.75cqw;
	border: 0.3cqw solid var(--wp--preset--color--night-dim);
	border-radius: 3.4cqw;
	background: var(--wp--preset--color--night-deep);
	box-shadow:
		inset 0 0 0 0.12cqw var(--wp--preset--color--night-line-2),
		0 2.4cqw 4cqw -1cqw var(--wp--preset--color--night-deep);
	transition: translate 0.6s var(--agma-night-ease, ease);
}

.is-style-agma-night-work-card .agma-device-phone::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: 1.5cqw;
	left: 50%;
	width: 5.4cqw;
	height: 1.6cqw;
	translate: -50% 0;
	border-radius: 1cqw;
	background: var(--wp--preset--color--night-deep);
}

.is-style-agma-night-work-card .agma-device-phone::after {
	content: "";
	position: absolute;
	top: 8cqw;
	left: -0.65cqw;
	width: 0.35cqw;
	height: 3cqw;
	border-radius: 0.2cqw 0 0 0.2cqw;
	background: var(--wp--preset--color--night-dim);
	box-shadow:
		0 4cqw 0 var(--wp--preset--color--night-dim),
		0 8cqw 0 var(--wp--preset--color--night-dim),
		19.95cqw 3cqw 0 var(--wp--preset--color--night-dim);
}

.is-style-agma-night-work-card .agma-device-phone img {
	border-radius: 2.6cqw;
}

.is-style-agma-night-work-card:hover .agma-device-phone {
	translate: 0 -1.2cqw;
}

.is-style-agma-night-work-card:hover .agma-device-phone img {
	transform: none;
}

.is-style-agma-night-work-card .agma-night-work-kind {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-work-card h3 {
	margin-top: 6px;
}

.is-style-agma-night-work-card h3 a {
	color: var(--wp--preset--color--night-text);
	text-decoration: none;
}

.is-style-agma-night-work-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.is-style-agma-night-work-card .agma-night-work-text {
	margin-top: 8px;
	font-size: 15.5px;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-work-card .agma-night-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 14px;
}

.is-style-agma-night-work-card .agma-night-tags p {
	margin: 0;
	padding: 6px 10px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 999px;
	font-size: 13px;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-why {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.is-style-agma-night-why-box {
	--agma-why-go-bg: var(--wp--preset--color--night-text);
	--agma-why-go-ink: var(--wp--preset--color--night-ink);
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	align-items: center;
	column-gap: 18px;
	padding: 36px 36px 34px;
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 24px;
	background: var(--wp--preset--color--night-panel);
	color: var(--wp--preset--color--night-text);
	transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.is-style-agma-night-why-box:hover,
.is-style-agma-night-why-box:focus-within {
	--agma-why-go-bg: var(--wp--preset--color--night-ink);
	--agma-why-go-ink: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--night-text);
	background: var(--wp--preset--color--night-text);
	color: var(--wp--preset--color--night-ink);
}

.is-style-agma-night-why-box::after {
	content: "↗";
	position: absolute;
	right: 28px;
	bottom: 28px;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--agma-why-go-bg);
	color: var(--agma-why-go-ink);
	pointer-events: none;
	transition: background-color 0.35s ease, color 0.35s ease;
}

.is-style-agma-night-why-box .agma-lottie {
	width: 56px;
	height: 56px;
	color: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-why-box:hover .agma-lottie,
.is-style-agma-night-why-box:focus-within .agma-lottie {
	color: var(--wp--preset--color--night-action);
}

.is-style-agma-night-why-box .agma-lottie path {
	fill: none;
	stroke: currentColor;
}

.is-style-agma-night-why-box h3 a {
	color: inherit;
	text-decoration: none;
}

.is-style-agma-night-why-box h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 24px;
}

.is-style-agma-night-why-box p {
	grid-column: 1 / -1;
	max-width: 46ch;
	margin-top: 18px;
	padding-right: 64px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--night-muted);
	transition: color 0.35s ease;
}

.is-style-agma-night-why-box:hover p,
.is-style-agma-night-why-box:focus-within p {
	color: var(--wp--preset--color--night-ink-muted);
}

.is-style-agma-night-team {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	margin-top: 24px;
	padding-top: 30px;
	border-top: 1px solid var(--wp--preset--color--night-line-2);
}

.is-style-agma-night-team > p:first-child {
	max-width: 70ch;
	font-size: 16.5px;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-team strong {
	color: var(--wp--preset--color--night-text);
}

/* ------------------------------------------------------------------ */
/* Service hub: enquiry                                                */
/* ------------------------------------------------------------------ */

.is-style-agma-night-ask-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: start;
	gap: 64px;
}

.is-style-agma-night-next {
	display: grid;
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: agma-next;
}

.is-style-agma-night-next li {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 0 14px;
	padding: 16px 0;
	border-top: 1px solid var(--wp--preset--color--night-line-2);
	font-size: 15px;
	color: var(--wp--preset--color--night-muted);
	counter-increment: agma-next;
}

.is-style-agma-night-next li::before {
	content: counter(agma-next);
	display: grid;
	grid-row: span 2;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--wp--preset--color--night-signal);
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: var(--wp--preset--color--night-ink);
}

.is-style-agma-night-next strong {
	display: block;
	font-size: var(--wp--preset--font-size--night-body);
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-form-card {
	padding: 32px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 24px;
	background: var(--wp--preset--color--night-panel);
}

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

.is-style-agma-night-form-card .agma-night-form-note {
	margin: 6px 0 22px;
	font-size: 15px;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-form-card .agma-form {
	--agma-form-gap: 16px;
	--agma-form-row-gap: 16px;
	--agma-form-line: var(--wp--preset--color--night-line-2);
	--agma-form-placeholder: var(--wp--preset--color--night-dim);
	--agma-form-control-bg: var(--wp--preset--color--night-ground);
	--agma-form-control-padding: 12px 14px;
	--agma-form-control-radius: 10px;
	--agma-form-control-border: 1px;
	--agma-form-control-font-size: 16px;
	--agma-form-control-line-height: 1.5;
	--agma-form-button-hover: var(--wp--preset--color--night-action-hover);
}

@media (min-width: 641px) {
	/* The card is narrower than the form's own one-column breakpoint. */
	.is-style-agma-night-form-card .agma-form__fields > .is-width-50 {
		flex-basis: calc(50% - var(--agma-form-gap) / 2);
	}
}

.is-style-agma-night-form-card .agma-form-submit__label::after {
	content: " →";
}

.is-style-agma-night-form-card .agma-form-field__label {
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-form-card .agma-form-field__hint {
	color: var(--wp--preset--color--night-dim);
	opacity: 1;
}

.is-style-agma-night-form-card .agma-form-field__choice input:checked + span {
	border-color: var(--wp--preset--color--night-signal);
	background: var(--wp--preset--color--night-signal);
	color: var(--wp--preset--color--night-ink);
}

.is-style-agma-night-form-card .agma-form-field__error {
	color: var(--wp--preset--color--night-error);
}

/* Shared enquiry form (synced pattern "Форма за запитване (обща)"): the Contacts page form, underlined fields,
   privacy text beside the button. It undoes the boxed fields and the wide button of the card above. */
.is-style-agma-night-form-card .agma-form.is-style-underline {
	--wp--preset--color--gray: var(--wp--preset--color--night-dim);
	--agma-form-gap: 30px;
	--agma-form-row-gap: 30px;
	--agma-form-line: var(--wp--preset--color--night-line-2);
	--agma-form-placeholder: var(--wp--preset--color--night-dim);
	--agma-form-control-bg: transparent;
	--agma-form-control-padding: 20px 30px 20px 0;
	--agma-form-control-radius: 0;
	--agma-form-control-border: 0 0 1px;
	--agma-form-control-font-size: var(--wp--preset--font-size--large);
	--agma-form-control-line-height: 1.4;
	--agma-form-button-hover: var(--wp--preset--color--blue-dark);
}

.is-style-agma-night-form-card .agma-form.is-style-underline .agma-form-submit .agma-form-submit__button {
	width: 100%;
	min-height: 60px;
	padding: 20px 40px;
	border-radius: 30px;
	background: var(--wp--preset--color--blue);
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
}

.is-style-agma-night-form-card .agma-form.is-style-underline .agma-form-submit .agma-form-submit__button:hover,
.is-style-agma-night-form-card .agma-form.is-style-underline .agma-form-submit .agma-form-submit__button:focus-visible {
	background: var(--agma-form-button-hover);
}

.is-style-agma-night-form-card .agma-form.is-style-underline .agma-form-submit__label::after {
	content: none;
}

.is-style-agma-night-form-card .agma-form.is-style-underline .agma-enquiry-form__foot p {
	color: var(--wp--preset--color--night-muted);
}

/* The card's width, not the screen's, decides the layout (the card is narrow beside the intro on tablets). */
@container (min-width: 560px) {
	.is-style-agma-night-form-card .agma-form.is-style-underline .agma-form__fields > .wp-block-columns {
		flex-wrap: nowrap !important;
	}

	.is-style-agma-night-form-card .agma-form.is-style-underline .agma-form__fields > .wp-block-columns > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1;
	}
}

@container (max-width: 559px) {
	.is-style-agma-night-form-card .agma-form.is-style-underline .agma-form__fields > .is-width-50 {
		flex-basis: 100%;
	}

	.is-style-agma-night-form-card .agma-form.is-style-underline .agma-form__fields > .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.is-style-agma-night-form-card .agma-form.is-style-underline .agma-form__fields > .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	.is-style-agma-night-form-card .agma-form.is-style-underline .agma-form-field.is-type-file .agma-form-field__input {
		flex-wrap: wrap;
		padding-inline: 0;
	}
}

.is-style-agma-night-form-card .agma-night-privacy {
	margin-top: 12px;
	font-size: 13.5px;
	text-align: center;
	color: var(--wp--preset--color--night-dim);
}

/* Phone action bar: after the hero, until the enquiry. */
.is-style-agma-night-mobile-cta {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Service hub: responsive                                             */
/* ------------------------------------------------------------------ */

@media (max-width: 1100px) {
	.is-style-agma-night-work {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.is-style-agma-night-dir-body,
	.is-style-agma-night-direction.is-flipped .is-style-agma-night-dir-body,
	.is-style-agma-night-ask-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.is-style-agma-night-direction.is-flipped .is-style-agma-night-viz {
		order: 0;
	}

	.is-style-agma-night-dir-head {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 920px) {
	.is-style-agma-night-hub-hero {
		--agma-night-hero-bar: 72px;
	}

	.is-style-agma-night-subnav {
		top: 72px;
	}

	.is-style-agma-night-subnav.is-raised {
		transform: translateY(-72px);
	}
}

@media (max-width: 760px) {
	.is-style-agma-night-work {
		grid-template-columns: minmax(0, 1fr);
	}

	.is-style-agma-night-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.is-style-agma-night-table table,
	.is-style-agma-night-table tbody,
	.is-style-agma-night-table tr,
	.is-style-agma-night-table tbody th,
	.is-style-agma-night-table td {
		display: block;
		width: auto;
	}

	.is-style-agma-night-table tbody tr {
		padding: 20px 4px;
		border-bottom: 1px solid var(--wp--preset--color--night-line);
	}

	.is-style-agma-night-table tbody th {
		padding: 0 0 10px;
		border: 0;
	}

	.is-style-agma-night-table td {
		padding: 4px 0;
		border: 0;
		font-size: 15.5px;
	}

	.is-style-agma-night-table .agma-night-cell-label {
		display: inline;
	}

	.is-style-agma-night-mobile-cta {
		position: fixed;
		z-index: 45;
		inset: auto 0 0;
		display: block;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--wp--preset--color--white-10);
		background: color-mix(in srgb, var(--wp--preset--color--night-ground) 80%, transparent);
		backdrop-filter: blur(16px);
		visibility: hidden;
		transform: translateY(100%);
		transition: transform 0.3s ease, visibility 0.3s;
	}

	.is-style-agma-night-mobile-cta.is-visible {
		visibility: visible;
		transform: none;
	}

	.is-style-agma-night-mobile-cta .wp-block-button,
	.is-style-agma-night-mobile-cta .wp-block-button__link {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.is-style-agma-night-wrap {
		padding-inline: 16px;
	}

	.is-style-agma-night-hub-hero {
		padding-bottom: 180px;
	}

	.is-style-agma-night-hub-hero h1 {
		margin-top: 44px;
		font-size: clamp(28px, 7.6vw, 34px);
	}

	.is-style-agma-night-hub-hero .is-style-agma-night-lead {
		font-size: 17.5px;
	}

	.is-style-agma-night-hub-hero .wp-block-button,
	.is-style-agma-night-hub-hero .wp-block-button__link {
		width: 100%;
	}

	.is-style-agma-night-direction {
		padding: 96px 0 24px;
	}

	.is-style-agma-night-direction .is-style-agma-night-lead {
		font-size: 17px;
	}

	.is-style-agma-night-wrap > .agma-night-process-ui .agma-carousel-arrows__button {
		width: 48px;
		height: 48px;
	}

	.is-style-agma-night-band {
		padding: 96px 0;
	}

	.is-style-agma-night-service {
		grid-template-columns: 40px minmax(0, 1fr) 16px;
		gap: 0 12px;
		padding: 16px 8px;
	}

	.is-style-agma-night-service .agma-night-service-icon {
		width: 40px;
		height: 40px;
	}

	.is-style-agma-night-band > .agma-carousel {
		--agma-night-edge: 16px;
	}

	.is-style-agma-night-band > .agma-carousel .agma-carousel__track > * {
		flex-basis: 82%;
	}

	.is-style-agma-night-step {
		padding: 24px 22px 22px;
		border-radius: 20px;
	}

	.is-style-agma-night-step .agma-lottie {
		--agma-lottie-size: 132px !important;
		height: 148px;
		margin-bottom: 18px;
	}

	.is-style-agma-night-why {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.is-style-agma-night-why-box {
		grid-template-columns: 48px minmax(0, 1fr);
		column-gap: 14px;
		padding: 28px 24px 26px;
		border-radius: 20px;
	}

	.is-style-agma-night-why-box .agma-lottie {
		width: 48px;
		height: 48px;
	}

	.is-style-agma-night-why-box p {
		padding-right: 56px;
		font-size: 15.5px;
	}

	.is-style-agma-night-why-box::after {
		right: 20px;
		bottom: 20px;
		width: 44px;
		height: 44px;
	}

	.is-style-agma-night-form-card {
		padding: 24px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-night-viz .g,
	.is-style-agma-night-viz .g.is-active .draw,
	.is-style-agma-night-viz .g.is-active .pop,
	.is-style-agma-night-viz .g.is-active .grow,
	.is-style-agma-night-viz .g.is-active .ph,
	.is-style-agma-night-viz .g.is-active .mdot,
	.is-style-agma-night-subnav,
	.is-style-agma-night-mobile-cta,
	.is-style-agma-night-step,
	.is-style-agma-night-why-box,
	.is-style-agma-night-work-card img,
	.is-style-agma-night-work-card .agma-device-phone {
		animation: none;
		transition: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-night-shell.is-style-agma-night-shell.wp-block-template-part,
	.is-style-agma-night-shell::before,
	.is-style-agma-night-area > summary,
	.is-style-agma-night-menu-card,
	.is-style-agma-night-reel-screen > *,
	.is-style-agma-night-arrow-link a::after,
	.is-style-agma-night-card-invert,
	.is-style-agma-night-faq summary,
	.is-style-agma-night-rows > *,
	.is-style-agma-night-primary .wp-block-button__link,
	.is-style-agma-night-secondary .wp-block-button__link {
		transition: none;
	}
}

/* Sample project art: the service icon on a quiet field, until real work replaces it. */
.is-style-agma-night-work-card .agma-night-sample-art {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	margin: 0;
	color: var(--wp--preset--color--night-signal-hi);
	background: color-mix(in srgb, var(--wp--preset--color--night-signal) 14%, var(--wp--preset--color--night-ground));
}

.is-style-agma-night-work-card .agma-night-sample-art svg {
	width: 22%;
	height: auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ------------------------------------------------------------------ */
/* Visual sections after docs/good-examples: split hero with an orbit, */
/* icon cards, icon rows with an illustration, cell grid, client logos */
/* Animations run only while visible (.is-in, night-chrome.js).        */
/* ------------------------------------------------------------------ */

.is-style-agma-night-split-hero {
	padding-bottom: 160px;
	text-align: left;
}

.is-style-agma-night-split {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
	align-items: center;
	gap: 48px;
}

.is-style-agma-night-split-hero .agma-night-split-text > * {
	margin-block: 0;
}

.is-style-agma-night-split-hero .is-style-agma-night-crumbs {
	justify-content: flex-start;
}

/*
 * Vertical rhythm of the text column. The reset above has higher specificity than an element selector,
 * so every spacing rule goes through .agma-night-split-text too.
 */
.is-style-agma-night-split-hero .agma-night-split-text > * + * {
	margin-top: 24px;
}

.is-style-agma-night-split-hero .agma-night-split-text > .is-style-agma-night-crumbs + * {
	margin-top: 32px;
}

.is-style-agma-night-split-hero .agma-night-split-text > .wp-block-buttons {
	margin-top: 40px;
}

/* At most three to four lines: smaller size, balanced lines */
.is-style-agma-night-split-hero h1 {
	font-size: clamp(28px, 2.65vw, 40px);
	line-height: 1.14;
	text-wrap: balance;
}

/* Grid items: no flow-layout gap above them, the grid gap spaces them. */
.is-style-agma-night-split > *,
.is-style-agma-night-tiles > *,
.is-style-agma-night-features > *,
.is-style-agma-night-features .agma-night-feature-list > *,
.is-style-agma-night-cells > * {
	margin-block: 0;
}

.is-style-agma-night-split-hero .is-style-agma-night-lead {
	margin: 28px 0 0 !important;
}

.is-style-agma-night-split-hero .wp-block-buttons {
	justify-content: flex-start;
}

/*
 * Project wall (agma/project-wall) in a split hero: the screenshots fill the right side of the whole hero,
 * also under the fixed header, and fade out towards the text and the next section.
 */
.is-style-agma-night-split-hero:has(.agma-project-wall) {
	position: relative;
	isolation: isolate;
	overflow: clip;
}

.is-style-agma-night-split-hero .agma-project-wall {
	position: absolute;
	z-index: -1;
	inset: 0 0 0 auto;
	width: 64%;
	min-height: 0;
	margin: 0;
	opacity: 0.85;
	mask-image: linear-gradient(to right, transparent 8%, rgb(0 0 0 / 0.45) 30%, #000 56%), linear-gradient(to bottom, #000 72%, transparent 100%);
	mask-composite: intersect;
}

.is-style-agma-night-split-hero .agma-night-split-text {
	position: relative;
}

/* Orbit */
.is-style-agma-night-orbit {
	position: relative;
	width: 100%;
	max-width: 540px;
	margin: 0 0 0 auto;
}

.is-style-agma-night-orbit svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.is-style-agma-night-orbit .glow {
	fill: var(--wp--preset--color--night-signal-wash);
	filter: blur(40px);
}

.is-style-agma-night-orbit .ring {
	fill: none;
	stroke: var(--wp--preset--color--night-line-2);
	stroke-width: 1;
}

.is-style-agma-night-orbit .ring.is-faint {
	stroke: var(--wp--preset--color--night-line);
	stroke-dasharray: 2 8;
}

.is-style-agma-night-orbit .dot {
	fill: var(--wp--preset--color--night-text);
}

.is-style-agma-night-orbit .dot.is-small {
	fill: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-orbit .spin {
	transform-box: view-box;
	transform-origin: 260px 260px;
	transform: rotate(var(--a, 0deg));
}

/* Satellites turn back as their ring turns, so the icons stay upright. */
.is-style-agma-night-orbit .sat {
	transform-box: fill-box;
	transform-origin: center;
	transform: rotate(calc(var(--a, 0deg) * -1));
}

.is-style-agma-night-orbit .chip {
	fill: var(--wp--preset--color--night-panel-2);
	stroke: var(--wp--preset--color--night-line-2);
}

.is-style-agma-night-orbit .ico,
.is-style-agma-night-orbit .mark {
	fill: none;
	stroke: var(--wp--preset--color--night-signal);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.is-style-agma-night-orbit .mark {
	stroke: var(--wp--preset--color--night-text);
	stroke-width: 1.4;
}

.is-style-agma-night-orbit .core {
	fill: color-mix(in srgb, var(--wp--preset--color--night-panel-2) 88%, transparent);
	stroke: var(--wp--preset--color--night-signal-edge);
}

.is-style-agma-night-orbit.is-in .spin {
	animation: agma-night-orbit var(--t, 40s) linear infinite;
}

.is-style-agma-night-orbit.is-in .sat {
	animation: agma-night-orbit-back var(--t, 40s) linear infinite;
}

.is-style-agma-night-orbit.is-in .mark path {
	stroke-dasharray: 1;
	animation: agma-night-draw 1.6s var(--agma-night-ease, ease) both;
}

@keyframes agma-night-orbit {
	from { transform: rotate(var(--a, 0deg)); }
	to { transform: rotate(calc(var(--a, 0deg) + 360deg)); }
}

@keyframes agma-night-orbit-back {
	from { transform: rotate(calc(var(--a, 0deg) * -1)); }
	to { transform: rotate(calc(var(--a, 0deg) * -1 - 360deg)); }
}

/* Icon cards */
.is-style-agma-night-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.is-style-agma-night-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 32px 28px 28px;
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 24px;
	background: linear-gradient(160deg, var(--wp--preset--color--night-panel-2), var(--wp--preset--color--night-panel));
	transition: border-color 0.3s ease, transform 0.3s var(--agma-night-ease, ease);
}

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

.is-style-agma-night-tile:hover,
.is-style-agma-night-tile:focus-within {
	border-color: var(--wp--preset--color--night-signal-edge);
	transform: translateY(-4px);
}

.is-style-agma-night-tile h3 {
	font-size: var(--wp--preset--font-size--night-lead);
	line-height: 1.35;
}

.is-style-agma-night-tile .agma-night-tile-get {
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-tile .agma-night-tile-label {
	color: var(--wp--preset--color--night-dim);
}

/* Extra links in a card stay clickable above the card's covering link. */
.is-style-agma-night-tile .agma-night-tile-get a {
	position: relative;
	z-index: 1;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-tile .agma-night-tile-link {
	margin-top: auto;
	padding-top: 8px;
}

/* The card's link covers the whole card. */
.is-style-agma-night-tile .agma-night-tile-link a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.is-style-agma-night-tile .agma-night-tile-icon,
.is-style-agma-night-cell .agma-night-cell-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 16px;
	background: var(--wp--preset--color--night-signal-wash);
	color: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-tile .agma-night-tile-icon svg,
.is-style-agma-night-feature .agma-night-feature-icon svg,
.is-style-agma-night-cell .agma-night-cell-icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Icon rows next to an illustration */
.is-style-agma-night-features {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 64px;
}

.is-style-agma-night-features .agma-night-features-text > * {
	margin-block: 0;
}

.is-style-agma-night-features .is-style-agma-night-sec-head {
	margin-bottom: 40px;
}

.is-style-agma-night-features .agma-night-feature-list {
	display: grid;
	gap: 22px;
	margin-bottom: 32px;
}

.is-style-agma-night-feature {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: center;
	gap: 22px;
}

.is-style-agma-night-feature .agma-night-feature-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 50%;
	background: var(--wp--preset--color--night-panel-2);
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-feature .agma-night-feature-text > * {
	margin-block: 0;
}

.is-style-agma-night-feature h3 {
	font-size: var(--wp--preset--font-size--night-lead);
	line-height: 1.35;
}

.is-style-agma-night-feature p {
	margin-top: 4px !important;
	color: var(--wp--preset--color--night-muted);
}

/* Delivered files illustration */
.is-style-agma-night-files {
	margin: 0;
}

.is-style-agma-night-files svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.is-style-agma-night-files .glow {
	fill: var(--wp--preset--color--night-signal-wash);
	filter: blur(40px);
}

.is-style-agma-night-files .sheet {
	fill: var(--wp--preset--color--night-panel-2);
	stroke: var(--wp--preset--color--night-line-2);
}

.is-style-agma-night-files .sheet.is-front {
	fill: var(--wp--preset--color--night-panel);
	stroke: var(--wp--preset--color--night-signal-edge);
}

.is-style-agma-night-files .tag {
	fill: var(--wp--preset--color--night-line);
}

.is-style-agma-night-files .tag.is-signal {
	fill: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-files text {
	font-family: var(--wp--preset--font-family--muller);
	font-size: 12px;
	font-weight: 700;
	fill: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-files .tag-t.is-dark {
	fill: var(--wp--preset--color--night-ground-2);
}

.is-style-agma-night-files .cap {
	font-weight: 400;
	fill: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-files .line {
	fill: var(--wp--preset--color--night-line);
}

.is-style-agma-night-files .checker rect {
	fill: var(--wp--preset--color--night-ground);
	stroke: var(--wp--preset--color--night-line);
	stroke-dasharray: 4 4;
}

.is-style-agma-night-files .mark-s,
.is-style-agma-night-files .mark,
.is-style-agma-night-files .guide,
.is-style-agma-night-files .sw-mark {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.is-style-agma-night-files .mark-s {
	stroke: var(--wp--preset--color--night-muted);
	stroke-width: 9;
}

.is-style-agma-night-files .guide {
	stroke: var(--wp--preset--color--night-signal-edge);
	stroke-width: 1;
	stroke-dasharray: 3 5;
}

.is-style-agma-night-files .mark {
	stroke: var(--wp--preset--color--night-signal);
	stroke-width: 16;
	stroke-dasharray: 1;
}

.is-style-agma-night-files .handle {
	fill: var(--wp--preset--color--night-ground);
	stroke: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-files .node {
	fill: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-files .sw {
	stroke: var(--wp--preset--color--night-line-2);
}

.is-style-agma-night-files .sw.is-light { fill: var(--wp--preset--color--night-text); }
.is-style-agma-night-files .sw.is-dark { fill: var(--wp--preset--color--night-ground); }
.is-style-agma-night-files .sw.is-color { fill: var(--wp--preset--color--night-action); }

.is-style-agma-night-files .sw-mark {
	stroke: var(--wp--preset--color--night-text);
	stroke-width: 3;
}

.is-style-agma-night-files .sw-mark.is-ink { stroke: var(--wp--preset--color--night-ink); }
.is-style-agma-night-files .sw-mark.is-small { stroke-width: 2.4; }

.is-style-agma-night-files .pop {
	transform-box: fill-box;
	transform-origin: center;
}

.is-style-agma-night-files.is-in .float {
	animation: agma-night-float 6s ease-in-out infinite alternate;
	animation-delay: var(--d, 0s);
}

.is-style-agma-night-files.is-in .mark {
	animation: agma-night-draw 1.4s var(--agma-night-ease, ease) 0.3s both;
}

.is-style-agma-night-files.is-in .pop {
	animation: agma-night-pop 0.5s var(--agma-night-ease, ease) both;
	animation-delay: calc(var(--d, 0s) + 0.8s);
}

/* Generic result stack (services without file formats) */
.is-style-agma-night-files .sheet-ico,
.is-style-agma-night-files .big,
.is-style-agma-night-files .chip-ico {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.is-style-agma-night-files .sheet-ico {
	stroke: var(--wp--preset--color--night-muted);
	stroke-width: 1.6;
}

.is-style-agma-night-files .big {
	stroke: var(--wp--preset--color--night-signal);
	stroke-width: 1.2;
}

.is-style-agma-night-files .chip-ico {
	stroke: var(--wp--preset--color--night-signal);
	stroke-width: 1.7;
}

.is-style-agma-night-files .big .draw {
	stroke-dasharray: 1;
}

.is-style-agma-night-files.is-in .big .draw {
	animation: agma-night-draw 1.6s var(--agma-night-ease, ease) 0.3s both;
}

@keyframes agma-night-float {
	from { transform: translateY(-6px); }
	to { transform: translateY(6px); }
}

/* Cell grid: numbered cards; the border and a soft light follow the pointer (--mx/--my from night-chrome.js),
   an accent line draws along the bottom on hover, cards rise in one after another when the grid is armed. */
.is-style-agma-night-cells {
	counter-reset: agma-night-cell;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

/* Four cards: two by two instead of a row of three with one left over */
.is-style-agma-night-cells:has(> :nth-child(4):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.is-style-agma-night-cell {
	--mx: -999px;
	--my: -999px;
	counter-increment: agma-night-cell;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 280px;
	padding: 34px 32px 36px;
	border: 1px solid transparent;
	border-radius: 24px;
	background:
		linear-gradient(90deg, var(--wp--preset--color--night-signal), var(--wp--preset--color--night-signal-edge) 60%, transparent) left bottom / 0% 2px no-repeat padding-box,
		linear-gradient(180deg, var(--wp--preset--color--night-panel), var(--wp--preset--color--night-ground-2)) padding-box,
		radial-gradient(320px circle at var(--mx) var(--my), var(--wp--preset--color--night-signal), var(--wp--preset--color--night-line) 70%) border-box;
	transition:
		transform 0.5s var(--agma-night-ease, ease),
		box-shadow 0.5s var(--agma-night-ease, ease),
		background-size 0.7s var(--agma-night-ease, ease);
}

/* Soft light under the pointer */
.is-style-agma-night-cell::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(380px circle at var(--mx) var(--my), var(--wp--preset--color--night-signal-wash), transparent 65%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

/* Index number, decorative (the order is in the markup) */
.is-style-agma-night-cell::after {
	content: counter(agma-night-cell, decimal-leading-zero);
	position: absolute;
	top: 24px;
	right: 28px;
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 46px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.04em;
	color: transparent;
	-webkit-text-stroke: 1px var(--wp--preset--color--night-line-2);
	transition:
		-webkit-text-stroke-color 0.4s ease,
		transform 0.6s var(--agma-night-ease, ease);
	pointer-events: none;
}

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

.is-style-agma-night-cell:hover {
	transform: translateY(-4px);
	box-shadow: 0 30px 60px -36px var(--wp--preset--color--night-signal-edge);
	background-size: 100% 2px, auto, auto;
}

.is-style-agma-night-cell:hover::before {
	opacity: 1;
}

.is-style-agma-night-cell:hover::after {
	-webkit-text-stroke-color: var(--wp--preset--color--night-signal-edge);
	transform: translateY(-3px);
}

.is-style-agma-night-cell .agma-night-cell-icon {
	position: relative;
	width: 58px;
	height: 58px;
	margin-bottom: auto;
	border-color: var(--wp--preset--color--night-signal-edge);
	border-radius: 18px;
	background: linear-gradient(145deg, var(--wp--preset--color--night-signal-wash), transparent), var(--wp--preset--color--night-panel-2);
	box-shadow: 0 0 0 6px var(--wp--preset--color--night-signal-wash);
	transition:
		transform 0.5s var(--agma-night-ease, ease),
		box-shadow 0.5s var(--agma-night-ease, ease);
}

.is-style-agma-night-cell .agma-night-cell-icon svg {
	width: 26px;
	height: 26px;
}

.is-style-agma-night-cell:hover .agma-night-cell-icon {
	transform: scale(1.06) rotate(-4deg);
	box-shadow: 0 0 0 10px var(--wp--preset--color--night-signal-wash), 0 10px 30px -8px var(--wp--preset--color--night-signal-edge);
}

/* Space between the icon and the text, which sits at the bottom of the card */
.is-style-agma-night-cell .agma-night-cell-icon + * {
	margin-top: 40px;
}

.is-style-agma-night-cell h3 {
	font-size: var(--wp--preset--font-size--night-lead);
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.is-style-agma-night-cell p {
	color: var(--wp--preset--color--night-muted);
	line-height: 1.6;
}

/* Call-to-action card: blue field, a slow breathing glow while on screen */
.is-style-agma-night-cell-cta {
	counter-increment: none;
	justify-content: center;
	background:
		var(--wp--preset--gradient--night-field-blue) padding-box,
		linear-gradient(180deg, var(--wp--preset--color--night-panel-2), var(--wp--preset--color--night-ground-2)) padding-box,
		radial-gradient(320px circle at var(--mx) var(--my), var(--wp--preset--color--night-signal-hi), var(--wp--preset--color--night-signal-edge) 70%) border-box;
}

.is-style-agma-night-cell-cta::after {
	content: none;
}

.is-style-agma-night-cell-cta::before {
	inset: -30%;
	background: radial-gradient(circle at 70% 20%, var(--wp--preset--color--night-signal-wash), transparent 55%);
	opacity: 1;
	animation: agma-night-cell-breathe 6s ease-in-out infinite alternate;
	animation-play-state: paused;
}

.is-style-agma-night-cells.is-in .is-style-agma-night-cell-cta::before {
	animation-play-state: running;
}

.is-style-agma-night-cell-cta:hover {
	background-size: auto;
}

.is-style-agma-night-cell-cta .wp-block-buttons {
	margin-top: 10px;
}

@keyframes agma-night-cell-breathe {
	from { transform: translate(-6%, 4%) scale(0.95); }
	to { transform: translate(6%, -4%) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-night-cell,
	.is-style-agma-night-cell::after,
	.is-style-agma-night-cell .agma-night-cell-icon {
		transition: none;
	}

	.is-style-agma-night-cell:hover,
	.is-style-agma-night-cell:hover::after,
	.is-style-agma-night-cell:hover .agma-night-cell-icon {
		transform: none;
	}

	.is-style-agma-night-cell-cta::before {
		animation: none;
	}
}

/* Reveal: armed by the script only, so without it every card is visible */
.is-style-agma-night-cells.is-armed > .is-style-agma-night-cell {
	opacity: 0;
	translate: 0 28px;
}

.is-style-agma-night-cells.is-armed.is-shown > .is-style-agma-night-cell {
	opacity: 1;
	translate: 0 0;
	transition:
		opacity 0.7s ease calc(var(--i, 0) * 90ms),
		translate 0.9s var(--agma-night-ease, ease) calc(var(--i, 0) * 90ms),
		transform 0.5s var(--agma-night-ease, ease),
		box-shadow 0.5s var(--agma-night-ease, ease),
		background-size 0.7s var(--agma-night-ease, ease);
}

/* Starting price in a cell */
.is-style-agma-night-cell .agma-night-price {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-cell .agma-night-price span {
	font-family: var(--wp--preset--font-family--muller);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-cell .agma-night-price-label {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--night-signal);
}

/* Project without photos yet: its name as a typographic tile */
.is-style-agma-night-work-card .agma-night-work-mark {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	margin-bottom: 22px;
	padding: 24px;
	overflow: hidden;
	background: var(--wp--preset--gradient--night-field-blue), var(--wp--preset--color--night-panel-2);
}

.is-style-agma-night-work-card .agma-night-work-mark::after {
	content: "";
	position: absolute;
	inset: 14px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 14px;
	pointer-events: none;
}

.is-style-agma-night-work-card .agma-night-work-mark span {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: clamp(22px, 2.2vw, 30px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	text-align: center;
	color: var(--wp--preset--color--night-text);
	transition: transform 0.6s var(--agma-night-ease, ease);
}

.is-style-agma-night-work-card:hover .agma-night-work-mark span {
	transform: scale(1.04);
}

/* Client logo strip */
.is-style-agma-night-clients {
	padding: 96px 0 0;
}

@media (max-width: 1100px) {
	.is-style-agma-night-tiles,
	.is-style-agma-night-cells {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.is-style-agma-night-split-hero .agma-project-wall {
		position: relative;
		z-index: 0;
		inset: auto;
		width: auto;
		height: 340px;
		margin-inline: -24px;
		opacity: 1;
		mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
	}

	.is-style-agma-night-split,
	.is-style-agma-night-features {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.is-style-agma-night-orbit {
		max-width: 420px;
		margin-inline: auto;
	}

	.is-style-agma-night-files {
		max-width: 520px;
	}
}

@media (max-width: 640px) {
	.is-style-agma-night-split-hero {
		padding-bottom: 120px;
	}

	/* Long Bulgarian words ("административни") must fit a 360px screen. */
	.is-style-agma-night-split-hero h1 {
		font-size: clamp(21px, 5.6vw, 30px);
		hyphens: auto;
		overflow-wrap: break-word;
	}

	.is-style-agma-night-orbit {
		max-width: 320px;
	}

	.is-style-agma-night-tiles,
	.is-style-agma-night-cells {
		grid-template-columns: minmax(0, 1fr);
	}

	.is-style-agma-night-tile {
		padding: 26px 22px 22px;
	}

	.is-style-agma-night-cell {
		min-height: 0;
		padding: 28px 22px 30px;
	}

	.is-style-agma-night-cell::after {
		top: 22px;
		right: 22px;
		font-size: 38px;
	}

	.is-style-agma-night-cell .agma-night-cell-icon + * {
		margin-top: 28px;
	}

	.is-style-agma-night-feature {
		grid-template-columns: 52px minmax(0, 1fr);
		gap: 16px;
	}

	.is-style-agma-night-feature .agma-night-feature-icon {
		width: 52px;
		height: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-night-orbit.is-in .spin,
	.is-style-agma-night-orbit.is-in .sat,
	.is-style-agma-night-orbit.is-in .mark path,
	.is-style-agma-night-files.is-in .float,
	.is-style-agma-night-files.is-in .mark,
	.is-style-agma-night-files.is-in .big .draw,
	.is-style-agma-night-files.is-in .pop {
		animation: none;
	}

	.is-style-agma-night-tile:hover,
	.is-style-agma-night-tile:focus-within {
		transform: none;
	}
}

/* Guides (Resources group): author and update line, data tables with free column widths */
.is-style-section-night .agma-night-guide-meta {
	margin-top: 18px !important;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--night-dim);
}

.is-style-section-night .agma-night-guide-table tbody th {
	font-size: 16px;
}

@media (min-width: 761px) {
	.is-style-section-night .agma-night-guide-table tbody th {
		width: 26%;
	}

	.is-style-section-night .agma-night-guide-table tbody td:nth-child(2) {
		width: auto;
	}
}

.is-style-section-night .agma-night-guide-table tbody td:nth-child(2) a {
	font-weight: inherit;
}

.is-style-section-night .agma-night-guide-table tbody th a {
	color: var(--wp--preset--color--night-signal);
	text-decoration: none;
}

/* Glass panel around a data table */
.is-style-agma-night-table-panel {
	margin-top: 40px;
	padding: 8px 36px 12px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 28px;
	background:
		linear-gradient(160deg, color-mix(in srgb, var(--wp--preset--color--night-action) 16%, transparent), transparent 42%),
		var(--wp--preset--color--night-panel);
}

.is-style-agma-night-table-panel > .wp-block-table {
	margin: 0;
}

.is-style-agma-night-table-panel table {
	border-top: 0;
}

.is-style-agma-night-table-panel tbody tr:last-child > * {
	border-bottom: 0;
}

/* Example 2: large glass cards */
.is-style-agma-night-glass-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 44px;
}

.is-style-agma-night-glass-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 44px 48px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 28px;
	background:
		radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--wp--preset--color--night-action) 22%, transparent), transparent 60%),
		radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--wp--preset--color--purple) 34%, transparent), transparent 65%),
		var(--wp--preset--color--night-panel);
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.is-style-agma-night-glass-card:hover,
.is-style-agma-night-glass-card:focus-within {
	border-color: var(--wp--preset--color--night-signal-edge);
	transform: translateY(-4px);
}

.is-style-agma-night-glass-card > *,
.is-style-agma-night-glass-card .agma-night-glass-head > * {
	margin: 0;
}

.is-style-agma-night-glass-card .agma-night-glass-head {
	display: flex;
	align-items: center;
	gap: 22px;
}

.is-style-agma-night-glass-card .agma-night-glass-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 64px;
	height: 64px;
	border: 1px solid var(--wp--preset--color--night-signal-edge);
	border-radius: 18px;
	background: var(--wp--preset--color--night-signal-wash);
	color: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-glass-card .agma-night-glass-icon svg,
.is-style-agma-night-grid-cell .agma-night-grid-icon svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.is-style-agma-night-glass-card h3 {
	font-size: clamp(20px, 1.9vw, 27px);
	line-height: 1.2;
}

.is-style-agma-night-glass-card h3 a {
	color: var(--wp--preset--color--night-text);
	text-decoration: none;
}

.is-style-agma-night-glass-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.is-style-agma-night-glass-card .agma-night-glass-text {
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-glass-card .agma-night-glass-foot {
	align-self: flex-start;
	margin-top: auto;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--wp--preset--color--night-signal-wash);
	font-size: 15px;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-glass-card .agma-night-glass-foot strong {
	color: var(--wp--preset--color--night-signal-hi);
}

.is-style-section-night .agma-night-glass-more {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
	margin-top: 32px;
}

.is-style-section-night .agma-night-glass-more > * {
	margin: 0;
}

/* Example 1: glass frame with a one-slide carousel */
.is-style-agma-night-showcase {
	padding: 64px 64px 52px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 44px;
	background:
		radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--wp--preset--color--night-action) 30%, transparent), transparent 70%),
		var(--wp--preset--color--night-panel);
}

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

.is-style-agma-night-showcase .agma-night-showcase-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: end;
	gap: 24px 64px;
	margin-bottom: 44px;
}

.is-style-agma-night-showcase .agma-night-showcase-head > * {
	margin: 0 !important;
}

.is-style-agma-night-showcase .agma-night-showcase-head > :last-child {
	justify-self: end;
	max-width: 52ch;
}

.is-style-agma-night-slide {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: 48px;
	height: 100%;
	box-sizing: border-box;
	padding: 40px;
	border: 1px solid var(--wp--preset--color--white-10);
	border-radius: 28px;
	background: var(--wp--preset--color--white-10);
}

.is-style-agma-night-slide > *,
.is-style-agma-night-slide .agma-night-slide-copy > * {
	margin-block: 0;
}

.is-style-agma-night-slide .agma-night-slide-kind {
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-slide h3 {
	margin-top: 14px;
	font-size: clamp(22px, 2.1vw, 30px);
	line-height: 1.2;
}

.is-style-agma-night-slide h3 a {
	color: var(--wp--preset--color--night-text);
	text-decoration: none;
}

.is-style-agma-night-slide .agma-night-slide-text {
	margin-top: 18px;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-slide .is-style-agma-night-arrow-link {
	margin-top: 26px;
}

.is-style-agma-night-slide .agma-night-slide-visual > * {
	margin: 0;
}

.is-style-agma-night-slide .wp-block-image {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: 20px;
	background: var(--wp--preset--color--night-panel-2);
}

.is-style-agma-night-slide .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.is-style-agma-night-slide .is-style-agma-night-orbit {
	max-width: 380px;
	margin: 0 auto;
}

.is-style-agma-night-showcase > .agma-night-process-ui {
	display: flex;
	align-items: center;
	gap: 32px;
	margin-top: 32px;
}

.is-style-agma-night-showcase > .agma-night-process-ui > * {
	margin: 0;
}

.is-style-agma-night-showcase > .agma-night-process-ui .agma-carousel-arrows {
	gap: 12px;
}

.is-style-agma-night-showcase > .agma-night-process-ui .agma-carousel-arrows__button {
	width: 56px;
	height: 56px;
	border-color: var(--wp--preset--color--white-20);
	background-color: transparent;
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-showcase > .agma-night-process-ui .agma-carousel-arrows__button:hover:not(:disabled) {
	border-color: var(--wp--preset--color--white-50);
	background-color: var(--wp--preset--color--white-10);
}

.is-style-agma-night-showcase > .agma-night-process-ui .agma-carousel-progress {
	flex: 1;
	height: 2px;
}

/* Example 5: icon grid with thin lines */
.is-style-agma-night-icon-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 44px;
	border-top: 1px solid var(--wp--preset--color--night-line);
}

.is-style-agma-night-grid-cell {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 48px 20px 40px;
	border-bottom: 1px solid var(--wp--preset--color--night-line);
	text-align: center;
	transition: background-color 0.3s ease;
}

.is-style-agma-night-grid-cell:not(:nth-child(4n)) {
	border-right: 1px solid var(--wp--preset--color--night-line);
}

.is-style-agma-night-grid-cell:hover,
.is-style-agma-night-grid-cell:focus-within {
	background: var(--wp--preset--color--night-panel);
}

.is-style-agma-night-grid-cell > * {
	margin: 0;
}

.is-style-agma-night-grid-cell .agma-night-grid-icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 22px;
	border-radius: 20px;
	background: var(--wp--preset--color--night-text);
	color: var(--wp--preset--color--night-ink);
	transition: transform 0.3s ease;
}

.is-style-agma-night-grid-cell:hover .agma-night-grid-icon {
	transform: translateY(-4px);
}

.is-style-agma-night-grid-cell .agma-night-grid-icon svg {
	width: 34px;
	height: 34px;
}

.is-style-agma-night-grid-cell h3 {
	font-size: 17px;
}

.is-style-agma-night-grid-cell h3 a {
	color: var(--wp--preset--color--night-text);
	text-decoration: none;
}

.is-style-agma-night-grid-cell h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.is-style-agma-night-grid-cell p {
	margin-top: 6px;
	font-size: 14px;
	color: var(--wp--preset--color--night-dim);
}

/* Checklist cards */
.is-style-agma-night-checks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 40px;
}

.is-style-agma-night-check {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 22px 26px;
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 20px;
	background: var(--wp--preset--color--night-panel);
	transition: border-color 0.3s ease;
}

.is-style-agma-night-check:hover {
	border-color: var(--wp--preset--color--night-signal-edge);
}

.is-style-agma-night-check > * {
	margin: 0;
}

.is-style-agma-night-check .agma-night-check-mark {
	display: grid;
	flex: none;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--wp--preset--color--night-signal-wash);
	font-weight: 700;
	color: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-check p {
	padding-top: 5px;
	font-size: var(--wp--preset--font-size--night-body);
	color: var(--wp--preset--color--night-text);
}

/* Starting price card next to the "In short" rows */
.is-style-section-night .agma-night-price-visual {
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 10px;
	width: 100%;
	max-width: 460px;
	aspect-ratio: 1;
	margin: 0 0 0 auto;
	padding: 40px;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 50%;
	background:
		radial-gradient(closest-side, color-mix(in srgb, var(--wp--preset--color--night-action) 34%, transparent), transparent),
		radial-gradient(70% 70% at 90% 90%, color-mix(in srgb, var(--wp--preset--color--purple) 50%, transparent), transparent 70%),
		var(--wp--preset--color--night-panel);
	box-shadow: 0 0 0 28px var(--wp--preset--color--white-10);
	text-align: center;
}

.is-style-section-night .agma-night-price-visual .agma-night-pv-label {
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--night-dim);
}

.is-style-section-night .agma-night-price-visual .agma-night-pv-price {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: clamp(32px, 3.6vw, 54px);
	font-weight: 600;
	line-height: 1.05;
	color: var(--wp--preset--color--night-text);
}

.is-style-section-night .agma-night-price-visual .agma-night-pv-unit {
	color: var(--wp--preset--color--night-signal-hi);
}

.is-style-section-night .agma-night-price-visual .agma-night-pv-scope {
	max-width: 24ch;
	margin-top: 10px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--wp--preset--color--white-10);
	font-size: 14px;
	color: var(--wp--preset--color--night-muted);
}

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

	.is-style-agma-night-grid-cell:not(:nth-child(4n)) {
		border-right: 0;
	}

	.is-style-agma-night-grid-cell:nth-child(odd) {
		border-right: 1px solid var(--wp--preset--color--night-line);
	}

	.is-style-agma-night-slide {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.is-style-agma-night-slide .agma-night-slide-visual {
		order: -1;
	}
}

@media (max-width: 760px) {
	.is-style-agma-night-glass-cards,
	.is-style-agma-night-checks {
		grid-template-columns: minmax(0, 1fr);
	}

	.is-style-agma-night-glass-card {
		padding: 30px 26px;
	}

	.is-style-agma-night-glass-card .agma-night-glass-icon {
		width: 52px;
		height: 52px;
	}

	.is-style-agma-night-showcase {
		padding: 32px 18px 28px;
		border-radius: 28px;
	}

	.is-style-agma-night-showcase .agma-night-showcase-head {
		grid-template-columns: minmax(0, 1fr);
		margin-bottom: 28px;
	}

	.is-style-agma-night-showcase .agma-night-showcase-head > :last-child {
		justify-self: start;
	}

	.is-style-agma-night-slide {
		padding: 20px;
	}

	.is-style-agma-night-table-panel {
		padding: 4px 20px;
		border-radius: 22px;
	}

	.is-style-agma-night-grid-cell {
		padding: 32px 12px 28px;
	}

	.is-style-section-night .agma-night-price-visual {
		max-width: 300px;
		margin: 24px auto 0;
		box-shadow: 0 0 0 16px var(--wp--preset--color--white-10);
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-night-glass-card:hover,
	.is-style-agma-night-glass-card:focus-within,
	.is-style-agma-night-grid-cell:hover .agma-night-grid-icon {
		transform: none;
	}
}

/* Grid children of the Resources sections: no flow spacing between grid items */
.is-style-agma-night-glass-cards > *,
.is-style-agma-night-checks > *,
.is-style-agma-night-icon-grid > * {
	margin-block: 0 !important;
}

/* Team grid of the /za-nas/ekip/ page: Query Loop over the team members */
.is-style-section-night .agma-night-people {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-style-section-night .agma-night-people > li {
	display: flex;
	margin: 0;
}

.is-style-section-night .agma-night-person {
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	padding-bottom: 26px;
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 20px;
	background: var(--wp--preset--color--night-panel);
	transition: border-color 0.25s ease;
}

.is-style-section-night .agma-night-person:hover {
	border-color: var(--wp--preset--color--night-signal-edge);
}

.is-style-section-night .agma-night-person > * {
	margin-block: 0;
}

.is-style-section-night .agma-night-person > :not(.wp-block-post-featured-image) {
	margin-inline: 24px;
}

.is-style-section-night .agma-night-person .wp-block-post-featured-image {
	aspect-ratio: 4 / 5;
	margin-bottom: 22px;
	overflow: hidden;
	background: var(--wp--preset--color--night-panel-2);
}

.is-style-section-night .agma-night-person .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.is-style-section-night .agma-night-person .agma-night-person-role {
	margin-top: 6px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--wp--preset--color--night-signal);
}

.is-style-section-night .agma-night-person .agma-night-person-bio {
	margin-top: 12px;
	font-size: 15.5px;
	color: var(--wp--preset--color--night-muted);
}

.is-style-section-night .agma-night-person .agma-night-person-bio > * {
	margin-block: 0;
}

@media (max-width: 1024px) {
	.is-style-section-night .agma-night-people {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.is-style-section-night .agma-night-people {
		grid-template-columns: minmax(0, 1fr);
	}

	.is-style-section-night .agma-night-person .wp-block-post-featured-image {
		aspect-ratio: 1 / 1;
	}
}

/* AI group: moving data along the highlighted connection, bars growing upwards */
.is-style-agma-night-viz .flowline {
	opacity: 0;
}

.is-style-agma-night-viz .g.is-active .flowline {
	opacity: 0.9;
	animation: agma-night-flow 1.1s linear infinite;
}

.is-style-agma-night-viz .grow-y {
	transform-box: fill-box;
	transform-origin: 50% 100%;
}

.is-style-agma-night-viz .g.is-active .grow-y {
	animation: agma-night-grow-y 0.8s var(--agma-night-ease, ease) both;
	animation-delay: var(--d, 0s);
}

@keyframes agma-night-flow { to { stroke-dashoffset: -20; } }
@keyframes agma-night-grow-y { from { transform: scaleY(0); } }

/* AI group: demonstration in the glass frame (example 1), lines appear one after another */
.is-style-section-night .agma-night-demo-frame .agma-night-showcase-head h2 {
	margin: 0;
}

.is-style-section-night .agma-night-demo-frame .agma-night-showcase-head p {
	color: var(--wp--preset--color--night-muted);
}

.is-style-section-night .agma-night-demo {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: start;
	gap: 48px;
}

.is-style-section-night .agma-night-demo > * {
	margin-block: 0;
}

.is-style-section-night .agma-night-demo-window {
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--white-10);
	border-radius: 28px;
	background: var(--wp--preset--color--white-10);
}

.is-style-section-night .agma-night-demo-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 16px 24px;
	border-bottom: 1px solid var(--wp--preset--color--night-line);
	font-size: 14px;
	color: var(--wp--preset--color--night-dim);
}

.is-style-section-night .agma-night-demo-bar::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	margin-right: 34px;
	border-radius: 50%;
	background: var(--wp--preset--color--night-signal);
	box-shadow: 16px 0 0 var(--wp--preset--color--night-line-2), 32px 0 0 var(--wp--preset--color--night-line-2);
}

.is-style-section-night .agma-night-demo-log {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px 24px 32px;
}

.is-style-section-night .agma-night-demo-line {
	max-width: 86%;
	margin: 0;
	padding: 14px 18px;
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 20px 20px 20px 6px;
	background: var(--wp--preset--color--night-panel-2);
}

.is-style-section-night .agma-night-demo-line > * {
	margin: 0;
}

.is-style-section-night .agma-night-demo-who {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--night-dim);
}

.is-style-section-night .agma-night-demo-text {
	margin-top: 4px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--wp--preset--color--night-text);
}

.is-style-section-night .agma-night-demo-line.is-user {
	align-self: flex-end;
	border-color: transparent;
	border-radius: 20px 20px 6px 20px;
	background: var(--wp--preset--color--night-action);
}

.is-style-section-night .agma-night-demo-line.is-user .agma-night-demo-who {
	color: var(--wp--preset--color--night-signal-hi);
}

.is-style-section-night .agma-night-demo-line.is-ai {
	border-color: var(--wp--preset--color--night-signal-edge);
	background:
		radial-gradient(120% 120% at 0% 0%, var(--wp--preset--color--night-signal-wash), transparent 70%),
		var(--wp--preset--color--night-panel-2);
}

.is-style-section-night .agma-night-demo-line.is-ai .agma-night-demo-who,
.is-style-section-night .agma-night-demo-line.is-source .agma-night-demo-who {
	color: var(--wp--preset--color--night-signal);
}

.is-style-section-night .agma-night-demo-line.is-source {
	padding: 10px 16px;
	border-style: dashed;
	border-radius: 14px;
	background: transparent;
}

.is-style-section-night .agma-night-demo-line.is-source .agma-night-demo-text {
	font-size: 14.5px;
	color: var(--wp--preset--color--night-muted);
}

.is-style-section-night .agma-night-demo-line.is-step {
	max-width: none;
	padding-left: 46px;
	border-radius: 14px;
	background:
		radial-gradient(circle at 23px 50%, var(--wp--preset--color--night-signal) 0 5px, transparent 6px),
		var(--wp--preset--color--night-panel-2);
}

.is-style-section-night .agma-night-demo-line.is-human {
	max-width: none;
	border-color: var(--wp--preset--color--night-line-2);
	border-radius: 14px;
	background:
		radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--wp--preset--color--purple) 55%, transparent), transparent 70%),
		var(--wp--preset--color--night-panel-2);
}

.is-style-section-night .agma-night-demo-notes {
	margin: 0;
}

.is-style-section-night .agma-night-demo-note {
	margin: 28px 0 0;
	font-size: 14px;
	color: var(--wp--preset--color--night-dim);
}

/* The script arms the window (lines hidden) and plays it once on screen; without script every line shows. */
.is-style-section-night .agma-night-demo-window.is-armed .agma-night-demo-line {
	opacity: 0;
	transform: translateY(14px);
}

.is-style-section-night .agma-night-demo-window.is-playing .agma-night-demo-line {
	animation: agma-night-demo-in 0.5s var(--agma-night-ease, ease) forwards;
	animation-delay: calc(var(--n, 0) * 0.9s + 0.2s);
}

.is-style-section-night .agma-night-demo-window.is-playing .agma-night-demo-line.is-ai .agma-night-demo-text {
	animation: agma-night-demo-type 0.9s steps(1) both;
	animation-delay: calc(var(--n, 0) * 0.9s + 0.2s);
}

.is-style-section-night .agma-night-demo-line:nth-child(2) { --n: 1; }
.is-style-section-night .agma-night-demo-line:nth-child(3) { --n: 2; }
.is-style-section-night .agma-night-demo-line:nth-child(4) { --n: 3; }
.is-style-section-night .agma-night-demo-line:nth-child(5) { --n: 4; }
.is-style-section-night .agma-night-demo-line:nth-child(6) { --n: 5; }
.is-style-section-night .agma-night-demo-line:nth-child(7) { --n: 6; }

@keyframes agma-night-demo-in {
	to {
		opacity: 1;
		transform: none;
	}
}

/* An AI line appears empty and gets its text a moment later, as if it were being written. */
@keyframes agma-night-demo-type {
	0% {
		color: transparent;
		text-shadow: none;
	}

	100% {
		color: var(--wp--preset--color--night-text);
	}
}

@media (max-width: 1024px) {
	.is-style-section-night .agma-night-demo {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

@media (max-width: 600px) {
	.is-style-section-night .agma-night-demo-log {
		padding: 20px 14px 24px;
	}

	.is-style-section-night .agma-night-demo-line {
		max-width: 94%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-night-viz .g.is-active .flowline,
	.is-style-agma-night-viz .g.is-active .grow-y,
	.is-style-section-night .agma-night-demo-window.is-playing .agma-night-demo-line,
	.is-style-section-night .agma-night-demo-window.is-playing .agma-night-demo-line.is-ai .agma-night-demo-text {
		animation: none;
	}

	.is-style-section-night .agma-night-demo-window.is-armed .agma-night-demo-line {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------------ */
/* Project pages (/projects/<slug>/): hero with the project film in a  */
/* browser frame and floating result chips, facts row, glass stats     */
/* that count up, split rows with phone / screen frames, screen wall,  */
/* technologies, quote, call to action. Motion stops with reduced      */
/* motion; the drifting phones and wall use agma-core motion classes.  */
/* ------------------------------------------------------------------ */

.is-style-agma-night-pj-hero {
	padding-bottom: 120px;
	text-align: left;
}

.is-style-agma-night-pj-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center;
	gap: 64px;
}

.is-style-agma-night-pj-hero-grid > *,
.is-style-agma-night-pj-hero .agma-night-pj-hero-text > * {
	margin-block: 0;
}

.is-style-agma-night-pj-hero .is-style-agma-night-crumbs {
	justify-content: flex-start;
}

.is-style-agma-night-pj-hero .is-style-agma-night-kicker {
	margin-top: 36px;
}

/* The reset above outranks an element selector, so the title spacing goes through the text column. */
.is-style-agma-night-pj-hero .agma-night-pj-hero-text > h1 {
	margin-top: 18px;
}

.is-style-agma-night-pj-hero .agma-night-pj-hero-text > .is-style-agma-night-crumbs + h1 {
	margin-top: 32px;
}

/* At most three to four lines: smaller size, balanced lines */
.is-style-agma-night-pj-hero h1 {
	font-size: clamp(26px, 2.4vw, 36px);
	line-height: 1.14;
	text-wrap: balance;
}

.is-style-agma-night-pj-hero .is-style-agma-night-lead {
	max-width: 54ch;
	margin: 26px 0 0 !important;
}

.is-style-agma-night-pj-hero .wp-block-buttons {
	justify-content: flex-start;
	margin-top: 34px;
}

/* Browser frame with the project film */
.is-style-agma-night-pj-stage {
	position: relative;
	perspective: 1600px;
}

.is-style-agma-night-pj-stage > * {
	margin: 0;
}

.is-style-agma-night-pj-browser {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 20px;
	background: var(--wp--preset--color--night-panel);
	box-shadow: 0 40px 120px -40px color-mix(in srgb, var(--wp--preset--color--night-action) 55%, transparent);
	transform: rotateY(-7deg) rotateX(3deg);
	transform-origin: 30% 50%;
	transition: transform 0.8s ease;
	animation: agma-night-pj-rise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.is-style-agma-night-pj-stage:hover .is-style-agma-night-pj-browser {
	transform: rotateY(0deg) rotateX(0deg);
}

.is-style-agma-night-pj-browser > * {
	margin: 0;
}

.is-style-agma-night-pj-browser .agma-night-pj-bar {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--wp--preset--color--night-line);
	background: var(--wp--preset--color--night-panel-2);
}

.is-style-agma-night-pj-browser .agma-night-pj-bar span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--night-line-2);
}

.is-style-agma-night-pj-browser .agma-night-pj-bar b {
	flex: 1;
	margin-left: 12px;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--wp--preset--color--night-ground-2);
	font-size: 13px;
	font-weight: 400;
	color: var(--wp--preset--color--night-muted);
	text-align: center;
}

.is-style-agma-night-pj-browser .wp-block-video,
.is-style-agma-night-pj-browser .wp-block-image {
	margin: 0;
	aspect-ratio: 16 / 10;
	background: var(--wp--preset--color--night-ground-2);
}

.is-style-agma-night-pj-browser video,
.is-style-agma-night-pj-browser img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

/* Floating result chips */
.is-style-agma-night-pj-chip {
	position: absolute;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 150px;
	padding: 14px 18px;
	border: 1px solid var(--wp--preset--color--night-signal-edge);
	border-radius: 18px;
	background: color-mix(in srgb, var(--wp--preset--color--night-panel) 78%, transparent);
	backdrop-filter: blur(14px);
	box-shadow: 0 18px 50px -20px var(--wp--preset--color--night-ground);
	animation: agma-night-pj-float 6s ease-in-out infinite;
}

.is-style-agma-night-pj-chip > * {
	margin: 0;
}

.is-style-agma-night-pj-chip.agma-pj-chip-1 {
	bottom: -26px;
	left: -28px;
}

.is-style-agma-night-pj-chip.agma-pj-chip-2 {
	top: 64px;
	right: -24px;
	animation-delay: -3s;
}

.is-style-agma-night-pj-chip .agma-night-pj-chip-value {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--wp--preset--color--night-signal-hi);
}

.is-style-agma-night-pj-chip .agma-night-pj-chip-label {
	max-width: 18ch;
	font-size: 13px;
	line-height: 1.35;
	color: var(--wp--preset--color--night-muted);
}

@keyframes agma-night-pj-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

@keyframes agma-night-pj-rise {
	from {
		opacity: 0;
		transform: translateY(40px) rotateY(-14deg) rotateX(6deg);
	}
}

/*
 * Facts row: a bento grid of glass tiles with an icon badge. The icon comes from the class agma-pj-fact-<key> of each
 * tile (client, type, location, year, work, site); a tile without a key shows a generic spark. ::before is the
 * gradient badge, ::after the icon (a mask filled with the text colour); both move only on hover or keyboard focus.
 * Desktop: four short facts on the first row, the two long ones (tech stack, domain) share the second row, so long
 * values stay on one line instead of stretching every tile.
 */
.is-style-agma-night-pj-facts {
	--agma-pj-icon-client: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E");
	--agma-pj-icon-type: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 8l9 5 9-5-9-5Z'/%3E%3Cpath d='m3 13 9 5 9-5'/%3E%3Cpath d='m3 17.5 9 4.5 9-4.5'/%3E%3C/svg%3E");
	--agma-pj-icon-location: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.6'/%3E%3C/svg%3E");
	--agma-pj-icon-year: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3Cpath d='m9 15 2 2 4-4'/%3E%3C/svg%3E");
	--agma-pj-icon-work: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 7-5 5 5 5M16 7l5 5-5 5M13.5 4l-3 16'/%3E%3C/svg%3E");
	--agma-pj-icon-site: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3Z'/%3E%3C/svg%3E");
	--agma-pj-icon-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4M6 6l2.5 2.5M15.5 15.5 18 18M18 6l-2.5 2.5M8.5 15.5 6 18'/%3E%3C/svg%3E");
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 96px;
}

/* Core adds a block gap margin to every tile but the first: it pushed tiles 2-6 down and made the first look taller. */
.is-style-agma-night-pj-facts > .is-style-agma-night-pj-fact {
	margin-block: 0;
}

.is-style-agma-night-pj-fact.agma-pj-fact-work,
.is-style-agma-night-pj-fact.agma-pj-fact-site {
	grid-column: span 2;
}

/* Horizontal tile: badge on the left, label over value on the right, centred on the row height. */
.is-style-agma-night-pj-fact {
	--agma-pj-icon: var(--agma-pj-icon-default);
	--agma-pj-motion: agma-pj-icon-spin;
	--agma-pj-badge: 46px;
	display: grid;
	grid-template-columns: var(--agma-pj-badge) minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 16px;
	align-content: center;
	min-width: 0;
	padding: 18px 22px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 18px;
	background:
		linear-gradient(90deg, var(--wp--preset--color--night-signal), var(--wp--preset--color--purple)) 0 0 / 0% 2px no-repeat,
		radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--wp--preset--color--night-action) 16%, transparent), transparent 60%),
		color-mix(in srgb, var(--wp--preset--color--night-panel) 82%, transparent);
	backdrop-filter: blur(10px);
	transition: border-color 0.3s ease, transform 0.3s ease, background-size 0.45s ease;
}

/* Hover: lift, edge glow and a signal line drawn along the top edge. */
.is-style-agma-night-pj-fact:hover {
	border-color: var(--wp--preset--color--night-signal-edge);
	background-size: 100% 2px, auto, auto;
	transform: translateY(-3px);
}

/* Badge and icon share the first column across both text rows. */
.is-style-agma-night-pj-fact::before,
.is-style-agma-night-pj-fact::after {
	content: "";
	grid-row: 1 / span 2;
	grid-column: 1;
	align-self: center;
	width: var(--agma-pj-badge);
	height: var(--agma-pj-badge);
}

.is-style-agma-night-pj-fact::before {
	border-radius: 14px;
	background: linear-gradient(135deg, var(--wp--preset--color--night-action), var(--wp--preset--color--purple));
	box-shadow: 0 0 0 0 var(--wp--preset--color--night-signal-edge);
}

.is-style-agma-night-pj-fact::after {
	background: var(--wp--preset--color--night-text);
	-webkit-mask: var(--agma-pj-icon) center / 48% 48% no-repeat;
	mask: var(--agma-pj-icon) center / 48% 48% no-repeat;
	pointer-events: none;
}

.is-style-agma-night-pj-fact.agma-pj-fact-client {
	--agma-pj-icon: var(--agma-pj-icon-client);
	--agma-pj-motion: agma-pj-icon-bob;
}

.is-style-agma-night-pj-fact.agma-pj-fact-type {
	--agma-pj-icon: var(--agma-pj-icon-type);
	--agma-pj-motion: agma-pj-icon-stack;
}

.is-style-agma-night-pj-fact.agma-pj-fact-location {
	--agma-pj-icon: var(--agma-pj-icon-location);
	--agma-pj-motion: agma-pj-icon-drop;
}

.is-style-agma-night-pj-fact.agma-pj-fact-year {
	--agma-pj-icon: var(--agma-pj-icon-year);
	--agma-pj-motion: agma-pj-icon-flip;
}

.is-style-agma-night-pj-fact.agma-pj-fact-work {
	--agma-pj-icon: var(--agma-pj-icon-work);
	--agma-pj-motion: agma-pj-icon-tilt;
}

.is-style-agma-night-pj-fact.agma-pj-fact-site {
	--agma-pj-icon: var(--agma-pj-icon-site);
	--agma-pj-motion: agma-pj-icon-turn;
}

/* The icon moves only while the tile is hovered or its link has keyboard focus. */
.is-style-agma-night-pj-fact:hover::before,
.is-style-agma-night-pj-fact:hover::after,
.is-style-agma-night-pj-fact:focus-within::before,
.is-style-agma-night-pj-fact:focus-within::after {
	animation: var(--agma-pj-motion) 1.4s ease-in-out infinite;
}

/* The halo belongs to the badge only. */
.is-style-agma-night-pj-fact:hover::before,
.is-style-agma-night-pj-fact:focus-within::before {
	animation-name: var(--agma-pj-motion), agma-pj-icon-halo;
}

.is-style-agma-night-pj-fact > * {
	grid-column: 2;
	margin: 0;
}

.is-style-agma-night-pj-fact .agma-night-pj-fact-label {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--night-signal-hi);
}

.is-style-agma-night-pj-fact .agma-night-pj-fact-value {
	margin-top: 6px;
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
	overflow-wrap: break-word;
	hyphens: auto;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-pj-fact a {
	color: var(--wp--preset--color--night-text);
	text-decoration: none;
	background: linear-gradient(90deg, var(--wp--preset--color--night-signal), var(--wp--preset--color--purple)) 0 100% / 100% 1px no-repeat;
	transition: color 0.3s ease;
}

.is-style-agma-night-pj-fact a::after {
	content: " \2197";
	color: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-pj-fact a:hover,
.is-style-agma-night-pj-fact a:focus-visible {
	color: var(--wp--preset--color--night-signal-hi);
}

@keyframes agma-pj-icon-halo {
	0% {
		box-shadow: 0 0 0 0 var(--wp--preset--color--night-signal-edge);
	}

	70%,
	100% {
		box-shadow: 0 0 0 10px transparent;
	}
}

@keyframes agma-pj-icon-bob {
	0%,
	100% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-5px);
	}
}

@keyframes agma-pj-icon-stack {
	0%,
	100% {
		transform: scale(1);
	}

	30% {
		transform: scale(1.1, 0.9);
	}

	60% {
		transform: scale(0.95, 1.07);
	}
}

@keyframes agma-pj-icon-drop {
	0%,
	100% {
		transform: translateY(0);
	}

	30% {
		transform: translateY(-8px);
	}

	55% {
		transform: translateY(0);
	}

	75% {
		transform: translateY(-3px);
	}
}

@keyframes agma-pj-icon-flip {
	0%,
	100% {
		transform: perspective(200px) rotateX(0);
	}

	50% {
		transform: perspective(200px) rotateX(180deg);
	}
}

@keyframes agma-pj-icon-tilt {
	0%,
	100% {
		transform: rotate(0);
	}

	25% {
		transform: rotate(-10deg);
	}

	60% {
		transform: rotate(10deg);
	}
}

@keyframes agma-pj-icon-turn {
	from {
		transform: perspective(200px) rotateY(0);
	}

	to {
		transform: perspective(200px) rotateY(360deg);
	}
}

@keyframes agma-pj-icon-spin {
	from {
		transform: rotate(0);
	}

	to {
		transform: rotate(90deg);
	}
}

/* Tablet: two columns; the long facts take a full row. */
@media (max-width: 1100px) {
	.is-style-agma-night-pj-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Phone: compact tiles, badge above the text so two short facts fit side by side. */
@media (max-width: 640px) {
	.is-style-agma-night-pj-facts {
		gap: 10px;
		margin-top: 72px;
	}

	.is-style-agma-night-pj-fact {
		--agma-pj-badge: 38px;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		align-content: start;
		padding: 16px;
	}

	.is-style-agma-night-pj-fact::before,
	.is-style-agma-night-pj-fact::after {
		grid-row: 1;
		align-self: start;
	}

	.is-style-agma-night-pj-fact::before {
		border-radius: 12px;
	}

	.is-style-agma-night-pj-fact > * {
		grid-column: 1;
	}

	.is-style-agma-night-pj-fact .agma-night-pj-fact-label {
		margin-top: 14px;
	}

	.is-style-agma-night-pj-fact .agma-night-pj-fact-value {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-night-pj-fact:hover::before,
	.is-style-agma-night-pj-fact:hover::after,
	.is-style-agma-night-pj-fact:focus-within::before,
	.is-style-agma-night-pj-fact:focus-within::after {
		animation: none;
	}

	.is-style-agma-night-pj-fact {
		transition: none;
	}
}

/* About + stats */
.is-style-agma-night-pj-about-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 64px;
	align-items: start;
}

.is-style-agma-night-pj-about-grid > *,
.is-style-agma-night-pj-about-grid .agma-night-pj-about-head > * {
	margin: 0;
}

.is-style-agma-night-pj-about {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: clamp(19px, 1.7vw, 25px);
	font-weight: 400;
	line-height: 1.5;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-pj-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-top: 72px;
}

.is-style-agma-night-pj-stats.agma-pj-three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 64px;
}

/* Core adds a block gap margin to every card but the first, which pushed cards 2-4 below the first one. */
.is-style-agma-night-pj-stats > .is-style-agma-night-pj-stat {
	margin-block: 0;
}

.is-style-agma-night-pj-stat {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 32px 28px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 24px;
	background:
		radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--wp--preset--color--night-action) 20%, transparent), transparent 60%),
		radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--wp--preset--color--purple) 28%, transparent), transparent 65%),
		var(--wp--preset--color--night-panel);
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.is-style-agma-night-pj-stat:hover {
	border-color: var(--wp--preset--color--night-signal-edge);
	transform: translateY(-4px);
}

.is-style-agma-night-pj-stat > * {
	margin: 0;
}

.is-style-agma-night-pj-stat .agma-night-pj-value {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: clamp(30px, 2.9vw, 46px);
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	background: linear-gradient(120deg, var(--wp--preset--color--night-text), var(--wp--preset--color--night-signal-hi));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-variant-numeric: tabular-nums;
}

.is-style-agma-night-pj-stat .agma-night-pj-label {
	font-size: 15px;
	line-height: 1.45;
	color: var(--wp--preset--color--night-muted);
}

/* Before / after frame */
.is-style-agma-night-pj-frame {
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 24px;
	background: var(--wp--preset--color--night-panel);
}

.is-style-agma-night-pj-frame > * {
	margin: 0;
}

/* Text + media rows */
.is-style-agma-night-pj-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 80px;
}

.is-style-agma-night-pj-split.agma-pj-media-narrow {
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
}

.is-style-agma-night-pj-split.agma-pj-reverse > :first-child {
	order: 2;
}

.is-style-agma-night-pj-split > *,
.is-style-agma-night-pj-split .agma-night-pj-split-text > *,
.is-style-agma-night-pj-split .agma-night-pj-copy > * {
	margin-block: 0;
}

.is-style-agma-night-pj-split h2 {
	margin-top: 16px !important;
	font-size: clamp(26px, 2.6vw, 40px);
	text-wrap: balance;
}

.is-style-agma-night-pj-split .agma-night-pj-copy {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 24px;
	font-size: var(--wp--preset--font-size--night-lead);
	line-height: 1.6;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-pj-split .is-style-agma-night-arrow-link {
	margin-top: 28px;
}

.is-style-agma-night-pj-split .is-style-agma-night-checks {
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin-top: 32px;
}

.is-style-agma-night-pj-split .is-style-agma-night-check {
	padding: 16px 20px;
}

/* Phone pair on dark ground */
.is-style-agma-night-pj-phones img {
	border-color: var(--wp--preset--color--night-panel-2) !important;
	box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--wp--preset--color--night-action) 45%, transparent);
}

/* Video in a phone frame */
.is-style-agma-night-pj-phone {
	width: 100%;
	max-width: 330px;
	margin-inline: auto;
	padding: 10px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 44px;
	background: var(--wp--preset--color--night-panel-2);
	box-shadow: 0 40px 100px -40px color-mix(in srgb, var(--wp--preset--color--purple) 70%, transparent);
}

.is-style-agma-night-pj-phone .wp-block-video,
.is-style-agma-night-pj-screen .wp-block-video {
	margin: 0;
}

.is-style-agma-night-pj-phone video {
	display: block;
	width: 100%;
	border-radius: 34px;
}

/* Video in a screen frame */
.is-style-agma-night-pj-screen {
	overflow: hidden;
	padding: 10px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 26px;
	background: var(--wp--preset--color--night-panel-2);
	box-shadow: 0 40px 100px -40px color-mix(in srgb, var(--wp--preset--color--night-action) 55%, transparent);
}

.is-style-agma-night-pj-screen video {
	display: block;
	width: 100%;
	border-radius: 18px;
}

/* A screenshot instead of a video in the phone or screen frame */
.is-style-agma-night-pj-phone .wp-block-image,
.is-style-agma-night-pj-screen .wp-block-image {
	margin: 0;
}

.is-style-agma-night-pj-phone img,
.is-style-agma-night-pj-screen img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
}

.is-style-agma-night-pj-phone img {
	border-radius: 34px;
}

/* Screen wall: the production wall, faded into the night ground at the edges */
.is-style-agma-night-pj-wall {
	min-height: 900px;
	margin-top: 8px;
	-webkit-mask-image: linear-gradient(180deg, transparent, var(--wp--preset--color--night-ground) 14%, var(--wp--preset--color--night-ground) 86%, transparent);
	mask-image: linear-gradient(180deg, transparent, var(--wp--preset--color--night-ground) 14%, var(--wp--preset--color--night-ground) 86%, transparent);
}

.is-style-agma-night-pj-wall img {
	border-radius: 20px !important;
	box-shadow: 0 20px 60px -20px var(--wp--preset--color--night-ground) !important;
}

/* Technologies */
.is-style-agma-night-pj-tech-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: 64px;
}

.is-style-agma-night-pj-tech-grid > *,
.is-style-agma-night-pj-tech-grid .is-style-agma-night-sec-head {
	margin: 0;
}

.is-style-agma-night-pj-tech .wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.is-style-agma-night-pj-tech .wp-block-post-terms > span:not(.wp-block-post-terms__separator) {
	padding: 12px 20px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 999px;
	background: var(--wp--preset--color--night-panel);
	font-size: 15px;
	color: var(--wp--preset--color--night-text);
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.is-style-agma-night-pj-tech .wp-block-post-terms > span:not(.wp-block-post-terms__separator):hover {
	border-color: var(--wp--preset--color--night-signal-edge);
	background: var(--wp--preset--color--night-signal-wash);
}

/* Quote */
.is-style-agma-night-pj-quote {
	position: relative;
	max-width: 980px;
	margin-inline: auto;
	padding: 72px 80px 64px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 32px;
	background:
		radial-gradient(80% 90% at 0% 0%, color-mix(in srgb, var(--wp--preset--color--purple) 30%, transparent), transparent 60%),
		radial-gradient(80% 80% at 100% 100%, color-mix(in srgb, var(--wp--preset--color--night-action) 24%, transparent), transparent 65%),
		var(--wp--preset--color--night-panel);
}

.is-style-agma-night-pj-quote > * {
	margin: 0;
}

.is-style-agma-night-pj-quote .agma-night-pj-mark {
	position: absolute;
	top: 18px;
	left: 44px;
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 140px;
	line-height: 1;
	color: var(--wp--preset--color--night-signal);
	opacity: 0.5;
}

.is-style-agma-night-pj-quote-text {
	margin: 0;
	padding: 0;
	border: 0;
}

.is-style-agma-night-pj-quote-text p {
	margin: 0;
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: clamp(18px, 1.6vw, 24px);
	line-height: 1.55;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-pj-quote-text cite {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 32px;
	font-size: 17px;
	font-style: normal;
	font-weight: 600;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-pj-quote-text cite span {
	font-weight: 400;
	color: var(--wp--preset--color--night-muted);
}

/* Call to action */
.is-style-agma-night-pj-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	padding: 88px 40px;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 36px;
	background:
		radial-gradient(60% 120% at 50% 0%, color-mix(in srgb, var(--wp--preset--color--night-action) 38%, transparent), transparent 70%),
		var(--wp--preset--color--night-panel);
	text-align: center;
}

.is-style-agma-night-pj-cta > * {
	margin: 0;
}

.is-style-agma-night-pj-cta h2 {
	max-width: 22ch;
	text-wrap: balance;
}

.is-style-agma-night-pj-cta .is-style-agma-night-lead {
	max-width: 58ch;
	/* The base lead rule pins the lead to the left edge (!important); the CTA is centred. */
	margin-inline: auto !important;
	text-align: center;
}

.is-style-agma-night-pj-cta .agma-night-pj-cta-links {
	font-size: 15px;
	color: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-pj-cta .agma-night-pj-cta-links a {
	color: var(--wp--preset--color--night-muted);
}

@media (max-width: 1100px) {
	.is-style-agma-night-pj-hero-grid,
	.is-style-agma-night-pj-about-grid,
	.is-style-agma-night-pj-tech-grid,
	.is-style-agma-night-pj-split,
	.is-style-agma-night-pj-split.agma-pj-media-narrow {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.is-style-agma-night-pj-split.agma-pj-reverse > :first-child {
		order: 0;
	}

	.is-style-agma-night-pj-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.is-style-agma-night-pj-browser {
		transform: none;
	}

	.is-style-agma-night-pj-chip.agma-pj-chip-1 {
		left: 12px;
	}

	.is-style-agma-night-pj-chip.agma-pj-chip-2 {
		right: 12px;
	}
}

@media (max-width: 640px) {
	.is-style-agma-night-pj-hero {
		padding-bottom: 72px;
	}

	/* Long Bulgarian words ("гастроентерология") must fit a 360px screen. */
	.is-style-agma-night-pj-hero h1 {
		font-size: clamp(20px, 5.2vw, 30px);
		hyphens: auto;
		overflow-wrap: break-word;
	}

	.is-style-agma-night-pj-stats,
	.is-style-agma-night-pj-stats.agma-pj-three {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		margin-top: 48px;
	}

	.is-style-agma-night-pj-stat {
		padding: 24px 22px;
	}

	.is-style-agma-night-pj-about {
		font-size: 17px;
		line-height: 1.55;
	}

	.is-style-agma-night-pj-chip {
		min-width: 0;
		padding: 10px 14px;
	}

	.is-style-agma-night-pj-chip .agma-night-pj-chip-value {
		font-size: 19px;
	}

	.is-style-agma-night-pj-chip.agma-pj-chip-2 {
		display: none;
	}

	.is-style-agma-night-pj-wall {
		min-height: 560px;
	}

	.is-style-agma-night-pj-quote {
		padding: 64px 26px 40px;
		border-radius: 24px;
	}

	.is-style-agma-night-pj-quote .agma-night-pj-mark {
		left: 22px;
		font-size: 100px;
	}

	.is-style-agma-night-pj-cta {
		padding: 56px 22px;
		border-radius: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-night-pj-browser,
	.is-style-agma-night-pj-chip {
		animation: none;
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* Projects archive (/projects/): hero with a reel of live sites,      */
/* type filter, project cards, other live sites, globe.                */
/* ------------------------------------------------------------------ */

.is-style-agma-night-pj-archive-hero {
	padding-bottom: 96px;
	overflow-x: clip;
}

.is-style-agma-night-pj-archive-hero h1 {
	max-width: 18ch;
	margin-inline: auto;
	text-wrap: balance;
}

.is-style-agma-night-pj-reel {
	margin-top: 88px !important;
	transform: rotate(-3deg) scale(1.04);
	-webkit-mask-image: linear-gradient(90deg, transparent, var(--wp--preset--color--night-ground) 12%, var(--wp--preset--color--night-ground) 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, var(--wp--preset--color--night-ground) 12%, var(--wp--preset--color--night-ground) 88%, transparent);
}

.is-style-agma-night-pj-reel img {
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 16px;
	box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--wp--preset--color--night-action) 50%, transparent);
}

/* Type filter: pills with counts, a sliding active pill, labels that roll on hover */
.is-style-agma-night-pj-filter {
	margin: 0 0 30px !important;
}

.is-style-agma-night-pj-filter .agma-term-filter__list {
	position: relative;
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-style-agma-night-pj-filter .agma-term-filter__link {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 19px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--wp--preset--color--night-panel);
	font-size: 14px;
	line-height: 1;
	color: var(--wp--preset--color--night-muted);
	text-decoration: none;
	transition: color 0.35s ease, background-color 0.35s ease;
}

.is-style-agma-night-pj-filter .agma-term-filter__link:hover,
.is-style-agma-night-pj-filter .agma-term-filter__link:focus-visible {
	background: var(--wp--preset--color--night-panel-2);
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-pj-filter .agma-term-filter__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--night-signal);
	outline-offset: 2px;
}

.is-style-agma-night-pj-filter .agma-term-filter__link[aria-current="true"] {
	background: var(--wp--preset--color--night-action);
	color: var(--wp--preset--color--night-text);
}

/* With the indicator the active pill is transparent and the indicator slides under it */
.is-style-agma-night-pj-filter.has-indicator .agma-term-filter__link[aria-current="true"] {
	background: transparent;
}

.is-style-agma-night-pj-filter .agma-term-filter__indicator {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	display: block;
	border-radius: 999px;
	background: var(--wp--preset--color--night-action);
	box-shadow: 0 10px 30px -12px var(--wp--preset--color--night-action);
	pointer-events: none;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), width 0.6s cubic-bezier(0.22, 1, 0.36, 1), height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-style-agma-night-pj-filter .agma-term-filter__label {
	display: inline-grid;
	overflow: hidden;
	height: 1.25em;
	line-height: 1.25em;
}

.is-style-agma-night-pj-filter .agma-term-filter__text,
.is-style-agma-night-pj-filter .agma-term-filter__label::after {
	grid-area: 1 / 1;
	white-space: nowrap;
	transition: translate 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-style-agma-night-pj-filter .agma-term-filter__label::after {
	content: attr(data-label);
	translate: 0 115%;
}

@media (hover: hover) {
	.is-style-agma-night-pj-filter .agma-term-filter__link:not([aria-current="true"]):hover .agma-term-filter__text {
		translate: 0 -115%;
	}

	.is-style-agma-night-pj-filter .agma-term-filter__link:not([aria-current="true"]):hover .agma-term-filter__label::after {
		translate: 0 0;
	}
}

.is-style-agma-night-pj-filter .agma-term-filter__count {
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	opacity: 0.6;
}

/* Project mosaic: the type filter places the tiles (large, tall, wide, small) and packs them again after a filter */
.is-style-agma-night-pj-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: clamp(220px, 20vw, 300px);
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-style-agma-night-pj-grid > li {
	min-width: 0;
	margin: 0;
}

.is-style-agma-night-pj-grid > li[hidden] {
	display: none;
}

/*
 * Project card = a clean screenshot of the site (no text, no navigation). The name (title link, covers the card)
 * and the arrow button appear on hover/focus over a soft gradient; touch screens always show a small name.
 */
.is-style-agma-night-pj-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto 1fr auto;
	height: 100%;
	overflow: hidden;
	border-radius: 16px;
	background: var(--wp--preset--color--night-panel);
	isolation: isolate;
}

.is-style-agma-night-pj-card > * {
	margin: 0 !important;
	min-width: 0;
}

/* Gradient behind the name, only while the name shows */
.is-style-agma-night-pj-card::before {
	content: "";
	z-index: 1;
	grid-row: 1 / -1;
	grid-column: 1 / -1;
	background: linear-gradient(to top, color-mix(in srgb, var(--wp--preset--color--night-deep) 88%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--night-deep) 35%, transparent) 45%, transparent 75%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s ease;
}

.is-style-agma-night-pj-card .agma-night-pj-card-media {
	z-index: 0;
	grid-row: 1 / -1;
	grid-column: 1 / -1;
	height: 100%;
	overflow: hidden;
	background: var(--wp--preset--color--night-panel-2);
}

.is-style-agma-night-pj-card .agma-night-pj-card-media img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
}

.is-style-agma-night-pj-card:hover .agma-night-pj-card-media img {
	transform: scale(1.06);
	filter: saturate(1.08) contrast(1.02);
}

/* Arrow button (the text stays for screen readers and AI, the circle shows an arrow) */
.is-style-agma-night-pj-card .agma-night-pj-card-more {
	z-index: 2;
	grid-row: 1;
	grid-column: 2;
	position: relative;
	align-self: start;
	width: 44px;
	height: 44px;
	margin: 12px !important;
	padding: 0;
	overflow: hidden;
	border-radius: 999px;
	background: var(--wp--preset--color--night-text);
	color: transparent;
	font-size: 0;
	pointer-events: none;
	opacity: 0;
	scale: 0.4;
	rotate: -45deg;
	transition: opacity 0.4s ease, scale 0.7s cubic-bezier(0.22, 1, 0.36, 1), rotate 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-style-agma-night-pj-card .agma-night-pj-card-more::after {
	content: "↗";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 18px;
	line-height: 1;
	color: var(--wp--preset--color--night-deep);
	transform: none;
}

/*
 * Name: hidden until hover/focus, then rises in at the bottom. No backdrop-filter: a filter would make the
 * title the containing block of the link that covers the card.
 */
.is-style-agma-night-pj-card .agma-night-pj-card-title {
	z-index: 2;
	grid-row: 3;
	grid-column: 1 / -1;
	justify-self: start;
	max-width: calc(100% - 40px);
	margin: 0 20px 20px !important;
	font-size: clamp(18px, 1.6vw, 24px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	overflow-wrap: anywhere;
	opacity: 0;
	translate: 0 14px;
	transition: opacity 0.5s ease, translate 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-style-agma-night-pj-grid > [data-tile="large"] .agma-night-pj-card-title {
	font-size: clamp(22px, 2.4vw, 34px);
}

.is-style-agma-night-pj-card .agma-night-pj-card-title a {
	color: var(--wp--preset--color--night-text);
	text-decoration: none;
}

.is-style-agma-night-pj-card .agma-night-pj-card-title a:focus-visible {
	outline: none;
}

/* The title link covers the card */
.is-style-agma-night-pj-card .agma-night-pj-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
}

.is-style-agma-night-pj-card .agma-night-pj-card-title a:focus-visible::after {
	outline: 2px solid var(--wp--preset--color--night-signal);
	outline-offset: -2px;
	border-radius: 16px;
}

.is-style-agma-night-pj-card:hover::before,
.is-style-agma-night-pj-card:focus-within::before {
	opacity: 1;
}

.is-style-agma-night-pj-card:hover .agma-night-pj-card-title,
.is-style-agma-night-pj-card:focus-within .agma-night-pj-card-title {
	opacity: 1;
	translate: 0 0;
}

.is-style-agma-night-pj-card:hover .agma-night-pj-card-more,
.is-style-agma-night-pj-card:focus-within .agma-night-pj-card-more {
	opacity: 1;
	scale: 1;
	rotate: 0deg;
}

/* Touch screens have no hover: a small name on a dark pill at the bottom */
@media (hover: none) {
	.is-style-agma-night-pj-card .agma-night-pj-card-title {
		margin: 0 12px 12px !important;
		padding: 7px 12px 8px;
		border-radius: 10px;
		background: color-mix(in srgb, var(--wp--preset--color--night-deep) 72%, transparent);
		font-size: 15px;
		opacity: 1;
		translate: 0 0;
	}

	.is-style-agma-night-pj-grid > [data-tile="large"] .agma-night-pj-card-title {
		font-size: 17px;
	}
}

/* Other live sites */
.is-style-agma-night-pj-sites {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.is-style-agma-night-pj-site {
	position: relative;
	overflow: hidden;
	padding-bottom: 18px;
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 18px;
	background: var(--wp--preset--color--night-panel);
	transition: border-color 0.3s ease;
}

.is-style-agma-night-pj-site:hover,
.is-style-agma-night-pj-site:focus-within {
	border-color: var(--wp--preset--color--night-signal-edge);
}

.is-style-agma-night-pj-site > * {
	margin: 0;
}

.is-style-agma-night-pj-site > :not(.wp-block-image) {
	margin-inline: 18px;
}

.is-style-agma-night-pj-site .wp-block-image {
	aspect-ratio: 16 / 10;
	margin-bottom: 14px;
	overflow: hidden;
}

.is-style-agma-night-pj-site img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-style-agma-night-pj-site:hover img {
	transform: scale(1.05);
}

.is-style-agma-night-pj-site h3 {
	font-size: 17px;
	line-height: 1.3;
}

.is-style-agma-night-pj-site h3 a {
	color: var(--wp--preset--color--night-text);
	text-decoration: none;
}

.is-style-agma-night-pj-site h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.is-style-agma-night-pj-site .agma-night-pj-site-host {
	margin-top: 4px;
	font-size: 13px;
	color: var(--wp--preset--color--night-dim);
}

/* Globe section on the night ground (the globe canvas may be wider than a phone) */
.is-style-agma-night-pj-globe {
	overflow-x: clip;
}

.is-style-agma-night-pj-globe .is-style-agma-night-lead {
	margin-top: 20px;
}

@media (max-width: 1100px) {
	.is-style-agma-night-pj-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: clamp(220px, 34vw, 320px);
	}

	.is-style-agma-night-pj-sites {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.is-style-agma-night-pj-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: auto;
		gap: 12px;
	}

	.is-style-agma-night-pj-card {
		aspect-ratio: 4 / 3;
	}

	.is-style-agma-night-pj-sites {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.is-style-agma-night-pj-reel {
		margin-top: 56px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-night-pj-card *,
	.is-style-agma-night-pj-card::before,
	.is-style-agma-night-pj-filter *,
	.is-style-agma-night-pj-site img {
		transition: none !important;
	}
}

/* ------------------------------------------------------------------ */
/* Homepage: centred hero over the smoke background with the awards   */
/* row, full-width gallery marquees, service area cards, the project   */
/* case carousel in a frame, video cases, reviews slider, technology   */
/* grid, founder quote next to the questions, blog cards.              */
/* The reused 1:1 blocks keep their own styles from theme.css.         */
/* ------------------------------------------------------------------ */

.is-style-agma-night-home {
	position: relative;
}

.is-style-agma-night-home-awards {
	position: relative;
	padding-block: 16px 96px;
}

.is-style-agma-night-home-awards .agma-night-home-awards {
	display: grid;
	gap: 20px;
}

.is-style-agma-night-home-awards .agma-night-home-awards > * {
	margin-block: 0;
}

.is-style-agma-night-home-awards .agma-night-home-awards .is-style-agma-night-kicker {
	text-align: center;
}

/*
 * Proof strip under the hero (owner 27.11, prototype section agma-proof): verified profiles only, six columns
 * between hairlines; logo, name (its link covers the tile) and one line. Dark logos sit on a white plate.
 */
.is-style-agma-night-home-proof {
	--agma-proof-line: color-mix(in srgb, var(--wp--preset--color--night-text) 12%, transparent);
	position: relative;
	padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 72px);
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-home-proof .agma-proof-title,
.is-style-agma-night-home-proof .agma-proof-list,
.is-style-agma-night-home-proof .agma-proof-item,
.is-style-agma-night-home-proof .agma-proof-item > * {
	margin-block: 0;
}

.is-style-agma-night-home-proof .agma-proof-title {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: clamp(20px, 1.8vw, 26px);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-home-proof .agma-proof-list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0;
	margin-top: 28px;
	border-top: 1px solid var(--agma-proof-line);
}

.is-style-agma-night-home-proof .agma-proof-item {
	position: relative;
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 0;
	box-sizing: border-box;
	height: 100%;
	padding: 24px 20px 4px;
	transition: background-color 0.25s ease;
}

.is-style-agma-night-home-proof .agma-proof-item + .agma-proof-item {
	border-left: 1px solid var(--agma-proof-line);
}

.is-style-agma-night-home-proof .agma-proof-item:first-child {
	padding-left: 0;
}

.is-style-agma-night-home-proof .agma-proof-item:hover {
	background: color-mix(in srgb, var(--wp--preset--color--night-text) 3%, transparent);
}

.is-style-agma-night-home-proof .agma-proof-logo {
	display: grid;
	place-items: center start;
	height: 64px;
	margin-bottom: 14px;
}

.is-style-agma-night-home-proof .agma-proof-logo img {
	display: block;
	width: auto;
	max-width: 132px;
	height: auto;
	max-height: 64px;
	object-fit: contain;
}

/* The BG web awards mark is an SVG with no size of its own: its width comes from the plate. */
.is-style-agma-night-home-proof .agma-proof-logo.is-plate {
	box-sizing: border-box;
	width: 104px;
	height: 52px;
	/* Centred in the 64px logo row, so every name starts on the same line. */
	margin-block: 6px 20px;
	padding: 8px 12px;
	border-radius: 12px;
	background: var(--wp--preset--color--white);
	place-items: center;
}

.is-style-agma-night-home-proof .agma-proof-logo.is-plate img {
	width: 100%;
	max-width: none;
	max-height: 36px;
}

.is-style-agma-night-home-proof .agma-proof-name {
	font-family: var(--wp--preset--font-family--muller);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-home-proof .agma-proof-name a {
	color: inherit;
	text-decoration: none;
}

/* The name link covers the whole tile. */
.is-style-agma-night-home-proof .agma-proof-name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.is-style-agma-night-home-proof .agma-proof-item:hover .agma-proof-name a,
.is-style-agma-night-home-proof .agma-proof-name a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--night-signal);
	text-underline-offset: 4px;
}

.is-style-agma-night-home-proof .agma-proof-name a:focus-visible {
	outline: none;
}

.is-style-agma-night-home-proof .agma-proof-name a:focus-visible::after {
	outline: 2px solid var(--wp--preset--color--night-signal);
	outline-offset: -2px;
}

.is-style-agma-night-home-proof .agma-proof-line {
	margin-top: 3px;
	font-family: var(--wp--preset--font-family--muller);
	font-size: 14px;
	line-height: 1.4;
	color: var(--wp--preset--color--night-muted);
}

@media (max-width: 999px) {
	.is-style-agma-night-home-proof .agma-proof-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.is-style-agma-night-home-proof .agma-proof-item:nth-child(3n + 1) {
		padding-left: 0;
		border-left: 0;
	}

	.is-style-agma-night-home-proof .agma-proof-item:nth-child(n + 4) {
		border-top: 1px solid var(--agma-proof-line);
	}
}

@media (max-width: 640px) {
	.is-style-agma-night-home-proof .agma-proof-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.is-style-agma-night-home-proof .agma-proof-item,
	.is-style-agma-night-home-proof .agma-proof-item:nth-child(3n + 1) {
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid var(--agma-proof-line);
	}

	.is-style-agma-night-home-proof .agma-proof-item:first-child,
	.is-style-agma-night-home-proof .agma-proof-item:nth-child(2) {
		border-top: 0;
	}

	.is-style-agma-night-home-proof .agma-proof-item:nth-child(2n) {
		padding-left: 16px;
		border-left: 1px solid var(--agma-proof-line);
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-night-home-proof .agma-proof-item {
		transition: none;
	}
}

.is-style-agma-night-home .agma-night-home-center {
	max-width: 900px;
	margin-inline: auto;
	text-align: center;
}

.is-style-agma-night-home .agma-night-home-center .is-style-agma-night-lead {
	margin-inline: auto;
}

.is-style-agma-night-home-gallery {
	overflow-x: clip;
}

.is-style-agma-night-home-gallery > .agma-night-home-marquees {
	display: grid;
	gap: 20px;
	margin-top: 64px;
}

.is-style-agma-night-home-gallery > .agma-night-home-marquees > * {
	margin-block: 0;
}

/*
 * Rounded top frame that fades down into the content below it (agma.bg "Създаваме дигитални шедьоври"): the band
 * keeps only a small top gap, so the frame itself opens the section.
 */
.is-style-agma-night-band:has(.agma-night-frame-top) {
	padding-top: 48px;
}

.is-style-agma-night-home .agma-night-frame-top.agma-night-home-center {
	max-width: none;
}

.is-style-agma-night-home .agma-night-frame-top {
	box-sizing: border-box;
	margin-bottom: 0;
	padding: 96px 64px 80px;
	border: 1px solid var(--wp--preset--color--white-10);
	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-night-home .agma-night-frame-top .is-style-agma-night-lead {
	max-width: none;
	margin: 16px auto 0 !important;
	color: var(--wp--preset--color--night-text);
	text-wrap: balance;
}

.is-style-agma-night-home-gallery:has(.agma-night-frame-top) > .agma-night-home-marquees {
	margin-top: 0;
}

/*
 * Large rounded panel around a whole section (agma.bg "Клиентите за АГМА Студио"): glass fill with a light
 * gradient edge, heading row and cards inside.
 */
.is-style-agma-night-home .agma-night-home-panel > .is-style-agma-night-wrap {
	position: relative;
	padding: 80px;
	border-radius: 80px;
	background-color: var(--wp--preset--color--white-10);
}

.is-style-agma-night-home .agma-night-home-panel > .is-style-agma-night-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(107deg, var(--wp--preset--color--white-50) 1%, transparent 18%, transparent 80%, var(--wp--preset--color--white-50) 100%);
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
}

.is-style-agma-night-home .agma-night-home-panel .agma-night-home-head-row {
	max-width: none;
	flex-wrap: nowrap;
	align-items: flex-start;
}

.is-style-agma-night-home .agma-night-home-panel .agma-night-home-head-row > .wp-block-heading {
	flex: 0 0 auto;
}

.is-style-agma-night-home .agma-night-home-panel .agma-night-home-head-row > .is-style-agma-night-lead {
	flex: 0 1 440px;
	margin: 0 !important;
	color: var(--wp--preset--color--night-text);
	text-align: left;
}

.is-style-agma-night-home .agma-night-home-panel .agma-night-home-head-row + .agma-night-home-cases {
	margin-top: 0 !important;
}

@media (max-width: 1024px) {
	.is-style-agma-night-home .agma-night-frame-top {
		padding: 72px 40px 40px;
		border-radius: 60px 60px 0 0;
	}

	.is-style-agma-night-home .agma-night-home-panel > .is-style-agma-night-wrap {
		padding: 56px 40px 40px;
		border-radius: 60px;
	}

	.is-style-agma-night-home .agma-night-home-panel .agma-night-home-head-row {
		flex-wrap: wrap;
	}
}

/* Phones: like agma.bg, the frames keep their edge but drop most of the inner space. */
@media (max-width: 620px) {
	.is-style-agma-night-band:has(.agma-night-frame-top) {
		padding-top: 24px;
	}

	.is-style-agma-night-home .agma-night-frame-top {
		padding: 48px 20px 24px;
		border-radius: 30px 30px 0 0;
	}

	.is-style-agma-night-home .agma-night-home-panel > .is-style-agma-night-wrap {
		width: calc(100% - 24px);
		padding: 40px 16px 16px;
		border-radius: 30px;
	}
}

.is-style-agma-night-home .agma-night-home-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
}

.is-style-agma-night-home .agma-night-home-head-row > * {
	margin-block: 0;
}

.is-style-agma-night-home .agma-night-home-areas {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.is-style-agma-night-home-frame {
	margin-top: 56px !important;
	padding: 24px;
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 28px;
	background: color-mix(in srgb, var(--wp--preset--color--night-ground) 60%, transparent);
}

.is-style-agma-night-home-frame > .is-style-agma-slider-nav {
	margin-top: 24px;
}

.is-style-agma-night-home .agma-night-home-cases {
	margin-top: 56px !important;
}

.is-style-agma-night-home-reviews {
	overflow-x: clip;
}

.is-style-agma-night-home-reviews > .is-style-agma-slider-layout {
	margin-top: 56px !important;
	padding-left: max(24px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
}

/* Full-width reviews (26.11): the carousel arrows sit right of the heading instead of a rating column. */
.is-style-agma-night-home-reviews > .is-style-agma-night-wrap:has(> .agma-night-home-reviews-arrows) {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
}

.is-style-agma-night-home-reviews > .is-style-agma-night-wrap > * {
	margin-block: 0;
}

.is-style-agma-night-home-reviews .agma-night-home-reviews-arrows {
	gap: 12px;
}

/* Heading row with a link (pillar pages): the link and the arrows side by side on the right. */
.is-style-agma-night-home-reviews .agma-night-reviews-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
}

.is-style-agma-night-home-reviews .agma-night-reviews-actions > * {
	margin: 0;
}

.is-style-agma-night-home-reviews .agma-night-home-reviews-arrows .agma-carousel-arrows__button {
	width: 56px;
	height: 56px;
	border-color: var(--wp--preset--color--white-20);
	background-color: transparent;
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-home-reviews .agma-night-home-reviews-arrows .agma-carousel-arrows__button:hover:not(:disabled) {
	border-color: var(--wp--preset--color--white-50);
	background-color: var(--wp--preset--color--white-10);
}

/* Card head: rating, then the company; the line runs under both. */
.is-style-section-night .is-style-agma-review-card .agma-review-head {
	padding-bottom: 25px;
	border-bottom: 1px solid var(--wp--preset--color--white-20);
}

.is-style-section-night .is-style-agma-review-card .agma-review-head .agma-rating {
	padding-bottom: 0;
	border-bottom: 0;
}

.is-style-section-night .is-style-agma-review-card .agma-review-company {
	color: var(--wp--preset--color--night-text);
	letter-spacing: -0.01em;
}

@media (max-width: 480px) {
	.is-style-agma-night-home-reviews .agma-night-home-reviews-arrows .agma-carousel-arrows__button {
		width: 48px;
		height: 48px;
	}
}

.is-style-agma-night-home-tech .is-style-agma-tech-grid {
	margin-top: 56px;
}

.is-style-agma-night-home-faq {
	display: grid;
	grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
	align-items: start;
	gap: 80px;
	margin-top: 56px !important;
}

.is-style-agma-night-home-faq > * {
	margin-block: 0;
}

.is-style-agma-night-home-faq .agma-night-home-founder {
	position: sticky;
	top: 96px;
}

.is-style-agma-night-home-blog .wp-block-query {
	margin-top: 56px;
}

/*
 * Smoke (agma/fluid-background) as on production: the fixed canvas sits behind the page, so the page wrapper
 * and the bands are transparent and the smoke shows through them. .agma-no-smoke only stops the pointer from
 * stirring smoke there (as on production); media, cards with a solid panel and the footer cover it with their own
 * backgrounds. The body stays the dark ground behind the canvas.
 */
.is-style-agma-night-home.is-style-section-night,
.is-style-agma-night-home .is-style-agma-night-band-alt {
	background-color: transparent;
}

/*
 * A container with .agma-smoke-cover hides the smoke behind itself only (owner 27.11: the centred wraps of
 * "Клиентите" and "Как работим"; the smoke stays at the sides of the band). A solid ground layer in its ::after
 * (the panel wrap uses ::before for its edge). Three negative layers keep the glows intact (owner 27.11: the
 * cover must not cut the gradient lights that spill in from the bands around it): the smoke canvas at -3, the
 * cover at -2, every glow at -1, so all glows paint over the cover whatever their order in the document.
 * The cover has no hard edge (owner 27.11: smoke around a sharp box gave the box away): it reaches
 * --agma-smoke-feather beyond the container and fades out over that strip, so the smoke thins out softly
 * towards the content and the container itself stays fully covered. Pair it with .agma-no-smoke on the same
 * container so the pointer does not stir smoke there.
 */
body:has(.is-style-agma-night-home .agma-smoke-cover) .agma-fluid-background {
	z-index: -3;
}

.is-style-agma-night-home .agma-smoke-cover {
	--agma-smoke-feather: 160px;
	position: relative;
}

/* A full-width container (the process carousel) would push its feathered cover past the viewport: clip the band
   sideways only, so the glows above and below it are not cut. */
.is-style-agma-night-home .is-style-agma-night-band:has(.agma-smoke-cover) {
	overflow-x: clip;
}

.is-style-agma-night-home .agma-smoke-cover::after {
	--agma-smoke-fade: transparent, black var(--agma-smoke-feather), black calc(100% - var(--agma-smoke-feather)), transparent;
	content: "";
	position: absolute;
	z-index: -2;
	inset: calc(-1 * var(--agma-smoke-feather));
	/* The page ground (body = black), so the cover itself is invisible: it only hides the smoke. */
	background-color: var(--wp--preset--color--black);
	-webkit-mask-image: linear-gradient(to right, var(--agma-smoke-fade)), linear-gradient(to bottom, var(--agma-smoke-fade));
	mask-image: linear-gradient(to right, var(--agma-smoke-fade)), linear-gradient(to bottom, var(--agma-smoke-fade));
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
	pointer-events: none;
}

/*
 * Glows as on production (its "glow elements" layer, template 5590): large soft blue and purple radial lights
 * behind the bands. A band with .agma-night-glows and one modifier paints them in its ::after; the lights sit under
 * every band's content and may spill into the bands around it.
 * Sizes follow production at 1440px+: an Elementor square of side d with "radial-gradient(at center, c 0%,
 * transparent 70%)" equals a circle of radius 0.707d here.
 * The wrapper is not a stacking context of its own (27.11): the glass mark of the hero blends with the smoke canvas
 * behind the page (overlay, backdrop filter), which an isolated wrapper would hide. The lights (z-index -1) still
 * paint after the canvas, which comes first in the document, and under every band's content.
 */

.is-style-agma-night-home .agma-night-glows {
	/* Room above and below the band, so no light is cut by the edge of its box. */
	--agma-night-glows-bleed: 1500px;
	position: relative;
	/* A band of its own stacking context (night field styles) would paint its lights over the band before it. */
	isolation: auto;
}

.is-style-agma-night-home .agma-night-glows::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: calc(var(--agma-night-glows-bleed) * -1) 0;
	background-image: var(--agma-night-glows);
	background-repeat: no-repeat;
	pointer-events: none;
}

.is-style-agma-night-home .agma-night-glows--gallery {
	--agma-night-glows: radial-gradient(circle 1347px at calc(50% - 571px) calc(100% - var(--agma-night-glows-bleed) - 84px), color-mix(in srgb, var(--wp--preset--color--purple) 35%, transparent) 0%, transparent 70%);
}

.is-style-agma-night-home .agma-night-glows--clients {
	--agma-night-glows:
		radial-gradient(circle 943px at calc(50% + 387px) calc(var(--agma-night-glows-bleed) + 876px), var(--wp--preset--color--purple-50) 0%, transparent 70%),
		radial-gradient(circle 1347px at calc(50% - 571px) calc(var(--agma-night-glows-bleed) - 84px), color-mix(in srgb, var(--wp--preset--color--purple) 35%, transparent) 0%, transparent 70%);
}

.is-style-agma-night-home .agma-night-glows--reviews {
	--agma-night-glows:
		radial-gradient(circle 1347px at calc(50% - 286px) calc(var(--agma-night-glows-bleed) - 517px), var(--wp--preset--color--purple-50) 0%, transparent 70%),
		radial-gradient(circle 1886px at calc(50% + 95px) calc(var(--agma-night-glows-bleed) - 136px), var(--wp--preset--color--blue-20) 0%, transparent 70%);
}

.is-style-agma-night-home .agma-night-glows--globe {
	--agma-night-glows:
		radial-gradient(circle 1347px at calc(50% - 286px) calc(var(--agma-night-glows-bleed) + 519px), var(--wp--preset--color--purple-50) 0%, transparent 70%),
		radial-gradient(circle 1886px at calc(50% + 95px) calc(var(--agma-night-glows-bleed) + 900px), var(--wp--preset--color--blue-20) 0%, transparent 70%);
}

.is-style-agma-night-home .agma-night-glows--tech {
	--agma-night-glows: radial-gradient(circle 1886px at calc(50% - 381px) calc(100% - var(--agma-night-glows-bleed) + 30px), var(--wp--preset--color--blue-50) 0%, transparent 70%);
}

.is-style-agma-night-home .agma-night-glows--faq {
	--agma-night-glows:
		radial-gradient(circle 1684px at calc(50% + 238px) calc(var(--agma-night-glows-bleed) + 780px), var(--wp--preset--color--blue-70) 0%, transparent 70%),
		radial-gradient(circle 674px at calc(50% - 514px) calc(var(--agma-night-glows-bleed) - 224px), var(--wp--preset--color--purple-70) 0%, transparent 70%);
}

/*
 * Award tiles in the hero (owner 25.11, after the hero awards of cbwebsitedesign.co.uk): frosted glass with a
 * strong backdrop blur. On the plain ground the tiles stay quiet; when the pointer moves over the logos, the
 * smoke stirred behind them fills each tile as a soft, blurred glow and the logo stays sharp on top.
 */
.is-style-agma-night-home-awards .agma-night-home-awards .is-style-agma-glass-card {
	overflow: hidden;
	border-radius: 14px;
	background-color: color-mix(in srgb, var(--wp--preset--color--night-text) 6%, transparent);
	-webkit-backdrop-filter: blur(5rem) saturate(1.4);
	backdrop-filter: blur(5rem) saturate(1.4);
	transition: background-color 0.4s ease;
}

.is-style-agma-night-home-awards .agma-night-home-awards .is-style-agma-glass-card:hover {
	background-color: color-mix(in srgb, var(--wp--preset--color--night-text) 10%, transparent);
}

/* Longer service names ("Дизайн и бранд идентичност") must fit the three-column cards. */
.is-style-agma-night-home .agma-night-home-areas h3 {
	font-size: clamp(18px, 1.55vw, 23px);
	overflow-wrap: break-word;
}

/* The title link covers the card; the sub-links sit above that layer. */
.is-style-agma-night-home .agma-night-home-areas .agma-night-glass-foot {
	position: relative;
	z-index: 1;
}

.is-style-agma-night-home .agma-night-home-areas .agma-night-glass-foot a {
	color: var(--wp--preset--color--night-signal-hi);
	text-decoration: none;
}

.is-style-agma-night-home .agma-night-home-areas .agma-night-glass-foot a:hover,
.is-style-agma-night-home .agma-night-home-areas .agma-night-glass-foot a:focus-visible {
	text-decoration: underline;
}

.is-style-agma-night-home .agma-night-home-cases-grid {
	margin-top: 56px;
}

.is-style-agma-night-home .agma-night-home-case .agma-night-work-text strong {
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-home .agma-night-home-case-stat {
	display: block;
	margin-top: auto;
	padding-top: 20px;
}

.is-style-agma-night-home .agma-night-home-case-stat .is-style-agma-night-pj-stat {
	padding: 20px 22px;
	border-radius: 18px;
}

.is-style-agma-night-home .agma-night-home-case-link {
	margin-top: 20px;
}


@media (max-width: 1100px) {
	.is-style-agma-night-home .agma-night-home-areas {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.is-style-agma-night-home-faq {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.is-style-agma-night-home-faq .agma-night-home-founder {
		position: static;
		width: min(400px, 100%);
		margin-inline: auto;
	}
}

@media (max-width: 640px) {
	.is-style-agma-night-home-awards {
		padding-bottom: 64px;
	}

	/* Two awards per row on phones (the 1:1 grid goes down to one column). */
	.is-style-agma-night-home-awards .agma-night-home-awards .is-style-agma-logo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.is-style-agma-night-home .agma-night-home-areas {
		grid-template-columns: minmax(0, 1fr);
	}

	.is-style-agma-night-home-frame {
		padding: 12px;
		border-radius: 20px;
	}

	.is-style-agma-night-home-gallery > .agma-night-home-marquees {
		gap: 12px;
		margin-top: 40px;
	}
}

/* ------------------------------------------------------------------ */
/* Old service pages in Night (/uslugi/<service>/): hero with the 1:1  */
/* illustration card, centred statement, dark case cards, form with    */
/* file upload in a wider card.                                        */
/* ------------------------------------------------------------------ */

.is-style-agma-night-svc-hero .is-style-agma-night-split {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 64px;
}

.is-style-agma-night-svc-hero .agma-night-svc-card {
	width: min(580px, 100%);
	justify-self: end;
}

.is-style-agma-night-svc-hero .agma-hero-meta {
	margin-top: 32px;
}

.is-style-agma-night-svc-statement .agma-night-svc-pill {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.is-style-agma-night-svc .agma-night-svc-cases {
	margin-top: 56px !important;
}

.is-style-agma-night-svc .is-style-agma-badge-card {
	border: 1px solid var(--wp--preset--color--night-line);
	background-color: var(--wp--preset--color--night-ground-2);
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-svc .is-style-agma-badge-card > .wp-block-group {
	background-color: var(--wp--preset--color--white-5);
}

/* The 1:1 cards set dark text presets (made for a white card). */
.is-style-agma-night-svc .is-style-agma-badge-card .has-almost-black-color,
.is-style-agma-night-svc .is-style-agma-badge-card .has-black-color {
	color: var(--wp--preset--color--white) !important;
}

.is-style-agma-night-svc .is-style-agma-badge-card .has-gray-color {
	color: var(--wp--preset--color--white-75) !important;
}

.is-style-agma-night-ask-grid:has(> .agma-night-files-form) {
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
}

/* The form with file upload needs the full width: the intro becomes a row above it. */
.is-style-agma-night-ask-grid:has(> .agma-night-files-form) > .agma-night-ask-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 48px;
}

.is-style-agma-night-ask-grid:has(> .agma-night-files-form) > .agma-night-ask-intro > * {
	margin-block: 0;
}

@media (max-width: 1100px) {
	.is-style-agma-night-svc-hero .is-style-agma-night-split,
	.is-style-agma-night-ask-grid:has(> .agma-night-files-form) > .agma-night-ask-intro {
		grid-template-columns: minmax(0, 1fr);
	}

	.is-style-agma-night-svc-hero .agma-night-svc-card {
		justify-self: start;
	}
}

/* ------------------------------------------------------------------ */
/* Night ink: the light 1:1 containers (article body of posts, pillar  */
/* pages and /uslugi/izrabotka-na-sait/, legal card, contact form card,*/
/* light sections of the website page) turn dark by remapping the      */
/* light presets inside them; content and markup stay as they are.     */
/* The class sits on the <main> of the templates that hold them.       */
/* ------------------------------------------------------------------ */

.is-style-agma-night-ink .agma-article,
.is-style-agma-night-ink .is-style-agma-legal,
.is-style-agma-night-ink .agma-contact-hero__card,
.is-style-agma-night-ink .is-style-agma-website-hero,
.is-style-agma-night-ink .agma-advantages,
.is-style-agma-night-ink .is-style-agma-overlap-panel,
.is-style-agma-night-ink .is-style-agma-screen-wall {
	--wp--preset--color--white: var(--wp--preset--color--night-panel);
	--wp--preset--color--gray-light: var(--wp--preset--color--night-ground);
	--wp--preset--color--black: var(--wp--preset--color--night-text);
	--wp--preset--color--almost-black: var(--wp--preset--color--night-text);
	--wp--preset--color--gray-dark: var(--wp--preset--color--night-muted);
	--wp--preset--color--gray: var(--wp--preset--color--night-dim);
	--wp--preset--color--gray-muted: var(--wp--preset--color--night-line-2);
}

/* White text on blue (step numbers, buttons, badges) stays light. */
.is-style-agma-night-ink .agma-article .has-blue-background-color,
.is-style-agma-night-ink .agma-article .wp-element-button,
.is-style-agma-night-ink .agma-article .wp-block-button__link,
.is-style-agma-night-ink .agma-article .agma-form-submit,
.is-style-agma-night-ink .agma-article button[type="submit"],
.is-style-agma-night-ink .is-style-agma-legal .has-blue-background-color,
.is-style-agma-night-ink .is-style-agma-legal .wp-element-button,
.is-style-agma-night-ink .is-style-agma-legal .wp-block-button__link,
.is-style-agma-night-ink .is-style-agma-legal .agma-form-submit,
.is-style-agma-night-ink .is-style-agma-legal button[type="submit"],
.is-style-agma-night-ink .agma-contact-hero__card .has-blue-background-color,
.is-style-agma-night-ink .agma-contact-hero__card .wp-element-button,
.is-style-agma-night-ink .agma-contact-hero__card .wp-block-button__link,
.is-style-agma-night-ink .agma-contact-hero__card .agma-form-submit,
.is-style-agma-night-ink .agma-contact-hero__card button[type="submit"],
.is-style-agma-night-ink .agma-contact-hero__card .agma-form-field__file-button,
.is-style-agma-night-ink .is-style-agma-website-hero .has-blue-background-color,
.is-style-agma-night-ink .is-style-agma-website-hero .wp-element-button,
.is-style-agma-night-ink .is-style-agma-website-hero .wp-block-button__link,
.is-style-agma-night-ink .is-style-agma-website-hero .agma-form-submit,
.is-style-agma-night-ink .is-style-agma-website-hero button[type="submit"],
.is-style-agma-night-ink .agma-advantages .has-blue-background-color,
.is-style-agma-night-ink .agma-advantages .wp-element-button,
.is-style-agma-night-ink .agma-advantages .wp-block-button__link,
.is-style-agma-night-ink .agma-advantages .agma-form-submit,
.is-style-agma-night-ink .agma-advantages button[type="submit"],
.is-style-agma-night-ink .is-style-agma-overlap-panel .has-blue-background-color,
.is-style-agma-night-ink .is-style-agma-overlap-panel .wp-element-button,
.is-style-agma-night-ink .is-style-agma-overlap-panel .wp-block-button__link,
.is-style-agma-night-ink .is-style-agma-overlap-panel .agma-form-submit,
.is-style-agma-night-ink .is-style-agma-overlap-panel button[type="submit"],
.is-style-agma-night-ink .is-style-agma-screen-wall .has-blue-background-color,
.is-style-agma-night-ink .is-style-agma-screen-wall .wp-element-button,
.is-style-agma-night-ink .is-style-agma-screen-wall .wp-block-button__link,
.is-style-agma-night-ink .is-style-agma-screen-wall .agma-form-submit,
.is-style-agma-night-ink .is-style-agma-screen-wall button[type="submit"] {
	--wp--preset--color--white: var(--wp--preset--color--night-text);
}

/* Cards on the article ground get a thin Night line instead of the light shadow. */
.is-style-agma-night-ink .agma-article .is-style-agma-article-card,
.is-style-agma-night-ink .agma-article .is-style-agma-cta-card,
.is-style-agma-night-ink .agma-article .is-style-agma-icon-card,
.is-style-agma-night-ink .agma-article .agma-article-faq,
.is-style-agma-night-ink .is-style-agma-legal .is-style-agma-article-card,
.is-style-agma-night-ink .is-style-agma-legal .is-style-agma-cta-card,
.is-style-agma-night-ink .is-style-agma-legal .is-style-agma-icon-card,
.is-style-agma-night-ink .is-style-agma-legal .agma-article-faq,
.is-style-agma-night-ink .agma-advantages .is-style-agma-icon-card {
	border: 1px solid var(--wp--preset--color--night-line);
	box-shadow: none;
}

.is-style-agma-night-ink .is-style-agma-legal,
.is-style-agma-night-ink .agma-contact-hero__card {
	border: 1px solid var(--wp--preset--color--night-line);
}

/* Website page hero: Night light instead of the light photo; black award logos turn white. */
.is-style-agma-night-ink .is-style-agma-website-hero {
	--wp--preset--color--blue-dark: var(--wp--preset--color--night-text);
	background: var(--wp--preset--gradient--night-hero);
}

.is-style-agma-night-ink .is-style-agma-website-hero > .agma-cover-image {
	display: none;
}

.is-style-agma-night-ink .is-style-agma-website-hero .agma-website-hero__logos img {
	filter: invert(1);
}

/* About page in Night: the 1:1 glows and the wide case cards stay inside the page. */
.is-style-agma-night-about {
	position: relative;
	overflow-x: clip;
}

/* "Изработка на сайт" (5277) pillar page in Night: heading rows with a link, hero facts, project cases. */
.is-style-section-night.agma-night-website-page .agma-night-website-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
}

.is-style-section-night.agma-night-website-page .agma-night-website-head-row > * {
	margin-block: 0;
}

.is-style-section-night.agma-night-website-page .agma-night-website-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.is-style-section-night.agma-night-website-page .agma-night-website-facts > li {
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--wp--preset--color--night-line);
	border-radius: 999px;
	color: var(--wp--preset--color--night-muted);
	font-size: var(--wp--preset--font-size--small);
}

.is-style-section-night.agma-night-website-page .agma-night-website-facts strong {
	color: var(--wp--preset--color--night-text);
	font-weight: 500;
}

.is-style-section-night.agma-night-website-page #vklyuchva h3 {
	margin-top: 56px;
}

.is-style-section-night.agma-night-website-page #vklyuchva .is-style-agma-night-checks,
.is-style-section-night.agma-night-website-page #vklyuchva .is-style-agma-night-table-panel,
.is-style-section-night.agma-night-website-page #tehnologia .is-style-agma-night-table-panel,
.is-style-section-night.agma-night-website-page .agma-night-website-cases {
	margin-top: 32px;
}

.is-style-section-night.agma-night-website-page .agma-night-website-case .agma-night-work-text strong {
	color: var(--wp--preset--color--night-text);
}

.is-style-section-night.agma-night-website-page .agma-night-website-case-link {
	margin-top: auto;
	padding-top: 20px;
}

.is-style-section-night.agma-night-website-page .is-style-agma-night-home-reviews > .is-style-agma-slider-layout {
	margin-top: 56px !important;
}

/* Logo page (25.11.2026): short price · time · scope line under the hero lead */
.is-style-section-night .agma-night-hero-facts {
	margin: 18px 0 0;
	font-size: 15px;
	color: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-hub-hero .agma-night-hero-facts {
	text-align: center;
}

.is-style-agma-night-split-hero .agma-night-hero-facts {
	text-align: left;
}

.is-style-section-night .agma-night-hero-facts a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--night-line-2);
	text-underline-offset: 4px;
}

.is-style-section-night .agma-night-hero-facts a:hover,
.is-style-section-night .agma-night-hero-facts a:focus-visible {
	color: var(--wp--preset--color--night-text);
}

/* An illustration says so under itself, so it is not read as a client result */
.is-style-agma-night-viz > figcaption {
	margin: 10px 4px 0;
	font-size: 13px;
	color: var(--wp--preset--color--night-dim);
}

/* Secondary link to the client's own site; sits above the card's full-size link layer */
.is-style-agma-night-work-card .agma-night-work-site {
	position: relative;
	z-index: 1;
	margin-top: 12px;
	font-size: 14px;
}

/* ------------------------------------------------------------------ */
/* Trust with a known source (docs/reredesingv2 R1–R5, E2; 25.11):     */
/* review source line, rating lines from site data, proof tiles.       */
/* ------------------------------------------------------------------ */

/* Stars in front of a checked rating line ("5.0 от 68 отзива в Clutch"); decorative, so no alt text. */
.is-style-agma-night-home .agma-rating-stars::before,
.is-style-agma-night-proof.agma-rating-stars::before {
	content: "★★★★★ " / "";
	color: var(--wp--preset--color--night-signal-hi);
	letter-spacing: 2px;
}

/* Where a review comes from, under its text ("Препоръка, предоставена на АГМА"). */
.is-style-agma-night-home-reviews .agma-review-source {
	margin: 0;
	color: var(--wp--preset--color--night-dim);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.04em;
}

.is-style-agma-night-home-reviews .agma-review-source-link .wp-block-button__link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--night-signal-hi);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Google rating panel left of the reviews (shown only with a checked rating). */
.is-style-agma-night-home-reviews .agma-night-home-google {
	display: grid;
	gap: 12px;
	margin-bottom: 32px;
}

.is-style-agma-night-home-reviews .agma-night-home-google > * {
	margin: 0;
}

/* Review of 25.11 (W2, H1, H5): variant terms, languages line, three guides. */
.is-style-agma-night-glass-card .agma-night-variant-terms {
	color: var(--wp--preset--color--night-signal-hi);
}

.is-style-agma-night-home-blog .agma-night-home-guides {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
	.is-style-agma-night-home-blog .agma-night-home-guides {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Long CTA inside a variant card wraps instead of widening the page on phones. */
.is-style-agma-night-glass-card.agma-night-variant .wp-block-button,
.is-style-agma-night-glass-card.agma-night-variant .wp-block-button__link {
	max-width: 100%;
	white-space: normal;
	text-align: center;
}

@media (max-width: 620px) {
	.is-style-agma-night-glass-card.agma-night-variant {
		padding: 28px 22px;
	}
}

/* Price plans (26.11.2026): three cards, the recommended one raised in the middle */
.is-style-agma-night-plans {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 0;
	margin-top: 0;
	padding-block: 44px;
}

.is-style-agma-night-plans > .is-style-agma-night-plan-featured {
	margin: -44px 0;
}

.is-style-agma-night-plans > .is-style-agma-night-plan {
	margin: 0;
}

.is-style-agma-night-plan,
.is-style-agma-night-plan-featured {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 40px 34px 36px;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--night-line-2);
	border-radius: 28px;
	background:
		linear-gradient(160deg, var(--wp--preset--color--white-10), transparent 45%),
		var(--wp--preset--color--night-panel);
}

.is-style-agma-night-plans > .is-style-agma-night-plan:first-child {
	border-right: 0;
	border-radius: 28px 0 0 28px;
}

.is-style-agma-night-plans > .is-style-agma-night-plan:last-child {
	border-left: 0;
	border-radius: 0 28px 28px 0;
}

.is-style-agma-night-plan-featured {
	z-index: 1;
	padding: 56px 34px 48px;
	border-color: var(--wp--preset--color--night-action);
	background:
		radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--wp--preset--color--night-action) 30%, transparent), transparent 70%),
		var(--wp--preset--color--night-panel-2);
	box-shadow:
		0 0 0 1px var(--wp--preset--color--night-signal-edge),
		0 30px 80px -30px color-mix(in srgb, var(--wp--preset--color--night-action) 70%, transparent);
}

.is-style-agma-night-plan > *,
.is-style-agma-night-plan-featured > * {
	margin: 0;
}

.is-style-agma-night-plan .agma-night-plan-badge,
.is-style-agma-night-plan-featured .agma-night-plan-badge {
	position: absolute;
	top: -1px;
	right: 28px;
	padding: 7px 14px;
	border-radius: 0 0 10px 10px;
	background: var(--wp--preset--color--night-action);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-plan h3,
.is-style-agma-night-plan-featured h3 {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: clamp(26px, 2.4vw, 36px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-plan .agma-night-plan-for,
.is-style-agma-night-plan-featured .agma-night-plan-for {
	min-height: 3em;
	margin-top: 18px;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-plan .agma-night-plan-price,
.is-style-agma-night-plan-featured .agma-night-plan-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	margin-top: 22px;
	font-size: 14px;
	color: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-plan .agma-night-plan-price strong,
.is-style-agma-night-plan-featured .agma-night-plan-price strong {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: clamp(36px, 3.6vw, 52px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-plan-featured .agma-night-plan-price strong {
	color: var(--wp--preset--color--night-signal-hi);
}

.is-style-agma-night-plan .agma-night-plan-kicker,
.is-style-agma-night-plan-featured .agma-night-plan-kicker {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--wp--preset--color--night-line);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-plan .agma-night-plan-list,
.is-style-agma-night-plan-featured .agma-night-plan-list {
	display: grid;
	gap: 14px;
	margin-top: 16px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-plan .agma-night-plan-list li,
.is-style-agma-night-plan-featured .agma-night-plan-list li {
	position: relative;
	padding-left: 32px;
}

.is-style-agma-night-plan .agma-night-plan-list li::before,
.is-style-agma-night-plan-featured .agma-night-plan-list li::before {
	content: "✓";
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--wp--preset--color--night-signal-wash);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--night-signal);
}

.is-style-agma-night-plan-featured .agma-night-plan-list li::before {
	background: var(--wp--preset--color--night-action);
	color: var(--wp--preset--color--white);
}

.is-style-agma-night-plan .agma-night-plan-list strong,
.is-style-agma-night-plan-featured .agma-night-plan-list strong {
	font-weight: 600;
	color: var(--wp--preset--color--night-text);
}

.is-style-agma-night-plan .wp-block-buttons,
.is-style-agma-night-plan-featured .wp-block-buttons {
	margin-top: auto;
	padding-top: 30px;
}

.is-style-agma-night-plan .wp-block-button,
.is-style-agma-night-plan-featured .wp-block-button,
.is-style-agma-night-plan .wp-block-button__link,
.is-style-agma-night-plan-featured .wp-block-button__link {
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.is-style-agma-night-plans + .agma-night-plans-note {
	max-width: 760px;
	margin: 36px auto 0;
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
	color: var(--wp--preset--color--night-dim);
}

@media (max-width: 1100px) {
	.is-style-agma-night-plans {
		grid-template-columns: minmax(0, 620px);
		justify-content: center;
		gap: 20px;
		padding-block: 0;
	}

	.is-style-agma-night-plans > .is-style-agma-night-plan-featured {
		margin: 0;
	}

	.is-style-agma-night-plans > .is-style-agma-night-plan:first-child,
	.is-style-agma-night-plans > .is-style-agma-night-plan:last-child {
		border: 1px solid var(--wp--preset--color--night-line-2);
		border-radius: 28px;
	}

	.is-style-agma-night-plan-featured {
		padding-top: 52px;
	}

	.is-style-agma-night-plan .agma-night-plan-for,
	.is-style-agma-night-plan-featured .agma-night-plan-for {
		min-height: 0;
	}
}

@media (max-width: 620px) {
	.is-style-agma-night-plan,
	.is-style-agma-night-plan-featured {
		padding: 34px 22px 28px;
	}

	.is-style-agma-night-plan-featured {
		padding-top: 48px;
	}
}

/*
 * /uslugi/izrabotka-na-sait/ (SEO brief 26.11.2026): button after a section, the office contact of the
 * "София" section and the contact card next to the FAQ (layout of the homepage FAQ).
 */
.is-style-section-night .agma-night-section-cta {
	justify-content: center;
	margin-top: var(--wp--preset--spacing--60) !important;
}

.is-style-section-night .agma-night-local-contact,
.is-style-section-night .agma-night-faq-contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--20);
}

.is-style-section-night .agma-night-local-contact {
	margin-top: var(--wp--preset--spacing--40);
}

.is-style-section-night .agma-night-local-contact > *,
.is-style-section-night .agma-night-faq-contact > * {
	margin-block: 0;
}

.is-style-section-night .agma-night-faq-contact .wp-block-image img {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top;
}

.is-style-section-night .agma-night-local-contact a[href^="tel:"],
.is-style-section-night .agma-night-faq-contact-phone a {
	font-size: var(--wp--preset--font-size--night-card-title);
	text-decoration: none;
}

/* Opt-in (class agma-night-steps-row on a process carousel): from 1200px all steps share the content width. */
@media (min-width: 1200px) {
	.is-style-agma-night-band > .agma-carousel.agma-night-steps-row .agma-carousel__track > * {
		flex: 1 1 0;
		min-width: 0;
	}
}

/*
 * Direction scenes (owner 27.11): one stage per service row, linked 1 → 2 → 3 → 4. The figure with
 * .agma-viz-stage shows only the active stage; the numbered line on top shows where the stage sits in the
 * whole service. Rows and stages advance together while the section is on screen (night-chrome.js); hovering or
 * focusing a row holds its stage. Fills and strokes are classes, so every color comes from a theme preset.
 * Movement along a path (a cursor, a dot on a flow) is SVG animateMotion: it scales with the viewBox, and the
 * script pauses it offscreen and with reduced motion.
 */
.is-style-agma-night-viz.agma-viz-stage .g {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.45s ease;
}

.is-style-agma-night-viz.agma-viz-stage .g.is-active,
.is-style-agma-night-viz.agma-viz-stage:not(.has-active) .g:first-of-type {
	opacity: 1;
}

.is-style-agma-night-viz.agma-viz-stage.has-active .g:not(.is-active) {
	opacity: 0;
}

.is-style-agma-night-viz .f-panel0 { fill: var(--wp--preset--color--night-panel); }
.is-style-agma-night-viz .f-panel { fill: var(--wp--preset--color--night-panel-2); }
.is-style-agma-night-viz .f-ground { fill: var(--wp--preset--color--night-ground); }
.is-style-agma-night-viz .f-ground2 { fill: var(--wp--preset--color--night-ground-2); }
.is-style-agma-night-viz .f-paper { fill: var(--agma-viz-93); }
.is-style-agma-night-viz .f-white { fill: var(--wp--preset--color--white); }
.is-style-agma-night-viz .f-gray { fill: var(--agma-viz-74); }
.is-style-agma-night-viz .f-gray2 { fill: var(--agma-viz-79); }
.is-style-agma-night-viz .f-mute { fill: var(--agma-viz-21); }
.is-style-agma-night-viz .f-soft { fill: var(--agma-viz-35); }
.is-style-agma-night-viz .f-text { fill: var(--wp--preset--color--night-text); }
.is-style-agma-night-viz .f-action { fill: var(--wp--preset--color--night-action); }
.is-style-agma-night-viz .f-signal { fill: var(--wp--preset--color--night-signal); }
.is-style-agma-night-viz .f-wash { fill: var(--wp--preset--color--night-signal-wash); }
.is-style-agma-night-viz .f-purple { fill: var(--wp--preset--color--purple); }
.is-style-agma-night-viz .f-purple2 { fill: var(--wp--preset--color--menu-ai); }
.is-style-agma-night-viz .f-err { fill: var(--wp--preset--color--night-error); }
.is-style-agma-night-viz .n { fill: none; }
.is-style-agma-night-viz .glow { opacity: 0.45; }

.is-style-agma-night-viz [class^="s-"],
.is-style-agma-night-viz [class*=" s-"] {
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.is-style-agma-night-viz path[class*="s-"]:not([class*="f-"]) { fill: none; }
.is-style-agma-night-viz .s-line { stroke: var(--wp--preset--color--night-line); }
.is-style-agma-night-viz .s-line2 { stroke: var(--wp--preset--color--night-line-2); }
.is-style-agma-night-viz .s-gray { stroke: var(--agma-viz-74); }
.is-style-agma-night-viz .s-soft { stroke: var(--agma-viz-35); stroke-width: 2; }
.is-style-agma-night-viz .s-signal { stroke: var(--wp--preset--color--night-signal); }
.is-style-agma-night-viz .s-signal-w { stroke: var(--wp--preset--color--night-signal); stroke-width: 2.5; }
.is-style-agma-night-viz .s-action2 { stroke: var(--wp--preset--color--night-action); stroke-width: 2; }
.is-style-agma-night-viz .s-white { stroke: var(--wp--preset--color--white); stroke-width: 2; fill: none; }
.is-style-agma-night-viz .s-err { stroke: var(--wp--preset--color--night-error); stroke-width: 1.5; }
.is-style-agma-night-viz .s-purple { stroke: var(--wp--preset--color--menu-ai); stroke-width: 1.5; }
.is-style-agma-night-viz .s-mute-w { stroke: var(--agma-viz-21); stroke-width: 10; }
.is-style-agma-night-viz .f-star { fill: var(--wp--preset--color--night-star); }
.is-style-agma-night-viz .vt-k { fill: var(--wp--preset--color--night-signal-hi); }
.is-style-agma-night-viz .vt-b { font-size: 11px; }

.is-style-agma-night-viz .vt-s { font-size: 11px; fill: var(--wp--preset--color--night-dim); }
.is-style-agma-night-viz .vt-e { font-size: 13px; font-weight: 700; fill: var(--wp--preset--color--night-error); }
.is-style-agma-night-viz .vt-c.on { fill: var(--wp--preset--color--white); }

.is-style-agma-night-viz .vt-t {
	font-family: var(--wp--preset--font-family--unbounded);
	font-size: 19px;
	font-weight: 500;
	letter-spacing: -0.03em;
	fill: var(--wp--preset--color--night-text);
}

.is-style-agma-night-viz .node circle {
	fill: var(--wp--preset--color--night-panel-2);
	stroke: var(--wp--preset--color--night-line-2);
	stroke-width: 1.5;
}

.is-style-agma-night-viz .node text {
	font-weight: 700;
	fill: var(--wp--preset--color--night-dim);
}

.is-style-agma-night-viz .cursor {
	fill: var(--wp--preset--color--white);
	stroke: var(--wp--preset--color--night-ground-2);
	stroke-width: 1.2;
}

/* Motion primitives: they run only on the active stage and restart each time it becomes active. */
.is-style-agma-night-viz .rise,
.is-style-agma-night-viz .ring,
.is-style-agma-night-viz .ring-err {
	transform-box: fill-box;
	transform-origin: center;
}

.is-style-agma-night-viz .g.is-active .draw { animation-delay: var(--d, 0s); }
.is-style-agma-night-viz .g.is-active .rise { animation: agma-viz-rise 0.6s var(--agma-night-ease, ease) both; animation-delay: var(--d, 0s); }
.is-style-agma-night-viz .g.is-active .ring { animation: agma-viz-ring 1.8s ease-out infinite; }
.is-style-agma-night-viz .g.is-active .ring-err { animation: agma-viz-ring 1.6s ease-out 1.2s infinite; }

@keyframes agma-viz-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes agma-viz-ring { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }

.is-style-agma-night-viz .ring { fill: none; stroke: var(--wp--preset--color--night-signal); stroke-width: 2; opacity: 0; }
.is-style-agma-night-viz .ring-err { fill: none; stroke: var(--wp--preset--color--night-error); stroke-width: 2; opacity: 0; }

/* The active row shows how long its stage stays while the section plays by itself. */
.is-style-agma-night-direction.is-autoplay .is-style-agma-night-service.is-active::before {
	background:
		linear-gradient(var(--wp--preset--color--night-signal), var(--wp--preset--color--night-signal)) no-repeat 16px calc(100% - 1px) / 0 2px,
		var(--wp--preset--color--night-panel);
	animation: agma-viz-dwell var(--agma-viz-dwell, 5.2s) linear both;
}

@keyframes agma-viz-dwell { to { background-size: calc(100% - 32px) 2px, auto; } }

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-night-viz .g.is-active .rise,
	.is-style-agma-night-viz .g.is-active .ring,
	.is-style-agma-night-viz .g.is-active .ring-err {
		animation: none;
	}
}

/* ------------------------------------------------------------------ */
/* Home hero "Poster" (owner 26.11/27.11, prototype                    */
/* claude.ai/artifact/XK6K5TysrdDV8TyQK1b5ah). The smoke is the        */
/* picture: no background, image or card. The upper part belongs to    */
/* the smoke and the glass mark (agma/glass-mark); the headline sits    */
/* bottom left with one sentence and the buttons; a hairline bar at the */
/* foot holds the Clutch rating, the team line and six service links.   */
/* The h1 is half the prototype's size (owner 27.11): 24–44px.          */
/* ------------------------------------------------------------------ */

.is-style-agma-night-home-poster {
	--agma-night-hero-bar: 84px;
	position: relative;
}

/* The hero starts at the top of the viewport, behind the fixed header: drop the block gap the page wrapper
   gets after the (zero-height) agma/fluid-background block, so the full-screen frame ends at the fold. */
.is-style-agma-night-home.is-style-agma-night-home:has(> .is-style-agma-night-home-poster:first-child) {
	margin-block-start: 0;
}

/* Full screen (owner 27.11): the frame fills the viewport under the fixed header. All free space above the
   headline holds the smoke and the glass mark; the headline sits at the bottom, right above the bar. */
.is-style-agma-night-home-poster > .agma-night-poster-frame {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto auto;
	min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
	padding-top: var(--agma-night-hero-bar);
	box-sizing: border-box;
}

/* The glass mark fills the free space above the headline (owner 27.11: larger letters); view.js sizes the
   letters to this box (width or height, whichever runs out first) and needs at least 80px. Without the mark
   (touch, narrow, reduced motion) the CSS of the block hides it and the row stays empty. */
.is-style-agma-night-home-poster .agma-glass-mark {
	align-self: stretch;
	height: auto;
	min-height: clamp(120px, 14vw, 220px);
	margin-block: clamp(12px, 2.4vh, 32px) clamp(16px, 3vh, 36px) !important;
}

.is-style-agma-night-home-poster .agma-glass-mark__hint {
	top: 0;
}

.is-style-agma-night-home-poster .agma-night-poster-frame > * {
	margin-block: 0;
}

.is-style-agma-night-home-poster .agma-night-poster-body {
	padding-bottom: clamp(36px, 6.5vh, 76px);
}

.is-style-agma-night-home-poster .agma-night-poster-body > * {
	margin-block: 0;
}

.is-style-agma-night-home-poster h1 {
	max-width: 24em;
	margin: 0;
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.is-style-agma-night-home-poster .agma-night-poster-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px 56px;
	margin-top: clamp(24px, 3.5vh, 40px);
}

.is-style-agma-night-home-poster .agma-night-poster-row > * {
	margin-block: 0;
}

.is-style-agma-night-home-poster .agma-night-poster-lead {
	max-width: 38ch;
	margin: 0;
	font-size: var(--wp--preset--font-size--night-lead);
	line-height: 1.5;
	color: var(--wp--preset--color--night-muted);
	text-wrap: pretty;
}

.is-style-agma-night-home-poster .wp-block-buttons {
	gap: 12px;
}

.is-style-agma-night-home-poster .is-style-agma-night-primary .wp-block-button__link::after {
	content: "→";
	margin-left: 8px;
	transition: transform 0.25s var(--agma-night-ease, ease);
}

.is-style-agma-night-home-poster .is-style-agma-night-primary .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/* The bar at the foot of the screen. */
.is-style-agma-night-home-poster .agma-night-poster-bar {
	grid-row: 3;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 14px 48px;
	padding: 18px 0 22px;
	border-top: 1px solid var(--wp--preset--color--night-line);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	color: var(--wp--preset--color--night-muted);
}

.is-style-agma-night-home-poster .agma-night-poster-bar > *,
.is-style-agma-night-home-poster .agma-night-poster-about > * {
	margin: 0;
}

.is-style-agma-night-home-poster .agma-night-poster-about {
	display: grid;
	gap: 4px;
}

.is-style-agma-night-home-poster .agma-night-poster-about .wp-block-buttons {
	display: block;
}

.is-style-agma-night-home-poster .agma-night-poster-rating .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	line-height: 1.4;
	color: var(--wp--preset--color--night-text);
	white-space: nowrap;
	text-decoration: none;
}

.is-style-agma-night-home-poster .agma-night-poster-rating .wp-block-button__link::before {
	content: "★★★★★" / "";
	font-size: var(--wp--preset--font-size--xx-small);
	letter-spacing: 2px;
	color: var(--wp--preset--color--night-star);
}

.is-style-agma-night-home-poster .agma-night-poster-rating .wp-block-button__link:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--night-signal);
	text-underline-offset: 4px;
}

.is-style-agma-night-home-poster .agma-night-poster-meta {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--night-quiet);
	white-space: nowrap;
}

.is-style-agma-night-home-poster .agma-night-poster-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 26px;
	margin: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--medium);
	list-style: none;
}

.is-style-agma-night-home-poster .agma-night-poster-links li {
	margin: 0;
}

.is-style-agma-night-home-poster .agma-night-poster-links a {
	color: var(--wp--preset--color--night-text);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--night-line-2);
	text-underline-offset: 6px;
	transition: text-decoration-color 0.2s;
}

.is-style-agma-night-home-poster .agma-night-poster-links a:hover {
	text-decoration-color: var(--wp--preset--color--night-signal);
}

@media (hover: none), (max-width: 759px), (prefers-reduced-motion: reduce) {
	.is-style-agma-night-home-poster .agma-glass-mark {
		height: 0;
		min-height: 0;
		margin-block: 48px 0 !important;
	}
}

@media (max-width: 1099px) {
	.is-style-agma-night-home-poster .agma-night-poster-bar {
		grid-template-columns: minmax(0, 1fr);
	}

	.is-style-agma-night-home-poster .agma-night-poster-links {
		justify-content: flex-start;
	}
}

@media (max-width: 920px) {
	.is-style-agma-night-home-poster {
		--agma-night-hero-bar: 72px;
	}
}

@media (max-width: 640px) {
	.is-style-agma-night-home-poster .agma-night-poster-row {
		gap: 24px;
	}

	.is-style-agma-night-home-poster .wp-block-buttons,
	.is-style-agma-night-home-poster .agma-night-poster-row .wp-block-button,
	.is-style-agma-night-home-poster .agma-night-poster-row .wp-block-button__link {
		width: 100%;
	}

	.is-style-agma-night-home-poster .agma-night-poster-links {
		gap: 10px 20px;
	}

	.is-style-agma-night-home-poster .agma-night-poster-bar {
		gap: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-style-agma-night-home-poster .is-style-agma-night-primary .wp-block-button__link::after,
	.is-style-agma-night-home-poster .agma-night-poster-links a {
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* Touch targets (audit M-2): small links get an invisible hit area of */
/* at least 44px height; the look and the layout do not change.        */
/* ------------------------------------------------------------------ */
.is-style-section-night .agma-review-linkedin .wp-block-button__link,
.is-style-section-night .agma-night-poster-rating .wp-block-button__link {
	position: relative;
}

.is-style-section-night .agma-review-linkedin .wp-block-button__link::after,
.is-style-section-night .agma-night-poster-rating .wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: -12px 0;
}

/* Footer link lists: the rows are close together, so the area grows only to 24px (WCAG 2.2 AA) without overlap. */
.is-style-agma-night-footer .wp-block-navigation-item__content {
	position: relative;
}

.is-style-agma-night-footer .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	inset: -2px 0;
}
