/* =============================================
   Inkwell Brand System v1
   warm-cream paper on near-black ink, soft gold accent
   ============================================= */

:root {
  /* Inkwell canonical tokens */
  --inkwell-paper: #f6f1e7;
  --inkwell-ink: #0e0d0c;
  --inkwell-ash: #1c1b18;
  --inkwell-line: rgba(246,241,231,0.08);
  --inkwell-gold: #c9a96e;
  --inkwell-gold-soft: rgba(201,169,110,0.18);

  /* Legacy aliases — kept so existing theme.css rules resolve cleanly */
  --bg: var(--inkwell-ink);
  --bg-2: var(--inkwell-ash);
  --surface: var(--inkwell-ash);
  --border: var(--inkwell-line);
  --fg: var(--inkwell-paper);
  --fg-2: rgba(246,241,231,0.55);
  --fg-3: rgba(246,241,231,0.3);
  --gold: var(--inkwell-gold);
  --gold-dim: var(--inkwell-gold-soft);
  --accent: var(--inkwell-gold);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  border-bottom: 1px solid var(--inkwell-line);
  background: rgba(14,13,12,0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.nav__logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}
.nav__tagline {
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 48px 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(201,169,110,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero__headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 32px;
  max-width: 900px;
}
.hero__sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--fg-2);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 64px;
}
.hero__stats {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.stat__num {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat__label {
  display: block;
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Manifesto ── */
.manifesto {
  padding: 100px 48px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.manifesto__inner {
  max-width: 860px;
  margin: 0 auto;
}
.manifesto__rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 36px;
}
.manifesto__quote {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: 32px;
  font-style: normal;
}
.manifesto__body {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.7;
}

/* ── Features ── */
.features {
  padding: 100px 48px;
  border-bottom: 1px solid var(--border);
}
.features__header {
  margin-bottom: 64px;
}
.features__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature {
  background: var(--bg);
  padding: 40px 36px;
}
.feature__icon {
  color: var(--gold);
  margin-bottom: 20px;
}
.feature__name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}
.feature__desc {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ── Network ── */
.network {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.network__left {
  padding: 100px 48px;
  border-right: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.network__kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.network__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
}
.network__right {
  padding: 100px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.network__body {
  margin-bottom: 40px;
}
.network__body p {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.network__body p:last-child { margin-bottom: 0; }
.logo-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ── Closing ── */
.closing {
  padding: 120px 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.closing__headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 24px;
}
.closing__sub {
  font-size: 17px;
  color: var(--fg-2);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Footer ── */
.footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}
.footer__desc {
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 4px;
}
.footer__meta {
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.05em;
}

/* ── Case Study ── */
.case-study__section {
  padding: 80px 48px;
  max-width: 760px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.case-study__section:last-of-type { border-bottom: none; }
.case-study__section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.case-study__subheading {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin: 24px 0 12px;
}
.case-study__paragraph {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.case-study__metric {
  font-family: 'Bricolage Grotesque', sans-serif;
}
.case-study__testimonial {
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.case-study__quote {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--fg);
  font-style: italic;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Case Studies index ── */
.case-studies-index {
  padding-top: 96px;
}
.case-studies-index__hero {
  padding: 96px 48px 48px;
  border-bottom: 1px solid var(--border);
}
.case-studies-index__headline {
  margin-bottom: 24px;
}
.case-studies-index__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.case-studies-index__empty {
  padding: 80px 48px;
  max-width: 760px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.case-studies-card {
  display: block;
  background: var(--bg);
  padding: 48px;
  color: var(--fg);
  text-decoration: none;
  transition: background 160ms ease;
}
.case-studies-card:hover {
  background: var(--bg-2);
}
.case-studies-card__title {
  margin-top: 16px;
  margin-bottom: 32px;
  font-size: clamp(24px, 3vw, 32px);
}
.case-studies-card__metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 120px 24px 60px; }
  .hero__stats { gap: 32px; }
  .manifesto, .features, .network__left, .network__right, .closing { padding: 64px 24px; }
  .case-study__section { padding: 56px 24px; }
  .network { grid-template-columns: 1fr; }
  .network__left { border-right: none; border-bottom: 1px solid var(--border); }
  .features__grid { grid-template-columns: 1fr 1fr; }
  .footer { padding: 32px 24px; flex-direction: column; gap: 12px; align-items: flex-start; }
}
@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
  .case-studies-index__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; flex-direction: column; }
  .stat__num { font-size: 32px; }
}