/* Homepage hero: left copy + one 3D scene per slide. Motion uses transform/opacity only. */

.nws-hero3d {
  --o: #f2520d;
  --o2: #ff7a3d;
  --o3: #ffb07c;
  --ink: #0d0d0f;
  --nws-interval: 5500ms;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 150px 0 64px;
  background:
    radial-gradient(1200px 600px at 78% 38%, rgba(242, 82, 13, 0.16), transparent 60%),
    radial-gradient(900px 500px at 10% 100%, rgba(242, 82, 13, 0.1), transparent 65%),
    var(--ink);
  color: #fff;
}

/* ---------- Background: glows, perspective grid floor, orbs ---------- */
.nws-hero3d__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.nws-hero3d__glow {
  position: absolute;
  border-radius: 50%;
}
.nws-hero3d__glow--a {
  width: 640px;
  height: 640px;
  right: -120px;
  top: 40px;
  background: radial-gradient(circle, rgba(242, 82, 13, 0.32) 0%, rgba(242, 82, 13, 0) 68%);
}
.nws-hero3d__glow--b {
  width: 520px;
  height: 520px;
  left: -200px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(255, 122, 61, 0.18) 0%, rgba(255, 122, 61, 0) 70%);
}
.nws-hero3d__floor {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: 0;
  height: 46%;
  perspective: 520px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 95%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 95%);
}
.nws-hero3d__grid {
  position: absolute;
  left: 0;
  right: 0;
  top: -100%;
  bottom: 0;
  background-image:
    linear-gradient(rgba(242, 82, 13, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 82, 13, 0.28) 1px, transparent 1px);
  background-size: 64px 64px;
  transform-origin: 50% 100%;
  transform: rotateX(68deg);
}
.nws-hero3d__orb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--o2);
  box-shadow: 0 0 16px 4px rgba(242, 82, 13, 0.55);
}

/* ---------- Layout ---------- */
.nws-hero3d__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}
.nws-hero3d__copy {
  min-width: 0;
}

/* ---------- Copy ---------- */
.nws-hero3d__slides {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.nws-hero3d__slide {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.45s;
}
.nws-hero3d__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nws-hero3d__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.nws-hero3d__pill {
  padding: 5px 12px;
  border: 1px solid rgba(242, 82, 13, 0.5);
  border-radius: 999px;
  background: rgba(242, 82, 13, 0.14);
  color: var(--o3);
  letter-spacing: 0.1em;
}
.nws-hero3d__count {
  color: var(--o);
  font-weight: 700;
}
.nws-hero3d__eyebrow {
  flex-basis: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.nws-hero3d__title {
  margin: 20px 0 18px;
  font-family: var(--heading-font-family, "Outfit", sans-serif);
  font-size: clamp(38px, 4.1vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  min-height: calc(3 * 1.08em);
  letter-spacing: -0.02em;
  color: #fff;
  perspective: 700px;
  text-wrap: balance;
}
.nws-w {
  display: inline-block;
  transform-origin: 50% 100%;
}
.nws-hero3d.is-ready .nws-hero3d__slide.is-active .nws-w {
  animation: nwsWord 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 55ms + 120ms);
}
.nws-hero3d__text {
  max-width: 560px;
  margin: 0;
  min-height: calc(3 * 1.7em);
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}
.nws-hero3d__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 32px;
}
.nws-hero3d__ghost {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
.nws-hero3d__ghost:hover,
.nws-hero3d__ghost:focus-visible {
  border-color: var(--o);
  background: rgba(242, 82, 13, 0.1);
  color: var(--o3);
}


/* Progress tabs */
.nws-hero3d__tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 14px;
  margin-top: 40px;
}
.nws-hero3d__tab {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.25s ease;
}
.nws-hero3d__tab:hover,
.nws-hero3d__tab.is-active {
  color: #fff;
}
.nws-hero3d__tab:focus-visible {
  outline: 2px solid var(--o);
  outline-offset: 6px;
  border-radius: 4px;
}
.nws-hero3d__tab-label {
  line-height: 1.3;
}
.nws-hero3d__tab-bar {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.nws-hero3d__tab-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--o), var(--o3));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.nws-hero3d.is-paused .nws-hero3d__tab.is-active .nws-hero3d__tab-bar i {
  animation-play-state: paused;
}

/* ---------- 3D visual: one scene per slide (560 x 540 canvas, scaled by --k) ---------- */
.nws-hero3d__visual {
  --k: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 580px;
  perspective: 1600px;
  perspective-origin: 50% 40%;
}
.nws-hero3d__stage {
  position: relative;
  width: calc(560px * var(--k));
  height: calc(540px * var(--k));
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nws-hero3d__float {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.n3-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 540px;
  margin: -270px 0 0 -280px;
  transform-style: preserve-3d;
  transform: scale(var(--k));
}

/* Only the active (and leaving) scene is rendered; scenes swing in from the right and out to the left */
.n3-scene {
  position: absolute;
  inset: 0;
  display: none;
  transform-style: preserve-3d;
}
.n3-scene.is-active,
.n3-scene.is-leaving {
  display: block;
}
.nws-hero3d.is-ready .n3-scene.is-active { animation: n3SceneIn 1s cubic-bezier(0.65, 0, 0.25, 1) both; }
.n3-scene.is-leaving { animation: n3SceneOut 1s cubic-bezier(0.65, 0, 0.25, 1) forwards; }
.n3-scene.is-leaving .n3-fly {
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Positioned pieces: outer = 3D position, .n3-fly = entry, .n3-bob = idle float */
.n3-piece {
  position: absolute;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  transform: translate3d(var(--x), var(--y), var(--z)) rotateY(var(--r));
}
.n3-fly,
.n3-bob {
  transform-style: preserve-3d;
}
.nws-hero3d.is-ready .n3-scene.is-active .n3-fly {
  animation: n3Fly 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--d);
}

/* Glass service cards */
.n3-card .n3-bob {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 132px;
  height: 118px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.05) 55%, rgba(242, 82, 13, 0.1) 100%);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 26px rgba(242, 82, 13, 0.12);
  text-align: center;
}
.n3-card--wide .n3-bob {
  flex-direction: row;
  justify-content: flex-start;
  width: 204px;
  height: 72px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  text-align: left;
}
.n3-card__icon {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--o3) 0%, var(--o) 55%, #c63c05 100%);
  box-shadow: 0 10px 22px rgba(242, 82, 13, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font-size: 20px;
  color: #fff;
}
.n3-card__label {
  font-family: var(--heading-font-family, "Outfit", sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

/* Glowing pedestal and orbit ring */
.n3-pedestal {
  position: absolute;
  left: 80px;
  top: 418px;
  width: 400px;
  height: 120px;
  transform: translateZ(-30px);
}
.n3-pedestal__glow {
  position: absolute;
  left: -15%;
  right: -15%;
  top: 30px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(242, 82, 13, 0.38) 0%, rgba(242, 82, 13, 0) 70%);
}
.n3-pedestal__side {
  position: absolute;
  left: 0;
  top: 43px;
  width: 100%;
  height: 70px;
  border-bottom: 2px solid rgba(242, 82, 13, 0.75);
  border-radius: 0 0 50% 50% / 0 0 44px 44px;
  background: linear-gradient(180deg, #1e1614 0%, #0d0b0b 100%);
  box-shadow: 0 12px 40px rgba(242, 82, 13, 0.35);
}
.n3-pedestal__top {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 86px;
  border: 1px solid rgba(242, 82, 13, 0.6);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, #33241c 0%, #17110f 55%, #0f0c0c 100%);
  box-shadow: 0 0 34px rgba(242, 82, 13, 0.4), inset 0 -10px 24px rgba(242, 82, 13, 0.3), inset 0 6px 14px rgba(255, 255, 255, 0.08);
}
.n3-ring {
  position: absolute;
  left: 40px;
  top: 80px;
  width: 480px;
  height: 480px;
  border: 1px dashed rgba(242, 82, 13, 0.45);
  border-radius: 50%;
  transform: rotateX(76deg);
}
.n3-ring span {
  position: absolute;
  top: 50%;
  left: -6px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--o);
  box-shadow: 0 0 18px 4px rgba(242, 82, 13, 0.75);
}

/* Scene: software (laptop) */
.n3-laptop {
  width: 280px;
  transform: rotateX(10deg);
  transform-style: preserve-3d;
}
.n3-laptop__screen {
  position: relative;
  display: grid;
  place-items: center;
  height: 172px;
  border: 8px solid #2a2a30;
  border-bottom-width: 10px;
  border-radius: 16px 16px 6px 6px;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(242, 82, 13, 0.35), transparent 60%),
    linear-gradient(160deg, #241712 0%, #100d0e 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 70px rgba(242, 82, 13, 0.35);
  font-size: 56px;
  color: var(--o3);
  text-shadow: 0 0 24px rgba(242, 82, 13, 0.8);
}
.n3-laptop__code {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.n3-laptop__code b {
  display: block;
  width: 70px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}
.n3-laptop__code b:nth-child(2) { width: 46px; background: rgba(242, 82, 13, 0.6); }
.n3-laptop__code b:nth-child(3) { width: 58px; }
.n3-laptop__base {
  position: relative;
  height: 16px;
  margin: 0 -22px;
  border-radius: 2px 2px 16px 16px;
  background: linear-gradient(180deg, #45454d 0%, #1d1d22 100%);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.55);
}
.n3-laptop__base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 70px;
  height: 6px;
  margin-left: -35px;
  border-radius: 0 0 8px 8px;
  background: #16161a;
}

/* Scene: web (browser windows) */
.n3-browser {
  width: 250px;
  height: 168px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(160deg, #1d1a20 0%, #121014 100%);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.n3-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}
.n3-browser__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
}
.n3-browser__bar i:nth-child(2) { background: #febc2e; }
.n3-browser__bar i:nth-child(3) { background: #28c840; }
.n3-browser__bar span {
  flex: 1;
  height: 10px;
  margin-left: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}
.n3-browser__body {
  position: relative;
  height: calc(100% - 26px);
  padding: 12px;
}
.n3-browser--wire .n3-browser__body,
.n3-browser--layout .n3-browser__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.n3-browser--wire b {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}
.n3-browser--layout .n3-browser__body { grid-template-rows: 1.3fr 1fr; }
.n3-hero-block {
  grid-column: 1 / -1;
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(242, 82, 13, 0.4), rgba(255, 255, 255, 0.06));
}
.n3-browser--layout b {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}
.n3-browser--page {
  border-color: rgba(242, 82, 13, 0.55);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(242, 82, 13, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.n3-line {
  display: block;
  width: 50%;
  height: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}
.n3-line--lg { width: 56%; height: 12px; background: rgba(255, 255, 255, 0.85); }
.n3-line--sm { width: 38%; }
.n3-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--o);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.n3-img {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 104px;
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(255, 176, 124, 0.55), rgba(242, 82, 13, 0.35));
  font-size: 24px;
  color: #fff;
}
.n3-cursor .n3-bob {
  font-size: 30px;
  color: #fff;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

/* Scene: app (phone) */
.n3-phone {
  position: relative;
  width: 140px;
  height: 278px;
  padding: 8px;
  border-radius: 30px;
  background: #232328;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(242, 82, 13, 0.3);
  transform: rotateX(6deg);
}
.n3-phone__notch {
  position: absolute;
  left: 50%;
  top: 14px;
  z-index: 1;
  width: 44px;
  height: 10px;
  margin-left: -22px;
  border-radius: 6px;
  background: #0b0b0d;
}
.n3-phone__screen {
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
  padding: 30px 10px 12px;
  overflow: hidden;
  border-radius: 23px;
  background: linear-gradient(170deg, #1c1412 0%, #0f0d0e 70%);
}
.n3-ui-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--o3);
}
.n3-ui-head b {
  width: 56px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.75);
}
.n3-ui-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(130deg, var(--o) 0%, #ff8a4c 100%);
}
.n3-ui-card b {
  width: 70%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
}
.n3-ui-card b + b { width: 45%; background: rgba(255, 255, 255, 0.55); }
.n3-ui-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 62px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}
.n3-ui-bars i,
.n3-bars i {
  flex: 1;
  height: var(--h);
  transform-origin: 50% 100%;
  background: linear-gradient(180deg, var(--o3) 0%, var(--o) 55%, #a83405 100%);
}
.n3-ui-bars i { border-radius: 4px 4px 2px 2px; }
.n3-ui-row {
  display: flex;
  gap: 6px;
}
.n3-ui-row b {
  flex: 1;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}
.n3-ui-btn {
  margin-top: auto;
  padding: 8px 0;
  border-radius: 999px;
  background: var(--o);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

/* Scene: data, AI and cloud (chip + data lines) */
.n3-chip {
  position: relative;
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  border-radius: 30px;
  background: linear-gradient(145deg, #ff9a5c 0%, var(--o) 50%, #a83405 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(242, 82, 13, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}
.n3-chip__pins {
  position: absolute;
  inset: -18px;
  border: 3px dotted rgba(255, 176, 124, 0.7);
  border-radius: 40px;
}
.n3-chip::after {
  content: "";
  position: absolute;
  inset: -36px;
  border: 1px solid rgba(242, 82, 13, 0.55);
  border-radius: 52px;
  opacity: 0;
}
.n3-chip__core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: #140f0e;
  box-shadow: inset 0 0 20px rgba(242, 82, 13, 0.45);
  font-size: 34px;
  color: var(--o3);
}
.n3-chip__core b {
  font-family: var(--heading-font-family, "Outfit", sans-serif);
  font-size: 16px;
  letter-spacing: 0.2em;
  color: #fff;
}
.n3-lines {
  display: block;
  width: 560px;
  height: 540px;
  overflow: visible;
}
.n3-lines path {
  fill: none;
  stroke: rgba(242, 82, 13, 0.6);
  stroke-width: 2;
  stroke-dasharray: 6 9;
}

/* Scene: SEO (search + results + bars) */
.n3-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 368px;
  height: 60px;
  padding: 0 8px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 18px;
  color: var(--o3);
}
.n3-search span {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.n3-search b {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--o);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.n3-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 304px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.45);
}
.n3-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.n3-result span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}
.n3-result b {
  display: block;
  width: 70%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}
.n3-result em {
  display: block;
  width: 90%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}
.n3-result.is-top {
  border: 1px solid rgba(242, 82, 13, 0.55);
  background: rgba(242, 82, 13, 0.16);
  box-shadow: 0 0 24px rgba(242, 82, 13, 0.25);
}
.n3-result.is-top i {
  font-size: 18px;
  color: var(--o3);
}
.n3-result.is-top b,
.n3-result.is-top em {
  width: auto;
  height: auto;
  background: none;
}
.n3-result.is-top b { font-size: 14px; font-weight: 700; color: #fff; }
.n3-result.is-top em { font-size: 11px; font-style: normal; color: var(--o3); }
.n3-bars {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: 180px;
  height: 130px;
}
.n3-bars i {
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 12px 24px rgba(242, 82, 13, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* Scene: digital marketing (funnel) */
.n3-funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 300px;
  transform-style: preserve-3d;
}
.n3-funnel__layer {
  display: grid;
  place-items: center;
  width: var(--w);
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 154, 92, 0.95) 0%, rgba(242, 82, 13, 0.95) 60%, rgba(168, 52, 5, 0.95) 100%);
  box-shadow: 0 16px 32px rgba(242, 82, 13, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -6px 12px rgba(0, 0, 0, 0.25);
  font-family: var(--heading-font-family, "Outfit", sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  transform: translateZ(calc(var(--i) * 26px));
}
.n3-funnel__layer:first-child {
  border: 1px solid rgba(255, 176, 124, 0.6);
  background: linear-gradient(180deg, rgba(255, 176, 124, 0.45) 0%, rgba(242, 82, 13, 0.35) 100%);
}

/* Scene: UI/UX (design artboard + palette) */
.n3-artboard {
  width: 280px;
  height: 196px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(160deg, #1d1a20 0%, #121014 100%);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(242, 82, 13, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.n3-artboard__body {
  display: flex;
  height: calc(100% - 26px);
}
.n3-artboard__tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 34px;
  padding-top: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.n3-artboard__tools i:first-child { color: var(--o3); }
.n3-artboard__canvas {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}
.n3-sel {
  position: relative;
  display: flex;
  height: 80px;
  padding: 6px;
  border: 1px dashed var(--o);
}
.n3-sel .n3-hero-block { flex: 1; }
.n3-sel::before,
.n3-sel::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--o);
  background: #fff;
}
.n3-sel::before { top: -5px; left: -5px; }
.n3-sel::after { right: -5px; bottom: -5px; }
.n3-artboard__row {
  display: flex;
  flex: 1;
  gap: 8px;
}
.n3-artboard__row b {
  flex: 1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}
.n3-palette {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.n3-palette i {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: var(--c);
}

/* Scene: branding (logo tile, swatches, business card) */
.n3-logo-tile {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 36px;
  background: linear-gradient(145deg, #ff9a5c 0%, var(--o) 50%, #a83405 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 70px rgba(242, 82, 13, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  font-size: 62px;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.n3-swatches {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.n3-type,
.n3-swatch {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 58px;
  height: 66px;
  padding-bottom: 6px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.n3-type {
  align-items: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  font-family: var(--heading-font-family, "Outfit", sans-serif);
  font-size: 26px;
  color: #131313;
}
.n3-swatch {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(var(--c) 0 62%, #f4f1ee 62%);
  color: #131313;
}
.n3-bizcard {
  position: relative;
  width: 168px;
  height: 100px;
  padding: 16px 16px 0 58px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--o);
  border-radius: 12px;
  background: linear-gradient(160deg, #1f1b1b 0%, #131112 100%);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.5);
}
.n3-bizcard__mark {
  position: absolute;
  top: 18px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--o);
  font-size: 15px;
  color: #fff;
}
.n3-bizcard .n3-line { width: 80%; }
.n3-bizcard .n3-line--lg { width: 92%; height: 9px; }

/* Scene: consulting (roadmap board + KPI donut) */
.n3-board {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 270px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
.n3-board__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.n3-board__title i { margin-right: 6px; color: var(--o3); }
.n3-board__track {
  position: relative;
  height: 46px;
  margin: 0 14px;
}
.n3-board__track::before,
.n3-board__fill {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  height: 3px;
  border-radius: 3px;
}
.n3-board__track::before { right: 0; background: rgba(255, 255, 255, 0.15); }
.n3-board__fill { width: 50%; background: linear-gradient(90deg, var(--o), var(--o3)); }
.n3-step {
  position: absolute;
  top: 0;
  left: var(--p);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}
.n3-step i {
  width: 19px;
  height: 19px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: #141113;
}
.n3-step.is-done i {
  border-color: var(--o3);
  background: var(--o);
  box-shadow: 0 0 14px rgba(242, 82, 13, 0.7);
}
.n3-step b {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.n3-board__rows {
  display: flex;
  gap: 8px;
}
.n3-board__rows b {
  flex: 1;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}
.n3-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(var(--o) 0 72%, rgba(255, 255, 255, 0.14) 72% 100%);
  box-shadow: 0 0 40px rgba(242, 82, 13, 0.4), 0 20px 40px rgba(0, 0, 0, 0.45);
}
.n3-donut::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #141113;
}
.n3-donut span {
  position: relative;
  font-family: var(--heading-font-family, "Outfit", sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

/* Continuous motion starts after the first visitor interaction (see home-slider.js). */
.nws-hero3d.is-live .nws-hero3d__grid { animation: nwsGrid 3.5s linear infinite; }
.nws-hero3d.is-live .nws-hero3d__orb { animation: nwsOrb var(--d) ease-in-out infinite alternate; }
.nws-hero3d.is-live .nws-hero3d__float { animation: nwsFloat 8s ease-in-out infinite; }
.nws-hero3d.is-live .nws-hero3d__tab.is-active .nws-hero3d__tab-bar i { animation: nwsFill var(--nws-interval) linear forwards; }
.nws-hero3d.is-live .n3-scene.is-active .n3-bob { animation: n3Bob 5.5s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -4); }
.nws-hero3d.is-live .n3-scene.is-active .n3-lines-wrap .n3-bob { animation: none; }
.nws-hero3d.is-live .n3-scene.is-active .n3-ring { animation: n3Ring 22s linear infinite; }
.nws-hero3d.is-live .n3-scene.is-active .n3-chip::after { animation: n3Pulse 2.6s ease-out infinite; }
.nws-hero3d.is-live .n3-scene.is-active .n3-lines path { animation: n3Dash 1.4s linear infinite; }
.nws-hero3d.is-ready .n3-scene.is-active .n3-bars i,
.nws-hero3d.is-ready .n3-scene.is-active .n3-ui-bars i { animation: n3Grow 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both; }

/* Off-screen: stop decorative animations to save CPU */
.nws-hero3d.is-offscreen .nws-hero3d__grid,
.nws-hero3d.is-offscreen .nws-hero3d__orb,
.nws-hero3d.is-offscreen .nws-hero3d__float,
.nws-hero3d.is-offscreen .n3-bob,
.nws-hero3d.is-offscreen .n3-ring,
.nws-hero3d.is-offscreen .n3-chip::after,
.nws-hero3d.is-offscreen .n3-lines path {
  animation-play-state: paused;
}

/* ---------- Keyframes ---------- */
@keyframes nwsGrid {
  from { transform: rotateX(68deg) translateY(0); }
  to { transform: rotateX(68deg) translateY(64px); }
}
@keyframes nwsOrb {
  from { transform: translateY(-22px); opacity: 0.35; }
  to { transform: translateY(22px); opacity: 1; }
}
@keyframes nwsWord {
  from { opacity: 0; transform: translateY(0.55em) rotateX(-75deg); }
  to { opacity: 1; transform: none; }
}
@keyframes nwsFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes nwsFloat {
  0%, 100% { transform: translateY(-8px) rotateY(-4deg) rotateX(2deg); }
  50% { transform: translateY(8px) rotateY(4deg) rotateX(-2deg); }
}
@keyframes n3SceneIn {
  from { transform: rotateY(38deg) translateZ(-180px); }
  to { transform: none; }
}
@keyframes n3SceneOut {
  from { transform: none; }
  to { transform: rotateY(-38deg) translateZ(-180px); }
}
@keyframes n3Fly {
  from { opacity: 0; transform: translateZ(-240px) scale(0.6); }
  to { opacity: 1; transform: none; }
}
@keyframes n3Bob {
  from { transform: translateY(-7px); }
  to { transform: translateY(7px); }
}
@keyframes n3Ring {
  from { transform: rotateX(76deg) rotateZ(0deg); }
  to { transform: rotateX(76deg) rotateZ(360deg); }
}
@keyframes n3Pulse {
  from { opacity: 0.8; transform: scale(0.85); }
  to { opacity: 0; transform: scale(1.25); }
}
@keyframes n3Dash {
  to { stroke-dashoffset: -30; }
}
@keyframes n3Grow {
  from { transform: scaleY(0.08); }
  to { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .nws-hero3d__visual { --k: 0.86; min-height: 500px; }
}
@media (max-width: 1099.98px) {
  .nws-hero3d__visual { --k: 0.76; min-height: 450px; }
}
@media (max-width: 991.98px) {
  .nws-hero3d { padding: 140px 0 56px; }
  .nws-hero3d__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .nws-hero3d__visual { --k: 0.82; min-height: 470px; }
  .nws-hero3d__tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }
}
@media (max-width: 575.98px) {
  .nws-hero3d { padding: 150px 0 40px; }
  .nws-hero3d__title { font-size: clamp(28px, 8.2vw, 36px); }
  .nws-hero3d__text { min-height: calc(4 * 1.7em); font-size: 16px; }
  .nws-hero3d__actions .theme-btn,
  .nws-hero3d__ghost {
    justify-content: center;
    width: 100%;
  }
  .nws-hero3d__visual { --k: 0.58; min-height: 330px; }
  .n3-card__label { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .nws-hero3d *,
  .nws-hero3d *::after {
    animation: none !important;
  }
  .nws-hero3d__tab.is-active .nws-hero3d__tab-bar i { transform: scaleX(1); }
  .nws-hero3d__slide,
  .nws-hero3d__stage {
    transition-duration: 0.01s !important;
  }
}
