/* ---------- Tokens ---------- */
:root {
  --bg: #faf9f6;
  --bg-alt: #f1efe9;
  --surface: #ffffff;
  --text: #16181d;
  --text-muted: #5b6169;
  --border: #e6e3db;
  --accent: #0f6e5c;
  --accent-dark: #0b4f42;
  --accent-soft: #e4f1ec;
  --radius: 14px;
  --max-width: 1120px;
  --shadow: 0 1px 2px rgba(22,24,29,0.04), 0 8px 24px rgba(22,24,29,0.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --bg-alt: #1b1e23;
    --surface: #1c1f24;
    --text: #f2f1ed;
    --text-muted: #9ba0a8;
    --border: #2c2f35;
    --accent: #2fbb9a;
    --accent-dark: #1e8f74;
    --accent-soft: #17332c;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
  }
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
section { padding: 96px 24px; }
@media (max-width: 700px) { section { padding: 64px 20px; } }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.01em; }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn.btn-primary { background: var(--accent); color: #fff; }
.btn.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .btn { padding: 10px 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.2s; }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-links .btn { margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero { padding: 88px 24px 80px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
}
.hero .cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { max-width: 320px; margin: 0 auto; order: -1; }
}

/* ---------- Stats ---------- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 48px 24px;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: var(--accent); letter-spacing: -0.01em; }
.stat .label { margin-top: 6px; font-size: 14px; color: var(--text-muted); }
@media (max-width: 700px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }

/* ---------- About ---------- */
.about .wrap { max-width: 780px; }
.about p { font-size: 18px; color: var(--text-muted); }
.about p + p { margin-top: 18px; }

/* ---------- Timeline ---------- */
.timeline-list { position: relative; margin-top: 8px; }
.timeline-list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
.tl-item { position: relative; padding: 0 0 40px 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}
.tl-item.current::before { background: var(--accent); }
.tl-date { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.tl-item h3 { margin-top: 6px; font-size: 19px; font-weight: 700; }
.tl-item .tl-org { font-size: 15px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.tl-item p.tl-desc { margin-top: 8px; color: var(--text-muted); font-size: 15.5px; max-width: 640px; }

/* ---------- Expertise grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 17px; font-weight: 700; }
.card p { margin-top: 8px; font-size: 15px; color: var(--text-muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--accent-dark);
  color: #fff;
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.cta-banner p { margin-top: 12px; color: rgba(255,255,255,0.82); font-size: 16px; }
.cta-banner .cta-row { justify-content: center; margin-top: 26px; }
.cta-banner .btn-primary { background: #fff; color: var(--accent-dark); }
.cta-banner .btn-primary:hover { background: #f1f1f1; }
.cta-banner .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-banner .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Services page ---------- */
.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-block:last-child { border-bottom: none; }
.service-block .num { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 0.05em; }
.service-block h3 { margin-top: 10px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.service-block .tagline { margin-top: 8px; color: var(--text-muted); font-size: 16px; }
.service-block ul { margin-top: 4px; }
.service-block li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 15.5px;
  color: var(--text-muted);
}
.service-block li:first-child { border-top: none; }
.service-block li strong { color: var(--text); font-weight: 600; }
@media (max-width: 780px) { .service-block { grid-template-columns: 1fr; gap: 16px; } }

.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 780px) { .process-steps { grid-template-columns: 1fr; } }
.process-steps .step { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.process-steps .step .step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-bottom: 16px;
}
.process-steps h3 { font-size: 17px; font-weight: 700; }
.process-steps p { margin-top: 8px; font-size: 15px; color: var(--text-muted); }

.audience-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.audience-tags span {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--surface);
}

/* ---------- Footer ---------- */
footer.site-footer { border-top: 1px solid var(--border); padding: 48px 24px; }
.footer-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-meta { font-size: 13px; color: var(--text-muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
