/* ===========================================================
   Avanor Capital — "Why Consider Selling Equity?" scroll-stack.
   Two columns: a sticky left header and a right column of thin
   rows that slide in from the right and stack sequentially as
   the user scrolls. Slide-in is driven by the native scroll
   timeline (animation-timeline: view()) — the dependency-free
   equivalent of a Framer Motion scroll-linked reveal.
   =========================================================== */

.av-eq {
  display: grid;
  grid-template-columns: minmax(290px, 0.82fr) 1.18fr;
  gap: 64px;
  align-items: start;
}

/* sticky header column */
.av-eq__aside { position: sticky; top: 120px; }
.av-eq__eyebrow {
  font-family: Montserrat, sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase; color: #C9A84C; margin-bottom: 16px;
}
.av-eq__aside h2 {
  font-family: Montserrat, sans-serif; font-weight: 800; font-size: 40px;
  line-height: 1.12; letter-spacing: -0.01em; color: #F4F1E9; margin: 0; text-wrap: balance;
}
.av-eq__aside p {
  font-family: Inter, sans-serif; font-size: 17px; line-height: 1.62; color: #AEB8C2; margin: 20px 0 0;
}
.av-eq__meter { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.av-eq__meter b {
  font-family: Montserrat, sans-serif; font-weight: 900; font-size: 38px; color: #E6D08C; line-height: 1;
}
.av-eq__meter span { font-family: Inter, sans-serif; font-size: 13px; color: #8C97A3; max-width: 16ch; }
.av-eq__cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  font-family: Montserrat, sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  color: #0A1522; background: linear-gradient(180deg,#E6D08C 0%,#C9A84C 100%);
  padding: 14px 24px; border-radius: 9px; text-decoration: none;
  box-shadow: 0 10px 30px rgba(201,168,76,0.26); transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s;
}
.av-eq__cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(201,168,76,0.42); }
.av-eq__cta svg { width: 17px; height: 17px; }

/* right column — the stack */
.av-eq__list { display: flex; flex-direction: column; gap: 16px; }

/* Slide state is driven per-scroll-frame by equity.js via the --eq-p custom
   property (0 = hidden/right, 1 = landed). Custom properties are not managed
   by the render layer, and using a scroll-driven value (not a time-based CSS
   transition) keeps the motion alive in this scroll-timeline runtime. */
.av-eq__card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 22px;
  padding: 24px 28px;
  background: linear-gradient(90deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.012) 100%), #0B1726;
  border: 1px solid rgba(201,168,76,0.16);
  border-radius: 14px;
  opacity: var(--eq-p, 0);
  transform: translateX(calc((1 - var(--eq-p, 0)) * 90px));
  transition: border-color .4s ease, box-shadow .4s ease;
  will-change: transform, opacity;
}

/* gold rail that grows on hover */
.av-eq__card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg,#C9A84C,#EBD9A0);
  transform: scaleY(0); transform-origin: top; transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.av-eq__card:hover {
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 22px 50px rgba(4,9,18,0.5), 0 0 36px rgba(201,168,76,0.1);
}
.av-eq__card:hover::before { transform: scaleY(1); }

.av-eq__num {
  flex-shrink: 0; width: 34px;
  font-family: Montserrat, sans-serif; font-weight: 800; font-size: 15px;
  color: rgba(201,168,76,0.45); letter-spacing: 0.04em;
}
.av-eq__icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3);
}
.av-eq__icon svg { width: 22px; height: 22px; }
.av-eq__txt { flex: 1; min-width: 0; }
.av-eq__txt h3 {
  font-family: Montserrat, sans-serif; font-weight: 700; font-size: 17px;
  color: #F4F1E9; margin: 0 0 4px; letter-spacing: -0.005em;
}
.av-eq__txt p { font-family: Inter, sans-serif; font-size: 14px; line-height: 1.5; color: #9AA5B1; margin: 0; }
.av-eq__arrow {
  flex-shrink: 0; color: rgba(201,168,76,0.4); width: 20px; height: 20px;
  transition: color .4s ease, transform .4s cubic-bezier(.22,.61,.36,1);
}
.av-eq__card:hover .av-eq__arrow { color: #E6D08C; transform: translateX(4px); }

/* responsive */
@media (max-width: 940px) {
  .av-eq { grid-template-columns: 1fr; gap: 40px; }
  .av-eq__aside { position: static; }
  .av-eq__aside h2 { font-size: 32px; }
}
@media (max-width: 520px) {
  .av-eq__card { padding: 20px; gap: 16px; }
  .av-eq__num { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .av-eq__card { --eq-p: 1 !important; opacity: 1 !important; transform: none !important; }
  .av-eq__card::before, .av-eq__arrow, .av-eq__cta { transition: none !important; }
  .av-eq__aside { position: static; }
}
