:root {
  --bg: #ffffff; --fg: #1d2421; --muted: #5d6763; --line: #e1e6e3;
  --hero: #243230; --hero2: #2f4440; --accent: #0b7a6b; --card: #f5f8f6;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #131817; --fg: #e8eeeb; --muted: #97a39e; --line: #26302d;
          --hero: #0f1d1b; --hero2: #1b2f2b; --accent: #4fc3b0; --card: #1a2220; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 17px/1.7 "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }

header.top { position: sticky; top: 0; z-index: 10; background: var(--hero); color: #fff;
             display: flex; justify-content: space-between; align-items: center;
             padding: 14px 28px; flex-wrap: wrap; gap: 8px; }
header.top .brand { font-size: 1.15rem; font-weight: 300; color: #fff; text-decoration: none; }
header.top nav a { color: #cfd9d6; text-decoration: none; margin-left: 22px; font-size: .98rem; }
header.top nav a:hover, header.top nav a[aria-current] { color: #fff; font-weight: 700; }

.hero { background: linear-gradient(135deg, var(--hero) 0%, var(--hero2) 100%); color: #fff;
        padding: 64px 16px; }
.hero .inner { max-width: 960px; margin: 0 auto; display: flex; gap: 48px; align-items: center; }
.hero img.photo { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; flex: none;
                  border: 4px solid rgba(255,255,255,.9);
                  box-shadow: 0 0 0 8px rgba(79,195,176,.25), 0 18px 40px rgba(0,0,0,.35); }
.about { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.about img.portrait { width: 100%; height: auto; border-radius: 10px; display: block;
                      box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.about .portrait-wrap { position: relative; }
.about .portrait-wrap::before { content: ""; position: absolute; inset: 14px -14px -14px 14px;
                                border: 2px solid var(--accent); border-radius: 10px; z-index: -1; }
.about .portrait-wrap { z-index: 0; isolation: isolate; }
.hero h1 { font-size: 3.2rem; font-weight: 300; margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
.hero p { font-size: 1.35rem; font-weight: 300; margin: 8px 0 0; color: #dbe5e2; }
.hero.small { padding: 40px 16px; }
.hero.small h1 { font-size: 2.3rem; }

main { max-width: 860px; margin: 0 auto; padding: 48px 16px 80px; }
h2 { font-size: 2rem; font-weight: 300; color: var(--accent); margin: 52px 0 12px; line-height: 1.2; }
h2:first-child { margin-top: 0; }
h3 { font-size: 1.1rem; margin: 28px 0 6px; }
p { margin: 0 0 14px; }
ul { padding-left: 1.2em; }
ul li { margin-bottom: 4px; }
.lead { font-size: 1.1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 20px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card a.more { display: inline-block; margin-top: 10px; font-size: .95rem; }

.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 24px 0; }
.stat div { border-left: 3px solid var(--accent); padding: 4px 14px; }
.stat b { display: block; font-size: 2rem; font-weight: 300; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: .9rem; }

ol.pipeline { padding-left: 1.3em; }
ol.pipeline li { margin-bottom: 8px; }

figure { margin: 24px 0; border: 1px solid var(--line); border-radius: 6px; padding: 14px; background: #fff; }
figure img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
figcaption { font-size: .88rem; color: #5d6763; margin-top: 8px; }

table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 16px 0; }
th, td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: center; }
th { background: var(--card); }
td:first-child, th:first-child { text-align: left; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem;
         max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about .portrait-wrap { max-width: 280px; margin: 0 auto 8px; order: -1; }
}
@media (max-width: 640px) {
  .hero .inner { flex-direction: column; text-align: center; gap: 20px; }
  .hero h1 { font-size: 2.3rem; }
  header.top nav a { margin: 0 14px 0 0; }
}
