/* ═══════════════════════════════════════════
   HEADWATER CAPITAL — Shared Article Styles
   Used by insights articles + privacy.html
   ═══════════════════════════════════════════ */

/* ═════ PRELOADER OVERRIDE (article pages use simpler scale animation) ═════ */
.preloader {
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1);
}
.preloader-mark {
  opacity: 0;
  transform: scale(.85);
  animation: loaderIn .8s cubic-bezier(.22, 1, .36, 1) .3s forwards;
}
.preloader-mark path, .preloader-mark line {
  opacity: 1;
  transform: none;
  animation: none;
}
@keyframes loaderIn {
  to { opacity: 1; transform: scale(1); }
}

/* ═════ HERO BANNER (Short) ═════ */
.hero-banner {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--deep);
}
.hero-banner .hero-orb {
  position: absolute; z-index: 1; border-radius: 50%; filter: blur(120px); pointer-events: none;
  animation: orbFloat 20s ease-in-out infinite;
}
.hero-banner .hero-orb-1 { width: 600px; height: 600px; top: -30%; right: -5%; background: radial-gradient(circle, rgba(127,179,184,.08) 0%, transparent 70%); }
.hero-banner .hero-orb-2 { width: 400px; height: 400px; bottom: -20%; left: -5%; background: radial-gradient(circle, rgba(127,179,184,.05) 0%, transparent 70%); animation-delay: -7s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(.95); }
}

.hero-banner .w { position: relative; z-index: 2; width: 100%; }
.hero-banner-inner {
  max-width: 720px;
  padding: 160px 0 80px;
}
.hero-banner h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.1;
  color: var(--shore);
  letter-spacing: -.02em;
  margin-bottom: 24px;
  opacity: 0;
  animation: revealUp 1s .4s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-banner .hero-meta {
  font-size: 14px;
  font-weight: 400;
  color: rgba(244, 241, 235, .55);
  letter-spacing: .05em;
  opacity: 0;
  animation: revealUp .9s .65s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-banner .hero-meta span { margin-right: 24px; }
.hero-banner p {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 300;
  color: rgba(244, 241, 235, .75);
  line-height: 1.6;
  max-width: 560px;
  opacity: 0;
  animation: revealUp .9s .65s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═════ BACK LINK BAR ═════ */
.back-link-bar {
  padding: 24px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line-lt);
}
.back-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--teal);
  text-decoration: none;
  transition: color .3s;
}
.back-link:hover { color: var(--ink); }
.back-link svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  position: relative;
  top: -1px;
}

/* ═════ REVEAL ANIMATION ═════ */
.rv { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.rv.on { opacity: 1; transform: translateY(0); }

/* ═════ ARTICLE BODY ═════ */
.article-body {
  padding: 80px 0 100px;
  background: var(--white);
}
.article-content {
  max-width: 720px;
  margin: 0 auto;
}
.article-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  color: var(--ink);
  margin-top: 64px;
  margin-bottom: 24px;
  letter-spacing: -.01em;
}
.article-content h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.3;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
}
.article-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-70);
  margin-bottom: 24px;
}
.article-content p strong {
  color: var(--ink);
  font-weight: 600;
}
.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.article-content li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-70);
  margin-bottom: 12px;
}
.article-content a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(127,179,184,.3);
  transition: color .3s, border-color .3s;
}
.article-content a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ═════ FIGURE / CHART ═════ */
.figure-chart {
  margin: 40px 0;
  background: var(--white);
  border-radius: 8px;
  padding: 32px 24px 20px;
  border: 1px solid var(--line-lt);
}
.figure-chart .figure-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 4px;
}
.figure-chart .figure-title {
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.4;
}
.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}
.figure-source {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-30);
  margin-top: 14px;
  line-height: 1.5;
  border-top: 1px solid var(--line-lt);
  padding-top: 10px;
}
.figure-caption {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-50);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ═════ KEY TAKEAWAY BOX ═════ */
.key-takeaway {
  margin: 56px 0;
  padding: 40px 40px 36px;
  background: var(--parch);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
}
.key-takeaway h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 0;
  margin-bottom: 20px;
}
.key-takeaway ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.key-takeaway li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-70);
  margin-bottom: 16px;
}
.key-takeaway li:last-child { margin-bottom: 0; }
.key-takeaway li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

/* ═════ ARTICLE FIGURE (alternate naming) ═════ */
.article-figure {
  margin: 48px 0;
}
.article-figure-box {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line-lt);
  border-radius: 6px;
  padding: 32px 24px 20px;
  overflow-x: auto;
}
.article-figure-box .chart-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 20px;
}
.article-figure-box .chart-source {
  font-size: 11px;
  color: var(--ink-50);
  margin-top: 16px;
  line-height: 1.5;
  letter-spacing: .02em;
}
.article-figure-box svg text {
  font-family: 'Outfit', sans-serif;
}
.article-figure figcaption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-50);
}

/* ═════ KEY TAKEAWAYS CALLOUT (alternate naming) ═════ */
.key-takeaways {
  margin-top: 56px;
  padding: 40px;
  border: 1.5px solid var(--line-lt);
  border-radius: 6px;
  background: var(--parch);
}
.key-takeaways h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 24px;
}
.key-takeaways ul {
  list-style: none;
  padding: 0;
}
.key-takeaways li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-70);
  margin-bottom: 16px;
}
.key-takeaways li:last-child { margin-bottom: 0; }
.key-takeaways li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* ═════ ARTICLE DIVIDER ═════ */
.article-divider {
  width: 48px;
  height: 1px;
  background: var(--line-lt);
  margin: 48px 0;
  border: none;
}

/* ═════ CTA SECTION (article pages) ═════ */
.cta-section {
  padding: 140px 0;
  text-align: center;
  background: var(--deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.2;
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--white);
}
.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-btn-primary {
  display: inline-block;
  padding: 16px 48px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--teal);
  border-radius: 4px;
  text-decoration: none;
  transition: all .3s;
}
.cta-btn-primary:hover { background: var(--gold-hover); transform: translateY(-2px); }
.cta-btn-ghost {
  display: inline-block;
  padding: 15px 48px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--shore);
  background: transparent;
  border: 1px solid rgba(244, 241, 235, .3);
  border-radius: 4px;
  text-decoration: none;
  transition: all .3s;
}
.cta-btn-ghost:hover {
  border-color: rgba(244, 241, 235, .7);
  background: rgba(244, 241, 235, .05);
  transform: translateY(-2px);
}
.cta-fine {
  margin-top: 40px;
  font-size: 13px;
  color: var(--ink-50);
  max-width: 600px;
  margin-inline: auto;
}

/* ═════ ARTICLE RESPONSIVE ═════ */
@media (max-width: 1024px) {
  .hero-banner-inner { padding: 140px 0 60px; }
  .article-body { padding: 60px 0 80px; }
  .cta-section { padding: 100px 0; }
}
@media (max-width: 700px) {
  .hero-banner-inner { padding: 120px 0 48px; }
  .hero-banner h1 { font-size: clamp(28px, 6vw, 40px); }
  .article-body { padding: 48px 0 64px; }
  .article-content h2 { margin-top: 48px; }
  .article-content h3 { margin-top: 36px; }
  .key-takeaway { padding: 28px 24px 24px; }
  .figure-chart { padding: 24px 12px 16px; }
  .cta-btns { flex-direction: column; }
}
