/* ============================================================
   PROJECTS / ZONES — shadcn × HeroUI hybrid card grid
   Loaded after landing-awwwards.css so it wins source-order ties.
   Paper/ink/red palette + bordered cards (shadcn) with hover
   lift, radial glow and pill badges (HeroUI).
   ============================================================ */

.zones {
	padding-bottom: 6rem;
}

.zones-head {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
	margin-bottom: 2.7rem;
}

.zones-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	width: fit-content;
	padding: 0.34rem 0.78rem 0.38rem;
	border: 1px solid rgba(23, 19, 17, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	color: var(--legacy-ink-soft);
	font-family: var(--mono-font);
	font-size: var(--fs-xs);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.zones-eyebrow::before {
	content: "";
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 50%;
	background: var(--legacy-red);
	box-shadow: 0 0 0 3px rgba(var(--legacy-red-rgb), 0.14);
}

/* ---- Card grid ---- */
.zone-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem;
	max-width: none;
	margin-top: 0;
	padding-left: 0;
	border-top: 0;
	list-style: none;
}

/* ---- Card (shadcn bordered surface) ---- */
.zone {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1.05rem;
	min-width: 0;
	margin-top: 0;
	padding: 1.5rem 1.5rem 1.65rem;
	border: 1px solid var(--handhold-border);
	border-radius: 18px;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.88) 0%,
		rgba(255, 255, 255, 0.5) 100%
	);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.6),
		0 1px 2px rgba(23, 19, 17, 0.04);
	overflow: hidden;
	isolation: isolate;
	transform: none;
	transition:
		transform 0.32s var(--ease-standard, cubic-bezier(0.2, 0, 0, 1)),
		border-color 0.32s var(--ease-standard, cubic-bezier(0.2, 0, 0, 1)),
		box-shadow 0.32s var(--ease-standard, cubic-bezier(0.2, 0, 0, 1)),
		background 0.32s var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
}

.zone::marker {
	content: "";
}

/* HeroUI-style radial glow that fades in on hover */
.zone__glow {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(
		125% 95% at 50% -12%,
		rgba(var(--legacy-red-rgb), 0.14),
		transparent 62%
	);
	opacity: 0;
	transition: opacity 0.34s var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
	pointer-events: none;
}

/* ---- Hover (HeroUI isHoverable: lift + glow + border shift) ---- */
.zone:hover {
	padding-left: 1.5rem;
	border-color: rgba(var(--legacy-red-rgb), 0.36);
	background: linear-gradient(
		180deg,
		#ffffff 0%,
		rgba(255, 255, 255, 0.74) 100%
	);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.7),
		0 18px 42px rgba(23, 19, 17, 0.1),
		0 2px 8px rgba(23, 19, 17, 0.06);
	transform: translateY(-4px);
}

.zone:hover .zone__glow {
	opacity: 1;
}

@media (hover: none) {
	.zone:hover {
		transform: none;
	}
}

/* ---- Card body ---- */
.zone__body {
	display: flex;
	flex-direction: column;
	gap: 0.62rem;
	min-width: 0;
}

.zone__name {
	max-width: none;
	font-family: var(--display-cond-font);
	font-weight: 600;
	font-size: clamp(1.4rem, 1.7vw, 1.85rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
	font-variation-settings:
		"wght" 600,
		"opsz" 32;
	color: var(--legacy-ink);
}

.zone__lead {
	max-width: 46ch;
	padding-top: 0;
	color: var(--legacy-ink-soft);
	font-family: var(--text-font);
	font-size: clamp(0.96rem, 1vw, 1.04rem);
	font-weight: 500;
	line-height: 1.5;
	text-wrap: pretty;
}

.zone__steps {
	grid-column: auto;
	display: grid;
	gap: 0.42rem;
	max-width: none;
	margin-top: 0.3rem;
	padding: 0;
	list-style: none;
}

.zone__steps li {
	position: relative;
	padding-left: 1.35rem;
	color: var(--legacy-ink-soft);
	font-family: var(--text-font);
	font-size: clamp(0.9rem, 0.98vw, 0.98rem);
	line-height: 1.45;
	text-wrap: pretty;
}

.zone__steps li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0.12rem;
	width: 0.5rem;
	height: 0.5rem;
	border: 1px solid rgba(var(--legacy-red-rgb), 0.5);
	border-radius: 2px;
	background: rgba(var(--legacy-red-rgb), 0.08);
}

/* ---- Highlighted CTA card (4th) — shadcn primary / HeroUI glow ---- */
.zone--cta {
	border-color: rgba(var(--legacy-red-rgb), 0.34);
	background:
		radial-gradient(
			120% 130% at 85% -20%,
			rgba(var(--legacy-red-rgb), 0.32),
			transparent 55%
		),
		linear-gradient(180deg, #211c19 0%, #161210 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 1px 2px rgba(23, 19, 17, 0.08);
}

.zone--cta .zone__glow {
	background: radial-gradient(
		125% 95% at 50% -12%,
		rgba(var(--legacy-red-rgb), 0.4),
		transparent 60%
	);
}

.zone--cta .zone__name {
	color: var(--paper-strong);
}

.zone--cta .zone__lead {
	color: rgba(243, 237, 228, 0.78);
}

.zone--cta .zone__steps li {
	color: rgba(243, 237, 228, 0.74);
}

.zone--cta .zone__steps li::before {
	border-color: rgba(var(--legacy-red-rgb), 0.7);
	background: rgba(var(--legacy-red-rgb), 0.22);
}

.zone--cta:hover {
	border-color: rgba(var(--legacy-red-rgb), 0.62);
	background:
		radial-gradient(
			120% 130% at 85% -20%,
			rgba(var(--legacy-red-rgb), 0.42),
			transparent 55%
		),
		linear-gradient(180deg, #261f1b 0%, #181311 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		0 22px 48px rgba(23, 19, 17, 0.32),
		0 2px 10px rgba(var(--legacy-red-rgb), 0.18);
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
	.zone-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.zones-title {
		max-width: 12ch;
		font-size: clamp(2.2rem, 10vw, 3.3rem);
	}

	.zone {
		grid-template-columns: 1fr;
		gap: 0.9rem;
		padding: 1.35rem 1.25rem 1.5rem;
		border-radius: 16px;
	}

	.zone__body {
		grid-template-columns: 1fr;
	}

	.zone__steps {
		grid-column: auto;
	}
}
