/* =============================================
   MWG — Healthline Style
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,800&family=Merriweather:wght@400;700&display=swap');

:root {
  --gh-font-heading: 'Merriweather', Georgia, serif;
  --gh-font-body:    'Nunito Sans', Arial, sans-serif;

  --teal:       #02838d;
  --teal-dark:  #08565c;
  --teal-light: #e8f5f6;
  --gold:       #f5a623;
  --black:      #000000;
  --text:       #231f20;
  --muted:      #6b7280;
  --border:     #e5e7eb;
  --bg:         #ffffff;
  --bg-alt:     #f9fafb;
  --max-w:      1100px;
  --sans:       'Nunito Sans', Arial, sans-serif;
  --serif:      'Merriweather', Georgia, serif;
  --r:          6px;
  --shadow:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 3px solid var(--teal);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 28px;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 36px; width: auto; }
.site-logo-text { font-size: 1.2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.site-logo-text span { color: var(--teal); }
.site-nav { display: flex; align-items: center; gap: 2px; list-style: none; flex: 1; }
.site-nav a { color: rgba(255,255,255,0.75); font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: var(--r); transition: color .15s, background .15s; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.search-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.8); padding: 6px 14px; border-radius: var(--r); font: 600 .8rem var(--sans); cursor: pointer; transition: all .15s; flex-shrink: 0; }
.search-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 8px; font-size: 1.4rem; }

/* ── Category Bar ── */
.category-bar { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.category-bar-inner { display: flex; overflow-x: auto; scrollbar-width: none; gap: 0; }
.category-bar-inner::-webkit-scrollbar { display: none; }
.category-bar a { color: var(--text); font-size: .84rem; font-weight: 700; padding: 13px 18px; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; display: block; }
.category-bar a:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* ── Featured Strip ── */
.featured-strip { background: var(--black); padding: 0; overflow: hidden; }
.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.featured-image { position: relative; overflow: hidden; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s; }
.featured-image:hover img { opacity: .9; }
.featured-placeholder { width: 100%; height: 100%; min-height: 420px; background: linear-gradient(135deg,#1a3a4a,var(--teal-dark)); display: flex; align-items: center; justify-content: center; font-size: 5rem; color: rgba(255,255,255,.15); }

.featured-content { padding: 52px 52px 52px 48px; display: flex; flex-direction: column; justify-content: center; }
.featured-eyebrow { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--teal); margin-bottom: 12px; }
.featured-tag { display: inline-block; background: var(--teal); color: #fff; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 4px 11px; border-radius: 99px; margin-bottom: 14px; transition: background .15s; }
.featured-tag:hover { background: var(--teal-dark); color: #fff; }
.featured-title { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; line-height: 1.22; color: #fff; margin-bottom: 16px; }
.featured-title a { color: inherit; }
.featured-title a:hover { color: var(--teal-light); }
.featured-excerpt { color: rgba(255,255,255,.6); font-size: .95rem; line-height: 1.7; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.featured-meta { font-size: .78rem; color: rgba(255,255,255,.45); display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.featured-author { color: rgba(255,255,255,.65); font-weight: 600; }
.featured-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: #fff; font-weight: 700; font-size: .875rem; padding: 11px 22px; border-radius: var(--r); width: fit-content; transition: background .15s, transform .15s; }
.featured-btn:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }

/* ── Filter & Sort Bar ── */
.filter-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 100;
  padding-bottom: 2px;
}
.filter-bar-inner {
  display: flex;
  align-items: center;
  height: 48px;
  overflow: hidden;
  padding: 0;
}
.filter-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  height: 100%;
}
.filter-tags::-webkit-scrollbar { display: none; }

.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 8px;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.filter-tag {
  color: var(--text);
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-tag:hover { background: var(--teal-light); color: var(--teal); }
.filter-tag.active { background: var(--teal); color: #fff; border-color: var(--teal); }

.sort-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font: 700 .75rem var(--sans);
  padding: 5px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: all .15s;
}
.sort-btn:hover { border-color: var(--teal); color: var(--teal); }
.sort-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }

.no-results { color: var(--muted); font-size: .95rem; padding: 40px 0; text-align: center; width: 100%; }

/* ── Type Filter Row ── */
.type-bar-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.type-bar-inner::-webkit-scrollbar { display: none; }

.type-label {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2px;
}

.type-tag {
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.type-tag:hover { background: var(--bg-alt); color: var(--text); border-color: var(--text); }
.type-tag.active { background: var(--text); color: #fff; border-color: var(--text); }

/* ── Home Layout ── */
.home-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 48px 0 64px; }

/* ── Section Label ── */
.section-label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--teal); margin-bottom: 24px; padding-bottom: 10px; border-bottom: 2px solid var(--teal-light); display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ''; flex: 1; height: 2px; background: var(--teal-light); display: none; }

/* ── Article Card Grid ── */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow .22s, transform .22s;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.article-card-img {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--teal-light);
  flex-shrink: 0;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, opacity .3s ease;
}
.article-card:hover .article-card-img img {
  transform: scale(1.05);
  opacity: .88;
}
.article-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--teal-light), #b2d8db);
}

.article-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-tag {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  margin-bottom: 8px;
  display: inline-block;
}
.article-card-tag:hover { color: var(--teal-dark); }

.article-card-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.42;
  color: var(--text);
  margin-bottom: 8px;
  flex: 1;
}
.article-card-title a { color: inherit; }
.article-card-title a:hover { color: var(--teal); }

.article-card-excerpt {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.article-card-meta {
  font-size: .72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.article-card-author { font-weight: 600; }
.article-card-meta .dot { color: var(--border); }

.no-results { color: var(--muted); font-size: .95rem; padding: 40px 0; text-align: center; grid-column: 1 / -1; }

/* ── Sidebar ── */
.home-sidebar { display: flex; flex-direction: column; gap: 28px; padding-top: 34px; }

.newsletter-widget { background: linear-gradient(145deg, var(--teal-dark) 0%, #014f57 100%); border-radius: 10px; padding: 28px 22px; color: #fff; }
.newsletter-icon { font-size: 2rem; margin-bottom: 10px; }
.newsletter-widget h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.newsletter-widget p { font-size: .84rem; opacity: .8; margin-bottom: 18px; line-height: 1.6; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-input { padding: 10px 13px; border: none; border-radius: var(--r); font: 400 .875rem var(--sans); width: 100%; outline: none; }
.newsletter-input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.newsletter-btn { background: var(--gold); color: #1a1a1a; border: none; padding: 10px 13px; border-radius: var(--r); font: 800 .875rem var(--sans); cursor: pointer; transition: opacity .15s, transform .15s; }
.newsletter-btn:hover { opacity: .9; transform: translateY(-1px); }

.sidebar-block { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sidebar-block-title { background: var(--text); color: #fff; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; padding: 10px 16px; }

.sidebar-tile { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: start; }
.sidebar-tile:last-child { border-bottom: none; }
.sidebar-tile-img { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--teal-light); display: block; }
.sidebar-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-tile-tag { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); margin-bottom: 3px; }
.sidebar-tile-title { font-size: .82rem; font-weight: 700; line-height: 1.4; color: var(--text); display: block; }
.sidebar-tile-title:hover { color: var(--teal); }
.sidebar-tile-meta { font-size: .7rem; color: var(--muted); margin-top: 4px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.tag-pill { background: var(--teal-light); color: var(--teal-dark); font-size: .75rem; font-weight: 700; padding: 5px 13px; border-radius: 99px; transition: background .15s, color .15s; }
.tag-pill:hover { background: var(--teal); color: #fff; }

/* ── Newsletter Band Section ── */
.newsletter-band-section {
  padding: 60px 0 0;
  background: var(--bg-alt);
}

.newsletter-band {
  position: relative;
  background: linear-gradient(110deg, #b5dde4 0%, #c8eaef 45%, #daf2f6 100%);
  border-radius: 16px;
  overflow: visible;          /* lets the person break above */
  min-height: 190px;
  display: flex;
  align-items: center;
  padding: 40px 48px;
  padding-right: 380px;       /* room for person on right */
}

/* Left content */
.newsletter-band-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.newsletter-band-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 8px;
}

.newsletter-band-sub {
  font-size: .9rem;
  color: #3d6068;
  line-height: 1.6;
  margin-bottom: 20px;
}

.newsletter-band-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.newsletter-band-input {
  padding: 11px 16px;
  border: 1.5px solid rgba(2,131,141,.3);
  border-radius: 7px;
  font: 400 .9rem var(--sans);
  background: #fff;
  color: var(--text);
  outline: none;
  width: 240px;
  transition: border-color .15s, box-shadow .15s;
}
.newsletter-band-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(2,131,141,.12);
}

.newsletter-band-btn {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 7px;
  font: 800 .85rem var(--sans);
  padding: 11px 22px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.newsletter-band-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.newsletter-band-note {
  font-size: .72rem;
  color: #5a8a90;
  margin-top: 10px;
}

/* Right: person absolutely inside card, head breaks above */
.newsletter-band-person {
  position: absolute;
  right: 60px;
  bottom: 0;
  width: 280px;
  height: 130%;           /* taller than card → head pops above */
  pointer-events: none;
}
.newsletter-band-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Responsive */
@media (max-width: 960px) {
  .newsletter-band {
    padding-right: 260px;
    min-height: 160px;
  }
  .newsletter-band-person {
    width: 220px;
    right: 20px;
  }
  .newsletter-band-title { font-size: 1.25rem; }
}

@media (max-width: 640px) {
  .newsletter-band {
    flex-direction: column;
    padding: 32px 24px 24px;
    padding-right: 24px;
    overflow: hidden;
    min-height: auto;
  }
  .newsletter-band-person {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 200px;
    margin-top: 24px;
    border-radius: 8px;
    overflow: hidden;
  }
  .newsletter-band-row { flex-direction: column; }
  .newsletter-band-input { width: 100%; }
}

/* ── Newsletter Widget v2 (person breaks out above) ── */
.newsletter-widget-v2 {
  position: relative;
  background: linear-gradient(145deg, #02838d 0%, #039daa 100%);
  border-radius: 12px;
  overflow: visible;
  margin-top: 100px;
  padding: 20px 18px 22px;
  color: #fff;
}

.newsletter-v2-person {
  position: absolute;
  top: -96px;
  right: 14px;
  width: 108px;
  height: 120px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: -4px -4px 20px rgba(0,0,0,.15);
}
.newsletter-v2-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.newsletter-v2-title {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 6px;
  padding-right: 60px; /* avoid overlapping person */
}
.newsletter-v2-sub {
  font-size: .78rem;
  opacity: .8;
  margin-bottom: 16px;
  line-height: 1.5;
  padding-right: 40px;
}
.newsletter-v2-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.newsletter-v2-input {
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  font: 400 .875rem var(--sans);
  outline: none;
  color: var(--text);
}
.newsletter-v2-input:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,.3);
}
.newsletter-v2-btn {
  background: #fff;
  color: var(--teal-dark);
  border: none;
  border-radius: 6px;
  font: 800 .85rem var(--sans);
  padding: 10px;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.newsletter-v2-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}
.newsletter-v2-note {
  font-size: .68rem;
  opacity: .6;
  margin-top: 8px;
  text-align: center;
}

/* ── Topic photo cards grid ── */
.sidebar-topics {
  margin-top: 4px;
}
.sidebar-topics-header {
  margin-bottom: 12px;
}
.sidebar-topics-title {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text);
}

.topic-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  background: var(--teal);
  transition: transform .2s, box-shadow .2s;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(2,131,141,.25);
}

.topic-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--teal-dark);
}
.topic-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s, opacity .3s;
}
.topic-card:hover .topic-card-img img {
  transform: scale(1.06);
  opacity: .85;
}

.topic-card-name {
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  padding: 7px 10px 8px;
  line-height: 1.3;
  display: block;
  text-align: center;
}

/* ── Pagination ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--r); font: 700 .875rem var(--sans); border: 1px solid var(--border); color: var(--text); transition: background .15s, color .15s, border-color .15s; }
.pagination a:hover, .pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ── Post Page ── */
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 52px; padding: 48px 0; }

.post-header { margin-bottom: 28px; }
.post-header-tag { display: inline-flex; background: var(--teal); color: #fff; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 5px 12px; border-radius: 99px; margin-bottom: 16px; transition: background .15s; }
.post-header-tag:hover { background: var(--teal-dark); color: #fff; }

.post-title { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 18px; }

.post-meta { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); flex-wrap: wrap; padding-bottom: 20px; border-bottom: 2px solid var(--teal-light); }
.post-author-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal-light); }
.post-author-name { font-weight: 700; color: var(--text); }

.post-feature-image { margin-bottom: 32px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-md); }
.post-feature-image img { width: 100%; height: auto; max-height: 480px; object-fit: cover; }

/* Post Content */
.post-content { font-size: 1.0625rem; line-height: 1.85; color: var(--text); }
.post-content h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin: 2em 0 .75em; line-height: 1.3; padding-bottom: 10px; border-bottom: 2px solid var(--teal-light); }
.post-content h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; margin: 1.8em 0 .6em; }
.post-content h4 { font-size: .9rem; font-weight: 800; margin: 1.5em 0 .5em; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); }
.post-content p { margin-bottom: 1.5em; }
.post-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--teal-dark); }
.post-content ul, .post-content ol { padding-left: 1.6em; margin-bottom: 1.5em; }
.post-content li { margin-bottom: .6em; }
.post-content blockquote { border-left: 4px solid var(--teal); padding: 14px 22px; background: var(--teal-light); margin: 2em 0; border-radius: 0 var(--r) var(--r) 0; font-style: italic; color: var(--teal-dark); }
.post-content img { border-radius: var(--r); margin: 1.8em auto; box-shadow: var(--shadow); }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.8em; font-size: .9rem; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.post-content th { background: var(--teal); color: #fff; padding: 11px 16px; text-align: left; font-weight: 700; font-size: .84rem; }
.post-content td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.post-content tr:nth-child(even) td { background: var(--bg-alt); }

/* Post tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-tag { background: var(--teal-light); color: var(--teal-dark); font-size: .75rem; font-weight: 700; padding: 5px 13px; border-radius: 99px; transition: background .15s, color .15s; }
.post-tag:hover { background: var(--teal); color: #fff; }

/* Related */
.related-posts { margin-top: 56px; padding: 36px 0 60px; border-top: 3px solid var(--teal-light); }
.related-posts-title { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--teal); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* Post card (used in related grid) */
.post-card { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--teal-light); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.post-card-tag { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); margin-bottom: 8px; }
.post-card-title { font-family: var(--serif); font-size: .95rem; font-weight: 700; line-height: 1.45; color: var(--text); margin-bottom: 10px; flex: 1; }
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--teal); }
.post-card-excerpt { font-size: .82rem; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.post-card-meta { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.post-card-meta .sep { color: var(--border); }

/* Post sidebar */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.sidebar-widget-title { background: var(--text); color: #fff; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; padding: 10px 16px; }
.sidebar-widget-body { padding: 14px; }
.post-list { display: flex; flex-direction: column; }
.post-list-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: start; }
.post-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.post-list-item:first-child { padding-top: 0; }
.post-list-image { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--teal-light); display: block; }
.post-list-image img { width: 100%; height: 100%; object-fit: cover; }
.post-list-tag { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); margin-bottom: 3px; }
.post-list-title { font-size: .82rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.post-list-title a { color: inherit; }
.post-list-title a:hover { color: var(--teal); }
.post-list-meta { font-size: .7rem; color: var(--muted); margin-top: 4px; }

/* Koenig */
.kg-width-wide { margin-left: calc(50% - 50vw + 20px); margin-right: calc(50% - 50vw + 20px); max-width: none; }
.kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: none; border-radius: 0; }

/* Archive */
.archive-header { background: var(--black); padding: 48px 0; margin-bottom: 44px; border-bottom: 3px solid var(--teal); }
.archive-title { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.archive-title span { color: var(--teal); }
.archive-description { color: rgba(255,255,255,.55); font-size: 1rem; }

/* Archive posts grid */
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding-bottom: 60px; }

/* Error */
.error-page { text-align: center; padding: 100px 20px; }
.error-code { font-size: 7rem; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 16px; }
.error-message { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 28px; }
.btn { display: inline-block; background: var(--teal); color: #fff; font-weight: 700; padding: 12px 28px; border-radius: var(--r); transition: background .15s; }
.btn:hover { background: var(--teal-dark); color: #fff; }

/* Footer */
.site-footer { background: var(--black); color: rgba(255,255,255,.55); padding: 52px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .site-logo-text { font-size: 1.25rem; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.45); }
.footer-col-title { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.45); font-size: .875rem; transition: color .15s; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: rgba(255,255,255,.3); }

/* ── Header social icons ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-social {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  color: rgba(255,255,255,.55);
  transition: color .15s, background .15s;
}
.header-social-link:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}

/* ── Footer social icons ── */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.45);
  font-size: .875rem;
  transition: color .15s;
}
.footer-social-link:hover { color: var(--teal); }
.footer-social-link svg { flex-shrink: 0; }

/* ── Reading Progress Bar ── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--teal);
  z-index: 9999;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(2,131,141,.5);
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .78rem;
  color: var(--muted);
  padding: 14px 0 0;
}
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--teal); }
.bc-sep { color: var(--border); }
.bc-current { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.breadcrumb-light .breadcrumb,
.breadcrumb-light { color: rgba(255,255,255,.5); }
.breadcrumb-light a { color: rgba(255,255,255,.55); }
.breadcrumb-light a:hover { color: #fff; }
.breadcrumb-light .bc-sep { color: rgba(255,255,255,.25); }
.breadcrumb-light .bc-current { color: rgba(255,255,255,.85); }

/* ── Post Deck (subtitle) ── */
.post-deck {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  font-weight: 400;
}

/* ── Reading Time ── */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  letter-spacing: .02em;
}
.meta-sep { color: var(--border); }

/* ── Feature Image Caption ── */
.post-feature-image figcaption {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  padding: 10px 0 0;
  font-style: italic;
}

/* ── Post Content: improved typography ── */
.post-content { font-size: 1.0625rem; line-height: 1.9; color: var(--text); max-width: 720px; }
.post-content > * + * { margin-top: 1.5em; }
.post-content p { margin-bottom: 0; }

/* Inline code */
.post-content code:not(pre code) {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: .875em;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
}

/* Code blocks */
.post-content pre {
  background: #1a1f2e;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 20px 22px;
  overflow-x: auto;
  font-size: .875rem;
  line-height: 1.7;
  margin: 2em 0;
  box-shadow: var(--shadow-md);
}
.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}

/* Blockquote */
.post-content blockquote {
  border-left: 4px solid var(--teal);
  padding: 18px 24px 18px 28px;
  background: var(--teal-light);
  margin: 2em 0;
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--teal-dark);
  position: relative;
}
.post-content blockquote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--teal);
  opacity: .2;
  position: absolute;
  top: -8px;
  left: 12px;
  line-height: 1;
  font-style: normal;
  font-family: Georgia, serif;
}

/* H2 separator */
.post-content h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  margin: 2.2em 0 .7em;
  line-height: 1.3;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-light);
  color: var(--text);
}
.post-content h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.8em 0 .5em;
  color: var(--text);
}
.post-content h4 {
  font-size: .88rem;
  font-weight: 800;
  margin: 1.5em 0 .4em;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--teal);
}

/* ── Post Tags Label ── */
.post-tags-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-right: 4px;
}

/* ── Share Bar ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.share-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  flex-shrink: 0;
}
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 .78rem var(--sans);
  padding: 7px 16px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  text-decoration: none;
}
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-twitter  { background: #000; color: #fff; }
.share-facebook { background: #1877f2; color: #fff; }
.share-copy     { background: var(--teal-light); color: var(--teal-dark); }

/* ── Author Bio ── */
.author-bio {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 40px;
  padding: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-left: 4px solid var(--teal);
}
.author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal-light);
  flex-shrink: 0;
}
.author-bio-initials {
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
}
.author-bio-label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); margin-bottom: 4px; }
.author-bio-name  { font-size: 1.05rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.author-bio-text  { font-size: .875rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* ── Sticky Sidebar ── */
.sidebar-sticky {
  position: sticky;
  top: calc(64px + 24px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Archive: layout with sidebar ── */
.archive-container { padding-top: 40px; padding-bottom: 64px; }
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.archive-main {}
.archive-sidebar {
  position: sticky;
  top: calc(64px + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Archive header improvements */
.archive-meta-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.archive-count {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.08);
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: .03em;
}

/* Tag pill active state (current tag) */
.tag-pill-active {
  background: var(--teal) !important;
  color: #fff !important;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { display: none; }
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .featured-inner { grid-template-columns: 1fr; }
  .featured-content { padding: 36px 20px; }
  .featured-image { height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar { display: none; }
  .post-content { max-width: none; }
  .author-bio { flex-direction: column; gap: 14px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--black); padding: 16px; z-index: 999; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-toggle { display: block; }
  .article-grid { grid-template-columns: 1fr; }
  .post-title { font-size: 1.8rem; }
  .featured-title { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid, .archive-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .share-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .breadcrumb .bc-current { max-width: 180px; }
}

/* ════════════════════════════════════════
   Quiz Page
   ════════════════════════════════════════ */

.quiz-page {
  min-height: 100vh;
  background: var(--bg-alt);
  padding-bottom: 80px;
}

/* Header strip */
.quiz-header-strip {
  background: var(--black);
  text-align: center;
  padding: 18px 20px;
  border-bottom: 3px solid var(--teal);
}
.quiz-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
.quiz-header-sub {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Progress bar */
.quiz-progress-wrap {
  height: 5px;
  background: var(--border);
}
.quiz-progress-bar {
  height: 100%;
  background: var(--teal);
  width: 0%;
  transition: width .4s ease;
}

/* Shell */
.quiz-shell {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

.quiz-step-counter {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--teal);
  margin-bottom: 28px;
  text-align: center;
}

/* Steps */
.quiz-step {
  display: none;
  animation: quizFadeIn .25s ease;
}
.quiz-step.active { display: block; }

@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quiz-q {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
}

.quiz-hint {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Option cards */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.quiz-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  user-select: none;
}
.quiz-opt:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 12px rgba(2,131,141,.1);
}
.quiz-opt.selected {
  border-color: var(--teal);
  background: var(--teal-light);
}
.quiz-opt input { display: none; }
.quiz-opt span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* Nav buttons */
.quiz-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-next-btn, .quiz-submit-btn {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font: 800 .95rem var(--sans);
  padding: 14px 30px;
  cursor: pointer;
  transition: background .15s, transform .15s, opacity .15s;
  flex-shrink: 0;
}
.quiz-next-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none !important;
}
.quiz-next-btn:not(:disabled):hover,
.quiz-submit-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.quiz-back-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  font: 700 .85rem var(--sans);
  padding: 13px 18px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.quiz-back-btn:hover { border-color: var(--text); color: var(--text); }

/* Email step */
.quiz-email-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  text-align: center;
}
.quiz-step[data-step="6"] .quiz-q { text-align: center; }
.quiz-step[data-step="6"] .quiz-hint { text-align: center; }

.quiz-email-fields {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 28px;
}

.quiz-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.quiz-field:last-of-type { margin-bottom: 0; }

.quiz-field label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
}
.quiz-optional { color: var(--muted); font-weight: 400; }
.quiz-required { color: #e53e3e; }

.quiz-field input {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font: 400 1rem var(--sans);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.quiz-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(2,131,141,.12);
}
.quiz-field input.invalid { border-color: #e53e3e; }

.quiz-field-error {
  font-size: .78rem;
  color: #e53e3e;
  display: none;
}

.quiz-privacy {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}

.quiz-step[data-step="6"] .quiz-nav { justify-content: space-between; }

.quiz-submit-btn {
  padding: 14px 36px;
}

/* Success screen */
.quiz-success {
  text-align: center;
  padding: 40px 20px;
  animation: quizFadeIn .4s ease;
}
.quiz-success-icon { font-size: 3.5rem; margin-bottom: 18px; }
.quiz-success-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.quiz-success-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.quiz-success-note {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.quiz-success-btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background .15s;
}
.quiz-success-btn:hover { background: var(--teal-dark); color: #fff; }

/* Error */
.quiz-error-msg {
  text-align: center;
  padding: 16px;
  background: #fff3f3;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  margin-top: 16px;
  font-size: .875rem;
  color: #c53030;
}
.quiz-error-msg a { color: var(--teal); }

@media (max-width: 640px) {
  .quiz-q { font-size: 1.3rem; }
  .quiz-opt span { font-size: .9rem; }
  .quiz-submit-btn { width: 100%; justify-content: center; }
  .quiz-step[data-step="6"] .quiz-nav { flex-direction: column-reverse; gap: 10px; }
  .quiz-back-btn { width: 100%; text-align: center; }
}

/* ════════════════════════════════════════
   Foundations Section  (homepage)
   ════════════════════════════════════════ */

.foundations-section {
  background: var(--bg-alt);
  padding: 56px 0 60px;
  border-bottom: 1px solid var(--border);
}

.foundations-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}

.foundations-eyebrow {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--teal);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--teal);
  white-space: nowrap;
}

.foundations-sub {
  font-size: .84rem;
  color: var(--muted);
  margin: 0;
}

/* ── Two-column grid ── */
.foundations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Individual card ── */
.foundation-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 300px;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: #0a2a30;
  transition: transform .3s ease, box-shadow .3s ease;
}
.foundation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

/* Dark overlay — fades on hover to reveal illustration */
.foundation-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.55) 50%,
    rgba(0,0,0,.35) 100%
  );
  transition: opacity .35s ease;
  z-index: 0;
}
.foundation-card:hover .foundation-card-overlay {
  opacity: .6;
}

/* Content layer (always on top) */
.foundation-card-inner {
  position: relative;
  z-index: 1;
  padding: 40px 36px 44px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.foundation-label {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
}

.foundation-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.28;
  color: #fff;
  margin-bottom: 16px;
}

.foundation-body {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  margin-bottom: 28px;
  flex: 1;
}

.foundation-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 2px;
  width: fit-content;
  transition: color .2s, border-color .2s;
}
.foundation-card:hover .foundation-link {
  color: #fff;
  border-color: rgba(255,255,255,.8);
}
.foundation-link span {
  transition: transform .2s;
  display: inline-block;
}
.foundation-card:hover .foundation-link span {
  transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .foundations-grid { grid-template-columns: 1fr; }
  .foundation-card  { min-height: 260px; }
  .foundation-card-inner { padding: 32px 24px 36px; }
  .foundation-title { font-size: 1.3rem; }
}

/* ════════════════════════════════════════
   Founder Hero  (homepage)
   ════════════════════════════════════════ */

.founder-hero {
  background: linear-gradient(120deg, #bfe3e7 0%, #d6eef1 40%, #eaf6f7 70%, #f3fafb 100%);
  overflow: hidden;
  position: relative;
}

/* Two-column grid: text | photo. Card floats absolute over photo. */
.founder-hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 420px 1fr;
  align-items: end;
  min-height: 460px;
}

/* ── Left text ── */
.founder-text {
  padding: 64px 48px 64px 0;
  align-self: center;
  z-index: 2;
  position: relative;
}

.founder-eyebrow {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--teal-dark);
  margin-bottom: 18px;
}

.founder-headline {
  font-family: var(--serif);
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 20px;
}

.founder-sub {
  font-size: 1rem;
  color: #4a6668;
  line-height: 1.75;
  max-width: 360px;
}

/* ── Right photo (fills column, bottom-aligned) ── */
.founder-photo-wrap {
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 100%;
}

.founder-photo {
  display: block;
  width: 100%;
  max-width: 380px;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px 12px 0 0;
}

/* ── Floating quiz card (absolute, on top of photo) ── */
.founder-card {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 230px;
  z-index: 10;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.05);
  padding: 18px 18px 20px;
}

.founder-card-title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
}

.founder-card-body {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.founder-card-note {
  font-weight: 700;
  color: var(--teal-dark);
}

.founder-card-btn {
  display: block;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  text-align: center;
  padding: 10px 16px;
  border-radius: 6px;
  transition: background .15s, transform .15s;
}
.founder-card-btn:hover {
  background: var(--teal-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Responsive: founder hero ── */
@media (max-width: 960px) {
  .founder-hero-inner {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }
  .founder-text { padding: 40px 24px 40px 0; }
  .founder-headline { font-size: 2rem; }
  .founder-photo { max-width: 100%; height: 400px; }
  /* Card: stop being absolute, flow below text */
  .founder-card {
    position: static;
    transform: none;
    width: auto;
    grid-column: 1;
    margin: 0 0 40px 0;
    box-shadow: 0 6px 28px rgba(0,0,0,.12);
  }
  .founder-hero-inner {
    grid-template-areas:
      "text  photo"
      "card  photo";
    grid-template-rows: auto auto;
  }
  .founder-text      { grid-area: text; }
  .founder-photo-wrap { grid-area: photo; }
  .founder-card      { grid-area: card; }
}

@media (max-width: 640px) {
  .founder-hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "photo"
      "card";
  }
  .founder-text { padding: 36px 0 20px; }
  .founder-photo-wrap { height: 300px; overflow: hidden; }
  .founder-photo { width: 100%; max-width: 100%; height: 100%; object-position: top; border-radius: 10px; }
  .founder-card { margin: 20px 0 32px; }
  .founder-headline { font-size: 1.75rem; }
  .founder-sub { max-width: 100%; }
}
