/* =====================================================================
   Home · Quorum section (graphic slug quorum-home), right after the hero.
   Designer handover 2026-11-23 (quorum-home-new-look/assets/css/quorum-ai.css),
   moved onto the block classes of patterns/home-quorum.php:
     .qa-sec  -> .quorum-home          Group (the section)
     .qa-grid -> .quorum-home__grid    Group inside it
     .qa-text -> .quorum-home__text    Group: eyebrow, heading, intro, facts, buttons
     .qa-art  -> .q-anim--quorum-home  this block
   The SVG classes (.qa, .qa--d, .qa--m, .qa-orb, ...) are the designer's.

   Entrance: view.js sets [data-q-anim-ready] on the block when it starts and
   .is-visible when the graphic scrolls into view. The text column listens to
   the same two flags through :has(), so the section needs no extra script.
   Without JS, or with reduced motion, everything is shown and nothing moves.
   ===================================================================== */

/* The theme already makes a top-level Group a full-width section and gives
   the Group inside it --main-content-padding-x (80 / 40 / 24px). Only the
   vertical padding is the designer's (Figma 72px); "body .wp-block-group" beats the
   theme's "post-content > group" section padding. */
body .wp-block-group.quorum-home {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-top: 72px;
	padding-bottom: 72px;
}

/* No section background: the designer's panel tint and the two soft glows
   (.glow--green, .glow--teal) were taken out after the release (Kres,
   2026-11-26), so the section sits on the page background like the others. */

/* Designer .wrap: 1280px of content plus the side padding. */
.quorum-home .quorum-home__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 0 64px;
	align-items: start;
	box-sizing: border-box;
	max-width: calc(1280px + 2 * var(--main-content-padding-x, 80px));
	margin: 0 auto;
	padding-inline: var(--main-content-padding-x, 80px);
}

/* ---------- left: text, aligned to the top of the graphic (Kres, 2026-11-26) ---------- */
.quorum-home .quorum-home__text {
	margin: 0;
	padding-bottom: 12px;
}

.quorum-home .quorum-home__text > * {
	margin-block: 0;
}

/* The theme gives h2 a bottom margin (.is-layout-flow :is(h2)); the gap below
   the title is the intro's margin-top. The top stays at the theme's 16px after
   an intro label (designer: 14px). */
.quorum-home h2.quorum-home__title {
	max-width: 600px;
	margin-top: 14px;
	margin-bottom: 0;
	font-size: 48px;
	font-weight: 700;
	line-height: 56px;
	letter-spacing: -0.6px;
}

.quorum-home p.quorum-home__lead {
	max-width: 560px;
	margin-top: 20px;
	margin-bottom: 0;
	font-size: 19px;
	line-height: 29px;
	letter-spacing: -0.4px;
	color: #e5e5e5;
}

.quorum-home ul.quorum-home__facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 24px;
	margin: 28px 0 0;
	padding: 24px 0 0;
	list-style: none;
	border-top: 1px solid rgba(146, 226, 255, 0.14);
	/* The theme spaces list items with margin (.wp-block-list > li:not(:last-child));
	   here the grid gap does it. */
	--list-item-gap: 0;
}

/* One fact, a List item "<strong>Name</strong> line": icon tile on the left
   over two rows, the bold name in row 1, the muted line in row 2. The line is
   plain text, so grid auto-placement puts it in the free cell under the name. */
.quorum-home ul.quorum-home__facts > li {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	column-gap: 12px;
	align-items: center;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 20px;
	color: #a3adab;
}

.quorum-home .quorum-home__facts > li::before {
	content: "";
	grid-row: 1 / span 2;
	grid-column: 1;
	width: 40px;
	height: 40px;
	box-sizing: border-box;
	border: 1px solid rgba(1, 255, 64, 0.35);
	border-radius: 12px;
	/* Longhands: a background shorthand here would reset the icon images below. */
	background-color: rgba(1, 255, 64, 0.08);
	background-position: center;
	background-size: 20px 20px;
	background-repeat: no-repeat;
}

.quorum-home .quorum-home__fact-lifecycle::before {
	background-image: url(icons/whole-lifecycle.svg);
}

.quorum-home .quorum-home__fact-pods::before {
	background-image: url(icons/human-agent-pods.svg);
}

.quorum-home .quorum-home__fact-memory::before {
	background-image: url(icons/shared-memory.svg);
}

.quorum-home .quorum-home__fact-signed::before {
	background-image: url(icons/signed-off.svg);
}

.quorum-home .quorum-home__facts strong {
	grid-column: 2;
	display: block;
	margin-bottom: 1px;
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
	color: #fff;
}

.quorum-home .quorum-home__text > .wp-block-buttons {
	margin-top: 40px;
}

/* ---------- right: the graphic ----------
   The grid Group is a flow layout, so WordPress gives its children a block-gap
   top margin and clears the last child's bottom margin; the margins here need
   the grid in the selector to win. */
.quorum-home .quorum-home__grid > .q-anim--quorum-home {
	position: relative;
	margin: 0;
}

.q-anim--quorum-home .qa {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.q-anim--quorum-home .qa--m {
	display: none;
}

/* Desktop: fill the column but keep the whole section within one screen.
   The SVG is square; width:auto would stop at its 640px width attribute. */
@media (min-width: 1100px) {
	.q-anim--quorum-home .qa--d {
		width: min(100%, calc(100svh - 150px));
		margin-left: auto;
	}
}

/* ---------- always-on motion ---------- */
.q-anim--quorum-home .qa-orb--3 {
	animation: qa-dash 6s linear infinite;
}

.q-anim--quorum-home .qa-orb--2 {
	animation: qa-dash 9s linear infinite reverse;
}

@keyframes qa-dash {
	to {
		stroke-dashoffset: -96;
	}
}

.q-anim--quorum-home .qa-hex-o {
	transform-box: fill-box;
	transform-origin: center;
	animation: qa-spin 24s linear infinite;
}

@keyframes qa-spin {
	to {
		transform: rotate(360deg);
	}
}

.q-anim--quorum-home .qa-halo {
	transform-box: fill-box;
	transform-origin: center;
	animation: qa-breathe 4.8s ease-in-out infinite;
}

@keyframes qa-breathe {
	50% {
		opacity: 0.65;
		transform: scale(0.94);
	}
}

.q-anim--quorum-home .qa-beam {
	animation: qa-beam 3.6s ease-in-out infinite;
}

@keyframes qa-beam {
	50% {
		opacity: 0.45;
	}
}

.q-anim--quorum-home .qa-link {
	animation: qa-dash 3s linear infinite reverse;
}

.q-anim--quorum-home .qa-ring {
	transform-box: fill-box;
	transform-origin: center;
	animation: qa-ping 7.2s ease-out infinite;
	animation-delay: calc(var(--i) * 1.2s);
}

@keyframes qa-ping {
	0%,
	4% {
		transform: scale(1);
		opacity: 0.9;
		stroke-opacity: 0.9;
	}
	18% {
		transform: scale(2.1);
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

.q-anim--quorum-home .qa-dot {
	animation: qa-blink 7.2s ease-in-out infinite;
	animation-delay: calc(var(--i) * 1.2s);
}

@keyframes qa-blink {
	0%,
	4% {
		fill: #fff;
	}
	14%,
	100% {
		fill: #01ff40;
	}
}

.q-anim--quorum-home .qa-chev--1 {
	animation: qa-chev 2.4s ease-in-out infinite;
}

.q-anim--quorum-home .qa-chev--2 {
	animation: qa-chev 2.4s ease-in-out 0.2s infinite;
}

.q-anim--quorum-home .qa-chev--3 {
	animation: qa-chev 2.4s ease-in-out 0.4s infinite;
}

@keyframes qa-chev {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

/* ---------- entrance: text column ----------
   Designer order: eyebrow, title, intro, the four facts, then the button. */
.quorum-home__text > :nth-child(1) { --qh-d: 0; }
.quorum-home__text > :nth-child(2) { --qh-d: 1; }
.quorum-home__text > :nth-child(3) { --qh-d: 2; }
.quorum-home__facts > li:nth-child(1) { --qh-d: 4; }
.quorum-home__facts > li:nth-child(2) { --qh-d: 5; }
.quorum-home__facts > li:nth-child(3) { --qh-d: 6; }
.quorum-home__facts > li:nth-child(4) { --qh-d: 7; }
.quorum-home__text > .wp-block-buttons { --qh-d: 8; }

.quorum-home:has(.q-anim--quorum-home[data-q-anim-ready]) :is(.quorum-home__text > :not(.quorum-home__facts), .quorum-home__facts > li) {
	opacity: 0;
	transform: translateY(22px);
	transition:
		opacity 0.7s ease,
		transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
	transition-delay: calc(var(--qh-d, 0) * 0.08s + 0.1s);
}

.quorum-home:has(.q-anim--quorum-home.is-visible) :is(.quorum-home__text > :not(.quorum-home__facts), .quorum-home__facts > li) {
	opacity: 1;
	transform: none;
}

/* ---------- entrance: graphic ---------- */
.q-anim--quorum-home[data-q-anim-ready] :is(.qa-orb, .qa-floor, .qa-halo-wrap) {
	opacity: 0;
	transition: opacity 1s ease 0.2s;
}

.q-anim--quorum-home[data-q-anim-ready] .qa-orb {
	transform-box: view-box;
	transform-origin: 320px 392px;
	transform: scale(0.55);
	transition:
		opacity 0.9s ease,
		transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.q-anim--quorum-home[data-q-anim-ready] .qa-orb--1 { transition-delay: 0.25s; }
.q-anim--quorum-home[data-q-anim-ready] .qa-orb--2 { transition-delay: 0.35s; }
.q-anim--quorum-home[data-q-anim-ready] .qa-orb--3 { transition-delay: 0.45s; }
.q-anim--quorum-home[data-q-anim-ready] .qa-orb--4 { transition-delay: 0.15s; }

.q-anim--quorum-home[data-q-anim-ready] .qa-core {
	transform-box: fill-box;
	transform-origin: center;
	opacity: 0;
	transform: scale(0.6);
	transition:
		opacity 0.6s ease 0.5s,
		transform 0.9s cubic-bezier(0.3, 1.5, 0.5, 1) 0.5s;
}

.q-anim--quorum-home[data-q-anim-ready] .qa-node {
	opacity: 0;
	transform: translateY(10px);
	transition:
		opacity 0.5s ease,
		transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
	transition-delay: calc(0.9s + var(--i) * 0.12s);
}

.q-anim--quorum-home[data-q-anim-ready] .qa-hud {
	opacity: 0;
	transition:
		opacity 0.6s ease,
		transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.q-anim--quorum-home[data-q-anim-ready] .qa-hud--a {
	transform: translateX(-16px);
	transition-delay: 1.6s;
}

.q-anim--quorum-home[data-q-anim-ready] .qa-hud--b {
	transform: translateX(16px);
	transition-delay: 1.8s;
}

.q-anim--quorum-home[data-q-anim-ready] :is(.qa-link, .qa-pk, .qa-scan) {
	opacity: 0;
	transition: opacity 0.6s ease 1.4s;
}

.q-anim--quorum-home[data-q-anim-ready].is-visible :is(.qa-orb, .qa-floor, .qa-halo-wrap, .qa-core, .qa-node, .qa-hud, .qa-link, .qa-pk, .qa-scan) {
	opacity: 1;
	transform: none;
}

/* =====================================================================
   BREAKPOINTS (the designer's). Two SVGs: .qa--d (desktop and tablet) and
   .qa--m (phone: tighter crop, bigger labels, no status panels).
   ===================================================================== */

/* 1100–1279: same layout, slightly tighter */
@media (max-width: 1279px) {
	.quorum-home .quorum-home__grid {
		gap: 0 40px;
	}

	.quorum-home h2.quorum-home__title {
		font-size: 42px;
		line-height: 50px;
	}
}

/* 900–1099 (small laptop, landscape tablet): still side by side */
@media (max-width: 1099px) {
	body .wp-block-group.quorum-home {
		padding-block: 64px;
	}

	.quorum-home .quorum-home__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 0 32px;
	}

	.quorum-home h2.quorum-home__title {
		font-size: 36px;
		line-height: 44px;
	}

	.quorum-home p.quorum-home__lead {
		font-size: 17px;
		line-height: 26px;
	}

	.quorum-home ul.quorum-home__facts {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.quorum-home .quorum-home__text > .wp-block-buttons {
		margin-top: 32px;
	}
}

/* 640–899 (portrait tablet): graphic on top, text below */
@media (max-width: 899px) {
	.quorum-home .quorum-home__grid {
		grid-template-columns: 1fr;
	}

	/* Negative bottom margin trims the empty floor under the graphic. */
	.quorum-home .quorum-home__grid > .q-anim--quorum-home {
		order: -1;
		width: 100%;
		max-width: 600px;
		margin: -8px auto -9%;
	}

	.quorum-home .quorum-home__text {
		padding-bottom: 0;
	}

	.quorum-home h2.quorum-home__title {
		max-width: 640px;
		font-size: 40px;
		line-height: 48px;
	}

	.quorum-home p.quorum-home__lead {
		max-width: 640px;
	}

	.quorum-home ul.quorum-home__facts {
		grid-template-columns: 1fr 1fr;
		gap: 18px 24px;
	}
}

/* below 640 (phone): the phone graphic, one column */
@media (max-width: 639px) {
	body .wp-block-group.quorum-home {
		padding-block: 32px 56px;
	}

	.q-anim--quorum-home .qa--d {
		display: none;
	}

	.q-anim--quorum-home .qa--m {
		display: block;
	}

	.quorum-home .quorum-home__grid > .q-anim--quorum-home {
		width: auto;
		max-width: none;
		margin: 0 -6px 20px;
	}

	.quorum-home h2.quorum-home__title {
		font-size: 32px;
		line-height: 38px;
	}

	.quorum-home p.quorum-home__lead {
		margin-top: 16px;
		font-size: 17px;
		line-height: 26px;
	}

	.quorum-home ul.quorum-home__facts {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-top: 24px;
		padding-top: 20px;
	}

	.quorum-home .quorum-home__text > .wp-block-buttons {
		margin-top: 32px;
	}

	.quorum-home .quorum-home__text .wp-block-button,
	.quorum-home .quorum-home__text .wp-block-button__link {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.quorum-home *,
	.quorum-home *::before {
		animation: none !important;
		transition: none !important;
	}

	.quorum-home .qa-pk,
	.quorum-home .qa-scan {
		display: none;
	}
}
