/* ==========================================================
   EsquireTec — site.css
   Hand-written, no framework. Edit tokens in :root.
   ========================================================== */

/* Self-hosted fonts (SIL Open Font License). "optional" = no late re-draw of
   text, so the page never jumps while fonts load. Preloaded in <head>. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: optional;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700 800; font-display: optional;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --red: #E53935;
  --red-2: #FF5A4E;
  --red-soft: rgba(229, 57, 53, .1);
  --ink: #0A0F1F;
  --ink-2: #111833;
  --ink-3: #1B2446;
  --text: #0F172A;
  --muted: #51607A;
  --muted-2: #8A96AD;
  --line: #E4E8F0;
  --bg: #FAFAFC;
  --bg-2: #F3F5F9;
  --card: #FFFFFF;
  --green: #10B981;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px -4px rgba(15, 23, 42, .06);
  --shadow: 0 2px 4px rgba(15, 23, 42, .03), 0 18px 40px -16px rgba(15, 23, 42, .14);
  --shadow-red: 0 14px 34px -12px rgba(229, 57, 53, .55);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -.025em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1200; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red), var(--red-2), #FF9A6B); }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; inset: 0 0 auto 0; z-index: 1000; padding: 14px 14px 0; transition: padding .4s var(--ease); pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: var(--container); margin: 0 auto; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 10px 30px -12px rgba(10, 15, 31, .25);
  transition: height .4s var(--ease), background .4s, box-shadow .4s;
}
.nav-wrap.scrolled { padding-top: 8px; }
.nav-wrap.scrolled .nav { height: 60px; background: rgba(255, 255, 255, .9); }
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: none; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: #334155; }
.nav-links a, .has-drop > a { display: block; line-height: 1.4; }
.nav-links a { position: relative; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--red); background: var(--red-soft); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { display: none; }
.menu-btn { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; background: var(--bg-2); }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  pointer-events: auto; max-width: var(--container); margin: 10px auto 0; padding: 18px; border-radius: 24px;
  background: rgba(255, 255, 255, .97); box-shadow: var(--shadow); border: 1px solid var(--line);
  display: none; transform-origin: top center;
}
.menu-open .mobile-menu { display: block; animation: menuIn .35s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.mobile-menu a.m-link { display: flex; justify-content: space-between; align-items: center; padding: 13px 10px; font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; margin-top: 14px; }
@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav-cta .btn { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* Services dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 560px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: all .3s var(--ease);
}
.drop::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-links .drop a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; color: var(--text); background: none; }
.nav-links .drop a:hover { background: var(--bg-2); color: var(--text); }
.drop .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.drop strong { display: block; font-size: 14px; }
.drop small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; line-height: 1.4; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap;
  transform: translate(var(--bx), var(--by)); transition: transform .25s var(--ease), box-shadow .3s, background .3s, color .3s;
  overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .35) 45%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { background: #D32F2F; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1EBE5A; }

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.h2 { font-size: clamp(30px, 4.2vw, 50px); }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); line-height: 1.7; }
.grad { background: linear-gradient(100deg, var(--red) 0%, #FF6A4D 50%, #FF9A6B 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 80px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .h2 { margin: 16px 0 18px; }
@media (max-width: 767px) { .section { padding: 80px 0; } .section-head { margin-bottom: 40px; } }

/* ---------- Dark surfaces ---------- */
.dark { background: var(--ink); color: #E8ECF5; }
.dark .lead { color: #A3AECB; }
.dark .eyebrow { color: var(--red-2); }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; opacity: .55; animation: glowDrift 16s ease-in-out infinite alternate; will-change: transform; }
.glow.g1 { width: 720px; height: 720px; background: radial-gradient(circle, rgba(229, 57, 53, .42), rgba(229, 57, 53, .12) 40%, transparent 68%); top: -120px; right: -80px; }
.glow.g2 { width: 640px; height: 640px; background: radial-gradient(circle, rgba(76, 94, 255, .28), rgba(76, 94, 255, .08) 40%, transparent 68%); bottom: -160px; left: -120px; animation-delay: -6s; }
@keyframes glowDrift { to { transform: translate(-60px, 50px) scale(1.12); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 90px; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.hero canvas, .page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 40px; } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600; color: #CBD3E6;
}
.pill b { padding: 3px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; letter-spacing: .04em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero h1 { font-size: clamp(38px, 4.7vw, 66px); color: #fff; margin: 26px 0 24px; letter-spacing: -.035em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { transform: none; } }
.hero .lead { max-width: 560px; }
.rotator { display: inline-grid; vertical-align: bottom; color: #fff; font-weight: 700; }
.rotator > span { grid-area: 1 / 1; justify-self: start; opacity: 0; transform: translateY(60%); transition: opacity .5s var(--ease), transform .5s var(--ease); white-space: nowrap; }
.rotator > span.on { opacity: 1; transform: none; }
.rotator > span.off { opacity: 0; transform: translateY(-60%); }
.rotator-line { margin-top: 18px; font-size: 17px; color: #A3AECB; }
.rotator-line .rotator > span { border-bottom: 2px solid var(--red); padding-bottom: 1px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #A3AECB; font-weight: 500; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 17px; height: 17px; color: #34D399; }
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .8s var(--ease) forwards; animation-delay: calc(var(--d, 0s) * .6); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
/* The main paragraph is what Google times as "page loaded": show it at once */
.hero .lead.fade-up, .page-hero .lead.fade-up, .page-hero h1.fade-up { opacity: 1; transform: none; animation: none; }

/* Hub visual */
.hub { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1; }
.hub svg.hub-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub .ring { fill: none; stroke: rgba(255, 255, 255, .08); }
.hub .ring-dash { fill: none; stroke: rgba(229, 57, 53, .35); stroke-dasharray: 2 10; transform-origin: 50% 50%; animation: spin 60s linear infinite; }
.hub .ring-dash.rev { stroke: rgba(255, 255, 255, .14); animation-duration: 90s; animation-direction: reverse; }
.hub .spoke { stroke: rgba(255, 110, 90, .38); stroke-width: 1.4; fill: none; stroke-dasharray: 5 7; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hub .pulse { fill: #FF6A4D; filter: drop-shadow(0 0 6px #FF5A4E); }
.hub-core {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, #F1F3FA 70%);
  box-shadow: 0 0 0 10px rgba(229, 57, 53, .12), 0 0 0 22px rgba(229, 57, 53, .06), 0 30px 80px -10px rgba(229, 57, 53, .6);
}
.hub-core::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 2px solid rgba(229, 57, 53, .35); animation: breathe 3s ease-out infinite; will-change: transform, opacity; }
.hub-core img { width: 46%; height: auto; }
@keyframes breathe { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.hub-node {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: #DDE3F0; letter-spacing: .02em; opacity: 0; animation: nodeIn .9s var(--ease) forwards; animation-delay: var(--d);
}
.hub-node .ic {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); transition: transform .4s var(--ease), background .4s, border-color .4s;
  animation: bob 6s ease-in-out infinite; animation-delay: var(--b, 0s);
}
.hub-node:hover .ic { transform: scale(1.12); background: var(--red); border-color: var(--red); }
.hub-node .ic svg { width: 24px; height: 24px; }
@keyframes nodeIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .96); color: var(--text); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55);
  opacity: 0; animation: fadeUp 1s var(--ease) forwards, bob 7s ease-in-out 1.6s infinite; animation-delay: var(--d), calc(var(--d) + 1s);
}
.float-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex: none; }
.float-card .ic.g { background: rgba(16, 185, 129, .12); color: var(--green); }
.float-card .ic svg { width: 20px; height: 20px; }
.float-card small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.float-card strong { display: block; font-size: 15px; font-family: var(--font-display); }
.float-card.fc1 { top: -3%; right: -15%; }
.float-card.fc2 { bottom: -3%; left: -15%; }
@media (min-width: 1024px) and (max-width: 1199px) { .float-card { display: none; } }
@media (max-width: 560px) { .float-card { display: none; } .hub-node .ic { width: 46px; height: 46px; border-radius: 14px; } .hub-node { font-size: 11px; } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .25); border-radius: 20px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: wheel 2s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-height: 760px), (max-width: 1023px) { .scroll-hint { display: none; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 26px 0; background: var(--ink-2); border-top: 1px solid rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink-2), transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); color: #C6CEE0; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.marquee-track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
/* Blur-to-focus reveal. :not(#_) raises specificity so it beats each
   component's own hover transition while revealing; site.js removes
   data-reveal once the reveal finishes, handing control back to hover. */
[data-reveal]:not(#_) {
  opacity: 0; transform: translateY(34px); filter: blur(10px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.lite [data-reveal]:not(#_) { filter: none; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0s) * .5); }
[data-reveal="left"]:not(#_), [data-reveal="right"]:not(#_) { transform: translateY(34px); }
[data-reveal="zoom"]:not(#_) { transform: scale(.92); }
[data-reveal].in:not(#_) { opacity: 1; transform: none; filter: blur(0); }
.no-js [data-reveal]:not(#_) { opacity: 1; transform: none; filter: none; }

/* ---------- Problem / Solution ---------- */
.ps-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .ps-grid { grid-template-columns: 1fr 1fr; } }
.ps-card { position: relative; border-radius: var(--radius-lg); padding: 34px; min-height: 380px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ps-card h3 { font-size: 22px; margin-bottom: 8px; }
.ps-card p { color: var(--muted); font-size: 15px; }
.ps-card .tag { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.ps-card.bad .tag { background: #F1F3F8; color: var(--muted); }
.ps-card.good { background: var(--ink); color: #fff; border-color: var(--ink); }
.ps-card.good p { color: #A3AECB; }
.ps-card.good .tag { background: var(--red); color: #fff; }
.chips { position: relative; margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.chip {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; font-size: 12.5px; font-weight: 700;
  background: var(--bg-2); color: #475569; border: 1px dashed #CBD3E1; transition: transform 1.1s var(--ease), background .6s, border-color .6s, color .6s;
}
.chip svg { width: 20px; height: 20px; }
.bad .chip { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); }
.good .chip { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #E1E6F2; transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); opacity: .3; }
.good.in .chip { transform: none; opacity: 1; transition-delay: calc(var(--i) * 70ms); }
.good.in .chip svg { color: var(--red-2); }
.connect-bar { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(90deg, rgba(229, 57, 53, .22), rgba(229, 57, 53, .06)); border: 1px solid rgba(229, 57, 53, .4); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; opacity: 0; transform: translateY(10px); transition: all .8s var(--ease) .7s; }
.good.in .connect-bar { opacity: 1; transform: none; }
.connect-bar i { width: 8px; height: 8px; border-radius: 50%; background: #34D399; animation: ping 2s infinite; }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(229, 57, 53, .10), transparent 45%);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(229, 57, 53, .3); }
.card:hover::before { opacity: 1; }
.card .num { position: absolute; top: 26px; right: 28px; font-family: var(--font-display); font-weight: 800; font-size: 14px; color: #CBD3E1; }
.card .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 24px; transition: transform .5s var(--ease), background .4s, color .4s; }
.card:hover .ic { background: var(--red); color: #fff; transform: rotate(-8deg) scale(1.06); }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card ul.mini { margin: 18px 0 0; display: grid; gap: 7px; font-size: 14px; color: #334155; }
.card ul.mini li { display: flex; gap: 8px; align-items: flex-start; }
.card ul.mini svg { width: 16px; height: 16px; color: var(--red); flex: none; margin-top: 4px; }
.card .more { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--red); }
.card .more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .more svg { transform: translateX(5px); }
.card.feature { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.feature p { color: #A3AECB; }
.card.feature ul.mini { color: #D5DBE8; }
.card.feature ul.mini svg { color: var(--red-2); }
.card.feature .num { color: rgba(255, 255, 255, .2); }

/* ---------- Stats / results ---------- */
.stats { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { position: relative; padding: 34px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); overflow: hidden; }
.stat .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(46px, 5.4vw, 66px); line-height: 1; letter-spacing: -.04em; color: #fff; }
.stat .big em { font-style: normal; color: var(--red-2); }
.stat .lbl { margin-top: 10px; font-weight: 700; color: #fff; font-size: 16px; }
.stat .tag { display: inline-block; margin-bottom: 20px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #A3AECB; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.stat p { color: #A3AECB; font-size: 14.5px; margin-top: 12px; }
.stat .bar { margin-top: 24px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.stat .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), #FF9A6B); border-radius: 4px; transition: width 1.8s var(--ease) .3s; }
.stat.in .bar i { width: var(--w); }

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; gap: 18px; }
.timeline-line { position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline-line i { position: absolute; inset: 0 0 auto 0; height: 0; background: linear-gradient(var(--red), #FF9A6B); border-radius: 2px; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.step .dot { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-family: var(--font-display); font-weight: 800; color: var(--muted-2); transition: all .6s var(--ease); }
.step.active .dot { background: var(--red); border-color: var(--red); color: #fff; box-shadow: var(--shadow-red); transform: scale(1.06); }
.step .body { padding: 22px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: border-color .5s, box-shadow .5s; }
.step.active .body { border-color: rgba(229, 57, 53, .3); box-shadow: var(--shadow-sm); }
.step h3 { font-size: 19px; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.step h3 small { font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 3px 10px; border-radius: 999px; letter-spacing: 0; }
.step p { color: var(--muted); font-size: 15px; }
@media (min-width: 1000px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .timeline-line { left: 28px; right: 28px; top: 27px; bottom: auto; width: auto; height: 2px; }
  .timeline-line i { inset: 0 auto 0 0; width: 0; height: 100%; }
  .step { grid-template-columns: 1fr; gap: 18px; }
  .step .body { min-height: 100%; }
}

/* ---------- Why / split ---------- */
.split { display: grid; gap: 50px; align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; gap: 70px; } }
.why-list { display: grid; gap: 14px; margin-top: 30px; }
.why-item { display: flex; gap: 16px; padding: 18px; border-radius: 18px; border: 1px solid transparent; transition: all .4s var(--ease); }
.why-item:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); transform: translateX(6px); }
.why-item .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.why-item .ic svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 17px; margin-bottom: 3px; }
.why-item p { color: var(--muted); font-size: 14.5px; }
.media-frame {
  position: relative; border-radius: 30px; padding: 12px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 50px 100px -40px rgba(15, 23, 42, .35); transform-style: preserve-3d; transition: transform .3s var(--ease);
}
.media-frame .inner { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink); }
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .badge { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: rgba(10, 15, 31, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.media-frame .edge { position: absolute; left: 0; top: 30px; bottom: 30px; width: 4px; border-radius: 4px; background: linear-gradient(var(--red), transparent); }

/* ---------- Industries ---------- */
.inds { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .inds { grid-template-columns: repeat(3, 1fr); } }
.ind { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 15px; transition: all .4s var(--ease); }
.ind:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.ind .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--red); transition: all .4s; }
.ind:hover .ic { background: var(--red); color: #fff; }
.ind .ic svg { width: 21px; height: 21px; }
@media (max-width: 480px) { .ind { flex-direction: column; align-items: flex-start; font-size: 14px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; overflow: hidden; }
.faq details[open] { border-color: rgba(229, 57, 53, .35); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; font-weight: 700; font-size: 17px; font-family: var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-2); position: relative; transition: background .3s, transform .4s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease), background .3s; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] .pm { background: var(--red); transform: rotate(180deg); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: #fff; }
.faq details[open] .pm::after { transform: rotate(0); }
.faq .ans { padding: 0 26px 24px; color: var(--muted); font-size: 15.5px; }
.faq .ans p + p { margin-top: 10px; }

/* ---------- CTA ---------- */
.cta-box { position: relative; overflow: hidden; border-radius: 36px; padding: 80px 28px; text-align: center; background: var(--ink); color: #fff; isolation: isolate; }
.cta-box::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(229, 57, 53, .55) 75%, transparent 90%);
  animation: spin 9s linear infinite;
}
.cta-box::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 34px; background: radial-gradient(ellipse at 50% 0%, #1A2250, var(--ink) 70%); }
.cta-box h2 { font-size: clamp(32px, 5vw, 58px); max-width: 820px; margin: 18px auto 18px; }
.cta-box .lead { max-width: 620px; margin: 0 auto; }
.cta-box .hero-ctas { justify-content: center; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 34px; font-size: 15px; color: #A3AECB; }
.contact-row a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.contact-row a:hover { color: #fff; }
.contact-row svg { width: 17px; height: 17px; color: var(--red-2); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #A3AECB; padding: 80px 0 34px; font-size: 14.5px; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .logo { height: 46px; width: auto; filter: brightness(0) invert(1); }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font); }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .12); transition: all .3s var(--ease); }
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: 13px; color: #6F7B96; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; align-items: center; gap: 0;
  height: 58px; padding: 0 17px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .6); transition: transform .3s var(--ease), gap .3s;
  opacity: 0; transform: translateY(20px) scale(.9); animation: fadeUp .8s var(--ease) 1.4s forwards;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25D366; animation: waRing 2.4s ease-out infinite; }
@keyframes waRing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }
.wa-float svg { width: 24px; height: 24px; fill: #fff; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease); }
.wa-float:hover span { max-width: 160px; }
.wa-float:hover { gap: 10px; }

/* ---------- Service page ---------- */
.page-hero { position: relative; overflow: hidden; padding: 170px 0 100px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: #8A96AD; margin-bottom: 22px; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 64px); color: #fff; max-width: 900px; margin-bottom: 22px; }
.page-hero .lead { max-width: 700px; }
.page-hero .hero-ic { position: absolute; right: 6%; top: 50%; width: 300px; height: 300px; transform: translateY(-40%); color: rgba(229, 57, 53, .15); display: none; }
.page-hero .hero-ic svg { width: 100%; height: 100%; stroke-width: .7; animation: bob 8s ease-in-out infinite; }
@media (min-width: 1100px) { .page-hero .hero-ic { display: block; } }
.answer-box { position: relative; padding: 30px 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-left: 4px solid var(--red); }
.answer-box h2 { font-size: clamp(19px, 2.2vw, 24px); margin: 12px 0 10px; }
.answer-box p { color: #334155; font-size: 16.5px; }
.checks { display: grid; gap: 14px; }
@media (min-width: 760px) { .checks { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 14px; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: all .4s var(--ease); }
.check:hover { border-color: rgba(229, 57, 53, .35); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.check .ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.check .ic svg { width: 17px; height: 17px; }
.check strong { display: block; font-family: var(--font-display); font-size: 16.5px; margin-bottom: 3px; }
.check p { color: var(--muted); font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: all .3s; }
.tags span:hover { border-color: var(--red); color: var(--red); }
.fit { display: grid; gap: 16px; }
@media (min-width: 800px) { .fit { grid-template-columns: repeat(3, 1fr); } }
.fit div { padding: 26px; border-radius: 20px; background: var(--bg-2); }
.fit h3 { font-size: 17px; margin-bottom: 6px; }
.fit p { color: var(--muted); font-size: 14.5px; }
.case { display: grid; gap: 30px; align-items: center; padding: 40px; border-radius: 30px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
@media (min-width: 900px) { .case { grid-template-columns: 1.3fr 1fr; padding: 56px; } }
.case h3 { font-size: 28px; margin: 14px 0 12px; }
.case p { color: #A3AECB; }
.case .big { font-family: var(--font-display); font-size: clamp(56px, 7vw, 88px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.case .big em { font-style: normal; color: var(--red-2); }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 20px; }
.nf .code { font-family: var(--font-display); font-size: clamp(110px, 22vw, 220px); font-weight: 800; line-height: 1; letter-spacing: -.06em; }

/* ---------- Anchor offset under the fixed nav ---------- */
section[id], [id="main"] { scroll-margin-top: 90px; }

/* ---------- Word-by-word heading reveal ---------- */
.split .w {
  display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.45em) rotate(2deg);
  transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--wi) * 55ms + .12s);
}
.split.in .w { opacity: 1; filter: blur(0); transform: none; }
.lite .split .w { filter: none; transition-duration: .6s; transition-delay: calc(var(--wi) * 35ms); }

/* ---------- Media wipe reveal ---------- */
.media-frame .inner { clip-path: inset(0 100% 0 0 round 22px); transition: clip-path 1.5s var(--ease) .25s; }
.media-frame video { transform: scale(1.18); transition: transform 2.4s var(--ease) .25s; }
.in .media-frame .inner { clip-path: inset(0 0 0 0 round 22px); }
.in .media-frame video { transform: none; }
.no-js .media-frame .inner { clip-path: none; }

/* ---------- Page-to-page transitions (Chrome, Edge, Safari 18+) ---------- */
@view-transition { navigation: auto; }
.nav-wrap { view-transition-name: site-nav; }
.wa-float { view-transition-name: wa-float; }
::view-transition-old(root) { animation: vtOut .35s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .6s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; filter: blur(8px); transform: scale(.985); } }
@keyframes vtIn { from { opacity: 0; filter: blur(8px); transform: scale(1.015); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal]:not(#_) { opacity: 1; transform: none; filter: none; }
  .hero h1 .line > span, .fade-up { transform: none; filter: none; }
  .marquee-track { animation: none; }
  .split .w { opacity: 1; filter: none; transform: none; }
  .media-frame .inner { clip-path: none; }
  .media-frame video { transform: none; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Service page: overview + mobile fixes ---------- */
.overview-grid { display: grid; gap: 22px; margin-top: 60px; }
@media (min-width: 1000px) { .overview-grid { grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; } }
.prose p { color: #334155; font-size: 17px; line-height: 1.8; }
.prose p + p { margin-top: 16px; }
.checks.one { grid-template-columns: 1fr; }
@media (max-width: 767px) {
  .hero { min-height: 0; padding: 118px 0 70px; }
  .page-hero { padding: 112px 0 64px; }
  .crumbs { margin-bottom: 14px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .answer-box { padding: 24px 22px; }
  .overview-grid { margin-top: 44px; }
  .prose p { font-size: 16px; }
  .wa-float { height: 52px; padding: 0 14px; right: 14px; bottom: 14px; }
}

/* ---------- Services grid: "not sure" card spans the full row ---------- */
.cards .card-cta { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 24px; }
.cards .card-cta .ic { margin: 0; grid-column: 1; grid-row: 1 / 3; }
.cards .card-cta h3 { grid-column: 2; margin: 0; align-self: end; }
.cards .card-cta p { grid-column: 2; align-self: start; }
.cards .card-cta .more { grid-column: 3; grid-row: 1 / 3; margin: 0; padding: 0; white-space: nowrap; }
@media (max-width: 699px) {
  .cards .card-cta { grid-template-columns: 1fr; }
  .cards .card-cta .ic, .cards .card-cta h3, .cards .card-cta p, .cards .card-cta .more { grid-column: 1; grid-row: auto; }
  .cards .card-cta .ic { margin-bottom: 8px; }
  .cards .card-cta .more { margin-top: 8px; white-space: normal; }
}
@media (min-width: 700px) and (max-width: 1039px) { .cards > .card.feature { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .drop { width: 800px; grid-template-columns: repeat(3, 1fr); } }

/* ---------- Performance: pause loops off-screen, lighter phones ---------- */
.anim-paused, .anim-paused *, .anim-paused::before, .anim-paused::after { animation-play-state: paused !important; }
.lite .glow { animation: none; }
.lite .hub .spoke { animation: none; }
.lite .media-frame video { transform: none; }

/* ---------- Before/After chips: always fit inside their card ---------- */
.chip { min-width: 0; }
.chip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.chip svg { flex: none; }
@media (max-width: 1100px) and (min-width: 900px) { .chip { font-size: 11.5px; padding: 12px 4px; } }
@media (max-width: 560px) {
  .ps-card { padding: 24px 20px; min-height: 0; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
  .chip { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 11px 12px; font-size: 13px; }
  .chip svg { width: 18px; height: 18px; }
  /* smaller scatter so the "messy" chips stay inside the card */
  .bad .chip { transform: translate(calc(var(--sx) * .35), calc(var(--sy) * .3)) rotate(calc(var(--sr) * .6)); }
  .good .chip { transform: translate(calc(var(--sx) * .35), calc(var(--sy) * .3)) rotate(calc(var(--sr) * .5)); }
  .good.in .chip { transform: none; }
}
@media (max-width: 380px) {
  .chip { flex-direction: column; justify-content: center; gap: 5px; padding: 11px 6px; font-size: 12.5px; }
}
