/* ============================================================
   info-sections.css — info card redesign
   All selectors prefixed with rv- and scoped under .rv-scope.
   Existing styles.css is left untouched; these rules only
   apply to markup that opts in via .rv-scope + rv-* classes.
   ============================================================ */

/* ---- Scope tokens (reuse site's existing purple identity) ---- */
.rv-scope {
  --rv-hairline: 1px solid rgba(255, 255, 255, 0.07);
  --rv-hairline-strong: 1px solid rgba(255, 255, 255, 0.13);
  --rv-radius: 0.9rem;
  --rv-transition: 300ms ease-out;
  --rv-accent: #a855f7;
  --rv-glow-color: rgba(129, 74, 200, 0.10);
}

/* ---- Scope base: reset only inside scope, globals untouched ---- */
.rv-scope,
.rv-scope *,
.rv-scope *::before,
.rv-scope *::after {
  box-sizing: border-box;
}
.rv-scope h1,
.rv-scope h2,
.rv-scope h3,
.rv-scope h4,
.rv-scope h5,
.rv-scope h6,
.rv-scope p,
.rv-scope ul,
.rv-scope li,
.rv-scope table,
.rv-scope td,
.rv-scope th,
.rv-scope a,
.rv-scope button,
.rv-scope span,
.rv-scope div {
  margin: 0;
  padding: 0;
}
.rv-scope ul {
  list-style: none;
}
.rv-scope a {
  color: inherit;
  text-decoration: inherit;
}
.rv-scope button,
.rv-scope [role="tab"],
.rv-scope summary {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

/* ---- Visible focus ring on every interactive element ---- */
.rv-scope .rv-focusable:focus-visible,
.rv-scope [role="tab"]:focus-visible,
.rv-scope summary:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

/* ---- Reduced motion: kill transitions/pointer tracking ---- */
@media (prefers-reduced-motion: reduce) {
  .rv-scope *,
  .rv-scope *::before,
  .rv-scope *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
/* ============================================================
   2.1 INDEX + STAGE  (index.html #research)
   ============================================================ */
.rv-scope .rv-research-grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
.rv-scope .rv-index {
  border-right: var(--rv-hairline);
  padding-right: 2rem;
  min-width: 0;
}
.rv-scope .rv-index-item {
  border-bottom: var(--rv-hairline);
  padding: 1.15rem 0;
}
.rv-scope .rv-index-item:last-child {
  border-bottom: none;
}
.rv-scope .rv-index-item [role="tab"] {
  width: 100%;
  padding: 0;
  text-align: left;
}
.rv-scope .rv-index-title {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  transition: color var(--rv-transition);
}
.rv-scope .rv-js .rv-index-item:not([aria-selected="true"]) .rv-index-title {
  color: rgba(255, 255, 255, 0.6);
}
.rv-scope .rv-js .rv-index-item:not([aria-selected="true"]) .rv-index-title:hover,
.rv-scope .rv-js .rv-index-item:not([aria-selected="true"]) .rv-index-title:focus {
  color: #fff;
}
.rv-scope .rv-js .rv-index-item [aria-selected="true"] .rv-index-title {
  color: var(--secondary-color);
}

.rv-scope .rv-stage {
  position: relative;
  border: var(--rv-hairline-strong);
  border-radius: var(--rv-radius);
  min-height: 430px; /* reserved height: tallest panel, set by JS */
  padding: 2.5rem 3rem 3rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

/* pointer-follow purple radial glow */
.rv-scope .rv-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    var(--rv-glow-size, 700px) var(--rv-glow-size, 700px)
      at var(--rv-pointer-x, 50%) var(--rv-pointer-y, 50%),
    var(--rv-glow-color),
    transparent 60%
  );
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 500ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .rv-scope .rv-stage::before {
    background: radial-gradient(
      700px 700px at 50% 50%,
      var(--rv-glow-color),
      transparent 60%
    );
  }
}

.rv-scope .rv-stage-panel {
  position: relative;
  z-index: 1;
}
.rv-scope .rv-js .rv-stage-panel:not(.rv-active) {
  display: none;
}
.rv-scope .rv-stage-description {
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 1.6rem;
  max-width: 44ch;
}
.rv-scope .rv-stage-tags,
.rv-scope .rv-stage-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.rv-scope .rv-tag {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  padding: 0.3rem 0;
}
.rv-scope .rv-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-color);
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.3rem 0;
}
.rv-scope .rv-badge-marker {
  width: 6px;
  height: 6px;
  background: var(--secondary-color);
  border-radius: 50%;
  flex-shrink: 0;
}

/* thin-line abstract rings graphic (inline SVG, aria-hidden) */
.rv-scope .rv-stage-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
}
   2.2 EDITORIAL ROWS  (index.html #benefits)
   ============================================================ */
.rv-scope .rv-benefits-list {
  margin-top: 1.5rem;
}
.rv-scope .rv-benefit-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
  border-top: var(--rv-hairline);
  padding: 1.35rem 0;
}
.rv-scope .rv-benefit-row:first-child {
  border-top: none;
}
.rv-scope .rv-benefit-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.35;
  max-width: 40ch;
  transition: color var(--rv-transition);
}
.rv-scope .rv-benefit-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 56ch;
}
.rv-scope .rv-benefit-row:hover .rv-benefit-title,
.rv-scope .rv-benefit-row:focus-within .rv-benefit-title {
  color: var(--secondary-color);
}
.rv-scope .rv-benefit-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-dark));
  border-radius: 0.15rem;
  transition: height var(--rv-transition);
  opacity: 0;
}
.rv-scope .rv-benefit-row:hover::before,
.rv-scope .rv-benefit-row:focus-within::before {
  height: 1px;
  opacity: 1;
}

/* ============================================================
   2.3 OPEN COLUMNS  (about.html who-we-are)
   ============================================================ */
.rv-scope .rv-open-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 1.5rem;
}
.rv-scope .rv-open-column {
  border-right: var(--rv-hairline);
  padding: 1.75rem 1.5rem;
}
.rv-scope .rv-open-column:last-child {
  border-right: none;
}
.rv-scope .rv-open-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  position: relative;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
}
.rv-scope .rv-open-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-dark));
  transition: width var(--rv-transition);
}
.rv-scope .rv-open-title:hover::after,
.rv-scope .rv-open-title:focus-within::after {
  width: 100%;
}
.rv-scope .rv-open-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   2.4 EXPANDING LIST  (about.html research areas)
   ============================================================ */
.rv-scope .rv-expanding-list {
  margin-top: 1.5rem;
}
.rv-scope .rv-expanding-item {
  border-top: var(--rv-hairline);
  padding: 1.1rem 0;
}
.rv-scope .rv-expanding-item:first-child {
  border-top: none;
}
.rv-scope .rv-expanding-summary {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  width: 100%;
  padding: 0;
  list-style: none;
}
.rv-scope .rv-expanding-summary::-webkit-details-marker { display: none; }
.rv-scope .rv-expanding-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.35;
}
.rv-scope .rv-expanding-toggle {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--secondary-color);
  transition: transform var(--rv-transition);
  line-height: 1;
  display: inline-block;
}
.rv-scope .rv-expanding-toggle::before {
  content: "+";
  position: absolute;
  inset: 0;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 600;
  transition: transform var(--rv-transition), opacity var(--rv-transition);
  transform-origin: center;
}
.rv-scope [open] .rv-expanding-toggle::before {
  transform: rotate(45deg);
}
.rv-scope .rv-expanding-content {
  padding-top: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}
.rv-scope .rv-expanding-content ul {
  margin-left: 1.1rem;
}
.rv-scope .rv-expanding-content li {
  position: relative;
  padding-left: 0.9rem;
  margin-bottom: 0.4rem;
}
.rv-scope .rv-expanding-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 50%;
}
.rv-scope .rv-expanding-content li:last-child { margin-bottom: 0; }

/* ============================================================
   2.5 LEDGER TABLE  (about.html integration)
   ============================================================ */
.rv-scope .rv-ledger {
  margin-top: 1.5rem;
  border-collapse: collapse;
  width: 100%;
}
.rv-scope .rv-ledger td {
  border-top: var(--rv-hairline);
  padding: 1.35rem 2rem 1.35rem 0;
  vertical-align: top;
}
.rv-scope .rv-ledger tr:first-child td { border-top: none; }
.rv-scope .rv-ledger-name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  padding-right: 1.5rem;
  width: 22%;
  white-space: nowrap;
}
.rv-scope .rv-ledger-platforms {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  padding-right: 1.5rem;
  width: 30%;
  white-space: nowrap;
}
.rv-scope .rv-ledger-detail {
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  width: 48%;
}
.rv-scope .rv-ledger tr td {
  position: relative;
}
.rv-scope .rv-ledger tr:hover td::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(0deg, var(--secondary-color), var(--primary-dark));
  pointer-events: none;
}
.rv-scope .rv-ledger tr:hover td {
  filter: brightness(1.04);
  transition: filter var(--rv-transition);
}

/* ============================================================
   2.6 WINDOW-PANE GRID  (about.html research excellence)
   ============================================================ */
.rv-scope .rv-window-grid {
  margin-top: 1.5rem;
  position: relative;
  border-top: var(--rv-hairline-strong);
  border-left: var(--rv-hairline-strong);
}
.rv-scope .rv-window-pane {
  border-right: var(--rv-hairline-strong);
  border-bottom: var(--rv-hairline-strong);
  padding: 3rem 2.25rem;
  min-height: 280px;
  overflow: hidden;
}
.rv-scope .rv-window-pane .rv-window-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.rv-scope .rv-window-pane .rv-window-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 46ch;
}

/* soft purple spotlight following pointer across whole grid */
.rv-scope .rv-window-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 600px at var(--rv-window-x, 50%) var(--rv-window-y, 50%),
    rgba(129, 74, 200, 0.09),
    transparent 55%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
}
.rv-scope .rv-window-grid:hover::before,
.rv-scope .rv-window-grid:focus-within::before {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .rv-scope .rv-window-grid::before {
    background: radial-gradient(
      600px 600px at 50% 50%,
      rgba(129, 74, 200, 0.09),
      transparent 55%
    );
    opacity: 0.25;
  }
}

/* ============================================================
   Mobile (below ~860px)
   ============================================================ */
@media (max-width: 860px) {
  .rv-scope .rv-research-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 1rem;
  }
  .rv-scope .rv-index {
    border-right: none;
    border-bottom: var(--rv-hairline-strong);
    padding: 0;
    order: 2;
  }
  .rv-scope .rv-index-item {
    cursor: pointer;
  }
  .rv-scope .rv-index-item [role="tab"] {
    padding: 1rem 1.25rem;
    justify-content: space-between;
  }
  .rv-scope .rv-index-item [role="tab"]::before {
    display: none;
  }
  .rv-scope .rv-stage {
    order: 1;
    border-left: none;
    border-top: var(--rv-hairline);
  }
  .rv-scope .rv-stage-header {
    padding: 0.9rem 1.25rem;
  }
  .rv-scope .rv-stage-panels {
    height: auto;
    min-height: 300px;
    padding: 1.25rem;
  }
  .rv-scope .rv-stage-panel {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    padding-top: 1rem;
    overflow-y: visible;
  }
  .rv-scope .rv-js .rv-stage-panel:not(.rv-active) {
    display: none;
  }

  .rv-scope .rv-benefits-list {
    margin-top: 1rem;
  }
  .rv-scope .rv-benefit-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1rem 0;
  }
  .rv-scope .rv-benefit-title { max-width: none; }
  .rv-scope .rv-benefit-description { max-width: none; }

  .rv-scope .rv-open-columns {
    grid-template-columns: 1fr;
  }
  .rv-scope .rv-open-column {
    border-right: none;
    border-bottom: var(--rv-hairline);
    padding: 1.25rem 0;
  }
  .rv-scope .rv-open-column:last-child { border-bottom: none; }

  .rv-scope .rv-expanding-list { margin-top: 1rem; }
  .rv-scope .rv-expanding-item { padding: 0.9rem 0; }

  .rv-scope .rv-ledger { font-size: 0.92rem; }
  .rv-scope .rv-ledger td {
    display: block;
    padding: 0.7rem 0;
  }
  .rv-scope .rv-ledger td::before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.8rem;
    text-transform: none;
  }
  .rv-scope .rv-ledger-name,
  .rv-scope .rv-ledger-platforms,
  .rv-scope .rv-ledger-detail {
    width: auto;
    white-space: normal;
    padding-right: 0;
    display: block;
  }
  .rv-scope .rv-ledger-name { padding-bottom: 0.2rem; }
  .rv-scope .rv-ledger-platforms { padding-bottom: 0.2rem; }

  .rv-scope .rv-window-grid {
    border-top: none;
    border-left: none;
  }
  .rv-scope .rv-window-pane {
    border-right: none;
    border-bottom: var(--rv-hairline-strong);
    padding: 1.75rem 0;
    min-height: auto;
  }
  .rv-scope .rv-window-pane:last-child { border-bottom: none; }
}
