/* Vialing homepage campus hero: isometric campus under the hero text.
   Loaded on the front page only (vialing-hero.php). Prefix: vc-
   GENERATED by prototypes/campus-iso/build_theme_files.py — edit the prototype. */
.vc-hero { background: linear-gradient(180deg, #FFFFFF 0%, #F7F2FC 30%, #EADFF5 62%, #EADFF5 80%, #FFFFFF 100%); }
.vc-hero .vc-stage, .vc-hero .vc-stage * { box-sizing: border-box; }
/* ── Vialing campus hero (prototype) ─────────────────────────────────────
   Isometric campus drawn as SVG by the script below. Each building maps to
   a SkyCMS module: hover (or tap) a building to see its popover; when idle
   the popovers cycle on their own. Prefix: vc- */
:root {
  --vc-purple: #3A1D4D;
  --vc-purple-2: #53225B;
  --vc-lilac: #F3EEF8;
  --vc-gold: #E3B034;
  --vc-ink: #1F2937;
  --vc-muted: #6B7280;
  --vc-green: #2E9D5B;
}
/* Scene */
.vc-stage { position: relative; overflow: hidden; margin-top: 8px; }
.vc-scene { position: relative; width: min(1360px, 104vw); left: 50%; transform: translateX(-50%); aspect-ratio: 1600 / 1000; margin-bottom: -9%; }
.vc-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 92%); mask-image: linear-gradient(180deg, #000 72%, transparent 92%); }
.vc-bldg { cursor: pointer; transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s ease; }
.vc-bldg.is-active { transform: translateY(-8px); filter: drop-shadow(0 14px 14px rgba(58, 29, 77, .25)); }
.vc-bldg:focus { outline: none; }
.vc-bldg:focus-visible .vc-top { stroke: var(--vc-gold); stroke-width: 3; }
.vc-hot circle.ring { transform-box: fill-box; transform-origin: center; animation: vc-pulse 2.2s ease-out infinite; }
.vc-hot circle.ring.r2 { animation-delay: 1.1s; }
@keyframes vc-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
/* Popovers */
.vc-pop {
  position: absolute; z-index: 5; width: 260px; text-align: left;
  transform: translate(-50%, calc(-100% - 26px)); pointer-events: none; visibility: hidden;
}
.vc-pop__card {
  position: relative; opacity: 0; transform-origin: 50% 100%;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 18px 40px rgba(58, 29, 77, .18), 0 0 0 1px rgba(58, 29, 77, .06);
}
.vc-pop.is-left { transform: translate(-14%, calc(-100% - 26px)); }
.vc-pop.is-right { transform: translate(-86%, calc(-100% - 26px)); }
.vc-pop__card::after {
  content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: #FFFFFF;
  transform: translateX(-50%) rotate(45deg); border-radius: 3px; box-shadow: 3px 3px 6px rgba(58, 29, 77, .06);
}
.vc-pop.is-left .vc-pop__card::after { left: 14%; }
.vc-pop.is-right .vc-pop__card::after { left: 86%; }
.vc-pop.is-left .vc-pop__card { transform-origin: 14% 100%; }
.vc-pop.is-right .vc-pop__card { transform-origin: 86% 100%; }
/* Buildings near the back of the campus: open below the hotspot so the card never leaves the stage */
.vc-pop.is-below { transform: translate(-50%, 26px); }
.vc-pop.is-below.is-left { transform: translate(-14%, 26px); }
.vc-pop.is-below.is-right { transform: translate(-86%, 26px); }
.vc-pop.is-below .vc-pop__card { transform-origin: 50% 0; }
.vc-pop.is-below .vc-pop__card::after { bottom: auto; top: -7px; box-shadow: -3px -3px 6px rgba(58, 29, 77, .06); }
.vc-pop__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vc-purple); margin-bottom: 8px; }
.vc-pop__eyebrow i { width: 24px; height: 24px; border-radius: 8px; background: var(--vc-lilac); color: var(--vc-purple-2); display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.vc-pop__eyebrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vc-pop__title { font-size: 13px; color: var(--vc-muted); margin-bottom: 2px; }
.vc-pop__big { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.01em; color: var(--vc-ink); display: flex; align-items: baseline; gap: 8px; }
.vc-pop__delta { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700; color: var(--vc-green); }
.vc-pop__bar { height: 8px; border-radius: 99px; background: #EEE7F6; margin: 10px 0 4px; overflow: hidden; }
.vc-pop__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--vc-purple-2), #8B5FA8); }
.vc-pop__row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 7px 0; border-top: 1px solid #F1ECF6; margin-top: 6px; }
.vc-pop__row b { font-weight: 700; color: var(--vc-ink); }
.vc-pop__row .ok { color: var(--vc-green); font-weight: 700; }
.vc-pop__spark { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: 10px; }
.vc-pop__spark span { flex: 1; border-radius: 4px 4px 2px 2px; background: #DCCCEB; }
.vc-pop__spark span:last-child { background: var(--vc-purple-2); }
/* Chat threads */
.vc-chat { position: absolute; z-index: 4; display: flex; flex-direction: column; gap: 6px; width: 250px; pointer-events: none; }
.vc-chat--left { left: 4%; top: 2%; align-items: flex-start; }
.vc-chat--right { right: 4%; top: 2%; align-items: flex-end; }
.vc-bubble { font-size: 13px; line-height: 1.35; padding: 9px 13px; border-radius: 14px; max-width: 240px; opacity: 0; transform-origin: bottom center; text-align: left; }
.vc-bubble.q { background: var(--vc-purple-2); color: #FFFFFF; border-bottom-left-radius: 4px; }
.vc-bubble.a { background: #FFFFFF; color: var(--vc-ink); border-bottom-right-radius: 4px; align-self: flex-end; box-shadow: 0 6px 16px rgba(58, 29, 77, .1); }
.vc-bubble.done { background: var(--vc-ink); color: #FFFFFF; border-radius: 999px; align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12px; }
.vc-bubble.done::before { content: '✓'; width: 18px; height: 18px; border-radius: 50%; background: var(--vc-gold); color: var(--vc-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.vc-chat { transition: opacity .3s ease; }
.vc-chat.is-muted { opacity: 0; transition: none; }
.vc-chat__who { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8A7A99; opacity: 0; }
.vc-hint { position: absolute; z-index: 3; left: 50%; top: 1%; transform: translateX(-50%); font-size: 13px; color: #6B5A7B; background: rgba(255, 255, 255, .7); padding: 8px 14px; border-radius: 999px; }
@media (max-width: 1023px) { .vc-chat { display: none; } }
@media (max-width: 767px) {
  .vc-scene { width: 150vw; }
  .vc-hint { display: none; }
  .vc-pop { width: 210px; }
  .vc-pop__card { padding: 12px; font-size: 12px; }
  .vc-pop__big { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .vc-hot circle.ring { animation: none; opacity: 0; }
  .vc-bldg { transition: none; }
}
