/**
 * Homepage (giveaway-home template): hero, grid lead, winners.
 * Tokens only; values follow the export where it agrees with the Style Spec.
 */

/* ==== Hero (Part K, LGND proportions): black ground, image right, copy left ==== */
.ghero {
	position: relative;
	z-index: 0;
	overflow: hidden;
	background: var(--color-banner-black);
	color: var(--color-paper);
}

/* Faint machined lines, under the image fade. */
.ghero::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: repeating-linear-gradient(115deg, rgb(255 255 255 / 2.5%) 0 1px, transparent 1px 7px);
	pointer-events: none;
}

.ghero__inner {
	display: grid;
	align-items: center;
	min-height: 470px;
	padding-block: var(--space-50);
}

/* Portrait prize photo, framed on the right; a brass hairline sits offset behind it. */
.ghero--media .ghero__inner {
	grid-template-columns: minmax(0, 1fr) minmax(260px, min(460px, 36%));
	gap: clamp(32px, 5vw, 80px);
}
.ghero--media .ghero__media {
	position: relative;
	z-index: 0;
	display: block;
	aspect-ratio: 3 / 4;
	margin-right: 12px;
}
.ghero--media .ghero__media::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 12px -12px -12px 12px;
	border: 1px solid var(--color-brass);
	pointer-events: none;
}
.ghero--media .ghero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}

/* Backdrop layout (the default): a wide image fills the right of the hero and fades
   into the black on its left. */
.ghero--backdrop .ghero__media img {
	position: absolute;
	z-index: -1;
	top: 0;
	right: 0;
	width: 64%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 40%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%);
	mask-image: linear-gradient(90deg, transparent 0, #000 38%);
}
/* hero_head_top: the image is scaled and moved so the subject top sits 10px below the
   hero top (it still fills the hero), and the fade is shorter so more of the subject shows. */
.ghero--backdrop[style*="--ghero-head"] .ghero__media img {
	top: calc(10px - var(--ghero-head) * (100% - 10px) / (1 - var(--ghero-head)));
	height: calc((100% - 10px) / (1 - var(--ghero-head)));
	object-position: var(--ghero-x, 50%) 0;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%);
	mask-image: linear-gradient(90deg, transparent 0, #000 26%);
}
/* hero_width, hero_fade and hero_fade_slant: wide screens only, where the copy leaves room.
   The slanted fade keeps the headline on black and the lower left of the image clear. */
@media (min-width: 1240px) {
	.ghero--backdrop[style*="--ghero-head"] .ghero__media img {
		width: var(--ghero-w, 64%);
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--ghero-fade, 26%)), linear-gradient(120deg, transparent 0, #000 var(--ghero-slant, 0%));
		mask-image: linear-gradient(90deg, transparent 0, #000 var(--ghero-fade, 26%)), linear-gradient(120deg, transparent 0, #000 var(--ghero-slant, 0%));
		-webkit-mask-composite: source-in;
		mask-composite: intersect;
	}
}
.ghero--backdrop[style*="--ghero-head"] .ghero__extra--image {
	background: rgb(10 10 10 / 72%);
}
.ghero--backdrop .ghero__prizes,
.ghero--backdrop .ghero__extra--image {
	max-width: min(600px, 46vw); /* stays clear of the photo at 1024 */
}
.ghero--backdrop .ghero__copy {
	max-width: min(680px, 56vw);
}
.ghero--backdrop .ghero__title {
	font-size: clamp(56px, 6.4vw, 108px);
}

.ghero__copy {
	display: grid;
	justify-items: start;
	max-width: 600px;
	min-width: 0;
}

.ghero__kicker {
	margin: 0 0 2px;
	color: var(--color-paper);
	font-size: clamp(24px, 2.2vw, 34px);
	font-stretch: 75%;
	font-style: italic;
	font-weight: var(--weight-black);
	line-height: 1;
	text-transform: uppercase;
}

.ghero__title {
	margin: 0;
	color: var(--color-paper);
	font-size: clamp(64px, 7.6vw, 124px);
	font-stretch: 62%;
	font-style: italic;
	font-weight: var(--display-weight);
	line-height: 0.86;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-wrap: balance;
}

/* One spec line, brass squares between the items. */
.ghero__specs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	margin: var(--space-10) 0 0;
	color: var(--color-paper);
	font-size: clamp(15px, 1.35vw, 20px);
	font-stretch: 75%;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
}
.ghero__specs span + span::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 12px;
	vertical-align: 0.2em;
	background: var(--color-brass);
}

.ghero--media .ghero__copy {
	max-width: 680px;
}
.ghero--media .ghero__title {
	font-size: clamp(56px, 6.4vw, 108px);
}

/* Subline under the title, e.g. "5 total winners". */
.ghero__sub {
	margin: var(--space-15) 0 0;
	color: var(--fp-gold-text);
	font-size: clamp(22px, 2vw, 32px);
	font-stretch: 75%;
	font-style: italic;
	font-weight: var(--weight-black);
	line-height: 1;
	text-transform: uppercase;
}

.ghero--backdrop .ghero__sub {
	font-size: clamp(33px, 3vw, 48px);
}

/* Labelled prize list (the spec items when "Hero prize list: label" is set). */
.ghero__prizes {
	width: 100%;
	max-width: 600px;
	margin-top: var(--space-30);
}
.ghero__prizes-label,
.ghero__extra-label {
	margin: 0;
	color: var(--fp-gold-text);
	font-size: 12px;
	font-weight: var(--weight-bold);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.ghero__prize-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--space-30);
	margin: var(--space-10) 0 0;
	padding: 0;
	list-style: none;
}
.ghero__prize-list li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding-block: 8px;
	border-bottom: 1px solid rgb(255 255 255 / 12%);
	color: var(--color-paper);
	font-size: clamp(14px, 1.2vw, 17px);
	font-stretch: 75%;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}
.ghero__prize-list li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	background: var(--color-brass);
	transform: translateY(-0.1em);
}

/* Beside the photo, Enter now and the legal line line up with the copy. */
.ghero--media .ghero__cta {
	justify-items: start;
}
.ghero--media .ghero__legal {
	text-align: left;
}

/* Prize line: one paragraph under the title (replaces the spec line when set). */
.ghero__line {
	max-width: min(560px, 46vw); /* stays clear of the photo at 1024 */
	margin: var(--space-15) 0 0;
	color: var(--color-paper);
	font-size: clamp(15px, 1.25vw, 19px);
	font-weight: var(--weight-medium);
	line-height: 1.45;
}
/* More winners: its own block with clear space above. */
.ghero__extra {
	display: grid;
	gap: 6px;
	max-width: min(560px, 46vw);
	margin-top: var(--space-30);
}
.ghero__extra--image {
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: center;
	gap: var(--space-15);
	max-width: 600px;
	padding: 10px;
	border: 1px solid rgb(255 255 255 / 12%);
	background: rgb(255 255 255 / 4%);
}
.ghero__extra-img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
}
.ghero__extra-body {
	display: grid;
	gap: 6px;
}
.ghero__extra-text {
	margin: 0;
	color: var(--color-paper);
	font-size: clamp(15px, 1.15vw, 17px);
	line-height: 1.45;
}

.ghero__cta {
	display: grid;
	justify-items: center;
	gap: var(--space-10);
	margin-top: var(--space-30);
}
.ghero__enter {
	justify-content: center;
	min-width: 280px;
	min-height: 52px;
	font-size: 18px;
	font-stretch: 85%;
	font-weight: var(--weight-black);
	letter-spacing: 0.06em;
	transition: background-color var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out);
}
.ghero__enter:hover {
	transform: translateY(-1px);
}
.ghero__enter:active {
	transform: translateY(0);
}
.ghero__legal {
	margin: 0;
	color: var(--color-muted-on-dark);
	font-size: var(--fs-smallest);
	text-align: center;
}
.ghero__legal a {
	color: var(--color-paper);
}
.ghero__desc {
	max-width: 48ch;
	margin: var(--space-15) 0 0;
	color: var(--on-surface);
	font-size: var(--fs-body-lg);
}
.ghero--soon .clock {
	margin-top: var(--space-15);
}
.ghero--soon .ghero__legal {
	margin-top: var(--space-10);
	text-align: left;
}
.ghero .newsletter .field__label {
	color: var(--on-surface-strong);
}

.clock {
	margin: 0;
}
.clock__value {
	display: block;
	color: var(--on-surface-number);
	font-size: 30px;
	font-stretch: 68%;
	font-style: italic;
	font-weight: var(--weight-black);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.clock small {
	display: block;
	margin-top: 4px;
	color: var(--on-surface);
	font-size: 10px;
	font-weight: var(--weight-semibold);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Phones: the image fills the hero, copy sits on a black fade at the bottom, and
   Enter now stays above the fold at 390 x 844 with the countdown band under it. */
@media (max-width: 767px) {
	.ghero__inner {
		align-items: end;
		min-height: clamp(430px, 62svh, 540px);
		padding-block: var(--space-30) var(--space-20);
	}
	.ghero__copy {
		justify-items: stretch;
		max-width: none;
	}
	.ghero__kicker {
		font-size: 22px;
	}
	.ghero__title {
		font-size: clamp(52px, 15vw, 76px);
		overflow-wrap: anywhere;
	}
	.ghero__specs {
		font-size: 13px;
	}
	/* Backdrop on phones: the image is a full-width band above the copy, fading into
	   the black, so the white title never sits on the light backdrop. */
	.ghero--backdrop .ghero__inner {
		align-items: start;
		min-height: 0;
		padding-top: 0;
	}
	.ghero--backdrop .ghero__media {
		order: -1;
		margin-inline: calc(-1 * var(--container-pad));
	}
	.ghero--backdrop .ghero__media img {
		position: static;
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 2 / 1;
		-webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
		mask-image: linear-gradient(to bottom, #000 70%, transparent);
	}
	.ghero--backdrop[style*="--ghero-head"] .ghero__media img {
		top: auto;
		height: calc(50vw * (1 - var(--ghero-head)) + 10px);
		aspect-ratio: auto;
		object-position: 50% 100%;
		-webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
		mask-image: linear-gradient(to bottom, #000 70%, transparent);
	}
	/* A phone image is shown whole; the fade starts below its lower callout. */
	.ghero--backdrop.ghero--mobile-image .ghero__media img,
	.ghero--backdrop.ghero--mobile-image[style*="--ghero-head"] .ghero__media img {
		height: auto;
		aspect-ratio: 1 / 1;
		-webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent);
		mask-image: linear-gradient(to bottom, #000 84%, transparent);
	}
	.ghero--backdrop .ghero__sub {
		font-size: clamp(28px, 8.8vw, 33px);
	}
	.ghero--backdrop .ghero__copy {
		max-width: none;
	}
	.ghero--backdrop .ghero__title {
		font-size: clamp(44px, 13vw, 64px);
	}
	.ghero--backdrop .ghero__prizes,
	.ghero--backdrop .ghero__extra--image {
		max-width: none;
	}
	/* Phones: the photo stays beside the title and subline; the list and the rest run
	   full width under them. */
	.ghero--media .ghero__inner {
		grid-template-columns: minmax(0, 1fr) 38%;
		grid-template-areas: "kicker media" "title media" "sub media" "list list" "extra extra" "cta cta";
		align-items: start;
		gap: 0 var(--space-15);
		min-height: 0;
		padding-block: var(--space-20);
	}
	.ghero--media .ghero__copy {
		display: contents;
	}
	.ghero--media .ghero__kicker {
		grid-area: kicker;
	}
	.ghero--media .ghero__title {
		grid-area: title;
		font-size: clamp(34px, 10.4vw, 56px);
		overflow-wrap: normal;
	}
	.ghero--media .ghero__sub {
		grid-area: sub;
		font-size: 20px;
	}
	.ghero--media .ghero__line,
	.ghero--media .ghero__specs,
	.ghero--media .ghero__prizes {
		grid-area: list;
	}
	.ghero--media .ghero__extra {
		grid-area: extra;
	}
	.ghero--media .ghero__cta {
		grid-area: cta;
	}
	.ghero--media .ghero__media {
		grid-area: media;
		grid-row: 1 / 4;
		margin: 6px 8px 0 0;
	}
	.ghero--media .ghero__media::after {
		inset: 8px -8px -8px 8px;
	}
	.ghero__prizes {
		margin-top: var(--space-20);
	}
	.ghero__prize-list {
		column-gap: var(--space-15);
	}
	.ghero__prize-list li {
		gap: 8px;
		padding-block: 7px;
		font-size: 13px;
	}
	.ghero__prize-list li::before {
		width: 5px;
		height: 5px;
	}
	.ghero__extra--image {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: var(--space-10);
		padding: 8px;
	}
	.ghero__extra-img {
		width: 72px;
		height: 72px;
	}
	.ghero__line,
	.ghero__extra-text {
		font-size: 15px;
	}
	.ghero__line,
	.ghero__extra {
		max-width: none;
	}
	.ghero__extra {
		margin-top: var(--space-20);
	}
	.ghero__specs span + span::before {
		width: 5px;
		height: 5px;
		margin: 0 8px;
	}
	.ghero__cta {
		margin-top: var(--space-20);
	}
	.ghero__enter {
		width: 100%;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ghero__enter,
	.ghero__enter:hover {
		transform: none;
		transition: none;
	}
}

/* ==== Blades & tools grid ==== */
.shop-grid__lead {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: var(--space-20) var(--gutter-lg);
	margin-bottom: var(--space-30);
}
.shop-grid__title {
	margin: 0 0 6px;
	font-size: clamp(36px, 4vw, 56px);
	line-height: 1;
}
.shop-grid__intro {
	max-width: 56ch;
	margin: 0;
}
@media (max-width: 767px) {
	.shop-grid__lead {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==== Real winners ==== */
.winner__photo {
	aspect-ratio: 4 / 5;
	margin-bottom: var(--space-10);
}
/* Small brass text fails on white; the prize eyebrow uses brass ink. */
.winner__prize {
	margin: 0 0 4px;
	color: var(--on-surface-number);
	font-size: var(--fs-eyebrow);
	font-weight: var(--weight-semibold);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.winner__name {
	margin: 0;
	font-size: 17px;
}
.winner__meta {
	margin: 4px 0 0;
	font-size: var(--fs-small);
}

/* Winner cards: what they bought (the best proof) and a short story. */
.winner__bought {
	margin: var(--space-5) 0 0;
	font-size: var(--fs-small);
	font-weight: var(--weight-semibold);
}

.winner__bought span {
	color: var(--on-surface-number);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.winner__story {
	margin: var(--space-5) 0 0;
	font-size: var(--fs-small);
	line-height: 1.5;
}
