/* Brief Field Compose — WordPress page */

body.page-template-template-brief-field,
body.page-template-template-home-v2 {
	background: #f4f2ec;
	color: #111;
}

/* Lab-only page: lock scroll to the field */
body.page-template-template-brief-field {
	overflow: hidden;
}

body.page-template-template-home-v2 {
	overflow: auto;
}

body.page-template-template-brief-field #main,
body.page-template-template-brief-field .site-content,
body.page-template-template-brief-field #content,
body.page-template-template-home-v2 #main,
body.page-template-template-home-v2 .site-content,
body.page-template-template-home-v2 #content {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
	background: transparent;
}

body.page-template-template-brief-field #slider-wrap,
body.page-template-template-brief-field .welcome-text,
body.page-template-template-brief-field #footer,
body.page-template-template-brief-field .site-footer,
body.page-template-template-brief-field footer,
body.page-template-template-brief-field #colophon,
body.page-template-template-brief-field .footer-widgets,
body.page-template-template-home-v2 #slider-wrap,
body.page-template-template-home-v2 .welcome-text {
	display: none !important;
}

.pa-bfc {
	--bg: var(--pa-bg, #f4f2ec);
	--ink: var(--pa-ink, #111);
	--accent: var(--pa-accent, #eeab4d);
	--flash: var(--pa-accent, #eeab4d);
	--muted: var(--pa-mute, rgba(17, 17, 17, 0.48));
	font-family: var(--pa-font, "Plus Jakarta Sans", system-ui, sans-serif);
	background: var(--bg);
	color: var(--ink);
}

.pa-bfc * {
	box-sizing: border-box;
}

.pa-bfc-scene {
	position: relative;
	width: 100%;
	/* Fill viewport below the site header; JS also measures header for physics bounds */
	height: calc(100vh - var(--pa-header-h, 72px));
	height: calc(100dvh - var(--pa-header-h, 72px));
	overflow: hidden;
	background: var(--bg);
}

.pa-bfc-tagline {
	position: absolute;
	inset: 0 auto 0 0;
	/* Left third of the scene */
	width: 45vw;
	min-width: 16rem;
	max-width: none;
	z-index: 1;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	/* centers the inner block in the column */
	padding: 0 clamp(1.25rem, 2.5vw, 2.5rem) 6vh;
}

.pa-bfc-tagline-inner {
	/* Narrower than the column so centering is visible; copy stays left-aligned */
	width: min(24rem, 100%);
	max-width: 100%;
	margin: 0;
	text-align: left;
}

.pa-bfc-eyebrow {
	margin: 0 0 0.85rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	display: none;
}

.pa-bfc-headline {
	margin: 0;
	font-weight: 700;
	font-size: clamp(1.75rem, 3.1vw, 2.55rem);
	line-height: 1.18;
	letter-spacing: -0.03em;
	color: var(--ink);
}

.pa-bfc-line {
	display: block;
}

.pa-bfc-line--rotating {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-start;
	gap: 0;
	margin-top: 0.3em;
	font-size: 0.72em;
	line-height: 1.18;
}

.pa-bfc-word-slot {
	display: inline-grid;
	position: relative;
	width: 100%;
	min-width: 0;
	height: 2.45em;
	overflow: hidden;
	color: var(--accent);
}

.pa-bfc-word {
	grid-area: 1 / 1;
	display: block;
	transform: translateY(110%);
	opacity: 0;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
	will-change: transform, opacity;
}

.pa-bfc-word.is-in {
	transform: translateY(0);
	opacity: 1;
}

.pa-bfc-word.is-out {
	transform: translateY(-110%);
	opacity: 0;
}

.pa-bfc-rest {
	color: var(--ink);
}

.pa-bfc-support {
	margin: 1.1rem 0 0;
	font-size: clamp(0.95rem, 1.3vw, 1.05rem);
	font-weight: 400;
	line-height: 1.45;
	color: var(--muted);
	max-width: 28ch;
}

.pa-bfc-stage {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.pa-bfc-stage svg {
	width: 100%;
	height: 100%;
	display: block;
	cursor: default;
	touch-action: none;
}

.pa-bfc .link {
	stroke: #111;
	stroke-opacity: 0.38;
	fill: none;
	pointer-events: none;
}

.pa-bfc .link.leaf {
	stroke-opacity: 0.3;
	stroke-width: 1;
}

.pa-bfc .link.hub {
	stroke-width: 1.35;
}

.pa-bfc .node {
	cursor: pointer;
}

.pa-bfc .node text.on-ink {
	fill: #f4f2ec;
	font-family: var(--pa-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-weight: 700;
	text-anchor: middle;
	dominant-baseline: middle;
	pointer-events: none;
}

.pa-bfc .node text.pct {
	fill: var(--accent);
	font-family: var(--pa-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-weight: 600;
	text-anchor: middle;
	dominant-baseline: middle;
	pointer-events: none;
}

.pa-bfc .node text.eyebrow {
	fill: var(--accent);
	font-family: var(--pa-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-anchor: middle;
	pointer-events: none;
}

.pa-bfc .node text.leaf-label {
	fill: #f4f2ec;
	font-family: var(--pa-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-weight: 600;
	text-anchor: middle;
	dominant-baseline: middle;
	pointer-events: none;
}

.pa-bfc-signal {
	display: none;
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	z-index: 10;
	padding: 0.65rem 0.85rem;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(17, 17, 17, 0.1);
	font-size: 0.84rem;
	font-weight: 500;
	max-width: 26rem;
}

.pa-bfc-signal b {
	color: var(--accent);
	font-weight: 700;
}

.pa-bfc-hint {
	position: absolute;
	right: 1rem;
	bottom: 5.5rem;
	z-index: 10;
	margin: 0;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: rgba(17, 17, 17, 0.38);
	display: none;
}

.pa-bfc-scroll {
	position: absolute;
	left: 50%;
	bottom: 1.35rem;
	z-index: 12;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	transform: translateX(-50%);
	color: rgba(17, 17, 17, 0.55) !important;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
}

.pa-bfc-scroll:hover {
	color: var(--accent) !important;
}

.pa-bfc-scroll-line {
	display: block;
	width: 1px;
	height: 40px;
	background: linear-gradient(180deg, rgba(238, 171, 77, 0.9), transparent);
	animation: pa-bfc-scroll-pulse 1.8s ease-in-out infinite;
}

.nodes {
	/* filter: drop-shadow(20px 20px 10px rgba(0, 0, 0, 0.12)); */
	filter: drop-shadow(20px 20px 10px rgba(238, 171, 77, 0.22));
}

@keyframes pa-bfc-scroll-pulse {

	0%,
	100% {
		opacity: 0.35;
		transform: scaleY(0.85);
		transform-origin: top;
	}

	50% {
		opacity: 1;
		transform: scaleY(1);
		transform-origin: top;
	}
}

@media (max-width: 1100px) {
	.pa-bfc-tagline {
		width: min(38vw, 22rem);
	}

	.pa-bfc-headline {
		font-size: clamp(1.55rem, 3.4vw, 2.2rem);
	}
}

@media (max-width: 820px) {
	.pa-bfc-scene {
		display: block;
	}

	.pa-bfc-rest {
		margin-top: -15px;
	}

	.pa-bfc-tagline {
		position: absolute;
		inset: 0 0 auto 0;
		width: 100%;
		min-width: 0;
		max-width: none;
		align-items: flex-start;
		justify-content: center;
		padding: 2.25rem 1.25rem 0;
		z-index: 4;
	}

	.pa-bfc-tagline-inner {
		width: min(22rem, 100%);
		max-width: 100%;
		text-align: center;
	}

	.pa-bfc-line--rotating {
		justify-content: center;
		flex-wrap: wrap;
	}

	.pa-bfc-support {
		display: none;
	}

	.pa-bfc-stage {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
	}

	.pa-bfc-stage svg {
		touch-action: pan-y;
	}

	.pa-bfc-stage .node {
		touch-action: none;
	}

	.pa-bfc-signal {
		left: 50%;
		right: auto;
		bottom: 4.75rem;
		transform: translateX(-50%);
		max-width: calc(100% - 2rem);
		text-align: center;
	}

	.pa-bfc-hint {
		left: 50%;
		right: auto;
		bottom: 3.35rem;
		transform: translateX(-50%);
		text-align: center;
		white-space: nowrap;
	}
}