/* Loaded only on the homepage after the shared design tokens. */
.stone-hero {
	position: relative;
	height: clamp(640px, 82vh, 920px);
	min-height: 640px;
	overflow: hidden;
	border-bottom: 1px solid #222222;
	background: var(--stone-dark);
	color: #ffffff;
	isolation: isolate;
}

.stone-hero__slides,
.stone-hero__slide {
	position: absolute;
	inset: 0;
}

.stone-hero__slide {
	visibility: hidden;
	opacity: 0;
	transition: opacity 700ms ease, visibility 700ms;
}

.stone-hero__slide.is-active {
	visibility: visible;
	opacity: 1;
}

.stone-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--hero-focus-desktop, 50% 50%);
}

.stone-hero__overlay {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgb(8 8 8 / 88%) 0%,
		rgb(8 8 8 / 86%) 18%,
		rgb(8 8 8 / 79%) 32%,
		rgb(8 8 8 / 68%) 45%,
		rgb(8 8 8 / 52%) 55%,
		rgb(8 8 8 / 28%) 62%,
		rgb(8 8 8 / 10%) 70%,
		rgb(8 8 8 / 3%) 80%,
		transparent 100%
	);
	pointer-events: none;
}

.stone-hero__slide-copy {
	position: relative;
	z-index: 2;
	height: 100%;
	padding-block: clamp(9.5rem, 16vh, 11.5rem) clamp(12rem, 22vh, 15rem);
}

.stone-hero__slide-copy .stone-shell {
	height: 100%;
}

.stone-hero__brand {
	position: absolute;
	z-index: 3;
	top: clamp(1.2rem, 3vw, 2.4rem);
	left: 50%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	transform: translateX(-50%);
}

.stone-hero__brand-title {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.5em;
	max-width: 72ch;
	margin: 0;
	color: #ffffff;
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: var(--ls-caps);
	line-height: var(--lh-snug);
	text-transform: uppercase;
}

.stone-hero__brand-name {
	font-weight: 700;
}

.stone-hero__brand-tagline::before {
	margin-right: 0.5em;
	color: #d8b28e;
	content: "·";
}

.stone-hero__title {
	max-width: 12ch;
	margin: 0.35rem 0 0;
	color: #ffffff;
	font-size: var(--fs-3xl);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: var(--lh-tight);
	text-shadow: 0 2px 8px rgb(0 0 0 / 72%);
}

.stone-hero__intro {
	max-width: 46ch;
	margin-top: 1.4rem;
	color: #f2f2f2;
	font-family: var(--stone-sans);
	font-size: var(--fs-lg);
	line-height: var(--lh-body);
	text-shadow: 0 1px 2px rgb(0 0 0 / 92%), 0 0 8px rgb(0 0 0 / 78%);
}

.stone-hero .stone-eyebrow {
	color: #ffffff;
	text-shadow: 0 1px 2px rgb(0 0 0 / 92%), 0 0 8px rgb(0 0 0 / 78%);
}

.stone-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	align-items: center;
	margin-top: 1.8rem;
}

.stone-hero .stone-button--secondary {
	border-color: rgb(255 255 255 / 72%);
	background: rgb(8 8 8 / 52%);
	color: #ffffff;
}

.stone-hero .stone-button--secondary:hover,
.stone-hero .stone-button--secondary:focus-visible {
	border-color: #ffffff;
	background: #ffffff;
	color: var(--stone-ink);
}

.stone-hero__pause {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 0.55rem;
	align-items: center;
	min-height: 44px;
	padding: 0.65rem 0.9rem;
	border: 1px solid rgb(255 255 255 / 54%);
	background: rgb(8 8 8 / 46%);
	color: #ffffff;
	font-size: var(--fs-sm);
	font-weight: 500;
	line-height: var(--lh-snug);
	cursor: pointer;
}

.stone-hero__pause:hover,
.stone-hero__pause:focus-visible {
	border-color: #ffffff;
	background: rgb(8 8 8 / 72%);
}

.stone-hero__arrow {
	position: absolute;
	z-index: 3;
	top: 51%;
	width: 48px;
	height: 48px;
	border: 1px solid rgb(255 255 255 / 54%);
	border-radius: 50%;
	background: rgb(8 8 8 / 42%);
	color: #ffffff;
	font-size: var(--fs-xl);
	font-weight: 500;
	line-height: 1;
	transform: translateY(-50%);
	cursor: pointer;
}

.stone-hero__arrow:hover,
.stone-hero__arrow:focus-visible {
	border-color: #ffffff;
	background: rgb(8 8 8 / 76%);
}

.stone-hero__arrow--prev {
	left: max(1rem, calc((100vw - var(--stone-shell)) / 2 - 64px));
}

.stone-hero__arrow--next {
	right: max(1rem, calc((100vw - var(--stone-shell)) / 2 - 64px));
}

.stone-hero__footer {
	position: absolute;
	z-index: 3;
	right: 0;
	bottom: clamp(1.1rem, 2.6vh, 2rem);
	left: 0;
	display: grid;
	grid-template-rows: 2.4rem 2.2rem;
	gap: 0.85rem;
	height: 5.5rem;
}

.stone-hero__footer::before {
	position: absolute;
	z-index: -1;
	inset: -0.75rem -2.5rem -0.5rem -0.75rem;
	background: linear-gradient(
		0deg,
		rgb(8 8 8 / 66%) 0%,
		rgb(8 8 8 / 44%) 36%,
		rgb(8 8 8 / 18%) 70%,
		transparent 100%
	);
	content: "";
	mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 58%, transparent 100%);
	pointer-events: none;
}

.stone-hero__indicators {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.55rem;
	max-width: calc(50vw - max(24px, (100vw - var(--stone-shell)) / 2));
}

.stone-hero__indicators[aria-hidden="true"] {
	visibility: hidden;
}

.stone-hero__indicators a {
	display: block;
	padding-top: 0.62rem;
	border-top: 2px solid rgb(255 255 255 / 34%);
	color: #e8e2d9;
	font-size: var(--fs-sm);
	font-weight: 500;
	line-height: var(--lh-snug);
	text-decoration: none;
	text-shadow: 0 1px 2px rgb(0 0 0 / 92%);
}

.stone-hero__indicators a:hover,
.stone-hero__indicators a:focus-visible,
.stone-hero__indicators a.is-active {
	border-color: #ffffff;
	color: #ffffff;
}

.stone-hero__progress {
	display: block;
	width: 100%;
	height: 2px;
	margin-top: 0.45rem;
	background: transparent;
	transform: scaleX(0);
	transform-origin: left;
}

.stone-hero__indicators a.is-active .stone-hero__progress {
	background: #d8b28e;
}

.stone-hero.is-playing .stone-hero__indicators a.is-active .stone-hero__progress {
	animation: stone-hero-progress 6s linear forwards;
}

.stone-hero__trust {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.45rem 1.5rem;
	padding: 0.8rem 0 0;
	margin: 0;
	border-top: 1px solid rgb(255 255 255 / 24%);
	color: #f1ede7;
	font-size: var(--fs-sm);
	height: 2.2rem;
	line-height: var(--lh-snug);
	list-style: none;
	max-width: calc(50vw - max(24px, (100vw - var(--stone-shell)) / 2));
	overflow: hidden;
	text-shadow: 0 1px 2px rgb(0 0 0 / 92%);
}

.stone-hero__trust li {
	margin: 0;
	white-space: nowrap;
}

.stone-hero__trust li::before {
	margin-right: 0.45rem;
	color: #d8b28e;
	content: "·";
}

@keyframes stone-hero-progress {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
	.stone-hero__slide {
		transition: none;
	}

	.stone-hero.is-playing .stone-hero__indicators a.is-active .stone-hero__progress {
		animation: none;
		transform: scaleX(1);
	}
}

@media (max-width: 700px) {
	.stone-hero {
		height: min(82svh, 700px);
		min-height: 620px;
		max-height: 85svh;
	}

	.stone-hero__image {
		object-position: var(--hero-focus-mobile, 50% 50%);
	}

	.stone-hero__overlay {
		background:
			linear-gradient(0deg, rgb(8 8 8 / 90%) 0%, rgb(8 8 8 / 84%) 20%, rgb(8 8 8 / 72%) 38%, rgb(8 8 8 / 65%) 54%, rgb(8 8 8 / 26%) 68%, rgb(8 8 8 / 8%) 82%, transparent 100%),
			linear-gradient(180deg, rgb(8 8 8 / 66%) 0%, rgb(8 8 8 / 64%) 14%, rgb(8 8 8 / 55%) 28%, rgb(8 8 8 / 38%) 42%, rgb(8 8 8 / 15%) 56%, transparent 66%);
	}

	.stone-hero__brand {
		top: 0.8rem;
		width: calc(100% - 32px);
	}

	.stone-hero__brand > div {
		min-width: 0;
	}

	.stone-hero__brand-title {
		max-width: 54ch;
		font-size: var(--fs-xs);
	}

	.stone-hero__brand .stone-hero__pause {
		padding: 0.5rem 0.65rem;
	}

	.stone-hero__slide-copy {
		padding-block: 6.8rem 10.3rem;
	}

	.stone-hero__arrow {
		display: none;
	}

	.stone-hero .stone-eyebrow {
		font-size: var(--fs-sm);
		letter-spacing: var(--ls-caps);
		line-height: var(--lh-snug);
	}

	.stone-hero__title {
		max-width: 11ch;
		margin-top: 0.25rem;
		font-size: var(--fs-2xl);
	}

	.stone-hero__intro {
		max-width: 34ch;
		margin-top: 0.8rem;
		font-size: var(--fs-lg);
	}

	.stone-hero__actions {
		gap: 0.65rem;
		margin-top: 1rem;
	}

	.stone-hero__footer {
		bottom: 0.65rem;
		grid-template-rows: auto auto;
		gap: 0.5rem;
		height: auto;
	}

	.stone-hero__indicators {
		gap: 0.3rem;
		max-width: none;
	}

	.stone-hero__indicators a {
		padding-top: 0.45rem;
		font-size: var(--fs-xs);
		overflow-wrap: anywhere;
	}

	.stone-hero__progress {
		margin-top: 0.3rem;
	}

	.stone-hero__trust {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		flex-wrap: wrap;
		gap: 0.25rem 0.7rem;
		padding-top: 0.55rem;
		font-size: var(--fs-xs);
		height: auto;
		max-width: none;
		overflow: visible;
	}

	.stone-hero__trust li {
		white-space: normal;
	}
}
