/* Page // Agency — Home */

body.page-template-template-home-v2 {
	background: #f4f2ec;
	color: #161616;
	overflow: auto;
}

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-home-v2 #slider-wrap,
body.page-template-template-home-v2 .welcome-text {
	display: none !important;
}

.pa2-home {
	--ink: #161616;
	--paper: #f2f0eb;
	--panel: #ffffff;
	--mute: #6d6a63;
	--line: rgba(22, 22, 22, 0.12);
	--accent: var(--pa-accent, #eeab4d);
	font-family: var(--pa-font, "Plus Jakarta Sans", system-ui, sans-serif);
	background: #f4f2ec;
	color: var(--ink);
}

.pa2-home * { box-sizing: border-box; }
.pa2-home a { color: inherit; text-decoration: none; }

.pa2-home h1,
.pa2-home h2,
.pa2-home h3,
.pa2-home p,
.pa2-home button {
	color: inherit;
}

.pa2-shell {
	width: min(1180px, calc(100% - 3rem));
	margin: 0 auto;
}

/* ========== FULL-BLEED STAGE ========== */
.pa-stage {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: flex-end;
	padding: 7.5rem 0 4.5rem;
	color: #f4f1ea;
	overflow: visible;
	isolation: isolate;
}

.pa-stage-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: #111 url("https://staging.page.agency/wp-content/uploads/revslider/video-media/master_15_layer.jpeg") center/cover no-repeat;
}

.pa-stage-video {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transform: scale(1.04);
	filter: saturate(1.08) contrast(1.06);
}

.pa-stage-veil {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(115deg, rgba(8, 8, 8, 0.72) 0%, rgba(8, 8, 8, 0.28) 52%, rgba(8, 8, 8, 0.4) 100%),
		linear-gradient(180deg, rgba(8, 8, 8, 0.25) 0%, rgba(8, 8, 8, 0.08) 38%, rgba(8, 8, 8, 0.72) 100%);
}

.pa-stage-grain {
	position: absolute;
	inset: 0;
	z-index: 3;
	opacity: 0.12;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
}

.pa-stage-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("https://staging.page.agency/wp-content/uploads/revslider/video-media/master_15_layer.jpeg") center/cover no-repeat;
	opacity: 0;
	transition: opacity 400ms ease;
	z-index: 0;
}

.pa-stage.is-poster .pa-stage-media::after {
	opacity: 1;
}

.pa-stage.is-poster .pa-stage-video {
	opacity: 0;
}

.pa-stage-inner {
	position: relative;
	z-index: 1;
	width: min(1180px, calc(100% - 3rem));
	margin: 0 auto;
}

.pa-stage-eyebrow {
	margin: 0 0 1.1rem;
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(244, 241, 234, 0.65);
}

.pa-stage-title {
	margin: 0 0 0.85rem;
	font-family: var(--pa-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-weight: 800;
	font-size: clamp(2.2rem, 5.6vw, 4.2rem);
	letter-spacing: -0.045em;
	line-height: 0.95;
	max-width: 16ch;
	color: #fff !important;
	text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.pa-stage-title-static {
	display: block;
	color: #fff;
}

.pa-stage-title-live {
	display: block;
	color: var(--accent);
	min-height: 1.05em;
	transition: opacity 220ms ease, transform 320ms ease;
}

.pa-stage.is-pulse .pa-stage-title-live {
	transform: translateY(-2px);
}

.pa-stage-lede {
	margin: 0 0 0.35rem;
	max-width: 36rem;
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	line-height: 1.45;
	color: rgba(244, 241, 234, 0.78);
}

.pa-stage-rails {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.55rem;
	margin-bottom: 1rem;
	max-width: 52rem;
}

.pa-rail {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.38);
	background: rgba(10, 10, 10, 0.42);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font: inherit;
	text-align: left;
	padding: 0;
	height: 112px;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 180ms ease, transform 180ms ease;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.pa-rail:hover {
	border-color: rgba(238, 171, 77, 0.75);
	transform: translateY(-2px);
}

.pa-rail.is-lead {
	border-color: rgba(238, 171, 77, 0.9);
}

.pa-rail-fill {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--w, 25%);
	background: linear-gradient(180deg, rgba(238, 171, 77, 0.15), rgba(238, 171, 77, 0.72));
	transition: height 420ms cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

.pa-rail-meta {
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.7rem;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
}

.pa-rail-name {
	font-family: var(--pa-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: -0.02em;
}

.pa-rail-pct {
	font-variant-numeric: tabular-nums;
	font-size: 0.8rem;
	color: #ffb45a;
}

.pa-stage-signal {
	display: inline-flex;
	align-items: baseline;
	gap: 0.65rem;
	margin: 0 0 1.35rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid rgba(244, 241, 234, 0.18);
	background: rgba(0, 0, 0, 0.28);
	font-size: 0.82rem;
}

.pa-stage-signal-label {
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 0.66rem;
	color: rgba(244, 241, 234, 0.55);
}

.pa-stage-signal-text {
	color: #ffb45a;
}

.pa-stage-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

.pa-stage-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.9rem 1.35rem;
	border: 1px solid #f4f1ea;
	background: #f4f1ea;
	color: #111 !important;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.pa-stage-btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff !important;
	transform: translateY(-1px);
}

.pa-stage-btn--ghost {
	background: transparent;
	color: #f4f1ea !important;
}

.pa-stage-btn--ghost:hover {
	background: transparent;
	color: #ffb45a !important;
	border-color: #ffb45a;
}

.pa-stage-caption {
	margin: 0;
	max-width: 34rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: rgba(244, 241, 234, 0.62);
	min-height: 2.5em;
}

.pa-stage-scroll {
	position: absolute;
	right: max(1.5rem, calc((100% - 1180px) / 2));
	bottom: 1.75rem;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.55rem;
	color: rgba(244, 241, 234, 0.7) !important;
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.pa-stage-scroll-line {
	display: block;
	width: 1px;
	height: 48px;
	background: linear-gradient(180deg, rgba(238, 171, 77, 0.9), transparent);
	animation: pa-scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes pa-scroll-pulse {
	0%, 100% { opacity: 0.35; transform: scaleY(0.85); transform-origin: top; }
	50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ========== PAPER BELOW ========== */
.pa2-below {
	background:
		radial-gradient(900px 480px at 90% -5%, rgba(238, 171, 77, 0.08), transparent 55%),
		var(--paper);
	color: var(--ink);
	padding: 3.5rem 0 0;
	border-top: 1px solid var(--line);
}

/* The field already has its own visual breathing room. The divider starts the paper section;
   spacing belongs below it, not above it. Give the Brief Starter equal room before the next divider. */
.pa2-below > .pa2-shell {
	padding-bottom: 4.75rem;
}

.pa2-eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
}

.pa2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.35rem;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: var(--paper) !important;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.pa2-btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff !important;
	transform: translateY(-1px);
}

.pa2-btn--ghost {
	background: transparent;
	color: var(--ink) !important;
}

.pa2-section {
	padding: 4.75rem 0;
	border-top: 1px solid var(--line);
}

.pa2-section-head {
	display: grid;
	gap: 0.65rem;
	margin-bottom: 2.25rem;
	max-width: 40rem;
}

.pa2-h2 {
	margin: 0;
	font-family: var(--pa-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-weight: 700;
	font-size: clamp(1.8rem, 4vw, 2.7rem);
	letter-spacing: -0.03em;
	line-height: 1.05;
	color: var(--ink) !important;
}

.pa2-principles { display: grid; gap: 0; }

.pa2-principle {
	display: grid;
	grid-template-columns: minmax(8rem, 14rem) 1fr;
	gap: 1.5rem;
	padding: 1.45rem 0;
	border-top: 1px solid var(--line);
}

.pa2-principle:last-child { border-bottom: 1px solid var(--line); }

.pa2-principle h3 {
	margin: 0;
	font-family: var(--pa-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.pa2-principle p {
	margin: 0;
	max-width: 42rem;
	color: rgba(22, 22, 22, 0.72);
	font-size: 1rem;
	line-height: 1.55;
}

.pa2-clients {
	font-size: 0.95rem;
	line-height: 1.7;
	color: rgba(22, 22, 22, 0.55);
	max-width: 52rem;
}

.pa2-clients strong {
	display: block;
	color: var(--ink);
	font-weight: 500;
	margin-bottom: 0.65rem;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.pa2-close {
	padding: 4.5rem 0 6rem;
	border-top: 1px solid var(--line);
}

.pa2-close-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
}

.pa2-close h2 {
	margin: 0;
	font-family: var(--pa-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: clamp(2rem, 5vw, 3.2rem);
	letter-spacing: -0.035em;
	line-height: 0.98;
	max-width: 14ch;
	color: var(--ink) !important;
}

@media (max-width: 900px) {
	.pa-stage-rails { grid-template-columns: 1fr 1fr; }
	.pa-rail { height: 96px; }
	.pa-stage-title { max-width: 16ch; }
}

@media (max-width: 820px) {
	.pa2-shell,
	.pa-stage-inner { width: min(1180px, calc(100% - 2rem)); }
	.pa2-principle { grid-template-columns: 1fr; gap: 0.4rem; }
	.pa-stage-scroll { display: none; }
}

@media (max-width: 520px) {
	.pa-stage { padding-top: 6.25rem; padding-bottom: 3.25rem; }
	.pa-stage-rails { grid-template-columns: 1fr; }
	.pa-rail { height: 78px; }
}

@media (prefers-reduced-motion: reduce) {
	.pa-rail-fill,
	.pa-stage-btn,
	.pa-stage-title-live { transition: none; }
	.pa-stage-scroll-line { animation: none; }
	.pa-stage-video { display: none; }
	.pa-stage-media {
		background: #111 url("https://staging.page.agency/wp-content/uploads/revslider/video-media/master_15_layer.jpeg") center/cover no-repeat;
	}
}
