/*
 * itCon 3.2 — business motion and responsive refinements.
 */

/* Elegant business signals used by internal page heroes. */
.ns-page-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: clamp(42px, 7vw, 100px);
}

.ns-page-hero__signal {
  --signal-color: #72a0ff;
  --signal-glow: rgba(75, 125, 255, .26);
  position: relative;
  isolation: isolate;
  display: grid;
  width: clamp(190px, 17vw, 236px);
  max-width: 236px;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  overflow: visible;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0 24%, rgba(255,255,255,.025) 25% 45%, transparent 46%);
  box-shadow: none;
}

.ns-page-hero__signal::before {
  position: absolute;
  z-index: -2;
  inset: 9%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, var(--signal-glow), transparent 68%);
  filter: blur(16px);
  animation: ns-signal-breathe 4.5s ease-in-out infinite;
}

.ns-page-hero__signal::after {
  position: absolute;
  z-index: 4;
  bottom: -18px;
  left: 50%;
  min-width: max-content;
  padding: 8px 12px;
  content: attr(data-signal-label);
  color: rgba(235, 241, 255, .84);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(8, 16, 29, .82);
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.ns-page-hero__signal span {
  position: relative;
  z-index: 3;
  display: grid;
  width: 43%;
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 50px rgba(0,0,0,.18), 0 0 35px var(--signal-glow);
  font-size: clamp(1.25rem, 2.4vw, 2.15rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.055em;
}

.ns-page-hero__signal i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  inset: auto;
  border: 1px solid rgba(130, 165, 255, .25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ns-signal-orbit 13s linear infinite;
}

.ns-page-hero__signal i::after {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 8px;
  height: 8px;
  content: "";
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--signal-color);
  box-shadow: 0 0 18px var(--signal-color);
  transform: translateY(-50%);
}

.ns-page-hero__signal i:nth-child(2) {
  width: 76%;
  height: 76%;
  border-style: dashed;
  animation-duration: 18s;
  animation-direction: reverse;
}

.ns-page-hero__signal i:nth-child(3) {
  width: 57%;
  height: 57%;
  border-color: rgba(255,255,255,.16);
  animation-duration: 9s;
}

.ns-page-hero__signal i:nth-child(2)::after { width: 6px; height: 6px; }
.ns-page-hero__signal i:nth-child(3)::after { right: auto; left: -3px; width: 5px; height: 5px; }
.ns-signal--contact { --signal-color: #61e3b5; --signal-glow: rgba(55, 214, 165, .24); }
.ns-signal--about { --signal-color: #8faeff; }
.ns-signal--support { --signal-color: #4ee0c1; --signal-glow: rgba(42, 220, 182, .22); }
.ns-signal--services { --signal-color: #78a1ff; }
.ns-signal--projects { --signal-color: #a48bff; --signal-glow: rgba(157, 125, 255, .24); }
.ns-signal--plans { --signal-color: #65d9ff; --signal-glow: rgba(65, 201, 255, .22); }
.ns-signal--blog { --signal-color: #ffbd65; --signal-glow: rgba(255, 174, 73, .2); }

@keyframes ns-signal-orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ns-signal-breathe {
  0%, 100% { opacity: .55; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Exact, animated workflow connectors. */
.ns-workflow-map { gap: 58px 38px; }
.ns-workflow-map__line { display: none; }
.ns-workflow-node { z-index: 2; min-height: 148px; overflow: visible; }

.ns-workflow-node::before {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.ns-workflow-node--1::before,
.ns-workflow-node--2::before {
  top: calc(50% - 1px);
  left: 100%;
  width: 38px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(142, 171, 255, .78) 0 6px, transparent 6px 12px);
  background-size: 24px 2px;
  animation: ns-flow-x 1.2s linear infinite;
}

.ns-workflow-node--3::before {
  top: 100%;
  left: calc(50% - 1px);
  width: 2px;
  height: 58px;
  background: repeating-linear-gradient(180deg, rgba(142, 171, 255, .78) 0 6px, transparent 6px 12px);
  background-size: 2px 24px;
  animation: ns-flow-y 1.2s linear infinite;
}

.ns-workflow-node--4::before,
.ns-workflow-node--5::before {
  top: calc(50% - 1px);
  right: 100%;
  width: 38px;
  height: 2px;
  background: repeating-linear-gradient(270deg, rgba(142, 171, 255, .78) 0 6px, transparent 6px 12px);
  background-size: 24px 2px;
  animation: ns-flow-x-reverse 1.2s linear infinite;
}

.ns-workflow-node::after {
  display: block;
  width: 13px;
  height: 13px;
  border-width: 4px;
  animation: ns-workflow-pulse 2.2s ease-in-out infinite;
}

.ns-workflow-node--1::after,
.ns-workflow-node--2::after { right: -8px; left: auto; top: 50%; }
.ns-workflow-node--3::after { top: auto; right: auto; bottom: -8px; left: 50%; transform: translateX(-50%); }
.ns-workflow-node--4::after,
.ns-workflow-node--5::after,
.ns-workflow-node--6::after { top: 50%; right: auto; left: -8px; }

.js .ns-workflow-shell:not(.is-visible) .ns-workflow-node { opacity: 0; }
.js .ns-workflow-shell.is-visible .ns-workflow-node { animation: ns-workflow-card-in .62s cubic-bezier(.2,.75,.25,1) backwards; }
.js .ns-workflow-shell.is-visible .ns-workflow-node--2 { animation-delay: .1s; }
.js .ns-workflow-shell.is-visible .ns-workflow-node--3 { animation-delay: .2s; }
.js .ns-workflow-shell.is-visible .ns-workflow-node--4 { animation-delay: .3s; }
.js .ns-workflow-shell.is-visible .ns-workflow-node--5 { animation-delay: .4s; }
.js .ns-workflow-shell.is-visible .ns-workflow-node--6 { animation-delay: .5s; }

@keyframes ns-flow-x { to { background-position: 24px 0; } }
@keyframes ns-flow-x-reverse { to { background-position: -24px 0; } }
@keyframes ns-flow-y { to { background-position: 0 24px; } }
@keyframes ns-workflow-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(36,87,255,.16), 0 0 0 0 rgba(95,137,255,.28); }
  50% { box-shadow: 0 0 0 1px rgba(36,87,255,.16), 0 0 0 8px rgba(95,137,255,0); }
}
@keyframes ns-workflow-card-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* All editable services remain balanced when new items are published. */
.ns-offering-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ns-offering-card { min-height: 315px; }
.ns-case-tabs__nav { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }

/* Redesigned testimonial board. */
.ns-testimonials-v2 {
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #f3f6fb);
}

.ns-testimonial-board {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 68px);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 91% 10%, rgba(49, 94, 255, .24), transparent 27%),
    linear-gradient(145deg, #101a2d, #080e19 75%);
  box-shadow: 0 34px 90px rgba(8, 18, 36, .18);
}

.ns-testimonial-board::before {
  position: absolute;
  top: -170px;
  right: -150px;
  width: 430px;
  height: 430px;
  content: "";
  opacity: .45;
  border: 1px solid rgba(124, 157, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(124,157,255,.025), 0 0 0 100px rgba(124,157,255,.018);
}

.ns-testimonial-board__header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(38px, 7vw, 100px);
  align-items: end;
  margin-bottom: 42px;
}

.ns-testimonial-board__header h2 {
  max-width: 760px;
  margin: 17px 0 0;
  color: #fff;
  font-size: clamp(2.35rem, 4.2vw, 4rem);
  line-height: 1;
  letter-spacing: -.052em;
}

.ns-testimonial-board__header > p { margin: 0; color: rgba(232,239,255,.65); font-size: .96rem; line-height: 1.75; }
.ns-testimonial-carousel { position: relative; z-index: 1; }
.ns-testimonial-carousel__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.ns-testimonial-carousel__toolbar > span { color: rgba(226,235,255,.48); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ns-testimonials-v2 .ns-carousel-controls button { color: #fff; border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.055); }
.ns-testimonials-v2 .ns-carousel-controls button:hover { background: var(--ns-accent); }
.ns-testimonials-v2 .ns-testimonial-slides { min-height: 390px; }

.ns-testimonials-v2 .ns-testimonial-slide {
  position: absolute;
  inset: 0;
  display: grid;
  min-height: 390px;
  visibility: hidden;
  overflow: hidden;
  padding: clamp(26px, 4vw, 48px);
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px 28px;
  opacity: 0;
  color: #101828;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #f6f8fd);
  transform: translateY(16px);
  transition: opacity .38s ease, transform .38s ease, visibility .38s;
}

.ns-testimonials-v2 .ns-testimonial-slide.is-active { position: relative; visibility: visible; opacity: 1; transform: none; }
.ns-testimonial-slide__index { grid-column: 1; grid-row: 1; color: #b9c5da; font-size: 1rem; font-weight: 850; letter-spacing: .12em; }
.ns-testimonial-slide__body { grid-column: 2; grid-row: 1; max-width: 930px; }
.ns-testimonials-v2 .ns-testimonial-rating { margin-bottom: 18px; font-size: .79rem; }
.ns-testimonials-v2 .ns-testimonial__quote { margin: 0; color: #101828; font-size: clamp(2rem, 3.15vw, 3.2rem); line-height: 1.08; letter-spacing: -.048em; }
.ns-testimonials-v2 .ns-testimonial__author { grid-column: 2; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-top: 24px; border-top: 1px solid #e3e8f1; }
.ns-testimonials-v2 .ns-testimonial__avatar { width: 54px; height: 54px; color: #fff; background: #13213a; }
.ns-testimonials-v2 .ns-testimonial__author strong { color: #142033; }
.ns-testimonials-v2 .ns-testimonial__author > div > span { color: #718097; }
.ns-testimonials-v2 .ns-testimonial__author small { padding: 8px 11px; color: #177e61; border-radius: 999px; background: #e7f8f2; font-size: .58rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.ns-testimonials-v2 .ns-carousel-dots { margin: 20px 0 0 102px; }
.ns-testimonials-v2 .ns-carousel-dots button { background: rgba(255,255,255,.26); }
.ns-testimonials-v2 .ns-carousel-dots button.is-active { background: #6e94ff; }

.ns-testimonial-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 34px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 17px;
  background: rgba(255,255,255,.08);
}

.ns-testimonial-proof > span { display: flex; min-height: 94px; padding: 20px 25px; justify-content: center; flex-direction: column; color: rgba(224,233,250,.55); background: rgba(6,13,24,.65); font-size: .66rem; }
.ns-testimonial-proof strong { margin-bottom: 7px; color: #fff; font-size: 1.65rem; line-height: 1; letter-spacing: -.035em; }

/* Editorial homepage journal. */
.ns-home-journal {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ns-home-journal__featured,
.ns-home-journal__item { overflow: hidden; border: 1px solid #e1e7f0; background: #fff; box-shadow: 0 12px 38px rgba(15,30,60,.055); }
.ns-home-journal__featured { grid-row: 1 / span 3; border-radius: 26px; }
.ns-home-journal__item { display: grid; min-height: 190px; grid-template-columns: 175px minmax(0, 1fr); border-radius: 19px; }
.ns-home-journal__media { position: relative; display: block; overflow: hidden; min-height: 190px; background: #14213a; }
.ns-home-journal__featured .ns-home-journal__media { height: 320px; }
.ns-home-journal__media img,
.ns-home-journal__media .ns-post-card__placeholder { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform .55s ease; }
.ns-home-journal__media .ns-post-card__placeholder { position: absolute; inset: 0; }
.ns-home-journal article:hover .ns-home-journal__media img { transform: scale(1.035); }
.ns-home-journal__content { position: relative; padding: 24px 70px 24px 25px; }
.ns-home-journal__featured .ns-home-journal__content { padding: 34px 82px 38px 35px; }
.ns-home-journal__meta { display: flex; flex-wrap: wrap; gap: 8px 13px; align-items: center; color: #8290a7; font-size: .62rem; font-weight: 700; }
.ns-home-journal__meta span { padding: 6px 8px; color: var(--ns-accent); border-radius: 7px; background: #eaf0ff; font-weight: 850; text-transform: uppercase; }
.ns-home-journal__content h3 { margin: 14px 0 9px; font-size: 1.2rem; line-height: 1.16; letter-spacing: -.025em; }
.ns-home-journal__featured h3 { margin-top: 18px; font-size: clamp(1.75rem, 2.75vw, 2.7rem); line-height: 1.04; letter-spacing: -.045em; }
.ns-home-journal__content h3 a { color: #121a29; text-decoration: none; }
.ns-home-journal__content > p { margin: 0; color: #69758a; font-size: .8rem; line-height: 1.58; }
.ns-home-journal__featured .ns-home-journal__content > p { max-width: 620px; font-size: .94rem; line-height: 1.68; }
.ns-home-journal__link { position: absolute; right: 22px; bottom: 22px; display: grid; width: 40px; height: 40px; place-items: center; color: var(--ns-accent); border: 1px solid #dfe6f3; border-radius: 50%; background: #fff; text-decoration: none; transition: color .2s ease, background .2s ease, transform .2s ease; }
.ns-home-journal__featured .ns-home-journal__link { width: 48px; height: 48px; }
.ns-home-journal__link:hover { color: #fff; background: var(--ns-accent); transform: rotate(8deg); }
.ns-home-journal__all { display: flex; justify-content: center; margin-top: 32px; }
.ns-post-card__category { color: var(--ns-accent) !important; font-weight: 850; text-transform: uppercase; }

@media (max-width: 1000px) {
  .ns-workflow-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
    gap: 42px 20px;
  }
  .ns-workflow-node--1 { grid-column: 1; grid-row: 1; }
  .ns-workflow-node--2 { grid-column: 2; grid-row: 1; }
  .ns-workflow-node--3 { grid-column: 3; grid-row: 1; }
  .ns-workflow-node--4 { grid-column: 3; grid-row: 2; }
  .ns-workflow-node--5 { grid-column: 2; grid-row: 2; }
  .ns-workflow-node--6 { grid-column: 1; grid-row: 2; }
  .ns-workflow-node--1::before,
  .ns-workflow-node--2::before,
  .ns-workflow-node--4::before,
  .ns-workflow-node--5::before { width: 20px; }
  .ns-workflow-node--3::before { height: 42px; }
  .ns-workflow-node p { display: none; }
  .ns-testimonial-board__header { grid-template-columns: 1fr; gap: 20px; }
  .ns-home-journal { grid-template-columns: 1fr; grid-template-rows: auto; }
  .ns-home-journal__featured { grid-row: auto; }
}

@media (max-width: 900px) {
  .ns-page-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .ns-page-hero__signal { display: grid; width: 158px; justify-self: start; margin: 4px 0 24px 12px; }
  .ns-page-hero__signal::after { font-size: .52rem; }
  .ns-offering-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ns-testimonials-v2 .ns-testimonial__quote { font-size: clamp(1.85rem, 5vw, 2.55rem); }
}

@media (max-width: 760px) {
  .ns-workflow-map { grid-template-columns: 1fr; grid-template-rows: auto; gap: 20px; }
  .ns-workflow-node,
  .ns-workflow-node--1,
  .ns-workflow-node--2,
  .ns-workflow-node--3,
  .ns-workflow-node--4,
  .ns-workflow-node--5,
  .ns-workflow-node--6 { grid-column: auto; grid-row: auto; min-height: 120px; }
  .ns-workflow-node p { display: block; }
  .ns-workflow-node--1::before,
  .ns-workflow-node--2::before,
  .ns-workflow-node--3::before,
  .ns-workflow-node--4::before,
  .ns-workflow-node--5::before { top: 100%; right: auto; bottom: auto; left: calc(50% - 1px); display: block; width: 2px; height: 20px; background: repeating-linear-gradient(180deg, rgba(142,171,255,.78) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation: ns-flow-y 1.2s linear infinite; }
  .ns-workflow-node--6::before { display: none; }
  .ns-workflow-node--1::after,
  .ns-workflow-node--2::after,
  .ns-workflow-node--3::after,
  .ns-workflow-node--4::after,
  .ns-workflow-node--5::after { top: auto; right: auto; bottom: -8px; left: 50%; transform: translateX(-50%); }
  .ns-workflow-node--6::after { display: none; }
  .ns-testimonials-v2 .ns-testimonial-slide { grid-template-columns: 44px minmax(0, 1fr); padding: 27px 23px; }
  .ns-testimonials-v2 .ns-testimonial__author { grid-template-columns: 50px minmax(0, 1fr); }
  .ns-testimonials-v2 .ns-testimonial__author small { display: none; }
  .ns-testimonials-v2 .ns-carousel-dots { margin-left: 72px; }
  .ns-testimonial-proof { grid-template-columns: 1fr; }
  .ns-testimonial-proof > span { min-height: 78px; }
}

@media (max-width: 620px) {
  .ns-page-hero--premium { padding-bottom: 66px; }
  .ns-page-hero__signal { width: 128px; margin-left: 6px; }
  .ns-page-hero__signal::after { bottom: -22px; }
  .ns-offering-grid { grid-template-columns: 1fr; }
  .ns-testimonial-board { padding: 28px 18px; border-radius: 24px; }
  .ns-testimonials-v2 .ns-testimonial-slides { min-height: 480px; }
  .ns-testimonials-v2 .ns-testimonial-slide { min-height: 480px; grid-template-columns: 1fr; gap: 13px; }
  .ns-testimonial-slide__index,
  .ns-testimonial-slide__body,
  .ns-testimonials-v2 .ns-testimonial__author { grid-column: 1; }
  .ns-testimonial-slide__index { grid-row: auto; }
  .ns-testimonials-v2 .ns-testimonial__quote { font-size: 1.72rem; }
  .ns-testimonials-v2 .ns-carousel-dots { margin-left: 0; }
  .ns-home-journal__featured .ns-home-journal__media { height: 240px; }
  .ns-home-journal__item { grid-template-columns: 118px minmax(0, 1fr); min-height: 170px; }
  .ns-home-journal__item .ns-home-journal__media { min-height: 170px; }
  .ns-home-journal__content { padding: 20px 50px 20px 18px; }
  .ns-home-journal__featured .ns-home-journal__content { padding: 26px 66px 30px 24px; }
  .ns-home-journal__item .ns-home-journal__meta time,
  .ns-home-journal__item .ns-home-journal__meta small,
  .ns-home-journal__item .ns-home-journal__content > p { display: none; }
  .ns-home-journal__content h3 { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ns-page-hero__signal::before,
  .ns-page-hero__signal i,
  .ns-workflow-node::before,
  .ns-workflow-node::after,
  .js .ns-workflow-shell.is-visible .ns-workflow-node { animation: none !important; }
}
