/* MIDO PHASE 9.3 WORK PAGE ACTIVE */
/* =============================================================================
   Work page styling.

   All selectors scoped under .mht-work-page so nothing leaks. The actual
   project tile look (16:9 + grain + cover image + meta + cursor label) is
   owned by .mht-work-tile / .mht-work-card in 05__selected-work.css —
   this file only handles the page envelope, grid spacing, empty state,
   and the final CTA section.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page envelope
   -------------------------------------------------------------------------- */
.mht-work-page {
	padding-bottom: clamp(48px, 6vw, 80px);
}

/* --------------------------------------------------------------------------
   Project grid section
   -------------------------------------------------------------------------- */
.mht-work-page .mht-work-page__grid-section {
	/* The hero already provides the top breathing room; the grid sits
	   beneath with an intentional 60–80px+ gap on desktop. */
	padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 120px);
}
.mht-work-page .mht-work-page__inner {
	width: var(--site-w);
	max-width: var(--site-max);
	margin-inline: auto;
}

/* Wall: same 2-column grid language as homepage Selected Work for visual
   continuity. Single column on mobile. */
.mht-work-page .mht-work-page__wall {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(18px, 2.5vw, 34px);
}
@media (max-width: 720px) {
	.mht-work-page .mht-work-page__wall {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.mht-work-page .mht-work-page__empty {
	padding-block: clamp(56px, 9vw, 120px);
}
.mht-work-page .mht-work-page__empty-inner {
	width: var(--site-w);
	max-width: var(--site-max);
	margin-inline: auto;
}
.mht-work-page .mht-work-page__empty-card {
	padding: clamp(32px, 5vw, 56px);
	border-radius: 20px;
	max-width: 720px;
	text-align: left;
}
.mht-work-page .mht-work-page__empty-heading {
	margin: 0 0 14px;
	text-align: left;
	max-width: 22ch;
}
.mht-work-page .mht-work-page__empty-body {
	margin: 0 0 28px;
	max-width: 56ch;
	color: var(--text-secondary, #DDD6E3);
	opacity: 0.92;
	line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.mht-work-page .mht-work-page__cta {
	position: relative;
	padding-block: clamp(72px, 10vw, 140px);
	overflow: clip;
	isolation: isolate;
}
.mht-work-page .mht-work-page__cta-atmosphere {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 60% 50% at 22% 50%, rgba(142, 99, 163, 0.20), transparent 60%),
		radial-gradient(ellipse 50% 40% at 78% 50%, rgba(183, 140, 255, 0.16), transparent 65%);
	opacity: 0.85;
}
.mht-work-page .mht-work-page__cta-inner {
	position: relative;
	z-index: 1;
	width: var(--site-w);
	max-width: var(--site-max);
	margin-inline: auto;
	text-align: left;
}
.mht-work-page .mht-work-page__cta-heading {
	margin: 0 0 16px;
	text-align: left;
	max-width: 22ch;
}
.mht-work-page .mht-work-page__cta-body {
	margin: 0 0 32px;
	max-width: 60ch;
	color: var(--text-secondary, #DDD6E3);
	opacity: 0.92;
	line-height: 1.55;
}
.mht-work-page .mht-work-page__cta-btn {
	align-self: flex-start;
}

/* --------------------------------------------------------------------------
   V9.3.1 — Fallback inline header (only renders if the reusable page-hero
   partial is missing or empty). Plain, calm, never blank.
   -------------------------------------------------------------------------- */
.mht-work-page .mht-work-page__fallback-hero {
	background: var(--bg-elevated, #1B1620);
	border-bottom: 1px solid rgba(245, 243, 247, 0.045);
}


/* Phase 80 fallback hero foundation — moved from inline template styles. */
.mht-work-page__fallback-hero-inner {
  width: var(--site-w);
  max-width: var(--site-max);
  margin-inline: auto;
  text-align: left;
  padding-block: clamp(90px, 12vw, 140px) clamp(40px, 5vw, 64px);
}

.mht-work-page__fallback-heading { max-width: 22ch; }
.mht-work-page__fallback-copy { max-width: 60ch; margin-top: 18px; }
