/* ============================================================
   Prof. Pius A. Owolawi — Academic Leadership Website
   Palette: Deep Navy #0D2543 · Academic Navy #16365F ·
            Soft Navy #244B78 · Warm Gold #C6A04A ·
            Light Gold #E1C77F · Background #F7F8FB
   ============================================================ */

:root {
  --navy-900: #0D2543;
  --navy-700: #16365F;
  --navy-500: #244B78;
  --gold: #C6A04A;
  --gold-light: #E1C77F;
  --bg: #F7F8FB;
  --white: #FFFFFF;
  --ink: #1C2B3A;
  --muted: #5A6B7E;
  --line: #E3E8F0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 37, 67, 0.08);
  --shadow-lg: 0 18px 50px rgba(13, 37, 67, 0.14);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-500); text-decoration: none; }
a:hover { color: var(--navy-700); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.2; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-900); transform: translateY(-2px); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-500); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: var(--gold-light); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(198, 160, 74, 0.15); color: var(--gold-light); }
.btn-outline-navy { border-color: var(--navy-500); color: var(--navy-700); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-700); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(225, 199, 127, 0.25);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.brand { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.main-nav > ul { display: flex; list-style: none; gap: 4px; align-items: center; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: #E8EDF5;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-light); background: rgba(255,255,255,0.06); }

.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: "▾";
  font-size: 0.7em;
  margin-left: 6px;
  color: var(--gold-light);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  display: none;
  border-top: 3px solid var(--gold);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { color: var(--navy-700); padding: 10px 14px; border-radius: 6px; font-weight: 500; }
.dropdown a:hover { background: var(--bg); color: var(--navy-900); }

.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gold-light); transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  background:
    url("assets/bg-network.svg") center / cover no-repeat,
    radial-gradient(1100px 500px at 85% -10%, rgba(198,160,74,0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(36,75,120,0.55), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 56px; align-items: center; }
.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(225,199,127,0.5);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 14px; }
.hero .role-line {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero p.lede { color: #C9D4E3; font-size: 1.06rem; max-width: 640px; margin-bottom: 14px; }
.hero .authorization {
  display: inline-block;
  margin: 14px 0 26px;
  padding: 8px 16px;
  background: rgba(198,160,74,0.14);
  border-left: 3px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 0 8px 8px 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-500), var(--navy-700));
  border: 1px solid rgba(225,199,127,0.55);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin: 0;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-portrait figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 18px 14px;
  background: linear-gradient(to top, rgba(13,37,67,0.92), rgba(13,37,67,0.55) 60%, transparent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
}
.hero-portrait figcaption span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 3px;
}

/* ---------- Metrics band ---------- */
.metrics-band {
  background: url("assets/bg-dots.svg") repeat var(--white);
  border-bottom: 1px solid var(--line);
  padding: 46px 0;
}
.metrics-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.metric { text-align: center; padding: 10px 6px; }
.metric .value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--navy-700);
  display: block;
}
.metric .value .accent { color: var(--gold); }
.metric .label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; display: block; }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--white); }
.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.94rem; flex-grow: 1; }
.card .card-link { margin-top: 16px; font-weight: 600; font-size: 0.9rem; color: var(--gold); }
.card .card-link:hover { color: var(--navy-700); }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-500));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card.gold-top { border-top: 4px solid var(--gold); }

/* Role pathway cards */
.pathway { border-top: 4px solid var(--gold); }
.pathway .role-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.pathway ul { list-style: none; margin: 10px 0 0; }
.pathway li { font-size: 0.88rem; color: var(--muted); padding: 4px 0 4px 20px; position: relative; }
.pathway li::before { content: "•"; color: var(--gold); position: absolute; left: 6px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 12px; padding-left: 34px; border-left: 2px solid var(--gold-light); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -43px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item .period { font-size: 0.8rem; font-weight: 700; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; }
.timeline-item h3 { font-size: 1.25rem; margin: 6px 0 4px; }
.timeline-item .org { font-size: 0.92rem; color: var(--navy-500); font-weight: 600; margin-bottom: 8px; }
.timeline-item p, .timeline-item li { color: var(--muted); font-size: 0.95rem; }
.timeline-item ul { margin: 8px 0 0 20px; }

/* ---------- Status badges ---------- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.badge-market { background: #E8F5EC; color: #1E7B3C; }
.badge-institutional { background: #E8EFFA; color: var(--navy-500); }
.badge-pilot { background: #FDF3DC; color: #9A7420; }
.badge-prototype { background: #F3E8FA; color: #6C3E9C; }
.badge-concept { background: #EEF1F5; color: var(--muted); }

/* ---------- Funding bars ---------- */
.funding-bars { display: flex; flex-direction: column; gap: 26px; }
.fund-row .fund-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 16px; }
.fund-row .fund-name { font-weight: 600; color: var(--navy-900); font-size: 0.98rem; }
.fund-row .fund-amount { font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 1.1rem; white-space: nowrap; }
.fund-track { height: 14px; background: var(--line); border-radius: 999px; overflow: hidden; }
.fund-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-500), var(--navy-700) 60%, var(--gold));
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.8, 0.35, 1);
}
.fund-row .fund-note { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* ---------- Lists & chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy-700);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
}
.chip.dark { background: var(--navy-700); color: var(--gold-light); border-color: var(--navy-700); }

.check-list { list-style: none; }
.check-list li { padding: 7px 0 7px 32px; position: relative; color: var(--ink); }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Quote / statement ---------- */
.statement {
  background:
    url("assets/bg-network.svg") right center / cover no-repeat,
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius);
  color: #fff;
  padding: 54px;
  position: relative;
  overflow: hidden;
}
.statement::before {
  content: "“";
  position: absolute;
  top: -30px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 11rem;
  color: rgba(198,160,74,0.25);
  line-height: 1;
}
.statement blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--gold-light);
  margin-bottom: 16px;
  position: relative;
}
.statement p { color: #C9D4E3; max-width: 800px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    url("assets/bg-waves.svg") center / cover no-repeat,
    radial-gradient(900px 400px at 90% -20%, rgba(198,160,74,0.16), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 70px 0 58px;
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 12px; max-width: 850px; }
.page-hero p { color: #C9D4E3; font-size: 1.05rem; max-width: 760px; }

/* ---------- Publication cards ---------- */
.pub-card { border-left: 4px solid var(--gold); }
.pub-card .pub-theme {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.pub-card h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; color: var(--navy-900); }

/* ---------- Lab cards ---------- */
.lab-card .lab-tags { font-size: 0.85rem; color: var(--gold); font-weight: 600; margin-bottom: 10px; }

/* ---------- Project cards ---------- */
.project-card .role-line { font-size: 0.85rem; color: var(--navy-500); font-weight: 700; margin-bottom: 10px; }
.project-card .role-line span { color: var(--muted); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    url("assets/bg-circuit.svg") center / 760px auto repeat,
    linear-gradient(140deg, var(--navy-900) 20%, var(--navy-500));
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.cta-band p { color: #C9D4E3; max-width: 640px; margin: 0 auto 28px; }
.cta-band .roles { color: var(--gold-light); font-weight: 600; font-size: 0.95rem; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    url("assets/bg-waves.svg") right bottom / 1200px auto no-repeat,
    var(--navy-900);
  color: #A9B8CC;
  padding: 56px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer .footer-brand {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.site-footer .footer-tag { color: var(--gold-light); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #A9B8CC; font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 320px; }
}

@media (max-width: 1080px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--navy-900);
    border-top: 1px solid rgba(225,199,127,0.25);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    display: none;
    padding: 16px 24px 28px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .dropdown { list-style: none; }
  .main-nav a { padding: 13px 10px; font-size: 1rem; }
  .dropdown {
    position: static;
    display: block;
    box-shadow: none;
    background: transparent;
    border-top: none;
    padding: 0 0 0 18px;
    min-width: 0;
  }
  .dropdown a { color: #A9B8CC; font-size: 0.92rem; padding: 9px 10px; }
  .dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--gold-light); }
  .has-dropdown > a::after { content: ""; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .statement { padding: 36px 28px; }
}

@media (max-width: 620px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .hero { padding: 60px 0 50px; }
}
