/* ==========================================================================
   Artem Nesterov — Portfolio
   Palette & mood taken from the original Figma portfolio:
   deep violet night (#11071F), neon "V" mark, purple glows, glass cards.
   ========================================================================== */

:root {
  --bg: #11071f;
  --bg-deep: #0a0414;
  --bg-raise: #1a0c2e;
  --violet: #7424bc;
  --violet-2: #8e44f0;
  --violet-3: #a779f8;
  --lilac: #c9b2ff;
  --pink: #f58bd8;
  --peach: #ffb38a;
  --mint: #5ef2b5;

  --text: #f5f1ff;
  --text-2: rgba(236, 228, 255, 0.72);
  --text-3: rgba(236, 228, 255, 0.48);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);

  --r-xl: 36px;
  --r-l: 28px;
  --r-m: 20px;
  --r-s: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft-spring: cubic-bezier(0.25, 1.25, 0.5, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
svg { fill: currentColor; }
svg.ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
kbd {
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-2);
}
::selection { background: rgba(167, 121, 248, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 10px; }
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 16px; border-radius: 12px; background: #fff; color: #11071f; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography helpers ---------- */
.text-grad {
  background: linear-gradient(100deg, #d9c6ff 0%, #a779f8 35%, #8e44f0 60%, #f58bd8 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 8s ease-in-out infinite alternate;
}
@keyframes gradShift { to { background-position: 100% 0; } }

.h2 {
  font-family: var(--font);
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.042em;
  font-weight: 700;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.62));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
  text-wrap: balance;
}
.h2 .text-grad { -webkit-text-fill-color: transparent; }
.h2-xl { font-size: clamp(40px, 6vw, 84px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilac);
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet-3);
  box-shadow: 0 0 0 4px rgba(167, 121, 248, 0.16), 0 0 12px var(--violet-3);
}
.section { position: relative; padding-block: clamp(80px, 10vw, 144px); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 780px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section-head--row > div { max-width: 640px; }
.section-sub { margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); line-height: 1.55; text-wrap: pretty; }

/* ---------- Neon logo ---------- */
.neon {
  color: #fff;
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 8px rgba(201, 178, 255, 0.85))
    drop-shadow(0 0 22px rgba(142, 68, 240, 0.75));
}

/* ==========================================================================
   Liquid glass
   ========================================================================== */
.glass {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    rgba(26, 12, 46, 0.32);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border-radius: var(--r-l);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 -14px 28px -18px rgba(201, 178, 255, 0.22),
    0 24px 60px -28px rgba(0, 0, 0, 0.7);
  isolation: isolate;
}
/* specular rim — brighter on the top-left edge, like light hitting curved glass */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.06) 28%, rgba(255, 255, 255, 0) 55%, rgba(201, 178, 255, 0.28) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 1;
}
/* cursor-following highlight */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 255, 255, 0.1), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.glass:hover::after { opacity: 1; }
.glass > * { position: relative; z-index: 2; }

/* Static cards sit on a plain dark backdrop — a live blur there costs GPU time
   for no visible gain, so only floating UI keeps the real backdrop blur. */
.svc-card, .case, .stat, .bento-item, .tool, .step-body, .fmt-card, .acc-item, .contact-panel, .cycle-caption, .site, .sites-count, .sites-cta {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)), rgba(30, 14, 54, 0.55);
}

/* Chromium: real refraction of what's behind the glass */
.has-refraction .liquid {
  -webkit-backdrop-filter: url(#liquid-refract) blur(14px) saturate(190%) brightness(1.05);
  backdrop-filter: url(#liquid-refract) blur(14px) saturate(190%) brightness(1.05);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.4s var(--ease-out), background-color 0.3s, color 0.3s;
  will-change: transform;
  user-select: none;
}
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:active { transform: scale(0.96) !important; transition-duration: 0.15s; }
.btn-label { position: relative; z-index: 2; transition: transform 0.45s var(--ease-out); }
.btn-icon {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  width: 26px; height: 26px; margin-right: -8px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.45s var(--ease-spring), background-color 0.3s;
}
.btn-icon-l { margin: 0 -4px 0 -8px; }
.btn-icon svg { width: 16px; height: 16px; transition: transform 0.45s var(--ease-out); }
.btn:hover .btn-icon svg { animation: arrowLoop 0.6s var(--ease-out); }
@keyframes arrowLoop {
  0% { transform: translateX(0); }
  45% { transform: translateX(140%); opacity: 1; }
  46% { transform: translateX(-140%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(0); }
}

/* primary — glowing violet gel */
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #a86bff 0%, #7f2fd6 48%, #5b1a9e 100%);
  box-shadow:
    0 12px 32px -10px rgba(142, 68, 240, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 8px rgba(40, 0, 80, 0.45);
}
.btn-primary::before { /* liquid light that follows the cursor */
  content: "";
  position: absolute;
  left: var(--bx, 50%); top: var(--by, 50%);
  width: 220%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 255, 0.55), rgba(245, 139, 216, 0.25) 30%, transparent 60%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s var(--ease-out);
  z-index: 1;
}
.btn-primary:hover::before { transform: translate(-50%, -50%) scale(1); }
.btn-primary:hover { box-shadow: 0 18px 44px -10px rgba(167, 121, 248, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 8px rgba(40, 0, 80, 0.35); }
.btn-primary .btn-icon { background: rgba(255, 255, 255, 0.18); }
.btn-primary:hover .btn-icon { background: #fff; color: var(--violet); }
.btn-shine {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 62%);
  transform: translateX(-120%);
}
.btn:hover .btn-shine { animation: shine 0.9s var(--ease-out); }
@keyframes shine { to { transform: translateX(120%); } }

/* glass — frosted pill */
.btn-glass {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.btn-glass::before {
  content: "";
  position: absolute;
  left: var(--bx, 50%); top: var(--by, 50%);
  width: 240%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 178, 255, 0.28), transparent 55%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s var(--ease-out);
  z-index: 1;
}
.btn-glass:hover::before { transform: translate(-50%, -50%) scale(1); }
.btn-glass:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 0 0 1px rgba(201, 178, 255, 0.4), 0 10px 30px -12px rgba(142, 68, 240, 0.6); }
.btn-glass .btn-icon { background: rgba(255, 255, 255, 0.08); }

.link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  color: var(--lilac);
  padding: 8px 0;
  position: relative;
}
.link-btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-spring); }
.link-btn::after {
  content: ""; position: absolute; left: 0; right: 24px; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.link-btn:hover::after { transform: scaleX(1); transform-origin: left; }
.link-btn:hover svg { transform: translateX(5px); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--text-2);
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease-spring);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; transform: scale(1.06); }

/* ---------- Segmented control (Apple style) ---------- */
.seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 2px rgba(0, 0, 0, 0.25);
  isolation: isolate;
}
.seg button {
  position: relative; z-index: 2;
  height: 32px; padding: 0 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--text-3);
  transition: color 0.3s;
  white-space: nowrap;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { color: #fff; }
.seg-thumb {
  position: absolute; z-index: 1;
  top: 4px; bottom: 4px; left: 0;
  width: var(--tw, 40px);
  transform: translateX(var(--tx, 4px));
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 14px -4px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.15);
  transition: transform 0.55s var(--ease-soft-spring), width 0.55s var(--ease-soft-spring);
}
.seg-filter button, .seg-tabs button { height: 40px; padding: 0 18px; font-size: 14px; }
.seg-filter .seg-thumb, .seg-tabs .seg-thumb { background: linear-gradient(135deg, rgba(168, 107, 255, 0.9), rgba(116, 36, 188, 0.9)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 20px -6px rgba(142, 68, 240, 0.9); }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; align-content: center; gap: 22px;
  background: var(--bg);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s, transform 0.9s var(--ease-out);
}
.pre-logo { width: 84px; overflow: visible; }
.pre-logo path {
  fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1s var(--ease-io) forwards, neonPulse 1.4s 0.9s ease-in-out infinite;
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 14px var(--violet-3)) drop-shadow(0 0 30px var(--violet-2));
}
.pre-name {
  font-family: var(--font); font-weight: 600; font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text-3);
  opacity: 0; animation: fadeUp 0.8s 0.4s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes neonPulse { 50% { opacity: 0.75; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.is-loaded .preloader, .skip-intro .preloader { opacity: 0; visibility: hidden; transform: scale(1.06); pointer-events: none; }
.no-js .preloader { display: none; }

/* ==========================================================================
   Background
   ========================================================================== */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-aurora .blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.blob.b1 { width: 70vmax; height: 70vmax; left: -22vmax; top: -30vmax; background: radial-gradient(circle, rgba(116, 36, 188, 0.42), transparent 62%); animation: drift1 26s ease-in-out infinite alternate; }
.blob.b2 { width: 60vmax; height: 60vmax; right: -24vmax; top: 10vh; background: radial-gradient(circle, rgba(91, 33, 182, 0.32), transparent 62%); animation: drift2 32s ease-in-out infinite alternate; }
.blob.b3 { width: 50vmax; height: 50vmax; left: 20vw; bottom: -30vmax; background: radial-gradient(circle, rgba(245, 139, 216, 0.12), transparent 62%); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 12vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-10vw, 22vh) scale(0.92); } }
@keyframes drift3 { to { transform: translate(-18vw, -16vh) scale(1.15); } }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-spot {
  position: absolute; left: 0; top: 0;
  width: 900px; height: 900px; margin: -450px 0 0 -450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 68, 240, 0.13), transparent 60%);
  transform: translate3d(var(--sx, 50vw), var(--sy, 30vh), 0);
  transition: opacity 0.6s;
}
.bg-grain {
  position: absolute; inset: -50%;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ==========================================================================
   Custom cursor (mouse only, toggled by JS)
   ========================================================================== */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea, .has-cursor [contenteditable="true"] { cursor: text !important; }
.cursor-dot, .cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
}
.cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: #fff;
  box-shadow: 0 0 10px rgba(201, 178, 255, 0.9);
  transition: opacity 0.2s;
}
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: grid; place-items: center;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s, box-shadow 0.3s, opacity 0.25s;
}
.cursor-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: #fff;
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.25s, transform 0.4s var(--ease-spring);
  white-space: nowrap;
}
.cursor.is-active .cursor-dot, .cursor.is-active .cursor-ring { opacity: 1; }
.cursor.is-hover .cursor-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(201, 178, 255, 0.1); border-color: rgba(201, 178, 255, 0.75); }
.cursor.is-view .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: rgba(142, 68, 240, 0.9); border-color: transparent; box-shadow: 0 10px 40px -8px rgba(142, 68, 240, 0.9); }
.cursor.is-view .cursor-label { opacity: 1; transform: none; }
.cursor.is-view .cursor-dot { opacity: 0; }
/* over text fields the native I-beam takes over */
.cursor.is-text .cursor-dot, .cursor.is-text .cursor-ring,
.cursor.is-hidden .cursor-dot, .cursor.is-hidden .cursor-ring { opacity: 0; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-wrap {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.nav-wrap.is-hidden { transform: translateY(-130%); }
.nav {
  pointer-events: auto;
  width: 100%; max-width: 1080px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  transition: background-color 0.4s, box-shadow 0.4s, max-width 0.6s var(--ease-out);
}
.nav-wrap.is-scrolled .nav { background-color: rgba(17, 7, 31, 0.35); }
.nav-logo { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -6px; border-radius: 50%; transition: transform 0.5s var(--ease-spring); }
.nav-logo svg { width: 30px; height: 27px; }
.nav-logo:hover { transform: rotate(-8deg) scale(1.08); }
.nav-links { position: relative; display: flex; align-items: center; gap: 2px; padding: 4px; }
.nav-links > li > a {
  position: relative; z-index: 2;
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  transition: color 0.3s;
}
.nav-links > li > a:hover, .nav-links > li > a.is-active { color: #fff; }
.nav-pill {
  position: absolute; z-index: 1;
  top: 4px; bottom: 4px; left: 0;
  width: var(--pw, 0px);
  transform: translateX(var(--px, 0px));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: var(--po, 0);
  transition: transform 0.5s var(--ease-soft-spring), width 0.5s var(--ease-soft-spring), opacity 0.3s;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch button { height: 30px; padding: 0 11px; font-size: 12px; letter-spacing: 0.04em; }
.cmdk-open { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; border-radius: 999px; height: 38px; }
.cmdk-open .kbd-hint { background: transparent; border-color: rgba(255, 255, 255, 0.12); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 2px; background: #fff;
  transition: transform 0.5s var(--ease-spring), top 0.3s;
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* mobile sheet */
.mmenu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 4, 20, 0.6);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}
.menu-open .mmenu { opacity: 1; visibility: visible; }
.mmenu-inner {
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 48px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
}
.mmenu-links li { overflow: hidden; }
.mmenu-links a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 10px 0;
  font-family: var(--font); font-size: clamp(34px, 10vw, 52px); font-weight: 700; letter-spacing: -0.04em;
  transform: translateY(110%);
  transition: transform 0.7s var(--ease-out), color 0.3s;
}
.mmenu-links a:active { color: var(--lilac); }
.menu-open .mmenu-links a { transform: none; }
.menu-open .mmenu-links li:nth-child(2) a { transition-delay: 0.05s; }
.menu-open .mmenu-links li:nth-child(3) a { transition-delay: 0.1s; }
.menu-open .mmenu-links li:nth-child(4) a { transition-delay: 0.15s; }
.menu-open .mmenu-links li:nth-child(5) a { transition-delay: 0.2s; }
.mm-num { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--violet-3); }
.mmenu-foot { display: grid; gap: 20px; opacity: 0; transform: translateY(20px); transition: opacity 0.6s 0.25s, transform 0.6s 0.25s var(--ease-out); }
.menu-open .mmenu-foot { opacity: 1; transform: none; }
.mmenu-socials { display: flex; gap: 10px; flex-wrap: wrap; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 64px) 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 16px 0 12px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 28px;
  transition: transform 0.5s var(--ease-spring);
}
.status-pill:hover { transform: translateY(-2px); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--mint); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.hero-hello {
  font-family: var(--font-hand);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
  color: #fff;
}
.hello-nick { display: inline-block; margin-left: 10px; padding: 5px 12px; border-radius: 999px; vertical-align: .35em; font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--lilac); background: rgba(142,68,240,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(201,178,255,.25); }
.hero-hello .text-grad { animation: none; background: linear-gradient(100deg, #b98cff, #8e44f0); -webkit-background-clip: text; background-clip: text; }
.hero-title {
  font-family: var(--font);
  font-size: clamp(40px, 5.2vw, 74px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.048em;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}
.circled {
  position: relative; display: inline-block; white-space: nowrap;
  background: linear-gradient(100deg, #d9c6ff, #a779f8 40%, #f58bd8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.circled svg.scribble {
  position: absolute; left: -6%; top: -6%; width: 112%; height: 120%;
  overflow: visible; pointer-events: none;
}
.circled svg.scribble path {
  fill: none; stroke: var(--violet-3); stroke-width: 2.2; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(167, 121, 248, 0.7));
}
.is-in .circled svg.scribble path, .circled.is-drawn svg.scribble path { animation: draw 1.1s 0.5s var(--ease-io) forwards; }

.hero-type {
  margin-top: 22px;
  font-family: var(--font);
  font-size: clamp(19px, 1.9vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  min-height: 1.4em;
}
.hero-type > span:first-child { color: var(--text-3); margin-right: 4px; }
.type-word { color: var(--lilac); }
.type-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -0.15em; background: var(--lilac); animation: caret 1s steps(1) infinite; box-shadow: 0 0 8px var(--violet-3); }
@keyframes caret { 50% { opacity: 0; } }
.hero-lead { margin-top: 20px; max-width: 560px; font-size: clamp(16px, 1.35vw, 19px); color: var(--text-2); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px; font-size: 16.5px; color: var(--text-2); }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); margin-right: 14px; opacity: 0.6; }
.hero-meta b { color: var(--text); font-weight: 700; }
.hero-meta svg { width: 18px; height: 18px; }

/* visual */
.hero-visual { position: relative; width: 100%; max-width: 480px; justify-self: center; aspect-ratio: 1 / 1.08; }
.orb { position: absolute; left: 6%; right: 6%; top: 4%; aspect-ratio: 1; perspective: 900px; }
.orb-halo {
  position: absolute; inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 68, 240, 0.55) 0%, rgba(116, 36, 188, 0.28) 32%, transparent 64%);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.8; } }
.orb-ring {
  position: absolute; inset: 2%;
  border-radius: 50%;
  border: 1px solid rgba(201, 178, 255, 0.28);
  transform: rotateX(72deg) rotateZ(0deg);
  animation: spin 22s linear infinite;
}
.orb-ring.ring-1 { inset: -6%; border-color: rgba(201, 178, 255, 0.16); animation-duration: 34s; }
.orb-ring.ring-2 { inset: -14%; border-color: rgba(201, 178, 255, 0.12); animation-duration: 28s; animation-direction: reverse; }
.orb-ring.ring-3 { inset: 6%; transform: rotateX(72deg) rotateY(-14deg); animation-duration: 18s; }
.orb-ring i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px var(--violet-3); }
@keyframes spin { to { transform: rotateX(72deg) rotateZ(360deg); } }
.orb-core { position: absolute; inset: 0; border-radius: 50%; transition: transform 0.6s var(--ease-spring); }
.orb-core:hover { transform: scale(1.03); }
.orb-core:active { transform: scale(0.97); }
.core-bg {
  position: absolute; inset: 11%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #6a32c4 0%, #3b1477 45%, #1c0a36 80%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -20px 50px rgba(10, 0, 30, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 80px -10px rgba(142, 68, 240, 0.6);
}
.core-bg::after { /* glass sheen */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), transparent 38%);
}
.memoji-clip {
  position: absolute; left: 11%; right: 11%; top: 0; bottom: 11%;
  -webkit-mask: radial-gradient(closest-side circle at 50% 56.18%, #000 99%, transparent 100%), linear-gradient(#000 0 0) top / 100% 56.18% no-repeat;
  mask: radial-gradient(closest-side circle at 50% 56.18%, #000 99%, transparent 100%), linear-gradient(#000 0 0) top / 100% 56.18% no-repeat;
}
.memoji {
  position: absolute; left: 50%; bottom: -2%;
  width: 79.5%; height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 24px rgba(10, 0, 30, 0.55));
  transform-origin: 50% 90%;
}
.orb-core.is-waving .memoji { animation: wave 0.9s var(--ease-out); }
@keyframes wave {
  0%, 100% { transform: translateX(-50%) rotate(0); }
  20% { transform: translateX(-50%) rotate(-7deg) translateY(-4%); }
  45% { transform: translateX(-50%) rotate(6deg) translateY(-6%); }
  70% { transform: translateX(-50%) rotate(-3deg) translateY(-2%); }
}
.wave-bubble {
  position: absolute; right: -6%; top: 2%;
  padding: 10px 16px; border-radius: 18px 18px 18px 6px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translateY(10px) scale(0.8); transform-origin: 0 100%;
  transition: opacity 0.35s, transform 0.5s var(--ease-spring);
  pointer-events: none;
  z-index: 5;
}
.wave-bubble.is-on { opacity: 1; transform: none; }

.float-chip {
  position: absolute; left: var(--fx); top: var(--fy);
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 16px 0 9px;
  border-radius: 16px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  animation: float 6s var(--d, 0s) ease-in-out infinite;
  translate: var(--px, 0) var(--py, 0);
  transition: translate 0.9s var(--ease-out);
  z-index: 4;
}
.float-chip.chip-sm { height: 38px; padding: 0 14px 0 11px; font-size: 13px; border-radius: 999px; }
@keyframes float { 50% { transform: translateY(-12px); } }
.app-ico {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 12px -4px rgba(0, 0, 0, 0.6);
}
.app-ico img { display: block; width: 64%; height: 64%; object-fit: contain; }
.app-ico--full { background: none; }
.app-ico--full img { width: 100%; height: 100%; }
.spark { width: 16px; height: 16px; color: var(--pink); filter: drop-shadow(0 0 6px var(--pink)); }

.hand-note {
  position: absolute; left: -4%; top: -6%;
  font-family: var(--font-hand); font-size: 30px; font-weight: 700; color: #fff;
  transform: rotate(-8deg);
  z-index: 5;
}
.hand-arrow { position: absolute; left: 70px; top: 12px; width: 120px; overflow: visible; }
.hand-arrow path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .hand-arrow path { animation: draw 1s 0.9s var(--ease-io) forwards; }
.hand-quote {
  position: absolute; right: 0; bottom: 0;
  max-width: 300px;
  font-family: var(--font-hand); font-size: 25px; line-height: 1.05; font-weight: 600;
  color: var(--lilac);
  text-align: right;
  transform: rotate(-4deg);
  opacity: 0.9;
}

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); opacity: 0.6; transition: opacity 0.3s; }
.scroll-cue:hover { opacity: 1; }
.mouse { display: block; width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.5); position: relative; }
.mouse i { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s var(--ease-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-wrap {
  position: relative;
  padding: 18px 0;
  display: grid; gap: 14px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  transform: rotate(-1.5deg);
}
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.marquee[data-dir="-1"] .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tool-chip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px 0 10px;
  border-radius: 16px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 0.5s var(--ease-spring), background-color 0.3s, box-shadow 0.3s;
}
.tool-chip:hover { transform: translateY(-4px) scale(1.04); background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(201, 178, 255, 0.35), 0 12px 30px -12px rgba(142, 68, 240, 0.8); }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding-top: clamp(80px, 10vw, 140px); }
.reveal-text {
  font-family: var(--font);
  font-size: clamp(28px, 4.1vw, 56px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
  max-width: 1100px;
  text-wrap: pretty;
}
.reveal-text .w { color: rgba(245, 241, 255, 0.16); transition: color 0.25s linear; }
.reveal-text .w.on { color: #fff; }
.reveal-text .w.accent { color: rgba(167, 121, 248, 0.34); }
.reveal-text .w.accent.on { color: var(--lilac); text-shadow: 0 0 24px rgba(142, 68, 240, 0.45); }
.no-js .reveal-text { color: #fff; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(56px, 7vw, 96px); }
.stat { padding: 28px 26px 26px; border-radius: var(--r-l); transition: transform 0.6s var(--ease-spring); }
.stat:hover { transform: translateY(-6px); }
.stat-num {
  display: flex; align-items: baseline;
  font-family: var(--font); font-size: clamp(48px, 5vw, 68px); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(180deg, #fff, #c9b2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-suf { font-size: 0.55em; letter-spacing: -0.02em; }
.stat p { margin-top: 14px; font-size: 15px; color: var(--text-2); line-height: 1.45; }

/* ==========================================================================
   Services
   ========================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; perspective: 1400px; }
.svc-card {
  display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r-xl);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out), box-shadow 0.5s;
}
.svc-card:hover { box-shadow: inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(201,178,255,.18), inset 0 -14px 28px -18px rgba(201,178,255,.3), 0 40px 80px -30px rgba(91, 33, 182, 0.7); }
.spot {
  position: absolute !important; inset: 0; z-index: 0 !important;
  border-radius: inherit;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(142, 68, 240, 0.22), transparent 55%);
  opacity: 0; transition: opacity 0.5s;
  pointer-events: none;
}
.tilt:hover .spot { opacity: 1; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.svc-3d {
  width: 104px; height: 104px; object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(20, 0, 50, 0.6));
  transform: translateZ(40px);
  transition: transform 0.8s var(--ease-spring);
  animation: bob 5s ease-in-out infinite;
}
.svc-card:nth-child(2) .svc-3d { animation-delay: -1.2s; }
.svc-card:nth-child(3) .svc-3d { animation-delay: -2.4s; }
.svc-card:nth-child(4) .svc-3d { animation-delay: -3.6s; }
.svc-card:hover .svc-3d { transform: translateZ(70px) scale(1.12) rotate(-8deg); }
@keyframes bob { 50% { translate: 0 -8px; } }
.svc-num { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.svc-title { font-family: var(--font); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.svc-desc { margin-top: 12px; color: var(--text-2); font-size: 16px; }
.svc-list { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-list li {
  padding: 7px 13px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease-spring);
}
.svc-list li:hover { background: rgba(142, 68, 240, 0.2); box-shadow: inset 0 0 0 1px rgba(201, 178, 255, 0.35); transform: translateY(-2px); }
.svc-tools { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tool { position: relative; display: block; transition: transform .45s var(--ease-spring); }
.svc-tool:hover { transform: translateY(-3px) scale(1.06); z-index: 2; }
.svc-tool .app-ico { width: 34px; height: 34px; border-radius: 9px; }
.svc-tool::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px);
  padding: 5px 9px; border-radius: 8px; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(20, 10, 36, .96); box-shadow: inset 0 0 0 1px rgba(201, 178, 255, .2), 0 10px 24px -10px #000;
  opacity: 0; transform: translate(-50%, 4px); pointer-events: none;
  transition: opacity .2s, transform .3s var(--ease-out);
}
.svc-tool:hover::after { opacity: 1; transform: translate(-50%, 0); }
.svc-card .link-btn { margin-top: 14px; align-self: flex-start; }

/* ==========================================================================
   Work
   ========================================================================== */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 20px; }
.case {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--r-xl);
  padding: 10px 10px 22px;
  text-align: left;
  transition: transform 0.6s var(--ease-spring), opacity 0.45s, box-shadow 0.5s;
}
.case.is-wide { grid-column: span 2; }
.case:hover { transform: translateY(-8px); box-shadow: inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(201,178,255,.2), 0 40px 80px -30px rgba(91, 33, 182, 0.75); }
.case.is-out { opacity: 0; transform: scale(0.92); pointer-events: none; }
.case.is-gone { display: none; }
.case-cover {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: calc(var(--r-xl) - 10px);
  overflow: hidden;
  container-type: inline-size;
}
.case.is-wide .case-cover { aspect-ratio: 16 / 8.6; }
.case-badge { position: absolute; left: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(17, 7, 31, .55); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(255,255,255,.14); }
.case-badge svg { width: 15px; height: 15px; stroke: #8dffb8; stroke-width: 2.2; filter: drop-shadow(0 0 4px rgba(94, 242, 181, .7)); }
.m-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.case-body { padding: 20px 14px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-tags span { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--lilac); padding: 4px 10px; border-radius: 999px; background: rgba(142, 68, 240, 0.16); }
.case-title { font-family: var(--font); font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-top: 6px; }
.case-short { color: var(--text-2); font-size: 15px; }
.case-more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); opacity: 0.85; }
.case-more i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); transition: transform 0.5s var(--ease-spring), background-color 0.3s; }
.case-more svg { width: 15px; height: 15px; }
.case:hover .case-more i { background: var(--violet-2); transform: rotate(45deg) scale(1.1); }
.case:hover .cv-inner { transform: scale(1.04); }

/* ---------- Case covers (pure CSS/SVG art, swap for real media later) ---------- */
.cv { position: absolute; inset: 0; overflow: hidden; font-family: var(--font); color: #fff; }
.cv-inner { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.cv .gl {
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.12), 0 1.5cqw 4cqw rgba(0,0,0,.35);
}

/* SLC Stone */
.cv-slc { background: radial-gradient(120% 90% at 20% 10%, #3a3346, #17131f 60%, #0d0a12); }
.cv-slc .marble { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.cv-slc .slc-mark { position: absolute; left: 7cqw; top: 50%; transform: translateY(-50%); }
.cv-slc .slc-logo { display: block; font-family: "Didot", "Bodoni 72", "Playfair Display", Georgia, serif; font-size: 15cqw; font-weight: 400; letter-spacing: .06em; line-height: .9; background: linear-gradient(180deg, #fff, #c8bfd6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cv-slc .slc-sub { display: block; margin-top: 1.6cqw; font-size: 1.9cqw; letter-spacing: .5em; color: rgba(255,255,255,.7); }
.cv-slc .slc-line { display: block; width: 12cqw; height: 1px; margin-top: 2.4cqw; background: linear-gradient(90deg, #c9b2ff, transparent); }
.cv-slc .slc-posts { position: absolute; right: 6cqw; top: 50%; display: grid; grid-template-columns: repeat(2, 13cqw); gap: 1.6cqw; transform: translateY(-50%) rotate(-6deg); }
.cv-slc .slc-posts i { aspect-ratio: 4/5; border-radius: 1.6cqw; display: block; position: relative; overflow: hidden; }
.cv-slc .slc-posts i::after { content: ""; position: absolute; left: 12%; right: 30%; bottom: 10%; height: 6%; border-radius: 4px; background: rgba(255,255,255,.7); box-shadow: 0 -1.6cqw 0 -.2cqw rgba(255,255,255,.35); }
.cv-slc .slc-posts i:nth-child(1) { background: linear-gradient(160deg, #d9d2e3, #8e86a0); }
.cv-slc .slc-posts i:nth-child(2) { background: linear-gradient(160deg, #3b3348, #1b1624); translate: 0 4cqw; }
.cv-slc .slc-posts i:nth-child(3) { background: linear-gradient(160deg, #6e5a86, #2d2340); }
.cv-slc .slc-posts i:nth-child(4) { background: linear-gradient(160deg, #e8e2ee, #b4a9c4); translate: 0 4cqw; }
.case:hover .cv-slc .slc-posts { transform: translateY(-50%) rotate(-2deg) scale(1.04); }
.cv-slc .slc-posts { transition: transform 1s var(--ease-out); }

/* CryoVPN */
.cv-cryo { background: radial-gradient(70% 90% at 80% 0%, rgba(94, 231, 255, .45), transparent 60%), radial-gradient(80% 80% at 0% 100%, rgba(142, 68, 240, .6), transparent 60%), linear-gradient(160deg, #0b1440, #0a0620); }
.cv-cryo .flake { position: absolute; color: rgba(190, 245, 255, .85); filter: drop-shadow(0 0 1.5cqw rgba(94,231,255,.9)); animation: twinkle 3s ease-in-out infinite; }
.cv-cryo .flake svg { width: 100%; height: 100%; }
.cv-cryo .f1 { width: 5cqw; height: 5cqw; left: 8cqw; top: 12cqw; }
.cv-cryo .f2 { width: 3cqw; height: 3cqw; left: 22cqw; top: 6cqw; animation-delay: -1s; }
.cv-cryo .f3 { width: 4cqw; height: 4cqw; left: 40cqw; bottom: 10cqw; animation-delay: -2s; }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.8) rotate(20deg); } }
.cv-cryo .cryo-brand { position: absolute; left: 7cqw; bottom: 9cqw; font-size: 6.4cqw; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.cv-cryo .cryo-brand small { display: block; margin-top: 1.4cqw; font-size: 2.1cqw; font-weight: 500; letter-spacing: .02em; color: rgba(210, 245, 255, .75); }
.cv-cryo .cryo-chat { position: absolute; right: 6cqw; top: 8cqw; width: 44cqw; padding: 2.6cqw; border-radius: 3.6cqw; display: grid; gap: 1.8cqw; transition: transform 1s var(--ease-out); }
.case:hover .cv-cryo .cryo-chat { transform: translateY(-1.5cqw) rotate(-1deg); }
.cv-cryo .cc-head { display: flex; align-items: center; gap: 1.6cqw; font-size: 2.4cqw; }
.cv-cryo .cc-ava { width: 5.4cqw; height: 5.4cqw; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #7ef0ff, #6b4bff); font-size: 2.8cqw; }
.cv-cryo .cc-head small { margin-left: auto; font-size: 1.8cqw; color: rgba(255,255,255,.6); }
.cv-cryo .cc-msg { padding: 1.8cqw 2.2cqw; border-radius: 2.4cqw 2.4cqw 2.4cqw .8cqw; background: rgba(255,255,255,.14); font-size: 2.2cqw; line-height: 1.35; }
.cv-cryo .cc-msg b { color: #9ff3ff; }
.cv-cryo .cc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqw; }
.cv-cryo .cc-btns span { text-align: center; padding: 1.5cqw 0; border-radius: 1.8cqw; font-size: 2cqw; font-weight: 600; background: rgba(126, 240, 255, .2); box-shadow: inset 0 0 0 1px rgba(126, 240, 255, .35); }
.cv-cryo .cc-btns span:last-child { background: linear-gradient(135deg, #7ef0ff, #8e44f0); box-shadow: none; color: #0a0620; }
.cv-cryo .ref { position: absolute; left: 30cqw; top: 22cqw; width: 18cqw; height: 18cqw; }
.cv-cryo .ref i { position: absolute; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: #7ef0ff; box-shadow: 0 0 2cqw #7ef0ff; }
.cv-cryo .ref i:nth-child(1) { left: 0; top: 7cqw; background: #fff; width: 4.6cqw; height: 4.6cqw; }
.cv-cryo .ref svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cv-cryo .ref path { fill: none; stroke: rgba(126, 240, 255, .6); stroke-width: 1.2; stroke-dasharray: 3 3; animation: dash 1.5s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }

/* Dostupnoe Teplo */
.cv-teplo { background: radial-gradient(90% 80% at 85% 10%, #ffb36b, transparent 55%), radial-gradient(90% 90% at 10% 90%, #7a1fa2, transparent 60%), linear-gradient(140deg, #ff6a3d, #c2348f 55%, #3b0d63); }
.cv-teplo .heat { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.cv-teplo .heat path { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; animation: rise 4s ease-in-out infinite; }
.cv-teplo .heat path:nth-child(2) { animation-delay: -1.3s; }
.cv-teplo .heat path:nth-child(3) { animation-delay: -2.6s; }
@keyframes rise { 0% { transform: translateY(10%); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-14%); opacity: 0; } }
.cv-teplo .player { position: absolute; left: 8cqw; right: 8cqw; top: 9cqw; bottom: 9cqw; border-radius: 3.4cqw; overflow: hidden; }
.cv-teplo .player-top { position: absolute; left: 3cqw; right: 3cqw; top: 2.6cqw; display: flex; justify-content: space-between; align-items: center; font-size: 2.2cqw; font-weight: 600; }
.cv-teplo .rec { display: inline-flex; align-items: center; gap: 1cqw; }
.cv-teplo .rec::before { content: ""; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 1.4cqw #ff4d4d; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cv-teplo .title { position: absolute; left: 3cqw; top: 50%; transform: translateY(-70%); font-size: 6cqw; font-weight: 800; letter-spacing: -.04em; line-height: .95; }
.cv-teplo .title small { display: block; font-size: 2.2cqw; font-weight: 500; letter-spacing: 0; opacity: .8; margin-top: 1.4cqw; }
.cv-teplo .play { position: absolute; right: 7cqw; top: 50%; width: 11cqw; height: 11cqw; margin-top: -7cqw; border-radius: 50%; display: grid; place-items: center; transition: transform .6s var(--ease-spring); }
.cv-teplo .play::before { content: ""; margin-left: .8cqw; border-left: 3cqw solid #fff; border-top: 1.9cqw solid transparent; border-bottom: 1.9cqw solid transparent; }
.case:hover .cv-teplo .play { transform: scale(1.15); }
.cv-teplo .timeline { position: absolute; left: 3cqw; right: 3cqw; bottom: 2.6cqw; height: 5cqw; display: flex; gap: .6cqw; }
.cv-teplo .timeline i { flex: var(--f, 1); border-radius: .8cqw; background: var(--c, rgba(255,255,255,.4)); }
.cv-teplo .playhead { position: absolute; top: -1cqw; bottom: -1cqw; width: 2px; background: #fff; box-shadow: 0 0 1cqw #fff; animation: playhead 6s linear infinite; }
@keyframes playhead { from { left: 0; } to { left: 100%; } }

/* Arcania */
.cv-arcania { background: radial-gradient(60% 70% at 50% 45%, rgba(142, 68, 240, .55), transparent 70%), radial-gradient(40% 50% at 80% 80%, rgba(245, 139, 216, .25), transparent 70%), #0b0518; }
.cv-arcania .rune { position: absolute; left: 50%; top: 45%; width: 52cqw; height: 52cqw; margin: -26cqw 0 0 -26cqw; animation: spinFlat 40s linear infinite; opacity: .75; }
.cv-arcania .rune circle, .cv-arcania .rune path { fill: none; stroke: #c9b2ff; }
@keyframes spinFlat { to { transform: rotate(360deg); } }
.cv-arcania .word { position: absolute; left: 0; right: 0; top: 45%; transform: translateY(-50%); text-align: center; font-family: "Cinzel", "Trajan Pro", "Didot", Georgia, serif; font-size: 8.4cqw; letter-spacing: .32em; text-indent: .32em; text-shadow: 0 0 3cqw rgba(201, 178, 255, .9); }
.cv-arcania .wave { position: absolute; left: 50%; bottom: 8cqw; transform: translateX(-50%); display: flex; align-items: center; gap: .7cqw; height: 7cqw; }
.cv-arcania .wave i { width: .8cqw; height: 100%; border-radius: 1cqw; background: linear-gradient(180deg, #f58bd8, #8e44f0); animation: eq 1.1s ease-in-out infinite; transform-origin: center; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.cv-arcania .farm { position: absolute; left: 50%; top: 6cqw; transform: translateX(-50%); display: flex; gap: 2.2cqw; }
.cv-arcania .farm i { position: relative; width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d9c6ff, #6b2fd0); box-shadow: 0 0 1.8cqw rgba(167, 121, 248, .7); animation: farmPulse 2.4s ease-in-out infinite; }
.cv-arcania .farm i::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -.9cqw 0 0 -.5cqw; border-left: 1.5cqw solid #fff; border-top: .9cqw solid transparent; border-bottom: .9cqw solid transparent; }
.cv-arcania .farm i:nth-child(2) { animation-delay: .25s; } .cv-arcania .farm i:nth-child(3) { animation-delay: .5s; }
.cv-arcania .farm i:nth-child(4) { animation-delay: .75s; } .cv-arcania .farm i:nth-child(5) { animation-delay: 1s; }
@keyframes farmPulse { 0%, 100% { transform: scale(1); opacity: .75; } 40% { transform: scale(1.18); opacity: 1; } }
.cv-arcania .tag { position: absolute; left: 50%; bottom: 3.4cqw; transform: translateX(-50%); font-size: 1.8cqw; letter-spacing: .3em; color: rgba(255,255,255,.6); white-space: nowrap; }

/* MILLIDA SKINS — Minecraft voxel head */
.cv-millida { background: radial-gradient(70% 60% at 30% 35%, rgba(142, 68, 240, .45), transparent 65%), radial-gradient(50% 50% at 85% 80%, rgba(94, 242, 122, .18), transparent 70%), linear-gradient(180deg, #120526, #05010d); perspective: 70cqw; }
.cv-millida .floor { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%; background-image: linear-gradient(rgba(167, 121, 248, .45) 1px, transparent 1px), linear-gradient(90deg, rgba(94, 242, 122, .35) 1px, transparent 1px); background-size: 6cqw 6cqw; transform: rotateX(70deg); transform-origin: top; animation: floor 3s linear infinite; -webkit-mask: linear-gradient(transparent, #000 40%); mask: linear-gradient(transparent, #000 40%); }
@keyframes floor { to { background-position: 0 6cqw; } }
.cv-millida .mc { position: absolute; left: 16cqw; top: 50%; width: 22cqw; height: 22cqw; margin-top: -13cqw; transform-style: preserve-3d; transform: perspective(80cqw) rotateX(-22deg) rotateY(-36deg); animation: mcTurn 6s ease-in-out infinite alternate; }
@keyframes mcTurn { to { transform: perspective(80cqw) rotateX(-16deg) rotateY(-16deg) translateY(-1.2cqw); } }
.cv-millida .mc-shadow { position: absolute; left: 14cqw; top: 70%; width: 28cqw; height: 5cqw; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(.6cqw); }
.cv-millida .mc-face { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); backface-visibility: hidden; }
.cv-millida .mc-face i { display: block; }
.cv-millida .mc-front { transform: translateZ(11cqw); }
.cv-millida .mc-top { transform: rotateX(90deg) translateZ(11cqw); filter: brightness(1.18); }
.cv-millida .mc-right { transform: rotateY(90deg) translateZ(11cqw); filter: brightness(.74); }
.case:hover .cv-millida .mc { animation-duration: 2.4s; }
.cv-millida .mc-word { position: absolute; right: 7cqw; top: 26%; text-align: right; font-family: var(--font-mono); font-size: 7.4cqw; font-weight: 800; letter-spacing: .04em; line-height: 1; color: #fff; text-shadow: .5cqw .5cqw 0 #3a1478, 0 0 3cqw rgba(167, 121, 248, .6); }
.cv-millida .mc-word small { display: block; margin-top: 1.2cqw; font-size: 4.6cqw; letter-spacing: .32em; color: #8dffa0; text-shadow: .4cqw .4cqw 0 #1d4d26; }
.cv-millida .mc-chips { position: absolute; right: 7cqw; top: 62%; display: flex; gap: 1.2cqw; }
.cv-millida .mc-chips span { display: inline-flex; align-items: center; gap: .8cqw; padding: 1.1cqw 1.8cqw; border-radius: 1.4cqw; font-family: var(--font-mono); font-size: 1.9cqw; font-weight: 700; }
.cv-millida .mc-chips i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #5ef2b5; box-shadow: 0 0 1cqw #5ef2b5; }

/* Web */
.cv-web { background: radial-gradient(70% 80% at 20% 0%, rgba(142, 68, 240, .55), transparent 60%), radial-gradient(60% 60% at 100% 100%, rgba(94, 231, 255, .25), transparent 60%), #0d0820; }
.cv-web .browser { position: absolute; left: 6cqw; top: 7cqw; width: 62cqw; bottom: -4cqw; border-radius: 2.6cqw; overflow: hidden; transition: transform 1s var(--ease-out); }
.case:hover .cv-web .browser { transform: translateY(-1.5cqw); }
.cv-web .bar { display: flex; align-items: center; gap: .9cqw; padding: 1.6cqw 2cqw; border-bottom: 1px solid rgba(255,255,255,.1); }
.cv-web .bar i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #ff5f57; }
.cv-web .bar i:nth-child(2) { background: #febc2e; }
.cv-web .bar i:nth-child(3) { background: #28c840; }
.cv-web .bar span { margin-left: 2cqw; flex: 1; height: 2.6cqw; border-radius: 1cqw; background: rgba(255,255,255,.1); font-size: 1.5cqw; line-height: 2.6cqw; padding-left: 1.4cqw; color: rgba(255,255,255,.6); }
.cv-web .page { padding: 3cqw; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4cqw; }
.cv-web .h { height: 3cqw; border-radius: 1cqw; background: linear-gradient(90deg, #fff, rgba(255,255,255,.5)); margin-bottom: 1.2cqw; }
.cv-web .h.s { width: 70%; }
.cv-web .p { height: 1.2cqw; border-radius: 1cqw; background: rgba(255,255,255,.25); margin-top: 1.4cqw; }
.cv-web .p.s { width: 60%; }
.cv-web .btnm { display: inline-block; margin-top: 2.4cqw; width: 14cqw; height: 4cqw; border-radius: 99px; background: linear-gradient(135deg, #a86bff, #7424bc); box-shadow: 0 1cqw 3cqw rgba(142,68,240,.7); }
.cv-web .img { border-radius: 2cqw; background: linear-gradient(135deg, #f58bd8, #8e44f0 50%, #3b1477); min-height: 20cqw; position: relative; overflow: hidden; }
.cv-web .img::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; right: -10%; bottom: -20%; background: rgba(255,255,255,.25); }
.cv-web .code { position: absolute; right: 5cqw; bottom: 6cqw; width: 38cqw; padding: 2.4cqw; border-radius: 2.4cqw; background: rgba(10, 6, 24, .82); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 2cqw 5cqw rgba(0,0,0,.5); font-family: var(--font-mono); font-size: 1.6cqw; line-height: 1.8; transition: transform 1s var(--ease-out); }
.case:hover .cv-web .code { transform: translate(-1cqw, -1cqw); }
.cv-web .code b { color: #f58bd8; font-weight: 500; }
.cv-web .code em { color: #7ef0ff; font-style: normal; }
.cv-web .code u { color: #c9b2ff; text-decoration: none; }
.cv-web .code s { color: #5ef2b5; text-decoration: none; }
.cv-web .ai-tag { position: absolute; right: 5cqw; top: 6cqw; display: inline-flex; align-items: center; gap: 1cqw; padding: 1.2cqw 2.2cqw; border-radius: 99px; font-size: 1.9cqw; font-weight: 600; }
.cv-web .ai-tag svg { width: 2cqw; height: 2cqw; color: #f58bd8; }

/* Education */
.cv-edu { background: radial-gradient(80% 80% at 0% 0%, rgba(167, 121, 248, .45), transparent 60%), linear-gradient(160deg, #1d0d38, #0e0620); }
.cv-edu .cv-inner { padding: 6cqw; display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2.4cqw; }
.cv-edu .cv-inner > div { border-radius: 2.6cqw; padding: 2.6cqw; position: relative; overflow: hidden; }
.cv-edu .e-num { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #c9b2ff, #8e44f0); color: #1a0b33; }
.cv-edu .e-num b { font-size: 14cqw; font-weight: 800; letter-spacing: -.06em; line-height: .85; }
.cv-edu .e-num span { font-size: 2.1cqw; font-weight: 700; line-height: 1.2; }
.cv-edu .e-num i { display: block; height: 1cqw; border-radius: 1cqw; background: rgba(26, 11, 51, .35); margin-top: 1cqw; }
.cv-edu .e-bars { display: flex; align-items: flex-end; gap: 1cqw; }
.cv-edu .e-bars i { flex: 1; border-radius: .8cqw .8cqw .3cqw .3cqw; background: linear-gradient(180deg, #f58bd8, #8e44f0); height: var(--h); transform-origin: bottom; animation: grow 2.4s var(--ease-out) infinite alternate; }
.cv-edu .e-bars i:nth-child(2) { animation-delay: -.4s; }
.cv-edu .e-bars i:nth-child(3) { animation-delay: -.8s; }
.cv-edu .e-bars i:nth-child(4) { animation-delay: -1.2s; }
@keyframes grow { from { transform: scaleY(.45); } }
.cv-edu .e-donut { display: grid; place-items: center; }
.cv-edu .e-donut i { width: 72%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#f58bd8 0 38%, #a779f8 0 72%, #5ee7ff 0 100%); -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%); mask: radial-gradient(circle, transparent 46%, #000 47%); animation: spinFlat 12s linear infinite; }
.cv-edu .e-type { grid-column: span 2; display: flex; align-items: center; gap: 3cqw; }
.cv-edu .e-type b { font-family: "Didot", "Bodoni 72", Georgia, serif; font-size: 10cqw; font-weight: 400; line-height: 1; background: linear-gradient(180deg, #fff, #c9b2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cv-edu .e-type span { flex: 1; display: grid; gap: 1.2cqw; }
.cv-edu .e-type span i { height: 1.2cqw; border-radius: 1cqw; background: rgba(255,255,255,.3); }
.cv-edu .e-type span i:first-child { background: rgba(255,255,255,.75); width: 80%; height: 1.8cqw; }
.cv-edu .e-type span i:last-child { width: 55%; }

/* ---------- "Your project is next" tile ---------- */
.case.case-cta {
  justify-content: center; align-items: flex-start; gap: 10px;
  padding: 34px 30px;
  background: linear-gradient(160deg, rgba(142, 68, 240, .34), rgba(116, 36, 188, .06)), rgba(26, 12, 46, .5);
}
.case-cta .cta-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); margin-bottom: 6px; transition: transform .7s var(--ease-spring); }
.case-cta .cta-ico svg { width: 26px; height: 26px; color: var(--pink); filter: drop-shadow(0 0 10px var(--pink)); }
.case-cta:hover .cta-ico { transform: rotate(-12deg) scale(1.1); }
.case-cta .case-title { margin-top: 0; }
.case-cta .btn { margin-top: 14px; pointer-events: none; }

/* ==========================================================================
   Websites
   ========================================================================== */
.sites-count { display: flex; align-items: center; gap: 16px; padding: 18px 24px; border-radius: var(--r-l); max-width: 340px; }
.sites-count b { font-family: var(--font); font-size: 58px; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(180deg, #fff, #c9b2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sites-count span { font-size: 14px; color: var(--text-2); line-height: 1.35; }

.site { display: flex; flex-direction: column; padding: 10px 10px 22px; border-radius: var(--r-xl); transition: transform .6s var(--ease-spring), box-shadow .5s; }
.site:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(201,178,255,.2), 0 40px 80px -30px rgba(91, 33, 182, .75); }
.site-browser { position: relative; border-radius: calc(var(--r-xl) - 10px); overflow: hidden; background: #0c0718; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px -24px rgba(0,0,0,.8); isolation: isolate; }
.site-browser[role="button"] { cursor: pointer; }
.sb-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.07); }
.sb-bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.sb-bar i:nth-child(2) { background: #febc2e; }
.sb-bar i:nth-child(3) { background: #28c840; }
.sb-url {
  flex: 1; min-width: 0; margin-left: 10px; height: 24px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 8px; background: rgba(255,255,255,.07);
  font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-url::before { content: ""; flex: none; width: 9px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'><path d='M2 4V3a2.5 2.5 0 0 1 5 0v1h.5A1.5 1.5 0 0 1 9 5.5v3A1.5 1.5 0 0 1 7.5 10h-6A1.5 1.5 0 0 1 0 8.5v-3A1.5 1.5 0 0 1 1.5 4H2Zm1 0h3V3a1.5 1.5 0 0 0-3 0v1Z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'><path d='M2 4V3a2.5 2.5 0 0 1 5 0v1h.5A1.5 1.5 0 0 1 9 5.5v3A1.5 1.5 0 0 1 7.5 10h-6A1.5 1.5 0 0 1 0 8.5v-3A1.5 1.5 0 0 1 1.5 4H2Zm1 0h3V3a1.5 1.5 0 0 0-3 0v1Z'/></svg>") center / contain no-repeat; }
.sb-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.sb-screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transition: object-position 1.4s var(--ease-out); }
.sb-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, rgba(255,255,255,.12), transparent 30%); }
/* the page scrolls inside the frame on hover, like a real visit */
.site-browser:hover .sb-screen img,
.site-browser:focus-visible .sb-screen img,
.site-browser.is-auto .sb-screen img { object-position: 50% 100%; transition: object-position 7s cubic-bezier(.45, 0, .55, 1); }

.site--featured { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: 12px; margin-bottom: 20px; }
.site--featured:hover { transform: translateY(-4px); }
.site--featured .site-body { padding: 16px 20px 16px 0; }
.site--featured .site-title { font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -.045em; line-height: 1.02; }
.site--featured .site-short { font-size: 16.5px; }
.site-done { display: grid; gap: 9px; margin: 18px 0 4px; }
.site-done li { display: flex; gap: 10px; font-size: 15px; color: var(--text); line-height: 1.45; }
.site-done li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: rgba(201,178,255,.16) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m6 12.5 4 4L18 8.5' fill='none' stroke='%23c9b2ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat; }
.site-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.sites-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.site-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 12px 0; }
.site-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.site-type { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--lilac); padding: 4px 10px; border-radius: 999px; background: rgba(142, 68, 240, .16); }
.site-industry { font-size: 13px; color: var(--text-3); }
.site-link { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.07); transition: transform .5s var(--ease-spring), background-color .3s; }
.site-link svg { width: 15px; height: 15px; }
.site-link:hover { background: var(--violet-2); transform: scale(1.1); }
.site-title { font-family: var(--font); font-size: clamp(21px, 1.8vw, 26px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-top: 6px; }
.site-short { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.site-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.site-stack span { font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 8px; color: var(--text-2); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.site .link-btn { margin-top: auto; padding-top: 14px; align-self: flex-start; }

.sites-more { margin-top: 48px; }
.sites-more-title { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.sites-mini { display: flex; flex-wrap: wrap; gap: 10px; }
.mini { flex: 0 1 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: transform .5s var(--ease-spring), background-color .3s, box-shadow .3s; }
a.mini:hover { transform: translateY(-3px); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(201,178,255,.35), 0 14px 30px -16px rgba(142,68,240,.8); }
.mini-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-family: var(--font); font-size: 17px; font-weight: 800; background: linear-gradient(135deg, rgba(168,107,255,.9), rgba(116,36,188,.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.mini-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.mini-txt b { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.mini-txt small { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-tag { flex: none; display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.mini-tag svg { width: 12px; height: 12px; }
.mini-tag.is-dev { padding: 4px 9px; border-radius: 999px; background: rgba(255,179,107,.12); color: #ffcf9e; }

.sites-cta.glass { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--r-xl); background: linear-gradient(120deg, rgba(142,68,240,.3), rgba(116,36,188,.06)), rgba(26,12,46,.45); }
.sites-cta h3 { font-family: var(--font); font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.03em; }
.sites-cta p { margin-top: 6px; color: var(--text-2); }

.sb-open { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; margin-left: 10px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; background: linear-gradient(135deg, #a86bff, #7424bc); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); transition: transform .4s var(--ease-spring), box-shadow .3s; }
.sb-open svg { width: 12px; height: 12px; }
.sb-open:hover { transform: scale(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 20px -6px rgba(142,68,240,.9); }
.sb-screen--scroll { aspect-ratio: auto; height: min(58vh, 560px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.3) transparent; }
.sb-screen--scroll img { height: auto; object-fit: fill; transition: none; }
.sb-screen--scroll::after { display: none; }
.m-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 26px; }
.m-metric { padding: 20px; border-radius: var(--r-m); background: linear-gradient(160deg, rgba(142,68,240,.25), rgba(116,36,188,.06)); box-shadow: inset 0 0 0 1px rgba(201,178,255,.2); }
.m-metric b { display: block; font-family: var(--font); font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1; background: linear-gradient(180deg, #fff, #c9b2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-metric span { display: block; margin-top: 8px; font-size: 14px; color: var(--text-2); }
.m-process { display: grid; gap: 10px; margin: 0; }
.m-process div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,.1); }
.m-process div:last-child { padding-bottom: 0; border-bottom: 0; }
.m-process dt { font-size: 15px; color: var(--text-2); }
.m-process dd { margin: 0; font-size: 15px; font-weight: 600; text-align: right; }
.m-block .m-tools { margin-top: 16px; }

/* ==========================================================================
   Full cycle (orbit)
   ========================================================================== */
.cycle { overflow: hidden; }
.cycle-stage { position: relative; height: clamp(360px, 42vw, 520px); max-width: 1000px; margin: 0 auto; }
.cycle-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle-core { position: absolute; left: 50%; top: 50%; width: clamp(130px, 16vw, 190px); aspect-ratio: 1; transform: translate(-50%, -58%); display: grid; place-items: center; z-index: 50; }
.cycle-core::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #7a3fd6, #3b1477 60%, #1c0a36); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -20px 40px rgba(10,0,30,.6), 0 0 90px rgba(142, 68, 240, .7); }
.cycle-core-glow { position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle, rgba(142, 68, 240, .45), transparent 60%); animation: breathe 5s ease-in-out infinite; z-index: -1; }
.neon-xl { width: 52%; height: auto; aspect-ratio: 100 / 90; position: relative; animation: neonFlicker 6s infinite; }
@keyframes neonFlicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .6; } 94% { opacity: 1; } 96% { opacity: .75; } }
.cycle-nodes { position: absolute; inset: 0; }
.cycle-node {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 18px 0 8px;
  border-radius: 999px;
  font-family: var(--font); font-size: 15px; font-weight: 600; white-space: nowrap;
  will-change: transform, opacity;
  transition: box-shadow .3s, background-color .3s;
}
.cycle-node .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, rgba(168,107,255,.9), rgba(116,36,188,.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.cycle-node .ico svg { width: 18px; height: 18px; stroke-width: 1.8; filter: drop-shadow(0 0 4px rgba(255,255,255,.5)); }
.cycle-node.is-front { box-shadow: inset 0 1px 0 0 rgba(255,255,255,.3), inset 0 0 0 1px rgba(201,178,255,.55), 0 10px 40px -8px rgba(142, 68, 240, .9); }
.cycle-caption {
  max-width: 640px; margin: 8px auto 0;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 22px;
  min-height: 76px;
}
.cc-label { flex: none; font-family: var(--font); font-weight: 700; font-size: 15px; color: #fff; padding: 7px 14px; border-radius: 999px; background: linear-gradient(135deg, #a86bff, #7424bc); }
.cc-text { font-size: 15px; color: var(--text-2); line-height: 1.45; transition: opacity .3s; }

/* ==========================================================================
   Bento
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(280px, auto); gap: 16px; }
.bento-item { padding: 28px; border-radius: var(--r-xl); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: transform .6s var(--ease-spring); }
.bento-item:hover { transform: translateY(-6px); }
.bento-item h3 { font-family: var(--font); font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-top: 18px; }
.bento-item p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.b-wide { grid-column: span 2; flex-direction: row; align-items: stretch; gap: 20px; }
.b-wide .bento-copy { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.b-wide h3 { font-size: clamp(26px, 2.6vw, 34px); }
.b-tall { grid-row: span 2; justify-content: space-between; }

.merge { position: relative; flex: 1.1; min-height: 220px; }
.merge-lines { position: absolute; inset: 14% 10%; width: 80%; height: 72%; overflow: visible; }
.merge-lines path { fill: none; stroke: rgba(201, 178, 255, .5); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.is-in .merge-lines path { animation: draw 1.4s .4s var(--ease-io) forwards; }
.merge-chip { position: absolute; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: transform .7s var(--ease-spring); white-space: nowrap; }
.m1 { left: 0; top: 4%; } .m2 { right: 0; top: 4%; } .m3 { left: 0; bottom: 4%; } .m4 { right: 0; bottom: 4%; }
.b-wide:hover .m1 { transform: translate(14px, 12px); } .b-wide:hover .m2 { transform: translate(-14px, 12px); }
.b-wide:hover .m3 { transform: translate(14px, -12px); } .b-wide:hover .m4 { transform: translate(-14px, -12px); }
.merge-core { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #7a3fd6, #2a0f50); box-shadow: 0 0 0 6px rgba(142,68,240,.18), 0 0 50px rgba(142,68,240,.8); transition: transform .7s var(--ease-spring); }
.merge-core img { width: 82%; margin: 14% auto 0; }
.b-wide:hover .merge-core { transform: scale(1.12); }

.funnel { display: grid; gap: 6px; justify-items: center; margin-bottom: auto; }
.funnel span { width: var(--w); padding: 8px 0; text-align: center; border-radius: 10px; font-size: 13px; font-weight: 600; background: linear-gradient(90deg, rgba(142,68,240,.25), rgba(142,68,240,.55), rgba(142,68,240,.25)); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); transform: scaleX(.6); opacity: 0; transition: transform .9s var(--ease-spring), opacity .6s; }
.funnel span:last-child { background: linear-gradient(135deg, #a86bff, #f58bd8); }
.is-in .funnel span { transform: none; opacity: 1; }
.is-in .funnel span:nth-child(2) { transition-delay: .12s; } .is-in .funnel span:nth-child(3) { transition-delay: .24s; } .is-in .funnel span:nth-child(4) { transition-delay: .36s; }

.globe-wrap { position: relative; flex: 1; display: grid; place-items: center; min-height: 260px; }
.globe { position: relative; width: min(220px, 80%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, #3d1a78, #160830 70%); box-shadow: inset 0 0 0 1px rgba(201,178,255,.25), 0 0 60px rgba(142,68,240,.45); }
.globe-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(201, 178, 255, .7) 1.1px, transparent 1.3px); background-size: 11px 11px; animation: globeSpin 18s linear infinite; -webkit-mask: radial-gradient(circle at 50% 50%, #000 40%, transparent 72%); mask: radial-gradient(circle at 50% 50%, #000 40%, transparent 72%); }
@keyframes globeSpin { to { background-position: 220px 0; } }
.globe-shade { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.25), transparent 35%), radial-gradient(circle at 70% 80%, rgba(0,0,0,.55), transparent 60%); }
.geo { position: absolute; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(17, 7, 31, .6); box-shadow: inset 0 0 0 1px rgba(201,178,255,.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: float 5s ease-in-out infinite; }
.geo::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); vertical-align: 1px; }
.g1 { left: 4%; top: 10%; } .g2 { right: 4%; top: 22%; animation-delay: -1s; } .g3 { right: 8%; bottom: 14%; animation-delay: -2s; } .g4 { left: 2%; bottom: 26%; animation-delay: -3s; }

.ai-chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: auto; }
.ai-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 10px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); position: relative; overflow: hidden; }
.ai-chips span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(201,178,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 3.2s ease-in-out infinite; }
.ai-chips span:nth-child(2)::after { animation-delay: .3s; } .ai-chips span:nth-child(3)::after { animation-delay: .6s; } .ai-chips span:nth-child(4)::after { animation-delay: .9s; } .ai-chips span:nth-child(5)::after { animation-delay: 1.2s; }
.ai-chips img { width: 20px; height: 20px; padding: 2px; border-radius: 6px; background: #fff; object-fit: contain; }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ai-spark { position: absolute; color: var(--pink); filter: drop-shadow(0 0 8px var(--pink)); animation: twinkle 2.4s ease-in-out infinite; }
.ai-spark.s1 { width: 18px; height: 18px; right: 6px; top: -6px; }
.ai-spark.s2 { width: 12px; height: 12px; right: 34px; top: 22px; animation-delay: -1.2s; color: var(--lilac); }

.checks { display: grid; gap: 9px; margin-bottom: auto; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.checks svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(94, 242, 181, .18); color: var(--mint); }
.checks .is-progress i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(201,178,255,.25); border-top-color: var(--lilac); animation: spinFlat 1s linear infinite; }

.chat { display: grid; gap: 8px; margin-bottom: auto; }
.bubble { max-width: 90%; padding: 10px 14px; font-size: 13.5px; line-height: 1.4; border-radius: 18px 18px 18px 6px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.bubble.out { justify-self: end; border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, #a86bff, #7424bc); }
.typing { display: inline-flex; gap: 4px; padding: 13px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ==========================================================================
   Process
   ========================================================================== */
.process-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.process-side { position: sticky; top: 130px; }
.process-side .btn { margin-top: 30px; }
.steps { position: relative; display: grid; gap: 18px; padding-left: 74px; }
.step-line { position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.08); }
.step-line i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(180deg, #c9b2ff, #8e44f0, #f58bd8); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 12px rgba(142,68,240,.8); }
.step { position: relative; }
.step-dot {
  position: absolute; left: -74px; top: 18px;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-3);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  transition: color .4s, box-shadow .5s, background-color .5s, transform .6s var(--ease-spring);
}
.step.is-active .step-dot { color: #fff; background: linear-gradient(135deg, #a86bff, #7424bc); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 6px rgba(142,68,240,.18), 0 0 30px rgba(142,68,240,.8); transform: scale(1.06); }
.step-body { padding: 26px 28px; border-radius: var(--r-l); transition: transform .6s var(--ease-spring), opacity .5s; opacity: .55; }
.step.is-active .step-body { opacity: 1; }
.step-body:hover { transform: translateX(6px); }
.step-body h3 { font-family: var(--font); font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.step-body p { margin-top: 8px; color: var(--text-2); font-size: 16px; }

/* ==========================================================================
   Stack
   ========================================================================== */
.stack .seg-tabs { display: flex; width: max-content; max-width: 100%; margin: 0 auto 36px; overflow-x: auto; scrollbar-width: none; }
.stack .seg-tabs::-webkit-scrollbar { display: none; }
.stack-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; min-height: 196px; align-content: flex-start; }
.tool {
  flex: 0 1 calc(25% - 10.5px);
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: var(--r-m);
  opacity: 0; transform: translateY(16px) scale(.97);
  animation: toolIn .6s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 45ms);
  transition: transform .5s var(--ease-spring), box-shadow .4s;
}
@keyframes toolIn { to { opacity: 1; transform: none; } }
.tool:hover { transform: translateY(-4px) !important; }
.tool .app-ico { width: 46px; height: 46px; border-radius: 12px; }
.tool div > b { display: block; font-family: var(--font); font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.tool div > span { display: block; font-size: 13.5px; color: var(--text-3); margin-top: 2px; }

/* ==========================================================================
   Formats
   ========================================================================== */
.fmt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; perspective: 1400px; }
.fmt-card { display: flex; flex-direction: column; padding: 34px 30px 30px; border-radius: var(--r-xl); transition: transform .7s var(--ease-out), box-shadow .5s; }
.fmt-card.is-featured { background: linear-gradient(180deg, rgba(142, 68, 240, .32), rgba(116, 36, 188, .08)), rgba(26, 12, 46, .4); box-shadow: inset 0 1px 0 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(201,178,255,.3), 0 40px 90px -30px rgba(142, 68, 240, .65); }
.fmt-badge { position: absolute !important; top: 22px; right: 22px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff; color: var(--violet); }
.fmt-ico {
  position: relative; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 20px;
  color: var(--lilac);
  background:
    radial-gradient(circle at 50% 38%, rgba(142, 68, 240, .55), rgba(142, 68, 240, .06) 70%),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(201,178,255,.18), inset 0 -10px 18px -10px rgba(245,139,216,.35), 0 14px 30px -14px rgba(142, 68, 240, .8);
  transition: transform .7s var(--ease-spring), box-shadow .5s;
}
.fmt-ico::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.22), transparent 42%); pointer-events: none; }
.fmt-ico svg { width: 30px; height: 30px; stroke: url(#icoGrad); stroke-width: 1.6; filter: drop-shadow(0 0 5px rgba(201, 178, 255, .75)) drop-shadow(0 0 14px rgba(142, 68, 240, .6)); transition: transform .7s var(--ease-spring); }
.fmt-card.is-featured .fmt-ico { background: radial-gradient(circle at 50% 38%, rgba(245, 139, 216, .45), rgba(142, 68, 240, .2) 70%), linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); }
.fmt-card:hover .fmt-ico { transform: rotate(-8deg) scale(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(201,178,255,.4), inset 0 -10px 18px -10px rgba(245,139,216,.5), 0 18px 40px -12px rgba(142, 68, 240, 1); }
.fmt-card:hover .fmt-ico svg { transform: translateY(-2px) scale(1.1); }
.fmt-card h3 { margin-top: 24px; font-family: var(--font); font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.fmt-card p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }
.fmt-card ul { margin: 22px 0 28px; display: grid; gap: 10px; }
.fmt-card li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.fmt-card li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: rgba(201,178,255,.16) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m6 12.5 4 4L18 8.5' fill='none' stroke='%23c9b2ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat; }
.fmt-card .btn { margin-top: auto; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: 130px; }
.faq-side .btn { margin-top: 28px; }
.acc { display: grid; gap: 12px; }
.acc-item { border-radius: var(--r-m); transition: box-shadow .4s; }
.acc-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; text-align: left; font-family: var(--font); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.acc-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.07); transition: transform .5s var(--ease-spring), background-color .3s; }
.acc-ico svg { width: 16px; height: 16px; }
.acc-item.is-open .acc-ico { transform: rotate(135deg); background: var(--violet-2); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.acc-a > div { overflow: hidden; }
.acc-a p { padding: 0 24px 24px; color: var(--text-2); font-size: 16px; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .5s var(--ease-out); }
.acc-item.is-open .acc-a { grid-template-rows: 1fr; }
.acc-item.is-open .acc-a p { opacity: 1; transform: none; transition-delay: .1s; }
.acc-item.is-open { box-shadow: inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(201,178,255,.25), 0 24px 60px -28px rgba(91, 33, 182, .7); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { overflow: hidden; }
.contact-glow { position: absolute; left: 50%; top: 40%; width: 1200px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(116, 36, 188, .45), transparent); pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(36px, 4.5vw, 72px); align-items: center; }
.contact .h2-xl { font-size: clamp(38px, 5vw, 70px); }
.contact-facts { display: grid; gap: 12px; margin-top: 36px; }
.contact-facts li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text-2); }
.contact-facts svg { flex: none; width: 22px; height: 22px; color: var(--lilac); filter: drop-shadow(0 0 6px rgba(167, 121, 248, .6)); }

.contact-panel { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-xl); display: grid; gap: 22px; }
.contact-cards { display: grid; gap: 12px; }
.ccard {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 16px 16px 16px;
  border-radius: var(--r-l);
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .5s var(--ease-spring), box-shadow .4s, background-color .3s;
}
.ccard:hover { transform: translateY(-3px); background: rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(201,178,255,.3), 0 18px 40px -20px rgba(142,68,240,.8); }
.ccard--tg { background: linear-gradient(120deg, rgba(42, 171, 238, .16), rgba(142, 68, 240, .1)); }
.ccard-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--c); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 24px -10px rgba(0,0,0,.6); }
.ccard-ico svg { width: 24px; height: 24px; color: #fff; }
.ccard-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ccard-txt small { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard-txt b { font-family: var(--font); font-size: clamp(17px, 1.7vw, 21px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard-actions { flex: none; display: flex; align-items: center; gap: 6px; }

.msg-tips { padding: 4px 6px 0; }
.msg-tips-title { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.msg-tips ol { display: grid; gap: 10px; counter-reset: tip; }
.msg-tips li { display: flex; align-items: baseline; gap: 12px; font-size: 15.5px; color: var(--text-2); counter-increment: tip; }
.msg-tips li::before { content: counter(tip); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #a86bff, #7424bc); transform: translateY(-1px); }
.contact-panel .socials { margin-top: 0; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 8px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .5s var(--ease-spring), background-color .3s, box-shadow .3s;
}
.social i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c, #8e44f0); }
.social svg { width: 17px; height: 17px; color: #fff; }
.social:hover { transform: translateY(-3px); background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(201,178,255,.35), 0 12px 30px -14px var(--c, #8e44f0); }
.socials-sm .social { height: 40px; padding: 0 6px; }
.socials-sm .social span { display: none; }
.socials-sm .social i { width: 28px; height: 28px; }
.socials-sm { margin-top: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; padding: 72px 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: grid; gap: 14px; max-width: 280px; }
.footer-brand p { color: var(--text-2); font-size: 15px; }
.footer-logo { width: 46px; height: 42px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(140px, auto)); gap: 24px clamp(28px, 5vw, 72px); }
.fcol { display: flex; flex-direction: column; gap: 10px; }
.fcol h4 { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.fcol a, .fcol-list a { color: var(--text-2); font-size: 15px; transition: color .3s, transform .4s var(--ease-spring); }
.fcol-list { display: flex; flex-direction: column; gap: 10px; }
.fcol a:hover, .fcol-list a:hover { color: #fff; transform: translateX(3px); }
.footer-brand .socials-sm { margin-top: 6px; }
.footer-word {
  margin: 40px 0 0;
  font-family: var(--font); font-weight: 800;
  font-size: clamp(64px, 17.5vw, 250px);
  letter-spacing: -.06em; line-height: .8;
  text-align: center;
  background: linear-gradient(180deg, rgba(201, 178, 255, .35), rgba(201, 178, 255, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
  transition: letter-spacing 1.2s var(--ease-out);
}
.footer:hover .footer-word { letter-spacing: -.035em; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.footer-hint kbd { margin: 0 2px; }
.footer-privacy { color: var(--text-3); }
.footer-top-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); transition: color .3s; }
.footer-top-link svg { width: 15px; height: 15px; transform: rotate(-45deg); transition: transform .4s var(--ease-spring); }
.footer-top-link:hover { color: #fff; }
.footer-top-link:hover svg { transform: rotate(-45deg) translate(2px, -2px); }

.m-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.m-tools .app-ico { width: 20px; height: 20px; border-radius: 6px; margin-left: -5px; }
.m-tools > span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }

/* ==========================================================================
   Command palette (Spotlight-like)
   ========================================================================== */
.cmdk { position: fixed; inset: 0; z-index: 160; display: flex; justify-content: center; align-items: flex-start; padding: 14vh 16px 16px; visibility: hidden; }
.cmdk.is-open { visibility: visible; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(6, 2, 14, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.cmdk.is-open .cmdk-backdrop { opacity: 1; }
.cmdk-panel { width: min(620px, 100%); border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, rgba(48, 22, 84, .78), rgba(24, 10, 44, .86)); opacity: 0; transform: scale(.96) translateY(-10px); transition: opacity .3s, transform .45s var(--ease-soft-spring); }
.cmdk.is-open .cmdk-panel { opacity: 1; transform: none; }
.cmdk-search { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cmdk-search svg { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.cmdk-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 18px; font-family: var(--font); }
.cmdk-search input::placeholder { color: var(--text-3); }
.cmdk-list { max-height: min(400px, 50vh); overflow: auto; padding: 8px; }
.cmdk-group { padding: 10px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .15s; }
.cmdk-item .ci-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--lilac); background: rgba(255,255,255,.07); flex: none; }
.cmdk-item .ci-ico svg { width: 16px; height: 16px; }
.cmdk-item .ci-hint { margin-left: auto; font-size: 12px; color: var(--text-3); }
.cmdk-item.is-sel { background: linear-gradient(135deg, rgba(168,107,255,.9), rgba(116,36,188,.9)); }
.cmdk-item.is-sel .ci-ico { color: #fff; background: rgba(255,255,255,.2); }
.cmdk-item.is-sel .ci-hint { color: rgba(255,255,255,.8); }
.cmdk-empty { padding: 30px; text-align: center; color: var(--text-3); }
.cmdk-foot { display: flex; gap: 18px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.cmdk-foot kbd { margin-right: 3px; }

/* ==========================================================================
   Dynamic-island toast
   ========================================================================== */
.island {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 180;
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px 0 8px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
  transform: translateX(-50%) translateY(30px) scale(.4, .6);
  opacity: 0;
  transition: transform .6s var(--ease-soft-spring), opacity .3s, width .4s;
  pointer-events: none;
  white-space: nowrap;
}
.island.is-on { transform: translateX(-50%); opacity: 1; }
.island-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: #0a2a1d; }
.island-ico svg { width: 16px; height: 16px; }
.island.is-warn .island-ico { background: #ffb36b; color: #3a1b00; }
.island-ico b { font-size: 15px; font-weight: 800; line-height: 1; }

/* ==========================================================================
   Back to top
   ========================================================================== */
.to-top { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 80; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .4s, transform .6s var(--ease-spring); pointer-events: none; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top-ring { position: absolute !important; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke: var(--violet-3); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--sp, 0)); filter: drop-shadow(0 0 4px var(--violet-3)); }
.to-top-arrow { width: 18px; height: 18px; transform: rotate(-45deg); }

/* ==========================================================================
   Language switch transition
   ========================================================================== */
/* the page-wide crossfade is replaced by the circular reveal driven from JS */
html.lang-vt::view-transition-old(root),
html.lang-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.lang-vt::view-transition-new(root) { z-index: 2; }
.lang-vt .cursor { visibility: hidden; }
html.lang-vt * { view-transition-name: none !important; }

/* fallback: blur-swap the text in place */
.lang-swap main, .lang-swap .nav-links, .lang-swap .nav-cta, .lang-swap .footer, .lang-swap .mmenu-inner {
  opacity: .15; filter: blur(10px); translate: 0 6px;
}
main, .nav-links, .nav-cta, .footer, .mmenu-inner { transition: opacity .26s var(--ease-out), filter .26s var(--ease-out), translate .36s var(--ease-out); }


/* ==========================================================================
   Multi-page: navigation between pages
   ========================================================================== */
/* smooth cross-page transitions (Chrome / Edge / Safari 18.2+); covers morph card → page */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .32s var(--ease-out) both; }
::view-transition-new(root) { animation: vtIn .55s var(--ease-out) both; }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease-out); }
::view-transition-old(*):only-child { animation: vtOut .32s var(--ease-out) both; }
::view-transition-new(*):only-child { animation: vtIn .55s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }
.nav-wrap { view-transition-name: site-nav; }
.bg { view-transition-name: site-bg; }
::view-transition-group(site-nav), ::view-transition-group(site-bg) { animation: none; }
::view-transition-old(site-bg) { display: none; }
::view-transition-new(site-bg) { animation: none; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* hide Russian until English is swapped in (failsafe reveal after 1.6 s) */
.lang-pending body { opacity: 0; animation: langPend 0s 1.6s forwards; }
@keyframes langPend { to { opacity: 1; } }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- mega menus ---------- */
/* both menus hang from the centre of the link row (not from their own link),
   so switching Кейсы ↔ Сайты keeps the panel in one place */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: min(560px, 80vw);
  padding: 12px;
  border-radius: 24px;
  background: var(--mega-bg);
  box-shadow: var(--mega-shadow);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -8px) scale(.98); transform-origin: 50% 0;
  transition: opacity .25s var(--ease-out), transform .45s var(--ease-soft-spring), visibility .25s;
  z-index: 5;
}
.nav-links { --mega-bg: linear-gradient(180deg, #281248, #160a28); --mega-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(201,178,255,.14), 0 30px 70px -20px rgba(0,0,0,.85), 0 0 60px -20px rgba(142,68,240,.5); }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mega--sites { width: min(720px, 86vw); }
.no-js .has-mega:hover .mega, .no-js .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: .06s; }

/* with JS: one shared panel (.mega-bg) resizes between the menus while their contents slide across */
.js .mega { background: none; box-shadow: none; transform: translate(-50%, -8px); transition: opacity .22s var(--ease-out), transform .45s var(--ease-soft-spring), visibility .22s; }
.js .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: .05s; }
.mega-bg {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 4;
  width: var(--mw, 560px); height: var(--mh, 320px);
  border-radius: 24px;
  background: var(--mega-bg);
  box-shadow: var(--mega-shadow);
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -8px) scale(.98); transform-origin: 50% 0;
  transition: opacity .25s var(--ease-out), transform .45s var(--ease-soft-spring), visibility .25s;
}
.nav-links.mega-on .mega-bg { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: .05s; }
.nav-links.mega-morph .mega-bg { transition: opacity .25s var(--ease-out), transform .45s var(--ease-soft-spring), visibility .25s, width .5s var(--ease-soft-spring), height .5s var(--ease-soft-spring); transition-delay: 0s; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-grid--sites { grid-template-columns: repeat(2, 1fr); }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--text); transition: background-color .2s, transform .35s var(--ease-spring); }
.mega-item:hover, .mega-item:focus-visible { background: rgba(255,255,255,.07); transform: translateX(2px); }
.mega-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--lilac); background: radial-gradient(circle at 50% 35%, rgba(142,68,240,.5), rgba(142,68,240,.08) 70%), rgba(255,255,255,.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(201,178,255,.15); }
.mega-ico svg { width: 19px; height: 19px; }
.mega-thumb { flex: none; width: 72px; height: 45px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 6px 14px -8px rgba(0,0,0,.7); }
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mega-txt { min-width: 0; display: grid; gap: 2px; }
.mega-txt b { font-family: var(--font); font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-txt small { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-all { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--lilac); background: rgba(142,68,240,.14); transition: background-color .25s; }
.mega-all svg { width: 16px; height: 16px; transition: transform .4s var(--ease-spring); }
.mega-all:hover { background: rgba(142,68,240,.26); }
.mega-all:hover svg { transform: translateX(4px); }
.nav-links > li > a.is-active { color: #fff; }

/* mobile menu sub-links */
.mmenu-inner { overflow-y: auto; overscroll-behavior: contain; }
.mm-sub { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 12px 34px; opacity: 0; transform: translateY(8px); transition: opacity .5s .2s, transform .6s .2s var(--ease-out); }
.menu-open .mm-sub { opacity: 1; transform: none; }
.mm-sub a { padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.mmenu-links > li > a.is-active { color: var(--lilac); }

/* ---------- page heroes & breadcrumbs ---------- */
.page-hero { padding: calc(var(--nav-h) + 72px) 0 clamp(28px, 4vw, 48px); }
.crumbs-bar { padding-top: calc(var(--nav-h) + 56px); margin-bottom: -40px; position: relative; z-index: 2; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 14px; color: var(--text-3); }
.crumbs a { color: var(--text-2); transition: color .25s; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--lilac); }
.crumb-sep { opacity: .5; }
.ph-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ph-copy { max-width: 760px; }
.ph-title { font-family: var(--font); font-size: clamp(42px, 6vw, 84px); line-height: 1; letter-spacing: -.045em; font-weight: 800; background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.62)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; text-wrap: balance; }
.ph-title .text-grad { -webkit-text-fill-color: transparent; }
.seg sup { margin-left: 6px; font-size: 11px; font-weight: 700; opacity: .6; vertical-align: 0; }
.seg-platform { margin-top: 32px; }
.list-sec { padding-top: 12px; }
.page-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.page-nav a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); background: rgba(255,255,255,.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.08); transition: color .25s, background-color .25s, transform .45s var(--ease-spring); }
.page-nav a:hover { color: #fff; background: rgba(142,68,240,.2); transform: translateY(-2px); }
.page-nav svg { width: 18px; height: 18px; color: var(--lilac); }

.more-link { margin-top: 36px; }
.count-pill { position: relative; z-index: 2; display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(142,68,240,.5); }
.work-grid--home { grid-template-columns: repeat(2, 1fr); }
.site.is-gone { display: none; }

.xlink { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 22px; border-radius: var(--r-l); transition: transform .5s var(--ease-spring), box-shadow .4s; }
.xlink:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(201,178,255,.3), 0 24px 50px -24px rgba(142,68,240,.8); }
.xlink-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--lilac); background: radial-gradient(circle at 50% 35%, rgba(142,68,240,.55), rgba(142,68,240,.08) 70%), rgba(255,255,255,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.xlink-ico svg { width: 24px; height: 24px; }
.xlink-txt { flex: 1; display: grid; gap: 3px; }
.xlink-txt b { font-family: var(--font); font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.xlink-txt small { font-size: 14px; color: var(--text-3); }
.xlink-arrow { width: 20px; height: 20px; color: var(--lilac); transition: transform .4s var(--ease-spring); }
.xlink:hover .xlink-arrow { transform: translateX(5px); }

/* ---------- case & website detail pages ---------- */
.detail-hero { padding-bottom: 0; }
.dh-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.dh-title { margin-top: 14px; font-family: var(--font); font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.045em; font-weight: 800; background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.7)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.dh-short { margin-top: 16px; max-width: 620px; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); }
.dh-meta { display: grid; gap: 14px; margin: 0; padding: 20px 22px; border-radius: var(--r-m); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.dh-meta div { display: grid; gap: 3px; }
.dh-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.dh-meta dd { margin: 0; font-size: 15.5px; font-weight: 600; }
.dh-cover { position: relative; aspect-ratio: 16 / 8; border-radius: var(--r-xl); overflow: hidden; container-type: inline-size; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.08); }
.dh-cover .case-badge { left: 22px; top: 22px; font-size: 15px; padding: 9px 15px; }

.site-browser--hero { border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 40px 90px -40px rgba(0,0,0,.9); }
.site-browser--hero .sb-bar { height: 46px; }
.site-browser--hero .sb-screen--scroll { height: min(74vh, 760px); }
.sb-hint { position: absolute; left: 50%; bottom: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(17,7,31,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transform: translateX(-50%); pointer-events: none; transition: opacity .4s, transform .5s var(--ease-out); }
.sb-hint svg { width: 15px; height: 15px; animation: hintBob 1.6s ease-in-out infinite; }
@keyframes hintBob { 50% { transform: translateY(3px); } }
.site-browser.is-scrolled .sb-hint { opacity: 0; transform: translate(-50%, 10px); }

.detail-body { padding-top: clamp(48px, 6vw, 80px); }
.detail-body .m-metrics { margin: 0 0 20px; }
.db-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.db-block { padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-l); }
.db-block h2 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); }
.db-block p { color: var(--text-2); font-size: 16.5px; }
.db-block ul { display: grid; gap: 11px; }
.db-block li { display: flex; gap: 10px; font-size: 16px; }
.db-block li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--violet-3); box-shadow: 0 0 8px var(--violet-3); }
.db-block .m-tools { margin-top: 16px; }
.db-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 20px; }
.db-shot { margin: 0; padding: 0; overflow: hidden; border-radius: var(--r-l); display: flex; flex-direction: column; }
.db-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.db-shot a { display: block; overflow: hidden; flex: 1; }
.db-shot:hover img { transform: scale(1.03); }
.db-shot figcaption { padding: 12px 16px 14px; font-size: 13.5px; color: var(--text-2); border-top: 1px solid var(--line); }
.db-shot--tall { grid-column: span 3; }
.db-shot--tall img { aspect-ratio: 9 / 14; }
.db-shot--thumb { grid-column: span 4; }
.db-shot--thumb img { aspect-ratio: 16 / 9; }
.db-shot--wide { grid-column: span 6; }
.db-shot--wide img { object-fit: contain; background: #10161e; }
.db-shot--full { grid-column: span 12; }
.db-shot--full img { object-fit: contain; }
@media (max-width: 900px) {
  .db-shot--tall { grid-column: span 6; }
  .db-shot--thumb, .db-shot--wide, .db-shot--full { grid-column: span 12; }
}
.db-note { margin-top: 20px; font-size: 14px; color: var(--text-3); }

.pager-sec { padding-top: 0; padding-bottom: clamp(48px, 6vw, 80px); }
#caseDetail + .cta-sec, #siteDetail + .cta-sec { padding-top: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pg-card { display: flex; flex-direction: column; padding: 10px 10px 18px; border-radius: var(--r-xl); transition: transform .55s var(--ease-spring), box-shadow .45s; }
.pg-card:hover { transform: translateY(-5px); box-shadow: inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(201,178,255,.25), 0 30px 70px -30px rgba(91,33,182,.8); }
.pg-cover { position: relative; aspect-ratio: 16 / 7.5; border-radius: calc(var(--r-xl) - 10px); overflow: hidden; container-type: inline-size; }
.pg-shot { background: #fff; }
.pg-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pg-txt { display: grid; gap: 4px; padding: 16px 12px 0; }
.pg-txt small { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--text-3); }
.pg-txt small svg { width: 15px; height: 15px; }
.pg-prev .pg-txt small svg { transform: rotate(180deg); }
.pg-next .pg-txt { text-align: right; justify-items: end; }
.pg-next .pg-txt small { justify-content: flex-end; flex-direction: row-reverse; }
.pg-txt b { font-family: var(--font); font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -.03em; }
.pager-all { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- CTA band ---------- */
.cta-sec { padding-top: clamp(40px, 6vw, 80px); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-xl); background: radial-gradient(80% 140% at 100% 0%, rgba(142,68,240,.38), transparent 60%), linear-gradient(120deg, rgba(116,36,188,.22), rgba(26,12,46,.4)); }
.cta-band-copy { max-width: 620px; }
.cta-band .eyebrow { margin-bottom: 14px; }
.cta-band .h2 { font-size: clamp(32px, 4.2vw, 56px); }
.cta-band .section-sub { margin-top: 14px; }
.cta-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- 404 ---------- */
.nf { min-height: 86vh; display: grid; place-items: center; padding: calc(var(--nav-h) + 60px) 0 60px; text-align: center; }
.nf-inner { display: grid; justify-items: center; gap: 18px; }
.nf-logo { width: 90px; height: 81px; animation: neonFlicker 5s infinite; }
.nf-code { font-family: var(--font); font-size: clamp(90px, 16vw, 200px); font-weight: 800; line-height: .9; letter-spacing: -.06em; background: linear-gradient(180deg, #d9c6ff, rgba(142,68,240,.25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js [data-reveal] { opacity: 0; translate: 0 32px; filter: blur(10px); transition: opacity 1s var(--ease-out), translate 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; filter: none; }
.js .hero [data-reveal] { transition-duration: 1.2s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links > li > a { padding: 9px 11px; }
  .cmdk-open .kbd-hint { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-tall { grid-row: span 1; }
  .tool { flex-basis: calc(33.333% - 9.4px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --nav-h: 58px; }
  .nav-links, .nav-cta, .cmdk-open { display: none; }
  .burger { display: block; }
  .nav { padding: 0 6px 0 16px; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { order: -1; max-width: 380px; }
  .hero-copy { text-align: left; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .sites-grid { grid-template-columns: repeat(2, 1fr); }
  .dh-head { grid-template-columns: 1fr; align-items: start; }
  .db-grid { grid-template-columns: 1fr; }
  .site--featured { grid-template-columns: 1fr; padding: 10px 10px 22px; }
  .site--featured .site-body { padding: 8px 12px 0; }
  .process-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .process-side, .faq-side { position: static; }
  .fmt-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .m-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { min-height: auto; padding-bottom: 72px; padding-top: calc(var(--nav-h) + 36px); }
  .hero-grid { gap: 36px; }
  .hero-visual { max-width: 270px; }
  .orb { left: 10%; right: 10%; }
  .status-pill { margin-bottom: 20px; }
  .hero-ctas { margin-top: 28px; }
  .hero-meta { margin-top: 26px; }
  .float-chip { height: 36px; font-size: 12.5px; padding: 0 11px 0 6px; border-radius: 12px; gap: 7px; }
  .float-chip.chip-sm { height: 32px; font-size: 12px; }
  .float-chip .app-ico { width: 24px; height: 24px; border-radius: 7px; }
  .hand-note { font-size: 22px; left: -6%; top: -8%; }
  .hand-arrow { width: 90px; left: 56px; }
  .hand-quote { font-size: 18px; max-width: 200px; right: -8%; bottom: -4%; }
  .scroll-cue { display: none; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .svc-grid, .work-grid, .bento, .sites-grid { grid-template-columns: 1fr; }
  .work-grid--home { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pg-next .pg-txt { text-align: left; justify-items: start; }
  .pg-next .pg-txt small { justify-content: flex-start; flex-direction: row; }
  .dh-cover { aspect-ratio: 16 / 11; }
  .site-browser--hero .sb-screen--scroll { height: 64vh; }
  .cta-band-actions .btn { flex: 1 1 auto; }
  .xlink { flex-wrap: wrap; }
  .crumbs { margin-bottom: 20px; }
  .sites-count { max-width: none; width: 100%; padding: 16px 20px; }
  .sites-count b { font-size: 46px; }
  .sites-cta.glass { padding: 24px 22px; }
  .sites-cta .btn { width: 100%; }
  .mini { flex: 1 1 100%; }
  .sb-open { padding: 0 10px; }
  .sb-screen--scroll { height: 52vh; }
  .tool { flex-basis: 100%; }
  .case.is-wide { grid-column: auto; }
  .case.is-wide .case-cover { aspect-ratio: 16 / 11; }
  .b-wide { grid-column: auto; flex-direction: column-reverse; }
  .merge { min-height: 200px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 22px 18px; }
  .stat p { font-size: 14px; }
  .seg-filter { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg-filter::-webkit-scrollbar { display: none; }
  .seg-filter button { padding: 0 14px; }
  .section-head--row { align-items: flex-start; }
  .steps { padding-left: 62px; }
  .step-dot { left: -62px; width: 44px; height: 44px; font-size: 12px; }
  .step-line { left: 21px; }
  .step-body { padding: 22px; }
  .ccard { flex-wrap: wrap; gap: 12px 14px; }
  .ccard-actions { width: 100%; }
  .ccard-actions .btn { flex: 1; }
  .cycle-stage { height: 380px; }
  .cycle-node { height: 40px; font-size: 13px; padding: 0 14px 0 6px; }
  .cycle-node .ico { width: 28px; height: 28px; }
  .cycle-node .ico svg { width: 15px; height: 15px; }
  .cycle-caption { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .fcol:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .fcol:first-child h4 { grid-column: 1 / -1; }
  .footer-hint { display: none; }
  .island { max-width: calc(100vw - 32px); }
  .island-text { overflow: hidden; text-overflow: ellipsis; }
  .to-top { right: 16px; width: 46px; height: 46px; }
}

@media (max-width: 420px) {
  .lang-switch button { padding: 0 9px; }
  .hero-meta li + li::before { display: none; }
  .hero-meta { gap: 8px 16px; }
}

@media (hover: none) {
  .glass::after { display: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none !important; }
  .js [data-reveal] { opacity: 1; translate: none; filter: none; }
  .preloader { display: none; }
  .reveal-text .w { color: #fff; }
  .reveal-text .w.accent { color: var(--lilac); }
}
