/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #0d1033; color: #f6f6ff; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Tokens ── */
:root {
  --bg: #0d1033;
  --surface: #131530;
  --text: #f6f6ff;
  --muted: rgba(246,246,255,0.5);
  --accent: #6b4fa0;
  --accent-md: #c4aaeb;
  --accent-lt: #eee8f8;
  --border: rgba(255,255,255,0.08);
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0d1033;
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 140px;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-logo {
  font-size: 16px;
  font-weight: 600;
  color: #f6f6ff;
  letter-spacing: -0.16px;
}
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(246,246,255,0.7);
  border-radius: 40px;
  transition: color 0.2s;
}
.nav-link:hover { color: #f6f6ff; }
.nav-link.cta {
  border: 1.5px solid var(--accent);
  color: var(--accent-md);
}
.nav-link.cta:hover { background: rgba(107,79,160,0.15); }

/* ── CASE STUDY HERO ── */
.cs-hero {
  background: var(--bg);
  padding: 100px 140px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cs-back {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  width: fit-content;
  transition: background 0.2s;
}
.cs-back:hover { background: rgba(255,255,255,0.14); color: var(--text); }

.cs-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.cs-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #f6f6ff;
}
.cs-tag-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.tag-dk { background: #4b3070; }
.tag-accent { background: var(--accent); }
.tag-lt { background: rgba(196,170,235,0.2); border: 1px solid rgba(196,170,235,0.25); color: var(--accent-md); }
.tag-muted { background: rgba(255,255,255,0.08); color: #96a0b4; }

.cs-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-md);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.cs-title {
  font-family: 'Fraunces', serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 82px;
  color: var(--text);
  font-variation-settings: "SOFT" 0, "WONK" 1;
  max-width: 1000px;
}
.cs-hero-img {
  background: #030303;
  border-radius: 16px;
  height: 577px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.cs-hero-img img {
  position: absolute;
  width: 100%;
  height: 212%;
  object-fit: cover;
  top: -62%;
  left: 0;
}
.cs-divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}
.cs-meta {
  display: flex;
  gap: 40px;
}
.cs-meta-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-meta-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-md);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.cs-meta-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-lt);
  line-height: 1.5;
}

/* ── CONTENT SECTION ── */
.cs-content {
  padding: 80px 140px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.cs-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cs-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-md);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.cs-section-title {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  font-variation-settings: "SOFT" 0, "WONK" 1;
  max-width: 760px;
}
.cs-section-body {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(246,246,255,0.65);
  max-width: 760px;
}
.cs-section-body p + p { margin-top: 1em; }
.cs-img-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
}
.cs-img-block img { width: 100%; display: block; }

/* ── RESPONSIVE – shared case study structure ── */
@media (max-width: 1024px) {
  .nav-inner { padding: 0 40px; }
  .cs-hero { padding: 60px 40px 48px; }
  .cs-content { padding: 60px 40px; }
  .footer { padding: 0 40px; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-link { padding: 8px 10px; font-size: 13px; }
  .cs-hero { padding: 48px 20px 40px; }
  .cs-title { font-size: 40px; line-height: 1.2; }
  .cs-meta { flex-wrap: wrap; gap: 20px; }
  .cs-meta-item { flex: none; min-width: calc(50% - 10px); }
  .cs-content { padding: 48px 20px; gap: 60px; }
  .cs-section-title { font-size: 26px; }
  .footer { padding: 16px 20px; height: auto; flex-wrap: wrap; gap: 8px; }
}

/* ── CASE STUDY NAVIGATION ── */
.cs-case-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 140px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  gap: 12px;
  flex-wrap: wrap;
}
.cs-case-nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.cs-case-nav-btn:hover { background: rgba(107,79,160,0.2); color: var(--text); }
.cs-case-nav-btn.home {
  border-color: rgba(196,170,235,0.3);
  color: var(--accent-md);
}
.cs-case-nav-btn.home:hover { background: rgba(196,170,235,0.08); }
@media (max-width: 768px) {
  .cs-case-nav { padding: 32px 24px; flex-direction: column; align-items: stretch; gap: 10px; }
}

/* ── FOOTER ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 140px;
}
.footer-copy { font-size: 14px; color: rgba(246,246,255,0.3); }
.footer-spacer { flex: 1; }
.footer-top {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-md);
  cursor: pointer;
}
.footer-top:hover { opacity: 0.75; }
