@charset "UTF-8";

/* ============================================================================
   DDG Corporate Child — Our Story
   ========================================================================= */

.ddg-story__hero {
	position: relative;
	height: min(78vh, 720px);
	overflow: hidden;
}

.ddg-story__hero-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ddg-story__hero::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		0deg,
		rgba(19, 20, 23, 0.95) 4%,
		rgba(19, 20, 23, 0.45) 48%,
		rgba(19, 20, 23, 0.6) 100%
	);
}

.ddg-story__hero-copy {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8vh;
	z-index: 2;
}

.ddg-story__hero-copy h1 {
	font-size: clamp(38px, 6vw, 72px);
	margin: 0 0 12px;
}

.ddg-story__hero-copy p {
	max-width: 46ch;
	margin: 0;
	color: #cfcac1;
	font-size: 17px;
}

.ddg-story__intro {
	max-width: 68ch;
	margin: 56px auto 0;
	color: var(--ddg-mute);
}

/* ------------------------------------------------------------- timeline */

.ddg-timeline {
	margin: 64px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: ddg-tl;
}

.ddg-tl {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 44px;
	align-items: center;
	padding: 44px 0;
	border-top: 1px solid var(--ddg-hairline);
}

/* Alternate the media side so the page reads as a timeline rather than a
   list of identical rows. */
.ddg-tl:nth-child(even) .ddg-tl__media {
	order: 2;
}

.ddg-tl__media img,
.ddg-tl__media video {
	width: 100%;
	border-radius: var(--ddg-radius);
	background: var(--ddg-asphalt);
}

/* The clips are portrait phone footage, so a tall frame avoids letterboxing
   the subject into a thin strip. */
.ddg-tl__media img,
.ddg-tl__media video,
.ddg-player {
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.ddg-player {
	position: relative;
	display: block;
	width: 100%;
	border-radius: var(--ddg-radius);
	overflow: hidden;
	background: var(--ddg-asphalt);
}

.ddg-player img,
.ddg-player video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ddg-player__btn {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 0;
	background: rgba(19, 20, 23, 0.28);
	border: 0;
	color: var(--ddg-bone);
	cursor: pointer;
	transition: background 0.28s;
}

.ddg-player__btn:hover {
	background: rgba(19, 20, 23, 0.12);
}

.ddg-player__btn svg {
	width: 62px;
	height: 62px;
	padding: 18px;
	background: rgba(200, 162, 75, 0.92);
	border-radius: 50%;
	color: #17130a;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	transition: transform 0.28s;
}

.ddg-player__btn:hover svg {
	transform: scale(1.06);
}

.ddg-tl__year {
	display: block;
	margin-bottom: 6px;
	font-family: var(--ddg-display);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.14em;
	color: var(--ddg-gold);
}

.ddg-tl__text h2 {
	margin: 0 0 10px;
	font-size: clamp(26px, 3.2vw, 38px);
}

.ddg-tl__text p {
	max-width: 46ch;
	margin: 0;
	color: var(--ddg-mute);
	font-size: 15.5px;
}

/* ------------------------------------------------------------------ cta */

.ddg-story__cta {
	margin-top: 20px;
	padding: 64px 0 20px;
	border-top: 1px solid var(--ddg-hairline);
	text-align: center;
}

.ddg-story__cta h2 {
	font-size: clamp(28px, 3.6vw, 42px);
}

.ddg-story__cta p {
	max-width: 46ch;
	margin: 0 auto 24px;
	color: var(--ddg-mute);
}

.ddg-story__cta .ddg-hero__actions {
	justify-content: center;
}

/* ---------------------------------------------------------- breakpoints */

@media (max-width: 782px) {

	.ddg-story__hero {
		height: min(70vh, 560px);
	}

	.ddg-story__hero-copy {
		bottom: 6vh;
	}

	.ddg-timeline {
		margin-top: 40px;
	}

	.ddg-tl {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 32px 0;
	}

	/* One column, so the alternating order would only shuffle the text
	   above its own picture. */
	.ddg-tl:nth-child(even) .ddg-tl__media {
		order: 0;
	}

	.ddg-player__btn svg {
		width: 52px;
		height: 52px;
		padding: 14px;
	}

	.ddg-story__cta {
		padding: 44px 0 12px;
	}
}

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

	.ddg-story__hero-video {
		display: none;
	}
}
