/* ==========================================================================
   mojeedabisiga.com: official website of Mojeed Abisiga (Abisiga Mojeed Damilola)
   Plain CSS, no build step. Edit the tokens below to restyle the whole site.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* light theme (default) */
  --bg: #fffae7;              /* cream paper, as on /learn */
  --surface: #ffffff;
  --surface-2: #f6eed2;       /* warm beige */
  --ink: #2f2d2d;             /* charcoal */
  --ink-2: #4f4c49;
  --muted: #6b6762;
  --line: #e6e1d1;
  --line-strong: #d1cdbe;
  --accent: #07704c;
  --accent-hover: #055c3e;
  --accent-ink: #ffffff;
  --accent-soft: #dcf2e8;
  --gold: #8a6216;
  --gold-soft: #f6ecd6;

  /* header, hero and CTA surfaces: cream like /learn (dark brown in dark mode) */
  --night: #fffae7;
  --night-2: #f6eed2;
  --night-line: #e6e1d1;
  --night-ink: #2f2d2d;
  --night-muted: #6b6762;
  --night-accent: #07704c;
  --dots: rgba(47, 45, 45, .10);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13, 17, 23, .05), 0 10px 30px rgba(13, 17, 23, .06);
  --container: 1160px;
  --gutter: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1210;
    --surface: #241a17;
    --surface-2: #2e2420;
    --ink: #fffae7;
    --ink-2: #e8dfca;
    --muted: #b5aa97;
    --line: #3b2f2a;
    --line-strong: #54443d;
    --night: #1a1210;
    --night-2: #120b09;
    --night-line: #3b2f2a;
    --night-ink: #fffae7;
    --night-muted: #b5aa97;
    --night-accent: #45d99c;
    --dots: rgba(255, 250, 231, .08);
    --accent: #45d99c;
    --accent-hover: #6ae4b1;
    --accent-ink: #03140c;
    --accent-soft: #0f2a20;
    --gold: #e2b659;
    --gold-soft: #2a2213;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1210;
  --surface: #241a17;
  --surface-2: #2e2420;
  --ink: #fffae7;
  --ink-2: #e8dfca;
  --muted: #b5aa97;
  --line: #3b2f2a;
  --line-strong: #54443d;
  --night: #1a1210;
  --night-2: #120b09;
  --night-line: #3b2f2a;
  --night-ink: #fffae7;
  --night-muted: #b5aa97;
  --night-accent: #45d99c;
  --dots: rgba(255, 250, 231, .08);
  --accent: #45d99c;
  --accent-hover: #6ae4b1;
  --accent-ink: #03140c;
  --accent-soft: #0f2a20;
  --gold: #e2b659;
  --gold-soft: #2a2213;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.1rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--night-accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { :root { --gutter: 16px; } body { font-size: 16px; } }

/* ---------- Header (always dark) ---------- */
/* paints the phone status-bar strip above the sticky header (zero height elsewhere) */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--night);
  border-bottom: 1px solid var(--night-line);
  color: var(--night-ink);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--night-ink); }
.brand:hover { color: var(--night-ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--night-accent); color: #03140c; font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: -0.04em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--night-muted); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--night-ink); background: rgba(127, 110, 100, .14); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--night-line); background: transparent; color: var(--night-ink); cursor: pointer; }
.icon-btn:hover { background: rgba(127, 110, 100, .14); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--night); border-bottom: 1px solid var(--night-line); padding: 12px 16px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .menu-toggle .i-close { display: none; }
  .nav-open .menu-toggle .i-close { display: block; }
  .nav-open .menu-toggle .i-menu { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.on-night .btn-primary { background: var(--accent); color: var(--accent-ink); }
.on-night .btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.on-night .btn-ghost { border-color: var(--line-strong); color: var(--night-ink); }
.on-night .btn-ghost:hover { border-color: var(--night-ink); color: var(--night-ink); }

/* ---------- Hero (always dark) ---------- */
.hero { position: relative; background: var(--night); color: var(--night-ink); overflow: hidden; isolation: isolate; }
.hero::before { /* subtle data-grid texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(var(--dots) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 75%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 75%);
}
.hero .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 24px; min-height: min(760px, calc(100svh - 68px)); padding-top: 40px; padding-bottom: 40px; }
.eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--night-accent); margin: 0 0 22px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.hero h1 { margin: 0; color: var(--night-ink); }
.hero .alt-name { display: block; margin: 14px 0 26px; font-family: var(--font-sans); font-size: .95rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.hero .lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 34em; margin-bottom: 30px; }
.hero .lead strong { color: var(--night-ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.socials a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--night-line); color: var(--night-muted); transition: color .2s, border-color .2s, background .2s; }
.socials a:hover { color: var(--night-ink); border-color: var(--line-strong); background: rgba(127, 110, 100, .12); }
.socials .icon { width: 18px; height: 18px; }
.hero-portrait { position: relative; justify-self: end; width: 100%; max-width: 520px; align-self: end; margin-bottom: -40px; }
.hero-portrait img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  /* fade left, right and bottom edges into the black hero so the photo has no visible box */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 70%, transparent 100%);
  mask-composite: intersect;
}
.hero-badge {
  position: absolute; left: 0; bottom: 18%;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: rgba(16, 19, 23, .82); border: 1px solid #262c34; border-radius: 16px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .85rem; line-height: 1.3; color: var(--night-muted);
}
.hero-badge strong { display: block; color: var(--night-ink); font-size: .98rem; }
.hero-badge .badge-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(69, 217, 156, .14); color: var(--night-accent); }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; padding-bottom: 0; gap: 8px; }
  .hero-portrait { order: -1; justify-self: center; max-width: 360px; margin: 0 auto -12px; }
  .hero-badge { left: auto; right: -4px; bottom: 12%; }
  .hero-text { padding-bottom: 44px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { padding-top: 0; }
.section-alt { background: var(--surface-2); }
.section-alt + .section { padding-top: clamp(64px, 9vw, 112px); }
.section + .section-alt, .section-alt + .section-alt { padding-top: clamp(64px, 9vw, 112px); }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.section-head h2 { margin: 0; max-width: 18em; }
.section-head p { margin: 0; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translate(2px, -2px); }

/* intro + fact file */
.intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.intro .prose p:first-of-type { font-size: 1.16rem; color: var(--ink); }
.prose { color: var(--ink-2); max-width: 44em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; color: var(--ink); }
.prose a { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
.prose blockquote footer { margin-top: 8px; font-family: var(--font-sans); font-size: .9rem; color: var(--muted); }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.facts-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.facts-head img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #000; }
.facts-head strong { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.facts-head span { font-size: .88rem; color: var(--muted); }
.facts dl { margin: 0; padding: 6px 20px 14px; }
.facts .row { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; line-height: 1.45; }
.facts .row:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; color: var(--ink); }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(48px, 6vw, 72px); }
.stat { background: var(--surface); padding: 26px 24px; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); margin-bottom: 10px; }
.stat-label { font-size: .9rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .stat { padding: 20px 16px; } }
@media (max-width: 340px) { .stats { grid-template-columns: 1fr; } }

/* cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .25s, border-color .25s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: .98rem; }
.card .role { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; margin-bottom: 16px; }
.card .card-foot { margin-top: auto; padding-top: 10px; }
.venture-featured { grid-column: span 2; background: var(--night); color: var(--night-ink); border-color: var(--night-line); }
.venture-featured p { color: var(--ink-2); }
.venture-featured .role { color: var(--accent-ink); background: var(--accent); }
.venture-featured .link-arrow { color: var(--night-accent); }
.venture-featured h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--night-ink); margin-bottom: 10px; }
.venture-featured .tagline { font-family: var(--font-display); font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.4; color: var(--night-accent); margin: 0 0 14px; }
@media (max-width: 680px) { .venture-featured { grid-column: auto; } }

/* recognition */
.honors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 960px) { .honors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .honors { grid-template-columns: 1fr; } }
.honor { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.honor .year { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--gold); background: var(--gold-soft); padding: 4px 9px; border-radius: 999px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.honor h3 { font-size: 1.12rem; margin-bottom: 6px; }
.honor p { font-size: .93rem; color: var(--muted); margin: 0; }

/* speaking */
.speak { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
@media (max-width: 860px) { .speak { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.chips li { font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.list-clean { list-style: none; padding: 0; margin: 0; }
.appearance { display: grid; grid-template-columns: 86px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.appearance:last-child { border-bottom: 1px solid var(--line); }
.appearance time, .appearance .when { font-size: .85rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.appearance strong { display: block; font-weight: 600; color: var(--ink); line-height: 1.4; }
.appearance span { display: block; margin-top: 2px; font-size: .92rem; line-height: 1.5; color: var(--muted); }

/* writing */
.feature-article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature-article .pub { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.feature-article h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.feature-article h3 a { text-decoration: none; }
.feature-article h3 a:hover { text-decoration: underline; }
.entries { list-style: none; padding: 0; margin: 0; }
.entry { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.entry:first-child { border-top: 1px solid var(--line); }
.entry a { font-weight: 600; text-decoration: none; color: var(--ink); line-height: 1.4; }
.entry a:hover { color: var(--accent); text-decoration: underline; }
.entry .meta { font-size: .85rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry .src { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }
@media (max-width: 560px) { .entry { grid-template-columns: 1fr; } .entry .meta { white-space: normal; } }

/* press */
.press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .press-grid { grid-template-columns: 1fr; } }
.press-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.press-card:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }
.press-card .outlet { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.press-card .headline { font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.press-card .meta { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--muted); }
.press-card .meta .icon { width: 16px; height: 16px; }

/* CTA band (always dark) */
.cta-band { background: var(--night); color: var(--night-ink); padding: clamp(64px, 9vw, 104px) 0; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; z-index: -1; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(69, 217, 156, .16), transparent 62%); }
.cta-band h2 { color: var(--night-ink); max-width: 16em; }
.cta-band p { color: var(--ink-2); max-width: 38em; font-size: 1.1rem; }
.cta-band .hero-cta { margin: 28px 0 0; }

/* footer */
.site-footer { background: var(--night-2); color: var(--night-muted); padding: 56px 0 40px; font-size: .93rem; border-top: 1px solid var(--night-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--night-ink); margin: 0 0 14px; }
.site-footer a { color: var(--night-muted); text-decoration: none; }
.site-footer a:hover { color: var(--night-ink); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { margin-bottom: 14px; color: var(--night-ink); }
.site-footer .brand:hover { text-decoration: none; }
.footer-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* ---------- Sub-pages ---------- */
.page-hero { background: var(--night); color: var(--night-ink); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: radial-gradient(var(--dots) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
.page-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); color: var(--night-ink); margin: 0 0 12px; }
.page-hero p { color: var(--night-muted); font-size: 1.12rem; max-width: 40em; margin: 0; }
.page-hero .with-photo { display: flex; align-items: center; gap: 28px; }
.page-hero .with-photo img { width: 112px; height: 112px; border-radius: 28px; object-fit: cover; border: 1px solid var(--night-line); }
@media (max-width: 600px) { .page-hero .with-photo { flex-direction: column; align-items: flex-start; gap: 20px; } .page-hero .with-photo img { width: 88px; height: 88px; border-radius: 22px; } }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .88rem; color: var(--night-muted); }
.breadcrumb a { color: var(--night-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--night-ink); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

.bio-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.bio-layout .bio-aside { position: sticky; top: 92px; display: grid; gap: 20px; }
@media (max-width: 960px) { .bio-layout { grid-template-columns: 1fr; } .bio-layout .bio-aside { position: static; order: -1; } }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .93rem; }
.toc strong { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.timeline { list-style: none; padding: 0; margin: 8px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 36px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline .when { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.timeline strong { display: block; color: var(--ink); font-weight: 600; }
.timeline span { color: var(--muted); font-size: .95rem; }

.refs { font-size: .9rem; color: var(--muted); padding-left: 22px; }
.refs li { margin-bottom: 8px; }
.refs a { color: var(--ink-2); }

.profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 560px) { .profiles { grid-template-columns: 1fr; } }
.profiles a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); }
.profiles a:hover { border-color: var(--accent); color: var(--ink); }
.profiles .icon { width: 18px; height: 18px; color: var(--muted); }
.profiles small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }

.bio-block { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 20px; margin-bottom: 20px; }
.bio-block h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-sans); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.bio-block p { margin: 0; color: var(--ink-2); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-size: .82rem; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.copy-btn:hover { border-color: var(--accent); }
.copy-btn .icon { width: 15px; height: 15px; }

.kit { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .kit { grid-template-columns: 1fr; } }
.kit-photo { background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.kit-photo figcaption { background: var(--surface); padding: 14px 16px; font-size: .88rem; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* 404 */
.not-found { min-height: calc(100svh - 68px); display: grid; place-items: center; text-align: center; background: var(--night); color: var(--night-ink); padding: 60px 16px; }
.not-found h1 { font-size: clamp(3rem, 10vw, 7rem); color: var(--night-ink); margin-bottom: 8px; }
.not-found p { color: var(--night-muted); margin-bottom: 28px; }


@media print {
  .site-header, .site-footer, .cta-band, .hero-cta, .socials, .copy-btn { display: none !important; }
  .hero, .page-hero { background: #fff; color: #000; }
  body { background: #fff; color: #000; }
}

/* citations: [1][6] style, without disturbing line spacing */
.prose sup { font-size: .7em; line-height: 0; vertical-align: super; margin-left: 1px; }
.prose sup a { text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.prose sup a::before { content: "["; }
.prose sup a::after { content: "]"; }
.prose sup a:hover { text-decoration: underline; }
a.copy-btn { text-decoration: none; }

/* Headshot logo in the header and footer */
.brand-logo { display: block; object-fit: cover; border-radius: 50%; background: #111; box-shadow: 0 0 0 2px var(--night-accent); }

/* Portrait photos: About/Achievements sidebar and extra media-kit photos */
.aside-photo { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #d9dcdf; }
.aside-photo img { display: block; width: 100%; height: auto; }
.kit-more { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.kit-more .kit-photo { margin: 0; }
.kit-more img { display: block; width: 100%; height: auto; }
.kit-more figcaption { flex-wrap: wrap; font-size: .8rem; padding: 10px 12px; }
.kit-photo img { display: block; width: 100%; height: auto; }
.kit-more img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }

/* Home hero: full portrait in a rounded frame, as on /learn */
.hero-portrait:has(.hero-photo) { max-width: 400px; align-self: center; margin-bottom: 0; }
.hero-portrait img.hero-photo { aspect-ratio: auto; height: auto; object-fit: initial; border-radius: 24px;
  -webkit-mask-image: none; mask-image: none; box-shadow: 0 24px 60px rgba(47, 45, 45, .18), 0 0 0 6px var(--surface-2); }
@media (max-width: 900px) { .hero-portrait:has(.hero-photo) { max-width: 320px; margin: 8px auto 28px; } }

/* Footer: dark brown like /learn, in both themes */
.site-footer { --night-2: #21110e; --night-ink: #fffae7; --night-muted: #cfc3b0; --night-line: #3b2f2a; --night-accent: #45d99c; }
:root[data-theme="dark"] .site-footer { --night-2: #120b09; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { --night-2: #120b09; } }
