/* ==========================================================================
   XMATIQ — v2 design system
   Direction: premium dark (Markovate-like polish), own identity:
   graphite grey-black, silver light, bento grids, big outcome numbers.
   ========================================================================== */
:root {
  --bg: #0f1012;
  --bg-2: #141517;
  --card: #18191c;
  --card-2: #1e1f23;
  --line: #26272b;
  --line-2: #36383d;
  --fg: #f2f2f0;
  --txt: #a5a7ac;
  --dim: #75777d;
  --blue: #9a9da4;
  --violet: #c9ccd2;
  --cyan: #7fe0b0;
  --grad: linear-gradient(180deg, #ffffff 0%, #d4d6da 100%);
  --grad-text: linear-gradient(100deg, #ffffff 0%, #b4b7be 100%);
  --r: 22px;
  --pad: clamp(20px, 4vw, 48px);
  --max: 1280px;
  --f-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p { margin: 0; }
::selection { background: #fff; color: #0f1012; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
main, header, footer, section { position: relative; }

h1, h2, h3, h4 { font-family: var(--f-head); color: var(--fg); margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
h1 { font-size: clamp(42px, 6.6vw, 94px); }
h2 { font-size: clamp(32px, 4.4vw, 64px); }
h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; line-height: 1.2; }
.gt { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--txt); max-width: 56ch; line-height: 1.6; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 13px; color: #c8cbd4; background: rgba(255,255,255,.02); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 18px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--f-body); padding: 16px 26px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--fg); transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s; white-space: nowrap; }
.btn:hover { border-color: #fff; transform: translateY(-2px); }
.btn.primary { background: var(--grad); border-color: transparent; box-shadow: 0 8px 30px -8px rgba(255,255,255,.18); }
.btn.primary:hover { box-shadow: 0 12px 40px -6px rgba(255,255,255,.28); border-color: transparent; }
.btn.sm { padding: 11px 20px; font-size: 14px; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 80; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.stuck { background: rgba(15,16,18,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 11px; font: 700 23px var(--f-head); letter-spacing: -.045em; color: var(--fg); }
.logo svg { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.link { padding: 10px 16px; font-size: 15px; font-weight: 500; color: #c4c7d0; border-radius: 99px; transition: color .2s, background .2s; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }
.nav .btn { margin-left: 12px; }
.menu-btn { display: none; padding: 10px 0; font-weight: 600; color: var(--fg); }

/* ---------- ambient light ---------- */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow.a { width: 640px; height: 640px; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%); top: -220px; left: -160px; }
.glow.b { width: 560px; height: 560px; background: radial-gradient(circle, rgba(190,195,205,.14), transparent 70%); top: -80px; right: -180px; }
.gridbg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%); opacity: .55; pointer-events: none; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { padding: 170px 0 0; overflow: hidden; text-align: center; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { margin: 26px auto 26px; max-width: 15ch; }
.hero .lead { margin: 0 auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.stage { position: relative; margin: 80px auto 0; max-width: 1100px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 28px 28px 0 0; background: linear-gradient(180deg, var(--card-2), var(--bg) 92%); padding: 14px 14px 0; box-shadow: 0 -30px 120px -40px rgba(255,255,255,.07); }
.stage::before { content: ""; position: absolute; inset: -1px -1px auto; height: 1px; background: linear-gradient(90deg, transparent, #ffffff, transparent); }
.stage-in { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 14px; text-align: left; }
.mini { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-height: 290px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.mini .t { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--dim); }
.mini .t b { color: var(--fg); font-weight: 600; font-size: 14px; }
.run { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 13.5px; color: #cfd2da; }
.run .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; flex: none; background: rgba(127,224,176,.14); color: var(--cyan); }
.run.go .ic { background: rgba(255,255,255,.12); color: #d6d8dc; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.big { font: 700 44px/1 var(--f-head); letter-spacing: -.04em; color: var(--fg); }
.big small { font-size: 15px; font-weight: 500; color: var(--cyan); margin-left: 8px; letter-spacing: 0; }
.chart { flex: 1; position: relative; min-height: 130px; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.draw { stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw 2.6s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dev { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dev div { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--dim); }
.dev b { display: block; font: 600 19px var(--f-head); color: var(--fg); letter-spacing: -.02em; }
.dev .ok { color: var(--cyan); }
.float { position: absolute; z-index: 3; background: rgba(30,31,35,.9); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 16px; font-size: 13px; color: #d8dae1; display: flex; gap: 10px; align-items: center; box-shadow: 0 20px 50px -20px #000; animation: bob 6s ease-in-out infinite alternate; }
.float.f1 { left: -34px; top: 36%; } .float.f2 { right: -30px; top: 16%; animation-delay: -3s; }
.float i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 10px #3ddc97; }
@keyframes bob { to { transform: translateY(-12px); } }

/* trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-i { padding: 30px 28px; border-right: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.trust-i:first-child { padding-left: 0; } .trust-i:last-child { border-right: 0; }
.trust-i .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #d6d8dc; flex: none; }
.trust-i .ic svg { width: 20px; height: 20px; }
.trust-i b { display: block; color: var(--fg); font: 600 16px/1.25 var(--f-head); letter-spacing: -.01em; }
.trust-i span { font-size: 13.5px; color: var(--dim); }

/* stack marquee */
.marq { padding: 38px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marq-t { display: flex; gap: 14px; width: max-content; animation: slide 40s linear infinite; }
.marq-t span { padding: 10px 20px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; color: var(--txt); white-space: nowrap; background: var(--card); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 10vw, 150px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 70px); }
.sec-head.c { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .lead { margin-top: 22px; }
.sec-head.c .lead { margin-left: auto; margin-right: auto; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }

/* success stories */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 34px; display: flex; flex-direction: column; gap: 22px; min-height: 420px; position: relative; overflow: hidden; transition: border-color .4s, transform .5s var(--ease); }
.story::after { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%); opacity: 0; transition: opacity .5s; }
.story:hover { border-color: #4a4c53; transform: translateY(-6px); }
.story:hover::after { opacity: 1; }
.story .tag { display: flex; gap: 8px; flex-wrap: wrap; }
.story .tag span { font-size: 12px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--txt); }
.story .num { font: 700 clamp(64px, 7vw, 100px)/.9 var(--f-head); letter-spacing: -.05em; margin-top: auto; }
.story .num sup { font-size: .42em; vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.story h3 { font-size: 22px; }
.story p { font-size: 15px; color: var(--txt); }
.story .go { display: flex; justify-content: space-between; color: var(--fg); font-weight: 600; font-size: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.note { text-align: center; font-size: 13px; color: var(--dim); margin-top: 28px; }

/* bento services */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bn { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 34px; position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 360px; transition: border-color .4s; }
.bn:hover { border-color: #4a4c53; }
.bn.s1 { grid-column: span 4; } .bn.s2 { grid-column: span 2; } .bn.s3 { grid-column: span 2; } .bn.s4 { grid-column: span 4; }
.bn .n { font: 600 13px var(--f-head); color: var(--blue); margin-bottom: 14px; }
.bn h3 { font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 14px; letter-spacing: -.03em; }
.bn p { max-width: 38ch; font-size: 15.5px; }
.bn ul { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; }
.bn li { font-size: 13px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: #c6c9d2; }
.bn .more { position: absolute; right: 26px; top: 26px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--fg); transition: all .35s var(--ease); }
.bn:hover .more { background: var(--grad); border-color: transparent; transform: rotate(-45deg); }
.bn .art { position: absolute; right: 0; bottom: 0; width: 56%; height: 78%; opacity: .95; pointer-events: none; }
.bn.s2 .art, .bn.s3 .art { width: 100%; height: 46%; }
.bn.s2 ul, .bn.s3 ul { position: relative; z-index: 2; }
.art .s { stroke: #5d6068; fill: none; }
.art .a { stroke: url(#gl); fill: none; stroke-width: 1.6; }
.art .f { fill: url(#gl); }
.flow { stroke-dasharray: 4 8; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.ping { transform-box: fill-box; transform-origin: center; animation: ping 3.2s ease-out infinite; }
@keyframes ping { from { transform: scale(.2); opacity: .9; } to { transform: scale(1); opacity: 0; } }
.drift { animation: drift 5s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateY(-12px); } }
.scan { animation: scan 3s ease-in-out infinite alternate; }
@keyframes scan { to { transform: translateY(150px); } }
.blink { animation: blink 2.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* matrix */
.mxs { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.matrix-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: stretch; }
.matrix { display: grid; grid-template-columns: 96px repeat(4, 1fr); gap: 8px; }
.mx-h { display: flex; align-items: center; justify-content: center; font: 600 13px var(--f-head); color: var(--dim); padding: 8px 4px; transition: color .25s; text-align: center; }
.mx-h.row { justify-content: flex-start; padding-left: 2px; }
.mx-h.on { color: var(--fg); }
.cell { aspect-ratio: 1; border-radius: 16px; border: 1px solid var(--line); background: var(--card); position: relative; transition: all .3s var(--ease); display: grid; place-items: center; color: var(--dim); }
.cell::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .45; transition: all .35s var(--ease); }
.cell.diag { background: var(--card-2); border-color: var(--line-2); }
.cell.lit { border-color: #55585f; color: #e4e6ea; background: #1b1c20; }
.cell.sel { background: var(--grad); border-color: transparent; color: #fff; transform: scale(1.06); box-shadow: 0 12px 40px -10px rgba(255,255,255,.25); z-index: 2; }
.cell.sel::after { width: 14px; height: 14px; opacity: 1; background: #fff; }
.mx-detail { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 360px; }
.mx-detail .pair { font: 600 13px var(--f-head); color: var(--blue); }
.mx-detail h3 { font-size: clamp(26px, 2.6vw, 36px); margin: 14px 0 14px; }
.mx-detail ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mx-detail li { font-size: 13px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: #c6c9d2; }
.swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }
.mx-note { font-size: 13px; color: var(--dim); margin-top: 18px; }

/* why us */
.why { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 6vw, 100px); }
.why-l { position: sticky; top: 120px; align-self: start; }
.why-l .btn { margin-top: 34px; }
.why-list { border-top: 1px solid var(--line-2); }
.why-i { display: grid; grid-template-columns: 64px 1fr; padding: 34px 0; border-bottom: 1px solid var(--line-2); transition: padding .4s var(--ease); }
.why-i:hover { padding-left: 12px; }
.why-i .n { font: 700 15px var(--f-head); color: var(--blue); padding-top: 5px; }
.why-i h3 { font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 10px; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: linear-gradient(90deg, var(--blue), var(--violet), transparent); opacity: .5; }
.step { padding-top: 0; position: relative; }
.step .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; font: 700 14px var(--f-head); color: var(--fg); position: relative; z-index: 1; margin-bottom: 26px; transition: all .35s var(--ease); }
.step:hover .dot { background: var(--grad); border-color: transparent; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15px; }
.step .w { display: inline-block; margin-top: 16px; font-size: 12.5px; color: var(--dim); padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; }

/* faq */
.faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font: 600 clamp(18px, 1.7vw, 22px)/1.3 var(--f-head); color: var(--fg); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: all .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--fg); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--grad); border-color: transparent; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { padding: 0 60px 30px 0; max-width: 70ch; }

/* cta */
.cta-card { border-radius: 32px; padding: clamp(40px, 7vw, 100px); position: relative; overflow: hidden; background: #121315; border: 1px solid var(--line-2); text-align: center; }
.cta-card::before { content: ""; position: absolute; width: 900px; height: 500px; left: 50%; top: 100%; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(255,255,255,.16), rgba(255,255,255,.05) 45%, transparent 70%); filter: blur(30px); }
.cta-card > * { position: relative; }
.cta-card h2 { max-width: 16ch; margin: 0 auto 22px; }
.cta-card .lead { margin: 0 auto 36px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 40px; margin-top: clamp(60px, 8vw, 110px); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot p.about { max-width: 34ch; margin-top: 20px; font-size: 15px; }
.foot h4 { font: 600 13px var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.foot a { display: block; padding: 5px 0; color: #c4c7d0; font-size: 15px; transition: color .2s; }
.foot a:hover { color: #fff; }
.legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.page-hero { padding: 170px 0 80px; overflow: hidden; text-align: center; }
.page-hero h1 { font-size: clamp(40px, 6vw, 84px); max-width: 16ch; margin: 24px auto; }
.page-hero .lead { margin: 0 auto; }
.jump { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.jump a { padding: 11px 20px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: #d0d3db; transition: all .3s; }
.jump a:hover { background: var(--grad); border-color: transparent; color: #fff; }
.disc { padding: clamp(40px, 5vw, 70px) 0; scroll-margin-top: 60px; }
.disc-card { border: 1px solid var(--line); border-radius: 32px; background: var(--card); padding: clamp(28px, 4vw, 60px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); position: relative; overflow: hidden; }
.disc-card::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; top: -260px; left: -160px; background: radial-gradient(circle, rgba(255,255,255,.06), transparent 70%); pointer-events: none; }
.disc-card:nth-of-type(even)::before { left: auto; right: -160px; background: radial-gradient(circle, rgba(255,255,255,.06), transparent 70%); }
.disc-card .n { font: 700 14px var(--f-head); color: var(--blue); }
.disc-card h2 { font-size: clamp(34px, 4.2vw, 58px); margin: 14px 0 20px; }
.viz { margin-top: 36px; aspect-ratio: 16 / 10; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); position: relative; overflow: hidden; }
.viz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cap { padding: 22px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.cap:hover { border-color: #4a4c53; transform: translateY(-3px); }
.cap b { display: block; color: var(--fg); font: 600 17px/1.25 var(--f-head); letter-spacing: -.01em; margin-bottom: 8px; }
.cap span { font-size: 14px; line-height: 1.5; display: block; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.stack span { font-size: 13px; padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line-2); color: #c6c9d2; }
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.model { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 36px; display: flex; flex-direction: column; gap: 18px; min-height: 420px; transition: border-color .4s; }
.model:hover { border-color: #4a4c53; }
.model.hl { background: linear-gradient(180deg, #26272c, var(--card) 70%); border-color: #5a5d65; }
.model .t { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }
.model h3 { font-size: 34px; }
.model ul { list-style: none; padding: 0; margin: auto 0 0; }
.model li { padding: 12px 0; border-top: 1px solid var(--line); color: #d0d3db; font-size: 15px; display: flex; gap: 12px; }
.model li::before { content: "✓"; color: var(--cyan); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding: 160px 0 40px; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.contact h1 { font-size: clamp(40px, 5.6vw, 80px); margin: 24px 0; }
.expect { margin-top: 44px; display: flex; flex-direction: column; gap: 14px; }
.expect div { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.expect .ic { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--f-head); background: rgba(255,255,255,.07); color: #d6d8dc; }
.expect b { color: var(--fg); font: 600 16px var(--f-head); display: block; margin-bottom: 2px; }
.expect span { font-size: 14.5px; }
.direct { margin-top: 30px; display: flex; flex-direction: column; gap: 6px; }
.direct a { color: var(--fg); font-weight: 500; }
.direct a:hover { color: var(--cyan); }
.builder { border: 1px solid var(--line-2); border-radius: 28px; background: var(--card); padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; gap: 32px; position: relative; }
.builder::before { content: ""; position: absolute; inset: -1px; border-radius: 28px; padding: 1px; background: linear-gradient(140deg, rgba(255,255,255,.35), transparent 35%, transparent 65%, rgba(255,255,255,.2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.fld > label, .fld > .lab { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--fg); }
.fld .lab small, .fld > label small { color: var(--dim); font-weight: 400; margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span { display: block; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14.5px; color: #c6c9d2; transition: all .25s; }
.chip:hover span { border-color: #6a6f86; }
.chip input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.inp { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; color: var(--fg); font: inherit; font-size: 16px; padding: 14px 16px; outline: none; transition: border-color .25s, box-shadow .25s; }
.inp::placeholder { color: var(--dim); }
.inp:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(255,255,255,.1); }
textarea.inp { resize: vertical; min-height: 120px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.range input { width: 100%; accent-color: var(--violet); }
.range .val { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); margin-top: 8px; }
.range .val b { color: var(--fg); }
.b-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.sent { font-size: 13.5px; color: var(--dim); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .stage-in { grid-template-columns: 1fr 1fr; } .stage-in .mini:last-child { display: none; }
  .float { display: none; }
  .trust .wrap { grid-template-columns: 1fr 1fr; } .trust-i { border-bottom: 1px solid var(--line); padding-left: 0; }
  .stories, .models { grid-template-columns: 1fr; } .story, .model { min-height: 0; }
  .bento { grid-template-columns: 1fr; } .bn.s1, .bn.s2, .bn.s3, .bn.s4 { grid-column: auto; min-height: 340px; } .bn .art { width: 100%; height: 45%; opacity: .6; }
  .matrix-wrap, .why, .disc-card, .contact-grid { grid-template-columns: 1fr; }
  .why-l { position: static; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 18px; } .steps::before { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .menu-btn { display: block; }
  .nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--pad) 26px; transform: translateY(-130%); transition: transform .5s var(--ease); z-index: -1; }
  .nav.open { transform: none; }
  .nav a.link { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 18px 0 0; justify-content: center; }
  .stage-in { grid-template-columns: 1fr; } .stage-in .mini:nth-child(2) { display: none; }
  .matrix { grid-template-columns: 62px repeat(4, 1fr); gap: 5px; } .cell { border-radius: 10px; } .mx-h { font-size: 11px; }
  .caps, .two { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
  .trust .wrap { grid-template-columns: 1fr; } .trust-i { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; } html { scroll-behavior: auto; } .draw { stroke-dashoffset: 0; }
}

/* dark ink on light (white) surfaces */
.btn.primary, .chip input:checked + span, .jump a:hover, .step:hover .dot, .faq details[open] summary i, .bn:hover .more, .cell.sel { color: #0f1012; }
.btn.primary:hover { color: #0f1012; background: #fff; }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #0f1012; }
.cell.sel::after { background: #0f1012; }
.btn.primary { box-shadow: 0 8px 30px -10px rgba(255,255,255,.3); }
.draw { stroke: #fff; }
.logo svg { border-radius: 8px; }
.step .dot { color: var(--fg); } .step:hover .dot { color: #0f1012; }

/* ---------- buttons v2: gradient + no hover flicker ----------
   Flicker came from translateY on :hover (element slid out from under the cursor).
   Hover now only changes paint (gradient position, glow), never the hit area. */
.btn, .btn:hover { transform: none; }
.btn { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); transition: background .35s, border-color .3s, box-shadow .35s, color .3s; }
.btn:hover { background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); border-color: rgba(255,255,255,.7); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.btn.primary { color: #0f1012; border-color: transparent;
  background: linear-gradient(110deg, #ffffff 0%, #c4c7ce 35%, #8f939b 60%, #ffffff 100%); background-size: 260% 100%; background-position: 0% 0;
  box-shadow: 0 8px 30px -10px rgba(255,255,255,.3), inset 0 1px 0 rgba(255,255,255,.7); transition: background-position .7s var(--ease), box-shadow .35s; }
.btn.primary:hover { background: linear-gradient(110deg, #ffffff 0%, #c4c7ce 35%, #8f939b 60%, #ffffff 100%); background-size: 260% 100%; background-position: 100% 0; color: #0f1012; border-color: transparent; box-shadow: 0 10px 40px -8px rgba(255,255,255,.45), inset 0 1px 0 rgba(255,255,255,.8); }
.btn .arr { display: inline-block; }
.story:hover, .cap:hover { transform: none; }
.story:hover { border-color: #5a5d65; }

/* ---------- clients, testimonials, team ---------- */
.clients { padding: 56px 0 8px; }
.clients-t { text-align: center; font-size: 14px; color: var(--dim); margin-bottom: 28px; }
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.logo-slot { height: 96px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #5d6068; border-right: 1px solid var(--line); font: 600 15px var(--f-head); letter-spacing: -.01em; transition: color .3s, background .3s; }
.logo-slot:last-child { border-right: 0; }
.logo-slot:hover { color: var(--fg); background: var(--card-2); }
.logo-slot svg { width: 24px; height: 24px; flex: none; }
.logo-slot img { max-height: 30px; max-width: 120px; opacity: .6; filter: grayscale(1) brightness(1.6); transition: opacity .3s; }
.logo-slot:hover img { opacity: 1; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 320px; transition: border-color .4s; }
.tcard:hover { border-color: #4a4c53; }
.tcard blockquote { margin: 0; font: 500 clamp(18px, 1.5vw, 21px)/1.5 var(--f-head); letter-spacing: -.015em; color: var(--fg); }
.tcard blockquote::before { content: ""; display: block; width: 34px; height: 3px; border-radius: 2px; background: var(--grad); margin-bottom: 22px; }
.tcard figcaption { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.tcard figcaption b { display: block; color: var(--fg); font: 600 15px var(--f-head); }
.tcard figcaption span:not(.av) { font-size: 13.5px; color: var(--dim); }
.av { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--f-head); color: #0f1012; background: var(--grad); }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
.member b { display: block; color: var(--fg); font: 600 18px var(--f-head); letter-spacing: -.01em; margin-top: 18px; }
.member > span { display: block; color: #c6c9d2; font-size: 14.5px; margin-top: 2px; }
.member small { display: block; color: var(--dim); font-size: 13px; margin-top: 2px; }
.photo { aspect-ratio: 1 / 1.08; border-radius: 20px; overflow: hidden; position: relative; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, #2c2d32 0%, #1a1b1e 55%, #141517 100%); display: grid; place-items: center; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(15,16,18,.55)); pointer-events: none; }
.photo > span { font: 700 56px var(--f-head); letter-spacing: -.05em; color: #3d3f45; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s, transform .6s var(--ease); }
.member:hover .photo img { filter: grayscale(0); transform: scale(1.04); }
.member:hover .photo { border-color: #4a4c53; }
@media (max-width: 1000px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } .logo-slot { border-bottom: 1px solid var(--line); } .tgrid { grid-template-columns: 1fr; } .tcard { min-height: 0; } .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }

/* ---------- case studies ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.fbtn { padding: 10px 20px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: #c6c9d2; transition: all .25s; }
.fbtn:hover { border-color: #8a8d95; color: #fff; }
.fbtn.on { background: var(--grad); border-color: transparent; color: #0f1012; }
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ccard { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; display: flex; flex-direction: column; transition: border-color .4s, opacity .35s; }
.ccard:hover { border-color: #5a5d65; }
.ccard.feat { grid-column: span 3; flex-direction: row; }
.ccard.hide { display: none; }
.cover { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(120% 100% at 50% 0%, #26272c, #141517); border-bottom: 1px solid var(--line); overflow: hidden; }
.feat .cover { flex: 1.1; aspect-ratio: auto; min-height: 380px; border-bottom: 0; border-right: 1px solid var(--line); }
.cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover .cat { position: absolute; left: 16px; top: 16px; font-size: 12px; padding: 5px 12px; border-radius: 99px; background: rgba(15,16,18,.7); border: 1px solid var(--line-2); color: #e4e6ea; z-index: 2; }
.cbody { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.feat .cbody { flex: 1; padding: clamp(28px, 4vw, 56px); justify-content: center; }
.cmeta { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }
.ccard h3 { font-size: 22px; } .feat h3 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.03em; }
.ccard p { font-size: 15px; }
.cfoot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.cnum b { display: block; font: 700 34px/1 var(--f-head); letter-spacing: -.04em; }
.cnum span { font-size: 13px; color: var(--dim); }
.ccard .go { color: var(--fg); font-weight: 600; font-size: 14px; white-space: nowrap; }
.ccard:hover .arr { transform: translateX(4px); } .ccard .arr { display: inline-block; transition: transform .3s var(--ease); }
/* detail */
.cs-hero { padding-bottom: 50px; }
.back { display: inline-block; font-size: 14px; color: var(--txt); margin-bottom: 28px; transition: color .2s; } .back:hover { color: #fff; }
.cs-tags { display: flex; gap: 8px; margin-bottom: 20px; } .cs-tags span { font-size: 12.5px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-2); }
.cs-cover { border: 1px solid var(--line); border-radius: 28px; aspect-ratio: 21 / 8; position: relative; overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, #26272c, #141517); }
.cs-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cs-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.cs-meta { position: sticky; top: 110px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 8px 26px; }
.cs-meta div { padding: 18px 0; border-bottom: 1px solid var(--line); } .cs-meta div:last-child { border: 0; }
.cs-meta span { display: block; font-size: 12.5px; color: var(--dim); margin-bottom: 4px; } .cs-meta b { color: var(--fg); font: 600 16px var(--f-head); }
.cs-body { display: flex; flex-direction: column; gap: 70px; } .cs-body h2 { font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 20px; } .cs-body p { max-width: 62ch; font-size: 18px; }
.cs-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; } .cs-list li { padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: #d0d3db; font-size: 15.5px; display: flex; gap: 12px; } .cs-list li::before { content: "✓"; color: var(--cyan); }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.res { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 36px; } .res b { display: block; font: 700 clamp(52px, 6vw, 84px)/1 var(--f-head); letter-spacing: -.05em; margin-bottom: 10px; } .res span { color: var(--txt); }
@media (max-width: 1000px) { .cgrid { grid-template-columns: 1fr 1fr; } .ccard.feat { grid-column: span 2; flex-direction: column; } .feat .cover { min-height: 0; aspect-ratio: 16/10; border-right: 0; border-bottom: 1px solid var(--line); } .cs-grid { grid-template-columns: 1fr; } .cs-meta { position: static; } .results { grid-template-columns: 1fr; } .cs-cover { aspect-ratio: 16/10; } }
@media (max-width: 640px) { .cgrid { grid-template-columns: 1fr; } .ccard.feat { grid-column: auto; } }
/* simple contact */
.builder { gap: 24px; }

/* logo: matches xmatiq.com wordmark (wide geometric uppercase) */
.logo { font: 600 19px/1 "Montserrat", var(--f-head); letter-spacing: .09em; text-transform: uppercase; gap: 12px; }
.logo svg { width: 30px; height: 30px; border-radius: 0; }

/* careers */
.openings { border: 1px solid var(--line); border-radius: 28px; background: var(--card); overflow: hidden; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 34px; border-bottom: 1px solid var(--line); transition: background .3s; }
.job:hover { background: var(--card-2); } .job b { display: block; color: var(--fg); font: 600 20px var(--f-head); } .job span { font-size: 14px; color: var(--dim); } .job .go { color: var(--fg); font-weight: 600; }
.empty { text-align: center; padding: clamp(40px, 6vw, 80px) var(--pad); max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.empty-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: #c6c9d2; background: var(--card-2); }
.empty-ic svg { width: 28px; height: 28px; } .empty h3 { font-size: clamp(26px, 3vw, 38px); } .empty .btn { margin-top: 10px; }
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.val { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 34px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; transition: border-color .4s; } .val:hover { border-color: #4a4c53; }
.val .n { font: 700 14px var(--f-head); color: var(--blue); } .val h3 { margin-top: auto; }
@media (max-width: 1000px) { .vals { grid-template-columns: 1fr; } .val { min-height: 0; } }

/* contact info */
.info { margin-top: 40px; border-top: 1px solid var(--line-2); }
.info .row { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info .k { font-size: 13px; color: var(--dim); padding-top: 3px; }
.info address { font-style: normal; color: var(--fg); font-size: 17px; line-height: 1.55; }
.info a:not(.btn) { display: block; color: var(--fg); font-size: 17px; font-weight: 500; padding: 2px 0; transition: color .2s; }
.info a:not(.btn):hover { color: var(--cyan); }
.info .maplink { margin-top: 8px; font-size: 14px !important; color: var(--txt) !important; }
.info .sub { display: block; font-size: 14px; color: var(--dim); margin-top: 4px; }

/* anchor links: clear the fixed header (76px) with breathing room */
html { scroll-padding-top: 110px; }
[id] { scroll-margin-top: 110px; }
#faq, #work, #team, #engage { scroll-margin-top: 120px; }

.stack-h { font: 600 13px var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--dim); margin: 28px 0 0; }
.stack-h + .stack { margin-top: 12px; }

/* =================== creative layer =================== */
/* grid spotlight + pulsing data nodes */
.gridlit { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .5s;
  background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(240px circle at var(--gx, -999px) var(--gy, -999px), #000, transparent 70%); mask-image: radial-gradient(240px circle at var(--gx, -999px) var(--gy, -999px), #000, transparent 70%); }
.hero:hover .gridlit, .page-hero:hover .gridlit, .contact:hover .gridlit { opacity: 1; }
.nodes { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.nodes i { position: absolute; width: 5px; height: 5px; margin: -2px 0 0 -2px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 2px rgba(255,255,255,.5); opacity: 0; animation: nodep 5s ease-in-out infinite; }
@keyframes nodep { 0%, 100% { opacity: 0; transform: scale(.4); } 40%, 60% { opacity: .9; transform: scale(1); } }

/* cursor spotlight on cards */
.spot:hover { background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255,255,255,.07), transparent 45%); }

/* hero dashboard live states */
.run { transition: opacity .4s, background .4s; }
.run.pend { opacity: .38; } .run.pend .ic { background: rgba(255,255,255,.06); color: var(--dim); }
.run.done .ic { background: rgba(127,224,176,.14); color: var(--cyan); }
.big, .dev b { font-variant-numeric: tabular-nums; }
.tick { animation: tick .5s var(--ease); } @keyframes tick { from { opacity: .3; transform: translateY(-4px); } }
.float { transition: opacity .4s; } .float.swap-out { opacity: 0; }

/* sparklines */
.spark { position: absolute; right: 30px; top: 78px; width: 150px; height: 46px; opacity: .9; pointer-events: none; }
.spark-line { stroke-dasharray: 320; stroke-dashoffset: 320; }
.story.in .spark-line { animation: sdraw 2.2s .3s var(--ease) forwards; } @keyframes sdraw { to { stroke-dashoffset: 0; } }

/* system flow */
.flow-card { border: 1px solid var(--line); border-radius: 28px; background: var(--card); padding: clamp(16px, 3vw, 40px); position: relative; overflow: hidden; }
.flow-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; opacity: .35; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000, transparent); mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000, transparent); }
.flow-scroll { overflow-x: auto; position: relative; }
.flow-svg { width: 100%; min-width: 860px; height: auto; display: block; }
.flow-svg .fnode { fill: #1e1f23; stroke: #4a4c53; stroke-width: 1.2; }
.flow-svg .fh { fill: #f5f6f8; font: 600 17px "Plus Jakarta Sans", sans-serif; }
.flow-svg .fs { fill: #8a8d94; font: 400 12.5px Inter, sans-serif; }
.flow-svg .ft { fill: #75777d; font: 600 11.5px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.flow-svg .fdot { fill: #7fe0b0; animation: blink 2.2s ease-in-out infinite; }
.flowdash { animation: flow 1.4s linear infinite; } .flowdash.rev { animation-direction: reverse; }
.logbox { position: relative; margin-top: 8px; border: 1px solid var(--line-2); border-radius: 16px; background: #0b0c0d; overflow: hidden; }
.log-h { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.log-h i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-right: 10px; box-shadow: 0 0 10px var(--cyan); animation: blink 1.6s infinite; }
.log-b { padding: 14px 18px; font: 12.5px/1.9 ui-monospace, "SF Mono", Menlo, monospace; color: #8a8d94; min-height: 160px; white-space: nowrap; overflow: hidden; }
.log-b div { animation: login .5s var(--ease); text-overflow: ellipsis; overflow: hidden; } .log-b b { color: #d6d8dc; font-weight: 500; } .log-b .ok { color: var(--cyan); } .log-b .t { color: #5d6068; }
@keyframes login { from { opacity: 0; transform: translateY(8px); } }

/* colour switch (header) */
.theme-sw { display: inline-flex; align-items: center; gap: 10px; margin-left: 10px; padding: 6px 4px; font: 500 13px var(--f-body); color: #c4c7d0; white-space: nowrap; }
.theme-sw .track { width: 42px; height: 24px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line-2); position: relative; transition: background .3s, border-color .3s; flex: none; }
.theme-sw .knob { position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #8a8d94; transition: transform .35s var(--ease), background .3s; }
.theme-sw[aria-checked="true"] .track { background: var(--grad); border-color: transparent; }
.theme-sw[aria-checked="true"] .knob { transform: translateX(18px); background: #0f1012; }
.theme-sw:hover { color: #fff; } .theme-sw:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 99px; }
@media (max-width: 780px) { .theme-sw { margin: 16px 0 0; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); } }

/* logo: real artwork (transparent PNG made from xmatiq.com/img/logo) */
.logo { display: inline-flex; align-items: center; gap: 0; line-height: 0; }
.logo-img { display: block; height: 34px; width: auto; }
.site-header .logo-img { height: 32px; }
/* footer: .foot a was forcing display:block + padding on the logo link */
.foot a.logo { display: inline-flex; padding: 0; margin: 0; line-height: 0; }
.foot a.logo .logo-img { height: 38px; }
.foot p.about { margin-top: 22px; }

/* logo v3: outline icon + real wordmark (cropped from the original), larger lettering */
.logo { gap: 13px; }
.logo-ic { width: 34px; height: 34px; flex: none; }
.logo-txt { display: block; height: 22px; width: auto; }
.site-header .logo-ic { width: 36px; height: 36px; }
.site-header .logo-txt { height: 24px; }
.foot a.logo { gap: 14px; } .foot a.logo .logo-ic { width: 40px; height: 40px; } .foot a.logo .logo-txt { height: 27px; }
@media (max-width: 780px) { .site-header .logo-txt { height: 21px; } .site-header .logo-ic { width: 32px; height: 32px; } }

/* logo v4: wordmark slightly smaller (about 12% down) */
.site-header .logo-txt { height: 21px; }
.foot a.logo .logo-txt { height: 24px; }
@media (max-width: 780px) { .site-header .logo-txt { height: 19px; } }

/* colour switch hidden. To bring it back, remove data-colour-switch="off" from the <html> tag of each page. */
html[data-colour-switch="off"] .theme-sw { display: none !important; }

/* matrix: soft grey gradients (cells get lighter toward the bottom-right via --k, set per cell in JS) */
.cell { background: linear-gradient(150deg, color-mix(in srgb, #373940 calc(var(--k, .5) * 100%), #1a1b1f) 0%, #111214 100%);
  border-color: color-mix(in srgb, #3c3e45 calc(var(--k, .5) * 100%), #25262a); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.cell.diag { background: linear-gradient(150deg, #43454c 0%, #17181b 100%); border-color: #4b4d55; box-shadow: inset 0 1px 0 rgba(255,255,255,.09); }
.cell.lit { background: linear-gradient(150deg, #4a4c54 0%, #1c1d21 100%); border-color: #62656d; }
.cell.sel { background: var(--grad); border-color: transparent; box-shadow: 0 12px 40px -10px rgba(255,255,255,.28), inset 0 1px 0 rgba(255,255,255,.6); }
.mx-detail { background: linear-gradient(160deg, #24262a 0%, #17181b 55%, #121315 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }

/* clients marquee + testimonial slider (scale to any number of items) */
.logo-marq { border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.logo-marq:hover .logo-track { animation-play-state: paused; }
.logo-marq .logo-slot { flex: none; min-width: 190px; padding: 0 34px; border-right: 0; }
.logo-wall { display: none; }
.ttrack { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 2px 2px 18px; scrollbar-width: none; outline: none; }
.ttrack::-webkit-scrollbar { display: none; }
.ttrack .tcard { flex: 0 0 min(420px, 86vw); scroll-snap-align: start; }
.tnav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.tbtn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 18px; color: var(--fg); transition: background .25s, color .25s, border-color .25s, opacity .25s; }
.tbtn:hover:not(:disabled) { background: var(--grad); border-color: transparent; color: #0f1012; }
.tbtn:disabled { opacity: .3; cursor: default; }

/* testimonials: exactly 3 cards fit the row (2 on tablet, 1 on phone); arrows move one card at a time */
.ttrack { padding: 2px 0 18px; }
.ttrack .tcard { flex: 0 0 calc((100% - 36px) / 3); }
@media (max-width: 1000px) { .ttrack .tcard { flex: 0 0 calc((100% - 18px) / 2); } }
@media (max-width: 640px) { .ttrack .tcard { flex: 0 0 88%; } }

/* stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.stat { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 14px; transition: border-color .4s; position: relative; overflow: hidden; }
.stat:hover { border-color: #4a4c53; }
.stat-n { font: 700 clamp(72px, 9vw, 132px)/.9 var(--f-head); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat b { color: var(--fg); font: 600 clamp(20px, 2vw, 26px) var(--f-head); letter-spacing: -.02em; padding-top: 14px; border-top: 1px solid var(--line); }
.stat p { max-width: 46ch; font-size: 16px; }

/* logo v5: single lockup image (icon + wordmark) */
.logo-lockup { display: block; height: 38px; width: auto; border-radius: 6px; }
.site-header .logo-lockup { height: 50px; }
.foot a.logo .logo-lockup { height: 44px; }
@media (max-width: 780px) { .site-header .logo-lockup { height: 42px; } }

/* Keep the experience heading on two deliberate lines at every screen size. */
.experience-heading { font-size: clamp(20px, 4.4vw, 64px); }
.experience-heading span { display: block; white-space: nowrap; }

/* Keep the stats introduction opposite its heading on wider screens. */
@media (min-width: 781px) {
  .stats .sec-head.row { flex-wrap: nowrap; }
  .stats .sec-head > div { min-width: 0; }
  .stats .experience-heading { font-size: clamp(28px, 3.8vw, 54px); }
  .stats .sec-head > .lead { flex: 0 0 25%; max-width: 28ch; margin-top: 0; }
}

/* Official client artwork, presented in monochrome on the graphite surface. */
.logo-marq .logo-slot img { width: 150px; height: 38px; max-width: 150px; max-height: 38px; object-fit: contain; filter: brightness(0) invert(1); opacity: .75; }
.logo-marq .logo-slot:hover img { opacity: 1; }

.logo-marq .logo-slot .client-logo-tall { height: 64px; max-height: 64px; }

/* Halve the combined section spacing before the Home and Services CTAs. */
#faq, #engage { padding-bottom: clamp(40px, 5vw, 75px); }
#faq + .sec, #engage + .sec { padding-top: clamp(40px, 5vw, 75px); }

/* Remove the baked-in graphite background while preserving the supplied white logo. */
.logo-lockup { filter: url(#logo-transparent); }
