/* CP335: richer world-network depth and restrained 3D card interactions. The Hero is deliberately excluded. */
html body.pg-visual-system main#main > .pg-fx-why-posguard {
  display: grid !important;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
  align-items: center !important;
  gap: clamp(24px, 4vw, 64px) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 48px max(4%, calc((100vw - 1360px) / 2)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(ellipse at 76% 48%, rgba(255, 22, 60, .075), transparent 38%),
    radial-gradient(ellipse at 12% 30%, rgba(16, 156, 255, .055), transparent 32%),
    #020811 !important;
  box-shadow: none !important;
  perspective: 1400px;
}

html body.pg-visual-system .pg-fx-why-copy { min-width: 0; transform-style: preserve-3d; }
html body.pg-visual-system .pg-fx-why-copy h2 { font-size: clamp(30px, 3.2vw, 46px); }
html body.pg-visual-system .pg-fx-why-list { gap: clamp(12px, 1.25vw, 18px); }
html body.pg-visual-system .pg-fx-why-list li { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.4; }
html body.pg-visual-system .pg-fx-why-check { box-shadow: 0 5px 14px rgba(0, 0, 0, .26); }

html body.pg-visual-system .pg-fx-network-map {
  position: relative;
  display: grid;
  align-self: stretch;
  align-content: center;
  min-width: 0;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  perspective: 1200px;
}

html body.pg-visual-system .pg-fx-network-map-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  overflow: visible;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(1deg);
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .28));
}

.pg-fx-network-map-svg .globe-grid { fill: none; }
.pg-fx-network-map-svg .land { stroke-linejoin: round; }
.pg-fx-network-map-svg .land-texture { pointer-events: none; }
.pg-fx-network-map-svg .map-floor { fill: none; }
.pg-fx-network-map-svg .route-glow {
  fill: none;
  stroke: #ff163c;
  stroke-width: 8;
  stroke-linecap: round;
  opacity: .38;
  filter: url(#softRedGlow);
}
.pg-fx-network-map-svg .route-flow {
  fill: none;
  stroke: url(#routeRed);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-dasharray: 5 10;
  animation: pg335-route-flow 8s linear infinite;
  filter: url(#redGlow);
}
.pg-fx-network-map-svg .route-flow:nth-of-type(2n) { animation-duration: 11s; animation-direction: reverse; }
.pg-fx-network-map-svg .route-blue {
  fill: none;
  stroke: #109CFF;
  stroke-width: 1.7;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
  opacity: .76;
  animation: pg335-route-flow 12s linear infinite;
}
.pg-fx-network-map-svg .map-node,
.pg-fx-network-map-svg .hub-core { fill: #ff163c; filter: url(#redGlow); }
.pg-fx-network-map-svg .map-node-blue { fill: #109CFF; filter: drop-shadow(0 0 5px rgba(16, 156, 255, .75)); }
.pg-fx-network-map-svg .map-node-ring {
  fill: none;
  stroke: #ff163c;
  stroke-width: 1.5;
  opacity: .78;
  transform-box: fill-box;
  transform-origin: center;
  animation: pg335-node-pulse 3.2s ease-out infinite;
}
.pg-fx-network-map-svg .hub-halo { fill: url(#hubAura); }
.pg-fx-network-map-svg .hub-ring { fill: none; stroke: #ff163c; filter: url(#redGlow); }
.pg-fx-network-map-svg .hub-ring-a { stroke-width: 1.8; opacity: .95; }
.pg-fx-network-map-svg .hub-ring-b { stroke-width: 1; opacity: .55; }
.pg-fx-network-map-svg .hub-center { fill: #F3F6F8; filter: url(#redGlow); }
.pg-fx-network-map-svg .map-label rect { fill: #071522; fill-opacity: .94; stroke: #109CFF; stroke-opacity: .52; stroke-width: 1; }
.pg-fx-network-map-svg .map-label text { fill: #C3D2E3; font: 700 13px Inter, Arial, sans-serif; letter-spacing: .08em; }
.pg-fx-network-map-svg .map-label path { fill: none; stroke: #109CFF; stroke-width: 1.5; opacity: .85; }
.pg-fx-network-map-svg .map-label-hub rect { fill: #0A1119; stroke: #ff163c; stroke-opacity: .9; }
.pg-fx-network-map-svg .map-label .map-label-main { fill: #F3F6F8; font-size: 12px; }
.pg-fx-network-map-svg .map-label .map-label-sub { fill: #C3D2E3; font-size: 9px; font-weight: 600; letter-spacing: .06em; }
html body.pg-visual-system .pg-fx-network-map figcaption { padding: 10px 0 0; color: #C3D2E3; font-size: .8rem; }

@keyframes pg335-route-flow { to { stroke-dashoffset: -120; } }
@keyframes pg335-node-pulse { 0% { opacity: .75; transform: scale(.72); } 75%, 100% { opacity: 0; transform: scale(1.8); } }

/* Desktop-only 3D lift on existing content cards. No duplicate or layout-changing markup. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html body.pg-visual-system main#main :is(
    .pg-home-compare-card, .pg-bento-card, .pgd-text-category, .pgd-image-card,
    .pgd-product-card, .sector-pill-card, .cat-card, .pg-stress-card,
    .pg-catalogue-card, .pg-model-accessory-card, .pg-industry-card,
    .pg-guide-card, .pg-public-category-card, .pg-public-contact-card,
    .pg-public-value-card, .pg-public-link-card, .pg-interactive-card
  ):not(.pgd-hero-section *) {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform .32s cubic-bezier(.2, .72, .2, 1), box-shadow .32s ease, border-color .32s ease;
  }

  html body.pg-visual-system main#main :is(
    .pg-home-compare-card, .pg-bento-card, .pgd-text-category, .pgd-image-card,
    .pgd-product-card, .sector-pill-card, .cat-card, .pg-stress-card,
    .pg-catalogue-card, .pg-model-accessory-card, .pg-industry-card,
    .pg-guide-card, .pg-public-category-card, .pg-public-contact-card,
    .pg-public-value-card, .pg-public-link-card, .pg-interactive-card
  ):not(.pgd-hero-section *):is(:hover, :focus-within) {
    transform: perspective(1100px) translate3d(0, -4px, 8px) rotateX(1deg) rotateY(.45deg);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .27), 0 0 22px rgba(255, 22, 60, .10), 0 0 18px rgba(16, 156, 255, .07);
  }

  html body.pg-visual-system main#main :is(.pg-bento-card, .pg-stress-card, .pg-home-compare-card) > :is(.pg-bento-icon, .pg-stress-icon, .pg-home-compare-icon) {
    transform: translateZ(12px);
  }

  html body.pg-visual-system .pg-fx-product-stage { perspective: 1100px; transform-style: preserve-3d; }
  html body.pg-visual-system .pg-fx-product-stage img { transform: translateZ(0); }
  html body.pg-visual-system .pg-fx-product-stage:is(:hover, :focus-within) img { transform: translateZ(14px); }
}

@media (max-width: 768px) {
  html body.pg-visual-system main#main > .pg-fx-why-posguard {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
    padding: 36px 20px !important;
  }
  html body.pg-visual-system .pg-fx-network-map {
    order: 2;
    width: 100vw !important;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw) !important;
  }
  html body.pg-visual-system .pg-fx-network-map-svg {
    width: 100%;
    max-width: 100%;
  }
  html body.pg-visual-system .pg-fx-network-map figcaption { font-size: .76rem; }
  .pg-fx-network-map-svg .map-label text { font-size: 24px; letter-spacing: .04em; }
  .pg-fx-network-map-svg .map-label .map-label-main { font-size: 20px; }
  .pg-fx-network-map-svg .map-label .map-label-sub { font-size: 15px; }
  .pg-fx-network-map-svg .map-label-apac text { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-fx-network-map-svg .route-flow,
  .pg-fx-network-map-svg .route-blue,
  .pg-fx-network-map-svg .map-node-ring {
    animation: none !important;
  }
  html body.pg-visual-system .pg-fx-network-map-svg { transform: none; }
}
