/* Our Story page. Ported from the prototype's /our-story. */
.story-panel :is(h1, p),
.story-value-text :is(h2, p),
.story-began :is(h2, p),
.story-dev :is(h2, p) {
	margin: 0;
}

.story-intro {
	position: relative;
}

.story-hero,
.hero.story-hero {
	height: 100svh;
	min-height: 560px;
	position: sticky;
	top: 0;
}

.story-hero-media {
	aspect-ratio: auto;
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
}

.story-hero .shade,
.story-value .shade.is-20 {
	background: var(--color-shade-20);
}

.story-value .shade.is-25 {
	background: var(--color-cta-shade);
}

.story-value .shade.is-30 {
	background: var(--color-shade-30);
}

.story-panel {
	z-index: 1;
	min-height: 100svh;
	padding: 120px var(--spacing-page);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	background: var(--color-story-panel);
	place-items: center;
	display: grid;
	position: relative;
}

.story-panel-inner {
	text-align: center;
	flex-direction: column;
	align-items: center;
	gap: 64px;
	display: flex;
}

.story-panel h1.eyebrow {
	color: var(--color-muted);
}

.story-panel-copy {
	width: 336px;
	max-width: 100%;
	color: var(--color-ink);
	flex-direction: column;
	gap: 19.6px;
	display: flex;
}

.story-values {
	--step: 70svh;
	display: block;
	height: calc(100svh + var(--count) * var(--step));
	background: var(--color-hero);
	position: relative;
}

.story-values-pin {
	color: var(--color-white);
	isolation: isolate;
	height: 100svh;
	min-height: 560px;
	position: sticky;
	top: 0;
	overflow: hidden;
}

.story-value {
	z-index: 1;
	opacity: 0;
	transition: opacity 0s linear .9s;
	position: absolute;
	inset: 0;
}

.story-value.is-active {
	z-index: 2;
	opacity: 1;
	transition: opacity .9s var(--ease-image);
}

.story-value-media {
	position: absolute;
	inset: 0;
}

.story-value:nth-child(1) .cover {
	object-position: 50% 18%;
}

.story-value:nth-child(2) .cover {
	object-position: 50% 42%;
}

.story-value:nth-child(4) .cover {
	object-position: 50% 57%;
}

.story-value:nth-child(5) .cover {
	object-position: 50% 53%;
}

.story-value:nth-child(6) .cover {
	object-position: 50% 54%;
}

.story-value-text {
	width: 406px;
	max-width: calc(100% - 2 * var(--spacing-page));
	flex-direction: column;
	gap: 32px;
	display: flex;
	position: absolute;
	top: 50%;
	left: 48px;
	transform: translateY(-50%);
}

.story-value-text p {
	max-width: 352px;
}

.story-values-bar {
	z-index: 3;
	left: var(--spacing-page);
	right: var(--spacing-page);
	gap: 16px;
	display: flex;
	position: absolute;
	bottom: 46px;
}

.story-values-bar span {
	background: var(--color-values-track);
	flex: 1 1 0;
	height: 1px;
	position: relative;
	overflow: hidden;
}

.story-values-bar span::after {
	content: "";
	transform: scaleX(var(--fill, 0));
	transform-origin: 0;
	background: var(--color-white);
	position: absolute;
	inset: 0;
}

.story-began {
	display: block;
	padding: 150px var(--spacing-page);
	background: var(--color-white);
}

.story-began-row {
	justify-content: space-between;
	align-items: flex-start;
	display: flex;
}

.story-began-big {
	aspect-ratio: 574 / 687;
	width: 41.715%;
}

.story-began-text {
	flex-direction: column;
	gap: 40px;
	width: 58.285%;
	padding: 48px 0 0 12.1%;
	display: flex;
}

.story-began-text .sec-head {
	max-width: 592px;
}

.story-began-text > p {
	max-width: 468px;
}

.story-began-small {
	aspect-ratio: 376 / 441;
	width: 27.326%;
	margin: -13.154% 0 0 67.733%;
}

.story-began-small .cover {
	object-position: 31% 50%;
}

.story-dev {
	background: var(--color-cream);
	height: 815px;
	flex-direction: row;
	align-items: normal;
	display: flex;
}

.story-dev-img {
	flex-shrink: 0;
	width: 50%;
}

.story-dev-img .cover {
	object-position: 50% 78%;
}

.story-dev-body {
	min-width: 0;
	padding: 48px var(--spacing-page) 48px 48px;
	flex-direction: column;
	flex: 1 1 0;
	justify-content: space-between;
	gap: 48px;
	display: flex;
}

.story-dev-text {
	flex-direction: column;
	align-items: flex-start;
	gap: 56px;
	display: flex;
}

.story-dev-copy {
	flex-direction: column;
	gap: 24px;
	display: flex;
}

.story-dev-copy p {
	max-width: 458px;
}

.story-faq h2 {
	max-width: none;
}

.story-faq .faq-a {
	max-width: 599px;
}

.story-cta {
	display: block;
}

.story-cta .media-box {
	left: -.2778%;
	top: -16.1963%;
	width: 100.5556%;
	height: 118.5276%;
}

.story-cta .t72.cta-title {
	max-width: 666px;
}

@media (width>=1280px) {
	.story-faq {
		padding: 200px var(--spacing-page);
	}
}

@media (width<=1279px) {
	.story-began {
		padding: 120px var(--spacing-page);
	}

	.story-began-text {
		padding-left: 6%;
	}

	.story-began-small {
		width: 40%;
		margin: 64px 0 0 auto;
	}

	.story-dev {
		height: auto;
		min-height: 680px;
	}

	.story-cta .t72.cta-title {
		max-width: 440px;
	}
}

@media (width<=767px) {
	.story-panel {
		padding: 96px var(--spacing-page);
	}

	.story-panel-inner {
		gap: 40px;
	}

	.story-values {
		--step: 60svh;
	}

	.story-value-text {
		left: var(--spacing-page);
		gap: 24px;
	}

	.story-values-bar {
		gap: 8px;
		bottom: 32px;
	}

	.story-began {
		padding: 72px var(--spacing-page) 96px;
	}

	.story-began-row {
		flex-direction: column;
		gap: 40px;
	}

	.story-began-big {
		width: 100%;
	}

	.story-began-text {
		gap: 24px;
		width: 100%;
		padding: 0;
	}

	.story-began-small {
		width: 60%;
		margin-top: 40px;
	}

	.story-dev {
		flex-direction: column;
		min-height: 0;
	}

	.story-dev-img {
		aspect-ratio: 350 / 420;
		width: 100%;
	}

	.story-dev-body {
		padding: 48px var(--spacing-page) 64px;
		gap: 56px;
	}

	.story-dev-text {
		gap: 40px;
	}

	.story-cta .t72.cta-title {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.story-value,
	.story-value.is-active {
		transition: none;
	}
}
