/* ================================================================
   Seydou Ly — seydouly.info
   "Refined executive editorial" — deep navy ink, warm bone paper,
   a single antique-bronze accent. Mobile-first and accessible.
   ================================================================ */

/* ---------- 1. DESIGN TOKENS ---------------------------------- */
:root {
  /* Core palette — metallic blue (cool steel + polished silver-blue) */
  --ink:        #15263d;   /* primary dark — deep steel blue      */
  --ink-soft:   #213650;   /* raised dark surfaces                */
  --ink-deep:   #0e1b2e;   /* darkest — footer / expertise band   */
  --paper:      #eef2f7;   /* cool silver-blue — page background  */
  --paper-2:    #f8fafc;   /* lighter card surface                */
  --slate:      #5a6f8c;   /* muted steel-blue secondary          */
  --accent:     #3f7cc4;   /* metallic blue accent                */
  --accent-2:   #6aa6e0;   /* polished lighter blue (hover/glow)  */

  /* Text */
  --text:       #14202f;   /* body on light                       */
  --text-soft:  #495a6e;   /* muted body                          */
  --on-dark:    #e6edf6;   /* text on dark sections               */
  --on-dark-soft: rgba(230, 237, 246, 0.72);

  /* Lines & shadows */
  --line:        rgba(21, 38, 61, 0.12);
  --line-dark:   rgba(230, 237, 246, 0.16);
  --shadow-sm:   0 2px 10px rgba(21, 38, 61, 0.07);
  --shadow-md:   0 18px 40px -20px rgba(21, 38, 61, 0.38);
  --shadow-lg:   0 40px 80px -32px rgba(14, 27, 46, 0.5);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
}

/* ---------- 2. RESET / BASE ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--on-dark);
  padding: 0.7rem 1.1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. BUTTONS ---------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-link { background: transparent; color: var(--accent); padding-inline: 0.4rem; border-radius: 4px; }
.btn-link:hover { color: var(--ink); }

.btn-small { padding: 0.55rem 1.1rem; font-size: 0.85rem; background: var(--accent); color: #fff; }
.btn-small:hover { background: var(--ink); }

/* ---------- 4. HEADER / NAV ----------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 242, 234, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin-inline: auto;
  padding: 0.9rem var(--gutter);
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--ink); color: var(--accent-2);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  border-radius: 10px; letter-spacing: 0.02em;
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }

.nav-menu { display: flex; align-items: center; gap: 0.35rem; }
.nav-menu > li > a {
  display: inline-block; padding: 0.5rem 0.9rem; border-radius: 8px;
  font-weight: 500; font-size: 0.95rem; color: var(--text-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-menu > li > a:hover { color: var(--ink); background: rgba(16, 26, 43, 0.05); }
.nav-cta { margin-left: 0.4rem; }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease; }
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. HERO ------------------------------------------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
/* Soft atmospheric glow for depth */
.hero-glow {
  position: absolute; inset: -20% 30% auto -10%;
  height: 520px;
  background: radial-gradient(closest-side, rgba(63, 124, 196, 0.20), transparent 70%);
  filter: blur(10px); pointer-events: none; z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.eyebrow {
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::after { content: ""; display: inline-block; width: 34px; height: 1.5px; background: var(--accent); margin-left: 0.8rem; vertical-align: middle; }

.hero-title {
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.3rem);
  margin: 1rem 0 1.25rem;
  letter-spacing: -0.025em;
}
.hero-title .accent { color: var(--accent); font-style: italic; font-weight: 400; }

.hero-lead { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem); color: var(--text); max-width: 36ch; }
.hero-sub { margin-top: 1rem; color: var(--text-soft); max-width: 44ch; }
.hero-sub strong { color: var(--ink); }

.role-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.6rem 0 1.9rem; }
.role-chips li {
  font-size: 0.82rem; font-weight: 600; color: var(--slate);
  padding: 0.38rem 0.85rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper-2);
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }

/* Hero photo: framed with offset accent panel */
.hero-photo { position: relative; justify-self: center; max-width: 320px; width: 100%; }
.hero-photo img {
  position: relative; z-index: 1;
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1; object-fit: cover; object-position: center top;
}
.photo-panel {
  position: absolute; z-index: 0;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--ink), var(--ink-soft));
}
.photo-panel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid var(--accent); opacity: 0.5; transform: translate(8px, 8px);
}
.photo-badge {
  position: absolute; z-index: 2; left: 50%; bottom: -14px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  background: var(--paper-2); color: var(--ink);
  font-size: 0.8rem; font-weight: 600;
  padding: 0.55rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.photo-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ba776; box-shadow: 0 0 0 3px rgba(59,167,118,0.2); }

/* ---------- 6. IMPACT STRIP ----------------------------------- */
.impact { background: var(--ink); color: var(--on-dark); }
.impact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-block: clamp(2.2rem, 5vw, 3.2rem);
}
.stat { border-left: 2px solid var(--accent); padding-left: 1.1rem; }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.2rem); line-height: 1; color: #fff;
}
.stat-num sup, .stat-num .plus { color: var(--accent-2); font-size: 0.55em; }
.stat-label { display: block; margin-top: 0.6rem; font-size: 0.92rem; color: var(--on-dark-soft); max-width: 26ch; }

/* ---------- 7. SECTIONS (shared) ------------------------------ */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
/* Offset anchored targets so headings clear the sticky header */
section[id], .hero[id] { scroll-margin-top: 78px; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { text-align: center; max-width: 60ch; margin-inline: auto; }

.kicker {
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem;
}
.kicker.light { color: var(--accent-2); }
.section-title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.section-title.light { color: #fff; }
.section-intro { margin-top: 1rem; color: var(--text-soft); font-size: 1.08rem; }

/* ---------- 8. ABOUT ------------------------------------------ */
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.about-body p { margin-bottom: 1.1rem; color: var(--text-soft); }
.about-body strong { color: var(--ink); font-weight: 600; }
.pull-quote {
  margin-top: 1.8rem; padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--accent);
  background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.22rem;
  color: var(--ink); line-height: 1.45;
}
.pull-quote cite { display: block; margin-top: 0.8rem; font-style: normal; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--slate); letter-spacing: 0.02em; }

/* ---------- 9. EXPERIENCE ------------------------------------- */
.case-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.case-card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.case-card::before {
  content: ""; position: absolute; left: 0; top: 1.7rem; bottom: 1.7rem; width: 3px;
  background: var(--accent); border-radius: 3px; opacity: 0; transition: opacity 0.25s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.case-card:hover::before { opacity: 1; }
.case-tag {
  display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem;
}
.case-card h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.case-card p { color: var(--text-soft); font-size: 0.97rem; }

/* Timeline */
.timeline-heading { font-size: 1.5rem; margin-bottom: 1.5rem; }
.timeline { position: relative; border-left: 2px solid var(--line); margin-left: 0.5rem; }
.timeline li { position: relative; padding: 0 0 1.8rem 1.8rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--accent);
}
.tl-years { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; }
.tl-role { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink); margin-top: 0.2rem; }
.tl-org { display: block; color: var(--text-soft); font-size: 0.95rem; }

/* ---------- 10. EXPERTISE (dark band) ------------------------- */
.expertise { background: var(--ink-deep); color: var(--on-dark); }
.expertise .section-intro { color: var(--on-dark-soft); }
.expertise-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.exp-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.exp-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.06); border-color: rgba(207,154,82,0.4); }
.exp-no { font-family: var(--font-display); font-size: 1rem; color: var(--accent-2); letter-spacing: 0.05em; }
.exp-card h3 { color: #fff; font-size: 1.25rem; margin: 0.5rem 0 0.55rem; }
.exp-card p { color: var(--on-dark-soft); font-size: 0.95rem; }

/* Credentials */
.creds {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line-dark);
}
.cred-col h4 { color: var(--accent-2); font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }
.cred-col .cred-sub { margin-top: 1.4rem; }
.cred-col ul li { color: var(--on-dark-soft); padding: 0.3rem 0; font-size: 0.97rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list li { padding: 0.32rem 0.8rem; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 0.82rem; color: var(--on-dark); }

/* ---------- 11. CONTACT --------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); }
.contact-intro p { color: var(--text-soft); max-width: 42ch; margin-top: 0.8rem; }
.contact-links { margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.contact-links li { display: grid; grid-template-columns: 90px 1fr; gap: 0.8rem; align-items: baseline; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.cl-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.contact-links a { color: var(--ink); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color 0.2s ease, color 0.2s ease; }
.contact-links a:hover { color: var(--accent); border-color: var(--accent); }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--text);
  padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63,124,196,0.18); }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-note { font-size: 0.88rem; color: var(--slate); }

/* ---------- 12. FOOTER ---------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; padding-bottom: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand p { color: var(--on-dark-soft); font-size: 0.92rem; line-height: 1.5; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.footer-advisory { color: var(--on-dark-soft); font-size: 0.92rem; max-width: 60ch; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { color: var(--on-dark-soft); font-weight: 500; font-size: 0.92rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent-2); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem;
  padding-block: 1.5rem; border-top: 1px solid var(--line-dark);
  font-size: 0.85rem; color: var(--on-dark-soft);
}
.to-top { color: var(--on-dark-soft); transition: color 0.2s ease; }
.to-top:hover { color: var(--accent-2); }

/* ---------- 13. MOTION / REVEALS ------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.7s cubic-bezier(0.22,1,0.36,1) forwards; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Section scroll reveal */
.section, .impact { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.section.in, .impact.in { opacity: 1; transform: none; }

/* ---------- 14. RESPONSIVE BREAKPOINTS ------------------------ */

/* Tablet ≥ 720px */
@media (min-width: 720px) {
  .case-grid { grid-template-columns: 1fr 1fr; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .creds { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: auto 1fr; align-items: center; }
  .footer-advisory { grid-column: 1 / -1; }
}

/* Desktop ≥ 960px */
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.35fr 0.65fr; }
  .hero-photo { justify-self: end; }
  .impact-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .expertise-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .footer-grid { grid-template-columns: auto 1fr auto; }
  .footer-advisory { grid-column: auto; max-width: 46ch; }
}

/* ---------- 15. MOBILE NAV (below 880px) ---------------------- */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    padding: 0.8rem var(--gutter) 1.2rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu > li > a { display: block; padding: 0.8rem 0.5rem; font-size: 1.02rem; }
  .nav-cta { margin: 0.5rem 0 0; }
  .nav-cta .btn-small { width: 100%; padding: 0.8rem; font-size: 0.95rem; }
}

/* ---------- 16. SMALL PHONES ---------------------------------- */
@media (max-width: 480px) {
  .impact-grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .contact-links li { grid-template-columns: 1fr; gap: 0.15rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- 17. REDUCED MOTION -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .section, .impact { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .case-card:hover, .exp-card:hover, .hero-photo img { transform: none !important; }
}