/* APW Case Study — single project pages. */

.apw-case {
	font-family: var(--apw-font);
	padding: clamp(2.5rem, 1.5rem + 4vw, 4rem) 0;
}

.apw-case__back {
	margin: 0 0 24px;
	font-weight: 600;
}

.apw-case__back a {
	color: var(--apw-brand-text);
	text-decoration: none;
}

.apw-case__back a:hover {
	text-decoration: underline;
}

.apw-case__title {
	margin: 0;
	font-size: var(--apw-text-h1);
	font-weight: 700;
	color: var(--apw-navy);
}

.apw-case__excerpt {
	margin: 16px 0 0;
	font-size: var(--apw-text-lead);
	line-height: 1.55;
	color: var(--apw-ink-soft);
	max-width: 48rem;
}

.apw-case__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.apw-case__tags li {
	padding: 6px 12px;
	border: 1px solid var(--apw-border);
	border-radius: 999px;
	background: var(--apw-mist);
	font-size: var(--apw-text-small);
	font-weight: 600;
	color: var(--apw-ink);
}

.apw-case__image {
	margin: 32px 0 0;
}

.apw-case__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.apw-case__section {
	margin-top: 48px;
	max-width: 48rem;
}

.apw-case__section h2 {
	margin: 0 0 16px;
	font-size: var(--apw-text-h3);
	font-weight: 700;
	color: var(--apw-navy);
}

.apw-case__section p {
	margin: 0;
	line-height: 1.7;
	color: var(--apw-ink);
}

.apw-case__goals {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
}

.apw-case__goals li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	line-height: 1.55;
	color: var(--apw-ink);
}

.apw-case__goals li svg {
	flex-shrink: 0;
	margin-top: 3px;
	color: var(--apw-brand-text);
}

.apw-case__steps {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 20px;
}

.apw-case__steps li {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.apw-case__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--apw-mint);
	color: var(--apw-brand-text);
	font-weight: 700;
}

.apw-case__steps p {
	margin: 6px 0 0;
}

.apw-case__cta {
	margin-top: 64px;
	padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
	border: 1px solid var(--apw-border);
	border-radius: 12px;
	background: linear-gradient(135deg, var(--apw-mint) 0%, var(--apw-mist) 100%);
	text-align: center;
}

.apw-case__cta h2 {
	margin: 0;
	font-size: var(--apw-text-h2);
	font-weight: 700;
	color: var(--apw-navy);
}

.apw-case__cta p {
	margin: 16px 0 28px;
	color: var(--apw-ink-soft);
}

/* v1.1.0 additions — category line, meta block, next nav */
.apw-case__cat {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--apw-brand-text);
}

.apw-case__meta {
	margin: 2rem 0 0;
	padding: 1.25rem 1.5rem;
	background: var(--apw-mist);
	border-radius: var(--apw-radius-card);
	display: grid;
	gap: 0.9rem;
}

@media (min-width: 768px) {
	.apw-case__meta { grid-template-columns: repeat(3, 1fr); }
}

.apw-case__meta-row dt {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--apw-ink-soft);
}

.apw-case__meta-row dd {
	margin: 0.35rem 0 0;
	font-weight: 600;
	color: var(--apw-navy);
	line-height: 1.5;
}

.apw-case__live {
	color: var(--apw-brand-text);
	text-decoration: none;
}

.apw-case__live:hover { text-decoration: underline; text-underline-offset: 4px; }

.apw-case__next {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--apw-border);
}

.apw-case__next-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--apw-ink-soft);
}

.apw-case__next-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: var(--apw-text-h4);
	font-weight: 600;
	color: var(--apw-navy);
	text-decoration: none;
}

.apw-case__next-link:hover { color: var(--apw-brand-text); }

/* v1.2.0 — Next.js treatment: dark back link, display title,
   dashed category, two mist info tiles with white pills, the
   screenshot inside a browser frame, white CTA card + signature. */
.apw-case__back a { color: var(--apw-navy); }

.apw-case__title { font-size: var(--apw-text-display); letter-spacing: -0.02em; text-wrap: balance; }

.apw-case__cat {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

.apw-case__cat::before {
	content: "";
	width: 1.75rem;
	height: 3px;
	border-radius: 9999px;
	background: var(--apw-brand);
}

.apw-case__meta {
	margin: 2rem 0 0;
	padding: 0;
	background: none;
	border-radius: 0;
	display: grid;
	gap: 1rem;
}

@media (min-width: 640px) {
	.apw-case__meta { grid-template-columns: 1fr 1fr; }
}

.apw-case__tile {
	padding: 1.25rem;
	background: var(--apw-mist);
	border-radius: var(--apw-radius-card);
}

.apw-case__tile dt {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--apw-ink);
}

.apw-case__tile dd {
	margin: 0.35rem 0 0;
	font-weight: 500;
	color: var(--apw-navy);
	line-height: 1.5;
}

.apw-case__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apw-case__pills li {
	padding: 0.3rem 0.8rem;
	border-radius: 9999px;
	background: var(--apw-paper);
	font-size: var(--apw-text-small);
	font-weight: 600;
	color: var(--apw-navy);
}

.apw-case__frame { margin: 2rem 0 0; }

.apw-case__frame-img img {
	display: block;
	width: 100%;
	height: auto;
}

.apw-case__cta {
	background: var(--apw-paper);
	border: 1px solid var(--apw-border);
	border-radius: 1rem;
	box-shadow: var(--apw-shadow-card);
}

.apw-case__sign {
	margin: 1.5rem 0 0;
	font-size: var(--apw-text-small);
	color: var(--apw-ink-soft);
}

/* v1.2.1 — the whole case article lives in a 48rem column
   (Next.js); back link is a ghost pill; goals use grey bullets;
   process is a plain numbered list; "Next project" is a
   right-aligned bordered card; the frame address is a grey pill
   without the lock icon. */
.apw-case__col { max-width: 48rem; }

.apw-case__back a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	margin-left: -0.75rem;
	border-radius: 9999px;
	color: var(--apw-navy);
	font-size: var(--apw-text-small);
}

.apw-case__back a:hover {
	background: var(--apw-mist);
	text-decoration: none;
}

.apw-case__goals li svg { display: none; }

.apw-case__goals li::before {
	content: "";
	flex: none;
	width: 0.45rem;
	height: 0.45rem;
	margin-top: 0.5rem;
	border-radius: 9999px;
	background: rgb(47 56 70 / 0.3);
}

.apw-case__step-num {
	background: none;
	width: auto;
	height: auto;
	border-radius: 0;
	font-weight: 700;
	color: var(--apw-ink-soft);
}

.apw-case__next {
	margin-left: auto;
	max-width: 50%;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--apw-border);
	border-radius: var(--apw-radius-card);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.25rem;
	text-align: right;
}

@media (max-width: 639px) {
	.apw-case__next { max-width: 100%; }
}

.apw-case .apw-frame__tab {
	background: var(--apw-mist);
	border-radius: 0.375rem;
	padding: 0.25rem 0.75rem;
}

.apw-case .apw-frame__tab svg { display: none; }
