:root {
  --navy: #1a2b4d;
  --navy-deep: #0f1b33;
  --gold: #c9a227;
  --gold-soft: #f6efdb;
  --bg: #faf9f6;
  --ink: #232a35;
  --muted: #5d6675;
  --card: #ffffff;
  --line: #e7e2d4;
  --radius: 12px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.85rem; padding-bottom: 0.85rem;
}
.brand { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); text-decoration: none; }
.brand strong { font-weight: 700; }
.site-nav a {
  margin-left: 1.4rem; text-decoration: none; color: var(--muted);
  font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover, .site-nav a.active { color: var(--navy); }
@media (max-width: 720px) {
  .site-nav a { margin-left: 0.85rem; font-size: 0.85rem; }
}

/* ---------- layout ---------- */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }
section.block { padding: 3.5rem 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem;
  color: var(--gold); font-weight: 700; margin-bottom: 0.6rem;
}
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; }
h1 { font-size: 2.6rem; margin: 0 0 1rem; }
h2 { font-size: 1.9rem; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.6rem; }
p.lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 70%);
  color: #f2efe6; padding: 5rem 0 4.5rem;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; font-size: 3rem; max-width: 16ch; }
.hero p.lead { color: #c9cfdb; }
.hero-rule { width: 64px; height: 4px; background: var(--gold); margin: 1.4rem 0; border-radius: 2px; }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.btn {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.45); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { border: 1px solid var(--navy); color: var(--navy); background: transparent; }

/* ---------- cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: 0 2px 10px rgba(26, 43, 77, 0.05);
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); }
.card .metric-band {
  display: flex; gap: 1.6rem; margin: 1.2rem 0; flex-wrap: wrap;
}
.metric { }
.metric .num { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); font-weight: 700; }
.metric .lbl { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--navy);
  background: var(--gold-soft); border-radius: 999px; padding: 0.25rem 0.8rem; margin: 0 0.4rem 0.4rem 0;
}
.text-link { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold); }
.text-link:hover { background: var(--gold-soft); }

/* ---------- case study ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 1.4rem 1.2rem; text-align: center;
}
.stat .num { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--gold); }
.stat .lbl { font-size: 0.82rem; color: #c9cfdb; margin-top: 0.3rem; line-height: 1.4; }
.cs-body h2 { margin-top: 2.6rem; }
.cs-body ul { padding-left: 1.2rem; }
.cs-body li { margin-bottom: 0.55rem; }
.callout {
  border-left: 4px solid var(--gold); background: var(--gold-soft);
  padding: 1.2rem 1.4rem; border-radius: 0 8px 8px 0; margin: 1.8rem 0;
  color: var(--navy);
}

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; color: var(--navy); }
.field input {
  width: 100%; padding: 0.7rem 0.9rem; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }
.results { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2rem; position: sticky; top: 90px; }
.results h3 { color: #fff; margin-top: 0; }
.result-row { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.result-row .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.result-row.total .val { color: var(--gold); font-size: 1.35rem; font-family: var(--serif); }
.result-row.total .k { font-weight: 700; }
#roiChart { width: 100%; height: 220px; margin-top: 1.2rem; }

/* ---------- process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.8rem 1.6rem 5.2rem; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.4rem; top: 1.3rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-top: 0; }

/* ---------- timeline ---------- */
.timeline { border-left: 3px solid var(--line); margin: 1.6rem 0 0 0.6rem; padding-left: 1.8rem; }
.timeline .role { margin-bottom: 2rem; position: relative; }
.timeline .role::before {
  content: ""; position: absolute; left: -2.32rem; top: 0.35rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--navy);
}
.role .when { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #c9cfdb; padding: 3rem 0 2.2rem; margin-top: 4rem; }
.site-footer h2 { color: #fff; }
.site-footer a { color: var(--gold); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-note { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: #8b94a7; }

/* ---------- resume print ---------- */
@media print {
  .site-header, .site-footer, .btn-row { display: none; }
  body { background: #fff; }
  section.block { padding: 1rem 0; }
}
