/* =========================================================
   ASTRO-AI — work, stats, CTA
   ========================================================= */

/* ---------- work ---------- */
.work {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(23, 37, 84, .3), transparent 65%),
    linear-gradient(180deg, #05070f, #04060f);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  direction: ltr;
}
.work-card {
  position: relative;
  direction: rtl;
  display: block;
  height: clamp(210px, 16.5vw, 248px);
  border-radius: 18px;
  border: 1px solid rgba(126, 156, 255, .14);
  background: #070b17;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
  pointer-events: none;
  z-index: 4;
}
.work-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform .7s var(--ease), filter .5s;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, .45);
  box-shadow: 0 30px 60px -34px rgba(76, 29, 149, .9), 0 0 0 1px rgba(139, 92, 246, .1);
}
.work-card:hover .work-art { transform: scale(1.05); filter: saturate(1.12); }
.work-card:hover .work-hover { opacity: 1; transform: none; }

.work-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 58px 14px 15px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(3, 6, 15, .58) 40%, rgba(3, 6, 15, .95));
  pointer-events: none;
}
.work-tag {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .05em;
  color: #7dd3fc;
  opacity: .9;
  margin-bottom: 3px;
}
.work-caption h3 {
  font-size: clamp(13.5px, 1.12vw, 15.5px);
  font-weight: 600;
  color: #f3f7ff;
  letter-spacing: -.005em;
}
.work-hover {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(196, 181, 253, .35);
  background: rgba(7, 11, 24, .66);
  backdrop-filter: blur(10px);
  color: #ddd6fe;
  opacity: 0;
  transform: translateY(-5px);
  transition: .35s var(--ease);
}
.work-hover .icon { width: 16px; height: 16px; }
.work-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- shared art bits ---------- */
.art-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(32px);
  opacity: .6;
  pointer-events: none;
}
.halo-a { background: rgba(147, 51, 234, .55); }
.halo-b { background: rgba(34, 211, 238, .35); }
.art-ring {
  position: absolute;
  border: 1px solid rgba(125, 211, 252, .25);
  border-radius: 50%;
  pointer-events: none;
}

/* fintech */
.art-fintech {
  background:
    radial-gradient(80% 70% at 76% 22%, rgba(109, 40, 217, .62), transparent 66%),
    radial-gradient(65% 60% at 16% 92%, rgba(29, 78, 216, .5), transparent 70%),
    linear-gradient(160deg, #0b0a20, #050812);
}
.art-fintech .halo-a { width: 190px; height: 190px; top: -60px; right: -20px; }
.art-fintech .halo-b { width: 150px; height: 150px; bottom: -60px; left: -20px; }
.phone {
  position: absolute;
  width: 84px;
  height: 168px;
  padding: 9px 8px;
  border-radius: 16px;
  border: 1px solid rgba(165, 180, 252, .38);
  background: linear-gradient(170deg, #151c3a, #070a18 70%);
  box-shadow:
    0 26px 46px -16px rgba(0, 0, 0, .95),
    inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.phone-back {
  left: 19%;
  bottom: 20px;
  transform: rotate(-17deg) scale(.9);
  opacity: .72;
}
.phone-front {
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%) rotate(-4deg);
  z-index: 2;
}
.phone-notch {
  display: block;
  width: 24px; height: 4px;
  margin: 0 auto 9px;
  border-radius: 3px;
  background: #02040b;
}
.phone-eyebrow {
  display: block;
  width: 26px; height: 4px;
  border-radius: 2px;
  background: rgba(148, 163, 184, .5);
  margin-bottom: 6px;
}
.phone-amount {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #eef2ff;
  margin-bottom: 3px;
}
.phone-graph { height: 42px; }
.phone-graph svg { width: 100%; height: 100%; }
.phone-pills { display: flex; gap: 3px; margin-top: 4px; }
.phone-pills span {
  flex: 1; height: 15px;
  border-radius: 4px;
  background: rgba(99, 102, 241, .22);
  border: 1px solid rgba(129, 140, 248, .15);
}
.mini-card {
  height: 30px;
  border-radius: 6px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, rgba(168, 85, 247, .5), rgba(37, 99, 235, .35));
  border: 1px solid rgba(196, 181, 253, .2);
}
.mini-row { height: 4px; border-radius: 2px; background: rgba(148, 163, 184, .28); margin-bottom: 5px; }
.mini-row.short { width: 60%; }
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 7px; }
.mini-bars i { flex: 1; height: 60%; border-radius: 2px; background: linear-gradient(180deg, #22d3ee, #4f46e5); opacity: .65; }
.mini-bars i:nth-child(2) { height: 90%; }
.mini-bars i:nth-child(3) { height: 70%; }
.mini-bars i:nth-child(4) { height: 100%; }
.floating-coin {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, #a855f7, #2563eb);
  border: 1px solid rgba(196, 181, 253, .5);
  box-shadow: 0 8px 20px -6px rgba(124, 58, 237, .8), 0 0 18px rgba(139, 92, 246, .3);
  animation: float 6s ease-in-out infinite;
}
.coin-a { top: 20px; left: 13%; }
.coin-b { bottom: 42px; right: 12%; animation-delay: -2s; background: linear-gradient(140deg, #22d3ee, #2563eb); }

/* data */
.art-data {
  background:
    radial-gradient(76% 70% at 50% 24%, rgba(30, 64, 175, .55), transparent 68%),
    radial-gradient(60% 50% at 88% 88%, rgba(14, 116, 144, .35), transparent 70%),
    linear-gradient(160deg, #071021, #040812);
}
.art-data .halo-a { width: 220px; height: 160px; left: 50%; top: -50px; transform: translateX(-50%); background: rgba(37, 99, 235, .45); }
.data-monitor {
  position: relative;
  z-index: 2;
  width: 82%;
  height: 66%;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, .4);
  background: linear-gradient(160deg, #0a1430, #050913);
  box-shadow: 0 24px 50px -18px rgba(37, 99, 235, .65);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotate(-1.4deg);
  direction: ltr;
}
.screen-top {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 7px;
  flex: none;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid rgba(125, 211, 252, .12);
}
.screen-top i { width: 4px; height: 4px; border-radius: 50%; background: #475569; }
.screen-top span {
  margin-left: auto;
  width: 26%; height: 4px;
  border-radius: 2px;
  background: rgba(148, 163, 184, .2);
}
.data-body { flex: 1; display: flex; min-height: 0; }
.data-side {
  width: 22%;
  padding: 7px 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid rgba(125, 211, 252, .08);
}
.data-side span {
  height: 4px;
  border-radius: 2px;
  background: rgba(96, 165, 250, .22);
}
.data-side span:first-child { width: 80%; background: rgba(34, 211, 238, .55); }
.data-main {
  flex: 1;
  min-width: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.data-kpis { display: flex; gap: 4px; flex: none; }
.data-kpis span {
  flex: 1;
  height: 15px;
  border-radius: 3px;
  background: linear-gradient(160deg, rgba(59, 130, 246, .28), rgba(15, 23, 42, .35));
  border: 1px solid rgba(96, 165, 250, .16);
}
.data-chart {
  flex: 1;
  min-height: 0;
  border-radius: 4px;
  background: rgba(2, 6, 23, .5);
  overflow: hidden;
}
.data-chart svg { width: 100%; height: 100%; }
.data-bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; flex: none; }
.data-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #38bdf8, #1d4ed8);
  opacity: .7;
}
.art-data .art-ring {
  width: 190px; height: 68px;
  bottom: 4px; left: 50%;
  transform: translateX(-50%) rotate(-10deg);
  border-color: rgba(139, 92, 246, .3);
  z-index: 1;
}

/* business */
.art-business {
  background:
    radial-gradient(80% 70% at 24% 20%, rgba(76, 29, 149, .6), transparent 66%),
    radial-gradient(60% 60% at 84% 88%, rgba(30, 64, 175, .4), transparent 70%),
    linear-gradient(160deg, #0a0a1f, #050811);
}
.art-business .halo-a { width: 200px; height: 170px; top: -60px; left: -30px; }
.biz-window {
  position: relative;
  z-index: 2;
  width: 84%;
  height: 66%;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, .35);
  background: linear-gradient(160deg, #0e0e26, #060814);
  box-shadow: 0 24px 50px -18px rgba(76, 29, 149, .65);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotate(1.2deg);
  direction: ltr;
}
.biz-body { flex: 1; display: flex; min-height: 0; }
.biz-side {
  width: 24%;
  padding: 7px 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(196, 181, 253, .1);
  background: rgba(76, 29, 149, .08);
}
.biz-side b {
  width: 16px; height: 4px;
  border-radius: 2px;
  background: rgba(196, 181, 253, .4);
  margin-bottom: 3px;
}
.biz-side span { height: 5px; border-radius: 2px; background: rgba(196, 181, 253, .16); }
.biz-side span.on { background: rgba(139, 92, 246, .55); }
.biz-main {
  flex: 1;
  min-width: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.biz-head { display: flex; align-items: center; justify-content: space-between; flex: none; }
.biz-head span { width: 42%; height: 5px; border-radius: 2px; background: rgba(226, 232, 240, .3); }
.biz-head .pill { width: 22px; height: 8px; border-radius: 4px; background: rgba(34, 211, 238, .4); }
.biz-stats { display: flex; gap: 4px; flex: none; }
.biz-stats div {
  flex: 1;
  height: 28px;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid rgba(129, 140, 248, .16);
  background: rgba(30, 41, 59, .25);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.biz-stats i { width: 30%; height: 2px; background: rgba(148, 163, 184, .35); }
.biz-stats em { width: 60%; height: 3px; background: rgba(148, 163, 184, .2); }
.biz-stats b { width: 45%; height: 5px; border-radius: 2px; background: rgba(34, 211, 238, .45); }
.biz-rows { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.biz-rows span {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(148, 163, 184, .1), rgba(148, 163, 184, .03));
  border: 1px solid rgba(148, 163, 184, .06);
}
.art-business .ring-small {
  width: 170px; height: 60px;
  bottom: 0; right: 4%;
  transform: rotate(-14deg);
  border-color: rgba(167, 139, 250, .25);
}

/* ai */
.art-ai {
  background:
    radial-gradient(56% 56% at 50% 46%, rgba(91, 33, 182, .55), transparent 70%),
    radial-gradient(70% 60% at 80% 10%, rgba(14, 116, 144, .28), transparent 70%),
    linear-gradient(160deg, #080a1e, #04060f);
}
.art-ai .halo-a { width: 160px; height: 160px; top: 12%; left: 12%; }
.art-ai .halo-b { width: 120px; height: 120px; bottom: 10%; right: 18%; }
.ai-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .35) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .12;
  transform: perspective(300px) rotateX(58deg) scale(1.6);
  transform-origin: center 75%;
  mask-image: linear-gradient(180deg, transparent 20%, #000 90%);
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 90%);
}
.ai-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, .26);
  z-index: 1;
}
.ring-1 { width: 158px; height: 158px; animation: spin 26s linear infinite; }
.ring-2 { width: 226px; height: 226px; border-color: rgba(34, 211, 238, .14); border-style: dashed; animation: spin 40s linear infinite reverse; }
.ring-1::after {
  content: '';
  position: absolute;
  top: 10%; left: 8%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px 2px rgba(34, 211, 238, .6);
}
.ring-2::after {
  content: '';
  position: absolute;
  bottom: 14%; right: 4%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #e879f9;
  box-shadow: 0 0 12px 2px rgba(232, 121, 249, .5);
}
.ai-core {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  color: #e0f2fe;
  border: 1px solid rgba(196, 181, 253, .45);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .4), transparent 40%),
    linear-gradient(140deg, #7c3aed, #2563eb 60%, #0891b2);
  box-shadow:
    0 0 0 10px rgba(124, 58, 237, .1),
    0 0 34px rgba(124, 58, 237, .6),
    inset 0 1px 0 rgba(255, 255, 255, .35);
  animation: float 7s ease-in-out infinite;
}
.ai-core .icon { width: 28px; height: 28px; stroke-width: 1.2; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .7)); }
.chat {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(142, 170, 255, .22);
  background: rgba(8, 13, 30, .72);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .8);
}
.chat i { display: block; width: 4px; height: 4px; border-radius: 50%; background: #a5b4fc; }
.chat-a { top: 15%; left: 10%; }
.chat-b { top: 26%; right: 10%; }
.chat-b i { background: #67e8f9; }
.chat-c { bottom: 20%; right: 15%; }
.chat-c i { background: #e879f9; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- stats ---------- */
.stats-section {
  position: relative;
  padding: 18px 0 40px;
  background: #04060f;
}
.stats-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 176px 1fr 1fr;
  align-items: center;
  min-height: 160px;
  padding: 18px 14px;
  border-radius: 22px;
  border: 1px solid rgba(126, 156, 255, .2);
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(60, 56, 160, .3), transparent 68%),
    linear-gradient(150deg, rgba(16, 24, 50, .95), rgba(5, 8, 18, .96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 30px 70px -50px rgba(0, 0, 0, 1);
  overflow: visible;
  direction: ltr;
}
.stats-edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(192, 132, 252, .55), transparent 28%, transparent 72%, rgba(34, 211, 238, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .6;
  pointer-events: none;
}
.stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 16px;
  direction: rtl;
  min-width: 0;
}
.stat:nth-child(2), .stat:nth-child(5) { border-left: 1px solid rgba(126, 156, 255, .1); }
.stat-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border-radius: 14px;
  color: #c4b5fd;
  background: radial-gradient(circle at 30% 20%, rgba(129, 140, 248, .22), rgba(10, 15, 32, .3));
  border: 1px solid rgba(126, 156, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.stat-icon .icon { width: 26px; height: 26px; stroke-width: 1.45; filter: drop-shadow(0 0 8px rgba(129, 140, 248, .6)); }
.stat:nth-child(2) .stat-icon { color: #a5b4fc; }
.stat:nth-child(4) .stat-icon { color: #7dd3fc; }
.stat:nth-child(5) .stat-icon { color: #67e8f9; }
.stat-body { text-align: right; min-width: 0; }
.stat-body strong {
  display: block;
  font-size: clamp(23px, 2.05vw, 31px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  background: linear-gradient(180deg, #ffffff 10%, #c7d2fe 70%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(129, 140, 248, .25));
}
.stat-body > span {
  display: block;
  font-size: 13px;
  color: #b6c2db;
  white-space: normal;
  line-height: 1.55;
  margin-top: 2px;
}
.infinity {
  font-family: var(--font);
  font-size: 38px !important;
  line-height: 1 !important;
  background: linear-gradient(135deg, #c084fc, #38bdf8 60%, #22d3ee) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stats-emblem {
  position: relative;
  height: auto;
  margin-block: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}
.stats-emblem img {
  position: relative;
  width: 172px;
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(79, 70, 229, .5)) drop-shadow(0 0 24px rgba(34, 211, 238, .12));
  animation: float 9s ease-in-out infinite;
}
.emblem-glow {
  position: absolute;
  width: 150px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .45), transparent 75%);
  filter: blur(22px);
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 18px 0 clamp(64px, 7vw, 96px);
  background: #04060f;
}
.cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 312px;
  padding: 44px 32px;
  border-radius: 28px;
  border: 1px solid rgba(126, 156, 255, .26);
  background: #050915;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 40px 90px -50px rgba(0, 0, 0, 1),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}
.cta-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(192, 132, 252, .55), transparent 30%, transparent 70%, rgba(34, 211, 238, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 72%;
  transform: scale(1.1);
  opacity: 1;
  filter: saturate(1.25) brightness(1.2);
}
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(54% 90% at 50% 52%, rgba(4, 7, 18, .7), rgba(4, 7, 18, .24) 62%, rgba(4, 7, 18, .06)),
    linear-gradient(90deg, rgba(3, 5, 14, .58), transparent 28%, transparent 72%, rgba(3, 5, 14, .58));
}
.cta-aurora {
  position: absolute;
  inset: -30%;
  z-index: -2;
  background:
    radial-gradient(30% 40% at 26% 60%, rgba(168, 85, 247, .3), transparent 70%),
    radial-gradient(30% 40% at 78% 40%, rgba(34, 211, 238, .22), transparent 70%);
  filter: blur(30px);
  mix-blend-mode: screen;
  pointer-events: none;
}
.cta-astronaut {
  position: absolute;
  left: 3.6%;
  bottom: -6px;
  width: clamp(170px, 17vw, 234px);
  z-index: 2;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .65)) drop-shadow(0 0 30px rgba(56, 189, 248, .16));
  animation: float 10s ease-in-out infinite;
}
.cta-astronaut img { width: 100%; height: auto; }
.cta-grid {
  position: absolute;
  left: 0; right: 0; bottom: -46%;
  height: 92%;
  z-index: 1;
  background-image:
    linear-gradient(rgba(125, 211, 252, .34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .34) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: center top;
  opacity: .18;
  mask-image: linear-gradient(180deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
  pointer-events: none;
}
.cta-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 630px;
}
.cta-copy h2 {
  font-size: clamp(23px, 2.55vw, 35px);
  font-weight: 800;
  line-height: 1.55;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.cta-copy p {
  font-size: clamp(12.5px, 1.05vw, 14px);
  line-height: 2;
  color: #b4c1dd;
  margin-bottom: 24px;
}
.cta-copy .btn { --btn-h: 46px; font-size: 13.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .work-card { height: 240px; }
  .stats-panel { grid-template-columns: 1fr 1fr 150px 1fr 1fr; padding: 18px 16px; }
  .stats-emblem img { width: 144px; }
  .stat { padding-inline: 10px; gap: 8px; }
  .stat-icon { width: 40px; height: 40px; }
  .stat-body strong { font-size: 23px; }
  .stat-body > span { font-size: 12px; }
}
@media (max-width: 1020px) {
  .cta-astronaut { opacity: .9; left: 2%; width: 158px; }
}
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card { height: 260px; }
  .stats-panel {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
    padding: 26px 12px;
  }
  .stats-emblem { display: none; }
  .stat:nth-child(2), .stat:nth-child(5) { border-left: 0; }
  .stat:nth-child(1), .stat:nth-child(4) { border-right: 1px solid rgba(126, 156, 255, .12); }
  .stat:nth-child(n+4) { border-top: 1px solid rgba(126, 156, 255, .08); padding-top: 18px; }
  .stat { padding-inline: 18px; }
  .cta-astronaut { display: none; }
  .cta-panel { min-height: 280px; }
}
@media (max-width: 680px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card { height: 270px; }
  .work-caption h3 { font-size: 14px; }
}
@media (max-width: 520px) {
  .stats-panel { grid-template-columns: 1fr; gap: 0; padding: 8px 16px; }
  .stat { padding-block: 16px; }
  .stat:nth-child(2), .stat:nth-child(4) { border-right: 0; }
  .stat:nth-child(1) { border-right: 0; }
  .stat:nth-child(n+2) { border-top: 1px solid rgba(126, 156, 255, .08); }
  .stat:nth-child(n+4) { padding-top: 16px; }
  .stat-icon { width: 44px; height: 44px; }
  .stat-body strong { font-size: 26px; }
  .cta-panel { padding: 36px 20px; border-radius: 22px; }
  .cta-grid { display: none; }
}

/* =========================================================
   Contact dialog + backend form states
   ========================================================= */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cta-mail {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: #8fa0c4;
  letter-spacing: .02em;
  transition: color .3s;
}
.cta-mail:hover { color: #67e8f9; }

.contact-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid rgba(142, 170, 255, .3);
  border-radius: 24px;
  background: linear-gradient(165deg, #0b1226 0%, #070c1a 58%, #050915 100%);
  color: var(--text);
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, .9),
    inset 0 1px 0 rgba(255, 255, 255, .07);
  overflow: auto;
  overscroll-behavior: contain;
}
.contact-dialog::backdrop {
  background: rgba(2, 4, 11, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-dialog[open] {
  animation: dialog-in .4s var(--ease) both;
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-form {
  position: relative;
  padding: clamp(26px, 4vw, 38px);
  text-align: right;
}
.contact-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #a78bfa;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-form h2 {
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 800;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 6px;
}
.contact-sub {
  font-size: 12.5px;
  line-height: 2;
  color: #93a2c4;
  margin-bottom: 22px;
}

.dialog-close {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #c3cde6;
  background: rgba(10, 16, 32, .85);
  border: 1px solid rgba(142, 170, 255, .22);
  transition: background .25s, border-color .25s, transform .25s;
  z-index: 2;
}
.dialog-close:hover {
  background: rgba(24, 32, 58, .9);
  border-color: rgba(167, 139, 250, .55);
  transform: rotate(90deg);
}
.dialog-close .icon { width: 17px; height: 17px; }

.contact-form .field { margin-bottom: 16px; }
.contact-form .field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #b6c2de;
}
.contact-form .field input,
.contact-form .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(126, 156, 255, .2);
  background: rgba(4, 8, 19, .72);
  color: #eef2ff;
  font-size: 13px;
  line-height: 1.9;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.contact-form .field textarea {
  resize: vertical;
  min-height: 108px;
}
.contact-form .field input::placeholder,
.contact-form .field textarea::placeholder { color: #5c6a8b; }
.contact-form .field input:focus,
.contact-form .field textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, .7);
  background: rgba(7, 12, 27, .9);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .16);
}
.contact-submit {
  width: 100%;
  margin-top: 4px;
  --btn-h: 46px;
}
.contact-submit[disabled] {
  opacity: .65;
  cursor: progress;
  pointer-events: none;
}

.form-status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.9;
  color: #6ee7b7;
  text-align: center;
}
.form-status.is-error { color: #fb7185; }

@media (max-width: 520px) {
  .contact-form { padding: 24px 18px 20px; }
  .contact-form h2 { font-size: 19px; }
  .contact-sub { margin-bottom: 18px; }
}
