/* ==========================================================================
   E3 Connect — page-e3-connect.php
   Built from Figma "World Trade Center" / frame "Design" (1440 wide).
   Everything is scoped under .e3c so no other page is affected.
   ========================================================================== */

.e3c {
	--e3c-navy: #01269d;
	--e3c-ink: #152545;
	--e3c-line: #e2e6f1;
	--e3c-tint: #f7f9ff;
	--e3c-grad: linear-gradient(90deg, #ee7b33 0%, #e94154 50%, #5644e0 100%);
	--e3c-pad-x: 80px;
	font-family: "Montserrat", sans-serif;
	color: var(--e3c-ink);
	overflow-x: hidden;
}

.e3c *,
.e3c *::before,
.e3c *::after { box-sizing: border-box; }

.e3c img { max-width: 100%; height: auto; }
.e3c p, .e3c h1, .e3c h2, .e3c ul, .e3c figure { margin: 0; padding: 0; }
.e3c ul { list-style: none; }

/* Section title (gradient) */
.e3c-title {
	font-family: "Montserrat", sans-serif !important;
	font-weight: 700 !important;
	font-size: 40px !important;
	line-height: 48px !important;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0 !important;
	background: var(--e3c-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #e94154;
}

/* ---------- 1. Event header band ---------- */
.e3c-band {
	position: relative;
	background: var(--e3c-band-bg) center / cover no-repeat, linear-gradient(180deg, #0047e1 0%, #0026a0 100%);
	color: #fff;
}

.e3c-band__inner {
	max-width: 1440px;
	min-height: 157px;
	margin: 0 auto;
	padding: 12px var(--e3c-pad-x);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.e3c-band__logo img { display: block; width: 223px; height: auto; }

.e3c-band__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.e3c-band__row {
	display: flex;
	gap: 10px;
	color: #fff;
	font-size: 16px;
	line-height: 20px;
	text-transform: uppercase;
	white-space: nowrap;
}

.e3c-band__date { align-items: center; font-weight: 600; }
.e3c-band__tagline { align-items: flex-start; font-weight: 500; }
.e3c-band__icon { flex: 0 0 20px; width: 20px; height: 20px; }

.e3c-band__rule {
	display: block;
	align-self: stretch;
	height: 4px;
	background: linear-gradient(90deg, #b73de6 0%, #dc9de4 30.04%, #ca4ff7 55.9%, #e6a2f7 87.5%, #c55cfe 100%);
}

.e3c-band__by {
	width: 332px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.e3c-band__by-label {
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	color: rgba(255, 255, 255, .8);
}

.e3c-band__wtc { display: block; width: 100%; aspect-ratio: 158 / 46; object-fit: cover; }

/* ---------- 2. Hero ---------- */
.e3c-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 120px var(--e3c-pad-x) 80px;
	display: flex;
	flex-direction: column;
	gap: 80px;
	background: #fff var(--e3c-hero-bg) left top / 100% 178.22% no-repeat;
	min-height: 768px;
}

.e3c-hero__glow {
	/* Figma ellipse: 470×791 rotated 23.41°, blurred SVG bleeds 42.54% / 25.28% */
	position: absolute;
	z-index: 1;
	left: 199.68px;
	top: -433.18px;
	width: 870.2px;
	height: 1191.1px;
	max-width: none !important;
	transform: rotate(23.41deg);
	pointer-events: none;
}

.e3c-hero__copy {
	position: relative;
	z-index: 4;
	width: 755px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.e3c-hero__title {
	font-family: "Montserrat", sans-serif !important;
	font-weight: 800 !important;
	font-size: 64px !important;
	line-height: 72px !important;
	letter-spacing: -1px !important;
	text-transform: uppercase;
	background: linear-gradient(90deg, #ee7b33 0%, #ec6f35 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #ee7b33;
}

.e3c-hero__text {
	font-size: 22px;
	line-height: 32px;
	letter-spacing: -.44px;
	background: linear-gradient(90deg, #3533cd 0%, #232dbc 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #2c30c4;
}

.e3c-hero__text-1 { font-weight: 400; }
.e3c-hero__text-2 { font-weight: 600; }
.e3c-hero__text-1 + .e3c-hero__text-2::before { content: " "; }

.e3c-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 18px 32px;
	border-radius: 12px;
	background: var(--e3c-navy);
	box-shadow: 0 8px 24px rgba(1, 38, 157, .16);
	color: #fff !important;
	font-size: 20px;
	font-weight: 600;
	line-height: 24px;
	text-decoration: none !important;
	transition: background-color .2s ease, transform .2s ease;
}

.e3c-btn:hover,
.e3c-btn:focus-visible { background: #0a34c4; transform: translateY(-1px); }
.e3c-btn img { width: 20px; height: 20px; }
.e3c-btn--disabled { opacity: .55; cursor: not-allowed; }

.e3c-stats {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.e3c-stat {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px;
	border-radius: 24px;
	background: var(--e3c-grad);
	color: #fff;
}

.e3c-stat__icon {
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	padding: 16px 0;
	border-radius: 999px;
	background: #eff3f9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.e3c-stat__icon img { height: 100%; width: auto; aspect-ratio: 1; }

.e3c-stat__text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.e3c-stat__num { font-size: 32px; font-weight: 600; letter-spacing: -.5px; }
.e3c-stat__label { font-size: 18px; font-weight: 500; }

/* ---------- 3. Official partners ---------- */
.e3c-official { background: var(--e3c-tint); padding: 80px var(--e3c-pad-x); }

.e3c-official__cards {
	max-width: 1280px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.e3c-pcard {
	background: #fff;
	border: 1px solid var(--e3c-line);
	border-radius: 16px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.e3c-pcard__label {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	color: var(--e3c-ink);
}

.e3c-pcard__logos {
	height: 80px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.e3c-pcard__logos img { object-fit: contain; }
.e3c-pcard--single:nth-child(1) .e3c-pcard__logos img { width: 176px; height: 58px; }
.e3c-pcard--single:nth-child(2) .e3c-pcard__logos img { width: 190px; height: 58px; }
.e3c-pcard--news .e3c-pcard__logos img { width: 124px; height: 72px; }
.e3c-pcard__main { width: 103px; height: 50px; }
.e3c-pcard__stack { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.e3c-pcard__s1 { width: 105px; height: 24px; }
.e3c-pcard__s2 { width: 79px; height: 44px; }

/* ---------- 4. Logo grids ---------- */
.e3c-tier {
	padding: 80px 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	background: #fff;
}

.e3c-tier--silver { background: var(--e3c-tint); }

.e3c-logo-grid {
	width: 100%;
	max-width: 1200px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 16px;
}

.e3c-logo-card {
	width: calc((100% - 80px) / 6);
	padding: 12px 16px;
	background: #fff;
	border: 1px solid var(--e3c-line);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: box-shadow .2s ease, transform .2s ease;
}

.e3c-logo-card:hover { box-shadow: 0 8px 20px rgba(1, 38, 157, .08); transform: translateY(-2px); }

.e3c-logo-card img {
	display: block;
	width: 100%;
	height: 62px;
	object-fit: contain;
}

/* ---------- 5. Gallery carousel ---------- */
.e3c-gallery {
	background: var(--e3c-tint);
	padding: 80px 0 96px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

.e3c-carousel { width: 100%; max-width: 1440px; }

/* Stage = Figma carousel 1440 × 512 (photos centred at y 220, arrows at y 464) */
.e3c-carousel__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1440 / 512;
	overflow: hidden;
	touch-action: pan-y;
}

.e3c-carousel__slide {
	position: absolute;
	left: 50%;
	top: 42.97%;
	width: 41.667%;            /* 600 / 1440 */
	aspect-ratio: 3 / 2;
	border-radius: 24px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	box-shadow: 0 24px 48px rgba(1, 38, 157, .18);
	transform: translate(-50%, -50%) scale(.37);
	transition: transform .55s cubic-bezier(.22, .61, .36, 1), opacity .55s ease, z-index 0s .2s;
	z-index: 0;
}

.e3c-carousel__slide img { display: block; width: 100%; height: 100% !important; object-fit: cover; }

/* positions measured from the Figma carousel (centre x / width relative to 1440) */
.e3c-carousel__slide[data-pos="0"]  { opacity: 1; z-index: 5; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.e3c-carousel__slide[data-pos="-1"] { opacity: 1; z-index: 4; transform: translate(calc(-50% - 50%), -50%) scale(.7); }
.e3c-carousel__slide[data-pos="1"]  { opacity: 1; z-index: 4; transform: translate(calc(-50% + 50%), -50%) scale(.7); }
.e3c-carousel__slide[data-pos="-2"] { opacity: 1; z-index: 3; transform: translate(calc(-50% - 95%), -50%) scale(.5); }
.e3c-carousel__slide[data-pos="2"]  { opacity: 1; z-index: 3; transform: translate(calc(-50% + 95%), -50%) scale(.5); }
.e3c-carousel__slide[data-pos="-3"] { opacity: 0; z-index: 2; transform: translate(calc(-50% - 131.67%), -50%) scale(.367); }
.e3c-carousel__slide[data-pos="3"]  { opacity: 0; z-index: 2; transform: translate(calc(-50% + 131.67%), -50%) scale(.367); }
.e3c-carousel__slide[data-pos="-1"],
.e3c-carousel__slide[data-pos="1"],
.e3c-carousel__slide[data-pos="-2"],
.e3c-carousel__slide[data-pos="2"] { cursor: pointer; pointer-events: auto; }

.e3c-carousel__nav {
	position: relative;
	z-index: 6;
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: -48px;
}

.e3c-carousel__btn {
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1.5px solid var(--e3c-navy);
	border-radius: 999px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color .2s ease;
}

.e3c-carousel__btn:hover,
.e3c-carousel__btn:focus-visible { background: #e8edfb; }
.e3c-carousel__btn img { width: 20px; height: 20px; }

/* ---------- 6. Source bar ---------- */
.e3c-source {
	padding: 40px 120px;
	background: radial-gradient(ellipse 50% 50% at 50% 50%, #01269d 0%, #0e29a9 25%, #1b2db5 50%, #3533cd 100%);
	text-align: center;
}

.e3c-source p {
	color: #fff;
	font-size: 24px;
	line-height: 20px;
	font-weight: 400;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
	.e3c { --e3c-pad-x: 40px; }
	.e3c-band__by { width: 260px; }
	.e3c-band__logo img { width: 180px; }
	.e3c-tier { padding: 80px 40px; }
	.e3c-hero__title { font-size: 56px !important; line-height: 64px !important; }
}

@media (max-width: 1024px) {
	.e3c-band__inner { flex-wrap: wrap; justify-content: center; gap: 24px 40px; }
	.e3c-band__info { order: 3; flex-basis: 100%; align-items: center; }
	.e3c-band__rule { align-self: center; width: 320px; }
	.e3c-hero { min-height: 0; padding-top: 80px; background-size: cover; background-position: 70% top; }
	.e3c-hero::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 0;
		background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 55%, rgba(255,255,255,0) 100%);
	}
	.e3c-hero__glow { display: none; }
	.e3c-official__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.e3c-logo-card { width: calc((100% - 48px) / 4); }
	.e3c-carousel__stage { aspect-ratio: 16 / 9; }
	.e3c-carousel__slide { width: 58%; top: 50%; }
	.e3c-carousel__nav { margin-top: 16px; }
	.e3c-carousel__slide[data-pos="-2"],
	.e3c-carousel__slide[data-pos="2"] { opacity: 0; pointer-events: none; }
}

@media (max-width: 767px) {
	.e3c { --e3c-pad-x: 20px; }
	.e3c-band__inner { padding: 20px; gap: 16px 20px; }
	.e3c-band__logo img { width: 130px; }
	.e3c-band__by { width: 170px; }
	.e3c-band__row { font-size: 13px; line-height: 17px; white-space: normal; }
	.e3c-band__rule { width: 100%; }
	.e3c-band__info { align-items: stretch; }
	.e3c-hero { padding: 48px 20px; gap: 40px; background-position: 75% top; }
	.e3c-hero::before { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 70%, rgba(255,255,255,.6) 100%); }
	.e3c-hero__title { font-size: 34px !important; line-height: 40px !important; letter-spacing: -.5px !important; }
	.e3c-hero__text { font-size: 17px; line-height: 26px; letter-spacing: 0; }
	.e3c-btn { font-size: 17px; padding: 15px 24px; }
	.e3c-stats { flex-direction: column; gap: 12px; }
	.e3c-stat { padding: 14px 16px; border-radius: 18px; }
	.e3c-stat__icon { flex-basis: 48px; width: 48px; height: 48px; padding: 12px 0; }
	.e3c-stat__num { font-size: 26px; }
	.e3c-stat__label { font-size: 15px; }
	.e3c-official { padding: 48px 20px; }
	.e3c-official__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.e3c-pcard { padding: 16px 10px; gap: 12px; border-radius: 12px; }
	.e3c-pcard__label { font-size: 12px; }
	.e3c-pcard__logos { height: 64px; gap: 8px; }
	.e3c-pcard__logos img { max-width: 100%; }
	.e3c-pcard--single .e3c-pcard__logos img { height: 44px !important; }
	.e3c-pcard--news .e3c-pcard__logos img { height: 58px; }
	.e3c-pcard__main { width: 64px; height: 40px; }
	.e3c-pcard__s1 { width: 70px; height: 18px; }
	.e3c-pcard__s2 { width: 54px; height: 32px; }
	.e3c-tier { padding: 48px 20px; gap: 28px; }
	.e3c-title { font-size: 28px !important; line-height: 34px !important; }
	.e3c-logo-grid { gap: 10px; }
	.e3c-logo-card { width: calc((100% - 20px) / 3); padding: 8px 10px; border-radius: 10px; }
	.e3c-logo-card img { height: 44px; }
	.e3c-gallery { padding: 48px 0 56px; gap: 28px; }
	.e3c-carousel__stage { aspect-ratio: 4 / 3; }
	.e3c-carousel__slide { width: 78%; border-radius: 16px; }
	.e3c-carousel__slide[data-pos="-1"] { transform: translate(calc(-50% - 62%), -50%) scale(.8); }
	.e3c-carousel__slide[data-pos="1"]  { transform: translate(calc(-50% + 62%), -50%) scale(.8); }
	.e3c-source { padding: 28px 20px; }
	.e3c-source p { font-size: 15px; line-height: 22px; }
}

@media (max-width: 359px) {
	.e3c-band__inner { justify-content: space-between; }
	.e3c-logo-card { width: calc((100% - 10px) / 2); }
}

@media (prefers-reduced-motion: reduce) {
	.e3c-carousel__slide, .e3c-btn, .e3c-logo-card { transition: none; }
}

/* ==========================================================================
   Site integration
   - The site menu (.wtc-nav1) is position:fixed over the page, so the page
     starts below it. e3-connect.js sets the exact height per screen size.
   - The theme forces its own font and 17px/24px on every p / span; the rules
     below keep the Figma typography on this page only.
   ========================================================================== */
.e3c { padding-top: var(--e3c-nav-h, 165px); }

.e3c p, .e3c span, .e3c a, .e3c li, .e3c button, .e3c h1, .e3c h2 { font-family: "Montserrat", sans-serif !important; }
.e3c-band__row > span,
.e3c-btn > span,
.e3c-hero__text > span { font-size: inherit !important; line-height: inherit !important; letter-spacing: inherit !important; }
.e3c-hero__text > .e3c-hero__text-1 { font-weight: 400 !important; }
.e3c-hero__text > .e3c-hero__text-2 { font-weight: 600 !important; }
.e3c-stat__num { font-size: 32px !important; line-height: 1.2 !important; }
.e3c-stat__label { font-size: 18px !important; line-height: 1.2 !important; }

@media (max-width: 767px) {
	.e3c-stat__num { font-size: 26px !important; }
	.e3c-stat__label { font-size: 15px !important; }
}

/* Tablet: stat cards as an even 3-column row (no 2 + 1 wrap) */
@media (max-width: 1024px) {
	.e3c-hero__title { font-size: 48px !important; line-height: 56px !important; }
	.e3c-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
	.e3c-stat { flex-direction: column; justify-content: center; text-align: center; padding: 20px 12px; }
	.e3c-stat__text { align-items: center; white-space: normal; }
}

/* Phone: one card per row, icon left */
@media (max-width: 767px) {
	.e3c-hero__title { font-size: 34px !important; line-height: 40px !important; }
	.e3c-stats { grid-template-columns: 1fr; gap: 12px; }
	.e3c-stat { flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px 16px; }
	.e3c-stat__text { align-items: flex-start; }
}

/* Theme sets span { color: #000 } on smaller screens — keep each section's own colour */
.e3c span { color: inherit !important; }

/* Tablet hero: text sits over the photo, so fade the photo behind the copy */
@media (max-width: 1024px) {
	.e3c-hero { background-position: right top; }
	.e3c-hero::before { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.9) 55%, rgba(255,255,255,.45) 100%); }
}
.e3c .e3c-btn,
.e3c .e3c-btn > span { color: #fff !important; }

/* Tablet: top-align stat cards so the icons line up even when a label wraps */
@media (max-width: 1024px) and (min-width: 768px) {
	.e3c-stat { justify-content: flex-start; }
}

/* Source bar: comfortable line height when the note wraps on smaller screens */
@media (max-width: 1024px) {
	.e3c-source { padding: 32px 40px; }
	.e3c-source p { font-size: 20px; line-height: 1.35; }
}
@media (max-width: 767px) {
	.e3c-source { padding: 28px 20px; }
	.e3c-source p { font-size: 15px; line-height: 1.45; }
}
