/* ==========================================================================
   Exovik theme stylesheet (design system v2)
   Alternating deep-navy and soft-white bands, electric-blue accent, cyan glow.
   Headings/body: Plus Jakarta Sans · accent words: Instrument Serif italic
   Labels: JetBrains Mono · Motion: GSAP + ScrollTrigger (assets/js/vendor)
   Colours and fonts are CSS variables in :root below.
   ========================================================================== */

:root {
  --navy: #0b1220;
  --navy-2: #111a2e;
  --paper: #f4f6fb;
  --blue: #386bff;
  --cyan: #22d3ee;
  --violet: #7c5cff;
  --bad: #e11d48;
  --amber: #f59e0b;
  --grad: linear-gradient(100deg, #22d3ee 0%, #386bff 55%, #7c5cff 100%);
  --f-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1240px;
  --r: 22px;
  --r-sm: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* Section themes: every component reads these variables */
body, .light { --bg: var(--paper); --fg: #0b1220; --muted: #586179; --line: #dfe4ef; --card: #ffffff; --card-2: #f8f9fd; --accent: var(--blue); --chip: #eef2fb; }
.dark { --bg: var(--navy); --fg: #ffffff; --muted: #a3adc2; --line: rgba(255, 255, 255, .1); --card: #111a2e; --card-2: #16213a; --accent: var(--cyan); --chip: rgba(255, 255, 255, .06); }
.white { --bg: #ffffff; --card-2: #f4f6fb; }

*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--muted); font: 400 16.5px/1.7 var(--f-body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
.light, .dark, .white { background: var(--bg); color: var(--muted); }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--fg); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--fg); margin: 0 0 .5em; letter-spacing: -.03em; line-height: 1.08; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.5rem); letter-spacing: -.045em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -.04em; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.25; }
h4 { font-size: 1rem; }
strong { color: var(--fg); font-weight: 650; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent); }
h1 .serif, h2 .serif, .statement .serif, .cta-big .serif { font-size: 1.1em; line-height: .9; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 600; background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; }
.skip-link:focus { top: 14px; color: #fff; }

.container { width: min(100% - 2 * max(5vw, 20px), var(--max)); margin-inline: auto; }
.sec { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.sec--tight { padding-block: clamp(48px, 6vw, 84px); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { font-size: 1.1rem; }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; }
.sec-head--row > div { max-width: 700px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 .76rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 32px; height: 1.5px; background: currentColor; flex: none; }
.center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.22rem); line-height: 1.7; max-width: 62ch; }
.center .lead { margin-inline: auto; }
.small { font-size: .9rem; }

/* ---------- Demo labels ---------- */
.demo-tag { display: inline-flex; align-items: center; gap: 6px; font: 600 .68rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #92400e; background: #fef3c7; border: 1px solid #fcd34d; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.demo-note { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-top: 24px; }
.demo-note svg { flex: none; width: 18px; height: 18px; color: var(--amber); margin-top: 2px; }
.demo-banner { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r-sm); font-size: .95rem; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; max-width: 900px; }
.dark .demo-banner { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .35); color: #fde7c4; }
.demo-banner svg { flex: none; width: 20px; height: 20px; color: var(--amber); margin-top: 2px; }
.demo-banner strong { color: inherit; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 8px 9px 8px 26px; border-radius: 999px; border: 0; cursor: pointer; font: 650 1rem/1 var(--f-body); color: #fff; background: var(--blue); box-shadow: 0 14px 30px -14px rgba(56, 107, 255, .9); white-space: nowrap; overflow: hidden; isolation: isolate; transition: color .35s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.dark .btn::before { background: #fff; }
.btn:hover { color: #fff; }
.dark .btn:hover { color: var(--navy); }
.btn:hover::before { transform: translateY(0); }
.btn .bi { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); transition: transform .4s var(--ease), background .3s; }
.btn:hover .bi { transform: rotate(-45deg); background: var(--blue); color: #fff; }
.btn .bi svg, .btn > svg { width: 18px; height: 18px; }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); padding: 8px 26px; }
.dark .btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.btn--ghost::before, .dark .btn--ghost::before { background: var(--fg); }
.btn--ghost:hover, .dark .btn--ghost:hover { color: var(--bg); }
.btn--wa { background: #16a34a; box-shadow: 0 14px 30px -14px rgba(22,163,74,.9); padding: 8px 24px; }
.btn--wa > svg { width: 20px; height: 20px; }
.btn--sm { min-height: 46px; font-size: .94rem; padding: 6px 7px 6px 20px; }
.btn--sm .bi { width: 32px; height: 32px; }
.btn--ghost.btn--sm, .btn--wa.btn--sm { padding: 6px 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--fg); position: relative; padding-bottom: 4px; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform-origin: right; transform: scaleX(.3); transition: transform .45s var(--ease); }
.text-link:hover::after, .link-card:hover .text-link::after { transform: scaleX(1); transform-origin: left; }
.text-link svg { width: 16px; height: 16px; transition: transform .3s; }
.text-link:hover svg { transform: translateX(4px); }
.text-link:hover { color: var(--fg); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .5s var(--ease), background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header .bar { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.site-header.scrolled { background: rgba(11, 18, 32, .88); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); border-color: rgba(255,255,255,.08); }
.site-header.hide { transform: translateY(-100%); }
body.nav-open .site-header { transform: none; background: var(--navy); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 800 1.32rem/1 var(--f-head); letter-spacing: -.03em; flex: none; }
.brand:hover { color: #fff; }
.brand img { width: 38px; height: 38px; }
.brand small { display: block; font: 500 .56rem/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: #8fa0c4; margin-top: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav > ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav .nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 14px; color: #c9d2e6; font: 550 .95rem/1 var(--f-body); background: none; border: 0; cursor: pointer; }
.nav .nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav .nav-link:hover, .nav .nav-link[aria-current="page"], .has-menu.open > .nav-link { color: #fff; }
.nav .nav-link:hover::after, .nav .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-link svg { width: 14px; height: 14px; transition: transform .3s; }
.has-menu { position: relative; }
.has-menu.open > .nav-link svg { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0; width: 610px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px -20px rgba(11,18,32,.5); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.has-menu.open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; color: #0b1220; }
.menu a:hover, .menu a:focus-visible { background: #eef2fb; color: #0b1220; }
.menu a strong { display: block; font-size: .95rem; color: #0b1220; }
.menu a span span { font-size: .82rem; color: #586179; line-height: 1.45; display: block; }
.menu .ico { width: 40px; height: 40px; flex: none; background: #eaf0ff; color: var(--blue); }
.menu .menu-all { grid-column: 1 / -1; justify-content: center; align-items: center; background: #0b1220; color: #fff; font-weight: 650; margin-top: 6px; }
.menu .menu-all:hover { background: var(--blue); color: #fff; }
.menu .menu-all svg { width: 16px; height: 16px; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.progress-bar { position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; z-index: 120; background: var(--grad); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* ---------- Icon tiles ---------- */
.ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #eaf0ff; color: var(--blue); flex: none; }
.dark .ico { background: rgba(56,107,255,.16); color: var(--cyan); }
.ico svg { width: 52%; height: 52%; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-h) + 40px) 0 70px; overflow: hidden; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.hero-glow.g1 { width: 560px; height: 560px; background: rgba(56,107,255,.42); top: -160px; right: -100px; }
.hero-glow.g2 { width: 380px; height: 380px; background: rgba(34,211,238,.22); bottom: -120px; left: 28%; }
.hero-grid-bg { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 25%, transparent 75%); }
.hero .container, .page-hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 36px; color: #b6c0d6; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 46px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-meta div { display: flex; gap: 10px; align-items: center; color: #c9d2e6; font-size: .93rem; font-weight: 550; }
.hero-meta svg { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.scroll-cue { position: absolute; right: max(2vw, 14px); top: 50%; translate: 0 -50%; z-index: 2; display: flex; align-items: center; gap: 14px; color: #8fa0c4; font: 500 .66rem/1 var(--f-mono); letter-spacing: .3em; writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; width: 1.5px; height: 90px; background: linear-gradient(var(--cyan), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.js [data-hero] { opacity: 0; }
.js.anim-done [data-hero] { opacity: 1; }

/* Split text (built by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin: 0 -.02em -.12em; }
.wi { display: inline-block; }

/* Dashboard mock */
.dash-wrap { position: relative; }
.dash { position: relative; border-radius: 24px; padding: 18px; background: linear-gradient(160deg, #18233d, #0d1527); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 50px 100px -30px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.08); }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dash-top h3 { font-size: 1rem; margin: 0; }
.dash-pill { font: 500 .66rem/1 var(--f-mono); color: #8fa0c4; border: 1px solid rgba(255,255,255,.14); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.kpi span { display: block; font-size: .72rem; color: #8fa0c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi strong { font-size: 1.12rem; color: #fff; white-space: nowrap; }
.kpi em { font-style: normal; font-size: .7rem; color: #34d399; }
.dash-chart { border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); padding: 12px 12px 6px; }
.dash-chart .row { display: flex; justify-content: space-between; font-size: .78rem; color: #c9d2e6; }
.dash-chart .row em { font-style: normal; color: #34d399; }
.dash-chart svg { width: 100%; height: auto; }
.dash-bottom { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 10px; margin-top: 12px; }
.mini { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); font-size: .76rem; color: #8fa0c4; }
.mini h4 { font-size: .8rem; margin-bottom: 8px; }
.mini ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mini li { display: flex; justify-content: space-between; gap: 8px; }
.mini li b { color: #c9d2e6; font-weight: 600; }
.mini .orb { width: 34px; height: 34px; border-radius: 50%; float: right; background: radial-gradient(circle at 35% 30%, #a5f3fc, #386bff 45%, #7c5cff 85%); box-shadow: 0 0 24px rgba(56,107,255,.8); }
.mini .big { font: 750 1.4rem/1 var(--f-head); color: #fff; }
.float-card { position: absolute; z-index: 2; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -16px rgba(0,0,0,.55); }
.float-card span { display: block; font-size: .72rem; color: #586179; }
.float-card strong { font-size: 1.4rem; color: #0b1220; letter-spacing: -.03em; }
.float-card.f1 { right: -20px; top: 28%; }
.float-card.f2 { left: -26px; bottom: 16%; display: flex; align-items: center; gap: 10px; }
.float-card.f2 strong { font-size: .95rem; letter-spacing: 0; }
.float-card.f2 i { width: 34px; height: 34px; border-radius: 10px; background: #dcfce7; color: #16a34a; display: grid; place-items: center; }
.float-card.f2 i svg { width: 18px; height: 18px; }
.dash-caption { text-align: center; font: 500 .68rem/1 var(--f-mono); letter-spacing: .06em; color: #8fa0c4; margin-top: 18px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: 28px; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; align-items: center; }
.no-gsap .marquee-track { animation: scroll-x 45s linear infinite; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee-set { display: flex; gap: 48px; align-items: center; }
.tech { display: inline-flex; align-items: center; gap: 12px; font: 700 1.3rem/1 var(--f-head); letter-spacing: -.02em; color: var(--fg); white-space: nowrap; }
.tech b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font: 700 .7rem/1 var(--f-mono); color: #fff; background: var(--c, var(--blue)); }
.marquee-sep { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Statement (scroll-filled words) ---------- */
.statement { font: 700 clamp(1.9rem, 4.6vw, 3.8rem)/1.16 var(--f-head); letter-spacing: -.045em; color: var(--fg); max-width: 21ch; margin: 0 auto; text-align: center; text-wrap: balance; }
.statement .serif { color: var(--blue); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { position: relative; padding: 30px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.card h3 { margin: 22px 0 10px; }
.card p { font-size: .98rem; }
.link-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11,18,32,.35); border-color: transparent; }
.dark .link-card:hover { box-shadow: 0 30px 60px -30px rgba(56,107,255,.55); border-color: rgba(56,107,255,.4); }
.card-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card .num { position: absolute; top: 28px; right: 28px; font: 500 .76rem/1 var(--f-mono); color: var(--muted); }

ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.ticks li { position: relative; padding-left: 32px; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; font: 500 .78rem/1.2 var(--f-mono); color: var(--fg); background: var(--chip); border: 1px solid var(--line); white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
a.chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Services pinned stack (home) ---------- */
.stack-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 34px; }
.stack-head > div:first-child { max-width: 640px; }
.stack-head p { margin: 0; }
.stack-counter { display: flex; align-items: baseline; gap: 10px; font: 750 clamp(2.6rem, 5vw, 4rem)/1 var(--f-head); color: var(--fg); letter-spacing: -.05em; }
.stack-counter span { font: 500 1rem/1 var(--f-mono); color: var(--muted); letter-spacing: 0; }
.stack-bars { display: flex; gap: 6px; margin-top: 16px; }
.stack-bars i { width: 30px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.stack-bars i b { position: absolute; inset: 0; background: var(--cyan); transform-origin: left; transform: scaleX(0); }
.stack-bars i.done b { transform: scaleX(1); }
.svc-stack { position: relative; display: grid; gap: 22px; }
.svc-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(16px, 2.2vw, 24px); border-radius: 30px; background: var(--card-2); border: 1px solid var(--line); box-shadow: 0 -30px 60px -30px rgba(0,0,0,.7); }
.svc-card .art { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: #0b1220; }
.svc-card .art img { width: 100%; height: 100%; object-fit: cover; }
.svc-card .art .num-tag { position: absolute; left: 14px; top: 14px; font: 500 .7rem/1 var(--f-mono); color: #fff; background: rgba(11,18,32,.75); padding: 7px 10px; border-radius: 999px; }
.svc-card .txt { padding: 10px 14px 10px 0; }
.svc-card .meta { font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: flex; justify-content: space-between; gap: 10px; }
.svc-card h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); letter-spacing: -.045em; margin: 0 0 16px; }
.svc-card p { font-size: 1.03rem; max-width: 52ch; }
.svc-card .chips { margin: 22px 0 28px; }
@media (min-width: 1024px) {
  .has-gsap .svc-stack.pinned { display: block; height: var(--stack-h, min(540px, calc(100vh - 280px))); }
  /* While pinned, the section fills exactly one screen: compact head, card sized by JS to the space left. */
  .has-gsap .svc-section.is-pinned { padding-top: calc(var(--header-h) + 20px); padding-bottom: 24px; }
  .has-gsap .svc-section.is-pinned .stack-head { margin-bottom: 22px; }
  .has-gsap .svc-section.is-pinned .stack-head h2 { margin-bottom: .25em; }
  .has-gsap .svc-section.is-pinned .stack-counter { font-size: clamp(2.2rem, 4.6vh, 3.4rem); }
  .has-gsap .svc-stack.pinned .svc-card { overflow: hidden; }
  .has-gsap .svc-stack.pinned .svc-card h3 { font-size: clamp(1.6rem, 4.4vh, 2.8rem); margin-bottom: 12px; }
  .has-gsap .svc-stack.pinned .svc-card p { font-size: clamp(.92rem, 1.9vh, 1.03rem); }
  .has-gsap .svc-stack.pinned .svc-card .meta { margin-bottom: 12px; }
  .has-gsap .svc-stack.pinned .svc-card .chips { margin: clamp(10px, 2vh, 22px) 0 clamp(14px, 2.6vh, 28px); }
  .has-gsap .svc-stack.pinned .svc-card { position: absolute; inset: 0; height: 100%; transform-origin: 50% 0; will-change: transform, opacity; }
  .has-gsap .svc-stack.pinned .svc-card .art { aspect-ratio: auto; height: 100%; }
}

/* ---------- Layers (sticky stacking) ---------- */
.layers-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.layers-wrap .sticky { position: sticky; top: calc(var(--header-h) + 60px); }
.big-text { font: 700 clamp(1.7rem, 3.2vw, 2.7rem)/1.22 var(--f-head); letter-spacing: -.04em; color: var(--fg); margin-bottom: 30px; }
.big-text mark { background: none; color: var(--accent); }
.layers { display: grid; gap: 22px; }
.layer { position: sticky; padding: 30px; border-radius: var(--r); background: var(--card-2); border: 1px solid var(--line); min-height: 230px; display: flex; flex-direction: column; box-shadow: 0 -24px 40px -26px rgba(0,0,0,.6); }
.layer:nth-child(1) { top: calc(var(--header-h) + 40px); }
.layer:nth-child(2) { top: calc(var(--header-h) + 62px); }
.layer:nth-child(3) { top: calc(var(--header-h) + 84px); }
.layer:nth-child(4) { top: calc(var(--header-h) + 106px); }
.layer .top { display: flex; justify-content: space-between; gap: 12px; font: 500 .7rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.layer h3 { font-size: 1.65rem; margin: auto 0 0; padding-top: 40px; letter-spacing: -.035em; }
.layer p { margin: 10px 0 0; }
.layer.hl { background: var(--blue); border-color: var(--blue); }
.layer.hl h3, .layer.hl p, .layer.hl .top { color: #fff; }
.layer.wh { background: #fff; border-color: #fff; }
.layer.wh h3 { color: #0b1220; }
.layer.wh p, .layer.wh .top { color: #586179; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.project { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.project .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b1220; margin: 10px 10px 0; border-radius: 16px; }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project:hover .thumb img { transform: scale(1.07); }
.project .thumb .demo-tag { position: absolute; left: 12px; top: 12px; }
.project .go { position: absolute; right: 14px; bottom: 14px; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #0b1220; display: grid; place-items: center; transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease); }
.project .go svg { width: 18px; height: 18px; }
.project:hover .go { transform: scale(1) rotate(-45deg); }
.project .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project .cat { font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.project h3 { margin: 0; font-size: 1.32rem; }
.project h3 a { color: var(--fg); }
.project h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.project p { margin: 0; font-size: .96rem; }
.project .chips { margin-top: auto; padding-top: 10px; }
.project[hidden] { display: none; }

/* Horizontal work rail (home) */
.rail-wrap { overflow: hidden; }
.rail { display: flex; gap: 24px; width: max-content; padding: 6px max(5vw, 20px) 10px; }
.rail .project { width: min(430px, 82vw); flex: none; }
.rail .rail-end { width: min(340px, 78vw); flex: none; display: grid; place-content: center; gap: 18px; padding: 36px; border-radius: var(--r); background: var(--navy); text-align: left; }
.rail .rail-end h3 { color: #fff; font-size: 1.8rem; margin: 0; }
.rail .rail-end p { color: #a3adc2; margin: 0; }
.no-pin .rail-wrap, .no-gsap .rail-wrap { overflow-x: auto; scroll-snap-type: x mandatory; }
.no-pin .rail > *, .no-gsap .rail > * { scroll-snap-align: start; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter { min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--fg); font: 600 .92rem/1 var(--f-body); cursor: pointer; transition: all .25s; }
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.empty-state { text-align: center; padding: 40px; }

/* ---------- Process ---------- */
.process { position: relative; max-width: 1000px; margin-inline: auto; }
.process-line { position: absolute; left: 50%; top: 20px; bottom: 20px; width: 2px; background: var(--line); translate: -1px 0; }
.process-line i { position: absolute; inset: 0; background: linear-gradient(var(--cyan), var(--blue), var(--violet)); transform-origin: top; transform: scaleY(0); }
.no-gsap .process-line i { transform: scaleY(1); }
.step { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 80px minmax(0,1fr); align-items: center; padding-block: 16px; }
.step .dot { grid-column: 2; grid-row: 1; justify-self: center; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line); color: var(--blue); font: 700 .95rem/1 var(--f-mono); z-index: 1; transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease); }
.step.on .dot, .no-gsap .step .dot { background: var(--blue); color: #fff; border-color: var(--blue); transform: scale(1.06); }
.step .box { padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); grid-row: 1; }
.step:nth-child(odd) .box { grid-column: 1; }
.step:nth-child(even) .box { grid-column: 3; }
.step .box h3 { margin: 0 0 8px; font-size: 1.35rem; }
.step .box p { margin: 0; font-size: .97rem; }
.step .box .when { display: block; font: 500 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

.steps4 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.steps4 li { padding: 30px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); position: relative; }
.steps4 li .n { display: block; font: 800 3rem/1 var(--f-head); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--blue); margin-bottom: 30px; }
.dark .steps4 li .n { -webkit-text-stroke-color: var(--cyan); }
.steps4 h3 { margin: 0 0 8px; }
.steps4 p { margin: 0; font-size: .96rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); }
.stat { padding: 36px 26px 10px 0; }
.stat + .stat { padding-left: 26px; border-left: 1px solid var(--line); }
.stat strong { display: block; font: 800 clamp(2.6rem, 5.6vw, 4.6rem)/1 var(--f-head); letter-spacing: -.055em; color: var(--fg); margin-bottom: 14px; white-space: nowrap; }
.stat strong sup { font-size: .5em; color: var(--accent); vertical-align: top; position: relative; top: .2em; margin-left: 3px; }
.stat > span { font-size: .96rem; }

/* ---------- Problems grid ---------- */
.problems { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.problem { position: relative; overflow: hidden; padding: 30px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); isolation: isolate; display: flex; flex-direction: column; }
.problem::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: translateY(101%); transition: transform .6s var(--ease); }
.problem:hover::before, .problem:focus-within::before { transform: translateY(0); }
.problem .q { font: 500 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bad); margin-bottom: 16px; display: block; transition: color .4s; }
.problem h3 { font-size: 1.2rem; margin: 0 0 12px; transition: color .4s; }
.problem p { margin: 0 0 22px; font-size: .95rem; transition: color .4s; }
.problem .text-link { margin-top: auto; align-self: flex-start; transition: color .4s; }
.problem:hover h3, .problem:hover .text-link, .problem:focus-within h3, .problem:focus-within .text-link { color: #fff; }
.problem:hover p, .problem:focus-within p { color: #a3adc2; }
.problem:hover .q, .problem:focus-within .q { color: var(--cyan); }
.problem .text-link::after { background: var(--cyan); }

/* ---------- Testimonials ---------- */
.quotes-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 88%); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: none; }
.quotes-rail::-webkit-scrollbar { display: none; }
.quote { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 22px; padding: 36px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.quote .qmark { width: 42px; height: 42px; color: var(--accent); }
.quote blockquote { margin: 0; color: var(--fg); font: 550 1.2rem/1.55 var(--f-head); letter-spacing: -.015em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; flex-wrap: wrap; }
.avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font: 700 .88rem/1 var(--f-mono); color: #fff; background: var(--grad); flex: none; }
.quote figcaption strong { display: block; }
.quote figcaption .r { font-size: .86rem; }
.quote .demo-tag { margin-left: auto; }
.rail-ctrl { display: flex; gap: 10px; }
.rail-ctrl button { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; }
.rail-ctrl button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.rail-ctrl svg { width: 20px; height: 20px; }
.rail-ctrl .prev svg { transform: rotate(180deg); }

/* ---------- Tech groups ---------- */
.stack-groups { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.stack-groups .card { padding: 26px; }
.stack-groups h3 { margin: 0 0 16px; font-size: 1.05rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 920px; border-top: 1px solid var(--line); }
.center + .faq, .faq.center-x { margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; min-height: 56px; color: var(--fg); font: 650 1.12rem/1.4 var(--f-head); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); font: 400 1.4rem/1 var(--f-body); color: var(--fg); transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s; }
.faq summary:hover::after { border-color: var(--blue); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: #fff; }
.faq .ans { overflow: hidden; }
.faq .ans p { margin: 0; padding: 0 64px 26px 0; }

/* ---------- CTA ---------- */
.cta-big { text-align: center; position: relative; overflow: hidden; }
.cta-big::before { content: ""; position: absolute; width: 1000px; height: 1000px; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(56,107,255,.32), transparent 70%); pointer-events: none; }
.cta-big .container { position: relative; }
.cta-big h2 { font-size: clamp(2.6rem, 7.4vw, 6.4rem); letter-spacing: -.055em; line-height: .98; margin: 0 auto 26px; max-width: 14ch; }
.cta-big p { max-width: 56ch; margin: 0 auto 40px; font-size: 1.12rem; }
.cta-big .btn-row { justify-content: center; }

/* ---------- Page hero ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(60px, 7vw, 100px); position: relative; overflow: hidden; }
.page-hero .hero-glow.g1 { width: 480px; height: 480px; top: -180px; right: -120px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 17ch; }
.page-hero .lead { color: #b6c0d6; margin-bottom: 30px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; font: 500 .76rem/1.4 var(--f-mono); letter-spacing: .04em; color: #8fa0c4; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: #8fa0c4; }
.crumbs a:hover { color: #fff; }
.hero-art { border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.hero-art img { width: 100%; height: auto; }

/* ---------- Split / service rows ---------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.split.top { align-items: start; }
.panel { padding: clamp(26px, 4vw, 44px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.service-list { border-top: 1px solid var(--line); }
.service-row { position: relative; display: grid; grid-template-columns: 60px minmax(0, .9fr) minmax(0, 1.3fr) 56px; gap: 28px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); isolation: isolate; }
.service-row::before { content: ""; position: absolute; inset: 0 -24px; z-index: -1; border-radius: 18px; background: var(--card); opacity: 0; transition: opacity .3s; }
.service-row:hover::before { opacity: 1; }
.service-row .n { font: 500 .82rem/1 var(--f-mono); color: var(--muted); }
.service-row h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.service-row p { margin: 0 0 12px; font-size: .97rem; }
.service-row .arrow { justify-self: end; width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--fg); transition: background .3s, color .3s, transform .45s var(--ease), border-color .3s; }
.service-row .arrow svg { width: 20px; height: 20px; }
.service-row:hover .arrow { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(-45deg); }
.service-row .arrow::after { content: ""; position: absolute; inset: 0; }

.engage { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; align-items: stretch; }
.engage .card { display: flex; flex-direction: column; }
.engage .card h3 { margin-top: 0; font-size: 1.5rem; }
.engage .card.featured { background: var(--navy); border-color: var(--navy); }
.engage .card.featured h3, .engage .card.featured .price { color: #fff; }
.engage .card.featured p, .engage .card.featured li { color: #b6c0d6; }
.engage .price { font: 700 1.15rem/1.3 var(--f-head); color: var(--fg); margin: 6px 0 20px; }
.engage .price span { display: block; font: 500 .76rem/1.4 var(--f-mono); color: var(--muted); margin-top: 4px; }
.engage .btn-row { margin-top: auto; padding-top: 28px; }
.badge { display: inline-flex; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--blue); color: #fff; font: 600 .68rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }

/* ---------- Case study ---------- */
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 40px 0 0; border-top: 1px solid rgba(255,255,255,.12); }
.case-meta div { padding: 20px 20px 0 0; }
.case-meta div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.12); }
.case-meta dt { font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #8fa0c4; margin-bottom: 6px; }
.case-meta dd { margin: 0; color: #fff; font-weight: 600; }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 64px; align-items: start; }
.case-body article h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 56px; }
.case-body article p, .case-body article li { font-size: 1.05rem; }
.case-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.case-aside .card { padding: 24px; }
.case-aside h3 { margin: 0 0 14px; font-size: 1.02rem; }
.case-figure { margin: 0 0 10px; border-radius: var(--r); overflow: hidden; background: #0b1220; }
.case-figure img { width: 100%; height: auto; }
.case-figure figcaption { padding: 12px 18px; font: 500 .72rem/1.4 var(--f-mono); color: #8fa0c4; }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin: 22px 0 4px; }
.outcome { padding: 26px; border-radius: 18px; background: var(--navy); }
.outcome strong { display: block; font: 800 2.2rem/1 var(--f-head); letter-spacing: -.045em; color: #fff; margin-bottom: 10px; }
.outcome span { font-size: .9rem; color: #a3adc2; }
.next-big { display: block; color: var(--fg); padding: 56px 0; border-top: 1px solid var(--line); }
.next-big:hover { color: var(--fg); }
.next-big span { display: block; font: 500 .74rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.next-big strong { font: 800 clamp(2.2rem, 6.4vw, 5rem)/1 var(--f-head); letter-spacing: -.055em; display: inline-flex; align-items: center; gap: 22px; transition: color .3s; }
.next-big strong svg { width: .7em; height: .7em; transition: transform .5s var(--ease); }
.next-big:hover strong { color: var(--blue); }
.next-big:hover strong svg { transform: translateX(14px) rotate(-45deg); }
.prev-next { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 .76rem/1.4 var(--f-mono); color: var(--muted); }
.page-hero .post-meta { color: #8fa0c4; }
.prose { max-width: 740px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 50px; }
.prose p, .prose li { font-size: 1.1rem; line-height: 1.8; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 36px 0; padding: 28px 32px; border-radius: 18px; background: var(--navy); color: #fff; font: 550 1.22rem/1.55 var(--f-head); letter-spacing: -.015em; border-left: 4px solid var(--cyan); }
.article-cover { margin: 0 0 40px; max-width: 980px; border-radius: var(--r); overflow: hidden; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 32px; align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field > label, .field legend { font-weight: 650; font-size: .93rem; color: var(--fg); }
.req { color: var(--blue); }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card-2); color: var(--fg); font: 16px/1.4 var(--f-body); transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23586179' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; }
.field input::placeholder, .field textarea::placeholder { color: #98a1b5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(56,107,255,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.field .error { margin: 0; font-size: .86rem; color: var(--bad); font-weight: 550; }
.field .error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--blue); flex: none; }
.radio-pills { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.radio-pills legend { margin-bottom: 10px; float: left; width: 100%; }
.radio-pills label { position: relative; }
.radio-pills input { position: absolute; opacity: 0; inset: 0; }
.radio-pills span { display: inline-flex; min-height: 46px; align-items: center; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card-2); font-size: .92rem; font-weight: 600; color: var(--fg); cursor: pointer; transition: all .2s; }
.radio-pills input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.radio-pills input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.form-status { grid-column: 1 / -1; padding: 16px 18px; border-radius: 14px; font-size: .96rem; }
.form-status.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-status.bad { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }
.counter { margin: 0; font: 500 .74rem/1 var(--f-mono); color: var(--muted); text-align: right; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { width: 48px; height: 48px; }
.contact-list strong { display: block; }
.placeholder-note { display: block; font: 500 .72rem/1.4 var(--f-mono); color: #b45309; margin-top: 4px; }
.dark .placeholder-note { color: #fbbf24; }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 64px; align-items: start; }
.legal nav { position: sticky; top: calc(var(--header-h) + 24px); }
.legal nav ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.legal nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: .92rem; }
.legal nav a:hover { color: var(--fg); background: var(--card); }
.legal section h2 { font-size: 1.5rem; margin-top: 44px; }
.legal section:first-child h2 { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0,1fr)); gap: 40px; }
.footer-grid h2 { font: 500 .74rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #8fa0c4; margin-bottom: 20px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-grid ul a { display: inline-block; padding: 6px 0; color: #c9d2e6; font-size: .96rem; }
.footer-grid ul a:hover { color: var(--cyan); }
.footer-about p { margin: 22px 0; max-width: 38ch; }
.footer-word { font: 800 clamp(4.6rem, 22vw, 20rem)/.78 var(--f-head); letter-spacing: -.07em; text-align: center; margin: 80px 0 0; color: rgba(255,255,255,.06); user-select: none; white-space: nowrap; overflow: hidden; }
.footer-word span { display: inline-block; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 26px 0 34px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; }
.footer-bottom a { color: #8fa0c4; }

/* ---------- Floating ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #16a34a; box-shadow: 0 16px 34px -12px rgba(22,163,74,.8); transition: transform .3s var(--ease); }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; position: relative; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #16a34a; animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.to-top { position: fixed; right: 27px; bottom: 94px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(11,18,32,.6); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* Cursor follower (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1.5px solid var(--blue); pointer-events: none; opacity: 0; transition: width .3s, height .3s, margin .3s, background .3s, opacity .3s, border-color .3s; }
.cursor.on { opacity: 1; }
.cursor.big { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: rgba(56,107,255,.14); border-color: transparent; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Page wipe for transitions */
.wipe { position: fixed; inset: 0; z-index: 500; background: var(--navy); pointer-events: none; transform: scaleY(0); transform-origin: bottom; }

/* Fallback reveal without GSAP */
.no-gsap .reveal { animation: fadeUp .8s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stack-groups { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .problems { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .site-header { background: rgba(11, 18, 32, .92); }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 10px; padding: 18px max(5vw, 20px) 40px; background: var(--navy); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .55s var(--ease), visibility .55s; }
  .nav-open .nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav .nav-link { width: 100%; justify-content: space-between; font: 650 1.5rem/1.2 var(--f-head); letter-spacing: -.02em; padding: 16px 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .nav-link::after { display: none; }
  .nav .nav-link[aria-current="page"] { color: var(--cyan); }
  .menu { position: static; translate: none; width: auto; grid-template-columns: 1fr; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; margin: 10px 0; }
  .has-menu.open .menu { display: grid; }
  .nav-cta { margin: 14px 0 0; align-self: flex-start; }
  body.nav-open { overflow: hidden; }
  .hero { min-height: auto; }
  .hero-grid, .page-hero-grid, .split, .case-body, .contact-grid, .legal, .layers-wrap { grid-template-columns: minmax(0,1fr); }
  .scroll-cue { display: none; }
  .layers-wrap .sticky, .case-aside, .legal nav { position: static; }
  .legal nav { display: none; }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g3, .projects, .posts, .feature-list, .engage { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .svc-card { grid-template-columns: minmax(0,1fr); }
  .svc-card .txt { padding: 4px 6px 10px; }
  .steps4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-row { grid-template-columns: 44px minmax(0,1fr) 54px; row-gap: 10px; }
  .service-row .desc { grid-column: 2; grid-row: 2; }
  .service-row .arrow { grid-column: 3; grid-row: 1 / span 2; }
  .case-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .case-meta div:nth-child(3) { border-left: 0; padding-left: 0; }
  .float-card.f1 { right: 8px; }
  .float-card.f2 { left: 8px; }
  .layer { position: relative; top: auto !important; min-height: 0; }
  .layer h3 { padding-top: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .g2, .g3, .g4, .projects, .posts, .feature-list, .engage, .stack-groups, .outcomes, .problems, .steps4 { grid-template-columns: minmax(0,1fr); }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dash-bottom { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dash-bottom .mini:first-child { grid-column: 1 / -1; }
  .float-card { display: none; }
  .form { grid-template-columns: minmax(0,1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-line { left: 30px; }
  .step { grid-template-columns: 60px minmax(0,1fr); gap: 14px; }
  .step .dot { grid-column: 1; width: 52px; height: 52px; }
  .step:nth-child(odd) .box, .step:nth-child(even) .box { grid-column: 2; padding: 22px; }
  .stat { padding: 24px 12px 6px 0; }
  .stat + .stat { padding-left: 14px; }
  .case-meta { grid-template-columns: minmax(0,1fr); }
  .case-meta div + div { border-left: 0; padding-left: 0; }
  .service-row { grid-template-columns: minmax(0,1fr) 48px; gap: 10px 14px; }
  .service-row .n { display: none; }
  .service-row .desc { grid-column: 1; }
  .service-row .arrow { grid-column: 2; width: 46px; height: 46px; }
  .btn-row .btn { flex: 1 1 auto; }
  .card, .quote, .problem, .layer { padding: 24px; }
  .faq .ans p { padding-right: 0; }
  .sec-head--row .rail-ctrl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-hero] { opacity: 1; }
  .process-line i { transform: scaleY(1); }
}
.layer.nv { background: var(--navy); border-color: var(--navy); }
.layer.nv h3 { color: #fff; }
.layer.nv p, .layer.nv .top { color: #a3adc2; }
@media (max-width: 640px) { .float-card, .float-card.f2 { display: none; } }
@media (max-width: 1023px) { .stack-head > div[aria-hidden] { display: none; } }
@media (max-width: 640px) { .chip { white-space: normal; } }

/* ==========================================================================
   WordPress integration
   ========================================================================== */

/* Admin bar: keep the fixed header below it */
.admin-bar .site-header { top: 32px; }
.admin-bar { --wp-admin-bar: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar { --wp-admin-bar: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
  .admin-bar.nav-open .site-header { top: 0; }
}
@media (max-width: 1023px) {
  .admin-bar .nav { top: calc(var(--header-h) + var(--wp-admin-bar, 0px)); height: calc(100dvh - var(--header-h) - var(--wp-admin-bar, 0px)); }
}
@media (max-width: 600px) { .admin-bar .nav { top: var(--header-h); height: calc(100dvh - var(--header-h)); } }

/* Custom logo */
.brand .custom-logo { width: auto; height: 38px; max-width: 160px; object-fit: contain; }

/* Menu items from wp_nav_menu */
.nav > ul > li { list-style: none; }
.nav .menu-all { gap: 8px; }

/* Filters rendered as links (blog categories, project types) */
a.filter { display: inline-flex; align-items: center; text-decoration: none; }
.filter[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Services list: title links + whole-row click target */
.service-row h3 a { color: var(--fg); }
.service-row h3 a:hover { color: var(--blue); }
.service-row h3 a:focus-visible { outline-offset: 6px; }

/* Form helpers */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .submit { justify-self: start; }
.form .submit[disabled] { opacity: .7; cursor: progress; }
.panel-title { font-size: 1.7rem; }
.panel-title.sm { font-size: 1.3rem; }
.contact-aside { display: grid; gap: 22px; }
.panel-h { margin-top: 0; }
.panel-rule { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.article-cta { margin-top: 48px; }
.article-cta h2 { margin-top: 0; font-size: 1.4rem; }

/* 404 */
.nf { min-height: 82vh; display: grid; align-items: center; }
.nf-inner { text-align: center; }
.nf-inner h1, .nf-inner .lead { margin-inline: auto; }
.nf-code { font-size: clamp(5rem, 16vw, 11rem); line-height: 1; margin: 0 0 10px; color: var(--cyan); }
.nf .btn-row { justify-content: center; }
.nf .hero-search { margin: 0 auto 28px; }

/* Search */
.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form input[type="search"] { flex: 1; min-height: 50px; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card-2); color: var(--fg); font: 16px/1.4 var(--f-body); }
.search-form input[type="search"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(56,107,255,.15); }
.dark .search-form input[type="search"] { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
.search-form .btn { padding: 6px 22px; }
.hero-search { margin-top: 8px; }
.empty-block { text-align: center; max-width: 560px; margin: 0 auto; display: grid; gap: 16px; justify-items: center; }
.empty-block .btn-row { justify-content: center; }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--fg); font-weight: 600; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Legal template */
.legal-note { padding: 16px 20px; border-radius: var(--r-sm); background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: .98rem !important; }
.toc-label { margin: 0 0 8px 12px; }
.legal .prose h2 { font-size: 1.5rem; margin-top: 44px; }

/* Block content inside .prose */
.prose > :first-child { margin-top: 0; }
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.prose figure { margin: 32px 0; }
.prose figcaption, .wp-caption-text, .wp-element-caption { font: 500 .78rem/1.5 var(--f-mono); color: var(--muted); margin-top: 10px; text-align: center; }
.prose h3 { font-size: 1.35rem; margin-top: 36px; }
.prose a:not(.btn):not(.chip) { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose code { font: 500 .9em var(--f-mono); background: var(--chip); padding: .15em .4em; border-radius: 6px; color: var(--fg); }
.prose pre { overflow-x: auto; padding: 22px; border-radius: var(--r-sm); background: var(--navy); color: #e2e8f0; font: 500 .9rem/1.6 var(--f-mono); }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .98rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; }
.prose th { color: var(--fg); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.prose .wp-block-quote, .prose blockquote { margin: 36px 0; }
.prose blockquote p { color: #fff; font: inherit; margin: 0; }
.prose blockquote cite { display: block; margin-top: 12px; font: 500 .8rem var(--f-mono); color: #8fa0c4; font-style: normal; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 50px; padding: 10px 24px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 650; text-decoration: none !important; }
.prose .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.prose .wp-block-image img { border-radius: var(--r-sm); }
.prose .alignwide { max-width: min(1100px, 92vw); }
.prose .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; }
.alignleft { float: left; margin: 6px 26px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 26px; }
.aligncenter { margin-inline: auto; display: block; }
.prose .has-text-align-center { text-align: center; }
.post-tags { margin-top: 32px; }
.page-links { margin-top: 28px; display: flex; gap: 10px; font-weight: 600; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Comments */
.comments-area { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.comment-list .children { list-style: none; padding-left: 28px; margin-top: 18px; display: grid; gap: 18px; }
.comment-body { padding: 22px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.comment-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: .88rem; margin-bottom: 10px; }
.comment-meta img { border-radius: 50%; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-weight: 650; color: var(--fg); margin-bottom: 6px; font-size: .93rem; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card-2); color: var(--fg); font: 16px/1.4 var(--f-body); }
.comment-form .btn { justify-self: start; padding: 8px 26px; }

/* Content entering on scroll inside long articles (JS adds .reveal-soft) */
.no-gsap .reveal-soft { opacity: 1; }

/* Editor colour palette classes */
.has-navy-color { color: #0b1220; } .has-navy-background-color { background-color: #0b1220; }
.has-blue-color { color: #386bff; } .has-blue-background-color { background-color: #386bff; }
.has-cyan-color { color: #22d3ee; } .has-cyan-background-color { background-color: #22d3ee; }
.has-violet-color { color: #7c5cff; } .has-violet-background-color { background-color: #7c5cff; }
.has-paper-color { color: #f4f6fb; } .has-paper-background-color { background-color: #f4f6fb; }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }
@media (max-width: 640px) { .footer-bottom { padding-bottom: 96px; } }
@media (max-width: 640px) { .service-row::before { inset: 0 -12px; } }

@media (min-width: 1024px) and (max-height: 760px) {
  .has-gsap .svc-section.is-pinned .stack-head p { display: none; }
  .has-gsap .svc-stack.pinned .svc-card .chips li:nth-child(n+4) { display: none; }
}
