/* NEXA Marketing — site styles
   Calm, harmonious, Apple-inspired: white + soft lavender surfaces, one violet accent,
   navy ink. Charts use "emphasis": gray = before, violet = after/NEXA. */

:root {
  --accent: #6e56cf;          /* brand violet: marks, links, buttons */
  --accent-2: #8f7ae6;        /* lighter step of the same hue */
  --accent-soft: #efebfc;     /* tint for chips, tracks */
  --accent-wash: #f7f5fe;     /* section tint */
  --before: #a9a9bc;          /* de-emphasis gray for "before" marks */
  --ink: #1b1d2e;
  --body: #474a5c;
  --muted: #6c6f82;
  --line: #e7e5f0;
  --canvas: #fbfbfd;
  --white: #ffffff;
  --good: #1f8a5b;            /* status: improvement (always with an icon + label) */
  --good-soft: #e6f5ee;
  --grad: linear-gradient(100deg, #6e56cf 0%, #8f7ae6 100%);
  --purple: var(--accent);
  --purple-soft: var(--accent-soft);
  --radius: 26px;
  --radius-sm: 16px;
  --soft: 0 1px 0 rgba(27,29,46,.04), 0 18px 44px -30px rgba(60,40,140,.28);
  --lift: 0 34px 60px -32px rgba(80,60,170,.38);
  --max: 1200px;
  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--body); background: var(--canvas); line-height: 1.55; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.07; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section--white { background: var(--white); }
.section--tint, .section--navy, .section--dark { background: var(--accent-wash); }
.eyebrow { display: inline-block; font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; letter-spacing: .01em; }
h1 em, h2 em, .grad { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); max-width: 680px; color: var(--muted); line-height: 1.5; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.dot { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-family: var(--font); font-weight: 600; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn--yellow, .btn--grad, .btn--purple { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -12px rgba(110,86,207,.7); }
.btn--yellow:hover, .btn--grad:hover, .btn--purple:hover { background: #5d46c0; }
.btn--ghost, .btn--outline { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover, .btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow::after { content: " ›"; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); z-index: 100; pointer-events: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,251,253,.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(27,29,46,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; background: var(--grad); flex: none; -webkit-mask: url(../img/nexa-mark.svg) center / contain no-repeat; mask: url(../img/nexa-mark.svg) center / contain no-repeat; }
.logo span:last-child { font-family: var(--font-head); font-weight: 500; letter-spacing: .1em; font-size: 1rem; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); opacity: .78; text-decoration: none; font-size: .9rem; font-weight: 500; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]:not(.btn) { color: var(--accent); }
.nav .btn { padding: 10px 18px; font-size: .85rem; opacity: 1; color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 20px; background: rgba(251,251,253,.97); backdrop-filter: blur(20px); padding: 24px 16px 30px; display: none; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { font-size: 1.15rem; }
}

/* Hero */
.hero, .page-head { position: relative; overflow: hidden; background: linear-gradient(180deg, #f5f2fe 0%, var(--canvas) 100%); }
.hero::before, .page-head::before { content: ""; position: absolute; width: 900px; height: 900px; right: -280px; top: -420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(143,122,230,.22), transparent 72%); pointer-events: none; animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-60px, 40px, 0) scale(1.06); } }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: clamp(56px, 8vw, 104px) 0; position: relative; z-index: 1; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 30px 0 36px; align-items: center; }
.hero-proof { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof > div { background: var(--white); border-radius: 18px; padding: 14px 18px; box-shadow: var(--soft); min-width: 120px; }
.hero-proof strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.hero-proof span { font-size: .82rem; color: var(--muted); }
.hero-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: var(--ink); font-weight: 500; }
.hero-list li { padding-left: 32px; position: relative; }
.hero-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .72rem; display: grid; place-items: center; font-weight: 800; }
.sq { display: none; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }
.page-head { padding: clamp(70px, 9vw, 124px) 0 clamp(50px, 7vw, 86px); text-align: center; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: 980px; margin-inline: auto; }
.page-head .lead { margin-inline: auto; }

/* Before / after slider */
.ba { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: #e9e7f2; box-shadow: 0 40px 80px -40px rgba(60,40,140,.45), 0 0 0 1px rgba(27,29,46,.05); user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff; transform: translateX(-1.5px); pointer-events: none; }
.ba-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; letter-spacing: 2px; box-shadow: 0 8px 20px rgba(27,29,46,.3); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; pointer-events: none; }
.ba-label--before { left: 14px; background: rgba(27,29,46,.65); color: #fff; }
.ba-label--after { right: 14px; background: rgba(255,255,255,.94); color: var(--accent); }
.ba-caption { font-size: .85rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* Clients marquee */
.clients { padding: 24px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; gap: 28px; }
.clients small { flex: none; padding-left: max(16px, calc((100vw - var(--max)) / 2)); color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.marquee { flex: 1; overflow: hidden; display: flex; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { list-style: none; margin: 0; padding: 0 28px 0 0; display: flex; gap: 56px; flex: none; animation: marquee 34s linear infinite; }
.marquee li { font-family: var(--font-head); color: var(--ink); font-weight: 700; font-size: 1.1rem; white-space: nowrap; opacity: .62; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Charts ---------- */
.dash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 52px; }
.chart-card { grid-column: span 6; background: var(--white); border-radius: var(--radius); padding: 30px 30px 26px; box-shadow: var(--soft); position: relative; }
.chart-card--wide { grid-column: span 12; }
.chart-card--third { grid-column: span 4; }
.chart-card--two { grid-column: span 8; }
.chart-card--7 { grid-column: span 7; }
.chart-card--5 { grid-column: span 5; }
@media (max-width: 980px) { .chart-card, .chart-card--third, .chart-card--two, .chart-card--7, .chart-card--5 { grid-column: span 12; } }
.chart-card h3 { margin-bottom: 2px; font-size: 1.15rem; }
.chart-sub { font-size: .86rem; color: var(--muted); margin: 0 0 20px; }
.chart-foot { font-size: .78rem; color: var(--muted); margin: 16px 0 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8rem; color: var(--body); margin: 0 0 18px; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.key--before { background: var(--before); }
.key--after { background: var(--accent); }
.key--dot { border-radius: 50%; }
.delta { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--good-soft); color: var(--good); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.delta::before { content: "▲"; font-size: .7em; }
.delta--down::before { content: "▼"; }

/* Column pairs (small multiples: each group has its own scale) */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 520px) { .cols { grid-template-columns: 1fr; } }
.col-group { display: flex; flex-direction: column; }
.col-plot { height: 170px; display: flex; align-items: flex-end; justify-content: center; gap: 24px; border-bottom: 1px solid var(--line); position: relative; }
.col { width: 24px; height: 0; border-radius: 4px 4px 0 0; position: relative; transition: height 1.3s var(--ease); cursor: default; }
.col--before { background: var(--before); }
.col--after { background: var(--accent); transition-delay: .25s; }
.in .col { height: var(--h); }
.col-val { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: .78rem; font-weight: 600; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .4s 1.1s; }
.in .col-val { opacity: 1; }
.col-name { text-align: center; font-size: .84rem; color: var(--body); margin-top: 10px; font-weight: 600; }
.col-group .delta { align-self: center; margin-top: 8px; }

/* Horizontal bars */
.hbars { display: grid; gap: 14px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; align-items: center; gap: 14px; }
.hbar-name { font-size: .86rem; color: var(--body); line-height: 1.25; }
.hbar-track { position: relative; height: 24px; }
.hbar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 0 4px 4px 0; background: var(--accent); transition: width 1.4s var(--ease); cursor: default; }
.hbar-fill--before { background: var(--before); }
.in .hbar-fill { width: var(--w); }
.hbar-val { position: absolute; top: 50%; transform: translateY(-50%); left: calc(var(--w) + 8px); font-size: .82rem; font-weight: 600; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .4s 1.2s; }
.in .hbar-val { opacity: 1; }
@media (max-width: 520px) { .hbar { grid-template-columns: 1fr; gap: 6px; } }

/* Dumbbells (before -> after, each row its own scale) */
.dumbbells { display: grid; gap: 4px; }
.db { display: grid; grid-template-columns: minmax(150px, 26%) 1fr auto; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.db:first-child { border-top: 0; }
.db-name strong { display: block; color: var(--ink); font-size: .95rem; }
.db-name span { font-size: .8rem; color: var(--muted); }
.db-plot { position: relative; height: 40px; }
.db-axis { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.db-line { position: absolute; top: calc(50% - 1px); height: 2px; background: var(--accent-2); left: var(--l); width: 0; transition: width 1.3s var(--ease); }
.db-line.rev { left: auto; right: calc(100% - var(--r)); }
.in .db-line { width: var(--len); }
.db-dot { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--white); cursor: default; }
.db-dot--before { background: var(--before); left: var(--b); }
.db-dot--after { background: var(--accent); left: var(--b); transition: left 1.3s var(--ease); }
.in .db-dot--after { left: var(--a); }
.db-lab { position: absolute; bottom: calc(50% + 11px); transform: translateX(-50%); font-size: .76rem; font-weight: 600; color: var(--body); white-space: nowrap; }
.db-lab--after { color: var(--ink); opacity: 0; transition: opacity .4s 1.1s; }
.in .db-lab--after { opacity: 1; }
@media (max-width: 640px) { .db { grid-template-columns: 1fr; gap: 6px; } .db .delta { justify-self: start; } }

/* Stat tile */
.stat-big { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.035em; color: var(--ink); margin: 8px 0 10px; display: block; }
.stat-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.stat-row div { font-size: .82rem; color: var(--muted); }
.stat-row strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); }
.ring { width: 120px; height: 120px; flex: none; }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--accent-soft); }
.ring .arc { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 0 999; transition: stroke-dasharray 1.6s var(--ease); }
.badge-ic { width: 84px; height: 84px; border-radius: 26px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.badge-ic svg { width: 38px; height: 38px; }
.stat-flex { display: flex; align-items: center; gap: 24px; }
@media (max-width: 520px) { .stat-flex { flex-direction: column; align-items: flex-start; } }

/* Tooltip */
.tip { position: fixed; z-index: 200; pointer-events: none; background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.35; padding: 8px 11px; border-radius: 10px; max-width: 240px; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.tip.on { opacity: 1; transform: none; }
.tip b { font-weight: 700; }

/* ---------- How I work ---------- */
.journey { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 60px; }
.journey-line { position: absolute; left: 10%; right: 10%; top: 34px; height: 3px; background: var(--accent-soft); border-radius: 3px; overflow: hidden; }
.journey-line i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 2.2s var(--ease); }
.in .journey-line i { width: 100%; }
.jstep { position: relative; text-align: center; padding: 0 6px; }
.jnode { width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 22px; background: var(--white); box-shadow: var(--soft), inset 0 0 0 2px var(--accent-soft); display: grid; place-items: center; color: var(--accent); position: relative; z-index: 1; transform: scale(.7); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease), background .4s, color .4s; }
.jnode svg { width: 30px; height: 30px; }
.in .jnode { transform: none; opacity: 1; background: var(--accent); color: #fff; box-shadow: 0 14px 28px -12px rgba(110,86,207,.7); }
.jstep:nth-child(3) .jnode { transition-delay: .35s; } .jstep:nth-child(4) .jnode { transition-delay: .7s; } .jstep:nth-child(5) .jnode { transition-delay: 1.05s; } .jstep:nth-child(6) .jnode { transition-delay: 1.4s; }
.jwhen { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 99px; margin-bottom: 8px; }
.jstep h3 { font-size: 1.05rem; margin-bottom: 6px; }
.jstep p { font-size: .88rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; gap: 26px; }
  .journey-line { left: 34px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  .journey-line i { width: 100%; height: 0; transition: height 2.2s var(--ease); }
  .in .journey-line i { height: 100%; }
  .jstep { display: grid; grid-template-columns: 70px 1fr; gap: 18px; text-align: left; align-items: start; }
  .jnode { margin: 0; }
}

.loop-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin-top: 80px; }
@media (max-width: 900px) { .loop-wrap { grid-template-columns: 1fr; } }
.loop { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin-inline: auto; }
.loop svg { width: 100%; height: 100%; overflow: visible; }
.loop .seg { fill: none; stroke-width: 26; stroke-linecap: butt; stroke-dasharray: 0 1000; transition: stroke-dasharray 1s var(--ease); }
.loop .seg:nth-of-type(1) { stroke: #6e56cf; } .loop .seg:nth-of-type(2) { stroke: #7d67da; transition-delay: .3s; } .loop .seg:nth-of-type(3) { stroke: #8f7ae6; transition-delay: .6s; } .loop .seg:nth-of-type(4) { stroke: #a594ee; transition-delay: .9s; }
.loop-center { position: absolute; inset: 26%; border-radius: 50%; background: var(--white); box-shadow: var(--soft); display: grid; place-items: center; text-align: center; padding: 10px; }
.loop-center strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; line-height: 1.2; }
.loop-center span { font-size: .78rem; color: var(--muted); }
.loop-label { position: absolute; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--ink); background: var(--white); padding: 6px 12px; border-radius: 99px; box-shadow: var(--soft); white-space: nowrap; transform: translate(-50%, -50%); }
.loop-spin { transform-origin: 50% 50%; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.month-list { display: grid; gap: 14px; }
.month-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--white); border-radius: 18px; padding: 16px 18px; box-shadow: var(--soft); }
.month-item .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.month-item .ic svg { width: 22px; height: 22px; }
.month-item strong { color: var(--ink); display: block; }
.month-item span { font-size: .9rem; color: var(--muted); }

/* ---------- Agency vs NEXA flow ---------- */
.flows { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
@media (max-width: 900px) { .flows { grid-template-columns: 1fr; } }
.flow-card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--soft); }
.flow-card--us { box-shadow: var(--lift), inset 0 0 0 2px var(--accent-soft); }
.flow-card h3 { margin-bottom: 4px; }
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.node { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; font-size: .86rem; font-weight: 600; background: #f2f2f6; color: var(--body); opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.node svg { width: 18px; height: 18px; }
.node--you { background: var(--ink); color: #fff; }
.node--nexa { background: var(--accent); color: #fff; }
.node--work { background: var(--accent-soft); color: var(--accent); }
.arrow-r { color: #c3c1d3; font-weight: 700; opacity: 0; transition: opacity .4s; }
.in .node, .in .arrow-r { opacity: 1; transform: none; }
.flow > *:nth-child(2) { transition-delay: .12s; } .flow > *:nth-child(3) { transition-delay: .24s; } .flow > *:nth-child(4) { transition-delay: .36s; } .flow > *:nth-child(5) { transition-delay: .48s; } .flow > *:nth-child(6) { transition-delay: .6s; } .flow > *:nth-child(7) { transition-delay: .72s; } .flow > *:nth-child(8) { transition-delay: .84s; } .flow > *:nth-child(9) { transition-delay: .96s; } .flow > *:nth-child(n+10) { transition-delay: 1.08s; }
.flow-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { font-size: .8rem; padding: 6px 11px; border-radius: 99px; background: #f2f2f6; color: var(--body); }
.flow-card--us .fact { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
@media (max-width: 980px) { .platforms { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .platforms { grid-template-columns: 1fr; } }
.pgroup { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--soft); }
.pgroup-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pgroup-head .ic { width: 42px; height: 42px; border-radius: 13px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.pgroup-head .ic svg { width: 20px; height: 20px; }
.pgroup-head h3 { margin: 0; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .84rem; font-weight: 500; padding: 7px 12px; border-radius: 10px; background: var(--accent-wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s, transform .2s; }
.chip:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ---------- Showcase ---------- */
.show { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.show + .show { margin-top: 40px; }
.show--flip .show-media { order: 2; }
@media (max-width: 900px) { .show { grid-template-columns: 1fr; gap: 28px; } .show--flip .show-media { order: 0; } }
.show-media { position: relative; }
.show-media img { border-radius: var(--radius); box-shadow: 0 40px 80px -45px rgba(60,40,140,.5); width: 100%; }
.show-media .float { position: absolute; width: 38%; right: -4%; bottom: -8%; border-radius: 18px; box-shadow: 0 24px 50px -20px rgba(27,29,46,.45); border: 6px solid #fff; }
.show h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.025em; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; background: var(--white); box-shadow: var(--soft); font-size: .86rem; font-weight: 600; color: var(--ink); }
.fchip svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.logo-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.logo-wall img { border-radius: 16px; aspect-ratio: 16 / 7; object-fit: cover; background: #fff; box-shadow: var(--soft); transition: transform .5s var(--ease); }
.logo-wall img:hover { transform: scale(1.04); }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 50px; }
@media (max-width: 920px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--soft); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card:hover { transform: translateY(-5px); box-shadow: var(--lift); }
.card .icon { width: 50px; height: 50px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; transition: background .3s, color .3s; }
.card:hover .icon { background: var(--accent); color: #fff; }
.card .icon svg { width: 24px; height: 24px; }
.card p { font-size: .97rem; margin: 0; }
.card ul { margin: 14px 0 0; padding-left: 18px; font-size: .93rem; }
.card--dark { background: var(--accent); color: rgba(255,255,255,.9); display: flex; flex-direction: column; justify-content: center; }
.card--dark h3 { color: #fff; }
.card--dark .btn { background: #fff; color: var(--accent); }

/* Work rail */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rail-btns { display: flex; gap: 10px; }
.rail-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--white); box-shadow: var(--soft); color: var(--ink); font-size: 1.3rem; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.rail-btn:hover { background: var(--accent); color: #fff; transform: scale(1.06); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(460px, 82vw); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px max(16px, calc((100vw - var(--max)) / 2)) 40px; margin-inline: calc(50% - 50vw); scrollbar-width: none; scroll-padding-left: max(16px, calc((100vw - var(--max)) / 2)); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; box-shadow: var(--soft); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--lift); }
.work-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #e9e7f2; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card:hover .thumb img { transform: scale(1.05); }
.work-card .body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.work-card .body p { color: var(--muted); font-size: .96rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { font-size: .72rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); padding: 5px 11px; border-radius: 999px; }
.work-card .result { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.work-card .result span { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--accent); }

/* Case studies */
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 70px 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; }
.case:nth-of-type(even) .case-media { order: 2; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; gap: 28px; } .case:nth-of-type(even) .case-media { order: 0; } }
.case-media img { border-radius: var(--radius); box-shadow: var(--lift); width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.case h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.case dl { margin: 18px 0 0; display: grid; gap: 14px; }
.case dt { font-size: .78rem; font-weight: 700; color: var(--accent); }
.case dd { margin: 2px 0 0; }
.case-results { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.case-results div { background: var(--white); border-radius: var(--radius-sm); padding: 16px 20px; min-width: 150px; flex: 1; box-shadow: var(--soft); border-top: 3px solid var(--accent); }
.case-results strong { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.case-results span { font-size: .82rem; color: var(--muted); }

/* Steps (other pages) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; counter-reset: step; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .steps--3 { grid-template-columns: 1fr; } }
.step { padding: 30px; border-radius: var(--radius); background: var(--white); box-shadow: var(--soft); transition: transform .4s var(--ease); }
.step:hover { transform: translateY(-4px); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.step p { font-size: .95rem; margin: 0; color: var(--muted); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
@media (max-width: 920px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: var(--white); border-radius: var(--radius); padding: 32px; position: relative; margin: 0; box-shadow: var(--soft); }
.quote blockquote { margin: 0 0 22px; font-size: 1.03rem; color: var(--ink); line-height: 1.5; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--font-head); font-size: 3.6rem; line-height: .6; margin-bottom: 10px; font-weight: 800; color: var(--accent-2); }
.quote figcaption strong { display: block; color: var(--ink); }
.quote figcaption span { font-size: .88rem; color: var(--muted); }

/* Offer band */
.offer { background: linear-gradient(120deg, #6e56cf 0%, #8f7ae6 100%); color: rgba(255,255,255,.92); border-radius: 34px; padding: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(110,86,207,.7); }
.offer::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent); }
.offer > * { position: relative; z-index: 1; }
.offer h2 { color: #fff; }
.offer .eyebrow { color: rgba(255,255,255,.85); }
.offer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-weight: 500; }
.offer li { padding-left: 34px; position: relative; }
.offer li::before { content: "✓"; position: absolute; left: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.offer .btn--yellow { background: #fff; color: var(--accent); box-shadow: 0 12px 26px -12px rgba(27,29,46,.4); }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; align-items: stretch; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--white); border-radius: var(--radius); padding: 36px 30px; display: flex; flex-direction: column; box-shadow: var(--soft); }
.plan--featured { position: relative; box-shadow: var(--lift), inset 0 0 0 2px var(--accent); }
.plan--featured::before { content: "Most popular"; position: absolute; top: -13px; left: 30px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.price { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; color: var(--ink); margin: 10px 0 4px; line-height: 1; letter-spacing: -.03em; }
.price small { font-family: var(--font); font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 11px; font-size: .95rem; flex: 1; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Old compare cards (services page) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.compare-card { border-radius: var(--radius); padding: 34px; background: var(--white); box-shadow: var(--soft); }
.compare-card--us { box-shadow: var(--lift), inset 0 0 0 2px var(--accent-soft); }
.compare-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.compare-card li { padding: 11px 0 11px 30px; position: relative; border-top: 1px solid var(--line); }
.compare-card--them li::before { content: "–"; position: absolute; left: 6px; color: var(--muted); font-weight: 700; }
.compare-card--us li::before { content: "✓"; position: absolute; left: 2px; font-weight: 800; color: var(--accent); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* Forms */
.form-card { background: rgba(255,255,255,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius); padding: clamp(28px, 4vw, 40px); box-shadow: var(--lift), 0 0 0 1px rgba(255,255,255,.7); }
.form-card h3 { margin-bottom: 6px; font-size: 1.45rem; }
.form-sub { font-size: .92rem; margin: 0; color: var(--muted); }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { font: inherit; font-size: 1rem; padding: 14px 16px; border-radius: 14px; border: 1px solid #d9d7e4; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(110,86,207,.14); }
.field textarea { min-height: 96px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin-top: 16px; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.form-card .btn { width: 100%; justify-content: center; margin-top: 20px; }
.form-status { margin-top: 14px; font-weight: 600; text-align: center; }
.hp { position: absolute; left: -9999px; }
.contact-list { display: grid; gap: 22px; margin-top: 34px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; margin-bottom: 2px; }
.contact-list a { color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }

/* FAQ */
.faq { max-width: 820px; margin: 44px auto 0; }
.faq details { background: var(--white); border-radius: 18px; padding: 20px 24px; margin-bottom: 12px; box-shadow: var(--soft); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 1.03rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; font-size: .97rem; color: var(--muted); }

.figure-card { padding: 0; overflow: hidden; margin: 0; }
.figure-card img { aspect-ratio: 4/5; object-fit: cover; object-position: top; width: 100%; }
.figure-card figcaption { padding: 20px 24px; }
.figure-card figcaption strong { color: var(--ink); }
.figure-card figcaption span { font-size: .92rem; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.portrait { border-radius: var(--radius); aspect-ratio: 4/5; background: var(--grad); display: grid; place-items: center; color: #fff; text-align: center; padding: 24px; position: relative; overflow: hidden; box-shadow: var(--lift); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* CTA band */
.cta-band { background: var(--accent-wash); text-align: center; padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 50%; bottom: -520px; width: 1000px; height: 800px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(143,122,230,.28), transparent 72%); pointer-events: none; }
.cta-band .wrap { position: relative; }
.cta-band h2 { max-width: 860px; margin-inline: auto; }
.cta-band .lead { margin-inline: auto; }
.cta-band .hero-ctas { justify-content: center; }

/* Footer */
.site-footer { background: #f3f2f8; color: var(--muted); padding: 60px 0 30px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font); color: var(--ink); font-size: .82rem; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #dcdae6; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; }

.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }

/* Review flags (deploy script blocks publishing while any remain) */
.todo { background: #fff3c4; outline: 2px dashed #e0a800; outline-offset: 2px; border-radius: 4px; padding: 0 4px; color: #6b4e00 !important; -webkit-text-fill-color: #6b4e00; }
.pending-approval { position: relative; outline: 2px dashed #e0a800; outline-offset: 4px; }
.pending-approval::after { content: "DRAFT · needs client approval"; position: absolute; top: -12px; right: 16px; background: #e0a800; color: #1d1600; font-size: .62rem; font-weight: 800; letter-spacing: .1em; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; }

/* Scroll animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(n+6) { transition-delay: .4s; }
.zoom-in { transform: scale(.92); opacity: .5; transition: transform 1.3s var(--ease), opacity 1.3s var(--ease); }
.zoom-in.in { transform: none; opacity: 1; }
.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-stagger > *, .zoom-in, .node, .arrow-r, .jnode { opacity: 1; transform: none; }
  .col { height: var(--h); } .hbar-fill { width: var(--w); } .db-line { width: var(--len); } .db-dot--after { left: var(--a); } .col-val, .hbar-val, .db-lab--after { opacity: 1; }
  html { scroll-behavior: auto; }
}
.loop.in .seg { stroke-dasharray: 227.6 1000; }
.db-line.rev { left: auto; right: calc(100% - var(--r)); }
.chart-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
