/* ============================================================
   JM Multiservices - Experience layer styles (v1.3.0)
   Loads after theme.css. Brand colors unchanged:
   navy #071522, cobalt #1687F8, cyan #22D3EE, cool white.
   Hidden/animated states only apply under html.jx, so the
   pages stay fully readable if the script does not run.
   ============================================================ */
:root {
  --jx-ease: cubic-bezier(.2,.7,.2,1);
  --jx-warn: #F59E0B; /* functional status color, used only in the leak illustration */
}

/* ---------- Scroll progress ---------- */
.jx-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1200; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #1687F8, #22D3EE); box-shadow: 0 0 14px rgba(34,211,238,.55); pointer-events: none; }

/* ---------- Hero ---------- */
.hero--v11 { position: relative; overflow: hidden; isolation: isolate; }
.hero--v11::after { content: ""; position: absolute; width: 640px; height: 640px; left: var(--gx, 70%); top: var(--gy, 30%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34,211,238,.13), transparent 62%); pointer-events: none; z-index: 1; transition: opacity .3s; }
#jx-network { position: absolute; inset: 0; z-index: 0; pointer-events: none; mask-image: linear-gradient(to bottom, #000 55%, transparent 98%); -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 98%); }
.hero--v11 .hero__content .text-hero { font-size: clamp(2.4rem, 4.8vw + .2rem, 4.7rem); line-height: 1.04; letter-spacing: -.028em; max-width: 14ch; }
@media (max-width: 760px) { .hero--v11 .hero__content .text-hero { max-width: none; } }
.hero__subtitle { max-width: 56ch; }
.hero-status { display: flex; width: fit-content; align-items: center; gap: .6rem; padding: .4rem .85rem; border: 1px solid rgba(56,189,248,.22); border-radius: 999px; background: rgba(8,31,49,.6); color: var(--color-white-muted); font-size: .78rem; font-weight: 600; margin-bottom: 1.25rem; }
.hero-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.6); animation: jxPulse 2.2s infinite; }

.jx .jx-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.jx .jx-word > span { display: inline-block; transform: translateY(115%); animation: jxRise .85s var(--jx-ease) forwards; }
@keyframes jxRise { to { transform: translateY(0); } }
@keyframes jxPulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }

/* Hero card: tilt + glare */
.jx-tilt { position: relative; transition: transform .25s var(--jx-ease); will-change: transform; transform-style: preserve-3d; }
.jx-tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--gl-x, 50%) var(--gl-y, 0%), rgba(255,255,255,.08), transparent 60%); opacity: 0; transition: opacity .25s; }
.jx-tilt:hover::before { opacity: 1; }
.system-flow div { transition: border-color .25s, background .25s, transform .25s var(--jx-ease); }
.system-flow div:hover { border-color: rgba(34,211,238,.4); background: rgba(34,211,238,.05); transform: translateX(4px); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid rgba(56,189,248,.12); background: rgba(5,22,36,.7); padding: 1.05rem 0; }
.marquee__track { display: flex; width: max-content; animation: jxMarquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 3rem; padding-right: 3rem; }
.marquee__group span { color: var(--color-white-dim); font: 700 .8rem/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.marquee__group span::before { content: "\25C6"; color: var(--brand-cyan); margin-right: 3rem; font-size: .6rem; vertical-align: middle; }
@keyframes jxMarquee { to { transform: translateX(-50%); } }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid rgba(56,189,248,.16); border-radius: 22px; overflow: hidden; background: rgba(56,189,248,.14); }
.stats-band > div { padding: clamp(1.4rem, 3vw, 2.4rem) 1.2rem; background: linear-gradient(160deg, #0A1D2F, #071522); text-align: center; }
.stats-band strong { display: block; font: 800 clamp(2.2rem, 5vw, 3.6rem)/1 var(--font-display); letter-spacing: -.03em; background: linear-gradient(135deg, #67E8F9, #1687F8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-band span { display: block; margin-top: .6rem; color: var(--color-white-muted); font-size: .86rem; line-height: 1.4; }
@media (min-width: 860px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Spotlight surfaces ---------- */
.jx-spot { position: relative; }
.jx-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(34,211,238,.10), transparent 62%); }
.jx-spot:hover::after { opacity: 1; }

/* ---------- Leak story (signature moment) ---------- */
.story { display: grid; gap: 1.5rem; }
.story__panel { position: sticky; top: 72px; z-index: 3; padding: 1rem; border: 1px solid rgba(56,189,248,.2); border-radius: 22px;
  background: linear-gradient(150deg, #0A1D2F, #071522); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.story__panel-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .2rem .4rem .7rem; color: var(--color-white-dim); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.story__panel-top b { color: var(--brand-cyan); font-weight: 800; }
.story__svg { width: 100%; height: auto; display: block; }
.story__caps { display: grid; padding: .6rem .5rem .3rem; min-height: 4.2rem; }
.story__caps p { grid-area: 1 / 1; margin: 0; color: var(--color-white-muted); font-size: .9rem; line-height: 1.5; opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s var(--jx-ease); }
.story[data-step="1"] .cap-1, .story[data-step="2"] .cap-2, .story[data-step="3"] .cap-3, .story[data-step="4"] .cap-4 { opacity: 1; transform: none; }
.story__steps { display: grid; gap: 1rem; }
.story-step { display: flex; flex-direction: column; justify-content: center; min-height: 52vh; padding: 1.4rem 1.5rem; border: 1px solid rgba(56,189,248,.12); border-radius: 18px; background: rgba(8,31,49,.35);
  opacity: .45; transition: opacity .4s, border-color .4s, background .4s, transform .4s var(--jx-ease); }
.story-step.is-active { opacity: 1; border-color: rgba(34,211,238,.4); background: rgba(10,29,47,.8); transform: translateX(4px); }
.story-step__n { color: var(--brand-cyan); font: 800 .8rem/1 var(--font-display); letter-spacing: .2em; }
.story-step h3 { margin: .7rem 0 .6rem; font: 800 clamp(1.3rem, 2.4vw, 1.75rem)/1.2 var(--font-display); letter-spacing: -.015em; }
.story-step p { margin: 0; color: var(--color-white-muted); line-height: 1.7; }
.story-step .btn { margin-top: 1.2rem; align-self: flex-start; }
html:not(.jx) .story-step { opacity: 1; min-height: 0; }
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4rem; align-items: start; }
  .story__steps { grid-column: 1; grid-row: 1; gap: 0; }
  .story__panel { grid-column: 2; grid-row: 1; top: 110px; padding: 1.4rem; }
  .story-step { min-height: 64vh; background: transparent; border-color: transparent; }
  .story-step.is-active { background: rgba(10,29,47,.55); }
}
@media (max-width: 959px) { .story-step { min-height: 42vh; justify-content: flex-start; padding-top: 1.1rem; } .story__caps { min-height: 3.4rem; } .story__panel-top { font-size: .62rem; } }

/* SVG states */
.story__svg .pipe { stroke: rgba(56,189,248,.28); transition: stroke .6s; }
.story__svg .node { fill: #0A1D2F; stroke: rgba(56,189,248,.4); stroke-width: 1.5; transition: stroke .5s, fill .5s; }
.story__svg .nlabel { fill: #E6F4FB; font: 700 12px 'Manrope', Arial, sans-serif; letter-spacing: .02em; }
.story__svg .nsub { fill: #70899D; font: 600 9px Inter, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.story__svg .pA circle, .story__svg .pB circle { fill: #67E8F9; }
.story__svg .pB { transition: opacity .6s; }
.story__svg .stall { opacity: 0; transition: opacity .5s; } .story__svg .stall circle { fill: var(--jx-warn); }
.story__svg .drip { opacity: 0; transition: opacity .4s; } .story__svg .drip circle { fill: var(--jx-warn); }
.story__svg .seal { opacity: 0; transition: opacity .5s; }
.story__svg .tag2 { fill: var(--jx-warn); font: 800 9px Inter, Arial, sans-serif; letter-spacing: .12em; opacity: 0; transition: opacity .4s; }
.story[data-step="2"] .pB { opacity: .1; }
.story[data-step="2"] .stall, .story[data-step="3"] .stall { opacity: 1; }
.story[data-step="2"] .node-2, .story[data-step="3"] .node-2 { stroke: var(--jx-warn); }
.story[data-step="2"] .tag2 { opacity: 1; }
.story[data-step="3"] .pB { opacity: .35; }
.story[data-step="3"] .drip { opacity: 1; }
.story[data-step="4"] .pipe { stroke: rgba(34,211,238,.7); }
.story[data-step="4"] .node { stroke: #22D3EE; }
.story[data-step="4"] .seal { opacity: 1; }
.story[data-step="4"] .node-4 { fill: rgba(34,211,238,.12); }
.story__svg .drip circle { animation: jxDrip 1.9s ease-in infinite; }
.story__svg .drip circle:nth-child(2n) { animation-delay: .7s; } .story__svg .drip circle:nth-child(3n) { animation-delay: 1.2s; }
@keyframes jxDrip { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(120px); opacity: 0; } }

/* ---------- Video frames ---------- */
.video-embed--poster { background: linear-gradient(160deg, rgba(10,29,47,.9), rgba(3,16,28,.95)), var(--poster) center / cover no-repeat; }
.proof-video-card { box-shadow: 0 30px 90px rgba(22,135,248,.16); }

/* ---------- Founder ---------- */
.founder-photo { position: relative; width: 100%; max-width: 300px; }
.founder-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid rgba(34,211,238,.4); border-radius: 26px; z-index: 0; }
.founder-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; border-radius: 24px; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 90px rgba(22,135,248,.18); border: 1px solid rgba(56,189,248,.3); }
.founder-creds { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.founder-creds span { padding: .42rem .8rem; border: 1px solid rgba(56,189,248,.22); border-radius: 999px; background: rgba(8,31,49,.6); color: var(--color-white-muted); font-size: .78rem; font-weight: 600; }
.founder-block { grid-template-columns: 1fr; }
@media (min-width: 800px) { .founder-block { grid-template-columns: 300px 1fr; } }

/* ---------- Audit timeline ---------- */
[data-jx-timeline] { position: relative; }
[data-jx-timeline]::before, [data-jx-timeline]::after { content: ""; position: absolute; left: 19px; top: 28px; width: 2px; border-radius: 2px; }
[data-jx-timeline]::before { bottom: 28px; background: rgba(56,189,248,.14); }
[data-jx-timeline]::after { height: calc((100% - 56px) * var(--tl, 0) / 100); max-height: calc(100% - 56px); background: linear-gradient(180deg, #1687F8, #22D3EE); box-shadow: 0 0 12px rgba(34,211,238,.5); }
[data-jx-timeline] .step-item { position: relative; z-index: 1; transition: opacity .4s; }
.jx [data-jx-timeline] .step-item { opacity: .5; }
.jx [data-jx-timeline] .step-item.is-lit { opacity: 1; }
[data-jx-timeline] .card__number { background: #071522; transition: box-shadow .4s, background .4s, color .4s; }
[data-jx-timeline] .step-item.is-lit .card__number { background: linear-gradient(135deg, #1687F8, #22D3EE); color: #03101C; border-color: transparent; box-shadow: 0 0 0 6px rgba(34,211,238,.14); }

/* ---------- Final CTA aurora ---------- */
.cta-final--v11 { position: relative; overflow: hidden; isolation: isolate; }
.cta-final--v11::before { content: ""; position: absolute; inset: -30% -10%; z-index: -1;
  background: radial-gradient(40% 50% at 20% 40%, rgba(22,135,248,.28), transparent 70%), radial-gradient(35% 45% at 80% 55%, rgba(34,211,238,.20), transparent 70%);
  animation: jxAurora 14s ease-in-out infinite alternate; }
@keyframes jxAurora { to { transform: translate3d(3%, -4%, 0) scale(1.08); } }

/* ---------- Sections: richer reveals ---------- */
.jx .reveal { transition: opacity .8s var(--jx-ease), transform .8s var(--jx-ease); transform: translateY(32px); }
.jx .reveal.is-visible { transform: none; }
.jx .reveal-stagger > .reveal:nth-child(5) { transition-delay: 400ms; }
/* v1.3.4: removed the decorative line before section labels (read as a dash) */

/* ---------- Header polish ---------- */
.nav-primary a { position: relative; }
.nav-primary a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #1687F8, #22D3EE); transition: transform .3s var(--jx-ease); }
.nav-primary a:hover::after { transform: scaleX(1); }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .stats-band strong { font-size: 2.1rem; }
  .founder-photo { max-width: 240px; margin-inline: auto; }
  .founder-photo::before { inset: 10px -10px -10px 10px; }
  .marquee__group { gap: 2rem; padding-right: 2rem; } .marquee__group span::before { margin-right: 2rem; }
  .story__panel { top: 64px; padding: .7rem; border-radius: 16px; }
  .story__caps p { font-size: .82rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .cta-final--v11::before, .story__svg .drip circle, .hero-status i { animation: none !important; }
  .jx .jx-word > span { transform: none; animation: none; }
  .jx .reveal { transform: none; }
  .story-step, .story__caps p { transition: none; }
  .marquee__track { flex-wrap: wrap; width: auto; } .marquee__group[aria-hidden="true"] { display: none; }
}

/* ---- v1.3.1: inner-page hero parity + accessibility ---- */
.page-hero { position: relative; overflow: hidden; }
.page-hero > .container { position: relative; z-index: 1; }
.jx-network--page { opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(34,211,238,.35), transparent); z-index: 1; }
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-cyan, #22D3EE); outline-offset: 3px; }
@media (max-width: 767px) { .btn, .nav__cta { min-height: 44px; } .jx-network--page { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .jx-network--page { opacity: .3; } }

/* ==========================================================
   v1.3.2 Typography: Bricolage Grotesque display + Geist body
   Defaults below are the "modern" preset. Other presets are
   switched from functions.php (JMMS_FONT_PRESET).
   ========================================================== */
:root {
  --font-primary: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Bricolage Grotesque', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif-weight: 600;
  --serif-track: -.035em;
  --serif-lh: 1.0;
}
h1, h2, .text-hero, .text-section-heading, .offer-panel__price, .stats-band strong {
  font-family: var(--font-serif);
  font-weight: var(--serif-weight);
  letter-spacing: var(--serif-track);
  line-height: var(--serif-lh);
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums;
}
