/* Kaarya Crystal — immersive liquid glass (preview) */
:root {
  --pearl: #f8f7fc;
  --lavender: #e9e5fa;
  --tint: #e1ddf5;
  --crystal: #b9c9f5;
  --violet: #7955e7;
  --violet-2: #a394ef;
  --ink: #191827;
  --muted: #696777;
  --white: #fff;
  --dark: #211e30;
  --border: rgba(130, 119, 180, 0.18);
  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 -1px 0 rgba(130, 119, 180, 0.08) inset,
    0 24px 60px -28px rgba(56, 40, 120, 0.28), 0 2px 8px -2px rgba(56, 40, 120, 0.06);
  --r-lg: 32px;
  --r-md: 22px;
  --r-sm: 14px;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --font-d: "Sora", system-ui, sans-serif;
  --font-b: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-b);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--pearl);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ambient refraction field */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.ambient i:nth-child(1) { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: var(--lavender); }
.ambient i:nth-child(2) { width: 38vw; height: 38vw; right: -10vw; top: 22vh; background: #dfe7fc; }
.ambient i:nth-child(3) { width: 30vw; height: 30vw; left: 30vw; bottom: -16vw; background: #efe9fb; }
.ambient::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image: linear-gradient(rgba(130, 119, 180, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 119, 180, 0.07) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%);
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
section { position: relative; }
.sec { padding: clamp(96px, 12vw, 176px) 0; }

/* type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--font-b); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }
.h1, .h2, .h3 { font-family: var(--font-d); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; }
.h1 { font-size: clamp(48px, 6.6vw, 96px); }
.h2 { font-size: clamp(38px, 4.6vw, 64px); letter-spacing: -0.04em; line-height: 1.02; }
.h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.03em; line-height: 1.15; }
.lede { font-size: clamp(17px, 1.3vw, 20px); color: var(--muted); max-width: 52ch; }
.soft { color: var(--muted); }
.grad {
  background: linear-gradient(100deg, var(--ink) 20%, var(--violet) 60%, #6f8fe6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* glass surface */
.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--glass-shadow);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(185, 201, 245, 0.35) 40%, rgba(121, 85, 231, 0.18) 75%, rgba(255, 255, 255, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* buttons */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--font-b); letter-spacing: -0.005em;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.4s var(--ease), box-shadow 0.3s, background 0.3s;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2a2640, var(--ink));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 14px 30px -12px rgba(25, 24, 39, 0.55);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 20px 40px -14px rgba(121, 85, 231, 0.55); }
.btn-ghost { background: rgba(255, 255, 255, 0.55); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: #fff; }
.btn .arr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); transition: transform 0.4s var(--ease); }
.btn-ghost .arr { background: var(--lavender); }
.btn:hover .arr { transform: rotate(-45deg); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--pearl); transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark { position: relative; width: 120px; height: 120px; }
.loader-mark span {
  position: absolute; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(185, 201, 245, 0.6) 50%, rgba(163, 148, 239, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px -10px rgba(121, 85, 231, 0.45);
  animation: assemble 1.1s var(--ease) both;
}
.loader-mark span:nth-child(1) { left: 14px; top: 14px; --fx: -60px; --fy: -50px; }
.loader-mark span:nth-child(2) { right: 14px; top: 14px; --fx: 70px; --fy: -40px; animation-delay: 0.08s; }
.loader-mark span:nth-child(3) { left: 14px; bottom: 14px; --fx: -50px; --fy: 60px; animation-delay: 0.16s; }
.loader-mark span:nth-child(4) { right: 14px; bottom: 14px; --fx: 60px; --fy: 55px; animation-delay: 0.24s; border-radius: 12px 12px 22px 12px; }
.loader-word { margin-top: 26px; text-align: center; font: 600 22px/1 var(--font-d); letter-spacing: -0.04em; animation: fadeUp 0.9s 0.4s var(--ease) both; }
@keyframes assemble { from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(40deg) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- preview badge ---------- */
.preview-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  font: 600 11px/1 var(--font-b); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 12px; border-radius: 999px; color: var(--violet);
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--border); backdrop-filter: blur(10px);
}

/* ---------- nav ---------- */
.nav-shell { position: fixed; top: 18px; left: 0; right: 0; z-index: 50; padding: 0 var(--pad); pointer-events: none; }
.nav {
  pointer-events: auto; max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  height: 66px; padding: 0 10px 0 22px; border-radius: 999px;
  transition: height 0.4s var(--ease), max-width 0.4s var(--ease), box-shadow 0.4s;
}
.nav.compact { height: 56px; max-width: 1120px; }
.logo { display: flex; align-items: center; gap: 10px; font: 600 20px/1 var(--font-d); letter-spacing: -0.04em; }
.logo-mark { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; list-style: none; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: #3b3950; transition: background 0.25s, color 0.25s;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > button[aria-expanded="true"] { background: rgba(121, 85, 231, 0.08); color: var(--ink); }
.nav-links .chev { transition: transform 0.3s var(--ease); }
.nav-links button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; transition: background 0.25s; }
.icon-btn:hover { background: rgba(121, 85, 231, 0.08); }
.burger { display: none; }

.mega {
  position: absolute; left: 50%; top: calc(100% + 12px); width: min(880px, calc(100vw - 2 * var(--pad)));
  transform: translate(-50%, -8px); opacity: 0; visibility: hidden; pointer-events: none;
  border-radius: var(--r-lg); padding: 14px; transition: all 0.35s var(--ease);
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px;
}
.mega.glass { background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(250, 249, 254, 0.88)); }
.mega.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-item { display: flex; gap: 14px; padding: 14px; border-radius: 16px; transition: background 0.25s; }
.mega-item:hover, .mega-item:focus-visible { background: rgba(255, 255, 255, 0.8); }
.mega-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lavender); color: var(--violet); }
.mega-item b { display: block; font: 600 15px/1.3 var(--font-d); letter-spacing: -0.02em; }
.mega-item span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.mega-feature { border-radius: 20px; padding: 22px; background: linear-gradient(160deg, #fff, var(--lavender)); display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; overflow: hidden; position: relative; }
.mega-feature .orb { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--crystal) 45%, var(--violet-2) 80%); opacity: 0.75; filter: blur(1px); }
.mega-feature p { font-size: 14px; color: var(--muted); position: relative; }
.mega-feature h4, .mega-feature .mf-t { display: block;  font: 600 22px/1.15 var(--font-d); letter-spacing: -0.03em; position: relative; }
.mega-ind { grid-template-columns: repeat(4, 1fr); }
.mega.solutions { grid-template-columns: 1fr; width: min(760px, calc(100vw - 2 * var(--pad))); }
.mega.solutions .mega-grid { grid-template-columns: repeat(4, 1fr); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70; padding: 96px var(--pad) 40px;
  background: rgba(248, 247, 252, 0.82); -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  opacity: 0; visibility: hidden; transition: all 0.4s var(--ease); display: flex; flex-direction: column;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav a { display: block; padding: 14px 0; font: 600 clamp(32px, 9vw, 44px)/1.1 var(--font-d); letter-spacing: -0.04em; border-bottom: 1px solid var(--border); transform: translateY(14px); opacity: 0; transition: all 0.5s var(--ease); }
.mobile-menu.open nav a { transform: none; opacity: 1; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: 0.04s; } .mobile-menu.open nav a:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: 0.12s; } .mobile-menu.open nav a:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu.open nav a:nth-child(6) { transition-delay: 0.2s; }
.mobile-menu .btn { margin-top: auto; justify-content: center; }
.mm-close { position: absolute; top: 26px; right: var(--pad); }

/* search */
.search {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding: 14vh var(--pad) 0;
  background: rgba(33, 30, 48, 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: all 0.3s var(--ease);
}
.search.open { opacity: 1; visibility: visible; }
.search-box { width: min(640px, 100%); border-radius: var(--r-md); padding: 8px; transform: translateY(-10px) scale(0.98); transition: transform 0.4s var(--ease); }
.search.open .search-box { transform: none; }
.search-input { display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 58px; }
.search-input input { flex: 1; border: 0; background: none; outline: none; font-size: 18px; }
.search-input kbd { font: 600 11px var(--font-b); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; }
.search-results { list-style: none; max-height: 50vh; overflow: auto; border-top: 1px solid var(--border); padding: 6px; }
.search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; }
.search-results a:hover, .search-results a:focus-visible, .search-results a.active { background: rgba(121, 85, 231, 0.08); outline: none; }
.search-results small { color: var(--muted); }
.search-empty { padding: 18px 14px; color: var(--muted); font-size: 14px; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 140px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 24px; }
.hero-copy { position: relative; z-index: 2; }
.hero .h1 { margin: 22px 0 28px; }
.hero .lede { margin-bottom: 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 44px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); }
.stage { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 680px; justify-self: end; }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 0.9s var(--ease);
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.stage-fallback { position: absolute; inset: 8%; display: grid; place-items: center; }
.stage-fallback { transition: opacity 0.9s var(--ease); }
.stage.webgl canvas { opacity: 1; }
.stage.webgl .stage-fallback { opacity: 0; pointer-events: none; }
.stage:not(.webgl):not(.static-nodes) .node { opacity: 0; }
.fallback-sculpt { width: 62%; aspect-ratio: 1; border-radius: 38%; transform: rotate(18deg);
  background: radial-gradient(circle at 30% 25%, #fff 0, rgba(255, 255, 255, 0.4) 30%, transparent 55%), linear-gradient(150deg, #e7ecfd, var(--crystal) 45%, var(--violet-2));
  box-shadow: 0 40px 80px -30px rgba(121, 85, 231, 0.5), inset 0 2px 0 #fff; }
.node {
  position: absolute; left: 0; top: 0; z-index: 4; will-change: transform; contain: layout style;
  display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px;
  font: 600 12.5px/1 var(--font-b); white-space: nowrap; transition: opacity 0.3s;
}
.node.behind { opacity: 0.55; z-index: 2; }
.node .dot { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--violet-2)); box-shadow: 0 0 0 4px rgba(121, 85, 231, 0.12); }
.node-tip {
  position: absolute; left: 50%; top: calc(100% + 10px); width: 220px; transform: translate(-50%, -4px);
  padding: 12px 14px; border-radius: 14px; font: 500 13px/1.45 var(--font-b); color: var(--muted); white-space: normal;
  opacity: 0; visibility: hidden; transition: all 0.3s var(--ease); pointer-events: none;
}
.node:hover .node-tip, .node:focus-visible .node-tip, .node.active .node-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.node-tip b { display: block; color: var(--ink); font-family: var(--font-d); margin-bottom: 4px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 12px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--violet), transparent); animation: cue 2s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- capability strip ---------- */
.strip { margin-top: -20px; }
.strip-inner { display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 26px; padding: 8px; }
.cap { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; transition: background 0.3s; }
.cap + .cap { border-left: 1px solid var(--border); }
.cap:hover { background: rgba(255, 255, 255, 0.85); }
.cap svg { flex: none; color: var(--ink); transition: color 0.3s, transform 0.4s var(--ease); }
.cap:hover svg { color: var(--violet); transform: rotate(-8deg) scale(1.08); }
.cap b { font: 600 15px/1.25 var(--font-d); letter-spacing: -0.02em; }

/* section heads */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head .h2 { margin-top: 18px; }
.sec-head p { justify-self: end; max-width: 44ch; }

/* ---------- services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(260px, auto); gap: 18px; }
.card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
  border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; overflow: hidden;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.85), transparent 45%);
  mix-blend-mode: soft-light;
}
.card:hover::after { opacity: 1; }
.card:hover { box-shadow: 0 1px 0 #fff inset, 0 40px 80px -36px rgba(56, 40, 120, 0.38); }
.card .num { font: 600 12px/1 var(--font-b); letter-spacing: 0.14em; color: var(--muted); }
.card h3 { margin: 10px 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; max-width: 40ch; }
.card .go { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 14px; }
.card .go i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--border); transition: all 0.45s var(--ease); }
.card:hover .go i { background: var(--ink); color: #fff; transform: rotate(-45deg); }
.illo { position: relative; height: 170px; margin: -6px -6px 18px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(185, 201, 245, 0.55), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(233, 229, 250, 0.5)); }
.c1 { grid-column: span 7; grid-row: span 2; }
.c1 .illo { height: auto; flex: 1; min-height: 300px; }
.c2 { grid-column: span 5; }
.c3 { grid-column: span 5; }
.c4 { grid-column: span 4; }
.c5 { grid-column: span 4; }
.c6 { grid-column: span 4; }

/* glass primitives used inside illustrations */
.gq { position: absolute; border-radius: 22%; border: 1px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(225, 221, 245, 0.55) 45%, rgba(185, 201, 245, 0.65));
  box-shadow: inset 0 1px 0 #fff, inset -6px -10px 24px rgba(121, 85, 231, 0.12), 0 20px 40px -18px rgba(56, 40, 120, 0.35);
}
.gq.v { background: linear-gradient(140deg, rgba(255, 255, 255, 0.85), rgba(163, 148, 239, 0.55) 55%, rgba(121, 85, 231, 0.6)); }
.gq.round { border-radius: 50%; }
.float { animation: float 7s ease-in-out infinite; }
.float.d2 { animation-delay: -2.3s; } .float.d3 { animation-delay: -4.6s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.illo svg.paths { position: absolute; inset: 0; width: 100%; height: 100%; }
.illo .dash { stroke-dasharray: 4 7; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -44; } }
.bar { position: absolute; bottom: 26px; width: 34px; border-radius: 12px 12px 6px 6px; }
.ribbon { position: absolute; border-radius: 999px; filter: blur(0.3px); }

/* ---------- workflow ---------- */
.flow-panel { border-radius: 36px; padding: clamp(22px, 3vw, 40px); }
.flow-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.sim-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-b); letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet); background: rgba(121, 85, 231, 0.08); padding: 9px 12px; border-radius: 999px; }
.flow-track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.flow-line { position: absolute; left: 6%; right: 6%; top: 38px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.flow-line i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--crystal), var(--violet)); transition: transform 0.6s var(--ease); }
.fnode { position: relative; z-index: 1; text-align: center; }
.fnode .disc { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--glass-shadow); transition: all 0.5s var(--ease); color: var(--muted); }
.fnode b { display: block; font: 600 14px/1.25 var(--font-d); letter-spacing: -0.02em; }
.fnode small { color: var(--muted); font-size: 12.5px; }
.fnode.active .disc { color: #fff; background: linear-gradient(150deg, var(--violet-2), var(--violet)); transform: translateY(-6px) scale(1.06); box-shadow: 0 20px 40px -14px rgba(121, 85, 231, 0.6); }
.fnode.done .disc { color: var(--violet); background: #fff; }
.packet { position: absolute; top: 31px; left: 6%; width: 16px; height: 16px; border-radius: 50%; z-index: 2; opacity: 0; background: radial-gradient(circle at 35% 30%, #fff, var(--violet)); box-shadow: 0 0 0 6px rgba(121, 85, 231, 0.15), 0 0 24px rgba(121, 85, 231, 0.6); transition: left 0.9s var(--ease), opacity 0.3s; }
.flow-bottom { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; margin-top: 34px; }
.flow-log, .flow-out { border-radius: 22px; padding: 22px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--border); min-height: 220px; }
.flow-log h4, .flow-out h4, .flow-log h3, .flow-out h3 { font: 600 12px/1 var(--font-b); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.flow-log ol { list-style: none; font: 500 13.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; display: grid; gap: 8px; }
.flow-log li { display: flex; gap: 10px; animation: fadeUp 0.4s var(--ease) both; }
.flow-log li time { color: var(--violet-2); flex: none; }
.flow-out pre { font: 500 13px/1.6 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; color: #3b3950; }
.flow-msg { margin-bottom: 14px; padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--border); font-size: 14px; max-width: 46ch; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.process-sticky { position: sticky; top: 14vh; height: 72vh; display: grid; place-items: center; }
.morph-stage { position: relative; width: min(440px, 80%); aspect-ratio: 1; perspective: 1000px; }
.morph {
  position: absolute; inset: 14%; transition: all 1s var(--ease);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(225, 221, 245, 0.6) 40%, rgba(185, 201, 245, 0.75) 70%, rgba(163, 148, 239, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 2px 0 #fff, inset -20px -30px 60px rgba(121, 85, 231, 0.18), 0 60px 100px -40px rgba(56, 40, 120, 0.45);
  will-change: transform, border-radius;
}
.morph.m2 { inset: 30%; opacity: 0; }
.morph-stage[data-s="0"] .morph.m1 { border-radius: 50%; transform: rotateX(10deg) rotateY(-12deg) scale(0.75); }
.morph-stage[data-s="1"] .morph.m1 { border-radius: 26%; transform: rotate(12deg) scale(0.9); }
.morph-stage[data-s="1"] .morph.m2 { opacity: 0.8; inset: 4% 50% 50% 4%; border-radius: 30%; }
.morph-stage[data-s="2"] .morph.m1 { border-radius: 18% 18% 18% 50%; transform: rotate(-8deg) scale(0.86) translate(-8%, 6%); }
.morph-stage[data-s="2"] .morph.m2 { opacity: 1; inset: 6% 6% 52% 52%; border-radius: 22%; transform: rotate(14deg); }
.morph-stage[data-s="3"] .morph.m1 { border-radius: 42% 42% 12% 12%; transform: scale(0.92) translateY(6%); }
.morph-stage[data-s="3"] .morph.m2 { opacity: 1; inset: 0 34% 72% 34%; border-radius: 50%; }
.morph-stage[data-s="4"] .morph.m1 { border-radius: 50% 50% 50% 8%; transform: rotate(45deg) scale(1.02); }
.morph-stage[data-s="4"] .morph.m2 { opacity: 0.9; inset: 2% 2% 66% 66%; border-radius: 50%; }
.morph-label { position: absolute; bottom: -4%; left: 50%; transform: translateX(-50%); font: 600 13px/1 var(--font-b); letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(121, 85, 231, 0.22); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { list-style: none; }
.step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.32; transition: opacity 0.6s var(--ease); }
.step.on { opacity: 1; }
.step .idx { font: 600 13px/1 var(--font-b); letter-spacing: 0.14em; color: var(--violet); }
.step h3 { font: 600 clamp(40px, 5vw, 72px)/1 var(--font-d); letter-spacing: -0.05em; margin: 16px 0 18px; }
.step p { color: var(--muted); max-width: 44ch; }
.step ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.step ul li { font-size: 13px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--border); }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.proj { border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.5s var(--ease); }
.proj:hover { transform: translateY(-6px); }
.proj:nth-child(1) { grid-column: span 7; } .proj:nth-child(2) { grid-column: span 5; }
.proj:nth-child(3) { grid-column: span 5; } .proj:nth-child(4) { grid-column: span 7; }
.proj-vis { position: relative; height: 300px; margin: 10px 10px 0; border-radius: 24px; overflow: hidden; }
.proj-body { padding: 22px 26px 26px; display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.proj-body h3 { font: 600 24px/1.15 var(--font-d); letter-spacing: -0.03em; margin-top: 8px; }
.proj-body p { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 46ch; }
.tag { display: inline-flex; font: 600 11px/1 var(--font-b); letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(121, 85, 231, 0.08); color: var(--violet); }
.tag.concept { background: #fff; color: var(--muted); border: 1px dashed rgba(105, 103, 119, 0.45); }
.mock { position: absolute; inset: 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 30px 60px -30px rgba(56, 40, 120, 0.4); padding: 16px; display: grid; gap: 10px; align-content: start; }
.mock .row { height: 10px; border-radius: 6px; background: var(--tint); }
.mock .row.s { width: 40%; } .mock .row.m { width: 65%; } .mock .row.v { background: linear-gradient(90deg, var(--violet-2), var(--crystal)); }
.mock .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock .tile { height: 64px; border-radius: 12px; background: linear-gradient(160deg, #fff, var(--lavender)); border: 1px solid var(--border); }
.mock .chart { display: flex; align-items: end; gap: 8px; height: 110px; padding-top: 10px; }
.mock .chart i { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--violet-2), var(--crystal)); }

/* ---------- philosophy ---------- */
.philo { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.sculpt-big { position: relative; aspect-ratio: 1; max-width: 560px; }
.sculpt-big .gq { inset: 0; }
.principles { list-style: none; margin-top: 48px; display: grid; }
.principles li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 26px 0; border-top: 1px solid var(--border); }
.principles li:last-child { border-bottom: 1px solid var(--border); }
.principles span { font: 600 13px/1.8 var(--font-b); color: var(--violet); letter-spacing: 0.1em; }
.principles h3 { font: 600 24px/1.2 var(--font-d); letter-spacing: -0.03em; margin-bottom: 6px; }
.principles p { color: var(--muted); font-size: 15.5px; }

/* ---------- estimator ---------- */
.est { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 36px; overflow: hidden; }
.est-in { padding: clamp(26px, 4vw, 52px); display: grid; gap: 30px; }
.field label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14.5px; margin-bottom: 14px; }
.field output { font-family: var(--font-d); color: var(--violet); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--violet) var(--p, 50%), var(--tint) var(--p, 50%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--border); box-shadow: 0 6px 16px -4px rgba(56, 40, 120, 0.45); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--border); box-shadow: 0 6px 16px -4px rgba(56, 40, 120, 0.45); cursor: grab; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--violet); outline-offset: 2px; }
.est-out { position: relative; padding: clamp(26px, 4vw, 52px); color: #fff; background: radial-gradient(circle at 80% 0%, rgba(163, 148, 239, 0.45), transparent 50%), radial-gradient(circle at 0% 100%, rgba(185, 201, 245, 0.25), transparent 50%), var(--dark); display: flex; flex-direction: column; gap: 26px; }
.est-out .big { font: 600 clamp(44px, 5vw, 72px)/1 var(--font-d); letter-spacing: -0.05em; }
.est-out .lbl { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-bottom: 8px; }
.est-out .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.est-out .mid { font: 600 30px/1 var(--font-d); letter-spacing: -0.04em; }
.est-out .disc { margin-top: auto; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.5; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); }
.faq-list { display: grid; gap: 10px; }
.qa { border-radius: 22px; overflow: hidden; }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; padding: 22px 26px; font: 600 17px/1.35 var(--font-d); letter-spacing: -0.02em; }
.qa .pm { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--lavender); transition: background 0.3s, transform 0.45s var(--ease); }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.4s var(--ease); }
.qa .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[data-open="true"] .pm { background: var(--ink); transform: rotate(180deg); }
.qa[data-open="true"] .pm::before, .qa[data-open="true"] .pm::after { background: #fff; }
.qa[data-open="true"] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.qa[data-open="true"] .ans { grid-template-rows: 1fr; }
.qa .ans > div { overflow: hidden; }
.qa .ans p { padding: 0 26px 24px; color: var(--muted); max-width: 64ch; }

/* ---------- cta ---------- */
.cta { border-radius: 44px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: clamp(28px, 5vw, 72px); position: relative; }
.cta-art { position: absolute; right: -6%; top: -30%; width: 46%; aspect-ratio: 1; pointer-events: none; opacity: 0.9; }
.cta form { display: grid; gap: 12px; position: relative; z-index: 1; }
.inp { width: 100%; border-radius: 16px; padding: 16px 18px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.75); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.inp:focus { border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(121, 85, 231, 0.12); }
.inp[aria-invalid="true"] { border-color: #d1435b; box-shadow: 0 0 0 4px rgba(209, 67, 91, 0.1); }
textarea.inp { min-height: 120px; resize: vertical; }
.err { font-size: 12.5px; color: #b8314a; min-height: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--muted); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 90; max-width: 360px; padding: 16px 18px; border-radius: 18px; font-size: 14px; transform: translateY(20px); opacity: 0; transition: all 0.4s var(--ease); }
.toast.show { transform: none; opacity: 1; }
.toast:not(.show) { pointer-events: none; }

/* ---------- footer ---------- */
footer { padding: 90px 0 40px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--border); }
.foot h5, .foot .foot-h { font: 600 12px/1 var(--font-b); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.foot ul { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.foot ul a:hover { color: var(--violet); }
.foot-word { font: 600 clamp(80px, 17vw, 260px)/0.8 var(--font-d); letter-spacing: -0.07em; margin-top: 50px; background: linear-gradient(180deg, var(--ink), rgba(121, 85, 231, 0.18)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 30px; }

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

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links, .nav-right .btn { display: none; }
  .burger { display: grid; }
  .nav-right { margin-left: auto; }
  .strip-inner { grid-template-columns: repeat(3, 1fr); }
  .cap:nth-child(4) { border-left: 0; }
  .c1 { grid-column: span 12; grid-row: auto; } .c1 .illo { height: 260px; }
  .c2, .c3 { grid-column: span 6; } .c4, .c5, .c6 { grid-column: span 4; }
  .flow-track { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .flow-line, .packet { display: none; }
}
@media (max-width: 860px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .stage { max-width: 440px; justify-self: center; margin: 8px 0 -24px; }
  .sec-head, .philo, .faq, .cta, .est, .flow-bottom { grid-template-columns: 1fr; }
  .sec-head p { justify-self: start; }
  .c2, .c3, .c4, .c5, .c6 { grid-column: span 12; }
  .work-grid .proj { grid-column: span 12 !important; }
  .process { grid-template-columns: 1fr; }
  .process-sticky { top: 70px; height: 36vh; z-index: 1; background: linear-gradient(var(--pearl) 75%, transparent); }
  .morph-stage { width: min(240px, 60%); }
  .step { min-height: 52vh; }
  .foot { grid-template-columns: 1fr 1fr; }
  .cta-art { display: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .cap { padding: 14px; } .cap + .cap { border-left: 0; }
  .flow-track { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .node { font-size: 11px; padding: 5px 9px 5px 5px; } .node .dot { width: 14px; height: 14px; }
  .node-tip { width: 180px; }
  .est-out .pair { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- performance ---------- */
/* paused decorative loops while their section is off screen (toggled from app.js) */
.off .float, .off .dash, .off .orbit-ring, .off .scroll-cue i { animation-play-state: paused; }
.float { will-change: translate; }
@media (max-height: 760px) { .scroll-cue { display: none; } }

/* phones & touch: backdrop blur is the most expensive thing on the page — keep it only on
   overlays + nav, swap cards to a near-opaque pearl surface that reads the same */
@media (max-width: 860px), (pointer: coarse) {
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 249, 254, 0.8)); }
  .nav.glass, .search-box.glass, .mega.glass { -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); background: rgba(255, 255, 255, 0.78); }
  .ambient i { filter: blur(60px); opacity: 0.45; }
  .ambient::after { display: none; }
  .card { transform: none; transition: box-shadow 0.3s; }
  .card::after { display: none; }
  .mobile-menu { -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .btn { transform: none; }
  .proj:hover { transform: none; }
  .gq { box-shadow: inset 0 1px 0 #fff, 0 14px 28px -16px rgba(56, 40, 120, 0.3); }
  .rv { transform: translateY(16px); transition-duration: 0.6s; }
  .loader-word { animation-delay: 0.2s; }
}

/* hidden node tooltips near the edge must not widen the page */
.hero, main { overflow-x: clip; }
.hero .rv { transition-duration: 0.55s; }

/* ---------- Kaarya assistant ---------- */
.kc-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 55;
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 10px; border-radius: 999px;
  font: 600 14.5px/1 var(--font-b); color: #fff;
  background: linear-gradient(180deg, #2a2640, var(--ink));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 18px 40px -14px rgba(25, 24, 39, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.4s var(--ease), opacity 0.3s, box-shadow 0.3s;
}
.kc-launch:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 22px 46px -14px rgba(121, 85, 231, 0.6); }
.kc-launch.kc-hide { opacity: 0; transform: translateY(10px) scale(0.96); pointer-events: none; }
.kc-orb { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--crystal) 40%, var(--violet-2) 70%, var(--violet)); box-shadow: 0 0 0 4px rgba(163, 148, 239, 0.18); animation: kcPulse 3s ease-in-out infinite; }
@keyframes kcPulse { 50% { box-shadow: 0 0 0 8px rgba(163, 148, 239, 0.06); } }
.kc-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 65;
  width: 384px; max-width: calc(100vw - 32px); height: min(600px, calc(100dvh - 120px));
  display: flex; flex-direction: column; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(246, 244, 253, 0.9));
  box-shadow: 0 1px 0 #fff inset, 0 40px 90px -30px rgba(40, 28, 96, 0.45), 0 0 0 1px rgba(130, 119, 180, 0.16);
  transform-origin: bottom right; opacity: 0; transform: translateY(14px) scale(0.97);
  transition: opacity 0.28s var(--ease), transform 0.4s var(--ease);
}
.kc-panel[hidden] { display: none; }
.kc-panel:not(.kc-open) { pointer-events: none; }
.kc-panel.kc-open { opacity: 1; transform: none; }
.kc-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--border); }
.kc-av { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); }
.kc-title { flex: 1; min-width: 0; }
.kc-title b { display: block; font: 600 15.5px/1.2 var(--font-d); letter-spacing: -0.02em; }
.kc-title span { display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.kc-live { width: 7px; height: 7px; border-radius: 50%; background: #3cbf7a; box-shadow: 0 0 0 3px rgba(60, 191, 122, 0.18); }
.kc-x { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background 0.2s, color 0.2s; }
.kc-x:hover { background: rgba(121, 85, 231, 0.08); color: var(--ink); }
.kc-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.kc-b { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; animation: fadeUp 0.35s var(--ease) both; }
.kc-d { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.kc-v { align-self: flex-end; color: #fff; background: linear-gradient(150deg, var(--violet-2), var(--violet)); border-bottom-right-radius: 6px; }
.kc-typing { display: flex; gap: 4px; padding: 14px 16px; }
.kc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); animation: kcTy 1s infinite; }
.kc-typing i:nth-child(2) { animation-delay: 0.15s; } .kc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes kcTy { 50% { opacity: 0.3; transform: translateY(-3px); } }
.kc-wa { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font: 600 13.5px/1 var(--font-b); background: #25d366; color: #0b141a; }
.kc-wa-alt { background: var(--ink); color: #fff; }
.kc-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.kc-quick:empty { display: none; }
.kc-quick button { padding: 9px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(121, 85, 231, 0.08); color: var(--violet); transition: background 0.2s, color 0.2s; }
.kc-quick button:hover { background: var(--violet); color: #fff; }
.kc-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.kc-form input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--border); background: #fff; font-size: 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.kc-form input:focus { border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(121, 85, 231, 0.12); }
.kc-form button { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #2a2640, var(--ink)); }
.kc-form button:disabled { opacity: 0.5; }
.kc-foot { padding: 0 16px 12px; text-align: center; font-size: 11px; color: var(--muted); }
.toast { bottom: calc(156px + env(safe-area-inset-bottom)); }
body.locked .kc-launch, body.locked .kc-wa-fab { opacity: 0; pointer-events: none; }
.kc-dot { position: absolute; top: 4px; left: 34px; width: 11px; height: 11px; border-radius: 50%; background: #ff5d6c; box-shadow: 0 0 0 2px var(--ink); }
/* WhatsApp button, stacked above the assistant */
.kc-wa-fab {
  position: fixed; right: 22px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 55;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: #25d366;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 16px 34px -12px rgba(18, 140, 70, 0.6);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.kc-wa-fab:hover { transform: translateY(-2px) scale(1.04); }
body.kc-chat-open .kc-wa-fab { opacity: 0; transform: translateY(10px) scale(0.9); pointer-events: none; }
.kc-head-wa { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #128c4a; background: rgba(37, 211, 102, 0.12); transition: background 0.2s; }
.kc-head-wa:hover { background: rgba(37, 211, 102, 0.22); }
.kc-head-wa svg { width: 19px; height: 19px; }
/* one-time nudge */
.kc-nudge {
  position: fixed; right: 20px; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 56;
  display: flex; align-items: flex-start; gap: 4px; max-width: 270px; padding: 4px 4px 4px 0;
  border-radius: 18px 18px 6px 18px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 24px 50px -20px rgba(40, 28, 96, 0.45);
  opacity: 0; transform: translateY(8px); transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
.kc-nudge.kc-nudge-on { opacity: 1; transform: none; }
.kc-nudge[hidden] { display: none; }
.kc-nudge-b { flex: 1; text-align: left; padding: 10px 4px 10px 14px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.kc-nudge-b b { color: var(--violet); white-space: nowrap; }
.kc-nudge-x { flex: none; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--muted); }
.kc-nudge-x:hover { background: rgba(121, 85, 231, 0.08); color: var(--ink); }
body.kc-chat-open .kc-nudge, body.locked .kc-nudge { display: none; }
.kc-launch { bottom: calc(20px + env(safe-area-inset-bottom)); }
@media (max-width: 560px) {
  .kc-launch { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); height: 50px; }
  .kc-wa-fab { right: 14px; bottom: calc(74px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
  .kc-nudge { right: 14px; bottom: calc(134px + env(safe-area-inset-bottom)); max-width: min(270px, calc(100vw - 28px)); }
  .toast { right: 14px; left: 14px; max-width: none; bottom: calc(136px + env(safe-area-inset-bottom)); }
  .kc-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100dvh; border-radius: 0; background: #f8f7fc; padding-bottom: env(safe-area-inset-bottom); }
  body.kc-chat-open { overflow: hidden; }
}
.kc-title span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.kc-head-mail { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--violet); background: rgba(121, 85, 231, 0.08); transition: background 0.2s; }
.kc-head-mail:hover { background: rgba(121, 85, 231, 0.16); }
.kc-head { gap: 8px; }
/* "Message us" popup */
.km { margin: auto; width: min(460px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 28px; color: var(--ink); overflow: auto;
  background: linear-gradient(160deg, #fff, #f6f4fd); box-shadow: 0 1px 0 #fff inset, 0 40px 90px -30px rgba(40, 28, 96, 0.5), 0 0 0 1px rgba(130, 119, 180, 0.16); }
.km[open] { animation: kmIn 0.35s var(--ease) both; }
.km::backdrop { background: rgba(25, 24, 39, 0.32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes kmIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
html.km-on { overflow: hidden; }
.km-form, .km-done { display: grid; gap: 14px; padding: 24px; }
.km-form[hidden] { display: none; }
.km-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.km-head h2, .km-done h2 { font: 600 22px/1.15 var(--font-d); letter-spacing: -0.02em; outline: none; }
.km-head p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.km-x { flex: none; width: 40px; height: 40px; margin: -6px -6px 0 0; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.km-x:hover { background: rgba(121, 85, 231, 0.08); color: var(--ink); }
.km-f { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.km-f i { font-style: normal; font-weight: 500; color: var(--muted); }
.km-f input, .km-f textarea { width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--border); background: #fff; font: 400 16px/1.4 var(--font-b); color: var(--ink); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.km-f textarea { resize: vertical; min-height: 110px; }
.km-f input:focus, .km-f textarea:focus { border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(121, 85, 231, 0.12); }
.km-f [aria-invalid="true"] { border-color: #d64561; }
.km-err { font-style: normal; font-weight: 500; font-size: 12.5px; color: #c23652; }
.km-err:empty { display: none; }
.km-status { font-size: 13.5px; color: #c23652; }
.km-status:empty { display: none; }
.km-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.km-actions .btn[disabled] { opacity: 0.6; }
.km-alt { font-size: 14px; font-weight: 600; color: #128c4a; padding: 10px 0; }
.km-note { font-size: 12px; color: var(--muted); }
.km-done { justify-items: start; }
.km-ok { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, var(--violet-2), var(--violet)); }
.km-done p { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .km { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  @keyframes kmIn { from { transform: translateY(40px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .km[open] { animation: none; } }
/* phones: comfortable tap targets */
@media (pointer: coarse) {
  .foot ul { gap: 2px; }
  .foot ul a { display: inline-block; padding: 9px 0; }
  .node { min-height: 36px; }
}

/* selected work — real screenshots */
.proj-vis { background: linear-gradient(150deg, #eef1fd, #e3dcfa); }
.proj-vis img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.8s var(--ease); }
.proj:hover .proj-vis img { transform: scale(1.04); }
.proj-chip { position: absolute; left: 14px; top: 14px; padding: 7px 11px; border-radius: 999px; font: 600 11.5px/1 var(--font-b); background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 8px 20px -10px rgba(25, 24, 39, 0.4); }
.proj-go { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); transition: all 0.45s var(--ease); }
.proj:hover .proj-go { background: var(--ink); color: #fff; transform: rotate(-45deg); }
.work-more { display: flex; justify-content: center; margin-top: 40px; }
@media (max-width: 860px) { .proj-vis { height: 220px; } }
.proj-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.proj-video.on { opacity: 1; }
.proj:hover .proj-video { transform: scale(1.04); }
.proj-chip { z-index: 1; }
