/* ==========================================================================
   Metanoia — Design System
   Palette: teal / turquoise / aqua / deep green (calming, nature + science)
   ========================================================================== */

:root {
  /* Brand */
  --teal-900: #0a2e2e;
  --teal-800: #0e3d3d;
  --teal-700: #12514f;
  --teal-600: #157170;
  --teal-500: #1a938f;
  --teal-400: #2bb3ad;
  --aqua-400: #3ecfc4;
  --aqua-300: #6fe0d6;
  --aqua-200: #a8efe6;
  --leaf-600: #2f7d54;
  --leaf-400: #4bbd7f;

  /* Accent for donate / action */
  --gold-500: #e9a13b;
  --gold-400: #f4b855;

  /* Neutrals */
  --ink-900: #0c1a1a;
  --ink-700: #26403f;
  --ink-500: #4d6b69;
  --paper: #f6fbfa;
  --paper-2: #eef7f5;
  --white: #ffffff;
  --line: #d7e8e5;

  /* Type */
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --wrap: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(10, 46, 46, .06);
  --shadow: 0 12px 40px rgba(10, 46, 46, .12);
  --shadow-lg: 0 24px 70px rgba(10, 46, 46, .18);
  --grad-hero: linear-gradient(135deg, #0a2e2e 0%, #12514f 45%, #157170 100%);
  --grad-aqua: linear-gradient(135deg, #1a938f 0%, #3ecfc4 100%);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-500); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--teal-900); line-height: 1.18; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.bg-paper2 { background: var(--paper-2); }
.bg-deep { background: var(--grad-hero); color: #d7f3f0; }
.bg-deep h2, .bg-deep h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink-500); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--teal-500); margin-bottom: .8em; }
.bg-deep .eyebrow { color: var(--aqua-300); }
.mw-720 { max-width: 720px; }
.mw-820 { max-width: 820px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--donate { background: var(--gold-500); color: #3a2606; box-shadow: 0 8px 24px rgba(233,161,59,.35); }
.btn--donate:hover { background: var(--gold-400); color: #3a2606; }
.btn--primary { background: var(--grad-aqua); color: #04302e; box-shadow: 0 8px 24px rgba(42,179,173,.32); }
.btn--primary:hover { color: #04302e; }
.btn--ghost { background: transparent; color: var(--teal-600); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-400); color: var(--teal-500); }
.btn--light { background: #fff; color: var(--teal-700); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--lg { padding: 16px 34px; font-size: 1.08rem; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,251,250,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--teal-900); letter-spacing: -.01em; }
.brand__mark { width: 40px; height: 40px; flex: 0 0 40px; }
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--ink-700); }
.nav__links a:hover { color: var(--teal-500); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--teal-800); margin: 5px 0; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; background: var(--grad-hero); color: #eaf7f5; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(62,207,196,.28), transparent 60%),
    radial-gradient(500px 320px at 10% 90%, rgba(75,189,127,.22), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 92px 0; }
.hero h1 { color: #fff; }
.hero h1 .accent { background: linear-gradient(90deg, var(--aqua-300), var(--leaf-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.22rem; color: #c7ebe7; max-width: 34ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__note { margin-top: 22px; font-size: .9rem; color: #9fd4ce; }
.hero__art {
  position: relative; aspect-ratio: 1/1; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(120px 120px at 30% 30%, rgba(255,255,255,.18), transparent),
    conic-gradient(from 200deg at 60% 50%, #3ecfc4, #157170, #2f7d54, #f4b855, #3ecfc4);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.hero__art svg { width: 78%; height: 78%; filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-aqua); margin-bottom: 18px; color: #06322f; }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--ink-500); font-size: .98rem; }
.card--link { display: block; color: inherit; }
.card__tag { font-family: var(--font-head); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-500); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 22px 14px; }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: 2.5rem; color: var(--aqua-300); line-height: 1; }
.stat__label { font-size: .95rem; color: #bfe4df; margin-top: 8px; }

/* Value pills */
.pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--teal-700); box-shadow: var(--shadow-sm); }

/* Founder / quote */
.founder { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.founder__portrait { aspect-ratio: 3/4; border-radius: var(--radius); background: var(--grad-aqua); display: grid; place-items: center; box-shadow: var(--shadow); }
.founder__portrait svg { width: 60%; }
.founder blockquote { margin: 0; font-size: 1.15rem; color: var(--ink-700); }
.founder cite { display: block; margin-top: 16px; font-style: normal; font-weight: 600; font-family: var(--font-head); color: var(--teal-800); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__art { border-radius: var(--radius); background: var(--grad-aqua); aspect-ratio: 4/3; box-shadow: var(--shadow); display: grid; place-items: center; }
.split__art svg { width: 62%; }

/* Book feature */
.book { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; }
.book__cover {
  aspect-ratio: 3/4; border-radius: 8px; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, #0e3d3d, #157170 60%, #2f7d54);
  color: #eaf7f5; padding: 26px 20px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.book__cover::before { content:""; position:absolute; inset:0; background: radial-gradient(160px 160px at 70% 20%, rgba(62,207,196,.4), transparent 70%); }
.book__cover span { position: relative; z-index: 1; }
.book__kicker { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--aqua-300); }
.book__title { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.book__foot { font-size: .8rem; color: #a8ded8; }

/* CTA band */
.cta-band { background: var(--grad-hero); color: #eaf7f5; border-radius: 24px; padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(500px 240px at 80% 0%, rgba(62,207,196,.25), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }

/* Newsletter */
.subscribe { display: flex; gap: 12px; max-width: 480px; margin: 22px auto 0; flex-wrap: wrap; }
.subscribe input { flex: 1 1 220px; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 1rem; font-family: var(--font-body); }
.subscribe input:focus { outline: 2px solid var(--aqua-400); }

/* Forms */
.form { display: grid; gap: 16px; max-width: 620px; }
.form label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--teal-800); display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: var(--font-body); background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--aqua-400); border-color: transparent; }
.form textarea { min-height: 130px; resize: vertical; }

/* Page hero (interior) */
.page-hero { background: var(--grad-hero); color: #eaf7f5; padding: 72px 0 60px; position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(500px 260px at 88% 15%, rgba(62,207,196,.25), transparent 60%); }
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c7ebe7; font-size: 1.18rem; margin: 0; }
.crumbs { font-size: .85rem; color: #8fcac4; margin-bottom: 14px; }
.crumbs a { color: #bfe4df; }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--teal-700); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.callout { background: var(--paper-2); border-left: 4px solid var(--aqua-400); border-radius: 10px; padding: 18px 22px; margin: 1.4em 0; }
.callout strong { color: var(--teal-800); }

/* Impact tiers (donate) */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.tier__amt { font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: var(--teal-700); }
.tier__what { font-size: .95rem; color: var(--ink-500); margin-top: 6px; }

/* Notice */
.notice { background: #fff7e9; border: 1px solid #f2d9a8; border-radius: var(--radius-sm); padding: 14px 18px; font-size: .92rem; color: #7a5410; }

/* ===== Footer ===== */
.site-footer { background: var(--teal-900); color: #a8ded8; padding: 64px 0 30px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer a { color: #a8ded8; }
.site-footer a:hover { color: var(--aqua-300); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 14px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; font-size: .84rem; color: #7fb8b2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.badge-501 { display: inline-block; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 8px 14px; font-size: .82rem; color: #cdeae6; margin-top: 8px; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; padding: 64px 0; }
  .hero__art { max-width: 380px; }
  .hero p { max-width: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .founder, .split, .book { grid-template-columns: 1fr; }
  .founder__portrait, .book__cover { max-width: 240px; }
}
@media (max-width: 920px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: block; }
  .nav[data-open="true"] .nav__links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    background: var(--white); padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); z-index: 70;
  }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .tiers { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; }
  .section { padding: 60px 0; }
}

/* ==========================================================================
   ENHANCEMENTS v2 — depth, motion, custom icons, richer visuals
   ========================================================================== */

/* Header: subtle shadow once scrolled */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10,46,46,.10); background: rgba(246,251,250,.94); }

/* Custom line-icons replace emoji */
.card__icon { position: relative; overflow: hidden; }
.card__icon svg { width: 26px; height: 26px; color: #06322f; }
.card__icon::after { content:""; position:absolute; inset:0; background: radial-gradient(30px 30px at 70% 20%, rgba(255,255,255,.5), transparent 60%); }
.ico-inline { width: 1.05em; height: 1.05em; vertical-align: -.15em; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Buttons: sheen on hover, crisper depth */
.btn { position: relative; overflow: hidden; }
.btn::after { content:""; position:absolute; top:0; left:-120%; width:60%; height:100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); transition: left .6s; }
.btn:hover::after { left: 140%; }
.btn--donate { box-shadow: 0 10px 28px rgba(233,161,59,.42); }

/* Richer hero background: aurora mesh + drifting glow */
.hero { background: radial-gradient(1200px 600px at 78% -10%, #1b6b68 0%, transparent 55%), radial-gradient(900px 500px at 0% 120%, #1c5c3f 0%, transparent 55%), linear-gradient(135deg, #08282a 0%, #0e3d3d 45%, #12514f 100%); }
.hero::before { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; opacity:.5;
  background:
    radial-gradient(3px 3px at 20% 30%, rgba(168,239,230,.9), transparent),
    radial-gradient(2px 2px at 70% 20%, rgba(244,184,85,.8), transparent),
    radial-gradient(2px 2px at 85% 60%, rgba(111,224,214,.8), transparent),
    radial-gradient(2px 2px at 35% 75%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 55% 45%, rgba(75,189,127,.8), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity:.25; } to { opacity:.6; } }

/* Hero scene (SVG portrait + aurora + network) */
.hero__scene { position: relative; z-index: 2; width: 100%; max-width: 460px; margin-inline: auto; filter: drop-shadow(0 24px 60px rgba(0,0,0,.35)); }
.hero__scene svg { width: 100%; height: auto; display: block; }
.float-slow { animation: floatY 9s ease-in-out infinite; transform-origin: center; }
.float-mid { animation: floatY 6.5s ease-in-out infinite; }
.pulse-node { animation: nodePulse 3.4s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes nodePulse { 0%,100% { opacity:.35; } 50% { opacity:1; } }

/* Molecular decorative motif behind sections */
.has-motif { position: relative; overflow: hidden; }
.has-motif > .wrap { position: relative; z-index: 1; }
.motif { position: absolute; z-index: 0; opacity: .10; color: var(--teal-500); pointer-events: none; }
.motif--tr { top: -40px; right: -50px; width: 260px; }
.motif--bl { bottom: -60px; left: -60px; width: 300px; }
.bg-deep .motif { color: #7fe6db; opacity: .12; }

/* Stat cards: give them a frame */
.stat { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.stat__num { letter-spacing: -.02em; }

/* Card icon float tint per pillar (optional accent ring) */
.card { position: relative; }
.card::before { content:""; position:absolute; inset:0; border-radius: var(--radius); padding:1px; background: linear-gradient(180deg, rgba(62,207,196,.35), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity:0; transition: opacity .25s; pointer-events: none; }
.card:hover::before { opacity: 1; }

/* Book cover: spine + sheen + spore motif */
.book__cover { border-radius: 6px 10px 10px 6px; }
.book__cover::after { content:""; position:absolute; top:0; left:0; width:10px; height:100%; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0)); z-index:2; }
.book__sheen { position:absolute; inset:0; z-index:1; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 47%, transparent 60%); }
.book__cover .book__mark { position:absolute; right:16px; bottom:60px; width:64px; opacity:.5; z-index:1; color:#a8efe6; }
.book__cover { justify-content: flex-start; }
.book__cover .book__logo { width: 118px; max-width: 60%; height: auto; filter: brightness(0) invert(1); opacity: .95; position: relative; z-index: 2; margin-bottom: 16px; }
.book__cover .book__kicker { margin-top: -6px; }
.book__cover .book__foot { margin-top: auto; }
.book__cover .book__title { margin-top: 10px; }

/* Shared education / article pages */
.article { max-width: 760px; margin: 0 auto; }
.article .lead-in { font-size: 1.16rem; color: var(--ink-700); line-height: 1.7; }
.article h2 { margin-top: 1.6em; }
.sub-card { border:1px solid var(--line); border-radius:16px; padding:24px 26px 20px; margin:18px 0; background:#fff; box-shadow: var(--shadow-sm); }
.sub-card__head { display:flex; align-items:center; gap:14px; margin-bottom:4px; flex-wrap:wrap; }
.sub-card__head h3 { margin:0; font-size:1.28rem; }
.sub-card__tag { font-family:var(--font-head); font-weight:600; font-size:.66rem; letter-spacing:.12em; text-transform:uppercase; padding:4px 10px; border-radius:999px; }
.tag-nat { background:#e5f5ef; color:#2c6746; }
.tag-syn { background:#eef1f6; color:#4a5570; }
.tag-warn { background:#fbecd2; color:#8a5a10; }
.sub-card p { margin:.55em 0; }
.sub-card .facts { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.sub-card .facts span { font-size:.82rem; background:var(--paper2); border:1px solid var(--line); border-radius:8px; padding:5px 11px; color:var(--teal-700); }
.status-2026 { background:linear-gradient(160deg,#0e3d3d,#157170); color:#eaf7f5; border-radius:18px; padding:30px; margin:32px 0; }
.status-2026 h2 { color:#fff; margin-top:0; }
.status-2026 li { margin:8px 0; color:#cdeae6; }
.status-2026 b { color:#fff; }
.honest { border-left:4px solid #e9a13b; background:rgba(233,161,59,.08); border-radius:0 12px 12px 0; padding:18px 22px; margin:24px 0; }
.qa { border-bottom:1px solid var(--line); padding:18px 0; }
.qa h3 { margin:0 0 6px; font-size:1.1rem; color:var(--teal-800); }
.qa p { margin:0; color:var(--ink-700); }

/* Trust / logos strip */
.trust { display:flex; flex-wrap:wrap; gap:14px 34px; align-items:center; justify-content:center; opacity:.85; }
.trust span { font-family: var(--font-head); font-weight:600; font-size:.9rem; color: var(--ink-500); letter-spacing:.02em; }
.trust .dot { width:5px; height:5px; border-radius:50%; background: var(--aqua-400); }

/* Knowledge / citation chips */
.chips { display:flex; flex-wrap:wrap; gap:10px; }
.chip { display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:999px; padding:8px 16px; font-size:.88rem; color:var(--teal-700); box-shadow: var(--shadow-sm); }
.chip b { color: var(--teal-500); font-family: var(--font-head); }

/* Section divider wave */
.wave { display:block; width:100%; height:48px; }

/* Founder portrait ring */
.founder__portrait { position: relative; }
.founder__portrait::after { content:""; position:absolute; inset:-6px; border-radius: calc(var(--radius) + 6px); border:1px solid rgba(26,147,143,.25); }

/* Table-of-contents cards (book "what's inside") */
.toc-card { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 26px 22px 22px; }
.toc-card__num { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; background: linear-gradient(135deg, var(--teal-500), var(--aqua-400)); color: #06322f; font-family: var(--font-head); font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.toc-card h3 { color: #eafaf7; margin: 0 0 8px; }
.toc-card p { color: #a9d6d1; font-size: .95rem; margin: 0; }
.toc-card em { color: #d9f3ef; font-style: italic; }
.toc-card--accent { background: rgba(244,184,85,.08); border-color: rgba(244,184,85,.3); }
.toc-card--accent .toc-card__num { background: linear-gradient(135deg, #f4b855, #e58f3a); }

/* Source / citation line under content */
.src { font-size: .82rem; color: var(--ink-500); margin-top: 12px; font-style: normal; }
.src em { font-style: italic; }
.card .src { margin-bottom: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.bg-deep .src a, .bg-deep .src { color: #8fbdb7; }
.src a { color: var(--teal-600); }

/* Social icon row (footer) */
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #cfeeea; transition: background .2s, color .2s, transform .2s; }
.social a:hover { background: var(--aqua-400); color: #06322f; transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; }

/* Clickable cards → modal */
.card.is-clickable { cursor: pointer; }
.card.is-clickable:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 3px; }
.card__more { display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-family:var(--font-head); font-weight:600; font-size:.86rem; color:var(--teal-600); }
.card__more svg { width:15px; height:15px; transition: transform .2s; }
.card.is-clickable:hover .card__more svg { transform: translateX(3px); }
.card__detail { display:none; }

.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal[data-open="true"] { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,40,42,.55); backdrop-filter: blur(3px); animation: fadeIn .2s ease; }
.modal__panel { position: relative; z-index: 1; width: 100%; max-width: 640px; max-height: 86vh; overflow-y: auto; background: var(--white); border-radius: 18px; box-shadow: 0 30px 80px rgba(8,40,42,.35); padding: 38px 40px 34px; animation: modalUp .28s cubic-bezier(.2,.7,.2,1); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: none; border-radius: 50%; background: var(--paper2); color: var(--teal-800); font-size: 20px; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.modal__close:hover { background: #e6f2f0; }
.modal__eyebrow { font-family: var(--font-head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; color: var(--teal-500); }
.modal__panel h2 { font-family: var(--font-head); font-size: 1.5rem; color: var(--teal-800); margin: 6px 0 16px; line-height: 1.2; }
.modal__panel h3 { font-family: var(--font-head); font-size: 1.02rem; color: var(--teal-700); margin: 20px 0 6px; }
.modal__panel p { margin: 0 0 14px; color: var(--ink-700); line-height: 1.7; }
.modal__panel ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink-700); line-height: 1.65; }
.modal__panel li { margin-bottom: 6px; }
.modal__panel .modal__icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--teal-500), var(--aqua-400)); display: grid; place-items: center; margin-bottom: 14px; }
.modal__panel .modal__icon svg { width: 28px; height: 28px; color: #06322f; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalUp { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
body.modal-open { overflow: hidden; }
@media (max-width: 560px) { .modal__panel { padding: 34px 24px 28px; } }

/* Hero pull-quote line (integrates the founder's framing) */
.hero__lead-line { font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; color: #d9f3ef; line-height: 1.5; margin: 6px 0 4px; padding-left: 16px; border-left: 3px solid var(--aqua-400); }
.hero__lead-line em { color: #fff; font-style: italic; }

/* Social icons (footer) */
.social { display:flex; gap:12px; margin-top:16px; }
.social a { width:38px; height:38px; border-radius:10px; display:grid; place-items:center; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); color:#cdeae6; transition:background .2s, color .2s, transform .2s; }
.social a:hover { background:var(--teal-500); color:#04231f; transform:translateY(-2px); }
.social svg { width:19px; height:19px; }

/* Small button */
.btn--sm { padding:9px 16px; font-size:.86rem; }

/* Brand wordmark logo (real Metanoia logo) */
.brand__logo { height: 46px; width: auto; display: block; }
.brand__logo--footer { height: 40px; margin-bottom: 14px; }
.footer-brand { margin-bottom: 6px; }
@media (max-width: 480px) { .brand__logo { height: 38px; } }

