/* ==========================================================================
   ADC Finance — Design system
   Fluid, physical motion translated for the web (see skill: apple-design)
   ========================================================================== */

:root {
  --blue-900: #071c33;
  --blue-800: #0b2c52;
  --blue-700: #10417c;
  --blue-600: #1657a6;
  --blue-500: #2472cf;
  --blue-400: #4e93e0;
  --blue-100: #e8f2fc;
  --blue-50:  #f4f9fe;

  --gray-900: #171a1f;
  --gray-700: #454b54;
  --gray-600: #636b76;
  --gray-500: #8791a0;
  --gray-300: #d7dce3;
  --gray-200: #e8ebf0;
  --gray-100: #f4f6f9;
  --white: #ffffff;

  --accent: #16b899;
  --accent-2: #ffb703;

  --ink: var(--gray-900);
  --muted: var(--gray-600);
  --surface: var(--white);
  --surface-2: var(--gray-100);
  --border: var(--gray-200);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Inter', system-ui, serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(7, 28, 51, .06), 0 1px 1px rgba(7, 28, 51, .04);
  --shadow-md: 0 12px 32px -12px rgba(7, 28, 51, .18);
  --shadow-lg: 0 24px 64px -20px rgba(7, 28, 51, .28);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 180ms;
  --t-med: 380ms;

  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-contrast: more) {
  :root { --border: var(--gray-500); --muted: var(--gray-900); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--blue-700); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--gray-900); }
p { margin: 0 0 1em; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .9em 1.6em; border-radius: var(--radius-full);
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(.96); transition-duration: 90ms; }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-600); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--blue-700); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--gray-300); color: var(--gray-900); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-700); }
.btn-small { padding: .6em 1.2em; font-size: .85rem; }

/* ---- Header (Bootstrap navbar, restyled) -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease-out), background var(--t-med) var(--ease-out);
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 1px 0 rgba(7,28,51,.02); }
.site-header .navbar { padding-block: .9rem; }

.brand { display: flex; align-items: center; margin-right: 1rem; }
.brand-logo { height: 34px; width: auto; transition: transform var(--t-fast) var(--ease-spring); }
.brand:active .brand-logo { transform: scale(.95); }

.navbar-nav .nav-link {
  font-weight: 500; font-size: .95rem; color: var(--gray-700) !important;
  padding: .5em .2em; margin-inline: .6rem; position: relative;
}
.navbar-nav .nav-link::after {
  content: ''; position: absolute; left: .2em; right: 100%; bottom: 0; height: 2px;
  background: var(--blue-600); border-radius: 2px;
  transition: right var(--t-med) var(--ease-out);
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--gray-900) !important; }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { right: .2em; }

.dropdown-menu {
  border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  padding: .6rem; margin-top: .6rem;
}
.dropdown-item { padding: .7em .9em; border-radius: var(--radius-sm); font-size: .9rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--blue-50); color: var(--blue-700); }

.lang-switch { display: flex; align-items: center; gap: .4em; font-size: .82rem; font-weight: 600; color: var(--gray-500); }
.lang-switch a.active { color: var(--blue-700); }

.navbar-toggler { border: none; padding: .4rem; box-shadow: none !important; }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  .navbar-collapse { padding-top: .5rem; padding-bottom: 1rem; }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-nav .nav-link.active { color: var(--blue-700) !important; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem);
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 70%);
}
.hero-mesh {
  position: absolute; inset: -20% -10% auto -10%; height: 130%; z-index: 0;
  background:
    radial-gradient(45% 55% at 15% 20%, rgba(36, 114, 207, .16), transparent 60%),
    radial-gradient(40% 50% at 85% 10%, rgba(22, 184, 153, .14), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(16, 65, 124, .08), transparent 60%);
  filter: blur(10px);
}
.hero-grid { position: relative; z-index: 1; }

.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.025em; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-stats { display: flex; gap: clamp(1.5rem, 4vw, 2.75rem); margin-top: 3rem; flex-wrap: wrap; }
.stat .num { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; color: var(--blue-700); letter-spacing: -0.02em; }
.stat .label { font-size: .82rem; color: var(--muted); }

.hero-visual { position: relative; }
.chart-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); padding: 1.75rem; position: relative; overflow: hidden;
}
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-card .chart-caption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; }
.chart-card .chart-caption strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--gray-900); }
.float-chip {
  position: absolute; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: .85rem 1.1rem; display: flex; align-items: center; gap: .6rem; border: 1px solid var(--border);
  animation: float 6s var(--ease-out) infinite;
}
.float-chip.chip-2 { animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } }
.float-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.float-chip strong { font-size: .85rem; }
.float-chip span { display: block; font-size: .72rem; color: var(--muted); }

/* ---- Reveal on scroll ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { transition-delay: calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- Section shells ------------------------------------------------------ */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 640px; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

/* ---- Service cards (laid out with Bootstrap .row/.col-*) --------------- */
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med);
}
.service-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) translateZ(0); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400)); color: #fff;
  transition: transform var(--t-med) var(--ease-spring);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-card h3 { font-size: 1.2rem; margin-bottom: .4em; }
.service-card p { font-size: .93rem; margin-bottom: 0; flex: 1; }
.service-card .card-link { margin-top: .5rem; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .88rem; color: var(--blue-700); }
.service-card .card-link svg { transition: transform var(--t-fast) var(--ease-out); }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* ---- Value / feature list ---------------------------------------------- */
.check-list { display: grid; gap: .85rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .96rem; color: var(--gray-700); }
.check-list .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: .1em;
  background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center;
}

.pillar-block h3 { font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; }
.pillar-block h3 .idx {
  font-family: var(--font-display); font-size: .85rem; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue-700); color: #fff; flex: none;
}

/* ---- Stats band -------------------------------------------------------- */
.stats-band {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.25rem);
  position: relative; overflow: hidden;
}
.stats-band::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, rgba(255,255,255,.14), transparent 60%);
}
.stats-band .stat { position: relative; z-index: 1; }
.stats-band .stat .num { color: #fff; }
.stats-band .stat .label { color: rgba(255,255,255,.75); }

/* ---- Team (laid out with Bootstrap .row/.col-*) -------------------------- */
.team-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.avatar-ring {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-600), var(--accent));
  color: #fff; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
  margin-bottom: 1.25rem; box-shadow: var(--shadow-md);
}
.team-card h3 { font-size: 1.15rem; margin-bottom: .15em; }
.team-card .role { color: var(--blue-600); font-weight: 600; font-size: .85rem; margin-bottom: .9em; display: block; }
.team-card a.li-link { display: inline-flex; align-items: center; gap: .5em; margin-top: .75em; font-weight: 600; font-size: .85rem; color: var(--blue-700); }

/* ---- Partners / logos strip --------------------------------------------- */
.partner-strip { display: flex; flex-wrap: wrap; gap: 1rem; }
.partner-chip {
  border: 1px solid var(--border); border-radius: var(--radius-full); padding: .7em 1.3em;
  font-weight: 600; font-size: .85rem; color: var(--gray-700); background: #fff;
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.partner-chip:hover { border-color: var(--blue-500); color: var(--blue-700); transform: translateY(-2px); }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-600) 60%, var(--accent) 140%);
  color: #fff; text-align: center; padding: clamp(3rem, 7vw, 5rem) 1.5rem;
}
.cta-inner { max-width: 620px; margin-inline: auto; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 1.75rem; }

/* ---- Footer (laid out with Bootstrap .row/.col-*) ------------------------ */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,.72); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer-brand img { filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-brand p { font-size: .85rem; }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background var(--t-fast); }
.footer-social a:hover { background: var(--blue-600); }
.footer-nav h3, .footer-contact h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; font-family: var(--font-body); }
.footer-nav li, .footer-contact p { margin-bottom: .6em; font-size: .9rem; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-region { font-size: .88rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem;
}

/* ---- Contact form (laid out with Bootstrap .row/.col-*) ----------------- */
.contact-info-card { background: linear-gradient(160deg, var(--blue-800), var(--blue-600)); color: #fff; border-radius: var(--radius-lg); padding: 2.5rem; }
.contact-info-card h3 { color: #fff; }
.contact-info-card .row { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-info-card .row:first-of-type { border-top: none; }
.contact-info-card .row svg { flex: none; margin-top: .2em; }
.contact-info-card a, .contact-info-card p { color: rgba(255,255,255,.88); margin: 0; }

.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .5em; color: var(--gray-700); }
.field input, .field textarea {
  width: 100%; padding: .9em 1em; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font: inherit; background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.form-status { padding: 1em 1.2em; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1.3rem; }
.form-status.success { background: #e8f9f2; color: #0b7d5f; }
.form-status.error { background: #fdeceb; color: #b3261e; }

/* ---- Misc page bits ------------------------------------------------------ */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem); background: linear-gradient(180deg, var(--blue-50), #fff); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 18ch; }
.page-hero .lead { max-width: 56ch; font-size: 1.08rem; }
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: 1.25rem; display: flex; gap: .5em; align-items: center; }
.breadcrumbs a:hover { color: var(--blue-700); }

.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { display: grid; gap: .6rem; margin: 1em 0; }
.prose ul li { position: relative; padding-left: 1.4em; color: var(--gray-700); }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.legal-page { padding: 4rem 0; }
.legal-page h2 { font-size: 1.25rem; margin-top: 2em; }

::selection { background: var(--blue-100); color: var(--blue-800); }

/* ==========================================================================
   Extra motion layer — drifting backgrounds, tilt, charts, rings, draws
   ========================================================================== */

/* ---- Drifting mesh on every page-hero (pure CSS, no markup needed) ------ */
.page-hero, .hero { position: relative; isolation: isolate; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: -30% -10% auto -10%; height: 160%; z-index: -1;
  background:
    radial-gradient(38% 45% at 12% 25%, rgba(36, 114, 207, .14), transparent 62%),
    radial-gradient(34% 42% at 88% 15%, rgba(22, 184, 153, .12), transparent 62%),
    radial-gradient(50% 55% at 50% 100%, rgba(16, 65, 124, .07), transparent 62%);
  filter: blur(10px);
  animation: driftMesh 22s ease-in-out infinite alternate;
}
@keyframes driftMesh {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(1.5%, -2%, 0) scale(1.04); }
  100% { transform: translate3d(-1.5%, 1.5%, 0) scale(1.02); }
}
.hero-mesh { animation: driftMesh 22s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  .page-hero::before, .hero-mesh { animation: none; }
}

/* ---- Tilt cards (JS sets --rx/--ry on pointer move) ---------------------- */
.service-card, .team-card, .chart-card, .contact-info-card {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 420ms var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med);
  will-change: transform;
}
.service-card.tilting, .team-card.tilting, .chart-card.tilting, .contact-info-card.tilting {
  transition: transform 60ms linear;
}
@media (prefers-reduced-motion: reduce) {
  .service-card, .team-card, .chart-card, .contact-info-card { transform: none !important; transition: none; }
}
@media (pointer: coarse) {
  .service-card, .team-card, .chart-card, .contact-info-card { transform: none; }
}

/* ---- Service icon: idle micro-float once revealed ------------------------ */
.reveal.in-view .service-icon { animation: iconFloat 4.5s ease-in-out .3s infinite; }
@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.in-view .service-icon { animation: none; }
}

/* ---- Pillar index badge: pop in with a spring feel ------------------------ */
.pillar-block .idx { transform: scale(0); transition: transform 480ms var(--ease-spring); }
.reveal.in-view .pillar-block .idx,
.reveal-stagger.in-view .pillar-block .idx { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .pillar-block .idx { transform: none; }
}

/* ---- Check-list ticks: staggered pop --------------------------------------- */
.check-list li { opacity: 0; transform: translateX(-10px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.reveal.in-view .check-list li { opacity: 1; transform: translateX(0); }
.check-list li:nth-child(1) { transition-delay: 40ms; }
.check-list li:nth-child(2) { transition-delay: 120ms; }
.check-list li:nth-child(3) { transition-delay: 200ms; }
.check-list li:nth-child(4) { transition-delay: 280ms; }
@media (prefers-reduced-motion: reduce) {
  .check-list li { opacity: 1; transform: none; }
}

/* ---- Chart line draw-in (JS sets dasharray/dashoffset, animates via class) */
.draw-path { transition: stroke-dashoffset 1.6s var(--ease-out); }
.draw-fill { opacity: 0; transition: opacity 900ms var(--ease-out) .5s; }
.in-view .draw-fill { opacity: 1; }

/* ---- Mini animated bar chart ------------------------------------------------ */
.bar-chart { display: flex; align-items: flex-end; gap: .6rem; height: 140px; padding-top: 1rem; }
.bar-chart .bar {
  flex: 1; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  height: 6%; transition: height 1.1s var(--ease-spring);
  position: relative;
}
.bar-chart .bar:nth-child(1) { transition-delay: 0ms; }
.bar-chart .bar:nth-child(2) { transition-delay: 90ms; }
.bar-chart .bar:nth-child(3) { transition-delay: 180ms; }
.bar-chart .bar:nth-child(4) { transition-delay: 270ms; }
.bar-chart .bar:nth-child(5) { transition-delay: 360ms; }
.bar-chart .bar:last-child { background: linear-gradient(180deg, var(--accent), #0e8a72); }
.bar-chart.in-view .bar { height: var(--h); }
.bar-chart-labels { display: flex; gap: .6rem; margin-top: .6rem; }
.bar-chart-labels span { flex: 1; text-align: center; font-size: .7rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .bar-chart .bar { transition: none; height: var(--h); }
}

/* ---- Progress rings (JS animates stroke-dashoffset + counts the number) -- */
.stat-ring { display: flex; align-items: center; gap: 1rem; }
.stat-ring svg { flex: none; transform: rotate(-90deg); }
.stat-ring .ring-track { fill: none; stroke: var(--gray-200); stroke-width: 8; }
.stat-ring .ring-fill {
  fill: none; stroke: var(--blue-600); stroke-width: 8; stroke-linecap: round;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}
.stat-ring.accent .ring-fill { stroke: var(--accent); }
.stat-ring .ring-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--gray-900); }
.stat-ring .ring-label { font-size: .82rem; color: var(--muted); max-width: 16ch; }

/* ---- Stats band: slow moving glow ------------------------------------------ */
.stats-band::after { animation: glowDrift 9s ease-in-out infinite alternate; }
@keyframes glowDrift {
  0% { opacity: .7; transform: translate(0, 0); }
  100% { opacity: 1; transform: translate(-4%, 3%); }
}
@media (prefers-reduced-motion: reduce) {
  .stats-band::after { animation: none; }
}

/* ---- Section eyebrow dash: gentle grow-in ---------------------------------- */
.eyebrow::before { transition: width 500ms var(--ease-out) .1s; width: 0; }
.reveal.in-view .eyebrow::before, .in-view .eyebrow::before { width: 22px; }
@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { width: 22px !important; }
}

/* ---- CTA band: soft breathing gradient -------------------------------------- */
.cta-band { background-size: 160% 160%; animation: ctaBreathe 10s ease-in-out infinite; }
@keyframes ctaBreathe {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band { animation: none; }
}

/* ==========================================================================
   Page-hero illustrations — map, orbit, dashboard, workflow, contact, growth
   ========================================================================== */

/* ---- Map / connection visual (nodes + animated dashed line) -------------- */
.map-visual { padding: 1.5rem 1.25rem 1.25rem; }
.map-visual svg { width: 100%; height: auto; display: block; }
.map-node { transform-box: fill-box; transform-origin: center; }
.map-node .node-pulse { animation: nodePulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.map-node.delay .node-pulse { animation-delay: 1.3s; }
@keyframes nodePulse {
  0%   { transform: scale(.6); opacity: .55; }
  100% { transform: scale(2.6); opacity: 0; }
}
.map-line {
  stroke-dasharray: 6 7;
  animation: dashFlow 1.6s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -26; } }
.map-plane { animation: planeMove 3.6s ease-in-out infinite; offset-rotate: auto; }
@keyframes planeMove {
  0%, 100% { offset-distance: 0%; }
  50% { offset-distance: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .map-node .node-pulse, .map-line, .map-plane { animation: none; }
}

/* ---- Orbit visual (hub + two rotating rings) ------------------------------ */
.orbit-visual { position: relative; height: 220px; display: grid; place-items: center; margin: .5rem 0 .75rem; }
.orbit-hub {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); color: #fff;
  box-shadow: var(--shadow-md); position: relative; z-index: 2;
}
.orbit-ring {
  position: absolute; border: 1.5px dashed var(--border); border-radius: 50%;
  animation: orbitSpin linear infinite;
}
.orbit-ring-1 { width: 156px; height: 156px; animation-duration: 16s; }
.orbit-ring-2 { width: 214px; height: 214px; animation-duration: 24s; animation-direction: reverse; }
.orbit-dot {
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); display: grid; place-items: center; font-size: .68rem; font-weight: 700;
  color: var(--blue-700); animation: orbitCounter linear infinite;
}
.orbit-ring-1 .orbit-dot { animation-duration: 16s; }
.orbit-ring-2 .orbit-dot { animation-duration: 24s; animation-direction: reverse; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitCounter { to { transform: translateX(-50%) rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
  .orbit-ring, .orbit-dot { animation: none; }
}

/* ---- Workflow / pipeline visual (connected steps) ------------------------- */
.flow-track { display: flex; align-items: flex-start; position: relative; padding: .5rem 0 .25rem; }
.flow-line {
  position: absolute; top: 27px; left: 27px; right: 27px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-400) 0 6px, transparent 6px 12px);
  background-size: 24px 2px; animation: flowMove 1.1s linear infinite;
}
@keyframes flowMove { to { background-position: -24px 0; } }
.flow-step { text-align: center; flex: 1; position: relative; z-index: 1; }
.flow-icon {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400)); color: #fff;
  box-shadow: var(--shadow-sm); margin-inline: auto; transition: transform var(--t-med) var(--ease-spring);
}
.reveal.in-view .flow-icon { animation: iconFloat 4.5s ease-in-out .2s infinite; }
.flow-step .flow-label { display: block; margin-top: .65rem; font-size: .74rem; font-weight: 600; color: var(--gray-700); line-height: 1.3; }
@media (prefers-reduced-motion: reduce) {
  .flow-line { animation: none; }
}

/* ---- Contact pulse visual -------------------------------------------------- */
.contact-pulse-wrap { position: relative; width: 100px; height: 100px; margin-inline: auto; display: grid; place-items: center; }
.contact-pulse-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent);
  animation: nodePulse 2.4s ease-out infinite;
}
.contact-pulse-ring.d2 { animation-delay: .8s; }
.contact-pulse-icon {
  width: 74px; height: 74px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-md);
  position: relative; z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .contact-pulse-ring { animation: none; }
}

/* ---- Hero visual card centering helpers ----------------------------------- */
.chart-card.visual-center { text-align: center; }
.chart-card .visual-caption { margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.chart-card .visual-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--gray-900); margin-top: .25rem; }

/* ---- Error page mark (404 / 500) ------------------------------------------ */
.error-mark {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1.75rem;
  display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); color: #fff;
  box-shadow: var(--shadow-lg);
}
.error-mark::before, .error-mark::after {
  content: ''; position: absolute; inset: -14px; border-radius: 50%;
  border: 1.5px dashed var(--border); animation: orbitSpin 18s linear infinite;
}
.error-mark::after { inset: -32px; animation-duration: 26s; animation-direction: reverse; }
.error-mark svg { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .error-mark::before, .error-mark::after { animation: none; }
}

/* ---- Card sparklines (mini trend line at the foot of a service card) ----- */
.card-spark { width: 100%; height: 30px; display: block; margin-top: .5rem; }

/* ---- Monthly review + profit chart illustrations (no figures) ----------- */
.review-scene, .profit-scene { width: 100%; height: auto; display: block; overflow: visible; }

.review-doc { transform-box: fill-box; transform-origin: center; }
.in-view .review-doc { animation: iconFloat 5s ease-in-out 1.2s infinite; }
.review-scene .doc-line { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform .8s var(--ease-out) .3s; }
.review-scene .doc-line.l2 { transition-delay: .45s; }
.in-view .review-scene .doc-line { transform: scaleX(1); }
.review-scene .doc-bar, .profit-scene .profit-bar {
  transform-box: fill-box; transform-origin: bottom center; transform: scaleY(0);
  transition: transform .9s var(--ease-out) calc(.3s + var(--d, 0s));
}
.in-view .review-scene .doc-bar, .in-view .profit-scene .profit-bar { transform: scaleY(1); }
.review-scene .ring-progress { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease-out) .5s; }
.in-view .review-scene .ring-progress { stroke-dashoffset: 8; }
.review-scene .ring-check { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease-out) 1.8s; }
.in-view .review-scene .ring-check { stroke-dashoffset: 0; }
.review-scene .month-dot { fill: var(--gray-200); transform-box: fill-box; transform-origin: center; }
.in-view .review-scene .month-dot { animation: monthLight 4.8s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
@keyframes monthLight {
  0%, 100% { fill: var(--gray-200); transform: scale(1); }
  8% { fill: var(--accent); transform: scale(1.45); }
  30% { fill: var(--blue-500); transform: scale(1); }
  60% { fill: var(--gray-200); }
}

.profit-scene .profit-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-out) 1s; }
.in-view .profit-scene .profit-line { stroke-dashoffset: 0; }
.profit-scene .profit-arrow, .profit-scene .profit-dot, .profit-scene .profit-pulse { opacity: 0; transition: opacity .4s ease 2.3s; }
.in-view .profit-scene .profit-arrow, .in-view .profit-scene .profit-dot, .in-view .profit-scene .profit-pulse { opacity: 1; }
.profit-scene .profit-pulse { transform-box: fill-box; transform-origin: center; }
.in-view .profit-scene .profit-pulse { animation: nodePulse 2.4s ease-out 2.4s infinite; }
.in-view .profit-scene .profit-bar.peak { animation: peakGlow 3s ease-in-out 2s infinite; }
@keyframes peakGlow { 0%, 100% { opacity: 1; } 50% { opacity: .75; } }
.profit-scene .profit-badge { transform-box: fill-box; transform-origin: center; }
.in-view .profit-scene .profit-badge { animation: iconFloat 4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .review-scene *, .profit-scene * { animation: none !important; transition: none !important; }
  .review-scene .doc-line, .review-scene .doc-bar, .profit-scene .profit-bar { transform: none; }
  .review-scene .ring-progress { stroke-dashoffset: 8; }
  .review-scene .ring-check, .profit-scene .profit-line { stroke-dashoffset: 0; }
  .profit-scene .profit-arrow, .profit-scene .profit-dot { opacity: 1; }
  .profit-scene .profit-pulse { opacity: 0; }
}

/* ---- Inline stat strip (icon-free row of numbers, e.g. in a form section) */
.stat-strip { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 2.5rem); }
.stat-strip .stat .num { color: var(--blue-700); }

/* ==========================================================================
   Process steps, pull-quotes, value cards — more graphics across the site
   ========================================================================== */

/* ---- Full-width process/timeline (no card, bigger icons) ----------------- */
.process-track {
  display: flex; align-items: flex-start; justify-content: space-between;
  position: relative; gap: 1rem; flex-wrap: wrap;
}
.process-track .flow-line { top: 33px; left: 33px; right: 33px; }
.process-track .process-step { flex: 1 1 140px; text-align: center; position: relative; z-index: 1; }
.process-track .flow-icon { width: 66px; height: 66px; font-weight: 700; font-family: var(--font-display); font-size: 1.2rem; }
.process-track .process-step .flow-label { margin-top: .85rem; font-size: .88rem; }
.process-track .process-step .process-desc { font-size: .8rem; color: var(--muted); margin-top: .3rem; max-width: 20ch; margin-inline: auto; }
@media (max-width: 767.98px) {
  .process-track { flex-direction: column; align-items: stretch; gap: 2rem; }
  .process-track .flow-line { display: none; }
  .process-track .process-step { text-align: left; display: flex; gap: 1rem; align-items: flex-start; }
  .process-track .flow-icon { margin-inline: 0; flex: none; }
  .process-track .process-step .process-desc { margin-inline: 0; }
}

/* ---- Pull quote ------------------------------------------------------------ */
.pull-quote {
  position: relative; max-width: 46ch; padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}
.pull-quote p {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--gray-900); font-weight: 500; line-height: 1.35; margin: 0;
}
.pull-quote .quote-mark {
  font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--blue-200, var(--border));
  position: absolute; left: -.15em; top: -1.15rem; z-index: -1;
}
.pull-quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: .85rem; font-weight: 600; color: var(--blue-600); }

/* ---- Value cards (compact icon + label, reuse service-icon look) --------- */
.value-card { text-align: center; padding: 1.75rem 1.25rem; }
.value-card .service-icon { margin-inline: auto; }
.value-card h3 { font-size: 1.02rem; margin-top: 1rem; margin-bottom: .35em; }
.value-card p { font-size: .86rem; margin: 0; }

/* ---- FAQ accordion (native <details>, styled) ----------------------------- */
.faq-list { display: grid; gap: .85rem; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0; overflow: hidden; transition: border-color var(--t-fast) var(--ease-out);
}
.faq-item[open] { border-color: var(--blue-500); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.4rem; font-weight: 600; color: var(--gray-900); font-size: .98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-chevron { flex: none; color: var(--blue-600); transition: transform var(--t-med) var(--ease-spring); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { padding: 0 1.4rem 1.25rem; margin: 0; font-size: .92rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .faq-item .faq-chevron { transition: none; }
}
