/**
 * onmethod-2027 — wow-work.css: the winner's circle (work archive).
 *
 * Dark cinematic stage, trophy hero, oversized case cards with volt
 * numerals and a kinetic hover. All motion respects the global
 * prefers-reduced-motion kill and the html.wow-off switch.
 */

/* ============ 1. Hero — trophy stage ============ */

.work-hero {
	position: relative;
	overflow: hidden;
	background: #0a0a0c;
	color: #f4f4f2;
	padding: clamp(4rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
}

.work-hero__bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(10, 10, 12, 0.55), rgba(10, 10, 12, 0.92)),
		url("../img/work-trophy.jpg") center 30% / cover no-repeat,
		#0a0a0c;
	transform: scale(1.06);
	pointer-events: none;
}

@supports (animation-timeline: view()) {
	.work-hero__bg {
		animation: work-hero-drift linear both;
		animation-timeline: view();
		animation-range: entry 0% exit 100%;
	}
	@keyframes work-hero-drift {
		from { transform: scale(1.12) translateY(-2%); }
		to { transform: scale(1.06) translateY(3%); }
	}
}

.work-hero .wrap { position: relative; z-index: 1; }

.work-hero .kicker { color: var(--volt); }

.work-hero h1 {
	font-size: clamp(2.4rem, 7vw, 4.6rem);
	letter-spacing: -0.025em;
	line-height: 1.04;
	max-width: 16ch;
	margin: 0 0 1.2rem;
	text-wrap: balance;
}

.work-hero .lede {
	font-size: clamp(1.1rem, 2.4vw, 1.4rem);
	color: rgba(244, 244, 242, 0.72);
	max-width: 44ch;
	margin: 0;
}

/* ============ 2. The index — oversized cards ============ */

.work-index { background: var(--paper); }

.work-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.work-list { grid-template-columns: 1fr 1fr; }
	/* Editorial stagger: every second card drops a beat. */
	.work-list .work-card:nth-child(even) { transform: translateY(3rem); }
	.work-index .wrap { padding-bottom: 3rem; }
}

.work-card {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	background: #101014;
	color: #f4f4f2;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.35s ease;
}

.work-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

@media (min-width: 900px) {
	.work-list .work-card:nth-child(even):hover { transform: translateY(3rem) translateY(-8px); }
}

.work-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.work-card__media {
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.work-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.work-card:hover .work-card__media img { transform: scale(1.06); }

.work-card__body { padding: clamp(1.5rem, 3vw, 2.25rem); }

.work-card__num {
	display: block;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	color: var(--volt);
	margin-bottom: 0.7rem;
}

.work-card__body h2 {
	font-size: clamp(1.6rem, 3.4vw, 2.2rem);
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0 0 0.8rem;
	text-wrap: balance;
}

.work-card__body p {
	color: rgba(244, 244, 242, 0.68);
	margin: 0 0 1.2rem;
	line-height: 1.6;
}

.work-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	color: #f4f4f2;
}

.work-card__more::after {
	content: "→";
	color: var(--volt);
	transition: transform 0.25s ease;
}

.work-card:hover .work-card__more::after { transform: translateX(6px); }

/* ============ 3. CTA band ============ */

.work-cta {
	background:
		radial-gradient(800px 400px at 50% 120%, rgba(217, 255, 0, 0.1), transparent 60%),
		#0a0a0c;
	color: #f4f4f2;
	text-align: center;
	padding: clamp(4rem, 10vh, 6rem) 0;
}

.work-cta h2 {
	font-size: clamp(1.9rem, 5vw, 3rem);
	letter-spacing: -0.02em;
	text-wrap: balance;
	max-width: 20ch;
	margin: 0 auto 1.8rem;
}


/* Breathing volt glow — the hero stays alive. */
.work-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(700px 340px at 50% 108%, rgba(217, 255, 0, 0.09), transparent 62%);
	animation: hero-breathe 7s ease-in-out infinite;
}

@keyframes hero-breathe {
	50% { opacity: 0.35; }
}

/* ============ 4. Kill switch ============ */

html.wow-off .work-hero__bg { animation: none; }
html.wow-off .work-hero::after { animation: none; }
html.wow-off .work-card:hover { transform: none; }
html.wow-off .work-card:hover .work-card__media img { transform: none; }
