/*
Theme Name: Serenial Digital
Theme URI: https://serenialtechindia.floot.app/
Author: Serenial Technology Pvt. Ltd.
Description: Digital development website — mobile & IoT apps, websites, AI integration & agents (Hermes case study), ERP and cloud. Includes Appearance → Serenial Setup to create service, case-study, company and blog pages.
Version: 2.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serenial
*/

/* ---------- Tokens ---------- */
:root {
	--navy: #060d18;
	--navy-2: #0b1626;
	--navy-3: #10203a;
	--accent: #3b9eff;
	--accent-2: #22d3ee;
	--accent-3: #8b5cf6;
	--ok: #34d399;
	--warn: #f59e0b;
	--danger: #f43f5e;
	--paper: #eef2f5;
	--paper-2: #e5ebef;
	--font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--radius: 14px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
	--topbar-h: 36px;
	--header-h: 116px;
}

.section--dark,
.site-footer,
.mobile-menu,
.modal__dialog {
	--bg: var(--navy);
	--bg-2: var(--navy-2);
	--fg: #e9eff8;
	--muted: #8696ad;
	--line: rgba(148, 190, 255, .12);
	--line-strong: rgba(148, 190, 255, .24);
	--card: rgba(255, 255, 255, .03);
	--card-solid: #0c1829;
	--grid: rgba(120, 170, 255, .06);
}

.section--light {
	--bg: var(--paper);
	--bg-2: var(--paper-2);
	--fg: #0a1220;
	--muted: #586477;
	--line: rgba(10, 18, 32, .1);
	--line-strong: rgba(10, 18, 32, .2);
	--card: #fbfcfd;
	--card-solid: #fff;
	--grid: rgba(10, 18, 32, .05);
}

[data-theme="dark"] .section--light {
	--bg: #08111e;
	--bg-2: #0a1524;
	--fg: #e9eff8;
	--muted: #8696ad;
	--line: rgba(148, 190, 255, .12);
	--line-strong: rgba(148, 190, 255, .24);
	--card: rgba(255, 255, 255, .035);
	--card-solid: #0e1b2e;
	--grid: rgba(120, 170, 255, .06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--navy);
	color: #e9eff8;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
html, body, main { overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; position: relative; }
.container--narrow { width: min(780px, 100% - 48px); }
.mono { font-family: var(--font); font-size: .8rem; font-weight: 500; letter-spacing: .005em; text-transform: none; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.grad { color: var(--accent); font-style: italic; font-weight: inherit; }
@keyframes gradShift { 50% { background-position: 100% 0; } }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; background: var(--bg); color: var(--fg); transition: background-color .5s, color .5s; }
.section--dark { background: var(--bg); color: var(--fg); }
.section--alt { background: var(--bg-2); }

.grid-bg {
	position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); margin: 0 0 18px; font-size: .95rem !important; font-weight: 600 !important; }
.eyebrow::before { content: none; }
.eyebrow:has(.eyebrow__dot)::before { display: none; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 var(--accent-2); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } }

.h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; margin: 0; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0; max-width: 46ch; }
.split-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }

/* ---------- Buttons ---------- */
.btn {
	--bx: 0px; --by: 0px;
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 24px; border-radius: 10px; border: 1px solid transparent;
	font-weight: 600; font-size: .95rem; text-decoration: none; overflow: hidden; isolation: isolate;
	transform: translate(var(--bx), var(--by));
	transition: transform .35s var(--ease-out), box-shadow .3s, border-color .3s, background-color .3s, color .3s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(59, 158, 255, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--primary::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(100deg, var(--accent-3), var(--accent-2));
	transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary::after {
	content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: -1;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
	transform: skewX(-20deg); animation: shine 4.5s infinite;
}
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn--ghost { border-color: var(--line-strong); color: var(--fg); background: rgba(255,255,255,.02); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 10px 16px; font-size: .85rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow .icon { width: 18px; transition: transform .3s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(6px); }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Preloader ---------- */

/* ---------- Cursor & progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 400; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent-2); mix-blend-mode: difference; }
.cursor__ring {
	width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(59, 158, 255, .6);
	display: grid; place-items: center; transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background-color .3s, border-color .3s;
}
.cursor__label { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(59, 158, 255, .12); }
.cursor.is-label .cursor__ring { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-down .cursor__ring { transform: scale(.8); }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; pointer-events: none; transition: transform .6s var(--ease-out); }
.site-header > * { pointer-events: auto; }
.site-header.is-scrolled { transform: translateY(calc(-1 * var(--topbar-h))); }
.site-header.is-hidden { transform: translateY(calc(-100% - 12px)); }
.menu-open .site-header { transform: none; }

/* Utility bar */
.topbar { height: var(--topbar-h); display: flex; align-items: center; color: #93a4bb; background: linear-gradient(90deg, rgba(59, 158, 255, .1), rgba(139, 92, 246, .07) 55%, transparent); border-bottom: 1px solid rgba(148, 190, 255, .08); transition: opacity .4s; }
.is-scrolled .topbar { opacity: 0; pointer-events: none; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: min(1240px, 100% - 48px); }
.topbar__status { margin: 0; display: flex; align-items: center; gap: 10px; font-size: .58rem; color: #d6e6ff; white-space: nowrap; }
.topbar__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pingOk 2s infinite; flex: none; }
@keyframes pingOk { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .65); } 80%, 100% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
.topbar__sep { opacity: .3; }
.topbar__muted { color: #8696ad; }
.topbar__links { display: flex; gap: 22px; font-size: .58rem; white-space: nowrap; }
.topbar__links a, .topbar__links span { display: inline-flex; align-items: center; gap: 7px; color: #93a4bb; text-decoration: none; transition: color .2s; }
.topbar__links a:hover { color: #fff; }
.topbar__links .icon { width: 13px; height: 13px; color: var(--accent-2); }

/* Floating glass bar */
.hbar-wrap { position: relative; margin-top: 10px; }
.hbar {
	position: relative; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 10px 0 16px;
	border-radius: 18px; color: #e9eff8;
	background: linear-gradient(180deg, rgba(15, 28, 50, .74), rgba(7, 15, 28, .7));
	backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
	border: 1px solid rgba(148, 190, 255, .12);
	box-shadow: 0 20px 50px -26px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
	transition: height .5s var(--ease-out), box-shadow .4s;
}
.hbar::before {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
	background: linear-gradient(115deg, rgba(59, 158, 255, .75), rgba(59, 158, 255, 0) 28%, rgba(139, 92, 246, 0) 72%, rgba(139, 92, 246, .75));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
	opacity: .45; transition: opacity .4s;
}
.is-scrolled .hbar { height: 58px; box-shadow: 0 26px 60px -24px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06); }
.is-scrolled .hbar::before { opacity: .9; }
.hbar__progress { position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; border-radius: 2px; overflow: hidden; pointer-events: none; }
.hbar__progress i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px rgba(34, 211, 238, .8); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; color: inherit; }
.brand__logo { max-height: 40px; width: auto; }
.brand__mark { display: block; width: 36px; height: 36px; }
.brand__mark svg { width: 100%; height: 100%; overflow: visible; }
.bm-hex { fill: rgba(59, 158, 255, .14); stroke: url(#bm-g); stroke-width: 2.2; transform-origin: 20px 20px; transition: transform .9s var(--ease-out), fill .3s; }
.bm-s { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 60; }
.bm-dot { fill: var(--accent-2); animation: blink 2.4s steps(2) infinite; }
.brand:hover .bm-hex { transform: rotate(60deg); fill: rgba(59, 158, 255, .3); }
.brand:hover .bm-s { animation: drawS .9s var(--ease-out); }
@keyframes drawS { from { stroke-dashoffset: 60; } }
.brand__word { display: flex; align-items: center; gap: 7px; font-size: 1.14rem; letter-spacing: -.025em; line-height: 1; }
.brand__word b { font-weight: 700; color: #fff; }
.brand__word em { font-style: normal; font-family: var(--mono); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; color: #fff; background: var(--grad); background-size: 200% 100%; animation: gradShift 6s ease infinite; }
.brand__name { font-size: .78rem; letter-spacing: .2em; color: #b9c6d8; }
.brand__name b { color: #fff; font-weight: 500; }

/* Nav with sliding pill */
.nav { position: relative; }
.hbar .nav__list { position: relative; z-index: 1; list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; border-radius: 13px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(148, 190, 255, .08); }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: .88rem; font-weight: 500; color: #b4c2d6; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .25s; }
.nav__link:hover, .nav__link.is-current, .nav__trigger[aria-expanded="true"] { color: #fff; }
.nav__link.is-current::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 6px var(--accent-2); }
.nav__chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.nav__trigger[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__pill { position: absolute; z-index: 0; left: 0; top: 5px; height: calc(100% - 10px); width: 0; border-radius: 9px; opacity: 0; pointer-events: none; background: linear-gradient(135deg, rgba(59, 158, 255, .3), rgba(139, 92, 246, .24)); box-shadow: inset 0 0 0 1px rgba(59, 158, 255, .4), 0 8px 22px -10px rgba(59, 158, 255, .9); transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .3s; }

/* Actions */
.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.theme-toggle { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(148, 190, 255, .16); background: rgba(255, 255, 255, .04); display: grid; place-items: center; color: #e9eff8; position: relative; overflow: hidden; transition: border-color .25s, background-color .25s; }
.theme-toggle:hover { border-color: var(--accent); background: rgba(59, 158, 255, .12); }
.theme-toggle .icon { width: 18px; grid-area: 1 / 1; transition: transform .5s var(--ease-out), opacity .3s; }
[data-theme="light"] .theme-toggle .icon--sun { transform: translateY(150%) rotate(90deg); opacity: 0; }
[data-theme="dark"] .theme-toggle .icon--moon { transform: translateY(-150%) rotate(-90deg); opacity: 0; }
.hcta {
	--bx: 0px; --by: 0px; position: relative; display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 6px 0 18px; border-radius: 12px;
	text-decoration: none; color: #fff; font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; isolation: isolate;
	background: linear-gradient(120deg, #3b9eff, #6366f1 55%, #8b5cf6); background-size: 200% 100%;
	box-shadow: 0 10px 30px -10px rgba(59, 158, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
	transform: translate(var(--bx), var(--by)); transition: transform .35s var(--ease-out), background-position .6s, box-shadow .3s;
}
.hcta::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 5s infinite; }
.hcta:hover { background-position: 100% 0; box-shadow: 0 14px 36px -10px rgba(139, 92, 246, .95), inset 0 1px 0 rgba(255, 255, 255, .3); }
.hcta__icon { position: relative; width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .2); overflow: hidden; display: grid; place-items: center; }
.hcta__icon .icon { position: absolute; width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.hcta__icon .icon:last-child { transform: translateX(-160%); }
.hcta:hover .hcta__icon .icon:first-child { transform: translateX(160%); }
.hcta:hover .hcta__icon .icon:last-child { transform: none; }

.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(148, 190, 255, .2); background: rgba(255, 255, 255, .05); }
.menu-toggle span { position: absolute; left: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .45s var(--ease-out), opacity .3s, width .3s var(--ease-out); }
.menu-toggle span:nth-child(1) { top: 14px; width: 20px; }
.menu-toggle span:nth-child(2) { top: 20px; width: 13px; }
.menu-toggle span:nth-child(3) { top: 26px; width: 20px; }
.menu-toggle:hover span:nth-child(2) { width: 20px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: calc(100% + 10px); visibility: hidden; opacity: 0; transform: translateY(-10px) scale(.985); transform-origin: top center; transition: opacity .3s, transform .45s var(--ease-out), visibility .3s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mega.is-open { visibility: visible; opacity: 1; transform: none; }
.mega__panel { display: grid; grid-template-columns: 1.4fr 1fr .95fr; gap: 6px; padding: 10px; border-radius: 22px; color: #e9eff8; background: rgba(8, 17, 31, .94); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border: 1px solid rgba(148, 190, 255, .16); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85); }
.mega__label { margin: 8px 12px 8px; color: #8696ad; font-size: .55rem; }
.mega__featured, .mega__caps { padding: 6px; }
.mega__card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; text-decoration: none; color: inherit; transition: background-color .25s; }
.mega.is-open .mega__card, .mega.is-open .mega__caps li, .mega.is-open .mega__promo { animation: swapIn .5s var(--ease-out) both; }
.mega.is-open .mega__card { animation-delay: calc(var(--i) * 60ms + 60ms); }
.mega.is-open .mega__promo { animation-delay: .2s; }
.mega__card:hover, .mega__card.is-current { background: rgba(59, 158, 255, .1); }
.mega__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .45s var(--ease-out); }
.mega__card:hover .mega__icon { transform: rotate(-8deg) scale(1.06); }
.mega__icon--0 { background: linear-gradient(135deg, #3b9eff, #22d3ee); }
.mega__icon--1 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.mega__icon--2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.mega__icon .icon { width: 22px; height: 22px; }
.mega__text b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .98rem; font-weight: 600; }
.mega__text b em { font-style: normal; font-size: .5rem; padding: 3px 6px; border-radius: 5px; background: rgba(34, 211, 238, .14); color: var(--accent-2); }
.mega__text small { display: block; margin-top: 3px; color: #8696ad; font-size: .8rem; line-height: 1.4; }
.mega__arrow { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(148, 190, 255, .2); color: #b9c6d8; transition: background-color .25s, color .25s, transform .35s var(--ease-out), border-color .25s; }
.mega__arrow .icon { width: 14px; height: 14px; }
.mega__card:hover .mega__arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }
.mega__caps { border-left: 1px solid rgba(148, 190, 255, .1); }
.mega__caps ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.mega__caps li:nth-child(2) { animation-delay: .05s !important; } .mega__caps li:nth-child(3) { animation-delay: .1s !important; } .mega__caps li:nth-child(4) { animation-delay: .15s !important; } .mega__caps li:nth-child(5) { animation-delay: .2s !important; } .mega__caps li:nth-child(6) { animation-delay: .25s !important; }
.mega__caps a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: #c7d3e3; font-size: .9rem; transition: background-color .2s, color .2s, padding .3s var(--ease-out); }
.mega__caps a span { width: 38px; font-size: .52rem; color: var(--accent); }
.mega__caps a:hover { background: rgba(255, 255, 255, .05); color: #fff; padding-left: 18px; }
.mega__promo { position: relative; display: grid; align-content: start; gap: 12px; padding: 22px; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 100% 0, rgba(139, 92, 246, .38), transparent 60%), radial-gradient(circle at 0 100%, rgba(59, 158, 255, .32), transparent 60%), #0c1a30; border: 1px solid rgba(59, 158, 255, .25); }
.mega__promo b { font-size: 1.3rem; letter-spacing: -.025em; line-height: 1.2; }
.mega__promo p { margin: 0; color: #a9b8cc; font-size: .86rem; }
.mega__promo .btn { justify-self: start; }
.mega__badge { display: inline-flex; align-items: center; gap: 8px; font-size: .55rem; color: var(--ok); }
.mega__wa { display: inline-flex; gap: 6px; align-items: center; font-size: .56rem; color: #8696ad; text-decoration: none; transition: color .2s; }
.mega__wa .icon { width: 14px; height: 14px; color: #25d366; }
.mega__wa:hover { color: #fff; }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 150; overflow-y: auto; color: #e9eff8; background: radial-gradient(circle at 100% 0, rgba(59, 158, 255, .2), transparent 50%), radial-gradient(circle at 0 100%, rgba(139, 92, 246, .16), transparent 50%), var(--navy); clip-path: circle(0 at calc(100% - 50px) 46px); transition: clip-path .8s var(--ease-out); visibility: hidden; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 50px) 46px); visibility: visible; }
.mobile-menu__inner { min-height: 100%; padding-top: calc(var(--header-h) + 16px); padding-bottom: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.mm-list { list-style: none; margin: 0; padding: 0; }
.mm-list a { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(148, 190, 255, .12); font-size: clamp(1.35rem, 6vw, 2rem); font-weight: 600; letter-spacing: -.025em; text-decoration: none; color: #e9eff8; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out), color .2s; }
.menu-open .mm-list a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 50ms + .15s); }
.mm-list li { --i: 0; }
.mm-list a .mono { width: 24px; font-size: .6rem; color: var(--accent-2); }
.mm-list a .icon { margin-left: auto; width: 18px; height: 18px; color: #8696ad; transition: transform .3s var(--ease-out), color .2s; }
.mm-list a:hover, .mm-list a.is-current { color: var(--accent); }
.mm-list a:hover .icon { transform: rotate(45deg); color: var(--accent); }
.mm-foot { display: grid; gap: 10px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease-out); }
.menu-open .mm-foot { opacity: 1; transform: none; transition-delay: .45s; }
.mm-contact { display: grid; gap: 4px; margin: 8px 0 0; text-align: center; color: #8696ad; font-size: .6rem; }
.mm-contact a { color: #e9eff8; text-decoration: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
/* Above the fold: animate with CSS from the first paint instead of waiting for JavaScript (keeps LCP fast). */
.js .hero .reveal, .js .page-hero .reveal { opacity: 1; filter: none; transform: none; transition: none; animation: rise-in .8s var(--ease-out) both; animation-delay: min(var(--d, 0s), .2s); }
@keyframes rise-in { from { opacity: .15; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .hero .reveal, .js .page-hero .reveal { animation: none; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
.split.is-in .w > span { transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 60px) 0 90px; display: flex; align-items: center; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow { position: absolute; width: 900px; height: 900px; right: -200px; top: -300px; background: radial-gradient(circle, rgba(59, 158, 255, .2), transparent 60%); filter: blur(20px); pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-120px, 120px) scale(1.15); } }
.hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 4.7vw, 4.7rem); line-height: .98; letter-spacing: -.045em; font-weight: 600; margin: 0 0 28px; }
.rotator { display: inline-block; position: relative; vertical-align: top; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.rotator__word { display: inline-block; transition: transform .6s var(--ease-out), opacity .4s; }
.rotator__word.is-out { transform: translateY(-110%); opacity: 0; }
.rotator__word.is-pre { transform: translateY(110%); opacity: 0; transition: none; }
.hero__text { font-size: 1.15rem; color: var(--muted); max-width: 54ch; margin: 0 0 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero__points { list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--line); font-size: .9rem; color: #c7d3e3; }
.hero__points span { display: block; color: var(--accent-2); margin-bottom: 6px; }

.model { position: relative; border: 1px solid var(--line-strong); border-radius: 20px; padding: 20px; background: linear-gradient(160deg, rgba(16, 32, 58, .7), rgba(6, 13, 24, .6)); backdrop-filter: blur(10px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); transform-style: preserve-3d; }
.model__head { display: flex; justify-content: space-between; color: var(--muted); }
.blink { color: var(--ok); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; margin: 10px auto; touch-action: none; user-select: none; }
.orbit__ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line-strong); inset: 6%; }
.orbit__ring--2 { inset: 22%; border-style: solid; border-color: var(--line); animation: spin 40s linear infinite; }
.orbit__ring--2::before { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.orbit__ring--3 { inset: 36%; border-color: rgba(59, 158, 255, .25); animation: spin 18s linear infinite reverse; border-style: dotted; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__links line { stroke: rgba(59, 158, 255, .22); stroke-width: 1; stroke-dasharray: 3 5; }
.orbit__links line.is-active { stroke: var(--accent-2); stroke-width: 1.5; stroke-dasharray: 6 6; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.orbit__core { position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 22px; display: grid; place-items: center; text-align: center; background: linear-gradient(145deg, #12305a, #0a1830); border: 1px solid rgba(59, 158, 255, .5); box-shadow: 0 0 60px -10px rgba(59, 158, 255, .6), inset 0 0 20px rgba(59, 158, 255, .2); color: #dbe8ff; }
.orbit__core .mono { font-size: .62rem; line-height: 1.5; }
.orbit__pulse { position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--accent); animation: corePulse 2.4s var(--ease-out) infinite; }
@keyframes corePulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.orbit__node {
	position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 16px;
	display: grid; place-items: center; align-content: center; gap: 3px;
	background: rgba(12, 24, 41, .92); border: 1px solid var(--line-strong); color: #cfdcf0;
	transition: border-color .3s, background-color .3s, box-shadow .3s, color .3s, scale .4s var(--ease-out);
}
.orbit__node .icon { width: 20px; height: 20px; }
.orbit__node .mono { font-size: .56rem; }
.orbit__node:hover { scale: 1.1; border-color: var(--accent); }
.orbit__node.is-active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 6px rgba(59, 158, 255, .18), 0 10px 40px -6px rgba(59, 158, 255, .9); scale: 1.12; }
.model__panel { display: grid; gap: 4px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.model__title { font-size: 1.35rem; letter-spacing: -.02em; font-weight: 600; }
.model__title.is-swap, .model__short.is-swap { animation: swapIn .5s var(--ease-out); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.model__short { color: var(--accent-2); }
.model__hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 0; }
.model__hud div { border-top: 1px solid var(--line); padding-top: 8px; }
.model__hud dt { color: var(--muted); font-size: .6rem; }
.model__hud dd { margin: 0; color: #e9eff8; font-size: .66rem; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: var(--muted); text-decoration: none; font-size: .6rem; }
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--accent-2), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; width: 1px; height: 14px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { from { top: -14px; } to { top: 42px; } }

/* ---------- Marquee ---------- */
.marquee-wrap { position: relative; z-index: 2; overflow: hidden; padding: 30px 0; margin: -44px 0; pointer-events: none; }
.marquee { pointer-events: auto; background: var(--accent); color: #fff; overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); width: 104%; margin-left: -2%; box-shadow: 0 20px 40px -20px rgba(59, 158, 255, .6); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.marquee i .icon { width: 20px; height: 20px; opacity: .7; animation: spin 6s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Badges ---------- */
.badges { list-style: none; padding: 22px 0 0; margin: 26px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .85rem; color: var(--muted); }
.badges li { display: inline-flex; align-items: center; gap: 8px; }
.badges .icon { width: 16px; color: var(--accent); }

/* ---------- Workflow simulator ---------- */
.sim { border: 1px solid var(--line-strong); border-radius: 20px; background: var(--card); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(10, 18, 32, .35); }
.sim__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.sim__bar .mono { line-height: 1.8; }
.switch { position: relative; display: inline-flex; padding: 4px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.switch button { position: relative; z-index: 1; padding: 8px 16px; border: 0; background: none; font-size: .82rem; font-weight: 600; color: var(--muted); transition: color .3s; }
.switch button[aria-selected="true"] { color: #fff; }
.switch__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 7px; background: var(--navy); transition: transform .5s var(--ease-out), width .5s var(--ease-out), background-color .4s; }
.sim[data-mode="fragmented"] .switch__pill { background: var(--danger); }
.sim__stage {
	position: relative; height: 420px;
	background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px;
}
.sim__links { position: absolute; inset: 0; width: 100%; height: 100%; }
.sim__links path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 7; animation: dash 1.2s linear infinite; opacity: .7; }
.sim[data-mode="fragmented"] .sim__links path { stroke: var(--danger); stroke-dasharray: 2 10; animation-duration: 4s; opacity: .55; }
.sim__links circle { fill: var(--accent-2); filter: drop-shadow(0 0 4px var(--accent-2)); }
.sim[data-mode="fragmented"] .sim__links circle { fill: var(--warn); }
.sim__hub, .sim__node { position: absolute; transform: translate(-50%, -50%); transition: left .9s var(--ease-out), top .9s var(--ease-out), opacity .5s, transform .6s var(--ease-out); }
.sim__hub { left: 50%; top: 50%; width: 150px; padding: 16px; text-align: center; border-radius: 16px; background: var(--navy); color: #fff; border: 1px solid var(--accent); box-shadow: 0 0 0 8px rgba(59, 158, 255, .1), 0 20px 50px -10px rgba(59, 158, 255, .5); display: grid; gap: 4px; }
.sim__hub .mono { color: var(--accent-2); font-size: .62rem; }
.sim__hub b { font-size: .9rem; font-weight: 600; line-height: 1.25; }
.sim[data-mode="fragmented"] .sim__hub { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.sim__node { width: 130px; padding: 12px; border-radius: 12px; background: var(--card-solid); border: 1px solid var(--line-strong); text-align: center; display: grid; gap: 2px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.4); }
.sim__node:hover { transform: translate(-50%, -50%) scale(1.06); border-color: var(--accent); }
.sim__code { color: var(--accent); font-size: .62rem; }
.sim__node strong { font-size: .92rem; font-weight: 600; }
.sim__state { font-size: .58rem; color: var(--ok); display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.sim__state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sim[data-mode="fragmented"] .sim__state { color: var(--warn); }
.sim[data-mode="fragmented"] .sim__node { animation: jitter 3s ease-in-out infinite; animation-delay: calc(var(--n) * -.6s); }
@keyframes jitter { 0%, 100% { margin-top: 0; } 50% { margin-top: -6px; } }
.sim__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.sim__stats div { padding: 18px 22px; display: grid; gap: 4px; }
.sim__stats div + div { border-left: 1px solid var(--line); }
.sim__stats b { font-family: var(--font); font-size: 1.9rem; letter-spacing: -.03em; font-weight: 600; text-transform: none; transition: color .4s; }
.sim__stats span { color: var(--muted); font-size: .62rem; }
.sim[data-mode="fragmented"] .sim__stats b { color: var(--danger); }
.sim[data-mode="integrated"] .sim__stats b { color: var(--accent); }

/* ---------- Capability cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1200px; }
.card {
	--rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
	position: relative; border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden;
	transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
	transition: transform .5s var(--ease-out), border-color .3s, box-shadow .4s, opacity 1s var(--ease-out), filter 1s var(--ease-out);
	cursor: pointer;
}
.js .card.reveal.is-in { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease-out), border-color .3s, box-shadow .4s, opacity 1s var(--ease-out) var(--d, 0s), filter 1s var(--ease-out) var(--d, 0s); }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); z-index: 2; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 40px 60px -30px rgba(10, 30, 60, .35); }
.card:hover::before { transform: scaleX(1); }
.card__spot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(59, 158, 255, .14), transparent 45%); }
.card:hover .card__spot { opacity: 1; }
.card__preview { position: relative; margin: 10px; height: 190px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background-color: var(--bg-2); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; display: grid; place-items: center; }
.card__preview svg { width: 85%; height: 85%; overflow: visible; }
.card__label { position: absolute; left: 12px; bottom: 10px; font-size: .56rem; color: var(--muted); }
.card__body { padding: 14px 22px 22px; }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--accent); transition: transform .5s var(--ease-out), background-color .3s, color .3s; }
.card:hover .card__icon { transform: rotate(-12deg) scale(1.1); background: var(--accent); color: #fff; }
.card h3 { font-size: 1.45rem; letter-spacing: -.025em; margin: 16px 0 8px; font-weight: 600; }
.card p { color: var(--muted); font-size: .95rem; margin: 0 0 18px; }
.tags { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .58rem; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.card__more { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); background: none; font-weight: 600; font-size: .9rem; }
.card__more .icon { transition: transform .4s var(--ease-out); }
.card:hover .card__more { color: var(--accent); }
.card:hover .card__more .icon { transform: rotate(45deg); }

/* preview illustration styles */
.card__preview svg * { vector-effect: non-scaling-stroke; }
.pv-stroke, .pv-draw, .pv-dash, .pv-node, .pv-load { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.pv-fill { fill: var(--accent); }
.pv-fill-soft { fill: rgba(59, 158, 255, .25); }
.pv-dash { stroke-dasharray: 4 5; opacity: .6; }
.mono-svg { stroke: var(--muted); fill: none; stroke-width: 1; }
.mono-svg text { fill: var(--muted); stroke: none; font: 9px var(--mono); }
.pv-draw { stroke-dasharray: 400; stroke-dashoffset: 400; }
.card.is-in .pv-draw { animation: draw 2s var(--ease-out) forwards; }
.card.is-in .pv-d2 { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pv-float { animation: float 4s ease-in-out infinite; transform-box: fill-box; }
@keyframes float { 50% { transform: translateY(-6px); } }
.card:hover .pv-float { animation-duration: 1.4s; }
.pv-punch { animation: punch 1.4s var(--ease) infinite; }
@keyframes punch { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(16px); } 55% { transform: translateY(16px); } }
.pv-strip { animation: strip 2.8s steps(2) infinite; }
@keyframes strip { to { transform: translateX(-46px); } }
.pv-tri { fill: rgba(59, 158, 255, .12); stroke: rgba(59, 158, 255, .4); stroke-width: .6; animation: heat 3s ease-in-out infinite; animation-delay: calc(var(--k) * .12s); }
@keyframes heat { 0%, 100% { fill: rgba(59, 158, 255, .1); } 40% { fill: rgba(34, 211, 238, .6); } 60% { fill: rgba(250, 204, 21, .7); } 75% { fill: rgba(244, 63, 94, .55); } }
.pv-load { stroke: var(--danger); animation: float 1.2s ease-in-out infinite; }
.pv-wave { fill: none; stroke: var(--accent-2); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: wave 2.4s var(--ease-out) infinite; }
.pv-w2 { animation-delay: .8s; } .pv-w3 { animation-delay: 1.6s; }
@keyframes wave { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.pv-bar { transform-box: fill-box; transform-origin: bottom; animation: grow 1.6s ease-in-out infinite alternate; }
.pv-b2 { animation-delay: .3s; } .pv-b3 { animation-delay: .6s; }
@keyframes grow { from { transform: scaleY(.3); } }
.pv-flow { animation: dash 1s linear infinite; opacity: 1; stroke: var(--accent-2); }
.pv-grow { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.card.is-in .pv-grow { animation: growIn 1s var(--ease-out) forwards, grow 2.4s 1s ease-in-out infinite alternate; }
.pv-g2 { animation-delay: .1s, 1.1s !important; } .pv-g3 { animation-delay: .2s, 1.2s !important; } .pv-g4 { animation-delay: .3s, 1.3s !important; } .pv-g5 { animation-delay: .4s, 1.4s !important; }
@keyframes growIn { to { transform: scaleY(1); } }
.pv-cursor { font: 600 13px var(--mono); fill: var(--accent-2); animation: blink 1s steps(2) infinite; }
.pv-node { fill: var(--card-solid); }
.pv-box { offset-path: path("M24 100 C 70 30, 110 30, 120 70 S 180 120, 216 40"); animation: route 4s ease-in-out infinite; }
@keyframes route { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3, 7, 14, .6); backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog { position: relative; width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--bg-2); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 20px; padding: 36px; transform: translateY(40px) scale(.96); opacity: 0; transition: transform .5s var(--ease-out), opacity .3s; box-shadow: 0 50px 100px -30px rgba(0,0,0,.7); }
.modal.is-open .modal__dialog { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: none; display: grid; place-items: center; transition: transform .4s var(--ease-out); }
.modal__close:hover { transform: rotate(90deg); border-color: var(--accent); }
.modal__title { font-size: 2rem; letter-spacing: -.03em; margin: 10px 0; font-weight: 600; }
.modal__content > p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(52, 211, 153, .15); color: var(--ok); margin-top: 3px; }
.modal.is-open .checklist li { animation: swapIn .6s var(--ease-out) both; }
.modal.is-open .checklist li:nth-child(2) { animation-delay: .08s; } .modal.is-open .checklist li:nth-child(3) { animation-delay: .16s; } .modal.is-open .checklist li:nth-child(4) { animation-delay: .24s; }

/* ---------- Case studies ---------- */
#work { overflow: hidden; }
.work__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.work__tab { position: relative; text-align: left; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: border-color .3s, background-color .3s; }
.work__tab strong { font-weight: 600; }
.work__tab .mono:first-child { color: var(--muted); }
.work__tab[aria-selected="true"] { border-color: var(--accent); background: rgba(59, 158, 255, .08); }
.work__tab[aria-selected="true"] .mono:first-child { color: var(--accent); }
.work__timer { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.work__tab[aria-selected="true"] .work__timer { animation: timer var(--dur, 8s) linear forwards; }
.work.is-paused .work__timer { animation-play-state: paused; }
@keyframes timer { to { transform: scaleX(1); } }
.work__panel { display: none; grid-template-columns: 1.1fr 1fr; gap: 22px; }
.work__panel.is-active { display: grid; }
.work__panel.is-active > * { animation: swapIn .7s var(--ease-out) both; }
.work__panel.is-active > *:nth-child(2) { animation-delay: .1s; }
.work__visual { position: relative; border: 1px solid var(--line-strong); border-radius: 18px; padding: 18px; background: radial-gradient(circle at 50% 40%, rgba(59, 158, 255, .1), transparent 70%), var(--card); min-height: 420px; display: flex; flex-direction: column; overflow: hidden; }
.work__visual-head { display: flex; justify-content: space-between; color: var(--muted); font-size: .6rem; gap: 10px; }
.cv { flex: 1; width: 100%; margin: 10px 0; overflow: visible; transition: transform .3s var(--ease-out); }
.cv text { font: 500 10px var(--mono); fill: var(--muted); letter-spacing: .08em; }
.cv-wall { fill: rgba(148, 190, 255, .15); stroke: var(--line-strong); }
.cv-beam { transform-origin: 58px 137px; animation: bend 3s ease-in-out infinite; }
@keyframes bend { 50% { transform: rotate(2.4deg); } }
.cv-heat { opacity: .85; }
.cv-outline { fill: none; stroke: #cfe1ff; stroke-width: 1.4; }
.cv-hole { fill: var(--navy); stroke: #cfe1ff; }
.cv-arrow path { stroke: var(--danger); stroke-width: 2; fill: none; }
.cv-arrow { animation: float 1.5s ease-in-out infinite; }
.cv-arrow text { fill: var(--danger); }
.cv-dim path { stroke: var(--muted); fill: none; }
.cv-probe circle { fill: var(--danger); animation: blink 1s steps(2) infinite; }
.cv-probe path { stroke: var(--danger); fill: none; }
.cv-probe text { fill: var(--danger); }
.cv-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.cv-chips span { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); font-size: .6rem; }
.cv-chips b { color: var(--fg); font-weight: 500; }
.cv-cloud path { fill: rgba(59, 158, 255, .15); stroke: var(--accent); }
.cv-led { fill: var(--ok); animation: blink 1.2s steps(2) infinite; }
.cv-screen { fill: rgba(59, 158, 255, .1); stroke: var(--line-strong); }
.cv-spark { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-dasharray: 120; animation: spark 3s ease-in-out infinite; }
@keyframes spark { from { stroke-dashoffset: 120; } 60%, to { stroke-dashoffset: 0; } }
.cv-route { fill: none; stroke: rgba(59, 158, 255, .5); stroke-width: 1.5; stroke-dasharray: 4 6; animation: dash 1.4s linear infinite; }
.cv-route--long { stroke-width: 2; }
.cv-packet { fill: var(--accent-2); filter: drop-shadow(0 0 6px var(--accent-2)); }
.cv-gridmap path { stroke: rgba(148, 190, 255, .06); }
.cv-stop circle { fill: var(--accent); }
.cv-stop .cv-ring { fill: none; stroke: var(--accent); opacity: .5; transform-box: fill-box; transform-origin: center; animation: wave 2.5s var(--ease-out) infinite; animation-delay: calc(var(--i) * .5s); }
.work__content { border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 40px); background: var(--card); display: flex; flex-direction: column; gap: 22px; }
.work__content h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.03em; margin: 0; font-weight: 600; }
.work__steps { margin: 0; display: grid; gap: 16px; }
.work__steps div { padding-left: 16px; border-left: 1px solid var(--line-strong); }
.work__steps dt { color: var(--accent-2); font-size: .62rem; margin-bottom: 4px; }
.work__steps dd { margin: 0; color: var(--muted); font-size: .95rem; }
.work__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 0; border-block: 1px solid var(--line); }
.work__stats div { display: grid; gap: 2px; }
.work__stats b { font-size: 1.8rem; letter-spacing: -.03em; font-weight: 600; }
.work__stats .mono { font-size: .58rem; }
.work__stats div > span:not(.mono) { color: inherit; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); }
.process__left .lead { margin-top: 24px; }
.process__right { position: relative; }
.engine { position: sticky; top: calc(var(--header-h) + 40px); border-radius: 20px; padding: 22px; background: var(--navy); color: #e9eff8; border: 1px solid rgba(148, 190, 255, .2); box-shadow: 0 50px 80px -40px rgba(6, 13, 24, .6); --line: rgba(148, 190, 255, .14); --muted: #8696ad; transform-style: preserve-3d; transition: transform .5s var(--ease-out); }
.engine__head { display: flex; justify-content: space-between; color: var(--muted); }
.engine__head b { color: #fff; font-weight: 500; }
.engine__dial { position: relative; width: min(300px, 80%); margin: 26px auto; aspect-ratio: 1; }
.engine__dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.engine__track { fill: none; stroke: rgba(148, 190, 255, .12); stroke-width: 6; }
.engine__progress { fill: none; stroke: url(#none); stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 540.35; stroke-dashoffset: 405; transition: stroke-dashoffset 1s var(--ease-out); filter: drop-shadow(0 0 8px rgba(59, 158, 255, .8)); }
.engine__ticks line { stroke: rgba(148, 190, 255, .3); stroke-width: 1; }
.engine__center { position: absolute; inset: 22%; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle, #12305a, #0a1830); border: 1px solid rgba(59, 158, 255, .4); }
.engine__num { color: var(--accent-2); font-size: .8rem; }
.engine__title { font-size: 1.6rem; letter-spacing: -.03em; font-weight: 600; }
.engine__gear { position: absolute; inset: -6%; border-radius: 50%; border: 1px dashed rgba(148, 190, 255, .2); animation: spin 30s linear infinite; }
.engine__outputs { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 8px; justify-content: center; }
.engine__outputs li { padding: 7px 12px; border-radius: 7px; border: 1px solid rgba(59, 158, 255, .4); color: var(--accent-2); font-size: .62rem; animation: swapIn .5s var(--ease-out) both; }
.engine__outputs li:nth-child(2) { animation-delay: .08s; } .engine__outputs li:nth-child(3) { animation-delay: .16s; }
.engine__out { border-top: 1px solid var(--line); padding-top: 16px; }
.engine__text { margin: 6px 0 0; color: #c7d3e3; }

.steps { list-style: none; padding: 0 0 0 0; margin: 48px 0 0; position: relative; display: grid; gap: 8px; }
.steps__line { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px; background: var(--line-strong); }
.steps__line i { display: block; width: 100%; height: 100%; background: var(--grad); transform-origin: top; transform: scaleY(0); transition: transform .8s var(--ease-out); }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 18px 18px 18px 0; border-radius: 14px; cursor: pointer; transition: background-color .3s; }
.step:hover { background: rgba(59, 158, 255, .05); }
.step__num { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-strong); color: var(--muted); transition: background-color .4s, color .4s, border-color .4s, transform .5s var(--ease-out); }
.step h3 { margin: 8px 0 6px; font-size: 1.35rem; letter-spacing: -.02em; font-weight: 600; transition: color .3s; }
.step p { margin: 0; color: var(--muted); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .4s; }
.step.is-active .step__num { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(59, 158, 255, .15); }
.step.is-active p { max-height: 120px; opacity: 1; }
.step.is-done .step__num { border-color: var(--accent); color: var(--accent); }

/* ---------- Why ---------- */
.why { overflow: hidden; }
.why::before { content: ""; position: absolute; width: 700px; height: 700px; left: -200px; bottom: -300px; background: radial-gradient(circle, rgba(139, 92, 246, .18), transparent 60%); pointer-events: none; }
.why__title { font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -.045em; font-weight: 600; margin: 0 0 40px; max-width: 16ch; }
.why__scrub { font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.3; letter-spacing: -.02em; max-width: 34ch; margin: 0 0 70px; }
.why__scrub .w { color: rgba(233, 239, 248, .16); transition: color .3s; }
.why__scrub .w.is-lit { color: var(--fg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); margin-bottom: 50px; }
.stat { padding: 28px 24px 10px 0; display: grid; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { font-size: clamp(2.8rem, 5vw, 4.4rem); letter-spacing: -.05em; font-weight: 600; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { color: var(--muted); font-size: .92rem; }
.infinity { display: inline-block; animation: spinY 4s ease-in-out infinite; }
@keyframes spinY { 50% { transform: rotateY(180deg); } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 100px); }
.faq .lead { margin-top: 24px; }
.accordion { display: grid; gap: 12px; }
.acc { border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .3s, box-shadow .3s; }
.acc[open] { border-color: var(--accent); box-shadow: 0 20px 40px -30px rgba(59, 158, 255, .6); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; font-weight: 600; font-size: 1.05rem; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .4s var(--ease-out), background-color .3s, color .3s; }
.acc summary .icon { width: 16px; }
.acc[open] summary i { transform: rotate(135deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.acc__body > p { overflow: hidden; margin: 0; padding: 0 22px; color: var(--muted); }
.acc[open] .acc__body { grid-template-rows: 1fr; }
.acc[open] .acc__body > p { padding-bottom: 20px; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact::after { content: ""; position: absolute; width: 800px; height: 800px; right: -300px; top: -200px; background: radial-gradient(circle, rgba(59, 158, 255, .16), transparent 60%); pointer-events: none; }
.contact__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; z-index: 1; }
.contact__copy { position: sticky; top: calc(var(--header-h) + 40px); }
.contact__copy .lead { margin-top: 24px; }
.form { position: relative; padding: clamp(22px, 3vw, 36px); border-radius: 20px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(16, 32, 58, .6), rgba(6, 13, 24, .6)); backdrop-filter: blur(10px); overflow: hidden; }
.form__head { display: flex; justify-content: space-between; color: var(--muted); }
.form__head b { color: var(--accent-2); font-weight: 500; }
.form__progress { height: 2px; background: var(--line); margin: 14px 0 24px; border-radius: 2px; overflow: hidden; }
.form__progress i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .6s var(--ease-out); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: block; }
.field input, .field textarea {
	width: 100%; padding: 24px 14px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(0,0,0,.2);
	color: var(--fg); font: inherit; font-size: .95rem; outline: none; transition: border-color .3s, box-shadow .3s, background-color .3s; resize: vertical;
}
.field > span { position: absolute; left: 15px; top: 17px; color: var(--muted); font-size: .92rem; pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease-out), color .3s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59, 158, 255, .15); background: rgba(59, 158, 255, .04); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(.75); color: var(--accent-2); }
.field--area { margin-top: 14px; }
.field__count { position: absolute; right: 12px; bottom: 12px; color: var(--muted); font-size: .56rem; }
.field__err { display: block; font-style: normal; font-size: .78rem; color: var(--danger); min-height: 0; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.chips { border: 0; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: .92rem; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chips .field__err { width: 100%; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .85rem; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--ease-out); user-select: none; }
.chip span::before { content: "+"; font-family: var(--mono); color: var(--accent); transition: transform .3s; }
.chip span:hover { border-color: var(--accent); transform: translateY(-2px); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:checked + span::before { content: "✓"; color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form__note { font-size: .82rem; margin: 18px 0; }
.form__status { margin: 12px 0 0; font-size: .9rem; min-height: 1.4em; color: var(--danger); }
.form.is-sending .btn { pointer-events: none; opacity: .7; }
.form.is-sending .btn span::after { content: "…"; }
.form__done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 30px; background: var(--bg); clip-path: circle(0 at 50% 100%); transition: clip-path .9s var(--ease-out); }
.form.is-done .form__done { clip-path: circle(150% at 50% 100%); }
.form__done h3 { font-size: 2rem; margin: 10px 0 0; letter-spacing: -.03em; }
.form__tick { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; transform: scale(0); transition: transform .6s .4s cubic-bezier(.3, 1.6, .5, 1); }
.form__tick .icon { width: 40px; height: 40px; stroke-width: 2.5; }
.form.is-done .form__tick { transform: scale(1); }
.confetti { position: fixed; pointer-events: none; z-index: 600; width: 8px; height: 12px; border-radius: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: var(--fg); padding: 70px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.site-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.site-footer__top p { margin: 0 0 4px; }
.footer-nav, .site-footer .nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; }
.site-footer nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.site-footer nav a:hover { color: var(--fg); }
.to-top { --bx: 0px; --by: 0px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transform: translate(var(--bx), var(--by)); transition: transform .35s var(--ease-out), background-color .3s; }
.to-top .icon { transform: rotate(-90deg); }
.to-top:hover { background: var(--accent); border-color: var(--accent); }
.site-footer__word { display: flex; justify-content: space-between; font-size: clamp(4rem, 17vw, 16rem); font-weight: 800; letter-spacing: -.04em; line-height: .9; margin: 50px 0 30px; color: transparent; -webkit-text-stroke: 1px rgba(148, 190, 255, .22); user-select: none; }
.site-footer__word span { display: inline-block; transition: color .4s, transform .6s var(--ease-out), -webkit-text-stroke-color .4s; }
.site-footer__word span:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); transform: translateY(-12px); }
.js .site-footer__word span { transform: translateY(60%); opacity: 0; transition: transform 1s var(--ease-out), opacity 1s, color .4s; transition-delay: calc(var(--i) * 60ms); }
.js .site-footer__word.is-in span { transform: none; opacity: 1; }
.js .site-footer__word.is-in span:hover { transform: translateY(-12px); transition-delay: 0s; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); font-size: .62rem; }

/* ---------- 3D shared ---------- */
.three-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: opacity .9s var(--ease-out); }
.is-ready > .three-poster { opacity: 0; }
.three-poster + .three-fallback { display: none; }
.three-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.three-fallback::before { content: ""; width: 36px; height: 36px; margin-bottom: 70px; position: absolute; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.explorer__canvas canvas, .globe canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.is-ready canvas { opacity: 1; }
.globe__tip, .explorer__tip {
	position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; display: grid; gap: 2px;
	padding: 10px 12px; border-radius: 10px; background: rgba(6, 13, 24, .92); color: #e9eff8; border: 1px solid rgba(59, 158, 255, .5);
	box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); opacity: 0; transition: opacity .2s; white-space: nowrap; font-size: .6rem;
}
.globe__tip.is-on, .explorer__tip.is-on { opacity: 1; }
.globe__tip b, .explorer__tip b { font-family: var(--font); font-size: .9rem; letter-spacing: -.01em; text-transform: none; font-weight: 600; }
.globe__tip span, .explorer__tip span { color: var(--accent-2); }
.explorer__tip em { font-style: normal; color: #8696ad; }

/* ---------- 3D product explorer ---------- */
.explorer__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.explorer__stage { position: relative; border-radius: 22px; border: 1px solid var(--line-strong); background: radial-gradient(circle at 50% 45%, rgba(59, 158, 255, .14), transparent 65%), var(--card); overflow: hidden; box-shadow: 0 40px 80px -50px rgba(10, 30, 60, .45); }
.explorer__head { position: absolute; top: 16px; left: 18px; right: 18px; z-index: 2; display: flex; justify-content: space-between; color: var(--muted); font-size: .6rem; pointer-events: none; }
.explorer__canvas { position: relative; aspect-ratio: 1 / 1; max-height: 640px; width: 100%; touch-action: pan-y; }
.explorer__controls { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.explode { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; color: var(--muted); font-size: .58rem; }
.explode input { flex: 1; appearance: none; -webkit-appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); outline: none; }
.explode input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 12px rgba(59, 158, 255, .5); cursor: grab; transition: transform .2s; }
.explode input::-webkit-slider-thumb:hover { transform: scale(1.2); }
.explode input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: grab; }
.chip-btn { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; font-size: .6rem; transition: background-color .25s, color .25s, border-color .25s; }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.explorer__copy .lead { margin-top: 24px; }
.parts { list-style: none; padding: 0; margin: 30px 0 20px; display: grid; gap: 8px; }
.part { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); transition: border-color .25s, background-color .25s, transform .35s var(--ease-out); }
.part:hover { border-color: var(--accent); transform: translateX(6px); }
.part__num { color: var(--muted); }
.part__text { display: grid; }
.part__text strong { font-weight: 600; }
.part__text small { color: var(--muted); font-size: .8rem; }
.part__check { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: transparent; transition: background-color .25s, color .25s, border-color .25s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.part__check .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.part.is-selected { border-color: var(--accent); background: rgba(59, 158, 255, .08); }
.part.is-selected .part__num { color: var(--accent); }
.part.is-selected .part__check { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.1); }
.quote-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 20px; border-radius: 14px; background: var(--navy); color: #e9eff8; flex-wrap: wrap; }
.quote-bar .mono { color: #8696ad; }
.quote-bar b { color: #fff; font-size: 1.1rem; font-family: var(--font); display: inline-block; }
.quote-bar .bump b { animation: bump .4s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.5); color: var(--accent-2); } }
.quote-bar__btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }

/* ---------- Global globe ---------- */
.global { overflow: hidden; }
.global::before { content: ""; position: absolute; width: 900px; height: 900px; right: -250px; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, rgba(59, 158, 255, .16), transparent 60%); pointer-events: none; }
.global__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.global__copy .lead { margin-top: 24px; }
.regions { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 22px; }
.region { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.02); font-size: .85rem; transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--ease-out); }
.region:hover { border-color: var(--accent); transform: translateY(-2px); }
.region.is-active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(59, 158, 255, .8); }
.region-card { border: 1px solid var(--line-strong); border-radius: 18px; padding: 20px; background: linear-gradient(160deg, rgba(16, 32, 58, .7), rgba(6, 13, 24, .5)); display: grid; gap: 18px; }
.region-card__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.region-card__row > div { display: grid; gap: 4px; }
.region-card__row .mono { font-size: .56rem; }
.region-card__row strong { font-size: 1.25rem; letter-spacing: -.02em; font-weight: 600; }
.region-card.is-set .region-card__name { animation: swapIn .5s var(--ease-out); }
.overlap__bar { position: relative; height: 10px; border-radius: 6px; background: rgba(148, 190, 255, .08); overflow: hidden; }
.overlap__bar i { position: absolute; inset: 0; border-radius: 6px; transition: background .6s; }
.overlap__ist { left: 37.5% !important; right: 25% !important; background: rgba(139, 92, 246, .55); }
.overlap__you { mix-blend-mode: screen; opacity: .85; }
.overlap__text { margin: 10px 0 0; font-size: .92rem; }
.overlap__text::before { content: "◆ "; color: var(--accent-2); }
.global__stage { position: relative; }
.globe { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 640px; margin-inline: auto; touch-action: pan-y; }
.globe__hint { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); margin: 6px 0 0; }
.globe__hint .icon { width: 16px; height: 16px; animation: spin 8s linear infinite; }

@media (max-width: 1080px) {
	.explorer__inner, .global__inner { grid-template-columns: 1fr; }
	.global__stage { order: -1; }
	.globe { max-width: 520px; }
}
@media (max-width: 720px) {
	.region-card__row { grid-template-columns: 1fr 1fr; }
	.region-card__row > div:first-child { grid-column: 1 / -1; }
	.quote-bar { padding: 14px; }
	.quote-bar .btn { width: 100%; }
}

/* ---------- Why India / facility ---------- */
.india__products { margin-top: 22px; }
.india__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.facility { position: relative; border-radius: 20px; padding: 26px; background: var(--navy); color: #e9eff8; border: 1px solid rgba(148, 190, 255, .2); box-shadow: 0 40px 70px -40px rgba(6, 13, 24, .6); transition: transform .5s var(--ease-out); overflow: hidden; }
.facility h3 { font-size: 1.7rem; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 10px; font-weight: 600; }
.facility p { color: #a9b8cc; margin: 0 0 18px; }
.facility__visual { margin: -6px -6px 18px; border-radius: 14px; background-image: linear-gradient(rgba(120,170,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(120,170,255,.07) 1px, transparent 1px); background-size: 16px 16px; border: 1px solid rgba(148, 190, 255, .12); padding: 14px; }
.fac-roof { fill: rgba(59, 158, 255, .12); stroke: var(--accent); stroke-width: 1.5; }
.fac-chimney { fill: rgba(59, 158, 255, .25); stroke: var(--accent); }
.fac-smoke { fill: rgba(148, 190, 255, .4); animation: smoke 3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.fac-s2 { animation-delay: 1.5s; }
@keyframes smoke { from { transform: translate(0, 0) scale(.6); opacity: .8; } to { transform: translate(14px, -26px) scale(2); opacity: 0; } }
.fac-belt rect { fill: var(--accent-2); }
.fac-belt { animation: belt 2.4s linear infinite; }
@keyframes belt { to { transform: translateX(34px); } }
.fac-line { stroke: rgba(148, 190, 255, .4); stroke-dasharray: 6 6; animation: dash 1s linear infinite; }
.facility__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.facility__chips span { padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(59, 158, 255, .4); color: var(--accent-2); font-size: .6rem; }
.india__strengths { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; background: var(--card); margin-bottom: 26px; }
.india__strengths div { padding: 16px; display: grid; gap: 2px; }
.india__strengths div + div { border-left: 1px solid var(--line); }
.india__strengths b { font-size: 1.3rem; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.india__strengths span { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.india__scope-title { margin-bottom: 12px; }
.scope { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scope li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 500; font-size: .95rem; transition: border-color .25s, transform .35s var(--ease-out); }
.scope li:hover { border-color: var(--accent); transform: translateX(4px); }
.scope li .mono { color: var(--accent); }
.scope li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.media { margin-top: 36px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 20px 24px; border-radius: 16px; border: 1px dashed var(--line-strong); text-decoration: none; transition: border-color .3s, background-color .3s; }
.media:hover { border-color: var(--accent); background: rgba(59, 158, 255, .05); }
.media strong { font-size: 1.1rem; letter-spacing: -.01em; font-weight: 600; }
.media__src { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.media__src .icon { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.media:hover .media__src .icon { transform: translate(3px, -3px); }

/* ---------- Team ---------- */
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.person { position: relative; padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); transition: transform .5s var(--ease-out), border-color .3s, box-shadow .4s, opacity 1s var(--ease-out), filter 1s var(--ease-out); }
.person:hover { border-color: var(--accent); box-shadow: 0 40px 60px -30px rgba(10, 30, 60, .35); }
.person__avatar { position: relative; isolation: isolate; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px; background: var(--navy); }
.person__avatar::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent)); z-index: -1; animation: spin 6s linear infinite; }
.person__avatar span { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.person h3 { font-size: 1.5rem; letter-spacing: -.025em; margin: 6px 0 2px; font-weight: 600; }
.person__tag { display: block; margin-bottom: 14px; font-size: .6rem; }
.person p { color: var(--muted); margin: 0; font-size: .95rem; }
.person .mono.accent { font-size: .62rem; }

/* ---------- Contact details ---------- */
.contact__details { display: grid; gap: 10px; margin-top: 28px; }
.contact__item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); text-decoration: none; transition: border-color .3s, transform .35s var(--ease-out); }
.contact__item:hover { border-color: var(--accent); transform: translateX(4px); }
.contact__item > span:last-child { display: grid; gap: 2px; }
.contact__item b { font-weight: 600; }
.contact__addr { font-weight: 400 !important; font-size: .88rem; color: #c7d3e3; line-height: 1.45; }
.contact__icon { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(59, 158, 255, .12); color: var(--accent); }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Footer contact ---------- */
.site-footer__top { align-items: flex-start; }
.site-footer__brand { max-width: 260px; }
.site-footer__contact { display: grid; gap: 6px; max-width: 340px; }
.site-footer__contact a { text-decoration: none; color: var(--fg); transition: color .2s; }
.site-footer__contact a:hover { color: var(--accent); }
.site-footer__email { font-size: 1.15rem; font-weight: 600; }
.site-footer__addr { font-size: .88rem; color: var(--muted) !important; line-height: 1.5; }
.site-footer__addr:hover { color: var(--accent) !important; }
.site-footer__nav { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Service page ---------- */
.hero--sub { min-height: 88svh; }
.hero__title--sub { font-size: clamp(2.3rem, 4.2vw, 4rem); line-height: 1.02; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); margin-bottom: 26px; font-size: .62rem; }
.crumbs a { text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--accent-2); }
.crumbs [aria-current] { color: var(--accent-2); }
.stages__canvas { position: relative; margin: 14px 0; border-radius: 14px; border: 1px solid var(--line); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px; padding: 10px; }
.stages__canvas svg { width: 100%; height: auto; overflow: visible; }
.stage { opacity: 0; animation: stageCycle 9s infinite; }
.stage--2 { animation-delay: 3s; }
.stage--3 { animation-delay: 6s; }
@keyframes stageCycle { 0% { opacity: 0; } 4%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }
.sk { fill: none; stroke: #9fb3cc; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: sketch 9s infinite; }
.sk--2 { stroke-opacity: .4; }
@keyframes sketch { 0% { stroke-dashoffset: 600; } 25%, 100% { stroke-dashoffset: 0; } }
.cad { fill: rgba(59, 158, 255, .08); stroke: var(--accent); stroke-width: 1.8; }
.cad--thin { stroke-width: 1; fill: none; }
.dim path { stroke: var(--accent-2); fill: none; stroke-width: 1; }
.dim text { fill: var(--accent-2); font: 10px var(--mono); }
.proto { fill: url(#stg-shade); }
.proto-shadow { fill: rgba(0,0,0,.35); }
.proto-hl { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 4; stroke-linecap: round; }
.proto-btn { fill: rgba(255,255,255,.25); }
.proto-led { fill: #34d399; animation: blink 1s steps(2) infinite; }
.stages__labels { position: relative; height: 1.4em; color: var(--accent-2); }
.stage-label { position: absolute; left: 4px; bottom: 0; opacity: 0; animation: stageCycle 9s infinite; }
.stage-label--2 { animation-delay: 3s; } .stage-label--3 { animation-delay: 6s; }
.svc-intro { padding: clamp(60px, 8vw, 110px) 0; }
.svc-intro__text { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.25; letter-spacing: -.025em; max-width: 30ch; margin: 0; }
.svc-intro__text .w { color: color-mix(in srgb, var(--fg) 18%, transparent); transition: color .3s; }
.svc-intro__text .w.is-lit { color: var(--fg); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { position: relative; padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: transform .5s var(--ease-out), border-color .3s, box-shadow .4s, opacity 1s var(--ease-out), filter 1s var(--ease-out); }
.feature:hover { border-color: var(--line-strong); box-shadow: 0 40px 60px -30px rgba(10, 30, 60, .3); }
.feature:hover .card__spot { opacity: 1; }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(59, 158, 255, .1); color: var(--accent); margin-bottom: 26px; transition: transform .5s var(--ease-out), background-color .3s, color .3s; }
.feature__icon .icon { width: 26px; height: 26px; }
.feature:hover .feature__icon { transform: rotate(-10deg) scale(1.1); background: var(--accent); color: #fff; }
.feature h3 { font-size: 1.45rem; letter-spacing: -.025em; margin: 8px 0; font-weight: 600; }
.feature p { color: var(--muted); margin: 0; }
.materials { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 14px; margin-bottom: 70px; }
.material { position: relative; padding: 22px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--card); display: grid; gap: 4px; overflow: hidden; transition: transform .4s var(--ease-out), border-color .3s; }
.material:hover { transform: translateY(-6px); border-color: var(--accent); }
.material strong { font-size: 1.5rem; letter-spacing: -.02em; font-weight: 600; }
.material__swatch { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 14px; transition: transform .6s var(--ease-out), border-radius .6s var(--ease-out); }
.material:hover .material__swatch { transform: rotate(45deg) scale(1.1); border-radius: 50%; }
.material--plastic .material__swatch { background: linear-gradient(135deg, #60a5fa, #2563eb); box-shadow: inset 0 2px 6px rgba(255,255,255,.5); }
.material--silicone .material__swatch { background: linear-gradient(135deg, #f0abfc, #a855f7); border-radius: 22px; box-shadow: inset 0 4px 10px rgba(255,255,255,.45); }
.material--metal .material__swatch { background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 40%, #e2e8f0 55%, #64748b 100%); }
.material__skills { list-style: none; margin: 0; padding: 22px; border-radius: 16px; border: 1px dashed var(--line-strong); display: grid; align-content: center; gap: 12px; }
.material__skills li { display: flex; gap: 10px; align-items: center; color: var(--fg); }
.material__skills .icon { width: 18px; height: 18px; color: var(--ok); }
.timeline__title { margin-bottom: 30px; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.timeline__line { position: absolute; left: 24px; right: 24px; top: 24px; height: 1px; background: var(--line-strong); }
.timeline__line i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease-out) .3s; }
.timeline:has(.is-in) .timeline__line i { transform: scaleX(1); }
.timeline__step { position: relative; }
.timeline__dot { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 0 0 8px rgba(59, 158, 255, .15), 0 10px 30px -6px rgba(59, 158, 255, .8); margin-bottom: 22px; }
.timeline__step h3 { font-size: 1.45rem; letter-spacing: -.025em; margin: 0 0 8px; font-weight: 600; }
.timeline__step p { color: var(--muted); margin: 0; }
.quote-block { text-align: center; }
.quote-block__mark { display: block; font-size: 8rem; line-height: .6; height: 60px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.quote-block blockquote { margin: 0 0 28px; font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
.quote-block .lead { margin-inline: auto; max-width: 60ch; }

@media (max-width: 1080px) {
	.india__grid, .team__grid, .features, .timeline { grid-template-columns: 1fr; }
	.materials { grid-template-columns: repeat(3, 1fr); }
	.material__skills { grid-column: 1 / -1; }
	.timeline__line { display: none; }
	.team__grid { max-width: 560px; }
}
@media (max-width: 720px) {
	.india__strengths { grid-template-columns: 1fr 1fr; }
	.india__strengths div:nth-child(3) { border-left: 0; }
	.india__strengths div:nth-child(n+3) { border-top: 1px solid var(--line); }
	.scope { grid-template-columns: 1fr; }
	.media { grid-template-columns: 1fr; gap: 6px; }
	.materials { grid-template-columns: 1fr; }
	.site-footer__contact { max-width: none; }
}

/* ---------- WhatsApp ---------- */
.btn--wa { background: #25d366; color: #052e16; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, .7); }
.btn--wa:hover { background: #1fbd5a; }
.btn--wa .icon { width: 20px; height: 20px; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 180; display: flex; align-items: center; gap: 0; height: 56px; padding: 0 16px; border-radius: 28px; background: #25d366; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8); transition: gap .4s var(--ease-out), transform .3s var(--ease-out); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: corePulse 2.4s var(--ease-out) infinite; }
.wa-float .icon { width: 26px; height: 26px; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s var(--ease-out); }
.wa-float:hover { gap: 10px; transform: translateY(-3px); }
.wa-float:hover span { max-width: 140px; }

/* ---------- App page: hero ---------- */
.hero--app .hero__inner { grid-template-columns: 1.05fr 1fr; }
.trust { list-style: none; padding: 22px 0 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; border-top: 1px solid var(--line); font-size: .9rem; color: #c7d3e3; }
.trust li { display: flex; gap: 8px; align-items: center; }
.trust .icon { width: 16px; height: 16px; color: var(--ok); flex: none; }
.phone3d { position: relative; aspect-ratio: 1 / 1.05; width: 100%; max-width: 560px; margin-inline: auto; touch-action: pan-y; }
.phone3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.phone3d.is-ready canvas { opacity: 1; }
.phone3d__bar { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 6px; }
.phone3d__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.phone3d__tab { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); font-size: .78rem; color: #c7d3e3; transition: background-color .25s, color .25s, border-color .25s; }
.phone3d__tab:hover { border-color: var(--accent); }
.phone3d__tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- App page: solutions ---------- */
.features--six { grid-template-columns: repeat(3, 1fr); }
.feature--btn { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.feature__add { display: inline-block; margin-top: 18px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .6rem; color: var(--muted); transition: background-color .25s, color .25s, border-color .25s; }
.feature__add-on { display: none; }
.feature--btn.is-selected { border-color: var(--accent); background: rgba(59, 158, 255, .07); }
.feature--btn.is-selected .feature__add { background: var(--accent); border-color: var(--accent); color: #fff; }
.feature--btn.is-selected .feature__add-on { display: inline; }
.feature--btn.is-selected .feature__add-off { display: none; }
.feature--btn.is-selected .feature__icon { background: var(--accent); color: #fff; }

/* ---------- App brief builder ---------- */
.builder { display: grid; grid-template-columns: 1.1fr .9fr 1fr; gap: 24px; align-items: start; }
.builder__controls { display: grid; gap: 22px; }
.builder__group { border: 0; padding: 0; margin: 0; }
.builder__group legend { color: var(--muted); margin-bottom: 10px; padding: 0; }
.builder__group legend b { color: var(--accent-2); font-weight: 500; margin-right: 6px; }
.opt-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.02); font-size: .9rem; cursor: pointer; user-select: none; transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--ease-out); }
.opt--sm span { padding: 8px 12px; font-size: .84rem; }
.opt span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-strong); transition: background-color .2s, border-color .2s; }
.opt input[type="radio"] + span::before { border-radius: 50%; }
.opt span:hover { border-color: var(--accent); transform: translateY(-2px); }
.opt input:checked + span { background: rgba(59, 158, 255, .14); border-color: var(--accent); color: #fff; }
.opt input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--navy); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.builder__preview { position: sticky; top: calc(var(--header-h) + 30px); display: grid; justify-items: center; gap: 12px; }
.builder__platforms { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 28px; }
.builder__platforms span { padding: 5px 10px; border-radius: 6px; background: rgba(34, 211, 238, .12); color: var(--accent-2); font-size: .6rem; animation: swapIn .4s var(--ease-out); }
.builder__result { display: grid; gap: 20px; padding: 22px; border-radius: 18px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(16, 32, 58, .7), rgba(6, 13, 24, .5)); }
.meter__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.meter__label { font-size: 1.2rem; letter-spacing: -.02em; }
.meter__label.is-swap { animation: swapIn .5s var(--ease-out); }
.meter__bar { height: 10px; border-radius: 6px; background: rgba(148, 190, 255, .1); margin: 12px 0 6px; overflow: hidden; }
.meter__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), var(--accent), var(--accent-3)); transform-origin: left; transform: scaleX(.1); transition: transform .8s var(--ease-out); }
.meter__scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .55rem; }
.team-chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.team-chips li { padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(59, 158, 255, .35); font-size: .8rem; animation: swapIn .5s var(--ease-out) both; animation-delay: var(--d); }
.brief-text { margin: 8px 0 0; font-size: .85rem; color: #c7d3e3; line-height: 1.55; }
.builder__note { text-align: center; margin: -8px 0 0; font-size: .56rem; }

/* Shared CSS phone mock */
.mock-phone { position: relative; width: 250px; aspect-ratio: 9 / 18.5; border-radius: 38px; padding: 10px; background: linear-gradient(145deg, #2a3446, #0d131d); box-shadow: 0 40px 70px -30px rgba(0,0,0,.7), inset 0 0 0 1.5px rgba(255,255,255,.12), 0 0 0 1px rgba(0,0,0,.4); }
.mock-phone--lg { width: 280px; }
.mock-phone--sm { width: 190px; border-radius: 30px; padding: 8px; }
.mock-phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 34%; height: 20px; border-radius: 12px; background: #000; z-index: 3; }
.mock-phone--sm .mock-phone__notch { top: 14px; height: 15px; }
.mock-phone__screen { position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, #0f1d33, #0a1426); color: #e9eff8; padding: 40px 14px 14px; }
.mock-phone--sm .mock-phone__screen { border-radius: 23px; padding: 32px 12px 12px; }
.mock-status { position: absolute; top: 14px; left: 22px; right: 22px; display: flex; justify-content: space-between; font-size: .55rem; color: rgba(255,255,255,.7); letter-spacing: .04em; }
.mock-title { font-weight: 700; font-size: 1.15rem; margin: 6px 2px 10px; }
.mock-blocks { display: grid; gap: 8px; }
.mb { display: none; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.07); font-size: .78rem; }
.mb.is-on { display: flex; animation: blockIn .55s var(--ease-out); }
@keyframes blockIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.mb > div { display: grid; gap: 4px; flex: 1; min-width: 0; }
.mb b { font-size: .82rem; }
.mb-ic { font-style: normal; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(59, 158, 255, .2); flex: none; }
.mb-ic--pulse { animation: ping 1.6s infinite; border-radius: 50%; }
.mb-sub { color: rgba(255,255,255,.6); font-size: .7rem; }
.mb-input { height: 16px; border-radius: 5px; background: rgba(255,255,255,.12); }
.mb-btn { height: 20px; border-radius: 6px; background: var(--accent); font-size: .65rem; display: grid; place-items: center; font-weight: 600; }
.mb-toggle { width: 30px; height: 18px; border-radius: 9px; background: var(--ok); position: relative; flex: none; }
.mb-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.mb-map { position: relative; width: 100%; height: 70px; border-radius: 10px; background: linear-gradient(135deg, #12403b, #0e2f4a); background-image: linear-gradient(rgba(45,212,191,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(45,212,191,.15) 1px, transparent 1px); background-size: 14px 14px; overflow: hidden; }
.mb-map i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 0 6px rgba(45,212,191,.25); animation: petWalk 5s ease-in-out infinite; }
@keyframes petWalk { 0% { left: 20%; top: 60%; } 33% { left: 60%; top: 25%; } 66% { left: 80%; top: 65%; } 100% { left: 20%; top: 60%; } }
.mb .mb-chart { display: flex; align-items: flex-end; gap: 5px; height: 60px; width: 100%; }
.mb-chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(var(--accent), var(--accent-3)); animation: grow 1.6s ease-in-out infinite alternate; transform-origin: bottom; }
.mb-chart i:nth-child(1) { height: 40%; } .mb-chart i:nth-child(2) { height: 70%; animation-delay: .2s; } .mb-chart i:nth-child(3) { height: 55%; animation-delay: .4s; } .mb-chart i:nth-child(4) { height: 90%; animation-delay: .1s; } .mb-chart i:nth-child(5) { height: 65%; animation-delay: .3s; } .mb-chart i:nth-child(6) { height: 80%; animation-delay: .5s; }
.mb-chat { display: grid; gap: 5px; width: 100%; font-size: .7rem; }
.mb-chat span { padding: 6px 9px; border-radius: 10px 10px 10px 2px; background: rgba(255,255,255,.12); justify-self: start; }
.mb-chat .me { background: var(--accent); border-radius: 10px 10px 2px 10px; justify-self: end; }
.mb .mb-pills { display: flex; gap: 5px; }
.mb-pills span { padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .7rem; }
.mb-pills span:first-child { background: var(--accent); }
.mb-progress { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.mb-progress i { display: block; height: 100%; background: var(--ok); animation: ota 3s ease-in-out infinite; }
@keyframes ota { from { width: 0; } 80%, to { width: 100%; } }
.mock-push { position: absolute; left: 10px; right: 10px; top: 36px; z-index: 2; display: grid; padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.92); color: #0a1220; font-size: .72rem; transform: translateY(-140%); transition: transform .6s var(--ease-out); }
.mock-push.is-on { animation: pushIn 4s var(--ease-out) infinite; transform: none; }
@keyframes pushIn { 0% { transform: translateY(-140%); } 10%, 60% { transform: translateY(0); } 72%, 100% { transform: translateY(-140%); } }
.mock-empty { display: none; text-align: center; margin-top: 40%; color: rgba(255,255,255,.4); }
.mock-empty.is-on { display: block; }

/* ---------- Process explorer ---------- */
.pex { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.pex__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pex__step { position: relative; width: 100%; display: grid; grid-template-columns: 48px 1fr; gap: 16px; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; overflow: hidden; transition: border-color .3s, background-color .3s; }
.pex__step:hover { border-color: var(--line-strong); }
.pex__num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--muted); transition: background-color .3s, color .3s, border-color .3s; }
.pex__body strong { display: block; font-size: 1.15rem; letter-spacing: -.015em; margin-top: 8px; }
.pex__body ul { margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: .92rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .4s, margin .4s; }
.pex__step.is-active { border-color: var(--accent); background: rgba(59, 158, 255, .06); }
.pex__step.is-active .pex__num { background: var(--accent); border-color: var(--accent); color: #fff; }
.pex__step.is-done .pex__num { border-color: var(--accent); color: var(--accent); }
.pex__step.is-active ul { max-height: 160px; opacity: 1; margin-top: 8px; }
.pex__timer { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.pex__step.is-active .pex__timer { animation: timer 6s linear forwards; }
.pex.is-paused .pex__timer, .pex.is-offscreen .pex__timer { animation-play-state: paused; }
.pex__stage { position: relative; display: grid; place-items: center; padding: 40px 0; }
.pex__orbit { position: absolute; width: 440px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--line-strong); animation: spin 40s linear infinite; }
.pex__orbit span { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); transform: rotate(calc(var(--i) * 60deg)) translateY(-220px); transition: background-color .3s, border-color .3s; }
.pex__orbit span.is-on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent); }
.pex__screen .ps { position: absolute; inset: 40px 14px 14px; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease-out); pointer-events: none; }
.pex__screen[data-stage="0"] .ps[data-s="0"], .pex__screen[data-stage="1"] .ps[data-s="1"], .pex__screen[data-stage="2"] .ps[data-s="2"], .pex__screen[data-stage="3"] .ps[data-s="3"], .pex__screen[data-stage="4"] .ps[data-s="4"], .pex__screen[data-stage="5"] .ps[data-s="5"] { opacity: 1; transform: none; }
.ps-label { display: block; color: var(--accent-2); margin: 6px 0 14px; font-size: .6rem; }
.ps-notes { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-notes i { font-style: normal; padding: 12px 10px; width: calc(50% - 4px); min-height: 70px; border-radius: 4px; background: #fde68a; color: #422006; font-size: .78rem; font-weight: 600; transform: rotate(var(--r)) scale(.6); opacity: 0; box-shadow: 0 6px 12px rgba(0,0,0,.3); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.ps-notes i:nth-child(2n) { background: #bae6fd; color: #082f49; }
.ps-notes i:nth-child(3n) { background: #fbcfe8; color: #500724; }
.pex__screen[data-stage="0"] .ps-notes i { transform: rotate(var(--r)); opacity: 1; }
.ps-notes i:nth-child(2) { transition-delay: .1s; } .ps-notes i:nth-child(3) { transition-delay: .2s; } .ps-notes i:nth-child(4) { transition-delay: .3s; } .ps-notes i:nth-child(5) { transition-delay: .4s; }
.ps-wire { display: grid; gap: 10px; }
.ps-wire i { display: block; border: 1.5px dashed rgba(148, 190, 255, .6); border-radius: 8px; clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease-out); }
.ps-wire .w1 { height: 26px; width: 60%; } .ps-wire .w2 { height: 130px; } .ps-wire .w3, .ps-wire .w4 { height: 34px; } .ps-wire .w5 { height: 40px; border-style: solid; background: rgba(59, 158, 255, .2); }
.pex__screen[data-stage="1"] .ps-wire i { clip-path: inset(0 0 0 0); }
.ps-wire i:nth-child(2) { transition-delay: .15s; } .ps-wire i:nth-child(3) { transition-delay: .3s; } .ps-wire i:nth-child(4) { transition-delay: .45s; } .ps-wire i:nth-child(5) { transition-delay: .6s; }
.ps-code { margin: 0; font: 500 .66rem/1.7 var(--mono); color: #a5f3fc; white-space: pre-wrap; word-break: break-word; }
.ps-code::after { content: "▍"; color: var(--accent); animation: blink 1s steps(2) infinite; }
.ps-tests { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .62rem; }
.ps-tests li { display: flex; justify-content: space-between; padding: 10px; border-radius: 8px; background: rgba(255,255,255,.06); }
.ps-tests li::after { content: "…"; color: var(--warn); }
.pex__screen[data-stage="3"] .ps-tests li::after { content: "✓ PASS"; color: var(--ok); animation: swapIn .4s var(--ease-out) both; }
.pex__screen[data-stage="3"] .ps-tests li:nth-child(2)::after { animation-delay: .4s; } .pex__screen[data-stage="3"] .ps-tests li:nth-child(3)::after { animation-delay: .8s; } .pex__screen[data-stage="3"] .ps-tests li:nth-child(4)::after { animation-delay: 1.2s; } .pex__screen[data-stage="3"] .ps-tests li:nth-child(5)::after { animation-delay: 1.6s; }
.ps-bugs { margin-top: 16px; font-size: .62rem; color: var(--muted); }
.ps-bugs b { color: var(--ok); font-size: 1.3rem; }
.ps-stores { display: grid; gap: 8px; margin-bottom: 16px; }
.ps-stores span { padding: 12px; border-radius: 10px; background: #000; border: 1px solid rgba(255,255,255,.25); font-weight: 600; font-size: .85rem; text-align: center; }
.ps-upload { height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.ps-upload i { display: block; height: 100%; width: 0; background: var(--grad); }
.pex__screen[data-stage="4"] .ps-upload i { animation: ota 2.4s var(--ease-out) forwards; }
.ps-live { display: block; text-align: center; margin-top: 20px; font-size: 1.5rem; opacity: 0; }
.pex__screen[data-stage="4"] .ps-live { animation: swapIn .6s 2.2s var(--ease-out) forwards; }
.ps-versions { display: flex; gap: 6px; margin-bottom: 18px; }
.ps-versions span { padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line-strong); font-size: .6rem; opacity: .3; }
.pex__screen[data-stage="5"] .ps-versions span { animation: verOn .5s var(--ease-out) forwards; }
.pex__screen[data-stage="5"] .ps-versions span:nth-child(2) { animation-delay: .7s; } .pex__screen[data-stage="5"] .ps-versions span:nth-child(3) { animation-delay: 1.4s; }
@keyframes verOn { to { opacity: 1; background: rgba(52, 211, 153, .2); border-color: var(--ok); } }
.ps-stars { font-size: 1.6rem; color: #facc15; letter-spacing: 4px; }
.ps-feedback { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: .8rem; }

/* ---------- Agile ---------- */
.agile { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.loop { --loop-r: 146px; position: relative; width: 340px; aspect-ratio: 1; margin: 0 auto 64px; }
.loop__svg { position: absolute; inset: 9%; width: 82%; height: 82%; transform: rotate(-90deg); }
.loop__track { fill: none; stroke: rgba(148, 190, 255, .14); stroke-width: 10; }
.loop__prog { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease-out); filter: drop-shadow(0 0 8px rgba(59, 158, 255, .8)); }
.loop__node { position: absolute; left: 50%; top: 50%; padding: 6px 10px; border-radius: 999px; background: var(--navy-2); border: 1px solid var(--line-strong); color: var(--muted); font-size: .56rem; white-space: nowrap; transform: translate(-50%, -50%) rotate(calc(var(--i) / var(--n) * 360deg - 90deg)) translateX(var(--loop-r)) rotate(calc(var(--i) / var(--n) * -360deg + 90deg)); transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s; }
.loop__node.is-done { color: var(--accent); border-color: rgba(59, 158, 255, .5); }
.loop__node.is-on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 20px rgba(59, 158, 255, .7); }
.loop__token { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(34, 211, 238, .35), 0 0 20px var(--accent-2); transition: transform .9s var(--ease-out); transform: rotate(-90deg) translateX(var(--loop-r)) rotate(90deg); --loop-r: 110px; }
.loop__center { position: absolute; inset: 30%; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle, #12305a, #0a1830); border: 1px solid rgba(59, 158, 255, .4); }
.loop__sprint { font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; }
.loop__day { color: var(--accent-2); font-size: .56rem; margin-top: 4px; }
.loop__controls { position: absolute; left: 50%; bottom: -58px; transform: translateX(-50%); }
.loop__play { display: inline-flex; align-items: center; gap: 8px; background: rgba(6, 13, 24, .9); }
.loop__play .icon { width: 14px; height: 14px; }
.loop__play .icon--pause, .loop__play[aria-pressed="true"] .icon--play { display: none; }
.loop__play[aria-pressed="true"] .icon--pause { display: inline; }
.board-wrap { position: relative; display: grid; gap: 14px; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.board__col { border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 10px; min-height: 280px; display: flex; flex-direction: column; transition: border-color .3s, background-color .3s; }
.board__col:hover { border-color: var(--line-strong); }
.board__col[data-col="done"] { background: rgba(52, 211, 153, .05); }
.board__head { display: flex; justify-content: space-between; color: var(--muted); font-size: .58rem; margin-bottom: 10px; }
.board__head b { color: var(--fg); font-weight: 500; }
.board__list { display: grid; gap: 8px; align-content: start; flex: 1; }
.kcard { position: relative; display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: var(--navy-2); border: 1px solid var(--line-strong); font-size: .8rem; font-weight: 500; cursor: grab; user-select: none; touch-action: none; transition: border-color .25s, box-shadow .25s; }
.kcard b { font-size: .55rem; color: var(--muted); font-weight: 400; }
.kcard::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--muted); }
.kcard[data-col="doing"]::before { background: var(--warn); }
.kcard[data-col="testing"]::before { background: var(--accent-3); }
.kcard[data-col="done"]::before { background: var(--ok); }
.kcard[data-col="done"] span { text-decoration: line-through; text-decoration-color: rgba(52, 211, 153, .6); color: var(--muted); }
.kcard:hover { border-color: var(--accent); }
.kcard.is-drag { z-index: 10; cursor: grabbing; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); border-color: var(--accent); }
.burn { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.burn__head { display: flex; justify-content: space-between; color: var(--muted); font-size: .58rem; margin-bottom: 8px; }
.burn__head b { color: var(--ok); font-weight: 500; }
.burn__svg { width: 100%; height: 90px; overflow: visible; }
.burn__ideal { fill: none; stroke: rgba(148, 190, 255, .3); stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.burn__actual { fill: none; stroke: var(--accent-2); stroke-width: 2.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(34, 211, 238, .6)); }
.ship { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(.8); padding: 16px 22px; border-radius: 14px; background: var(--ok); color: #052e16; font-size: .7rem; text-align: center; opacity: 0; pointer-events: none; transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); box-shadow: 0 20px 50px -10px rgba(52, 211, 153, .6); }
.ship.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.simple { list-style: none; padding: 0; margin: 70px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.simple li { position: relative; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.simple li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 30px; color: var(--accent); font-size: 1.1rem; z-index: 1; }
.simple__num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 14px; }
.simple strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.simple p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Venn ---------- */
.venn-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.venn-wrap .lead { margin-top: 24px; }
.venn__switch { margin-top: 28px; }
.venn__info { margin-top: 20px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); min-height: 120px; }
.venn__info.is-swap { animation: swapIn .4s var(--ease-out); }
.venn__info b { font-size: 1.15rem; }
.venn__info p { margin: 6px 0 0; }
.venn { position: relative; width: min(480px, 100%); aspect-ratio: 1; margin-inline: auto; }
.venn__circle { position: absolute; width: 56%; aspect-ratio: 1; border-radius: 50%; border: 2px solid; display: grid; padding: 18%; font-weight: 600; font-size: .95rem; line-height: 1.2; mix-blend-mode: multiply; transition: left .9s var(--ease-out), top .9s var(--ease-out), transform .4s var(--ease-out), box-shadow .3s; cursor: pointer; }
[data-theme="dark"] .venn__circle { mix-blend-mode: screen; }
.venn__circle:hover, .venn__circle:focus-visible { transform: scale(1.05); z-index: 2; box-shadow: 0 20px 50px -20px rgba(0,0,0,.4); }
.venn__circle--creative { background: rgba(244, 114, 182, .22); border-color: #f472b6; color: #9d174d; place-items: start center; text-align: center; }
.venn__circle--software { background: rgba(59, 158, 255, .22); border-color: #3b9eff; color: #1e3a8a; place-items: end start; }
.venn__circle--firmware { background: rgba(52, 211, 153, .22); border-color: #34d399; color: #065f46; place-items: end end; text-align: right; }
[data-theme="dark"] .venn__circle--creative { color: #fbcfe8; } [data-theme="dark"] .venn__circle--software { color: #bfdbfe; } [data-theme="dark"] .venn__circle--firmware { color: #a7f3d0; }
.venn[data-mode="together"] .venn__circle--creative { left: 22%; top: 4%; }
.venn[data-mode="together"] .venn__circle--software { left: 4%; top: 38%; }
.venn[data-mode="together"] .venn__circle--firmware { left: 40%; top: 38%; }
.venn[data-mode="apart"] .venn__circle--creative { left: 22%; top: -14%; }
.venn[data-mode="apart"] .venn__circle--software { left: -14%; top: 50%; }
.venn[data-mode="apart"] .venn__circle--firmware { left: 58%; top: 50%; }
.venn__core { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 26%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--navy); color: #fff; box-shadow: 0 0 0 6px rgba(59, 158, 255, .2), 0 20px 40px -10px rgba(59, 158, 255, .6); transition: transform .8s var(--ease-out), opacity .5s; z-index: 3; pointer-events: none; }
.venn__core .mono { font-size: .55rem; color: var(--accent-2); }
.venn__core b { font-size: .82rem; line-height: 1.15; }
.venn[data-mode="apart"] .venn__core { transform: translate(-50%, -50%) scale(.4); opacity: 0; }

/* ---------- Portfolio carousel ---------- */
.carousel { --car-r: 420px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; perspective: 1400px; }
.carousel__ring { position: relative; height: 440px; transform-style: preserve-3d; cursor: grab; touch-action: pan-y; user-select: none; }
.carousel__ring:active { cursor: grabbing; }
.carousel__item { position: absolute; left: 50%; top: 50%; width: 190px; margin: -195px 0 0 -95px; transform: rotateY(calc(var(--i) * 34deg)) translateZ(var(--car-r)); transition: filter .6s, opacity .6s; filter: brightness(.45) blur(1px); cursor: pointer; }
.carousel__item.is-active { filter: none; }
.app-ui__title { display: block; font-size: .9rem; margin: 4px 0 12px; }
.app-ui__hero { position: relative; height: 150px; border-radius: 16px; margin-bottom: 12px; overflow: hidden; display: grid; place-items: center; }
.app-ui__hero i { position: absolute; border-radius: 50%; }
.app-ui__rows { display: grid; gap: 8px; }
.app-ui__rows span { height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); }
.app-ui--diffuser { background: linear-gradient(180deg, #1b1036, #3b1d6e); }
.app-ui--diffuser .app-ui__hero i:nth-child(1) { width: 110px; height: 110px; border: 10px solid #c084fc; border-right-color: rgba(255,255,255,.15); animation: spin 4s linear infinite; }
.app-ui--diffuser .app-ui__hero i:nth-child(2) { width: 14px; height: 14px; background: rgba(192,132,252,.6); top: 20px; animation: float 2s ease-in-out infinite; }
.app-ui--pet { background: linear-gradient(180deg, #0b2a2a, #0f4c45); }
.app-ui--pet .app-ui__hero { background-image: linear-gradient(rgba(45,212,191,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(45,212,191,.15) 1px, transparent 1px); background-size: 16px 16px; }
.app-ui--pet .app-ui__hero i:nth-child(1) { width: 100px; height: 100px; border: 2px dashed #2dd4bf; }
.app-ui--pet .app-ui__hero i:nth-child(2) { width: 14px; height: 14px; background: #fff; box-shadow: 0 0 0 8px rgba(45,212,191,.3); animation: petWalk 5s ease-in-out infinite; }
.app-ui--lock { background: linear-gradient(180deg, #0b1730, #13315f); }
.app-ui--lock .app-ui__hero i:nth-child(1) { width: 96px; height: 96px; background: #60a5fa; box-shadow: 0 0 0 16px rgba(96,165,250,.2); animation: ping 2s infinite; }
.app-ui--lock .app-ui__hero i:nth-child(2) { width: 34px; height: 28px; border-radius: 6px; background: #fff; top: 64px; }
.app-ui--lock .app-ui__hero i:nth-child(3) { width: 26px; height: 26px; border: 5px solid #fff; border-bottom-color: transparent; top: 46px; }
.app-ui--audio { background: linear-gradient(180deg, #2a1206, #5a2a0c); }
.app-ui--audio .app-ui__hero { display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding-bottom: 20px; }
.app-ui--audio .app-ui__hero i { position: static; width: 14px; border-radius: 4px; background: linear-gradient(#fb923c, #f43f5e); animation: grow 1s ease-in-out infinite alternate; height: 80px; transform-origin: bottom; }
.app-ui--audio .app-ui__hero i:nth-child(2) { height: 110px; animation-delay: .2s; } .app-ui--audio .app-ui__hero i:nth-child(3) { height: 60px; animation-delay: .4s; }
.carousel__info { position: relative; z-index: 2; min-height: 260px; }
.carousel__card { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .5s, transform .6s var(--ease-out); }
.carousel__card.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.carousel__card h3 { font-size: 2rem; letter-spacing: -.03em; margin: 8px 0; font-weight: 600; }
.carousel__nav { display: flex; gap: 10px; margin-top: 20px; }
.carousel__btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; display: grid; place-items: center; transition: background-color .25s, border-color .25s; }
.carousel__btn:hover { background: var(--accent); border-color: var(--accent); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 60px; border-top: 1px solid var(--line); }
.value { padding: 22px 20px 0 0; display: grid; gap: 4px; }
.value + .value { padding-left: 20px; border-left: 1px solid var(--line); }
.value b { font-size: 1.3rem; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value span { color: var(--muted); font-size: .9rem; }

/* ---------- Design evolution ---------- */
.evo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.evo-wrap .lead { margin-top: 24px; }
.evo__features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.evo__features li { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; gap: 2px; transition: border-color .25s, transform .3s var(--ease-out); }
.evo__features li:hover { border-color: #ff8a3d; transform: translateY(-3px); }
.evo__features span { color: var(--muted); font-size: .85rem; }
.evo { display: grid; justify-items: center; gap: 22px; }
.evo__screen { background: #fff; color: #24324a; }
.evo__screen .ev { position: absolute; inset: 40px 14px 14px; opacity: 0; transform: scale(.96); transition: opacity .5s, transform .6s var(--ease-out); }
.evo__screen[data-evo="0"] .ev[data-e="0"], .evo__screen[data-evo="1"] .ev[data-e="1"], .evo__screen[data-evo="2"] .ev[data-e="2"], .evo__screen[data-evo="3"] .ev[data-e="3"], .evo__screen[data-evo="4"] .ev[data-e="4"], .evo__screen[data-evo="5"] .ev[data-e="5"] { opacity: 1; transform: none; }
.evo__screen[data-evo="0"] { background: #fbf7ef; }
.ev-sketch { width: 100%; height: 100%; }
.ev-sketch * { fill: none; stroke: #6b7280; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.evo__screen[data-evo="0"] .ev-sketch * { animation: sketchDraw 1.6s var(--ease-out) forwards; }
@keyframes sketchDraw { to { stroke-dashoffset: 0; } }
.ev-wire { display: grid; gap: 10px; }
.ev-wire i { display: block; background: #e5e7eb; border-radius: 8px; }
.ev-wire .h { height: 40px; } .ev-wire .map { height: 160px; background: repeating-linear-gradient(45deg, #e5e7eb, #e5e7eb 8px, #f3f4f6 8px, #f3f4f6 16px); } .ev-wire .r { height: 46px; } .ev-wire .b { height: 44px; background: #9ca3af; }
.ev-mood { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 100%; }
.ev-mood i { border-radius: 12px; }
.ev-mood i:nth-child(1) { background: linear-gradient(135deg, #ffb37a, #ff8a3d); grid-row: span 2; }
.ev-mood i:nth-child(2) { background: linear-gradient(135deg, #7ee0d4, #2bb3a3); }
.ev-mood i:nth-child(3) { background: radial-gradient(circle at 30% 30%, #fff, #f6efe6); }
.ev-mood i:nth-child(4) { background: linear-gradient(135deg, #3b4a66, #24324a); grid-row: span 2; }
.ev-mood i:nth-child(5) { background: repeating-radial-gradient(circle, #ff8a3d 0 4px, #f6efe6 4px 12px); }
.ev-mood i:nth-child(6) { background: linear-gradient(135deg, #fde68a, #fb923c); }
.ev-colors { display: grid; gap: 10px; height: 100%; }
.ev-colors span { display: flex; align-items: flex-end; padding: 10px; border-radius: 12px; background: var(--c); color: #fff; font-size: .62rem; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.ev-colors span:nth-child(4) { color: #24324a; text-shadow: none; border: 1px solid #e5e7eb; }
.ev-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 30px; }
.ev-icons span { aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: #f6efe6; transform: scale(.4); opacity: 0; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.evo__screen[data-evo="4"] .ev-icons span { transform: none; opacity: 1; }
.ev-icons span:nth-child(2) { transition-delay: .06s; } .ev-icons span:nth-child(3) { transition-delay: .12s; } .ev-icons span:nth-child(4) { transition-delay: .18s; } .ev-icons span:nth-child(5) { transition-delay: .24s; } .ev-icons span:nth-child(6) { transition-delay: .3s; }
.ev-ui { display: grid; gap: 10px; }
.ev-ui__top { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: #f6efe6; }
.ev-ui__pet { width: 40px; height: 40px; border-radius: 50%; background: #ff8a3d; display: grid; place-items: center; font-size: 1.3rem; }
.ev-ui__top b { display: block; } .ev-ui__top small { color: #2bb3a3; font-weight: 600; }
.ev-ui__map { position: relative; height: 200px; border-radius: 16px; background: #dff3ef; background-image: linear-gradient(rgba(43,179,163,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(43,179,163,.18) 1px, transparent 1px); background-size: 20px 20px; overflow: hidden; }
.ev-ui__map .zone { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px; border-radius: 50%; border: 2px dashed #2bb3a3; background: rgba(43,179,163,.12); }
.ev-ui__map .pet { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #ff8a3d; box-shadow: 0 0 0 8px rgba(255,138,61,.3); animation: petWalk 6s ease-in-out infinite; }
.ev-ui__map .home { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 3px; background: #24324a; }
.ev-ui__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ev-ui__stats div { padding: 8px; border-radius: 10px; background: #24324a; color: #fff; display: grid; }
.ev-ui__stats b { font-size: .85rem; } .ev-ui__stats small { font-size: .6rem; opacity: .7; }
.evo__control { width: min(460px, 100%); }
.evo__range { --p: 0%; width: 100%; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #ff8a3d var(--p), var(--line-strong) var(--p)); outline: none; }
.evo__range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid #ff8a3d; box-shadow: 0 4px 14px rgba(255,138,61,.5); cursor: grab; }
.evo__range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid #ff8a3d; cursor: grab; }
.evo__labels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; justify-content: center; }
.evo__labels button { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: none; font-size: .56rem; color: var(--muted); transition: background-color .25s, color .25s, border-color .25s; }
.evo__labels button.is-done { color: #ff8a3d; border-color: rgba(255,138,61,.4); }
.evo__labels button.is-active { background: #ff8a3d; border-color: #ff8a3d; color: #fff; }

/* ---------- People flip cards ---------- */
.people { display: none; }
.people.is-active { display: block; animation: swapIn .6s var(--ease-out); }
.people__intro { margin: 0 0 22px; }
.people__switch { margin-bottom: 4px; }
.flip { perspective: 1200px; min-height: 300px; cursor: pointer; outline: none; }
.flip__inner { position: relative; height: 100%; min-height: 300px; transform-style: preserve-3d; transition: transform .8s var(--ease-out); }
.flip:hover .flip__inner, .flip:focus-visible .flip__inner, .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__face.person { display: flex; flex-direction: column; }
.flip__hint { margin-top: auto; color: var(--accent); font-size: .56rem; }
.flip__back { transform: rotateY(180deg); padding: 28px; border-radius: 20px; background: var(--navy); color: #e9eff8; border: 1px solid var(--accent); display: grid; align-content: center; gap: 10px; }
.flip__back h3 { margin: 0; font-size: 1.4rem; }
.flip__back p { margin: 0; color: #c7d3e3; }

/* ---------- Why chips / dark quote ---------- */
.quote-block--dark .eyebrow { justify-content: center; }
.why-chips { list-style: none; padding: 0; margin: 0 0 50px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.why-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); transition: border-color .25s, transform .3s var(--ease-out); }
.why-chips li:hover { border-color: var(--accent); transform: translateY(-3px); }
.why-chips .icon { width: 16px; height: 16px; color: var(--ok); }

@media (max-width: 1180px) {
	.builder { grid-template-columns: 1fr 1fr; }
	.builder__result { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
	.hero--app .hero__inner, .pex, .agile, .venn-wrap, .evo-wrap, .carousel { grid-template-columns: 1fr; }
	.features--six { grid-template-columns: repeat(2, 1fr); }
	.simple { grid-template-columns: repeat(2, 1fr); }
	.simple li::after { display: none; }
	.pex__stage { order: -1; }
	.carousel__info { text-align: center; }
	.carousel__card .tags, .carousel__nav { justify-content: center; }
}
@media (max-width: 720px) {
	.trust { grid-template-columns: 1fr; }
	.features--six { grid-template-columns: 1fr; }
	.builder { grid-template-columns: 1fr; }
	.builder__preview { position: relative; top: 0; }
	.board { grid-template-columns: repeat(2, 1fr); }
	.board__col { min-height: 170px; }
	.simple { grid-template-columns: 1fr; }
	.values { grid-template-columns: 1fr 1fr; }
	.value:nth-child(3) { padding-left: 0; border-left: 0; }
	.value { border-top: 1px solid var(--line); }
	.carousel { --car-r: 300px; }
	.carousel__ring { height: 400px; }
	.carousel__item { width: 160px; margin: -170px 0 0 -80px; }
	.mock-phone--sm { width: 160px; }
	.pex__orbit { width: 340px; }
	.pex__orbit span { transform: rotate(calc(var(--i) * 60deg)) translateY(-170px); }
	.loop { transform: scale(.94); }
	.evo__features { grid-template-columns: 1fr; }
	.wa-float { right: 14px; bottom: 14px; height: 52px; padding: 0 13px; }
}

/* ---------- Mechanical page: hero lifecycle ---------- */
.hero--mech .hero__inner { grid-template-columns: 1fr 1.05fr; }
.life3d, .fea3d, .stamp3d { position: relative; width: 100%; touch-action: pan-y; }
.life3d { aspect-ratio: 1 / .9; }
.life3d canvas, .fea3d canvas, .stamp3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.life3d.is-ready canvas, .fea3d.is-ready canvas, .stamp3d.is-ready canvas { opacity: 1; }
.life3d__badge { position: absolute; left: 0; top: 0; z-index: 2; padding: 8px 12px; border-radius: 10px; background: rgba(6, 13, 24, .75); border: 1px solid var(--line-strong); color: var(--muted); backdrop-filter: blur(6px); }
.life3d__badge b { color: #fff; font-weight: 500; margin-left: 6px; display: inline-block; }
.life3d__badge b.is-swap { animation: swapIn .5s var(--ease-out); }
.life3d__steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.life3d__step { position: relative; display: grid; gap: 2px; padding: 10px 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); text-align: left; font-size: .76rem; color: #c7d3e3; overflow: hidden; transition: border-color .25s, background-color .25s, color .25s; }
.life3d__step .mono { font-size: .55rem; color: var(--muted); }
.life3d__step i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.life3d__step:hover { border-color: var(--accent); }
.life3d__step.is-done i { transform: scaleX(1); opacity: .4; }
.life3d__step.is-active { border-color: var(--accent); background: rgba(59, 158, 255, .12); color: #fff; }
.life3d__step.is-active .mono { color: var(--accent-2); }
.life3d__step.is-active i { transform: scaleX(1); }
.feature--link { text-decoration: none; display: block; }
.feature--link:hover .feature__add { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Lifecycle journey (horizontal scroll) ---------- */
.journey { position: relative; height: calc(var(--n) * 55vh + 100vh); background: var(--bg); color: var(--fg); }
.journey__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding-top: var(--header-h); }
.journey__head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; }
.journey__rail { position: relative; height: 18px; display: flex; justify-content: space-between; align-items: center; }
.journey__rail::before { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--line-strong); }
.journey__fill { position: absolute; left: 0; right: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.journey__dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); transition: background-color .3s, border-color .3s, transform .3s; }
.journey__dot.is-on { background: var(--accent); border-color: var(--accent); transform: scale(1.2); box-shadow: 0 0 12px var(--accent); }
.journey__viewport { overflow: visible; padding-left: max(24px, calc((100vw - 1240px) / 2)); }
.journey__track { list-style: none; margin: 0; padding: 0 10vw 0 0; display: flex; gap: 22px; width: max-content; will-change: transform; }
.jcard { position: relative; width: 340px; min-height: 360px; flex: none; padding: 28px; border-radius: 20px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(16, 32, 58, .8), rgba(6, 13, 24, .6)); overflow: hidden; display: flex; flex-direction: column; gap: 10px; opacity: .35; transform: translateY(20px) scale(.97); transition: opacity .6s, transform .7s var(--ease-out), border-color .4s, box-shadow .4s; }
.jcard.is-on { opacity: 1; transform: none; }
.jcard.is-current { border-color: var(--accent); box-shadow: 0 30px 60px -30px rgba(59, 158, 255, .6); }
.jcard__big { position: absolute; right: 16px; top: -10px; font-size: 7rem; font-weight: 800; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(148, 190, 255, .18); line-height: 1; }
.jcard__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(59, 158, 255, .14); color: var(--accent); margin-bottom: 8px; }
.jcard__icon .icon { width: 26px; height: 26px; }
.jcard.is-current .jcard__icon { background: var(--accent); color: #fff; }
.jcard h3 { font-size: 1.6rem; letter-spacing: -.03em; margin: 0; font-weight: 600; }
.jcard p { margin: 0; color: #a9b8cc; }
.jcard__out { list-style: none; padding: 14px 0 0; margin: auto 0 0; display: grid; gap: 6px; border-top: 1px solid var(--line); font-size: .6rem; color: var(--accent-2); }
.jcard__out li { display: flex; gap: 8px; align-items: center; }
.jcard__out .icon { width: 14px; height: 14px; color: var(--ok); }
.jcard--cta { opacity: 1; transform: none; justify-content: center; background: linear-gradient(160deg, rgba(59, 158, 255, .25), rgba(139, 92, 246, .2)); border-color: var(--accent); }

/* ---------- FEM lab ---------- */
.lab { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.lab__stage { position: relative; border-radius: 20px; border: 1px solid var(--line-strong); background: radial-gradient(circle at 50% 40%, rgba(59, 158, 255, .1), transparent 70%), var(--card); overflow: hidden; }
.lab__head { position: absolute; left: 18px; right: 18px; top: 16px; z-index: 2; display: flex; justify-content: space-between; color: var(--muted); font-size: .6rem; pointer-events: none; }
.lab__exag { color: var(--accent); }
.fea3d { aspect-ratio: 16 / 11; }
.lab__legend { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .58rem; }
.lab__legend i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #2563eb, #22d3ee, #4ade80, #facc15, #ef4444); }
.lab__panel { display: grid; gap: 22px; padding: 24px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--card); }
.lab__mats .opt span { color: var(--fg); }
.section--light .opt input:checked + span { color: var(--fg); }
.slider { display: grid; gap: 10px; }
.slider > span { display: flex; justify-content: space-between; color: var(--muted); }
.slider > span b { color: var(--accent-2); font-weight: 500; margin-right: 6px; }
.slider output { color: var(--fg); font-weight: 500; }
.slider input { width: 100%; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-3)); outline: none; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 4px 14px rgba(59, 158, 255, .5); cursor: grab; }
.slider input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: grab; }
.lab__readouts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; }
.lab__readouts > div { padding: 14px; display: grid; gap: 2px; }
.lab__readouts > div + div { border-left: 1px solid var(--line); }
.lab__readouts .mono { font-size: .55rem; }
.lab__readouts b { font-size: 1.6rem; letter-spacing: -.03em; font-weight: 600; font-variant-numeric: tabular-nums; }
.lab__readouts small { color: var(--muted); font-size: .72rem; }
.lab__verdict { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border-left: 4px solid var(--ok); background: rgba(52, 211, 153, .1); transition: background-color .3s, border-color .3s; }
.lab__verdict[data-state="warn"] { border-color: var(--warn); background: rgba(245, 158, 11, .12); }
.lab__verdict[data-state="fail"] { border-color: var(--danger); background: rgba(244, 63, 94, .12); }
.lab__verdict span { color: var(--muted); font-size: .9rem; }
.lab__note { margin: 0; color: var(--muted); font-size: .56rem; text-transform: none; letter-spacing: .02em; }
.section--light .opt span { background: var(--card-solid); }
.section--light .opt input:checked + span::before { box-shadow: inset 0 0 0 3px var(--card-solid); }

/* ---------- Prototype finder ---------- */
.finder { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: stretch; }
.finder__qs { display: grid; gap: 24px; }
.finder__result { position: relative; padding: 28px; border-radius: 20px; background: var(--navy); color: #e9eff8; border: 1px solid rgba(59, 158, 255, .4); display: grid; align-content: start; gap: 12px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(6, 13, 24, .6); }
.finder__result.is-swap .finder__method, .finder__result.is-swap .finder__why, .finder__result.is-swap .finder__tags { animation: swapIn .5s var(--ease-out); }
.finder__method { font-size: 2rem; letter-spacing: -.03em; margin: 0; font-weight: 600; }
.finder__why { margin: 0; color: #a9b8cc !important; }
.finder__tags li { border-color: rgba(148, 190, 255, .3); color: #c7d3e3; }
.finder__cta { justify-self: start; margin-top: 6px; }
.finder__icon { position: relative; height: 110px; border-radius: 14px; background-image: linear-gradient(rgba(120,170,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(120,170,255,.08) 1px, transparent 1px); background-size: 14px 14px; border: 1px solid rgba(148, 190, 255, .15); overflow: hidden; }
.finder__icon i { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); border-radius: 6px; background: var(--accent); transition: all .6s var(--ease-out); }
.finder__icon i:nth-child(1) { width: 90px; height: 10px; background: #475569; bottom: 10px; }
.finder__icon i:nth-child(2) { width: 60px; height: 50px; background: linear-gradient(#ff8a3d, #f97316); background-size: 100% 6px; animation: printUp 2.4s ease-in-out infinite; transform-origin: bottom; }
.finder__icon i:nth-child(3) { width: 26px; height: 16px; bottom: 74px; background: #cbd5e1; animation: head 1.2s ease-in-out infinite alternate; }
@keyframes printUp { 0% { transform: translateX(-50%) scaleY(.1); } 80%, 100% { transform: translateX(-50%) scaleY(1); } }
@keyframes head { from { margin-left: -30px; } to { margin-left: 30px; } }
.finder__result[data-route="cnc"] .finder__icon i:nth-child(2), .finder__result[data-route="sheet"] .finder__icon i:nth-child(2), .finder__result[data-route="soft"] .finder__icon i:nth-child(2) { background: linear-gradient(135deg, #e2e8f0, #64748b); animation: none; transform: translateX(-50%); }
.finder__result[data-route="cnc"] .finder__icon i:nth-child(3) { width: 10px; height: 40px; border-radius: 3px; bottom: 60px; animation: head .5s linear infinite alternate; }
.finder__result[data-route="vac"] .finder__icon i:nth-child(2), .finder__result[data-route="bridge"] .finder__icon i:nth-child(2) { background: linear-gradient(#a78bfa, #7c3aed); }
.finder__result[data-route="silcast"] .finder__icon i:nth-child(2), .finder__result[data-route="comp"] .finder__icon i:nth-child(2) { background: linear-gradient(#34d399, #059669); border-radius: 22px; }

/* ---------- Stamping press ---------- */
.press { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.press__stage { border-radius: 20px; border: 1px solid var(--line-strong); background: radial-gradient(circle at 50% 40%, rgba(59, 158, 255, .12), transparent 70%), rgba(255,255,255,.02); overflow: hidden; }
.stamp3d { aspect-ratio: 16 / 10; }
.press__stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.press__stations li { padding: 14px; display: grid; gap: 2px; position: relative; }
.press__stations li + li { border-left: 1px solid var(--line); }
.press__stations .mono { color: var(--accent-2); font-size: .58rem; }
.press__stations b { font-size: 1rem; }
.press__stations small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.press__stations li::after { content: ""; position: absolute; inset: 0; background: rgba(59, 158, 255, .18); opacity: 0; pointer-events: none; }
.press__stations li.is-hit::after { animation: hitFlash .5s var(--ease-out); }
@keyframes hitFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
.press__panel { display: grid; gap: 22px; padding: 24px; border-radius: 20px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(16, 32, 58, .7), rgba(6, 13, 24, .5)); }
.press__counter { display: grid; gap: 4px; }
.press__parts { font-size: 3.6rem; line-height: 1; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.press__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.press__play .icon { width: 16px; height: 16px; }
.press__play .icon--play, .press__play[aria-pressed="false"] .icon--pause { display: none; }
.press__play[aria-pressed="false"] .icon--play { display: inline; }
.press__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.press__stats > div { padding: 14px; border-radius: 12px; border: 1px solid var(--line); display: grid; gap: 4px; }
.press__stats .mono { font-size: .55rem; }
.press__stats b { font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.press__note { margin: -10px 0 0; font-size: .55rem; }

/* ---------- Mould flow ---------- */
.flow { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.flow__stage { border-radius: 20px; border: 1px solid var(--line-strong); background: var(--card); overflow: hidden; }
.flow__canvas { display: block; width: 100%; height: auto; }
.flow__legend { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .58rem; }
.flow__legend i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #2563eb, #22d3ee, #4ade80, #facc15, #ef4444); }
.flow__panel { display: grid; gap: 22px; padding: 24px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--card); }
.flow__run .icon { width: 16px; height: 16px; }
.flow__tip { margin: 0; font-size: .92rem; min-height: 4em; }

@media (max-width: 1080px) {
	.hero--mech .hero__inner, .lab, .finder, .press, .flow { grid-template-columns: 1fr; }
	.life3d__steps { grid-template-columns: repeat(3, 1fr); }
	.journey { height: auto; }
	.journey__sticky { position: relative; height: auto; padding: 90px 0; }
	.journey__head { grid-template-columns: 1fr; }
	.journey__rail { display: none; }
	.journey__viewport { padding: 0 24px; overflow-x: auto; scroll-snap-type: x mandatory; }
	.journey__track { padding-right: 24px; }
	.jcard { scroll-snap-align: start; opacity: 1; transform: none; }
}
@media (max-width: 720px) {
	.life3d__steps { grid-template-columns: repeat(2, 1fr); }
	.jcard { width: 82vw; }
	.press__stations { grid-template-columns: 1fr 1fr; }
	.press__stations li:nth-child(3) { border-left: 0; }
	.press__stations li:nth-child(n+3) { border-top: 1px solid var(--line); }
	.lab__readouts b { font-size: 1.25rem; }
}

/* ---------- Generic pages ---------- */
.page { min-height: 70vh; padding-top: 0px; }
.page__head { margin-bottom: 40px; }
.page__head .lead { margin: 20px 0 30px; }
.entry__content { font-size: 1.08rem; }
.entry__content a { color: var(--accent); }
.entry__content img { height: auto; border-radius: 12px; }
.entry__media img { border-radius: 16px; height: auto; margin-bottom: 30px; }
.post-list { display: grid; gap: 18px; }
.post-card { padding: 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.post-card h2 { margin: 6px 0 10px; letter-spacing: -.02em; }
.post-card h2 a { text-decoration: none; }
.post-card p { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
	.topbar__muted, .topbar__sep { display: none; }
	.nav__link { padding: 9px 11px; font-size: .85rem; }
	.mega__panel { grid-template-columns: 1.3fr 1fr; }
	.mega__promo { grid-column: 1 / -1; grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 6px; padding: 18px 22px; }
	.mega__promo > * { grid-column: 1; }
	.mega__promo .btn { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
	.mega__promo .mega__wa { grid-column: 2; grid-row: 4; justify-self: center; }
}
@media (max-width: 1080px) {
	.nav { display: none; }
	.menu-toggle { display: block; }
	.topbar { display: none; }
	:root { --topbar-h: 0px; --header-h: 88px; }
	.hbar-wrap { margin-top: 12px; }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__model { max-width: 520px; width: 100%; margin-inline: auto; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.work__panel.is-active, .process, .faq, .contact__inner { grid-template-columns: 1fr; }
	.contact__copy, .engine { position: relative; top: 0; }
	.process__right { order: -1; }
	.engine__dial { width: min(220px, 60%); }
	.scroll-cue { display: none; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.container { width: calc(100% - 32px); }
	.site-header__actions .btn, .hcta { display: none; }
	.hbar { height: 60px; padding: 0 8px 0 12px; border-radius: 16px; }
	.is-scrolled .hbar { height: 56px; }
	.brand__word { font-size: 1.02rem; }
	.brand__mark { width: 32px; height: 32px; }
	.split-head { grid-template-columns: 1fr; gap: 20px; }
	.hero { padding-top: calc(var(--header-h) + 30px); }
	.hero__points { grid-template-columns: 1fr; gap: 12px; }
	.hero__points br { display: none; }
	.orbit__node { width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 12px; }
	.orbit__node .icon { width: 16px; height: 16px; }
	.cards { grid-template-columns: 1fr; }
	.work__tabs { grid-template-columns: 1fr; }
	.work__tab .mono:last-of-type { display: none; }
	.work__visual { min-height: 320px; }
	.sim__bar { flex-direction: column; align-items: flex-start; }
	.sim__stage { height: 480px; }
	.sim__node { width: 104px; padding: 10px 6px; }
	.sim__node strong { font-size: .78rem; }
	.sim__hub { width: 116px; padding: 12px; }
	.sim__stats div { padding: 14px 12px; }
	.sim__stats b { font-size: 1.4rem; }
	.stats { grid-template-columns: 1fr 1fr; }
	.stat:nth-child(3) { padding-left: 0; border-left: 0; }
	.stat { border-top: 1px solid var(--line); }
	.form__grid { grid-template-columns: 1fr; }
	.scroll-cue { display: none; }
	.modal__dialog { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal, .split .w > span, .js .site-footer__word span { opacity: 1; transform: none; filter: none; }
}
.js .person.reveal.is-in, .js .feature.reveal.is-in, .js .facility.reveal.is-in { transition: transform .5s var(--ease-out), border-color .3s, box-shadow .4s, opacity 1s var(--ease-out) var(--d, 0s), filter 1s var(--ease-out) var(--d, 0s); }
#portfolio { overflow: hidden; }
.wa-float { transition: gap .4s var(--ease-out), transform .3s var(--ease-out), opacity .3s; }
.menu-open .wa-float { opacity: 0; pointer-events: none; }
.person__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--navy); }
.person__avatar.has-photo { width: 96px; height: 96px; }
.app-ui.has-shot { padding: 0; }
.app-ui__shot { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- App site: proof strip ---------- */
.proof { position: relative; z-index: 1; background: var(--navy); color: #e9eff8; padding: 64px 0 40px; border-top: 1px solid rgba(148, 190, 255, .08); }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof__item { display: grid; gap: 6px; padding: 8px 24px; }
.proof__item + .proof__item { border-left: 1px solid rgba(148, 190, 255, .14); }
.proof__item b { font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof__item > span { color: #8696ad; font-size: .92rem; max-width: 22ch; }
@media (max-width: 720px) {
	.proof__grid { grid-template-columns: 1fr 1fr; row-gap: 26px; }
	.proof__item:nth-child(3) { border-left: 0; }
	.proof__item { padding: 4px 14px; }
}
.work__tabs { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Digital site: services catalog ---------- */
.catalog__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -20px 0 30px; }
.catalog__filter { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card-solid); font-size: .9rem; font-weight: 500; color: var(--fg); scroll-margin-top: calc(var(--header-h) + 20px); transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--ease-out); }
.catalog__filter b { font-family: var(--mono); font-size: .6rem; font-weight: 500; padding: 2px 7px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.catalog__filter:hover { border-color: var(--accent); transform: translateY(-2px); }
.catalog__filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.catalog__filter.is-active b { background: var(--accent); color: #fff; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.catalog__card { display: flex; flex-direction: column; padding: 24px; }
.catalog__card[hidden] { display: none; }
.catalog__card.is-in-anim { animation: swapIn .55s var(--ease-out) both; animation-delay: var(--d, 0s); }
.catalog__top { display: flex; justify-content: space-between; align-items: flex-start; }
.catalog__top .feature__icon { margin-bottom: 18px; }
.catalog__cat { font-size: .55rem; color: var(--accent); padding: 5px 8px; border-radius: 6px; background: rgba(59, 158, 255, .08); }
.catalog__card h3 { margin-top: 0; }
.catalog__card .tags { margin: 14px 0 0; }
.catalog__card .feature__add { margin-top: auto; align-self: flex-start; }
.catalog__card p { margin-bottom: 4px; }
.catalog__card .tags + .feature__add { margin-top: 18px; }

/* ---------- Digital site: AI agent demo ---------- */
.agent { display: grid; grid-template-columns: .85fr 1.4fr; gap: 24px; align-items: stretch; }
.agent__side { display: grid; align-content: start; gap: 14px; }
.agent__tasks { display: grid; gap: 8px; margin-bottom: 10px; }
.agent__task { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); text-align: left; font-size: .95rem; font-weight: 500; color: var(--fg); transition: border-color .25s, background-color .25s, transform .3s var(--ease-out); }
.agent__task .mono { color: var(--muted); }
.agent__task .icon { margin-left: auto; width: 14px; height: 14px; color: var(--muted); }
.agent__task:hover { border-color: var(--accent); transform: translateX(4px); }
.agent__task.is-active { border-color: var(--accent-3); background: rgba(139, 92, 246, .14); }
.agent__task.is-active .mono, .agent__task.is-active .icon { color: #c4b5fd; }
.agent__systems { display: flex; flex-wrap: wrap; gap: 8px; }
.agent__sys { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--muted); transition: border-color .3s, color .3s, background-color .3s, box-shadow .3s; }
.agent__sys i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background-color .3s, box-shadow .3s; }
.agent__sys.is-on { border-color: var(--accent-2); color: #fff; background: rgba(34, 211, 238, .12); box-shadow: 0 0 20px -6px rgba(34, 211, 238, .8); }
.agent__sys.is-on i { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); animation: blink .5s steps(2) infinite; }
.agent__sys.is-used { color: #c7d3e3; border-color: rgba(52, 211, 153, .4); }
.agent__sys.is-used i { background: var(--ok); }
.agent__note { margin: 6px 0 0; color: var(--muted); font-size: .55rem; text-transform: none; letter-spacing: .02em; }
.agent__window { display: flex; flex-direction: column; min-height: 460px; border-radius: 20px; border: 1px solid var(--line-strong); background: linear-gradient(170deg, rgba(20, 18, 50, .85), rgba(6, 13, 24, .8)); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; }
.agent__bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: #c7d3e3; font-size: .62rem; }
.agent__dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #22d3ee); box-shadow: 0 0 10px #a78bfa; }
.agent__status { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }
.agent__status.is-busy { color: #c4b5fd; background: rgba(139, 92, 246, .18); }
.agent__status.is-done { color: var(--ok); background: rgba(52, 211, 153, .14); }
.agent__log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px; overflow-y: auto; max-height: 420px; }
.agent__msg { max-width: 85%; animation: swapIn .4s var(--ease-out) both; }
.agent__msg.is-user { align-self: flex-end; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: var(--accent); color: #fff; }
.agent__msg.is-agent { align-self: flex-start; padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: rgba(255,255,255,.08); color: #e9eff8; line-height: 1.55; }
.agent__msg.is-think { display: flex; gap: 5px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.06); }
.agent__msg.is-think i { width: 7px; height: 7px; border-radius: 50%; background: #c4b5fd; animation: bounce 1s ease-in-out infinite; }
.agent__msg.is-think i:nth-child(2) { animation-delay: .15s; } .agent__msg.is-think i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 50% { transform: translateY(-5px); opacity: .5; } }
.agent__msg.is-tool { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; align-self: stretch; max-width: none; padding: 10px 14px; border-radius: 12px; border: 1px dashed rgba(167, 139, 250, .45); background: rgba(139, 92, 246, .08); font-family: var(--mono); font-size: .72rem; }
.agent__msg.is-tool code { color: #c4b5fd; font-family: inherit; }
.agent__msg.is-tool em { grid-column: 2; font-style: normal; color: var(--ok); min-height: 1em; }
.agent__spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(167, 139, 250, .3); border-top-color: #c4b5fd; animation: spin .7s linear infinite; }
.agent__msg.is-tool.is-done .agent__spin { animation: none; border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 3px rgba(6, 13, 24, .9); }
.agent__input { display: flex; align-items: center; gap: 2px; margin: 0 14px 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #e9eff8; font-size: .8rem; text-transform: none; letter-spacing: 0; min-height: 50px; }
.agent__caret { width: 2px; height: 18px; background: var(--accent-2); animation: blink 1s steps(2) infinite; }
.agent__cta { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- Digital site: ERP builder ---------- */
.erp { display: grid; grid-template-columns: .9fr 1.2fr .9fr; gap: 24px; align-items: center; }
.erp__modules { display: grid; gap: 8px; }
.erp__mod { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-solid); text-align: left; font-weight: 500; color: var(--fg); transition: border-color .25s, background-color .25s, transform .3s var(--ease-out); }
.erp__mod:hover { border-color: var(--accent); transform: translateX(4px); }
.erp__check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; flex: none; transition: background-color .25s, border-color .25s, color .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.erp__check .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.erp__mod.is-on { border-color: var(--accent); background: rgba(59, 158, 255, .08); }
.erp__mod.is-on .erp__check { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.08); }
.erp__map { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; margin-inline: auto; border-radius: 50%; background: radial-gradient(circle, rgba(59, 158, 255, .12), transparent 65%); }
.erp__map::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed var(--line-strong); animation: spin 60s linear infinite; }
.erp__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.erp__lines line { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 6; opacity: 0; transition: opacity .4s; }
.erp__lines line.is-on { opacity: .8; animation: dash 1s linear infinite; }
.erp__hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--navy); color: #fff; box-shadow: 0 0 0 8px rgba(59, 158, 255, .15), 0 20px 50px -10px rgba(59, 158, 255, .6); z-index: 2; }
.erp__hub .mono { color: var(--accent-2); font-size: .58rem; }
.erp__hub b { font-size: .9rem; line-height: 1.15; }
.erp__node { position: absolute; z-index: 2; transform: translate(-50%, -50%) scale(.4); opacity: 0; padding: 8px 12px; border-radius: 10px; background: var(--card-solid); border: 1px solid var(--accent); font-size: .78rem; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(59, 158, 255, .8); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; pointer-events: none; }
.erp__node.is-on { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.erp__empty { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; color: var(--muted); font-size: .58rem; transition: opacity .3s; }
.erp.has-mods .erp__empty { opacity: 0; }
.erp__plan { display: grid; gap: 14px; padding: 22px; border-radius: 20px; background: var(--navy); color: #e9eff8; box-shadow: 0 40px 70px -40px rgba(6, 13, 24, .6); }
.erp__plan .mono.muted { color: #8696ad; }
.erp__phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: ph; }
.erp__phases li { position: relative; display: grid; gap: 4px; padding: 12px 14px 12px 44px; border-radius: 12px; border: 1px solid rgba(148, 190, 255, .14); opacity: .55; transition: opacity .3s, border-color .3s; }
.erp__phases li::before { counter-increment: ph; content: counter(ph); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; background: rgba(148, 190, 255, .15); }
.erp__phases li.is-on { opacity: 1; border-color: rgba(59, 158, 255, .5); }
.erp__phases li.is-on::before { background: var(--accent); }
.erp__phases b { font-size: .88rem; }
.erp__list { color: #a9b8cc; font-size: .82rem; line-height: 1.45; }
.erp__send:disabled { opacity: .45; pointer-events: none; box-shadow: none; }

@media (max-width: 1080px) {
	.agent, .erp { grid-template-columns: 1fr; }
	.erp__map { max-width: 420px; }
}
@media (max-width: 720px) {
	.erp__node { font-size: .66rem; padding: 6px 8px; }
	.agent__window { min-height: 400px; }
}

/* ---------- Digital site: real work ---------- */
.hermes { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; padding: clamp(22px, 3vw, 36px); border-radius: 26px; border: 1px solid rgba(167, 139, 250, .35); background: radial-gradient(circle at 0 0, rgba(139, 92, 246, .22), transparent 45%), radial-gradient(circle at 100% 100%, rgba(59, 158, 255, .16), transparent 45%), rgba(255, 255, 255, .02); box-shadow: 0 50px 100px -50px rgba(139, 92, 246, .55); }
.hermes__badge { display: inline-flex; padding: 6px 10px; border-radius: 8px; background: rgba(139, 92, 246, .18); color: #d8ccff; font-size: .58rem; }
.hermes h3 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); letter-spacing: -.035em; line-height: 1.05; margin: 14px 0 6px; font-weight: 700; }
.hermes__client { color: var(--accent-2); margin: 0 0 16px; font-size: .62rem; }
.hermes__summary { color: #c7d3e3; margin: 0 0 20px; font-size: 1.02rem; }
.hermes__ps { margin: 0 0 20px; display: grid; gap: 14px; }
.hermes__ps div { padding-left: 14px; border-left: 2px solid rgba(167, 139, 250, .5); }
.hermes__ps dt { color: #c4b5fd; font-size: .58rem; margin-bottom: 4px; }
.hermes__ps dd { margin: 0; color: #a9b8cc; font-size: .93rem; }
.hermes__stack li { border-color: rgba(167, 139, 250, .35); color: #d8ccff; }
.hermes__demo { display: grid; gap: 8px; align-content: start; }
.hconsole { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #1e1f2e; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.hconsole__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #181926; color: #e9eff8; font-size: .66rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.hconsole__hash { color: #8e93b4; font-size: .9rem; }
.hconsole__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #8e93b4; }
.hconsole__live i { width: 8px; height: 8px; border-radius: 50%; background: #23a55a; box-shadow: 0 0 8px #23a55a; }
.hconsole__log { height: 300px; overflow-y: auto; padding: 16px; display: grid; align-content: start; gap: 14px; }
.hmsg { display: grid; gap: 4px; animation: swapIn .4s var(--ease-out) both; font-size: .9rem; }
.hmsg__who { font-size: .86rem; }
.hmsg.is-user .hmsg__who { color: #7cc4ff; }
.hmsg.is-bot .hmsg__who { color: #c4b5fd; }
.hmsg__txt { color: #e3e5f0; }
.hmsg__route { display: inline-block; justify-self: start; padding: 3px 7px; border-radius: 5px; background: rgba(139, 92, 246, .2); color: #d8ccff; font-size: .52rem; }
.hmsg__dots { display: flex; gap: 4px; padding: 6px 0; }
.hmsg__dots i { width: 6px; height: 6px; border-radius: 50%; background: #c4b5fd; animation: bounce 1s ease-in-out infinite; }
.hmsg__dots i:nth-child(2) { animation-delay: .15s; } .hmsg__dots i:nth-child(3) { animation-delay: .3s; }
.hmsg__body { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border-left: 3px solid #a78bfa; color: #dfe3f2; }
.hmsg__body p { margin: 0; }
.hmsg__body ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.hmsg__body li { animation: swapIn .4s var(--ease-out) both; }
.hmsg__body tr { animation: fadeRow .4s ease both; }
@keyframes fadeRow { from { opacity: 0; } }
.hmsg__body table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.hmsg__body th { text-align: left; font-family: var(--mono); font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; color: #8e93b4; padding: 4px 6px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hmsg__body td { padding: 6px; border-bottom: 1px solid rgba(255,255,255,.05); }
.hmsg__body small { display: block; margin-top: 6px; color: #8e93b4; font-size: .72rem; }
.hconsole__cmds { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 14px; border-top: 1px solid rgba(255, 255, 255, .06); background: #181926; }
.hconsole__cmds > span { width: 100%; font-size: .52rem; color: #8e93b4; }
.hconsole__cmd { padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); background: #2b2d42; color: #dfe3f2; font-family: var(--mono); font-size: .66rem; text-align: left; transition: background-color .2s, border-color .2s; }
.hconsole__cmd::before { content: "/"; color: #8e93b4; margin-right: 2px; }
.hconsole__cmd:hover { border-color: #a78bfa; }
.hconsole__cmd.is-active { background: rgba(139, 92, 246, .3); border-color: #a78bfa; }
.hconsole__note { margin: 0; color: var(--muted); font-size: .52rem; text-transform: none; letter-spacing: .02em; }
.hermes__team { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr 1.1fr; gap: 28px; align-items: center; padding-top: 24px; border-top: 1px solid rgba(148, 190, 255, .12); }
.hteam { position: relative; width: 300px; aspect-ratio: 1; }
.hteam::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(167, 139, 250, .4); animation: spin 40s linear infinite; }
.hteam__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: linear-gradient(135deg, #8b5cf6, #3b9eff); box-shadow: 0 0 0 8px rgba(139, 92, 246, .18), 0 0 40px rgba(139, 92, 246, .6); }
.hteam__core b { font-size: 1.2rem; line-height: 1; } .hteam__core span { font-size: .55rem; opacity: .85; }
.hteam__agent { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px; border-radius: 16px; display: grid; place-content: center; text-align: center; gap: 2px; background: #141a2e; border: 1px solid rgba(167, 139, 250, .35); color: #e9eff8; transform: rotate(calc(var(--i) / var(--n) * 360deg)) translateY(-118px) rotate(calc(var(--i) / var(--n) * -360deg)); transition: background-color .25s, border-color .25s, box-shadow .25s; }
.hteam__agent b { font-size: .82rem; color: #c4b5fd; }
.hteam__agent span { font-size: .48rem; line-height: 1.15; color: #a9b8cc; padding: 0 3px; }
.hteam__agent:hover, .hteam__agent.is-active { background: rgba(139, 92, 246, .35); border-color: #c4b5fd; box-shadow: 0 0 20px rgba(139, 92, 246, .6); }
.hteam__info { display: grid; gap: 6px; }
.hteam__info.is-swap { animation: swapIn .4s var(--ease-out); }
.hteam__name { font-size: 1.4rem; letter-spacing: -.02em; }
.hteam__text { margin: 0; color: #a9b8cc; }
.hermes__safety { padding: 18px; border-radius: 16px; background: rgba(52, 211, 153, .06); border: 1px solid rgba(52, 211, 153, .25); }
.hermes__safety > span { color: var(--ok); font-size: .58rem; }
.hermes__safety ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: .88rem; color: #c7d3e3; }
.hermes__safety li { display: flex; gap: 8px; align-items: flex-start; }
.hermes__safety .icon { width: 16px; height: 16px; color: var(--ok); margin-top: 2px; flex: none; }
.hermes__shot { grid-column: 1 / -1; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-strong); }

.projects { margin-top: 70px; }
.projects__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.projects__head h3 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; }
.projects__filters { margin: 0; }
.work-real .catalog__filter { background: rgba(255,255,255,.04); color: #e9eff8; border-color: var(--line-strong); }
.work-real .catalog__filter.is-active { background: var(--accent); border-color: var(--accent); }
.projects__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.project { display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); overflow: hidden; transition: transform .5s var(--ease-out), border-color .3s, opacity 1s var(--ease-out), filter 1s var(--ease-out); }
.project[hidden] { display: none; }
.project.is-pop { animation: swapIn .5s var(--ease-out) both; animation-delay: var(--d, 0s); }
.project:hover { border-color: var(--accent); }
.project__media { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; background-image: linear-gradient(rgba(120,170,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(120,170,255,.07) 1px, transparent 1px); background-size: 18px 18px; }
.project__media--apps { background-color: rgba(59, 158, 255, .1); }
.project__media--web { background-color: rgba(34, 211, 238, .08); }
.project__media--ai { background-color: rgba(139, 92, 246, .16); }
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project__glyph { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); color: #e9eff8; transition: transform .5s var(--ease-out); }
.project__glyph .icon { width: 30px; height: 30px; }
.project:hover .project__glyph { transform: rotate(-8deg) scale(1.08); }
.project__cat { position: absolute; left: 12px; top: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(6, 13, 24, .7); color: #c7d3e3; font-size: .52rem; }
.project__body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.project__client { font-size: .56rem; }
.project__body h4 { margin: 0; font-size: 1.15rem; letter-spacing: -.015em; }
.project__body p { margin: 0; color: #a9b8cc; font-size: .9rem; }
.project__body .tags { margin: 6px 0 0; }
.project__body .link-arrow { margin-top: auto; padding-top: 6px; }
.js .project.reveal.is-in { transition: transform .5s var(--ease-out), border-color .3s, opacity 1s var(--ease-out) var(--d, 0s), filter 1s var(--ease-out) var(--d, 0s); }

@media (max-width: 1080px) {
	.hermes { grid-template-columns: 1fr; }
	.hermes__team { grid-template-columns: 1fr; justify-items: center; }
	.hteam__info, .hermes__safety { width: 100%; }
}
@media (max-width: 720px) {
	.hteam { width: 270px; }
	.hteam__agent { transform: rotate(calc(var(--i) / var(--n) * 360deg)) translateY(-104px) rotate(calc(var(--i) / var(--n) * -360deg)); width: 58px; height: 58px; margin: -29px; }
	.hconsole__log { height: 260px; }
}
.agent__cta { gap: 12px; flex-wrap: wrap; }

/* ---------- Design studio (team-level) ---------- */
.studio { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; padding: clamp(22px, 3vw, 34px); border-radius: 22px; border: 1px solid var(--line-strong); background: var(--card); }
.studio__where { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(59, 158, 255, .1); color: var(--accent); }
.studio__where .icon { width: 14px; height: 14px; }
.studio h3 { font-size: 1.8rem; letter-spacing: -.03em; margin: 14px 0 8px; font-weight: 600; }
.studio__intro p { color: var(--muted); margin: 0 0 18px; }
.studio__cats { margin-top: 10px; }
.studio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.studio__item { display: grid; gap: 6px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card-solid); transition: transform .5s var(--ease-out), border-color .3s; }
.studio__item:hover { border-color: var(--accent); }
.studio__item .feature__icon { width: 44px; height: 44px; margin-bottom: 6px; }
.studio__item small { color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .studio__grid { grid-template-columns: 1fr; } }


/* ---------- Typography refresh: editorial display + engineering sans ---------- */
h1:not(#_), h2:not(#_), h3:not(#_), h4:not(#_), .h2:not(#_) { font-family: var(--font-display); letter-spacing: -.018em; font-weight: 600; }
.hero__title:not(#_) { letter-spacing: -.025em; line-height: 1.02; font-weight: 700; }
.h2:not(#_), .why__title:not(#_) { letter-spacing: -.022em; line-height: 1.04; }
.lead, .hero__text { font-size: 1.1rem; line-height: 1.65; }
.grad { font-family: var(--font-display); font-style: normal; }
/* Numbers set in the display face, solid colour rather than gradient text. */
.stat b, .proof__item b, .value b, .india__strengths b, .press__parts, .quote-block__mark, .lab__readouts b, .work__stats b, .sim__stats b, .loop__sprint, .engine__title, .meter__label {
	font-family: var(--font-display); background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: var(--accent) !important; -webkit-text-fill-color: currentColor; letter-spacing: -.02em;
}
.quote-block__mark { font-family: Georgia, "Times New Roman", serif; }
/* Keep monospace only where it is genuinely code or technical output. */
.ps-code, .agent__msg.is-tool, .agent__msg.is-tool code, .hconsole__cmd, .hmsg__route, .agent__input, code, pre, .dim text, .cv text, .mono-svg text { font-family: var(--mono) !important; }
.agent__input { letter-spacing: 0; }
/* Small UI labels: tidy sans instead of spaced capitals. */
.tags li { font-size: .74rem; letter-spacing: 0; padding: 5px 10px; border-radius: 999px; }
.topbar__status, .topbar__links { font-size: .74rem; letter-spacing: 0; }
.nav__link { font-weight: 500; }
.brand__word { font-family: var(--font-display); }
.brand__word em { font-family: var(--font); letter-spacing: .06em; font-weight: 600; }
.btn, .hcta { font-weight: 600; letter-spacing: 0; }
.crumbs { font-size: .8rem; }
.card__label, .lab__head, .explorer__head, .work__visual-head, .model__head, .engine__head, .form__head, .agent__bar, .hconsole__bar { letter-spacing: 0; }
.site-footer__word { font-family: var(--font-display); }

/* ---------- Inner pages (services, case studies, company, blog) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #e9eff8; padding: calc(var(--header-h) + 70px) 0 80px; }
.page-hero__glow { position: absolute; width: 760px; height: 760px; right: -220px; top: -320px; background: radial-gradient(circle, rgba(59, 158, 255, .2), transparent 62%); pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.04; margin: 0 0 20px; max-width: 20ch; }
.page-hero__text { font-size: 1.15rem; line-height: 1.6; color: #a9b8cc; max-width: 62ch; margin: 0 0 28px; }
.page-hero__meta { margin: 0 0 24px; }
.page-hero__meta li { border-color: rgba(148, 190, 255, .3); color: #c7d3e3; }
.page-hero .hero__ctas { margin-bottom: 0; }
.inner-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(30px, 5vw, 70px); align-items: start; }
.inner-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.prose { font-size: 1.06rem; line-height: 1.75; color: var(--fg); max-width: 72ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.prose p { margin: 0 0 1.1em; color: var(--muted); }
.prose p:first-of-type { color: var(--fg); font-size: 1.12rem; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; color: var(--muted); }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--fg); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--fg); font-size: 1.15rem; }
.prose--lead { margin-bottom: 36px; }
.aside-card { display: grid; gap: 10px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--fg); }
.aside-card--dark { background: var(--navy); color: #e9eff8; border-color: transparent; }
.aside-card--dark p { margin: 0; color: #a9b8cc; font-size: .9rem; }
.aside-card--next { grid-template-columns: 1fr auto; align-items: center; transition: border-color .25s, transform .3s var(--ease-out); }
.aside-card--next .mono { grid-column: 1 / -1; }
.aside-card--next:hover { border-color: var(--accent); transform: translateY(-2px); }
.aside-links { list-style: none; margin: 0; padding: 0; display: grid; }
.aside-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); font-size: .93rem; transition: color .2s, padding .3s var(--ease-out); }
.aside-links li:last-child a { border-bottom: 0; }
.aside-links .icon { width: 14px; height: 14px; color: var(--muted); flex: none; }
.aside-links a:hover, .aside-links a.is-current { color: var(--accent); padding-left: 4px; }
.aside-links a.is-current { font-weight: 600; }
.case-shot { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 28px; }
.related-work__grid { margin-top: 34px; }
.project__title { margin: 0; font-size: 1.2rem; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.hub-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--fg); transition: transform .5s var(--ease-out), border-color .3s, box-shadow .4s, opacity 1s var(--ease-out), filter 1s var(--ease-out); }
.hub-card:hover { border-color: var(--accent); box-shadow: 0 30px 50px -30px rgba(10, 30, 60, .35); }
.hub-card .feature__icon { margin-bottom: 8px; }
.hub-card__title { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.hub-card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.cta-band { background: linear-gradient(120deg, #0d2140, #1c1647); color: #e9eff8; padding: 64px 0; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { margin: 0; color: #a9b8cc; }
.map-band { position: relative; height: 420px; background: var(--navy); }
.map-band iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.map-band__card { position: absolute; left: max(24px, calc((100vw - 1240px) / 2)); top: 50%; transform: translateY(-50%); width: min(340px, calc(100% - 48px)); display: grid; gap: 6px; padding: 22px; border-radius: 16px; background: #fff; color: #0a1220; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.map-band__card p { margin: 0 0 4px; color: #586477; font-size: .9rem; line-height: 1.5; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 10px; }
.post-tile { display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: border-color .25s, transform .3s var(--ease-out); }
.post-tile:hover { border-color: var(--accent); transform: translateY(-3px); }
.post-tile__media img { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-tile__body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.post-tile__title { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.post-tile__title a { color: var(--fg); text-decoration: none; }
.post-tile__body p { margin: 0; color: var(--muted); flex: 1; }
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--fg); text-decoration: none; }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.post-author { margin-top: 30px; }
.jobs__title { margin: 40px 0 16px; font-size: 1.6rem; }
.jobs { display: grid; gap: 10px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.footer-col b { display: block; margin-bottom: 12px; font-size: .95rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--fg); }
.catalog__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; flex-wrap: wrap; }
.catalog__actions .feature__add { margin: 0; }
.catalog__more { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.catalog__more .icon { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.catalog__more:hover .icon { transform: translateX(4px); }
.hermes__more { margin-top: 18px; color: #c4b5fd; }
@media (max-width: 960px) {
	.inner-grid { grid-template-columns: 1fr; }
	.inner-aside { position: relative; top: 0; }
	.map-band { height: auto; display: grid; }
	.map-band iframe { height: 300px; }
	.map-band__card { position: relative; left: auto; top: auto; transform: none; width: auto; margin: -40px 16px 20px; }
}

/* ===================================================================== */
/* Service pages: problems, deliverables, stack, case, engagement         */
/* ===================================================================== */
.svc-problems { position: relative; overflow: hidden; }
.svc-problems__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.svc-problem { padding: 28px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--card); display: grid; gap: 10px; align-content: start; }
.svc-problem__num { color: var(--accent); font-size: .8rem; }
.svc-problem h3 { margin: 0; font-size: 1.22rem; letter-spacing: -.02em; }
.svc-problem p { margin: 0; color: var(--muted); }

.svc-deliverables { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.svc-deliverable .feature__icon { width: 44px; height: 44px; margin-bottom: 18px; }
.svc-deliverable .feature__icon .icon { width: 22px; height: 22px; }
.svc-deliverable h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -.02em; }
.svc-deliverable p { margin: 0; color: var(--muted); }

.svc-stack { margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 4vw, 40px); border-radius: 22px; border: 1px solid var(--line); background: var(--card); }
.svc-stack__title { margin: 0 0 22px; font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -.03em; }
.svc-stack__rows { margin: 0; display: grid; gap: 4px; }
.svc-stack__row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.svc-stack__row dt { color: var(--muted); font-size: .8rem; }
.svc-stack__row dd { margin: 0; }
.svc-stack__row .tags { margin: 0; }

.svc-case { position: relative; overflow: hidden; }
.svc-case__card { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); margin-top: 20px; padding: clamp(26px, 4vw, 48px); border-radius: 24px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(16, 32, 58, .85), rgba(6, 13, 24, .6)); }
.svc-case__card:not(:has(.svc-case__stats)) { grid-template-columns: minmax(0, 1fr); }
.svc-case__body { display: grid; gap: 14px; align-content: start; justify-items: start; }
.svc-case__body .h2 { margin: 0; }
.svc-case__body .lead { margin: 0; max-width: 68ch; }
.svc-case__body .tags { margin: 0; }
.svc-case__pao { margin: 8px 0 0; display: grid; gap: 14px; }
.svc-case__pao dt { color: var(--accent-2); font-size: .74rem; margin-bottom: 4px; }
.svc-case__pao dd { margin: 0; color: var(--muted); }
.svc-case__stats { display: grid; align-content: center; }
.svc-case__stats .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
.svc-case__more { margin-top: 22px; }

.svc-engage__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.svc-engage__card { padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); display: grid; gap: 10px; align-content: start; }
.svc-engage__card h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.svc-engage__card p { margin: 0; color: var(--muted); }
.svc-engage__cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; padding: 24px 28px; border-radius: 20px; background: var(--navy); color: #e9eff8; }
.svc-engage__cta p { margin: 0; max-width: 62ch; color: #a9b8cc; }
.svc-engage__cta strong { color: #fff; }

.jcard--this { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 60px -30px rgba(59, 158, 255, .7); }

@media (max-width: 860px) {
	.svc-case__card { grid-template-columns: minmax(0, 1fr); }
	.svc-stack__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (min-width: 981px) {
	/* 5 problems → 3 + 2 and 6 deliverables → 3 + 3, without half-empty rows. */
	.svc-problems__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.svc-problem { grid-column: span 2; }
	.svc-problem:nth-child(4):nth-last-child(2), .svc-problem:nth-child(5):last-child { grid-column: span 3; }
	.svc-deliverables { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
