/* ==========================================================================
   UNDERCURRENTS.AI — Global Website Stylesheet
   Extends brand_assets/styles.css tokens for the production site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Reset & Box Model
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Brand Tokens)
   Copied from brand_assets/styles.css — single source of truth for the site.
   -------------------------------------------------------------------------- */
:root {
  /* --- Color: Deep (Primary Dark) --- */
  --deep-950: #070F18;
  --deep-900: #0B1A2B;
  --deep-800: #132640;
  --deep-700: #1C3554;
  --deep-600: #254768;

  /* --- Color: Slate (Neutral Scale) --- */
  --slate-700: #3E4C5E;
  --slate-600: #4F6178;
  --slate-500: #64748B;
  --slate-400: #9AACBF;
  --slate-300: #B0BCC9;
  --slate-200: #D4DCE4;
  --slate-100: #EDF0F4;
  --slate-50:  #F7F8FA;

  /* --- Color: Surface --- */
  --white: #FFFFFF;
  --off-white: #FAFBFC;

  /* --- Color: Accent (Deep Teal) --- */
  --accent-700: #085459;
  --accent-600: #0D7C83;
  --accent-500: #109BA3;
  --accent-400: #2CBAC2;
  --accent-300: #7DD4DA;
  --accent-200: #C4ECEF;
  --accent-100: #E8F6F7;
  --accent-150: #D6F1F3;

  /* --- Semantic Assignments --- */
  --color-bg:           var(--white);
  --color-bg-alt:       var(--off-white);
  --color-bg-dark:      var(--deep-900);
  --color-bg-darker:    var(--deep-950);
  --color-text:         var(--deep-900);
  --color-text-muted:   var(--slate-500);
  --color-text-light:   var(--slate-400);
  --color-text-inverse: var(--slate-100);
  --color-heading:      var(--deep-950);
  --color-accent:       var(--accent-600);
  --color-accent-hover: var(--accent-500);
  --color-border:       var(--slate-200);
  --color-border-light: var(--slate-100);

  /* --- Typography --- */
  --font-display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-body:    'Source Sans 3', 'Source Sans Pro', 'Helvetica Neue', 'Arial', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* --- Type Scale --- */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;
  --text-6xl:  4.5rem;

  /* --- Weights --- */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* --- Line Heights --- */
  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  /* --- Tracking --- */
  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.02em;
  --tracking-wider:   0.05em;
  --tracking-widest:  0.1em;

  /* --- Spacing --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Layout --- */
  --content-width:  820px;
  --wide-width:    1200px;
  --max-width:     1440px;

  /* --- Borders & Radius --- */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  /* --- Shadows --- */
  --shadow-sm:  0 1px 2px rgba(11, 26, 43, 0.04);
  --shadow-md:  0 2px 8px rgba(11, 26, 43, 0.06), 0 1px 2px rgba(11, 26, 43, 0.04);
  --shadow-lg:  0 4px 16px rgba(11, 26, 43, 0.08), 0 2px 4px rgba(11, 26, 43, 0.04);
  --shadow-xl:  0 8px 32px rgba(11, 26, 43, 0.10), 0 4px 8px rgba(11, 26, 43, 0.05);

  /* --- Transitions --- */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* --- Header --- */
  --header-height: 72px;
}


/* --------------------------------------------------------------------------
   2. Base Typography
   -------------------------------------------------------------------------- */
html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-24);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Pages with a dark hero need the body itself to be dark so the fixed header
   anchors against a matching field — eliminates the white hairline above
   the header on cold load. Default body stays white for Contact / The Chart. */
body.dark-page {
  background-color: var(--deep-950);
}

/* Anchored sections need a scroll-margin so deep-link / in-page navigation
   lands below the fixed header rather than behind it. Belt + suspenders with
   html { scroll-padding-top } above. */
section[id] {
  scroll-margin-top: var(--space-24);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-heading);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

/* h5/h6 fall below 20px on mobile — use Source Sans 3 semibold instead */
h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
  letter-spacing: var(--tracking-normal);
  line-height: var(--leading-snug);
}

h1 { font-size: var(--text-5xl); font-weight: var(--weight-bold); }
h2 { font-size: var(--text-4xl); font-weight: var(--weight-bold); }
h3 { font-size: var(--text-3xl); font-weight: var(--weight-semibold); }
h4 { font-size: var(--text-2xl); font-weight: var(--weight-semibold); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin: 0 0 var(--space-6);
  max-width: 65ch;
}

p:last-child { margin-bottom: 0; }

/* Typographic governance: Source Sans 3 at ≤14px gets letter-spacing: 0.01em */
small, .text-sm, .caption, .footnote, .overline {
  letter-spacing: 0.01em;
}

.overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
}


/* --------------------------------------------------------------------------
   3. Links & Buttons
   -------------------------------------------------------------------------- */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-accent-hover); }

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  line-height: 1;
  padding: var(--space-4) var(--space-8);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--accent-600);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-500);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 124, 131, 0.25);
}

.btn-outline {
  background-color: transparent;
  color: var(--slate-200);
  border: 1px solid var(--slate-500);
}

.btn-outline:hover {
  color: var(--white);
  border-color: var(--slate-300);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--slate-100);
  border: 1px solid var(--slate-600);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-color: var(--slate-400);
}


/* --------------------------------------------------------------------------
   4. Layout: Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-12); }
}


/* --------------------------------------------------------------------------
   5. Skip Link (Accessibility)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-6);
  background-color: var(--accent-600);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}


/* --------------------------------------------------------------------------
   6. Site Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--deep-900);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 20px rgba(7, 15, 24, 0.5);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Lockup */
.header-lockup {
  display: flex;
  align-items: center;
  gap: 0.28em;
  text-decoration: none;
  flex-shrink: 0;
}

.header-lockup:hover { opacity: 0.9; }
.header-lockup:focus-visible { outline-offset: 4px; }

.header-lockup svg {
  width: 42px;
  height: 28px;
  flex-shrink: 0;
}

.header-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--slate-100);
  white-space: nowrap;
}

.header-wordmark .wm-dot {
  color: var(--accent-400);
  font-size: 1.15em;
  line-height: 0;
}

.header-wordmark .wm-ai {
  color: var(--accent-400);
  font-weight: var(--weight-regular);
}

/* Desktop nav */
.header-nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.header-nav a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.01em;
  color: var(--slate-300);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: var(--space-1) 0;
}

.header-nav a:hover { color: var(--white); }
.header-nav a:focus-visible { color: var(--white); outline-offset: 4px; }
.header-nav a.active { color: var(--white); }

/* Mobile hamburger */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--slate-200);
  border-radius: 1px;
  position: relative;
  transition: background-color var(--transition-fast);
}

.mobile-toggle span::before,
.mobile-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--slate-200);
  border-radius: 1px;
  transition: transform var(--transition-base);
}

.mobile-toggle span::before { top: -7px; }
.mobile-toggle span::after  { top: 7px; }

.mobile-toggle[aria-expanded="true"] span { background-color: transparent; }
.mobile-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--deep-950);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: var(--space-12) var(--space-6);
  gap: var(--space-2);
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--slate-300);
  text-decoration: none;
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color var(--transition-fast);
}

.mobile-nav a:hover { color: var(--white); }
.mobile-nav a.active { color: var(--white); }

@media (min-width: 768px) {
  .header-nav { display: flex; }
  .mobile-toggle { display: none; }
  .mobile-nav { display: none; }
}


/* --------------------------------------------------------------------------
   6. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--deep-950);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* Footer lockup */
.footer-lockup {
  display: flex;
  align-items: center;
  gap: 0.28em;
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.footer-lockup svg {
  width: 28px;
  height: 19px;
  flex-shrink: 0;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  color: var(--slate-300);
  white-space: nowrap;
}

.footer-wordmark .wm-dot { color: var(--accent-400); }
.footer-wordmark .wm-ai  { color: var(--accent-400); font-weight: var(--weight-regular); }

.footer-descriptor {
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  color: var(--slate-500);
  margin-top: var(--space-2);
}

/* Footer nav */
.footer-nav-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: var(--space-4);
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  color: var(--slate-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover { color: var(--slate-100); }

/* Subscribe form */
.footer-subscribe {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.footer-subscribe input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  padding: var(--space-3) var(--space-4);
  background-color: var(--deep-800);
  border: 1px solid var(--deep-600);
  border-radius: var(--radius-md);
  color: var(--slate-100);
  outline: none;
  transition: border-color var(--transition-fast);
}

.footer-subscribe input::placeholder { color: var(--slate-500); }
.footer-subscribe input:focus { border-color: var(--accent-600); }

.footer-subscribe button {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  padding: var(--space-3) var(--space-5);
  background-color: var(--accent-600);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-fast);
}

.footer-subscribe button:hover { background-color: var(--accent-500); }

/* Footer bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copyright {
  font-size: var(--text-xs);
  letter-spacing: 0.01em;
  color: var(--slate-500);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-social a {
  color: var(--slate-500);
  transition: color var(--transition-fast);
}

.footer-social a:hover { color: var(--slate-200); }


/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height);
  background-color: var(--deep-900);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Subtle depth overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(7, 15, 24, 0.3) 0%,
      transparent 30%,
      transparent 70%,
      rgba(7, 15, 24, 0.5) 100%
    );
  pointer-events: none;
}

/* Faint horizontal lines */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 58px,
    rgba(13, 124, 131, 0.025) 58px,
    rgba(13, 124, 131, 0.025) 60px
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

/* Hero mark — large scale animated G3 */
.hero-mark {
  margin-bottom: var(--space-8);
}

.hero-mark svg {
  width: 240px;
  height: auto;
}

@media (min-width: 768px) {
  .hero-mark svg { width: 320px; }
}

/* Hero headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--slate-100);
  max-width: 16ch;
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.hero-headline.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .hero-headline { font-size: var(--text-5xl); }
}

/* Hero subhead */
.hero-subhead {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--slate-400);
  max-width: 48ch;
  margin-bottom: var(--space-10);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease 100ms, transform 500ms ease 100ms;
}

.hero-subhead.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero CTA */
.hero-cta {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease 200ms, transform 500ms ease 200ms;
}

.hero-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--slate-500);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  opacity: 0;
  animation: scroll-hint 1s ease 2.5s forwards;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--slate-500), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  to { opacity: 1; }
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}


/* --------------------------------------------------------------------------
   8. G3 Mark Entrance Animation
   Sequence: surface draws (0-600ms), current1 (380ms delay, 400ms),
   current2 (650ms delay, 350ms, 0.4 opacity), then hero text fades in.
   -------------------------------------------------------------------------- */

/* Initial states — strokes hidden via dashoffset */
.g3-anim .g3-surface {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

.g3-anim .g3-current1 {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.g3-anim .g3-current2 {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  opacity: 0;
}

/* Animated states — applied via JS after load */
.g3-anim.playing .g3-surface {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.g3-anim.playing .g3-current1 {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 400ms cubic-bezier(0.4, 0, 0.2, 1) 380ms;
}

.g3-anim.playing .g3-current2 {
  stroke-dashoffset: 0;
  opacity: 0.4;
  transition: stroke-dashoffset 350ms cubic-bezier(0.4, 0, 0.2, 1) 650ms,
              opacity 350ms ease 650ms;
}


/* --------------------------------------------------------------------------
   9. Reduced Motion — snap to final state, zero animation
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .g3-anim .g3-surface {
    stroke-dashoffset: 0;
    stroke-dasharray: none;
  }

  .g3-anim .g3-current1 {
    stroke-dashoffset: 0;
    stroke-dasharray: none;
  }

  .g3-anim .g3-current2 {
    stroke-dashoffset: 0;
    stroke-dasharray: none;
    opacity: 0.4;
  }

  .hero-headline,
  .hero-subhead,
  .hero-cta,
  .g3-anim path {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .scroll-indicator { opacity: 1; }
}


/* --------------------------------------------------------------------------
   10. Content Sections — Base
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-20) 0;
}

@media (min-width: 768px) {
  .section { padding: var(--space-32) 0; }
}

.section-light {
  background-color: var(--white);
  color: var(--color-text);
}

.section-light-alt {
  background-color: var(--slate-50);
  color: var(--color-text);
}

.section-dark {
  background-color: var(--deep-900);
  color: var(--slate-100);
}

.section-darker {
  background-color: var(--deep-950);
  color: var(--slate-100);
}

.section-overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: var(--space-4);
}

.section-dark .section-overline,
.section-darker .section-overline {
  color: var(--accent-400);
}

.section-headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .section-headline { font-size: var(--text-4xl); }
}

.section-dark .section-headline,
.section-darker .section-headline {
  color: var(--slate-100);
}

.section-subhead {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--slate-500);
  max-width: 52ch;
  margin-bottom: var(--space-10);
}

.section-dark .section-subhead,
.section-darker .section-subhead {
  color: var(--slate-400);
}


/* --------------------------------------------------------------------------
   10a. Four Forces Grid
   -------------------------------------------------------------------------- */
.forces-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
  .forces-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .forces-grid { grid-template-columns: repeat(4, 1fr); }
}

.force-card {
  padding: var(--space-6);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
}

.force-number {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  color: var(--accent-600);
  margin-bottom: var(--space-3);
}

.force-name {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--deep-950);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.force-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  line-height: var(--leading-normal);
  color: var(--slate-500);
}

.forces-bridge {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--slate-600);
  max-width: 56ch;
  line-height: var(--leading-normal);
}


/* --------------------------------------------------------------------------
   10b. Services Grid
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}

.service-number {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--slate-600);
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-3);
}

.service-title {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--accent-400);
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
}

.service-desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--slate-300);
  margin-bottom: var(--space-4);
  max-width: 48ch;
}

.service-deliverable {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--slate-400);
  letter-spacing: 0.01em;
}

.service-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  color: var(--slate-400);
  text-decoration: none;
  border-bottom: 1px solid var(--deep-600);
  padding-bottom: var(--space-1);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.service-link:hover {
  color: var(--accent-400);
  border-color: var(--accent-400);
}


/* --------------------------------------------------------------------------
   10c. Assessment CTA
   -------------------------------------------------------------------------- */
.assessment-section {
  text-align: center;
}

.assessment-section .section-overline,
.assessment-section .section-headline,
.assessment-section .section-subhead {
  margin-left: auto;
  margin-right: auto;
}

.assessment-section .section-subhead {
  max-width: 44ch;
}

.assessment-fine-print {
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  color: var(--slate-400);
  margin-top: var(--space-4);
}


/* --------------------------------------------------------------------------
   10d. About Teaser
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 0.8fr; gap: var(--space-12); }
}

.about-bio {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--slate-300);
  margin-bottom: var(--space-6);
  max-width: 52ch;
}

.about-credential {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: var(--space-6);
  max-width: 52ch;
}

/* Fix 16 — About-section CTA gets a teal outline treatment, scoped so the
   Contact page's .btn-outline (Book a conversation) stays as-is. */
#about .btn-outline {
  color: var(--accent-400);
  border-color: var(--accent-400);
}

#about .btn-outline:hover {
  background-color: var(--accent-400);
  color: var(--deep-950);
  border-color: var(--accent-400);
}

.about-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  color: var(--slate-400);
  text-decoration: none;
  border-bottom: 1px solid var(--deep-600);
  padding-bottom: var(--space-1);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.about-link:hover {
  color: var(--accent-400);
  border-color: var(--accent-400);
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}


/* --------------------------------------------------------------------------
   10e. Article Cards
   -------------------------------------------------------------------------- */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
  .articles-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

.article-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--white);
  transition: box-shadow var(--transition-fast);
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
}

.article-card img {
  width: 100%;
  height: auto;
  display: block;
}

.article-card-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
}

.article-category {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: var(--space-2);
}

.article-title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--deep-950);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2);
}

.article-excerpt {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  line-height: var(--leading-normal);
  color: var(--slate-500);
  margin-bottom: var(--space-4);
}

.article-read-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  color: var(--accent-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.article-read-link:hover {
  color: var(--accent-500);
}

.articles-view-all {
  text-align: center;
}

.articles-view-all a {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--accent-600);
  text-decoration: none;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: var(--space-1);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.articles-view-all a:hover {
  color: var(--accent-500);
  border-color: var(--accent-500);
}


/* --------------------------------------------------------------------------
   10f. Newsletter CTA
   -------------------------------------------------------------------------- */
.newsletter-section {
  text-align: center;
}

.newsletter-section .section-headline,
.newsletter-section .section-subhead {
  margin-left: auto;
  margin-right: auto;
}

.newsletter-section .section-headline {
  max-width: 24ch;
}

.newsletter-section .section-subhead {
  max-width: 48ch;
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 500px;
  margin: 0 auto var(--space-4);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-5);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-md);
  color: var(--white);
  outline: none;
  transition: border-color var(--transition-fast), outline-color var(--transition-fast);
}

.newsletter-form input::placeholder { color: var(--slate-400); }

.newsletter-form input:focus {
  border-color: var(--accent-400);
  outline: 2px solid rgba(44, 186, 194, 0.2);
  outline-offset: 0;
}

.newsletter-form button {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  padding: var(--space-4) var(--space-8);
  background-color: var(--accent-600);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-fast);
}

.newsletter-form button:hover { background-color: var(--accent-500); }

.newsletter-status {
  font-size: var(--text-sm);
  text-align: center;
  margin-top: var(--space-3);
  min-height: 1.4em;
}
.newsletter-status-success { color: var(--accent-400); }
.newsletter-status-error { color: #e87c6b; }

.newsletter-fine-print {
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  color: var(--slate-500);
  text-align: center;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--slate-300);
  margin-bottom: var(--space-8);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-200);
  letter-spacing: 0.01em;
}

.form-group .required {
  color: var(--accent-400);
}

.form-group .optional {
  color: var(--slate-500);
  font-weight: 400;
  font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--slate-100);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--slate-700);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(13, 124, 131, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-600);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  align-self: flex-start;
  margin-top: var(--space-2);
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form status messages */
.form-status {
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-height: 1.4em;
  margin-top: var(--space-2);
}

.form-status-success {
  color: var(--accent-400);
}

.form-status-error {
  color: #e06c75;
}

/* Right column: info blocks */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-top: var(--space-4);
}

.contact-info-block {
  border-left: 2px solid var(--slate-700);
  padding-left: var(--space-4);
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--slate-100);
  margin-bottom: var(--space-2);
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-info-list a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--accent-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-info-list a:hover {
  color: var(--accent-300);
}

.contact-address {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--slate-300);
  line-height: 1.6;
}

.contact-info-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate-400);
  line-height: 1.5;
}

.contact-reassurance {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--slate-500);
  margin-top: var(--space-6);
  font-style: italic;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .contact-info-col {
    padding-top: 0;
    border-top: 1px solid var(--slate-700);
    padding-top: var(--space-6);
  }
}

/* --------------------------------------------------------------------------
   11. Responsive Typography
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl);  }
  h4 { font-size: var(--text-lg);  }
}

/* --------------------------------------------------------------------------
   12. The Chart — Content Hub
   -------------------------------------------------------------------------- */

/* Article-card title link reset (cards with clickable titles).
   Force inheritance for all link states — including external links, which
   would otherwise pick up the global a { color: var(--color-accent) }. */
.article-title a,
.article-title a:link,
.article-title a:visited {
  color: inherit;
  text-decoration: none;
}
.article-title a:hover {
  color: var(--accent-600);
}

/* Filter pills (links to category pages) */
.chart-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0;
}

.chart-filter-btn {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  padding: var(--space-3) var(--space-6);
  border-radius: 100px;
  border: 1px solid var(--slate-200);
  background: transparent;
  color: var(--slate-500);
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.chart-filter-btn:hover {
  background: var(--slate-100);
  color: var(--slate-700);
}

.chart-filter-btn.active {
  background: var(--accent-600);
  color: var(--white);
  border-color: var(--accent-600);
}

@media (max-width: 768px) {
  .chart-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Right-edge fade signals that more pills exist beyond the viewport */
    -webkit-mask-image: linear-gradient(to right, black 92%, transparent);
    mask-image: linear-gradient(to right, black 92%, transparent);
  }
  .chart-filters::-webkit-scrollbar { display: none; }
}

/* Back link */
.chart-back-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--slate-400);
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--space-8);
  transition: color var(--transition-fast);
}

.chart-back-link:hover {
  color: var(--accent-600);
}

/* Section labels (Featured / Latest / Read more / Cornerstones) */
.chart-section-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: var(--space-6);
}

.chart-featured-section {
  margin-bottom: var(--space-12);
}

.chart-empty-state {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--slate-400);
  text-align: center;
  padding: var(--space-16) 0;
}

/* Cornerstones section */
.cornerstones-section {
  margin-bottom: var(--space-12);
}

/* Section label upweighted in the cornerstones context — anchor content
   deserves slightly more presence without breaking editorial restraint. */
.cornerstones-section .chart-section-label {
  font-size: var(--text-base);
  color: var(--slate-600);
}

.cornerstones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .cornerstones-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Cornerstone — text-only treatment, dominant typographic scale.
   The teal top rule was removed in v3 Fix 3; differentiation now comes from
   scale (--text-4xl) + the Cornerstone badge + the tinted section band. */
.article-card-cornerstone {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  overflow: visible;
}

.article-card-cornerstone:hover {
  box-shadow: none;
  background: transparent;
}

.article-card-cornerstone .article-card-body {
  padding: 0;
}

.article-card-cornerstone .article-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .article-card-cornerstone .article-title {
    font-size: var(--text-4xl);
  }
}

.article-card-cornerstone .article-excerpt {
  font-size: var(--text-md);
  color: var(--slate-600);
  max-width: 65ch;
}

.article-cornerstone-badge {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent-700);
  background: rgba(13, 124, 131, 0.08);
  padding: 0.15em var(--space-2);
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .cornerstones-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* Article card media (thumbnail wrapper for play indicator / duration overlay) */
.article-card-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.article-card-media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-fast);
}

.article-card:hover .article-card-media img {
  transform: scale(1.02);
}

.article-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.article-card:hover .article-play-indicator {
  opacity: 1;
}

/* Bump the play-button SVG on small viewports — 48px reads slightly under-scale
   relative to the thumbnail at <400px wide. */
@media (max-width: 600px) {
  .article-play-indicator svg {
    width: 56px;
    height: 56px;
  }
}

.article-duration {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--white);
  background: rgba(11, 26, 43, 0.75);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

/* Card meta row (category + type/source badges) */
.article-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.article-card-meta .article-category {
  margin-bottom: 0;
}

.article-type-badge {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--white);
  background: var(--accent-600);
  padding: 0.15em var(--space-2);
  border-radius: 100px;
}

/* Source-aware external badges (Fix 9) */
.article-type-external[data-source="linkedin"] {
  color: #0A66C2;
  background: rgba(10, 102, 194, 0.08);
}

.article-type-external[data-source="youtube"] {
  color: #C4302B;
  background: rgba(196, 48, 43, 0.08);
}

.article-type-external[data-source="substack"] {
  color: #FF6719;
  background: rgba(255, 103, 25, 0.08);
}

/* Card footer (date + reading time bucket) */
.article-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.article-date,
.article-time-bucket {
  font-family: var(--font-body);
  font-size: var(--text-xs);
}

.article-date {
  color: var(--slate-400);
}

.article-card-sep {
  color: var(--slate-300);
  font-size: var(--text-xs);
}

/* Reading-time bucket styles (Fix 16) */
.article-time-bucket {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: var(--weight-medium);
}
.article-time-quick { color: var(--slate-500); }
.article-time-standard { color: var(--slate-500); }
.article-time-deep {
  color: var(--accent-700);
  font-weight: var(--weight-semibold);
}

/* CTA link icon sizing */
.article-read-icon {
  width: 14px;
  height: 14px;
  vertical-align: -1px;
  margin-left: var(--space-1);
}

/* Featured grid — text-only treatment per v3 Fix 2 Path A.
   Strips card chrome to match Cornerstone's text-only treatment; differentiation
   from Cornerstone is purely typographic scale (--text-2xl vs --text-4xl). */
.articles-grid-featured {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .articles-grid-featured { grid-template-columns: 1fr 1fr; }
}

.article-card-featured {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  overflow: visible;
}

.article-card-featured:hover {
  box-shadow: none;
  background: transparent;
}

.article-card-featured .article-card-body {
  padding: 0;
}

.article-card-featured .article-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}

.article-card-featured .article-excerpt {
  font-size: var(--text-base);
  color: var(--slate-600);
  max-width: 65ch;
}

/* Post page header */
.post-header {
  margin-bottom: var(--space-10);
  max-width: var(--content-width);
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: var(--weight-bold);
  color: var(--deep-950);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

/* Author row on post pages (Fix 8) */
.post-author-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.post-author-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.post-author-name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--deep-950);
}

.post-author-tagline {
  font-weight: var(--weight-regular);
  color: var(--slate-500);
}

.post-meta-text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--slate-400);
}

.post-meta-sep {
  color: var(--slate-300);
  margin: 0 var(--space-1);
}

.post-meta-link {
  color: var(--accent-600);
  text-decoration: none;
  font-weight: var(--weight-semibold);
  transition: opacity var(--transition-fast);
}

.post-meta-link:hover { opacity: 0.7; }

@media (max-width: 600px) {
  .post-author-photo { width: 40px; height: 40px; }
  .post-author-tagline { display: block; margin-top: 2px; }
}

/* Post hero image */
.post-hero-image {
  width: 100%;
  max-width: var(--content-width);
  height: auto;
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-10);
  display: block;
}

/* Video embed (post page) */
.video-embed {
  position: relative;
  width: 100%;
  max-width: var(--content-width);
  aspect-ratio: 16 / 9;
  margin: 0 auto var(--space-10);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--deep-950);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-show-notes-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: var(--space-6);
  margin-top: var(--space-4);
  max-width: var(--content-width);
}

/* Prose / markdown content */
.post-content {
  max-width: var(--content-width);
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--deep-950);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--deep-900);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.post-content h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--deep-900);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.post-content p {
  margin-bottom: var(--space-5);
  color: var(--deep-900);
  line-height: var(--leading-normal);
}

/* Lead paragraph (Fix 7). 19px / 1.1875rem sits between --text-md and --text-lg.
   Deliberate exception to the token-only rule — no existing token at this size. */
.post-content > p:first-of-type {
  font-size: 1.1875rem;
  color: var(--deep-950);
  line-height: 1.65;
}

.post-content a {
  color: var(--accent-600);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.post-content a:hover {
  border-bottom-color: var(--accent-600);
}

.post-content blockquote {
  border-left: 3px solid var(--accent-600);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--slate-500);
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.post-content li {
  margin-bottom: var(--space-2);
  color: var(--deep-900);
}

.post-content code {
  font-size: 0.9em;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

.post-content pre {
  background: var(--deep-900);
  color: var(--slate-200);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-8) 0;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: var(--text-sm);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--slate-200);
  margin: var(--space-10) 0;
}

/* Pull-quote utility (Fix 7) — for use in markdown body */
.post-pullquote {
  max-width: var(--content-width);
  margin: var(--space-10) auto;
  padding: 0 var(--space-12) 0 var(--space-8);
  border-left: 3px solid var(--accent-600);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--deep-950);
  letter-spacing: -0.01em;
}

@media (max-width: 600px) {
  .post-pullquote {
    padding: 0 var(--space-5);
    margin: var(--space-6) auto;
    font-size: var(--text-lg);
  }
}

/* Share UI (Fix 11) — sits between post body and PostCTA */
.post-share {
  max-width: var(--content-width);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.post-share-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--slate-400);
}

.post-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background: transparent;
  color: var(--slate-400);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
}

.post-share-btn:hover {
  color: var(--accent-600);
  border-color: var(--accent-600);
}

@media (max-width: 600px) {
  .post-share-btn { width: 44px; height: 44px; }
}

/* Share button copy-confirmation state */
[data-share-btn] {
  position: relative;
}

[data-share-btn] .share-icon-copied {
  display: none;
}

[data-share-btn].is-copied {
  color: var(--accent-600);
  border-color: var(--accent-600);
}

[data-share-btn].is-copied .share-icon-default {
  display: none;
}

[data-share-btn].is-copied .share-icon-copied {
  display: inline-block;
}

.post-share-toast {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--deep-950);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

[data-share-btn].is-copied .post-share-toast {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .post-share-toast { transition: none; }
}

/* PostCTA block (Fix 15) */
.post-cta-block {
  max-width: var(--content-width);
  margin: var(--space-12) 0 var(--space-8);
  padding: var(--space-8) var(--space-12);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--off-white);
}

.post-cta-overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: var(--space-2);
}

.post-cta-headline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--deep-950);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.post-cta-body {
  font-size: var(--text-base);
  color: var(--deep-900);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-5);
  max-width: 60ch;
}

.post-cta-btn {
  margin-top: var(--space-1);
}

.post-cta-secondary {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--slate-200);
}

.post-cta-secondary-text {
  font-size: var(--text-sm);
  color: var(--slate-500);
  line-height: var(--leading-normal);
  margin: 0;
}

.post-cta-newsletter-link {
  color: var(--accent-600);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.post-cta-newsletter-link:hover { opacity: 0.7; }

@media (max-width: 600px) {
  .post-cta-block {
    padding: var(--space-6) var(--space-5);
    margin: var(--space-8) 0 var(--space-6);
  }
  .post-cta-headline { font-size: var(--text-lg); }
}

/* Post tags */
.post-tags {
  max-width: var(--content-width);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--slate-200);
}

.post-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--slate-500);
  background: var(--slate-100);
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
}

/* Related posts section */
.related-posts-section {
  border-top: 1px solid var(--slate-200);
}

.related-posts-section .chart-section-label {
  margin-bottom: var(--space-8);
}

/* Category landing pages */
.category-header {
  margin-bottom: var(--space-12);
}

.category-description {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--slate-500);
  line-height: var(--leading-normal);
  max-width: 65ch;
  margin-top: var(--space-4);
}

/* Sidebar (built but not active) */
.chart-layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .chart-layout-with-sidebar {
    grid-template-columns: 1fr 300px;
  }
}

.chart-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

@media (min-width: 1024px) {
  .chart-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-8));
    align-self: start;
  }
}

.sidebar-author {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sidebar-author-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-author-name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--deep-950);
  margin: 0;
}

.sidebar-author-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--slate-500);
  margin: 0;
}

.sidebar-author-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--accent-600);
  text-decoration: none;
  margin-top: var(--space-1);
}

.sidebar-section-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--slate-400);
  margin: 0 0 var(--space-3);
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sidebar-newsletter-form input,
.sidebar-newsletter-form button {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
}

.sidebar-newsletter-form button {
  background: var(--accent-600);
  color: var(--white);
  font-weight: var(--weight-semibold);
  border-color: var(--accent-600);
  cursor: pointer;
}

.sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sidebar-category-list a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--deep-900);
  text-decoration: none;
}

.sidebar-category-list a:hover {
  color: var(--accent-600);
}

.sidebar-category-count {
  color: var(--slate-400);
}

/* Search overlay (Pagefind) */
.header-search-btn {
  background: none;
  border: none;
  color: var(--slate-300);
  cursor: pointer;
  padding: var(--space-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--space-3);
  transition: color var(--transition-fast);
}

.header-search-btn:hover {
  color: var(--white);
}

/* Hide search button on mobile — hamburger handles the trigger surface there */
@media (max-width: 768px) {
  .header-search-btn { display: none; }
}

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 24, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 140px;
}

.search-overlay.open {
  display: flex;
}

.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  padding: var(--space-2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  margin: 0 var(--space-6);
}

.search-hint {
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--slate-100);
  opacity: 0.7;
  margin-top: var(--space-3);
}

/* Pagefind UI overrides */
:root {
  --pagefind-ui-scale: 0.9;
  --pagefind-ui-primary: var(--accent-600);
  --pagefind-ui-text: var(--deep-950);
  --pagefind-ui-background: var(--white);
  --pagefind-ui-border: var(--slate-200);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 8px;
  --pagefind-ui-font: var(--font-body);
}

/* --------------------------------------------------------------------------
   13. The Chart — v3 Design Fixes
   -------------------------------------------------------------------------- */

/* Fix 4 — Page-level masthead block. Promotes "The Chart" from a section
   eyebrow into a publication wordmark with editorial standfirst beneath. */
.chart-masthead {
  margin-bottom: var(--space-12);
}

.chart-masthead-wordmark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--deep-950);
  margin: 0 0 var(--space-6);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--slate-300);
  border-bottom: 1px solid var(--slate-300);
}

.chart-masthead-standfirst {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  color: var(--deep-900);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  max-width: 32ch;
  margin: 0 0 var(--space-4);
}

@media (min-width: 768px) {
  .chart-masthead-standfirst {
    font-size: var(--text-3xl);
  }
}

.chart-masthead-description {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--slate-500);
  line-height: var(--leading-normal);
  max-width: 60ch;
  margin: 0;
}

/* Fix 1 — Single-post grid variants. When Cornerstones or Featured contains
   exactly one post, force a single full-width column at all breakpoints so
   the post fills the content area rather than leaving a half-empty grid. */
.cornerstones-grid.cornerstones-grid--single,
.articles-grid.articles-grid-featured--single {
  grid-template-columns: minmax(0, 1fr);
}

/* Fix 7 — Cornerstones tinted band. Subtle teal tint claims the section as
   the anchor moment without competing with the rest of the page.
   v4 Fix 12: bumped from --accent-100 to --accent-150 (interpolated between
   100 and 200) so the band reads as deliberately tinted on a 1440 viewport. */
.section-tinted {
  background-color: var(--accent-150);
}

/* Fix 6 — Post-page two-column layout with sticky right rail (≥1024px) */
.post-layout {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .post-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    column-gap: var(--space-16);
    align-items: start;
  }
}

.post-layout-main {
  min-width: 0;
}

.post-layout-rail {
  display: none;
}

@media (min-width: 1024px) {
  .post-layout-rail {
    display: block;
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
    align-self: start;
  }
}

/* The rail CTA itself owns the hide transition (Fix 9). 120ms keeps the rail
   from lingering once the in-flow PostCTA enters the viewport. The visibility
   toggle prevents stray clicks once the element is visually hidden. */
.post-rail-cta {
  background: var(--accent-100);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms;
}

.post-rail-cta.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
  .post-rail-cta {
    transition: none;
  }
  .post-rail-cta.is-hidden {
    transform: none;
    transition: none;
  }
}

.post-rail-overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent-700);
  margin: 0 0 var(--space-2);
}

.post-rail-headline {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--deep-950);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
}

.post-rail-btn {
  width: 100%;
  justify-content: center;
}
