/* JMGxMedia site. Brand system: brand/BRAND.md and brand/final/tokens.css (Crossbrace).
   Dark showcase theme: Night, Stone, Copper light. One light band (prices) in Stone.
   Motion lives in assets/js/site.js; this file is complete and readable without it. */

/* ---------- fonts (SIL OFL 1.1, self-hosted, Latin subset; see assets/fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-italic-var.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 600;
  font-stretch: 100% 112%;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens (brand palette; semantic names below) ---------- */
:root {
  --jx-navy: #1B2E4B;
  --jx-copper: #A5571F;
  --jx-copper-deep: #8A4819;
  --jx-copper-light: #E8A06A;
  --jx-copper-pale: #F0B78C;
  --jx-stone: #F4F0EA;
  --jx-ink: #161A21;
  --jx-slate: #5A616C;
  --jx-slate-light: #A3AAB5;
  --jx-night: #0E141D;
  --jx-night-raised: #16202C;
  --jx-night-deep: #0A0F16;

  --bg: var(--jx-night);
  --surface: var(--jx-night-raised);
  --text: var(--jx-stone);
  --muted: var(--jx-slate-light);
  --accent: var(--jx-copper-light);
  --accent-hover: var(--jx-copper-pale);
  --line: rgba(244, 240, 234, .14);
  --line-strong: rgba(244, 240, 234, .26);
  --field: #2A3646;
  --focus: var(--jx-copper-light);

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.0625rem;
  --step-2: 1.25rem;
  --step-3: 1.625rem;
  --step-4: 2.125rem;
  --display-h2: clamp(2.25rem, 1.35rem + 3.4vw, 4.5rem);
  --display-h1: clamp(3rem, 1.2rem + 6.6vw, 7rem);

  --gutter: clamp(16px, 4.6vw, 72px);
  --wrap: 1360px;
  --section: clamp(88px, 11vw, 168px);
  --nav-h: 76px;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); }
body { margin: 0; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

/* ---------- base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-1);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--jx-copper-light); color: var(--jx-night); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: var(--display-h2); line-height: 1.04; letter-spacing: -0.018em; }
h3 { font-size: var(--step-3); line-height: 1.15; }
p { text-wrap: pretty; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: var(--gutter); top: 10px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--jx-stone); color: var(--jx-night); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip:focus { transform: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* film grain: one tiled still, no blending (cheap); it jitters only when motion is allowed */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background: url("/assets/img/grain.png") repeat;
  background-size: 180px 180px;
  opacity: .07;
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .is-ready .grain { animation: grain 1s steps(5) infinite; }
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}
[tabindex="-1"]:focus { outline: none; }

/* ---------- buttons and links ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: var(--radius);
  font: 600 var(--step-1)/1 var(--font-sans); font-stretch: 104%; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), box-shadow .35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn > span { position: relative; z-index: 1; display: inline-block; }
.btn--primary { background: var(--jx-copper-light); color: var(--jx-night); box-shadow: 0 0 0 0 rgba(232, 160, 106, 0); overflow: hidden; }
.btn--primary::after {
  /* a copper sheen sweeps across on hover (copper tones only) */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 236, 218, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn--primary:hover { background: var(--jx-copper-pale); color: var(--jx-night); box-shadow: 0 10px 40px -12px rgba(232, 160, 106, .55); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:active { transform: translateY(1px) scale(.985); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { color: var(--text); border-color: var(--jx-stone); background: rgba(244, 240, 234, .06); }
.btn--sm { min-height: 44px; padding: 11px 18px; font-size: var(--step-0); }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding-block: 6px;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform-origin: right; transform: scaleX(1); transition: transform .5s var(--ease-out);
}
.link-line:hover { color: var(--accent); }
.link-line:hover::after { transform-origin: left; animation: line-draw .7s var(--ease-out); }
@keyframes line-draw { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.link-line svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.link-line:hover svg { transform: translateY(2px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--nav-h);
  transition: transform .5s var(--ease-out), background-color .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(14, 20, 29, .82); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(1px)) {
  .nav.is-scrolled { background: rgba(14, 20, 29, .62); backdrop-filter: blur(16px) saturate(1.2); }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-solid { background: rgba(14, 20, 29, .94); border-bottom-color: var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; flex: none; padding-block: 8px; }
.brand img { width: 168px; height: auto; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { position: relative; color: var(--text); text-decoration: none; font-size: var(--step-0); font-weight: 500; padding-block: 8px; opacity: .82; transition: opacity .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { flex: none; }
.menu-btn, .menu { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 48px); padding-bottom: clamp(28px, 4vw, 52px);
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--jx-night-deep); }
.hero-media picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 66% 42%; transform-origin: 64% 46%; }
.hero-leak {
  /* a warm light leak, drawn with gradients (no image, never the LCP) */
  position: absolute; right: -12%; top: -28%; width: 78%; height: 100%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(240, 183, 140, .30), rgba(232, 160, 106, .12) 45%, rgba(165, 87, 31, 0) 100%);
  mix-blend-mode: screen;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 22, .7) 0%, rgba(10, 15, 22, 0) 22%),
    linear-gradient(90deg, rgba(10, 15, 22, .9) 0%, rgba(10, 15, 22, .62) 34%, rgba(10, 15, 22, .08) 64%, rgba(10, 15, 22, 0) 100%),
    linear-gradient(0deg, var(--jx-night) 0%, rgba(14, 20, 29, .55) 26%, rgba(14, 20, 29, 0) 52%);
}
.hero-inner { position: relative; }
.hero-title { font-weight: 500; }
.hero-display {
  display: block; font-size: var(--display-h1); line-height: .98; letter-spacing: -0.025em;
  max-width: 12ch; color: var(--jx-stone);
}
.hero-kicker {
  display: block; margin-top: clamp(18px, 2vw, 28px);
  font-family: var(--font-sans); font-size: clamp(1.0625rem, .95rem + .45vw, 1.375rem); font-weight: 500;
  letter-spacing: 0; line-height: 1.3; color: var(--accent); max-width: 40ch; text-wrap: balance;
}
.hero-rule { height: 1px; margin-block: clamp(26px, 3.6vw, 48px); background: linear-gradient(90deg, var(--line-strong), rgba(244, 240, 234, .04)); transform-origin: left; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: end; }
.hero-lead { max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); color: rgba(244, 240, 234, .86); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hero-facts div { padding: 16px 16px 0 0; }
.hero-facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-facts dt { font-size: var(--step--1); color: var(--muted); letter-spacing: .01em; }
.hero-facts dd { margin-top: 6px; white-space: nowrap; font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + .7vw, 1.75rem); line-height: 1.1; font-variant-numeric: lining-nums; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(28px, 4vw, 56px); font-size: var(--step--1); color: var(--muted); }
.scroll-cue { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; flex: none; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: cue 2.4s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); } 70%, 100% { transform: translateY(350%); } }

@media (min-width: 900px) and (max-height: 820px) {
  .hero-display { font-size: clamp(3rem, 11vh, 6rem); }
  .hero-rule { margin-block: 22px; }
  .hero-meta { margin-top: 22px; }
}

/* ---------- sections ---------- */
main > section { position: relative; }
.section { padding-block: var(--section); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head p { color: var(--muted); max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); }
.lede { color: var(--muted); max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); }

/* split words (site.js wraps words; masks keep descenders) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- what we build: the assembling mockup ---------- */
.work { padding-block: var(--section); overflow: hidden; }
.work.is-pinned { min-height: 100vh; display: flex; align-items: center; padding-block: calc(var(--nav-h) + 16px) 24px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.work-copy h2 { max-width: 10ch; }
.work-copy .lede { margin-top: 28px; }
.work-points { margin-top: 32px; display: grid; gap: 14px; }
.work-points li { position: relative; padding-left: 28px; color: rgba(244, 240, 234, .86); }
.work-points li::before { content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px; background: url("/assets/img/brace-bullet.svg") center / contain no-repeat; }

.mk-stage { position: relative; container-type: inline-size; padding: 4.5cqi 0 7cqi; }
.mk-tag {
  position: absolute; left: 0; top: 0; z-index: 6;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: rgba(244, 240, 234, .08); border: 1px solid var(--line-strong);
  font-size: var(--step--1); color: var(--jx-stone); letter-spacing: .01em; line-height: 1.2;
}
.mk-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.mk-browser {
  --pp-sea: #0F4C5C; --pp-sand: #F3EDE2; --pp-gold: #E1A23A; --pp-ink: #14212B;
  position: relative; width: 88cqi; margin-left: 0; aspect-ratio: 16 / 10.4;
  border-radius: 1.4cqi; overflow: hidden; background: #fff; color: var(--pp-ink);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(244, 240, 234, .12);
  font-family: var(--font-sans); font-size: 1.25cqi; line-height: 1.4;
}
.mk-bar { display: flex; align-items: center; gap: .7cqi; height: 3.6cqi; padding: 0 1.6cqi; background: #EDEAE5; border-bottom: 1px solid #DDD8D0; }
.mk-bar i { width: .9cqi; height: .9cqi; border-radius: 50%; background: #CFC9C0; }
.mk-url { margin-left: 2cqi; flex: 1; max-width: 40cqi; height: 2.1cqi; border-radius: 2cqi; background: #fff; color: #6B6F75; font-size: 1.05cqi; display: flex; align-items: center; padding-left: 1.2cqi; font-style: normal; }
.mk-site { position: relative; height: calc(100% - 3.6cqi); background: var(--pp-sand); }
.mk-nav { display: flex; align-items: center; gap: 2.2cqi; padding: 1.8cqi 3.2cqi; background: #fff; }
.mk-logo { display: flex; align-items: center; gap: .8cqi; font-weight: 600; font-size: 1.45cqi; color: var(--pp-sea); letter-spacing: -.01em; }
.mk-logo svg { width: 2.2cqi; height: 2.2cqi; }
.mk-links { display: flex; gap: 2cqi; margin-left: auto; color: #4A5560; font-size: 1.15cqi; }
.mk-call-btn { padding: .9cqi 1.6cqi; border-radius: .6cqi; background: var(--pp-gold); color: var(--pp-ink); font-weight: 600; font-size: 1.15cqi; }
.mk-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.6cqi; padding: 3.4cqi 3.2cqi 2.6cqi; align-items: center; }
.mk-h { font-family: var(--font-display); font-weight: 600; font-size: 3.3cqi; line-height: 1.04; letter-spacing: -.02em; color: var(--pp-sea); }
.mk-p { margin-top: 1.4cqi; color: #3D4852; font-size: 1.3cqi; max-width: 34ch; }
.mk-btns { display: flex; gap: 1cqi; margin-top: 2cqi; }
.mk-btns span { padding: 1cqi 1.7cqi; border-radius: .6cqi; font-weight: 600; font-size: 1.15cqi; }
.mk-btns span:first-child { background: var(--pp-sea); color: #fff; }
.mk-btns span:last-child { border: 1px solid var(--pp-sea); color: var(--pp-sea); }
.mk-img { position: relative; aspect-ratio: 4 / 3.3; border-radius: 1cqi; overflow: hidden; background: #1a2026; }
.mk-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-badge { position: absolute; left: 1cqi; bottom: 1cqi; padding: .6cqi 1cqi; border-radius: .5cqi; background: rgba(255, 255, 255, .92); font-size: 1cqi; font-weight: 600; color: var(--pp-sea); }
.mk-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2cqi; padding: 0 3.2cqi; }
.mk-tile { background: #fff; border-radius: .9cqi; padding: 1.5cqi 1.4cqi; border: 1px solid #E6DFD3; }
.mk-tile svg { width: 2.3cqi; height: 2.3cqi; color: var(--pp-sea); }
.mk-tile b { display: block; margin-top: .9cqi; font-size: 1.25cqi; font-weight: 600; }
.mk-tile span { display: block; margin-top: .3cqi; font-size: 1.02cqi; color: #5E6870; }
.mk-areas { display: flex; flex-wrap: wrap; gap: .7cqi; padding: 2cqi 3.2cqi 0; align-items: center; font-size: 1.05cqi; color: #4A5560; }
.mk-areas span { padding: .5cqi 1cqi; border-radius: 2cqi; background: #fff; border: 1px solid #E6DFD3; }

.mk-phone {
  position: absolute; right: 0; bottom: 0; z-index: 4; width: 23cqi; aspect-ratio: 9 / 18.6;
  border-radius: 3.2cqi; padding: .9cqi; background: #0A0D12;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(244, 240, 234, .16);
}
.mk-screen { position: relative; height: 100%; border-radius: 2.5cqi; overflow: hidden; background: var(--mk-sand, #F3EDE2); color: #14212B; font-size: 1.1cqi; }
.mk-screen .ms-top { display: flex; align-items: center; justify-content: space-between; padding: 2.6cqi 1.6cqi 1.2cqi; background: #fff; font-weight: 600; color: #0F4C5C; font-size: 1.15cqi; }
.mk-screen .ms-top svg { width: 1.8cqi; height: 1.8cqi; }
.ms-img { margin: 1.2cqi; aspect-ratio: 4 / 3; border-radius: 1cqi; overflow: hidden; }
.ms-img img { width: 100%; height: 100%; object-fit: cover; }
.ms-h { padding: 0 1.4cqi; font-family: var(--font-display); font-weight: 600; font-size: 2.05cqi; line-height: 1.05; color: #0F4C5C; letter-spacing: -.01em; }
.ms-lines { padding: 1.2cqi 1.4cqi; display: grid; gap: .6cqi; }
.ms-lines i { display: block; height: .7cqi; border-radius: 1cqi; background: #DDD5C8; }
.ms-lines i:nth-child(2) { width: 80%; }
.ms-lines i:nth-child(3) { width: 62%; }
.ms-bar { position: absolute; left: 1cqi; right: 1cqi; bottom: 1cqi; padding: 1.2cqi; border-radius: 1cqi; background: #0F4C5C; color: #fff; text-align: center; font-weight: 600; font-size: 1.2cqi; }

.mk-sum {
  position: absolute; left: 6cqi; bottom: 1cqi; z-index: 5; width: max(260px, 34cqi);
  padding: 1.8cqi 2cqi; border-radius: 1.4cqi;
  background: rgba(22, 32, 44, .94); color: var(--jx-stone);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
  font-size: max(12px, 1.25cqi); line-height: 1.45;
}
@supports (backdrop-filter: blur(1px)) { .mk-sum { background: rgba(22, 32, 44, .78); backdrop-filter: blur(14px); } }
.mk-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 1cqi; font-weight: 600; font-size: max(13px, 1.35cqi); }
.mk-sum-head span { font-weight: 500; font-size: max(11px, 1.05cqi); color: rgba(244, 240, 234, .8); }
.mk-sum p { margin-top: .9cqi; color: rgba(244, 240, 234, .86); }
.mk-sum-foot { display: flex; align-items: center; gap: .7cqi; margin-top: 1.1cqi; padding-top: 1cqi; border-top: 1px solid var(--line); color: var(--accent); font-size: max(11px, 1.1cqi); }
.mk-sum-foot svg { width: 1.5cqi; height: 1.5cqi; }

/* ---------- services ---------- */
.services { padding-block: var(--section); overflow: clip; }
.lit-glow {
  position: absolute; left: 0; top: 0; width: 720px; height: 720px; margin: -360px 0 0 -360px; z-index: 0;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(232, 160, 106, .12), rgba(232, 160, 106, .04) 55%, rgba(232, 160, 106, 0));
  transition: opacity .6s var(--ease-out);
}
.lit.is-lit .lit-glow { opacity: 1; }
.services .wrap { position: relative; z-index: 1; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.svc-aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.svc-aside .lede { margin-top: 24px; }
.svc-figure { position: relative; margin-top: clamp(32px, 4vw, 56px); aspect-ratio: 4 / 4.4; max-height: 52vh; width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.svc-figure img { width: 100%; height: 118%; object-fit: cover; transform-origin: center; }
.svc-list { border-bottom: 1px solid var(--line); }
.svc { position: relative; display: grid; grid-template-columns: clamp(96px, 11vw, 168px) minmax(0, 1fr); gap: 8px 32px; padding-block: clamp(28px, 3.2vw, 44px); }
.svc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(var(--ls, 1)); }
.svc-num { font-family: var(--font-display); font-size: clamp(2.75rem, 1.8rem + 2.8vw, 4.75rem); line-height: .9; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.03em; }
.svc-unit { display: block; margin-top: 10px; font-family: var(--font-sans); font-size: var(--step--1); color: var(--muted); letter-spacing: .01em; line-height: 1.3; }
.svc h3 { font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); }
.svc p { margin-top: 12px; color: rgba(244, 240, 234, .78); max-width: 52ch; }
.svc-own { margin-top: 32px; color: var(--muted); font-size: var(--step-0); }

/* ---------- steps (horizontal on wide screens) ---------- */
.steps { padding-top: var(--section); padding-bottom: var(--section); background: var(--jx-night-deep); overflow: hidden; }
.steps-pin { position: relative; }
.steps-viewport { position: relative; }
.steps-rail { position: relative; }
.steps-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.blueprint { display: none; position: absolute; left: -2%; top: -6%; width: 104%; height: 112%; pointer-events: none; z-index: 0; }
.blueprint .bp-brace { stroke: rgba(232, 160, 106, .3); }
.steps.is-h { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--nav-h) + 24px) 48px; }
.steps.is-h .blueprint { display: block; }
.steps.is-h .steps-rail { width: max-content; will-change: transform; }
.steps.is-h .steps-track { display: flex; gap: 20px; }
.steps.is-h .step { width: clamp(340px, 26vw, 420px); min-height: 400px; }
.steps.is-h .sec-head { margin-bottom: clamp(36px, 4vw, 56px); }
.blueprint path, .blueprint line, .blueprint rect { vector-effect: non-scaling-stroke; }
.step {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  min-height: 380px; padding: 32px 28px; border-radius: var(--radius-lg);
  background: rgba(22, 32, 44, .72); border: 1px solid var(--line);
}
.step-num { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 3vw, 6.5rem); line-height: .85; color: transparent; -webkit-text-stroke: 1px var(--jx-copper-light); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.step h3 { margin-top: auto; padding-top: 40px; font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); }
.step p { margin-top: 12px; color: rgba(244, 240, 234, .76); }
.step--note { background: linear-gradient(160deg, rgba(232, 160, 106, .16), rgba(22, 32, 44, .8) 60%); border-color: rgba(232, 160, 106, .35); }
.step--note .note-mark { width: 48px; height: 48px; }
.step--note h3 { color: var(--jx-stone); }

/* ---------- prices (the light band) ---------- */
.prices {
  --text: var(--jx-ink); --muted: var(--jx-slate); --line: #DDD6CC; --accent: var(--jx-copper); --focus: var(--jx-copper);
  padding-block: var(--section); background: var(--jx-stone); color: var(--jx-ink); color-scheme: light;
}
.prices h2 { color: var(--jx-navy); }
.prices a:not(.btn) { color: var(--jx-navy); }
.prices a:not(.btn):hover { color: var(--jx-copper); }
.price-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.plan {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 56px);
  background: var(--jx-night); color: var(--jx-stone);
  display: flex; flex-direction: column;
}
.plan-bg { position: absolute; inset: 0; z-index: 0; }
.plan-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.plan-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(14, 20, 29, .96) 0%, rgba(14, 20, 29, .82) 45%, rgba(14, 20, 29, .35) 100%); }
.plan > :not(.plan-bg) { position: relative; z-index: 1; }
.plan h3 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.25rem); }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: clamp(28px, 4vw, 48px); }
.plan-amount { font-family: var(--font-display); font-weight: 500; font-size: clamp(4.25rem, 2.6rem + 6vw, 8.5rem); line-height: .86; letter-spacing: -.035em; font-variant-numeric: lining-nums tabular-nums; }
.plan-per { color: var(--jx-slate-light); font-size: var(--step-2); }
.plan-terms { margin-top: 24px; max-width: 46ch; color: rgba(244, 240, 234, .84); }
.plan-year { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(244, 240, 234, .16); max-width: 46ch; color: rgba(244, 240, 234, .84); }
.plan-year strong { font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); color: var(--jx-stone); margin-right: 6px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-cta { padding-top: 36px; margin-top: auto; }
.rows { display: grid; align-content: start; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding-block: 26px; border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row h3 { font-size: var(--step-3); color: var(--jx-navy); }
.row .row-price { grid-column: auto; margin: 0; font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.375rem); line-height: 1; color: var(--jx-ink); text-align: right; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.row-price small { display: block; margin-top: 6px; font-family: var(--font-sans); font-size: var(--step--1); color: var(--jx-slate); }
.row p:not(.row-price) { grid-column: 1 / -1; color: var(--jx-slate); max-width: 52ch; font-size: var(--step-0); }
.price-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 64px; margin-top: clamp(40px, 5vw, 64px); color: var(--jx-slate); font-size: var(--step-0); }
.price-notes strong { color: var(--jx-ink); }
/* the Local Growth Plan's two guarantees (hub/modules/agency/facts.py GUARANTEES, word for word) */
.guarantees { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.guarantees h3 { font-size: var(--step-3); color: var(--jx-navy); }
.guarantees dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 64px; margin-top: 18px; }
.guarantees dt { font-family: var(--font-display); font-size: var(--step-2); color: var(--jx-ink); }
.guarantees dd { margin: 6px 0 0; max-width: 52ch; color: var(--jx-slate); font-size: var(--step-0); }
.guarantees > p { margin-top: 16px; color: var(--jx-slate); font-size: var(--step--1); }

/* ---------- company ---------- */
.company { padding-block: var(--section); overflow: hidden; }
.company-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.company-copy > p:first-of-type { margin-top: 24px; color: var(--muted); max-width: 52ch; }
.mission {
  margin-top: clamp(36px, 5vw, 64px); font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(2rem, 1.1rem + 3.2vw, 4.25rem); line-height: 1.08; letter-spacing: -.015em; color: var(--jx-stone); max-width: 18ch; text-wrap: balance;
}
.mission .mw { opacity: 1; transition: none; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.facts div { padding: 18px 18px 0 0; }
.facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts dt { font-size: var(--step--1); color: var(--muted); }
.facts dd { margin-top: 6px; font-size: var(--step-1); font-weight: 500; }
.company-mark { position: relative; justify-self: center; width: min(100%, 280px); }
.company-mark svg { width: 100%; height: auto; }
.company-mark .jx-lines path { stroke-width: 1.5; }

/* ---------- contact ---------- */
.contact { position: relative; padding-block: var(--section); overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg img { position: absolute; right: 0; top: 0; width: 72%; height: 100%; object-fit: cover; opacity: .45; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--jx-night) 28%, rgba(14, 20, 29, .7) 60%, rgba(14, 20, 29, .55)), linear-gradient(0deg, var(--jx-night), rgba(14, 20, 29, 0) 30%), linear-gradient(180deg, var(--jx-night), rgba(14, 20, 29, 0) 30%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 112px); align-items: start; }
.contact-aside .lede { margin-top: 24px; }
.trades { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.trades li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: var(--step-0); color: rgba(244, 240, 234, .9); }
.form {
  padding: clamp(24px, 3.6vw, 48px); border-radius: var(--radius-lg);
  background: rgba(22, 32, 44, .86); border: 1px solid var(--line);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .8);
}
@supports (backdrop-filter: blur(1px)) { .form { background: rgba(22, 32, 44, .7); backdrop-filter: blur(18px); } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label { font-size: var(--step-0); font-weight: 500; color: var(--jx-stone); }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--radius-sm);
  background: rgba(10, 15, 22, .72); border: 1px solid var(--field); color: var(--jx-stone);
  font-size: 1rem; line-height: 1.4;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #3A4A5E; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--jx-copper-light); box-shadow: 0 0 0 3px rgba(232, 160, 106, .22); background: rgba(10, 15, 22, .9); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 8px; }
.form-foot p { flex: 1 1 260px; font-size: var(--step--1); color: var(--muted); }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 112px) 32px; background: var(--jx-night-deep); border-top: 1px solid var(--line); }
.footer-brace { position: absolute; right: -6%; bottom: -30%; width: min(70vw, 900px); opacity: .045; pointer-events: none; }
.footer-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.footer-top img { width: 200px; }
.footer-legal { margin-top: 20px; max-width: 46ch; color: var(--muted); font-size: var(--step-0); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer-links a { color: var(--jx-stone); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(48px, 6vw, 88px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }

/* ---------- simple pages (privacy, terms, 404, form results) ---------- */
.page { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 120px)); padding-bottom: var(--section); }
.page .wrap { max-width: calc(820px + 2 * var(--gutter)); }
.page h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem); line-height: 1.02; letter-spacing: -.02em; }
.page h2 { font-size: var(--step-4); margin-top: 56px; }
.page p, .page li { margin-top: 16px; color: rgba(244, 240, 234, .84); max-width: 68ch; }
.page ul { list-style: disc; padding-left: 1.25em; }
.page li::marker { color: var(--accent); }
.page .updated { color: var(--muted); font-size: var(--step-0); }
.page .btn-row { margin-top: 40px; }

/* ---------- inner pages (services, service areas, guides) ----------
   Static and complete without scripts; assets/js/menu.js only opens the small-screen menu. */
.ip-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 112px)); padding-bottom: clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}
.ip-hero::before {
  content: ""; position: absolute; right: -18%; top: -40%; width: 80%; height: 130%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 160, 106, .16), rgba(232, 160, 106, .05) 50%, rgba(165, 87, 31, 0) 100%);
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--step--1); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.ip-kicker { display: block; margin-top: clamp(28px, 3vw, 40px); font-size: var(--step-0); font-weight: 500; letter-spacing: .02em; color: var(--accent); }
.ip-hero h1 { margin-top: 14px; font-size: clamp(2.5rem, 1.35rem + 4.3vw, 5.5rem); line-height: 1; letter-spacing: -.024em; max-width: 17ch; }
.ip-lead { margin-top: clamp(20px, 2.4vw, 32px); max-width: 60ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: rgba(244, 240, 234, .86); }
.ip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.ip-actions .btn svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.ip-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.ip-facts div { padding: 16px 16px 0 0; }
.ip-facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.ip-facts dt { font-size: var(--step--1); color: var(--muted); }
.ip-facts dd { margin-top: 6px; font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); line-height: 1.15; font-variant-numeric: lining-nums; }
.ip-meta { margin-top: 18px; font-size: var(--step--1); color: var(--muted); }

.ip-body { padding-block: clamp(56px, 7vw, 112px); }
.ip-grid { display: grid; grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem); line-height: 1.08; margin-top: clamp(48px, 6vw, 72px); max-width: 24ch; }
.prose h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); margin-top: 36px; }
.prose p, .prose li { color: rgba(244, 240, 234, .84); max-width: 68ch; }
.prose p { margin-top: 18px; }
.prose ul { margin-top: 18px; display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .32em; width: 15px; height: 15px; background: url("/assets/img/brace-bullet.svg") center / contain no-repeat; }
.prose ol { margin-top: 18px; display: grid; gap: 14px; counter-reset: ip; }
.prose ol > li { position: relative; padding-left: 44px; counter-increment: ip; }
.prose ol > li::before { content: counter(ip); position: absolute; left: 0; top: -.08em; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.prose li strong, .prose p strong { color: var(--jx-stone); }
.prose .note { margin-top: 28px; padding: 20px 24px; border-left: 2px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: rgba(22, 32, 44, .72); }
.prose .note p { margin-top: 0; }
.prose .note p + p { margin-top: 10px; }
.prose table { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: var(--step-0); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--jx-stone); }
.prose td { color: rgba(244, 240, 234, .8); }
.prose td:last-child, .prose th:last-child { padding-right: 0; }
.prose .num { white-space: nowrap; font-family: var(--font-display); font-size: 1.125rem; color: var(--jx-stone); }

.aside { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 16px; }
.aside-card { padding: clamp(24px, 2.6vw, 32px); border-radius: var(--radius-lg); background: rgba(22, 32, 44, .72); border: 1px solid var(--line); }
.aside-card--lit { background: linear-gradient(160deg, rgba(232, 160, 106, .16), rgba(22, 32, 44, .82) 62%); border-color: rgba(232, 160, 106, .35); }
.aside-card h2 { font-size: var(--step-3); line-height: 1.15; }
.aside-card p { margin-top: 12px; color: rgba(244, 240, 234, .8); font-size: var(--step-0); }
.aside-phone { display: inline-block; margin-top: 16px; font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 1; color: var(--jx-stone); text-decoration: none; font-variant-numeric: lining-nums; letter-spacing: -.01em; }
.aside-phone:hover { color: var(--accent); }
.aside-card .btn { width: 100%; margin-top: 20px; }
.aside-card .btn + .btn { margin-top: 10px; }
.aside-prices { margin-top: 8px; }
.aside-prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.aside-prices div:first-child { border-top: 0; }
.aside-prices dt { font-size: var(--step-0); color: rgba(244, 240, 234, .86); }
.aside-prices dd { font-family: var(--font-display); font-size: var(--step-2); white-space: nowrap; font-variant-numeric: lining-nums; }
.aside-prices dd small { font-family: var(--font-sans); font-size: var(--step--1); color: var(--muted); margin-left: 4px; }
.aside-small { font-size: var(--step--1) !important; color: var(--muted) !important; }

.ip-section { padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line); }
.ip-section--deep { background: var(--jx-night-deep); }
.ip-section h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); max-width: 22ch; }
.ip-section .lede { margin-top: 18px; }
.ip-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.ip-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 100%;
  padding: 26px 24px 24px; border-radius: var(--radius-lg); background: rgba(22, 32, 44, .72); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out), transform .4s var(--ease-out);
}
.ip-card:hover { color: var(--text); border-color: rgba(232, 160, 106, .55); background: rgba(27, 46, 75, .5); transform: translateY(-2px); }
.ip-card b { font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); line-height: 1.15; }
.ip-card span { color: rgba(244, 240, 234, .76); font-size: var(--step-0); }
.ip-card em { margin-top: auto; padding-top: 8px; font-style: normal; font-size: var(--step--1); color: var(--accent); }

.faq { margin-top: clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--line); max-width: 920px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0;
  font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent); }
.faq details > div { padding-bottom: 24px; }
.faq details p { color: rgba(244, 240, 234, .82); max-width: 68ch; }
.faq details p + p { margin-top: 12px; }

.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: var(--step--1); color: var(--muted); }

/* footer link columns (home and inner pages) */
.footer-cols { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.footer-cols h2 { font-family: var(--font-sans); font-size: var(--step--1); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.footer-cols ul { margin-top: 14px; display: grid; gap: 8px; }
.footer-cols a { color: rgba(244, 240, 234, .86); text-decoration: none; font-size: var(--step-0); }
.footer-cols a:hover { color: var(--accent); text-decoration: underline; }
.footer-phone { margin-top: 14px; }
.footer-phone a { font-family: var(--font-display); font-size: var(--step-3); color: var(--jx-stone); text-decoration: none; }
.footer-phone a:hover { color: var(--accent); }

/* small-screen call bar (inner pages) */
.callbar { display: none; }

@media (max-width: 1100px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .ip-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
  .ip-facts { grid-template-columns: 1fr 1fr; }
  .ip-facts div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .ip-actions .btn { flex: 1 1 100%; }
  .nav.nav--inner.is-solid .nav-cta { display: none; }
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(14, 20, 29, .94); border-top: 1px solid var(--line);
  }
  .callbar .btn { min-height: 48px; padding: 10px 12px; font-size: var(--step-0); }
  .has-callbar .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; }
  .prose th, .prose td { padding-right: 10px; }
}

/* ---------- motion: start states, only when scripts run and motion is allowed ----------
   site.js adds html.is-ready as soon as it runs. If it never arrives, the failsafe animation shows
   everything after 2.5 s (animations outrank inline styles, so it is switched off once ready). */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .has-intro .hero-kicker, .has-intro .hero-foot, .has-intro .hero-meta, .has-intro .nav { opacity: 0; animation: jx-failsafe .6s 2.5s forwards; }
  .is-ready .hero-kicker, .is-ready .hero-foot, .is-ready .hero-meta, .is-ready .nav { animation: none; }
  .no-motion .hero-kicker, .no-motion .hero-foot, .no-motion .hero-meta, .no-motion .nav { opacity: 1; animation: none; }
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .has-intro .hero-display { opacity: 0; animation: jx-failsafe .6s 2.5s forwards; }
  .is-ready .hero-display { animation: none; }
  .no-motion .hero-display { opacity: 1; animation: none; }
}
@keyframes jx-failsafe { to { opacity: 1; } }

/* Lenis (1.3.29, MIT) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .scroll-cue::after { display: none; }
  .btn--primary::after { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 22px; }
  .steps-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { min-height: 300px; }
}
@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-cta { display: none; }
  .menu { display: flex; }
  .brand img { width: 140px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 10px 14px;
    background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--jx-stone); font-size: var(--step-0); font-weight: 500; cursor: pointer;
  }
  .menu-btn .bars { position: relative; width: 16px; height: 10px; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out); }
  .menu-btn .bars::before { top: 0; }
  .menu-btn .bars::after { bottom: 0; }
  .menu-btn[aria-expanded="true"] .bars::before { transform: translateY(4.25px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-4.25px) rotate(-45deg); }
  .menu {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 79; padding: 32px var(--gutter) 40px;
    background: var(--jx-night); flex-direction: column; gap: 6px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s; }
  .menu a:not(.btn) { font-family: var(--font-display); font-size: 2.25rem; line-height: 1.25; color: var(--jx-stone); text-decoration: none; padding-block: 6px; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 28px; width: 100%; }

  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-img { object-position: 64% 40%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 15, 22, .75) 0%, rgba(10, 15, 22, 0) 18%),
      linear-gradient(0deg, var(--jx-night) 0%, rgba(14, 20, 29, .92) 42%, rgba(14, 20, 29, .35) 68%, rgba(14, 20, 29, .1) 100%);
  }
  .hero-display { max-width: 9ch; }
  .hero-foot { grid-template-columns: 1fr; gap: 24px; }
  .hero-rule { margin-block: 22px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts div { padding: 12px 10px 0 0; }
  .hero-facts div + div { padding-left: 10px; }
  .hero-meta { margin-top: 24px; }

  .sec-head, .work-grid, .svc-grid, .price-grid, .company-grid, .contact-grid { grid-template-columns: 1fr; }
  .sec-head { margin-bottom: 40px; }
  .work-copy h2 { max-width: 14ch; }
  .mk-stage { margin-top: 8px; padding: 12cqi 0 0; }
  .mk-tag { right: 0; }
  .mk-browser { width: 100cqi; }
  .mk-phone { width: 27cqi; right: 2cqi; top: 36cqi; bottom: auto; }
  .mk-sum { position: relative; left: auto; bottom: auto; width: 66cqi; margin: -9cqi 0 0 3cqi; font-size: 13px; padding: 14px 16px; border-radius: 12px; }
  .mk-sum-head { font-size: 14px; }
  .mk-sum-head span, .mk-sum-foot { font-size: 12px; }
  .mk-sum-foot svg { width: 14px; height: 14px; }

  .svc-aside { position: static; }
  .svc-figure { aspect-ratio: 16 / 10; max-height: none; }
  .svc { grid-template-columns: 84px minmax(0, 1fr); gap: 6px 18px; }

  .price-notes { grid-template-columns: 1fr; }
  .guarantees dl { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .company-mark { width: 180px; justify-self: start; order: -1; }
  .contact-bg img { width: 100%; opacity: .3; }
  .pair { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .steps-track { grid-template-columns: 1fr; gap: 14px; }
  .step { min-height: 0; padding: 26px 22px; }
  .step h3 { padding-top: 24px; }
  .step-num { font-size: 3.5rem; }
  .hero-facts dd { font-size: 1.125rem; white-space: normal; }
  .hero-facts dt { min-height: 2.6em; }
}
@media (max-width: 380px) {
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}
@media (max-width: 899px) {
  .nav.is-solid .nav-cta { display: inline-flex; margin-left: auto; }
}
