/* Sticky anniversary story: generated campaign art + four accessible poster cards. */
.ten-years {
	height: 190vh;
	background: var(--paper);
}

.ten-years-sticky {
	position: sticky;
	top: 0;
	height: 100svh;
	min-height: 600px;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
	align-items: center;
	gap: clamp(28px, 4vw, 72px);
	padding: clamp(58px, 6vw, 92px) clamp(34px, 5vw, 82px) clamp(34px, 4vw, 64px);
	background:
		linear-gradient(112deg, rgba(255, 210, 27, .96) 0 44%, rgba(255, 210, 27, 0) 44.2%),
		linear-gradient(90deg, #ece6d8, #f6f1e7);
	isolation: isolate;
}

.ten-years-sticky::before {
	content: '';
	position: absolute;
	z-index: -1;
	inset: 0;
	opacity: .18;
	pointer-events: none;
	background-image:
		repeating-radial-gradient(circle at 23% 52%, rgba(0, 91, 53, .3) 0 1px, transparent 1px 5px),
		repeating-linear-gradient(120deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 8px);
	mask-image: linear-gradient(90deg, #000 0 52%, transparent 76%);
}

.ten-kicker {
	position: absolute;
	z-index: 5;
	left: clamp(30px, 4vw, 68px);
	top: clamp(24px, 3vw, 46px);
	margin: 0;
	font: 600 11px 'DM Mono', monospace;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #004f2e;
}

.ten-art {
	position: relative;
	z-index: 2;
	justify-self: center;
	width: min(47vw, 720px);
	filter: drop-shadow(18px 24px 20px rgba(0, 0, 0, .18));
	animation: ten-art-float 10s ease-in-out infinite alternate;
}

.ten-art::before {
	content: '';
	position: absolute;
	z-index: -1;
	left: 4%;
	right: 3%;
	bottom: 2%;
	height: 20%;
	background: rgba(0, 76, 43, .28);
	filter: blur(28px);
	border-radius: 50%;
}

.ten-art img {
	display: block;
	width: 100%;
	height: auto;
}

.ten-art-note {
	position: absolute;
	right: -2%;
	bottom: 7%;
	padding: .42em .55em;
	background: #0a0a09;
	color: var(--yellow);
	box-shadow: 8px 9px 0 rgba(0, 91, 53, .75);
	font: 700 clamp(.95rem, 1.35vw, 1.35rem)/.92 var(--display);
	transform: rotate(-5deg);
}

.ten-stage {
	position: relative;
	z-index: 3;
	width: min(100%, 650px);
	height: min(71vh, 680px);
	min-height: 490px;
	justify-self: center;
}

.ten-progress {
	position: absolute;
	z-index: 8;
	top: -34px;
	right: 0;
	display: flex;
	gap: 7px;
	font: 700 12px 'DM Mono', monospace;
	letter-spacing: .12em;
	color: var(--green);
}

.ten-progress-current {
	color: #111;
}

.ten-progress-dots {
	position: absolute;
	z-index: 8;
	left: -28px;
	top: 50%;
	display: grid;
	gap: 10px;
	transform: translateY(-50%);
}

.ten-progress-dots i {
	display: block;
	width: 8px;
	height: 8px;
	border: 1px solid var(--green);
	background: transparent;
	transform: rotate(45deg);
	transition: background .65s ease, transform .65s ease;
}

.ten-progress-dots i.is-active {
	background: var(--yellow);
	transform: rotate(45deg) scale(1.45);
}

.ten-lines {
	position: absolute;
	inset: 0;
	left: 0;
	right: 0;
	width: 100%;
	max-width: none;
	padding: 0;
}

.ten-lines::before,
.ten-lines p::before,
.ten-lines p::after {
	content: none !important;
	display: none !important;
}

.ten-lines p {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	margin: 0;
	overflow: hidden;
	background: #0b1711;
	border: 10px solid #f6f1e7;
	box-shadow: 18px 20px 0 var(--yellow), 30px 34px 0 rgba(0, 91, 53, .14);
	opacity: 0;
	visibility: hidden;
	clip-path: inset(8% 0 8% 0);
	transform: translateY(24px) rotate(1deg);
	transition: opacity .8s ease, transform .95s cubic-bezier(.2, .7, .2, 1), clip-path .95s ease, visibility 0s linear .95s;
}

.ten-lines p:nth-child(even) {
	transform: translateY(24px) rotate(-1.2deg);
}

.ten-lines p.is-active {
	display: grid;
	opacity: 1;
	visibility: visible;
	clip-path: inset(0);
	transform: translateY(0) rotate(-1deg);
	transition-delay: 0s;
}

.ten-lines p:nth-child(even).is-active {
	transform: translateY(0) rotate(.8deg);
}

.ten-card-media {
	display: block;
	min-height: 0;
	background-image: url("../../images/ten-years/story-cards.jpg");
	background-repeat: no-repeat;
	background-size: 200% 200%;
}

.ten-card-media--prices { background-position: 0 0; }
.ten-card-media--food { background-position: 100% 0; }
.ten-card-media--basket { background-position: 0 100%; }
.ten-card-media--idea { background-position: 100% 100%; }

.ten-card-copy {
	position: relative;
	display: block;
	min-height: 180px;
	padding: clamp(24px, 3vw, 42px);
	background: var(--green);
	color: #fff;
}

.ten-card-copy::after {
	content: '';
	display: block;
	width: 38%;
	height: 6px;
	margin-top: 22px;
	background: var(--yellow);
	transform: rotate(-2deg);
}

.ten-card-copy small {
	display: block;
	margin-bottom: 15px;
	font: 600 10px 'DM Mono', monospace;
	letter-spacing: .12em;
	color: var(--yellow);
}

.ten-card-copy strong {
	display: block;
	max-width: 520px;
	font: 700 clamp(2rem, 3.3vw, 4.2rem)/.9 var(--display);
	letter-spacing: -.075em;
}

@keyframes ten-art-float {
	from { transform: translate3d(0, -5px, 0) rotate(-1deg); }
	to { transform: translate3d(0, 10px, 0) rotate(1deg); }
}

@media (max-width: 1100px) and (min-width: 761px) {
	.ten-years-sticky {
		grid-template-columns: minmax(0, .92fr) minmax(400px, 1.08fr);
		gap: 20px;
	}

	.ten-art { width: 46vw; }
	.ten-stage { height: min(68vh, 620px); }
	.ten-card-copy { min-height: 160px; }
	.ten-card-copy strong { font-size: clamp(2rem, 3.7vw, 3.2rem); }
}

@media (max-height: 690px) and (min-width: 761px) {
	.ten-years-sticky {
		min-height: 570px;
		padding-top: 64px;
		padding-bottom: 26px;
	}

	.ten-art { width: min(43vw, 560px); }
	.ten-stage { height: 500px; min-height: 0; }
	.ten-card-copy { min-height: 145px; padding: 22px 28px; }
	.ten-card-copy strong { font-size: clamp(2rem, 3vw, 2.8rem); }
}

@media (max-width: 760px) {
	.ten-years {
		height: auto;
		background: #f1ede4;
	}

	.ten-years-sticky {
		position: relative;
		top: auto;
		height: auto;
		min-height: 0;
		display: block;
		padding: 78px 18px 74px;
		background:
			linear-gradient(155deg, rgba(255, 210, 27, .96) 0 25%, transparent 25.3%),
			#f1ede4;
	}

	.ten-kicker { left: 20px; top: 28px; }
	.ten-art { width: min(102%, 520px); margin: 0 auto 48px; }
	.ten-art-note { right: 2%; bottom: 5%; font-size: .88rem; }

	.ten-stage {
		width: 100%;
		height: auto;
		min-height: 0;
	}

	.ten-progress,
	.ten-progress-dots { display: none; }

	.ten-lines {
		position: relative;
		inset: auto;
		display: grid;
		gap: 36px;
	}

	.ten-lines p,
	.ten-lines p:nth-child(even),
	.ten-lines p.is-active,
	.ten-lines p:nth-child(even).is-active {
		position: relative;
		inset: auto;
		display: grid;
		grid-template-rows: auto auto;
		opacity: 1;
		visibility: visible;
		clip-path: none;
		transform: rotate(-1deg);
		transition: none;
		border-width: 7px;
		box-shadow: 10px 12px 0 var(--yellow), 17px 20px 0 rgba(0, 91, 53, .12);
	}

	.ten-lines p:nth-child(even),
	.ten-lines p:nth-child(even).is-active { transform: rotate(1deg); }

	.ten-card-media { aspect-ratio: 1.16; }
	.ten-card-copy { min-height: 0; padding: 24px 20px 28px; }
	.ten-card-copy strong { font-size: clamp(2rem, 9vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
	.ten-art { animation: none; }
	.ten-lines p { transition: none; }
}
