/* ============================================================
   Godfrey MAIWUN — style.css  v5
   Technical PM · Cybersecurity · Cloud · Leadership
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --cream:     #faf9f7;
  --paper:     #f4f2ee;
  --rule:      #e4e0d8;
  --muted:     #9a9488;
  --ink:       #1c1c1a;
  --ink-soft:  #4a4842;
  --blue:      #3d6fa8;
  --blue-lt:   #dce9f8;
  --blue-mid:  #5a8bbf;
  --blue-dk:   #2a4f7a;
  --blue-dim:  rgba(61,111,168,0.12);

  --ff-serif:  'Cormorant Garamond', Georgia, serif;
  --ff-sans:   'DM Sans', system-ui, sans-serif;

  --col:  640px;
  --wide: 900px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--ff-sans);
  font-weight: 300;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* ── LAYOUT ──────────────────────────────────────────────── */
.col  { max-width: var(--col);  margin: 0 auto; padding: 0 1.5rem; }
.wide { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }

/* ── NAV ─────────────────────────────────────────────────── */
.site-nav {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  background: rgba(250,249,247,0.96);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  flex: 1;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.81rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-links a:hover  { color: var(--ink); background: var(--paper); }
.nav-links a.active { color: var(--ink); font-weight: 500; }

/* Dropdown */
.nav-links li { position: relative; }
.nav-dropdown-btn {
  font-size: 0.81rem;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-sans);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-dropdown-btn:hover,
.nav-dropdown-btn.active { color: var(--ink); background: var(--paper); }
.nav-caret { font-size: 0.48rem; opacity: 0.55; transition: transform 0.2s; }
.nav-links li.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  min-width: 170px;
  padding: 0.35rem 0;
  z-index: 200;
}
.nav-links li.open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.81rem;
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
  transition: background 0.12s, color 0.12s;
}
.nav-dropdown a:hover { background: var(--paper); color: var(--ink); }

.nav-subscribe {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  padding: 0.38rem 1rem;
  border: 1px solid var(--blue-lt);
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.nav-subscribe:hover { background: var(--blue-lt); border-color: var(--blue-mid); color: var(--blue); }

/* ── HAMBURGER ───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: 0.25s;
}

/* ── MOBILE MENU ─────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 300;
  flex-direction: column;
  padding: 1.5rem 1.75rem 2rem;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.mobile-menu__logo {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.mobile-menu__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink-soft);
  line-height: 1;
  padding: 4px;
}
.mobile-menu a {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu__label {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1.25rem 0 0.5rem;
}
.mobile-menu__sub a {
  font-size: 0.95rem;
  padding: 0.6rem 0 0.6rem 1rem;
  color: var(--ink-soft);
}

/* ── PAGE SECTIONS ───────────────────────────────────────── */
.site-header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}
.site-header__name {
  font-family: var(--ff-serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.site-header__tagline {
  font-size: 0.87rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.page-intro {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}
.page-intro h1 {
  font-family: var(--ff-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.page-intro p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 480px;
}
.breadcrumb {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

/* Section rule label */
.section-rule {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

/* ── NEWSLETTER BOX ──────────────────────────────────────── */
.newsletter-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
}
.newsletter-box h2 {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.newsletter-box p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.newsletter-box p em { font-style: normal; color: var(--muted); font-size: 0.82rem; }
.nl-form { display: flex; gap: 0.5rem; }
.nl-form input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--ff-sans);
  font-size: 0.88rem;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.nl-form input:focus { border-color: var(--blue-mid); }
.nl-form input::placeholder { color: var(--muted); }
.nl-form button {
  padding: 0.6rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 2px;
  font-family: var(--ff-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.nl-form button:hover { background: var(--blue-dk); }

/* ── WRITING ARCHIVE ─────────────────────────────────────── */
.archive-year { margin-top: 2.5rem; }
.archive-year h2 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.archive-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  align-items: baseline;
}
.archive-item:hover .archive-item__title { color: var(--blue); }
.archive-date { font-size: 0.78rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.archive-item__title { font-size: 0.97rem; color: var(--ink); line-height: 1.4; transition: color 0.15s; }
.archive-item__cat   { font-size: 0.7rem; color: var(--muted); margin-top: 0.15rem; }

/* ── EXPLORE GRID ────────────────────────────────────────── */
.explore { margin: 3rem 0; padding-top: 2rem; border-top: 1px solid var(--rule); }
.explore h2 { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.75rem; }
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2.5rem; }
.explore-item h3 { font-family: var(--ff-serif); font-size: 1.05rem; font-weight: 400; color: var(--ink); margin-bottom: 0.3rem; }
.explore-item p  { font-size: 0.84rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 0.5rem; }
.explore-link    { font-size: 0.8rem; color: var(--blue); text-decoration: none; }
.explore-link:hover { text-decoration: underline; }

/* ── PROSE ───────────────────────────────────────────────── */
.prose { padding: 2.5rem 0 4rem; }
.prose p { font-size: 1rem; color: var(--ink-soft); line-height: 1.85; margin-bottom: 1.25rem; }
.prose p strong { color: var(--ink); font-weight: 500; }
.prose p em { font-style: italic; }
.prose h2 { font-family: var(--ff-serif); font-size: 1.4rem; font-weight: 400; color: var(--ink); margin: 2.25rem 0 0.75rem; line-height: 1.3; }
.prose h3 { font-family: var(--ff-serif); font-size: 1.1rem; font-weight: 400; color: var(--ink); margin: 1.75rem 0 0.5rem; }
.prose blockquote { border-left: 2px solid var(--blue-lt); padding: 0.75rem 1.25rem; margin: 1.75rem 0; color: var(--ink-soft); font-style: italic; }
.prose blockquote p { margin: 0; }
.prose a { color: var(--blue); }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { font-size: 1rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 0.35rem; }
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.post-lead { font-family: var(--ff-serif); font-size: 1.25rem; font-weight: 300; line-height: 1.7; color: var(--ink); margin-bottom: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--rule); }

/* Inline code in articles */
.prose code {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: 0.82rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  color: var(--blue-dk);
  white-space: nowrap;
}
/* Block-level emphasis / callout lines */
.prose blockquote {
  border-left: 3px solid var(--blue-lt);
  margin: 1.75rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
}
.prose blockquote p { margin-bottom: 0; }
/* Article meta row */
.article-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.6rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.article-meta span { white-space: nowrap; }

/* ── SERVICES ────────────────────────────────────────────── */
.service-list { list-style: none; padding: 0; margin: 0; }
.service-item { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.service-item h3 { font-family: var(--ff-serif); font-size: 1.15rem; font-weight: 400; color: var(--ink); margin-bottom: 0.4rem; }
.service-item p  { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 0.65rem; }
.text-link { font-size: 0.8rem; color: var(--blue); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; color: var(--ink); }

/* ── BOOK CLUB ───────────────────────────────────────────── */
.bookclub-current {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}
.bookclub-current__label { font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.bookclub-current__book  { font-family: var(--ff-serif); font-size: 1.25rem; font-weight: 400; color: var(--ink); margin-bottom: 0.15rem; }
.bookclub-current__author { font-size: 0.85rem; color: var(--blue); margin-bottom: 1rem; }
.week-bar { display: flex; gap: 0.35rem; margin-bottom: 0.35rem; }
.week-pip { height: 3px; flex: 1; border-radius: 100px; background: var(--rule); }
.week-pip.done   { background: var(--blue-mid); }
.week-pip.active { background: var(--blue); }
.week-bar-label  { font-size: 0.72rem; color: var(--muted); }
.bookclub-detail-row { display: flex; gap: 2rem; margin: 1.25rem 0; flex-wrap: wrap; }
.bookclub-detail { font-size: 0.85rem; color: var(--ink-soft); }
.bookclub-detail strong { color: var(--ink); font-weight: 500; display: block; }

.past-book {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.past-book__cycle  { font-size: 0.78rem; color: var(--muted); }
.past-book__title  { font-size: 0.95rem; color: var(--ink); }
.past-book__author { font-size: 0.8rem; color: var(--ink-soft); }
.past-book__date   { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

/* ── BOOKSHELF (accordion rows) ──────────────────────────── */
.book-row {
  border-bottom: 1px solid var(--rule);
}
.book-row__trigger {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 0.75rem;
  padding: 0.85rem 0;
  cursor: pointer;
  align-items: center;
  list-style: none;
  user-select: none;
}
.book-row__trigger:hover .book-row__title { color: var(--blue); }
.book-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rule);
  flex-shrink: 0;
  justify-self: center;
}
.book-dot.reading { background: var(--blue); }
.book-dot.done    { background: var(--blue-mid); }
.book-dot.queue   { background: var(--muted); opacity: 0.4; }
.book-row__info   {}
.book-row__title  { font-size: 0.95rem; color: var(--ink); line-height: 1.4; transition: color 0.15s; }
.book-row__author { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }
.book-row__badge  {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.book-row__chevron {
  font-size: 0.5rem;
  color: var(--muted);
  transition: transform 0.25s;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.book-row.open .book-row__chevron { transform: rotate(180deg); }

.book-summary {
  display: none;
  padding: 0 0 1.25rem 1.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.8;
  border-left: 2px solid var(--blue-lt);
  margin: 0 0 0.5rem 0.25rem;
}
.book-summary p { margin-bottom: 0.75rem; }
.book-summary p:last-child { margin-bottom: 0; }
.book-summary strong { color: var(--ink); font-weight: 500; }
.book-row.open .book-summary { display: block; }

/* ── EPISODE LIST ────────────────────────────────────────── */
.episode-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  align-items: baseline;
}
.episode-row:hover .episode-row__title { color: var(--blue); }
.episode-row__date  { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.episode-row__title { font-size: 0.95rem; color: var(--ink); line-height: 1.4; transition: color 0.15s; }
.episode-row__cat   { font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }
.episode-row__dur   { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

/* ── BOOTCAMP ────────────────────────────────────────────── */
.programme-row { padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.programme-row h3 { font-family: var(--ff-serif); font-size: 1.1rem; font-weight: 400; color: var(--ink); margin-bottom: 0.35rem; }
.programme-row p  { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 0.75rem; max-width: 520px; }
.programme-row ul { list-style: none; padding: 0; margin-bottom: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.programme-row ul li { font-size: 0.76rem; color: var(--ink-soft); padding: 0.2rem 0.6rem; border: 1px solid var(--rule); border-radius: 100px; }
.wa-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--blue); text-decoration: none; font-weight: 500; }
.wa-link:hover { text-decoration: underline; opacity: 0.8; }

/* ── CERTIFICATIONS ──────────────────────────────────────── */
.cert-row {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.cert-badge {
  width: 52px; height: 52px;
  border-radius: 4px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-lt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue);
  text-align: center;
  line-height: 1.2;
}
.cert-body h3 { font-family: var(--ff-serif); font-size: 1.1rem; font-weight: 400; color: var(--ink); margin-bottom: 0.2rem; }
.cert-body .cert-meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.6rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cert-body .cert-meta span { display: flex; align-items: center; gap: 0.3rem; }
.cert-body p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.75; }

/* ── PROJECTS ────────────────────────────────────────────── */
.project-row {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.project-row h3 { font-family: var(--ff-serif); font-size: 1.15rem; font-weight: 400; color: var(--ink); margin-bottom: 0.25rem; }
.project-meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.75rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.project-meta span { display: flex; align-items: center; gap: 0.3rem; }
.project-row p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 1rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.25rem; }
.project-tag { font-size: 0.73rem; color: var(--blue); padding: 0.18rem 0.6rem; border: 1px solid var(--blue-lt); border-radius: 100px; }

/* Architecture diagram container */
.arch-diagram {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}
.arch-diagram svg { display: block; margin: 0 auto; max-width: 100%; }

/* ── MEDIA / PHOTOGRAPHY ─────────────────────────────────── */
.carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--rule);
  background: var(--paper);
  margin: 1.5rem 0;
  aspect-ratio: 4/3;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-size: 1rem;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}
/* Placeholder photo tiles — site-colour geometric compositions */
.slide-1  { background: linear-gradient(135deg, #dce9f8 0%, #c4d9f0 40%, #e4e0d8 100%); }
.slide-2  { background: linear-gradient(160deg, #f4f2ee 0%, #dce9f8 50%, #b8cfe8 100%); }
.slide-3  { background: linear-gradient(115deg, #c4d9f0 0%, #faf9f7 60%, #dce9f8 100%); }
.slide-4  { background: linear-gradient(145deg, #b8cfe8 0%, #f4f2ee 55%, #c4d9f0 100%); }
.slide-5  { background: linear-gradient(125deg, #dce9f8 0%, #e4e0d8 45%, #b8cfe8 100%); }
.slide-6  { background: linear-gradient(155deg, #f4f2ee 0%, #c4d9f0 50%, #dce9f8 100%); }
.slide-7  { background: linear-gradient(130deg, #c4d9f0 0%, #faf9f7 40%, #e4e0d8 100%); }
.slide-8  { background: linear-gradient(150deg, #dce9f8 0%, #b8cfe8 50%, #f4f2ee 100%); }

/* Decorative geometric overlay on each slide */
.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 18px,
    rgba(61,111,168,0.06) 18px,
    rgba(61,111,168,0.06) 19px
  );
}
.slide-label {
  position: absolute;
  bottom: 1rem; left: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(250,249,247,0.82);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  background: rgba(250,249,247,0.9);
  border: 1px solid var(--rule);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: var(--ink);
  transition: background 0.15s;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.carousel-btn:hover { background: var(--cream); border-color: var(--blue-lt); }
.carousel-btn.prev { left: 0.75rem; }
.carousel-btn.next { right: 0.75rem; }
.carousel-dots {
  display: flex; justify-content: center; gap: 0.45rem;
  padding: 0.75rem 0 0.25rem;
}
.carousel-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rule);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.carousel-dot.active { background: var(--blue); }

.photo-month { margin-bottom: 3rem; }
.photo-month-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
}
.instagram-strip {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.instagram-strip p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.contact-list a { color: var(--blue); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--rule); padding: 1.5rem 0 2.5rem; margin-top: 3rem; }
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-links { font-size: 0.81rem; color: var(--muted); }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-links .sep { margin: 0 0.4rem; opacity: 0.45; }
.footer-copy { font-size: 0.77rem; color: var(--muted); }

/* ── WHATSAPP FLOAT — site-colour toned ──────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.wa-float__tip {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.72rem;
  font-family: var(--ff-sans);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(6px);
}
.wa-float:hover .wa-float__tip { opacity: 1; transform: translateX(0); }
.wa-float__btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(61,111,168,0.32);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
}
.wa-float__btn:hover {
  transform: scale(1.06);
  background: var(--blue-dk);
  box-shadow: 0 4px 20px rgba(61,111,168,0.4);
}
.wa-float__pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(61,111,168,0.25);
  animation: waPulse 2.8s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.wa-float__btn svg { width: 22px; height: 22px; position: relative; z-index: 1; }

/* ── ARTICLE INLINE IMAGES ───────────────────────────────── */
.article-img {
  margin: 2.25rem -1.5rem;   /* bleed to column edges */
  position: relative;
  overflow: hidden;
}
.article-img svg,
.article-img img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
  /*
   * Same filter stack as the About page photo:
   * tones any image into the site's blue-cream-ink palette.
   */
  filter:
    grayscale(35%)
    brightness(88%)
    sepia(22%)
    hue-rotate(192deg)
    saturate(75%);
  transition: filter 0.4s;
}
.article-img:hover svg,
.article-img:hover img {
  filter:
    grayscale(12%)
    brightness(95%)
    sepia(8%)
    hue-rotate(192deg)
    saturate(92%);
}
/* Top + bottom gradient edge fade */
.article-img::before,
.article-img::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 48px;
  z-index: 2;
  pointer-events: none;
}
.article-img::before {
  top: 0;
  background: linear-gradient(to bottom, var(--cream), transparent);
}
.article-img::after {
  bottom: 0;
  background: linear-gradient(to top, var(--cream), transparent);
}
.article-img__caption {
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.4rem 1.5rem 0;
  font-style: italic;
  text-align: center;
}

/* ── BACK TO TOP BUTTON ──────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 5.25rem;   /* sits left of the WA button (46px btn + 0.75rem gap + 0.75rem margin) */
  z-index: 400;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--rule);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s, background 0.15s, border-color 0.15s, box-shadow 0.2s;
}
.back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-top:hover {
  background: var(--blue-lt);
  border-color: var(--blue-lt);
  box-shadow: 0 4px 18px rgba(61,111,168,0.18);
}
.back-top svg {
  width: 18px; height: 18px;
  stroke: var(--blue);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s;
}
.back-top:hover svg { stroke: var(--blue-dk); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--ff-sans);
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-dark    { background: var(--ink);    color: var(--cream); }
.btn-dark:hover { background: var(--blue-dk); color: var(--cream); }
.btn-blue    { background: var(--blue);   color: white; }
.btn-blue:hover { background: var(--blue-dk); color: white; }
.btn-outline { border: 1px solid var(--rule); color: var(--ink-soft); background: transparent; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-wa      { background: var(--blue);   color: white; }
.btn-wa:hover { background: var(--blue-dk); color: white; }

/* ── CTA STRIP ───────────────────────────────────────────── */
.cta-strip {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-strip p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ── PROFILE PHOTO — full-width, site-colour toned ──────── */
.profile-photo-wrap {
  /* Break out of .col to reach full column edge */
  margin: 2rem -1.5rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  /* Fixed aspect ratio — portrait feel, full width */
  aspect-ratio: 3 / 2;
  background: var(--blue-lt);     /* fallback while image loads */
}
.profile-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;    /* keep face in frame */
  border-radius: 0;               /* rectangular — no rounding */

  /*
   * Site-colour filter stack:
   *  1. desaturate 30% → mutes any vivid colours
   *  2. brightness 90% → slight darkening for warmth
   *  3. sepia 18%  → pushes toward cream/warm ink tones
   *  4. hue-rotate 195deg → shifts remaining hues toward the site blue
   *  5. saturate 80% → pulls the blue back just enough without garish
   * Net effect: photo reads in the same blue-cream-ink palette as the site.
   * Remove any of these lines to taste once your real photo is in place.
   */
  filter:
    grayscale(30%)
    brightness(90%)
    sepia(18%)
    hue-rotate(195deg)
    saturate(80%);

  transition: filter 0.4s ease;
}
.profile-photo-wrap:hover .profile-photo {
  /* On hover: ease toward natural colour so visitor can see real photo */
  filter:
    grayscale(10%)
    brightness(95%)
    sepia(6%)
    hue-rotate(195deg)
    saturate(95%);
}

/* Blue-to-transparent gradient overlay — reinforces palette at top/bottom edges */
.profile-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(220, 233, 248, 0.18) 0%,
      transparent 30%,
      transparent 70%,
      rgba(250, 249, 247, 0.35) 100%
    );
  pointer-events: none;
}

.profile-photo-caption {
  padding: 0.85rem 1.5rem 1.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.65;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.profile-photo-caption code {
  font-size: 0.67rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  color: var(--ink-soft);
  word-break: break-all;
}

/* ── REVEAL ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── CREDENTIAL CARD CAROUSELS ───────────────────────────── */
.cred-category {
  margin: 2.5rem 0 0;
}
.cred-category__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}
.cred-category__count {
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--blue);
  margin-left: 0.5rem;
  font-weight: 400;
}

/* Carousel shell */
.cred-carousel-outer {
  position: relative;
}
.cred-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Firefox */
  padding-bottom: 0.25rem;
}
.cred-carousel::-webkit-scrollbar { display: none; }

/* Arrow buttons */
.cred-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 32px; height: 32px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  color: var(--ink-soft);
  z-index: 5;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.cred-arrow:hover { background: var(--paper); border-color: var(--blue-lt); color: var(--blue); }
.cred-arrow.prev { left: -14px; }
.cred-arrow.next { right: -14px; }
.cred-arrow[disabled] { opacity: 0.3; cursor: default; pointer-events: none; }

/* Dot nav */
.cred-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.9rem;
  justify-content: center;
}
.cred-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rule);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.cred-dot.active { background: var(--blue); transform: scale(1.25); }

/* Credential card */
.cred-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cred-card:hover {
  border-color: var(--blue-lt);
  box-shadow: 0 3px 16px rgba(61,111,168,0.1);
}

/* Badge area — top portion of each card */
.cred-card__badge-area {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-lt) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--rule);
  padding: 1rem;
  flex-shrink: 0;
}
.cred-card__badge-area svg {
  width: 64px;
  height: 64px;
  display: block;
}

/* Card body */
.cred-card__body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.cred-card__abbr {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.cred-card__name {
  font-family: var(--ff-serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
}
.cred-card__issuer {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.cred-card__desc {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 0.35rem;
  flex: 1;
}

/* Cross-listed badge */
.cred-card__xref {
  display: inline-block;
  font-size: 0.63rem;
  color: var(--blue);
  border: 1px solid var(--blue-lt);
  border-radius: 100px;
  padding: 0.12rem 0.5rem;
  margin-top: 0.5rem;
  white-space: nowrap;
  width: fit-content;
}

/* ── PROJECT TABS ────────────────────────────────────────── */
.project-tabs {
  margin: 2rem 0 0;
}

.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  font-family: var(--ff-sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;        /* sit on top of the bar border */
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--blue);
}
.tab-btn__count {
  font-size: 0.68rem;
  background: var(--blue-dim);
  color: var(--blue);
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
  font-weight: 500;
  line-height: 1.6;
}
.tab-btn.active .tab-btn__count {
  background: var(--blue);
  color: white;
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav-links, .nav-subscribe { display: none; }
  .hamburger { display: flex; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .episode-row  { grid-template-columns: 76px 1fr; }
  .episode-row__dur { display: none; }
  .past-book { grid-template-columns: 1fr auto; }
  .past-book__cycle { display: none; }
  .cert-row { grid-template-columns: 44px 1fr; }
}
@media (max-width: 480px) {
  html { font-size: 16px; }
  .explore-grid { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .bookclub-detail-row { flex-direction: column; gap: 0.75rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  .archive-item { grid-template-columns: 72px 1fr; }
  .instagram-strip { flex-direction: column; }
}
