:root {
  --bg: #ffffff;
  --bg-alt: #f4f7f8;
  --text: #0d1521;
  --muted: #4a5563;
  --line: #e1e7eb;
  --accent: #2a4d9a;
  --accent-2: #1e9989;
  --accent-3: #ea8a2f;
  --accent-soft: #e7eef8;
  --brand-gradient: linear-gradient(90deg, #2a4d9a 0%, #247392 25%, #1e9989 50%, #86915b 75%, #ea8a2f 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1119;
    --bg-alt: #111a25;
    --text: #e6ebf0;
    --muted: #9aa6b4;
    --line: #1f2a37;
    --accent: #6f9be0;
    --accent-2: #3fbfae;
    --accent-soft: #172338;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Nav */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; color: var(--text); font-size: 1.1rem; white-space: nowrap; line-height: 1.2; }
.logo small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }
nav ul { display: flex; gap: 24px; list-style: none; }
nav ul a { color: var(--muted); font-weight: 500; font-size: .95rem; }
nav ul a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 96px 0 80px; }
.eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .85rem; font-weight: 600; margin-bottom: 20px;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; font-weight: 700; max-width: 760px; }
.hero p { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.btns { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  font-weight: 600; border: 1px solid var(--accent);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { color: var(--accent); }
.btn:hover { text-decoration: none; opacity: .9; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.lead { color: var(--muted); max-width: 640px; margin-bottom: 40px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.stats { display: grid; gap: 16px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--bg); }
.stat b { display: block; font-size: 1.6rem; color: var(--accent); }
.stat span { color: var(--muted); font-size: .95rem; }
.about p { margin-bottom: 16px; color: var(--muted); }
.about p strong { color: var(--text); }

/* Services */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: 12px; padding: 24px;
  background: var(--bg);
}
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.2rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .meta { color: var(--accent); font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.edu { margin-top: 24px; color: var(--muted); font-size: .95rem; }
.quote { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.quote figcaption { margin-top: auto; }
.quote blockquote { color: var(--text); font-size: .95rem; line-height: 1.6; }
.quote figcaption b { display: block; font-weight: 600; }
.quote figcaption span { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.trust { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.trust figure { margin: 0; padding-left: 16px; border-left: 3px solid var(--accent); }
.trust blockquote { font-size: .98rem; color: var(--text); }
.trust figcaption { margin-top: 8px; color: var(--muted); font-size: .85rem; }
.trust figcaption b { color: var(--text); font-weight: 600; }
.steps-line { margin-top: 28px; color: var(--muted); }
.steps-line b { color: var(--text); }
.card p.proof { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; }
.card p.proof b { color: var(--text); }
.timeline { list-style: none; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline .when { color: var(--accent); font-size: .85rem; font-weight: 600; }
.timeline .role { font-weight: 600; }
.timeline .what { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step { padding: 20px 0; border-top: 2px solid var(--accent); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-weight: 700; color: var(--accent); margin-bottom: 8px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact { text-align: center; }
.contact .lead { margin: 0 auto 32px; }
.contact .btns { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 720px) {
  nav ul { display: none; }
  .hero { padding: 64px 0 56px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 56px 0; }
}
@media (max-width: 900px) { nav ul { display: none; } }

/* Service and case study pages */
.page-hero { padding: 72px 0 56px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { margin-bottom: 28px; font-size: 1.1rem; }
.crumb { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.prose > * { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .intro { font-size: 1.1rem; color: var(--text); }
.proof-line { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 8px 8px 0; }
.proof-line b { color: var(--text); }
.page-quote { margin-top: 40px; }
.link-list { list-style: none; padding-left: 0 !important; }
.link-list a { font-weight: 600; }
.link-list a::after { content: " →"; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .92rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-links a { color: var(--muted); }

/* Brand */
header { border-bottom: 0; }
header::after { content: ""; display: block; height: 3px; background: var(--brand-gradient); }
.logo img { display: block; height: 52px; width: auto; }
@media (max-width: 480px) { .logo img { height: 46px; } }
.logo .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo .logo-light { display: none; } .logo .logo-dark { display: block; } .btn-primary { color: #0b1119; } }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.eyebrow { background: var(--accent-soft); color: var(--accent); }
.trust figure { border-left-color: var(--accent-2); }
.proof-line { border-left-color: var(--accent-2); }
.timeline li::before { background: var(--accent-2); }
.step { border-top-color: var(--accent-2); }
footer { border-top: 0; position: relative; }
footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-gradient); }
.tagline { color: var(--text); font-weight: 500; }

/* Hero with photo */
.hero-grid { display: grid; grid-template-columns: 1fr 300px; grid-template-areas: "text photo" "trust trust"; column-gap: 56px; align-items: center; }
.hero-text { grid-area: text; }
.hero-photo { grid-area: photo; }
.hero-grid .trust { grid-area: trust; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 30%; border-radius: 50%; padding: 6px; background: var(--brand-gradient); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "photo" "text" "trust"; }
  .hero-photo { width: 140px; margin-bottom: 24px; }
}

/* Show more work */
.more-work { margin-top: 24px; }
.more-work summary { list-style: none; cursor: pointer; }
.more-work summary::-webkit-details-marker { display: none; }
.more-work summary::after { content: "Show more work ↓"; display: inline-block; padding: 12px 22px; border-radius: 8px; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 1rem; }
.more-work[open] summary::after { content: "Show less ↑"; margin-bottom: 20px; }
.more-work summary { font-size: 0; }
.case-meta { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .85rem; font-weight: 600; }
