/* ============================================================================
   effects.css
   Subtle, research-floor motion. Fade-in only, opacity 0 to 1, <=300ms,
   one element per viewport at a time, wrapped in prefers-reduced-motion.
   No parallax. No marquee. No autoplay video. No persistent ambient motion.
   No custom cursor.
   ============================================================================ */

/* scroll-triggered reveal: opacity 0 to 1 only, no translation */
.reveal {
  opacity: 1; /* default visible — fail-safe if JS doesn't run */
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transition: opacity 280ms var(--ease-soft);
  }
  .reveal.visible { opacity: 1; }
}

/* tiny lift on cards (≤4px translation, ≤200ms) */
.card-lift { transition: transform var(--t-fast) var(--ease-quick), box-shadow var(--t-fast) var(--ease-quick), border-color var(--t-fast); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .card-lift:hover { transform: translateY(-2px); }
}

/* a quiet horizontal rule with center accent */
hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  height: 1px;
  margin: var(--s8) 0;
  position: relative;
}
hr.rule::after {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 28px; height: 5px;
  background: var(--terracotta);
  transform: translateX(-50%);
  border-radius: var(--r1);
}

/* a quiet stripe used as a section divider (navy/forest tonal) */
.stripe {
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0,
    var(--navy) 12%,
    var(--navy) 28%,
    transparent 32%,
    transparent 36%,
    var(--forest) 38%,
    var(--forest) 46%,
    transparent 52%,
    transparent 100%);
  opacity: 0.5;
  margin: var(--s8) 0;
}

/* progress bar (top of viewport) — narrow, navy */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--terracotta);
  z-index: var(--z-nav);
  width: 0%;
  transition: width 0.05s linear;
}

/* footer trust strip background tint */
.tint-paper-2 { background: var(--paper-2); }
.tint-navy {
  background: var(--navy-deep);
  color: var(--paper);
}
.tint-navy h1, .tint-navy h2, .tint-navy h3, .tint-navy h4, .tint-navy p { color: var(--paper); }
.tint-navy .label, .tint-navy .kicker { color: var(--gold); }
.tint-navy .eyebrow { color: var(--terracotta); }

.tint-terracotta-soft { background: var(--terracotta-soft); }
.tint-gold-soft { background: var(--gold-soft); }
.tint-forest-soft { background: var(--forest-soft); }

/* unobtrusive section divider (no parallax, no animation) */
.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s4);
  margin: var(--s8) 0 var(--s4);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.section-divider::before,
.section-divider::after {
  content: '';
  height: 1px;
  background: var(--rule);
  flex: 1;
  max-width: 90px;
}

/* SDVOSB seal (placeholder rendering) */
.sdvosb-seal {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: var(--forest-soft);
  border: 1px solid var(--forest);
  border-radius: var(--r-pill);
  color: var(--forest-text);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sdvosb-seal svg { width: 18px; height: 18px; }
.sdvosb-seal .star { color: var(--gold-text); }

/* veteran badge larger */
.veteran-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s5);
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--r1);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.veteran-badge .star { color: var(--gold); }

/* trust bar — under hero sub */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s5);
  font-family: var(--f-body);
  font-size: 0.9375rem;
  color: var(--ink-2);
  font-weight: 500;
}
.trust-strip > * { display: inline-flex; align-items: center; gap: var(--s2); }
.trust-strip .stars { color: var(--gold-text); letter-spacing: 0.05em; }
.trust-strip .sep { color: var(--rule-2); }

/* underlined link (used for secondary CTAs) */
.text-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--navy);
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.text-link:hover { color: var(--terracotta-2); text-decoration-color: var(--terracotta-2); }
.text-link::after { content: ' →'; }

/* photo frame for founder card */
.photo-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r2);
  padding: var(--s3);
  box-shadow: 0 1px 0 0 var(--paper-3);
}
.photo-frame img { display: block; border-radius: var(--r1); width: 100%; height: auto; }
.photo-frame .caption {
  position: absolute;
  bottom: var(--s4);
  left: var(--s4);
  right: var(--s4);
  background: rgba(8, 26, 45, 0.85);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  padding: var(--s2) var(--s3);
  border-radius: var(--r1);
  letter-spacing: 0.06em;
}

/* environmental portrait fallback (when no photo provided) */
.portrait-fallback {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--r2);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.portrait-fallback::before {
  /* gold + forest stripe across bottom */
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--gold) 0 33%, var(--forest) 33% 66%, var(--terracotta) 66% 100%);
}
.portrait-fallback .monogram {
  font-family: var(--f-display);
  color: var(--paper);
  font-size: clamp(4rem, 6vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.portrait-fallback .credit {
  position: absolute;
  bottom: var(--s5);
  left: var(--s5);
  right: var(--s5);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--paper);
  opacity: 0.7;
  letter-spacing: 0.08em;
  text-align: center;
}
