/* The homepage hero's right side (#hero-beats, /home-hero.js): a 3D stage
 * (the owner, 2026-11-18: "the right side, it's snooze… more fun and
 * beautiful and WOW"). A glowing ring turning behind the app's own Sepia
 * page, tilted in depth and floating; the Bible's cards floating round it,
 * dim until the story names them; a stack of pages behind it that grows.
 * The play: "beat" flies out of the headline onto the page, Expand blooms
 * it, Steer rewrites it, KudoAI pours pages that flip like a flipbook, and
 * the pages close into a book that turns in the light.
 *
 * Transform and opacity only (and the threads' dash); no backdrop-filter,
 * no filter blur on anything that moves every frame. The page kit is
 * /home-page.css (.pm-*); every text colour on a card or pill 4.5:1 or more
 * on its own face. Reduced motion or no JS: the finished page, standing. */

.hv {
  --px: 0;
  --py: 0;
  --hv-ry: -11deg;
  --hv-rx: 5deg;
  --hv-play: running;
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 640px;
  padding: 72px 0 84px;
  perspective: 1600px;
}

/* ---- the light behind: two rings turning, a glow, a few stars ---------- */
.hv-halo { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: -2; pointer-events: none; }
.hv-halo i {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  animation: hv-spin 18s linear infinite;
  animation-play-state: var(--hv-play);
}
.hv-halo i:nth-child(1) {
  width: 660px; height: 660px; margin: -330px 0 0 -330px;
  background: conic-gradient(from 0deg, rgba(240, 106, 155, 0) 0deg, rgba(240, 106, 155, 0.75) 70deg, rgba(167, 139, 250, 0.7) 150deg, rgba(245, 166, 106, 0.55) 230deg, rgba(240, 106, 155, 0) 320deg);
  -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 66%, #000 70%, transparent 82%);
  mask: radial-gradient(closest-side, transparent 58%, #000 66%, #000 70%, transparent 82%);
  opacity: 0.8;
}
.hv-halo i:nth-child(2) {
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  background: conic-gradient(from 180deg, rgba(139, 92, 246, 0) 0deg, rgba(139, 92, 246, 0.7) 90deg, rgba(240, 106, 155, 0.55) 170deg, rgba(139, 92, 246, 0) 260deg);
  -webkit-mask: radial-gradient(closest-side, transparent 72%, #000 80%, transparent 92%);
  mask: radial-gradient(closest-side, transparent 72%, #000 80%, transparent 92%);
  animation-duration: 26s;
  animation-direction: reverse;
  opacity: 0.7;
}
.hv-halo i:nth-child(3) {
  width: 620px; height: 620px; margin: -310px 0 0 -310px;
  background: radial-gradient(closest-side, rgba(240, 106, 155, 0.28), rgba(139, 92, 246, 0.14) 55%, transparent 75%);
  animation: hv-breathe 6s ease-in-out infinite;
  animation-play-state: var(--hv-play);
}
@keyframes hv-spin { to { transform: rotate(360deg); } }
@keyframes hv-breathe { 50% { transform: scale(1.08); opacity: 0.75; } }

.hv-stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hv-stars i {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1px rgba(255, 190, 215, 0.9);
  opacity: 0;
  animation: hv-star 5s ease-in-out infinite;
  animation-play-state: var(--hv-play);
}
@keyframes hv-star {
  0%, 100% { opacity: 0; transform: translateY(10px) scale(0.6); }
  50% { opacity: 0.9; transform: translateY(-10px) scale(1); }
}

/* ---- the floating page, its stack, its leaves --------------------------- */
.hv-float {
  position: relative;
  z-index: 1;
  width: clamp(320px, calc(100% - 150px), 420px);
  perspective: 1400px;
  transform: rotateY(calc(var(--px) * 7deg)) rotateX(calc(var(--py) * -5deg));
  transition: transform 0.7s cubic-bezier(.2, .8, .2, 1);
  animation: hv-float 7s ease-in-out infinite;
  animation-play-state: var(--hv-play);
}
@keyframes hv-float { 50% { translate: 0 -12px; } }

.hv-page, .hv-sheet, .hv-leaf { transform: rotateY(var(--hv-ry)) rotateX(var(--hv-rx)); }
.hv .hv-page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 470px;
  margin: 0;
  box-shadow:
    inset 0 1px 0 #fffaf0,
    0 50px 90px -40px rgba(0, 0, 0, 0.95),
    0 0 90px -20px rgba(240, 106, 155, 0.55);
}
.hv-page .pm-paras { position: relative; will-change: transform; }
.hv.live .pm-para.is-empty .pm-text { color: transparent; }
/* The page's top stays put over the paragraphs racing up under it. */
.hv-page .pm-top, .hv-leaf .pm-top { position: relative; z-index: 2; }
.hv-page .pm-top::before, .hv-leaf .pm-top::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: calc(var(--pm-gutter) * -1 - 10px);
  right: -28px;
  top: -60px;
  bottom: -14px;
  background: linear-gradient(180deg, #f6eddc 0%, #f6eddc calc(100% - 14px), rgba(246, 237, 220, 0) 100%);
}
.hv-page .pm-dots, .hv-leaf .pm-dots { z-index: 3; }
.hv-page .pm-words { transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.2); transform-origin: 100% 50%; }
.hv.is-pouring .hv-page .pm-words { transform: scale(1.3); font-weight: 800; color: #5a34b0; }
.hv-page .pm-words b { font-variant-numeric: tabular-nums; }
.hv-pageno {
  position: absolute;
  right: 18px;
  bottom: 12px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: calc(12px / var(--tz, 1));
  font-style: italic;
  color: #5e4e3b;
  font-variant-numeric: tabular-nums;
}
/* KudoAI pouring: the page's edge lit violet, breathing fast. */
.hv-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(139, 92, 246, 0.6), inset 0 0 60px rgba(139, 92, 246, 0.35);
  opacity: 0;
  transition: opacity 0.4s;
}
.hv.is-pouring .hv-page::after { opacity: 1; animation: pm-breathe 0.6s ease-in-out infinite; animation-play-state: var(--hv-play); }

/* The stack behind: page edges, more of them as the book grows. */
.hv-stack { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hv-sheet {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, #efe3cb, #e2d2b4);
  border: 1px solid rgba(255, 240, 210, 0.45);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transition: translate 0.5s cubic-bezier(.2, .8, .2, 1), opacity 0.4s;
}

/* A leaf turning: a copy of the page on the front, the paper's back behind. */
.hv-leaf { position: absolute; inset: 0; z-index: 4; transform-style: preserve-3d; pointer-events: none; }
.hv-leaf > * { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.hv-leaf > .pm { margin: 0; min-height: 0; }
.hv-leaf-back {
  border-radius: 22px;
  background: linear-gradient(270deg, #f6eddc, #e9dbc0);
  transform: rotateY(180deg);
  box-shadow: inset 0 0 40px rgba(80, 55, 20, 0.2);
}
.hv-leaf-shade { z-index: 6; border-radius: 22px; background: linear-gradient(90deg, rgba(40, 25, 10, 0.05), rgba(40, 25, 10, 0.45)); opacity: 0; }

/* ---- the Bible's cards, floating round the page ------------------------- */
.hv-card {
  --d: 10;
  --z: 0;
  --rz: 0deg;
  --c: #c2336d;
  --glow: rgba(240, 106, 155, 0.75);
  position: absolute;
  left: 0; top: 0;
  z-index: 3;
  width: 172px;
  transform:
    translate3d(calc(var(--px) * var(--d) * 1px), calc(var(--py) * var(--d) * 1px), calc(var(--z) * 1px))
    rotateY(calc(var(--px) * -8deg))
    rotate(var(--rz));
  transition: transform 0.7s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .hv-card {
    --c__r: 194;
    --c__g: 51;
    --c__b: 109;
    --c__a: 1;
    --glow__r: 240;
    --glow__g: 106;
    --glow__b: 155;
    --glow__a: 0.75;
  }
}
.hv-card.is-behind { z-index: 0; }
.hv:not(.is-on) .hv-card { opacity: 0; }
.hv-card.is-rose { --c: #b02a5c; --glow: rgba(240, 106, 155, 0.8); }
@supports not (color: color-mix(in srgb, red, blue)) {

  .hv-card.is-rose {
    --c__r: 176;
    --c__g: 42;
    --c__b: 92;
    --c__a: 1;
    --glow__r: 240;
    --glow__g: 106;
    --glow__b: 155;
    --glow__a: 0.8;
  }
}
.hv-card.is-apricot { --c: #a3500e; --glow: rgba(245, 166, 106, 0.85); }
@supports not (color: color-mix(in srgb, red, blue)) {

  .hv-card.is-apricot {
    --c__r: 163;
    --c__g: 80;
    --c__b: 14;
    --c__a: 1;
    --glow__r: 245;
    --glow__g: 166;
    --glow__b: 106;
    --glow__a: 0.85;
  }
}
.hv-card.is-violet { --c: #6a3fc4; --glow: rgba(167, 139, 250, 0.85); }
@supports not (color: color-mix(in srgb, red, blue)) {

  .hv-card.is-violet {
    --c__r: 106;
    --c__g: 63;
    --c__b: 196;
    --c__a: 1;
    --glow__r: 167;
    --glow__g: 139;
    --glow__b: 250;
    --glow__a: 0.85;
  }
}
.hv-card.is-pink { --c: #a8247a; --glow: rgba(236, 120, 200, 0.8); }
@supports not (color: color-mix(in srgb, red, blue)) {

  .hv-card.is-pink {
    --c__r: 168;
    --c__g: 36;
    --c__b: 122;
    --c__a: 1;
    --glow__r: 236;
    --glow__g: 120;
    --glow__b: 200;
    --glow__a: 0.8;
  }
}
.hv-card.is-sky { --c: #1f6a9a; --glow: rgba(106, 169, 255, 0.85); }
@supports not (color: color-mix(in srgb, red, blue)) {

  .hv-card.is-sky {
    --c__r: 31;
    --c__g: 106;
    --c__b: 154;
    --c__a: 1;
    --glow__r: 106;
    --glow__g: 169;
    --glow__b: 255;
    --glow__a: 0.85;
  }
}
.hv-card-in {
  position: relative;
  display: block;
  padding: 10px 12px 11px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf2, #f5ead6);
  border: 1px solid rgba(80, 60, 30, 0.14);
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 #fff;
  color: #3a2f22;
  opacity: 0.55;
  transition: opacity 0.5s, box-shadow 0.5s;
  animation: hv-bob 6s ease-in-out infinite;
  animation-play-state: var(--hv-play);
}
@keyframes hv-bob { 50% { translate: 0 -9px; } }
/* Before the story names it, a card other than the two that start out is
   hidden; lit, it pops in where it floats. */
.hv-card:not(.is-start) .hv-card-in { transition: opacity 0.5s, box-shadow 0.5s, transform 0.6s cubic-bezier(.2, .9, .3, 1.35); }
.hv-card:not(.is-start):not(.is-lit) .hv-card-in { opacity: 0; transform: scale(0.6); }
.hv-card.is-lit .hv-card-in {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--c), 0 0 34px var(--glow), 0 22px 40px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 #fff;
}
.hv-card.is-far .hv-card-in { opacity: 0.3; }
.hv-card.is-far.is-lit .hv-card-in { opacity: 0.9; }
.hv-card-top { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.hv-av { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: calc(12px / var(--tz, 1)); font-weight: 800; color: #fff; background: var(--c); }
/* The app's own faces (scripts/hero-faces.mjs): a person's avatar in a ring of
   its card's colour, a place / thing / event its drawing on a little tile. */
.hv-av.has-face { position: relative; width: 38px; height: 38px; margin: -3px 0 -3px -2px; background: none; overflow: hidden; }
.hv-av.has-face svg { display: block; width: 100%; height: 100%; }
.hv-card-top:has(.has-face) { gap: 9px; }
.hv-card-top:has(.has-face) b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
.hv-av.is-person { border-radius: 50%; box-shadow: 0 0 0 2px #fffaf2, 0 0 0 3.5px var(--c), 0 6px 12px -4px rgba(0, 0, 0, 0.45); }
.hv-av.is-thing { width: 46px; height: 30px; margin: -1px 0 -1px -2px; border-radius: 9px; background: radial-gradient(120% 90% at 50% 18%, var(--glow), transparent 72%), #2a2531; box-shadow: 0 0 0 2px #fffaf2, 0 0 0 3px rgba(80, 60, 30, 0.18), 0 6px 12px -4px rgba(0, 0, 0, 0.45); }
.hv-card.is-lit .hv-av.has-face { animation: hv-av-pop 0.6s cubic-bezier(.2, .9, .3, 1.5); }
@keyframes hv-av-pop { 40% { transform: scale(1.22) rotate(-6deg); } 70% { transform: scale(0.96) rotate(3deg); } }
.hv-card b { flex: 1; min-width: 0; font-size: calc(12.5px / var(--tz, 1)); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-card em {
  position: absolute;
  top: -8px;
  right: -6px;
  font-style: normal;
  font-size: calc(9px / var(--tz, 1));
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  color: #1f6e37;
  background: #dff3e3;
  box-shadow: 0 0 0 2px #fffaf2, 0 4px 10px -4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(.2, .9, .3, 1.4);
}
.hv-card.is-lit em { opacity: 1; transform: none; }
.hv-card-fact { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: calc(11px / var(--tz, 1)); line-height: 1.4; color: #4a3d2d; }

/* A name in the prose the Bible knows: underlined in its card's colour. */
.hv-name { border-radius: 3px; box-shadow: inset 0 -2px 0 var(--c, #b02a5c); transition: box-shadow 1.2s, background 1.2s; background: rgba(240, 106, 155, 0.16); }
.hv-name.is-calm { background: transparent; box-shadow: inset 0 -1px 0 rgba(176, 42, 92, 0.35); }

/* ---- the book: the pages closed into a novel, turning in the light ------ */
.hv-book { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; opacity: 0; perspective: 1100px; }
.hv-book.is-front { z-index: 5; }
.hv-book-3d > .hv-bk-page { left: 0; top: 0; margin: 0; padding-top: 18px; transform-origin: 50% 50%; box-shadow: inset 0 1px 0 #fffaf0; border-radius: 6px; }
.hv-book-3d { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.hv-book-3d > *, .hv-bk-cover > * { position: absolute; }
.hv-bk-back, .hv-bk-front, .hv-bk-inside { inset: 0; border-radius: 3px 8px 8px 3px; }
.hv-bk-back { border-radius: 8px 3px 3px 8px; background: linear-gradient(160deg, #3b1530, #1f0c1c); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95); }
.hv-bk-back, .hv-bk-pages, .hv-bk-top, .hv-bk-bottom, .hv-bk-spine { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.hv-bk-pages {
  background: repeating-linear-gradient(90deg, #f6eddc 0 2px, #e4d4b6 2px 3px);
  transform: rotateY(90deg);
}
.hv-bk-paper { top: 3px; bottom: 3px; left: 0; right: 3px; border-radius: 2px 6px 6px 2px; background: #f6eddc; box-shadow: inset -6px 0 14px rgba(80, 55, 20, 0.18); }
.hv-bk-top, .hv-bk-bottom { background: repeating-linear-gradient(180deg, #f6eddc 0 2px, #e4d4b6 2px 3px); }
.hv-bk-top { transform: rotateX(90deg); }
.hv-bk-bottom { transform: rotateX(-90deg); }
.hv-bk-spine {
  top: 0; bottom: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, #4a1a3c, #7a2456 50%, #4a1a3c);
  transform: rotateY(-90deg);
  overflow: hidden;
}
.hv-bk-spine span { writing-mode: vertical-rl; font-family: var(--font-display); font-style: italic; font-size: calc(12px / var(--tz, 1)); color: #ffe2c4; white-space: nowrap; letter-spacing: 0.04em; }
.hv-bk-cover { inset: 0; transform-style: preserve-3d; transform-origin: 0 50%; }
.hv-bk-front, .hv-bk-inside { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.hv-bk-front {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 18px 22px 22px;
  background:
    radial-gradient(90% 60% at 80% 12%, rgba(255, 200, 150, 0.35), transparent 60%),
    radial-gradient(120% 80% at 0% 100%, rgba(167, 139, 250, 0.45), transparent 60%),
    linear-gradient(160deg, #8e2a5f 0%, #5a1d4c 48%, #2a1036 100%);
  box-shadow: inset 4px 0 0 rgba(0, 0, 0, 0.25), inset 7px 0 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 220, 190, 0.18);
}
.hv-bk-front::after {
  /* the light catching the cover as it turns */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 45%, transparent 60%);
  background-size: 260% 100%;
  animation: hv-gleam 3.2s ease-in-out infinite;
  animation-play-state: var(--hv-play);
}
@keyframes hv-gleam { 0% { background-position: 100% 0; } 60%, 100% { background-position: -60% 0; } }
.hv-bk-art { position: absolute; left: 0; right: 0; top: 0; height: 62%; width: 100%; }
.hv-bk-title { position: relative; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: calc(25px / var(--tz, 1)); line-height: 1.08; color: #ffe7cc; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.hv-bk-rule { position: relative; display: block; width: 46px; height: 2px; margin: 10px 0 0; border-radius: 2px; background: linear-gradient(90deg, #ffc9a0, rgba(255, 201, 160, 0)); }
.hv-bk-inside { transform: rotateY(180deg); background: linear-gradient(90deg, #e9dbc0, #f6eddc); box-shadow: inset -10px 0 24px rgba(80, 55, 20, 0.25); }

/* ---- the flat effects over everything ----------------------------------- */
.hv-fx { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.hv-fx > * { position: absolute; }
.hv-threads { left: 0; top: 0; overflow: visible; }
.hv-threads path { fill: none; stroke-linecap: round; }
.hv-ring { width: 80px; height: 80px; border-radius: 50%; border: 3px solid rgba(255, 157, 192, 0.95); box-shadow: 0 0 30px rgba(240, 106, 155, 0.8), inset 0 0 22px rgba(196, 167, 255, 0.7); }
.hv-ring.is-orange { border-color: rgba(255, 178, 110, 0.95); box-shadow: 0 0 30px rgba(217, 106, 23, 0.8), inset 0 0 22px rgba(255, 200, 150, 0.7); }
.hv-ring.is-violet { border-color: rgba(196, 167, 255, 0.95); box-shadow: 0 0 30px rgba(139, 92, 246, 0.85), inset 0 0 22px rgba(160, 200, 255, 0.7); }
.hv-spark { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 10px currentColor, 0 0 6px rgba(255, 255, 255, 0.8); }
.hv-confetti { width: 7px; height: 11px; border-radius: 2px; }

/* "beat", flown out of the headline: the headline's own pill. */
.hv-beat {
  --c: 240, 106, 155;
  padding: 0.04em 0.36em 0.1em 0.5em;
  border-radius: 0.22em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: calc(30px / var(--tz, 1));
  line-height: 1.1;
  white-space: nowrap;
  color: #ffe1ec;
  transform-origin: 0 0;
  background: linear-gradient(160deg, rgba(var(--c), 0.5), rgba(var(--c), 0.18) 60%), #2a1a2c;
  box-shadow: inset 0 0 0 1.5px rgba(var(--c), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 30px -8px rgba(var(--c), 1), 0 0 50px -6px rgba(var(--c), 1);
}
.hv-beat::before {
  content: "";
  position: absolute;
  left: 0.18em; top: 0.22em;
  width: 0.14em; height: 0.14em;
  border-radius: 50%;
  background: rgb(var(--c));
  box-shadow: 0 0 0.3em rgb(var(--c));
}
.hv-beat.is-ghost { box-shadow: 0 0 40px -4px rgba(var(--c), 0.9); background: rgba(var(--c), 0.35); color: transparent; }
.hv-beat.is-ghost::before { display: none; }
.hx-beat.is-launch { animation: hv-launch 0.7s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes hv-launch { 30% { transform: rotate(-2deg) scale(1.18); box-shadow: inset 0 0 0 1.5px rgba(var(--c), 1), 0 0 60px rgba(var(--c), 1); } }

/* A feature's name, popping big near where it plays. */
.hv-badge {
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  font-size: calc(15px / var(--tz, 1));
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #c2336d, #8f2a9e);
  box-shadow: 0 12px 34px -8px rgba(240, 106, 155, 0.85), 0 0 0 4px rgba(240, 106, 155, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.hv-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hv-badge svg .is-fill { fill: currentColor; stroke: none; }
.hv-badge.is-orange { background: linear-gradient(135deg, #c95d12, #8f3f07); box-shadow: 0 12px 34px -8px rgba(217, 106, 23, 0.85), 0 0 0 4px rgba(217, 106, 23, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.hv-badge.is-violet { background: linear-gradient(135deg, #6d3fd0, #4a2aa8); box-shadow: 0 12px 34px -8px rgba(139, 92, 246, 0.85), 0 0 0 4px rgba(139, 92, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.hv-plus { font-size: calc(16px / var(--tz, 1)); font-weight: 900; color: #a8285a; text-shadow: 0 1px 0 #fff, 0 0 12px rgba(255, 255, 255, 0.9); white-space: nowrap; }

/* Words: blooming in (Expand pink, KudoAI violet), flying off. */
.hv-w { display: inline-block; animation: hv-w 0.5s cubic-bezier(.2, .9, .3, 1.25) both; animation-play-state: var(--hv-play); }
@keyframes hv-w { from { opacity: 0; transform: translateY(-16px) scale(1.5); color: #d23a78; } 55% { color: #b02a5c; } }
.hv-w.is-ai { animation-name: hv-w-ai; }
@keyframes hv-w-ai { from { opacity: 0; transform: translateY(-16px) scale(1.5); color: #6a3fc4; } 55% { color: #5a34b0; } }
.hv-tok { display: inline-block; }
/* Steer's change: what went struck, what came washed orange. */
.hv-del { color: #9a3412; text-decoration: line-through; text-decoration-color: rgba(194, 65, 12, 0.85); text-decoration-thickness: 2px; transition: opacity 0.35s; }
.hv-del.is-gone { opacity: 0; }
.hv-add { border-radius: 3px; background: rgba(245, 140, 60, 0.26); box-shadow: 0 0 0 2px rgba(245, 140, 60, 0.18); transition: background 1.2s, box-shadow 1.2s; }
.hv-add.is-calm { background: transparent; box-shadow: 0 0 0 2px transparent; }
.hv-pour { border-radius: 3px; background: linear-gradient(90deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0) 75%); animation: hv-pour 0.45s cubic-bezier(.2, .9, .3, 1.1) both; animation-play-state: var(--hv-play); }
@keyframes hv-pour { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.hv-sweep {
  z-index: 2;
  border-radius: 6px;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 157, 192, 0) 30%, rgba(255, 157, 192, 0.7) 47%, rgba(255, 255, 255, 0.95) 50%, rgba(196, 167, 255, 0.6) 54%, transparent 70%) no-repeat;
  background-size: 55% 100%;
}
.hv-sweep.is-orange { background-image: linear-gradient(100deg, transparent 0%, rgba(255, 178, 110, 0) 30%, rgba(255, 178, 110, 0.75) 47%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 200, 150, 0.6) 54%, transparent 70%); }

/* KudoAI: the orb (a comet as it comes), its chip with the paragraphs it wrote. */
.hv-orb {
  z-index: 4;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #c9e2ff 14%, #6aa9ff 38%, #6a3fc4 72%, #2a1a6a 100%);
  box-shadow: 0 0 30px rgba(106, 169, 255, 0.9), 0 0 80px rgba(139, 92, 246, 0.7);
}
.hv-orb i { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(160, 200, 255, 0.65); animation: hv-orb 1.2s ease-out infinite; animation-play-state: var(--hv-play); }
@keyframes hv-orb { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.hv-trail { z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, rgba(160, 200, 255, 0.9), rgba(139, 92, 246, 0.4) 50%, transparent 70%); }
.hv-chip {
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: #fffaf2;
  color: #3a2f22;
  font-size: calc(13px / var(--tz, 1));
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(80, 60, 30, 0.12), 0 0 40px -6px rgba(139, 92, 246, 0.7);
  transform-origin: 100% 50%;
}
.hv-chip-who { font-size: calc(10.5px / var(--tz, 1)); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #5a34b0; }
.hv-chip-n { min-width: 46px; padding: 3px 10px; border-radius: 999px; font-size: calc(14px / var(--tz, 1)); font-weight: 900; color: #fff; background: #5a34b0; font-variant-numeric: tabular-nums; text-align: center; }
.hv-beam { z-index: 3; height: 3px; margin-top: -1.5px; transform-origin: 0 50%; border-radius: 3px; background: linear-gradient(90deg, rgba(106, 169, 255, 0.95), #fff, rgba(167, 139, 250, 0.95)); box-shadow: 0 0 16px rgba(160, 200, 255, 0.95); }

/* The finished book's words, under it. */
.hv-total {
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: calc(15px / var(--tz, 1));
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #c2336d, #6d3fd0);
  box-shadow: 0 16px 40px -10px rgba(240, 106, 155, 0.8), 0 0 0 4px rgba(240, 106, 155, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.hv-total b { font-size: calc(19px / var(--tz, 1)); font-weight: 900; font-variant-numeric: tabular-nums; }

/* The margin's buttons in the app's colours: Expand pink, Steer orange. */
.hv .pm-btn.is-expand { color: #a8285a; border-color: rgba(168, 40, 90, 0.45); }
.hv .pm-btn.is-expand .pm-ico { width: 14px; height: 14px; }
.hv .pm-btn.is-steer { color: #9a4708; border-color: rgba(154, 71, 8, 0.45); }
.hv .pm-btn.is-expand.is-press { box-shadow: 0 0 0 6px rgba(217, 77, 130, 0.3); }
.hv .pm-btn.is-steer.is-press { box-shadow: 0 0 0 6px rgba(217, 106, 23, 0.3); }
.hv .pm-box.is-steer { border-color: rgba(154, 71, 8, 0.4); }
.hv .pm-box.is-steer .pm-box-label { color: #9a4708; border-right-color: rgba(154, 71, 8, 0.4); }
.hv .pm-box.is-steer .pm-go { background: linear-gradient(180deg, #d96a17, #b55510); }
.hv .pm-box.is-steer .pm-go.is-press { box-shadow: 0 0 0 5px rgba(217, 106, 23, 0.3); }
.hv .pm-para.is-running.is-steering .pm-text::before { background: #d96a17; box-shadow: 0 0 8px rgba(217, 106, 23, 0.6); }

/* ---- smaller screens ---------------------------------------------------- */
@media (max-width: 1000px) {
  .hv { min-height: 0; padding: 76px 0 96px; }
  .hv-float { width: min(440px, calc(100% - 200px)); }
}
@media (max-width: 720px) {
  .hv { padding: 70px 0 86px; }
  .hv-float { width: calc(100% - 20px); max-width: 420px; }
  .hv .hv-page { min-height: 440px; }
  .hv-halo i:nth-child(1) { width: 480px; height: 480px; margin: -240px 0 0 -240px; }
  .hv-halo i:nth-child(2) { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .hv-halo i:nth-child(3) { width: 460px; height: 460px; margin: -230px 0 0 -230px; }
  .hv-card { width: 136px; }
  .hv-card-in { padding: 8px 10px 9px; }
  .hv-card b { font-size: calc(11.5px / var(--tz, 1)); }
  .hv-card-fact { font-size: calc(10.5px / var(--tz, 1)); }
  .hv-av { width: 20px; height: 20px; font-size: calc(10.5px / var(--tz, 1)); }
  .hv-av.has-face { width: 30px; height: 30px; }
  .hv-av.is-thing { width: 38px; height: 25px; }
  .hv-card em { display: none; }
  .hv-badge { font-size: calc(13px / var(--tz, 1)); padding: 7px 13px 7px 11px; }
  .hv-orb { width: 44px; height: 44px; }
  .hv-chip { font-size: calc(12px / var(--tz, 1)); }
  .hv-total { font-size: calc(13px / var(--tz, 1)); }
  .hv-total b { font-size: calc(16px / var(--tz, 1)); }
  .hv-bk-title { font-size: calc(20px / var(--tz, 1)); }
}
@media (prefers-reduced-motion: reduce) {
  .hv *, .hv *::before, .hv *::after { animation: none !important; transition: none !important; }
  .hv-float { transform: none; }
}
