/* EC Exhibits — Homepage Hero ("Editorial Fabrication")
 * Navy field + CSS-only blueprint grid, Fraunces <h1>, IBM Plex Mono labels,
 * gold rule + framed own-project photo with dimension ticks. One orchestrated
 * load reveal (honors prefers-reduced-motion). All color/type via --ec-*
 * tokens from design-tokens.php. Self-contained: loaded only on the homepage.
 */

.ec-hero-editorial {
	position: relative;
	isolation: isolate;
	overflow: clip;
	color: var(--ec-white);
	background:
		radial-gradient(120% 90% at 85% 0%, rgba(57, 219, 176, 0.06), transparent 55%),
		linear-gradient(135deg, var(--ec-navy) 0%, var(--ec-navy-dark) 100%);
	padding: clamp(120px, 14vh, 180px) clamp(20px, 5vw, 80px) clamp(72px, 10vh, 120px);
}

/* Blueprint structural grid — thin mint lines, very low opacity, masked so it
 * fades out toward the edges (a fabrication drawing, not a checkerboard). */
.ec-hero-grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		repeating-linear-gradient(to right, rgba(57, 219, 176, 0.09) 0 1px, transparent 1px 352px),
		repeating-linear-gradient(to bottom, rgba(57, 219, 176, 0.09) 0 1px, transparent 1px 352px),
		repeating-linear-gradient(to right, rgba(57, 219, 176, 0.045) 0 1px, transparent 1px 88px),
		repeating-linear-gradient(to bottom, rgba(57, 219, 176, 0.045) 0 1px, transparent 1px 88px);
	-webkit-mask-image: radial-gradient(130% 100% at 70% 28%, #000 32%, transparent 92%);
	        mask-image: radial-gradient(130% 100% at 70% 28%, #000 32%, transparent 92%);
}

.ec-hero-inner {
	position: relative;
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}
.ec-hero-editorial--no-photo .ec-hero-inner {
	grid-template-columns: minmax(0, 760px);
}

/* ---------- Text column ---------- */
.ec-hero-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	font-family: var(--ec-font-mono);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ec-green-text);
}
.ec-hero-glyph { font-size: 9px; transform: translateY(-1px); }

.ec-hero-title {
	margin: 0;
	/* !important defeats OneUp/theme bare-tag resets (h1{font-size:0!important}) */
	font-family: var(--ec-font-display) !important;
	font-weight: 600 !important;
	font-size: clamp(2.6rem, 6.2vw, 5rem) !important;
	line-height: 1.02 !important;
	letter-spacing: -0.02em;
	color: var(--ec-white);
	text-wrap: balance;
}
.ec-hero-title em {
	font-style: italic;
	font-weight: 600;
	color: var(--ec-gold-text);
}

.ec-hero-sub {
	margin: 26px 0 0;
	max-width: 46ch;
	font-family: var(--ec-font-body);
	font-size: clamp(1rem, 1.15vw, 1.18rem);
	line-height: 1.62;
	color: rgba(255, 255, 255, 0.72);
}

.ec-hero-rule {
	display: block !important;   /* theme hides bare <hr> */
	width: 96px;
	height: 2px;
	border: 0;
	margin: 34px 0 30px;
	background: var(--ec-gold) !important;
}

.ec-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(18px, 3vw, 32px);
}
.ec-hero-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 30px;
	border: 1px solid var(--ec-gold);
	border-radius: 999px;
	background: var(--ec-gold);
	color: var(--ec-navy);
	font-family: var(--ec-font-body) !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}
.ec-hero-cta:hover {
	transform: translateY(-2px);
	background: var(--ec-gold-dark);
	box-shadow: 0 10px 28px rgba(249, 190, 23, 0.28);
}
.ec-hero-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding-bottom: 3px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.28);
	font-family: var(--ec-font-body) !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	color: var(--ec-white);
	text-decoration: none;
	transition: color 0.22s ease, border-color 0.22s ease;
}
.ec-hero-link:hover { color: var(--ec-green-text); border-color: var(--ec-green-text); }
.ec-hero-arrow { transition: transform 0.22s ease; }
.ec-hero-link:hover .ec-hero-arrow { transform: translateX(4px); }

/* ---------- Media column ---------- */
.ec-hero-media { position: relative; }
.ec-hero-frame {
	position: relative;
	margin: 0;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.02);
}
/* blueprint corner registration marks (mint) */
.ec-hero-frame::before,
.ec-hero-frame::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--ec-green);
}
.ec-hero-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.ec-hero-frame::after  { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

.ec-hero-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.ec-hero-tick {
	position: absolute;
	left: 18px;
	bottom: 18px;
	margin: 0;
	padding: 5px 10px;
	font-family: var(--ec-font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--ec-navy);
	background: var(--ec-green);
}
.ec-hero-meta {
	position: absolute;
	top: -10px;
	right: 16px;
	padding: 0 8px;
	font-family: var(--ec-font-mono);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	background: var(--ec-navy);
}

/* Hero renders fully static — the orchestrated load reveal (staggered text +
 * photo entrance animation) was removed per the Website 02 "static image and
 * static headline" decision. Every element's final state is already declared
 * in the base rules above, so no compensating styles are needed here. */

/* ---------- Mobile (≤1023px) ---------- */
@media (max-width: 1023px) {
	.ec-hero-editorial {
		padding: clamp(104px, 18vh, 140px) 22px 64px;
		overflow-x: clip;
	}
	.ec-hero-inner,
	.ec-hero-editorial--no-photo .ec-hero-inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}
	/* OneUp/UVC zeroes every h1 inside .vc_row on mobile/tablet (font-size:0 !important,
	   ~0,8,2 specificity), collapsing the hero <h1> to 0 height at <=1024px. Out-specify
	   with the title's own ID (1,0,0 beats any pile of classes). [[ec-homepage-mobile-h1-collapse]] */
	#ec-hero-title { font-size: clamp(2.2rem, 9vw, 3.2rem) !important; line-height: 1.06 !important; }
	.ec-hero-sub { max-width: none; }
	.ec-hero-media { order: 2; }
	.ec-hero-meta { right: 12px; }
}

/* ---------- Reduced motion: disable hover transitions ---------- */
/* (The load-reveal animation was removed, so only the CTA hover/arrow
 *  transitions remain to be suppressed for reduced-motion users.) */
@media (prefers-reduced-motion: reduce) {
	.ec-hero-cta,
	.ec-hero-link,
	.ec-hero-arrow { transition: none !important; }
}
