/* ============================================
   SEND Experts at Hand — Design System
   Two registers, one voice.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens — drawn directly from the brand logo */
  --ink:        #0F2F55;   /* logo navy — settings anchor, authority */
  --ink-deep:   #0A1F3A;   /* deeper navy, for max contrast text */
  --paper:      #F7F5F0;   /* warm paper — families anchor, warmth */
  --paper-deep: #EDE9E0;   /* slightly deeper paper for cards on paper bg */
  --clay:       #5FA694;   /* logo sage-teal, deepened for AA contrast — bridges both halves */
  --clay-deep:  #468576;   /* hover/active state, darker sage */
  --sage:       #8FC2B4;   /* logo sage — secondary, calm, used in family contexts */
  --sage-deep:  #5FA694;   /* sage for backgrounds/hovers (not text — fails AA on light bg) */
  --sage-text:  #2F6B5C;   /* darker sage for text on light backgrounds, AA-compliant */
  --sprout:     #C9CB4F;   /* logo star yellow-green — sparing highlight only */
  --sage-eyebrow: #0A3B2E; /* deep green eyebrow on sage backgrounds (split hero) */
  --teal:       #2F6B5C;   /* legacy alias still referenced by inline styles — matches sage-text */
  --teal-deep:  #468576;   /* legacy alias — matches clay-deep */
  --white:      #FFFFFF;
  --line:       rgba(15, 47, 85, 0.14);
  --line-soft:  rgba(15, 47, 85, 0.08);

  /* Type */
  --serif: "Source Serif 4", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: 6.5rem;
  --sp-7: 9rem;

  --radius: 3px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-deep);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2.5px solid var(--clay);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* ============ Typography ============ */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--ink-deep);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--clay-deep);
  display: block;
  margin-bottom: var(--sp-2);
}

.eyebrow.on-dark { color: #E8A98B; }
.eyebrow.sage-tone { color: var(--sage-text); }

small, .small { font-size: 0.88rem; }

.serif-num {
  font-family: var(--serif);
  font-weight: 600;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-clay {
  background: var(--clay-deep);
  color: var(--white);
}
.btn-clay:hover { background: #3A6B5E; }

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover { background: var(--ink-deep); }

.btn-sage {
  background: #357065;
  color: var(--white);
}
.btn-sage:hover { background: #2B5B52; }

.btn-outline {
  background: transparent;
  border-color: currentColor;
}
.btn-outline.on-paper { color: var(--ink); }
.btn-outline.on-paper:hover { background: var(--ink); color: var(--paper); }
.btn-outline.on-dark { color: var(--paper); border-color: rgba(246,242,234,0.5); }
.btn-outline.on-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ============ Header / Nav ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-deep);
}
.brand .mark {
  color: var(--clay);
  font-size: 1.4rem;
  line-height: 1;
}
.brand img.mark-icon {
  height: 54px;
  width: auto;
  display: block;
}

/* Two-line stacked wordmark */
.brand-stack {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-stack .wordmark {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.05;
  font-size: 1.15rem;
  color: var(--ink-deep);
  letter-spacing: -0.01em;
}
.brand-stack .wordmark span {
  display: block;
}
.brand-stack .wordmark .line2 {
  position: relative;
  padding-top: 0.18em;
  margin-top: 0.18em;
}
.brand-stack .wordmark .line2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  border-top: 1.5px solid var(--ink-deep);
}
.footer-brand .brand-stack .wordmark { color: var(--paper); }
.footer-brand .brand-stack .wordmark .line2::before { border-color: var(--paper); }
.mobile-drawer .brand-stack .wordmark { color: var(--paper); font-size: 1.2rem; }
.mobile-drawer .brand-stack .wordmark .line2::before { border-color: var(--paper); }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.main-nav ul {
  display: flex;
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  padding: 0.4em 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--clay-deep); }

.nav-cta { display: flex; gap: 0.6rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-deep);
  margin: 5px 0;
}

@media (max-width: 880px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .nav-cta.desktop-only { display: none; }
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink-deep);
  z-index: 200;
  padding: var(--sp-4) var(--sp-3);
  overflow-y: auto;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-5);
}
.mobile-drawer .brand { color: var(--paper); }
.mobile-drawer .close-btn {
  background: none; border: none; color: var(--paper);
  font-size: 2rem; cursor: pointer; line-height: 1;
}
.mobile-drawer ul {
  list-style: none; padding: 0; margin: 0 0 var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.mobile-drawer a {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--paper);
}
.mobile-drawer .nav-cta { flex-direction: column; }

/* ============ Path badge (settings/families signal) ============ */

.path-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  margin-bottom: var(--sp-3);
}
.path-pill.settings { background: rgba(27,43,58,0.08); color: var(--ink); }
.path-pill.settings.on-dark { background: rgba(246,242,234,0.14); color: #CBD8E2; }
.path-pill.families { background: rgba(91,112,101,0.12); color: var(--sage-text); }
.path-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ============ Sections ============ */

section { padding: var(--sp-6) 0; }
.section-tight { padding: var(--sp-5) 0; }

.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--white); }
.bg-ink .line { border-color: rgba(246,242,234,0.18); }

.bg-paper-deep { background: var(--paper-deep); }
.bg-white { background: var(--white); }

.bg-sage { background: var(--sage); color: var(--paper); }
.bg-sage h1, .bg-sage h2, .bg-sage h3 { color: var(--white); }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--sp-5) 0;
}

/* ============ Homepage Fork ============ */

.fork-hero {
  background: var(--paper);
  padding: var(--sp-6) 0 var(--sp-6);
  overflow: hidden;
  position: relative;
}
.fork-hero::before {
  content: "";
  position: absolute;
  top: -60px; right: -80px;
  width: 480px; height: 480px;
  background: url('images/node-pattern.svg') no-repeat center / contain;
  opacity: 0.5;
  pointer-events: none;
}
.fork-hero::after {
  content: "";
  position: absolute;
  bottom: -120px; left: -100px;
  width: 360px; height: 360px;
  background: url('images/node-pattern.svg') no-repeat center / contain;
  opacity: 0.3;
  pointer-events: none;
}

.hero-intro {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-5);
  align-items: center;
  max-width: 980px;
  margin: 0 auto var(--sp-6);
  position: relative;
  z-index: 1;
}
.hero-photo {
  width: 240px;
  height: 300px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--sage) 0%, var(--clay) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 12px 36px rgba(15,47,85,0.18);
  border: 5px solid var(--white);
  overflow: hidden;
}
.hero-photo img {
  width: 100%; height: 100%;
  border-radius: 16px;
  object-fit: cover;
}
.hero-photo .placeholder-icon {
  width: 56px; height: 56px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.hero-intro-text h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: var(--sp-2);
  color: var(--ink-deep);
}
.hero-intro-text .lede {
  color: var(--ink);
  font-size: 1.08rem;
  max-width: 560px;
}

@media (max-width: 700px) {
  .hero-intro { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-photo { width: 200px; height: 250px; }
  .hero-intro-text .lede { max-width: 100%; }
}

.fork-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.fork-panel {
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 4px 20px rgba(15,47,85,0.06);
}
.fork-panel.settings { border-top: 4px solid var(--ink); }
.fork-panel.families { border-top: 4px solid var(--sage); }
.fork-panel:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,47,85,0.12); }

.fork-panel .path-pill { align-self: flex-start; }
.fork-panel h2 { margin-bottom: var(--sp-3); font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--ink-deep); }
.fork-panel p.fork-desc { color: var(--ink); margin-bottom: var(--sp-4); font-size: 1rem; opacity: 0.85; }
.fork-panel .btn { font-size: 0.96rem; padding: 0.9em 1.7em; }

@media (max-width: 820px) {
  .fork-split { grid-template-columns: 1fr; }
}

.fork-stat-row {
  display: flex;
  gap: var(--sp-4);
  margin: var(--sp-3) 0 var(--sp-4);
  flex-wrap: wrap;
}
.fork-stat { }
.fork-stat .num {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  display: block;
  color: var(--white);
}
.fork-stat .label {
  font-size: 0.78rem;
  color: rgba(246,242,234,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fork-panel .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 700px) {
  .fork-panel { padding: var(--sp-4) var(--sp-3); }
}

/* ============ Ledger (credibility stats) ============ */

.ledger {
  border-top: 1.5px solid var(--ink);
}
.ledger-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: var(--sp-3);
  align-items: baseline;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row .num {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--clay-deep);
  line-height: 1;
}
.ledger-row .num.icon-slot {
  display: flex;
  align-items: center;
  width: 42px;
  height: 42px;
}
.ledger-row .num.icon-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ledger-row .desc h4 { margin-bottom: 0.2em; }
.ledger-row .desc p { color: var(--ink); font-size: 0.96rem; }
.ledger-row .tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  opacity: 0.55;
  white-space: nowrap;
  align-self: center;
}

@media (max-width: 700px) {
  .ledger-row { grid-template-columns: 70px 1fr; }
  .ledger-row .tag { grid-column: 2; padding-top: 0.3em; }
  .ledger-row .num { font-size: 1.6rem; }
  .ledger-row .num.icon-slot { width: 32px; height: 32px; }
}

/* ============ Cards ============ */

.card-grid {
  display: grid;
  gap: var(--sp-3);
}
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  border-color: var(--clay);
  box-shadow: 0 6px 24px rgba(27,43,58,0.07);
}
.card .eyebrow { margin-bottom: var(--sp-1); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--ink); font-size: 0.97rem; }
.card .price-tag {
  display: inline-block;
  margin-top: var(--sp-2);
  font-family: var(--serif);
  font-weight: 600;
  color: var(--clay-deep);
}

.card.on-ink {
  background: rgba(255,255,255,0.04);
  border-color: rgba(246,242,234,0.14);
}
.card.on-ink:hover { border-color: var(--clay); }
.card.on-ink h3 { color: var(--white); }
.card.on-ink p { color: rgba(246,242,234,0.75); }

/* ============ AISK tier labels ============ */

.tier-pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2em 0.55em;
  border-radius: 4px;
  margin-bottom: 0.4em;
}
.tier-universal   { background: #E1F5EE; color: #085041; }
.tier-targeted    { background: #9FE1CB; color: #085041; }
.tier-targeted-plus { background: #5DCAA5; color: #fff; }
.tier-specialist  { background: #1D9E75; color: #fff; }

/* ============ Image tile with overlay (AISK topics) ============ */

.img-tile {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  text-decoration: none;
  border: 1px solid var(--line-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.img-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15,47,85,0.16);
}
.img-tile .tile-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14%;
}
.img-tile .tile-art svg {
  width: 100%;
  height: 100%;
}
.img-tile .tile-scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 62%;
  background: linear-gradient(to top, rgba(15,47,85,0.88) 0%, rgba(15,47,85,0.55) 45%, rgba(15,47,85,0) 100%);
  pointer-events: none;
}
.img-tile .tile-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--sp-3);
  color: var(--white);
}
.img-tile .tile-caption h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.3em;
  line-height: 1.25;
}
.img-tile .tile-caption p {
  color: rgba(246,242,234,0.82);
  font-size: 0.86rem;
  margin: 0;
}
.img-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 880px) {
  .img-tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .img-tile-grid { grid-template-columns: 1fr; }
}

/* ============ Footer ============ */

.site-footer {
  background: var(--ink-deep);
  color: rgba(246,242,234,0.7);
  padding: var(--sp-6) 0 var(--sp-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(246,242,234,0.12);
}
.footer-grid h4 {
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--sp-2);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6em; }
.footer-grid a:hover { color: var(--paper); }
.footer-brand .brand { color: var(--paper); margin-bottom: var(--sp-2); }
.footer-brand p { font-size: 0.92rem; max-width: 280px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-3);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

.distinction-note {
  background: rgba(246,242,234,0.05);
  border: 1px solid rgba(246,242,234,0.14);
  border-radius: var(--radius);
  padding: var(--sp-3);
  font-size: 0.86rem;
  line-height: 1.55;
  margin-top: var(--sp-4);
  color: rgba(246,242,234,0.65);
}
.distinction-note strong { color: rgba(246,242,234,0.9); }

/* ============ Generic page hero ============ */

.page-hero {
  padding: var(--sp-6) 0 var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.page-hero.dark { background: var(--ink); border-bottom: none; }
.page-hero .lede { max-width: 640px; }

/* About hero — lede left, large founder photo right */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-5);
  align-items: center;
  margin-top: var(--sp-2);
}
.about-hero-photo {
  width: 340px;
  height: 420px;
  border-radius: 20px;
}
@media (max-width: 880px) {
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-hero-photo { width: 260px; height: 320px; justify-self: center; }
}

/* Families page hero — photographic background with a warm paper→sage wash
   that keeps the ink text readable on the left and reveals the image right. */
.families-hero {
  position: relative;
  border-bottom: none;
  background-image:
    linear-gradient(100deg,
      rgba(247, 245, 240, 0.97) 0%,
      rgba(247, 245, 240, 0.90) 40%,
      rgba(143, 194, 180, 0.62) 78%,
      rgba(95, 166, 148, 0.55) 100%),
    url('../images/families-hero-bg.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
@media (max-width: 700px) {
  .families-hero {
    background-image:
      linear-gradient(175deg,
        rgba(247, 245, 240, 0.96) 0%,
        rgba(247, 245, 240, 0.88) 55%,
        rgba(143, 194, 180, 0.60) 100%),
      url('../images/families-hero-bg.jpg');
  }
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.6;
  margin-bottom: var(--sp-3);
}
.breadcrumb a:hover { text-decoration: underline; }

/* ============ Two-column layout ============ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.split.center { align-items: center; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: var(--sp-4); }
}

.aisk-cta-col { text-align: right; }
@media (max-width: 880px) {
  .aisk-cta-col { text-align: left; }
}

/* ============ Email-capture modal (AISK PDF downloads) ============ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,47,85,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  z-index: 1000;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: var(--sp-4);
  position: relative;
  box-shadow: 0 24px 60px rgba(15,47,85,0.3);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: var(--sp-2); right: var(--sp-2);
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.5;
  cursor: pointer;
  padding: 0.3em;
}
.modal-close:hover { opacity: 1; }

.modal-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay-deep);
  margin-bottom: 0.4em;
  display: block;
}
.modal-box h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5em;
  color: var(--ink-deep);
  padding-right: var(--sp-3);
}
.modal-box p.modal-desc {
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: var(--sp-3);
}
.modal-form label {
  font-size: 0.85rem;
}
.modal-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--sp-2);
}
.modal-fineprint {
  font-size: 0.78rem;
  color: var(--ink);
  opacity: 0.55;
  margin-top: var(--sp-2);
  text-align: center;
}
.modal-success {
  display: none;
  text-align: center;
  padding: var(--sp-2) 0;
}
.modal-success.show { display: block; }
.modal-success .success-icon {
  font-size: 2.2rem;
  margin-bottom: 0.3em;
}
.modal-form.hide { display: none; }

/* ============ Quote / pull ============ */

.pull-quote {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink-deep);
  border-left: 3px solid var(--clay);
  padding-left: var(--sp-3);
  margin: var(--sp-4) 0;
}

/* ============ Testimonial cards ============ */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}
@media (max-width: 880px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--clay);
  opacity: 0.35;
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-3);
}
.testimonial-card blockquote {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-deep);
  margin: 0 0 var(--sp-3);
  padding-top: var(--sp-3);
}
.testimonial-card .attribution {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-deep, var(--teal));
}
.testimonial-card .attribution span {
  display: block;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.65;
  margin-top: 0.2em;
}
.testimonial-placeholder {
  background: var(--paper-deep);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: var(--ink);
  opacity: 0.45;
  font-family: var(--sans);
  font-size: 0.9rem;
  text-align: center;
}

/* ============ Form ============ */

.form-grid {
  display: grid;
  gap: var(--sp-3);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 700px) { .form-row-2 { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4em;
  color: var(--ink-deep);
}
input, select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.97rem;
  padding: 0.6em 0.1em;
  border: none;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink-deep);
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--clay);
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
textarea { resize: vertical; min-height: 120px; border: 1.5px solid var(--line); padding: 0.7em 0.9em; border-radius: var(--radius); }

/* ============ Blog/resource list ============ */

.resource-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
.resource-card .chapter-tag {
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clay-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  .resource-card { grid-template-columns: 1fr; gap: var(--sp-1); }
}

/* ============ Utility ============ */

.center-text { text-align: center; }
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mb-0 { margin-bottom: 0; }
.tag-list { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Homepage "Two Registers" (redesign 1b)
   ============================================ */

/* -- 1. Split hero -- */
.split-hero {
  position: relative;
  padding: 0;
}
.split-hero .halves {
  display: flex;
  min-height: 440px;
}
.hero-half {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  color: var(--white);
}
/* Content block inside each half — keeps the eyebrow/h1/p/button aligned
   as one unit. The half's outer padding (below) does the horizontal
   positioning so both halves sit within the page's 1180px wrap column. */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.hero-half .node {
  position: absolute;
  background: url('../images/node-pattern.svg') no-repeat center / contain;
  pointer-events: none;
}
.hero-half .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}
.hero-half h1,
.hero-half h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* Visually hidden, available to screen readers & crawlers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hero-half p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  max-width: 400px;
}
.hero-half .btn {
  align-self: flex-start;
  margin-top: 8px;
  font-size: 15px;
  padding: 12px 24px;
}

/* Families (sage) half — outer (left) padding grows with viewport so
   content aligns with the page wrap on wide monitors. */
.hero-half.families {
  background: linear-gradient(160deg, var(--sage) 0%, var(--clay) 100%);
  padding: 72px 110px 56px max(48px, calc((100vw - var(--max-width)) / 2 + var(--sp-3)));
}
.hero-half.families .eyebrow { color: var(--sage-eyebrow, #0A3B2E); }
.hero-half.families p { color: rgba(255, 255, 255, 0.92); }
.hero-half.families .btn { background: var(--white); color: var(--sage-text); }
.hero-half.families .btn:hover { background: var(--paper-deep); }
.hero-half.families .node {
  top: -30px; left: -40px;
  width: 280px; height: 280px;
  opacity: 0.25;
  animation: heroDriftL 14s ease-in-out infinite alternate;
}

/* Settings (navy) half — outer (right) padding grows with viewport. */
.hero-half.settings {
  background: linear-gradient(200deg, var(--ink) 0%, var(--ink-deep) 100%);
  padding: 72px max(48px, calc((100vw - var(--max-width)) / 2 + var(--sp-3))) 56px 110px;
}
.hero-half.settings .eyebrow { color: var(--sage); }
.hero-half.settings p { color: rgba(246, 242, 234, 0.85); }
.hero-half.settings .btn { background: var(--clay); color: var(--white); }
.hero-half.settings .btn:hover { background: var(--clay-deep); }
.hero-half.settings .node {
  bottom: -40px; right: -50px;
  width: 300px; height: 300px;
  opacity: 0.2;
  filter: brightness(2);
  animation: heroDriftR 16s ease-in-out infinite alternate;
}

.hero-medallion {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--white);
  box-shadow: 0 8px 28px rgba(15, 47, 85, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-medallion img { height: 62px; width: auto; }

@keyframes heroDriftL {
  from { transform: translate(0, 0) rotate(0); }
  to   { transform: translate(-40px, 30px) rotate(6deg); }
}
@keyframes heroDriftR {
  from { transform: translate(0, 0) rotate(0); }
  to   { transform: translate(30px, -24px) rotate(-4deg); }
}

/* -- 2. Specialism marquee -- */
.spec-marquee {
  background: var(--ink-deep);
  border-top: 1px solid rgba(246, 242, 234, 0.12);
  padding: 20px 0;
  overflow: hidden;
}
.spec-marquee .marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.spec-marquee:hover .marquee-track { animation-play-state: paused; }
.spec-marquee .marquee-group {
  display: flex;
  gap: 48px;
  padding-right: 48px;
  white-space: nowrap;
  align-items: center;
  font-family: var(--serif);
  font-size: 19px;
  color: rgba(246, 242, 234, 0.75);
}
.spec-marquee .marquee-group .sep { color: var(--clay); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* -- 3. Audience tabs -- */
.audience-tabs {
  background: var(--paper);
  padding: 64px 0;
}
.audience-tabs h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 28px);
  color: var(--ink-deep);
  margin: 0 0 24px;
}
.seg-control {
  display: inline-flex;
  align-self: flex-start;
  border: 1.5px solid rgba(15, 47, 85, 0.2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}
.seg-control button {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.seg-control button.active {
  background: var(--ink);
  color: var(--paper);
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.audience-grid[hidden] { display: none; }
.audience-cta { margin-top: 20px; }
.audience-cta[hidden] { display: none; }
.audience-card {
  background: var(--white);
  border: 1px solid rgba(15, 47, 85, 0.14);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audience-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0;
  color: var(--ink-deep);
}
.audience-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
}
.audience-grid:not([hidden]) .audience-card { animation: fadeUp 0.4s ease both; }
.audience-grid .audience-card:nth-child(2) { animation-delay: 0.08s; }
.audience-grid .audience-card:nth-child(3) { animation-delay: 0.16s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -- 4. Count-up stats ledger -- */
.stats-ledger {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0;
}
.stats-ledger h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 26px);
  color: var(--white);
  margin: 0 0 28px;
}
.stats-ledger .stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stat-item {
  border-top: 2px solid var(--clay);
  padding-top: 18px;
}
.stat-item .stat-num {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 14px;
  color: rgba(246, 242, 234, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -- Responsive (site breakpoints 880 / 700) -- */
@media (max-width: 880px) {
  .split-hero .halves { flex-direction: column; min-height: 0; }
  .hero-half { flex: 0 0 auto; justify-content: flex-start; }
  .hero-half .hero-content { gap: 12px; max-width: 100%; }
  .hero-half.families { padding: 48px 40px; }
  .hero-half.settings { padding: 48px 40px; }
  .hero-medallion { display: none; }
  .audience-grid { grid-template-columns: 1fr; }
  .stats-ledger .stat-grid { grid-template-columns: 1fr; }
  .stat-item .stat-num { font-size: 2.4rem; }
}
@media (max-width: 700px) {
  .hero-half.families, .hero-half.settings { padding: 48px 24px; }
  .stat-item .stat-num { font-size: 1.9rem; }
}
