:root {
  --ink: #17191a;
  --paper: #faf9f5;
  --paper-alt: #f0eee7;
  --surface: #ffffff;
  --muted: #5b5f5c;
  --accent: #1f4d3d;
  --accent-strong: #163a2e;
  --on-accent: #fdfbf7;
  --line: rgba(23, 25, 26, 0.12);
  --line-strong: rgba(23, 25, 26, 0.24);

  --bg: var(--paper);
  --bg-alt: var(--paper-alt);
  --surface-1: var(--surface);
  --text: var(--ink);
  --text-muted: var(--muted);
  --border: var(--line);
  --border-strong: var(--line-strong);
  --shadow: 0 1px 2px rgba(23, 25, 26, 0.06), 0 14px 30px rgba(23, 25, 26, 0.08);
  --ink-fixed: #141614;
  --paper-fixed: #f5f2ea;
  --muted-fixed: #a9ada4;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121412;
    --bg-alt: #1b1d1b;
    --surface-1: #1f2220;
    --text: #f1efe9;
    --text-muted: #a3a7a0;
    --accent: #8fc0a5;
    --accent-strong: #a9d3ba;
    --on-accent: #0d1210;
    --border: rgba(241, 239, 233, 0.13);
    --border-strong: rgba(241, 239, 233, 0.26);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 34px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121412;
  --bg-alt: #1b1d1b;
  --surface-1: #1f2220;
  --text: #f1efe9;
  --text-muted: #a3a7a0;
  --accent: #8fc0a5;
  --accent-strong: #a9d3ba;
  --on-accent: #0d1210;
  --border: rgba(241, 239, 233, 0.13);
  --border-strong: rgba(241, 239, 233, 0.26);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 34px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.18;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
button { font: inherit; cursor: pointer; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 12px 18px;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.brand {
  display: flex; align-items: center; gap: 11px; text-decoration: none;
  font-family: "Newsreader", serif; font-weight: 500; font-size: 20px; letter-spacing: -0.01em; color: var(--text);
}
.brand .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex: none; border: 1px solid var(--border-strong); border-radius: 2px; position: relative;
}
.brand .mark::before, .brand .mark::after { content: ""; position: absolute; background: var(--accent); }
.brand .mark::before { left: 50%; top: 5px; bottom: 5px; width: 1px; transform: translateX(-50%); }
.brand .mark::after { top: 50%; left: 5px; right: 5px; height: 1px; transform: translateY(-50%); }

nav.primary { display: flex; align-items: center; gap: 2px; }
nav.primary a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-muted);
  padding: 9px 14px; white-space: nowrap;
}
nav.primary a:hover { color: var(--text); }
nav.primary a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 2px; border: 1px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center; color: var(--text);
}
.theme-toggle:hover { border-color: var(--border-strong); }
.theme-toggle svg { width: 16px; height: 16px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--on-accent);
  text-decoration: none; font-weight: 500; font-size: 14px; padding: 11px 20px; border-radius: 2px; border: 1px solid var(--accent); white-space: nowrap;
}
.cta-btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 14px;
  padding: 11px 20px; border-radius: 2px; border: 1px solid var(--border-strong); color: var(--text);
}
.cta-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hamburger { display: none; }
@media (max-width: 900px) {
  nav.primary { display: none; }
  .hamburger {
    display: flex; width: 38px; height: 38px; border-radius: 2px; border: 1px solid var(--border); background: transparent;
    align-items: center; justify-content: center;
  }
  .cta-btn.desktop-only { display: none; }
}
#mobileNav { display: none; border-top: 1px solid var(--border); padding: 6px 0 18px; }
#mobileNav.open { display: block; }
#mobileNav a {
  display: block; padding: 12px 4px; text-decoration: none; color: var(--text); font-weight: 500;
  border-bottom: 1px solid var(--border); font-size: 15px;
}

/* ---------- Index panel (service list, replaces the old colour strata) ---------- */
.index-panel {
  border: 1px solid var(--border-strong); background: var(--surface-1);
}
.index-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 15px 22px; border-top: 1px solid var(--border); text-decoration: none; color: var(--text);
}
.index-row:first-child { border-top: none; }
.index-row .name { font-family: "Newsreader", serif; font-size: 16.5px; }
.index-row .n { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }
a.index-row:hover { color: var(--accent); }
a.index-row:hover .n { color: var(--accent); }
.index-row.is-active { color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }
.index-row.is-active .name { font-weight: 600; }
.index-row.is-active .n { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 58px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: "Newsreader", serif; font-style: italic; font-size: 15px;
  color: var(--accent); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); }
.hero .sub { margin-top: 22px; font-size: 17.5px; line-height: 1.7; color: var(--text-muted); max-width: 56ch; }
.hero .actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.stat-row { margin-top: 44px; display: flex; gap: 36px; flex-wrap: wrap; }
.stat-row .stat { flex: 1 1 150px; border-left: 1px solid var(--border-strong); padding-left: 16px; }
@media (max-width: 480px) { .stat-row { gap: 24px; } .stat-row .stat { flex: 1 1 100%; } }
.stat-row .stat .n { font-family: "Newsreader", serif; font-size: 25px; font-weight: 500; color: var(--text); }
.stat-row .stat .l { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.tight { padding: 50px 0; }
section.alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 46px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); }
.section-head .desc { color: var(--text-muted); max-width: 46ch; font-size: 15.5px; }

/* Deliberate high-contrast band: always dark, ignores reader theme, used once per page for rhythm */
.band-dark {
  background: var(--ink-fixed); color: var(--paper-fixed);
}
.band-dark .section-head h2, .band-dark h2 { color: var(--paper-fixed); }
.band-dark .section-head .desc, .band-dark .muted-fixed { color: var(--muted-fixed); }
.band-dark .list-clean li { color: var(--paper-fixed); }
.band-dark .list-clean li .dot { background: #8fc0a5; }
.band-dark .list-clean li strong { color: #fff; }

/* ---------- Service cards ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: var(--surface-1); padding: 30px 26px 28px; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 15px; min-height: 210px;
  transition: background 0.16s ease;
  position: relative;
}
.svc-card .top-row { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-card .num { font-size: 12.5px; color: var(--text-muted); letter-spacing: 0.04em; }
.svc-card h3 { font-size: 21px; }
.svc-card p { color: var(--text-muted); font-size: 14.5px; flex: 1; }
.svc-card .go { font-size: 13.5px; font-weight: 500; color: var(--text); }
.svc-card:hover { background: var(--bg-alt); }
.svc-card:hover .go, .svc-card:hover h3 { color: var(--accent); }

/* ---------- Process timeline ---------- */
.timeline { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 84px 1fr; gap: 28px; padding: 32px 0; border-top: 1px solid var(--border); }
.tl-row:first-child { border-top: none; padding-top: 0; }
@media (max-width: 620px) { .tl-row { grid-template-columns: 50px 1fr; gap: 16px; } }
.tl-num { font-family: "Newsreader", serif; font-size: 32px; font-weight: 500; color: var(--accent); }
.tl-body h3 { font-size: 21px; margin-bottom: 9px; }
.tl-body .meta {
  display: flex; gap: 20px; flex-wrap: wrap; margin: 12px 0 4px;
  font-size: 13px; color: var(--text-muted);
}
.tl-body .meta span strong { color: var(--text); font-weight: 600; }
.tl-body p { color: var(--text-muted); max-width: 62ch; margin-top: 10px; }

/* ---------- Generic content blocks ---------- */
.lede { font-size: 18px; color: var(--text-muted); max-width: 62ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.list-clean { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.list-clean li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; color: var(--text); }
.list-clean li .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 9px; flex: none; }
.card-plain {
  background: var(--surface-1); border: 1px solid var(--border-strong); padding: 28px;
}
.kicker { font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }

/* ---------- Service detail page ---------- */
.svc-hero { display: grid; grid-template-columns: 1fr 300px; gap: 54px; align-items: start; }
@media (max-width: 900px) { .svc-hero { grid-template-columns: 1fr; } }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.intro-line { font-size: 15.5px; color: var(--text-muted); margin-top: 16px; max-width: 62ch; }

.fit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (max-width: 700px) { .fit-grid { grid-template-columns: 1fr; } }
.fit-item {
  padding: 20px 22px; font-size: 14.5px; color: var(--text-muted); background: var(--surface-1);
}
.fit-item strong { color: var(--text); display: block; margin-bottom: 5px; font-size: 15px; font-family: "Newsreader", serif; font-weight: 500; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); background: var(--surface-1); }
@media (max-width: 700px) { .stat-strip { grid-template-columns: 1fr; } }
.stat-strip .cell { padding: 26px 24px 24px; border-left: 1px solid var(--border); }
.stat-strip .cell:first-child { border-left: none; }
@media (max-width: 700px) { .stat-strip .cell { border-left: none; border-top: 1px solid var(--border); } .stat-strip .cell:first-child { border-top: none; } }
.stat-strip .cell .n { font-family: "Newsreader", serif; font-size: 24px; font-weight: 500; color: var(--accent); }
.stat-strip .cell .l { font-size: 13px; color: var(--text-muted); margin-top: 5px; }

.prev-next { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.prev-next a {
  text-decoration: none; color: var(--text); border: 1px solid var(--border); padding: 18px 22px;
  flex: 1 1 260px; display: block; transition: border-color 0.16s ease;
}
.prev-next a:hover { border-color: var(--accent); }
.prev-next .d { font-size: 12px; color: var(--text-muted); }
.prev-next .t { font-family: "Newsreader", serif; font-size: 18px; margin-top: 5px; }
.prev-next .next { text-align: right; }

/* ---------- About ---------- */
.bench-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (max-width: 700px) { .bench-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .bench-grid { grid-template-columns: 1fr; } }
.bench-item { padding: 18px 20px; background: var(--surface-1); }
.bench-item .n { font-size: 12px; color: var(--text-muted); }
.bench-item .t { font-size: 14.5px; margin-top: 5px; font-family: "Newsreader", serif; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); padding: 20px 22px;
  text-decoration: none; color: var(--text); transition: border-color 0.16s ease;
}
.contact-card:hover { border-color: var(--accent); }
.contact-card .ic { width: 40px; height: 40px; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-card .ic svg { width: 18px; height: 18px; color: var(--accent); }
.contact-card .lab { font-size: 12.5px; color: var(--text-muted); }
.contact-card .val { font-family: "Newsreader", serif; font-size: 17px; margin-top: 3px; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--border); padding: 52px 0 42px; margin-top: 44px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-muted); font-weight: 600; margin-bottom: 15px;
}
.foot-grid a { display: block; text-decoration: none; color: var(--text-muted); font-size: 14px; padding: 5px 0; }
.foot-grid a:hover { color: var(--accent); }
.foot-bottom {
  margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted);
}

/* ---------- 404 ---------- */
.notfound { padding: 104px 0; text-align: left; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
