/* ---------------------------------------------------
   Babatunde Ogboru, LL.M. — Executive site
   Palette derived from the source presentation:
   deep navy, muted slate-blue, warm off-white, warm ink.
--------------------------------------------------- */

:root {
  --bg-dark: oklch(0.221 0.038 258);
  --bg-dark-deep: oklch(0.178 0.034 258);
  --bg-light: oklch(0.962 0.006 85);
  --bg-light-2: oklch(0.932 0.008 85);

  --ink-on-dark: oklch(0.955 0.012 85);
  --ink-on-dark-muted: oklch(0.775 0.022 250);
  --ink-on-light: oklch(0.27 0.016 260);
  --ink-on-light-muted: oklch(0.465 0.02 258);

  --accent: oklch(0.552 0.058 255);
  --accent-soft: oklch(0.62 0.05 255);
  --accent-deep: oklch(0.36 0.05 258);

  --line-on-dark: oklch(0.955 0.012 85 / 0.14);
  --line-on-light: oklch(0.27 0.016 260 / 0.13);

  --font-display: 'Fraunces', 'Iowan Old Style', ui-serif, Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --section-pad: clamp(5rem, 12vw, 9rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: auto; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--ink-on-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; letter-spacing: -0.01em; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

section { position: relative; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent-soft);
  z-index: 400;
  transition: width 0.1s linear;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.outcomes .reveal:nth-child(2) { transition-delay: 0.08s; }
.outcomes .reveal:nth-child(3) { transition-delay: 0.16s; }
.outcomes .reveal:nth-child(4) { transition-delay: 0.24s; }
.service-list .reveal:nth-child(2) { transition-delay: 0.06s; }
.service-list .reveal:nth-child(3) { transition-delay: 0.12s; }
.service-list .reveal:nth-child(4) { transition-delay: 0.18s; }
.engagement-list .reveal:nth-child(2) { transition-delay: 0.05s; }
.engagement-list .reveal:nth-child(3) { transition-delay: 0.1s; }
.engagement-list .reveal:nth-child(4) { transition-delay: 0.15s; }
.engagement-list .reveal:nth-child(5) { transition-delay: 0.2s; }
.engagement-list .reveal:nth-child(6) { transition-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons / labels ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.eyebrow--light { color: var(--ink-on-dark-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  border: 1px solid var(--line-on-light);
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn--light {
  border-color: oklch(0.955 0.012 85 / 0.4);
  color: var(--ink-on-dark);
}
.btn--light:hover { background: var(--ink-on-dark); color: var(--bg-dark-deep); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem var(--gutter);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  background: oklch(0.962 0.006 85 / 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line-on-light);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-on-dark);
  transition: color 0.4s var(--ease);
}
.nav.is-scrolled .nav__brand { color: var(--ink-on-light); }
.nav__mark {
  width: 22px; height: auto;
  transition: filter 0.4s var(--ease);
}
.nav.is-scrolled .nav__mark { filter: invert(1); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-on-dark);
  transition: color 0.4s var(--ease);
}
.nav.is-scrolled .nav__links { color: var(--ink-on-light); }
.nav__links a { opacity: 0.88; transition: opacity 0.25s; }
.nav__links a:hover { opacity: 1; }
.nav__cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 1 !important;
}

.nav__toggle {
  display: none;
  width: 34px; height: 34px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink-on-dark);
  transition: background 0.4s var(--ease), transform 0.3s var(--ease);
}
.nav.is-scrolled .nav__toggle span { background: var(--ink-on-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-dark-deep);
}
.hero__media {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero__img {
  width: 100%; height: 116%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08) translateY(0);
  animation: heroIn 2.4s var(--ease) forwards;
  will-change: transform;
}
@keyframes heroIn {
  from { transform: scale(1.14) translateY(0); filter: saturate(0.85) brightness(0.9); }
  to   { transform: scale(1.08) translateY(0); filter: saturate(1) brightness(1); }
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(0.15 0.03 258 / 0.55) 0%, oklch(0.15 0.03 258 / 0.15) 32%, oklch(0.15 0.03 258 / 0.35) 66%, oklch(0.13 0.03 258 / 0.86) 100%),
    linear-gradient(90deg, oklch(0.12 0.03 258 / 0.55) 0%, oklch(0.12 0.03 258 / 0.05) 45%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(3.5rem, 9vw, 6.5rem);
  max-width: 880px;
  opacity: 0;
  animation: heroContentIn 1.1s var(--ease) 0.5s forwards;
}
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__name {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  color: var(--ink-on-dark);
  line-height: 1.02;
  margin-bottom: 0.55rem;
  text-shadow: 0 2px 30px oklch(0.1 0.02 258 / 0.35);
}
.hero__suffix { color: var(--ink-on-dark-muted); font-weight: 400; font-style: italic; }
.hero__roles {
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  color: var(--ink-on-dark);
  opacity: 0.92;
  margin-bottom: 1.4rem;
  font-weight: 500;
}
.hero__lede {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--ink-on-dark-muted);
  max-width: 46ch;
  line-height: 1.55;
  margin-bottom: 2.2rem;
}
.hero__cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 46px;
  background: oklch(0.955 0.012 85 / 0.3);
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.6s forwards;
}
.hero__cue span {
  position: absolute; top: 0; left: -2px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-on-dark);
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 42px; opacity: 0; }
}
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Thesis ---------- */
.thesis {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: var(--section-pad) var(--gutter);
}
.thesis__head { max-width: 780px; margin: 0 auto 4.5rem; text-align: left; }
.thesis__headline {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.12;
}
.outcomes {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 3.5rem;
}
.outcome { max-width: 46ch; }
.outcome--offset { margin-top: clamp(2rem, 6vw, 4.5rem); }
.outcome__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent-soft);
  margin-bottom: 0.9rem;
  letter-spacing: 0.05em;
}
.outcome h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-bottom: 0.7rem;
}
.outcome p {
  color: var(--ink-on-dark-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}
.thesis__close {
  max-width: var(--container);
  margin: clamp(4rem, 8vw, 6rem) auto 0;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line-on-dark);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: var(--ink-on-dark);
}

/* ---------- Profile ---------- */
.profile {
  background: var(--bg-light);
  padding: var(--section-pad) var(--gutter);
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: var(--container);
  margin: 0 auto;
  align-items: start;
}
.profile__media {
  position: sticky;
  top: 7rem;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-light-2);
}
.profile__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.profile__content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2.8rem;
  max-width: 20ch;
}
.profile__block { margin-bottom: 2.4rem; padding-top: 1.7rem; border-top: 1px solid var(--line-on-light); }
.profile__block:first-of-type { border-top: none; padding-top: 0; }
.profile__block h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.profile__block ul { display: flex; flex-direction: column; gap: 0.65rem; }
.profile__block li {
  line-height: 1.6;
  font-size: 1rem;
  color: var(--ink-on-light);
  padding-left: 1.1rem;
  position: relative;
}
.profile__block li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 1px;
  background: var(--accent);
}

/* ---------- Services ---------- */
.services {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: var(--section-pad) var(--gutter);
}
.services > h2 {
  max-width: 780px;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.28;
  margin: 0 auto 4rem;
}
.services > .eyebrow { max-width: var(--container); margin-left: auto; margin-right: auto; }
.service-list {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--line-on-dark);
}
.service-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line-on-dark);
}
.service-row__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-soft);
  padding-top: 0.2rem;
}
.service-row__body h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  margin-bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.6rem;
  align-items: baseline;
}
.service-row__body h3 em {
  font-style: italic;
  font-weight: 400;
  font-size: 0.62em;
  color: var(--ink-on-dark-muted);
}
.tags {
  color: var(--ink-on-dark-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 62ch;
}
.services__close {
  max-width: var(--container);
  margin: 3.2rem auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-on-dark);
}

/* ---------- Tailored (engagement models) ---------- */
.tailored {
  background: var(--bg-light);
  padding: var(--section-pad) var(--gutter);
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: var(--container);
  margin: 0 auto;
  align-items: start;
}
.tailored__media {
  position: sticky;
  top: 7rem;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.tailored__media img { width: 100%; height: 100%; object-fit: cover; }
.tailored__content > h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.28;
  max-width: 26ch;
  margin-bottom: 3rem;
}
.model {
  padding: 1.9rem 0;
  border-top: 1px solid var(--line-on-light);
}
.model:last-of-type { border-bottom: 1px solid var(--line-on-light); }
.model h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.model .tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-on-light-muted);
  font-size: 1.02rem;
  margin-bottom: 0.7rem;
}
.model .tags { color: var(--ink-on-light-muted); font-size: 0.9rem; line-height: 1.65; }
.tailored__close {
  margin-top: 2.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-on-light);
}

/* ---------- Engagements ---------- */
.engagements {
  background: var(--bg-dark-deep);
  color: var(--ink-on-dark);
  padding: var(--section-pad) var(--gutter);
}
.engagements > h2 {
  max-width: 760px;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.28;
  margin: 0 auto 4rem;
}
.engagements > .eyebrow { max-width: var(--container); margin-left: auto; margin-right: auto; }
.engagement-list {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 0;
}
.engagement {
  padding: 2.2rem 0;
  border-top: 1px solid var(--line-on-dark);
}
.engagement:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-on-dark); }
.engagement h3 {
  font-size: 1.4rem;
  margin-bottom: 0.55rem;
}
.engagement h3 span { color: var(--ink-on-dark-muted); font-weight: 400; font-size: 0.72em; }
.engagement .role {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.engagement p:not(.role) {
  color: var(--ink-on-dark-muted);
  line-height: 1.65;
  font-size: 0.98rem;
  max-width: 48ch;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark-deep);
}
.contact__media { position: absolute; inset: 0; overflow: hidden; }
.contact__media img {
  width: 100%; height: 120%;
  object-fit: cover;
  will-change: transform;
}
.contact__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, oklch(0.13 0.03 258 / 0.92) 0%, oklch(0.13 0.03 258 / 0.72) 42%, oklch(0.15 0.03 258 / 0.3) 78%);
}
.contact__content {
  position: relative;
  z-index: 2;
  padding: var(--section-pad) var(--gutter);
  max-width: 640px;
}
.contact__content h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--ink-on-dark);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.contact__lede {
  color: var(--ink-on-dark-muted);
  font-size: 1.05rem;
  max-width: 42ch;
  line-height: 1.6;
  margin-bottom: 3rem;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line-on-dark);
}
.contact__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink-on-dark);
  margin-bottom: 0.4rem;
}
.contact__name span { font-family: var(--font-body); font-size: 0.85rem; color: var(--ink-on-dark-muted); }
.contact__locations { color: var(--ink-on-dark-muted); letter-spacing: 0.03em; margin-bottom: 0.4rem; }
.contact__details a { color: var(--ink-on-dark); border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.contact__details a:hover { border-color: var(--ink-on-dark); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark-deep);
  color: var(--ink-on-dark-muted);
  padding: 3rem var(--gutter) 3.4rem;
  border-top: 1px solid var(--line-on-dark);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.footer__mark {
  width: 46px; height: auto;
  flex-shrink: 0;
  opacity: 0.55;
  animation: markPulse 6s ease-in-out infinite;
}
@keyframes markPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.75; }
}
.footer__text { flex: 1; font-size: 0.85rem; line-height: 1.6; }
.footer__name { font-family: var(--font-display); color: var(--ink-on-dark); font-size: 0.98rem; margin-bottom: 0.15rem; }
.footer__copy { font-size: 0.78rem; }

/* =====================================================
   Responsive
===================================================== */
@media (max-width: 1024px) {
  .profile, .tailored {
    grid-template-columns: 1fr;
  }
  .profile__media, .tailored__media {
    position: relative;
    top: 0;
    max-width: 420px;
  }
  .engagement-list { grid-template-columns: 1fr; }
  .engagement:nth-last-child(-n+2) { border-bottom: none; }
  .engagement:last-child { border-bottom: 1px solid var(--line-on-dark); }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 0;
    top: 0;
    height: 100svh;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.8rem;
    padding: 0 var(--gutter);
    background: var(--bg-dark-deep);
    color: var(--ink-on-dark);
    font-size: 1.4rem;
    font-family: var(--font-display);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav.is-scrolled .nav__links { color: var(--ink-on-dark); }
  .nav__cta { border-color: currentColor; }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .outcomes { grid-template-columns: 1fr; row-gap: 2.6rem; }
  .outcome--offset { margin-top: 0; }
  .service-row { grid-template-columns: 3rem 1fr; }
}

@media (max-width: 560px) {
  .hero__content { padding-bottom: 4rem; }
  .hero__roles { display: block; }
  .contact__content { padding-top: 6.5rem; }
  .thesis__close, .services__close { font-size: 1.1rem; }
  .footer__inner { flex-wrap: wrap; }
  .footer__copy { width: 100%; padding-left: calc(46px + 1.6rem); }
}
