/*
 * Zulu Shack case study (/website-design-by-zulu-shack/). A new page with no live original: built from the site's
 * own pieces — the single-post hero + head box (blog), Convex type sizes, outline button, "Let's discuss" block.
 */
.sg-case { background: var(--c-bg); color: var(--c-white); }

/* Hero: full-width photo under the header, darkened like the post hero. */
.sg-case__hero { position: relative; height: 42.5vw; max-height: 900px; min-height: 320px; overflow: hidden; background: var(--c-panel); }
.sg-case__hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sg-case__hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }

/* Head box overlapping the hero (post head geometry). */
.sg-case__head {
	position: relative; z-index: 1; max-width: 1060px; margin: -150px auto 0; padding: 55px 55px 0;
	background: var(--c-bg); text-align: center;
}
.sg-case__eyebrow {
	margin: 0 0 22px; color: var(--c-light); font-size: 13px; font-weight: 500; line-height: 1.4;
	letter-spacing: 2.6px; text-transform: uppercase;
}
.sg-case__title { max-width: 85%; margin: 0 auto; font-size: 50px; font-weight: 500; line-height: 1.2; color: var(--c-white); }
.sg-case__lead { max-width: 820px; margin: 34px auto 0; color: var(--c-light); font-size: 19px; line-height: 2em; }

/* Story column. */
.sg-case__body { max-width: 900px; margin: 0 auto; padding: 100px var(--gutter) 160px; box-sizing: content-box; }
.sg-case__section + .sg-case__section { margin-top: 90px; }
.sg-case__heading { margin: 0 0 30px; font-size: 35px; font-weight: 500; line-height: 1.2; color: var(--c-white); }
.sg-case__section p { margin: 0; font-size: var(--fs-body); line-height: var(--lh-p); color: var(--c-white); }
.sg-case__section p + p { margin-top: 1.1em; }

/* Three project photos between sections, bleeding wider than the text column. */
.sg-case__photos {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
	width: min(1290px, calc(100vw - 2 * var(--gutter))); margin: 90px 0 0 50%; padding: 0; list-style: none;
	transform: translateX(-50%);
}
.sg-case__photo { margin: 0; line-height: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-panel); }
.sg-case__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sg-case__photo:hover img { transform: scale(1.04); }
.sg-case__photos + .sg-case__section { margin-top: 90px; }

/* Credit panel. */
.sg-case__credit { margin-top: 110px; padding: 60px 64px 64px; background: var(--c-panel); border: 1px solid #222; text-align: center; }
.sg-case__credit-title { margin: 0 0 26px; font-size: 42px; font-weight: 500; line-height: 1.2; color: var(--c-white); }
.sg-case__credit p:not(.sg-case__eyebrow) { max-width: 640px; margin: 0 auto; font-size: var(--fs-body); line-height: var(--lh-p); color: var(--c-light); }
.sg-case__btn { margin-top: 40px; min-height: 44px; }

@media (max-width: 1280px) {
	.sg-case__title { font-size: 44px; }
}
@media (max-width: 1024px) {
	.sg-case__hero { height: 56vw; margin-top: 0; }
	.sg-case__head { margin-top: -90px; padding: 40px 40px 0; }
	.sg-case__title { max-width: none; font-size: 40px; }
	.sg-case__lead { font-size: 17px; }
	.sg-case__body { padding-top: 70px; padding-bottom: 110px; }
	.sg-case__section + .sg-case__section, .sg-case__photos, .sg-case__photos + .sg-case__section { margin-top: 70px; }
	.sg-case__heading { font-size: 30px; }
	.sg-case__photos { gap: 16px; }
	.sg-case__credit { margin-top: 80px; padding: 48px 40px; }
	.sg-case__credit-title { font-size: 36px; }
}
@media (max-width: 767px) {
	.sg-case__hero { height: 70vw; min-height: 260px; }
	.sg-case__head { margin: -40px 12px 0; padding: 28px 18px 0; }
	.sg-case__eyebrow { font-size: 12px; letter-spacing: 2px; }
	.sg-case__title { font-size: 32px; }
	.sg-case__lead { margin-top: 24px; font-size: 16px; line-height: 1.9em; }
	.sg-case__body { padding: 50px 20px 80px; }
	.sg-case__section + .sg-case__section, .sg-case__photos, .sg-case__photos + .sg-case__section { margin-top: 55px; }
	.sg-case__heading { margin-bottom: 20px; font-size: 26px; }
	.sg-case__photos { grid-template-columns: minmax(0, 1fr); width: calc(100vw - 40px); gap: 14px; }
	.sg-case__credit { margin-top: 60px; padding: 40px 22px; }
	.sg-case__credit-title { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.sg-case__photo img { transition: none; }
}
