/* Homepage visual gallery. Theme tokens also apply to native detail dialogs.
   All artwork is original inline SVG; it makes no external requests. */
.visual-cards {
  --vp-ink: #f5f6fa;
  --vp-muted: #b9c3cf;
  --vp-rule: #3e4855;
  --vp-dialog: #161b24;
  --vp-wait: #152737;
  --vp-inbox: #262237;
  --vp-calendar: #31212b;
  --vp-owner: #17302f;
  --art-disc: #28465c;
  --art-clock: #e4edf2;
  --art-line: #6b929c;
  --art-ink: #1a3645;
  --art-reverse: #fff;
  --art-shadow: #000;
  margin-top: 46px;
  scroll-margin-top: 110px;
  color: var(--vp-ink);
}
html[data-theme="light"] .visual-cards {
  --vp-ink: #182631;
  --vp-muted: #52606d;
  --vp-rule: #bfc9d0;
  --vp-dialog: #fffdf9;
  --vp-wait: #e3eef5;
  --vp-inbox: #ebe7f3;
  --vp-calendar: #f5e7e6;
  --vp-owner: #dfeee8;
  --art-disc: #ccdde9;
  --art-clock: #fafdff;
  --art-line: #8aabb4;
}
.vp-gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 3px 0 18px;
  overscroll-behavior-x: contain;
}
.vp-gallery::-webkit-scrollbar { display: none; }
.vp-card {
  flex: 0 0 calc((100% - 44px) / 3.12);
  min-width: 0;
  height: 520px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  background: var(--vp-wait);
  transition: transform .2s ease;
}
.vp-card-2 { background: var(--vp-inbox); }
.vp-card-3 { background: var(--vp-calendar); }
.vp-card-4 { background: var(--vp-owner); }
.vp-card-heading { position: relative; z-index: 1; padding: 30px 28px 0; }
.vp-eyebrow {
  display: block;
  color: var(--vp-muted);
  font: 600 10px/1.6 var(--fm);
  letter-spacing: .07em;
  margin-bottom: 10px;
}
.vp-card h3 {
  color: var(--vp-ink);
  font: 650 clamp(27px, 2.7vw, 34px)/1.08 var(--fd);
  letter-spacing: -.035em;
  margin: 0;
}
.vp-art { position: absolute; inset: 145px -8px 5px; pointer-events: none; }
.vp-art svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max(100%, 330px);
  height: auto;
  aspect-ratio: 400 / 390;
  overflow: visible;
  font-family: var(--fd);
}
.vp-open {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--vp-ink);
}
.vp-open > span[aria-hidden] {
  position: absolute;
  inset-inline-end: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--vp-ink);
  color: var(--vp-dialog);
  font: 400 27px/1 var(--fd);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--vp-dialog) 18%, transparent);
  transition: transform .2s;
}
.vp-open:hover > span[aria-hidden] { transform: scale(1.1); }
.vp-open:focus-visible { outline: 3px solid var(--cyan); outline-offset: -5px; }
.vp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.vp-gallery-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; }
.vp-gallery-footer > span { color: var(--vp-muted); font-size: 12px; line-height: 1.6; }
.vp-navigation { display: flex; gap: 10px; flex-shrink: 0; }
.vp-navigation button, .vp-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--vp-rule);
  background: var(--vp-dialog);
  color: var(--vp-ink);
  font: 24px/1 var(--fd);
  cursor: pointer;
}
.vp-navigation button:disabled { opacity: .3; cursor: default; }
.vp-navigation button:focus-visible, .vp-close:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.vp-detail {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(700px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 68px 48px 44px;
  border: 1px solid var(--vp-rule);
  border-radius: 26px;
  background: var(--vp-dialog);
  color: var(--vp-ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.vp-detail::backdrop { background: rgb(0 0 0 / .55); backdrop-filter: blur(8px); }
.vp-close { position: absolute; inset-inline-end: 18px; top: 18px; }
.vp-detail h3 { color: var(--vp-ink); font: 650 clamp(30px, 4vw, 45px)/1.12 var(--fd); letter-spacing: -.035em; margin: 14px 0 24px; }
.vp-detail p { color: var(--vp-ink); font-size: 18px; line-height: 1.8; margin: 0; }
.vp-detail .vp-detail-note { color: var(--vp-muted); font-size: 12px; margin-top: 28px; }
[dir="rtl"] .vp-eyebrow { letter-spacing: 0; font-size: 12px; }
[dir="rtl"] .vp-card h3, [dir="rtl"] .vp-detail h3 { line-height: 1.5; letter-spacing: 0; }
/* The illustrations contain fixed product labels. Keep their geometry stable
   under RTL while localizing their text; surrounding controls mirror normally. */
.vp-art { direction: ltr; }
@media (max-width: 1050px) {
  .vp-card { flex-basis: calc((100% - 22px) / 2.12); height: 500px; }
  .vp-card h3 { font-size: clamp(25px, 8vw, 31px); }
}
@media (max-width: 600px) {
  .visual-cards { margin-top: 32px; }
  .vp-gallery { gap: 16px; }
  .vp-card { flex-basis: 89%; height: 480px; border-radius: 22px; }
  .vp-card-heading { padding: 27px 24px 0; }
  .vp-card h3 { font-size: clamp(25px, 8vw, 31px); }
  .vp-art { top: 140px; }
  .vp-detail { padding: 68px 25px 30px; border-radius: 22px; }
  .vp-detail p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .vp-card, .vp-open > span[aria-hidden] { transition: none; }
}

/* Services keeps all four offerings visible in a two-column grid. The common
   card and native dialog language stays the same as the homepage gallery. */
.vp-services .vp-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  overflow: visible;
  scroll-snap-type: none;
  padding: 0;
}
.vp-services .vp-card { height: 585px; }
.vp-services .vp-card-heading { padding: 32px 32px 0; }
.vp-services .vp-card h3 { font-size: clamp(26px, 2.7vw, 34px); line-height: 1.15; max-width: 440px; }
.vp-service-summary { font-size: 15px; line-height: 1.65; color: var(--vp-muted); margin: 12px 0 0; max-width: 410px; }
.vp-services .vp-art { inset: 200px 0 10px; }
.vp-services .vp-art svg { width: min(100%, 400px); }
.vp-services .vp-detail .back-label { margin: 25px 0 8px; font-size: 12px; letter-spacing: .08em; }
.vp-services .vp-detail .back-label.prob { color: var(--vp-muted); }
.vp-services .vp-detail .back-label.sol { color: var(--cyan); }
.vp-services .vp-detail .back-label.res { color: var(--pink); }
.vp-services .vp-detail .back-text { font-size: 16px; color: var(--vp-ink); line-height: 1.8; }
.vp-service-cta { display: inline-block; color: var(--cyan); border-bottom: 1px solid currentColor; padding-block: 8px; margin-top: 24px; font-size: 15px; font-weight: 600; }
.vp-service-cta:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
[dir="rtl"] .vp-services .vp-card h3 { line-height: 1.5; }
[dir="rtl"] .vp-service-summary { font-size: 16px; line-height: 1.8; }
[dir="rtl"] .vp-services .vp-detail .back-label { letter-spacing: 0; }
@media (max-width: 960px) {
  .vp-services .vp-card { height: 590px; }
  .vp-services .vp-card-heading { padding: 28px 26px 0; }
  .vp-services .vp-card h3 { font-size: 27px; }
  .vp-services .vp-art { top: 240px; }
  .vp-services .vp-art svg { width: max(100%, 325px); max-width: 390px; }
}
@media (max-width: 680px) {
  .vp-services .vp-gallery { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .vp-services .vp-card { height: 570px; }
  .vp-services .vp-card h3 { font-size: 28px; }
  .vp-services .vp-art { top: 210px; }
  .vp-services .vp-art svg { width: max(100%, 325px); max-width: 380px; }
}

/* Sector cards are destinations, so their main action remains a normal link.
   The separate + button reveals the existing example without navigating away. */
.vp-industries .vp-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}
.vp-industries .vp-card { height: 480px; scroll-margin-top: 110px; }
.vp-industries .vp-card-heading { padding: 30px 28px 0; }
.vp-industries .vp-card h3 { font-size: 29px; line-height: 1.15; }
.vp-industries .vp-art { inset: 105px 0 55px; }
.vp-industries .vp-art svg { width: min(100%, 320px); }
.vp-industry-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 24px 28px;
  padding-inline-end: 72px;
  color: var(--vp-ink);
  font-size: 13px;
  font-weight: 600;
  border-radius: inherit;
}
.vp-industry-link:focus-visible { outline: 3px solid var(--cyan); outline-offset: -5px; }
.vp-industry-info {
  position: absolute;
  z-index: 3;
  inset-inline-end: 18px;
  bottom: 17px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--vp-ink);
  color: var(--vp-dialog);
  font: 400 27px/1 var(--fd);
  cursor: pointer;
}
.vp-industry-info:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.vp-industry-uses { color: var(--vp-ink); margin: 24px 0 0; padding-inline-start: 22px; font-size: 16px; line-height: 1.8; }
.vp-industry-uses li + li { margin-top: 12px; }
[dir="rtl"] .vp-industries .vp-card h3 { line-height: 1.5; }
/* The four principles stay quieter than the illustrated sector choices. */
.industry-principles {
  scroll-margin-top: 110px;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}
html .industry-principles .feat-card, html .industry-principles .feat-card.fc-lead {
  display: block;
  grid-column: auto;
  padding: 28px;
  border: 1px solid var(--border) !important;
  border-radius: 24px !important;
  background: var(--card) !important;
  clip-path: none !important;
  box-shadow: none !important;
  transform: none !important;
}
.industry-principles .feat-card .feat-icon { display: block; width: 28px; height: 28px; margin-bottom: 18px; color: var(--cyan); }
.industry-principles .feat-title { font-size: 21px; line-height: 1.4; margin-bottom: 10px; }
.industry-principles .feat-body { font-size: 15px; line-height: 1.8; }
@media (max-width: 1050px) {
  .vp-industries .vp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vp-industries .vp-art svg { width: min(100%, 345px); }
}
@media (max-width: 680px) {
  .vp-industries .vp-gallery, .industry-principles { grid-template-columns: minmax(0, 1fr) !important; }
  .vp-industries .vp-card { height: 470px; }
  .vp-industries .vp-art svg { width: max(100%, 300px); max-width: 335px; }
  .vp-industries .vp-card h3 { font-size: 28px; }
  .industry-principles .feat-card { padding: 24px; }
}
