/**
 * Graphic Design: Hero
 */

.ld-gd-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(70px, 8vw, 118px) 0 clamp(90px, 10vw, 150px);
	background: var(--ld-ivory);
}

.ld-gd-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
	gap: clamp(60px, 8vw, 130px);
	align-items: center;
}

.ld-gd-hero__title {
	max-width: 700px;
	margin: 0;
	color: var(--ld-ink);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(55px, 5.8vw, 90px);
	font-weight: 600;
	letter-spacing: -0.045em;
	line-height: 0.9;
	text-wrap: balance;
}

.ld-gd-hero__title span,
.ld-gd-hero__title em {
	display: block;
}

.ld-gd-hero__title em {
	margin-top: 9px;
	color: var(--ld-gold-dark);
	font-weight: 500;
}

.ld-gd-hero__copy {
	max-width: 620px;
	margin: 34px 0 0;
	color: var(--ld-gray);
	font-family: Inter, sans-serif;
	font-size: 16px;
	line-height: 1.8;
}

.ld-gd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 22px 30px;
	align-items: center;
	margin-top: 34px;
}

.ld-gd-hero__note {
	margin: 26px 0 0;
	color: var(--ld-gray);
	font-family: Inter, sans-serif;
	font-size: 13px;
	line-height: 1.6;
}

.ld-gd-hero__note strong {
	color: var(--ld-ink);
}

/* ---------------------------------------------------------
   Artwork stage
--------------------------------------------------------- */

.ld-gd-hero__showcase {
	position: relative;
	min-height: 650px;
	isolation: isolate;
}

.ld-gd-hero__showcase::before,
.ld-gd-hero__showcase::after {
	content: "";
	position: absolute;
	z-index: 0;
	pointer-events: none;
}

.ld-gd-hero__showcase::before {
	inset: 5% 5% 8% 9%;
	border: 1px solid rgba(23, 23, 23, 0.09);
}

.ld-gd-hero__showcase::after {
	top: 5%;
	left: 9%;
	width: 26px;
	height: 26px;
	border-top: 1px solid var(--ld-gold);
	border-left: 1px solid var(--ld-gold);
	transform: translate(-13px, -13px);
}

.ld-gd-hero__measure {
	position: absolute;
	z-index: 8;
	color: rgba(23, 23, 23, 0.34);
	font-family: Inter, sans-serif;
	font-size: 8px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	pointer-events: none;
}

.ld-gd-hero__measure--top {
	top: 1%;
	left: 12%;
}

.ld-gd-hero__measure--side {
	right: 0;
	bottom: 18%;
	writing-mode: vertical-rl;
}

/* ---------------------------------------------------------
   Individual pieces
--------------------------------------------------------- */

.ld-gd-hero__piece {
	position: absolute;
	z-index: 2;
	margin: 0;
	filter: drop-shadow(0 20px 30px rgba(23, 23, 23, 0.12));
	transform-origin: center;
	transition:
		transform 300ms ease,
		filter 300ms ease,
		opacity 300ms ease;
}

.ld-gd-hero__piece img {
	display: block;
	width: 100%;
	height: auto;
	user-select: none;
	-webkit-user-drag: none;
}

.ld-gd-hero__piece figcaption {
	display: inline-block;
	position: absolute;
	z-index: 3;
	padding: 7px 10px;
	background: var(--ld-ink);
	color: var(--ld-cream);
	font-family: Inter, sans-serif;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.11em;
	line-height: 1;
	text-transform: uppercase;
	transition:
		background-color 250ms ease,
		color 250ms ease;
}

/* Rayner */

.ld-gd-hero__piece--rayner {
	top: 7%;
	right: 2%;
	width: 58%;
	transform: rotate(2.2deg);
}

.ld-gd-hero__piece--rayner figcaption {
	top: -13px;
	left: 18px;
}

/* Faith */

.ld-gd-hero__piece--faith {
	top: 38%;
	left: 5%;
	width: 39%;
	transform: rotate(-3.5deg);
}

.ld-gd-hero__piece--faith figcaption {
	right: 12px;
	bottom: -10px;
}

/* Gaming */

.ld-gd-hero__piece--gaming {
	right: 3%;
	bottom: 2%;
	width: 34%;
	transform: rotate(3.8deg);
}

.ld-gd-hero__piece--gaming figcaption {
	top: -10px;
	left: 10px;
}

/* Dragonfly */

.ld-gd-hero__piece--dragonfly {
	left: 35%;
	bottom: 4%;
	width: 28%;
	transform: rotate(-1.5deg);
}

.ld-gd-hero__piece--dragonfly figcaption {
	bottom: -10px;
	left: 12px;
	background: var(--ld-gold);
	color: var(--ld-ink);
}

/* ---------------------------------------------------------
   Logo stages
--------------------------------------------------------- */

.ld-gd-hero__logo-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 12%;
	background: #fff;
	border: 10px solid #fff;
	box-shadow: 0 20px 45px rgba(23, 23, 23, 0.12);
}

.ld-gd-hero__logo-stage--dark {
	background: #171717;
	border-color: #171717;
}

.ld-gd-hero__logo-stage img {
	max-height: 100%;
	object-fit: contain;
}

/* ---------------------------------------------------------
   Desktop interaction
--------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) {

	.ld-gd-hero__piece {
		cursor: default;
	}

	.ld-gd-hero__showcase:hover .ld-gd-hero__piece {
		filter: drop-shadow(0 16px 24px rgba(23, 23, 23, 0.09));
	}

	.ld-gd-hero__piece--rayner:hover {
		z-index: 20;
		transform: rotate(0deg) translateY(-10px) scale(1.035);
		filter: drop-shadow(0 28px 38px rgba(23, 23, 23, 0.18));
	}

	.ld-gd-hero__piece--faith:hover {
		z-index: 20;
		transform: rotate(0deg) translateY(-10px) scale(1.05);
		filter: drop-shadow(0 28px 38px rgba(23, 23, 23, 0.18));
	}

	.ld-gd-hero__piece--gaming:hover {
		z-index: 20;
		transform: rotate(0deg) translateY(-10px) scale(1.05);
		filter: drop-shadow(0 28px 38px rgba(23, 23, 23, 0.2));
	}

	.ld-gd-hero__piece--dragonfly:hover {
		z-index: 20;
		transform: rotate(0deg) translateY(-10px) scale(1.06);
		filter: drop-shadow(0 28px 38px rgba(23, 23, 23, 0.18));
	}

	.ld-gd-hero__piece:hover figcaption {
		background: var(--ld-gold);
		color: var(--ld-ink);
	}
}

/* ---------------------------------------------------------
   Tablet
--------------------------------------------------------- */

@media (max-width: 1050px) {

	.ld-gd-hero__inner {
		grid-template-columns: 1fr;
		gap: 64px;
	}

	.ld-gd-hero__content {
		max-width: 760px;
	}

	.ld-gd-hero__showcase {
		width: min(100%, 760px);
		min-height: 610px;
		margin-inline: auto;
	}
}

/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */

@media (max-width: 640px) {

	.ld-gd-hero {
		padding: 62px 0 76px;
	}

	.ld-gd-hero__inner {
		gap: 34px;
	}

	.ld-gd-hero__title {
		font-size: clamp(48px, 14vw, 66px);
		line-height: 0.91;
	}

	.ld-gd-hero__copy {
		margin-top: 28px;
		font-size: 15px;
		line-height: 1.7;
	}

	.ld-gd-hero__actions {
		align-items: flex-start;
		flex-direction: column;
		margin-top: 30px;
	}

	.ld-gd-hero__note {
		margin-top: 24px;
		font-size: 12px;
	}

	/*
	 * Compact mobile artboard.
	 * The goal is one tight composition, not four separate cards.
	 */
	.ld-gd-hero__showcase {
		width: calc(100% + 4px);
		min-height: 455px;
		margin-top: 0;
		margin-left: -2px;
	}

	.ld-gd-hero__showcase::before {
		inset: 5% 2% 5% 2%;
		border-color: rgba(23, 23, 23, 0.06);
	}

	.ld-gd-hero__showcase::after {
		top: 5%;
		left: 2%;
		width: 21px;
		height: 21px;
	}

	.ld-gd-hero__measure--top {
		top: 0;
		left: 8%;
		opacity: 0.62;
	}

	.ld-gd-hero__measure--side {
		display: none;
	}

	.ld-gd-hero__piece {
		cursor: pointer;
		touch-action: manipulation;
		transition:
			transform 260ms ease,
			filter 260ms ease,
			opacity 260ms ease;
	}

	.ld-gd-hero__piece:focus-visible {
		outline: 2px solid var(--ld-gold);
		outline-offset: 4px;
	}

	/*
	 * Rayner: wide upper layer.
	 */
	.ld-gd-hero__piece--rayner {
		z-index: 2;
		top: 7%;
		right: -2%;
		width: 66%;
		transform: rotate(2.2deg);
	}

	/*
	 * Faith: left-middle anchor.
	 */
	.ld-gd-hero__piece--faith {
		z-index: 4;
		top: 34%;
		left: -2%;
		width: 47%;
		transform: rotate(-3deg);
	}

	/*
	 * Dragonfly: center bridge.
	 */
	.ld-gd-hero__piece--dragonfly {
		z-index: 5;
		left: 31%;
		bottom: 7%;
		width: 34%;
		transform: rotate(-1.5deg);
	}

	/*
	 * Gaming: right/front layer.
	 */
	.ld-gd-hero__piece--gaming {
		z-index: 6;
		right: -1%;
		bottom: 5%;
		width: 36%;
		transform: rotate(3deg);
	}

	.ld-gd-hero__piece figcaption {
		padding: 6px 8px;
		font-size: 7px;
	}

	.ld-gd-hero__piece--dragonfly figcaption {
		top: -9px;
		left: 8px;
		bottom: auto;
	}

	/*
	 * Tap-to-front state.
	 */
	.ld-gd-hero__piece.is-active {
		z-index: 30;
		filter: drop-shadow(0 24px 32px rgba(23, 23, 23, 0.22));
	}

	.ld-gd-hero__piece--rayner.is-active {
		transform: rotate(0deg) translate(-3px, -5px) scale(1.045);
	}

	.ld-gd-hero__piece--faith.is-active {
		transform: rotate(0deg) translate(7px, -4px) scale(1.06);
	}

	.ld-gd-hero__piece--dragonfly.is-active {
		transform: rotate(0deg) translate(2px, -6px) scale(1.08);
	}

	.ld-gd-hero__piece--gaming.is-active {
		transform: rotate(0deg) translate(-5px, -6px) scale(1.07);
	}

	.ld-gd-hero__piece.is-active figcaption {
		background: var(--ld-gold);
		color: var(--ld-ink);
	}
}

/* ---------------------------------------------------------
   Reduced motion
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

	.ld-gd-hero__piece,
	.ld-gd-hero__piece figcaption {
		transition: none;
	}
}