.irp-case-study {
	--irp-cs-background: var(--background, var(--id-background, #fbf7f0));
	--irp-cs-foreground: var(--foreground, var(--id-foreground, #2d2733));
	--irp-cs-muted: var(--muted-foreground, var(--id-muted-foreground, #554a44));
	--irp-cs-primary: var(--primary, var(--id-primary, #9f4d3e));
	--irp-cs-primary-foreground: var(--primary-foreground, #fffaf3);
	--irp-cs-accent: var(--accent, var(--id-accent, #d19a58));
	--irp-cs-signature: var(--signature, #9b2a2a);
	--irp-cs-green: var(--heritage-green, #0d530e);
	--irp-cs-border: var(--border, var(--id-border, #ddd1bc));
	--irp-cs-radius: clamp(1.6rem, 2.5vw, 2rem);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 100vh;
	padding: clamp(8.5rem, 10vw, 10rem) clamp(1rem, 3vw, 2rem) clamp(4.5rem, 8vw, 7rem);
	background:
		linear-gradient(rgb(159 77 62 / 3%) 1px, transparent 1px),
		linear-gradient(90deg, rgb(159 77 62 / 3%) 1px, transparent 1px),
		var(--irp-cs-background);
	background-size: 4.5rem 4.5rem, 4.5rem 4.5rem, auto;
	color: var(--irp-cs-foreground);
	font-family: inherit;
}

.irp-case-study *,
.irp-case-study *::before,
.irp-case-study *::after {
	box-sizing: border-box;
}

.irp-case-study__ambient {
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		radial-gradient(circle at 86% 6%, rgb(209 154 88 / 18%), transparent 24rem),
		radial-gradient(circle at 8% 12%, rgb(65 135 146 / 12%), transparent 27rem),
		radial-gradient(circle at 50% 46%, rgb(109 90 168 / 7%), transparent 34rem),
		linear-gradient(180deg, rgb(255 255 255 / 84%), transparent 38rem);
	pointer-events: none;
}

.irp-case-study__shell {
	width: min(80rem, 100%);
	margin-inline: auto;
}

.irp-case-study__hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(20rem, .88fr);
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: var(--irp-cs-radius);
	background:
		radial-gradient(circle at 86% 12%, rgb(209 154 88 / 10%), transparent 22rem) padding-box,
		radial-gradient(circle at 8% 90%, rgb(109 90 168 / 8%), transparent 22rem) padding-box,
		linear-gradient(125deg, rgb(255 255 255 / 94%), rgb(255 250 243 / 86%)) padding-box,
		linear-gradient(
			118deg,
			rgb(77 150 118 / 86%),
			rgb(209 154 88 / 92%) 42%,
			rgb(190 100 76 / 90%) 72%,
			rgb(39 103 200 / 78%)
		) border-box;
	box-shadow:
		inset 0 0 0 1px rgb(255 255 255 / 76%),
		0 30px 68px -52px rgb(73 60 66 / 50%),
		0 0 30px -24px rgb(77 150 118 / 42%);
	-webkit-backdrop-filter: saturate(145%) blur(20px);
	backdrop-filter: saturate(145%) blur(20px);
}

.irp-case-study__hero::after {
	display: none;
	content: none;
}

.irp-case-study__hero-copy {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.65rem, 3.4vw, 3rem);
}

.irp-case-study__eyebrow,
.irp-case-study__section-head > span {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	align-self: flex-start;
	gap: .48rem;
	border: 1px solid rgb(159 77 62 / 15%);
	border-radius: 999px;
	padding: .42rem .78rem;
	background: linear-gradient(135deg, rgb(255 255 255 / 88%), rgb(255 248 241 / 74%));
	color: var(--irp-cs-primary);
	font-size: .75rem;
	font-weight: 800;
	line-height: 1.55;
	box-shadow:
		0 14px 32px -28px rgb(91 60 50 / 50%),
		inset 0 1px 0 rgb(255 255 255 / 88%);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.irp-case-study__eyebrow::before,
.irp-case-study__section-head > span::before {
	width: .45rem;
	height: .45rem;
	flex: 0 0 .45rem;
	border: 2px solid rgb(255 255 255 / 92%);
	border-radius: 50%;
	background: var(--irp-cs-primary);
	box-shadow: 0 0 0 3px rgb(209 154 88 / 15%);
	content: "";
}

.irp-case-study h1 {
	max-width: none;
	margin: .85rem 0 0;
	color: var(--irp-cs-foreground);
	font-size: clamp(1.9rem, 3.45vw, 3.35rem);
	font-weight: 950;
	letter-spacing: -.045em;
	line-height: 1.18;
	text-wrap: balance;
}

.irp-case-study h1::after {
	display: block;
	width: clamp(5.75rem, 10vw, 8.5rem);
	height: .34rem;
	border-radius: 999px;
	margin-top: .8rem;
	background: linear-gradient(
		90deg,
		var(--irp-cs-green),
		var(--irp-cs-accent) 58%,
		var(--irp-cs-signature)
	);
	box-shadow: 0 8px 18px -10px rgb(159 77 62 / 54%);
	content: "";
}

.irp-case-study__lead {
	max-width: 39rem;
	margin: 1rem 0 0;
	color: var(--irp-cs-muted);
	font-size: clamp(.95rem, 1.35vw, 1.08rem);
	font-weight: 500;
	line-height: 1.9;
	text-wrap: pretty;
}

.irp-case-study__meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .65rem;
	margin-top: 1.15rem;
}

.irp-case-study__meta > div {
	display: grid;
	gap: .3rem;
	min-width: 0;
	border: 1px solid rgb(221 209 188 / 62%);
	border-radius: 1rem;
	padding: .62rem .75rem;
	background: rgb(255 255 255 / 58%);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 88%);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.irp-case-study__meta small {
	color: var(--irp-cs-muted);
	font-size: .68rem;
	font-weight: 600;
}

.irp-case-study__meta strong {
	overflow: hidden;
	color: var(--irp-cs-foreground);
	font-size: .82rem;
	font-weight: 850;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.irp-case-study__chips {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin-top: .8rem;
}

.irp-case-study__chips span {
	border: 1px solid rgb(159 77 62 / 9%);
	border-radius: 999px;
	padding: .4rem .68rem;
	background: rgb(159 77 62 / 7%);
	color: color-mix(in srgb, var(--irp-cs-primary) 88%, var(--irp-cs-foreground));
	font-size: .73rem;
	font-weight: 750;
}

.irp-case-study__button {
	display: inline-flex;
	min-height: 3.05rem;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	gap: .7rem;
	border: 1px solid rgb(159 77 62 / 15%);
	border-radius: 999px;
	margin-top: 1rem;
	padding: .78rem 1.25rem;
	background: linear-gradient(135deg, #ad563f, #c9674a);
	color: var(--irp-cs-primary-foreground) !important;
	font-size: .84rem;
	font-weight: 850;
	line-height: 1.4;
	text-decoration: none !important;
	box-shadow:
		0 18px 36px -22px rgb(159 77 62 / 70%),
		inset 0 1px 0 rgb(255 255 255 / 22%);
	transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.irp-case-study__button::after {
	font-size: 1.1rem;
	font-weight: 400;
	content: "←";
	transition: transform .25s ease;
}

.irp-case-study__button:hover {
	filter: saturate(1.08);
	transform: translateY(-2px);
	box-shadow:
		0 22px 42px -22px rgb(159 77 62 / 82%),
		inset 0 1px 0 rgb(255 255 255 / 26%);
}

.irp-case-study__button:hover::after {
	transform: translateX(-.2rem);
}

.irp-case-study__button:focus-visible {
	outline: 3px solid rgb(209 154 88 / 46%);
	outline-offset: 3px;
}

.irp-case-study__hero-media {
	position: relative;
	align-self: center;
	height: clamp(22rem, 29vw, 27rem);
	min-height: 0;
	overflow: hidden;
	margin: .7rem;
	border: 1px solid rgb(221 209 188 / 68%);
	border-radius: calc(var(--irp-cs-radius) - .55rem);
	background: linear-gradient(135deg, #f4ece2, #ede8f3);
	box-shadow:
		0 24px 52px -38px rgb(45 39 51 / 40%),
		inset 0 1px 0 rgb(255 255 255 / 86%);
}

.irp-case-study__hero-media::after {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgb(45 39 51 / 2%) 52%, rgb(45 39 51 / 15%)),
		linear-gradient(90deg, rgb(255 255 255 / 8%), transparent);
	content: "";
	pointer-events: none;
}

.irp-case-study__hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.irp-case-study__hero:hover .irp-case-study__hero-media img {
	transform: scale(1.018);
}

.irp-case-study__hero-media figcaption {
	display: none;
}

.irp-case-study__hero-placeholder {
	display: grid;
	min-height: 32rem;
	margin: .8rem;
	border: 1px solid rgb(221 209 188 / 68%);
	border-radius: calc(var(--irp-cs-radius) - .55rem);
	place-items: center;
	background:
		linear-gradient(140deg, rgb(255 255 255 / 42%), transparent),
		repeating-linear-gradient(45deg, #f1e6d9 0 18px, #f7efe5 18px 36px);
	color: rgb(159 77 62 / 30%);
	font-size: clamp(2rem, 7vw, 5.5rem);
	font-weight: 950;
	letter-spacing: -.05em;
}

.irp-case-study__section {
	--irp-cs-section-accent: var(--irp-cs-primary);
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
	gap: clamp(1.75rem, 5vw, 5rem);
	overflow: hidden;
	border: 1px solid rgb(221 209 188 / 70%);
	border-radius: var(--irp-cs-radius);
	margin-top: 1.25rem;
	padding: clamp(1.7rem, 4vw, 3.4rem);
	background:
		radial-gradient(circle at 94% 4%, color-mix(in srgb, var(--irp-cs-section-accent) 10%, transparent), transparent 18rem),
		linear-gradient(135deg, rgb(255 255 255 / 82%), rgb(255 251 246 / 70%));
	box-shadow:
		0 25px 58px -52px color-mix(in srgb, var(--irp-cs-section-accent) 42%, transparent),
		inset 0 1px 0 rgb(255 255 255 / 88%);
	-webkit-backdrop-filter: saturate(135%) blur(16px);
	backdrop-filter: saturate(135%) blur(16px);
}

.irp-case-study__section::before {
	position: absolute;
	inset: 0 0 0 auto;
	width: 4px;
	background: linear-gradient(180deg, var(--irp-cs-section-accent), transparent 82%);
	content: "";
	opacity: .82;
}

.irp-case-study__section--lavender { --irp-cs-section-accent: #6d5aa8; }
.irp-case-study__section--mint { --irp-cs-section-accent: var(--irp-cs-green); }
.irp-case-study__section--sky { --irp-cs-section-accent: #418792; }
.irp-case-study__section--sand { --irp-cs-section-accent: var(--irp-cs-accent); }
.irp-case-study__section--rose { --irp-cs-section-accent: var(--irp-cs-primary); }
.irp-case-study__section--lime { --irp-cs-section-accent: #657a3f; }

.irp-case-study__section .irp-case-study__section-head > span {
	border-color: color-mix(in srgb, var(--irp-cs-section-accent) 18%, transparent);
	background: color-mix(in srgb, var(--irp-cs-section-accent) 7%, white);
	color: color-mix(in srgb, var(--irp-cs-section-accent) 90%, var(--irp-cs-foreground));
}

.irp-case-study__section .irp-case-study__section-head > span::before {
	background: var(--irp-cs-section-accent);
}

.irp-case-study__section-head {
	position: relative;
	z-index: 1;
	align-self: start;
}

.irp-case-study__section h2,
.irp-case-study__deliverables h2,
.irp-case-study__closing h2 {
	margin: .9rem 0 0;
	font-size: clamp(1.6rem, 2.8vw, 2.75rem);
	font-weight: 950;
	letter-spacing: -.03em;
	line-height: 1.34;
	text-wrap: balance;
}

.irp-case-study__section-head > p {
	margin: 1rem 0 0;
	color: var(--irp-cs-muted);
	font-size: .92rem;
	font-weight: 500;
	line-height: 1.95;
	text-wrap: pretty;
}

.irp-case-study__section-body {
	position: relative;
	z-index: 1;
	border: 1px solid rgb(221 209 188 / 60%);
	border-radius: 1.35rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: rgb(255 255 255 / 68%);
	box-shadow:
		0 18px 42px -38px rgb(73 60 66 / 45%),
		inset 0 1px 0 rgb(255 255 255 / 88%);
}

.irp-case-study__section-body > p {
	margin: 0;
	color: color-mix(in srgb, var(--irp-cs-foreground) 84%, var(--irp-cs-muted));
	font-size: .96rem;
	font-weight: 500;
	line-height: 2.05;
	text-wrap: pretty;
}

.irp-case-study__section-body > p + p {
	margin-top: 1rem;
}

.irp-case-study__section-body ul {
	display: grid;
	gap: .65rem;
	margin: 1.35rem 0 0;
	padding: 0;
	list-style: none;
}

.irp-case-study__section-body li {
	position: relative;
	border-radius: .85rem;
	padding: .55rem 1.7rem .55rem .65rem;
	background: color-mix(in srgb, var(--irp-cs-section-accent) 5%, white);
	color: var(--irp-cs-foreground);
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.85;
}

.irp-case-study__section-body li::before {
	position: absolute;
	inset: 1.18rem .72rem auto auto;
	width: .48rem;
	height: .48rem;
	border: 2px solid rgb(255 255 255 / 92%);
	border-radius: 50%;
	background: var(--irp-cs-section-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--irp-cs-section-accent) 13%, transparent);
	content: "";
}

.irp-case-study__deliverables {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
	gap: clamp(2rem, 5vw, 5rem);
	overflow: hidden;
	margin-top: 1.25rem;
	border: 1px solid rgb(209 154 88 / 18%);
	border-radius: var(--irp-cs-radius);
	padding: clamp(1.8rem, 4vw, 3.4rem);
	background:
		radial-gradient(circle at 10% 10%, rgb(209 154 88 / 18%), transparent 18rem),
		radial-gradient(circle at 92% 90%, rgb(109 90 168 / 16%), transparent 20rem),
		linear-gradient(135deg, #2d2733, #3d3440);
	color: #fffaf3;
	box-shadow: 0 32px 66px -46px rgb(45 39 51 / 70%);
}

.irp-case-study__deliverables::before {
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient(90deg, var(--irp-cs-green), var(--irp-cs-accent), var(--irp-cs-primary));
	content: "";
}

.irp-case-study__deliverables .irp-case-study__eyebrow {
	border-color: rgb(255 255 255 / 12%);
	background: rgb(255 255 255 / 8%);
	color: #f2d3a5;
}

.irp-case-study__deliverables .irp-case-study__eyebrow::before {
	background: var(--irp-cs-accent);
	box-shadow: 0 0 0 3px rgb(209 154 88 / 17%);
}

.irp-case-study__deliverables ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.irp-case-study__deliverables li {
	display: flex;
	gap: .7rem;
	align-items: flex-start;
	border: 1px solid rgb(255 255 255 / 10%);
	border-radius: 1.05rem;
	padding: .9rem;
	background: rgb(255 255 255 / 6%);
	color: rgb(255 250 243 / 90%);
	font-size: .88rem;
	font-weight: 600;
	line-height: 1.8;
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
}

.irp-case-study__deliverables li span {
	color: #e7b879;
	font-weight: 950;
}

.irp-case-study__closing {
	position: relative;
	display: flex;
	gap: 2rem;
	align-items: center;
	justify-content: space-between;
	overflow: hidden;
	border: 1px solid rgb(159 77 62 / 18%);
	border-radius: var(--irp-cs-radius);
	margin-top: 1.25rem;
	padding: clamp(2rem, 5vw, 4rem);
	background:
		radial-gradient(circle at 8% 84%, rgb(109 90 168 / 12%), transparent 20rem),
		radial-gradient(circle at 90% 8%, rgb(209 154 88 / 17%), transparent 21rem),
		linear-gradient(135deg, rgb(255 250 243 / 94%), rgb(249 238 227 / 90%));
	color: var(--irp-cs-foreground);
	box-shadow:
		0 28px 64px -52px rgb(159 77 62 / 48%),
		inset 0 1px 0 rgb(255 255 255 / 90%);
}

.irp-case-study__closing::before {
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient(90deg, var(--irp-cs-accent), var(--irp-cs-primary), var(--irp-cs-signature));
	content: "";
}

.irp-case-study__closing > div {
	position: relative;
	z-index: 1;
	max-width: 47.5rem;
}

.irp-case-study__closing p {
	margin: 1rem 0 0;
	color: var(--irp-cs-muted);
	font-size: .94rem;
	font-weight: 500;
	line-height: 2;
	text-wrap: pretty;
}

.irp-case-study__button--light {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	margin: 0;
}

@media (max-width: 900px) {
	.irp-case-study {
		padding-top: 8.25rem;
	}

	.irp-case-study__hero,
	.irp-case-study__section,
	.irp-case-study__deliverables {
		grid-template-columns: 1fr;
	}

	.irp-case-study__hero-media {
		height: min(58vw, 27rem);
		min-height: 20rem;
	}

	.irp-case-study__section {
		gap: 1.35rem;
	}

	.irp-case-study__closing {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 600px) {
	.irp-case-study {
		padding: 7.5rem .75rem 4rem;
		background-size: 3.5rem 3.5rem, 3.5rem 3.5rem, auto;
	}

	.irp-case-study__hero,
	.irp-case-study__section,
	.irp-case-study__deliverables,
	.irp-case-study__closing {
		border-radius: 1.5rem;
	}

	.irp-case-study__hero-copy,
	.irp-case-study__section,
	.irp-case-study__deliverables,
	.irp-case-study__closing {
		padding: 1.35rem;
	}

	.irp-case-study h1 {
		max-width: none;
		font-size: clamp(2rem, 11vw, 2.8rem);
	}

	.irp-case-study h1::after {
		height: .3rem;
	}

	.irp-case-study__lead {
		font-size: .9rem;
		line-height: 1.9;
	}

	.irp-case-study__meta,
	.irp-case-study__deliverables ul {
		grid-template-columns: 1fr;
	}

	.irp-case-study__meta strong {
		white-space: normal;
	}

	.irp-case-study__hero-media {
		height: 18rem;
		min-height: 0;
		margin: .55rem;
		border-radius: 1.15rem;
	}

	.irp-case-study__section h2,
	.irp-case-study__deliverables h2,
	.irp-case-study__closing h2 {
		font-size: clamp(1.45rem, 8vw, 2rem);
	}

	.irp-case-study__section-body {
		border-radius: 1.1rem;
		padding: 1.05rem;
	}

	.irp-case-study__section-body > p {
		font-size: .9rem;
		line-height: 1.95;
	}

	.irp-case-study__button,
	.irp-case-study__button--light {
		width: 100%;
		align-self: stretch;
	}
}

@media (prefers-reduced-motion: reduce) {
	.irp-case-study__hero-media img,
	.irp-case-study__button,
	.irp-case-study__button::after {
		transition: none;
	}

	.irp-case-study__hero:hover .irp-case-study__hero-media img,
	.irp-case-study__button:hover {
		transform: none;
	}
}
