/* =========================================================
   ALSTON HOW IT WORKS
========================================================= */

.alston-how {
	position: relative;
	width: 100%;
	padding: 120px 20px 24px;
	background: #ffffff;
	overflow: hidden;
}

.alston-how * {
	box-sizing: border-box;
}

.alston-how__inner {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

.alston-how__top {
	text-align: center;
	margin-bottom: 82px;
}

.alston-how__heading {
	margin: 0;
	color: #1A1A1A;
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(42px, 5vw, 78px);
	line-height: 1;
	font-weight: 400;
	letter-spacing: -0.02em;
}

.alston-how__heading em {
	font-style: italic;
	color: #C9A961;
}

/* =========================================================
   STEPS
========================================================= */

.alston-how__steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 50px;
}

.alston-how__step {
	position: relative;
	text-align: center;
}

.alston-how__step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 35px;
	left: calc(50% + 78px);
	width: calc(100% - 106px);
	height: 3px;
	background-image: linear-gradient(to right, #d9d9d9 50%, transparent 50%);
	background-size: 14px 3px;
	background-repeat: repeat-x;
	opacity: 0.9;
}

.alston-how__number-wrap {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	margin-bottom: 36px;
}

.alston-how__number {
	width: 72px;
	height: 72px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e5e5e5;
	border-radius: 50%;
	background: #ffffff;
	color: #000000;
	font-size: 24px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.alston-how__content {
	max-width: 430px;
	margin: 0 auto;
}

.alston-how__step-title {
	margin: 0 0 16px;
	color: #1A1A1A;
	font-family: "Cormorant Garamond", serif;
	font-size: 34px;
	line-height: 38px;
	font-weight: 500;
	letter-spacing: -0.015em;
}

.alston-how__step-description {
	margin: 0;
	color: #555555;
	font-size: 15px;
	line-height: 27px;
	font-weight: 400;
}

/* =========================================================
   ENTRANCE ANIMATION
========================================================= */

.alston-how-reveal {
	opacity: 0;
	transform: translate3d(0, 42px, 0);
	will-change: opacity, transform;
	backface-visibility: hidden;
	transition:
		opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.alston-how-reveal.is-visible {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

/* =========================================================
   1025px - 1280px
========================================================= */

@media (min-width: 1025px) and (max-width: 1280px) {

	.alston-how {
		padding: 80px 20px 64px;
	}

	.alston-how__heading {
		font-size: 64px;
		line-height: 66px;
	}

	.alston-how__steps {
		gap: 36px;
	}

	.alston-how__step-title {
		font-size: 30px;
		line-height: 34px;
	}

	.alston-how__step-description {
		font-size: 15px;
		line-height: 26px;
	}
}

/* =========================================================
   768px - 1024px
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

	.alston-how {
		padding: 80px 20px 64px;
	}

	.alston-how__top {
		margin-bottom: 64px;
	}

	.alston-how__heading {
		font-size: 56px;
		line-height: 58px;
	}

	.alston-how__steps {
		gap: 28px;
	}

	.alston-how__number {
		width: 64px;
		height: 64px;
		font-size: 22px;
	}

	.alston-how__step:not(:last-child)::after {
		top: 31px;
		left: calc(50% + 66px);
		width: calc(100% - 76px);
	}

	.alston-how__step-title {
		font-size: 28px;
		line-height: 32px;
	}

	.alston-how__step-description {
		font-size: 14px;
		line-height: 25px;
	}
}

/* =========================================================
   481px - 767px
========================================================= */

@media (min-width: 481px) and (max-width: 767px) {

	.alston-how {
		padding: 72px 20px 10px;
	}

	.alston-how__top {
		margin-bottom: 48px;
	}

	.alston-how__heading {
		font-size: 42px;
		line-height: 44px;
	}

	.alston-how__steps {
		grid-template-columns: 1fr;
		gap: 46px;
	}

	.alston-how__step:not(:last-child)::after {
		display: none;
	}

	.alston-how__number-wrap {
		margin-bottom: 22px;
	}

	.alston-how__content {
		max-width: 100%;
	}

	.alston-how__step-title {
		font-size: 30px;
		line-height: 34px;
	}

	.alston-how__step-description {
		font-size: 14px;
		line-height: 25px;
	}
}

/* =========================================================
   0px - 480px
========================================================= */

@media (min-width: 0px) and (max-width: 480px) {

	.alston-how {
		padding: 72px 20px 10px;
	}

	.alston-how__top {
		margin-bottom: 42px;
	}

	.alston-how__heading {
		font-size: 38px;
		line-height: 40px;
	}

	.alston-how__steps {
		grid-template-columns: 1fr;
		gap: 42px;
	}

	.alston-how__step:not(:last-child)::after {
		display: none;
	}

	.alston-how__number-wrap {
		margin-bottom: 20px;
	}

	.alston-how__number {
		width: 64px;
		height: 64px;
		font-size: 22px;
	}

	.alston-how__step-title {
		margin-bottom: 14px;
		font-size: 28px;
		line-height: 32px;
	}

	.alston-how__step-description {
		font-size: 14px;
		line-height: 24px;
	}
}