/* FL Case Studies — front end */

:root {
	--flcs-accent: #D8AC97;
	--flcs-dark: #1D3939;
	--flcs-ink: #111111;
	--flcs-body: #3B3F44;
	--flcs-muted: #6B7075;
	--flcs-line: #E6E6E3;
	--flcs-card: #F6F6F4;
	--flcs-paper: #FFFFFF;
	--flcs-radius: 24px;
	--flcs-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.flcs-page { padding: 0 0 80px; }
.flcs, .flcs-page--index, .flcs-grid { font-family: var(--flcs-font); color: var(--flcs-ink); -webkit-font-smoothing: antialiased; line-height: 1.6; }
.flcs *, .flcs-grid * { box-sizing: border-box; }
.flcs :where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; padding: 0; }
.flcs :where(ul, ol) { list-style: none; }
.flcs-wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.flcs-body { max-width: 760px; }

/* ---------- Head ---------- */

.flcs-head { padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.flcs-back {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--flcs-muted); text-decoration: none; margin-bottom: 36px;
}
.flcs-back::before { content: "←"; }
.flcs-back:hover { color: var(--flcs-ink); }
.flcs-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.flcs-badge {
	display: inline-block; font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
	color: var(--flcs-ink); background: var(--flcs-accent); padding: 7px 12px; border-radius: 999px; line-height: 1;
}
.flcs-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--flcs-muted); }
.flcs-title {
	font-size: clamp(2.25rem, 6.5vw, 5rem); font-weight: 800; line-height: .98; letter-spacing: -.035em;
	max-width: 16ch; margin-bottom: 26px;
}
.flcs-title b {
	font-weight: 800; color: var(--flcs-dark); white-space: nowrap;
	background-image: linear-gradient(transparent 64%, var(--flcs-accent) 64%, var(--flcs-accent) 92%, transparent 92%);
	padding: 0 .06em; margin: 0 -.06em;
}
.flcs-summary { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 400; line-height: 1.55; color: var(--flcs-body); max-width: 56ch; }

.flcs-facts {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
	margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--flcs-ink);
}
.flcs-facts dt { font-size: .6875rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--flcs-muted); margin-bottom: 6px; }
.flcs-facts dd { margin: 0; font-size: .9375rem; font-weight: 600; line-height: 1.45; }

/* ---------- Images ---------- */

.flcs-hero { margin: 0 0 clamp(40px, 6vw, 72px); }
.flcs-hero img, .flcs-imgrow img, .flcs-full img, .flcs-tile__media img {
	display: block; width: 100%; height: 100%; object-fit: cover;
}
.flcs-hero img { aspect-ratio: 16 / 9; border-radius: var(--flcs-radius); }
.flcs-imgrow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 clamp(40px, 6vw, 64px); }
.flcs-imgrow.is-single { grid-template-columns: 1fr; }
.flcs-imgrow img { aspect-ratio: 4 / 3; border-radius: 18px; }
.flcs-imgrow.is-single img { aspect-ratio: 16 / 9; }
.flcs-full { margin: 0 0 clamp(40px, 6vw, 64px); }
.flcs-full img { aspect-ratio: 16 / 9; border-radius: var(--flcs-radius); }
.flcs figcaption { font-size: .8125rem; color: var(--flcs-muted); margin-top: 12px; line-height: 1.5; }
@media (max-width: 700px) { .flcs-imgrow { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */

.flcs-sec { display: grid; grid-template-columns: 64px 1fr; gap: 20px; margin-bottom: clamp(36px, 5vw, 56px); }
.flcs-num { font-size: .8125rem; font-weight: 800; letter-spacing: .1em; color: var(--flcs-muted); padding-top: .55em; }
.flcs-sec h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 16px; }
.flcs-sec p { font-size: 1.0625rem; line-height: 1.75; color: var(--flcs-body); margin-bottom: 16px; }
.flcs-sec p:last-child { margin-bottom: 0; }
.flcs-sec strong { font-weight: 700; color: var(--flcs-ink); }
.flcs-constraints li {
	position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--flcs-line);
	font-size: 1rem; line-height: 1.55; color: var(--flcs-body);
}
.flcs-constraints li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--flcs-accent); }
.flcs-constraints li:last-child { border-bottom: 0; }
@media (max-width: 600px) { .flcs-sec { grid-template-columns: 1fr; gap: 8px; } .flcs-num { padding-top: 0; } }

.flcs-pull {
	margin: 0 0 clamp(36px, 5vw, 56px); padding: 28px 32px;
	background: var(--flcs-card); border-radius: 18px; border-left: 5px solid var(--flcs-accent);
}
.flcs-pull p { font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 600; line-height: 1.4; letter-spacing: -.015em; color: var(--flcs-ink); }

/* ---------- Steps ---------- */

.flcs-steps { margin-bottom: clamp(40px, 6vw, 64px); }
.flcs-steps h2 { font-size: .75rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--flcs-muted); margin-bottom: 24px; }
.flcs-steps li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--flcs-line); }
.flcs-steps li:last-child { border-bottom: 1px solid var(--flcs-line); }
.flcs-steps__n { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.04em; color: var(--flcs-accent); line-height: 1; }
.flcs-steps h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 6px; }
.flcs-steps p { font-size: .9688rem; line-height: 1.65; color: var(--flcs-body); }

/* ---------- Outcome ---------- */

.flcs-outcome { background: var(--flcs-dark); color: #fff; padding: clamp(48px, 7vw, 80px) 0; margin: 0 0 clamp(40px, 6vw, 64px); }
.flcs-outcome h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 18px; color: #fff; }
.flcs-outcome p { font-size: 1.0625rem; line-height: 1.75; color: rgba(255, 255, 255, .78); margin-bottom: 16px; }
.flcs-outcome strong { color: #fff; font-weight: 700; }
.flcs-quote { margin: 28px 0 0; padding-left: 22px; border-left: 3px solid var(--flcs-accent); }
.flcs-quote p { font-size: 1.125rem; color: #fff; margin-bottom: 10px; }
.flcs-quote cite { font-style: normal; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.flcs-link, .flcs-btn {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
	font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
	transition: gap .2s, background .2s;
}
.flcs-link { color: #fff; }
.flcs-link:hover, .flcs-btn:hover { gap: 16px; color: #fff; }
.flcs-link svg, .flcs-btn svg, .flcs-tile__more svg { width: 16px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- Tools & CTA ---------- */

.flcs-tools h3 { font-size: .6875rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--flcs-muted); margin-bottom: 14px; }
.flcs-tools ul { display: flex; flex-wrap: wrap; gap: 8px; }
.flcs-tools li { font-size: .8125rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--flcs-card); border: 1px solid var(--flcs-line); }

.flcs-cta { text-align: center; margin-top: clamp(56px, 8vw, 88px); padding: clamp(40px, 6vw, 64px) 24px; border-radius: var(--flcs-radius); background: var(--flcs-card); }
.flcs-cta h2 { font-size: clamp(1.625rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 12px; }
.flcs-cta p { font-size: 1rem; color: var(--flcs-body); max-width: 44ch; margin: 0 auto; }
.flcs-btn { background: var(--flcs-dark); color: #fff; padding: 16px 28px; border-radius: 999px; margin-top: 28px; }
.flcs-btn:hover { background: var(--flcs-ink); }

/* ---------- Index ---------- */

.flcs-page--index { padding-top: clamp(32px, 6vw, 72px); }
.flcs-index-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.flcs-index-head h1 { font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: 0 0 18px; }
.flcs-index-head p { font-size: 1.125rem; line-height: 1.6; color: var(--flcs-body); margin: 0; }

.flcs-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (min-width: 760px) {
	.flcs-cols-1 { grid-template-columns: 1fr; }
	.flcs-cols-2 { grid-template-columns: repeat(2, 1fr); }
	.flcs-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.flcs-tile {
	display: flex; flex-direction: column; text-decoration: none; color: var(--flcs-ink);
	background: var(--flcs-paper); border: 1px solid var(--flcs-line); border-radius: var(--flcs-radius); overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}
.flcs-tile:hover { transform: translateY(-4px); box-shadow: 0 28px 48px -28px rgba(0, 0, 0, .3); }
.flcs-tile__media { position: relative; aspect-ratio: 16 / 10; background: var(--flcs-card); display: block; }
.flcs-tile__blank { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--flcs-card), #E9E9E5); }
.flcs-tile__media .flcs-badge { position: absolute; left: 16px; top: 16px; }
.flcs-tile__body { padding: 22px 24px 26px; display: grid; gap: 8px; }
.flcs-tile__title { font-size: 1.375rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.flcs-tile__title b { color: var(--flcs-dark); }
.flcs-tile__desc { font-size: .9375rem; line-height: 1.55; color: var(--flcs-body); }
.flcs-tile__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--flcs-dark); transition: gap .2s; }
.flcs-tile:hover .flcs-tile__more { gap: 14px; }
.flcs-pagination { margin-top: 40px; }
.flcs-empty { color: var(--flcs-muted); }

@media (prefers-reduced-motion: reduce) { .flcs-tile, .flcs-link, .flcs-btn, .flcs-tile__more { transition: none !important; } }
@media print { .flcs-cta, .flcs-back { display: none; } .flcs-outcome { background: #fff; color: #000; border-top: 2px solid #000; } .flcs-outcome p, .flcs-outcome h2 { color: #000; } }
