/* Custom font */
@font-face{
  font-family: "Chrysalide Modern";
  src: url("assets/fonts/chrysalide-modern.woff2") format("woff2"),
       url("assets/fonts/chrysalide-modern.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

/* =========================
   Hero Starter (static)
   - чистый HTML/CSS, без сборки
   - анимации: CSS + небольшой JS (без зависимостей)
   ========================= */

:root{
  
  --font: "Chrysalide Modern", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
--bg: #0b0b0c;
  --bg2:#0f1116;
  --text:#f7f7fb;
  --muted: rgba(247,247,251,.75);
  --muted2: rgba(247,247,251,.55);
  --line: rgba(247,247,251,.12);
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.10);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 24px;
  --max: 1160px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; }

/* Anchor offset for fixed header */
section[id]{ scroll-margin-top: 76px; }
body{
  margin:0;
  font-family: var(--font);
  background: radial-gradient(1200px 800px at 20% 0%, #17203a 0%, rgba(23,32,58,0) 60%),
              radial-gradient(900px 700px at 95% 40%, #2b1247 0%, rgba(43,18,71,0) 62%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
}



/* Safe punctuation fallback for dash/minus glyphs */
body{
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0, "dlig" 0, "salt" 0;
}
.safe-punct{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-style: normal;
  font-weight: inherit;
  font-variant-ligatures: none;
  font-feature-settings: normal;
  letter-spacing: normal;
  text-transform: none;
  line-height: inherit;
  display: inline-block;
  transform: translateY(-0.01em);
}

a{ color:inherit; text-decoration:none; }
.container{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.nav{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,11,12,.38);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__inner{
  height: 56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav__brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size: 12px;
}
.nav__brandMark{
  width: 10px;
  height: 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background: rgba(255,255,255,.9);
  color:#000;
  box-shadow: 0 0 0 6px rgba(255,255,255,.08);
}
.nav__links{
  display:flex;
  gap: 18px;
  align-items:center;
}
.nav__link{
  font-size: 12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color: rgba(255,255,255,.78);
  padding: 10px 10px;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}
.nav__link:hover{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.95);
}
.nav__link--cta{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
}
.nav__link--cta:hover{
  background: rgba(255,255,255,.14);
}

.hero{
  position:relative;
  min-height: 100vh;
  padding-top: 78px; /* nav + breathing */
  overflow:hidden;
}
.hero__grid{
  position:absolute;
  inset:-2px;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, rgba(0,0,0,0) 1px);
  background-size: 22px 22px;
  opacity: .35;
  mask-image: radial-gradient(650px 450px at 28% 12%, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 70%);
  pointer-events:none;
}
.hero__glow{
  position:absolute;
  width: 720px;
  height: 720px;
  right: -220px;
  top: -220px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.20), rgba(255,255,255,0) 65%);
  filter: blur(2px);
  opacity: .6;
  pointer-events:none;
}

.hero__inner{
  display:grid;
  /*
    Keep the right "radar" card stable on desktop.
    IMPORTANT: allow the left column to shrink (minmax(0, 1fr)) so long words
    don't force the grid to steal width from the card.
  */
  /*
    Prevent the hero headline from sliding under the 3D card.
    The right column should stay in a sane width range instead of growing too much
    (when it grows, the left column becomes too narrow and long words overflow).
  */
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 42px;
  align-items:center;
  min-height: calc(100vh - 96px);
}

/* Grid items default min-width:auto (min-content). This can shrink the card when
   the title contains a very long word. */
.hero__left{ position:relative; z-index: 2; min-width: 0; }
.hero__right{
  position:relative;
  z-index: 2;
  min-width: 420px;
  max-width: 520px;
  justify-self: end;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.pill__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(73, 255, 189, .95);
  box-shadow: 0 0 0 10px rgba(73, 255, 189, .08);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.88); opacity: .75; }
}
.pill__text{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}

.hero__title{
  margin: 18px 0 12px;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
	  /* Keep typography stable: we control line breaks in markup */
	  overflow-wrap: normal;
	  word-break: normal;
	  hyphens: manual;
}

.hero__titleLine{ display:block; white-space: nowrap; }


/* Long last line ("АВТОМАТИЗИРУЮТ") - auto-fit to avoid overlapping the radar */
.hero__titleLine--long{
  display:inline-block;
  max-width: 100%;
  font-size: .80em;
  letter-spacing: -0.07em;
  transform-origin: left top;
}
@media (max-width: 1200px){
  .hero__titleLine--long{ font-size: .72em; }
}



.hero__subtitle{
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}

.hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  margin: 22px 0 26px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  background:
    radial-gradient(420px 160px at 28% 0%, rgba(73,255,189,.34), rgba(0,0,0,0) 62%),
    rgba(9,18,15,.78);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(73,255,189,.22);
  box-shadow: 0 18px 70px rgba(0,0,0,.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--primary:hover{
  transform: translateY(-1px);
  background:
    radial-gradient(420px 160px at 28% 0%, rgba(73,255,189,.46), rgba(0,0,0,0) 62%),
    rgba(9,18,15,.88);
  border-color: rgba(73,255,189,.34);
}
.btn--ghost{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
}
.btn--ghost:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }

/* CTA button in Hero: bluish, higher opacity for readability */
.btn--heroCta{
  background:
    radial-gradient(420px 160px at 28% 0%, rgba(120,180,255,.32), rgba(0,0,0,0) 62%),
    rgba(12,18,34,.58);
  border: 1px solid rgba(120,180,255,.26);
  color: rgba(255,255,255,.96);
  box-shadow: 0 22px 80px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}
.btn--heroCta:hover{
  transform: translateY(-1px);
  background:
    radial-gradient(420px 160px at 28% 0%, rgba(120,180,255,.44), rgba(0,0,0,0) 62%),
    rgba(12,18,34,.72);
  border-color: rgba(120,180,255,.38);
}
.btn--heroCta:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(120,180,255,.22), 0 22px 80px rgba(0,0,0,.45);
}

/* CTA button inside service cards: teal/green glass like the card preview */
.btn--projectCta{
  background:
    radial-gradient(420px 160px at 28% 0%, rgba(73,255,189,.28), rgba(0,0,0,0) 62%),
    rgba(0,0,0,.22);
  border: 1px solid rgba(73,255,189,.20);
  color: rgba(255,255,255,.94);
  box-shadow: 0 16px 55px rgba(0,0,0,.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--projectCta:hover{
  transform: translateY(-1px);
  background:
    radial-gradient(420px 160px at 28% 0%, rgba(73,255,189,.40), rgba(0,0,0,0) 62%),
    rgba(0,0,0,.32);
  border-color: rgba(73,255,189,.30);
}

.btn--enterpriseCta{
  background:
    radial-gradient(420px 160px at 28% 0%, rgba(140,160,255,.30), rgba(0,0,0,0) 62%),
    rgba(0,0,0,.22);
  border: 1px solid rgba(140,160,255,.20);
  color: rgba(255,255,255,.94);
  box-shadow: 0 16px 55px rgba(0,0,0,.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--enterpriseCta:hover{
  transform: translateY(-1px);
  background:
    radial-gradient(420px 160px at 28% 0%, rgba(140,160,255,.42), rgba(0,0,0,0) 62%),
    rgba(0,0,0,.32);
  border-color: rgba(140,160,255,.32);
}




.btn--mobileCta{
  background:
    radial-gradient(420px 160px at 28% 0%, rgba(255,170,90,.30), rgba(0,0,0,0) 62%),
    rgba(0,0,0,.22);
  border: 1px solid rgba(255,170,90,.22);
  color: rgba(255,255,255,.94);
  box-shadow: 0 16px 55px rgba(0,0,0,.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--mobileCta:hover{
  transform: translateY(-1px);
  background:
    radial-gradient(420px 160px at 28% 0%, rgba(255,170,90,.44), rgba(0,0,0,0) 62%),
    rgba(0,0,0,.32);
  border-color: rgba(255,170,90,.32);
}

.btn--aiCta{
  background:
    radial-gradient(420px 160px at 28% 0%, rgba(120,255,255,.28), rgba(0,0,0,0) 62%),
    rgba(0,0,0,.22);
  border: 1px solid rgba(120,255,255,.20);
  color: rgba(255,255,255,.94);
  box-shadow: 0 16px 55px rgba(0,0,0,.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--aiCta:hover{
  transform: translateY(-1px);
  background:
    radial-gradient(420px 160px at 28% 0%, rgba(120,255,255,.44), rgba(0,0,0,0) 62%),
    rgba(0,0,0,.32);
  border-color: rgba(120,255,255,.34);
}

.btn--botCta{
  background:
    radial-gradient(420px 160px at 28% 0%, rgba(140,160,255,.30), rgba(0,0,0,0) 62%),
    rgba(0,0,0,.22);
  border: 1px solid rgba(140,160,255,.20);
  color: rgba(255,255,255,.94);
  box-shadow: 0 16px 55px rgba(0,0,0,.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--botCta:hover{
  transform: translateY(-1px);
  background:
    radial-gradient(420px 160px at 28% 0%, rgba(140,160,255,.46), rgba(0,0,0,0) 62%),
    rgba(0,0,0,.32);
  border-color: rgba(140,160,255,.34);
}

/* ===== 3D card on the right ===== */
.card3d{
  width: min(420px, 100%);
  margin-left: auto;
  perspective: 1200px;
  position: relative;
}
.card3d__toggle{
  position:absolute;
  opacity:0;
  pointer-events:none;
  inset:auto;
}
.card3d__inner{
  position:relative;
  width: 100%;
  height: 320px;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  /* Parallax + flip через CSS-переменные, чтобы не конфликтовать */
  --rx: 0deg;
  --ry: 0deg;
  --flip: 0deg;
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip)));
}
.card3d:hover .card3d__inner{
  --flip: 180deg;
}
.card3d__face{
position:absolute;
  inset:0;
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  padding: 22px;
  backface-visibility: hidden;
  overflow:hidden;

  background-color: rgba(0,0,0,.62);
}
.card3d__face:before{
  content:"";
  position:absolute;
  inset:-2px;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.18) 1px, rgba(0,0,0,0) 1px);
  background-size: 18px 18px;
  opacity: .18;
  pointer-events:none;
}
.card3d__front{
  transform: rotateY(0deg);
}
.card3d__back{
  transform: rotateY(180deg);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
.card3d__toggle:checked + .card3d__inner{
  --flip: 180deg;
  transform: rotateX(0deg) rotateY(180deg);
}

.card3d__mobileTap{
  position:absolute;
  inset:0;
  display:none;
  opacity:0;
  border:0;
  background:transparent;
  margin:0;
  padding:0;
  border-radius: inherit;
  -webkit-tap-highlight-color: transparent;
}

.card3d__mobileTap:focus-visible{
  outline: 1px solid rgba(73,255,189,.55);
  outline-offset: -2px;
}

.card3d__mobileTap{
  position:absolute;
  inset:0;
  display:none;
  opacity:0;
  border:0;
  background:transparent;
  margin:0;
  padding:0;
  border-radius: inherit;
  -webkit-appearance:none;
  appearance:none;
}

.card3d__mobileTap:focus-visible{
  outline: 1px solid rgba(73,255,189,.55);
  outline-offset: -2px;
}


.card3d__kicker{
  position:relative;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.card3d__big{
  position:relative;
  margin-top: 10px;
  font-size: 72px;
  line-height: .9;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.card3d__bigUnit{
  font-size: 22px;
  letter-spacing: .08em;
  margin-left: 8px;
  opacity: .78;
  font-weight: 800;
  text-transform: uppercase;
}

.card3d__sub{
  position:relative;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.72);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.card3d__meta{
  position:relative;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.metric{
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 12px 12px;
}
.metric__value{
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 22px;
}
.metric__label{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.70);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.card3d__hint{
  position:absolute;
  bottom: 16px;
  left: 22px;
  right: 22px;
  font-size: 12px;
  color: rgba(255,255,255,.60);
  letter-spacing: .06em;
  text-transform: uppercase;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.bullets{
  position:relative;
  margin: 18px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.86);
  line-height: 1.7;
}
.bullets li{
  margin: 6px 0;
}

/* Scroll indicator */
@keyframes wheel{
  0%{ opacity: .2; transform: translateX(-50%) translateY(0); }
  40%{ opacity: 1; }
  100%{ opacity: .2; transform: translateX(-50%) translateY(12px); }
}

/* Reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  animation: reveal .7s cubic-bezier(.2,.8,.2,1) forwards;
  will-change: transform, opacity, filter;
}
.delay-1{ animation-delay: .08s; }
.delay-2{ animation-delay: .16s; }
.delay-3{ animation-delay: .24s; }
.delay-4{ animation-delay: .32s; }
.delay-5{ animation-delay: .40s; }
@keyframes reveal{
  to{
    opacity:1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Stub sections */
.stub{
  padding: 110px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stub h2{
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: -.03em;
}
.stub p{ color: rgba(255,255,255,.70); max-width: 70ch; }

/* Responsive */
@media (max-width: 980px){
  .hero__inner{
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 70px;
  }
  .hero__right{
    order: 2;
    min-width: 0;
  }
  .card3d{ margin: 18px auto 0; }
  }
@media (max-width: 520px){
  .container{ width: min(var(--max), calc(100% - 28px)); }
  .nav__links{ gap: 10px; }
  .nav__link{ padding: 8px 8px; }
  .hero{ padding-top: 86px; }
  .hero__title{
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }
  .hero__titleLine{ white-space: normal; }
  }


/* ===== Stack / Tools grid ===== */
.toolgrid{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.tool{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.tool img{
  width: 22px;
  height: 22px;
  opacity: .9;
  filter: grayscale(100%);
}
.tool span{
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.86);
}

.toolnote{
  margin-top: 14px;
  padding: 16px 16px;
  border-radius: var(--radius2);
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.08);
}
.toolnote__title{
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
  color: rgba(255,255,255,.82);
  margin-bottom: 8px;
}
.toolnote__list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.74);
  line-height: 1.7;
}
.toolnote__list li{ margin: 6px 0; }

.mutedline{
  color: rgba(255,255,255,.64);
  margin-top: 10px;
}

/* ===== Lead form ===== */
.leadform{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}
.field{
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.field--full{
  grid-column: 1 / -1;
}
.field span{
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.70);
}
.field input, .field textarea{
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 12px 12px;
  color: rgba(255,255,255,.92);
  outline: none;
}
.field input::placeholder, .field textarea::placeholder{
  color: rgba(255,255,255,.45);
}
.field input:focus, .field textarea:focus{
  border-color: rgba(255,255,255,.22);
}
.formhint{
  margin: 0;
  grid-column: 1 / -1;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 980px){
  .toolgrid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .leadform{ grid-template-columns: 1fr; }
  .field--full{ grid-column: auto; }
}


/* Mini tool grid inside flip card */
.toolgrid--mini{
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.tool--mini{
  padding: 10px 10px;
  border-radius: 14px;
  box-shadow: none;
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.10);
}
.tool--mini img{
  width: 18px;
  height: 18px;
  opacity: .95;
}
.tool--mini span{
  font-size: 11px;
  letter-spacing: .08em;
}


/* ===== Vertical marquee inside the flip card (front) ===== */
.cardMarquee{
  position:absolute;
  top: 16px;
  bottom: 16px;
  right: 12px;
  width: 28px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  opacity: .75;
}
.cardMarquee__inner{
  display:flex;
  flex-direction:column;
  gap: 18px;
  will-change: transform;
  animation: cardMarquee 8s linear infinite;
}
.cardMarquee__group{
  display:flex;
  flex-direction:column;
  gap: 18px;
}
.cardMarquee__item{
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 800;
  font-size: 11px;
  color: rgba(255,255,255,.22);
  user-select:none;
  white-space: nowrap;
}

/* The loop: when text exits at the top, it re-enters from the bottom */
@keyframes cardMarquee{
  0%{ transform: translateY(0); }
  100%{ transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .cardMarquee__inner{ animation: none; }
}


.card3d__front{
  padding-right: 54px; /* reserve space for vertical marquee */
}


/* Pause the orbit when user hovers the flipped card */
.card3d:hover .stackOrbit__spin{
  animation-play-state: paused;
}

.orbitItem{
  --r: 66px;
  position:absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 40px rgba(0,0,0,.32);
  display:flex;
  align-items:center;
  justify-content:center;
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
  transform-style: preserve-3d;
}
.orbitItem img{
  width: 20px;
  height: 20px;
  opacity: .92;
  filter: grayscale(100%);
}
.orbitItem:after{
  content:"";
  position:absolute;
  inset:-12px;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.10), rgba(255,255,255,0) 65%);
  opacity:.45;
  pointer-events:none;
}

.stackChips{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
  position: relative;
  z-index: 2;
}
.chip{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.10);
}
.chip img{
  width: 16px;
  height: 16px;
  opacity: .92;
  filter: grayscale(100%);
}
.chip span{
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255,255,255,.80);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

@media (max-width: 980px){
  .stackChips{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce){
  .stackOrbit__spin, .stackOrbit__scan{ animation: none !important; }
}


/* ===== Stack Radar (flip card back) ===== */
:root{
  --accent: rgba(73, 255, 189, .85);
  --accentSoft: rgba(73, 255, 189, .18);
}

.stackShowcase{
  position: relative;
  height: 100%;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.stackShowcase__top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.stackShowcase__badge{
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.70);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.10);
}

.stackRadar{
  position: relative;
  height: 236px; /* баланс: место + не тесно */
  border-radius: 18px;
  overflow: visible; /* чтобы тултипы не резались */
  isolation: isolate; /* гарантируем корректный z-index тултипов */
}

/* grid: rings + crosshair + dots */
.stackRadar__grid{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.12) 0 1px, rgba(0,0,0,0) 2px) 0 0/22px 22px,
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.14) 0 1px, rgba(0,0,0,0) 2px) 0 0/34px 34px,
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.18) 0 1px, rgba(0,0,0,0) 2px) 0 0/52px 52px,
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.09) 0 45%, rgba(0,0,0,0) 46%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.09) 0 32%, rgba(0,0,0,0) 33%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.09) 0 18%, rgba(0,0,0,0) 19%),
    linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,0) 1px, rgba(0,0,0,0) 50%, rgba(255,255,255,0) calc(50% + 1px), rgba(255,255,255,.10)),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 1px, rgba(0,0,0,0) 50%, rgba(255,255,255,0) calc(50% + 1px), rgba(255,255,255,.10));
  opacity:.18;
  pointer-events:none;
}

/* sweeping beam */
.stackRadar__sweep{
  position:absolute;
  inset:-40%;
  left: 50%;
  top: 50%;
  width: 280%;
  height: 280%;
  transform: translate(-50%, -50%);
  background:
    conic-gradient(from 90deg,
      rgba(73,255,189,.32),
      rgba(73,255,189,.12) 40deg,
      rgba(73,255,189,0) 70deg,
      rgba(0,0,0,0) 360deg);
  animation: radarSweep 4.6s linear infinite;
  mix-blend-mode: screen;
  filter: blur(0.6px);
  opacity:.75;
  pointer-events:none;
}
@keyframes radarSweep{
  to{ transform: translate(-50%, -50%) rotate(360deg); }
}

/* blips */
.blip{
  z-index: 3;
  --x: 50%;
  --y: 50%;
  position:absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.58);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  cursor: default;
  box-shadow: 0 18px 40px rgba(0,0,0,.32);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.blip img{
  width: 26px;
  height: 26px;
  opacity: .92;
  filter: grayscale(100%);
  pointer-events:none;
}
.blip:before{
  content:"";
  position:absolute;
  inset:-12px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 50%, var(--accentSoft), rgba(73,255,189,0) 70%);
  opacity:.55;
  animation: blipPulse 1.8s ease-in-out infinite;
  pointer-events:none;
}
@keyframes blipPulse{
  0%, 100%{ transform: scale(.92); opacity: .30; }
  50%{ transform: scale(1.08); opacity: .75; }
}

.blip:hover, .blip:focus-visible, .blip.is-hover{
  transform: translate(-50%, -50%) scale(1.04);
  z-index: 60;
  border-color: rgba(73,255,189,.35);
  background: rgba(73,255,189,.08);
  outline: none;
}

.blip__label{
  z-index: 70;
  position:absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  padding: 8px 10px;
  border-radius: 12px;
  /* more opaque so the moving radar sweep doesn't reduce readability */
  background: rgba(0,0,0,.98);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 28px rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,.86);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.blip:hover .blip__label,
.blip:focus-visible .blip__label,
.blip.is-hover .blip__label{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .stackRadar__sweep, .blip:before{ animation: none !important; }
}

.stackRadar__clip{
  position:absolute;
  inset:0;
  border-radius: 18px;
  background:
    radial-gradient(300px 190px at 50% 50%, rgba(73,255,189,.12), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  overflow:hidden; /* клипуем луч/сетку, но не тултипы */
  box-shadow: 0 22px 50px rgba(0,0,0,.35);
}


/* Brand */
.nav__brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
}
.nav__brandText{
  /* Keep original casing ("Fullstack" + name) */
  letter-spacing: .02em;
  text-transform: none;
  font-size: 14px;
  font-weight: 800;
}
@media (max-width: 520px){
  .nav__brandText{ letter-spacing: .01em; font-size: 12px; }
}

.nav__brandMark{display:none;}

/* Hint under radar (back side) */
.stackHint{
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}


/* Full-page interactive dots background (canvas) */
.bgDots{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
main{ position: relative; z-index: 1; }
.hero__glow{ z-index: 0; }
.hero__inner{ position: relative; z-index: 1; }

/* If legacy hero grid exists in markup */
.hero__grid{ display:none; }


/* Extra opacity behind the stack card so the background dots don't interfere */
.card3d{
  position: relative;
}
.card3d::before{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius: 28px;
  background: rgba(0,0,0,.58);
  filter: blur(0px);
  z-index: 0;
}
.card3d > *{
  position: relative;
  z-index: 1;
}

.card3d__face{
  background-color: rgba(0,0,0,.24);
}

/* Stronger opacity for the flip card to prevent background dots showing through */
.card3d__face{
  background-color: rgba(0,0,0,.62) !important;
}

/* Stronger opacity inside radar area */
.stackRadar__clip{
  background-color: rgba(0,0,0,.52) !important;
}

/* Pull hero a bit closer to the header */
.hero{
  padding-top: 78px !important;
}
@media (max-width: 760px){
  .hero{ padding-top: 66px !important; }
}

/* Remove legacy tools row spacing (if any leftover containers remain) */
.tools, .hero__tools{ display:none !important; }


/* Scroll hint ("листай") */
.hero{ position: relative; }
.scrollHint{
  position: absolute;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.55);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 11px;
  user-select: none;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.4));
}
.scrollHint__text{
  opacity: .8;
}
.scrollHint__mouse{
  width: 22px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.62);
  background: rgba(0,0,0,.22);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 10px 26px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  transform: translateZ(0);
  animation: mouseFloat 1.6s ease-in-out infinite;
}
.scrollHint__wheel{
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  animation: wheelMove 1.6s ease-in-out infinite;
}
@keyframes wheelMove{
  0%{ transform: translateX(-50%) translateY(0); opacity: .85; }
  55%{ transform: translateX(-50%) translateY(9px); opacity: .18; }
  100%{ transform: translateX(-50%) translateY(0); opacity: .85; }
}
@keyframes mouseFloat{
  0%,100%{ transform: translateY(0); opacity: .78; }
  50%{ transform: translateY(6px); opacity: .92; }
}
@media (max-width: 760px){
  .scrollHint{ bottom: 18px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce){
  .scrollHint__mouse, .scrollHint__wheel{ animation: none !important; }
}

/* Scroll hint variant for section headings (inline, not absolute) */
.scrollHint--inline{
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  margin: 14px auto 0;
}
@media (max-width: 760px){
  .scrollHint--inline{ margin-top: 12px; }
}


.tools, .hero__tools, .hero-tools{ display:none !important; }

.hero__proof, .hero__scroll, .logos{ display:none !important; }



.contactCard.is-typing .contactScan,
.contactSection.is-typing .contactScan{ opacity: .34; }

/* contact send busy */
.contactSection [data-contact-send].is-busy{
  opacity: .88;
  padding-right: 36px;
  position: relative;
}
.contactSection [data-contact-send].is-busy::after{
  content:"";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.25);
  border-top-color: rgba(0,0,0,.70);
  position:absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  animation: contactSpin2 .8s linear infinite;
}
@keyframes contactSpin2{ to{ transform: translateY(-50%) rotate(360deg); } }

/* responsive */
@media (max-width: 1200px){
  .flipGrid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 760px){
  .flipGrid{ grid-template-columns: repeat(1, minmax(0,1fr)); }
  .flipCard{ min-height: 190px; }
}
@media (prefers-reduced-motion: reduce){
  .flipCard__inner{ transition:none !important; }
  .flipCard:hover .flipCard__inner{ transform:none !important; }
}

/* Small button variant */
.btn--sm{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: .08em;
}



/* different preview accents */
.cfCard__preview--web{ background: linear-gradient(135deg, rgba(73,255,189,.12), rgba(255,255,255,.02)); }
.cfCard__preview--systems{ background: linear-gradient(135deg, rgba(140,160,255,.12), rgba(255,255,255,.02)); }
.cfCard__preview--mobile{ background: linear-gradient(135deg, rgba(255,170,90,.12), rgba(255,255,255,.02)); }
.cfCard__preview--ai{ background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(73,255,189,.10)); }
.cfCard__preview--bots{ background: linear-gradient(135deg, rgba(120,255,255,.10), rgba(255,255,255,.02)); }

.cfCard__meta{
  position: relative;
  padding: 16px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.cfCard__title{
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: .01em;
}
.cfCard__desc{
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.55;
  max-width: 62ch;
}

.cfCard__footer{
  margin-top: 6px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.cfCard__tags{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.72);
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

/* Controls */
.cfControls{
  position: relative;
  z-index: 2;
  display:flex;
  align-items:center;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
}

.cfBtn{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.cfBtn:hover{ background: rgba(255,255,255,.06); }

.cfDots{
  display:flex;
  gap: 8px;
  align-items:center;
}
.cfDot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.10);
  cursor: pointer;
}
.cfDot.is-active{
  background: rgba(73,255,189,.55);
}

@media (max-width: 980px){
  .cfViewport{ --cardW: 520px; }
}
@media (max-width: 760px){
  .cfViewport{ --cardW: 88vw; padding: 10px 6vw; }
  .cfCard{ transform: translateY(calc(var(--absd, 0) * 10px)) scale(calc(1 - (var(--absd, 0) * .12))); }
}
@media (prefers-reduced-motion: reduce){
  .cfCard{ transition:none !important; filter:none !important; }
  .cfViewport{ scroll-behavior: auto; }
  .cfBgWord{ transition:none !important; }
}


/* WHAT I DO - sticky 3D stack (Diego-like portfolio transition) */

/* Services section heading */
.section--projects .section__head{
  padding: 28px 0 8px;
  text-align: center;
}
.sectionHeroTitle{
  margin: 0;
  font-size: clamp(38px, 4.6vw, 64px); /* match hero selling title */
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(247,247,251,.96);
}
@media (max-width: 760px){
  .section--projects .section__head{ padding: 22px 0 6px; }
}

.section--projects{
  overflow: clip;
}

.projects{
  position: relative;
  margin-top: 10px;
}

.projectsItem{
  position: relative;
  height: 170svh; /* enough scroll distance for rotation */
}
@media (max-width: 760px){
  .projectsItem{ height: 160svh; }
}
@media (max-width: 760px){
  .projectsItem_sticky{ padding-bottom: 160px; }
}


.projectsItem_sticky{
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  perspective: 2000px;
  /* Shift cards slightly вверх, чтобы заголовок был ближе к карточке */
  padding: 28px 18px 220px;
}

.projectMarquee{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .9;
}
.projectMarquee_inner{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 22px;
  transform: translate(-50%, -50%) translateY(var(--marqueeY, 100%));
  transition: transform .06s linear;
}
.marqueeLine{
  font-weight: 900;
  letter-spacing: -0.06em;
  font-size: clamp(56px, 8vw, 132px);
  white-space: nowrap;
  color: rgba(255,255,255,.06);
  text-transform: uppercase;
}

.projectCardWrap{
  width: min(860px, 92vw);
  transform-style: preserve-3d;
}

.projectCard{
  --rx: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) * 1deg));
  transform-origin: center top;
  will-change: transform;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  color: #0f1114;
  box-shadow:
    0 32px 90px rgba(0,0,0,.55),
    0 1px 0 rgba(255,255,255,.06) inset;
  border: 1px solid rgba(255,255,255,.12);
  backface-visibility: hidden;
}

.projectCard_preview{
  position: relative;
  height: 360px;
  background: linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,0));
  border-bottom: 1px solid rgba(0,0,0,.08);
}
@media (max-width: 760px){
  .projectCard_preview{ height: 300px; }
}
.projectCard_preview::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(closest-side, var(--accent, rgba(73,255,189,.20)), rgba(0,0,0,0) 72%),
    conic-gradient(from 180deg, rgba(0,0,0,0), var(--accent, rgba(73,255,189,.25)), rgba(0,0,0,0));
  transform: rotate(10deg);
  opacity: .75;
}
.projectCard_preview--web{ --accent: rgba(73,255,189,.28); }
.projectCard_preview--systems{
  overflow: hidden; --accent: rgba(140,160,255,.28); }
.projectCard_preview--mobile{ --accent: rgba(255,170,90,.28); }
.projectCard_preview--ai{ --accent: rgba(73,255,189,.22); }
.projectCard_preview--bots{ --accent: rgba(120,255,255,.22); }

.projectBadge{
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15,17,20,.88);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.10);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.projectBadges{
  position:absolute;
  left:18px;
  top:18px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  max-width: calc(100% - 90px);
  z-index: 3;
}
.projectBadges .projectBadge{
  position: static;
}
.projectBadge--text{
  text-transform: none;
  letter-spacing: .08em;
}

.projectMini{
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(0,0,0,.10);
  color: rgba(15,17,20,.70);
  font-size: 12px;
}

.projectCard_body{
  padding: 18px 18px 16px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.projectCard_title{
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.projectCard_desc{
  color: rgba(15,17,20,.72);
  line-height: 1.55;
  font-size: 14px;
  max-width: 70ch;
}

.projectCard_footer{
  margin-top: 6px;
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.projectTags{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section--projects .tag{
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
  color: rgba(15,17,20,.78);
}

/* keep button readable on white card */
.section--projects .btn--ghost{
  border-color: rgba(0,0,0,.14);
  color: rgba(15,17,20,.86);
  background: rgba(0,0,0,.03);
}
.section--projects .btn--ghost:hover{
  background: rgba(0,0,0,.06);
}

@media (prefers-reduced-motion: reduce){
  .projectMarquee_inner{ transition:none !important; }
  .projectCard{ transition:none !important; }
}


main{ position: relative; z-index: 1; }



/* WHAT I DO - card design upgrade */
.projectCard{
  position: relative;
  background: rgba(255,255,255,.97);
}
.projectCard::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background:
    radial-gradient(800px 380px at 20% 0%, rgba(0,0,0,.10), rgba(0,0,0,0) 60%),
    radial-gradient(700px 400px at 80% 0%, var(--accent, rgba(73,255,189,.18)), rgba(0,0,0,0) 62%),
    linear-gradient(to bottom, rgba(255,255,255,.55), rgba(255,255,255,0));
  mix-blend-mode: multiply;
  opacity: .65;
}
.projectCard::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.06) 1px, rgba(0,0,0,0) 0);
  background-size: 18px 18px;
  opacity: .35;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), rgba(0,0,0,0));
}

.projectCardWrap:hover .projectCard{
  box-shadow:
    0 46px 120px rgba(0,0,0,.60),
    0 1px 0 rgba(255,255,255,.08) inset;
}
.projectCardWrap:hover .projectCard_preview::before{
  opacity: .95;
}

.projectCard_preview{
  overflow: hidden;
}
.projectCard_preview::before{
  background:
    radial-gradient(closest-side, var(--accent, rgba(73,255,189,.22)), rgba(0,0,0,0) 72%),
    radial-gradient(closest-side, var(--accent2, rgba(140,160,255,.14)), rgba(0,0,0,0) 72%),
    conic-gradient(from 180deg, rgba(0,0,0,0), var(--accent, rgba(73,255,189,.25)), rgba(0,0,0,0));
}
.projectCard_preview::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.06), rgba(0,0,0,0));
  opacity: .16;
  transform: translateX(-35%);
  animation: previewSweep 7.5s ease-in-out infinite;
  pointer-events:none;
}
@keyframes previewSweep{
  0%, 100% { transform: translateX(-40%); }
  50% { transform: translateX(40%); }
}

/* Big outlined keyword */
.projectWord{
  position: absolute;
  left: 18px;
  top: 56px;
  font-weight: 900;
  letter-spacing: -0.07em;
  font-size: clamp(38px, 6.6vw, 88px);
  line-height: .95;
  color: transparent;
  -webkit-text-stroke: 1px rgba(15,17,20,.22);
  text-transform: uppercase;
  opacity: .9;
  user-select: none;
  pointer-events: none;
}
@media (max-width: 760px){
  .projectWord{ top: 54px; font-size: clamp(34px, 10vw, 72px); }
}

.projectNum{
  position:absolute;
  right: 16px;
  top: 14px;
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 12px;
  color: rgba(15,17,20,.55);
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.10);
  padding: 8px 10px;
  border-radius: 999px;
}

/* Stats panel */
.projectStats{
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
  max-width: min(320px, 48%);
}
.projectStats .stat{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  line-height: 1.2;
}
.projectStats .stat span{
  color: rgba(15,17,20,.55);
  white-space: nowrap;
}
.projectStats .stat strong{
  color: rgba(15,17,20,.88);
  font-weight: 700;
  text-align: right;
}
@media (max-width: 760px){
  .projectStats{ display:none; } /* keep it clean on mobile */
}

/* Bullets list */
.projectBullets{
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.projectBullets li{
  position: relative;
  padding-left: 22px;
  color: rgba(15,17,20,.78);
  font-size: 13px;
  line-height: 1.4;
}
.projectBullets li::before{
  content:"";
  position:absolute;
  left: 0;
  top: .42em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent, rgba(73,255,189,.55)), var(--accent2, rgba(140,160,255,.35)));
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

/* Mini pill & badge refinements */
.projectBadge{
  background: rgba(15,17,20,.92);
  border-color: rgba(255,255,255,.10);
}
.projectMini{
  background: rgba(255,255,255,.82);
}

/* Type-specific “illustrations” */
.projectCard_preview--web .projectWord{ -webkit-text-stroke: 1px rgba(15,17,20,.18); }
.projectCard_preview--web .projectCard_previewIcon,
.projectCard_preview--systems .projectCard_previewIcon,
.projectCard_preview--mobile .projectCard_previewIcon,
.projectCard_preview--ai .projectCard_previewIcon,
.projectCard_preview--bots .projectCard_previewIcon{ display:none; }

/* Device-like faint shapes via pseudo overlays */
.projectCard_preview--web::before{ opacity:.78; }
.projectCard_preview--web .projectWord{ opacity:.95; }

.projectCard_preview--systems::before{ opacity:.80; }
.projectCard_preview--mobile::before{ opacity:.82; }
.projectCard_preview--ai::before{ opacity:.76; }
.projectCard_preview--bots::before{ opacity:.76; }

/* Extra shape layer */
.projectCard_preview--web::after,
.projectCard_preview--systems::after,
.projectCard_preview--mobile::after,
.projectCard_preview--ai::after,
.projectCard_preview--bots::after{
  /* keep sweep; additional per-type overlay comes from ::before of a new element */
}

/* Add a per-type decorative element as a child via background gradients */
.projectCard_preview--web{
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,0)),
    radial-gradient(500px 220px at 70% 55%, rgba(73,255,189,.18), rgba(0,0,0,0) 60%),
    linear-gradient(0deg, rgba(255,255,255,.40), rgba(255,255,255,0));
}
.projectCard_preview--systems{
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,0)),
    radial-gradient(520px 240px at 70% 55%, rgba(140,160,255,.20), rgba(0,0,0,0) 60%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 1px, rgba(0,0,0,0) 1px 26px);
}
.projectCard_preview--mobile{
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,0)),
    radial-gradient(520px 240px at 70% 55%, rgba(255,170,90,.22), rgba(0,0,0,0) 60%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, rgba(0,0,0,0) 1px 22px);
}
.projectCard_preview--ai{
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,0)),
    radial-gradient(520px 240px at 70% 55%, rgba(73,255,189,.16), rgba(0,0,0,0) 60%),
    radial-gradient(circle at 30% 35%, rgba(0,0,0,.06) 1px, rgba(0,0,0,0) 0);
  background-size: auto, auto, 22px 22px;
}
.projectCard_preview--bots{
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,0)),
    radial-gradient(520px 240px at 70% 55%, rgba(120,255,255,.14), rgba(0,0,0,0) 60%),
    radial-gradient(closest-side at 25% 35%, rgba(0,0,0,.06), rgba(0,0,0,0) 72%);
}

/* Make footer spacing nicer with bullets */
.projectCard_footer{
  margin-top: 10px;
}



/* WHAT I DO - force dark cards to match site style */
.section--projects .projectCard{
  background: rgba(12,14,18,.86) !important;
  color: rgba(255,255,255,.92) !important;
  border-color: rgba(255,255,255,.10) !important;
  box-shadow:
    0 40px 110px rgba(0,0,0,.70),
    0 1px 0 rgba(255,255,255,.06) inset !important;
}
.section--projects .projectCard::before{
  background:
    radial-gradient(820px 420px at 25% 0%, rgba(255,255,255,.05), rgba(255,255,255,0) 60%),
    radial-gradient(720px 420px at 80% 0%, var(--accent, rgba(73,255,189,.18)), rgba(0,0,0,0) 62%),
    linear-gradient(to bottom, rgba(255,255,255,.03), rgba(255,255,255,0)) !important;
  mix-blend-mode: normal !important;
  opacity: .9 !important;
}
.section--projects .projectCard::after{
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, rgba(255,255,255,0) 0) !important;
  opacity: .18 !important;
}

/* text */
.section--projects .projectCard_title{
  color: rgba(255,255,255,.94) !important;
}
.section--projects .projectCard_desc,
.section--projects .projectBullets li{
  color: rgba(255,255,255,.72) !important;
}
.section--projects .projectBullets li::before{
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) !important;
}

/* badge & mini */
.section--projects .projectBadge{
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.90) !important;
}
.section--projects .projectMini{
  background: rgba(0,0,0,.30) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.70) !important;
}

/* keyword outline, number, stats */
.section--projects .projectWord{
  -webkit-text-stroke: 1px rgba(255,255,255,.20) !important;
  opacity: .92 !important;
}
.section--projects .projectNum{
  background: rgba(0,0,0,.30) !important;
  border-color: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.78) !important;
}
.section--projects .projectStats{
  background: rgba(0,0,0,.34) !important;
  border-color: rgba(255,255,255,.14) !important;
}
.section--projects .projectStats .stat span{
  color: rgba(255,255,255,.62) !important;
}
.section--projects .projectStats .stat strong{
  color: rgba(255,255,255,.90) !important;
}

/* tags & button */
.section--projects .tag{
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.76) !important;
}
.section--projects .btn--ghost{
  border-color: rgba(255,255,255,.16) !important;
  color: rgba(255,255,255,.90) !important;
  background: rgba(255,255,255,.06) !important;
}
.section--projects .btn--ghost:hover{
  background: rgba(255,255,255,.10) !important;
}

/* preview stays glassy, just dim a touch */
.section--projects .projectCard_preview{
  border-bottom-color: rgba(255,255,255,.08) !important;
}
.section--projects .projectCard_preview::after{
  opacity: .12 !important;
}



/* Services card - white web schematics for LANDINGS */
.section--projects .projectCard_preview{ position: relative; }
.section--projects .webWire{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: .95;
}
.section--projects .webWire *{
  vector-effect: non-scaling-stroke;
}
.section--projects .projectCard_preview .projectBadge,
.section--projects .projectCard_preview .projectNum,
.section--projects .projectCard_preview .projectWord,
.section--projects .projectCard_preview .projectStats,
.section--projects .projectCard_preview .projectMini{
  z-index: 3;
}
.section--projects .projectCard_preview--web .webWire{
  opacity: .86;
}
@media (max-width: 760px){
  .section--projects .webWire{ opacity: .70; }
}



/* Web wire labels */
.section--projects .webWire_labels text{
  fill: rgba(255,255,255,.38);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
@media (max-width: 760px){
  .section--projects .webWire_labels text{ font-size: 12px; }
}



/* Ensure all UI elements use the same font */
button, input, textarea, select{
  font-family: inherit;
}
















/* Gear motion (subtle) */
.sysWire .gear{
  transform-box: fill-box;
  transform-origin: center;
  animation: gearSpin 18s linear infinite;
  opacity: .95;
}
.sysWire .gear.rev{ animation-direction: reverse; }
@keyframes gearSpin{ to{ transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){
  .sysWire .gear{ animation: none; }
}

/* Systems preview wireframe */
.sysWire{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .95;
}
.section--projects .sysWire *{ vector-effect: non-scaling-stroke; }

/* Keep preview content above the wire */
.projectCard_preview .projectCard_preview-inner{ position: relative; z-index: 2; }

/* Rotation */
.sysWire .spin{
  transform-box: fill-box;
  transform-origin: center;
  animation: gearSpin 10s linear infinite;
}
.sysWire .rev{ animation-direction: reverse; }
@keyframes gearSpin{ to{ transform: rotate(360deg); } }

/* Drift: gears come from behind card edges, exit, repeat */
.sysWire .drift{
  transform-box: fill-box;
  transform-origin: center;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
/* Start outside left/top, move across */
.sysWire .d1{ animation: gearDrift1 14s linear infinite; }
.sysWire .d2{ animation: gearDrift2 16s linear infinite; animation-delay: -4s; opacity: .85; }
.sysWire .d3{ animation: gearDrift3 18s linear infinite; animation-delay: -9s; opacity: .80; }
.sysWire .d4{ animation: gearDrift4 20s linear infinite; animation-delay: -12s; opacity: .75; }

/* positions are in SVG coordinate system (viewBox 860x420) */
@keyframes gearDrift1{
  from{ transform: translate(-120px, 110px); }
  to  { transform: translate(980px, 240px); }
}
@keyframes gearDrift2{
  from{ transform: translate(-160px, 260px); }
  to  { transform: translate(980px, 120px); }
}
@keyframes gearDrift3{
  from{ transform: translate(-200px, 190px); }
  to  { transform: translate(980px, 310px); }
}
@keyframes gearDrift4{
  from{ transform: translate(-220px, 80px); }
  to  { transform: translate(980px, 210px); }
}

@media (prefers-reduced-motion: reduce){
  .sysWire .spin, .sysWire .drift{ animation: none; }
}



/* Mobile preview wireframe (phone) */
.phoneWire{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: .95;
}


.section--projects .projectCard_preview--mobile .phoneWire{
  transform: translateX(-70px);
}
.section--projects .projectCard_preview--mobile .phoneWire_labels{
  transform: translateY(-10px);
  transform-box: fill-box;
  transform-origin: center;
}
.section--projects .phoneWire *{ vector-effect: non-scaling-stroke; }

.section--projects .phoneWire_labels text{
  fill: rgba(255,255,255,.38);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* iOS / Android row under MOBILE */
.mobilePlatforms{
  position: absolute;
  /* keep the content in the same place as before (compensate removed padding) */
  left: 58px;
  top: 162px;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  /* transparent: no pill background / border */
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}
.mobilePlatforms .plat{
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.mobilePlatforms .platIcon{
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,.62);
  opacity: .95;
}
.mobilePlatforms .platLabel{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  font-weight: 800;
}

@media (max-width: 760px){
  .section--projects .projectCard_preview--mobile .phoneWire{ transform: translateX(-40px); }
  .section--projects .projectCard_preview--mobile .phoneWire_labels{ transform: translateY(-8px); }
  .section--projects .phoneWire_labels text{ font-size: 12px; }
  /* compensate removed padding in the compact layout too */
  .mobilePlatforms{ left: 28px; top: 140px; padding: 0; gap: 14px; }
  .mobilePlatforms .platIcon{ width: 20px; height: 20px; }
  .mobilePlatforms .platLabel{ font-size: 11px; }
}



/* AI preview wireframe (chip + nodes) */
.aiWire{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: .95;
}
.section--projects .aiWire *{ vector-effect: non-scaling-stroke; }
.section--projects .projectCard_preview--ai .aiWire{ opacity: .88; }

.section--projects .aiWire_labels text{
  fill: rgba(255,255,255,.38);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.section--projects .aiWire_models text{
  fill: rgba(255,255,255,.34);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
}

.section--projects .aiWire_models .modelLabel{
  transform-box: fill-box;
  transform-origin: center;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--fdur, 7.6s);
  animation-delay: var(--fd, 0s);
  will-change: transform;
}
.section--projects .aiWire_models .floatCW{
  animation-name: aiModelFloatCW;
}
.section--projects .aiWire_models .floatCCW{
  animation-name: aiModelFloatCCW;
}
@keyframes aiModelFloatCW{
  0%{ transform: translate(5px, 0); }
  25%{ transform: translate(0, 5px); }
  50%{ transform: translate(-5px, 0); }
  75%{ transform: translate(0, -5px); }
  100%{ transform: translate(5px, 0); }
}
@keyframes aiModelFloatCCW{
  0%{ transform: translate(5px, 0); }
  25%{ transform: translate(0, -5px); }
  50%{ transform: translate(-5px, 0); }
  75%{ transform: translate(0, 5px); }
  100%{ transform: translate(5px, 0); }
}

.aiWire .flow{
  stroke-dasharray: 2 10;
  animation: aiFlow 2.8s linear infinite;
}
@keyframes aiFlow{ to{ stroke-dashoffset: -48; } }

.aiWire .pulse{
  transform-box: fill-box;
  transform-origin: center;
  animation: aiPulse 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes aiPulse{
  0%, 100%{ opacity: .28; }
  50%{ opacity: .78; }
}

@media (max-width: 760px){
  .section--projects .aiWire_labels text{ font-size: 12px; }
  .section--projects .aiWire_models text{ font-size: 11px; }
}



/* BOTS preview: wireframe CLI / terminal */
.botsTerminal{
  position: absolute;
  /* sits in the right half of the preview (zone like on the mock) */
  left: clamp(320px, 42%, 440px);
  right: 22px;
  top: 54px;
  bottom: 127px; /* keep clear of the stats panel (35px shorter) */
  z-index: 1;
  pointer-events: none;

  /* nudge left exactly as requested */
  transform: translateX(-70px);

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 26px 70px rgba(0,0,0,.28);
  overflow: hidden;
}
.botsTerminal::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(700px 240px at 0% 0%, rgba(255,255,255,.08), rgba(255,255,255,0) 60%),
    radial-gradient(500px 220px at 110% 20%, rgba(255,255,255,.05), rgba(255,255,255,0) 65%);
  opacity: .9;
  pointer-events:none;
}

.botsTerminal__top{
  position: relative;
  height: 34px;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.botsTerminal__lights{ display:flex; gap: 6px; opacity: .8; }
.botsTerminal__light{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.botsTerminal__title{
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.56);
  font-weight: 800;
}

.botsTerminal__body{
  position: relative;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.68);
}
.botsTerminal__lines{
  white-space: pre-wrap;
  min-height: 104px;
}
.botsTerminal__line{ display:block; }
.botsTerminal__line.is-cmd{ color: rgba(255,255,255,.78); }
.botsTerminal__cursor{
  display:inline-block;
  width: 8px;
  height: 1.05em;
  border-left: 2px solid rgba(255,255,255,.62);
  margin-left: 2px;
  transform: translateY(2px);
  animation: botsCursorBlink 1s steps(1) infinite;
}
@keyframes botsCursorBlink{ 50%{ opacity: 0; } }

.botsTerminal__progress{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap: 10px;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .25s ease, transform .25s ease;
}
.botsTerminal.is-building .botsTerminal__progress{
  opacity: 1;
  transform: translateY(0);
}
.botsTerminal__bar{
  flex: 1;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  overflow: hidden;
}
.botsTerminal__barFill{
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,.18);
}
.botsTerminal__pct{
  min-width: 38px;
  text-align: right;
  font-size: 10px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.56);
}

@media (max-width: 980px){
  .botsTerminal{ left: clamp(280px, 40%, 400px); }
}
@media (max-width: 760px){
   .projectCard_preview--bots .botsTerminal{
    display:block;
    left: 38%;
    right: 12px;
    top: 64px;
    bottom: 64px;
    transform: none;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    box-shadow:
      0 0 0 1px rgba(255,255,255,.05) inset,
      0 12px 30px rgba(0,0,0,.20);
  }

  .projectCard_preview--bots .botsTerminal__top{
    height: 26px;
    padding: 7px 9px;
    gap: 8px;
  }

  .projectCard_preview--bots .botsTerminal__title{
    font-size: 8px;
    letter-spacing: .18em;
  }

  .projectCard_preview--bots .botsTerminal__light{
    width: 6px;
    height: 6px;
  }

  .projectCard_preview--bots .botsTerminal__body{
    padding: 8px 9px;
    font-size: 9px;
    line-height: 1.22;
  }

  .projectCard_preview--bots .botsTerminal__lines{
    min-height: 46px;
    max-height: 46px;
    overflow: hidden;
  }

  .projectCard_preview--bots .botsTerminal__line:last-child{
    display: none;
  }

  .projectCard_preview--bots .botsTerminal__progress{
    gap: 6px;
    margin-top: 7px;
  }

  .projectCard_preview--bots .botsTerminal__bar{
    height: 5px;
    border-radius: 999px;
  }

  .projectCard_preview--bots .botsTerminal__pct{
    font-size: 8px;
    min-width: 28px;
  }
}

@media (max-width: 575px){
   .projectCard_preview--bots .botsTerminal{
    top: 60px;
    bottom: 64px;
    left: 38%;
    right: 12px;
  }

  .projectCard_preview--bots .projectWord{
    top: 50px;
    font-size: clamp(26px, 10.5vw, 42px);
  }

  .projectCard_preview--bots .projectMini{
    left: 12px;
    right: 12px;
    max-width: none;
    padding-right: 0;
  }
}

@media (max-width: 390px){
   .projectCard_preview--bots .botsTerminal{
    left: 36%;
    right: 10px;
    top: 58px;
    bottom: 62px;
  }

  .projectCard_preview--bots .botsTerminal__body{
    padding: 7px 8px;
    font-size: 8px;
    line-height: 1.2;
  }

  .projectCard_preview--bots .botsTerminal__lines{
    min-height: 40px;
    max-height: 40px;
  }
}



/* ===== PRICING - sticky 3D fly-through (testimonials-like) ===== */
.section--pricing{
  padding: 110px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
  /* IMPORTANT: do not clip on a sticky ancestor (breaks position: sticky).
     Clipping is applied on the sticky viewport below. */
  overflow: visible;
}

.section--pricing .section__head{
  padding: 28px 0 8px;
  text-align: center;
}
@media (max-width: 760px){
  .section--pricing .section__head{ padding: 22px 0 6px; }
}
.section--pricing h2{
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: -.03em;
}
.section--pricing h2.sectionHeroTitle{ margin: 0; }
.section--pricing .section__sub{
  color: rgba(255,255,255,.70);
  max-width: 70ch;
  margin: 0;
}

.pricing{
  position: relative;
  margin-top: 22px;
}

:root{
  /* PRICING presets: tweak from script.js or here */
  --pricing-inner-h: 140svh;
  --pricing-inner-h-mobile: 135svh;
}

.priceItem_inner{
  position: relative;
  /*
    Pricing should scroll slower and never "pile" multiple cards on screen.
    Sticky phase length = height - 100svh.
    Larger value => more scroll distance per card.
  */
  /* tuned: shorter distance between cards (less wheel ticks per card) */
  height: var(--pricing-inner-h);
}
@media (max-width: 760px){
  .priceItem_inner{ height: var(--pricing-inner-h-mobile); }
}

/* Remove the unavoidable 100vh "dead" area between sticky cards by overlapping items.
   Each next item starts right when the previous animation finishes (≈height - 100svh). */
.priceItem_inner + .priceItem_inner{
  margin-top: -100svh;
}

.priceItem_sticky{
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  /* JS raises z-index for active card; default keeps stacking predictable */
  z-index: 1;
  perspective: 2000px;
  padding: 32px 18px;
  overflow: clip; /* clip the flying card without breaking sticky */
}

.priceBoxWrap{
  width: min(860px, 92vw);
  transform-style: preserve-3d;
  will-change: transform;
}

.priceCard{
  position: relative;
  transform-style: preserve-3d;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,14,18,.86);
  color: rgba(255,255,255,.92);
  box-shadow:
    0 40px 110px rgba(0,0,0,.70),
    0 1px 0 rgba(255,255,255,.06) inset;
}

.priceCard::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(820px 420px at 25% 0%, rgba(255,255,255,.05), rgba(255,255,255,0) 60%),
    radial-gradient(720px 420px at 80% 0%, var(--accent, rgba(73,255,189,.18)), rgba(0,0,0,0) 62%),
    linear-gradient(to bottom, rgba(255,255,255,.03), rgba(255,255,255,0));
  opacity: .9;
}

.priceCard::after{
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, rgba(255,255,255,0) 0);
  background-size: 22px 22px;
  opacity: .18;
}

.priceCard_overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.30) 32%,
    rgba(0,0,0,.10) 60%,
    rgba(0,0,0,.55) 100%
  );
  opacity: 1;
}

.priceCard_preview{
  position: relative;
  height: 280px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 3;
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.12), rgba(0,0,0,0)),
    radial-gradient(520px 260px at 70% 55%, var(--accent2, rgba(140,160,255,.16)), rgba(0,0,0,0) 60%),
    radial-gradient(circle at 30% 35%, rgba(255,255,255,.06) 1px, rgba(255,255,255,0) 0);
  background-size: auto, auto, 22px 22px;
}

.priceBadge{
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.90);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.priceNum{
  position:absolute;
  right: 16px;
  top: 14px;
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.14);
  padding: 8px 10px;
  border-radius: 999px;
}

.priceWord{
  position:absolute;
  left: 18px;
  top: 62px;
  font-size: clamp(52px, 8.5vw, 120px);
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0);
  -webkit-text-stroke: 1px rgba(255,255,255,.20);
  opacity: .92;
  user-select: none;
  pointer-events: none;
}
@media (max-width: 760px){
  .priceWord{ top: 54px; font-size: clamp(34px, 10vw, 72px); }
}

.priceMini{
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.70);
  font-size: 12px;
  letter-spacing: .04em;
}

.priceStats{
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  max-width: min(320px, 52%);
}
.priceStats .stat{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  line-height: 1.2;
}
.priceStats .stat span{
  color: rgba(255,255,255,.62);
  white-space: nowrap;
}
.priceStats .stat strong{
  color: rgba(255,255,255,.90);
  font-weight: 700;
  text-align: right;
}
@media (max-width: 760px){
  .priceStats{ display:none; }
}

.priceCard_body{
  position: relative;
  z-index: 3;
  padding: 18px 18px 16px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.priceCard_title{
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.94);
}

.priceCard_desc{
  margin: 0 0 10px;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}

.priceBullets{
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.priceBullets li{
  position: relative;
  padding-left: 18px;
  color: rgba(255,255,255,.72);
  line-height: 1.45;
}
.priceBullets li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

.priceCard_footer{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.priceTags{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section--pricing .tag{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.76);
}
.section--pricing .btn--ghost{
  border-color: rgba(255,255,255,.16);
  color: rgba(255,255,255,.90);
  background: rgba(255,255,255,.06);
}
.section--pricing .btn--ghost:hover{
  background: rgba(255,255,255,.10);
}

@media (max-width: 760px){
  .priceCard_preview{ height: 240px; }
}


/* =========================
   Pricing cards (V2 layout)
   ========================= */

.priceCard--v2{
  /* Make it feel different from the “What I do” cards: less “poster”, more “pricing sheet”. */
}

.priceV2{
  position: relative;
  z-index: 3; /* keep overlay behind text, as before */
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.priceV2_head{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
}

.priceV2_badge{
  display: grid;
  gap: 8px;
  align-content: start;
}

.priceV2_num{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 900;
  letter-spacing: .10em;
  color: rgba(255,255,255,.88);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}

.priceV2_type{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.priceV2_meta{
  font-size: 12px;
  color: rgba(255,255,255,.60);
}

.priceV2_titleWrap{
  padding-top: 2px;
}

.priceV2_title{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,.94);
}


.hyphenFix{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: inherit;
  letter-spacing: 0;
  display: inline-block;
}

.priceV2_sub{
  margin: 8px 0 10px;
  color: rgba(255,255,255,.72);
  line-height: 1.55;
  max-width: 60ch;
}


/* Optional bullet points under the subtitle (used in the first pricing card) */
.priceV2_points{
  margin: -4px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255,255,255,.72);
  line-height: 1.4;
}
.priceV2_points span{ white-space: nowrap; }

.priceV2_chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.priceV2_chips .chip{
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.74);
  font-size: 12px;
  letter-spacing: .02em;
}

.priceV2_total{
  text-align: right;
  padding-top: 2px;
  min-width: 140px;
}

.priceV2_totalLabel{
  font-size: 12px;
  color: rgba(255,255,255,.60);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.priceV2_totalValue{
  margin-top: 6px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.96);
}

.priceV2_body{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  align-items: stretch;
}

.priceV2_services{
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.10);
  display: grid;
  gap: 10px;
}

.serviceRow{
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.serviceRow::before{
  content: "";
  position: absolute;
  opacity: 0;
}

.serviceName{
  color: rgba(255,255,255,.78);
  line-height: 1.35;
}

.servicePrice{
  color: rgba(255,255,255,.92);
  font-weight: 800;
  white-space: nowrap;
}

.priceV2_visual{
  position: relative;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.26), rgba(0,0,0,0)),
    radial-gradient(420px 260px at 75% 30%, var(--accent2, rgba(140,160,255,.16)), rgba(0,0,0,0) 60%),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, rgba(255,255,255,0) 0);
  background-size: auto, auto, 22px 22px;
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 12px;
  min-height: 210px;
}

.priceCard--v2[data-kind="landing"] .priceV2_visual{
  min-height: 258px;
}

/* Web-app / corporate systems: make the visual taller (vertical composition) */
.priceCard--v2[data-kind="webapp"] .priceV2_visual{
  min-height: 320px;

}


/* AI automation: richer vertical visual */
.priceCard--v2[data-kind="ai"] .priceV2_visual{
  min-height: 300px;
}

.priceCard--v2[data-kind="ai"] .aiAuto .aiScanLine{
  fill: rgba(255,255,255,.16);
  stroke: none;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.22));
}

.priceCard--v2[data-kind="ai"] .aiAuto .aiScanGlow{
  fill: rgba(255,255,255,.08);
  stroke: none;
}

.priceCard--v2[data-kind="ai"] .aiAuto .aiLabel{
  font: 900 10px/1 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  fill: rgba(255,255,255,.92);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.priceCard--v2[data-kind="ai"] .aiAuto .aiBig{
  font-size: 20px;
}

/* AI labels overlay (prevents SVG font jitter when SVG elements animate) */
.priceCard--v2[data-kind="ai"] .aiAutoWrap{
  position: relative;
  width: 100%;
  aspect-ratio: 280 / 240;
  max-height: 100%;
  height: auto;
  align-self: center;
  justify-self: stretch;
}

.priceCard--v2[data-kind="ai"] .aiAuto{
  display: block;
  width: 100%;
  height: 100%;
}

.priceCard--v2[data-kind="ai"] .aiAutoLabels{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.priceCard--v2[data-kind="ai"] .aiAutoLabel{
  position: absolute;
  transform: translate(-50%, -50%) translateZ(0);
  will-change: transform;
  font: 900 10px/1 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: rgba(255,255,255,.92);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}

/* Coordinates are mapped from SVG viewBox (280x240) to % */
.priceCard--v2[data-kind="ai"] .aiAutoLabel--ai{
  left: 50%;
  top: 63.6%;
  font-size: 20px;
  letter-spacing: .08em;
}

.priceCard--v2[data-kind="ai"] .aiAutoLabel--crm{ left: 29.3%; top: 84.8%; font-size: 10px; }
.priceCard--v2[data-kind="ai"] .aiAutoLabel--erp{ left: 50%;  top: 84.8%; font-size: 10px; }
.priceCard--v2[data-kind="ai"] .aiAutoLabel--bi{  left: 70.7%; top: 84.8%; font-size: 10px; }

.priceV2_visual::after{
  content: "";
  position: absolute;
  inset: -60% -30%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.10), rgba(255,255,255,0));
  transform: translateX(-45%) rotate(18deg);
  animation: priceShine 5.6s linear infinite;
  opacity: .55;
  pointer-events: none;
}

@keyframes priceShine{
  0%{ transform: translateX(-55%) rotate(18deg); }
  100%{ transform: translateX(55%) rotate(18deg); }
}

.priceV2_visualLabel{
  position: relative;
  z-index: 1;
  justify-self: start;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.70);
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.12);
  padding: 8px 10px;
  border-radius: 999px;
}

.priceV2_visualFoot{
  position: relative;
  z-index: 1;
  justify-self: start;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.72);
}

.priceSketch{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.priceSketch line,
.priceSketch path,
.priceSketch rect,
.priceSketch circle{
  fill: none;
  stroke: rgba(255,255,255,.78);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.priceSketch .faint{
  stroke: rgba(255,255,255,.22);
}

.priceSketch .accent{
  stroke: rgba(255,255,255,.90);
}

.priceSketch .dash{
  stroke-dasharray: 10 14;
  animation: priceDash 4s linear infinite;
}

/* “Рисование” стрелки (используется в карточке лендинга, чтобы не было артефактов у dash) */
.priceSketch .draw{
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: priceDraw 3.2s ease-in-out infinite;
}

@keyframes priceDraw{
  0%{ stroke-dashoffset: 100; opacity: 0; }
  12%{ opacity: 1; }
  55%{ stroke-dashoffset: 0; opacity: 1; }
  78%{ opacity: 1; }
  100%{ stroke-dashoffset: 0; opacity: 0; }
}

.priceSketch .dotFill{
  fill: rgba(255,255,255,.92);
  stroke: none;
}

.priceSketch .ripple{
  transform-box: fill-box;
  transform-origin: center;
  animation: priceRipple 3.2s ease-in-out infinite;
}

@keyframes priceRipple{
  0%, 45%{ opacity: 0; transform: scale(.7); }
  58%{ opacity: .9; transform: scale(1); }
  100%{ opacity: 0; transform: scale(1.9); }
}

@keyframes priceDash{
  to{ stroke-dashoffset: -220; }
}

.priceSketch .nodePulse{
  animation: nodePulse 1.8s ease-in-out infinite;
}

@keyframes nodePulse{
  0%, 100%{ opacity: .35; }
  50%{ opacity: 1; }
}

.priceSketchText{
  font: 900 18px/1 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  fill: rgba(255,255,255,.92);
}


/* =============================
   Pricing card #05 (bots):
   chat scene
   ============================= */
.priceCard--v2[data-kind="bots"] .botsScene{
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr;
  gap: 0;
}

.botsChat{
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.08));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
  min-height: 150px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.botsChat__top{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}

.botsChat__dots{
  display: inline-flex;
  gap: 7px;
}

.botsChat__dots span{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.06);
}

.botsChat__title{
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.74);
  justify-self: center;
}

.botsBotPill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.84);
}

.botsBotPill__text{
  font-size: 11px;
  letter-spacing: .22em;
}

.botsBotPill__eyes{
  position: relative;
  width: 22px;
  height: 10px;
}

.botsBotPill__eyes::before,
.botsBotPill__eyes::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 3px rgba(0,0,0,.22);
  animation: botsBlink 4.8s ease-in-out infinite;
}

.botsBotPill__eyes::before{ left: 0; }
.botsBotPill__eyes::after{ right: 0; }

@keyframes botsBlink{
  0%, 6%, 100%{ transform: translateY(-50%) scaleY(1); opacity: .92; }
  7%{ transform: translateY(-50%) scaleY(.15); opacity: .75; }
  8%{ transform: translateY(-50%) scaleY(1); opacity: .92; }
}

.botsChat__body{
  position: relative;
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.botsBubble{
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.25;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.84);
  opacity: 0;
  transform: translateY(8px);
  animation: botsBubble 8.0s ease-in-out infinite;
}

.botsBubble--out{
  align-self: flex-end;
  background: linear-gradient(180deg, rgba(120,255,255,.14), rgba(0,0,0,.02));
}

.botsBubble--in{
  align-self: flex-start;
}

.botsBubble--1{ animation-delay: .1s; }
.botsBubble--2{ animation-delay: 1.4s; }
.botsBubble--3{ animation-delay: 2.9s; }
.botsBubble--4{ animation-delay: 4.3s; }

@keyframes botsBubble{
  0%{ opacity: 0; transform: translateY(8px); }
  10%{ opacity: 1; transform: translateY(0); }
  35%{ opacity: 1; transform: translateY(0); }
  48%{ opacity: 0; transform: translateY(-6px); }
  100%{ opacity: 0; transform: translateY(-6px); }
}

.botsTyping{
  margin-top: auto;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  width: max-content;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.26);
  opacity: .85;
}

.botsTyping span{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.86);
  opacity: .35;
  animation: botsTyping 1.2s ease-in-out infinite;
}

.botsTyping span:nth-child(2){ animation-delay: .18s; }
.botsTyping span:nth-child(3){ animation-delay: .36s; }

@keyframes botsTyping{
  0%, 100%{ transform: translateY(0); opacity: .30; }
  50%{ transform: translateY(-4px); opacity: .90; }
}

.botsCrmPill{
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.34);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .06em;
}

.botsWire{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .95;
}

.botsWire__path{
  fill: none;
  stroke: rgba(120,255,255,.70);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 14;
  animation: priceDash 3.2s linear infinite;
}

.botsWire__pulse{
  fill: rgba(120,255,255,.85);
  opacity: .65;
  transform-box: fill-box;
  transform-origin: center;
  animation: botsPulse 2.0s ease-in-out infinite;
}

@keyframes botsPulse{
  0%, 100%{ transform: scale(.85); opacity: .35; }
  50%{ transform: scale(1.12); opacity: .9; }
}

.botsTerminal.botsTerminal--price{
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  border-radius: 16px;
}

.botsTerminal--price .botsTerminal__top{
  height: 30px;
  padding: 8px 10px;
}

.botsTerminal--price .botsTerminal__body{
  padding: 10px 12px;
  font-size: 11px;
}

.botsTerminal--price .botsTerminal__lines{
  min-height: 52px;
}

.botsTerminal--price .botsTerminal__progress{
  margin-top: 8px;
}

.botsTerminal.botsTerminal--scene{
  width: 100%;
  height: 124px;
  border-radius: 16px;
}

/* flying packet: terminal → chat → CRM */
.botsPacket{
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 0 0 1px rgba(0,0,0,.22) inset;
  left: 60%;
  top: calc(100% - 78px);
  opacity: 0;
  transform: translate(0,0) scale(.8);
  animation: botsPacketFly 5.2s cubic-bezier(.22,.9,.32,1) infinite;
}

@keyframes botsPacketFly{
  0%, 18%{ opacity: 0; transform: translate(0,0) scale(.8); }
  24%{ opacity: 1; }
  46%{ opacity: 1; transform: translate(-64px, -118px) scale(1); }
  62%{ opacity: 1; transform: translate(34px, -150px) scale(.95); }
  76%{ opacity: 0; transform: translate(34px, -150px) scale(.75); }
  100%{ opacity: 0; transform: translate(0,0) scale(.8); }
}

@media (prefers-reduced-motion: reduce){
  .botsBubble,
  .botsTyping span,
  .botsWire__path,
  .botsWire__pulse,
  .botsPacket{
    animation: none !important;
  }
  .botsBubble{ opacity: 1; transform: none; }
  .botsPacket{ display: none; }
}

/* Flow dots for the vertical "platform" sketch (webapp card) */
.priceCard--v2[data-kind="webapp"] .priceSketch .flowDot{
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: flowDown 2.9s linear infinite;
}

.priceCard--v2[data-kind="webapp"] .priceSketch .flowDot--2{ animation-delay: .85s; }
.priceCard--v2[data-kind="webapp"] .priceSketch .flowDot--3{ animation-delay: 1.7s; }

@keyframes flowDown{
  0%{ transform: translateY(0); opacity: 0; }
  10%{ opacity: 1; }
  82%{ opacity: 1; }
  100%{ transform: translateY(160px); opacity: 0; }
}

/* =============================
   Mini “shop → cart” animation
   (pricing card #01)
   ============================= */


/* Keep layout after removing the visual label chip */
.priceCard--v2[data-kind="landing"] .miniShopAnim{
  grid-row: 2;
}
.priceCard--v2[data-kind="landing"] .priceV2_visualFoot{
  grid-row: 3;
}

.miniShopAnim{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 2px 6px;
}

.miniShopBrowser{
  --shopDur: 5.2s;
  position: relative;
  width: 100%;
  height: clamp(220px, 92%, 282px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(0,0,0,.24), rgba(0,0,0,.10));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
}

.miniShopTop{
display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  min-height: 58px;
}


.miniShopDots{
  display: inline-flex;
  gap: 7px;
}

.miniShopDots span{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.34);
  opacity: .9;
}

.miniShopCart{
  width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
}

.miniShopCartIcon{
  width: 22px;
  height: 22px;
  fill: none;
  stroke: rgba(255,255,255,.86);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 70% 45%;
  animation: cartBump var(--shopDur) ease-in-out infinite;
}

@keyframes cartBump{
  0%, 50%{ transform: scale(1); }
  56%{ transform: scale(1.10) rotate(-2deg); }
  66%{ transform: scale(1); }
}

.miniShopGrid{
  position: absolute;
  left: 12px;
  right: 12px;
  top: 66px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 9px;
}

.miniShopItem{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(120px 80px at 35% 30%, rgba(255,255,255,.06), rgba(0,0,0,0) 55%),
    rgba(0,0,0,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  display: grid;
  place-items: center;
  padding: 4px;
}

.miniShopItem svg{
  width: 72%;
  height: 72%;
  fill: none;
  stroke: rgba(255,255,255,.86);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .92;
}

.miniShopItem--target{
  position: relative;
  border-color: rgba(255,255,255,.30);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
  animation: itemPick var(--shopDur) ease-in-out infinite;
}

.miniShopItem--target::after{
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,.26);
  opacity: .0;
  animation: itemPackHint var(--shopDur) ease-in-out infinite;
}

@keyframes itemPackHint{
  0%, 22%{ opacity: 0; }
  28%{ opacity: .7; }
  42%{ opacity: .0; }
  100%{ opacity: 0; }
}

@keyframes itemPick{
  0%, 22%{ transform: scale(1); opacity: 1; }
  28%{ transform: scale(.92); opacity: .75; }
  36%{ transform: scale(.55); opacity: 0; }
  62%{ transform: scale(.55); opacity: 0; }
  74%{ transform: scale(1); opacity: 1; }
  100%{ transform: scale(1); opacity: 1; }
}

.miniShopCursor{
  position: absolute;
  width: 30px;
  height: 30px;
  left: 78%;
  top: 72%;
  transform: rotate(0deg);
  animation: shopCursor var(--shopDur) ease-in-out infinite;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.55));
}

.miniShopCursorSvg{
  width: 30px;
  height: 30px;
}

.miniShopCursorSvg path{
  fill: rgba(0,0,0,.18);
  stroke: rgba(255,255,255,.90);
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.miniShopClick{
  position: absolute;
  left: 12px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.78);
  opacity: 0;
  transform: scale(.7);
  animation: shopClick var(--shopDur) ease-in-out infinite;
}

@keyframes shopCursor{
  0%{ left: 80%; top: 72%; opacity: 0; transform: rotate(0deg) scale(1); }
  8%{ opacity: 1; }
  22%{ left: 50%; top: 60%; transform: rotate(-7deg) scale(1); }
  27%{ transform: rotate(-7deg) scale(.92); }
  32%{ transform: rotate(-7deg) scale(1); }
  54%{ left: 84%; top: 14%; transform: rotate(0deg) scale(1); }
  70%{ left: 80%; top: 72%; opacity: 1; }
  100%{ left: 80%; top: 72%; opacity: 0; }
}

@keyframes shopClick{
  0%, 23%{ opacity: 0; transform: scale(.6); }
  28%{ opacity: .95; transform: scale(1); }
  36%{ opacity: 0; transform: scale(1.9); }
  54%{ opacity: 0; transform: scale(.6); }
  58%{ opacity: .85; transform: scale(1); }
  66%{ opacity: 0; transform: scale(1.9); }
  100%{ opacity: 0; }
}

.miniShopPackage{
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid rgba(255,255,255,.92);
  left: 50%;
  top: 60%;
  opacity: 0;
  transform: scale(.6) rotate(0deg);
  box-shadow: 0 10px 18px rgba(0,0,0,.45);
  animation: packFly var(--shopDur) cubic-bezier(.2,.8,.2,1) infinite;
}

.miniShopPackage::before,
.miniShopPackage::after{
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.34);
}

.miniShopPackage::after{
  inset: auto;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,.40);
  border: none;
  transform: translateY(-50%);
}

@keyframes packFly{
  0%, 24%{ opacity: 0; transform: scale(.35) rotate(0deg); left: 50%; top: 60%; }
  26%{ opacity: 1; transform: scale(1) rotate(0deg); left: 50%; top: 60%; }
  48%{ opacity: 1; transform: scale(.80) rotate(12deg); left: 84%; top: 14%; }
  58%{ opacity: 0; transform: scale(.16) rotate(18deg); left: 84%; top: 14%; }
  100%{ opacity: 0; transform: scale(.35) rotate(0deg); left: 50%; top: 60%; }
}

@media (prefers-reduced-motion: reduce){
  .miniShopCartIcon,
  .miniShopCursor,
  .miniShopClick,
  .miniShopPackage,
  .miniShopItem--target{
    animation: none !important;
  }
  .miniShopPackage{ opacity: 0 !important; }
  .miniShopCursor{ opacity: 1 !important; }
}

.priceV2_footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.priceV2_note{
  color: rgba(255,255,255,.64);
  font-size: 12px;
  line-height: 1.4;
  max-width: 65ch;
}

@media (max-width: 860px){
  .priceV2_head{
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "badge total"
      "title title";
  }
  .priceV2_badge{ grid-area: badge; }
  .priceV2_total{ grid-area: total; }
  .priceV2_titleWrap{ grid-area: title; }
  .priceV2_body{
    grid-template-columns: 1fr;
  }
  .priceV2_visual{ min-height: 200px; }
}

@media (max-width: 520px){
  .priceV2{ padding: 18px 16px 14px; }
  .priceV2_title{ font-size: 20px; }
  .priceV2_totalValue{ font-size: 22px; }
  .serviceRow{ padding: 9px 9px; }
}


/* ===== ABOUT - big identity + photo collage (Diego-like, but in this site's style) ===== */
.section--about{
  padding: 110px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}

.about{
  position: relative;
  display: block;
}

.about__copy{
  position: relative;
  z-index: 2;
  min-width: 0;
}

.about__copy::after{
  content: "";
  display: table;
  clear: both;
}

.about__kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.62);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.about__title{
  margin: 18px 0 16px;
  font-size: clamp(28px, 3.15vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: pretty;
  max-width: none;
  overflow-wrap: anywhere;
}

.about__lead{
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.68;
  color: rgba(255,255,255,.78);
  max-width: none;
}

.about__bio p{
  margin: 0 0 10px;
  color: rgba(255,255,255,.70);
  font-size: 15px;
  line-height: 1.68;
  max-width: none;
}

.about__muted{ color: rgba(255,255,255,.56) !important; }


.about__collage{
  position: relative;
  float: right;
  width: min(42vw, 470px);
  max-width: 470px;
  min-height: 430px;
  margin: 6px 0 18px 34px;
  display: grid;
  place-items: center;
  z-index: 2;
  shape-outside: inset(0 round 26px);
  shape-margin: 18px;
}

.about__wire{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
  opacity: .82;
}

.aboutWireSvg{
  width: min(100%, 520px);
  height: auto;
  overflow: visible;
}

.aboutWireSvg .w{
  fill: none;
  stroke: rgba(255,255,255,.12);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aboutWireSvg .n{
  fill: rgba(255,255,255,.22);
  opacity: .82;
}

.about__scan{
  position: absolute;
  width: min(72%, 360px);
  height: 2px;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.65), rgba(255,255,255,0));
  opacity: .35;
  filter: blur(.2px);
  animation: aboutScan 3.6s ease-in-out infinite;
}

@keyframes aboutScan{
  0%{ transform: translateX(-50%) translateY(0); opacity: .16; }
  45%{ opacity: .45; }
  100%{ transform: translateX(-50%) translateY(260px); opacity: .16; }
}

.aboutPhoto{
  position: absolute;
  width: 248px;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: 0 30px 90px rgba(0,0,0,.48);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  will-change: transform;
  --base-x: 0px;
  --base-y: 0px;
  --base-r: 0deg;
  --reveal-y: 0px;
  --float-x: 0px;
  --float-y: 0px;
  --par-x: 0px;
  --par-y: 0px;
  transform:
    translate3d(var(--base-x), var(--base-y), 0)
    translate3d(0, var(--reveal-y), 0)
    rotate(var(--base-r))
    translate3d(var(--float-x), var(--float-y), 0)
    translate3d(var(--par-x), var(--par-y), 0);
  transition: box-shadow .35s ease;
}

.aboutPhoto:hover{
  box-shadow: 0 36px 100px rgba(0,0,0,.54);
}

.aboutPhoto img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(1px);
}

.aboutPhoto--a img{ object-position: center 28%; }
.aboutPhoto--b img{ object-position: center center; }

.aboutPhoto::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(9,16,34,.10) 0%, rgba(9,16,34,.02) 36%, rgba(9,16,34,.56) 100%);
  pointer-events:none;
  z-index: 1;
}

.aboutPhoto::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(600px 420px at 30% 25%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%);
  opacity: .6;
  pointer-events:none;
}

.aboutPhoto figcaption{
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.34);
  color: rgba(255,255,255,.78);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.aboutPhoto--a{ --base-x: -104px; --base-y: -24px; --base-r: -2deg; z-index: 1; }
.aboutPhoto--b{ --base-x: 92px; --base-y: -36px; --base-r: 2deg; z-index: 2; }

@media (max-width: 980px){
  .about__collage{
    float: none;
    width: 100%;
    max-width: none;
    min-height: 520px;
    margin: 14px 0 12px;
    shape-outside: none;
    shape-margin: 0;
  }
}

@media (max-width: 520px){
  .about__title{ font-size: clamp(30px, 9vw, 44px); max-width: none; }
  .aboutPhoto{ width: 210px; }
  .aboutPhoto--a{ --base-x: -72px; --base-y: -24px; --base-r: -2deg; }
  .aboutPhoto--b{ width: 190px; --base-x: 74px; --base-y: -34px; --base-r: 2deg; }
}

@media (prefers-reduced-motion: reduce){
  .about__scan{ animation: none !important; }
  .aboutPhoto{ transition: none; }
}


/* ===== CONTACT (redesign) ===== */
.contactSection{
  padding-top: 86px;
  padding-bottom: 110px;
}

.contactGrid{
  margin-top: 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: start;
}

.contactCopy{
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contactKicker{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  margin: -10px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.62);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.contactTitle{
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -.04em;
  line-height: .95;
  font-size: clamp(38px, 4.2vw, 70px);
  max-width: 18ch;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.contactLead{
  margin: 0;
  color: rgba(255,255,255,.76);
  line-height: 1.6;
  max-width: 68ch;
}

.contactActions{
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn--contactTelegram{
  min-width: 244px;
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background:
    radial-gradient(420px 180px at 18% 0%, rgba(120,180,255,.24), rgba(0,0,0,0) 62%),
    rgba(10,16,26,.56);
  border: 1px solid rgba(120,180,255,.20);
  color: rgba(255,255,255,.94);
  box-shadow: 0 20px 70px rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--contactTelegram:hover{
  transform: translateY(-1px);
  background:
    radial-gradient(420px 180px at 18% 0%, rgba(120,180,255,.34), rgba(0,0,0,0) 62%),
    rgba(12,20,32,.70);
  border-color: rgba(120,180,255,.32);
}
.btn--contactTelegram:focus-visible{
  outline: none;
  border-color: rgba(150,205,255,.44);
}

.contactMini{
  margin-top: 16px;
  max-width: 420px;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.10);
}

.contactMini__row{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.contactMini__row:last-child{ border-bottom: 0; }

.contactMini__row span{
  color: rgba(255,255,255,.58);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contactMini__row strong{
  color: rgba(255,255,255,.86);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 800;
}

.contactAlt{
  margin-top: 14px;
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
.contactAlt__label{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.52);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.50);
}

/* right card */
.contactCard{
  position: relative;
  /* keep the card as compact as the form itself */
  min-height: 0;
  height: fit-content;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(900px 340px at 92% 8%, rgba(73,255,189,.14), rgba(0,0,0,0) 54%),
    radial-gradient(900px 360px at 16% 112%, rgba(120,255,255,.10), rgba(0,0,0,0) 56%),
    rgba(255,255,255,.04);
  box-shadow: 0 34px 120px rgba(0,0,0,.55);
  overflow: hidden;
  backdrop-filter: blur(14px);

  /* layout */
  display:flex;
  flex-direction:column;
  gap: 14px;
  padding: 18px 18px 14px;
}

.contactCard::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  background:
    radial-gradient(520px 320px at 76% 18%, rgba(255,255,255,.10), rgba(255,255,255,0) 64%),
    radial-gradient(520px 280px at 12% 86%, rgba(255,255,255,.07), rgba(255,255,255,0) 60%);
  opacity: .75;
  pointer-events:none;
}

.contactViz{
  position: relative;
  flex: 0 0 170px;
  border-radius: 22px;
  /* no underlay: keep only the wireframe */
  border: 0;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}

/* same viz, but placed on the left column */
.contactViz--copy{
  margin-top: 14px;
  max-width: 560px;
  height: 150px;
  flex: 0 0 150px;
  background: transparent;
  box-shadow: none;
}
.contactViz--copy .contactWire{
  /* render 1:1 so the 100px gap is really 100px on screen */
  transform: translate(0px, 10px) scale(1);
  opacity: .84;
}
.contactViz--copy .contactScan{
  opacity: .14;
}

.contactScan{
  position:absolute;
  width: 86%;
  height: 2px;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.66), rgba(255,255,255,0));
  opacity: .20;
  animation: contactScan2 4.2s ease-in-out infinite;
  filter: blur(.2px);
}
@keyframes contactScan2{
  0%{ transform: translateX(-50%) translateY(0); opacity: .12; }
  45%{ opacity: .30; }
  100%{ transform: translateX(-50%) translateY(120px); opacity: .12; }
}

.contactWire{
  position:absolute;
  inset:0;
  width: 100%;
  height: 100%;
  /* compact viz */
  transform: translate(8px, 18px) scale(.78);
  transform-origin: top left;
  opacity: .78;
}

.contactWire .cwBox{
  fill: rgba(255,255,255,.02);
  stroke: rgba(255,255,255,.16);
  stroke-width: 2.2;
}
.contactWire .cwLine{
  fill:none;
  stroke: rgba(255,255,255,.10);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.contactWire .cwDash{
  fill:none;
  stroke: rgba(255,255,255,.46);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  animation: cwDash 4.6s linear infinite;
}
@keyframes cwDash{ to{ stroke-dashoffset: -44; } }

.contactWire .cwNode{
  fill: rgba(255,255,255,.88);
  opacity: .52;
  animation: cwNode 2.4s ease-in-out infinite;
  transform-origin: center;
}
.contactWire .cwNode:nth-of-type(2n){ animation-delay: .2s; }
.contactWire .cwNode:nth-of-type(3n){ animation-delay: .4s; }
@keyframes cwNode{ 50%{ transform: scale(.86); opacity: .32; } }

.contactWire .cwDot{
  fill: rgba(255,255,255,.92);
  opacity: .62;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
  transform-box: fill-box;
  transform-origin: center;
}
.contactWire .cwDot--send{
  opacity: 0;
  animation: cwSend 1.25s ease-in-out infinite;
}
.contactWire .cwDot--s1{ animation-delay: 0s; }
.contactWire .cwDot--s2{ animation-delay: .26s; }
.contactWire .cwDot--s3{ animation-delay: .52s; }

@keyframes cwSend{
  0%{ transform: translateX(0px); opacity: .12; }
  35%{ opacity: .82; }
  100%{ transform: translateX(100px); opacity: .10; }
}


.contactCard.is-sending .contactWire .cwDot--idle,
.contactSection.is-sending .contactWire .cwDot--idle{ opacity: 0; }
.contactCard.is-sending .contactWire .cwDot--send,
.contactSection.is-sending .contactWire .cwDot--send{ opacity: .86; }
.contactCard.is-sending .contactWire .cwDash,
.contactSection.is-sending .contactWire .cwDash{ animation-duration: 1.10s; opacity: .88; }

.contactWire .cwCheck{
  opacity: 0;
  transform-origin: 434px 214px;
  transform: scale(.9);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.contactCard.is-sent .contactWire .cwCheck,
.contactSection.is-sent .contactWire .cwCheck{
  opacity: 1;
  transform: scale(1);
}
.contactWire .cwCheckRing{
  fill:none;
  stroke: rgba(255,255,255,.35);
  stroke-width: 2.4;
}
.contactWire .cwCheckMark{
  fill:none;
  stroke: rgba(255,255,255,.78);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* form */
.contactForm2{
  position: relative;
  z-index: 2;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  /* no underlay behind fields */
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* allow resizing message only vertically (no horizontal resize) */
.contactForm2 textarea{
  resize: vertical;
}

.c2Field{
  display:flex;
  flex-direction:column;
  gap: 8px;
  min-width: 0;
}
.c2Field--full{ grid-column: 1 / -1; }

.c2Field span{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
}

.c2Field input, .c2Field textarea{
  background: rgba(0,0,0,.76);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 12px 12px;
  color: rgba(255,255,255,.92);
  outline: none;
  transition: border-color .18s ease, background .18s ease;
}
.c2Field input::placeholder, .c2Field textarea::placeholder{
  color: rgba(255,255,255,.40);
}
.c2Field input:focus, .c2Field textarea:focus{
  border-color: rgba(255,255,255,.24);
  background: rgba(0,0,0,.82);
}

.contactBottom2{
  grid-column: 1 / -1;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.contactStatusWrap{
  display:flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 220px;
}

.contactCalendarBtn{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .18s ease, transform .18s ease;
}
.contactCalendarBtn:hover{ color: rgba(255,255,255,.92); transform: translateY(-1px); }
.contactCalendarBtn:focus-visible{
  outline: none;
  color: rgba(255,255,255,.96);
  text-decoration: underline;
}

.contactStatus2{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.48);
  border: 1px solid rgba(255,255,255,.10);
}

.contactStatus2__label{
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
}
.contactStatus2__text{
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  /* traffic-light READY */
  color: rgba(72, 255, 170, .92);
  white-space: nowrap;
}
.contactStatus2__cursor{
  width: 9px;
  height: 12px;
  border-radius: 2px;
  background: rgba(72, 255, 170, .95);
  opacity: .85;
  animation: contactBlink2 1.1s steps(1) infinite;
}
@keyframes contactBlink2{ 50%{ opacity: 0; } }

.contactHint2{
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: rgba(255,255,255,.52);
  font-size: 12px;
  line-height: 1.5;
}

/* subtle "typing" accent without JS */
.contactCard:has(.contactForm2:focus-within) .contactScan{
  opacity: .34;
}

/* responsive */
@media (max-width: 980px){
  .contactGrid{ grid-template-columns: 1fr; }
  .contactCard{ min-height: 0; height: fit-content; }
  .contactTitle{ max-width: none; }
  .contactActions{ width: 100%; }
  .btn--contactTelegram{ min-width: 0; width: 100%; }
}

@media (max-width: 560px){
  .contactForm2{ grid-template-columns: 1fr; }
}


/* ===== MODAL (Calendar) ===== */
body.is-modal-open{ overflow: hidden; overscroll-behavior: contain; }

.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  padding: 18px;
}
.modal.is-open{ display:flex; }

.modal__backdrop{
  z-index: 0;
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
}

.modal__dialog{
  isolation: isolate;
  z-index: 1;
  position: relative;
  width: min(980px, 100%);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(900px 360px at 82% 10%, rgba(73,255,189,.14), rgba(0,0,0,0) 56%),
    radial-gradient(900px 360px at 18% 120%, rgba(155,120,255,.12), rgba(0,0,0,0) 60%),
    rgba(15,16,18,.72);
  box-shadow: 0 40px 140px rgba(0,0,0,.70);
  overflow: hidden;
  padding: 16px 16px 14px;
}

.modal__dialog--calendar{
  max-height: min(92svh, 860px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.modal__dialog::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  background:
    radial-gradient(520px 320px at 70% 0%, rgba(255,255,255,.10), rgba(255,255,255,0) 64%),
    radial-gradient(520px 320px at 10% 100%, rgba(255,255,255,.07), rgba(255,255,255,0) 62%);
  opacity: .70;
  pointer-events:none;
}

/* Contact modal: show only the contact card (no extra dialog chrome) */
.modal__dialog--contact{
  width: min(760px, 100%);
  /* Give the close button its own space (so it doesn't overlap inputs) */
  padding: 22px 22px 0;
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.modal__dialog--contact::before{ display: none; }
.modal__dialog--contact .contactCard{
  padding: 18px 18px 14px;
  box-shadow: 0 40px 140px rgba(0,0,0,.70);
}

.modal__close--floating{
  position: absolute;
  /* slightly lower/left inside the modal */
  top: 24px;
  right: 30px;
  z-index: 70;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 560px){
  .modal__close--floating{ top: 28px; right: 28px; }
}

/* Contact modal close button: no circular background */
.modal__dialog--contact .modal__close{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.78);
  box-shadow: none;
}
.modal__dialog--contact .modal__close:hover{
  transform: translateY(-1px);
  background: transparent;
}

.modal__dialog--contact .modal__close:active{
  background: transparent;
}

.modal__header{
  position: relative;
  z-index: 2;
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 10px;
}

.modal__title{
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}

.modal__close{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.42);
  color: rgba(255,255,255,.86);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.modal__close:hover{ transform: translateY(-1px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.modal__close:focus-visible{ outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.16); }

.calendarLegend{
  position: relative;
  z-index: 2;
  display:flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 0 10px 10px;
  color: rgba(255,255,255,.70);
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.legendItem{ display:flex; align-items:center; gap: 8px; }
.legendDot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.legendDot--green{ background: rgba(73,255,189,.55); }
.legendDot--orange{ background: rgba(255,170,73,.58); }
.legendDot--red{ background: rgba(255,90,120,.60); }

.calendarTilt{
  position: relative;
  z-index: 2;
  margin: 6px 10px 10px;
  perspective: 1600px;
  overflow: hidden;
  border-radius: 22px;
}

.calendarTilt__inner{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.38);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  --rx: 0deg;
  --ry: 0deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.calendarTilt__glow{
  position:absolute;
  inset:0;
  border-radius: 22px;
  background:
    radial-gradient(560px 260px at 50% 22%, rgba(73,255,189,.14), rgba(0,0,0,0) 65%),
    radial-gradient(520px 240px at 86% 80%, rgba(155,120,255,.12), rgba(0,0,0,0) 62%);
  opacity: .85;
  pointer-events:none;
  filter: blur(.2px);
}

.calendarMonths{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.calMonth{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}

.calMonth__head{
  padding: 10px 10px 8px;
  display:flex;
  align-items: baseline;
  justify-content: space-between;
}

.calMonth__title{
  color: rgba(255,255,255,.84);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.calWeekdays{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: 0 10px 8px;
  color: rgba(255,255,255,.46);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.calWeekdays span{ text-align:center; padding: 4px 0; }

.calGrid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 10px 12px;
}

.calDay{
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.78);
  font-size: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  user-select: none;
}

.calDay.is-empty{ background: transparent; border-color: transparent; }
.calDay.is-past{ opacity: .22; }
.calDay.is-today{ border-color: rgba(255,255,255,.26); }

.calDay--green{ background: rgba(73,255,189,.08); border-color: rgba(73,255,189,.22); }
.calDay--orange{ background: rgba(255,170,73,.10); border-color: rgba(255,170,73,.26); }
.calDay--red{ background: rgba(255,90,120,.10); border-color: rgba(255,90,120,.26); }


@media (max-width: 980px){
  .calendarMonths{ grid-template-columns: 1fr; }
}



@media (max-width: 575px){
  .modal{
    padding: 10px;
  }

  .modal__dialog--calendar{
    width: 100%;
    max-height: min(88svh, 760px);
    border-radius: 22px;
    padding: 10px 10px 8px;
  }

  .modal__header{
    padding: 4px 6px 8px;
    gap: 10px;
  }

  .modal__title{
    font-size: 10px;
    letter-spacing: .18em;
  }

  .modal__close{
    width: 36px;
    height: 36px;
  }

  .calendarLegend{
    gap: 8px 12px;
    padding: 0 6px 8px;
    font-size: 9px;
    letter-spacing: .08em;
  }

  .legendDot{
    width: 8px;
    height: 8px;
  }

  .calendarTilt{
    margin: 2px 6px 6px;
    perspective: none;
    border-radius: 16px;
  }

  .calendarTilt__inner,
  .calendarTilt__glow{
    border-radius: 16px;
  }

  .calendarMonths{
    gap: 8px;
    padding: 8px;
  }

  .calMonth{
    border-radius: 14px;
  }

  .calMonth__head{
    padding: 8px 8px 6px;
  }

  .calMonth__title{
    font-size: 10px;
    letter-spacing: .14em;
  }

  .calWeekdays{
    padding: 0 8px 6px;
    font-size: 9px;
    letter-spacing: .10em;
  }

  .calWeekdays span{
    padding: 2px 0;
  }

  .calGrid{
    gap: 4px;
    padding: 0 8px 8px;
  }

  .calDay{
    height: 26px;
    border-radius: 8px;
    font-size: 11px;
  }
}

/* ===== RESPONSIVE FOUNDATION + ITERATIONS 2-4 ===== */
:root{
  --container-gutter: 24px;
  --section-space: 110px;
  --section-space-tablet: 92px;
  --section-space-mobile: 72px;
  --title-section-size: clamp(36px, 4.6vw, 64px);
  --text-body-size: 16px;
  --text-body-line: 1.68;
  --nav-offset: 76px;
}

html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body{
  overflow-x: hidden;
}

img,
svg,
video,
canvas{
  max-width: 100%;
  height: auto;
}

section[id]{
  scroll-margin-top: var(--nav-offset);
}

.container{
  width: min(var(--max), calc(100% - (var(--container-gutter) * 2)));
}

.stub,
.section--about,
.contactSection{
  padding-block: var(--section-space);
}

.section--pricing{
  padding-top: var(--section-space);
}

.sectionHeroTitle,
.about__title,
.contactTitle{
  text-wrap: balance;
}

.sectionHeroTitle{
  font-size: var(--title-section-size);
}

.hero__subtitle,
.about__lead,
.about__bio p,
.stub p,
.section--pricing .section__sub,
.contactLead{
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
}

.btn,
.field input,
.field textarea,
.c2Field input,
.c2Field textarea{
  font-size: 16px;
}

@media (max-width: 1199px){
  :root{
    --container-gutter: 20px;
    --section-space: var(--section-space-tablet);
  }

  .hero__inner{
    gap: 32px;
  }

  .sectionHeroTitle{
    font-size: clamp(34px, 5vw, 56px);
  }

  .contactGrid{
    gap: 28px;
  }
}

@media (max-width: 767px){
  :root{
    --container-gutter: 16px;
    --section-space: var(--section-space-mobile);
    --nav-offset: 72px;
  }

  .nav__inner{
    min-height: 54px;
  }

  .nav__links{
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav__links::-webkit-scrollbar{
    display: none;
  }

  .nav__link{
    white-space: nowrap;
    font-size: 11px;
    padding: 8px 8px;
  }

  .hero{
    min-height: auto;
    padding-top: 84px;
    padding-bottom: 22px;
  }

  .hero__glow{
    width: 520px;
    height: 520px;
    right: -180px;
    top: -180px;
    opacity: .45;
  }

  .hero__inner{
    grid-template-columns: 1fr;
    align-items: flex-start;
    min-height: auto;
    gap: 24px;
    padding-bottom: 0;
  }

  .hero__left{
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .hero__title{
    margin: 0;
    font-size: clamp(34px, 12vw, 52px);
  }

  .hero__subtitle{
    margin: 0;
    max-width: none;
  }

  .hero__actions{
    width: 100%;
    margin: 0;
  }

  .hero__actions .btn{
    width: 100%;
  }

  .hero__right{
    order: 3;
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-self: center;
  }

  .card3d{
    width: min(100%, 380px);
    margin: 8px auto 0;
  }

  .card3d__inner{
    height: 280px;
  }

  .card3d__face{
    padding: 18px;
  }

  .card3d__big{
    font-size: 60px;
  }

  .stackHint,
  .card3d__hint,
  .scrollHint{
    display: none;
  }

  .about__collage{
    min-height: 360px;
    margin: 14px 0 16px;
  }

  .about__title{
    font-size: clamp(30px, 9vw, 44px);
    margin: 12px 0 14px;
  }

  .aboutPhoto{
    width: 186px;
  }

  .aboutPhoto--a{
    --base-x: -54px;
    --base-y: 0px;
    --base-r: -2deg;
  }

  .aboutPhoto--b{
    width: 172px;
    --base-x: 58px;
    --base-y: -10px;
    --base-r: 2deg;
  }

  .section--projects{
    overflow: clip;
  }

  .projects{
    position: relative;
    display: block;
    margin-top: 14px;
  }

  .projectsItem{
    height: 145svh;
  }

  .projectsItem + .projectsItem{
    margin-top: 0;
  }

  .projectsItem_sticky{
    position: sticky;
    top: 0;
    height: 100svh;
    padding: 18px 12px 132px;
    perspective: 1600px;
    pointer-events: auto !important;
  }

  .projectMarquee{
    display: none;
  }

  .projectCardWrap{
    width: min(100%, 560px);
  }

  .projectCard{
    transform: rotateX(calc(var(--rx) * 1deg)) !important;
  }

  .projectCard_preview{
    height: 260px;
  }

  .projectCard_body{
    padding: 16px 16px 14px;
    gap: 10px;
  }

  .projectCard_title{
    font-size: 20px;
  }

  .projectCard_desc{
    font-size: 14px;
    max-width: none;
  }

  .projectCard_footer{
    flex-direction: column;
    align-items: stretch;
  }

  .projectCard_footer .btn{
    width: 100%;
  }

  .projectWord{
    top: 52px;
    font-size: clamp(30px, 10vw, 58px);
  }

  .projectMini{
    max-width: calc(100% - 36px);
    font-size: 11px;
  }

  .section--pricing{
    overflow: visible;
  }

  .pricing{
    display: grid;
    gap: 18px;
    margin-top: 18px;
  }

  .priceItem_inner{
    height: auto;
  }

  .priceItem_inner + .priceItem_inner{
    margin-top: 0;
  }

  .priceItem_sticky{
    position: relative;
    top: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    perspective: none;
  }

  .priceBoxWrap{
    width: 100%;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .priceCard_overlay{
    display: none;
  }

  .priceCard--v2{
    width: 100%;
    max-width: none;
  }

  .priceV2{
    padding: 18px 16px 14px;
  }

  .priceV2_head{
    gap: 14px;
  }

  .priceV2_body{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .priceV2_services{
    order: 2;
  }

  .priceV2_visual{
    order: 1;
    min-height: 220px;
  }

  .priceV2_title{
    font-size: 22px;
  }

  .priceV2_footer{
    flex-direction: column;
    align-items: stretch;
  }

  .priceV2_footer .btn{
    width: 100%;
  }

  .serviceRow{
    padding: 10px 10px;
  }

  .priceV2_total{
    align-items: flex-start;
  }

  .contactGrid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contactTitle{
    max-width: none;
    font-size: clamp(34px, 10vw, 52px);
  }

  .contactActions{
    width: 100%;
  }

  .btn--contactTelegram{
    width: 100%;
    min-width: 0;
  }

  .contactCard{
    padding: 16px;
  }

  .contactForm2{
    grid-template-columns: 1fr;
  }

  .contactBottom2{
    flex-direction: column;
    align-items: stretch;
  }

  .contactStatusWrap{
    align-items: flex-start;
    min-width: 0;
    width: 100%;
  }

  .contactStatus2{
    max-width: 100%;
    width: fit-content;
  }

  .contactCalendarBtn{
    font-size: 10px;
    letter-spacing: .14em;
  }
}

@media (max-width: 767px){
  .card3d{
    width: min(100%, 420px);
  }

  .card3d__inner{
    height: 332px;
  }

  .card3d__front{
    padding-right: 46px;
  }

  .cardMarquee{
    right: 10px;
    width: 22px;
    top: 14px;
    bottom: 14px;
  }

  .cardMarquee__group,
  .cardMarquee__inner{
    gap: 14px;
  }

  .cardMarquee__item{
    font-size: 10px;
    letter-spacing: .16em;
  }

  .stackShowcase{
    gap: 8px;
  }

  .stackShowcase__top{
    gap: 8px;
    align-items: center;
  }

  .stackShowcase__badge{
    padding: 7px 10px;
    font-size: 8px;
    letter-spacing: .14em;
  }

  .stackRadar{
    height: 214px;
  }

  .blip{
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .blip img{
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 575px){
  :root{
    --container-gutter: 14px;
    --section-space: 68px;
    --nav-offset: 68px;
  }

  .hero__title{
    font-size: clamp(30px, 12.5vw, 44px);
    letter-spacing: -0.045em;
  }

  .hero__subtitle,
  .about__lead,
  .about__bio p,
  .stub p,
  .section--pricing .section__sub,
  .contactLead{
    font-size: 14px;
    line-height: 1.62;
  }

  .sectionHeroTitle{
    font-size: clamp(28px, 10vw, 38px);
  }

  .pill,
  .about__kicker,
  .contactKicker{
    padding: 9px 11px;
  }

  .card3d{
    width: 100%;
  }

  .card3d__inner{
    height: 318px;
  }

  .card3d__face{
    padding: 15px;
  }

  .card3d__front{
    padding-right: 42px;
  }

  .card3d__big{
    font-size: 50px;
  }

  .card3d__sub{
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: .10em;
  }

  .card3d__meta{
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 12px;
  }

  .metric{
    padding: 10px 10px;
  }

  .metric__value{
    font-size: 20px;
  }

  .metric__label{
    font-size: 10px;
  }

  .stackShowcase__badge{
    padding: 6px 8px;
    font-size: 8px;
  }

  .stackRadar{
    height: 202px;
  }

  .blip{
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .blip img{
    width: 20px;
    height: 20px;
  }

  .about__collage{
    min-height: 320px;
  }

  .aboutPhoto{
    width: 160px;
  }

  .aboutPhoto--a{
    --base-x: -42px;
    --base-y: 4px;
  }

  .aboutPhoto--b{
    width: 146px;
    --base-x: 44px;
    --base-y: -6px;
  }

  .projectCard_preview{
    height: 230px;
  }

  .projectBadges{
    gap: 8px;
    max-width: calc(100% - 20px);
  }

  .projectBadge{
    padding: 8px 10px;
    font-size: 10px;
  }

  .projectWord{
    left: 14px;
    top: 52px;
    font-size: clamp(26px, 11vw, 44px);
  }

  .projectNum{
    top: 12px;
    right: 12px;
    font-size: 10px;
    padding: 7px 8px;
  }

  .projectCard_body{
    padding: 14px;
  }

  .projectCard_title{
    font-size: 18px;
  }

  .priceV2_title{
    font-size: 20px;
  }

  .priceV2_sub{
    font-size: 13px;
    line-height: 1.55;
  }

  .priceV2_totalValue{
    font-size: 26px;
  }

  .priceV2_visual{
    min-height: 190px;
  }

  .contactKicker{
    margin: 0 0 12px;
  }

  .contactTitle{
    font-size: clamp(30px, 10vw, 42px);
  }

  .contactCard{
    padding: 14px;
  }

  .contactStatus2{
    width: 100%;
    justify-content: space-between;
  }

  .contactCalendarBtn{
    letter-spacing: .12em;
  }
}

@media (hover:none) and (pointer:coarse), (max-width: 767px){
  .card3d{
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .card3d:hover .card3d__inner{
    --flip: 0deg;
  }

  .card3d__back{
    display: block;
  }

  .card3d__mobileTap--front{
    display:block;
    z-index: 5;
  }

  .card3d__mobileTap--back{
    display:block;
    z-index: 1;
  }

  .card3d__toggle:not(:checked) + .card3d__inner .card3d__back{
    pointer-events: none;
  }

  .card3d__toggle:checked + .card3d__inner .card3d__front{
    pointer-events: none;
  }

  .card3d__inner{
    transform: rotateX(0deg) rotateY(var(--flip)) !important;
  }

  .stackShowcase,
  .stackShowcase__top,
  .stackRadar,
  .stackHint{
    position:relative;
    z-index: 2;
  }

  .blip{
    z-index: 4;
    cursor: pointer;
  }

  .section--projects .projectCard_preview--web .webWire{
    display: none !important;
  }
}

@media (max-width: 980px){
  .about__copy{
    display: flex;
    flex-direction: column;
  }

  .about__kicker{ order: 1; }
  .about__title{ order: 2; }
  .about__lead{ order: 3; }
  .about__bio{ order: 4; }
  .about__collage{
    order: 5;
    align-self: center;
    margin: 18px auto 0;
  }
}

@media (max-width: 767px){
  .about__collage{
    min-height: 356px;
    width: 100%;
    max-width: 376px;
    margin: 18px auto 0;
  }

  .aboutPhoto--a{
    --base-x: 60px;
    --base-y: 2px;
    --base-r: 2deg;
    z-index: 2;
  }

  .aboutPhoto--b{
    width: 172px;
    --base-x: -60px;
    --base-y: -8px;
    --base-r: -2deg;
    z-index: 1;
  }
}

@media (max-width: 575px){
  .about__collage{
    min-height: 328px;
    max-width: 336px;
  }

  .aboutPhoto--a{
    --base-x: 48px;
    --base-y: 8px;
  }

  .aboutPhoto--b{
    width: 146px;
    --base-x: -48px;
    --base-y: -2px;
  }
}

@media (prefers-reduced-motion: reduce), (hover:none) and (pointer:coarse){
  .projectCard_preview::after,
  .about__scan,
  .contactScan,
  .card3d__inner,
  .aboutPhoto,
  .projectCard{
    animation: none !important;
    transition: none !important;
  }
}


/* AI preview: keep central AI label static */
.section--projects .projectCard_preview--ai .aiChipText{
  display: none !important;
}
.section--projects .projectCard_preview--ai .aiChipStatic{
  position: absolute;
  left: 60.4%;
  top: 46.5%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.30);
  font-weight: 900;
  font-size: clamp(56px, 5vw, 74px);
  letter-spacing: .08em;
  line-height: 1;
  opacity: .62;
  text-transform: uppercase;
  will-change: auto;
}
@media (max-width: 760px){
  .section--projects .projectCard_preview--ai .aiChipStatic{
    left: 60.4%;
    top: 46.5%;
    font-size: clamp(42px, 8vw, 58px);
    -webkit-text-stroke: 1.6px rgba(255,255,255,.30);
  }
}

/* ===== Mobile fix: landing/shop visual should fully fit in the pricing card ===== */
@media (max-width: 767px){
  .priceCard--v2[data-kind="landing"] .priceV2_visual{
    min-height: 244px;
    padding: 10px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopAnim{
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .priceCard--v2[data-kind="landing"] .miniShopBrowser{
    height: 100%;
    min-height: 0;
    max-height: none;
    border-radius: 14px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopTop{
    padding: 11px 10px;
    min-height: 50px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopGrid{
    top: 58px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopItem{
    border-radius: 10px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopItem svg{
    width: 66%;
    height: 66%;
  }

  .priceCard--v2[data-kind="landing"] .miniShopCart{
    width: 30px;
    height: 22px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopCartIcon{
    width: 20px;
    height: 20px;
  }

  .priceCard--v2[data-kind="landing"] .priceV2_visualFoot{
    margin-top: 4px;
  }
}

@media (max-width: 575px){
  .priceCard--v2[data-kind="landing"] .priceV2_visual{
    min-height: 236px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopTop{
    padding: 10px 9px;
    min-height: 46px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopDots{
    gap: 6px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopDots span{
    width: 6px;
    height: 6px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopGrid{
    top: 54px;
    left: 9px;
    right: 9px;
    bottom: 9px;
    gap: 7px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopItem svg{
    width: 62%;
    height: 62%;
  }
}


/* ===== Mobile decisive fix: shop catalog uses clean 2x3 layout so nothing gets cropped ===== */
@media (max-width: 767px){
  .priceCard--v2[data-kind="landing"] .priceV2_visual{
    min-height: 270px;
    padding: 10px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopBrowser{
    height: 206px;
    max-height: 206px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopGrid{
    top: 58px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopGrid > :nth-child(n+7){
    display: none;
  }

  .priceCard--v2[data-kind="landing"] .priceV2_visualFoot{
    margin-top: 8px;
  }
}

@media (max-width: 575px){
  .priceCard--v2[data-kind="landing"] .priceV2_visual{
    min-height: 262px;
    padding: 9px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopBrowser{
    height: 194px;
    max-height: 194px;
    border-radius: 13px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopTop{
    padding: 9px 8px;
    min-height: 42px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopGrid{
    top: 50px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 7px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopItem{
    border-radius: 9px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopItem svg{
    width: 60%;
    height: 60%;
  }

  .priceCard--v2[data-kind="landing"] .priceV2_visualFoot{
    margin-top: 7px;
    font-size: 11px;
  }
}

/* ===== Mobile final fix: lift shop catalog grid a bit higher so bottom row never clips ===== */
@media (max-width: 575px){
  .priceCard--v2[data-kind="landing"] .priceV2_visual{
    min-height: 276px;
    padding: 9px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopBrowser{
    height: 198px;
    max-height: 198px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopGrid{
    top: 50px;
    left: 8px;
    right: 8px;
    bottom: 18px;
    gap: 6px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopItem{
    border-radius: 8px;
    padding: 3px;
  }

  .priceCard--v2[data-kind="landing"] .miniShopItem svg{
    width: 56%;
    height: 56%;
  }

  .priceCard--v2[data-kind="landing"] .priceV2_visualFoot{
    margin-top: 8px;
  }
}


/* Contact success modal */
.modal__dialog--success{
  width: min(560px, 100%);
  padding: 18px;
}

.modal__dialog--success .modal__close--success{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
}

.successModal{
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: 28px 18px 14px;
}

.successModal__icon{
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: rgba(255,255,255,.96);
  border: 1px solid rgba(73,255,189,.24);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), rgba(255,255,255,0) 58%),
    linear-gradient(180deg, rgba(73,255,189,.30), rgba(73,255,189,.12));
  box-shadow: 0 18px 48px rgba(73,255,189,.16);
}

.successModal__eyebrow{
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(73,255,189,.88);
}

.successModal__title{
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: rgba(255,255,255,.98);
}

.successModal__text{
  margin: 0;
  max-width: 38ch;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,.74);
}

.successModal__btn{
  min-width: 190px;
  margin-top: 6px;
}

@media (max-width: 560px){
  .modal__dialog--success{ padding: 16px; }
  .successModal{ padding: 22px 8px 10px; gap: 12px; }
  .successModal__icon{ width: 60px; height: 60px; font-size: 28px; }
  .successModal__text{ font-size: 15px; }
  .successModal__btn{ width: 100%; min-width: 0; }
}


/* ===== v214 mobile perf + reliable radar flip ===== */
.card3d__mobileButton{
  display:none;
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(87,119,255,.22), rgba(73,255,189,.14));
  color:#f3f7ff;
  border-radius:999px;
  padding:10px 14px;
  font-size:11px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.10em;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
}

.card3d.card3d--flipped .card3d__inner{
  --flip: 180deg;
  transform: rotateX(0deg) rotateY(180deg) !important;
}

@media (hover:none) and (pointer:coarse), (max-width: 767px){
  .card3d{
    cursor: default;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .card3d:hover .card3d__inner{
    --flip: 0deg;
  }

  .card3d__mobileTap{
    display:none !important;
  }

  .card3d__hint,
  .stackHint{
    display:flex !important;
  }

  .card3d__hint{
    display:flex !important;
    left: 18px;
    right: auto;
    bottom: 18px;
    z-index: 8;
  }

  .stackHint{
    position:absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 6;
  }

  .card3d__mobileButton{
    display:none !important;
  }

  /* mobile radar buttons removed */

  .card3d__toggle:not(:checked) + .card3d__inner .card3d__back,
  .card3d:not(.card3d--flipped) .card3d__back{
    pointer-events: none;
  }

  .card3d__toggle:checked + .card3d__inner .card3d__front,
  .card3d.card3d--flipped .card3d__front{
    pointer-events: none;
  }

  .stackShowcase,
  .stackShowcase__top,
  .stackRadar,
  .stackHint,
  .blip{
    position:relative;
    z-index: 4;
  }

  .stackShowcase{
    gap: 12px;
  }

  .stackShowcase__top{
    min-height: 28px;
    margin-bottom: 6px;
  }

  .stackRadar{
    height: auto;
    min-height: 214px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-content: center;
    justify-items: center;
    padding: 22px 14px 16px;
  }

  .stackRadar__clip{
    inset: 8px;
    border-radius: 18px;
  }

  .blip{
    position: relative;
    left: auto;
    top: auto;
    transform: none !important;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    margin: 0;
  }

  .blip img{
    width: 22px;
    height: 22px;
  }

  .blip__label{
    bottom: calc(100% + 8px);
    font-size: 9px;
    letter-spacing: .12em;
  }

  .projects,
  .projects.projects--mobileStatic{
    display:grid;
    gap:18px;
    margin-top:14px;
  }

  .projectsItem{
    height:auto !important;
  }

  .projectsItem + .projectsItem{
    margin-top:0 !important;
  }

  .projectsItem_sticky{
    position:relative !important;
    top:auto !important;
    height:auto !important;
    padding:0 !important;
    display:block !important;
    perspective:none !important;
    pointer-events:auto !important;
  }

  .projectCardWrap{
    width:100% !important;
    max-width:none;
  }

  .projectCard{
    transform:none !important;
    will-change:auto;
  }

  .projectMarquee,
  .projectMarquee_inner{
    display:none !important;
  }
}


/* ===== v217: ultra-light mobile animation for LANDINGS card ===== */
@keyframes landingMobileGlowDrift{
  0%, 100% {
    transform: rotate(10deg) translate3d(0, 0, 0) scale(1);
    opacity: .78;
  }
  50% {
    transform: rotate(10deg) translate3d(0, -4px, 0) scale(1.02);
    opacity: .92;
  }
}

@keyframes landingMobileMiniFloat{
  0%, 100% {
    transform: translate3d(0, 0, 0);
    box-shadow: 0 8px 18px rgba(73,255,189,.08);
  }
  50% {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 12px 24px rgba(73,255,189,.12);
  }
}

@keyframes landingMobileMiniSheen{
  0%, 100% {
    transform: translateX(-140%);
    opacity: 0;
  }
  18% {
    opacity: .65;
  }
  42% {
    transform: translateX(145%);
    opacity: .18;
  }
  43%, 100% {
    opacity: 0;
  }
}

@media (max-width: 767px){
  .section--projects .projectCard_preview--web::before{
    animation: landingMobileGlowDrift 6.4s ease-in-out infinite;
    transform-origin: 72% 56%;
    will-change: transform, opacity;
  }

  .section--projects .projectCard_preview--web .projectMini{
    overflow: hidden;
    animation: landingMobileMiniFloat 5.2s ease-in-out infinite;
    will-change: transform, box-shadow;
  }

  .section--projects .projectCard_preview--web .projectMini::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 42%, rgba(255,255,255,0) 78%);
    transform: translateX(-140%);
    animation: landingMobileMiniSheen 7.6s ease-in-out infinite;
    mix-blend-mode: screen;
  }
}

@media (prefers-reduced-motion: reduce){
  .section--projects .projectCard_preview--web::before,
  .section--projects .projectCard_preview--web .projectMini,
  .section--projects .projectCard_preview--web .projectMini::after{
    animation: none !important;
    transform: none !important;
  }
}


/* ===== v219: mobile about float + centered calendar trigger ===== */
@media (hover:none) and (pointer:coarse) and (max-width: 767px) and (prefers-reduced-motion: no-preference){
  .aboutPhoto{
    transition: box-shadow .25s ease !important;
  }

  .aboutPhoto--a{
    animation: aboutPhotoFloatMobileA 6.8s ease-in-out infinite !important;
  }

  .aboutPhoto--b{
    animation: aboutPhotoFloatMobileB 7.4s ease-in-out infinite !important;
  }

  .contactCalendarBtn{
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
    align-self: center;
    margin-inline: auto;
  }
}

@media (hover:none) and (pointer:coarse) and (max-width: 575px) and (prefers-reduced-motion: no-preference){
  .aboutPhoto--a{
    animation: aboutPhotoFloatMobileA_sm 6.6s ease-in-out infinite !important;
  }

  .aboutPhoto--b{
    animation: aboutPhotoFloatMobileB_sm 7.2s ease-in-out infinite !important;
  }

  .contactCalendarBtn{
    letter-spacing: .11em;
    line-height: 1.4;
  }
}

@keyframes aboutPhotoFloatMobileA{
  0%, 100%{
    transform: translate3d(60px, 2px, 0) rotate(2deg);
  }
  50%{
    transform: translate3d(62px, -3px, 0) rotate(2.7deg);
  }
}

@keyframes aboutPhotoFloatMobileB{
  0%, 100%{
    transform: translate3d(-60px, -8px, 0) rotate(-2deg);
  }
  50%{
    transform: translate3d(-58px, -13px, 0) rotate(-2.6deg);
  }
}

@keyframes aboutPhotoFloatMobileA_sm{
  0%, 100%{
    transform: translate3d(48px, 8px, 0) rotate(2deg);
  }
  50%{
    transform: translate3d(49px, 4px, 0) rotate(2.6deg);
  }
}

@keyframes aboutPhotoFloatMobileB_sm{
  0%, 100%{
    transform: translate3d(-48px, -2px, 0) rotate(-2deg);
  }
  50%{
    transform: translate3d(-46px, -7px, 0) rotate(-2.5deg);
  }
}
