/* Felix Obinna Iroegbu — Ikoyi pavilion
   Mist blue · deep teal · saffron · Fraunces + Manrope */

:root {
  --mist: #e9eef1;
  --mist-2: #dfe6eb;
  --snow: #f7f9fa;
  --ink: #121820;
  --ink-2: #3d4754;
  --ink-3: #7a8694;
  --line: rgba(18, 24, 32, 0.1);
  --teal: #0b5f61;
  --teal-2: #0e7578;
  --saffron: #c8883a;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --display: "Fraunces", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
}

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

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

body {
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: italic; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

::selection { background: var(--teal); color: var(--snow); }

/* ── Nav ──────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem var(--pad);
  background: color-mix(in srgb, var(--mist) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--teal);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-left: auto;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--teal); }

.nav-firm {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  min-height: min(100dvh, 58rem);
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad) clamp(3.5rem, 7vw, 5rem);
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(11, 95, 97, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(200, 136, 58, 0.07), transparent 55%),
    var(--mist);
}

.hero-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  color: var(--teal);
  font-weight: 500;
}

.hero-role {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.45;
  margin-bottom: 2rem;
}

.hero-quote {
  max-width: 28rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--teal);
  margin-bottom: 2.5rem;
}
.hero-quote p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.35;
  color: var(--ink);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}
.hero-facts dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.3rem;
}
.hero-facts dd {
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
}

.hero-photo {
  width: 100%;
  margin: 0;
  border-radius: 1.5rem 1.5rem 0.5rem 1.5rem;
  overflow: hidden;
  background: var(--mist-2);
  box-shadow:
    0 30px 60px -28px rgba(18, 24, 32, 0.35),
    0 0 0 1px rgba(18, 24, 32, 0.04);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 12%;
}

.hero-badge {
  position: absolute;
  left: -1.25rem;
  bottom: 2.5rem;
  display: grid;
  place-content: center;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--snow);
  text-align: center;
  box-shadow: 0 16px 32px -12px rgba(11, 95, 97, 0.55);
}
.hero-badge span:first-child {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
}
.hero-badge span:last-child {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.2rem;
}

/* ── Sections ─────────────────────────────────── */
.section {
  padding: clamp(4rem, 9vw, 7rem) var(--pad) 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.section-no {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--saffron);
}
.section-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
}
.section-head--light .section-no { color: #e0b57a; }
.section-head--light h2 { color: var(--snow); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.about-lead {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  max-width: 18ch;
}
.about-body p {
  color: var(--ink-2);
  max-width: 52ch;
}
.about-body p + p { margin-top: 1.1rem; }

/* Focus */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.focus-grid li {
  padding: 1.35rem 1.5rem;
  background: var(--snow);
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
  border: 1px solid transparent;
  transition: border-color 0.3s, transform 0.3s;
}
.focus-grid li:hover {
  border-color: color-mix(in srgb, var(--teal) 35%, transparent);
  transform: translateY(-2px);
}

.firm-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: var(--snow);
  margin-bottom: clamp(1rem, 3vw, 2rem);
}
.firm-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b7e0df;
  margin-bottom: 0.75rem;
}
.firm-card p:last-child {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 400;
  line-height: 1.45;
  max-width: 52ch;
}

/* Work */
.work-list { counter-reset: work; }
.work-list li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  counter-increment: work;
}
.work-list li:last-child { border-bottom: 1px solid var(--line); }
.work-list li::before {
  content: counter(work, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.2;
}
.work-list h3 {
  grid-column: 2;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin-bottom: 0.45rem;
}
.work-list p {
  grid-column: 2;
  color: var(--ink-2);
  max-width: 60ch;
}

/* Contribution */
.contribution {
  margin-top: clamp(4rem, 9vw, 7rem);
  background: var(--ink);
  color: var(--snow);
}
.contribution-inner {
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
}
.contribution-lead {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.4;
  color: rgba(247, 249, 250, 0.78);
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.contrib-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.contrib-grid li {
  padding: 1.75rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}
.contrib-grid li:hover { background: rgba(255, 255, 255, 0.07); }
.contrib-grid span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--saffron);
  margin-bottom: 0.85rem;
}
.contrib-grid h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--snow);
}
.contrib-grid p {
  font-size: 0.95rem;
  color: rgba(247, 249, 250, 0.68);
  line-height: 1.55;
}

/* NGX */
.ngx-body {
  display: grid;
  gap: 1.1rem;
  max-width: 58ch;
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
.ngx-body p { color: var(--ink-2); }

/* Education */
.edu-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
.edu-row li {
  padding: 1.75rem 1.5rem;
  background: var(--snow);
  border-radius: 1.15rem;
  border-top: 3px solid var(--teal);
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: transform 0.35s ease;
}
.edu-row li:hover { transform: translateY(-4px); }
.edu-school {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.15;
}
.edu-deg {
  font-size: 0.92rem;
  color: var(--ink-3);
  font-weight: 500;
}

/* Approach */
.approach-points {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.approach-points li {
  position: relative;
  padding: 1.1rem 1.25rem 1.1rem 1.5rem;
  background: var(--snow);
  border-radius: 0.85rem;
  border-left: 3px solid var(--saffron);
  color: var(--ink-2);
}

.attitude {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: 1.35rem;
  background: var(--mist-2);
  border: 1px solid var(--line);
}
.attitude p {
  color: var(--ink-2);
  max-width: 62ch;
}
.attitude p + p { margin-top: 1rem; }

/* Sign */
.sign {
  padding: clamp(5rem, 11vw, 8.5rem) var(--pad);
  text-align: center;
}
.sign-quote {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  max-width: 18ch;
  margin: 0 auto 1.75rem;
}
.sign-quote em { color: var(--teal); }
.sign-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sign-meta {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-3);
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin: 0 var(--pad);
  padding: 1.5rem 0 2.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 980px) {
  .nav-firm { display: none; }
  .nav-links { gap: 1rem; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 2.5rem;
  }
  .hero-visual { order: -1; max-width: 26rem; }
  .hero-badge { left: 1rem; bottom: 1.5rem; width: 5.5rem; height: 5.5rem; }
  .hero-badge span:first-child { font-size: 1.5rem; }
  .hero-photo { border-radius: 1.25rem; }
  .hero-photo img { aspect-ratio: 4 / 4.8; }

  .about-grid,
  .focus-grid,
  .contrib-grid,
  .edu-row { grid-template-columns: 1fr; }

  .edu-row li {
    min-height: 0;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }

  .hero h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .hero-facts { grid-template-columns: 1fr 1fr; }

  .work-list li { grid-template-columns: 1fr; gap: 0.35rem; }
  .work-list li::before { font-size: 1.15rem; }

  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .focus-grid li,
  .edu-row li,
  .contrib-grid li { transition: none; }
}
