/* dkearney.com — shared styles. Derived from cv-designs/06-corporate-elegant.html */
:root {
  --navy: #0f2747;
  --navy-deep: #0a1c33;
  --gold: #b08433;
  --gold-light: #c79a4b;
  --ink: #1f2a3a;
  --muted: #5a6678;
  --line: #e3e7ee;
  --line-soft: #eef1f6;
  --bg: #f4f6fa;
  --paper: #ffffff;
  --sidebar-bg: #0f2747;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.page {
  width: 100%;
  margin: 0;
  background: var(--paper);
  overflow: hidden;
}
/* full-bleed layout: cap only the reading width of the main column on very wide screens */
.main > .section { max-width: 980px; }
.cta-band { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }

/* ---------- Top navigation ---------- */
.topnav {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topnav .brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
}
.topnav .brand .mini {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--gold-light);
}
.topnav .brand .mini img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.topnav .brand span.name { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: 0.3px; }
.topnav nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13.5px; font-weight: 500; letter-spacing: 0.2px; }
.topnav nav a { color: rgba(255,255,255,0.78); text-decoration: none; padding: 4px 0; border-bottom: 1.5px solid transparent; }
.topnav nav a:hover, .topnav nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

/* ---------- Header band ---------- */
.header {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 48px 56px 44px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}
.monogram {
  flex: 0 0 auto; width: 120px; height: 120px; border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 46px; letter-spacing: 1px;
  color: var(--gold-light); background: rgba(255,255,255,0.03);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.04);
  overflow: hidden;
}
.monogram img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.header-text { flex: 1 1 auto; }
.header h1 { font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1.05; letter-spacing: 0.5px; color: #fff; }
.header .role { font-size: 16px; font-weight: 500; color: var(--gold-light); margin-top: 8px; letter-spacing: 0.2px; }
.header .tagline { margin-top: 10px; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.62); font-weight: 500; }
.header-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13.5px; color: rgba(255,255,255,0.82); }
.header-meta a { color: rgba(255,255,255,0.82); text-decoration: none; }
.header-meta a:hover { color: #fff; }
.header-meta span { display: inline-flex; align-items: center; gap: 7px; }
.header-meta svg { width: 14px; height: 14px; flex: 0 0 auto; stroke: var(--gold-light); }
.header-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

/* compact header for inner pages */
.header.compact { padding: 30px 56px 28px; gap: 22px; }
.header.compact .monogram { width: 68px; height: 68px; font-size: 28px; }
.header.compact h1 { font-size: 34px; }
.header.compact .kicker { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-light); font-weight: 600; margin-bottom: 8px; }
.header.compact .role { margin-top: 6px; font-size: 15px; color: rgba(255,255,255,0.75); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 100px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.3px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  font-family: var(--sans); line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: #fff; }
.btn-whatsapp svg { fill: #fff; }

/* ---------- Body layout ---------- */
.body { display: grid; grid-template-columns: 320px 1fr; }

/* ---------- Sidebar ---------- */
.sidebar { background: var(--sidebar-bg); color: rgba(255,255,255,0.86); padding: 40px 32px 48px; }
.side-block { margin-bottom: 34px; }
.side-block:last-child { margin-bottom: 0; }
.side-title {
  font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff; letter-spacing: 0.5px;
  padding-bottom: 10px; margin-bottom: 16px; position: relative;
}
.side-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 2px; background: var(--gold); }
.contact-list { list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 13px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.84); }
.contact-list svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; stroke: var(--gold-light); }
.contact-list svg.fill { fill: var(--gold-light); stroke: none; }
.contact-list a { color: rgba(255,255,255,0.84); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.side-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.side-cta .btn { justify-content: center; }

.skill-group { margin-bottom: 16px; }
.skill-group:last-child { margin-bottom: 0; }
.skill-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--gold-light); font-weight: 600; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; line-height: 1.3; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.18); border-radius: 100px; color: rgba(255,255,255,0.82); background: rgba(255,255,255,0.04); }

.edu-school { font-family: var(--serif); font-size: 18px; font-weight: 600; color: #fff; line-height: 1.25; }
.edu-detail { font-size: 13px; color: var(--gold-light); margin: 3px 0 8px; }
.edu-list { list-style: none; }
.edu-list li { position: relative; padding-left: 16px; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.78); margin-bottom: 7px; }
.edu-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

.highlight-list { list-style: none; }
.highlight-list li { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.82); }
.highlight-list .h-num { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--gold-light); flex: 0 0 auto; min-width: 58px; }

.lang-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 9px; color: rgba(255,255,255,0.84); }
.lang-row svg { width: 14px; height: 14px; stroke: var(--gold-light); flex: 0 0 auto; }

/* ---------- Main column ---------- */
.main { padding: 44px 52px 52px; min-width: 0; }
.section { margin-bottom: 44px; scroll-margin-top: 20px; }
.section:last-child { margin-bottom: 0; }
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.section-head h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--navy); letter-spacing: 0.5px; white-space: nowrap; }
.section-head .rule { flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, var(--line) 0%, transparent 100%); }
.section-head .ico { width: 26px; height: 26px; flex: 0 0 auto; color: var(--gold); }
.section-head .ico svg { width: 26px; height: 26px; stroke: var(--gold); }
.section-sub { font-size: 14.5px; color: var(--muted); margin: -10px 0 20px; font-style: italic; }

.summary { font-size: 16.5px; line-height: 1.72; color: var(--ink); }
.summary .lead { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--navy); line-height: 1.45; display: block; margin-bottom: 14px; }

/* Experience timeline */
.job { position: relative; padding-left: 30px; padding-bottom: 30px; border-left: 1.5px solid var(--line); }
.job:last-child { padding-bottom: 0; border-left-color: transparent; }
.job::before { content: ""; position: absolute; left: -7px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--gold); box-shadow: 0 0 0 3px var(--paper); }
.job-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.job-title { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.2; }
.job-company { color: var(--gold); font-weight: 600; }
.job-dates { font-size: 12.5px; color: var(--muted); font-weight: 500; letter-spacing: 0.3px; white-space: nowrap; }
.job-context { font-size: 13.5px; color: var(--muted); margin: 4px 0 12px; font-style: italic; line-height: 1.5; }

.bullets { list-style: none; }
.bullets li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.bullets li:last-child { margin-bottom: 0; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.bullets strong { color: var(--navy); font-weight: 600; }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.plain-list { list-style: none; }
.plain-list li { position: relative; padding-left: 20px; margin-bottom: 9px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 1.5px; background: var(--gold); }
.plain-list a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); }
.plain-list a:hover { color: var(--gold); }
.prose { font-size: 15px; line-height: 1.7; color: var(--ink); }
.prose p + p { margin-top: 12px; }
.prose a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); }
.prose a:hover { color: var(--gold); }

/* ---------- Work / portfolio cards ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.work-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease; }
.work-card:hover { box-shadow: 0 10px 30px rgba(15,39,71,0.10); transform: translateY(-2px); }
.work-card .shot { aspect-ratio: 862 / 464; background: var(--line-soft); overflow: hidden; }
.work-card .shot img { width: 100%; height: 100%; object-fit: cover; }
.work-card .wc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-card .wc-head { display: flex; align-items: center; gap: 12px; }
.work-card .wc-logo { width: 40px; height: 40px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.work-card .wc-logo img { max-width: 40px; max-height: 40px; object-fit: contain; }
.work-card .wc-logo.wide img { max-width: 80px; }
.work-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.15; }
.work-card .wc-role { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold); font-weight: 600; }
.work-card p { font-size: 14px; line-height: 1.62; color: var(--ink); }
.work-card .wc-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.work-card .stat { font-size: 12px; padding: 4px 10px; border-radius: 100px; background: var(--line-soft); color: var(--navy); font-weight: 500; }
.logo-strip { margin-top: 20px; padding: 16px 20px; border: 1px dashed var(--line); border-radius: 6px; text-align: center; }
.logo-strip img { max-height: 36px; margin: 0 auto; width: auto; }
.logo-strip .cap { font-size: 12px; color: var(--muted); margin-top: 8px; letter-spacing: 0.3px; }

/* ---------- Post cards (writing) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease; }
.post-card:hover { box-shadow: 0 10px 30px rgba(15,39,71,0.10); transform: translateY(-2px); }
.post-card .thumb { aspect-ratio: 650 / 350; background: var(--line-soft); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .pc-meta { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold); font-weight: 600; }
.post-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.15; }
.post-card p { font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.post-card .more { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.post-card .more::after { content: " \2192"; color: var(--gold); }
.post-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.post-card.featured .thumb { aspect-ratio: auto; min-height: 260px; }
.post-card.featured h3 { font-size: 30px; }

/* ---------- Talks ---------- */
.talk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.talk { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease; }
.talk:hover { box-shadow: 0 10px 30px rgba(15,39,71,0.10); transform: translateY(-2px); }
.talk .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy-deep); overflow: hidden; }
.talk .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.talk .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(15,39,71,0.78); border: 2px solid var(--gold-light); display: flex; align-items: center; justify-content: center; }
.talk .play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.talk .t-body { padding: 16px 20px 18px; }
.talk .t-meta { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.talk h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.15; margin-bottom: 6px; }
.talk p { font-size: 14px; line-height: 1.6; }

/* ---------- Process teaser ---------- */
.teaser { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 22px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.teaser img { border-radius: 4px; }
.teaser h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.15; margin-bottom: 10px; }
.teaser p { font-size: 14.5px; line-height: 1.65; margin-bottom: 14px; }
.teaser .principles { list-style: none; columns: 2; gap: 20px; margin-bottom: 16px; }
.teaser .principles li { font-size: 13px; line-height: 1.5; padding-left: 16px; position: relative; margin-bottom: 5px; break-inside: avoid; }
.teaser .principles li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border: 1.5px solid var(--gold); transform: rotate(45deg); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 40px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; border-top: 3px solid var(--gold); }
.cta-band h2 { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.15; }
.cta-band p { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,0.78); line-height: 1.6; max-width: 56ch; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 22px 56px; font-size: 12.5px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer a { color: var(--gold-light); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer button.linkish { background: none; border: 0; color: var(--gold-light); font: inherit; cursor: pointer; padding: 0; }
.footer button.linkish:hover { color: #fff; }

/* ---------- Article (blog post) ---------- */
.article-wrap { padding: 44px 56px 56px; }
.article { max-width: 760px; margin: 0 auto; }
.breadcrumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; letter-spacing: 0.2px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.article-kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.article h1 { font-family: var(--serif); font-size: 44px; line-height: 1.08; font-weight: 600; color: var(--navy); letter-spacing: 0.3px; }
.article .standfirst { font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--muted); margin-top: 16px; font-weight: 500; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 22px 0 28px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.article-meta .who { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.article-meta .who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); }
.article-meta a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); }
.article-meta .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.article-meta .tag { font-size: 11px; padding: 3px 9px; border-radius: 100px; background: var(--line-soft); color: var(--navy); letter-spacing: 0.3px; }
.article-hero { margin: 0 0 32px; border-radius: 6px; overflow: hidden; background: var(--line-soft); }
.article-hero img { width: 100%; }

.article-body { font-size: 17px; line-height: 1.75; color: var(--ink); }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 { font-family: var(--serif); font-size: 31px; line-height: 1.15; font-weight: 600; color: var(--navy); margin-top: 1.9em; padding-top: 0.4em; position: relative; }
.article-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 42px; height: 2px; background: var(--gold); }
.article-body h3 { font-family: var(--serif); font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--navy); margin-top: 1.6em; }
.article-body h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--gold); font-weight: 600; margin-top: 1.6em; }
.article-body h2 + *, .article-body h3 + *, .article-body h4 + * { margin-top: 0.6em; }
.article-body p strong, .article-body li strong { color: var(--navy); }
.article-body a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); }
.article-body a:hover { color: var(--gold); }
.article-body ul, .article-body ol { padding-left: 0; list-style: none; }
.article-body ul li, .article-body ol li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.article-body ol { counter-reset: li; }
.article-body ol li::before { counter-increment: li; content: counter(li) "."; position: absolute; left: 0; top: 0; font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 19px; line-height: 1.5; }
.article-body blockquote { border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--navy); font-weight: 500; }
.article-body blockquote p + p { margin-top: 0.6em; }
.article-body blockquote.dialogue { font-family: var(--sans); font-size: 15.5px; line-height: 1.6; background: var(--bg); padding: 16px 22px; border-radius: 0 6px 6px 0; font-weight: 400; color: var(--ink); }
.article-body figure { margin: 1.6em 0; }
.article-body figure img { margin: 0 auto; border-radius: 4px; }
.article-body figure.small img { max-width: 220px; }
.article-body figcaption, .article-body .caption { font-size: 13.5px; color: var(--muted); font-style: italic; text-align: center; margin-top: 10px; line-height: 1.5; }
.article-body .caption a, .article-body figcaption a { border-bottom-color: var(--line); }
.article-body .note { border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 16px 20px; font-size: 15px; line-height: 1.65; }
.article-body .note strong { color: var(--navy); }
.article-body hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.article-body .toc { border: 1px solid var(--line); border-radius: 6px; padding: 18px 22px; background: var(--bg); font-size: 14.5px; }
.article-body .toc .toc-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.article-body .toc ol { columns: 2; gap: 24px; }
.article-body .toc li { margin-bottom: 5px; break-inside: avoid; padding-left: 0; }
.article-body .toc ol li::before { position: static; display: inline-block; width: 26px; font-size: 17px; }
.article-body .toc a { border-bottom: 0; }
.article-body .toc a:hover { border-bottom: 1px solid var(--gold); }

.author-box { margin-top: 48px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.author-box h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); }
.author-box p { font-size: 14px; line-height: 1.6; margin-top: 4px; }
.author-box .links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.read-next { margin-top: 44px; }
.read-next h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.read-next .post-grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.read-next .post-card h3 { font-size: 19px; }
.read-next .post-card p { display: none; }

/* ---------- Blog index ---------- */
.blog-wrap { padding: 44px 56px 56px; }
.blog-intro { max-width: 760px; margin-bottom: 32px; }
.blog-intro h1 { font-family: var(--serif); font-size: 42px; line-height: 1.08; color: var(--navy); font-weight: 600; }
.blog-intro p { font-size: 16.5px; line-height: 1.7; margin-top: 12px; color: var(--ink); }
.archive { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.archive h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.archive .sub { font-size: 13.5px; color: var(--muted); font-style: italic; margin-bottom: 14px; }
.archive .plain-list li { font-size: 14.5px; }
.archive .plain-list .yr { color: var(--muted); font-size: 12.5px; margin-left: 6px; }

/* ---------- WhatsApp floating CTA ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--whatsapp); color: #fff; text-decoration: none;
  border-radius: 100px; padding: 12px 16px 12px 12px;
  box-shadow: 0 10px 26px rgba(18,140,126,0.35), 0 2px 6px rgba(0,0,0,0.12);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.2px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.wa-float:hover { transform: translateY(-2px); background: var(--whatsapp-dark); box-shadow: 0 14px 30px rgba(18,140,126,0.4); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; flex: 0 0 auto; }
.wa-float .wa-label { white-space: nowrap; }
.wa-float.with-banner { bottom: 150px; }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(720px, calc(100% - 32px)); z-index: 950;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 8px; box-shadow: 0 20px 60px rgba(15,39,71,0.22);
  padding: 18px 22px; display: grid; grid-template-columns: 1fr auto; gap: 14px 22px; align-items: center;
  font-size: 13.5px; line-height: 1.55;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { font-family: var(--serif); font-size: 18px; color: var(--navy); display: block; margin-bottom: 2px; }
.cookie-banner a { color: var(--navy); border-bottom: 1px solid var(--gold); text-decoration: none; }
.cookie-banner .cb-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-banner .btn { padding: 9px 16px; font-size: 12.5px; }
.cookie-banner .btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.cookie-banner .btn-ghost:hover { color: var(--navy); border-color: var(--navy); }
.cookie-banner .btn-navy { background: var(--navy); color: #fff; }
.cookie-banner .btn-navy:hover { background: var(--navy-deep); }

/* ---------- Simple page (privacy) ---------- */
.simple-wrap { padding: 44px 56px 56px; }
.simple { max-width: 760px; margin: 0 auto; }
.simple h1 { font-family: var(--serif); font-size: 40px; color: var(--navy); font-weight: 600; line-height: 1.1; margin-bottom: 18px; }
.simple h2 { font-family: var(--serif); font-size: 26px; color: var(--navy); font-weight: 600; margin: 1.6em 0 0.5em; }
.simple p, .simple li { font-size: 15.5px; line-height: 1.7; }
.simple p + p { margin-top: 12px; }
.simple ul { margin: 10px 0 10px 20px; }
.simple a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); }
.simple table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
.simple th, .simple td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.simple th { color: var(--navy); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .work-grid, .talk-grid, .two-up, .archive { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .read-next .post-grid { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .cta-actions { justify-content: flex-start; }
}
@media (max-width: 880px) {
  .page { margin: 0; border-radius: 0; }
  .topnav { padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .topnav nav { gap: 4px 16px; }
  .body { grid-template-columns: 1fr; }
  .header { flex-direction: column; text-align: center; padding: 36px 16px 32px; gap: 20px; }
  .header.compact { padding: 26px 16px 24px; text-align: left; flex-direction: row; align-items: center; }
  .header-meta, .header-actions { justify-content: center; }
  .header h1 { font-size: 38px; }
  .header.compact h1 { font-size: 28px; }
  .main { padding: 34px 16px 40px; }
  .sidebar { padding: 34px 16px 40px; }
  .two-up { gap: 28px; }
  .footer { padding: 18px 16px; }
  .article-wrap, .blog-wrap, .simple-wrap { padding: 30px 16px 44px; }
  .cv-h2 { font-size: 24px; }
  .article h1 { font-size: 34px; }
  .article .standfirst { font-size: 19px; }
  .article-body { font-size: 16.5px; }
  .article-body h2 { font-size: 27px; }
  .article-body .toc ol { columns: 1; }
  .article-meta .tags { margin-left: 0; }
  .cta-band { padding: 32px 16px; }
  .blog-intro h1 { font-size: 34px; }
  .teaser .principles { columns: 1; }
  .wa-float { right: 14px; bottom: 14px; padding: 12px; }
  .wa-float .wa-label { display: none; }
  .wa-float.with-banner { bottom: 14px; }
  .cookie-banner { grid-template-columns: 1fr; bottom: 12px; width: calc(100% - 24px); padding: 16px; }
  .cookie-banner .cb-actions { justify-content: flex-start; }
  .author-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .author-box .links { justify-content: center; }
}
@media (max-width: 480px) {
  .header h1 { font-size: 31px; }
  .section-head h2 { font-size: 24px; white-space: normal; }
  .job-title { font-size: 19px; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 12mm; }
  html, body { background: #fff; font-size: 10.5px; color: #1a1a1a; }
  .page { box-shadow: none; margin: 0; max-width: none; border-radius: 0; }
  .topnav, .wa-float, .cookie-banner, .cta-band, .header-actions, .side-cta, .no-print { display: none !important; }
  .header { background: var(--navy) !important; padding: 18px 22px 16px; gap: 20px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .header h1 { font-size: 28px; }
  .monogram { width: 72px; height: 72px; font-size: 32px; }
  .body { grid-template-columns: 250px 1fr; }
  .sidebar { background: var(--navy) !important; padding: 20px 18px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .main { padding: 22px 24px; }
  .section { margin-bottom: 18px; page-break-inside: avoid; }
  .job { padding-bottom: 14px; page-break-inside: avoid; }
  .footer { background: var(--navy-deep) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit !important; }
}

/* ---------- Header nav (replaces the separate top bar) ---------- */
.header { flex-wrap: wrap; }
.header-nav { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13.5px; font-weight: 500; letter-spacing: 0.3px; }
.header-nav a { color: rgba(255,255,255,0.78); text-decoration: none; padding: 2px 0; border-bottom: 1.5px solid transparent; }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.header.compact { flex-wrap: nowrap; align-items: center; }
.header.compact .header-nav { flex: 0 0 auto; margin: 0 0 0 auto; padding: 0; border: 0; gap: 4px 22px; }
.header h1 a, .header .monogram { color: inherit; text-decoration: none; }
.header.compact .monogram { display: flex; }
@media (max-width: 880px) {
  .header-nav { justify-content: center; margin-top: 22px; gap: 4px 18px; }
  .header.compact { flex-wrap: wrap; }
  .header.compact .header-nav { flex: 1 0 100%; margin: 14px 0 0; justify-content: flex-start; }
}

/* ---------- Work timeline ---------- */
.tl { list-style: none; position: relative; margin-top: 6px; }
.tl::before { content: ""; position: absolute; left: 128px; top: 8px; bottom: 8px; width: 1.5px; background: linear-gradient(180deg, var(--gold) 0%, var(--line) 100%); }
.tl-item { position: relative; display: grid; grid-template-columns: 104px 1fr; gap: 0 50px; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 122px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--gold); box-shadow: 0 0 0 4px var(--paper); z-index: 1; }
.tl-when { text-align: right; padding-top: 3px; }
.tl-when span { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.2; letter-spacing: 0.3px; display: inline-block; }
.tl-card { min-width: 0; }
.tl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.tl-logo { width: 44px; height: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px; }
.tl-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tl-logo.wide { width: 84px; }
.tl-head h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--navy); line-height: 1.15; }
.tl-co { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tl-co a { color: var(--gold); font-weight: 600; text-decoration: none; }
.tl-co a:hover { text-decoration: underline; }
.tl-shot { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--line-soft); margin: 0 0 14px; aspect-ratio: 862 / 464; max-width: 620px; }
.tl-shot img { width: 100%; height: 100%; object-fit: cover; }
.tl-context { font-size: 14.5px; line-height: 1.65; color: var(--ink); margin-bottom: 12px; }
.tl-card .bullets li { font-size: 14px; }
.tl-card .bullets a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); }
.tl-card .wc-stats { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tl-card .stat { font-size: 12px; padding: 4px 10px; border-radius: 100px; background: var(--line-soft); color: var(--navy); font-weight: 500; }
@media (max-width: 880px) {
  .tl::before { left: 6px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 28px; }
  .tl-item::before { left: 0; }
  .tl-when { text-align: left; }
  .tl-when span { font-size: 16px; color: var(--gold); }
}

/* Expertise links (header tagline) and pillar sections */
.header .tagline a, .header.compact .role a, .footer a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.header .tagline a:hover, .header.compact .role a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }
.header .tagline .dot, .header.compact .role .dot { opacity: 0.5; }
.pillar .pillar-lead { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--navy); margin: -4px 0 18px; }
.pillar .wc-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pillar .stat { font-size: 12px; padding: 4px 10px; border-radius: 100px; background: var(--line-soft); color: var(--navy); font-weight: 500; }
.pillar .bullets a { color: var(--navy); border-bottom: 1px solid var(--gold); text-decoration: none; }
.pillar .bullets a:hover { color: var(--gold); }

/* CV page and career summary */
.cv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cv-head .blog-intro { margin-bottom: 0; }
.cv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cv-h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--navy); margin: 40px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cv-wrap .tl { max-width: 980px; }
.cv-extra { margin-top: 10px; }
.cv-extra .cv-h2 { margin-top: 30px; }
.cv-extra .edu-school.dark { color: var(--navy); font-weight: 600; font-size: 16px; }
.cv-extra .edu-detail.dark { color: var(--muted); font-size: 13.5px; margin: 2px 0 12px; }
.cv-extra .plain-list strong { color: var(--navy); font-weight: 600; }
.career-mini { list-style: none; margin: -4px 0 20px; }
.career-mini li { display: grid; grid-template-columns: 118px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; line-height: 1.5; }
.career-mini li:last-child { border-bottom: 0; }
.career-mini .cm-yr { font-family: var(--serif); font-size: 15px; color: var(--gold); white-space: nowrap; }
.career-mini .cm-role strong { color: var(--navy); font-weight: 600; }
.career-mini .cm-co { color: var(--muted); }
.career-mini .cm-co::before { content: "\00b7"; margin: 0 6px 0 2px; }
@media (max-width: 480px) {
  .career-mini li { grid-template-columns: 1fr; gap: 2px; }
  .cv-head { align-items: flex-start; }
}
@media print {
  .header-nav, .cv-actions, .breadcrumbs, .footer button { display: none !important; }
  .cv-wrap { padding: 10mm 0 0; }
  .tl-shot { display: none; }
}
.footer-nav { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 6px 22px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 13.5px; font-weight: 500; }
.footer-nav a { color: rgba(255,255,255,0.8); }
.footer-nav a:hover { color: #fff; }
.cv-h2.first { margin-top: 0; font-size: 34px; }
.profile-bullets { margin: 14px 0 18px; }
.summary + .summary { margin-top: 12px; }
.summary strong { color: var(--navy); font-weight: 600; }
.pillar .pillar-lead a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); }
.pillar .pillar-lead a:hover { color: var(--gold); }

@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* Contact modal */
.cmodal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cmodal[hidden] { display: none; }
.cmodal-backdrop { position: absolute; inset: 0; background: rgba(15,39,71,0.45); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); opacity: 0; transition: opacity .3s ease, -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease; }
.cmodal.open .cmodal-backdrop { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cmodal-card { position: relative; width: 100%; max-width: 440px; background: var(--paper); border-radius: 12px; padding: 30px 30px 26px; box-shadow: 0 30px 80px rgba(5,15,35,0.35); border-top: 3px solid var(--gold); opacity: 0; transform: translateY(18px) scale(0.97); transition: opacity .32s ease, transform .38s cubic-bezier(.2,.8,.2,1); outline: none; }
.cmodal.open .cmodal-backdrop { opacity: 1; }
.cmodal.open .cmodal-card { opacity: 1; transform: none; }
.cmodal-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; border-radius: 50%; }
.cmodal-x:hover { color: var(--navy); background: var(--line-soft); }
.cmodal-kicker { font-size: 11.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.cmodal-card h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--navy); line-height: 1.1; margin-top: 8px; }
.cmodal-card > p { font-size: 14.5px; color: var(--ink); line-height: 1.6; margin: 10px 0 18px; }
.cmodal-list { display: grid; gap: 8px; }
.cmodal-opt { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: inherit; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.cmodal-opt:hover, .cmodal-opt:focus-visible { border-color: var(--gold); background: var(--line-soft); transform: translateX(2px); }
.cmodal-opt .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.cmodal-opt .ico svg { width: 20px; height: 20px; stroke: #fff; }
.cmodal-opt.wa .ico { background: var(--whatsapp); }
.cmodal-opt.wa .ico svg { fill: #fff; stroke: none; }
.cmodal-opt strong { display: block; font-size: 15px; color: var(--navy); font-weight: 600; }
.cmodal-opt small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.cmodal.open .cmodal-opt { animation: cmodal-in .45s cubic-bezier(.2,.8,.2,1) both; }
.cmodal.open .cmodal-opt:nth-child(1) { animation-delay: .08s; }
.cmodal.open .cmodal-opt:nth-child(2) { animation-delay: .14s; }
.cmodal.open .cmodal-opt:nth-child(3) { animation-delay: .20s; }
.cmodal.open .cmodal-opt:nth-child(4) { animation-delay: .26s; }
@keyframes cmodal-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.cmodal-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .cmodal-backdrop, .cmodal-card, .cmodal-opt { transition: none; animation: none !important; }
}
@media (max-width: 480px) { .cmodal-card { padding: 24px 20px 20px; } .cmodal-card h2 { font-size: 26px; } }
