/* ==========================================================================
   Tunde Olarinoye: premium, minimalist, scientific and international.
   Palette and type follow DESIGN.md. Fonts are self-hosted (no third-party requests).
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* brand */
  --ocean: #123B50;        /* primary */
  --teal: #167C80;         /* accent */
  --mist: #E6F0ED;         /* background tint */
  --gold: #D4A85A;         /* highlights */
  --canvas: #F6F8FA;       /* main canvas */
  --ink: #263746;          /* typography */

  /* semantic (light) */
  --bg: var(--canvas);
  --bg-alt: var(--mist);
  --surface: #ffffff;
  --text: var(--ink);
  --heading: var(--ocean);
  --muted: #566878;
  --line: #d9e2e6;
  --accent: var(--teal);
  --accent-strong: #0f5f63;
  --accent-soft: #dcebe8;
  --hero-bg: var(--ocean);
  --ok: #2f7d4f;

  --font-head: "Manrope", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1160px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(18, 59, 80, .06), 0 8px 24px -12px rgba(18, 59, 80, .18);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1c26;
  --bg-alt: #0f2531;
  --surface: #12303f;
  --text: #d9e4ea;
  --heading: #f2f7f9;
  --muted: #9bb0bc;
  --line: #21414f;
  --accent: #4fc3c6;
  --accent-strong: #7bd6d8;
  --accent-soft: #123a45;
  --hero-bg: #0a2331;
  --ok: #6cc18f;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1c26; --bg-alt: #0f2531; --surface: #12303f; --text: #d9e4ea; --heading: #f2f7f9;
    --muted: #9bb0bc; --line: #21414f; --accent: #4fc3c6; --accent-strong: #7bd6d8; --accent-soft: #123a45;
    --hero-bg: #0a2331; --ok: #6cc18f; color-scheme: dark;
  }
}

/* --------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
a:hover { color: var(--accent-strong); text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--heading); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--gold) 45%, transparent); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--font-mono); font-size: .85em; }
.h3 { font-size: 1.35rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); flex: none; }
.brand-mark { font: 800 1.55rem/1 var(--font-head); letter-spacing: -0.04em; color: var(--heading); }
.brand-mark i { font-style: normal; color: var(--gold); }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font: 800 .95rem/1.2 var(--font-head); letter-spacing: .14em; }
.brand-role { font: 600 .56rem/1.4 var(--font-head); letter-spacing: .16em; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { display: block; padding: 8px 12px; color: var(--text); text-decoration: none; font: 500 .92rem/1 var(--font-body); border-radius: 8px; }
.nav-links a:hover { color: var(--accent); background: var(--bg-alt); }
.nav-links a.active { color: var(--accent); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-links a.nav-cta { background: var(--ocean); color: #fff; margin-left: 8px; padding: 10px 18px; border-radius: 999px; }
.nav-links a.nav-cta:hover { background: var(--teal); color: #fff; }
:root[data-theme="dark"] .nav-links a.nav-cta { background: var(--teal); }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; margin-left: 4px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--text); background: var(--bg-alt); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
.nav-toggle { display: none; }

@media (max-width: 1040px) {
  .nav-toggle { display: grid; gap: 6px; width: 40px; height: 40px; place-content: center; border: 0; background: none; cursor: pointer; }
  .nav-toggle span { display: block; width: 22px; height: 1.8px; background: var(--heading); transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.9px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.9px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 18px; background: var(--bg); border-bottom: 1px solid var(--line); display: none;
    box-shadow: 0 18px 30px -20px rgba(18, 59, 80, .35);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 4px; }
  .nav-links a.active { box-shadow: none; color: var(--accent); font-weight: 700; }
  .nav-links a.nav-cta { margin: 8px 0 0; text-align: center; }
  .theme-toggle { margin: 6px 0 0; }
}
@media (max-width: 420px) { .brand-role { display: none; } }

/* --------------------------------------------------------------- buttons, chips, links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--heading);
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, color .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-primary { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.btn-primary:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
:root[data-theme="dark"] .btn-primary { background: var(--teal); border-color: var(--teal); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1a2c38; }
.btn-gold:hover { background: #e2b96d; border-color: #e2b96d; color: #1a2c38; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--ocean); }
.btn-light:hover { background: var(--mist); color: var(--ocean); border-color: var(--mist); }
.btn-block { display: flex; width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin-left .15s; }
.link-arrow:hover::after { margin-left: 4px; }
.link-btn { background: none; border: 0; padding: 0; margin-left: 8px; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: .9rem; font-weight: 500; }
.chips-sm li { padding: 5px 11px; font-size: .84rem; background: var(--surface); color: var(--text); border: 1px solid var(--line); font-weight: 400; }

.tag, .tag-link {
  display: inline-block; padding: 2px 9px; border-radius: 5px; font: 600 .7rem/1.7 var(--font-body);
  letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); text-decoration: none; background: var(--surface);
}
.tag-link:hover { border-color: var(--accent); color: var(--accent); }
.tag.oa { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }

.eyebrow { font: 700 .76rem/1.4 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.eyebrow-light { color: var(--gold); }
.label { font: 700 .68rem var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 8px; }
.mini-head { font: 700 .78rem/1.4 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }

/* --------------------------------------------------------------- hero */
.hero { position: relative; background: var(--hero-bg); color: #e8f1f4; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(100px, 13vw, 170px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(22,124,128,.55), transparent 65%),
    radial-gradient(50% 60% at 0% 100%, rgba(22,124,128,.25), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-kicker { font: 700 .8rem/1.4 var(--font-head); letter-spacing: .26em; color: var(--gold); margin: 0 0 18px; }
.hero-name { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: .01em; line-height: 1.02; color: #fff; margin-bottom: 22px; }
.hero-title { font: 600 clamp(1.3rem, 2.6vw, 1.9rem)/1.3 var(--font-head); letter-spacing: -0.01em; color: #fff; max-width: 22em; margin-bottom: 14px; }
.hero-lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: #c3d6de; max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-position { margin: 34px 0 0; font-size: .9rem; color: #a9c3cd; }
.hero-position a { color: #e8f1f4; }
.hero-loc { color: #a9c3cd; }
.hero .dot { display: inline-block; margin-right: 8px; vertical-align: middle; width: 8px; height: 8px; border-radius: 50%; background: #6fe0a4; box-shadow: 0 0 0 4px rgba(111,224,164,.2); }
.hero-portrait { margin: 0; position: relative; justify-self: center; width: min(100%, 400px); }
.hero-portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--gold); border-radius: 28px; opacity: .7; }
.hero-portrait img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: 28px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(70px, 11vw, 150px); z-index: -1; }
.hg-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3s ease-out .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; width: min(66%, 260px); justify-self: start; }
  .hero-portrait::before { inset: 12px -12px -12px 12px; border-radius: 22px; }
  .hero-portrait img { border-radius: 22px; }
}

/* --------------------------------------------------------------- sections */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-mist { background: var(--bg-alt); }
.sec-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: .35em; }
.lead-sm { font-size: 1.12rem; color: var(--muted); max-width: 46rem; }
.subhead { font: 700 .78rem/1.4 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 40px 0 16px; }
.section-more { margin: 28px 0 0; }
.prose p { max-width: 68ch; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-wide { grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }

/* page banner (inner pages) */
.page-hero { background: var(--hero-bg); color: #fff; padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -8%; top: -50%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(22,124,128,.5), transparent 65%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); color: #fff; max-width: 20em; margin-bottom: 16px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #c3d6de; max-width: 42em; margin: 0; }

/* --------------------------------------------------------------- homepage intro */
.intro-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.intro-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .15em; }
.intro-role { font: 600 1.02rem/1.4 var(--font-head); color: var(--accent); margin-bottom: 1.4em; }
.intro-first { font-size: 1.18rem; color: var(--heading); }
.intro-welcome { font-weight: 600; color: var(--heading); }
.credibility { list-style: none; display: grid; gap: 14px; }
.credibility li { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 18px 22px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.cred-value { font: 800 2rem/1.1 var(--font-head); color: var(--heading); letter-spacing: -0.02em; }
.cred-label { font: 700 .92rem var(--font-head); color: var(--accent); }
.cred-detail { font-size: .86rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } .credibility { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .credibility { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- cards */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: border-color .2s, transform .2s, box-shadow .2s; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover, .card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-3px); color: inherit; }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.card-icon svg { width: 24px; height: 24px; }
.card-title { font-size: 1.22rem; line-height: 1.3; margin-bottom: 10px; }
.card-text { color: var(--muted); font-size: .97rem; margin: 0; }
.card-more { position: absolute; right: 24px; bottom: 20px; color: var(--gold); font-size: 1.3rem; transition: transform .2s; }
.card-link:hover .card-more { transform: translateX(4px); }
.card-link { padding-bottom: 48px; }
.card-meta { font: 700 .7rem/1.4 var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 10px; }
.card-feature .card-text { margin-bottom: 14px; }
.card-outcome { margin: 0 0 14px; font-size: .92rem; }
.card-who { font-weight: 600; color: var(--heading); font-size: .97rem; }
.card-entry .link-arrow { display: inline-block; margin-top: 14px; }

/* feature band (advisory CTA) */
.feature-band { background: var(--ocean); color: #d5e4ea; padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
:root[data-theme="dark"] .feature-band { background: #0a2331; }
.feature-band::before { content: ""; position: absolute; left: -10%; bottom: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(22,124,128,.5), transparent 65%); }
.feature-grid { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.feature-band p { max-width: 38em; }
.feature-strong { font: 700 1.1rem var(--font-head); color: #fff; margin-top: 1.4em; }
.feature-list { list-style: none; display: grid; }
.feature-list li { border-top: 1px solid rgba(255,255,255,.18); }
.feature-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.feature-list a { display: flex; justify-content: space-between; padding: 14px 4px; color: #fff; text-decoration: none; font: 600 .98rem var(--font-head); }
.feature-list a::after { content: "→"; color: var(--gold); }
.feature-list a:hover { color: var(--gold); }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

.engage-list { list-style: none; display: grid; gap: 10px; }
.engage-list li { padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 500; box-shadow: var(--shadow); }
.check-list { list-style: none; display: grid; gap: 12px; margin-bottom: 24px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 18px; height: 10px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg) scale(.85); transform-origin: left bottom; top: .35em; left: 3px; }
.photo-card { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ocean); }
.photo-card img { width: 100%; height: auto; }
.photo-card figcaption { padding: 12px 18px; font-size: .82rem; color: #b9cfd8; background: var(--ocean); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--teal), var(--ocean)); color: #fff; padding: clamp(44px, 6vw, 72px) 0; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 40em; color: #dcebee; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------- timeline */
.timeline { list-style: none; }
.tl-item { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 0 0 36px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-date { font: 600 .84rem/1.9 var(--font-head); color: var(--muted); margin: 0; }
.tl-body { border-left: 2px solid var(--line); padding-left: 28px; position: relative; }
.tl-body::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--accent); }
.section-mist .tl-body::before { background: var(--bg-alt); }
.tl-item:first-child .tl-body::before { background: var(--gold); border-color: var(--gold); }
.tl-title { font-size: 1.2rem; margin-bottom: 4px; }
.tl-org { margin-bottom: 10px; font-weight: 500; }
.tl-org a { color: var(--heading); }
.tl-points { padding-left: 1.15em; color: var(--text); font-size: .97rem; }
.tl-points li { margin-bottom: 6px; }
.tl-points li::marker { color: var(--gold); }
.tl-note { font-size: .95rem; margin-bottom: 8px; }
@media (max-width: 640px) { .tl-item { grid-template-columns: 1fr; gap: 4px; } }

.plain-list { list-style: none; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.plain-list .mono { margin-right: 10px; display: inline-block; min-width: 4.4em; }
.plain-list-2 { columns: 2 340px; column-gap: 40px; }
.plain-list-2 li { break-inside: avoid; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 56px; }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.skill-head { font: 700 .98rem var(--font-head); color: var(--heading); margin-bottom: 10px; }
.regions { font-size: .97rem; margin-top: 24px; }

/* --------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.about-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.about-name { font: 800 1.2rem var(--font-head); color: var(--heading); margin-bottom: 4px; }
.tablist { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tablist button { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 600 .92rem var(--font-body); cursor: pointer; }
.tablist button span { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: 6px; }
.tablist button[aria-selected="true"] { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.tablist button[aria-selected="true"] span { color: #b9cfd8; }
:root[data-theme="dark"] .tablist button[aria-selected="true"] { background: var(--teal); border-color: var(--teal); }
.tabpanel[hidden] { display: none; }
.panel-note { margin-top: 18px; }
.tabpanel p { max-width: 70ch; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-aside { position: static; max-width: 280px; } }

/* --------------------------------------------------------------- research */
.spotlight { background: var(--ocean); color: #d5e4ea; border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); display: grid; gap: 28px; position: relative; overflow: hidden; }
:root[data-theme="dark"] .spotlight { background: #0a2331; }
.spotlight::after { content: ""; position: absolute; right: -10%; top: -40%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(22,124,128,.55), transparent 65%); }
.spotlight > * { position: relative; z-index: 1; }
.spotlight h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 22em; }
.spotlight p { max-width: 50em; }
.spotlight-meta { font: 700 .86rem var(--font-head); color: var(--gold); letter-spacing: .04em; }
.spotlight-cite { color: #a9c3cd; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; margin: 0; }
.spotlight-cite .pub-authors, .spotlight-cite .pub-title, .spotlight-cite .pub-venue em { color: #d5e4ea; }
.spotlight-cite .pub-authors .me { color: #fff; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.themes { width: 100%; border-collapse: collapse; }
.themes th, .themes td { text-align: left; padding: 16px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.themes thead th { font: 700 .74rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
.themes tbody th { font: 700 1rem var(--font-head); color: var(--heading); width: 30%; }
.themes tbody tr:last-child th, .themes tbody tr:last-child td { border-bottom: 0; }

.projects { display: grid; gap: 28px; }
.project { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(20px, 4vw, 56px); padding: 32px 0; border-top: 1px solid var(--line); }
.project:first-child { border-top: 0; padding-top: 0; }
.project h3 { font-size: 1.3rem; margin-bottom: 8px; }
.project-role { font-size: .93rem; color: var(--muted); }
@media (max-width: 760px) { .project { grid-template-columns: 1fr; gap: 12px; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); font: 600 .88rem var(--font-body); cursor: pointer; }
.filter span { font-weight: 400; opacity: .7; margin-left: 4px; }
.filter:hover { color: var(--accent); border-color: var(--accent); }
.filter.is-active { background: var(--ocean); color: #fff; border-color: var(--ocean); }
:root[data-theme="dark"] .filter.is-active { background: var(--teal); border-color: var(--teal); }
.pubs { list-style: none; }
.pub { padding: 22px 0 22px 52px; border-top: 1px solid var(--line); position: relative; }
.pub:last-child { border-bottom: 1px solid var(--line); }
.pub::before { content: "[" attr(data-n) "]"; position: absolute; left: 0; top: 23px; font: 600 .84rem var(--font-head); color: var(--accent); }
.pub[hidden] { display: none; }
.pub-nonum, .pubs-home .pub { padding-left: 0; }
.pub-nonum::before, .pubs-home .pub::before { content: none; }
.pub-cite { margin-bottom: 8px; font-size: .98rem; }
.pub-authors { color: var(--muted); }
.pub-authors .me { color: var(--heading); font-weight: 700; }
.pub-title { font-weight: 600; color: var(--heading); }
.pub-summary { font-size: .93rem; color: var(--muted); margin: 0 0 10px; }
.pub-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.profile-inline { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; }

/* --------------------------------------------------------------- expertise */
.pillars { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.pillars li { border-top: 3px solid var(--gold); padding-top: 18px; }
.pillar-num { font: 800 .85rem var(--font-head); color: var(--accent); letter-spacing: .1em; }
.pillars h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.pillars p { color: var(--muted); font-size: .95rem; margin: 0; }
.area { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(24px, 5vw, 72px); }
.area-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.area-num { font: 800 3rem/1 var(--font-head); color: var(--gold); margin-bottom: 10px; letter-spacing: -0.04em; }
.area-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.area-evidence { grid-column: 2; font-size: .93rem; padding: 14px 18px; background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 0; }
.section-mist .area-evidence { background: var(--surface); }
@media (max-width: 900px) { .area { grid-template-columns: 1fr; } .area-evidence { grid-column: 1; } }
@media (max-width: 600px) { .area-cols { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- advisory */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 3px solid var(--teal); }
.service-num { font: 800 .85rem var(--font-head); color: var(--gold); letter-spacing: .1em; margin-bottom: 8px; }
.service h3 { font-size: 1.2rem; }
.service-text { color: var(--muted); font-size: .96rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; counter-reset: s; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ocean); color: #fff; font: 800 1rem var(--font-head); margin-bottom: 14px; }
:root[data-theme="dark"] .step-n { background: var(--teal); }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.note-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 24px 26px; }
.note-box p { margin: 0; font-size: .95rem; }

/* --------------------------------------------------------------- insights */
.talks { list-style: none; }
.talk { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.talk:last-child { border-bottom: 1px solid var(--line); }
.talk-year { font: 700 .9rem var(--font-head); color: var(--accent); }
.talk-title { display: block; font-weight: 600; color: var(--heading); }
.talk-event { display: block; color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .talk { grid-template-columns: 70px 1fr; } .talk .tag { display: none; } }
.empty { padding: 24px 28px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); }
.article-list { list-style: none; }
.article-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }

/* --------------------------------------------------------------- forms, contact */
.form-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.enquiry { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field span { font: 700 .78rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font: 400 1rem var(--font-body);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.form-actions p { margin: 10px 0 0; }
.profile-links { list-style: none; display: grid; gap: 10px; margin: 20px 0 24px; }
.profile-links a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--heading); text-decoration: none; font-weight: 500; transition: border-color .15s, transform .15s; }
.profile-links a:hover { border-color: var(--accent); transform: translateX(3px); }
.profile-links svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.profile-links span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-line { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.location-line svg { width: 20px; height: 20px; color: var(--gold); }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--ocean); color: #b9cfd8; padding: 56px 0 0; font-size: .92rem; }
:root[data-theme="dark"] .site-footer { background: #081a25; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.footer-name { font: 800 1.05rem var(--font-head); letter-spacing: .14em; color: #fff; margin-bottom: 4px; }
.footer-role { color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.footer-tag { max-width: 24em; margin: 0; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-nav ul { list-style: none; display: grid; gap: 8px; align-content: start; }
.footer-nav a { color: #d5e4ea; text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; font-size: .82rem; color: #8fa9b4; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .footer-nav { grid-template-columns: repeat(2, 1fr); } }

.legal, .notfound { padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 40px); }
.narrow { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.notfound .lead { font-size: 1.2rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hg-line { animation: none; stroke-dashoffset: 0; }
  * { transition: none !important; }
}

/* ==========================================================================
   Printable documents: academic CV, résumé, one-page profile (screen + print)
   ========================================================================== */
.doc { max-width: 880px; padding-top: 36px; padding-bottom: 72px; font-size: .97rem; line-height: 1.6; }
.doc-toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.doc-switch { font-size: .9rem; color: var(--muted); }
.doc-header { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding-bottom: 18px; border-bottom: 3px solid var(--ocean); margin-bottom: 6px; }
.doc-header h1 { font-size: 2.2rem; margin-bottom: 4px; }
.doc-headline { color: var(--accent); font: 700 1rem var(--font-head); margin: 0 0 2px; }
.doc-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.doc-contact { list-style: none; text-align: right; font-size: .85rem; line-height: 1.7; }
.doc-section { padding: 18px 0 6px; }
.doc-section h2 { font: 800 .8rem/1.4 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 14px; }
.doc-section h3 { font: 700 .95rem var(--font-head); margin: 14px 0 8px; }
.doc-entry { display: grid; grid-template-columns: 130px 1fr; gap: 16px; margin-bottom: 14px; break-inside: avoid; }
.doc-date { font: 600 .82rem/1.7 var(--font-head); color: var(--muted); margin: 0; }
.doc-title { font-weight: 700; color: var(--heading); margin: 0; }
.doc-org { margin: 0 0 4px; color: var(--muted); }
.doc-note { margin: 0 0 4px; font-size: .93rem; }
.doc-entry ul, .doc-section > ul, .doc-pubs { padding-left: 1.2em; }
.doc-entry li, .doc-section > ul li { margin-bottom: 3px; }
.doc-pubs li { margin-bottom: 8px; break-inside: avoid; }
.doc-compact { list-style: none; padding: 0 !important; }
.doc-compact li { margin-bottom: 6px; padding-left: 92px; text-indent: -92px; }
.doc-date-inline { display: inline-block; width: 88px; text-indent: 0; font: 600 .8rem var(--font-head); color: var(--muted); }
.doc-skills { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; margin: 0; }
.doc-skills dt { font-weight: 700; color: var(--heading); }
.doc-skills dd { margin: 0; color: var(--text); }
.doc-footer { margin-top: 28px; font-size: .8rem; }
@media (max-width: 640px) { .doc-header { grid-template-columns: 1fr; } .doc-contact { text-align: left; } .doc-entry, .doc-skills { grid-template-columns: 1fr; gap: 2px; } .doc-compact li { padding-left: 0; text-indent: 0; } .doc-date-inline { display: block; } }

.sheet { max-width: 800px; }
.sheet-head { display: flex; gap: 28px; align-items: center; padding-bottom: 18px; border-bottom: 3px solid var(--gold); margin-bottom: 18px; }
.sheet-head img { width: 140px; height: 140px; border-radius: 14px; object-fit: cover; flex: none; }
.sheet-head h1 { font-size: 2rem; letter-spacing: .06em; margin-bottom: 4px; }
.sheet-brand { font: 800 1.1rem var(--font-head); color: var(--gold); margin: 0 0 4px; }
.sheet-statement { font: 700 1.25rem/1.3 var(--font-head); color: var(--ocean); }
.sheet-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.sheet h2 { font: 800 .78rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 5px; margin: 14px 0 8px; }
.sheet ul { padding-left: 1.1em; font-size: .93rem; }
.sheet li { margin-bottom: 3px; }
.sheet-foot { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; }
@media (max-width: 640px) { .sheet-cols { grid-template-columns: 1fr; } .sheet-head { flex-direction: column; align-items: flex-start; } }

@media print {
  @page { size: A4; margin: 15mm 14mm; }
  :root, :root[data-theme="dark"] {
    --bg: #fff; --bg-alt: #fff; --surface: #fff; --text: #1d2a34; --heading: #123B50; --muted: #4a5a66; --line: #cfd8dd; --accent: #0f6a6e; --accent-strong: #0f6a6e;
    color-scheme: light;
  }
  body { font-size: 9.6pt; line-height: 1.42; background: #fff; }
  .site-header, .site-footer, .no-print, .skip-link { display: none !important; }
  .doc { max-width: none; padding: 0; font-size: inherit; }
  .doc-header h1 { font-size: 20pt; }
  .doc-section { padding-top: 12px; }
  a { color: inherit; text-decoration: none; }
  .doc-pubs a, .doc-contact a { color: var(--accent); }
  .sheet-head img { width: 110px; height: 110px; }
  .sheet { page-break-inside: avoid; }
}

.download-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
