/* ─── Design tokens ─────────────────────────────────────────────────
   Light, editorial academic palette: warm off-white paper, deep
   charcoal text, a single restrained teal accent. Serif display type
   for headings, Inter for body, mono only for small technical labels. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:        #fafaf8;   --bg2: #f2f3ef;   --surface: #ffffff;
  --border:    #e3e6e2;   --border2: #cdd3ce;
  --accent:    #0e6b60;   --accent2: #0a5148;   --accent-soft: #e6f2ef;
  --navy:      #14213a;
  --text:      #1c2431;   --muted: #55606d;   --muted2: #8a94a0;
  --gold:      #8a5f07;   --gold-soft: #fbf3df;
  --green:     #2e6b32;   --green-soft: #e7f2e7;
  --violet:    #4f4599;   --violet-soft: #ecebf7;
  --nav-h:     68px;  --radius: 8px;  --trans: 0.2s ease;
  --shadow:    0 8px 28px rgba(20,33,58,0.08);
  --serif:     'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:      'Inter', system-ui, -apple-system, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, Menlo, monospace;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; padding-top: var(--nav-h); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--accent2); }
img { max-width: 100%; display: block; }
h1, h2, h3, .serif { font-family: var(--serif); letter-spacing: -0.01em; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 840px; margin: 0 auto; padding: 0 28px; }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 6px; font-size: 0.88rem; font-weight: 600; transition: all var(--trans); cursor: pointer; border: 1.5px solid transparent; text-decoration: none !important; line-height: 1.3; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent2); }
.btn-ghost { color: var(--muted); border-color: var(--border2); background: transparent; }
.btn-ghost:hover { color: var(--text); border-color: var(--text); }

/* ─── Navbar ───────────────────────────────────────────────────────── */
#navbar { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); background: rgba(250,250,248,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); z-index: 200; transition: box-shadow var(--trans); }
#navbar.scrolled { box-shadow: 0 2px 16px rgba(20,33,58,0.06); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 28px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: flex; flex-direction: column; line-height: 1.2; flex-shrink: 0; text-decoration: none !important; }
.nav-brand-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.nav-brand-title { font-size: 0.7rem; color: var(--accent); font-family: var(--mono); letter-spacing: 0.04em; }
.nav-brand:hover .nav-brand-name { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-links > li > a { display: block; padding: 8px 13px; font-size: 0.875rem; font-weight: 500; color: var(--muted); border-radius: 6px; transition: color var(--trans), background var(--trans); }
.nav-links > li > a:hover { color: var(--text); background: var(--bg2); }
.nav-links > li > a.active { color: var(--accent2); background: var(--accent-soft); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--border2); color: var(--text); font-size: 1.1rem; cursor: pointer; border-radius: 6px; padding: 6px 10px; }
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Page hero banner ─────────────────────────────────────────────── */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 60px 0 52px; }
.page-hero-tag { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; color: var(--navy); margin-bottom: 12px; line-height: 1.15; }
.page-hero p { color: var(--muted); font-size: 1.02rem; max-width: 620px; }

/* ─── Sections ─────────────────────────────────────────────────────── */
.section { padding: 76px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-label { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.section-title { font-size: 1.75rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.2; }
.section-bar { width: 40px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 30px; }
.section-desc { color: var(--muted); font-size: 1rem; max-width: 680px; margin: -14px 0 36px; }
.section-foot { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── HOME hero ────────────────────────────────────────────────────── */
#home-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 84px 0 76px; position: relative; overflow: hidden; }
#home-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 60% at 88% 30%, rgba(14,107,96,0.07) 0%, transparent 70%); }
.home-hero-inner { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero-tag { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero-tag::before { content: ''; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
#home-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; line-height: 1.08; color: var(--navy); margin-bottom: 10px; }
.hero-role { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 400; font-style: italic; color: var(--accent2); margin-bottom: 18px; }
.hero-sub { font-size: 1.08rem; color: var(--muted); margin-bottom: 22px; line-height: 1.65; max-width: 600px; }
.hero-domains { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.hero-domains span { font-size: 0.78rem; font-weight: 500; color: var(--accent2); background: var(--accent-soft); border: 1px solid #cfe3de; border-radius: 20px; padding: 4px 12px; }
.hero-stats { display: flex; margin-bottom: 34px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); width: fit-content; overflow: hidden; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 16px 22px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 5px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-photo { width: 240px; height: 240px; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; flex-shrink: 0; background: var(--bg2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-social { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hero-social a { font-size: 0.74rem; font-weight: 500; color: var(--muted); border: 1px solid var(--border2); border-radius: 4px; padding: 4px 10px; background: var(--surface); transition: all var(--trans); }
.hero-social a:hover { border-color: var(--accent); color: var(--accent); }

/* HOME — capability cards */
.highlight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.highlight-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; transition: border-color var(--trans), box-shadow var(--trans); display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.highlight-card:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.highlight-card-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent2); display: flex; align-items: center; justify-content: center; }
.highlight-card-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.highlight-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.highlight-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.highlight-card .tools { font-family: var(--mono); font-size: 0.7rem; color: var(--muted2); letter-spacing: 0.02em; }

/* HOME — recent pubs */
.recent-pub-list { display: flex; flex-direction: column; gap: 12px; }
.recent-pub { display: flex; align-items: flex-start; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; transition: border-color var(--trans), box-shadow var(--trans); }
.recent-pub:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.recent-pub-year { font-family: var(--mono); font-size: 0.74rem; color: var(--accent2); background: var(--accent-soft); padding: 4px 8px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.recent-pub-title { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.4; }
.recent-pub-title a { color: var(--text); }
.recent-pub-title a:hover { color: var(--accent); }
.recent-pub-meta { font-size: 0.82rem; color: var(--muted); }
.recent-pub-meta em { color: var(--text); font-style: italic; }
.recent-pub-meta strong { color: var(--text); }

/* ─── PROJECTS ──────────────────────────────────────────────────────── */
.project-group { margin-bottom: 56px; }
.project-group:last-child { margin-bottom: 0; }
.project-group-title { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.project-group-desc { font-size: 0.92rem; color: var(--muted); margin-bottom: 22px; max-width: 700px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 10px; transition: border-color var(--trans), box-shadow var(--trans); }
.project-card:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.project-card.featured { border-top: 3px solid var(--accent); }
.project-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.project-name { font-size: 1.08rem; font-weight: 700; color: var(--navy); }
.project-name a { color: var(--navy); }
.project-name a:hover { color: var(--accent); }
.project-lang { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.project-lang::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--accent)); display: inline-block; }
.lang-r      { --dot: #276dc3; }
.lang-python { --dot: #3572a5; }
.lang-shell  { --dot: #89b04a; }
.lang-mixed  { --dot: #8a5f07; }
.project-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.65; flex: 1; }
.project-desc strong { color: var(--text); }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags span { font-size: 0.7rem; font-weight: 500; color: var(--muted); background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 4px; }
.project-links a { font-size: 0.78rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.project-links a:hover { color: var(--accent2); text-decoration: underline; }
.project-links a.paper { color: var(--gold); }
.project-links a.live  { color: var(--green); }
.project-links svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── CURRENT PROJECTS ──────────────────────────────────────────────── */
.current-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.current-card { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow var(--trans); }
.current-card:hover { box-shadow: var(--shadow); }
.current-partner { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent2); }
.current-partner .chip { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 0.7rem; font-weight: 600; color: var(--gold); background: var(--gold-soft); border-radius: 4px; padding: 2px 8px; }
.current-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.current-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.current-card p strong { color: var(--text); }
.current-card ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.current-card li { font-size: 0.85rem; color: var(--muted); padding-left: 16px; position: relative; }
.current-card li::before { content: '▹'; position: absolute; left: 0; color: var(--accent); }
.current-card .tools { font-family: var(--mono); font-size: 0.7rem; color: var(--muted2); border-top: 1px solid var(--border); padding-top: 10px; margin-top: auto; }
.status-chip { display: inline-block; font-size: 0.7rem; font-weight: 600; color: var(--green); background: var(--green-soft); border-radius: 4px; padding: 2px 8px; }
.status-chip.dev { color: var(--violet); background: var(--violet-soft); }

/* ─── ABOUT ─────────────────────────────────────────────────────────── */
.about-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.about-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nav-h) + 24px); }
.about-photo { width: 220px; height: 220px; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-links { display: flex; flex-direction: column; gap: 8px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; font-weight: 500; color: var(--muted); padding: 9px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; transition: all var(--trans); text-decoration: none !important; }
.sidebar-link:hover { border-color: var(--accent); color: var(--accent); }
.sidebar-link-icon { font-size: 1rem; flex-shrink: 0; }
.about-content p { color: var(--muted); margin-bottom: 16px; font-size: 1rem; line-height: 1.8; }
.about-content p.lead { font-family: var(--serif); font-size: 1.22rem; color: var(--text); line-height: 1.6; }
.about-content strong { color: var(--text); }
.about-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.timeline { position: relative; padding-left: 28px; margin-top: 8px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--border); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -28px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.timeline-year { font-family: var(--mono); font-size: 0.71rem; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 3px; }
.timeline-degree { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.timeline-inst { font-size: 0.87rem; color: var(--muted); }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.pill { padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 500; background: var(--surface); border: 1px solid var(--border2); color: var(--text); }

/* ─── RESEARCH ──────────────────────────────────────────────────────── */
.research-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.research-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; border-top: 3px solid var(--accent); transition: box-shadow var(--trans), border-color var(--trans); }
.research-card:hover { box-shadow: var(--shadow); border-color: var(--border2); border-top-color: var(--accent); }
.research-card-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent2); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.research-card-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.research-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.research-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.research-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 0; }
.research-card li { font-size: 0.85rem; color: var(--muted); padding-left: 16px; position: relative; }
.research-card li::before { content: '▹'; position: absolute; left: 0; color: var(--accent); }
.research-card .card-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }
.research-card .card-foot a { font-weight: 600; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.skill-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; }
.skill-group h3 { font-family: var(--sans); font-size: 0.76rem; font-weight: 700; color: var(--accent2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.skill-group ul { list-style: none; padding: 0; }
.skill-group li { font-size: 0.87rem; color: var(--muted); padding: 5px 0 5px 16px; border-bottom: 1px solid var(--bg2); position: relative; }
.skill-group li:last-child { border-bottom: none; }
.skill-group li::before { content: '▹'; position: absolute; left: 0; color: var(--accent); }
.skill-group li strong { color: var(--text); font-weight: 600; }

/* ─── PUBLICATIONS ──────────────────────────────────────────────────── */
.metrics-bar { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 44px; }
.metric { flex: 1; padding: 22px 20px; text-align: center; border-right: 1px solid var(--border); }
.metric:last-child { border-right: none; }
.metric-num { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 5px; }
.metric-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.pub-year-group { margin-bottom: 44px; }
.pub-year-heading { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--border); padding-bottom: 8px; margin-bottom: 16px; }
.pub-list { display: flex; flex-direction: column; gap: 14px; }
.pub-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; transition: border-color var(--trans), box-shadow var(--trans); }
.pub-card:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.pub-card.featured { border-left: 3px solid var(--accent); }
.pub-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; line-height: 1.45; }
.pub-title a { color: var(--text); }
.pub-title a:hover { color: var(--accent); }
.pub-authors { font-size: 0.84rem; color: var(--muted); margin-bottom: 5px; }
.pub-authors strong { color: var(--text); }
.pub-journal { font-size: 0.84rem; color: var(--muted); }
.pub-journal em { color: var(--text); }
.pub-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.badge { font-size: 0.7rem; font-family: var(--mono); padding: 2px 9px; border-radius: 4px; font-weight: 500; border: 1px solid transparent; }
.badge-cites { background: var(--accent-soft); color: var(--accent2); }
.badge-nc   { background: var(--gold-soft); color: var(--gold); }
.badge-cell { background: var(--gold-soft); color: var(--gold); }
.badge-plos { background: var(--green-soft); color: var(--green); }
.badge-npj  { background: var(--violet-soft); color: var(--violet); }
.badge-acs  { background: var(--gold-soft); color: var(--gold); }
.badge-jci  { background: var(--accent-soft); color: var(--accent2); }
.badge-pmid { background: var(--bg2); color: var(--muted); border-color: var(--border); text-decoration: none !important; }
.badge-pmid:hover { color: var(--accent); border-color: var(--accent); }
.badge-doi  { background: var(--accent-soft); color: var(--accent2); text-decoration: none !important; }
.badge-doi:hover { color: var(--accent); }
.badge-status  { background: var(--green-soft); color: var(--green); }
.badge-cofirst { background: var(--gold-soft); color: var(--gold); }
.badge-first   { background: var(--accent-soft); color: var(--accent2); }
.recent-pub .pub-badges { margin-top: 8px; }
.cofirst { color: var(--accent2); font-weight: 600; cursor: help; }
.pub-loading { color: var(--muted); font-size: 0.9rem; padding: 40px 0; display: flex; align-items: center; gap: 12px; }
.pub-loading::before { content: ''; width: 18px; height: 18px; border: 2px solid var(--border2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── CONTACT ───────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 44px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; transition: border-color var(--trans), box-shadow var(--trans); text-decoration: none !important; }
.contact-card:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.contact-icon { font-size: 1.4rem; line-height: 1; }
.contact-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent2); }
.contact-val { font-size: 0.86rem; color: var(--muted); word-break: break-all; }
.contact-info-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-info-box h3 { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; color: var(--accent2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.contact-info-box address { font-size: 0.9rem; color: var(--muted); font-style: normal; line-height: 1.8; }

/* ─── Footer ───────────────────────────────────────────────────────── */
footer { background: var(--navy); color: #c7cfdb; padding: 36px 0; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 0 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-left { font-size: 0.84rem; color: #aab4c3; }
.footer-left strong { color: #fff; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; color: #c7cfdb; }
.footer-links a:hover { color: #fff; }

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo-wrap { order: -1; align-items: flex-start; }
  .hero-social { justify-content: flex-start; }
  .hero-photo { width: 150px; height: 150px; }
  .highlight-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 0; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links > li > a { border-radius: 0; padding: 12px 24px; }
  .nav-toggle { display: flex; }
  #home-hero { padding: 48px 0 56px; }
  .hero-stats { width: 100%; flex-wrap: wrap; }
  .stat { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .metrics-bar { flex-wrap: wrap; }
  .metric { border-right: none; border-bottom: 1px solid var(--border); flex: 1 1 50%; }
  .contact-info-box { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
