/* Malick Diagne site. Navy bands alternate with a paper ground. One amber accent for results and buttons. */
:root {
  --navy: #0B1F33;
  --navy-2: #16324F;
  --line-dark: #2B4A6B;
  --paper: #F3F1EC;
  --white: #FFFFFF;
  --ink: #0B1F33;
  --ink-2: #2E3E4F;
  --muted: #4A5B6C;
  --soft: #C9D3DE;
  --rule: #DDD6C8;
  --accent: #F59E0B;
  --accent-ink: #B4410B;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent-ink); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); }
.dark .eyebrow { color: var(--accent); }
.h2 { font-size: clamp(38px, 5vw, 52px); font-weight: 700; }

/* Header */
.site-header { background: var(--navy); color: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 0.08em; color: var(--paper); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }
.nav a { color: var(--paper); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--accent); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #FBBF24; color: var(--navy); }
.btn-ghost { border-color: var(--paper); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--navy); }
.btn-ink { border-color: var(--navy); color: var(--navy); }
.btn-ink:hover { background: var(--navy); color: var(--paper); }

/* Hero */
.hero { background: var(--navy); color: var(--paper); border-bottom: 6px solid var(--accent); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 64px 80px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(46px, 7vw, 76px); font-weight: 700; line-height: 0.98; }
.hero .lead { font-size: 18px; color: var(--soft); max-width: 580px; }
.hero-photo { flex: 1 1 300px; display: flex; justify-content: center; }
.hero-photo img { width: 360px; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line-dark); }

/* Page head (inner pages) */
.page-head { background: var(--navy); color: var(--paper); border-bottom: 6px solid var(--accent); }
.page-head .wrap { padding-block: 56px 64px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: clamp(44px, 6vw, 68px); font-weight: 700; }
.page-head p.lead { color: var(--soft); font-size: 18px; max-width: 640px; }

/* Figures */
.figures { background: var(--white); border-bottom: 1px solid var(--rule); }
.figures .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-block: 40px; }
.figure { display: flex; flex-direction: column; gap: 6px; }
.figure b { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; }
.figure span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding-block: 88px; }
.section-white { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-head > div { display: flex; flex-direction: column; gap: 10px; }
.more { font-size: 15px; font-weight: 600; }

/* Case cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.card-result { background: var(--navy); color: var(--paper); padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.card-result b { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.card-result span { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 28px; font-weight: 600; line-height: 1.1; }
.card p { font-size: 15px; color: var(--ink-2); }
.card a.read { margin-top: auto; font-size: 14px; font-weight: 600; }

/* Recognition */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: start; }
.award { margin: 0; background: var(--white); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.award img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: #E9E6DF; }
.award figcaption { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.award figcaption b { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.1; }
.award figcaption span { font-size: 14px; color: var(--ink-2); }

/* What I do */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > :first-child { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.split > :last-child { flex: 999 1 560px; min-width: 0; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.trio div { border-top: 3px solid var(--navy); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.trio h3 { font-size: 26px; font-weight: 600; }
.trio p { font-size: 15px; color: var(--ink-2); }

.logos .wrap { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: center; padding-block: 56px; }
.logos .eyebrow { color: var(--muted); }
.logos span:not(.eyebrow) { font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--muted); }

/* Contact band and footer */
.contact { background: var(--navy); color: var(--paper); }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: center; justify-content: space-between; padding-block: 72px; }
.contact-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-text p { color: var(--soft); font-size: 17px; }
.contact-text p a { color: var(--paper); }
.footer { border-top: 1px solid var(--line-dark); }
.footer .wrap { padding-block: 20px; font-size: 13px; color: #9FB2C6; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Case studies page */
.case-index { display: flex; flex-wrap: wrap; gap: 10px; }
.case-index a { font-size: 14px; color: var(--paper); text-decoration: none; border: 1px solid var(--line-dark); padding: 8px 14px; }
.case-index a:hover { border-color: var(--accent); color: var(--paper); }
.case { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px 56px; padding-block: 64px; border-bottom: 1px solid var(--rule); scroll-margin-top: 16px; }
.case:last-child { border-bottom: 0; }
.case-side { display: flex; flex-direction: column; gap: 14px; }
.case-side .result { background: var(--navy); color: var(--paper); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.case-side .result b { font-family: var(--display); font-size: 48px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.case-side .result span { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.case-main { display: flex; flex-direction: column; gap: 22px; max-width: 70ch; }
.case-main h2 { font-size: clamp(32px, 4vw, 42px); font-weight: 700; }
.case-main h3 { font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); }
.case-main section { display: flex; flex-direction: column; gap: 10px; }
.case-main p { color: var(--ink-2); }
.case-award { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--rule); padding: 14px; }
.case-award img { width: 72px; height: 90px; object-fit: cover; object-position: top; }
.case-award span { font-size: 14px; color: var(--ink-2); }

/* Resume page */
.resume { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 56px; padding-block: 72px; }
.resume-main { display: flex; flex-direction: column; gap: 56px; }
.resume-block { display: flex; flex-direction: column; gap: 24px; }
.resume-block > h2 { font-size: 36px; font-weight: 700; border-bottom: 3px solid var(--navy); padding-bottom: 10px; }
.job { display: flex; flex-direction: column; gap: 8px; }
.job-head { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: baseline; }
.job-head h3 { font-size: 26px; font-weight: 600; }
.job-head time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.job .org { font-weight: 600; font-size: 15px; color: var(--accent-ink); }
.job ul, .list { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 15px; }
.resume-side { display: flex; flex-direction: column; gap: 24px; }
.panel { background: var(--white); border: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.panel h2 { font-size: 24px; font-weight: 700; }
.panel p, .panel li { font-size: 14px; color: var(--ink-2); }
.panel dl { margin: 0; display: grid; gap: 10px; }
.panel dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.panel dd { margin: 0; font-size: 14px; color: var(--ink-2); }

/* About page */
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 70ch; }
.prose p { color: var(--ink-2); font-size: 17px; }
.interests { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.interests div { border-top: 3px solid var(--navy); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.interests h3 { font-size: 26px; font-weight: 600; }
.interests p { font-size: 15px; color: var(--ink-2); }

.traits { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px; background: var(--navy); border: 2px solid var(--navy); }
.traits li { background: var(--navy-2); padding: 26px 24px; display: flex; flex-direction: column; gap: 2px; }
.traits li span { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--paper); }
.traits li span:first-child { color: var(--accent); }
.traits li.traits-stamp { background: var(--accent); justify-content: center; }
.traits-stamp b { font-family: var(--display); font-size: 30px; line-height: 1.1; color: var(--navy); }
.traits-stamp span { font-family: var(--body) !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy) !important; }

@media (max-width: 760px) {
  .case, .resume { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 64px; }
  .hero .wrap { padding-block: 48px 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
