:root {
    --bg: #FAF9F7;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-muted: #6b6b6b;
    --border: #e5e2dd;
    --card-orange: #E8572A;
    --card-sand: #F5F0E8;
    --card-blue: #2E7DC5;
    --card-green: #2DD881;
    --card-charcoal: #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    line-height: 1.15;
}

/* ── NAV ─────────────────────────────────────── */
nav {
    padding: 24px 0;
    position: relative;
    z-index: 50;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.875rem;
    color: var(--text);
}

.nav-links { display: flex; gap: 32px; align-items: center; }

.nav-link {
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--card-orange); }

.nav-cta {
    padding: 10px 22px !important;
    font-size: 0.875rem !important;
    margin-left: 8px;
}

/* ── EYEBROW ─────────────────────────────────── */
.eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--text);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 18px 40px;
}

.btn-primary:hover {
    background: var(--card-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,87,42,0.25);
}

.btn-orange {
    background: var(--card-orange);
    color: var(--white);
    padding: 18px 40px;
}

.btn-orange:hover {
    background: var(--white);
    color: var(--text);
}

.btn-sm {
    padding: 12px 24px;
    font-size: 0.9375rem;
}

/* ── PAGE HERO ───────────────────────────────── */
.page-hero {
    padding: 80px 0 96px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-accent-line {
    width: 96px;
    height: 4px;
    background: var(--card-orange);
    border-radius: 100px;
    margin: 0 auto 28px;
}

.page-hero .subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    font-weight: 300;
}

/* ── SECTIONS ────────────────────────────────── */
.section { padding: 96px 0; }
.section.white { background: var(--white); }
.section.charcoal { background: var(--card-charcoal); }
.section.charcoal h2 { color: var(--white); }
.section.charcoal .eyebrow { color: rgba(255,255,255,0.4); }
.section.charcoal p { color: rgba(255,255,255,0.65); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(2.25rem, 4vw, 3.25rem); color: var(--text); }
.section.charcoal .section-header h2 { color: var(--white); }

/* ── CASE STUDY CARD ─────────────────────────── */
.case-study-card {
    background: var(--white);
    border-radius: 24px;
    padding: 48px 56px;
    border: 1px solid var(--border);
    border-left: 8px solid var(--card-orange);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 24px;
}

.case-label { display: block; margin-bottom: 8px; }

.case-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--text);
    margin-bottom: 48px;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.metric { padding-right: 32px; }
.metric + .metric { padding-left: 32px; border-left: 1px solid var(--border); }

.metric-value {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2.75rem, 5vw, 3.5rem);
    color: var(--text);
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── PROSE ───────────────────────────────────── */
.prose { max-width: 720px; }
.prose h2 { margin: 12px 0 20px; font-size: clamp(2rem, 3.5vw, 2.75rem); }
.prose p { color: #555; font-size: 1.05rem; line-height: 1.7; }
.prose p + p { margin-top: 18px; }
.prose ul { margin: 18px 0 0 22px; color: #555; font-size: 1.05rem; line-height: 1.7; }
.prose li + li { margin-top: 8px; }

/* ── CTA BAND ────────────────────────────────── */
.cta-band {
    background: var(--card-charcoal);
    padding: 96px 0;
    text-align: center;
}

.cta-band .eyebrow { color: rgba(255,255,255,0.4); }
.cta-band h2 { color: var(--white); font-size: clamp(2.25rem, 4vw, 3.25rem); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto 40px; font-size: 1.0625rem; }

/* ── OTHER CONDITIONS ────────────────────────── */
.other-pages {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.other-pages a {
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 22px;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.2s;
    background: var(--white);
}

.other-pages a:hover { color: var(--card-orange); border-color: rgba(232,87,42,0.4); }

/* ── FOOTER ──────────────────────────────────── */
footer {
    background: var(--white);
    padding: 80px 0 36px;
    border-top: 1px solid rgba(26,26,26,0.1);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 260px;
    line-height: 1.6;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--card-orange); }

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ── SCROLL ANIMATIONS ───────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    nav .container { flex-wrap: wrap; gap: 16px; }
    .nav-links { gap: 20px; }

    .case-study-card { padding: 32px 24px; }
    .case-metrics { grid-template-columns: 1fr; gap: 28px; border-top: none; padding-top: 0; }
    .metric { padding: 0 0 28px; border-bottom: 1px solid var(--border); }
    .metric + .metric { padding-left: 0; border-left: none; }
    .metric:last-child { border-bottom: none; padding-bottom: 0; }

    .footer-top { flex-direction: column; align-items: flex-start; }
    .footer-actions { align-items: flex-start; }
}
