@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500&family=Spline+Sans:wght@400;500&display=swap');

:root {
  --bg: #f7f6f2;
  --ink: #100f0d;
  --muted: #6b6760;
  --line: #dedad3;
  --accent: #4318d4;
  --font-display: "Bricolage Grotesque";   

}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Spline Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* --- header --- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--accent);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-family: var(--font-display), serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.navlinks {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 15px;
  color: var(--muted);
}
.navlinks a { transition: color .15s; }
.navlinks a:hover { color: var(--ink); }
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 9px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity .15s;
}
.btn:hover { opacity: .72; }
.btn-accent { background: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 9px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .15s, color .15s;
}
.btn-outline:hover { border-color: var(--ink); }

/* --- footer --- */
footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 40px;
}
.fgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.fgrid h4 {
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.fgrid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fgrid li a { color: var(--muted); font-size: 15px; transition: color .15s; }
.fgrid li a:hover { color: var(--ink); }
.fbrand .logo { display: block; margin-bottom: 12px; }
.fbrand p { color: var(--muted); max-width: 32ch; font-size: 15px; }
.fbottom {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

/* --- utilities --- */
.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity .15s;
}
.text-link:hover { opacity: .7; }
.muted-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 15px;
  transition: color .15s;
}
.muted-link:hover { color: var(--ink); }

/* --- page hero (inner pages) --- */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 72px;
}
.page-hero h1 {
  font-family: var(--font-display), serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -.03em;
  line-height: 1.04;
  max-width: 20ch;
  margin-bottom: 20px;
}
.page-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 54ch;
  line-height: 1.6;
}

/* --- fade in --- */
.fade { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.fade.in { opacity: 1; transform: none; }

/* web components — transparent in layout */
site-nav, site-footer { display: contents; }

/* --- dark grid background (shared pattern) --- */
.service-row--featured,
.pillar-row--featured,
.program-card--featured {
  background-image:
    linear-gradient(rgba(91, 33, 245, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 33, 245, 0.1) 1px, transparent 1px),
    linear-gradient(135deg, #15112a 0%, #100f0d 65%);
  background-size: 44px 44px, 44px 44px, 100%;
}

/* --- cta-simple --- */
.cta-simple {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.cta-simple h2 {
  font-family: var(--font-display), sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 22ch;
  margin-bottom: 28px;
}

/* --- responsive --- */
@media (max-width: 860px) {
  .navlinks { display: none; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ======== CASE STUDY PAGES ======== */

.case-page-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}
.case-hero-inner {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 56px;
  align-items: start;
  margin-bottom: 36px;
}
.case-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.case-cat-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  background: #ede8ff;
  padding: 5px 13px;
  border-radius: 100px;
}
.badge-dot {
  color: var(--line);
  font-size: 16px;
  line-height: 1;
  user-select: none;
}
.case-client-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: #f0eeea;
  padding: 5px 13px;
  border-radius: 100px;
}
.case-hero-text h1 {
  font-family: var(--font-display), serif;
  font-weight: 300;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -.03em;
  line-height: 1.06;
  max-width: 20ch;
  margin-bottom: 18px;
}
.case-hero-text > p {
  font-size: 17px;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.65;
}
.case-hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.case-hero-meta span { font-size: 13px; color: var(--muted); }
.case-stat-card {
  background: #0e0b1a;
  background-image:
    linear-gradient(rgba(91,33,245,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,33,245,.12) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
}
.case-stat-n {
  font-family: var(--font-display), serif;
  font-weight: 300;
  font-size: 52px;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.case-stat-label {
  font-size: 11px;
  color: rgba(155,120,255,.7);
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.55;
}

.case-body-section {
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.case-body-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  align-items: start;
}
.case-body-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
  font-weight: 500;
}
.case-body-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}
.case-body-content h3 {
  font-family: var(--font-display), serif;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--ink);
}
.case-body-content p + p { margin-top: 18px; }

.case-outcome {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 52px 56px;
  margin: 0 0 56px;
}
.case-outcome .section-label { color: rgba(255,255,255,.35); margin-bottom: 18px; }
.case-outcome p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  max-width: 60ch;
}

.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 0 80px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}
.case-nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
.case-nav a:hover { color: var(--ink); }
.case-nav .next-case { color: var(--accent); }

@media (max-width: 860px) {
  .case-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .case-stat-card { min-height: 120px; }
  .case-stat-n { font-size: 40px; }
  .case-body-grid { grid-template-columns: 1fr; gap: 14px; }
  .case-outcome { padding: 40px 24px; }
  .case-outcome p { font-size: 16px; }
  .case-nav { flex-direction: column; align-items: flex-start; }
}
