/**
 * Homepage compositions. A rendered section owns its spacing, never its parent.
 */
.gbg-home-main,
.gbg-home-main > .wp-block-post-content,
.gbg-home-flow { min-inline-size: 0; margin-block: 0; padding-block: 0; }
.gbg-home-flow > * { margin-block: 0; }
.gbg-home-section { min-inline-size: 0; padding: var(--wp--preset--spacing--section) var(--gbg-gutter); overflow-wrap: anywhere; }
.gbg-container { min-inline-size: 0; max-width: var(--wp--style--global--wide-size, 80rem); margin-inline: auto; }
.gbg-home-section :where(h1, h2, h3, p) { margin-block: 0 1.25rem; overflow-wrap: anywhere; }
.gbg-home-section :where(h2:empty, p:empty, figure:empty) { display: none; }
.editor-styles-wrapper .gbg-home-section :where(h2:empty, p:empty, figure:empty) { display: block; }
.gbg-home-section h2 { max-width: 22ch; }
.gbg-section-intro { max-width: 46rem; }
.gbg-hero {
	--gbg-hero-blue: #4689FF;
	position: relative; isolation: isolate;
	padding-block: clamp(3rem, 6vw, 6rem);
	background-image: radial-gradient(ellipse at 85% 35%, rgba(36, 107, 253, 0.12), transparent 65%);
}
.gbg-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: url("../images/grain.svg"); opacity: 0.025;
}
.gbg-hero-layout { display: grid; gap: 2.5rem; align-items: center; }
.gbg-hero-layout > * { min-inline-size: 0; }
.gbg-hero-copy { min-width: 0; position: relative; z-index: 1; }
.gbg-hero-title {
	font-size: clamp(1.7rem, 8.5vw, 4rem);
	line-height: 1.02; letter-spacing: -0.045em; font-weight: 680;
	color: var(--wp--preset--color--canvas);
}
.gbg-hero-title span { display: block; white-space: normal; overflow-wrap: normal; word-break: normal; }
.gbg-hero-title span:last-child { color: var(--gbg-hero-blue); }
.gbg-hero .gbg-hero-lead {
	max-width: 36rem; margin-block: 1.75rem 1.5rem;
	font-size: clamp(1rem, 1.65vw, 1.375rem); line-height: 1.6;
	color: #C4CDDA;
}
.gbg-hero .gbg-hero-scope {
	margin-block: 0 2rem; padding-inline-start: 1rem;
	border-inline-start: 1px solid var(--gbg-hero-blue);
	font-size: 0.875rem; letter-spacing: 0.04em; color: #B6C2D3;
}
.gbg-hero .gbg-cta-approach a { padding: 1rem 1.5rem; min-height: 56px; }
.gbg-hero .gbg-cta-approach a::after { content: "↓"; margin-inline-start: 1rem; }
/* Copy is readable throughout this finite reveal; the CTA is never delayed. */
@keyframes gbg-hero-enter { from { translate: 0 6px; } to { translate: 0 0; } }
.gbg-hero-title { animation: gbg-hero-enter 600ms ease-out both; }
.gbg-hero-lead, .gbg-hero-scope { animation: gbg-hero-enter 350ms 80ms ease-out both; }
.gbg-performance-metrics { animation: gbg-hero-enter 350ms 150ms ease-out both; }
.gbg-signal-path { width: 100%; height: 220px; min-width: 0; contain: layout paint; }
.gbg-signal-path canvas { width: 100%; height: 100%; display: block; }
/* A single illustrative interface. Its HTML disclosure survives Canvas/JS failure. */
.gbg-performance-view {
	--gbg-hero-blue: #4689FF;
	box-sizing: border-box; height: auto; min-inline-size: 0; max-inline-size: 100%;
	padding: 1.25rem; border: 1px solid rgba(137, 158, 187, 0.2); border-radius: 12px;
	background: linear-gradient(145deg, rgba(137, 158, 187, 0.045), transparent 65%);
}
.gbg-performance-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; font-size: 0.6875rem; line-height: 1.5; letter-spacing: 0.1em; text-transform: uppercase; color: #A8B8CD; }
.gbg-performance-meta strong { color: #CBD5E3; font-weight: 500; }
.gbg-performance-chart { position: relative; height: 180px; margin-block: 1rem; }
.gbg-performance-chart :where(canvas, svg) { position: absolute; inset: 0; width: 100%; height: 100%; }
.gbg-performance-chart canvas { visibility: hidden; }
.gbg-performance-view.is-canvas-ready canvas { visibility: visible; }
.gbg-performance-view.is-canvas-ready .gbg-performance-fallback { visibility: hidden; }
.gbg-performance-fallback { fill: none; }
.gbg-performance-grid { stroke: #8994A5; stroke-width: 0.5; opacity: 0.18; }
.gbg-performance-context { stroke: #8994A5; stroke-width: 1; opacity: 0.35; }
.gbg-performance-trend { stroke: var(--gbg-hero-blue); stroke-width: 2; }
.gbg-performance-points { fill: var(--gbg-hero-blue); }
.gbg-performance-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.5rem), 1fr)); gap: 0.75rem; margin: 0; padding-block-start: 1.25rem; border-top: 1px solid rgba(137, 158, 187, 0.2); }
.gbg-performance-metrics > div { min-inline-size: 0; }
.gbg-performance-metrics dt { color: #A8B8CD; font-size: 0.6875rem; line-height: 1.5; }
.gbg-performance-metrics dd { margin: 0.375rem 0 0; color: #F7F7F4; font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 550; line-height: 1.2; letter-spacing: -0.035em; }
.gbg-performance-view .gbg-performance-note { margin: 1.25rem 0 0; color: #A8B8CD; font-size: 0.6875rem; line-height: 1.5; }
/* Header refinement is confined to the existing dark homepage wrapper. */
.gbg-header--dark .site-header { border-bottom-color: rgba(137, 158, 187, 0.18); }
.gbg-header--dark .wp-block-site-title { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 650; letter-spacing: -0.045em; }
.gbg-header--dark .wp-block-navigation { font-size: 0.9375rem; }
.gbg-header--dark .gbg-header-cta .wp-block-button__link { padding-inline: 1.25rem; }
.gbg-pov .gbg-container { max-width: 60rem; }
.gbg-principles { padding-top: 2rem; border-top: 1px solid var(--gbg-border); }
.gbg-levers { display: grid; gap: 2.5rem; margin-block: 3rem; }
.gbg-levers > .gbg-lever { margin-block-start: 0; }
.gbg-lever { padding-block-start: 1.5rem; border-top: 1px solid var(--gbg-border); min-width: 0; }
.gbg-lever h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.gbg-measurement { padding-top: 2rem; border-top: 1px solid var(--gbg-border); max-width: 60rem; }
.gbg-founder-layout { display: grid; gap: 3rem; align-items: start; }
.gbg-founder-intro, .gbg-founder-details { min-width: 0; }
.gbg-founder-name { font-weight: 650; }
.gbg-work-list { display: grid; gap: 4rem; }
.gbg-work-item { display: grid; gap: 1.5rem; min-width: 0; padding-block: 2rem; border-top: 1px solid var(--gbg-border); }
.gbg-work-summary { min-width: 0; overflow-wrap: anywhere; }
.gbg-work-evidence { min-width: 0; }
.gbg-work-evidence > img {
	height: auto; max-width: 100%; border: 1px solid var(--gbg-border);
	box-shadow: var(--wp--custom--shadow--subtle); border-radius: var(--wp--custom--radius--card);
}
.gbg-insights-grid { display: grid; gap: 2rem; margin-top: 2.5rem; }
.gbg-insight { min-width: 0; border-top: 1px solid var(--gbg-border); padding-top: 1.5rem; }
.gbg-insight img { display: block; width: 100%; height: auto; margin-bottom: 1.25rem; border-radius: var(--wp--custom--radius--card); }
.gbg-insight h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.gbg-note-layout { display: grid; gap: 2rem; }
.gbg-note-controls { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.gbg-note-form { min-width: 0; }
.gbg-note-form label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.gbg-note-form input { flex: 1 1 15rem; min-width: 0; width: 100%; box-sizing: border-box; min-height: 52px; padding: 0.75rem; border: 1px solid var(--gbg-control-border); border-radius: var(--wp--custom--radius--button); font: inherit; }
.gbg-note-form button { flex: 0 0 auto; }
.gbg-note-form input[aria-invalid="true"] { border-color: var(--wp--preset--color--error); }
.gbg-note-error { color: var(--wp--preset--color--error); }
.gbg-note-form .gbg-note-error, .gbg-note-form .gbg-note-status { margin-top: 0.75rem; }
.gbg-final-cta { text-align: left; }
.gbg-editor-block { padding: 1.5rem; border: 1px dashed currentColor; }
@media (min-width: 600px) {
	.gbg-signal-path { height: 260px; }
	.gbg-hero-title { font-size: clamp(2.75rem, 7vw, 4.75rem); }
	.gbg-performance-view { height: auto; padding: 1.75rem; }
	.gbg-performance-chart { height: 260px; }
	.gbg-performance-meta { font-size: 0.75rem; }
	.gbg-performance-metrics dt { font-size: 0.75rem; }
}
@media (min-width: 768px) and (max-width: 899px) {
	.gbg-insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gbg-insight-0 { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
	.gbg-hero { min-block-size: clamp(35rem, 45vw, 44rem); display: grid; align-items: center; }
	.gbg-hero > .gbg-container { width: 100%; }
	.gbg-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
	.gbg-hero-title { font-size: clamp(2.25rem, 4.55vw, 4rem); }
	.gbg-signal-path { height: 420px; }
	.gbg-performance-view { height: auto; padding: 1.5rem; }
	.gbg-performance-chart { height: clamp(260px, 24vw, 330px); }
	.gbg-levers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gbg-founder-layout {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}
	.gbg-work-count-1 .gbg-work-item--with-image { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; }
	.gbg-work-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
	.gbg-work-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
	.gbg-insights-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.gbg-insight-0 { grid-row: span 2; }
	.gbg-note-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
}
@media (min-width: 1200px) {
	.gbg-hero-layout { grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); gap: 3rem; }
	.gbg-signal-path { height: 480px; }
	.gbg-performance-view { height: auto; padding: 2rem; }
}
@media (min-width: 1440px) {
	.gbg-hero-layout { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }
}
@media (max-width: 359px) {
	.gbg-performance-view { padding: 1rem; }
	.gbg-performance-metrics { gap: 0.5rem; }
}
/* Extra reflow room lets enlarged metric text wrap instead of clipping. */
@media (max-width: 599px) {
	.gbg-performance-fallback .gbg-performance-grid { opacity: 0.1; }
	.gbg-performance-metrics dd { overflow-wrap: normal; }
}
@media (prefers-reduced-motion: reduce) {
	.gbg-home-section *, .gbg-home-section *::before { animation: none; transition: none; }
}
