/* ==========================================================================
   Consciousness Partnership · Design System v2
   --------------------------------------------------------------------------
   Modern editorial / SaaS hybrid. Premium feel, layered depth, considered
   type. Teal brand, slate neutrals, Space Grotesk display + Inter body.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --teal:           #0d9488;
  --teal-deep:      #0f766e;
  --teal-tint:      #f0fdfa;
  --teal-highlight: #ccfbf1;
  --teal-glow:      rgba(13, 148, 136, .22);

  /* Neutrals (slate) */
  --ink:    #0f172a;
  --text:   #334155;
  --muted:  #64748b;
  --border: #e2e8f0;
  --bg-soft:#f8fafc;
  --white:  #ffffff;

  /* Accents */
  --amber: #b45309;
  --red:   #dc2626;

  /* Typography */
  --font-display: "Fraunces", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "Space Grotesk", ui-monospace, monospace;  /* numbers/labels keep geometric feel */

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-pill: 999px;

  /* Layered shadows for real depth */
  --shadow-subtle:     0 1px 3px rgba(15,23,42,.06);
  --shadow-card:       0 4px 12px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow-card-hover: 0 12px 30px rgba(15,23,42,.10), 0 3px 8px rgba(15,23,42,.05);
  --shadow-hero:       0 20px 60px rgba(15,23,42,.10);
  --shadow-cta:        0 6px 18px rgba(13,148,136,.30), 0 2px 4px rgba(13,148,136,.20);
  --shadow-cta-hover:  0 10px 26px rgba(13,148,136,.40), 0 3px 8px rgba(13,148,136,.25);

  /* Layout */
  --container-max:   1200px;
  --container-tight: 760px;
  --nav-h:           72px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:   150ms var(--ease-out);
  --t-mid:    250ms var(--ease-out);
  --t-slow:   400ms var(--ease-out);
}

/* SVG noise texture for dark sections (inlined for performance) */
:root {
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}


/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;            /* 17px */
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; padding: 0; }
::selection { background: var(--teal); color: var(--white); }


/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
  /* Fraunces variation: editorial sharpness with character */
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
}
h1 { font-weight: 700; font-size: clamp(2.75rem, 6.5vw, 5.5rem); letter-spacing: -0.03em; }
h2 { font-weight: 600; font-size: clamp(1.85rem, 3.8vw, 3rem); }
h3 { font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-weight: 600; font-size: 1.15rem; font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 36; }

/* Italic variant for Fraunces - punchier, more editorial */
.headline-em { font-style: italic; font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144; }

p { margin: 0 0 var(--space-4); }
p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text); line-height: 1.65; max-width: 56ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  margin-bottom: var(--space-4);
}
.eyebrow.on-dark { color: var(--teal-highlight); }
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 0.55em; vertical-align: middle; box-shadow: 0 0 0 4px rgba(13,148,136,.15); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(13,148,136,.15); }
  50%      { box-shadow: 0 0 0 8px rgba(13,148,136,.04); }
}

.teal-accent { color: var(--teal); }

a.text-link { color: var(--teal-deep); font-weight: 600; position: relative; }
a.text-link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid);
}
a.text-link:hover::after { transform: scaleX(1); }


/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container       { max-width: var(--container-max); margin: 0 auto; padding-inline: 1.5rem; }
.container.tight { max-width: var(--container-tight); }

.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.85); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--noise);
  opacity: .5;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.section > .container { position: relative; z-index: 1; }


/* --------------------------------------------------------------------------
   Header (sticky, frosted when scrolled)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,0);
  transition: background var(--t-mid), backdrop-filter var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.95);          /* tighter opacity so content can't bleed through */
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-subtle);
}
/* Browsers without backdrop-filter: be opaque-solid */
@supports not (backdrop-filter: blur(1px)) {
  .site-header.scrolled { background: var(--white); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }

.site-logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 36;
  white-space: nowrap;
  min-width: 0;
}
.site-logo .logo-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--white);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  box-shadow: 0 4px 10px rgba(13,148,136,.30);
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--text);
  transition: color var(--t-fast);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.mobile-toggle { display: none; width: 40px; height: 40px; padding: 10px; }
.mobile-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  margin: 3px 0; border-radius: 2px; transition: transform var(--t-fast), opacity var(--t-fast);
}
.mobile-menu { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  /* The header Subscribe pill collides with the hamburger on narrow screens -
     hide it; the mobile menu already has its own Subscribe link. */
  .site-header .header-inner > .btn { display: none; }
  /* Shrink logo slightly so it fits next to the hamburger without wrapping */
  .site-logo { font-size: 0.95rem; }
  .site-logo .logo-dot { width: 28px; height: 28px; font-size: 0.65rem; }
  .mobile-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    display: flex; flex-direction: column; gap: 0.25rem;
    transform: translateY(-110%); transition: transform var(--t-mid);
    z-index: 49;
    box-shadow: var(--shadow-card);
  }
  .mobile-menu.open { transform: translateY(0); display: flex; }
  .mobile-menu a {
    padding: 0.75rem 0;
    font-size: 1rem; font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu a:last-child { border-bottom: 0; color: var(--teal-deep); }
}


/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  line-height: 1;
}
.btn--lg { padding: 1.05rem 1.85rem; font-size: 1rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-cta-hover); }
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  background: var(--white); color: var(--ink);
  border-color: var(--border);
}
.btn--secondary:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-card); }

.btn--ghost-light {
  background: rgba(255,255,255,.08); color: var(--white);
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.30); }

.btn--amber {
  background: var(--amber); color: var(--white);
  box-shadow: 0 6px 18px rgba(180,83,9,.30);
}
.btn--amber:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(180,83,9,.40); }

.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(3px); }


/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background: var(--white);
}
/* Home variant: dark background with image, matches pillar pattern */
.hero--home {
  background: linear-gradient(150deg, #080d1a 0%, #0f172a 60%, #0d2137 100%);
  color: var(--white);
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) 0 clamp(4rem, 8vw, 6rem);
}
.hero--home .hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.85) brightness(0.55) contrast(1.05);
  z-index: 0;
}
.hero--home .hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,13,26,0.70) 0%, rgba(8,13,26,0.60) 50%, rgba(8,13,26,0.94) 100%),
    radial-gradient(circle at 80% 30%, var(--teal-glow) 0%, transparent 55%);
  z-index: 0;
}
.hero--home > .container { position: relative; z-index: 2; }
.hero--home .hero-credit {
  position: absolute;
  right: 1.25rem; bottom: 0.9rem;
  font-size: 0.68rem; color: rgba(255,255,255,.45);
  z-index: 2; font-style: italic;
}
.hero--home .hero-credit a { color: rgba(255,255,255,.7); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 2px; }
.hero--home .hero-credit a:hover { color: var(--teal-highlight); }
.hero--home .hero-signature {
  position: absolute;
  right: -10%; top: 50%;
  transform: translateY(-50%);
  width: clamp(420px, 55vw, 680px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  mix-blend-mode: screen;
}
@media (max-width: 880px) {
  .hero--home .hero-signature { right: -40%; top: -10%; transform: none; width: 130vw; opacity: 0.35; }
}
.hero.hero--home h1 {
  text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);
}
.hero.hero--home h1 .line-1 { color: var(--white) !important; font-weight: 700; }
.hero.hero--home h1 .line-2 { color: var(--white) !important; }
.hero.hero--home .lead { color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.hero.hero--home .eyebrow { text-shadow: 0 1px 6px rgba(0,0,0,0.5); }

/* Original light hero (only when .hero is used alone, not .hero--home) */
.hero:not(.hero--home)::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero:not(.hero--home)::after {
  content: '';
  position: absolute;
  top: 40%; left: -300px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(15,118,110,.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

.hero h1 {
  margin: 0.5rem 0 var(--space-6);
  max-width: 18ch;
}
.hero h1 .line-1 { display: block; font-weight: 600; color: var(--ink); }
.hero h1 .line-2 { display: block; font-weight: 800; }
.hero h1 .line-2 .teal-accent { color: var(--teal); position: relative; }

.hero .lead { margin-bottom: var(--space-8); max-width: 52ch; }
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }

.hero-stats {
  display: flex; gap: clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap;
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.hero--home .hero-stats { border-top-color: rgba(255,255,255,.12); }
.hero-stat .n {
  font-family: var(--font-mono);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}
.hero--home .hero-stat .n { color: var(--white); }
.hero-stat .lbl {
  font-size: 0.82rem; color: var(--muted); font-weight: 500;
  margin-top: 0.35rem;
}
.hero--home .hero-stat .lbl { color: rgba(255,255,255,.55); }


/* --------------------------------------------------------------------------
   Cards (the universal primitive)
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.card:hover, a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(13,148,136,.30); }

.card-eyebrow { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal-deep); margin-bottom: var(--space-3); }
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--muted); margin-bottom: var(--space-4); font-size: 0.95rem; line-height: 1.65; }
.card .read-more { font-weight: 600; color: var(--teal-deep); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.3rem; transition: gap var(--t-fast); }
.card:hover .read-more { gap: 0.5rem; }


/* --------------------------------------------------------------------------
   Feature grid (3-up section replacing old split rows)
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }


/* --------------------------------------------------------------------------
   Stat strip (with animated counters)
   -------------------------------------------------------------------------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

.stat-block { text-align: left; }
.stat-block .stat-n {
  font-family: var(--font-mono);  /* Geometric for numbers */
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
}
.stat-block .stat-l {
  font-size: 0.85rem; color: var(--muted); font-weight: 500;
  margin-top: 0.5rem;
}


/* --------------------------------------------------------------------------
   Big quote (dark band)
   -------------------------------------------------------------------------- */
.big-quote {
  background: linear-gradient(135deg, #0a0f1f 0%, #0f172a 50%, #0d2137 100%);
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}
.big-quote::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--noise);
  opacity: .5; mix-blend-mode: overlay; pointer-events: none;
}
.big-quote::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(13,148,136,.18) 0%, transparent 60%);
  pointer-events: none;
}
.big-quote > .container { position: relative; z-index: 1; max-width: 880px; text-align: center; }
.big-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.5rem);
  font-weight: 500;
  font-style: italic;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 auto var(--space-6);
  max-width: 24ch;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
}
.big-quote cite {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-6);
}


/* --------------------------------------------------------------------------
   Articles editorial section (2-col asymmetric)
   -------------------------------------------------------------------------- */
.articles-band { background: var(--bg-soft); padding-block: clamp(4rem, 8vw, 7rem); }

.editorial-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
  align-items: stretch;
}
@media (max-width: 880px) { .editorial-grid { grid-template-columns: 1fr; } }

/* Lead card: bigger image (taller aspect), bigger headline.
   Selectors chained for higher specificity than base .article-card-v2 rules. */
.article-card-v2.editorial-lead-v2 { display: flex; flex-direction: column; }
.article-card-v2.editorial-lead-v2 .card-image { aspect-ratio: 16 / 10; }
.article-card-v2.editorial-lead-v2 .card-content { padding: var(--space-8); flex: 1; }
.article-card-v2.editorial-lead-v2 h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}
.article-card-v2.editorial-lead-v2 p {
  font-size: 1.05rem;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
  overflow: visible;
}

/* Sidebar stack — horizontal cards (image left, content right) */
.editorial-sidebar-v2 {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.editorial-sidebar-v2 .article-card-v2 {
  display: grid;
  grid-template-columns: 38% 1fr;
  flex: 1;
}
.editorial-sidebar-v2 .article-card-v2 .card-image {
  aspect-ratio: auto;        /* override base 16/9 */
  height: 100%;
  width: 100%;
  border-radius: 0;
}
.editorial-sidebar-v2 .article-card-v2 .card-content {
  padding: var(--space-6);
}
.editorial-sidebar-v2 .article-card-v2 h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: var(--space-3);
}
.editorial-sidebar-v2 .article-card-v2 p {
  font-size: 0.88rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* On narrower screens, sidebar items stack like a normal column of cards */
@media (max-width: 880px) {
  .editorial-sidebar-v2 .article-card-v2 { grid-template-columns: 1fr; }
  .editorial-sidebar-v2 .article-card-v2 .card-image { aspect-ratio: 16 / 9; height: auto; }
}

.ed-meta {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}


/* --------------------------------------------------------------------------
   Books band (dark, sophisticated)
   -------------------------------------------------------------------------- */
.books-band {
  background: linear-gradient(135deg, #0a0f1f 0%, #0f172a 50%, #0d2137 100%);
  padding-block: clamp(4rem, 8vw, 7rem);
  color: rgba(255,255,255,.85);
  position: relative;
  overflow: hidden;
}
.books-band::before { content: ''; position: absolute; inset: 0; background-image: var(--noise); opacity: .5; mix-blend-mode: overlay; pointer-events: none; }
.books-band > .container { position: relative; z-index: 1; }
.books-band h2 { color: var(--white); }
.books-band .eyebrow { color: var(--teal-highlight); }

.books-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: end;
  margin-bottom: var(--space-12);
}
.books-head h2 { color: var(--white); }
.books-head .books-intro { color: rgba(255,255,255,.55); font-size: 1rem; max-width: 40ch; margin: 0; line-height: 1.65; }
@media (max-width: 880px) { .books-head { grid-template-columns: 1fr; gap: var(--space-4); } }

.books-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 1100px) { .books-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .books-row { grid-template-columns: 1fr; } }

.book-card {
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.03) 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
}
.book-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13,148,136,.45);
  box-shadow: 0 24px 50px rgba(0,0,0,.40), 0 0 50px rgba(13,148,136,.18);
}
.book-card-cover-wrap {
  position: relative;
  background: linear-gradient(135deg, #1a2238 0%, #0a0f1f 100%);
  padding: var(--space-8) var(--space-6) var(--space-4);
  display: flex; align-items: flex-end; justify-content: center;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.book-card-cover-wrap::before {
  content: '';
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 60px;
  background: radial-gradient(ellipse, rgba(0,0,0,.6) 0%, transparent 70%);
  filter: blur(8px);
  z-index: 0;
}
.book-card-cover {
  width: clamp(110px, 50%, 160px);
  height: auto;
  border-radius: 4px;
  box-shadow:
    0 24px 50px rgba(0,0,0,.55),
    0 8px 16px rgba(0,0,0,.40),
    0 0 0 1px rgba(255,255,255,.05);
  position: relative;
  z-index: 1;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.book-card:hover .book-card-cover {
  transform: translateY(-6px) rotate(-3deg);
  box-shadow:
    0 32px 60px rgba(0,0,0,.65),
    0 12px 24px rgba(0,0,0,.50),
    0 0 0 1px rgba(255,255,255,.08);
}
.book-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.04) 100%);
}
.book-card-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-highlight);
  margin-bottom: var(--space-3);
}
.book-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 36;
  transition: color var(--t-mid);
}
.book-card:hover h3 { color: var(--teal-highlight); }
.book-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
  margin: 0 0 var(--space-4);
  flex: 1;
}
.book-card-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; font-weight: 600;
  color: var(--amber);
  transition: gap var(--t-fast), color var(--t-fast);
}
.book-card:hover .book-card-cta {
  gap: 0.6rem;
  color: #f59e0b;
}


/* --------------------------------------------------------------------------
   Subscribe section (the new primary CTA)
   -------------------------------------------------------------------------- */
.subscribe {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--white);
}
.subscribe-card {
  max-width: 720px; margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(145deg, var(--teal-tint) 0%, #ffffff 60%, var(--teal-tint) 140%);
  border: 1px solid var(--teal-highlight);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.subscribe-card::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 60%);
  pointer-events: none;
}
.subscribe-card > * { position: relative; z-index: 1; }
.subscribe-card h2 { margin-bottom: var(--space-3); }
.subscribe-card p { color: var(--text); margin-bottom: var(--space-6); }
.subscribe-form { display: flex; gap: var(--space-3); max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.subscribe-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 0.9rem 1.25rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit; font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.subscribe-form input[type="email"]:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13,148,136,.15);
}
.subscribe-form .form-note { font-size: 0.78rem; color: var(--muted); margin-top: var(--space-3); width: 100%; }
/* Coming-soon variant: allow long email to wrap on narrow screens */
.subscribe-card .form-note { overflow-wrap: anywhere; word-break: break-word; }
.subscribe-card .form-note { font-size: 0.85rem; color: var(--muted); margin-top: var(--space-4); }
.subscribe-card .subscribe-form-cta { margin-top: var(--space-3); }


/* --------------------------------------------------------------------------
   Pro-cess attribution banner (a CARD floated on light bg, not a strip)
   Sits as its own promotional moment so it doesn't bleed into the footer.
   -------------------------------------------------------------------------- */
.process-banner {
  background: var(--white);
  padding-block: clamp(3rem, 6vw, 5rem);
}
/* Carousel: grid stacks all slides in the same cell, container takes
   height of the tallest slide so there is no jump between slides. */
.process-banner-carousel {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
}
.process-banner-carousel .process-banner-card {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), visibility 0s linear 500ms;
  pointer-events: none;
}
.process-banner-carousel .process-banner-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  pointer-events: auto;
}

/* Pagination dots */
.process-banner-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-6);
  position: relative;
  z-index: 3;
}
.process-banner-nav .dot {
  width: 32px;
  height: 4px;
  border-radius: var(--r-pill);
  background: rgba(15,23,42,0.18);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background var(--t-fast), width var(--t-fast);
}
.process-banner-nav .dot:hover { background: rgba(15,23,42,0.35); }
.process-banner-nav .dot.is-active {
  background: var(--teal-deep);
  width: 48px;
}

.process-banner-card {
  background: linear-gradient(135deg, #0a0f1f 0%, #0f172a 50%, #102036 100%);
  border-radius: var(--r-lg);
  padding: clamp(2.25rem, 4.5vw, 3.5rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  color: rgba(255,255,255,.85);
}
.process-banner-card::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--noise); opacity: .4; mix-blend-mode: overlay; pointer-events: none;
}
.process-banner-card::after {
  content: '';
  position: absolute;
  top: 50%; left: -200px;
  width: 600px; height: 400px;
  background: radial-gradient(circle, rgba(13,148,136,.22) 0%, transparent 60%);
  transform: translateY(-50%);
  pointer-events: none;
}
.process-banner-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  flex-wrap: wrap;
}
.process-banner-text { max-width: 56ch; min-width: 0; }
.process-banner-eyebrow {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--teal-highlight); margin-bottom: 0.5rem;
}
.process-banner h3 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  color: var(--white); line-height: 1.2; margin-bottom: 0.5rem;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
}
.process-banner p { color: rgba(255,255,255,.65); font-size: 0.95rem; margin: 0; line-height: 1.6; }

@media (max-width: 700px) {
  .process-banner-inner { flex-direction: column; align-items: flex-start; }
  .process-banner-inner .btn { width: 100%; justify-content: center; }
}


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);           /* light slate-50 - separates from dark Pro-cess card above */
  color: var(--muted);
  padding-block: var(--space-12);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}

/* Top row: brand left, horizontal nav right */
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-12);
  flex-wrap: wrap;
}
.footer-brand { min-width: 0; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 36;
  letter-spacing: -0.015em;
}
.footer-tagline { color: var(--muted); font-size: 0.82rem; }

.footer-nav {
  display: flex; flex-direction: row;
  gap: clamp(1rem, 2.5vw, 2rem);
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color var(--t-fast);
}
.footer-nav a:hover { color: var(--teal-deep); }

/* Bottom row: legal left, links right, separated by thin border */
.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 0.8rem;
}
.footer-bottom p { margin: 0; color: var(--muted); }
.footer-bottom-links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-bottom-links a {
  color: var(--muted);
  transition: color var(--t-fast);
  position: relative;
}
.footer-bottom-links a:hover { color: var(--teal-deep); }
.footer-bottom-links a.process-tag {
  color: var(--teal-deep);
  font-weight: 600;
}
.footer-bottom-links a.process-tag::before {
  content: '●';
  font-size: 0.55em;
  margin-right: 0.45em;
  vertical-align: middle;
  color: var(--teal);
}

@media (max-width: 700px) {
  .footer-inner { flex-direction: column; gap: var(--space-8); }
  .footer-nav { width: 100%; gap: 1rem 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-6); }
}


/* --------------------------------------------------------------------------
   Scroll reveal (used by app.js)
   -------------------------------------------------------------------------- */
.will-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.is-revealed { opacity: 1; transform: translateY(0); }


/* --------------------------------------------------------------------------
   Reading progress bar (article pages)
   -------------------------------------------------------------------------- */
#reading-progress {
  position: fixed; top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-deep) 100%);
  z-index: 100;
  transition: width 100ms linear;
}


/* --------------------------------------------------------------------------
   Signature visual: concentric rings + pulse
   The brand mark. Sits to the right of the hero text. Ties to the site's
   field / frequency / resonance themes. Slow gentle motion, never busy.
   -------------------------------------------------------------------------- */
.hero { position: relative; }
.hero-signature {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(380px, 50vw, 620px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
}
.hero-signature svg { width: 100%; height: 100%; overflow: visible; }
.hero-signature .ring {
  fill: none;
  stroke: var(--teal);
  transform-origin: center;
  transform-box: fill-box;
}
.hero-signature .ring-1 { stroke-width: 1.2; opacity: 0.30; animation: ring-rot 90s linear infinite; }
.hero-signature .ring-2 { stroke-width: 0.8; opacity: 0.45; stroke-dasharray: 2 7;   animation: ring-rev 130s linear infinite; }
.hero-signature .ring-3 { stroke-width: 0.6; opacity: 0.28; stroke-dasharray: 0.5 4; animation: ring-rot 70s  linear infinite; }
.hero-signature .ring-4 { stroke-width: 1.6; opacity: 0.55; stroke-dasharray: 14 8;  animation: ring-rev 160s linear infinite; }
.hero-signature .ring-5 { stroke-width: 0.5; opacity: 0.20;                           animation: ring-rot 110s linear infinite; }
.hero-signature .pulse-core { fill: var(--teal); filter: drop-shadow(0 0 12px var(--teal-glow)); animation: pulse-core 4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hero-signature .pulse-halo { fill: none; stroke: var(--teal); stroke-width: 1; opacity: 0.55; transform-origin: center; transform-box: fill-box; animation: pulse-halo 4s ease-out infinite; }
.hero-signature .pulse-halo.delay-2 { animation-delay: 1.4s; }
.hero-signature .pulse-halo.delay-3 { animation-delay: 2.8s; }

@keyframes ring-rot { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes ring-rev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes pulse-core {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.65; }
}
@keyframes pulse-halo {
  0%   { transform: scale(0.4); opacity: 0.6; stroke-width: 1.5; }
  100% { transform: scale(4);   opacity: 0;   stroke-width: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-signature .ring,
  .hero-signature .pulse-core,
  .hero-signature .pulse-halo { animation: none !important; }
}

/* Mobile: keep visible but pull to top-right corner so text stays clean */
@media (max-width: 880px) {
  .hero-signature {
    right: -40%; top: -25%; transform: none;
    width: 130vw; max-width: 700px;
    opacity: 0.85;
  }
}
@media (max-width: 480px) {
  .hero-signature { right: -50%; top: -30%; opacity: 0.75; }
}


/* --------------------------------------------------------------------------
   Numbered cards (editorial signature on method grid)
   -------------------------------------------------------------------------- */
.card.numbered { padding-top: 4.5rem; }
.card.numbered .card-num {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 3.5rem; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border);
  line-height: 1; letter-spacing: -0.04em;
  transition: -webkit-text-stroke-color var(--t-mid), color var(--t-mid);
  pointer-events: none;
}
.card.numbered { position: relative; }
.card.numbered:hover .card-num { -webkit-text-stroke-color: var(--teal); }


/* --------------------------------------------------------------------------
   Drop cap (editorial intro paragraphs)
   -------------------------------------------------------------------------- */
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 4.4em;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  padding: 0.12em 0.08em 0 0;
  color: var(--ink);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
}


/* --------------------------------------------------------------------------
   Pullquote (editorial article callouts)
   -------------------------------------------------------------------------- */
.pullquote {
  border-left: 3px solid var(--teal);
  padding: var(--space-3) var(--space-6);
  margin: var(--space-8) 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
}
.pullquote cite { display: block; margin-top: var(--space-3); font-family: var(--font-body); font-size: 0.8rem; font-style: normal; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* Big editorial pullquote moment — for breaking up long-form prose */
.pullquote-feature {
  margin: clamp(3rem, 5vw, 4.5rem) calc(-1 * var(--space-8));
  padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--teal-tint) 0%, #ffffff 60%, var(--teal-tint) 130%);
  border: 1px solid var(--teal-highlight);
  border-left: 4px solid var(--teal);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.pullquote-feature::before {
  content: '"';
  position: absolute;
  top: -1rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(7rem, 14vw, 12rem);
  font-weight: 700;
  color: var(--teal);
  opacity: 0.18;
  line-height: 1;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
  pointer-events: none;
}
.pullquote-feature p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
  position: relative; z-index: 1;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
  max-width: 30ch;
}
@media (max-width: 700px) {
  .pullquote-feature { margin-inline: 0; }
}

/* Framework icon container (used in /personal cards) */
.framework-icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--teal-tint) 0%, var(--white) 100%);
  border: 1px solid var(--teal-highlight);
  color: var(--teal-deep);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--t-mid), background var(--t-mid);
}
.card.numbered:hover .framework-icon {
  transform: rotate(-4deg) scale(1.05);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--white);
}
.framework-icon svg { width: 28px; height: 28px; }


/* --------------------------------------------------------------------------
   Footnote-style microcopy
   -------------------------------------------------------------------------- */
.footnote {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  margin-top: var(--space-6);
  line-height: 1.5;
}
.footnote::before { content: '†  '; color: var(--teal); font-style: normal; font-weight: 700; }


/* --------------------------------------------------------------------------
   Articles index page (/articles)
   -------------------------------------------------------------------------- */
.articles-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background: linear-gradient(150deg, #080d1a 0%, #0f172a 60%, #0d2137 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.articles-hero::before { content: ''; position: absolute; inset: 0; background-image: var(--noise); opacity: .4; mix-blend-mode: overlay; pointer-events: none; }
.articles-hero::after {
  content: ''; position: absolute;
  top: -100px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,.18) 0%, transparent 60%);
  pointer-events: none;
}
.articles-hero > .container { position: relative; z-index: 1; }
.articles-hero h1 { color: var(--white); max-width: 22ch; margin-bottom: var(--space-6); }
.articles-hero .lead { color: rgba(255,255,255,.7); }
.articles-hero .text-link { color: var(--teal-highlight); }
.articles-hero .text-link::after { background: var(--teal-highlight); }

/* Controls (filter chips + search) */
.articles-controls {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-4); flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.articles-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.articles-filters .filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 0.45rem;
  transition: all var(--t-fast);
}
.articles-filters .filter-btn .count {
  background: var(--bg-soft);
  border-radius: var(--r-pill);
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}
.articles-filters .filter-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.articles-filters .filter-btn.active .count { background: rgba(255,255,255,.15); color: rgba(255,255,255,.85); }
.articles-filters .filter-btn:hover:not(.active) {
  border-color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-subtle);
}

.articles-search {
  position: relative;
  min-width: 240px;
  max-width: 320px;
  flex: 1;
}
.articles-search svg {
  position: absolute; left: 0.95rem; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.articles-search input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-family: inherit; font-size: 0.92rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.articles-search input::placeholder { color: var(--muted); }
.articles-search input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13,148,136,.15);
}

/* Article cards (with images) */
.article-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
}
@media (max-width: 1000px) { .article-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .article-grid-v2 { grid-template-columns: 1fr; } }

.article-card-v2 {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  box-shadow: var(--shadow-card);
}
.article-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(13,148,136,.30);
}
.article-card-v2 .card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.article-card-v2 .card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow), filter var(--t-mid);
  filter: saturate(0.92);
}
.article-card-v2:hover .card-image img {
  transform: scale(1.04);
  filter: saturate(1.05);
}
.article-card-v2 .card-content {
  padding: var(--space-6);
  flex: 1;
  display: flex; flex-direction: column;
}
.article-card-v2 .card-meta {
  display: flex; gap: 0.4rem 0.75rem; flex-wrap: wrap;
  font-size: 0.7rem; color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
  align-items: center;
}
.article-card-v2 .card-meta .card-cat {
  color: var(--teal-deep);
  background: var(--teal-tint);
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  font-size: 0.66rem;
}
.article-card-v2 h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
  line-height: 1.25;
  color: var(--ink);
}
.article-card-v2:hover h3 { color: var(--teal-deep); }
.article-card-v2 p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-v2 .card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.78rem;
}
.article-card-v2 .card-bottom .read-more {
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--t-fast);
}
.article-card-v2:hover .card-bottom .read-more { gap: 0.5rem; }
.article-card-v2 .card-credit {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: italic;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 50%;
}

/* "No results" empty state */
.no-results {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* Unsplash photographer credits block */
.unsplash-credit {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}
.unsplash-credit a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; transition: all var(--t-fast); }
.unsplash-credit a:hover { color: var(--teal-deep); text-decoration-color: var(--teal); }

@media (max-width: 700px) {
  .articles-controls { flex-direction: column; align-items: stretch; }
  .articles-search { max-width: 100%; }
  .article-card-v2 .card-credit { max-width: 60%; }
}


/* --------------------------------------------------------------------------
   Article page (individual articles)
   Full-bleed image hero + prose body + end CTA.
   -------------------------------------------------------------------------- */
.article-hero {
  position: relative;
  min-height: 480px;
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.article-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) brightness(0.95);
  z-index: 0;
}
.article-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,13,26,0.55) 0%, rgba(8,13,26,0.45) 40%, rgba(8,13,26,0.92) 100%),
    linear-gradient(135deg, rgba(15,23,42,0.30) 0%, rgba(13,33,55,0.20) 100%);
  z-index: 0;
}
.article-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--noise);
  opacity: .25;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.article-hero > .container { position: relative; z-index: 1; width: 100%; }

.article-hero .back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,.55);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-8);
  transition: color var(--t-fast), gap var(--t-fast);
}
.article-hero .back-link:hover { color: var(--teal-highlight); gap: 0.55rem; }

.article-hero .article-meta {
  display: flex; gap: 0.5rem 1rem; flex-wrap: wrap;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.65);
  margin-bottom: var(--space-4);
  align-items: center;
}
.article-hero .article-meta .card-cat {
  color: var(--teal-highlight);
  background: rgba(13,148,136,.18);
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  border: 1px solid rgba(13,148,136,.4);
}

.article-hero h1 {
  color: var(--white);
  font-size: clamp(1.85rem, 4.2vw, 3.4rem);
  font-weight: 700;
  max-width: 24ch;
  margin-bottom: var(--space-4);
  line-height: 1.1;
  text-wrap: balance;
}
.article-hero .byline {
  color: rgba(255,255,255,.55);
  font-size: 0.92rem;
  margin: 0;
}
.article-hero .byline strong { color: var(--white); font-weight: 600; }

/* Body */
.article-body {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--white);
}
.article-body > .container { max-width: 720px; }

.article-body .article-content {
  font-size: 1.0625rem; /* 17px */
  line-height: 1.8;
  color: var(--text);
}
.article-body .article-content p {
  margin: 0 0 var(--space-6);
}
/* Drop cap reserved for opt-in via .has-drop-cap on the article-content
   element. Default first-paragraph drop cap was removed because narrow
   letters like 'I' rendered awkwardly. */
.article-body .article-content.has-drop-cap > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.2em;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  padding: 0.1em 0.12em 0 0;
  color: var(--ink);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
}

.article-body .article-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.7vw, 2.1rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: var(--space-12) 0 var(--space-4);
  text-wrap: balance;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
}
.article-body .article-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--ink);
  margin: var(--space-8) 0 var(--space-3);
  line-height: 1.25;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
}

.article-body .article-content a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-color: rgba(13,148,136,.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: text-decoration-color var(--t-fast);
  overflow-wrap: anywhere;       /* let long unbroken tokens (emails, URLs) wrap */
  word-break: break-word;
}
.article-body .article-content .callout,
.article-body .article-content .highlight-box,
.article-body .article-content .evidence-box { overflow-wrap: anywhere; word-break: break-word; }
.article-body .article-content a:hover { text-decoration-color: var(--teal); }
.article-body .article-content strong { color: var(--ink); font-weight: 600; }
.article-body .article-content em { color: var(--ink); }

.article-body .article-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 0 var(--space-6);
  margin: var(--space-8) 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
}

.article-body .article-content .highlight-box,
.article-body .article-content .evidence-box,
.article-body .article-content .callout {
  background: linear-gradient(160deg, var(--teal-tint) 0%, #ffffff 100%);
  border: 1px solid var(--teal-highlight);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-md);
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-subtle);
}
.article-body .article-content .highlight-box p:last-child,
.article-body .article-content .evidence-box p:last-child,
.article-body .article-content .callout p:last-child { margin-bottom: 0; }

.article-body .article-content ul,
.article-body .article-content ol {
  padding-left: var(--space-6);
  margin: 0 0 var(--space-6);
}
.article-body .article-content li {
  margin-bottom: var(--space-3);
  line-height: 1.7;
}
.article-body .article-content li::marker { color: var(--teal); }

.article-body .article-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-12) auto;
  width: 60px;
}

/* Related articles section if present in source */
.article-body .related-articles {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.article-body .related-articles h2,
.article-body .related-articles h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--space-6);
  font-family: var(--font-body);
}
.article-body .related-articles ul {
  list-style: none;
  padding: 0;
}
.article-body .related-articles li {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.article-body .related-articles li:last-child { border-bottom: 0; }
.article-body .related-articles a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 36;
}
.article-body .related-articles a:hover { color: var(--teal-deep); }

/* End-of-article CTA panel */
.article-end {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.article-end > .container { max-width: 720px; text-align: center; }
.article-end h2 {
  margin-bottom: var(--space-3);
}
.article-end p {
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto var(--space-6);
}
.article-end-back {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.article-end-back a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color var(--t-fast), gap var(--t-fast);
}
.article-end-back a:hover { color: var(--teal-deep); gap: 0.6rem; }

/* Photo credit at bottom of hero (subtle, photographer attribution) */
.article-hero-credit {
  position: absolute;
  right: 1rem; bottom: 1rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,.4);
  z-index: 1;
  font-style: italic;
}
.article-hero-credit a { color: rgba(255,255,255,.65); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 2px; }
.article-hero-credit a:hover { color: var(--teal-highlight); }


/* --------------------------------------------------------------------------
   Pillar pages (/ai, /manifesto, /field-reports, /personal)
   Shared dark hero treatment, plus page-specific component styles.
   -------------------------------------------------------------------------- */
.pillar-hero {
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  background: linear-gradient(150deg, #080d1a 0%, #0f172a 60%, #0d2137 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
  min-height: 520px;
  display: flex; align-items: flex-end;
}
.pillar-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.85) brightness(0.85);
  z-index: 0;
}
.pillar-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,13,26,0.55) 0%, rgba(8,13,26,0.40) 35%, rgba(8,13,26,0.92) 100%),
    linear-gradient(135deg, rgba(15,23,42,0.30) 0%, rgba(13,33,55,0.20) 100%);
  z-index: 0;
}
.pillar-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--noise);
  opacity: .25; mix-blend-mode: overlay; pointer-events: none;
  z-index: 0;
}
.pillar-hero::after {
  content: ''; position: absolute;
  top: -100px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,.20) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.pillar-hero > .container { position: relative; z-index: 1; width: 100%; }
.pillar-hero-credit {
  position: absolute;
  right: 1.25rem; bottom: 0.9rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,.45);
  z-index: 1;
  font-style: italic;
}
.pillar-hero-credit a { color: rgba(255,255,255,.7); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 2px; }
.pillar-hero-credit a:hover { color: var(--teal-highlight); }
.pillar-hero h1 { color: var(--white); max-width: 22ch; margin-bottom: var(--space-6); }
.pillar-hero .lead { color: rgba(255,255,255,.72); margin-bottom: var(--space-8); }
.pillar-hero .hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ============= /ai page: question cards ============= */
.question-card-v2 {
  background: linear-gradient(160deg, var(--white) 0%, var(--teal-tint) 100%);
  border: 1px solid var(--teal-highlight);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.question-card-v2:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
/* Distinct tints per question stage */
.question-card-v2[data-stage="1"] { background: linear-gradient(160deg, var(--white) 0%, var(--teal-tint) 100%); border-color: var(--teal-highlight); }
.question-card-v2[data-stage="2"] { background: linear-gradient(160deg, var(--white) 0%, #eef2ff 100%); border-color: #c7d2fe; }
.question-card-v2[data-stage="2"] .question-num { color: #4338ca; }
.question-card-v2[data-stage="3"] { background: linear-gradient(160deg, var(--white) 0%, #fffbeb 100%); border-color: #fde68a; }
.question-card-v2[data-stage="3"] .question-num { color: var(--amber); }
.question-card-v2 .question-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  margin-bottom: var(--space-3);
}
.question-card-v2 .question-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: var(--space-6);
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
}
.question-card-v2 .copy-btn {
  cursor: pointer;
}
.question-card-v2 .question-warning {
  font-size: 0.82rem;
  font-weight: 600;
  color: #b91c1c;
  margin-top: var(--space-3);
  margin-bottom: 0;
}

/* Copy notification toast */
.copy-notification {
  position: fixed;
  bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-hero);
  z-index: 200;
  transition: transform var(--t-mid);
  pointer-events: none;
}
.copy-notification.show { transform: translateX(-50%) translateY(0); }

/* ============= /ai page: evidence stats + quote ============= */
.evidence-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: var(--space-12) 0;
}
@media (max-width: 800px) { .evidence-grid-v2 { grid-template-columns: repeat(2, 1fr); } }

.evidence-stat-v2 {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.evidence-stat-v2:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: rgba(13,148,136,.30); }
.evidence-stat-v2 .stat-n {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--teal-deep);
  display: block;
  line-height: 1;
  letter-spacing: -0.03em;
}
.evidence-stat-v2 .stat-l {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.6rem;
  display: block;
}

.evidence-quote {
  background: linear-gradient(135deg, #0a0f1f 0%, #0f172a 50%, #102036 100%);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3rem);
  margin: var(--space-8) 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
}
.evidence-quote::before { content: ''; position: absolute; inset: 0; background-image: var(--noise); opacity: .35; mix-blend-mode: overlay; pointer-events: none; }
.evidence-quote::after { content: ''; position: absolute; top: -80px; right: -80px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(13,148,136,.25) 0%, transparent 60%); pointer-events: none; }
.evidence-quote > * { position: relative; z-index: 1; }
.evidence-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-style: italic;
  font-weight: 500;
  color: var(--white);
  line-height: 1.45;
  margin: 0 0 var(--space-4);
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
}
.evidence-quote cite {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============= /ai page: phase list ============= */
.phase-list-v2 { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-6); }
.phase-item-v2 {
  display: flex; align-items: flex-start; gap: var(--space-4);
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-subtle);
  transition: border-color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
}
.phase-item-v2:hover { border-color: var(--teal); transform: translateX(4px); box-shadow: var(--shadow-card); }
.phase-item-v2 .phase-n {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-tint);
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.phase-item-v2 h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--ink); }
.phase-item-v2 p { font-size: 0.92rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ============= /field-reports page ============= */
.field-reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .field-reports-grid { grid-template-columns: 1fr; } }

.field-report {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  overflow: hidden;
}
.field-report::before {
  /* Subtle coloured gradient wash from top-right, distinct per AI partner */
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  opacity: 0.10;
  transition: opacity var(--t-mid), transform var(--t-slow);
  pointer-events: none;
  background: var(--accent-color, var(--teal));
  z-index: 0;
}
.field-report:hover::before { opacity: 0.22; transform: scale(1.15); }
.field-report > * { position: relative; z-index: 1; }
.field-report[data-color="teal"]   { --accent-color: #0d9488; }
.field-report[data-color="purple"] { --accent-color: #8b5cf6; }
.field-report[data-color="blue"]   { --accent-color: #3b82f6; }
.field-report[data-color="amber"]  { --accent-color: #f59e0b; }
.field-report:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: rgba(13,148,136,.30); }
.field-report-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 36;
  box-shadow: 0 6px 14px rgba(15,23,42,.18);
}
.field-report[data-color="teal"]   .field-report-badge { background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%); }
.field-report[data-color="purple"] .field-report-badge { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.field-report[data-color="blue"]   .field-report-badge { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.field-report[data-color="amber"]  .field-report-badge { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.field-report-meta {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.field-report h3 { margin-bottom: var(--space-3); }
.field-report-arc {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: var(--space-4);
}
.field-report blockquote {
  border-left: 3px solid var(--teal);
  padding: 0 var(--space-4);
  margin: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
}

.suggest-list { list-style: none; padding: 0; }
.suggest-list li {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.suggest-list li:last-child { border-bottom: 0; }
.suggest-list li strong { color: var(--ink); }

.downloads-list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-6); }
.download-link {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.download-link:hover { border-color: var(--teal); transform: translateX(4px); background: var(--teal-tint); }
.download-link strong { color: var(--ink); }
.download-link .download-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-tint);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   Tracker pages (/human, /emotional)
   Page-specific components: symptom grid, book promo card, bites grid,
   stage grids, emotion catalogue cards.
   -------------------------------------------------------------------------- */

/* Symptom self-assessment cards (3-col grid on light bg) */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}
@media (max-width: 880px) { .symptom-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .symptom-grid { grid-template-columns: 1fr; } }

.symptom-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.symptom-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  transition: width var(--t-mid);
}
.symptom-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-mid);
  pointer-events: none;
}
.symptom-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(13,148,136,0.30);
}
.symptom-card:hover::before { width: 5px; }
.symptom-card:hover::after { opacity: 1; }
.symptom-card h3 { font-size: 1.05rem; margin-bottom: var(--space-3); position: relative; z-index: 1; padding-left: var(--space-3); }
.symptom-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; margin: 0; position: relative; z-index: 1; padding-left: var(--space-3); }

/* Book promo card (horizontal layout, image left, content right) */
.book-promo-card {
  display: flex; align-items: center; gap: var(--space-8);
  max-width: 720px; margin: 0 auto;
  padding: var(--space-8);
  background: linear-gradient(135deg, var(--white) 0%, var(--teal-tint) 100%);
  border: 1px solid var(--teal-highlight);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.book-promo-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity var(--t-mid), transform var(--t-slow);
}
.book-promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--teal);
}
.book-promo-card:hover::before { opacity: 0.8; transform: scale(1.2); }
.book-promo-card img {
  width: 100px; flex-shrink: 0; border-radius: 8px;
  box-shadow: 0 16px 40px rgba(15,23,42,.20);
  transition: transform var(--t-mid);
  position: relative; z-index: 1;
}
.book-promo-card:hover img { transform: rotate(-3deg) scale(1.05); }
.book-promo-card > div { position: relative; z-index: 1; }
.book-promo-card .card-eyebrow { margin-bottom: var(--space-2); }
.book-promo-card h3 { margin-bottom: var(--space-3); font-size: clamp(1.15rem, 2vw, 1.4rem); }
.book-promo-card p { color: var(--muted); margin-bottom: var(--space-4); }
@media (max-width: 600px) {
  .book-promo-card { flex-direction: column; align-items: flex-start; text-align: left; }
  .book-promo-card img { width: 80px; }
}

/* Nine Bites detail grid (9 dark cards on a dark section) */
.bites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}
@media (max-width: 880px) { .bites-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bites-grid { grid-template-columns: 1fr; } }

.bite-card {
  background: linear-gradient(160deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.03) 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-md);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-mid), border-color var(--t-mid), background var(--t-mid), box-shadow var(--t-mid);
}
.bite-card::before {
  /* Top teal accent line that draws across on hover */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-highlight) 50%, var(--teal) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.bite-card::after {
  /* Subtle radial glow from bottom-right on hover */
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 65%);
  opacity: 0;
  transition: opacity var(--t-mid);
  pointer-events: none;
}
.bite-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(160deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 100%);
  border-color: rgba(13,148,136,.50);
  box-shadow: 0 20px 40px rgba(0,0,0,.25), 0 0 40px rgba(13,148,136,.15);
}
.bite-card:hover::before { transform: scaleX(1); }
.bite-card:hover::after { opacity: 1; }
.bite-card > * { position: relative; z-index: 1; }
.bite-card .bite-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.20);
  line-height: 1;
  margin-bottom: var(--space-4);
  transition: -webkit-text-stroke-color var(--t-mid), color var(--t-mid);
}
.bite-card:hover .bite-num {
  -webkit-text-stroke-color: rgba(13,148,136,0.65);
  color: rgba(13,148,136,0.08);
}
.bite-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 36;
}
.bite-card p {
  color: rgba(255,255,255,.65);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}
.bite-card .bite-tip {
  background: rgba(13,148,136,.18);
  border-left: 2px solid var(--teal);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--space-3) var(--space-4);
  font-size: 0.82rem;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
  transition: background var(--t-mid);
}
.bite-card:hover .bite-tip {
  background: rgba(13,148,136,.28);
}

/* Emotional Digestion: three-stage grid (3 stage cards on a flowing section) */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
  align-items: stretch;
}
@media (max-width: 880px) { .stage-grid { grid-template-columns: 1fr; } }

.stage-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.stage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(13,148,136,.30); }
.stage-card .stage-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-tint);
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  align-self: flex-start;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}
.stage-card h3 { font-size: 1.4rem; margin-bottom: var(--space-3); }
.stage-card p { color: var(--muted); line-height: 1.65; margin-bottom: var(--space-4); flex: 1; }
.stage-card ul { margin: 0; padding-left: 1.2rem; }
.stage-card li {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 0.4rem;
}
.stage-card li::marker { color: var(--teal); }

/* Emotion catalogue (for /emotional — specific emotion guidance cards) */
.emotion-catalogue {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}
@media (max-width: 800px) { .emotion-catalogue { grid-template-columns: 1fr; } }

.emotion-entry {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.emotion-entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: rgba(13,148,136,.30); }
.emotion-entry h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-3);
  display: flex; align-items: baseline; gap: 0.5rem;
}
.emotion-entry h3 .emotion-icon {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-tint);
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.emotion-entry p { font-size: 0.92rem; line-height: 1.6; color: var(--text); margin-bottom: var(--space-3); }
.emotion-entry p:last-child { margin-bottom: 0; }
.emotion-entry strong { color: var(--ink); }


/* --------------------------------------------------------------------------
   Practice trackers (/human #nine-bites-practice + /emotional
   #emotional-practice). Restyled into the new design language: light
   section, white cards, Fraunces headings, Inter body, clean teal
   accents, solid CTA buttons. JS structure preserved (IDs/classes
   match the JS tracker classes).
   -------------------------------------------------------------------------- */

/* Section wrapper — light bg-soft background, generous padding */
#nine-bites-practice,
.emotional-practice.brand-bg {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--text);
}
#nine-bites-practice > .container,
.emotional-practice.brand-bg > .container {
  max-width: 1120px;
}

/* Headings — Fraunces serif, dark ink */
#nine-bites-practice h2,
.emotional-practice h2 {
  color: var(--ink);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
}
#nine-bites-practice h3,
.emotional-practice h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 var(--space-5);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 36;
}
#nine-bites-practice h4,
.emotional-practice h4 {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

/* Intro paragraph centered */
#nine-bites-practice .practice-intro,
.emotional-practice .practice-intro {
  text-align: center;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto var(--space-12);
  line-height: 1.7;
  font-size: 1rem;
}

/* Two-column form/calendar layout */
#nine-bites-practice .practice-container,
.emotional-practice .practice-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
@media (max-width: 900px) {
  #nine-bites-practice .practice-container,
  .emotional-practice .practice-container { grid-template-columns: 1fr; }
}

/* Card panels (form, calendar, insights) — white with subtle shadow + top accent */
#nine-bites-practice .entry-section,
#nine-bites-practice .calendar-section,
#nine-bites-practice .insights-section,
.emotional-practice .entry-section,
.emotional-practice .calendar-section,
.emotional-practice .insights-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: box-shadow var(--t-mid), transform var(--t-mid);
}
#nine-bites-practice .entry-section::before,
.emotional-practice .entry-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-deep) 50%, var(--teal) 100%);
  background-size: 200% 100%;
  animation: shimmer 8s linear infinite;
}
#nine-bites-practice .calendar-section::before,
.emotional-practice .calendar-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #6366f1 100%);
  background-size: 200% 100%;
  animation: shimmer 10s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Form group */
#nine-bites-practice .form-group,
.emotional-practice .form-group {
  margin-bottom: var(--space-5);
}
#nine-bites-practice .form-group label,
.emotional-practice .form-group label {
  display: block;
  color: var(--teal-deep);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

/* Inputs */
#nine-bites-practice .emotion-dropdown,
#nine-bites-practice textarea,
.emotional-practice .emotion-dropdown,
.emotional-practice textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  resize: vertical;
}
#nine-bites-practice .emotion-dropdown:focus,
#nine-bites-practice textarea:focus,
.emotional-practice .emotion-dropdown:focus,
.emotional-practice textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}
#nine-bites-practice .emotion-dropdown.placeholder,
.emotional-practice .emotion-dropdown.placeholder {
  color: var(--muted);
}
#nine-bites-practice textarea::placeholder,
.emotional-practice textarea::placeholder {
  color: var(--muted);
}

/* Stage tracker (emotional only) */
.emotional-practice .stage-tracker {
  margin: var(--space-5) 0;
}
.emotional-practice .stage-tracker h4 {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.emotional-practice .stage-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.emotional-practice .stage-btn {
  padding: 0.85rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.1;
  position: relative;
  overflow: hidden;
}
.emotional-practice .stage-btn .stage-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 36;
}
.emotional-practice .stage-btn .stage-sub {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.emotional-practice .stage-btn:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: var(--shadow-subtle);
}
.emotional-practice .stage-btn:hover .stage-sub { color: var(--teal-deep); }
.emotional-practice .stage-btn.active {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-color: var(--teal);
  box-shadow: var(--shadow-cta);
}
.emotional-practice .stage-btn.active .stage-name,
.emotional-practice .stage-btn.active .stage-sub { color: var(--white); }
@media (max-width: 600px) {
  .emotional-practice .stage-btn { padding: 0.7rem 0.4rem; }
  .emotional-practice .stage-btn .stage-name { font-size: 0.85rem; }
  .emotional-practice .stage-btn .stage-sub { font-size: 0.62rem; }
}

/* Primary log button — pill, solid teal gradient with subtle breathing glow */
#log-bite-btn,
.emotional-practice .log-emotion-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  position: relative;
  overflow: hidden;
}
#log-bite-btn::before,
.emotional-practice .log-emotion-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s;
  pointer-events: none;
}
#log-bite-btn:hover,
.emotional-practice .log-emotion-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}
#log-bite-btn:hover::before,
.emotional-practice .log-emotion-btn:hover::before {
  transform: translateX(100%);
}
#log-bite-btn:active,
.emotional-practice .log-emotion-btn:active { transform: translateY(0); }

/* Week navigator */
#nine-bites-practice .week-bar,
.emotional-practice .week-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
#nine-bites-practice .nav-btn.soft,
.emotional-practice .nav-btn.soft {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
#nine-bites-practice .nav-btn.soft:hover,
.emotional-practice .nav-btn.soft:hover {
  border-color: var(--teal);
  background: var(--teal-tint);
  color: var(--teal-deep);
}
#nine-bites-practice .week-strip,
.emotional-practice .week-strip {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.25rem;
  flex: 1;
  scroll-behavior: smooth;
}
#nine-bites-practice .week-strip::-webkit-scrollbar,
.emotional-practice .week-strip::-webkit-scrollbar { height: 6px; }
#nine-bites-practice .week-strip::-webkit-scrollbar-thumb,
.emotional-practice .week-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

#nine-bites-practice .day-chip,
.emotional-practice .day-chip {
  min-width: 54px;
  padding: 0.55rem 0.65rem;
  border-radius: var(--r-sm);
  text-align: center;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  position: relative;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--t-fast);
  box-shadow: none;
}
#nine-bites-practice .day-chip > div,
.emotional-practice .day-chip > div {
  opacity: 0.7;
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
}
#nine-bites-practice .day-chip:hover,
.emotional-practice .day-chip:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: var(--shadow-subtle);
}
#nine-bites-practice .day-chip.active,
.emotional-practice .day-chip.active {
  background: var(--ink) !important;
  border-color: var(--ink);
  color: var(--white);
  text-shadow: none;
}
#nine-bites-practice .day-chip.has-emotions {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%) !important;
  border-color: var(--teal) !important;
  color: var(--white);
}
.emotional-practice .day-chip.has-emotions { color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
#nine-bites-practice .day-chip .badge,
.emotional-practice .day-chip .badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--amber);
  color: var(--white);
  font-weight: 700;
  font-size: 0.65rem;
  border-radius: var(--r-pill);
  padding: 0.1rem 0.4rem;
  line-height: 1;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-subtle);
}

#nine-bites-practice .week-range,
.emotional-practice .week-range {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  margin: var(--space-4) 0 var(--space-3);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Day details panel */
#nine-bites-practice .day-details,
.emotional-practice .day-details {
  margin-top: var(--space-4);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-4);
}
#nine-bites-practice .day-details-header,
.emotional-practice .day-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}
#nine-bites-practice .day-details-title,
.emotional-practice .day-details-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}
#nine-bites-practice .count-badge,
.emotional-practice .count-badge {
  background: var(--teal);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 0.15rem 0.55rem;
}
#nine-bites-practice .day-details-close,
.emotional-practice .day-details-close {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: var(--r-sm);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}
#nine-bites-practice .day-details-close:hover,
.emotional-practice .day-details-close:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}
#nine-bites-practice .day-details-list,
.emotional-practice .day-details-list {
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  gap: 0.5rem;
}
#nine-bites-practice .detail-item,
.emotional-practice .detail-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.9rem;
  color: var(--text);
  transition: border-color var(--t-fast);
}
.emotional-practice .detail-item.released { background: var(--bg-soft); opacity: 0.85; }
#nine-bites-practice .detail-item:hover,
.emotional-practice .detail-item:hover { border-color: var(--teal-highlight); }
#nine-bites-practice .detail-head,
.emotional-practice .detail-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.emotional-practice .detail-swatch {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.1);
}
#nine-bites-practice .detail-meta,
.emotional-practice .detail-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.emotional-practice .detail-body {
  font-size: 0.85rem;
  color: var(--text);
  margin-top: 0.35rem;
  line-height: 1.5;
}
.emotional-practice .detail-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: var(--space-3);
}
.emotional-practice .pill {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--t-fast);
}
.emotional-practice .pill:hover { transform: translateY(-1px); border-color: var(--ink); }
.emotional-practice .pill.chew { background: linear-gradient(135deg, #fbbf24, #b45309); color: white; border-color: transparent; }
.emotional-practice .pill.release { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: white; border-color: transparent; }
.emotional-practice .pill.back { background: var(--white); }
.emotional-practice .pill.reopen { background: linear-gradient(135deg, #6366f1, #4338ca); color: white; border-color: transparent; }

/* Colour legend (emotional) */
.emotional-practice .legend-wrap { margin-top: var(--space-6); }
.emotional-practice .legend-wrap h4 {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.emotional-practice .legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-2);
}
.emotional-practice .legend-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: 0.82rem;
}
.emotional-practice .legend-card .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.08);
}

/* Insights — refined stat cards with teal accent and proper hierarchy */
#nine-bites-practice .insights-grid,
.emotional-practice .insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (max-width: 700px) {
  #nine-bites-practice .insights-grid,
  .emotional-practice .insights-grid { grid-template-columns: 1fr; }
}
#nine-bites-practice .insight-card,
.emotional-practice .insight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-5) var(--space-6);
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
}
#nine-bites-practice .insight-card::before,
.emotional-practice .insight-card::before {
  content: '';
  position: absolute;
  left: 0; top: var(--space-5); bottom: var(--space-5);
  width: 3px;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
}
#nine-bites-practice .insight-card:hover,
.emotional-practice .insight-card:hover {
  border-color: var(--teal-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}
#nine-bites-practice .insight-card h4,
.emotional-practice .insight-card h4 {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 var(--space-2);
  padding-left: var(--space-3);
}
#nine-bites-practice .insight-card p,
.emotional-practice .insight-card p {
  font-family: var(--font-body);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  padding-left: var(--space-3);
  letter-spacing: -0.005em;
}


/* --------------------------------------------------------------------------
   Share row (article pages)
   Inline row of share buttons at the end of each article body, before the
   end CTA. X, LinkedIn, Email, Copy link. Links are wired by share.js
   at load time using the page's actual URL + title.
   -------------------------------------------------------------------------- */
.share-row {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.share-row .share-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-right: auto;
}
.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-fast);
  position: relative;
}
.share-btn:hover {
  border-color: var(--teal);
  background: var(--teal-tint);
  color: var(--teal-deep);
  transform: translateY(-1px);
}
.share-btn svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.share-btn.copied {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.share-btn.copied::after {
  content: 'Copied!';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: inherit;
  color: inherit;
  padding: inherit;
  font: inherit;
  border-radius: inherit;
  pointer-events: none;
}
.share-btn.copied .share-label-text,
.share-btn.copied svg { visibility: hidden; }
@media (max-width: 700px) {
  .share-row .share-label { width: 100%; margin-right: 0; margin-bottom: 0; }
  .share-buttons { width: 100%; justify-content: flex-start; }
  .share-btn span { display: none; }       /* mobile: icons only, save space */
  .share-btn { padding: 0.6rem 0.8rem; }
}


/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-8); }
.mt-lg { margin-top: var(--space-12); }
