html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; overflow-x: hidden; }

/* Make form inputs larger on mobile for touch targets */
@media (max-width: 767px) {
  input, select, textarea { font-size: 16px !important; } /* Prevents iOS zoom on focus */
}

/* So position:sticky inside data-nav works — data-nav itself shouldn't form a containing block */
[data-nav] { display: contents; }

/* Display headlines — Geist 600, matches the reference */
.font-display { font-family: 'Geist', 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.03em; }
.font-script  { font-family: 'Geist', 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.03em; }

/* ===== Hero photo helper ===== */
.hero-photo { position: relative; isolation: isolate; }
.hero-photo > .hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
  z-index: -2;
}
.hero-photo > .hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,31,76,0.85) 0%, rgba(6,31,76,0.55) 35%, rgba(6,31,76,0.15) 65%, rgba(6,31,76,0) 100%),
    linear-gradient(180deg, rgba(6,31,76,0.25) 0%, rgba(6,31,76,0) 40%, rgba(6,31,76,0.45) 100%);
  z-index: -1;
}

.page-hero {
  background:
    radial-gradient(circle at 80% 40%, rgba(56,88,183,0.45), transparent 55%),
    linear-gradient(135deg, #01186c 0%, #01186c 60%, #0a2a64 100%);
}

/* ===== Marquee for partner logos ===== */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 4rem;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-shrink: 0;
  animation: marquee 60s linear infinite;
}
/* Every logo container is exactly the same size — uniform height + width */
.marquee-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 60px;
  flex-shrink: 0;
}
/* Every logo image is forced into the same bounding box */
.marquee-logo img {
  max-height: 40px !important;
  max-width: 160px !important;
  width: auto;
  height: auto;
  object-fit: contain;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Animations ===== */
.fade-up { animation: fadeUp 0.8s ease-out both; }
@keyframes fadeUp { from { opacity:0; transform: translateY(20px);} to { opacity:1; transform: translateY(0);} }

/* Ken Burns slow zoom for hero */
.kenburns { animation: kenburns 30s ease-out infinite alternate; will-change: transform; }
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* Scroll reveal — applied via IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.40s; }

/* Animated SVG underline under hero italic */
.underline-draw {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawline 1.8s ease-out 0.6s forwards;
}
@keyframes drawline { to { stroke-dashoffset: 0; } }

/* Hero ribbon — slim marquee at bottom of hero */
.ribbon-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
  will-change: transform;
}

/* FAQ accordion */
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon { transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item .faq-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}
.faq-item[open] .faq-body {
  max-height: 400px;
  opacity: 1;
}

/* Hover photo zoom helper */
.photo-zoom img { transition: transform 1.2s cubic-bezier(0.22,1,0.36,1); }
.photo-zoom:hover img { transform: scale(1.04); }

/* Process step number */
.step-num {
  font-family: 'Geist', 'Inter', sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Parallax pull-quote — fixed background scrolls slower than content */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
@media (hover: none) and (pointer: coarse) {
  /* Mobile fallback — fixed-attachment is buggy on touch devices */
  .parallax-bg { background-attachment: scroll; }
}

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ===== Stats ===== */
.stat-number,
.big-num {
  font-family: 'Geist', 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ===== Hover-accordion (expanding panels) — full width ===== */
.acc-row {
  display: flex;
  gap: 0;
  height: clamp(620px, 85vh, 820px);
  width: 100%;
}
.acc-panel {
  flex: 1 1 0;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: #E3F2FF;
}
.acc-panel > .acc-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.acc-panel.acc-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,64,0.05) 0%, rgba(10,22,64,0.85) 100%);
  z-index: -1;
}
.acc-panel.acc-solid-light { background: #E3F2FF; }
.acc-panel.acc-solid-pale  { background: #99CAFF; }
.acc-panel.acc-solid-sky   { background: #00baff; }
.acc-panel.acc-solid-deep  { background: #4f9fcd; }
.acc-panel.acc-solid-dark  { background: #01186c; }
.acc-panel:hover, .acc-panel:focus-within { flex: 3 1 0; }

.acc-inner {
  position: relative;
  height: 100%;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}
.acc-panel.acc-solid-light .acc-inner,
.acc-panel.acc-solid-sky   .acc-inner { color: #0a2a64; }

.acc-num {
  font-family: 'Geist', 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.55;
  transition: opacity 0.4s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.acc-panel:hover .acc-num,
.acc-panel:focus-within .acc-num { opacity: 0.7; transform: scale(0.85); transform-origin: top left; }
.acc-panel.acc-image .acc-num { opacity: 0.85; }

.acc-text {
  max-width: 360px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.acc-panel:hover .acc-text,
.acc-panel:focus-within .acc-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
  pointer-events: auto;
}
.acc-text .acc-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}
.acc-text h3 {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}
.acc-text p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 0.75rem;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .acc-row { flex-direction: column; height: auto; gap: 0.75rem; }
  .acc-panel { flex: none; min-height: 260px; }
  .acc-panel .acc-text { opacity: 1; transform: none; pointer-events: auto; }
  .acc-panel .acc-num { opacity: 0.7; transform: scale(0.85); transform-origin: top left; }
}

/* ===== Service "plumbing-style" dark cards ===== */
.svc-darkcard {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 2rem;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.svc-darkcard:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(93,196,255,0.35);
  transform: translateY(-3px);
}
.svc-darkcard .svc-icon {
  display: inline-flex;
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: #00baff;
  color: #0a2a64;
  align-items: center;
  justify-content: center;
}

/* ===== Review cards ===== */
.review-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(15,31,82,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(15,31,82,0.1);
}
.review-stars { color: #00baff; display: flex; gap: 2px; }

/* ===== Compound-growth chart ===== */
.compound-chart .chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.compound-chart.animate .chart-line { stroke-dashoffset: 0; }
.compound-chart.animate .chart-line.balanced { transition-delay: 0.25s; }
.compound-chart.animate .chart-line.equity { transition-delay: 0.5s; }
.compound-chart .chart-dot {
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.compound-chart.animate .chart-dot { opacity: 1; transform: scale(1); }
.compound-chart.animate .chart-dot.cash     { transition-delay: 2.3s; }
.compound-chart.animate .chart-dot.balanced { transition-delay: 2.55s; }
.compound-chart.animate .chart-dot.equity   { transition-delay: 2.8s; }

/* ===== Count-up stats ===== */
.countup { display: inline-block; }

/* ===== Floating dashboard-style cards (Xentrix hero treatment) ===== */
/* Excellence bubble float animation */
.bubble-float { animation: bubbleFloat 5s ease-in-out infinite; }
.bubble-float.delay-1 { animation-delay: 0.7s; }
.bubble-float.delay-2 { animation-delay: 1.4s; }
.bubble-float.delay-3 { animation-delay: 2.1s; }
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.float-card {
  background: white;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 20px 50px -10px rgba(10,22,64,0.35), 0 6px 16px -6px rgba(10,22,64,0.18);
  animation: floatY 6s ease-in-out infinite;
}
.float-card.delay { animation-delay: 1.5s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Mini sparkline */
.sparkline path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: sparkDraw 2.2s ease-out 0.5s forwards;
}
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }

/* ===== Portfolio Performance bar chart (composite) ===== */
.perf-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 50px -10px rgba(10,22,64,0.25), 0 6px 16px -6px rgba(10,22,64,0.12);
}
.perf-bar-track {
  height: 0.5rem;
  background: #eef2fb;
  border-radius: 9999px;
  overflow: hidden;
}
.perf-bar-fill {
  height: 100%;
  border-radius: 9999px;
  width: 0%;
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.perf-card.animate .perf-bar-fill { width: var(--bar-w, 0%); }
.perf-card.animate .perf-bar-fill[data-delay="1"] { transition-delay: 0.15s; }
.perf-card.animate .perf-bar-fill[data-delay="2"] { transition-delay: 0.3s; }
.perf-card.animate .perf-bar-fill[data-delay="3"] { transition-delay: 0.45s; }

/* Why Deacon icon-card (dark accent on light bg) */
.feat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.75rem;
  border: 1px solid #dbe3f5;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feat-card:hover {
  border-color: #00baff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(15,31,82,0.15);
}
.feat-card .feat-icon {
  display: inline-flex;
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.75rem;
  background: #01186c;
  color: #00baff;
  align-items: center;
  justify-content: center;
}

/* ===== Donut chart (asset allocation) ===== */
.donut {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 320px;
  border-radius: 50%;
  background: conic-gradient(
    #00baff    0%   50%,
    #00baff   50%   75%,
    #b8c8eb   75%   90%,
    #4f9fcd   90%  100%
  );
  transform: rotate(-90deg);
  opacity: 0;
  transform-origin: center;
  transition: opacity 0.8s ease-out, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.donut.animate { opacity: 1; transform: rotate(0deg); }
.donut::after {
  content: '';
  position: absolute;
  inset: 22%;
  background: white;
  border-radius: 50%;
}
.donut-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ===== WhatsApp floating button — clean circle with pulse ring ===== */
.wa-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: white;
  border-radius: 9999px;
  transition: transform 0.2s;
}
.wa-fab::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 9999px;
  border: 2px solid #25D366;
  opacity: 0.4;
  animation: waPulse 2.2s ease-in-out infinite;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab .wa-icon { width: 1.5rem; height: 1.5rem; }
.wa-fab .wa-label { display: none; }
@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%      { transform: scale(1.18); opacity: 0; }
}

/* ===== Editorial prose for investments page ===== */
.prose-fin p { margin-bottom: 1rem; line-height: 1.75; color: #475569; }
.prose-fin h3 { font-family: 'Inter', system-ui, sans-serif; font-weight: 800; font-size: 2rem; color: #01186c; margin-top: 3rem; margin-bottom: 1rem; letter-spacing: -0.035em; }
.prose-fin ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.prose-fin ul li { color: #475569; margin-bottom: 0.5rem; line-height: 1.7; }
.prose-fin strong { color: #01186c; font-weight: 600; }
.prose-fin .callout { background: #eef2fb; border-left: 3px solid #00baff; padding: 1rem 1.25rem; border-radius: 0.5rem; margin: 1.5rem 0; color: #4f9fcd; font-size: 0.95rem; }

/* Logo dim for partner strip */
.logo-dim { opacity: 0.85; transition: opacity 0.3s; }
.logo-dim:hover { opacity: 1; }

/* ===== Hex pattern background (Easilon-style) ===== */
.hex-bg {
  background-color: #EAEEF7;
  background-image:
    linear-gradient(60deg, rgba(116,181,218,0.08) 25%, transparent 25.5%, transparent 75%, rgba(116,181,218,0.08) 75%, rgba(116,181,218,0.08)),
    linear-gradient(120deg, rgba(116,181,218,0.08) 25%, transparent 25.5%, transparent 75%, rgba(116,181,218,0.08) 75%, rgba(116,181,218,0.08));
  background-size: 32px 56px;
  background-position: 0 0, 16px 28px;
}

/* ===== Progress bars (Easilon-style) ===== */
.progress-row { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.progress-row .progress-label { display: flex; justify-content: space-between; font-size: 0.875rem; }
.progress-row .progress-label .name { color: #061f4c; font-weight: 600; }
.progress-row .progress-label .pct { color: #00baff; font-weight: 700; }
.progress-track { height: 6px; background: #EAEEF7; border-radius: 9999px; overflow: hidden; position: relative; }
.progress-fill { height: 100%; background: #00baff; border-radius: 9999px; width: 0; transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1); }
.progress-row.in-view .progress-fill { width: var(--w, 0%); }

/* ===== Tab switcher (Easilon-style) ===== */
.tab-switcher { display: inline-flex; padding: 4px; border-radius: 9999px; background: white; ring: 1px solid #cfd7eb; box-shadow: 0 1px 2px rgba(15,31,82,0.04); }
.tab-switcher button {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #061f4c;
  border-radius: 9999px;
  transition: background 0.2s, color 0.2s;
}
.tab-switcher button.active {
  background: #00baff;
  color: white;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Chart slider */
.cs-wrap { position: relative; }
.cs-viewport { overflow: hidden; }
.cs-track { display: flex; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.cs-slide { flex: 0 0 100%; min-width: 0; }
.cs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 9999px;
  background: #00baff;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(25,118,210,0.35);
  z-index: 10;
  transition: background 0.25s, transform 0.25s;
}
.cs-arrow:hover { background: #0542a0; transform: translateY(-50%) scale(1.05); }
.cs-arrow.prev { left: -24px; }
.cs-arrow.next { right: -24px; }
@media (max-width: 768px) {
  .cs-arrow { display: none; }
}
.cs-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2rem; }
.cs-dot {
  width: 36px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
  transition: background 0.25s, width 0.25s;
}
.cs-dot.active { background: #00baff; width: 56px; }

/* Play button badge */
.play-badge {
  width: 56px; height: 56px;
  border-radius: 9999px;
  background: #00baff;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(25,118,210,0.4);
  position: relative;
}
.play-badge::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 9999px;
  border: 2px solid #00baff;
  opacity: 0.3;
  animation: playPulse 2s ease-in-out infinite;
}
@keyframes playPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* Chapter card (kept) */
.chapter-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  isolation: isolate;
}
.chapter-card img {
  transition: transform 1.2s cubic-bezier(0.25, 0.4, 0.2, 1);
  width: 100%; height: 100%; object-fit: cover;
}
.chapter-card:hover img { transform: scale(1.05); }
.chapter-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,64,0) 35%, rgba(10,22,64,0.88) 100%);
  z-index: 1;
}
.chapter-card > .chapter-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  z-index: 2;
  color: white;
}
