/* ==========================================================================
   JM Rankify Motion — main styles
   Colours/fonts are CSS variables set from Customizer (see functions.php)
   ========================================================================== */

:root {
	--jm-accent: #C8FF2E;
	--jm-hot: #FF3EA5;
	--jm-bg: #07080A;
	--jm-text: #EDEFF2;
	--jm-ink: #0A0C05;
	--jm-surface: color-mix(in srgb, var(--jm-bg) 88%, #fff 4%);
	--jm-surface-2: color-mix(in srgb, var(--jm-bg) 80%, #fff 7%);
	--jm-line: color-mix(in srgb, var(--jm-text) 10%, transparent);
	--jm-line-2: color-mix(in srgb, var(--jm-text) 18%, transparent);
	--jm-muted: color-mix(in srgb, var(--jm-text) 58%, var(--jm-bg));
	--jm-display: "Archivo", "Arial Black", sans-serif;
	--jm-display-stretch: 118%;
	--jm-body: "Manrope", system-ui, sans-serif;
	--jm-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--rail: 84px;
	--top: 72px;
	--wrap: 1180px;
	--cut: 10px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--ease-snap: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--jm-bg);
	color: var(--jm-text);
	font: 400 17px/1.65 var(--jm-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--jm-accent) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--jm-accent); }
::selection { background: var(--jm-accent); color: var(--jm-ink); }
:focus-visible { outline: 2px solid var(--jm-accent); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--jm-display);
	font-stretch: var(--jm-display-stretch);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
}
h1, h2, h3 { overflow-wrap: break-word; }
h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
p { margin: 0 0 1.1em; }

mark {
	background: var(--jm-accent);
	color: var(--jm-ink);
	padding: 0 .14em;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}
.mono, code, kbd, pre { font-family: var(--jm-mono); }
.mono { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 999; left: 12px; top: 12px; padding: 10px 16px; background: var(--jm-accent); color: var(--jm-ink); }

.jm-wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

.jm-ico { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Buttons ---------- */
.jm-btn, .wp-block-button__link, .jm-entry .wp-element-button, input[type="submit"], .comment-form .submit {
	--c: var(--jm-accent);
	display: inline-flex; align-items: center; gap: .6em;
	padding: .95em 1.4em;
	background: var(--c); color: var(--jm-ink);
	font: 700 .82rem/1 var(--jm-mono); letter-spacing: .06em; text-transform: uppercase;
	text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
	transition: transform .25s var(--ease), box-shadow .25s, background .25s;
	position: relative;
}
.jm-btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover {
	color: var(--jm-ink); transform: translateY(-2px);
	box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--c) 80%, transparent);
}
.jm-btn .jm-ico-arrow { transition: transform .25s var(--ease); }
.jm-btn:hover .jm-ico-arrow { transform: translateX(4px); }
.jm-btn.is-ghost, .is-style-jm-ghost .wp-block-button__link {
	background: transparent; color: var(--jm-text);
	box-shadow: inset 0 0 0 1px var(--jm-line-2);
	clip-path: none;
}
.jm-btn.is-ghost:hover, .is-style-jm-ghost .wp-block-button__link:hover { color: var(--jm-accent); box-shadow: inset 0 0 0 1px var(--jm-accent); }
.jm-btn.is-sm { padding: .75em 1.05em; font-size: .72rem; --cut: 7px; }
.jm-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.jm-icon-btn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; padding: 0;
	background: transparent; color: var(--jm-text);
	border: 1px solid var(--jm-line-2); border-radius: 0; cursor: pointer;
	transition: color .2s, border-color .2s, background .2s;
}
.jm-icon-btn:hover { color: var(--jm-accent); border-color: var(--jm-accent); }

/* ---------- Logo ---------- */
.jm-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--jm-text); }
.jm-logo.is-image img { max-height: 44px; width: auto; display: block; }
.jm-logo-mark {
	width: 40px; height: 40px; display: grid; place-items: center; flex: none;
	background: var(--jm-accent); color: var(--jm-ink);
	font: 900 15px/1 var(--jm-display); font-stretch: 125%;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
	transition: transform .4s var(--ease);
}
.jm-logo:hover .jm-logo-mark { transform: rotate(-8deg) scale(1.05); }
.jm-logo-word { font: 800 1.05rem/1 var(--jm-display); font-stretch: 125%; letter-spacing: .02em; white-space: nowrap; }
.jm-logo-word b { color: var(--jm-accent); font-weight: 800; }

/* ---------- Side rail ---------- */
.jm-rail {
	position: fixed; z-index: 60; inset: 0 auto 0 0; width: var(--rail);
	display: flex; flex-direction: column;
	background: color-mix(in srgb, var(--jm-bg) 92%, transparent);
	backdrop-filter: blur(14px);
	border-right: 1px solid var(--jm-line);
	transition: width .45s var(--ease-snap), box-shadow .45s;
	overflow: hidden;
}
.jm-rail:hover, .jm-rail:focus-within { width: 290px; box-shadow: 30px 0 80px -20px rgba(0,0,0,.8); }
.jm-rail-top { height: var(--top); display: flex; align-items: center; padding-left: 22px; border-bottom: 1px solid var(--jm-line); flex: none; }
.jm-rail-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 18px 0; scrollbar-width: none; }
.jm-rail-menu, .jm-rail-menu ul { list-style: none; margin: 0; padding: 0; counter-reset: rail; }
.jm-rail-menu > li { counter-increment: rail; }
.jm-rail-menu a {
	position: relative; display: flex; align-items: center; gap: 22px;
	height: 52px; padding-left: 28px; white-space: nowrap;
	text-decoration: none; color: var(--jm-muted);
	font: 600 .95rem/1 var(--jm-body);
	transition: color .2s, background .2s;
}
.jm-rail-menu > li > a::before {
	content: counter(rail, decimal-leading-zero);
	font: 500 .78rem/1 var(--jm-mono); letter-spacing: .04em; width: 26px; flex: none;
}
.jm-rail-menu a::after {
	content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
	background: var(--jm-accent); transform: scaleY(0); transition: transform .3s var(--ease);
}
.jm-rail-menu a:hover, .jm-rail-menu .current-menu-item > a, .jm-rail-menu .current_page_item > a { color: var(--jm-text); background: color-mix(in srgb, var(--jm-text) 4%, transparent); }
.jm-rail-menu a:hover::after, .jm-rail-menu .current-menu-item > a::after, .jm-rail-menu .current_page_item > a::after { transform: scaleY(1); }
.jm-rail-menu .current-menu-item > a::before, .jm-rail-menu .current_page_item > a::before { color: var(--jm-accent); }
.jm-rail-menu .lbl { opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .35s var(--ease); }
.jm-rail:hover .lbl, .jm-rail:focus-within .lbl { opacity: 1; transform: none; }
.jm-rail-menu .sub-menu { display: none; }
.jm-rail:hover .sub-menu, .jm-rail:focus-within .sub-menu { display: block; }
.jm-rail-menu .sub-menu a { height: 38px; padding-left: 76px; font-size: .85rem; }
.jm-rail-foot { padding: 22px 0 26px; display: flex; justify-content: center; border-top: 1px solid var(--jm-line); flex: none; }
.jm-rail-tag { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--jm-muted); white-space: nowrap; font-size: .66rem; max-height: 260px; overflow: hidden; }
.jm-rail:hover .jm-rail-tag { color: var(--jm-accent); }

/* ---------- Top bar ---------- */
.jm-top {
	position: fixed; z-index: 50; top: 0; right: 0; left: var(--rail);
	height: var(--top);
	border-bottom: 1px solid var(--jm-line);
	background: color-mix(in srgb, var(--jm-bg) 82%, transparent);
	backdrop-filter: blur(14px);
	transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.has-stage .jm-top:not(.is-scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; }
.jm-top.is-hidden { transform: translateY(-100%); }
.jm-top-in { height: 100%; display: flex; align-items: center; gap: 24px; padding: 0 28px; }
.jm-hud { margin: 0 auto; display: flex; align-items: center; gap: 10px; color: var(--jm-muted); font-size: .7rem; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--jm-accent); box-shadow: 0 0 12px var(--jm-accent); animation: jm-blink 1.4s steps(2) infinite; display: inline-block; }
@keyframes jm-blink { 50% { opacity: .2; } }
.jm-top-links ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.jm-top-links a { text-decoration: none; font-weight: 600; font-size: .9rem; }
.jm-top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.jm-hud + .jm-top-actions, .jm-top-links + .jm-top-actions { margin-left: 0; }
.jm-burger { display: none; }

body.no-rail { --rail: 0px; }
body:not(.no-rail) .jm-top .jm-logo .jm-logo-mark { display: none; }

/* ---------- Drawer (mobile) ---------- */
.jm-drawer { position: fixed; inset: 0; z-index: 100; background: var(--jm-bg); }
.jm-drawer[hidden] { display: none; }
.jm-drawer-in { height: 100%; display: flex; flex-direction: column; padding: 18px 24px 28px; overflow-y: auto; }
.jm-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.jm-drawer-menu, .jm-drawer-menu ul { list-style: none; margin: 0; padding: 0; counter-reset: dm; }
.jm-drawer-menu > li { counter-increment: dm; border-bottom: 1px solid var(--jm-line); opacity: 0; transform: translateY(16px); animation: jm-up .5s var(--ease) forwards; }
.jm-drawer-menu > li:nth-child(n) { animation-delay: calc(var(--n, 0) * 50ms); }
.jm-drawer-menu > li > a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; text-decoration: none; font: 800 1.7rem/1.1 var(--jm-display); font-stretch: var(--jm-display-stretch); }
.jm-drawer-menu > li > a::before { content: counter(dm, decimal-leading-zero); font: 500 .75rem var(--jm-mono); color: var(--jm-accent); }
.jm-drawer-menu .sub-menu a { display: block; padding: 6px 0 6px 34px; text-decoration: none; color: var(--jm-muted); }
.jm-drawer-foot { margin-top: auto; padding-top: 30px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
@keyframes jm-up { to { opacity: 1; transform: none; } }

/* ---------- Main ---------- */
.jm-main { padding-left: var(--rail); padding-top: var(--top); min-height: 60vh; }
.has-stage .jm-main { padding-top: 0; }
.jm-canvas .jm-main { padding: 0; }

/* ---------- Page hero (inner pages) ---------- */
.jm-hero { position: relative; padding: clamp(64px, 11vw, 140px) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--jm-line); overflow: hidden; }
.jm-hero-grid {
	position: absolute; inset: 0; pointer-events: none; opacity: .55;
	background-image: linear-gradient(var(--jm-line) 1px, transparent 1px), linear-gradient(90deg, var(--jm-line) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 75%);
	animation: jm-grid 20s linear infinite;
}
@keyframes jm-grid { to { background-position: 64px 64px, 64px 64px; } }
.jm-hero .jm-wrap { position: relative; }
.jm-kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 .74rem/1 var(--jm-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--jm-muted); margin-bottom: 22px; }
.jm-kicker .dot { width: 7px; height: 7px; background: var(--jm-accent); box-shadow: 0 0 10px var(--jm-accent); }
.jm-hero-title { max-width: 16ch; text-transform: uppercase; margin: 0; }
.jm-hero-title mark { padding: 0 .08em; }
.jm-hero-intro { max-width: 60ch; color: var(--jm-muted); font-size: 1.15rem; margin: 26px 0 0; }
.jm-crumbs { margin-top: 26px; color: var(--jm-muted); }

/* ---------- Entry content (blocks) ---------- */
.jm-entry { padding: clamp(40px, 6vw, 80px) 0; }
.jm-entry > *:not(.alignfull):not(.alignwide):not(.jm-section):not(.wp-block-shortcode):not(.jm-cta):not(.jm-marquee) { width: min(100% - 48px, 820px); margin-inline: auto; }
.jm-entry > .alignwide { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.jm-entry > .alignfull { width: 100%; }
.jm-entry.is-flush > * { width: auto !important; }
.jm-home-content.jm-entry { padding-top: 0; }
.jm-entry h2 { margin-top: 1.6em; }
.jm-entry h3 { margin-top: 1.4em; }
.jm-entry img { display: block; }
.jm-entry blockquote, .wp-block-quote { border-left: 3px solid var(--jm-accent); margin: 2em auto; padding: .2em 0 .2em 1.4em; font-size: 1.2rem; }
.jm-entry pre { background: var(--jm-surface); border: 1px solid var(--jm-line); padding: 20px; overflow: auto; font-size: .9rem; }
.jm-entry code { background: var(--jm-surface-2); padding: .1em .35em; font-size: .88em; }
.jm-entry table:not(.jm-table) { width: 100%; border-collapse: collapse; }
.jm-entry table:not(.jm-table) td, .jm-entry table:not(.jm-table) th { border: 1px solid var(--jm-line); padding: 10px 14px; }
.jm-entry hr { border: 0; border-top: 1px solid var(--jm-line); margin: 3em auto; }

/* Sections created by the demo setup */
.jm-section { width: min(100% - 48px, var(--wrap)); margin: 0 auto; padding: clamp(56px, 8vw, 110px) 0; border-bottom: 1px solid var(--jm-line); }
.jm-section > * { max-width: none; }
.jm-section > .is-style-jm-kicker + h2, .jm-section > h2:first-child { margin-top: 0; }
.jm-page > .jm-section:first-child { padding-top: clamp(28px, 4vw, 50px); }
.jm-section > p:not(.is-style-jm-kicker) { max-width: 62ch; color: var(--jm-muted); font-size: 1.1rem; }
.jm-section.is-style-jm-panel, .wp-block-group.is-style-jm-panel {
	background: linear-gradient(180deg, var(--jm-surface), transparent);
	border: 1px solid var(--jm-line);
	padding-inline: clamp(22px, 4vw, 56px);
	margin-block: clamp(30px, 5vw, 60px);
	position: relative;
}
.wp-block-group.is-style-jm-panel::before, .jm-section.is-style-jm-panel::before {
	content: ""; position: absolute; top: -1px; left: -1px; width: 22px; height: 22px;
	border-top: 2px solid var(--jm-accent); border-left: 2px solid var(--jm-accent);
}

/* Block styles */
.is-style-jm-display { text-transform: uppercase; font-size: clamp(2rem, 5vw, 4rem) !important; max-width: 18ch; }
.is-style-jm-kicker { font: 500 .76rem/1 var(--jm-mono) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--jm-accent) !important; margin-bottom: 18px !important; }
.is-style-jm-checks { list-style: none; padding: 0 !important; }
.is-style-jm-checks li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px dashed var(--jm-line); }
.is-style-jm-checks li::before {
	content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 16px;
	background: var(--jm-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' stroke='%23000' stroke-width='3' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' stroke='%23000' stroke-width='3' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}
.wp-block-columns.is-style-jm-cards { gap: 18px !important; margin-top: 28px; }
.wp-block-columns.is-style-jm-cards > .wp-block-column {
	background: var(--jm-surface); border: 1px solid var(--jm-line); padding: 28px 26px;
	transition: border-color .3s, transform .4s var(--ease);
}
.wp-block-columns.is-style-jm-cards > .wp-block-column:hover { border-color: color-mix(in srgb, var(--jm-accent) 50%, transparent); transform: translateY(-4px); }
.wp-block-columns.is-style-jm-cards h3 { margin-top: 0; }
.wp-block-columns.is-style-jm-cards p { color: var(--jm-muted); }

/* Details (FAQ) */
.wp-block-details { border-bottom: 1px solid var(--jm-line); padding: 0; }
.wp-block-details summary {
	list-style: none; cursor: pointer; padding: 24px 50px 24px 0; position: relative;
	font: 700 clamp(1.05rem, 1.8vw, 1.3rem)/1.3 var(--jm-display); font-stretch: var(--jm-display-stretch);
	transition: color .2s;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
	width: 34px; height: 34px; display: grid; place-items: center;
	border: 1px solid var(--jm-line-2); font: 400 1.2rem var(--jm-mono); transition: transform .3s var(--ease), background .2s, color .2s;
}
.wp-block-details[open] summary { color: var(--jm-accent); }
.wp-block-details[open] summary::after { transform: rotate(45deg); background: var(--jm-accent); color: var(--jm-ink); border-color: var(--jm-accent); }
.wp-block-details > p { color: var(--jm-muted); padding-bottom: 24px; max-width: 70ch; animation: jm-up .4s var(--ease) both; opacity: 0; transform: translateY(8px); }

/* ---------- Shortcode components ---------- */
.jm-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--jm-line); border: 1px solid var(--jm-line); margin-top: 40px; }
.jm-service {
	position: relative; display: block; padding: 34px 30px 66px; background: var(--jm-bg);
	text-decoration: none; color: var(--jm-text); overflow: hidden; min-height: 250px;
	transition: background .35s;
}
.jm-service::before {
	content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--jm-accent) 14%, transparent), transparent 60%);
	opacity: 0; transition: opacity .35s;
}
.jm-service:hover::before { opacity: 1; }
.jm-service:hover { color: var(--jm-text); background: var(--jm-surface); }
.jm-service-n { color: var(--jm-accent); display: block; margin-bottom: 40px; }
.jm-service h3 { position: relative; text-transform: uppercase; font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.jm-service p { position: relative; color: var(--jm-muted); margin: 0; font-size: .97rem; }
.jm-service-go { position: absolute; right: 26px; bottom: 24px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--jm-line-2); transition: background .3s, color .3s, transform .4s var(--ease); }
.jm-service:hover .jm-service-go { background: var(--jm-accent); color: var(--jm-ink); border-color: var(--jm-accent); transform: rotate(-45deg); }

.jm-process { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: none; }
.jm-process li { position: relative; padding: 26px 22px 28px; border-top: 2px solid var(--jm-line-2); transition: border-color .3s; }
.jm-process li:hover { border-color: var(--jm-accent); }
.jm-process-n { display: block; font: 900 3.4rem/1 var(--jm-display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 1px var(--jm-line-2); margin-bottom: 18px; transition: color .3s, -webkit-text-stroke-color .3s; }
.jm-process li:hover .jm-process-n { color: var(--jm-accent); -webkit-text-stroke-color: var(--jm-accent); }
.jm-process h3 { text-transform: uppercase; font-size: 1.1rem; }
.jm-process p { color: var(--jm-muted); margin: 0; font-size: .95rem; }

.jm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--jm-line); border: 1px solid var(--jm-line); margin: 36px 0; }
.jm-stat { background: var(--jm-bg); padding: 30px 26px; }
.jm-stat strong { display: block; font: 900 clamp(2.2rem, 4vw, 3.4rem)/1 var(--jm-display); font-stretch: 125%; color: var(--jm-accent); margin-bottom: 12px; }
.jm-stat span { color: var(--jm-muted); }

.jm-chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jm-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--jm-line-2); font: 500 .78rem/1 var(--jm-mono); text-transform: uppercase; letter-spacing: .04em; }
.jm-chips .jm-ico { color: var(--jm-accent); }

.jm-marquee { overflow: hidden; border-block: 1px solid var(--jm-line); padding: 22px 0; background: var(--jm-bg); }
.jm-marquee-track { display: flex; gap: 34px; width: max-content; animation: jm-marq 38s linear infinite; align-items: center; }
.jm-marquee span { font: 800 clamp(1.4rem, 3vw, 2.4rem)/1 var(--jm-display); font-stretch: 125%; text-transform: uppercase; white-space: nowrap; }
.jm-marquee span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1px var(--jm-text); }
.jm-marquee i { color: var(--jm-accent); font-style: normal; font-size: 1.4rem; }
.jm-marquee:hover .jm-marquee-track { animation-play-state: paused; }
@keyframes jm-marq { to { transform: translateX(-50%); } }

.jm-cta {
	position: relative; overflow: hidden; text-align: center;
	width: min(100% - 48px, var(--wrap)); margin: clamp(50px, 8vw, 100px) auto;
	padding: clamp(50px, 8vw, 100px) 24px;
	border: 1px solid var(--jm-line-2);
	background: var(--jm-surface);
}
.jm-cta-glow { position: absolute; inset: -40%; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--jm-accent) 30%, transparent), transparent 55%); animation: jm-breathe 6s ease-in-out infinite; pointer-events: none; }
@keyframes jm-breathe { 50% { transform: scale(1.12); opacity: .7; } }
.jm-cta h2 { position: relative; text-transform: uppercase; font-size: clamp(2rem, 5.5vw, 4.4rem); margin: 0 auto 18px; max-width: 16ch; }
.jm-cta p { position: relative; color: var(--jm-muted); max-width: 50ch; margin: 0 auto 30px; }
.jm-cta .jm-btns { position: relative; justify-content: center; }

.jm-contact-info { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* Sites list */
.jm-sites { margin-top: 30px; }
.jm-sites-bar { display: grid; grid-template-columns: 2fr 1fr 1fr .7fr auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.jm-sites-count { color: var(--jm-accent); white-space: nowrap; padding-bottom: 14px; }
.jm-table-wrap { overflow-x: auto; border: 1px solid var(--jm-line); }
.jm-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 760px; }
.jm-table th { text-align: left; font: 500 .7rem/1 var(--jm-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--jm-muted); padding: 16px; border-bottom: 1px solid var(--jm-line-2); background: var(--jm-surface); }
.jm-table td { padding: 15px 16px; border-bottom: 1px solid var(--jm-line); vertical-align: middle; }
.jm-table tbody tr { transition: background .2s; }
.jm-table tbody tr:hover { background: color-mix(in srgb, var(--jm-accent) 5%, transparent); }
.jm-table td small { display: block; color: var(--jm-hot); margin-top: 3px; font-size: .66rem; }
.jm-table .num { font-family: var(--jm-mono); }
.jm-table .act { text-align: right; white-space: nowrap; }
.jm-price { font-family: var(--jm-mono); margin-right: 10px; color: var(--jm-accent); }
.jm-table tr.is-off { display: none; }
.jm-empty { color: var(--jm-muted); }

/* Forms */
.jm-field { display: flex; flex-direction: column; gap: 8px; }
.jm-field > span { color: var(--jm-muted); font-size: .68rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="number"], input[type="tel"], input[type="password"], select, textarea {
	width: 100%; padding: 13px 14px; background: var(--jm-surface); color: var(--jm-text);
	border: 1px solid var(--jm-line-2); border-radius: 0; font: 500 .95rem var(--jm-body);
	transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--jm-muted) 50%), linear-gradient(135deg, var(--jm-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--jm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jm-accent) 18%, transparent); }
.jm-form { margin-top: 10px; }
.jm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.jm-field.is-wide { grid-column: 1 / -1; }
.jm-hp { position: absolute; left: -9999px; }
.jm-alert { display: flex; gap: 10px; align-items: center; padding: 14px 16px; margin-bottom: 18px; border: 1px solid; font-weight: 600; }
.jm-alert.is-ok { border-color: var(--jm-accent); color: var(--jm-accent); }
.jm-alert.is-err { border-color: var(--jm-hot); color: var(--jm-hot); }
.jm-searchform { display: flex; gap: 8px; }
.jm-search-again { padding-top: 30px; max-width: 600px; }

/* ---------- Blog ---------- */
.jm-blog { padding: clamp(40px, 6vw, 80px) 0; }
.jm-blog.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; }
.jm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.has-sidebar .jm-posts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.jm-card { background: var(--jm-surface); border: 1px solid var(--jm-line); display: flex; flex-direction: column; transition: border-color .3s, transform .4s var(--ease); }
.jm-card:hover { border-color: color-mix(in srgb, var(--jm-accent) 45%, transparent); transform: translateY(-4px); }
.jm-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--jm-surface-2); position: relative; }
.jm-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.jm-card:hover .jm-card-media img { transform: scale(1.05); }
.jm-card-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem !important; color: var(--jm-line-2); background-image: linear-gradient(var(--jm-line) 1px, transparent 1px), linear-gradient(90deg, var(--jm-line) 1px, transparent 1px); background-size: 32px 32px; }
.jm-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.jm-meta { color: var(--jm-muted); display: block; margin-bottom: 12px; }
.jm-card-title { font-size: 1.3rem; text-transform: none; }
.jm-card-title a { text-decoration: none; }
.jm-card-body p { color: var(--jm-muted); font-size: .95rem; }
.jm-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--jm-accent); text-decoration: none; }
.jm-pagination { margin-top: 40px; }
.jm-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.jm-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--jm-line-2); text-decoration: none; font-family: var(--jm-mono); }
.jm-pagination .page-numbers.current, .jm-pagination .page-numbers:hover { background: var(--jm-accent); color: var(--jm-ink); border-color: var(--jm-accent); }
.jm-sidebar .widget { margin-bottom: 36px; padding-bottom: 30px; border-bottom: 1px solid var(--jm-line); }
.widget-title { font: 600 .78rem/1 var(--jm-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--jm-muted); }
.widget-title .mono { color: var(--jm-accent); }
.jm-sidebar ul { list-style: none; padding: 0; margin: 0; }
.jm-sidebar li { padding: 8px 0; border-bottom: 1px dashed var(--jm-line); }
.jm-sidebar a { text-decoration: none; }
.jm-single-meta { display: flex; gap: 22px; padding-top: 30px; color: var(--jm-muted); }
.jm-single-media { margin-top: 30px; }
.jm-single-media img { width: 100%; display: block; border: 1px solid var(--jm-line); }
.jm-tags a { display: inline-block; padding: 6px 10px; border: 1px solid var(--jm-line-2); text-decoration: none; margin: 0 4px 6px 0; }
.jm-postnav { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0; border-top: 1px solid var(--jm-line); }
.jm-postnav a { text-decoration: none; }
.jm-comments { max-width: 820px; padding-bottom: 60px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-bottom: 1px solid var(--jm-line); padding: 20px 0; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-form p { display: flex; flex-direction: column; gap: 6px; }
.comment-form .comment-form-cookies-consent { flex-direction: row; }

/* ---------- 404 ---------- */
.jm-404 { position: relative; min-height: calc(100svh - var(--top)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; overflow: hidden; }
.jm-404-big { position: relative; font-size: clamp(7rem, 26vw, 20rem); line-height: .85; font-weight: 900; font-stretch: 125%; color: var(--jm-accent); margin: 0 0 20px; text-shadow: 0 0 80px color-mix(in srgb, var(--jm-accent) 40%, transparent); }
.jm-404-big::before, .jm-404-big::after { content: attr(data-text); position: absolute; inset: 0; mix-blend-mode: screen; }
.jm-404-big::before { color: var(--jm-hot); animation: jm-glitch 2.4s infinite steps(1); clip-path: inset(10% 0 60% 0); }
.jm-404-big::after { color: #2ee6ff; animation: jm-glitch 1.9s infinite reverse steps(1); clip-path: inset(55% 0 15% 0); }
@keyframes jm-glitch { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(4px, 3px); } }
.jm-404 p { color: var(--jm-muted); }

/* ---------- Footer ---------- */
.jm-footer { position: relative; margin-left: var(--rail); border-top: 1px solid var(--jm-line); padding-bottom: 26px; overflow: hidden; }
.jm-footer-big { overflow: hidden; border-bottom: 1px solid var(--jm-line); }
.jm-footer-big span { display: block; text-align: center; white-space: nowrap; font: 900 clamp(2.4rem, 10vw, 11rem)/.9 var(--jm-display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 1px var(--jm-line-2); padding: 30px 0 10px; transition: color .6s, -webkit-text-stroke-color .6s; }
.jm-footer-big:hover span { color: var(--jm-accent); -webkit-text-stroke-color: var(--jm-accent); }
.jm-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 40px; }
.jm-footer h4 { color: var(--jm-accent); margin-bottom: 18px; }
.jm-footer-about p { color: var(--jm-muted); margin: 18px 0; max-width: 40ch; font-size: .95rem; }
.jm-footer-menu { list-style: none; padding: 0; margin: 0; }
.jm-footer-menu a { display: inline-block; padding: 6px 0; text-decoration: none; color: var(--jm-muted); transition: color .2s, transform .3s var(--ease); }
.jm-footer-menu a:hover { color: var(--jm-accent); transform: translateX(4px); }
.jm-footer p { color: var(--jm-muted); }
.jm-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--jm-line); color: var(--jm-muted); flex-wrap: wrap; }
.jm-footer-bottom a { text-decoration: none; }
.jm-social { display: flex; gap: 8px; flex-wrap: wrap; }
.jm-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--jm-line-2); color: var(--jm-text); transition: background .2s, color .2s, border-color .2s; }
.jm-social a:hover { background: var(--jm-accent); color: var(--jm-ink); border-color: var(--jm-accent); }

/* ---------- Scroll reveal (inner pages: soft) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption { color: var(--jm-muted); font-size: .85rem; margin-top: 8px; }
.sticky .jm-card { border-color: var(--jm-accent); }
.bypostauthor { }
.gallery-caption { }
.has-accent-color { color: var(--jm-accent) !important; }
.has-accent-background-color { background-color: var(--jm-accent) !important; color: var(--jm-ink); }
.has-hot-color { color: var(--jm-hot) !important; }
.has-hot-background-color { background-color: var(--jm-hot) !important; }
.has-bg-background-color { background-color: var(--jm-bg) !important; }
.has-surface-background-color { background-color: var(--jm-surface) !important; }
.has-text-color { color: var(--jm-text); }
.has-muted-color { color: var(--jm-muted) !important; }

/* Elementor */
.jm-elementor-page, .jm-fullwidth, .jm-home-content.is-elementor { width: 100%; }
.elementor-page .jm-main { overflow-x: clip; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.jm-footer-grid { grid-template-columns: 1fr 1fr; }
	.jm-sites-bar { grid-template-columns: 1fr 1fr; }
	.jm-hud { display: none; }
	.jm-top-actions { margin-left: auto !important; }
}
@media (max-width: 1023px) {
	body { --rail: 0px; --top: 64px; }
	.jm-rail { display: none; }
	.jm-burger { display: inline-grid; }
	.jm-top-cta { display: none; }
	.jm-top-in { padding: 0 18px; }
	body:not(.no-rail) .jm-top .jm-logo .jm-logo-mark { display: grid; }
	.jm-blog.has-sidebar { grid-template-columns: 1fr; }
	.jm-top-links { display: none; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.jm-wrap, .jm-section, .jm-cta { width: calc(100% - 32px); }
	.jm-entry > *:not(.alignfull):not(.alignwide):not(.jm-section):not(.wp-block-shortcode):not(.jm-cta):not(.jm-marquee) { width: calc(100% - 32px); }
	.jm-form-grid { grid-template-columns: 1fr; }
	.jm-footer-grid { grid-template-columns: 1fr; gap: 30px; }
	.jm-services { grid-template-columns: 1fr; }
	.jm-logo-word { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ---------- Testimonials ---------- */
.jm-testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 34px; }
.jm-testi { position: relative; margin: 0; padding: 30px 26px 24px; background: var(--jm-surface); border: 1px solid var(--jm-line); display: flex; flex-direction: column; }
.jm-testi-q { position: absolute; top: 6px; right: 18px; font: 900 5rem/1 var(--jm-display); color: var(--jm-accent); opacity: .25; }
.jm-testi blockquote { margin: 0 0 22px; padding: 0; border: 0; font-size: 1rem; color: var(--jm-text); }
.jm-testi figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.jm-testi figcaption img, .jm-testi-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.jm-testi-av { display: grid; place-items: center; background: var(--jm-accent); color: var(--jm-ink); font: 900 1rem var(--jm-display); }
.jm-testi strong { display: block; }
.jm-testi small { color: var(--jm-muted); font-size: .64rem; }

/* Sub-page list on parent pages (e.g. Services) */
.jm-children { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.jm-children a { padding: 10px 14px; border: 1px solid var(--jm-line-2); text-decoration: none; font: 600 .74rem/1 var(--jm-mono); text-transform: uppercase; letter-spacing: .05em; }
.jm-children a:hover { border-color: var(--jm-accent); color: var(--jm-accent); }

/* ---------- Header: client login / dashboard ---------- */
.jm-client-link { display: inline-flex; align-items: center; height: 42px; padding: 0 14px; border: 1px solid var(--jm-line-2); text-decoration: none; color: var(--jm-text); font-size: .68rem; white-space: nowrap; transition: border-color .2s, color .2s; }
.jm-client-link:hover { border-color: var(--jm-accent); color: var(--jm-accent); }
@media (max-width: 1023px) { .jm-top .jm-client-link { display: none; } }

/* ---------- Marketplace inside pages: use the wide container ---------- */
.jm-entry > .jmr, .jm-entry > .jmr-dash, .jm-entry > .jmr-modal.jmr-inline { width: min(100% - 48px, var(--wrap)) !important; margin-inline: auto; }
.jm-entry > style + .jmr, .jm-entry > .jmr { margin-top: 10px; }
@media (max-width: 640px) { .jm-entry > .jmr, .jm-entry > .jmr-dash, .jm-entry > .jmr-modal.jmr-inline { width: calc(100% - 24px) !important; } }

/* ---------- Home: marketplace preview ---------- */
.jm-mp { margin-top: 36px; }
.jm-mp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--jm-line); border: 1px solid var(--jm-line); margin-bottom: 18px; }
.jm-mp-stats > div { background: var(--jm-bg); padding: 22px 20px; min-width: 0; }
.jm-mp-stats strong { display: block; font: 900 clamp(1.7rem, 3.2vw, 2.7rem)/1 var(--jm-display); font-stretch: var(--jm-display-stretch); color: var(--jm-accent); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jm-mp-stats > div:nth-child(even) strong { color: var(--jm-text); }
.jm-mp-stats span { color: var(--jm-muted); font-size: .64rem; }
.jm-mp-list { border: 1px solid var(--jm-line); }
.jm-mp-head, .jm-mp-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) .6fr .6fr .8fr .9fr; gap: 12px; align-items: center; padding: 0 18px; }
.jm-mp-head { height: 44px; color: var(--jm-muted); font-size: .62rem; background: var(--jm-surface); border-bottom: 1px solid var(--jm-line-2); }
.jm-mp-head span:not(:first-child):not(:nth-child(2)) { text-align: center; }
.jm-mp-row { min-height: 64px; text-decoration: none; color: var(--jm-text); border-bottom: 1px solid var(--jm-line); transition: background .2s; position: relative; }
.jm-mp-row:last-child { border-bottom: 0; }
.jm-mp-row::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--jm-accent); transform: scaleY(0); transition: transform .25s var(--ease); }
.jm-mp-row:hover { background: color-mix(in srgb, var(--jm-accent) 5%, transparent); color: var(--jm-text); }
.jm-mp-row:hover::after { transform: scaleY(1); }
.jm-mp-site { display: flex; align-items: center; gap: 12px; min-width: 0; }
.jm-mp-site i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--jm-accent); color: var(--jm-ink); font: 900 .9rem var(--jm-display); font-style: normal; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.jm-mp-site b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-mp-ctry { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .9rem; }
.jm-mp-ctry em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-mp-ctry .jmr-flag { flex: none; width: 22px; height: auto; box-shadow: 0 0 0 1px var(--jm-line-2); }
.jm-mp-m, .jm-mp-price { text-align: center; font-family: var(--jm-mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.jm-mp-price b { color: var(--jm-accent); white-space: nowrap; }
.jm-mp-price small { display: block; color: var(--jm-muted); font-size: .58rem; margin-top: 2px; }
.jm-blur { filter: blur(6px); user-select: none; display: inline-block; }
.jm-mp-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.jm-mp-foot .mono { color: var(--jm-muted); }
@media (max-width: 900px) {
	.jm-mp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jm-mp-head { display: none; }
	.jm-mp-row { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 14px 16px; row-gap: 12px; }
	.jm-mp-site { grid-column: 1 / -1; }
	.jm-mp-ctry { grid-column: 1 / -1; }
	.jm-mp-m, .jm-mp-price { text-align: left; }
	.jm-mp-m::before, .jm-mp-price::before { content: attr(data-l); display: block; font: 500 .58rem var(--jm-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--jm-muted); margin-bottom: 3px; }
}

/* Long words in big headings never push the page sideways */
.jm-hero-title, .is-style-jm-display, .jm-cta h2, .jm-404-big { overflow-wrap: normal; max-width: 100%; }
.jm-hero .jm-wrap, .jm-section, .jm-cta { min-width: 0; }
.jm-hero-title { text-wrap: balance; }
