/* =============================================================
   DOMINION TRUST CAPITAL — Editorial Luxury Design System
   Refined private-banking aesthetic, restored gold accent
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Forest greens — deeper, richer than original */
  --ink:           #0F1714;
  --forest:        #0A3D2E;
  --forest-deep:   #06281F;
  --forest-mid:    #1F5A45;
  --sage:          #7B9A88;
  --sage-soft:     #D7E0D9;

  /* Champagne gold — the restored accent (was incorrectly set to green) */
  --gold:          #C9A86A;
  --gold-soft:     #E8D9B0;
  --gold-deep:     #A8884A;

  /* Warm neutrals */
  --ivory:         #FAF7F0;
  --bone:          #F2EDE2;
  --paper:         #FFFFFF;
  --rule:          #C9C2AE;     /* hairline rule color — slightly darker for visibility */
  --rule-soft:     #E0DAC8;
  --mute:          #3D3A30;     /* darker brown-grey — improved legibility on ivory */
  --mute-soft:     #6E6859;
  --body:          #111512;     /* near-ink body text — high contrast for older eyes */

  /* Accent slot (overridable via tweaks) */
  --accent:        var(--gold);
  --accent-soft:   var(--gold-soft);
  --accent-deep:   var(--gold-deep);

  /* Type scale */
  --serif:  'Lora', 'Cardo', Georgia, serif;
  --sans:   'Inter', system-ui, -apple-system, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);

  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --ink:         #FAF7F0;
  --forest:      #FAF7F0;
  --paper:       #06281F;
  --ivory:       #0A3D2E;
  --bone:        #133E32;
  --rule:        rgba(250,247,240,0.18);
  --rule-soft:   rgba(250,247,240,0.08);
  --mute:        rgba(250,247,240,0.7);
  --mute-soft:   rgba(250,247,240,0.45);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--body);
  font-size: 19px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* =========== TYPOGRAPHY =========== */
.serif { font-family: var(--serif); }
.mono  { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7.5vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--forest);
}
.display em { font-style: italic; color: var(--accent-deep); font-weight: 500; }

.h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--forest);
}
.h1 em { font-style: italic; color: var(--accent-deep); font-weight: 500; }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--forest);
}
.h2 em { font-style: italic; color: var(--accent-deep); font-weight: 500; }

.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2vw, 32px);
  line-height: 1.25;
  color: var(--forest);
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(20px, 1.4vw, 23px);
  line-height: 1.55;
  color: var(--body);
  max-width: 62ch;
  font-weight: 400;
  text-wrap: pretty;
}

p { color: var(--body); text-wrap: pretty; }
p + p { margin-top: 1.1em; }

/* Headings get balanced wrapping */
.display, .h1, .h2, .h3,
h1, h2, h3, h4 { text-wrap: balance; }

.dark-section .display,
.dark-section .h1,
.dark-section .h2,
.dark-section .h3 { color: var(--ivory); }
.dark-section .display em,
.dark-section .h1 em,
.dark-section .h2 em { color: var(--gold-soft); }
.dark-section .lead { color: rgba(250,247,240,0.94); }
.dark-section p { color: rgba(250,247,240,0.88); }
.dark-section .eyebrow { color: var(--gold-soft); }
.dark-section .eyebrow::before { background: var(--gold); }

/* =========== LAYOUT =========== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section-sm { padding: clamp(56px, 6vw, 96px) 0; }

.bg-paper  { background: var(--paper); }
.bg-ivory  { background: var(--ivory); }
.bg-bone   { background: var(--bone); }
.bg-forest { background: var(--forest); }
.dark-section { background: var(--forest); color: var(--ivory); }
.dark-section .rule { background: rgba(250,247,240,0.15); }

.rule { height: 1px; background: var(--rule); width: 100%; }
.rule-gold { height: 1px; background: var(--accent); width: 56px; }

/* =========== HEADER =========== */
#site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
#site-header.scrolled { border-bottom-color: var(--rule); background: rgba(250,247,240,0.92); backdrop-filter: blur(12px); }
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 84px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.logo-img { height: 44px; width: auto; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 36px; }
@media (max-width: 1099px) { .desktop-nav { display: none; } }
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--accent-deep); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
@media (max-width: 767px) { .header-cta { display: none; } }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
@media (max-width: 1099px) { .hamburger { display: flex; } }
.hamburger span { display: block; width: 22px; height: 1px; background: var(--forest); transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}
@media (max-width: 1099px) { .mobile-menu { display: block; } }
.mobile-menu.open { max-height: 600px; }
.mobile-nav { padding: 16px var(--gutter); display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
  font-size: 18px;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--forest);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.mobile-nav-link.active { color: var(--accent-deep); }
.mobile-cta { padding: 20px var(--gutter); display: flex; flex-direction: column; gap: 12px; background: var(--bone); }

/* =========== BUTTONS =========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  text-transform: uppercase;
  border-radius: 0;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.btn-primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); }

.btn-gold { background: var(--accent); color: var(--forest-deep); border-color: var(--accent); }
.btn-gold:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--ivory); }

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

.btn-outline-white { border-color: rgba(250,247,240,0.4); color: var(--ivory); }
.btn-outline-white:hover { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }

.btn-ghost { color: var(--forest); padding: 14px 0; }
.btn-ghost::after { content: ''; position: absolute; bottom: 8px; left: 0; width: 100%; height: 1px; background: currentColor; opacity: 0.3; transition: opacity var(--transition); }
.btn-ghost:hover::after { opacity: 1; }

.btn-lg { padding: 18px 36px; font-size: 13px; }
.btn-sm { padding: 10px 20px; font-size: 11px; }
.btn-block { width: 100%; }

/* =========== IMAGE SLOT (placeholder treatment) =========== */
.imgslot {
  position: relative;
  background: var(--bone);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--mute-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.imgslot::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 14px,
    rgba(11,61,46,0.04) 14px,
    rgba(11,61,46,0.04) 15px
  );
  pointer-events: none;
}
.imgslot-label {
  position: relative; z-index: 1;
  padding: 8px 16px;
  background: var(--ivory);
  border: 1px solid var(--rule);
}

/* Round image slot variant (for portraits) */
.imgslot.round { border-radius: 50%; }
.imgslot.round .imgslot-label { font-size: 9px; padding: 6px 10px; }

/* =========== PORTRAIT SILHOUETTES (team cards) ===========
   Editorial abstract portraits used as placeholders until
   real headshots are uploaded. Stylized to look intentional,
   not unfinished. Four variants (.sv-a through .sv-d) cycled
   across cards so the grid reads as distinct people. */
.portrait-silhouette {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 130%, rgba(11,61,46,0.10) 0%, transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.portrait-silhouette::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--accent) 70%, transparent 100%);
  opacity: 0.6;
}
.portrait-silhouette svg {
  width: 78%;
  height: 92%;
  display: block;
  margin-bottom: -2%;
}
.portrait-silhouette svg .sil-fill {
  fill: var(--forest);
  opacity: 0.28;
}
.portrait-silhouette svg .sil-accent {
  fill: var(--accent-deep);
  opacity: 0.5;
}
/* Monogram — small italic serif initials, anchors abstract to a person */
.portrait-monogram {
  position: absolute;
  top: 18px; left: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
  z-index: 2;
  line-height: 1;
}

/* =========== EDITORIAL COVERS (insight cards) ===========
   Abstract topic motifs as cover-image placeholders. Same
   visual system as portrait silhouettes: cream/paper
   gradient + hairline gold accent + forest-green motif. */
.editorial-cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 130%, rgba(11,61,46,0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.editorial-cover::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--accent) 70%, transparent 100%);
  opacity: 0.55;
}
.editorial-cover > svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%);
  display: block;
}
/* Cover motif colors — forest + gold-deep, soft enough to feel editorial */
.editorial-cover svg .cov-line { stroke: var(--forest); opacity: 0.55; }
.editorial-cover svg .cov-line-soft { stroke: var(--forest); opacity: 0.32; }
.editorial-cover svg .cov-axis { stroke: var(--forest); opacity: 0.22; }
.editorial-cover svg .cov-fill { fill: var(--forest); opacity: 0.55; }
.editorial-cover svg .cov-fill-soft { fill: var(--forest); opacity: 0.22; }
.editorial-cover svg .cov-wedge { fill: var(--accent-deep); opacity: 0.42; }
.editorial-cover svg .cov-accent { fill: var(--accent-deep); opacity: 0.7; }
.editorial-cover svg .cov-accent-fill { fill: var(--accent-deep); opacity: 0.18; }
.editorial-cover svg .cov-dot { fill: var(--accent-deep); }
.editorial-cover svg .cov-dot-soft { stroke: var(--accent-deep); opacity: 0.5; }
.editorial-cover svg .cov-spread-marker { stroke: var(--accent-deep); opacity: 0.5; }
.editorial-cover svg .cov-q { fill: var(--forest); opacity: 0.6; }
.editorial-cover svg .cov-q-accent { fill: var(--accent-deep); opacity: 0.95; }
.editorial-cover svg .cov-label { fill: var(--forest); opacity: 0.35; }
/* Security motif — designed for dark forest backgrounds */
.editorial-cover-dark {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(250,247,240,0.03);
  border: 1px solid rgba(250,247,240,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.editorial-cover-dark::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  opacity: 0.4;
}
.editorial-cover-dark > svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 80%;
  display: block;
}
.editorial-cover-dark svg .sec-stroke { stroke: var(--gold-soft); opacity: 0.6; }
.editorial-cover-dark svg .sec-fill { fill: var(--gold); }
.editorial-cover-dark svg .sec-accent { fill: var(--gold); }
.editorial-cover-dark svg .sec-dot circle { fill: var(--gold-soft); opacity: 0.35; }

/* Small italic serif topic tag in top-left corner of each cover */
.cover-tag {
  position: absolute;
  top: 18px; left: 22px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  opacity: 0.85;
  z-index: 2;
}

/* =========== PAGE HERO (subpages) =========== */
.page-hero {
  background: var(--forest);
  color: var(--ivory);
  padding: clamp(96px, 14vw, 200px) 0 clamp(72px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse at center, rgba(201,168,106,0.10), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .eyebrow::before { background: var(--gold); }
.page-hero .h1 { color: var(--ivory); max-width: 18ch; }
.page-hero .h1 em { color: var(--gold-soft); }
.page-hero .lead { color: rgba(250,247,240,0.94); margin-top: 28px; max-width: 60ch; }

/* =========== CARDS =========== */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 40px);
  transition: all var(--transition);
  position: relative;
}
.card.hover-rise:hover { transform: translateY(-4px); border-color: var(--accent); }

.card-bordered {
  border: 1px solid var(--rule);
  padding: clamp(28px, 3vw, 40px);
  background: var(--paper);
}

/* Numeric stat block — central to luxury feel */
.stat {
  display: flex; flex-direction: column; gap: 8px;
}
.stat-value {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  line-height: 1;
  color: var(--forest);
  letter-spacing: -0.02em;
}
.stat-value em { font-style: italic; color: var(--accent-deep); font-weight: 400; }
.dark-section .stat-value { color: var(--gold-soft); }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.dark-section .stat-label { color: rgba(250,247,240,0.6); }

/* =========== FORMS =========== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
}
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* =========== FOOTER =========== */
.site-footer { background: var(--forest); color: var(--ivory); padding-top: 80px; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1.2fr;
  gap: 56px;
}
@media (max-width: 1023px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 639px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }

.footer-logo { height: 56px; width: auto; object-fit: contain; margin-bottom: 24px; }
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: rgba(250,247,240,0.9);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 32ch;
}
.footer-meta { font-size: 13px; color: rgba(250,247,240,0.55); line-height: 1.7; }
.footer-heading {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 20px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(250,247,240,0.7);
  margin-bottom: 12px;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px var(--gutter);
  border-top: 1px solid rgba(250,247,240,0.12);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(250,247,240,0.45); }
.footer-legal { display: flex; gap: 28px; }
.footer-legal a { font-size: 12px; color: rgba(250,247,240,0.45); transition: color var(--transition); }
.footer-legal a:hover { color: var(--gold); }

/* =========== SCROLL ANIMATIONS =========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========== UTILITIES =========== */
.center { text-align: center; }
.flex { display: flex; }
.between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-6 { gap: 24px; } .gap-8 { gap: 32px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Density tweak */
[data-density="loose"] .section { padding: clamp(96px, 12vw, 180px) 0; }
[data-density="tight"] .section { padding: clamp(56px, 6vw, 96px) 0; }

/* =========== TWEAKS PANEL (minimal styling only) =========== */
.tweaks-handle {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--forest);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 99;
  display: none;
}
.tweaks-handle.visible { display: inline-flex; align-items: center; gap: 8px; }

/* =========== NAV DROPDOWNS (new) =========== */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none; border: none;
  font: inherit; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; padding: 4px 0;
  letter-spacing: 0.01em; font-weight: 500; font-size: 13px;
  position: relative;
  transition: color var(--transition);
}
.nav-dropdown-toggle svg { transition: transform var(--transition); }
.nav-dropdown.open .nav-dropdown-toggle svg,
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-toggle::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width var(--transition);
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--accent-deep); }
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle.active::after,
.nav-dropdown.open .nav-dropdown-toggle::after { width: 100%; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 280px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
  box-shadow: 0 24px 80px -32px rgba(10,61,46,0.25);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-link {
  display: block;
  padding: 12px 14px;
  transition: background var(--transition);
  border-left: 2px solid transparent;
}
.dropdown-link:hover {
  background: var(--bone);
  border-left-color: var(--accent);
}
.dropdown-title {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 2px;
}
.dropdown-sub {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* =========== CURSOR GOLD DOT =========== */
.cursor-dot {
  position: absolute;
  top: 0; left: 0;
  width: 360px; height: 360px;
  margin-left: -180px; margin-top: -180px;
  background: radial-gradient(circle, rgba(201,168,106,0.18) 0%, rgba(201,168,106,0.04) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
  z-index: 0;
}
.dark-section .cursor-dot {
  background: radial-gradient(circle, rgba(232,217,176,0.22) 0%, rgba(201,168,106,0.06) 40%, transparent 70%);
}
.hero-v1 .cursor-dot { mix-blend-mode: multiply; }

/* =========== REGULATORY (footer) =========== */
.reg-badges { display: flex; gap: 8px; margin-top: 24px; }
.reg-badge {
  display: inline-flex; align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(201,168,106,0.4);
  padding: 6px 10px;
  white-space: nowrap;
}
.footer-regulatory {
  border-top: 1px solid rgba(250,247,240,0.12);
  padding: 32px 0;
}
.footer-regulatory .reg-text {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(250,247,240,0.5);
  margin-bottom: 12px;
  max-width: 90ch;
}
.footer-regulatory .reg-text a { color: rgba(250,247,240,0.7); text-decoration: underline; text-underline-offset: 3px; }
.footer-regulatory .reg-text a:hover { color: var(--gold); }

/* =========== TOOLS / CALCULATORS =========== */
.calc-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
}
@media (max-width: 1023px) {
  .calc-shell { grid-template-columns: 1fr; }
}
.calc-inputs {
  padding: clamp(32px, 4vw, 56px);
  background: var(--ivory);
  border-right: 1px solid var(--rule);
}
@media (max-width: 1023px) { .calc-inputs { border-right: none; border-bottom: 1px solid var(--rule); } }
.calc-output {
  padding: clamp(32px, 4vw, 56px);
  background: var(--paper);
  display: flex; flex-direction: column;
}

.calc-field { margin-bottom: 32px; }
.calc-field-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.calc-field-label {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.calc-field-value {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--forest);
  font-feature-settings: 'tnum';
}
.calc-field-value em { font-style: italic; color: var(--accent-deep); font-weight: 400; font-size: 0.7em; margin-left: 2px; }

/* Range slider — themed */
.calc-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 2px;
  background: var(--rule);
  outline: none;
  border-radius: 0;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  background: var(--paper);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  cursor: grab;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 0 0 4px rgba(201,168,106,0.1);
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.1); background: var(--accent); }
.calc-range::-webkit-slider-thumb:active { cursor: grabbing; }
.calc-range::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--paper);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  cursor: grab;
}

.calc-range-ticks {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute-soft);
  letter-spacing: 0.06em;
}

/* Numeric input variant for calculators */
.calc-number {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 22px;
  color: var(--forest);
  outline: none;
  transition: border-color var(--transition);
  font-feature-settings: 'tnum';
}
.calc-number:focus { border-bottom-color: var(--accent); }

/* Segmented control — for tabs in calculators */
.seg-control {
  display: inline-flex;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.seg-control button {
  background: transparent;
  border: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 10px 18px;
  cursor: pointer;
  transition: all var(--transition);
}
.seg-control button.active {
  background: var(--forest);
  color: var(--gold-soft);
}
.seg-control button:not(.active):hover { color: var(--forest); }

.calc-result-headline {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 500;
  line-height: 1;
  color: var(--forest);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-feature-settings: 'tnum';
}
.calc-result-headline em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 400;
  font-size: 0.55em;
  margin-left: 4px;
}
.calc-result-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 32px;
}
.calc-chart-wrap {
  flex: 1;
  position: relative;
  min-height: 280px;
  margin: 24px 0;
}
.calc-breakdown {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.calc-breakdown .stat-value { font-size: 28px; }
.calc-breakdown .stat-label { font-size: 10px; }

.calc-disclaimer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--mute-soft);
  line-height: 1.7;
}

/* =========== RISK QUIZ =========== */
.quiz-shell {
  max-width: 780px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(40px, 5vw, 72px);
  position: relative;
}
.quiz-progress {
  height: 2px;
  background: var(--rule);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.quiz-progress-bar {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: var(--accent);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: quizFadeIn 0.5s ease; }
@keyframes quizFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.quiz-question {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  color: var(--forest);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.quiz-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.quiz-option {
  text-align: left;
  background: var(--ivory);
  border: 1px solid var(--rule);
  padding: 20px 24px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  display: flex; align-items: center; gap: 16px;
  line-height: 1.5;
}
.quiz-option:hover {
  border-color: var(--accent);
  background: var(--paper);
  transform: translateX(4px);
}
.quiz-option.selected {
  border-color: var(--accent);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.quiz-option-letter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--accent-deep);
  width: 24px;
}
.quiz-controls { display: flex; justify-content: space-between; align-items: center; }
.quiz-counter {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.quiz-result-profile {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(48px, 6vw, 80px);
  color: var(--accent-deep);
  line-height: 1;
  margin: 24px 0;
}
.allocation-bar {
  display: flex; height: 32px;
  border: 1px solid var(--rule);
  overflow: hidden;
  margin: 32px 0 16px;
}
.allocation-bar > div {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px;
  color: var(--ivory);
  transition: flex-basis 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.alloc-equity { background: var(--forest); }
.alloc-fixed  { background: var(--accent-deep); }
.alloc-alts   { background: var(--sage); }
.alloc-cash   { background: var(--mute-soft); }

.allocation-legend { display: flex; gap: 20px; flex-wrap: wrap; }
.allocation-legend > div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mute); font-family: var(--mono); letter-spacing: 0.06em; }
.allocation-legend .swatch { width: 12px; height: 12px; }

/* =========== INSIGHTS / GLOSSARY / CASE STUDIES =========== */
.insight-card {
  display: block;
  border: 1px solid var(--rule);
  background: var(--paper);
  transition: all var(--transition);
}
.insight-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.insight-card .imgslot { aspect-ratio: 16/10; border: none; border-bottom: 1px solid var(--rule); }
.insight-card-body { padding: 32px; }
.insight-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
  display: block;
}
.insight-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.08em;
  margin-top: 16px;
}

.glossary-grid {
  border-top: 1px solid var(--rule);
}
.glossary-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  transition: background var(--transition);
}
.glossary-row:hover { background: var(--bone); padding-left: 16px; padding-right: 16px; }
@media (max-width: 767px) { .glossary-row { grid-template-columns: 1fr; gap: 12px; } }
.glossary-term {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--forest);
  font-weight: 500;
}
.glossary-term em { font-style: italic; color: var(--accent-deep); font-weight: 400; display: block; font-size: 13px; letter-spacing: 0.08em; margin-top: 4px; font-family: var(--mono); text-transform: uppercase; }
.glossary-def { color: var(--mute); line-height: 1.7; max-width: 60ch; }

.glossary-search {
  width: 100%;
  padding: 18px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 28px;
  color: var(--forest);
  outline: none;
}
.glossary-search:focus { border-bottom-color: var(--accent); }
.glossary-search::placeholder { color: var(--mute-soft); font-style: italic; }

/* =========== TIMELINE (history) =========== */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--rule);
}
.timeline-item {
  position: relative;
  padding-bottom: 64px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.timeline-item.visible { opacity: 1; transform: none; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -45px; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--accent);
  transition: all var(--transition);
}
.timeline-item.visible::before {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(201,168,106,0.18);
}
.timeline-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  color: var(--accent-deep);
  margin-bottom: 8px;
  line-height: 1;
}

/* =========== TEAM CARDS =========== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 1023px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: all var(--transition);
}
.team-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.team-card .imgslot { aspect-ratio: 1; border: none; border-bottom: 1px solid var(--rule); }
.team-card-body { padding: 28px; }
.team-name { font-family: var(--serif); font-size: 22px; color: var(--forest); font-weight: 500; }
.team-role {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-deep); margin-top: 6px; margin-bottom: 16px;
  display: block;
}
.team-bio { font-size: 14px; color: var(--mute); line-height: 1.65; }

/* =========== TOOLS LANDING CARDS =========== */
.tool-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column;
  height: 100%;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.tool-card:hover::before { transform: scaleX(1); }
.tool-card-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-deep);
}
.tool-card-icon svg { width: 22px; height: 22px; }
.tool-card h3 { margin-bottom: 12px; }
.tool-card p { font-size: 14px; line-height: 1.65; margin-bottom: 24px; flex: 1; }
.tool-card .tool-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap var(--transition);
}
.tool-card .tool-link:hover { gap: 14px; }

/* =========== DASHBOARD PREVIEW =========== */
.dash-preview {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.dash-preview .imgslot {
  position: absolute; inset: 0;
  border: none; aspect-ratio: auto;
}
.dash-preview-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,61,46,0.92), transparent);
  padding: 32px;
  color: var(--ivory);
}

/* =========== CASE STUDY CARD =========== */
.case-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  margin-bottom: 32px;
  transition: all var(--transition);
}
@media (max-width: 1023px) { .case-card { grid-template-columns: 1fr; } }
.case-card:hover { border-color: var(--accent); }
.case-card-meta {
  background: var(--forest);
  color: var(--ivory);
  padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 320px;
}
.case-card-meta .eyebrow { color: var(--gold-soft); }
.case-card-meta .eyebrow::before { background: var(--gold); }
.case-card-meta h3 { color: var(--ivory); margin: 16px 0; }
.case-card-body { padding: 40px; }
.case-card-body h4 {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 8px;
}
.case-card-body p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }

/* =========== SCROLL REVEAL EXTENSIONS =========== */
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal-right.visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal-scale.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .timeline-item { opacity: 1; transform: none; transition: none; }
  .cursor-dot { display: none; }
}

/* =========== MARK STYLES =========== */
mark.gold-mark {
  background: linear-gradient(180deg, transparent 62%, rgba(201,168,106,0.32) 62%);
  color: inherit;
  padding: 0 2px;
}

/* =========== "REAL VALUE PENDING" TAG (dev helper) =========== */
[data-real="pending"]::after {
  content: '◇';
  font-size: 8px;
  color: var(--accent);
  vertical-align: super;
  margin-left: 2px;
  opacity: 0.6;
}
[data-real="pending"]:hover::after {
  content: '◇ placeholder';
  font-size: 9px;
  background: var(--accent);
  color: var(--forest-deep);
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
  font-family: var(--mono);
  letter-spacing: 0.1em;
}

/* =============================================================
   AGE-FRIENDLY ACCESSIBILITY PASS
   Designed for clients ages 45-85. Larger type, higher contrast,
   bigger hit targets, underlined links, reduced visual noise.
   These rules sit last so they win the cascade.
   ============================================================= */

/* ---- HEADER & NAV: taller, larger labels, easier to scan ---- */
.header-inner { height: 96px; }
.logo-img { height: 50px; }
.nav-link, .nav-dropdown-toggle {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 8px 0;
}
.dropdown-title { font-size: 17px; }
.dropdown-sub { font-size: 12px; letter-spacing: 0.14em; }

/* ---- BUTTONS: WCAG-comfortable hit targets ---- */
.btn {
  font-size: 14px;
  padding: 16px 30px;
  letter-spacing: 0.06em;
  min-height: 50px;
}
.btn-lg { font-size: 15px; padding: 20px 38px; min-height: 58px; }
.btn-sm { font-size: 13px; padding: 13px 24px; min-height: 44px; }
.btn svg { width: 16px; height: 16px; }

/* ---- FORMS: larger inputs, easier to type into ---- */
.form-group label {
  font-size: 13px;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.form-group input,
.form-group textarea,
.form-group select {
  font-size: 18px;
  padding: 16px 0;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-bottom-width: 2px; }

/* ---- MONO MICRO-LABELS: bumped from 10-11 to 13px, less tracking ---- */
.eyebrow,
.stat-label,
.insight-tag,
.insight-meta,
.calc-field-label,
.calc-result-sub,
.calc-disclaimer,
.calc-range-ticks,
.quiz-counter,
.team-role,
.footer-heading,
.reg-badge,
.imgslot,
.dl-meta {
  font-size: 13px;
  letter-spacing: 0.14em;
}
.eyebrow { letter-spacing: 0.16em; }
.eyebrow::before { width: 32px; }

/* ---- IN-CARD BODY TEXT: real reading size ---- */
.insight-card-body p,
.case-card-body p,
.tool-card p,
.team-bio,
.pillar p,
.pillar li,
.principle p,
.feat-body p,
.modal-bio,
.glossary-def,
.tl-text,
.category li,
.quarter-card li,
.tier-features li,
.quiz-option,
.advisor-quote,
.timeline-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
}
.quarter-card li { color: rgba(250,247,240,0.88); }

/* ---- LONG-FORM PROSE: legal pages, glossary defs ---- */
.legal-section p,
.legal-section li {
  font-size: 18px;
  line-height: 1.95;
  color: var(--body);
}
.legal-section p + p,
.legal-section ul + p,
.legal-section p + ul { margin-top: 1em; }
.legal-section h2 {
  font-size: clamp(28px, 2.6vw, 34px);
  margin-top: 1.5em;
}
.legal-section h2:first-of-type { margin-top: 0; }
.legal-section a { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---- BODY-TEXT LINKS: always underlined for clarity ---- */
.prose a,
.glossary-def a,
.insight-card-body a,
.case-card-body a,
.modal-bio a,
p > a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--transition);
}
.prose a:hover, p > a:hover, .legal-section a:hover { color: var(--forest); }

/* ---- PROSE HELPER CLASS for any long-form article ---- */
.prose {
  max-width: 68ch;
  font-size: 19px;
  line-height: 1.95;
  color: var(--body);
}
.prose p + p { margin-top: 1.3em; }
.prose h2, .prose h3 { color: var(--forest); margin-top: 2em; margin-bottom: 0.6em; }
.prose strong { color: var(--forest); font-weight: 600; }
.prose ul { margin: 1.1em 0 1.1em 1.2em; }
.prose li { margin-bottom: 0.6em; font-size: 19px; line-height: 1.9; }

/* ---- HERO LEAD: high-contrast on dark green ---- */
.page-hero .lead {
  font-size: clamp(20px, 1.45vw, 24px);
  line-height: 1.55;
  color: rgba(250,247,240,0.96);
}

/* ---- TABLES: larger row text, more padding ---- */
.compare-table th,
.compare-table td,
.perf-table th,
.perf-table td {
  font-size: 16px;
  padding: 22px 24px;
}
.compare-table th, .perf-table th { font-size: 13px; letter-spacing: 0.14em; }

/* ---- FOOTER: bigger, clearer ---- */
.footer-link {
  font-size: 15px;
  margin-bottom: 14px;
  padding: 4px 0;
}
.footer-meta { font-size: 14px; line-height: 1.75; color: rgba(250,247,240,0.7); }
.footer-tagline { font-size: 22px; line-height: 1.45; }
.footer-heading { font-size: 13px; letter-spacing: 0.16em; margin-bottom: 22px; }
.footer-bottom p { font-size: 13px; color: rgba(250,247,240,0.55); }
.footer-legal a { font-size: 13px; color: rgba(250,247,240,0.55); }
.footer-regulatory .reg-text { font-size: 13px; line-height: 1.8; color: rgba(250,247,240,0.6); }

/* ---- CARD BORDERS: visible without being noisy ---- */
.card, .card-bordered,
.insight-card, .tool-card, .team-card,
.category, .pillar, .principle, .quarter-card,
.feature-card, .case-card {
  border-color: var(--rule);
}

/* ---- INTERACTIVE TARGETS: comfortable for trembling/imprecise pointers ---- */
.nav-link, .nav-dropdown-toggle, .dropdown-link,
.footer-link, .footer-legal a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}
.dropdown-link { padding: 14px 16px; }

.faq-btn { padding: 32px 0; }
.faq-q { font-size: clamp(22px, 2vw, 28px); }
.faq-answer-inner > p { font-size: 17px; line-height: 1.85; color: var(--body); }
.faq-num { font-size: 28px; }

/* ---- FOCUS VISIBLE: clear keyboard navigation
   Forest core + gold halo so the ring is unmistakable on both
   ivory and dark backgrounds. 3px is the minimum that reads
   cleanly for older eyes at typical viewing distance. ---- */
:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--gold-soft);
  border-radius: 2px;
}
.btn:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--gold-soft);
}
/* On dark sections, invert the ring so it stays visible
   against the deep-forest background. */
.dark-section :focus-visible,
.hero-v2 :focus-visible,
.contact-info-side :focus-visible,
.tier.popular :focus-visible {
  outline-color: var(--gold);
  box-shadow: 0 0 0 6px rgba(232, 217, 176, 0.35);
}

/* ---- BODY-TEXT LINKS: cast a wider net so older eyes
   never miss an inline link. Existing rule (above) covers
   .prose, .glossary-def, p > a, etc. — this extends to the
   common inline-styled paragraphs across the site and bumps
   the underline weight from 1px to 2px for clarity. ---- */
.team-bio a,
.lead a,
.tl-text a,
.value-card a,
.faq-answer a,
.principle a,
.pillar a,
.tier-features a,
.info-value a,
li > a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color var(--transition);
}
.team-bio a:hover,
.lead a:hover,
.tl-text a:hover,
.value-card a:hover,
.faq-answer a:hover,
.principle a:hover,
.pillar a:hover,
.tier-features a:hover,
.info-value a:hover,
li > a:hover {
  color: var(--forest);
}
/* Thicken the existing body-text underlines for consistency
   with the rule above — overrides line 1318. */
.prose a,
.glossary-def a,
.insight-card-body a,
.case-card-body a,
.modal-bio a,
p > a {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
/* Footer-regulatory paragraphs sit on dark forest — links there
   need to use gold-soft against the existing forest background
   and stay clearly underlined. */
.footer-regulatory .reg-text a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---- DISABLE THE CURSOR-FOLLOW GOLD DOT ----
   Moving page elements that track the mouse are distracting and
   disorienting for older users; remove entirely. */
.cursor-dot { display: none !important; }

/* ---- REVEAL ANIMATIONS: faster so motion doesn't outpace reading ---- */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  transition-duration: 0.5s;
}

/* ---- ITALIC RESTRAINT: keep italic em in headings, but tone down
   italic + serif at small body sizes (hard for older eyes) ---- */
p em, li em { font-style: italic; color: var(--forest); }

/* ---- MOBILE: don't shrink text too much ---- */
@media (max-width: 767px) {
  body { font-size: 17px; line-height: 1.7; }
  .lead { font-size: 19px; line-height: 1.55; }
  .legal-section p, .legal-section li { font-size: 17px; line-height: 1.85; }
  .page-hero .lead { font-size: 19px; }
  p, .lead { hyphens: auto; -webkit-hyphens: auto; }
}

/* ---- SMOOTH SCROLL: skip past sticky header ---- */
html { scroll-padding-top: 120px; }

/* ---- EYEBROW + HEADING RHYTHM ---- */
.eyebrow + h1, .eyebrow + .h1,
.eyebrow + h2, .eyebrow + .h2,
.eyebrow + .display { margin-top: 28px; }

/* ---- IMAGE SLOT LABELS: bigger so they're obvious ---- */
.imgslot { font-size: 13px; letter-spacing: 0.14em; }
.imgslot-label { padding: 10px 18px; font-size: 13px; }

/* ---- GLOSSARY: bigger term, easier scanning ---- */
.glossary-term { font-size: 30px; }
.glossary-term em { font-size: 13px; }
.glossary-search { font-size: 30px; padding: 22px 0; }

/* ---- CALCULATOR FIELDS: bigger, easier to read live values ---- */
.calc-field-value { font-size: 24px; }
.calc-field { margin-bottom: 36px; }
.calc-range { height: 4px; }
.calc-range::-webkit-slider-thumb { width: 26px; height: 26px; }
.calc-range::-moz-range-thumb { width: 26px; height: 26px; }
.calc-number { font-size: 24px; padding: 14px 0; }
.calc-result-headline { line-height: 1.05; }
.calc-disclaimer { font-size: 12px; line-height: 1.85; letter-spacing: 0.04em; }

/* ---- HEADER SHADOW SOFTER WHEN SCROLLED ---- */
#site-header.scrolled { box-shadow: 0 1px 0 var(--rule); }

/* ---- BETTER MOBILE NAV ---- */
.mobile-nav-link { font-size: 20px; padding: 16px 0; }
.mobile-cta .btn { font-size: 14px; padding: 18px 24px; }

/* ---- KEEP SERIF READABLE: tabular figures for numbers ---- */
.stat-value, .calc-field-value, .calc-result-headline,
.chart-value, .glossary-term, .perf-table td {
  font-variant-numeric: tabular-nums;
}

/* ---- REDUCED MOTION respect (already partially set) ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
