/* ═══════════════════════════════════════════════════════════
   InsertIT — Premium Agency CSS (v4)
   Design: minimal dark, typography-first, no template feel
═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ──────────────────────────────────────────────── */
:root {
  --bg:      #060608;
  --bg-2:    #0c0c10;
  --bg-3:    #131318;
  --fg:      #EBEBEB;
  --fg-2:    #999;
  --fg-3:    #555;
  --border:  rgba(255,255,255,0.06);
  --border-h: rgba(255,255,255,0.11);

  --g1: #ff5729;
  --g2: #FF1100;
  --grad: linear-gradient(135deg, #FFA25C 0%, var(--g2) 100%);

  --glow-sm: 0 0 24px rgba(255,134,78,.18);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 72px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  line-height: 1.7;
}
html.has-custom-cursor body {
  cursor: none;
}

/* ─── SKIP LINK ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top .25s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

/* Film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
  opacity: 0.4;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea { font: inherit; }

/* ─── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-title {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.15;
  color: var(--fg);
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g1);
  margin-bottom: 16px;
}

.grad-text {
  font-style: italic;
  padding: 0.06em 0.08em 0.12em 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── CONTAINER ───────────────────────────────────────────── */
.container {
  width: min(100%, 1300px);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
}

/* ─── SECTION GAP ─────────────────────────────────────────── */
.section-gap {
  padding-block: clamp(80px, 12vw, 160px);
}

/* ─── SCROLL PROGRESS ─────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%; height: 2px;
  background: var(--grad);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ─── CUSTOM CURSOR ───────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,134,78,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .3s var(--ease), height .3s var(--ease),
              border-color .3s, opacity .3s;
  will-change: transform;
}
.cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--g1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  will-change: transform;
}
.cursor.is-hover { width: 52px; height: 52px; border-color: var(--g1); }
.cursor.is-click { width: 24px; height: 24px; }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all .35s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  opacity: 0;
  transition: opacity .3s;
}
.btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,134,78,0.28);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,134,78,0.4);
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  border: 1px solid var(--border-h);
  color: var(--fg);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--g1);
  color: var(--g1);
}

.btn--full { width: 100%; justify-content: center; }

/* ─── MAGNETIC WRAP ───────────────────────────────────────── */
.magnetic-wrap { display: inline-block; }

/* ─── REVEAL ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

/* ─── HEADER ──────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background .4s, border-color .4s;
}
.header.scrolled {
  background: rgba(6,6,8,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.logo__img {
  height: 30px;
  width: auto;
}
.logo__accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {}
.nav__list {
  display: flex;
  align-items: center;
  gap: 36px;
  justify-content: center;
}
.nav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color .25s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--g1);
  transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--fg); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--fg); }

.header__right { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 72% 40%, rgba(255,87,41,.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── HERO TECH ORBIT ─────────────────────────────────────── */
.hero__orbit-wrap {
  position: absolute;
  top: 41%;
  right: 16%;
  width: 480px;
  height: 480px;
  transform: translateY(-50%);
  perspective: 1400px;
  z-index: 2;
}

.orbit__scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(24deg) rotateY(-6deg);
}

.orbit__hub {
  position: absolute;
  top: 50%; left: 50%;
  width: 92px; height: 92px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  box-shadow: 0 0 70px rgba(255,134,78,.45);
  z-index: 2;
}

.orbit__ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orbit__ring::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  border: 1px dashed var(--border-h);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit__ring--1::before { width: 216px; height: 216px; }
.orbit__ring--2::before { width: 384px; height: 384px; }

.orbit__item {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
}

.orbit__item-inner {
  position: absolute;
  top: 0; left: 0;
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border-h);
  color: var(--fg-2);
  font-size: 19px;
  cursor: default;
  pointer-events: auto;
  transition: color .3s, border-color .3s, background .3s, box-shadow .3s;
}
.orbit__ring--2 .orbit__item-inner { width: 46px; height: 46px; font-size: 16px; }

.orbit__item-inner:hover,
.orbit__item-inner.is-active {
  color: var(--g1);
  border-color: var(--g1);
  background: var(--bg-3);
  box-shadow: var(--glow-sm);
}

.orbit__label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 4px);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.orbit__item-inner:hover .orbit__label,
.orbit__item-inner.is-active .orbit__label {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
  .hero__orbit-wrap { display: none; }
}

/* ─── SITE-WIDE DECORATIVE VECTORS ────────────────────────── */
.about, .services, .portfolio, .contact {
  position: relative;
}
.section-vector {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  filter: drop-shadow(0 0 40px rgba(255,87,41,.22));
}
.section-vector--tr {
  top: 24%;
  right: 1%;
  width: min(20vw, 300px);
}
.section-vector--bl {
  bottom: 6%;
  left: 1%;
  transform: rotate(180deg);
  width: min(18vw, 260px);
}
.services__head, .portfolio__head {
  position: relative;
}
.section-vector--head-tl {
  /* top: -18%;x */
  left: 0%;
  transform: scaleX(-1);
  width: min(13vw, 270px);
  /* opacity: 0.22; */
}
.section-vector--head-br {
  right: 0;
  width: min(11vw, 150px);
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  .section-vector { display: none; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px 60px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--border-h);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-2);
  margin-bottom: 36px;
  width: fit-content;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .6s var(--ease) .1s forwards;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ecf5a;
  box-shadow: 0 0 0 3px rgba(62,207,90,.15);
  animation: pulse-green 2.5s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(62,207,90,.15); }
  50%       { box-shadow: 0 0 0 6px rgba(62,207,90,.06); }
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp .75s var(--ease) .22s forwards;
}
.hero__title-row {
  display: block;
  font-size: clamp(22px, 9vw, 78px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.hero__title-row--grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--fg-2);
  max-width: 400px;
  margin-bottom: 44px;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .65s var(--ease) .4s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .65s var(--ease) .52s forwards;
}
.hero__reel-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color .25s;
}
.hero__reel-link:hover { color: var(--fg); }
.hero__reel-arrow {
  display: inline-block;
  animation: bounce-y 2s ease-in-out infinite;
}
@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* Hero stats band */
.hero__band {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding-block: 32px;
  opacity: 0;
  animation: fadeUp .6s var(--ease) .7s forwards;
}
.hero__band-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.hero__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.hero__stat-val {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.hero__stat-label {
  font-size: 12px;
  color: var(--fg-3);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__band-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── ABOUT ───────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.about__title {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.15;
  margin-top: 8px;
}

.about__lead {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.8;
  margin-bottom: 40px;
}

/* ─── PRECISION RING (decorative) ────────────────────────── */
.precision-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 180px;
  margin-top: 40px;
}
.precision-ring__caption {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: center;
}
.precision-ring {
  position: relative;
  width: 180px;
  height: 180px;
}
.precision-ring__ticks {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--border-h) 0deg 1.5deg, transparent 1.5deg 9deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
}
.precision-ring__dash {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed var(--border-h);
}
.precision-ring__dash::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--g1);
  box-shadow: 0 0 12px rgba(255,87,41,.8);
}
.precision-ring__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--g1);
  box-shadow: 0 0 40px rgba(255,87,41,.25);
}

@media (max-width: 900px) {
  .precision-ring-wrap { display: none; }
}

.about__pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pillar {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: border-color .3s, padding-left .3s var(--ease);
}
.pillar:first-child { border-top: 1px solid var(--border); }
.pillar:hover { border-color: var(--border-h); padding-left: 8px; }
.pillar__num {
  position: absolute;
  right: 0;
  top: 24px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--border-h);
  line-height: 1;
  opacity: .6;
  transition: color .3s, opacity .3s;
  pointer-events: none;
}
.pillar:hover .pillar__num { color: var(--g1); opacity: .3; }
.pillar__icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(255,134,78,.1) 0%, rgba(255,17,0,.06) 100%);
  color: var(--g1);
  font-size: 15px;
  flex-shrink: 0;
  transition: background .3s, color .3s, transform .35s var(--ease);
}
.pillar:hover .pillar__icon {
  background: var(--grad);
  color: #fff;
  transform: rotate(-10deg) scale(1.1);
}
.pillar strong {
  display: block;
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 4px;
}
.pillar span {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.6;
}

/* ─── SERVICES (accordion list) ───────────────────────────── */
#services.section-gap { padding-block: clamp(48px, 7vw, 56px); }
.services__head { margin-bottom: 32px; }

.svc-list { border-top: 1px solid var(--border); }

.svc-item {
  position: relative;
  margin-left: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .3s, padding-left .3s var(--ease), background .3s, margin-left .5s var(--ease);
}
.svc-item:nth-child(even) { margin-left: clamp(28px, 6vw, 72px); }
.svc-item:hover, .svc-item.open {
  border-color: var(--border-h);
  padding-left: 8px;
  background: linear-gradient(90deg, rgba(255,87,41,.05), transparent 55%);
}
.svc-item::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--grad);
  transition: width .5s var(--ease);
}
.svc-item:hover::after, .svc-item.open::after { width: 100%; }

.svc-item__trigger {
  display: grid;
  grid-template-columns: 40px 40px 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  width: 100%;
  text-align: left;
}

.svc-item__num {
  font-family: 'SF Mono', 'JetBrains Mono', 'Roboto Mono', Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.svc-item__num::before { content: '['; color: var(--border-h); }
.svc-item__num::after  { content: ']'; color: var(--border-h); }
.svc-item:hover .svc-item__num,
.svc-item.open .svc-item__num { color: var(--g1); }
.svc-item__icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(255,134,78,.1) 0%, rgba(255,17,0,.06) 100%);
  color: var(--g1);
  font-size: 14px;
  flex-shrink: 0;
  transition: background .3s, color .3s, transform .35s var(--ease);
}
.svc-item:hover .svc-item__icon,
.svc-item.open .svc-item__icon {
  background: var(--grad);
  color: #fff;
  transform: rotate(-8deg) scale(1.08);
}
.svc-item__name {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  transition: color .25s;
}
.svc-item__trigger:hover .svc-item__name { color: var(--g1); }
.svc-item__tech {
  font-size: 12px;
  color: var(--fg-3);
  white-space: nowrap;
}
.svc-item__arrow {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg-2);
  font-size: 12px;
  transition: all .35s var(--ease);
  flex-shrink: 0;
}
.svc-item.open .svc-item__arrow {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  transform: rotate(45deg);
}
.svc-item.open .svc-item__name { color: var(--g1); }

.svc-item__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .5s var(--ease), opacity .35s;
}
.svc-item.open .svc-item__body {
  max-height: 300px;
  opacity: 1;
}
.svc-item__body > * { padding-left: 116px; }
.svc-item__body p {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.75;
  padding-bottom: 16px;
}
.svc-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
}
.svc-item__tags span {
  padding: 4px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-2);
}
.svc-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--g1);
  padding-bottom: 28px;
  transition: gap .25s;
}
.svc-item__link:hover { gap: 10px; }

/* ─── PORTFOLIO ───────────────────────────────────────────── */
.portfolio__head {
  margin-bottom: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.portfolio__hint {
  font-size: 13px;
  color: var(--fg-3);
}

/* ─── PORTFOLIO 3D CAROUSEL ───────────────────────────────── */
.portfolio__stage {
  position: relative;
  height: calc(100vh - var(--header-h));
  perspective: 8000px;
  opacity: 0;
}

.portfolio__carousel {
  position: absolute;
  inset: 0;
}

.portfolio__carousel-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.pcard {
  width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .3s, transform .35s var(--ease);
}

.portfolio__carousel-inner .pcard {
  position: absolute;
  top: 50%; left: 50%;
  width: min(56vw, 820px);
  backface-visibility: hidden;
  transform: translate(-50%, -50%) rotateY(var(--ry)) translateZ(min(38vw, 560px));
}
.portfolio__carousel-inner .pcard:hover {
  border-color: var(--border-h);
  transform: translate(-50%, -50%) rotateY(var(--ry)) translateZ(min(38vw, 560px)) scale(1.02);
}

@media (max-width: 767px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .portfolio__stage { height: auto; perspective: none; opacity: 1; }
  .portfolio__carousel { position: static; }
  .portfolio__carousel-inner {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: none !important;
  }
  .portfolio__carousel-inner .pcard {
    position: static;
    width: 100%;
    backface-visibility: visible;
    transform: none !important;
  }
  .portfolio__carousel-inner .pcard:hover { transform: none !important; }
}

.pcard__visual {
  height: clamp(460px, 52vh, 660px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(56px, 6vh, 88px);
  color: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.pcard__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
.pcard__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.3;
}
.pv--saas   { background: linear-gradient(135deg, #0d1929 0%, #0a2040 100%); }
.pv--saas::before   { background: radial-gradient(circle at 70% 30%, rgba(255,134,78,.3) 0%, transparent 60%); }
.pv--crm    { background: linear-gradient(135deg, #160d1c 0%, #200a2a 100%); }
.pv--crm::before    { background: radial-gradient(circle at 30% 60%, rgba(160,60,255,.3) 0%, transparent 60%); }
.pv--market { background: linear-gradient(135deg, #0d1a10 0%, #0a2212 100%); }
.pv--market::before { background: radial-gradient(circle at 60% 40%, rgba(60,200,100,.3) 0%, transparent 60%); }
.pv--mobile { background: linear-gradient(135deg, #1a100d 0%, #22100a 100%); }
.pv--mobile::before { background: radial-gradient(circle at 40% 50%, rgba(255,134,78,.35) 0%, transparent 60%); }
.pv--ai     { background: linear-gradient(135deg, #0a1320 0%, #080d1e 100%); }
.pv--ai::before     { background: radial-gradient(circle at 50% 30%, rgba(0,120,255,.3) 0%, transparent 60%); }

.pcard__info { padding: 28px; }
.pcard__cat {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g1);
  margin-bottom: 10px;
}
.pcard__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.pcard__info p {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 20px;
}

.portfolio__carousel-inner .pcard__info { padding: 32px; }
.portfolio__carousel-inner .pcard__cat { font-size: 12px; }
.portfolio__carousel-inner .pcard__title { font-size: clamp(24px, 3vh, 32px); margin-bottom: 12px; }
.portfolio__carousel-inner .pcard__info p { font-size: 15px; margin-bottom: 20px; }
.pcard__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pcard__stack span {
  padding: 3px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  color: var(--fg-2);
}

/* ─── CONTACT ─────────────────────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact__title {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.15;
  margin-top: 8px;
  margin-bottom: 40px;
}

.contact__reach {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 36px;
}

.reach-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.reach-item:hover {
  background: var(--bg-2);
  border-color: var(--border);
}
.reach-item__icon {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(255,134,78,.1) 0%, rgba(255,17,0,.06) 100%);
  color: var(--g1);
  font-size: 16px;
  flex-shrink: 0;
}
.reach-item__text { display: flex; flex-direction: column; gap: 2px; }
.reach-item__text strong { font-size: 14px; color: var(--fg); font-weight: 600; }
.reach-item__text span  { font-size: 13px; color: var(--fg-2); }

.contact__cta-row { margin-top: 4px; }

/* FORM — dark glass, no orange fill */
.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-field select option { background: #131318; color: var(--fg); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--fg-3); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--g1);
  box-shadow: 0 0 0 3px rgba(255,134,78,.1);
}
.form-field textarea { resize: vertical; min-height: 130px; }

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 32px;
  color: var(--fg-2);
  font-size: 15px;
}
.form-success i {
  font-size: 36px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.form-success--error i {
  background: none;
  -webkit-text-fill-color: #ff4d4d;
  color: #ff4d4d;
}
.contact-form.submitted .form-success { display: flex; }
.contact-form.submitted .form-fields  { display: none; }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 56px 32px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 48px;
}
.footer__brand p {
  font-size: 13px;
  color: var(--fg-2);
  margin-top: 8px;
}
.footer__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: 13px;
  color: var(--fg-2);
  transition: color .25s;
}
.footer__nav a:hover { color: var(--fg); }
.footer__social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg-2);
  font-size: 14px;
  transition: all .25s;
}
.social-btn:hover { border-color: var(--g1); color: var(--g1); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-2);
}
.footer__bottom i { color: var(--g2); }

/* ─── SCROLL TO TOP ───────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg-2);
  font-size: 14px;
  z-index: 50;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all .35s var(--ease);
}
.scroll-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top:hover { background: var(--grad); border-color: transparent; color: #fff; }

/* ─── KEYFRAMES ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about__grid   { grid-template-columns: 1fr; gap: 48px; }
  .contact__grid { grid-template-columns: 1fr; gap: 56px; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav, .header__right .btn--outline { display: none; }
  .burger { display: flex; }

  .nav.open {
    display: flex;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(6,6,8,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px clamp(20px, 5vw, 80px);
    z-index: 90;
  }
  .nav.open .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .nav.open .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .svc-item__trigger { grid-template-columns: 44px 1fr auto; gap: 14px; }
  .svc-item__tech { display: none; }
  .svc-item__icon { display: none; }
  .svc-item:nth-child(even) { margin-left: 0; }
  .svc-item__body > * { padding-left: 58px; }

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

  .hero__band-inner { flex-wrap: wrap; gap: 20px; }
  .hero__band-sep { display: none; }
  .hero__stat { flex: 1 1 40%; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }

  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}

@media (max-width: 480px) {
  .hero__title-row { font-size: clamp(42px, 11vw, 80px); }
  .portfolio__hint { display: none; }
  .process__steps { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
