/* =====================================================================
 * Landing hero carousel + home-page scroll reveals.
 * ---------------------------------------------------------------------
 * Consumed by core/website/templates/website/indexv4.html together with
 * static/boiler/js/landing-hero.js. Plain CSS (no Tailwind build step —
 * the theme's utility CSS is pre-purged, so nothing here relies on it).
 *
 * Structure:
 *   1. Hero swipers (text + visual), typewriter caret, pagination, pause
 *   2. .hero-mock — the morphing mock-workspace browser frame (slide 1 fx)
 *   3. Per-app vignettes (keyframes run only under .hero-anim-run)
 *   4. Scroll-reveal system (gated on .js-reveal-ready + reduced motion)
 *   5. Reduced-motion + mobile overrides
 * ===================================================================== */

/* ---- 1. Hero swipers ------------------------------------------------ */

/* No-JS / pre-init fallback: show only the first slide of each swiper. */
.hero-swiper-text:not(.swiper-initialized) .swiper-slide:not(:first-child),
.hero-swiper-visual:not(.swiper-initialized) .swiper-slide:not(:first-child) {
  display: none;
}

.hero-slide-text {
  min-height: 17rem;
}
@media (max-width: 991.98px) {
  .hero-slide-text { min-height: 19rem; }
}

/* Typed line: fixed height so typing never reflows the form below. */
.hero-typed {
  min-height: 2rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}
.hero-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: text-bottom;
  animation: hero-caret-blink 1s steps(1) infinite;
}
.hero-typed.is-typing .hero-caret { animation: none; opacity: 1; }
@keyframes hero-caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* External pagination + pause control, on the purple banner. */
.hero-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 1rem;
  min-height: 1.75rem;
}
.hero-controls .hero-swiper-pagination {
  position: static;
  display: flex;
  align-items: center;
  gap: 4px;
  width: auto; /* beat swiper-bundle's .swiper-pagination-horizontal { width:100% } */
}
.hero-swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  background: #fff !important;
  opacity: 0.35;
  transition: opacity 0.2s, width 0.2s;
  border-radius: 9999px;
}
.hero-swiper-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  width: 20px;
}
.hero-autoplay-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-autoplay-toggle:hover { background: rgba(255, 255, 255, 0.25); }

/* Visual column */
.hero-visual-col .landing-main-image { margin-bottom: 0; }
.hero-swiper-visual { width: 100%; }
.hero-swiper-visual .swiper-slide { display: flex; justify-content: flex-end; }

/* ---- 2. Mock workspace frame ---------------------------------------- */

.hero-mock {
  --hm-primary: #7647e5;
  position: relative;
  width: 100%;
  max-width: 30rem;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  text-align: left;
  font-size: 11px;
}

/* Browser bar */
.hm-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  flex: 0 0 auto;
}
.hm-dot { width: 9px; height: 9px; border-radius: 50%; background: #fca5a5; }
.hm-dot:nth-child(2) { background: #fcd34d; }
.hm-dot:nth-child(3) { background: #86efac; }
.hm-url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  padding: 2px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  white-space: nowrap;
}
.hm-url i { font-size: 10px; color: #16a34a; }

/* Body: dark sidebar + light content (echoes the real product shots). */
.hm-body { flex: 1; display: flex; min-height: 0; }
.hm-sidebar {
  width: 30%;
  max-width: 130px;
  background: #1e293b;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
}
.hm-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Logo (variants driven by data-logo="1..6") */
.hm-logo { display: flex; align-items: center; gap: 6px; }
.hm-logo-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--hm-primary);
  transition: background 0.25s, border-radius 0.25s;
  flex: 0 0 auto;
}
.hm-logo-word {
  height: 6px;
  width: 44px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
  transition: width 0.25s;
}
.hm-logo[data-logo="2"] .hm-logo-mark { border-radius: 50%; background: #f59e0b; }
.hm-logo[data-logo="2"] .hm-logo-word { width: 32px; }
.hm-logo[data-logo="3"] .hm-logo-mark { border-radius: 2px; background: #10b981; transform: rotate(45deg); }
.hm-logo[data-logo="3"] .hm-logo-word { width: 50px; }
.hm-logo[data-logo="4"] .hm-logo-mark { border-radius: 50% 50% 0 50%; background: #ef4444; }
.hm-logo[data-logo="4"] .hm-logo-word { width: 38px; }
.hm-logo[data-logo="5"] .hm-logo-mark { border-radius: 7px 2px; background: #0ea5e9; }
.hm-logo[data-logo="5"] .hm-logo-word { width: 46px; }
.hm-logo[data-logo="6"] .hm-logo-mark { border-radius: 50%; background: var(--hm-primary); }
.hm-logo[data-logo="6"] .hm-logo-word { width: 40px; }

/* Sidebar nav */
.hm-nav { display: flex; flex-direction: column; gap: 6px; }
.hm-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.25s, color 0.25s;
}
.hm-nav-item i { font-size: 12px; line-height: 1; }
.hm-nav-item .hm-line { background: rgba(255, 255, 255, 0.25); }
.hm-nav-item.is-on {
  background: color-mix(in srgb, var(--hm-primary) 80%, transparent);
  color: #fff;
}
.hm-nav-item.is-on .hm-line { background: rgba(255, 255, 255, 0.85); }

/* Horizontal-nav variant (slide-1 "layout" fx toggles .hm-horizontal). */
.hm-topnav {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #1e293b;
  flex: 0 0 auto;
}
.hm-topnav .hm-logo { margin-right: 8px; }
.hm-topnav .hm-nav-item { padding: 3px 6px; }
.hero-mock.hm-horizontal .hm-sidebar { display: none; }
.hero-mock.hm-horizontal .hm-topnav { display: flex; }

/* Content area */
.hm-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  min-height: 0;
  overflow: hidden;
}
.hm-line {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #cbd5e1;
}
.hm-line-soft { background: #e2e8f0; }
.hm-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hm-primary);
  color: #fff;
  font-size: 13px;
  transition: background 0.25s;
  flex: 0 0 auto;
}
.hm-welcome { display: flex; align-items: center; gap: 8px; }
.hm-welcome-lines { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hm-btn {
  width: 44px;
  height: 16px;
  border-radius: 8px;
  background: var(--hm-primary);
  transition: background 0.25s;
  flex: 0 0 auto;
}
.hm-stats { display: flex; gap: 8px; }
.hm-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-width: 0;
}
.hm-stat i { font-size: 13px; color: var(--hm-primary); transition: color 0.25s; }
.hm-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-height: 0;
}
.hm-chart b {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--hm-primary) 75%, #fff);
  transition: background 0.25s;
}
.hm-chart b:nth-child(even) {
  background: color-mix(in srgb, var(--hm-primary) 35%, #fff);
}

/* Security chips (slide-1 "security" fx pops them in). */
.hm-chips {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.hm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #fff;
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  color: #16a34a;
  font-size: 11px;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.3s, transform 0.3s;
}
.hm-chip.is-shown { opacity: 1; transform: none; }

/* ---- 3. App vignettes ------------------------------------------------ */
/* Keyframes only run under .hero-anim-run (added/re-added by JS each time
 * a slide activates); without it every vignette rests in its final state
 * (no-JS, reduced motion). `both` fill keeps pre-delay state at frame 0. */

@keyframes hm-pop-in {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
@keyframes hm-grow-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hm-fill-w { from { width: 0; } to { width: var(--w, 80%); } }

/* Donors */
.hm-vig-donors .hmv-head { display: flex; align-items: center; gap: 8px; }
.hmv-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: #1e293b;
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.hmv-count i { color: var(--hm-primary); font-size: 14px; }
.hmv-grow b { transform-origin: bottom; }
.hero-anim-run .hmv-grow b { animation: hm-grow-bar 0.7s ease both; }
.hero-anim-run .hmv-grow b:nth-child(2) { animation-delay: 0.15s; }
.hero-anim-run .hmv-grow b:nth-child(3) { animation-delay: 0.3s; }
.hero-anim-run .hmv-grow b:nth-child(4) { animation-delay: 0.45s; }
.hero-anim-run .hmv-grow b:nth-child(5) { animation-delay: 0.6s; }
.hero-anim-run .hmv-grow b:nth-child(6) { animation-delay: 0.75s; }
.hmv-toast {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  color: #16a34a;
  font-weight: 600;
  font-size: 11px;
}
.hmv-toast i { color: #ef4444; }
.hero-anim-run .hmv-toast { animation: hm-pop-in 0.4s ease 1.7s both; }

/* Recipients */
.hm-vig-recipients .hmv-case-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.hmv-status {
  width: 34px;
  height: 10px;
  border-radius: 9999px;
  background: #22c55e;
  flex: 0 0 auto;
}
@keyframes hm-status-flip {
  0%, 55% { background: #f59e0b; }
  70%, 100% { background: #22c55e; }
}
.hero-anim-run .hmv-status { animation: hm-status-flip 2.6s both; }
.hmv-timeline { display: flex; flex-direction: column; gap: 7px; }
.hmv-tl-row { display: flex; align-items: center; gap: 8px; }
.hero-anim-run .hmv-tl-row { animation: hm-pop-in 0.35s ease both; }
.hero-anim-run .hmv-tl-row:nth-child(2) { animation-delay: 0.45s; }
.hero-anim-run .hmv-tl-row:nth-child(3) { animation-delay: 0.9s; }
.hero-anim-run .hmv-tl-row:nth-child(4) { animation-delay: 1.35s; }
.hmv-tl-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hm-primary) 15%, #fff);
  color: var(--hm-primary);
  font-size: 11px;
  flex: 0 0 auto;
}

/* Smart Forms */
.hmv-field { display: flex; flex-direction: column; gap: 4px; }
.hmv-input {
  display: block;
  height: 16px;
  padding: 4px 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.hmv-fill {
  display: block;
  height: 100%;
  width: var(--w, 80%);
  border-radius: 3px;
  background: color-mix(in srgb, var(--hm-primary) 30%, #fff);
}
.hero-anim-run .hmv-fill { animation: hm-fill-w 0.45s ease-out both; }
.hero-anim-run .hmv-field:nth-child(2) .hmv-fill { animation-delay: 0.5s; }
.hero-anim-run .hmv-field:nth-child(3) .hmv-fill { animation-delay: 1s; }
.hm-vig-forms .hmv-form-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.hmv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 18px;
  border-radius: 9px;
  background: var(--hm-primary);
  color: #fff;
  font-size: 11px;
}
@keyframes hm-btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.hero-anim-run .hmv-btn { animation: hm-btn-pulse 0.5s ease 1.55s; }
.hmv-steps { display: flex; gap: 8px; }
.hmv-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  color: #16a34a;
  font-size: 11px;
}
.hero-anim-run .hmv-step { animation: hm-pop-in 0.35s ease both; }
.hero-anim-run .hmv-step:nth-child(1) { animation-delay: 2s; }
.hero-anim-run .hmv-step:nth-child(2) { animation-delay: 2.35s; }

/* Smart School */
.hmv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.hmv-cell {
  height: 16px;
  border-radius: 4px;
  background: #e2e8f0;
}
.hmv-cell.is-a { background: color-mix(in srgb, var(--hm-primary) 55%, #fff); }
.hmv-cell.is-b { background: #86efac; }
.hmv-cell.is-c { background: #fcd34d; }
.hero-anim-run .hmv-cell { animation: hm-pop-in 0.3s ease both; }
.hero-anim-run .hmv-cell:nth-child(2) { animation-delay: 0.08s; }
.hero-anim-run .hmv-cell:nth-child(3) { animation-delay: 0.16s; }
.hero-anim-run .hmv-cell:nth-child(4) { animation-delay: 0.24s; }
.hero-anim-run .hmv-cell:nth-child(5) { animation-delay: 0.32s; }
.hero-anim-run .hmv-cell:nth-child(6) { animation-delay: 0.4s; }
.hero-anim-run .hmv-cell:nth-child(7) { animation-delay: 0.48s; }
.hero-anim-run .hmv-cell:nth-child(8) { animation-delay: 0.56s; }
.hero-anim-run .hmv-cell:nth-child(9) { animation-delay: 0.64s; }
.hero-anim-run .hmv-cell:nth-child(10) { animation-delay: 0.72s; }
.hero-anim-run .hmv-cell:nth-child(11) { animation-delay: 0.8s; }
.hero-anim-run .hmv-cell:nth-child(12) { animation-delay: 0.88s; }
.hmv-grades { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.hmv-grade { display: flex; align-items: center; gap: 8px; }
.hmv-grade .hm-line { flex: 0 0 auto; }
.hmv-gbar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  overflow: hidden;
}
.hmv-gbar i {
  display: block;
  height: 100%;
  width: var(--w, 70%);
  border-radius: 4px;
  background: var(--hm-primary);
}
.hero-anim-run .hmv-gbar i { animation: hm-fill-w 0.6s ease-out both; }
.hero-anim-run .hmv-grade:nth-child(2) .hmv-gbar i { animation-delay: 1.35s; }
.hero-anim-run .hmv-grade:nth-child(3) .hmv-gbar i { animation-delay: 1.55s; }
.hero-anim-run .hmv-grade:nth-child(1) .hmv-gbar i { animation-delay: 1.15s; }

/* eLearning */
.hmv-elearn-top { display: flex; align-items: center; gap: 12px; }
.hmv-ring { width: 56px; height: 56px; transform: rotate(-90deg); flex: 0 0 auto; }
.hmv-ring circle { fill: none; stroke-width: 5; }
.hmv-ring-bg { stroke: #e2e8f0; }
.hmv-ring-fg {
  stroke: var(--hm-primary);
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 28; /* ~75% complete at rest */
}
@keyframes hm-ring-fill { from { stroke-dashoffset: 113; } to { stroke-dashoffset: 28; } }
.hero-anim-run .hmv-ring-fg { animation: hm-ring-fill 1.4s ease-out both; }
.hmv-lessons { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.hmv-lesson { display: flex; align-items: center; gap: 7px; }
.hmv-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 10px;
  flex: 0 0 auto;
}
.hero-anim-run .hmv-check { animation: hm-pop-in 0.3s ease both; }
.hero-anim-run .hmv-lesson:nth-child(1) .hmv-check { animation-delay: 0.7s; }
.hero-anim-run .hmv-lesson:nth-child(2) .hmv-check { animation-delay: 1.1s; }
.hero-anim-run .hmv-lesson:nth-child(3) .hmv-check { animation-delay: 1.5s; }
.hmv-cert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  margin-top: auto;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  color: #d97706;
  font-size: 13px;
}
.hero-anim-run .hmv-cert { animation: hm-pop-in 0.45s ease 2s both; }

/* Chat */
.hm-vig-chat { justify-content: flex-end; }
.hmv-bubble {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  max-width: 70%;
  padding: 7px 10px;
  border-radius: 10px;
}
.hmv-bubble.is-left {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 2px;
}
.hmv-bubble.is-right {
  align-self: flex-end;
  background: color-mix(in srgb, var(--hm-primary) 18%, #fff);
  border-bottom-right-radius: 2px;
}
.hmv-bubble.is-right .hm-line { background: color-mix(in srgb, var(--hm-primary) 45%, #fff); }
.hero-anim-run .hmv-bubble { animation: hm-pop-in 0.35s ease both; }
.hero-anim-run .hmv-bubble:nth-child(1) { animation-delay: 0.2s; }
.hero-anim-run .hmv-bubble:nth-child(2) { animation-delay: 0.8s; }
.hero-anim-run .hmv-bubble:nth-child(3) { animation-delay: 1.4s; }
.hero-anim-run .hmv-bubble:nth-child(4) { animation-delay: 2.2s; }
.hmv-typing {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  align-self: flex-start;
  padding: 6px 9px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  border-bottom-left-radius: 2px;
}
.hmv-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94a3b8;
  animation: hm-typing-bounce 1s ease-in-out infinite;
}
.hmv-typing i:nth-child(2) { animation-delay: 0.15s; }
.hmv-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hm-typing-bounce {
  0%, 60%, 100% { transform: none; opacity: 0.6; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Pause everything inside the mock while hovered/paused/hidden. */
.hero-paused .hero-mock *,
.hero-paused .hero-mock { animation-play-state: paused !important; }

/* ---- 4. Scroll reveals ----------------------------------------------- */
/* Hidden state applies only when JS confirmed itself (.js-reveal-ready on
 * <html>) AND the user accepts motion — content can never be stranded. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .js-reveal-ready .reveal.active {
    opacity: 1;
    transform: none;
  }
  .js-reveal-ready .reveal-delay-1.active { transition-delay: 0.1s; }
  .js-reveal-ready .reveal-delay-2.active { transition-delay: 0.2s; }
  .js-reveal-ready .reveal-delay-3.active { transition-delay: 0.3s; }
}

/* ---- 5. Reduced motion + mobile -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-mock *,
  .hero-caret {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 767.98px) {
  .hero-visual-col { display: none; }
  .hero-slide-text { min-height: 21rem; }
}

/* ---- 6. Brand-zoom rotator (#white-label) ----------------------------- */
/* A "camera" over the four real workspace shots: zooms onto each logo
 * (transform-origin per image, set inline), crossfades between brands, and
 * pulls back out. Driven by the timeline in landing-hero.js; the .bz-row
 * list highlights in sync. No JS ⇒ first image visible, zoomed out. */

.bz-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  background: #0f172a;
}
.bz-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.6s ease, transform 1.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}
.bz-viewport img.bz-active { opacity: 1; }
.bz-viewport img.bz-zoomed { transform: scale(3.1); }

.bz-rows { display: flex; flex-direction: column; gap: 0.4rem; }
.bz-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, transform 0.35s;
}
.bz-dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  margin-top: 0.3rem;
  flex: 0 0 auto;
  background: var(--bz-color, #64748b);
  opacity: 0.45;
  transition: opacity 0.35s, box-shadow 0.35s;
}
.bz-row.bz-live {
  background: rgba(100, 116, 139, 0.08);
  border-color: rgba(100, 116, 139, 0.15);
  transform: translateX(6px);
}
.bz-row.bz-live .bz-dot {
  opacity: 1;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bz-color, #64748b) 22%, transparent);
}
.bz-row-caption { display: block; }
.bz-row-caption.bz-wipe { animation: bz-wipe 0.9s ease both; }
@keyframes bz-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .bz-viewport img,
  .bz-row,
  .bz-row-caption.bz-wipe {
    transition: none !important;
    animation: none !important;
  }
}
