/* Home: Mission, Vision and "Our Core Values are QUANTUM" (design C2, chosen 2026-11-20).
   Markup: index.php (#ts-features). Behaviour: js/qs2-quantum-values.js.
   Brand pairing: blue for letters/headings, the site's greens for the active state. */

.qs2-qv {
  --qv-ink: #0f172a;
  --qv-text: #1f2937;
  --qv-line: #dbe3f3;
  --qv-blue: #1925cc;
  --qv-green: #0b7a3b;        /* product-page button green: white text passes contrast */
  --qv-green-logo: #1d9b38;   /* the logo's "S2" green: accents only */
  --qv-green-on-navy: #5fd17a;
  --qv-navy: #0f1e5c;
  position: relative;
  z-index: 2;
  padding: 72px 0 80px;
  background: #fff;
  color: var(--qv-ink);
}

.qs2-qv p { font-family: "Open Sans", sans-serif; }
.qs2-qv h2, .qs2-qv h3, .qs2-qv button,
.qs2-qv .qs2-qv__eyebrow, .qs2-qv .qs2-qv__pos,
.qs2-qv .qs2-qv__panel-title { font-family: var(--qs2-font, "Poppins", sans-serif); }

/* Top: heading left, mission and vision right */
.qs2-qv__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: end;
}
.qs2-qv__eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #1566c0;
}
.qs2-qv__title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--qv-ink);
  text-transform: none;
  text-wrap: balance;
}
.qs2-qv__statements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-top: 18px;
  border-top: 3px solid var(--qv-green-logo);
}
.qs2-qv__label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--qv-green);
  text-transform: none;
  letter-spacing: 0;
}
.qs2-qv__text {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--qv-ink);
}

/* Values: list left, navy panel right */
.qs2-qv__values {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: stretch;
}
.qs2-qv__values-title {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 800;
  color: var(--qv-ink);
  text-transform: none;
}
.qs2-qv__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--qv-line);
}
.qs2-qv__item {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 52px;
  padding: 6px 14px;
  border: 0;
  border-bottom: 1px solid var(--qv-line);
  background: transparent;
  color: var(--qv-ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 450ms ease, color 450ms ease;
}
.qs2-qv__item:hover { background: #eef3fb; }
.qs2-qv__item.is-active,
.qs2-qv__item.is-active:hover {
  background: var(--qv-green);
  color: #fff;
}
.qs2-qv__item:focus-visible {
  outline: 3px solid var(--qs2-focus, #1e87f0);
  outline-offset: -3px;
}
.qs2-qv__letter {
  flex: 0 0 28px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  color: var(--qv-blue);
  transition: color 450ms ease;
}
.qs2-qv__item.is-active .qs2-qv__letter { color: #fff; }
.qs2-qv__name {
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.qs2-qv__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: 56px;
  border-radius: 4px;
  background: var(--qv-navy);
  color: #fff;
  overflow: hidden;
}
.qs2-qv__panel { position: relative; z-index: 1; }
.qs2-qv__panel[hidden] { display: none; }
.qs2-qv__panel.is-entering { animation: qs2-qv-panel-in 450ms cubic-bezier(.22, 1, .36, 1) both; }
.qs2-qv__ghost {
  position: absolute;
  right: -66px;
  bottom: -150px;
  z-index: -1;
  font-family: var(--qs2-font, "Poppins", sans-serif);
  font-size: 360px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.qs2-qv__pos {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--qv-green-on-navy);
}
.qs2-qv__panel-title {
  margin: 0 0 18px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
}
.qs2-qv__panel-body {
  margin: 0;
  max-width: 30rem;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  color: #dbe5ff;
}
.qs2-qv__controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
}
.qs2-qv__progress {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.qs2-qv__progress-bar {
  display: block;
  height: 100%;
  background: var(--qv-green-logo);
  transition: width 450ms ease;
}
.qs2-qv__toggle {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.qs2-qv__toggle[hidden] { display: none; }
.qs2-qv__toggle:hover { background: rgba(255, 255, 255, 0.1); }
.qs2-qv__toggle:focus-visible {
  outline: 3px solid var(--qv-green-on-navy);
  outline-offset: 2px;
}

/* Entrance: plays once when the section scrolls into view. Only hidden when the
   script has run (html.qs2-qv-js), so without JavaScript everything just shows. */
.qs2-qv-js .qs2-qv [data-qv-reveal] { opacity: 0; }
.qs2-qv-js .qs2-qv.is-in [data-qv-reveal] {
  animation: qs2-qv-rise 650ms cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--qv-i, 0) * 80ms);
}
.qs2-qv-js .qs2-qv.is-in .qs2-qv__item[data-qv-reveal] {
  animation-name: qs2-qv-slide;
}

@keyframes qs2-qv-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes qs2-qv-slide {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: none; }
}
@keyframes qs2-qv-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 991px) {
  .qs2-qv { padding: 56px 0 64px; }
  .qs2-qv__top,
  .qs2-qv__values {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .qs2-qv__values { margin-top: 48px; }
  .qs2-qv__stage { min-height: 300px; padding: 40px 32px; }
  .qs2-qv__ghost { font-size: 260px; right: -40px; bottom: -110px; }
}
@media (max-width: 575px) {
  .qs2-qv__statements { grid-template-columns: 1fr; gap: 22px; }
  .qs2-qv__stage { min-height: 280px; padding: 32px 24px; }
  .qs2-qv__panel-body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .qs2-qv-js .qs2-qv [data-qv-reveal] { opacity: 1; }
  .qs2-qv-js .qs2-qv.is-in [data-qv-reveal],
  .qs2-qv__panel.is-entering { animation: none; }
  .qs2-qv__item, .qs2-qv__letter, .qs2-qv__progress-bar { transition: none; }
}
