.our-story-lines path {
	fill: none;
	stroke-linecap: square;
	stroke-linejoin: miter;
	stroke-width: 6;
}

/* Timeline chapter: year card, main image, copy and an optional extra image.
   Mobile and md use aspect-ratio images; lg+ stretches the image to the copy. */
.our-story-chapter__media {
	position: relative;
}

.our-story-chapter__event {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background-color: var(--accent, var(--color-green));
}

.our-story-chapter__note {
	font-family: var(--font-sans);
	font-weight: 300;
	letter-spacing: var(--tracking-copy);
	font-size: 20px;
	line-height: 1.35;
	max-width: 220px;
}

.our-story-chapter__image,
.our-story-chapter__extra {
	position: relative;
	z-index: 1;
	overflow: hidden;
}

.our-story-chapter__body.prose .intro,
.our-story-chapter__body.prose > p:first-child {
	font-family: var(--font-serif);
	font-weight: 400;
	letter-spacing: -0.02em;
	font-size: 32px;
	line-height: 36px;
}

.our-story-finale__copy.prose,
.our-story-finale__copy.prose p:not(.subheading):not(.intro):not(.into-line) {
	font-family: var(--font-serif);
	font-weight: 350;
	letter-spacing: var(--tracking-heading);
	text-wrap: pretty;
	font-size: 28px;
	line-height: 1.1;
	text-align: center;
}

.our-story-quote__stripes {
	top: auto;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 101px;
	mask-image: linear-gradient(
		to top,
		#000 0 37px,
		transparent 37px 46.38px,
		#000 46.38px 64.59px,
		transparent 64.59px 73.69px,
		#000 73.69px 85.83px,
		transparent 85.83px 94.93px,
		#000 94.93px 101px,
		transparent 101px 100%
	);
	mask-repeat: no-repeat;
	mask-size: 100% 100%;
	-webkit-mask-image: linear-gradient(
		to top,
		#000 0 37px,
		transparent 37px 46.38px,
		#000 46.38px 64.59px,
		transparent 64.59px 73.69px,
		#000 73.69px 85.83px,
		transparent 85.83px 94.93px,
		#000 94.93px 101px,
		transparent 101px 100%
	);
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;
}

/* lg+: image and copy side by side. Image height follows the copy column,
   with a floor so a short chapter still gets a tall photo. */
@media (width >= 1024px) {
	.our-story-chapter {
		--os-indent: 7.85vw;
		--os-hang: 4cqw;
		--os-image: 50cqw;
		--os-image-min: clamp(460px, 44vw, 680px);
	}

	.our-story-chapter[data-size="small"] {
		--os-image: 34.5cqw;
		--os-image-min: clamp(420px, 39vw, 563px);
	}

	.our-story-chapter__box {
		container-type: inline-size;
		display: flex;
		align-items: stretch;
		width: calc(100% - var(--os-indent));
	}

	.our-story-chapter[data-wrap="left"] .our-story-chapter__box {
		margin-left: auto;
	}

	.our-story-chapter[data-wrap="right"] .our-story-chapter__box {
		flex-direction: row-reverse;
		margin-right: auto;
	}

	.our-story-chapter__media {
		display: flex;
		flex: 0 0 auto;
		flex-direction: column;
		width: calc(var(--os-image) + var(--os-hang));
	}

	.our-story-chapter[data-card="left"] .our-story-chapter__media {
		padding-left: var(--os-hang);
	}

	.our-story-chapter[data-card="right"] .our-story-chapter__media {
		padding-right: var(--os-hang);
	}

	.our-story-chapter__image {
		flex: 1 1 auto;
		width: 100%;
		min-height: var(--os-image-min);
	}

	.our-story-chapter__media:has(.our-story-chapter__image) .our-story-chapter__event {
		position: absolute;
		top: 0;
	}

	.our-story-chapter[data-card="left"] .our-story-chapter__event {
		left: 0;
	}

	.our-story-chapter[data-card="right"] .our-story-chapter__event {
		right: 0;
	}

	.our-story-chapter__event {
		width: clamp(240px, 25.5cqw, 300px);
		padding: 31px 40px 34px;
	}

	.our-story-chapter__copy {
		display: flex;
		flex: 0 0 auto;
		flex-direction: column;
		gap: clamp(40px, 7cqw, 100px);
		width: 40cqw;
		max-width: 508px;
	}

	.our-story-chapter[data-wrap="left"] .our-story-chapter__copy {
		margin-left: 6cqw;
	}

	.our-story-chapter[data-wrap="right"] .our-story-chapter__copy {
		margin-right: 6cqw;
	}

	.our-story-chapter[data-align="top"] .our-story-chapter__copy {
		justify-content: flex-start;
		padding-top: 32px;
	}

	.our-story-chapter[data-align="bottom"] .our-story-chapter__copy {
		justify-content: flex-end;
		padding-bottom: 8px;
	}

	.our-story-chapter[data-align="bottom"] .our-story-chapter__extra--top {
		margin-bottom: auto;
	}

	.our-story-chapter__extra--top {
		width: min(217px, 18.5cqw);
		aspect-ratio: 217 / 335;
	}

	.our-story-chapter__extra--bottom {
		width: min(300px, 25.5cqw);
		aspect-ratio: 300 / 434;
		margin-left: auto;
	}

	.our-story-chapter__body.prose .intro,
	.our-story-chapter__body.prose > p:first-child {
		font-size: clamp(26px, 2.22vw, 32px);
		line-height: 1.125;
	}

	.our-story-chapter__body.prose p:not(.subheading):not(.intro):not(.into-line):not(:first-child) {
		font-size: 22px;
		line-height: 1.3;
		letter-spacing: -0.02em;
	}

	.our-story-finale__copy.prose,
	.our-story-finale__copy.prose p:not(.subheading):not(.intro):not(.into-line) {
		font-size: 46px;
	}

	.our-story-banner__scroll {
		bottom: 90px;
	}

	.our-story-quote__stripes {
		top: 0;
		right: auto;
		width: 109px;
		height: auto;
		mask-image: linear-gradient(
			to right,
			#000 0 45px,
			transparent 45px 54.38px,
			#000 54.38px 72.59px,
			transparent 72.59px 81.69px,
			#000 81.69px 93.83px,
			transparent 93.83px 102.93px,
			#000 102.93px 109px,
			transparent 109px 100%
		);
		-webkit-mask-image: linear-gradient(
			to right,
			#000 0 45px,
			transparent 45px 54.38px,
			#000 54.38px 72.59px,
			transparent 72.59px 81.69px,
			#000 81.69px 93.83px,
			transparent 93.83px 102.93px,
			#000 102.93px 109px,
			transparent 109px 100%
		);
	}
}

/* xl and up. md through lg keep the 4cqw hang. */
@media (width >= 1280px) {
	.our-story-chapter {
		--os-hang: 7cqw;
	}
}

/* 2xl and up: hold the fluid max. Letterbox below still sets 20px. */
@media (min-width: 1536px) {
	.our-story-banner__intro {
		font-size: 26px;
	}
}

/* Letterbox: wide and no taller than 750px. */
@media (max-height: 750px) and (min-width: 900px) {
	.our-story-banner__intro {
		font-size: 20px;
	}
}

.our-story-banner__photo--row {
	bottom: 6%;
}

@media (max-width: 1023px) {
	.our-story-lines path {
		stroke-width: 2;
	}

	.our-story-banner {
		min-height: 0;
		padding-top: 349px;
		overflow-x: clip;
	}

	.our-story-banner > .container {
		min-height: 0;
		align-items: flex-start;
		justify-content: flex-start;
	}

	.our-story-banner__photo--a,
	.our-story-banner__photo--b {
		bottom: auto;
		height: auto;
	}

	.our-story-banner__photo--a {
		top: 116px;
		left: 0;
		right: auto;
		width: 190px;
		aspect-ratio: 190 / 191;
	}

	.our-story-banner__photo--b {
		top: 49px;
		right: -18px;
		left: auto;
		width: 161px;
		aspect-ratio: 161 / 258;
	}

	.our-story-banner__copy {
		padding-top: 0;
		padding-bottom: 0;
		text-align: left;
	}

	.our-story-banner__title {
		font-size: min(58px, 15vw);
		line-height: 1;
		letter-spacing: -0.04em;
	}

	.our-story-banner__intro {
		width: 100%;
		max-width: none;
		line-height: 1.2;
		text-align: left;
	}

	.our-story-banner__scroll {
		position: static;
		left: auto;
		bottom: auto;
		display: inline-block;
		margin-top: 36px;
		margin-left: 27px;
		transform: none;
		font-family: var(--font-serif);
		font-size: 18px;
		line-height: 18px;
		letter-spacing: -0.02em;
	}

	.our-story-timeline {
		padding-top: 28px;
	}

	.our-story-chapter__body.prose p {
		font-family: var(--font-sans);
		font-weight: 300;
		font-size: 20px;
		line-height: 1.2;
		letter-spacing: -0.02em;
	}

	.our-story-chapter__body.prose .intro,
	.our-story-chapter__body.prose > p:first-child {
		font-family: var(--font-serif);
		font-weight: 400;
		font-size: 22px;
		line-height: 1.1;
		letter-spacing: -0.06em;
	}

	.our-story-finale {
		margin-top: 120px;
	}

	.our-story-finale__year {
		font-size: 52px;
		line-height: 1;
	}

	.our-story-finale__copy.prose,
	.our-story-finale__copy.prose p:not(.subheading):not(.intro):not(.into-line) {
		font-size: 22px;
		line-height: 1.1;
		letter-spacing: -0.06em;
	}

	.our-story-quote > .container {
		width: 100%;
		max-width: none;
		padding-inline: 0;
	}

	.our-story-quote__panel {
		width: 100%;
	}

	.our-story-quote__media {
		order: -1;
		width: 100%;
		max-width: none;
		min-height: 405px;
		aspect-ratio: 375 / 405;
	}

	/* Imagify moves fill-image onto <picture>. Safari then sizes the grid item
	   from the aspect ratio (~375px) instead of stretching it to the screen. */
	.our-story-quote__media picture,
	.our-story-quote__media img {
		position: absolute;
		inset: 0;
		display: block;
		width: 100%;
		max-width: none;
		height: 100%;
		object-fit: cover;
	}

	.our-story-quote__copy {
		padding: 8px 34px 48px;
	}

	.our-story-quote__copy .intro {
		font-size: 28px;
		line-height: 1.1;
		letter-spacing: -0.06em;
	}
}

/* md: centred hero with scattered photos, then stacked chapters. Each box is
   640px (600px image + 40px card hang) and sits 31px off the line bundle. */
@media (width >= 768px) and (width < 1024px) {
	.our-story-lines path {
		stroke-width: 5;
	}

	.our-story-banner {
		padding-top: 360px;
	}

	.our-story-banner__copy {
		text-align: center;
	}

	.our-story-banner__title {
		font-size: 92px;
		line-height: 0.92;
		letter-spacing: -0.06em;
	}

	.our-story-banner__intro {
		max-width: 484px;
		margin-top: 26px;
		margin-inline: auto;
		font-size: 20px;
		line-height: 1.3;
		text-align: center;
		text-wrap: wrap;
	}

	.our-story-banner__scroll {
		display: table;
		margin: 118px auto 0;
		translate: none;
		font-family: var(--font-sans);
	}

	.our-story-banner__photo--a {
		top: 126px;
		left: 60px;
		width: 196px;
		aspect-ratio: 196 / 135;
	}

	.our-story-banner__photo--b {
		top: 0;
		right: 100px;
		width: 218px;
		aspect-ratio: 218 / 282;
	}

	.our-story-banner__photo--row {
		display: block;
		bottom: auto;
	}

	.our-story-banner__photo--row:nth-child(3) {
		top: 449px;
		left: -20px;
		width: 126px;
		aspect-ratio: 126 / 186;
	}

	.our-story-banner__photo--row:nth-child(4) {
		top: 756px;
		left: 61px;
		width: 190px;
		aspect-ratio: 190 / 131;
	}

	.our-story-banner__photo--row:nth-child(5) {
		top: 683px;
		right: -77px;
		left: auto;
		width: 322px;
		aspect-ratio: 322 / 204;
	}

	.our-story-timeline {
		padding-top: 265px;
	}

	.our-story-chapter > .container {
		padding-inline: 60px;
	}

	.our-story-chapter[data-index]:not([data-index="0"]) {
		margin-top: 104px;
	}

	.our-story-chapter__box {
		container-type: inline-size;
		width: calc(100% - 60px);
	}

	.our-story-chapter[data-wrap="left"] .our-story-chapter__box {
		margin-left: auto;
	}

	.our-story-chapter[data-wrap="right"] .our-story-chapter__box {
		margin-right: auto;
	}

	.our-story-chapter__media:has(.our-story-chapter__image) {
		padding-top: 40px;
	}

	.our-story-chapter[data-wrap="left"] :is(.our-story-chapter__media, .our-story-chapter__copy) {
		padding-left: 40px;
	}

	.our-story-chapter[data-card-md="right"] .our-story-chapter__media {
		padding-right: 40px;
	}

	.our-story-chapter__image {
		width: 100%;
		height: calc((100cqw - 40px) * 359 / 600);
	}

	.our-story-chapter__media:has(.our-story-chapter__image) .our-story-chapter__event {
		position: absolute;
		top: 0;
	}

	.our-story-chapter[data-card-md="left"] .our-story-chapter__event {
		left: 0;
	}

	.our-story-chapter[data-card-md="right"] .our-story-chapter__event {
		right: 0;
	}

	.our-story-chapter__event {
		width: 280px;
		padding: 31px 40px 34px;
	}

	.our-story-chapter__year {
		font-size: 52px;
		line-height: 1.1;
	}

	.our-story-chapter__note {
		font-size: 18px;
	}

	.our-story-chapter__copy {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		column-gap: 76px;
		align-items: start;
		margin-top: 42px;
	}

	.our-story-chapter__copy:has(.our-story-chapter__extra) {
		grid-template-columns: minmax(0, 1fr) 137px;
	}

	.our-story-chapter__body {
		grid-row: 1;
		grid-column: 1;
		max-width: none;
	}

	.our-story-chapter__extra {
		grid-row: 1;
		grid-column: 2;
		width: 137px;
		aspect-ratio: 137 / 212;
	}

	.our-story-chapter__body.prose .intro,
	.our-story-chapter__body.prose > p:first-child {
		font-size: 26px;
		line-height: 32px;
		letter-spacing: -0.02em;
	}

	.our-story-chapter__body.prose p:not(.subheading):not(.intro):not(.into-line):not(:first-child) {
		font-size: 22px;
		line-height: 1.3;
	}

	.our-story-finale {
		margin-top: 232px;
	}

	.our-story-finale__year {
		font-size: 82px;
		line-height: 72px;
	}

	.our-story-finale__copy {
		margin-top: 16px;
	}

	.our-story-finale__copy.prose,
	.our-story-finale__copy.prose p:not(.subheading):not(.intro):not(.into-line) {
		max-width: 619px;
		margin-inline: auto;
		font-weight: 400;
		font-size: 26px;
		line-height: 32px;
		letter-spacing: -0.02em;
	}
}

/* Mobile: card above the image, both bleeding to the screen edge on the
   side away from the line. */
@media (max-width: 767px) {
	.our-story-chapter {
		--os-card: calc(100% - 52px);
	}

	.our-story-chapter__media {
		width: 100%;
		min-width: 0;
	}

	.our-story-chapter__event {
		width: var(--os-card);
		min-height: 161px;
		padding: 25px 30px 28px;
	}

	.our-story-chapter__year {
		font-size: 32px;
		line-height: 36px;
	}

	.our-story-chapter__note {
		font-size: 18px;
		line-height: 1.2;
	}

	.our-story-chapter__image {
		margin-top: -80px;
		aspect-ratio: 288 / 299;
	}

	.our-story-chapter[data-wrap="left"] .our-story-chapter__event {
		margin-left: auto;
	}

	.our-story-chapter[data-wrap="left"] .our-story-chapter__image {
		width: calc(var(--os-card) + (100vw - 100%) / 2);
		margin-left: auto;
		margin-right: calc((100% - 100vw) / 2);
	}

	.our-story-chapter[data-wrap="right"] .our-story-chapter__event,
	.our-story-chapter[data-wrap="right"] .our-story-chapter__image {
		margin-left: calc((100% - 100vw) / 2);
	}

	.our-story-chapter[data-wrap="right"] .our-story-chapter__event {
		width: calc(var(--os-card) + (100vw - 100%) / 2 - 35px);
	}

	.our-story-chapter[data-wrap="right"] .our-story-chapter__image {
		width: calc(var(--os-card) + (100vw - 100%) / 2);
	}

	.our-story-chapter__copy {
		width: var(--os-card);
		margin-top: 32px;
	}

	.our-story-chapter[data-wrap="left"] .our-story-chapter__copy {
		margin-left: auto;
	}

	.our-story-chapter__extra {
		display: none;
	}
}

@media (width >= 640px) and (width < 768px) {
	.our-story-chapter__image {
		aspect-ratio: 4 / 3;
	}
}

[data-name="where-next"].where-next--flush-top {
	padding-top: 0;
}

@keyframes our-story-photo-in {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.our-story-banner__photo {
		animation: our-story-photo-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
		animation-delay: 0.15s;
	}

	.our-story-banner__photo:nth-child(2) {
		animation-delay: 0.3s;
	}

	.our-story-banner__photo:nth-child(3) {
		animation-delay: 0.45s;
	}

	.our-story-banner__photo:nth-child(4) {
		animation-delay: 0.6s;
	}

	.our-story-banner__photo:nth-child(5) {
		animation-delay: 0.75s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.our-story-lines path {
		stroke-dasharray: none !important;
		stroke-dashoffset: 0 !important;
	}
}
