/* Catherine Echendu: Data Portfolio */
/* Art direction: Business Signal Workspace */
/* Palette: cool ash / ink / restrained muted teal / white / slate */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #FBFBFC;
  --shell: #E4E7EA;
  --band: #E7EAEC;
  --card: #FFFFFF;
  --ink: #16191C;
  --ink-strong: #0C0E10;
  --ink-soft: #444A4F;
  --ink-muted: #5A6168;
  --teal: #1F4D4A;
  --teal-hover: #2A6360;
  --slate: #5A6B72;
  --line: #D5DADD;
  --line-soft: #E4E7EA;
  --mono: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', monospace;
}

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

html {
  background-color: #163D36;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-nav { flex: 0 0 auto; }
.page { flex: 1 0 auto; }
.site-footer { flex: 0 0 auto; }

.page-layout-custom, .quarto-container, main.content, #quarto-content {
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}
#title-block-header, .quarto-title-block { display: none !important; }

h1, h2, h3 { color: var(--ink-strong); letter-spacing: -0.01em; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }

.data { font-family: var(--mono); font-weight: 600; color: var(--teal); letter-spacing: 0.01em; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 26px; font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.015em; border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background-color: #F0EDE8; color: #163D36; border-color: #A88B5F; }
.btn-primary:hover { background-color: #E7E0D4; color: #163D36; border-color: #A88B5F; }
.btn-ghost { background-color: transparent; color: #163D36; border-color: #A88B5F; }
.btn-ghost:hover { background-color: rgba(168, 139, 95, 0.14); color: #163D36; border-color: #A88B5F; }
.btn-sm { padding: 10px 20px; font-size: 0.84rem; }
.btn-video svg { width: 15px; height: 15px; }

/* ── Navigation ── */
.site-nav {
  position: sticky; top: 0; height: 64px;
  background-color: rgba(244, 245, 246, 0.70);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(213, 218, 221, 0.6);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; z-index: 200;
}
.nav-brand { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.nav-brand:hover { color: var(--teal); }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 0.86rem; font-weight: 500; color: var(--ink-soft);
  padding-bottom: 2px; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.nav-active { color: var(--teal); border-bottom-color: var(--teal); }

@media (max-width: 600px) {
  .site-nav { padding: 0 18px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.78rem; }
  .nav-brand { font-size: 0.80rem; }
}

/* ── Footer (green ending band, compact) ── */
.site-footer {
  background-color: #163D36;
  margin-top: 0;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 16px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.footer-copy { font-size: 0.74rem; color: #BFD0CB; letter-spacing: 0.01em; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.74rem; font-weight: 500; color: #E6ECEA; }
.footer-links a:hover { color: #FFFFFF; }
@media (max-width: 600px) {
  .footer-inner { padding: 20px 24px; flex-direction: column; align-items: flex-start; gap: 8px; }
}

.page { width: 100%; }

.page-head { max-width: 1080px; margin: 0 auto; padding: 64px 40px 24px; }
.page-kicker { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--slate); margin-bottom: 12px; }
.page-title { font-size: 2.8rem; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
@media (max-width: 600px) { .page-title { font-size: 2rem; } }
.page-lead { font-size: 1.05rem; color: var(--ink-soft); margin-top: 12px; max-width: 540px; }

/* ═══════════ HOME / HERO (deep green zone) ═══════════ */
.home { display: block; }
.hero {
  position: relative; overflow: hidden; display: flex; align-items: center; padding: 0 48px;
  background-color: #133029;
  background-image:
    radial-gradient(circle at 72% 42%, rgba(196,168,130,0.14), transparent 38%),
    radial-gradient(circle at 78% 38%, rgba(46,90,80,0.55), transparent 46%),
    linear-gradient(135deg, #1A4A40 0%, #143A33 42%, #0C211D 100%);
}
/* faint texture line at the base of the hero for depth */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,168,130,0.35), transparent);
}
.hero-inner {
  position: relative;
  max-width: 1160px; margin: 0 auto; padding: 36px 0 44px; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-left { min-width: 0; }
.hero-kicker { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; color: #C4A882; margin-bottom: 16px; }
.hero-left h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; color: #FFFFFF; }
@media (max-width: 600px) { .hero-left h1 { font-size: 2.2rem; } }
.hero-hook { font-size: clamp(1.18rem, 2vw, 1.45rem); font-style: italic; color: #E8E0D2; margin: 20px 0 18px; font-weight: 500; line-height: 1.4; }
.hero-value { font-size: clamp(1rem, 1.5vw, 1.08rem); color: #BFCEC8; max-width: 500px; line-height: 1.72; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero buttons recoloured for the green zone */
.hero .btn-primary { background-color: #C4A882; color: #14322C; border-color: #C4A882; }
.hero .btn-primary:hover { background-color: #D2B998; color: #14322C; }
.hero .btn-ghost { background-color: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.45); }
.hero .btn-ghost:hover { background-color: rgba(255,255,255,0.10); color: #FFFFFF; border-color: #FFFFFF; }

/* Right column: photo + compact signal card */
.hero-right { position: relative; display: flex; flex-direction: column; gap: 16px; align-items: stretch; max-width: 400px; justify-self: end; width: 100%; }
/* soft gold glow behind the photo */
.hero-right::before {
  content: ''; position: absolute; top: -8%; left: 4%; right: 4%; height: 78%;
  background: radial-gradient(ellipse at center, rgba(196,168,130,0.30), transparent 68%);
  filter: blur(28px); z-index: 0; pointer-events: none;
}
.portrait-frame {
  position: relative; z-index: 1; border: 1px solid rgba(255,255,255,0.18); border-top: 4px solid #C4A882;
  background: #FFFFFF; padding: 6px; box-shadow: 0 18px 50px rgba(0,0,0,0.40);
}
.signal-card { position: relative; z-index: 1; }
.portrait { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 18%; }

/* Compact horizontal signal card */
.signal-card {
  display: grid; grid-template-columns: 0.95fr 1.15fr 0.9fr;
  background-color: var(--card); border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(22, 25, 28, 0.05);
}
.signal-item { padding: 9px 12px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.signal-item:last-child { border-right: none; }
.signal-label { font-size: 0.56rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.11em; color: var(--slate); }
.signal-value { font-size: 0.72rem; color: var(--ink); font-weight: 500; line-height: 1.35; }
.signal-value .data, .signal-value.data { font-size: 0.68rem; }
.signal-impact { display: flex; flex-direction: column; gap: 3px; }
.impact-line { font-size: 0.68rem; color: var(--ink); font-weight: 500; line-height: 1.3; white-space: nowrap; }
.impact-line .data { font-size: 0.66rem; }

@media (max-width: 860px) {
  .home { min-height: 0; }
}
/* Hero stays side-by-side and shrinks; it only stacks on true phone widths */
@media (max-width: 640px) {
  .hero { padding: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .hero-right { justify-self: center; max-width: 380px; }
}
/* In the squeezed range the signal card stacks its three items so no metric is clipped */
@media (max-width: 900px) {
  .signal-card { grid-template-columns: 1fr; }
  .signal-item { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .signal-item:last-child { border-bottom: none; }
}

/* ═══════════ HOW I WORK (contained card, stone, green line + gold text) ═══════════ */
.how { background-color: #F0EDE8; flex: 0 0 auto; border-top: 1px solid #DDD9D2; border-bottom: 1px solid #DDD9D2; padding: 0 48px; }
.how-inner {
  max-width: 1160px; margin: 0 auto; padding: 56px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}
.how-step { position: relative; padding-top: 16px; border-top: 2px solid #3A6358; display: flex; flex-direction: column; gap: 4px; }
.how-num { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: #C4A882; letter-spacing: 0.05em; }
.how-title { font-size: 1.05rem; font-weight: 700; color: #C4A882; margin: 4px 0; }
.how-text { font-size: 0.92rem; color: #555555; line-height: 1.55; }

@media (max-width: 720px) {
  .how-inner { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
}

/* ═══════════ PROOF STRIP ═══════════ */
.proof { background-color: var(--band); border-bottom: 1px solid var(--line); }
.proof-inner { max-width: 1100px; margin: 0 auto; padding: 26px 40px; display: flex; flex-direction: column; gap: 10px; }
.proof-row { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: baseline; }
.proof-label { font-size: 0.60rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: var(--slate); white-space: nowrap; }
.proof-chips { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 720px) {
  .proof-inner { padding: 22px 24px; }
  .proof-row { grid-template-columns: 1fr; gap: 3px; }
}

/* ═══════════ PROOF ROW (green icon cards on stone band) ═══════════ */
.proofrow { padding: 64px 48px 72px; background-color: #EFF1F0; border-top: 1px solid var(--line); }
.proofrow-inner {
  max-width: 1160px; margin: 0 auto; padding: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.proofrow-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.proof-card {
  background-color: #163D36;
  padding: 22px 20px;
  display: flex; align-items: center; gap: 14px;
  border: 1px solid #1E4F47;
}
.proof-ico {
  flex-shrink: 0; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #C4A882;
}
.proof-ico svg { width: 22px; height: 22px; }
.proof-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.proof-main { font-size: 0.90rem; font-weight: 600; color: #FFFFFF; line-height: 1.3; }
.proof-main.data { font-family: var(--mono); font-size: 0.82rem; font-weight: 500; }
.proof-sub { font-size: 0.74rem; color: #A9BDB6; line-height: 1.3; }
.proofrow-link { font-size: 0.86rem; font-weight: 600; color: var(--teal); align-self: flex-end; }
.proofrow-link:hover { opacity: 0.7; }
@media (max-width: 860px) {
  .proofrow-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .proofrow-grid { grid-template-columns: 1fr; }
  .proofrow-inner { padding: 24px; }
}

/* Tags + status (shared) */
.tag { font-size: 0.60rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--slate); background-color: var(--band); padding: 3px 9px; border: 1px solid var(--line); }
.status, .case-status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--ink-muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot.in-progress { background-color: #C8772B; }
.status-dot.in-development { background-color: var(--slate); }
.status-dot.complete { background-color: #2E7D5B; }

/* ═══════════ WORK (dark room backdrop, cards float on top) ═══════════ */
.page.work {
  position: relative;
  background-color: #0B100E;
  background-image:
    linear-gradient(rgba(8,12,10,0.22), rgba(8,12,10,0.42)),
    url('images/work-bg.png');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
}
/* Heading at top (compact), cards full-width below */
.work .page-head { max-width: 1120px; margin: 0 auto; padding: 12px 48px 0; }
.work .page-kicker { color: #C4A882; font-size: 0.64rem; margin-bottom: 4px; }
.work .page-title { color: #FFFFFF; font-size: 1.65rem; line-height: 1.08; }
.work .page-lead { color: #C8D2CE; font-size: 0.86rem; margin-top: 4px; }

.cases { max-width: 1160px; margin: 0 auto; padding: 8px 48px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.case-card { background-color: #FFFFFF; border: 1px solid rgba(255,255,255,0.08); border-left: 4px solid #C4A882; border-radius: 10px; padding: 14px 18px; box-shadow: 0 18px 50px rgba(0,0,0,0.40); display: flex; flex-direction: column; }
/* Workforce (1st) card: narrowed a little from the right side only */
.case-card:first-child { margin-right: 40px; }
/* Customer (2nd) card: stays stepped up, made taller to match Workforce height */
.case-card:last-child { margin-top: -48px; min-height: 296px; position: relative; left: -60px; margin-left: 24px; margin-right: 24px; }
/* Customer (2nd) card: raise APPROACH/STACK up under the question (no bottom push) */
.case-card:last-child .case-grid { margin-top: 0; grid-template-columns: 1.15fr 1fr; }
/* Customer (2nd) card: push the repository note down a little */
.case-card:last-child .case-note { margin-top: 22px; }
.case-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.case-title { font-size: 1.02rem; font-weight: 700; line-height: 1.18; margin-bottom: 6px; }
.case-question { font-size: 0.84rem; font-style: italic; color: var(--ink); line-height: 1.35; border-left: 3px solid #C4A882; padding-left: 11px; margin-bottom: 10px; }
.case-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; margin-top: auto; padding-top: 4px; }
.case-block-label { display: block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: var(--slate); margin-bottom: 4px; }
.case-block-body { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.45; }
.case-block-body.data { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.case-cta { margin-top: 10px; }
.case-note { display: block; font-size: 0.74rem; font-style: italic; color: var(--ink-muted); margin-top: 8px; line-height: 1.35; }
@media (max-width: 860px) {
  .cases { grid-template-columns: 1fr; padding: 16px 24px 28px; }
  /* When the cards stack, switch off the desktop-only positioning offsets */
  .case-card:first-child { margin-right: 0; }
  .case-card:last-child { margin-top: 0; left: 0; margin-left: 0; margin-right: 0; min-height: 0; }
  /* Let the room photo crop naturally instead of squashing at narrow widths */
  .page.work { background-size: cover; }
}
@media (max-width: 720px) {
  .cases { padding: 24px 24px 64px; }
  .case-card { padding: 26px 22px; }
  .case-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ═══════════ ABOUT ═══════════ */
/* First view: intro (left) + journey (right), fills one screen */
.about-top {
  max-width: 1160px; margin: 0 auto;
  padding: 48px 48px 56px;
  min-height: calc(100vh - 64px);
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px;
  align-items: center;
}
.about-intro .page-kicker { margin-bottom: 12px; }
.about-intro .page-title { line-height: 1.08; margin-bottom: 20px; }
.about-hook-text { font-size: 1.08rem; font-weight: 500; color: var(--ink-strong); line-height: 1.6; }

.journey { padding: 0; }
.stage { position: relative; padding-left: 28px; padding-bottom: 26px; border-left: 2px solid var(--line); }
.stage:last-child { border-left-color: transparent; padding-bottom: 0; }
.stage-marker { position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background-color: #163D36; border: 3px solid var(--bg); }
.stage-title { font-size: 1.1rem; font-weight: 700; line-height: 1.25; color: #163D36; }
.stage-years { font-family: var(--mono); font-size: 0.66rem; font-weight: 500; color: var(--slate); letter-spacing: 0; display: inline-block; margin-left: 6px; }
.stage-meta { font-family: var(--mono); font-size: 0.72rem; color: #C4A882; margin: 4px 0 10px; letter-spacing: 0.01em; }
.stage-text { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.65; }

.brings { max-width: 1160px; margin: 0 auto; padding: 64px 48px 36px; border-top: 1px solid var(--line); min-height: calc(100vh - 64px - 84px); display: flex; flex-direction: column; justify-content: center; justify-content: safe center; scroll-margin-top: 64px; }
.brings-intro { max-width: 760px; padding-left: 16px; border-left: 4px solid #C4A882; font-size: 1.05rem; font-weight: 500; color: var(--ink-strong); line-height: 1.6; margin-bottom: 24px; }
.brings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bring-card { background-color: var(--card); border: 1px solid var(--line); border-top: 3px solid #163D36; padding: 20px 20px; }
.bring-title { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; color: #163D36; }
.bring-text { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 900px) {
  .about-top { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding: 36px 24px 48px; }
  .brings { padding: 44px 24px 64px; }
  .brings-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .brings-grid { grid-template-columns: 1fr; }
}

/* ═══════════ CONTACT (full-bleed image, text on dark left) ═══════════ */
.page.contact { background-color: #0C100E; }
.contact-inner {
  position: relative;
  height: calc(100vh - 64px - 52px);
  background-image:
    linear-gradient(90deg, #0C100E 0%, rgba(12,16,14,0.92) 14%, rgba(12,16,14,0) 34%),
    url('images/contact-bg.png');
  background-size: 100% 100%, auto 100%;
  background-position: left center, right center;
  background-repeat: no-repeat, no-repeat;
  background-color: #0C100E;
  display: flex; align-items: center;
  padding: 0;
}
/* Dark gradient over the left so text stays readable on any screen */
.contact-inner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,12,10,0.92) 0%, rgba(8,12,10,0.80) 32%, rgba(8,12,10,0.30) 58%, rgba(8,12,10,0) 75%);
  pointer-events: none;
}
.contact-left {
  position: relative; z-index: 1;
  max-width: 480px; margin-left: clamp(40px, 26vw, 400px);
}
.contact-left .page-kicker { color: #C4A882; font-size: 0.7rem; margin-bottom: 10px; }
.contact-title { font-size: 1.7rem; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 12px; color: #FFFFFF; }
.contact-lead { font-size: 0.92rem; color: #CCD6D2; line-height: 1.55; margin-bottom: 18px; max-width: 380px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 0; }
.contact-list li { display: flex; align-items: center; gap: 11px; font-size: 0.9rem; }
.contact-ico { flex-shrink: 0; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background-color: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); color: #C4A882; }
.contact-ico svg { width: 20px; height: 20px; }
.contact-list a { color: #EAF0ED; }
.contact-list a:hover { color: #FFFFFF; }
.contact-plain { color: #B6C2BD; }

@media (max-width: 820px) {
  .contact-inner {
    background-image: linear-gradient(rgba(8,12,10,0.78), rgba(8,12,10,0.78)), url('images/contact-bg.png');
    padding: 56px 0;
  }
  .contact-inner::before { background: none; }
  .contact-left { margin-left: 0; margin-right: 0; padding: 0 24px; max-width: 560px; }
  .contact-footer { padding: 12px 24px; }
}
