/* NashTech CSD Microsite — custom styles */

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Inter', system-ui, sans-serif; }
body { margin: 0; background: #fff; color: #0F0F0F; -webkit-font-smoothing: antialiased; }

/* ── Scroll-in animations ─────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].in-view { opacity: 1; transform: none; }

/* ── Hero fade-up (CSS-driven, no JS needed) ──────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.hero-item { animation: fadeUp 0.6s ease both; }

/* ── Hero red rule ────────────────────────────────────────────── */
@keyframes ruleExpand { from { width: 0; } to { width: 280px; } }
.hero-rule {
  display: block;
  height: 2px;
  background: #C8102E;
  margin-top: 1.5rem;
  margin-left: auto;
  animation: ruleExpand 0.8s 0.9s ease-out both;
  max-width: 280px;
}

/* ── Bar chart fills ──────────────────────────────────────────── */
.bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

/* ── Donut SVG ────────────────────────────────────────────────── */
.donut-track { fill: none; stroke: #E8E8E4; stroke-width: 10; }
.donut-arc {
  fill: none;
  stroke-width: 10;
  stroke-dasharray: 0 1000;
  transition: stroke-dasharray 1s cubic-bezier(0.33, 1, 0.68, 1);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* ── Theme card ───────────────────────────────────────────────── */
.theme-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

/* ── Persona filter mobile scroll ─────────────────────────────── */
.persona-pills {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.persona-pills::-webkit-scrollbar { display: none; }

/* ── Persona banner ───────────────────────────────────────────── */
#persona-banner { display: none; }

/* ── Explainer paragraphs ─────────────────────────────────────── */
.explainer p {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 15px;
  line-height: 1.75;
  color: #4A4A48;
  margin-bottom: 1rem;
}
.explainer p:last-child { margin-bottom: 0; }
.explainer.ready p { opacity: 1; transform: none; }
.explainer.ready p:nth-child(2) { transition-delay: 0.1s; }

/* ── Split thermometer bars ───────────────────────────────────── */
.thermo-left, .thermo-right {
  height: 100%;
  transition: width 0.7s 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

/* ── Focus ────────────────────────────────────────────────────── */
a:focus-visible, button:focus-visible {
  outline: 2px solid #C8102E;
  outline-offset: 2px;
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .hero-item { animation: none; opacity: 1; transform: none; }
  .hero-rule { animation: none; width: 280px; }
  .bar-fill { transition: none; }
  .donut-arc { transition: none; }
  .thermo-left, .thermo-right { transition: none; }
  .explainer p { opacity: 1; transform: none; transition: none; }
}
