:root {
  --bg-main: #fdfbf7;
  --bg-surface: #ffffff;
  --bg-warm: #f6f0e6;
  --bg-blush: #faf3eb;
  --bg-forest: #1f3a2e;
  --bg-forest-deep: #162a21;

  --text-primary: #1e2420;
  --text-secondary: #4c554f;
  --text-muted: #767f79;
  --text-on-dark: #f9f5ee;

  --accent-forest: #234234;
  --accent-forest-soft: #e7f0eb;
  --accent-terracotta: #c0743e;
  --accent-terracotta-soft: #faeee4;
  --accent-rose: #9b4b46;
  --accent-rose-soft: #fceceb;

  --border-soft: rgba(30, 36, 32, 0.08);
  --border-warm: rgba(192, 116, 62, 0.25);
  --border-strong: rgba(30, 36, 32, 0.15);

  --shadow-sm: 0 4px 14px rgba(31, 58, 46, 0.05);
  --shadow-md: 0 14px 34px -6px rgba(31, 58, 46, 0.08), 0 4px 12px -2px rgba(31, 58, 46, 0.04);
  --shadow-lg: 0 24px 52px -12px rgba(31, 58, 46, 0.14);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 9999px;

  --font-display: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.68;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(192, 116, 62, 0.08), transparent 42%),
    radial-gradient(circle at 85% 25%, rgba(35, 66, 52, 0.06), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, .serif {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

em.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-terracotta);
}

.warm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-forest);
  background: var(--accent-forest-soft);
  padding: 0.42rem 1rem;
  border-radius: var(--radius-pill);
}

.warm-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-terracotta);
}

/* ==========================================================================
   WELCOMING FLOATING NAVBAR
   ========================================================================== */
.nav-wrapper {
  position: sticky;
  top: 1.15rem;
  z-index: 100;
  padding: 0 1.5rem;
  margin-top: 1.15rem;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 0.65rem 0.9rem 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-crest {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-forest);
  color: #faeee4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  border: 1.5px solid var(--accent-terracotta);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
}

.nav-brand-loc {
  font-size: 0.78rem;
  color: var(--accent-terracotta);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.93rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-forest);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn-dark {
  background: var(--bg-forest);
  color: #fff;
  box-shadow: 0 8px 22px rgba(31, 58, 46, 0.2);
}

.btn-dark:hover {
  background: var(--bg-forest-deep);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent-forest);
  background: var(--bg-warm);
}

.btn-gold {
  background: var(--accent-terracotta);
  color: #fff;
  box-shadow: 0 6px 18px rgba(192, 116, 62, 0.28);
}

.btn-gold:hover {
  background: #a8612f;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.62rem 1.25rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   WARM STORYTELLING HERO
   ========================================================================== */
.hero {
  padding: 4.25rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.75rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin: 1.15rem 0 1.25rem;
  color: var(--text-primary);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 570px;
  line-height: 1.72;
  margin-bottom: 2.15rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 1.85rem;
  border-top: 1px solid var(--border-soft);
}

.metric-val {
  font-family: var(--font-display);
  font-size: 2.45rem;
  line-height: 1;
  color: var(--accent-forest);
  display: block;
}

.metric-lbl {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  display: block;
  font-weight: 600;
}

/* Hero Right: Warm Personal Story Card */
.hero-visual-stack {
  position: relative;
}

.archival-portrait-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.archival-photo-banner {
  height: 235px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #2c3e35;
  margin-bottom: 1.35rem;
}

.archival-photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.18) contrast(1.03);
}

.archival-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 42, 33, 0.84) 0%, rgba(22, 42, 33, 0.1) 65%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem;
  color: #fff;
}

.archival-photo-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f5cba2;
  margin-bottom: 0.15rem;
}

.kelly-story-card {
  background: var(--bg-blush);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-warm);
}

.kelly-quote-text {
  font-family: var(--font-display);
  font-size: 1.38rem;
  line-height: 1.38;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

.kelly-signature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(192, 116, 62, 0.2);
  padding-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.floating-record-chip {
  position: absolute;
  top: -16px;
  right: -14px;
  background: var(--bg-forest);
  color: #fff;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 203, 162, 0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 275px;
  z-index: 2;
}

.chip-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(192, 116, 62, 0.28);
  color: #f5cba2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   WHY PEOPLE LOVE WORKING WITH KELLY (HEART & APPRECIATION STRIP)
   ========================================================================== */
.heart-strip {
  padding: 3.5rem 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.heart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.heart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.heart-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.heart-card h3 {
  font-size: 1.48rem;
  color: var(--text-primary);
}

.heart-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.section-subtle {
  background: var(--bg-warm);
}

.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(2.3rem, 3.6vw, 3.25rem);
  margin-top: 0.65rem;
}

.section-desc {
  max-width: 500px;
  color: var(--text-secondary);
  font-size: 1.04rem;
}

/* ==========================================================================
   INTERACTIVE FAMILY TREE & WARM FAMILY STORYBOOK CARD
   ========================================================================== */
.surname-cloud-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.surname-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font-sans);
}

.surname-chip:hover,
.surname-chip.active {
  background: var(--accent-forest);
  color: #fff;
  border-color: var(--accent-forest);
}

.tree-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pill-tabs {
  display: inline-flex;
  background: var(--bg-surface);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 0.25rem;
}

.pill-tab {
  background: transparent;
  border: none;
  padding: 0.52rem 1.15rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-tab:hover {
  color: var(--text-primary);
}

.pill-tab.active {
  background: var(--bg-forest);
  color: #fff;
}

.tree-search-input {
  padding: 0.62rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  min-width: 250px;
  color: var(--text-primary);
}

.tree-search-input:focus {
  outline: none;
  border-color: var(--accent-forest);
}

.tree-workspace {
  display: grid;
  grid-template-columns: 1.22fr 0.88fr;
  gap: 2rem;
  align-items: start;
}

.tree-canvas-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 2.15rem 1.75rem;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.pedigree-diagram {
  display: flex;
  flex-direction: column;
  gap: 2.15rem;
  min-width: 520px;
}

.pedigree-level-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.level-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-forest);
  background: var(--accent-forest-soft);
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-pill);
}

.level-rule {
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.pedigree-nodes-row {
  display: grid;
  gap: 1rem;
  position: relative;
}

.pedigree-nodes-row.cols-1 {
  grid-template-columns: minmax(260px, 380px);
  justify-content: center;
}

.pedigree-nodes-row.cols-2,
.pedigree-nodes-row.cols-4 {
  grid-template-columns: repeat(2, 1fr);
}

.branch-connector-bridge {
  height: 26px;
  margin: -1.05rem auto;
  width: 52%;
  border-left: 2px solid var(--border-warm);
  border-right: 2px solid var(--border-warm);
  border-top: 2px solid var(--border-warm);
  border-radius: 10px 10px 0 0;
  position: relative;
}

.branch-connector-bridge::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background: var(--border-warm);
}

.tree-node {
  background: var(--bg-main);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.tree-node:hover {
  border-color: var(--accent-terracotta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tree-node.selected {
  background: var(--bg-blush);
  border-color: var(--accent-terracotta);
  box-shadow: 0 0 0 3px rgba(192, 116, 62, 0.18), var(--shadow-md);
}

.node-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 1px solid var(--border-warm);
  color: var(--accent-forest);
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tree-node.selected .node-avatar {
  background: var(--bg-forest);
  color: #faeee4;
  border-color: var(--accent-terracotta);
}

.node-content {
  flex: 1;
  min-width: 0;
}

.node-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.node-relation {
  font-size: 0.75rem;
  color: var(--accent-terracotta);
  font-weight: 700;
}

.node-badge-solved {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.14rem 0.55rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.node-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 0.15rem;
}

.node-dates {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.node-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Right Side: Warm Family Story Chapter Card */
.dossier-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: sticky;
  top: 5.75rem;
}

.dossier-header {
  background: var(--bg-forest);
  color: #fff;
  padding: 1.75rem;
  border-bottom: 3px solid var(--accent-terracotta);
}

.dossier-index-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.dossier-ref {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f5cba2;
}

.dossier-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.dossier-lifespan {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.dossier-content {
  padding: 1.75rem;
}

.dossier-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding: 1.05rem;
  background: var(--bg-blush);
  border-radius: var(--radius-md);
  margin-bottom: 1.4rem;
  border: 1px solid var(--border-warm);
}

.fact-cell {
  display: flex;
  flex-direction: column;
}

.fact-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fact-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.12rem;
}

.dossier-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-forest);
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.dossier-bio {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
  line-height: 1.65;
}

.proof-callout {
  background: var(--accent-terracotta-soft);
  border-left: 4px solid var(--accent-terracotta);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.93rem;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.citation-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
}

.citation-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-main);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
}

.citation-tag {
  font-size: 0.74rem;
  background: var(--accent-forest-soft);
  color: var(--accent-forest);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   RECORD SCANS & FAMILY TREASURES
   ========================================================================== */
.scans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.65rem;
}

.scan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.scan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.scan-preview-box {
  height: 215px;
  background: #23332b;
  position: relative;
  overflow: hidden;
}

.scan-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.18) contrast(1.04);
  transition: transform 0.35s ease;
}

.scan-card:hover .scan-preview-box img {
  transform: scale(1.04);
}

.scan-year-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(31, 58, 46, 0.9);
  color: #faeee4;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
}

.scan-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.scan-type {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  margin-bottom: 0.3rem;
}

.scan-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.scan-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   STORIES BROUGHT BACK TO LIGHT (MYSTERY BREAKTHROUGHS)
   ========================================================================== */
.case-files-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.case-file-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-file-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-file-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-soft);
}

.case-number {
  font-size: 0.8rem;
  color: var(--accent-terracotta);
  font-weight: 700;
}

.case-pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg-warm);
  color: var(--text-secondary);
}

.case-file-title {
  font-size: 1.65rem;
  margin-bottom: 1.25rem;
  line-height: 1.18;
}

.case-stage {
  margin-bottom: 1.15rem;
}

.stage-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-forest);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.stage-text {
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.clue-bullets {
  padding-left: 1.15rem;
  font-size: 0.91rem;
  color: var(--text-secondary);
}

.clue-bullets li {
  margin-bottom: 0.3rem;
}

.case-resolution {
  margin-top: auto;
  background: var(--bg-forest);
  color: #f9f5ee;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.91rem;
  line-height: 1.6;
}

.case-resolution-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f5cba2;
  display: block;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   HOW KELLY FINDS YOUR FAMILY'S STORY (BENTO CARDS)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bento-card:hover {
  border-color: var(--border-warm);
  transform: translateY(-2px);
}

.bento-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  margin-bottom: 0.85rem;
  display: inline-block;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.55rem;
  color: var(--text-primary);
}

.bento-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

/* ==========================================================================
   WARM SERVICES & GIFT PACKAGES + APPRECIATION WALL
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.tier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.tier-card.featured {
  background: var(--bg-forest);
  color: #fff;
  border-color: var(--accent-terracotta);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.tier-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg-warm);
  color: var(--accent-forest);
  margin-bottom: 1.1rem;
}

.tier-card.featured .tier-tag {
  background: rgba(192, 116, 62, 0.28);
  color: #f5cba2;
}

.tier-name {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.tier-card.featured .tier-name {
  color: #fff;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 3.1rem;
  line-height: 1;
  margin: 0.45rem 0 0.25rem;
}

.tier-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: block;
  font-weight: 600;
}

.tier-card.featured .tier-unit {
  color: rgba(255, 255, 255, 0.72);
}

.tier-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.62;
}

.tier-card.featured .tier-desc {
  color: rgba(255, 255, 255, 0.86);
}

.tier-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
  border-top: 1px solid var(--border-soft);
  padding-top: 1.25rem;
}

.tier-card.featured .tier-features {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.tier-features li {
  font-size: 0.91rem;
  padding: 0.48rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.tier-check {
  color: var(--accent-terracotta);
  font-weight: 700;
  flex-shrink: 0;
}

/* Appreciation Notes */
.testimonials-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.quote-card {
  background: var(--bg-blush);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.quote-body {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

.quote-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quote-ctx {
  font-size: 0.8rem;
  color: var(--accent-terracotta);
  font-weight: 600;
}

/* ==========================================================================
   WARM CONTACT & INQUIRY SECTION
   ========================================================================== */
.contact-studio {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-left {
  background: var(--bg-forest);
  color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-left h2 {
  color: #fff;
  font-size: 2.6rem;
  margin: 0.75rem 0 1rem;
}

.contact-left p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.68;
}

.contact-channels {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.channel-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.05rem 1.25rem;
  border-radius: var(--radius-md);
}

.channel-lbl {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f5cba2;
  display: block;
  margin-bottom: 0.2rem;
}

.channel-val {
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
}

.contact-right {
  padding: 3rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-group {
  margin-bottom: 1.15rem;
}

.field-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.field-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent-forest);
  background: #fff;
}

.inquiry-ready-panel {
  margin-top: 1.25rem;
  padding: 1.35rem;
  background: var(--accent-terracotta-soft);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  display: none;
}

/* Footer */
.footer {
  padding: 3rem 0;
  background: var(--bg-warm);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   "DO ANY OF THESE SOUND LIKE YOU?" & "HOW IT WORKS" (COMMON-SENSE SECTIONS)
   ========================================================================== */
.relatable-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.relatable-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.relatable-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.relatable-question {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--accent-forest);
}

.relatable-answer {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px dashed var(--border-warm);
  padding-top: 0.85rem;
}

.relatable-answer strong {
  color: var(--accent-terracotta);
}

.steps-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.step-card {
  background: var(--bg-blush);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  position: relative;
}

.step-badge {
  display: inline-block;
  background: var(--bg-forest);
  color: #faeee4;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .hero-grid,
  .heart-grid,
  .relatable-grid,
  .steps-strip,
  .tree-workspace,
  .case-files-grid,
  .bento-grid,
  .pricing-grid,
  .testimonials-row,
  .contact-studio,
  .scans-grid {
    grid-template-columns: 1fr;
  }

  .tier-card.featured {
    transform: none;
  }

  .dossier-card {
    position: static;
  }

  .nav-links {
    display: none;
  }

  .floating-record-chip {
    position: static;
    margin-bottom: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-metrics,
  .form-row-2,
  .dossier-facts-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}
