.ecs-page-gate {
	--ecs-page-gate-overlay-opacity: .76;
	background: #0d3347;
	box-sizing: border-box;
	color: #fff;
	isolation: isolate;
	margin: 0;
	overflow: hidden;
	padding: clamp(58px, 7vw, 96px) 0;
	position: relative;
}

.ecs-page-gate__media,
.ecs-page-gate__overlay,
.ecs-page-gate__shapes {
	inset: 0;
	position: absolute;
}

.ecs-page-gate__media {
	background: #0d3347;
	overflow: hidden;
	z-index: 0;
}

.ecs-page-gate__video-inner {
	height: 100%;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
}

.ecs-page-gate__video-inner wistia-player,
.ecs-page-gate__video-inner video,
.ecs-page-gate__video-inner iframe {
	height: 100% !important;
	inset: 0 !important;
	max-width: none !important;
	object-fit: cover !important;
	position: absolute !important;
	width: 100% !important;
}

.ecs-page-gate__overlay {
	background: #0d3347;
	opacity: var(--ecs-page-gate-overlay-opacity);
	z-index: 1;
}

.ecs-page-gate:not(.ecs-page-gate--has-video) .ecs-page-gate__overlay {
	opacity: 1;
}

.ecs-page-gate__shapes {
	pointer-events: none;
	z-index: 2;
}

.ecs-page-gate__shape {
	aspect-ratio: 741.49 / 1079.45;
	opacity: .22;
	position: absolute;
	width: clamp(78px, 8vw, 148px);
}

.ecs-page-gate__shape svg {
	display: block;
	height: 100%;
	overflow: visible;
	width: 100%;
}

.ecs-page-gate__shape path {
	fill: none;
	stroke: #ec7614;
	stroke-width: 3px;
	vector-effect: non-scaling-stroke;
}

.ecs-page-gate__shape--one {
	left: -25px;
	top: 8%;
	transform: none;
}

.ecs-page-gate__shape--two {
	right: 4%;
	top: -55px;
	transform: none;
}

.ecs-page-gate__shape--two path,
.ecs-page-gate__shape--four path {
	stroke: #918cff;
}

.ecs-page-gate__shape--three {
	bottom: -70px;
	left: 35%;
	transform: none;
}

.ecs-page-gate__shape--four {
	bottom: 4%;
	right: -42px;
	transform: none;
}

.ecs-page-gate__shape--five {
	left: 52%;
	top: 12%;
	transform: scale(.62);
}

.ecs-page-gate__shape--five path {
	stroke: #08b9d2;
}

.ecs-page-gate__inner {
	align-items: center;
	display: grid;
	gap: clamp(36px, 6vw, 82px);
	grid-template-columns: minmax(0, .86fr) minmax(360px, 1fr);
	position: relative;
	z-index: 3;
}

.ecs-page-gate--immersive {
	align-items: center;
	display: flex;
	min-height: max(760px, 100svh);
	padding-bottom: clamp(72px, 9vh, 118px);
	padding-top: clamp(170px, 18vh, 220px);
}

.ecs-page-gate--immersive > .ecs-page-gate__inner {
	width: 100%;
}

.ecs-page-gate__copy {
	color: #fff;
}

.ecs-page-gate__eyebrow {
	background: #8178f6;
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1.35;
	margin-bottom: 24px;
	padding: 7px 11px;
	text-transform: uppercase;
}

.ecs-page-gate__lock {
	color: #ec7614;
	display: block;
	height: 38px;
	margin-bottom: 18px;
	width: 38px;
}

.ecs-page-gate__lock svg {
	display: block;
	fill: currentColor;
	height: 100%;
	width: 100%;
}

.ecs-page-gate__copy h2 {
	color: #fff;
	font-size: clamp(34px, 4vw, 54px);
	font-weight: 400;
	letter-spacing: -.7px;
	line-height: 1.12;
	margin: 0 0 20px;
}

.ecs-page-gate__copy p {
	color: #fff;
	font-size: clamp(17px, 1.5vw, 21px);
	line-height: 1.65;
	margin: 0;
	max-width: 620px;
}

/* Same inline word replacement used by the existing Event-style Page hero. */
.ecs-page-gate__copy .ecs-event-page-wordmark {
	display: inline-block;
	height: .86em;
	max-width: 100%;
	width: auto;
	vertical-align: -.02em;
	object-fit: contain;
	margin: 0 .06em 0 0;
}

.ecs-page-gate__form-card {
	background: #fff;
	color: #0d3347;
	box-shadow: 0 18px 50px rgba(4, 25, 36, .22);
	min-height: 220px;
	padding: clamp(28px, 4vw, 52px);
}

/* HubSpot raw forms share the page DOM. Explicitly override dark-hero text
 * rules, including rich text, checkboxes, validation and success messages. */
.ecs-page-gate__form-card :is(p, span, label, legend, h1, h2, h3, h4, h5, h6, strong, b, em, li, .hs-richtext, .submitted-message) {
	color: #0d3347 !important;
}

.ecs-page-gate__form-card :is(input, textarea, select, button) {
	color: #0d3347 !important;
}

.ecs-page-gate__form-card :is(input, textarea)::placeholder {
	color: #526570 !important;
	opacity: 1;
}

.ecs-page-gate__form-card input:-webkit-autofill {
	-webkit-text-fill-color: #0d3347 !important;
}

.ecs-page-gate__form-card a {
	color: #15667c !important;
}

.ecs-page-gate__form-card .hs-error-msgs :is(label, span, li),
.ecs-page-gate__form-card .hs-error-msg {
	color: #ad2727 !important;
}

.ecs-page-gate__status,
.ecs-page-gate__unavailable {
	color: #0d3347;
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

.ecs-page-gate__retry {
	background: #05abc4;
	border: 0;
	color: #0d3347;
	cursor: pointer;
	font: 600 15px/1.4 Montserrat, Arial, sans-serif;
	margin-top: 18px;
	min-height: 46px;
	padding: 12px 22px;
}

.ecs-page-gate__privacy {
	font-size: 12px;
	line-height: 1.5;
	margin: 22px 0 0;
}

.ecs-page-gate__privacy a {
	color: #15667c;
	text-decoration: underline;
}

/* The locked body is the page canvas, so no inherited section spacing creates white bands. */
body.ecs-page-gate-is-locked #page-section,
body.ecs-page-gate-is-locked #page-section > article,
body.ecs-page-gate-is-locked #page-section > .page,
body.ecs-page-gate-is-locked #page-section .entry-content {
	margin-bottom: 0 !important;
	margin-top: 0 !important;
	padding-bottom: 0 !important;
	padding-top: 0 !important;
}

body.ecs-page-gate-immersive {
	background: #0d3347;
}

body.ecs-page-gate-hide-event-hero .ecs-event-hero {
	display: none !important;
}

/* Preserve the Event Hero navigation treatment over the replacement gated visual. */
body.ecs-page-gate-immersive .header-section:not(.shrink) {
	background: transparent !important;
	box-shadow: none !important;
}

body.ecs-page-gate-immersive .header-section:not(.shrink) .dark-logo {
	display: block !important;
	opacity: 0 !important;
	visibility: hidden !important;
}

body.ecs-page-gate-immersive .header-section:not(.shrink) .white-logo {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
}

body.ecs-page-gate-immersive .header-section:not(.shrink) .main-menu-link,
body.ecs-page-gate-immersive .header-section:not(.shrink) .header-slide-title,
body.ecs-page-gate-immersive .header-section:not(.shrink) .header-slide-title-inner {
	color: #fff !important;
}

body.ecs-page-gate-immersive .header-section:not(.shrink) .header-search-icon svg path {
	fill: #fff !important;
}

body.ecs-page-gate-immersive .header-section:not(.shrink) .menu-btn span {
	background-color: #fff !important;
}

.ecs-page-gate-is-unlocked #page-section {
	animation: ecs-page-gate-reveal .3s ease-out both;
}

@keyframes ecs-page-gate-reveal {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
	.ecs-page-gate__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.ecs-page-gate__form-card {
		min-height: 0;
	}

	.ecs-page-gate--immersive {
		align-items: flex-start;
		min-height: 100svh;
		padding-bottom: 64px;
		padding-top: 150px;
	}

	.ecs-page-gate__shape--five {
		display: none;
	}
}

@media (max-width: 560px) {
	.ecs-page-gate {
		padding: 44px 0;
	}

	.ecs-page-gate--immersive {
		padding-bottom: 54px;
		padding-top: 132px;
	}

	.ecs-page-gate__inner {
		gap: 28px;
	}

	.ecs-page-gate__form-card {
		padding: 24px 20px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.ecs-page-gate__shape--one,
	.ecs-page-gate__shape--three,
	.ecs-page-gate__shape--five {
		animation: ecs-page-gate-shape-float 15s ease-in-out infinite alternate;
	}

	.ecs-page-gate__shape--two,
	.ecs-page-gate__shape--four {
		animation: ecs-page-gate-shape-float-reverse 18s ease-in-out infinite alternate;
	}
}

@keyframes ecs-page-gate-shape-float {
	to { margin-top: 28px; }
}

@keyframes ecs-page-gate-shape-float-reverse {
	to { margin-top: -24px; }
}

@media (prefers-reduced-motion: reduce) {
	.ecs-page-gate-is-unlocked #page-section { animation: none; }
}
