/* Portfolio — Ubokobong Effiong */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f0f3f7;
  --text: #16202c;
  --muted: #5a6778;
  --border: #e2e7ee;
  --accent: #0b6e72;
  --accent-2: #0e8a8f;
  --accent-soft: #e3f3f3;
  --ink: #0d2a3a;
  --warn-soft: #fff4e0;
  --warn: #9a5b00;
  --blue-soft: #e8effc;
  --blue: #2350a8;
  --violet-soft: #f0eafb;
  --violet: #6a3fb5;
  --green-soft: #e4f5e9;
  --green: #1d7a3e;
  --grey-soft: #eef0f3;
  --grey: #555f6d;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --radius: 14px;
  --maxw: 1140px;
  --nav-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141b;
    --surface: #151d26;
    --surface-2: #1b2530;
    --text: #e6ebf1;
    --muted: #9aa7b6;
    --border: #263240;
    --accent: #3cc3c8;
    --accent-2: #5fd4d8;
    --accent-soft: #14343a;
    --ink: #07161f;
    --warn-soft: #3a2a10;
    --warn: #f0b75a;
    --blue-soft: #18284a;
    --blue: #8fb0f2;
    --violet-soft: #2a1f42;
    --violet: #c2a6f2;
    --green-soft: #15321f;
    --green: #7fd69a;
    --grey-soft: #222b36;
    --grey: #b3bdc9;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--text); }
p { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.2em; }
li { margin-bottom: .35em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .25s, border-color .25s;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--text); letter-spacing: -.01em; white-space: nowrap; }
.brand em { color: var(--accent); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { margin: 0; position: relative; }
.nav-single, .nav-group-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px;
  color: var(--muted); font: inherit; font-size: .92rem; font-weight: 600;
  background: none; border: 0; cursor: pointer;
}
.nav-group-btn i { font-size: .7rem; transition: transform .2s; }
.nav-single:hover, .nav-group-btn:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-single.active, .nav-group.has-active > .nav-group-btn { color: var(--accent); background: var(--accent-soft); }
.nav-cta {
  display: inline-flex; padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 700;
  background: var(--accent); color: #fff; margin-left: 6px;
}
.nav-cta:hover { background: var(--accent-2); text-decoration: none; }
@media (prefers-color-scheme: dark) { .nav-cta { color: var(--ink); } }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px);
  min-width: 250px; padding: 8px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(16, 24, 40, .16);
  display: grid; gap: 2px; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu, .nav-group.open .nav-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-group:hover .nav-group-btn i, .nav-group.open .nav-group-btn i { transform: rotate(180deg); }
.nav-menu a { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 9px; color: var(--text); }
.nav-menu a strong { font-size: .9rem; font-weight: 600; }
.nav-menu a small { font-size: .78rem; color: var(--muted); }
.nav-menu a:hover { background: var(--surface-2); text-decoration: none; }
.nav-menu a.active { background: var(--accent-soft); }
.nav-menu a.active strong { color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 6px 10px; font-size: 1.3rem; cursor: pointer;
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 8px 16px 20px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-group-btn { width: 100%; justify-content: flex-start; padding: 14px 4px 6px; font-size: .75rem;
    text-transform: uppercase; letter-spacing: .08em; color: var(--muted); pointer-events: none; }
  .nav-group-btn i { display: none; }
  .nav-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0;
    padding: 0; min-width: 0; background: transparent; grid-template-columns: 1fr 1fr; }
  .nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu, .nav-group.open .nav-menu { transform: none; }
  .nav-single { padding: 14px 4px 6px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
  .nav-cta { justify-content: center; margin: 14px 0 0; padding: 12px; }
}
@media (max-width: 420px) { .nav-menu { grid-template-columns: 1fr; } }

/* Reading progress */
.read-progress { position: fixed; top: var(--nav-h); left: 0; right: 0; height: 3px; z-index: 49; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- Buttons / badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
@media (prefers-color-scheme: dark) { .btn-primary { color: var(--ink); } }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-deployed { background: var(--green-soft); color: var(--green); }
.st-pilot { background: var(--accent-soft); color: var(--accent); }
.st-product { background: var(--blue-soft); color: var(--blue); }
.st-prototype { background: var(--violet-soft); color: var(--violet); }
.st-concept { background: var(--warn-soft); color: var(--warn); }
.st-interest { background: var(--grey-soft); color: var(--grey); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li {
  margin: 0; font-size: .8rem; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--surface); }
section[data-cont] { padding-top: 40px; border-top: 1px dashed var(--border); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
section.alt .card { background: var(--bg); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- Hero banner (original photo + overlay + typed text) ---------- */
.hero-banner {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff;
  background-size: cover; background-position: center 35%; background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (max-width: 1024px) { .hero-banner { background-attachment: scroll; } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 12, 18, .55) 0%, rgba(4, 12, 18, .62) 55%, rgba(4, 12, 18, .82) 100%),
    radial-gradient(900px 500px at 50% 45%, rgba(11, 110, 114, .25), transparent 70%);
}
.hero-banner-content { position: relative; z-index: 1; padding-top: var(--nav-h); padding-bottom: 72px; }
.hero-kicker {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #cfeff0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px);
}
.hero-title {
  color: #fff; font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
  font-size: clamp(2.6rem, 8vw, 4.8rem); margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero-subtitle {
  font-size: clamp(1.3rem, 4vw, 2.3rem); font-weight: 600; min-height: 1.5em; margin-bottom: 18px;
  color: #7fe3e6;
}
.hero-subtitle .typed-cursor { color: #fff; font-weight: 400; }
.hero-line { max-width: 640px; margin: 0 auto 28px; color: rgba(255, 255, 255, .85); font-size: clamp(1rem, 2vw, 1.12rem); }
.hero-actions { justify-content: center; }
.btn-light { background: #fff; color: #0d2a3a; }
.btn-light:hover { background: #e9f4f4; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1;
  color: #fff; font-size: 1.6rem; opacity: .8; animation: cue 2s ease-in-out infinite;
}
.scroll-cue:hover { opacity: 1; text-decoration: none; }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Nav sits transparent over the banner, solid once scrolled */
.site-nav.on-hero { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-nav.on-hero .brand, .site-nav.on-hero .nav-single, .site-nav.on-hero .nav-group-btn { color: rgba(255, 255, 255, .9); }
.site-nav.on-hero .brand em { color: #7fe3e6; }
.site-nav.on-hero .nav-single:hover, .site-nav.on-hero .nav-group-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-nav.on-hero .nav-toggle { color: #fff; border-color: rgba(255, 255, 255, .4); }
.site-nav.on-hero + .read-progress { opacity: 0; }
@media (max-width: 880px) {
  .site-nav.on-hero .nav-links.open { background: var(--surface); }
  .site-nav.on-hero .nav-links.open .nav-single, .site-nav.on-hero .nav-links.open .nav-group-btn { color: var(--muted); }
}

/* ---------- Intro ---------- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1000px 400px at 85% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero-photo {
  width: 210px; height: 210px; border-radius: 50%; object-fit: cover;
  border: 6px solid var(--surface); box-shadow: var(--shadow);
}
.hero .intro-name { font-size: clamp(1.8rem, 4.5vw, 2.8rem); letter-spacing: -.03em; margin-bottom: .2em; }
.hero .tagline { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.hero .lede { font-size: 1.08rem; color: var(--muted); max-width: 680px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; margin: 18px 0 24px; padding: 0; list-style: none; }
.hero-meta li { margin: 0; display: flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { width: 130px; height: 130px; order: -1; }
}

.start-here {
  margin-top: 40px; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.start-here a {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; color: var(--text); box-shadow: var(--shadow);
}
.start-here a:hover { border-color: var(--accent); text-decoration: none; }
.start-here i { font-size: 1.3rem; color: var(--accent); margin-top: 2px; }
.start-here strong { display: block; font-size: .95rem; }
.start-here span { font-size: .85rem; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { padding: 20px; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; line-height: 1.1; }
.stat .lbl { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* ---------- Focus areas ---------- */
.focus i { font-size: 1.6rem; color: var(--accent); display: inline-block; margin-bottom: 10px; }
.focus h3 { font-size: 1.08rem; }
.focus p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Impact list ---------- */
.impact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.impact li { margin: 0; display: flex; gap: 14px; align-items: flex-start; }
.impact .k {
  flex: 0 0 auto; min-width: 86px; text-align: center;
  font-weight: 800; color: var(--accent); background: var(--accent-soft);
  border-radius: 10px; padding: 8px 6px; font-size: 1.05rem; line-height: 1.2;
}
.impact p { margin: 0; font-size: .95rem; }
.impact .ctx { display: block; font-size: .8rem; color: var(--muted); margin-top: 3px; }

/* ---------- Timeline / experience ---------- */
.exp-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.exp-tools p { margin: 0; color: var(--muted); font-size: .92rem; }
.timeline { position: relative; display: grid; gap: 20px; }
.org-block { display: grid; grid-template-columns: 56px 1fr; gap: 18px; }
.org-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.5rem; font-weight: 800;
}
.org-head h3 { font-size: 1.25rem; margin-bottom: 2px; }
.org-head .org-sub { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.role { border-left: 3px solid var(--border); padding: 4px 0 4px 18px; margin-bottom: 18px; }
.role:last-child { margin-bottom: 0; }
.role.current { border-left-color: var(--accent); }
.role-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.role-title h4 { font-size: 1.05rem; margin: 0; }
.dates { font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.role-summary { margin: 8px 0 10px; color: var(--muted); font-size: .95rem; }
.role ul.key { font-size: .95rem; }

details.more { margin-top: 10px; }
details.more > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 600; color: var(--accent);
  padding: 6px 12px; border-radius: 8px; background: var(--accent-soft);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; font-weight: 800; }
details.more[open] > summary::before { content: "–"; }
details.more[open] > summary .open-lbl { display: none; }
details.more:not([open]) > summary .close-lbl { display: none; }
.more-body { margin-top: 14px; display: grid; gap: 16px; }
.more-body h5 { font-size: .92rem; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.more-body ul { font-size: .93rem; }
@media (max-width: 600px) {
  .org-block { grid-template-columns: 1fr; gap: 10px; }
  .org-icon { width: 44px; height: 44px; font-size: 1.2rem; }
}

/* ---------- Projects ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted);
}
.filter:hover { color: var(--text); border-color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .filter[aria-pressed="true"] { color: var(--ink); } }
.projects { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 380px) { .projects { grid-template-columns: 1fr; } }
.project { display: flex; flex-direction: column; gap: 10px; }
.project[hidden] { display: none; }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.project h3 { font-size: 1.1rem; margin: 0; }
.project .p-role { font-size: .85rem; color: var(--muted); font-weight: 500; }
.project .p-sum { font-size: .94rem; margin: 0; }
.project .p-cat { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.project details.more { margin-top: 0; }
.project .p-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.project .p-link { font-size: .88rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.featured { border-color: var(--accent); }
.featured-flag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }

/* ---------- Case studies ---------- */
.portfolio-map { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; background: var(--surface); }
section.alt .portfolio-map { background: var(--bg); }
.map-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 14px; }
.map-head i { color: var(--accent); }
.map-head span { color: var(--muted); font-size: .88rem; }
.map-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.map-cell {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px;
  background: var(--accent-soft); color: var(--text); font-weight: 600; font-size: .92rem;
}
.map-cell span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.map-cell:hover { text-decoration: none; outline: 2px solid var(--accent); }
.map-foot { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.case-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.case-tools .note { margin: 0; }
.cases { display: grid; gap: 18px; }
.case { scroll-margin-top: calc(var(--nav-h) + 12px); }
.case-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; }
.case-num {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem;
}
@media (prefers-color-scheme: dark) { .case-num { color: var(--ink); } }
.case-title h3 { font-size: 1.15rem; margin-bottom: 2px; }
.case .p-sum { margin: 12px 0; font-size: .97rem; }
.case-facts { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.case-facts li { margin: 0; font-size: .85rem; color: var(--muted); padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; }
.case-facts strong { color: var(--accent); }
.case-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 16px; }
.case-grid h5 { font-size: .85rem; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.case-grid h5:not(:first-child) { margin-top: 16px; }
.case-grid p, .case-grid ul, .case-grid ol { font-size: .92rem; }
.case-grid .tags { margin: 10px 0; }
.case-grid .p-link { display: flex; gap: 6px; align-items: center; font-size: .88rem; font-weight: 600; margin-top: 6px; }
ol.steps { padding-left: 1.3em; }
ol.steps li::marker { color: var(--accent); font-weight: 700; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.mini-table th, .mini-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.mini-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) {
  .case-head { grid-template-columns: auto 1fr; }
  .case-head .badge { grid-column: 2; justify-self: start; }
  .case-num { width: 38px; height: 38px; font-size: .95rem; }
}
.other-head { font-size: 1.15rem; margin: 36px 0 16px; }

/* ---------- Laboratory connectivity ---------- */
.lab-top { display: grid; gap: 18px; grid-template-columns: minmax(260px, 1fr) minmax(300px, 2fr); margin-bottom: 30px; }
@media (max-width: 820px) { .lab-top { grid-template-columns: 1fr; } }
.lab-top h3, .lab-disciplines h4 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.lab-top h3 i, .lab-disciplines h4 i { color: var(--accent); }
.analyser-brands { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.analyser-brands li { margin: 0; padding: 12px; border-radius: 10px; background: var(--accent-soft); display: flex; flex-direction: column; }
.analyser-brands strong { font-size: 1rem; }
.analyser-brands span { font-size: .8rem; color: var(--muted); }
.lab-lisphere { border-color: var(--accent); display: flex; flex-direction: column; gap: 16px; }
.lab-lisphere-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.lab-lisphere-head h3 { margin-bottom: 2px; }
.lab-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.lab-stats div { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.lab-stats .num { font-size: 1.4rem; font-weight: 800; color: var(--accent); line-height: 1.2; }
.lab-stats .lbl { font-size: .8rem; color: var(--muted); }
.lab-subhead { font-size: 1.1rem; margin-bottom: 14px; }
.lab-subhead .note { font-weight: 400; font-size: .85rem; margin: 0; }
.analyser-list { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.analyser-list li { padding: 6px 0; border-bottom: 1px dashed var(--border); margin: 0; }
.analyser-list li:last-child { border-bottom: 0; }
.analyser-list strong { color: var(--text); margin-right: 4px; }

/* ---------- Gallery ---------- */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gallery[hidden] { display: none; }
@media (max-width: 380px) { .gallery { grid-template-columns: 1fr; } }
.shot { margin: 0; position: relative; display: flex; flex-direction: column; gap: 8px; }
.shot-wide { grid-column: 1 / -1; }
.shot-btn {
  display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: var(--surface-2); cursor: zoom-in; box-shadow: var(--shadow);
}
.shot-btn img { width: 100%; height: 220px; object-fit: cover; object-position: top left; transition: transform .25s; }
.shot-wide .shot-btn img { height: auto; max-height: 520px; object-fit: contain; object-position: top center; background: var(--surface); }
.shot-btn:hover img { transform: scale(1.02); }
.shot figcaption { font-size: .88rem; color: var(--muted); }
.shot figcaption strong { color: var(--text); }
.pair { grid-column: 1 / -1; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; align-items: start; }
.pair h3 { grid-column: 1 / -1; font-size: 1rem; margin: 8px 0 0; }
.pair .shot-btn img { height: 260px; object-fit: contain; background: var(--surface); }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } }
.ba {
  position: absolute; top: 10px; left: 10px; z-index: 1; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px;
}
.ba-before { background: var(--warn-soft); color: var(--warn); }
.ba-after { background: var(--green-soft); color: var(--green); }

.lightbox {
  border: none; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 10, 15, .85); }
.lightbox img { max-width: 96vw; max-height: 84vh; border-radius: 10px; background: #fff; margin: 0 auto; }
.lightbox-cap { color: #e6ebf1; text-align: center; font-size: .92rem; margin: 10px auto 0; max-width: 820px; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: #fff; color: #16202c; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow);
}
@media (max-width: 600px) { .lightbox-close { top: 6px; right: 6px; } }

/* ---------- Publications ---------- */
.pubs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pubs li { margin: 0; }
.pub h3 { font-size: 1.02rem; margin-bottom: 6px; }
.pub .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .86rem; color: var(--muted); }
.pub p { font-size: .92rem; color: var(--muted); margin: 8px 0 0; }

/* ---------- Skills ---------- */
.skill-group h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.skill-group h3 i { color: var(--accent); }
.skill-feature { grid-column: 1 / -1; border-color: var(--accent); }

/* ---------- Education / certs ---------- */
.edu-item { display: flex; gap: 14px; align-items: flex-start; }
.edu-item i { font-size: 1.4rem; color: var(--accent); }
.edu-item h3 { font-size: 1.02rem; margin-bottom: 2px; }
.edu-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.cert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cert-list li { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.cert-list i { color: var(--accent); margin-top: 3px; }
.cert-list small { display: block; color: var(--muted); }

/* ---------- Certificates with documents ---------- */
.cert-docs-head h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.cert-docs-head h3 i { color: var(--accent); }
.cert-docs-head .note { margin: 0 0 18px; }
.cert-group-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 22px 0 12px; }
.cert-docs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 380px) { .cert-docs { grid-template-columns: 1fr; } }
.cert-doc { display: flex; flex-direction: column; gap: 8px; }
.cert-doc-top { display: flex; justify-content: space-between; align-items: center; }
.cert-issuer { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.cert-issuer.citi { background: var(--blue-soft); color: var(--blue); }
.cert-issuer.jhu { background: var(--violet-soft); color: var(--violet); }
.cert-date { font-size: .8rem; color: var(--muted); font-weight: 600; }
.cert-doc h5 { font-size: 1rem; margin: 0; line-height: 1.35; }
.cert-meta, .cert-topics { font-size: .84rem; color: var(--muted); margin: 0; }
.cert-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.btn-sm { padding: 6px 11px; font-size: .82rem; border-radius: 8px; gap: 6px; }
.cert-extra { font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 8px; }
.cert-extra a { font-weight: 600; }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.partners li { margin: 0; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: .9rem; font-weight: 500; }
section.alt .partners li { background: var(--bg); }

.partner-groups { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.partner-groups h3 { font-size: 1rem; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.partner-groups h3 i { color: var(--accent); }
.partners-count { font-size: .75rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; }
.partners li.partners-more { border-style: dashed; color: var(--muted); background: transparent; }

/* ---------- Contact ---------- */
.contact-card { text-align: center; padding: 40px 24px; }
.contact-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.contact-card p { color: var(--muted); max-width: 620px; margin: 0 auto 22px; }
.contact-card .btn-row { justify-content: center; }
.socials { display: flex; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.socials li { margin: 0; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--muted); font-size: 1.1rem; background: var(--surface);
}
.socials a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

footer { padding: 28px 0; text-align: center; color: var(--muted); font-size: .85rem; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.4rem;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { text-decoration: none; }

.note { font-size: .85rem; color: var(--muted); margin-top: 16px; }

@media print {
  .site-nav, .to-top, .filters, .exp-tools .btn, .start-here { display: none !important; }
  details.more > .more-body { display: grid !important; }
  section { padding: 24px 0; }
  .project[hidden] { display: flex !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .to-top { transition: none; }
  .scroll-cue { animation: none; }
}
.owner-tag { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.cert-issuer.adha { background: var(--green-soft); color: var(--green); }
.cert-issuer.cssc { background: var(--grey-soft); color: var(--grey); }
.cert-issuer.adhs { background: var(--warn-soft); color: var(--warn); }
.cert-issuer.nwc { background: var(--accent-soft); color: var(--accent); }
.cert-issuer.ou { background: var(--blue-soft); color: var(--blue); }

/* =================== Redesign: chapters, rail, tabs, footer =================== */
.section-head { position: relative; }
.section-head h2 { margin-bottom: .35em; }
section { scroll-margin-top: var(--nav-h); }

/* Chapter banners */
.chapter {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(127, 227, 230, .18), transparent 70%),
    linear-gradient(135deg, #0b3b4a 0%, #0b6e72 100%);
  padding: 44px 0;
}
.chapter::after {
  content: ""; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, .05);
}
.chapter-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
@media (max-width: 860px) { .chapter-inner { grid-template-columns: 1fr; } }
.chapter-label { display: flex; gap: 18px; align-items: flex-start; }
.chapter-num { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .28); letter-spacing: -.04em; }
.chapter-kicker { margin: 4px 0 2px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9fe9eb; }
.chapter-title { margin: 0 0 6px; font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.chapter-lede { margin: 0; color: rgba(255, 255, 255, .78); font-size: .98rem; }
.chapter-toc { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.chapter-toc a {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); transition: background .15s, transform .15s;
}
.chapter-toc a:hover { background: rgba(255, 255, 255, .16); text-decoration: none; transform: translateY(-2px); }
.chapter-toc strong { font-size: .95rem; }
.chapter-toc small { font-size: .78rem; color: rgba(255, 255, 255, .7); }
@media (prefers-color-scheme: dark) {
  .chapter { background: radial-gradient(700px 300px at 90% 0%, rgba(60, 195, 200, .16), transparent 70%), linear-gradient(135deg, #0a1f29 0%, #0e3c43 100%); }
}

/* Section rail (wide screens) */
.section-rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: none; flex-direction: column; gap: 10px; opacity: 0; transition: opacity .25s;
}
.section-rail.show { opacity: 1; }
@media (min-width: 1320px) { .section-rail { display: flex; } }
.section-rail a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: transform .15s, background .15s; }
.section-rail a.group-start { margin-top: 8px; }
.section-rail a:hover, .section-rail a.active { background: var(--accent); transform: scale(1.35); }
.section-rail a span {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font-size: .78rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 7px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .15s;
}
.section-rail a:hover span, .section-rail a:focus-visible span { opacity: 1; }

/* Projects: show more */
.show-more-wrap { display: flex; justify-content: center; margin-top: 22px; }
.show-more-wrap .btn[hidden] { display: none; }

/* Certificate tabs */
.cert-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.tab-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; font-size: .72rem; background: var(--surface-2); color: var(--muted); }
.filter[aria-pressed="true"] .tab-count { background: rgba(255, 255, 255, .25); color: inherit; }
.cert-panel[hidden] { display: none; }
.cert-panel > .cert-group-title { margin-top: 0; }

/* Cards: a touch more depth on hover */
.card { transition: box-shadow .2s, transform .2s, border-color .2s; }
.project:hover, .cert-doc:hover, .case:hover, .focus:hover { box-shadow: 0 10px 30px rgba(16, 24, 40, .10); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.focus:hover { transform: translateY(-2px); }

/* Footer */
.site-footer { background: #0b1f29; color: rgba(255, 255, 255, .75); padding: 36px 0; text-align: left; }
.footer-inner { display: grid; gap: 18px; grid-template-columns: auto 1fr; align-items: center; }
.site-footer .brand { color: #fff; }
.site-footer .brand em { color: #7fe3e6; }
.site-footer p { margin: 4px 0 0; font-size: .88rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
.footer-nav a { color: rgba(255, 255, 255, .8); font-size: .9rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; font-size: .82rem !important; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } .footer-nav { justify-content: flex-start; } }

@media print { .chapter, .section-rail, .read-progress { display: none !important; } .cert-panel[hidden] { display: block !important; } }

/* Employer logos in Experience */
.org-block { grid-template-columns: 104px 1fr; }
.org-icon.org-logo { width: 104px; height: 64px; background: #fff; border: 1px solid var(--border); padding: 8px; }
.org-icon.org-logo img { width: 100%; height: 100%; object-fit: contain; }
.org-icon:not(.org-logo) { width: 104px; height: 64px; }
@media (max-width: 600px) {
  .org-block { grid-template-columns: 1fr; }
  .org-icon.org-logo, .org-icon:not(.org-logo) { width: 120px; height: 56px; }
}
/* Other organisations: small, muted marks */
.mini-logo { height: 18px; width: auto; max-width: 64px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s; vertical-align: middle; }
.partners li:hover .mini-logo, .edu-item:hover .mini-logo, .cert-doc:hover .mini-logo { filter: none; opacity: 1; }
.partners li { display: inline-flex; align-items: center; gap: 8px; }
@media (prefers-color-scheme: dark) { .mini-logo { background: #fff; border-radius: 4px; padding: 2px; } }
.edu-logo { margin: 8px 0 0 !important; }
.edu-logo .mini-logo { height: 26px; max-width: 120px; }
.cert-issuer-wrap { display: inline-flex; align-items: center; gap: 8px; }
.cert-issuer-wrap .mini-logo { height: 16px; max-width: 56px; }
.cert-extra .mini-logo { height: 14px; margin-right: 4px; }
.edu-logo { margin: 8px 0 0 !important; }
.edu-logo .mini-logo { height: 26px; max-width: 120px; }
.cert-issuer-wrap { display: inline-flex; align-items: center; gap: 8px; }
.cert-issuer-wrap .mini-logo { height: 16px; max-width: 56px; }
.cert-extra .mini-logo { height: 14px; margin-right: 4px; }

/* UbEffiong brand */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; }
.brand-text { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.site-nav.on-hero .brand-mark { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.site-footer .brand-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.brand em { font-style: normal; color: var(--accent); }
.brand-text em { color: inherit; }
.site-nav.on-hero .brand em, .site-footer .brand em { color: #7fe3e6; }

/* Booking */
.book-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 22px; }
.book-platform { display: flex; flex-direction: column; gap: 12px; }
.book-platform-head { display: flex; gap: 14px; align-items: center; }
.book-platform-head h3 { margin: 0; font-size: 1.15rem; }
.book-platform-head .note { margin: 2px 0 0; }
.book-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; flex: 0 0 auto; }
.book-icon.meet { background: linear-gradient(135deg, #0f9d58, #00832d); }
.book-icon.zoom { background: linear-gradient(135deg, #2d8cff, #0b5cff); }
.book-points { list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--muted); }
.book-points i { color: var(--accent); margin-right: 6px; }
.book-btn { align-self: flex-start; margin-top: auto; }
.book-form h3 { font-size: 1.1rem; display: flex; gap: 8px; align-items: center; }
.book-form h3 i { color: var(--accent); }
.form-grid { display: grid; gap: 14px 18px; grid-template-columns: 1fr 1fr; margin: 14px 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-full { grid-column: 1 / -1; }
.book-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; }
.book-form label small { font-weight: 400; color: var(--muted); }
.book-form input[type=text], .book-form input[type=email], .book-form input[type=date], .book-form input[type=time], .book-form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); width: 100%;
}
.book-form input:focus, .book-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.book-form fieldset { border: 0; padding: 0; margin: 0; }
.book-form legend { font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { flex-direction: row; font-weight: 500; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: .9rem; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .seg input:checked + span { color: var(--ink); } }
.lagos-time { margin: -4px 0 0; min-height: 1.2em; }
.form-error { color: #c0392b; font-weight: 600; font-size: .9rem; }
.form-done { margin-top: 12px; }
.case-spotlight { border-left: 4px solid var(--accent); }

/* =====================================================================
   Panel layout (inspired by editorial "floating panel" sites).
   Everything below the hero banner sits in rounded panels on a warm canvas.
   No outline borders: separation comes from tone and space.
   The hero banner (.hero-banner) is deliberately untouched.
   ===================================================================== */
:root {
  --canvas: #f7f4ef;
  --panel: #ffffff;
  --panel-alt: #edf4f3;
  --inset: #f6f3ee;
  --inset-alt: #ffffff;
  --ink-panel: #12191e;
  --hl: #ffe27a;
  --panel-radius: 24px;
  --panel-gap: 28px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0a0f13;
    --panel: #121a21;
    --panel-alt: #0f1d22;
    --inset: #18222b;
    --inset-alt: #1b2730;
    --ink-panel: #070b0e;
    --hl: rgba(60, 195, 200, .35);
  }
}
body { background: var(--canvas); }

/* Panels */
main > section, #intro, .chapter, .site-footer {
  max-width: 1280px;
  margin: var(--panel-gap) auto 0;
  margin-inline: max(12px, calc((100% - 1280px) / 2));
  border-radius: var(--panel-radius);
  border: 0;
  overflow: hidden;
}
main > section { background: var(--panel); padding: 80px 0; }
main > section.alt { background: var(--panel-alt); }
main > section[data-cont] { padding-top: 64px; border-top: 0; margin-top: 14px; }
#intro { background: var(--panel); padding: 64px 0 56px; }
.site-footer { margin-bottom: var(--panel-gap); }
@media (max-width: 700px) {
  :root { --panel-radius: 18px; --panel-gap: 14px; }
  main > section, #intro, .chapter, .site-footer { margin-inline: 8px; }
  main > section { padding: 56px 0; }
  main > section[data-cont] { padding-top: 48px; }
}

/* Dark chapter panels with a subtle grain, no gradients */
.chapter {
  background-color: var(--ink-panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  padding: 56px 0;
}
.chapter::after { display: none; }
.chapter-num { color: #3cc3c8; opacity: .9; }
.chapter-toc a { border: 0; background: rgba(255, 255, 255, .07); }
.chapter-toc a:hover { background: rgba(255, 255, 255, .13); }

/* Typography: larger, calmer headings */
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.section-head p { font-size: 1.08rem; line-height: 1.7; }
.eyebrow { letter-spacing: .14em; }

/* Marker highlight for key phrases */
mark.hl {
  color: inherit; padding: 0 .12em; border-radius: 3px;
  background: linear-gradient(transparent 52%, var(--hl) 52%, var(--hl) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Borderless cards: tone instead of outlines */
main .card, #intro .start-here a {
  border: 0;
  box-shadow: none;
  background: var(--inset);
  border-radius: 18px;
}
main section.alt .card { background: var(--inset-alt); }
main .card.featured, main .case-spotlight, main .skill-feature, main .lab-lisphere, main .card.cert-doc:hover { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
main .project:hover, main .cert-doc:hover, main .case:hover, main .focus:hover { box-shadow: 0 14px 34px rgba(16, 24, 40, .08); }
.case-spotlight { border-left: 0; }
main .tags li, .case-facts li, .lab-stats div, .partners li, main section.alt .partners li { border: 0; background: color-mix(in srgb, var(--text) 6%, transparent); }
.portfolio-map, main section.alt .portfolio-map { border: 0; background: var(--inset); }
.org-icon.org-logo { border: 0; }
.role { border-left-width: 3px; }
#intro .start-here a { background: var(--inset); }
#intro.hero { background: var(--panel); }

/* Filters and tabs as soft pills */
main .filter { border: 0; background: var(--inset); }
main section.alt .filter { background: var(--inset-alt); }
main .filter[aria-pressed="true"] { background: var(--accent); }

/* Pill buttons with a hard offset shadow (outside the hero only) */
main .btn, #intro .btn, .site-footer .btn {
  border-radius: 999px; border: 0;
  transition: transform .15s, box-shadow .15s, background .15s;
}
main .btn-primary, #intro .btn-primary { box-shadow: 3px 3px 0 #0d2a3a; }
main .btn-ghost, #intro .btn-ghost { background: var(--inset); box-shadow: 3px 3px 0 color-mix(in srgb, var(--text) 18%, transparent); }
main section.alt .btn-ghost { background: var(--inset-alt); }
main .btn:hover, #intro .btn:hover { transform: translate(-1px, -1px); }
main .btn-primary:hover, #intro .btn-primary:hover { box-shadow: 4px 4px 0 #0d2a3a; }
main .btn:active, #intro .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #0d2a3a; }
@media (prefers-color-scheme: dark) {
  main .btn-primary, #intro .btn-primary { box-shadow: 3px 3px 0 #000; }
}
main details.more > summary { border-radius: 999px; }

/* Form fields: filled, no outlines until focus */
.book-form input[type=text], .book-form input[type=email], .book-form input[type=date], .book-form input[type=time], .book-form textarea {
  border: 0; background: var(--inset-alt);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent);
}
.seg span { border: 0; background: var(--inset-alt); }

/* Navigation over the canvas */
.site-nav:not(.on-hero) { background: color-mix(in srgb, var(--canvas) 88%, transparent); border-bottom: 0; box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent); }
.nav-menu { border: 0; }

/* Footer as a dark panel */
.site-footer { background: var(--ink-panel); }

/* ===================== Multi-page structure ===================== */
/* Sub-page header: sits under the fixed nav */
.page-header { margin-top: calc(var(--nav-h) + 16px); padding: 56px 0 52px; }
.page-header .chapter-title { font-size: clamp(2rem, 4.6vw, 3rem); margin: 4px 0 10px; }
.page-header .chapter-lede { max-width: 560px; font-size: 1.05rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: rgba(255, 255, 255, .65); margin-bottom: 14px; }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: #fff; }
.crumbs i { font-size: .65rem; opacity: .6; }
.crumbs [aria-current] { color: #9fe9eb; font-weight: 600; }
body:not([data-page="index"]) .site-nav { background: color-mix(in srgb, var(--canvas) 92%, transparent); }

/* Current page in the menu */
.nav-group.is-current > .nav-group-btn, .nav-single.is-current { color: var(--accent); background: var(--accent-soft); }

/* Explore grid on the home page */
.explore-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 380px) { .explore-grid { grid-template-columns: 1fr; } }
.explore-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; color: var(--text); padding: 22px; }
.explore-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16, 24, 40, .08); }
.explore-card > i { font-size: 1.5rem; color: var(--accent); width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); }
.explore-card h3 { font-size: 1.1rem; margin: 2px 0 4px; }
.explore-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.explore-go { grid-column: 2; font-size: .85rem; font-weight: 700; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
.explore-card:hover .explore-go i { transform: translateX(3px); }
.explore-go i { transition: transform .15s; }
main section.alt .explore-cta { background: var(--accent); color: #fff; }
.explore-cta > i { background: rgba(255, 255, 255, .18); color: #fff; }
.explore-cta p, .explore-cta .explore-go { color: rgba(255, 255, 255, .9); }
@media (prefers-color-scheme: dark) { main section.alt .explore-cta { color: var(--ink); } .explore-cta p, .explore-cta .explore-go { color: var(--ink); } }

/* Previous / next pager */
.page-pager {
  max-width: 1280px; margin: var(--panel-gap) auto 0; margin-inline: max(12px, calc((100% - 1280px) / 2));
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--panel-gap);
}
@media (max-width: 700px) { .page-pager { margin-inline: 8px; } }
.pager-link {
  display: flex; flex-direction: column; gap: 4px; padding: 26px 28px; border-radius: var(--panel-radius);
  background: var(--panel); color: var(--text); transition: transform .15s, box-shadow .15s;
}
.pager-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16, 24, 40, .08); }
.pager-link span { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.pager-link strong { font-size: clamp(1.1rem, 2.4vw, 1.45rem); letter-spacing: -.02em; }
.pager-link.next { text-align: right; align-items: flex-end; grid-column: 2; }
@media (max-width: 520px) { .page-pager { grid-template-columns: 1fr; } .pager-link.next { grid-column: 1; } }

/* Portrait in the home intro */
.intro-portrait { margin: 0; width: 300px; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: var(--inset); }
.intro-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
@media (max-width: 760px) { .intro-portrait { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; order: -1; } }
.contact-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; }
main section.alt .explore-cta h3 { color: #fff; }
@media (prefers-color-scheme: dark) { main section.alt .explore-cta h3 { color: var(--ink); } }

/* Simplified contact page */
.page-header-compact { padding: 48px 0 44px; }
.page-header-compact .chapter-lede { max-width: 640px; }
mark.hl-dark { --hl: rgba(60, 195, 200, .45); color: #fff; }
.book-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .book-layout { grid-template-columns: 1fr; } }
.book-title { font-size: clamp(1.4rem, 2.6vw, 1.8rem); letter-spacing: -.02em; margin-bottom: 6px; }
.book-sub { margin-top: 0; }
.book-direct { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 4px 0 0; }
.book-direct a { font-weight: 600; }
.book-layout .contact-card { position: sticky; top: calc(var(--nav-h) + 20px); text-align: center; padding: 32px 24px; }
.contact-name { font-size: 1.25rem; margin: 0 0 4px; }
.contact-lines { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.contact-lines a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--inset-alt); color: var(--text); font-weight: 600; font-size: .92rem; word-break: break-all; }
.contact-lines a:hover { text-decoration: none; color: var(--accent); }
.contact-lines i { color: var(--accent); }
main section:not(.alt) .contact-card .contact-lines a { background: var(--panel); }
@media (max-width: 900px) { .book-layout .contact-card { position: static; } }

/* Portrait on the left in the home intro */
#intro .hero-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; }
#intro .intro-portrait { order: -1; }
@media (max-width: 760px) { #intro .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Small portraits in some page headers */
.page-header .chapter-label { align-items: center; }
.page-header-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
@media (max-width: 520px) { .page-header .chapter-label { flex-direction: column; align-items: flex-start; } .page-header-photo { width: 80px; height: 80px; } }
#intro .hero-grid { align-items: start; }

/* ===================== Results at a glance ===================== */
.impact-hero { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 30px; }
@media (max-width: 900px) { .impact-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ih {
  display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; border-radius: 20px;
  background: var(--ink-panel); color: #fff; transition: transform .15s;
}
.ih:hover { text-decoration: none; transform: translateY(-3px); }
.ih-num { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #7fe3e6; }
.ih-lbl { font-size: .9rem; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.impact-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.impact-tabs .filter i { margin-right: 2px; }
.impact-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
@media (max-width: 380px) { .impact-grid { grid-template-columns: 1fr; } }
.impact-card { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 18px; background: var(--inset); }
.impact-card[hidden] { display: none; }
.impact-card p { margin: 0; font-size: .93rem; color: var(--text); }
.ic-num { font-size: 2.2rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--accent); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ic-num small { font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.ic-delta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ic-delta > i { color: var(--muted); font-size: 1.1rem; }
.ic-from, .ic-to { display: flex; flex-direction: column; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; }
.ic-from { color: var(--muted); }
.ic-to { color: var(--accent); }
.ic-from small, .ic-to small { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ic-badge { align-self: flex-start; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.ic-bar { position: relative; height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); }
.ic-bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--accent); }
.ic-bar-mark { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: var(--text); opacity: .55; }
.ic-bar-labels { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: -4px; }
.ic-bar-labels strong { color: var(--accent); }
.ic-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.ic-foot .ctx { font-size: .78rem; color: var(--muted); }
.ic-foot a { font-size: .82rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
