/* Fan carousel: dark cards laid out on an arc. Every card rotates around one
   point far below the stage (transform-origin), so stepping the rotation by a
   fixed angle spreads them along a curve; the active card sits upright in the
   middle. fan.js sets --d (offset from the active card) on each card.
   Markup: .vfan > .vfan-stage > .vfan-card*, then .vfan-nav. */
.vfan {
  --vfan-w: 340px;
  --vfan-h: 360px;
  --vfan-step: 11deg;
  --vfan-r: 1500px;
  position: relative;
  margin-top: 8px;
}
.vfan-stage {
  position: relative;
  height: calc(var(--vfan-h) + 70px);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.vfan-card {
  --d: 0;
  --ad: 0;   /* |d| */
  position: absolute;
  top: 34px;
  left: 50%;
  width: var(--vfan-w);
  height: var(--vfan-h);
  margin-left: calc(var(--vfan-w) / -2);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 26px 28px 24px;
  border-radius: 22px;
  background: #09193E;
  border: 1px solid rgba(127, 174, 240, .14);
  color: #fff;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transform-origin: 50% var(--vfan-r);
  /* The next card waits on the left, so › swings the fan right and counts up.
     The lift is continuous in --ad (the active card -12px, the next ones 6px
     and 12px lower), so a drag (fractional --d) moves every card smoothly. */
  transform: rotate(calc(var(--d) * var(--vfan-step) * -1)) translateY(calc(clamp(0, var(--ad), 1) * 18px - 12px + max(var(--ad) - 1, 0) * 6px));
  z-index: calc(20 - var(--ad));
  box-shadow: 0 30px 50px -30px rgba(0, 14, 50, .55);
  transition: transform .6s cubic-bezier(.22, .61, .36, 1), opacity .45s ease, box-shadow .45s ease;
}
.vfan-card.is-active {
  cursor: grab;
  box-shadow: 0 44px 70px -34px rgba(0, 14, 50, .7);
}
/* While dragging, the cards follow the pointer with no easing lag. */
.vfan.is-dragging .vfan-card { transition: box-shadow .45s ease; cursor: grabbing; }
.vfan-card.is-near { opacity: .92; }
.vfan-card.is-far { opacity: .55; }
.vfan-card.is-hidden { opacity: 0; pointer-events: none; }

.vfan-top { display: flex; align-items: center; justify-content: space-between; }
.vfan-top img { height: 22px; width: auto; display: block; }
.vfan-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: #7FAEF0;
}
.vfan-qm {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 64px; line-height: .8; font-weight: 600;
  color: #7FAEF0;
  margin: 26px 0 6px;
}
.vfan-card blockquote {
  margin: 0;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 19px; line-height: 1.32; letter-spacing: -0.015em; font-weight: 500;
  color: #fff;
}
.vfan-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
/* The logo's triangle as a corner accent. */
.vfan-card::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: 54px; height: 54px;
  background: #1A4F9C;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.vfan-nav {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 4px;
}
.vfan-arrow {
  width: 42px; height: 42px; border-radius: 999px;
  border: 0; background: #09193E; color: #fff;   /* night blue; sky on hover */
  display: grid; place-items: center;
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .25s ease, box-shadow .25s ease;
}
.vfan-arrow:hover { background: #7FAEF0; color: #09193E; transform: translateY(-4px) scale(1.035); box-shadow: 0 10px 22px -10px rgba(127, 174, 240, .55); }
.vfan-dots { display: flex; align-items: center; gap: 7px; }
.vfan-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: #C9D3E0; cursor: pointer;
  transition: width .35s ease, background .2s ease;
}
.vfan-dot:hover { background: #8FA3BD; }
.vfan-dot[aria-current="true"] { width: 28px; background: #09193E; }
.vfan-card:focus-visible, .vfan-arrow:focus-visible, .vfan-dot:focus-visible { outline: 2px solid #1A4F9C; outline-offset: 3px; }

@media (max-width: 720px) {
  .vfan { --vfan-w: 272px; --vfan-h: 340px; --vfan-step: 12deg; --vfan-r: 1100px; }
  .vfan-card { padding: 22px 22px 20px; }
  .vfan-card blockquote { font-size: 17.5px; }
  .vfan-qm { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .vfan-card, .vfan-dot { transition: none; }
}
