
  :root {
    --bg: #f5f7fb;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #eef2f8;
    --border: #dde3ee;
    --text: #0f172a;
    --muted: #55627a;
    --accent: #2563eb;
    --accent-2: #0ea5e9;
    --accent-soft: rgba(37, 99, 235, .10);
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --radius: 18px;
    /* иллюстрации */
    --ill-bg: #e9eef8;
    --ill-line: #d3dbea;
    --ill-line-d: #aebad0;
    --ill-shadow: rgba(15, 23, 42, .08);
    --ill-col: rgba(255, 255, 255, .55);
    --ok-t: #16a34a;
    --bad-t: #dc2626;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0a0f1c;
      --bg-2: #0e1526;
      --surface: #121a2e;
      --surface-2: #18223a;
      --border: #24304b;
      --text: #e8edf7;
      --muted: #97a3bb;
      --accent: #5b8cff;
      --accent-2: #38bdf8;
      --accent-soft: rgba(91, 140, 255, .16);
      --shadow: 0 10px 30px rgba(0, 0, 0, .35);
      --ill-bg: #141d33;
      --ill-line: #2c3a5c;
      --ill-line-d: #3e4f78;
      --ill-shadow: rgba(0, 0, 0, .35);
      --ill-col: rgba(255, 255, 255, .04);
      --ok-t: #4ade80;
      --bad-t: #f87171;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0a0f1c;
    --bg-2: #0e1526;
    --surface: #121a2e;
    --surface-2: #18223a;
    --border: #24304b;
    --text: #e8edf7;
    --muted: #97a3bb;
    --accent: #5b8cff;
    --accent-2: #38bdf8;
    --accent-soft: rgba(91, 140, 255, .16);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --ill-bg: #141d33;
    --ill-line: #2c3a5c;
    --ill-line-d: #3e4f78;
    --ill-shadow: rgba(0, 0, 0, .35);
    --ill-col: rgba(255, 255, 255, .04);
    --ok-t: #4ade80;
    --bad-t: #f87171;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; cursor: pointer; }
  a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
  @media (min-width: 768px) { .container { padding: 0 32px; } }

  /* ---------- Иллюстрации (SVG) ---------- */
  .ill { display: block; width: 100%; height: 100%; }
  .ill text { font-family: "Manrope", system-ui, sans-serif; }
  .c-bg { fill: var(--ill-bg); }
  .c-dots { fill: url(#pDots); }
  .c-card { fill: var(--surface); stroke: var(--border); stroke-width: 1.2; filter: drop-shadow(0 4px 10px var(--ill-shadow)); }
  .c-tile { fill: var(--surface-2); }
  .c-col { fill: var(--ill-col); }
  .c-line { fill: var(--ill-line); }
  .c-lined { fill: var(--ill-line-d); }
  .c-acc { fill: url(#gAcc); }
  .c-accs { fill: var(--accent); }
  .c-acc2f { fill: var(--accent-2); }
  .c-soft { fill: var(--accent-soft); }
  .c-okf { fill: #22c55e; } .c-warnf { fill: #f59e0b; } .c-badf { fill: #ef4444; }
  .c-okS { fill: rgba(34, 197, 94, .16); } .c-badS { fill: rgba(239, 68, 68, .15); } .c-warnS { fill: rgba(245, 158, 11, .18); }
  .c-white { fill: #fff; }
  .c-dark { fill: #1e293b; } .c-dark2 { fill: #334155; } .c-phone { fill: #0f172a; }
  .c-box { fill: #f3c27a; } .c-boxt { fill: #e0a54d; }
  .c-str { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .c-strd { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; }
  .c-strm { fill: none; stroke: var(--ill-line-d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .c-strbad { fill: none; stroke: #ef4444; stroke-width: 3; stroke-dasharray: 5 6; stroke-linecap: round; }
  .c-road { fill: none; stroke: var(--surface); stroke-width: 18; stroke-linecap: round; }
  .c-div { stroke: var(--border); stroke-width: 1.2; }
  .c-glass { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 8; }
  .t { fill: var(--text); font-weight: 700; }
  .t-mut { fill: var(--muted); font-weight: 600; }
  .t-w { fill: #fff; font-weight: 700; }
  .t-w80 { fill: rgba(255, 255, 255, .85); font-weight: 600; }
  .t-acc { fill: var(--accent); font-weight: 800; }
  .t-ok { fill: var(--ok-t); font-weight: 700; }
  .t-bad { fill: var(--bad-t); font-weight: 700; }
  .media { position: relative; overflow: hidden; background: var(--ill-bg); }
  .media img { display: block; width: 100%; height: 100%; object-fit: cover; }

  /* ---------- Header ---------- */
  header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
  .logo-mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800;
  }
  .nav-links { display: none; gap: 28px; font-weight: 600; font-size: 15px; color: var(--muted); }
  .nav-links a:hover { color: var(--text); }
  .nav-actions { display: flex; align-items: center; gap: 8px; }
  .icon-btn {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--surface); display: grid; place-items: center;
  }
  .icon-btn:hover { border-color: var(--accent); }
  .icon-btn:disabled { opacity: .4; cursor: default; border-color: var(--border); }
  .menu-btn { display: grid; }
  @media (min-width: 900px) { .nav-links { display: flex; } .menu-btn { display: none; } }
  .mobile-menu {
    display: none; flex-direction: column; padding: 8px 16px 16px; gap: 4px;
    border-top: 1px solid var(--border);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 10px 4px; font-weight: 600; }
  @media (min-width: 900px) { .mobile-menu, .mobile-menu.open { display: none; } }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px;
    font-weight: 700; border: 1px solid transparent; transition: transform .15s, box-shadow .15s;
  }
  .btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 24px rgba(37, 99, 235, .3); }
  .btn-primary:hover { transform: translateY(-2px); }
  .btn-ghost { border-color: var(--border); background: var(--surface); }
  .btn-ghost:hover { border-color: var(--accent); }

  /* ---------- Hero ---------- */
  .hero { position: relative; padding: 40px 0 48px; overflow: hidden; }
  .hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(600px 300px at 85% 10%, var(--accent-soft), transparent 70%),
      radial-gradient(500px 300px at 10% 90%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 70%);
  }
  .grid-lines {
    position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
  }
  .hero-inner { position: relative; display: grid; gap: 28px; align-items: center; }
  @media (min-width: 960px) {
    .hero { padding: 64px 0 56px; }
    .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 40px 48px; }
    .hero .stats { grid-column: 1 / -1; }
  }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px;
  }
  .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
  h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -.035em; margin: 16px 0; font-weight: 800; }
  h1 .grad { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); max-width: 520px; margin: 0 0 24px; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
  .stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
  .stat span { font-size: 13px; color: var(--muted); }

  /* hero visual: направления проектов вокруг команды */
  .orbit { position: relative; width: calc(100% - 64px); max-width: 440px; aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
  .orbit-layer { position: absolute; inset: 0; animation: orbitSpin var(--orbit-dur, 120s) linear infinite; }
  .orbit-layer.nodes { z-index: 2; }
  .orbit:hover .orbit-layer, .orbit:hover .orbit-pill { animation-play-state: paused; }
  @keyframes orbitSpin { to { transform: rotate(360deg); } }
  @keyframes orbitCounter { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
  @media (prefers-reduced-motion: reduce) { .orbit-layer, .orbit-pill { animation: none !important; } }
  .orbit-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .orbit-links circle { fill: none; stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
  .orbit-links line { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
  .orbit-core {
    position: absolute; z-index: 1; left: 50%; top: 50%; width: 28%; aspect-ratio: 1; transform: translate(-50%, -50%);
    border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: grid; place-items: center; color: #fff; text-align: center; font-weight: 800;
    box-shadow: 0 0 0 8px var(--accent-soft), 0 20px 50px rgba(37, 99, 235, .35); font-size: clamp(12px, 1.4vw, 15px); line-height: 1.25;
  }
  .orbit-node { position: absolute; width: 0; height: 0; }
  .orbit-pill span { line-height: 1.15; }
  .orbit-pill {
    position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
    animation: orbitCounter var(--orbit-dur, 120s) linear infinite;
    display: inline-flex; align-items: center; gap: .5em;
    padding: .5em 1em .5em .5em; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
    font-size: clamp(9px, 2.75cqw, 12px); font-weight: 700; white-space: nowrap; box-shadow: var(--shadow);
  }
  .orbit-pill i {
    width: 1.85em; height: 1.85em; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent);
  }
  .orbit-node.inner .orbit-pill {
    flex-direction: column; gap: .35em; padding: 0; background: none; border: none; box-shadow: none;
    font-size: clamp(8.5px, 2.5cqw, 11px); color: var(--text);
  }
  .orbit-node.inner .orbit-pill i {
    width: 3.4em; height: 3.4em; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
    box-shadow: 0 0 0 .4em var(--accent-soft), 0 8px 20px rgba(37, 99, 235, .3);
  }
  .orbit-node.inner .orbit-pill i svg { width: 1.6em; height: 1.6em; }
  .orbit-node.inner .orbit-pill span { padding: .1em .5em; border-radius: 999px; background: color-mix(in srgb, var(--bg) 80%, transparent); }
  @media (max-width: 520px) {
    .orbit-node.inner .orbit-pill span { display: none; }
  }

  /* ---------- Sections ---------- */
  section { padding: 52px 0; }
  @media (min-width: 768px) { section { padding: 96px 0; } }
  .section-head { max-width: 720px; margin-bottom: 28px; }
  @media (min-width: 768px) { .section-head { margin-bottom: 40px; } }
  .section-tag { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--muted); font-weight: 500; }
  h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; line-height: 1.15; margin: 8px 0 12px; }
  .section-head p { color: var(--muted); margin: 0; font-size: 17px; }
  .alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

  /* ---------- Services slider ---------- */
  .slider-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; scrollbar-width: none; }
  .slider-tabs::-webkit-scrollbar { display: none; }
  @media (min-width: 900px) { .slider-tabs { flex-wrap: wrap; overflow: visible; } }
  .slider-tab {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--muted);
    transition: all .15s;
  }
  .slider-tab i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
  .slider-tab:hover { color: var(--text); border-color: var(--accent); }
  .slider-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
  .slider-tab.active i { background: rgba(255, 255, 255, .2); color: #fff; }
  .slider-viewport {
    overflow: hidden; border-radius: 24px; border: 1px solid var(--border); background: var(--surface);
    touch-action: pan-y; box-shadow: var(--shadow);
  }
  .slider-track { display: flex; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
  .slide { flex: 0 0 100%; min-width: 0; display: grid; gap: 0; }
  @media (min-width: 900px) { .slide { grid-template-columns: .9fr 1.1fr; } }
  .slide-text { padding: 28px 22px; display: flex; flex-direction: column; justify-content: center; }
  @media (min-width: 900px) { .slide-text { padding: 48px; } }
  .slide-num { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--muted); }
  .slide h3 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.15; margin: 10px 0 12px; }
  .slide p { margin: 0 0 20px; color: var(--muted); font-size: 16px; }
  .slide .media { aspect-ratio: 5 / 3; order: -1; }
  @media (min-width: 900px) { .slide .media { order: 0; aspect-ratio: auto; min-height: 380px; } }
  .slider-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
  .slider-count { font-family: "JetBrains Mono", monospace; font-size: 14px; color: var(--muted); min-width: 64px; text-align: center; }
  .slider-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
  .slider-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .6s ease; }

  /* горизонтальные списки: стрелки и затухание у края, за которым есть ещё пункты */
  .rail { position: relative; min-width: 0; }
  .toolbar .rail { flex: 1 1 100%; }
  .rail > :is(.chips, .slider-tabs) { --fade-l: 0px; --fade-r: 0px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  }
  .rail.can-prev > :is(.chips, .slider-tabs) { --fade-l: 64px; }
  .rail.can-next > :is(.chips, .slider-tabs) { --fade-r: 64px; }
  .rail-arrow {
    position: absolute; top: 50%; z-index: 2; width: 30px; height: 30px; margin-top: -15px; padding: 0;
    display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); box-shadow: 0 2px 8px var(--ill-shadow);
    opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s, border-color .18s;
  }
  .rail-arrow::before { content: ""; position: absolute; inset: -8px; }
  .rail-arrow.prev { left: 0; }
  .rail-arrow.next { right: 0; }
  .rail-arrow:hover { border-color: var(--muted); }
  .rail.can-prev > .rail-arrow.prev, .rail.can-next > .rail-arrow.next { opacity: 1; visibility: visible; }

  .feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
  .feature-list li { display: flex; gap: 10px; align-items: flex-start; }
  .feature-list li::before {
    content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px;
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
  }

  /* ---------- Projects ---------- */
  .toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; align-items: center; }
  .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  @media (min-width: 700px) { .chips { flex-wrap: wrap; overflow: visible; } }
  .chip {
    flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); font-weight: 600; font-size: 14px; color: var(--muted); transition: all .15s;
  }
  .chip:hover { color: var(--text); border-color: var(--accent); }
  .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
  .chip .count { opacity: .7; margin-left: 4px; font-size: 12px; }
  .search {
    display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface); width: 100%;
  }
  @media (min-width: 700px) { .search { width: 340px; } }
  .search:focus-within { border-color: var(--accent); }
  .search input { border: none; outline: none; background: transparent; font: inherit; color: var(--text); width: 100%; }
  .search svg { color: var(--muted); flex-shrink: 0; }

  .projects { display: grid; gap: 20px; grid-template-columns: 1fr; }
  @media (min-width: 640px) { .projects { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1000px) { .projects { grid-template-columns: repeat(3, 1fr); } }
  .project {
    text-align: left; display: flex; flex-direction: column; padding: 0; overflow: hidden;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
    transition: transform .2s, border-color .2s, box-shadow .2s; animation: fadeUp .35s ease both;
  }
  .project:hover, .project:focus-visible { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); outline: none; }
  .project .media { aspect-ratio: 5 / 3; border-bottom: 1px solid var(--border); }
  .project .media .ill { transition: transform .4s ease; }
  .project:hover .media .ill { transform: scale(1.04); }
  .project .num {
    position: absolute; bottom: 10px; right: 10px; font-family: "JetBrains Mono", monospace; font-size: 12px;
    padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  }
  .pbody { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .project h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; line-height: 1.3; }
  .project .full { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: -6px; }
  .project p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
  .tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
  .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--text); transition: color .18s; }
  .project:hover .more, .project:focus-visible .more { color: var(--accent); }
  .projects-more { width: 100%; justify-content: center; margin-top: 20px; }
  .projects-more[hidden] { display: none; }
  .empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }

  /* ---------- Modal ---------- */
  .modal-backdrop {
    position: fixed; inset: 0; z-index: 100; background: rgba(5, 10, 20, .55); backdrop-filter: blur(4px);
    display: none; align-items: flex-end; justify-content: center; padding: 0;
  }
  .modal-backdrop.open { display: flex; animation: fade .2s; }
  @media (min-width: 700px) { .modal-backdrop { align-items: center; padding: 24px; } }
  @keyframes fade { from { opacity: 0; } }
  .modal {
    width: 100%; max-width: 880px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface);
    border: 1px solid var(--border); border-radius: 22px 22px 0 0; position: relative; animation: rise .25s ease;
  }
  @media (min-width: 700px) { .modal { border-radius: 22px; } }
  @keyframes rise { from { transform: translateY(24px); opacity: 0; } }
  /* шапка окна остаётся на месте при прокрутке — закрыть можно в любой момент */
  .modal-bar {
    position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px 10px 20px; background: var(--surface); border-bottom: 1px solid var(--border);
  }
  @media (min-width: 700px) { .modal-bar { padding: 12px 16px 12px 36px; } }
  .modal-meta { display: flex; align-items: baseline; gap: 14px; min-width: 0; font-size: 13px; color: var(--muted); }
  .modal-case { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--text); white-space: nowrap; }
  .modal-cats { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .modal-close { flex-shrink: 0; }
  .modal-body { padding: 24px 20px 28px; }
  @media (min-width: 700px) { .modal-body { padding: 28px 36px 36px; } }
  .modal h3 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 4px; letter-spacing: -.02em; line-height: 1.2; }
  .modal .full { color: var(--muted); font-weight: 600; margin-bottom: 14px; }
  .modal p { margin: 0; }
  .modal .media { aspect-ratio: 5 / 3; margin-top: 22px; border: 1px solid var(--border); border-radius: 14px; }
  .case { list-style: none; margin: 28px 0 0; padding: 0; border-bottom: 1px solid var(--border); }
  .case-step { display: grid; gap: 10px; padding: 22px 0; border-top: 1px solid var(--border); }
  @media (min-width: 700px) { .case-step { grid-template-columns: 148px 1fr; gap: 24px; } }
  .case-label { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
  .case-label span { font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
  .case-text { display: grid; gap: 14px; }
  .case-step.result p { font-size: 17px; font-weight: 600; line-height: 1.55; }
  .modal-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 28px; padding: 20px; border-radius: 14px; background: var(--surface-2);
  }
  .modal-cta > div { flex: 1 1 240px; }
  .modal-cta b { display: block; font-size: 17px; }
  .modal-cta span { color: var(--muted); font-size: 14px; }
  .modal-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
  .modal-nav button { background: none; border: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px 0; }
  .modal-nav button:hover { color: var(--text); }
  .modal-nav button:disabled { color: var(--muted); opacity: .4; cursor: default; }

  /* ---------- Ecosystem ---------- */
  .eco { display: grid; gap: 32px; align-items: center; }
  @media (min-width: 960px) { .eco { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
  .eco-lead { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
  .eco-map { border-radius: 22px; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
  .chat {
    border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 420px;
  }
  .chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-weight: 700; }
  .chat-head .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #fff; }
  .chat-head small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
  .chat-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; animation: fadeUp .3s ease both; }
  .msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
  .msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
  .typing { display: inline-flex; gap: 4px; }
  .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
  .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes blink { 0%,100% { opacity: .25 } 50% { opacity: 1 } }
  .suggest { display: flex; flex-wrap: wrap; gap: 8px; }
  .suggest button { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); font-size: 13px; font-weight: 600; }
  .suggest button:hover { border-color: var(--accent); color: var(--accent); }

  /* ---------- Stack ---------- */
  .stack-groups { display: grid; gap: 16px; grid-template-columns: 1fr; }
  @media (min-width: 700px) { .stack-groups { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1000px) { .stack-groups { grid-template-columns: repeat(4, 1fr); } }
  .stack-group { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
  .stack-group h3 { margin: 0 0 4px; font-size: 17px; }
  .stack-group > p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
  .techs { display: flex; flex-direction: column; gap: 8px; }
  .tech {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid transparent; transition: border-color .15s, transform .15s;
  }
  .tech:hover { border-color: var(--tc); transform: translateX(3px); }
  .tech .badge {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0;
    background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--tc);
    font-family: "JetBrains Mono", monospace; font-size: 11.5px; font-weight: 500;
  }
  .tech b { font-size: 15px; display: block; line-height: 1.2; }
  .tech small { color: var(--muted); font-size: 12px; }

  /* ---------- Process ---------- */
  .steps { display: grid; gap: 16px; grid-template-columns: 1fr; }
  @media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, 1fr); } }
  .step { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .2s, border-color .2s; }
  .step:hover { transform: translateY(-4px); border-color: var(--accent); }
  .step .media { aspect-ratio: 5 / 3; border-bottom: 1px solid var(--border); }
  .step-body { padding: 16px 18px 20px; }
  .step-num { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--muted); }
  .step h3 { margin: 4px 0 6px; font-size: 16px; }
  .step p { margin: 0; font-size: 14px; color: var(--muted); }

  /* ---------- Contact ---------- */
  .cta {
    border-radius: 28px; overflow: hidden; color: #fff; display: grid;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
  }
  @media (min-width: 900px) { .cta { grid-template-columns: 1.1fr .9fr; } }
  .cta-text { padding: 40px 24px; }
  @media (min-width: 768px) { .cta-text { padding: 56px 48px; } }
  .cta h2 { color: #fff; margin-top: 0; }
  .cta p { color: rgba(255, 255, 255, .9); max-width: 520px; margin: 0 0 28px; font-size: 17px; }
  .contact-list { display: grid; gap: 12px; max-width: 440px; }
  .contact {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); transition: background .15s, transform .15s;
  }
  .contact:hover { background: rgba(255, 255, 255, .22); transform: translateX(4px); }
  .contact i { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: #1d4ed8; display: grid; place-items: center; flex-shrink: 0; }
  .contact small { display: block; font-size: 12px; opacity: .8; font-weight: 600; }
  .contact b { font-size: 17px; word-break: break-word; }
  .cta-visual { display: none; }
  @media (min-width: 900px) { .cta-visual { display: block; position: relative; } }
  .cta-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }

  footer { padding: 32px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
  .foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }

  /* reveal */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .slider-track { transition: none; }
  }

/* The IS. artwork retains the original logo dimensions. */
.logo-mark img { display: block; width: 100%; height: 100%; }

/* Selected IS. ribbon mark, with its original blue and navy palette. */
.logo-mark { background: transparent; border-radius: 0; width: 47px; height: 36px; flex-shrink: 0; }
.logo-mark img { object-fit: contain; }
footer .logo-mark { width: 37px !important; }

/* Three balanced strokes morph into a close icon. */
.menu-btn { width: 42px; height: 42px; border-radius: 12px; transition: background .2s, border-color .2s, color .2s; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.burger { position: relative; display: block; width: 20px; height: 18px; }
.burger span { position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transform-origin: center; transition: transform .24s ease, opacity .16s ease; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; }
.burger span:nth-child(3) { top: 16px; }
.menu-btn[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.menu-btn[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu a { border-radius: 8px; padding: 11px 12px; transition: color .2s, background .2s; }
.mobile-menu a:hover, .mobile-menu a:focus-visible { color: var(--accent); background: var(--accent-soft); }
@media (prefers-reduced-motion: reduce) { .menu-btn, .burger span, .mobile-menu a { transition: none; } }
