/* ============================================
   COVENANT OBIOMA — PORTFOLIO
   Design concept: the value ledger.
   A finance-trained CS specialist who traces
   where value leaks in the customer journey.
   Ledger paper + audit-trail line + precise type.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,450;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #11161A;
  --ink-soft: #1A2126;
  --paper: #F1ECE1;
  --paper-dim: #C9C2B2;
  --gold: #C9A24B;
  --gold-bright: #E0BE72;
  --sage: #5C7A6B;
  --sage-bright: #7A9C89;
  --line: rgba(241, 236, 225, 0.14);
  --line-strong: rgba(241, 236, 225, 0.28);

  --display: 'Fraunces', serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Ledger trace: the signature element ---------- */
.trace {
  position: fixed;
  left: 0; top: 0;
  width: 3px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.trace-line {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, var(--gold) 8%, var(--gold) 92%, transparent 100%);
  transform-origin: top;
  transform: scaleY(0);
}
.trace.active .trace-line {
  animation: traceGrow 1.6s cubic-bezier(.65,0,.35,1) forwards;
}
@keyframes traceGrow {
  to { transform: scaleY(1); }
}

/* ---------- Header / nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 22, 26, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.nav-mark .dot { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  color: var(--paper-dim);
  transition: color 0.25s ease;
  padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.current { color: var(--paper); }
.nav-links a.current::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
}
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 65px; right: 0;
    background: var(--ink-soft);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    width: 220px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 16px 24px; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line-strong);
    color: var(--paper);
    font-size: 1.1rem;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
  }
}

/* ---------- Section scaffolding ---------- */
section { padding: 110px 0; position: relative; }
@media (max-width: 720px) { section { padding: 70px 0; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }

p { color: var(--paper-dim); max-width: 62ch; }
p + p { margin-top: 14px; }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 2px;
  transition: all 0.25s ease;
  border: 1px solid var(--line-strong);
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 500;
}
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-1px); }
.btn-ghost { color: var(--paper); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 80px;
  padding-bottom: 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 260px; margin: 0 auto; }
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-lede { font-size: 1.1rem; color: var(--paper-dim); max-width: 52ch; }
.hero-portrait {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--ink-soft);
  border: 1px solid var(--line-strong);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(201,162,75,0.15);
}

/* ---------- Metrics strip (ledger line-items) ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.metric {
  padding: 30px 20px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.metric:last-child { border-right: none; }
@media (max-width: 760px) { .metric:nth-child(2n) { border-right: none; } .metric { border-bottom: 1px solid var(--line); } .metric:nth-last-child(-n+2) { border-bottom: none; } }
.metric-num {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--gold-bright);
  font-weight: 500;
}
.metric-label {
  font-size: 0.78rem;
  color: var(--paper-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

/* ---------- Two-column prose ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Skills table ---------- */
.skills-table {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 16px;
}
.skill-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
}
@media (max-width: 640px) { .skill-row { grid-template-columns: 1fr; } }
.skill-row > div { padding: 20px 24px; }
.skill-comp { border-right: 1px solid var(--line); }
@media (max-width: 640px) { .skill-comp { border-right: none; border-bottom: 1px solid var(--line); } }
.skill-comp h4 { font-family: var(--body); font-weight: 600; color: var(--paper); font-size: 0.95rem; margin-bottom: 4px; }
.skill-tools { color: var(--gold); font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.01em; }
.skill-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
  display: block;
  margin-bottom: 8px;
}

/* ---------- Case study cards ---------- */
.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 800px) { .cs-grid { grid-template-columns: 1fr; } }
.cs-card {
  border: 1px solid var(--line-strong);
  padding: 34px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cs-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.cs-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-bright);
  margin-bottom: 16px;
}
.cs-card h3 { margin-bottom: 14px; }
.cs-card p { font-size: 0.95rem; margin-bottom: 18px; }
.cs-findings {
  list-style: none;
  margin: 18px 0;
  font-size: 0.9rem;
  color: var(--paper-dim);
  flex-grow: 1;
}
.cs-findings li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}
.cs-findings li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.cs-link {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.cs-link svg { transition: transform 0.25s ease; }
.cs-card:hover .cs-link svg { transform: translateX(3px); }

/* ---------- Framework steps ---------- */
.framework {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
@media (max-width: 900px) { .framework { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .framework { grid-template-columns: 1fr; } }
.fw-step {
  background: var(--ink);
  padding: 32px 26px;
}
.fw-num {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.fw-step h4 { font-family: var(--display); font-size: 1.05rem; margin-bottom: 10px; font-weight: 600; }
.fw-step p { font-size: 0.88rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 90px 0;
}
.cta-band h2 { max-width: 20ch; margin: 0 auto 18px; }
.cta-band p { margin: 0 auto 34px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
footer {
  padding: 48px 0;
  font-size: 0.85rem;
  color: var(--paper-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 24px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.page-hero p { font-size: 1.05rem; margin-top: 16px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-channel .icon {
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-channel h4 { font-family: var(--body); font-weight: 600; font-size: 0.98rem; }
.contact-channel span { font-size: 0.88rem; color: var(--paper-dim); }

/* ---------- Case study detail page ---------- */
.cs-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 40px 0;
}
@media (max-width: 700px) { .cs-detail-meta { grid-template-columns: 1fr; } }
.cs-detail-meta > div { background: var(--ink); padding: 22px 26px; }
.cs-detail-meta .k { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage-bright); display: block; margin-bottom: 8px; }
.cs-detail-meta .v { font-size: 0.95rem; color: var(--paper); }

.finding-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.finding-block h3 { display: flex; align-items: baseline; gap: 14px; }
.finding-block .fnum { font-family: var(--mono); color: var(--gold); font-size: 1rem; }

/* ---------- Testimonial spotlight ---------- */
.testimonial-band {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 90px 0;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .testimonial-grid { grid-template-columns: 1fr; gap: 36px; } }
.testimonial-before {
  border-left: 2px solid var(--line-strong);
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--paper-dim);
  font-style: italic;
  margin-bottom: 22px;
}
.testimonial-before .lbl {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
  margin-bottom: 8px;
}
blockquote.testimonial-quote {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 450;
  line-height: 1.4;
  color: var(--paper);
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  margin: 0 0 18px;
}
.testimonial-attrib {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--gold);
  padding-left: 22px;
}
.testimonial-attrib span { color: var(--paper-dim); }

.recognition-card {
  border: 1px solid var(--line-strong);
  padding: 30px;
}
.recognition-card .lbl {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-bright);
  display: block;
  margin-bottom: 16px;
}
.recognition-card p { font-size: 0.93rem; color: var(--paper-dim); margin-bottom: 10px; }
.recognition-card p:last-of-type { margin-bottom: 0; }
.recognition-card a.view-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
}
