/*! NBEX · visual-v2 · Cloud Visual integration. Scoped additions, loaded after styles.css.
 *  Remove this file (and visual-v2.js) to return to the previous look; only the hero <picture> lives in the HTML. */

/* ---------- shared ---------- */
.vz-media { position: relative; margin: 0; overflow: hidden; background: #0b0d10; }
.vz-media img, .vz-band img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vz-foot-ai {
  grid-column: 1 / -1; max-width: 820px;
  margin: 6px 0 0; padding-left: 12px; border-left: 2px solid rgba(215, 180, 91, 0.45);
  color: rgba(169, 173, 173, 0.95); font-size: 12.5px; line-height: 1.6;
}
.vz-note {
  margin-top: 16px; margin-bottom: 0;
  color: rgba(169, 173, 173, 0.92); font-size: 12px; line-height: 1.55; letter-spacing: 0.01em;
}

/* ---------- 1 · hero ---------- */
.hero-media img { opacity: 0.92; object-position: 64% 46%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.9) 0%, rgba(7, 8, 11, 0.66) 34%, rgba(7, 8, 11, 0.22) 68%, rgba(7, 8, 11, 0.4) 100%),
    linear-gradient(180deg, rgba(7, 8, 11, 0.5) 0%, rgba(7, 8, 11, 0) 22%, rgba(7, 8, 11, 0) 70%, rgba(7, 8, 11, 0.88) 100%);
}
.vz-hero-note {
  margin: 14px 0 0; max-width: 540px;
  color: rgba(245, 241, 232, 0.62); font-size: 11.5px; line-height: 1.5;
}

/* ---------- 2 · what we do ---------- */
.service-card.vz-has-media { min-height: 0; }
.service-card.vz-has-media::before {
  position: absolute; left: 34px; top: 20px; z-index: 4; margin: 0;
  color: rgba(242, 214, 128, 0.95); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.service-card.vz-has-media::after { display: none; }
.vz-svc { margin: -38px -34px 26px; aspect-ratio: 3 / 2; }
.vz-svc::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.55) 0%, rgba(7, 8, 11, 0) 34%, rgba(7, 8, 11, 0) 56%, rgba(17, 20, 25, 0.94) 100%);
}

/* ---------- 3 · portfolio ---------- */
.portfolio-cockpit > div { min-height: 0; aspect-ratio: 4 / 5; }
.portfolio-cockpit img { object-position: 50% 38%; }
section .portfolio-cockpit div.vz-t-au strong { color: var(--gold-2); }
section .portfolio-cockpit div.vz-t-ag strong { color: var(--silver); }
section .portfolio-cockpit div.vz-t-cu strong { color: #e0956a; }

/* ---------- 4 · process ---------- */
.process { position: relative; overflow: hidden; isolation: isolate; }
.process::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/visual/process-geolines.svg") center / cover no-repeat; opacity: 0.3;
}

/* ---------- 5 · advisory (first two steps become feature cards) ---------- */
#advisory .adv-grid.vz-adv-feature { grid-template-columns: repeat(12, minmax(0, 1fr)); }
#advisory .adv-grid.vz-adv-feature > .adv-card { grid-column: span 3; }
#advisory .adv-grid.vz-adv-feature > .adv-card.vz-has-media {
  grid-column: span 6; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); padding: 0; overflow: hidden;
}
.vz-adv { grid-column: 1; grid-row: 1; align-self: stretch; min-height: 100%; }
.vz-adv img { position: absolute; inset: 0; }
.vz-adv::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 8, 11, 0) 60%, rgba(17, 20, 25, 0.92) 100%);
}
.vz-body { grid-column: 2; grid-row: 1; padding: 30px 28px 32px 22px; }

/* ---------- 6 · critical minerals band ---------- */
.vz-band {
  position: relative; margin: 34px 0 0; overflow: hidden; aspect-ratio: 1440 / 400;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #0b0d10;
}
.vz-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 8, 11, 0.55), rgba(7, 8, 11, 0) 28%, rgba(7, 8, 11, 0) 72%, rgba(7, 8, 11, 0.55)),
              linear-gradient(180deg, rgba(7, 8, 11, 0) 60%, rgba(7, 8, 11, 0.7) 100%);
}
.vz-note-band { margin-bottom: 26px; }

/* ---------- 7 · market band (replaces the previous picture; the data chips stay HTML) ---------- */
.market-visual.vz-market-band { min-height: 0; aspect-ratio: 1440 / 400; }
.market-visual.vz-market-band img { object-position: 50% 50%; }

/* ---------- responsive ---------- */
@media (min-width: 561px) and (max-width: 1080px) {
  .vz-svc { aspect-ratio: 16 / 6.5; }
}
@media (min-width: 601px) and (max-width: 1080px) {
  .portfolio-cockpit > div:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
  .portfolio-cockpit > div:nth-child(3) img { object-position: 50% 45%; }
}
@media (max-width: 1000px) {
  #advisory .adv-grid.vz-adv-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #advisory .adv-grid.vz-adv-feature > .adv-card { grid-column: span 1; }
  #advisory .adv-grid.vz-adv-feature > .adv-card.vz-has-media { grid-column: span 2; }
}
@media (max-width: 768px) {
  .hero-media img { object-position: 50% 38%; opacity: 0.9; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(7, 8, 11, 0.5) 0%, rgba(7, 8, 11, 0.7) 38%, rgba(7, 8, 11, 0.9) 100%);
  }
  .vz-band { aspect-ratio: 16 / 8; }
  .market-visual.vz-market-band { aspect-ratio: auto; min-height: 430px; }
  .market-visual.vz-market-band img { object-position: 28% 50%; }
  .portfolio-cockpit > div { aspect-ratio: 4 / 4.6; }
  .process::before { opacity: 0.2; background-position: 60% center; }
}
@media (max-width: 640px) {
  #advisory .adv-grid.vz-adv-feature { grid-template-columns: 1fr; }
  #advisory .adv-grid.vz-adv-feature > .adv-card,
  #advisory .adv-grid.vz-adv-feature > .adv-card.vz-has-media { grid-column: auto; }
  #advisory .adv-grid.vz-adv-feature > .adv-card.vz-has-media { grid-template-columns: 1fr; }
  .vz-adv { grid-row: 1; aspect-ratio: 3 / 2; min-height: 0; }
  .vz-adv img { position: static; }
  .vz-adv::after { background: linear-gradient(180deg, rgba(7, 8, 11, 0) 60%, rgba(17, 20, 25, 0.9) 100%); }
  .vz-body { grid-column: 1; grid-row: 2; padding: 22px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img, .portfolio-cockpit img { animation: none !important; transition: none !important; transform: none !important; }
}
