/* demo3 service page scenes (src/scenes.mjs): one animated hero per service, in the
   theme's colours. Loaded after site.css, which provides the shared keyframes
   (bob, blink, ping, pulse, breathe, zoomIn). Reduced motion is handled in site.css. */

.scene {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 470px;
  margin-left: auto;
  animation: zoomIn 0.9s 0.1s var(--ease) both;
}
.scene::before {
  content: '';
  position: absolute;
  inset: 4% 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 151, 26, 0.22), rgba(247, 151, 26, 0) 68%);
  z-index: -1;
  animation: breathe 7s ease-in-out infinite;
}
.sc-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--sh-2);
}
.sc-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--sh-2);
  animation: bob 5s ease-in-out infinite;
}
.sc-chip .ic {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: var(--brand-t);
  color: var(--brand-2);
  flex: none;
}
.sc-chip b {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
}
.sc-chip small {
  font-size: 12.5px;
  color: var(--ink-3);
}
.sc-chip.p2 {
  animation-delay: 1.4s;
}

/* ---------- mutual funds: SIP bars rise, the value line draws ---------- */
.mf-dash {
  inset: 50px 30px 60px 30px;
  padding: 22px 22px 16px;
  display: flex;
  flex-direction: column;
}
.mf-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.mf-top small {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}
.mf-top b {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.mf-up {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-t);
  color: var(--green-d);
  font-weight: 700;
  font-size: 13px;
}
.mf-up .ic {
  width: 16px;
  height: 16px;
}
.mf-chart {
  width: 100%;
  height: 110px;
  margin-top: 10px;
}
.mf-line {
  fill: none;
  stroke: var(--brand-2);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  animation: drawLoop 8s ease-in-out infinite;
}
.mf-area {
  animation: fadeLoop 8s ease-in-out infinite;
}
.mf-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
}
.mf-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #ffb347, #f5820d);
  transform-origin: bottom;
  animation: barLoop 8s calc(var(--i) * 0.15s) ease-out infinite;
}
.mf-cap {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
}
.mf-cap b {
  color: var(--ink);
}
.sc-coin {
  position: absolute;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #ffd25a 40%, #e09b12 75%);
  box-shadow: 0 4px 10px rgba(120, 50, 0, 0.3);
  z-index: 4;
  opacity: 0;
  animation: coinDrop 4s ease-in infinite;
}
.sc-coin::after {
  content: '₹';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #a65c00;
}
.sc-coin.c1 {
  right: 22%;
}
.sc-coin.c2 {
  right: 34%;
  animation-delay: 2s;
}
.sc-mf .p1 {
  left: -20px;
  top: 6px;
}
.sc-mf .p2 {
  right: -10px;
  bottom: -14px;
}

/* ---------- NRI: routes into Hubballi, planes, live clocks ---------- */
.nri-map {
  position: absolute;
  inset: 20px 0 90px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(400px 260px at 75% 65%, #4aa3ff, transparent 70%),
    linear-gradient(150deg, #2a7fd6, #175aa8);
  box-shadow: var(--sh-2);
}
.nri-svg {
  width: 100%;
  height: 100%;
}
.nri-route {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.6;
  stroke-dasharray: 5 6;
  animation: dashFlow 1.6s linear infinite;
}
.nri-city circle,
.nri-home circle {
  fill: #ffb347;
  stroke: #fff;
  stroke-width: 2;
}
.nri-home circle {
  fill: var(--brand);
}
.nri-city .nri-ping,
.nri-home .nri-ping {
  fill: none;
  stroke: #ffb347;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 2.4s ease-out infinite;
}
.nri-city text,
.nri-home text {
  fill: #fff;
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
}
.nri-home text {
  font-size: 16px;
  font-weight: 800;
}
.nri-plane path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nri-clocks {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  background: #111;
  border-radius: 16px;
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.nri-clocks div {
  padding: 12px 20px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.nri-clocks div:first-child {
  border-left: 0;
}
.nri-clocks small {
  display: block;
  color: #c9c2b8;
  font-size: 12px;
}
.nri-clocks b {
  color: var(--brand);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.sc-nri .p1 {
  left: -18px;
  top: 0;
}
.sc-nri .p2 {
  left: -18px;
  top: 300px;
}

/* ---------- term life: rain stops at the umbrella over the family ---------- */
.life-rain {
  position: absolute;
  inset: 0 0 80px;
  overflow: hidden;
}
.life-rain i {
  position: absolute;
  top: -30px;
  left: var(--x);
  width: 2px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(47, 128, 237, 0), rgba(47, 128, 237, 0.7));
  animation: rain 1.4s var(--d) linear infinite;
}
.life-rain i.hit {
  animation-name: rainHit;
}
.life-umb {
  position: absolute;
  left: 50%;
  top: 70px;
  width: 300px;
  z-index: 2;
  filter: drop-shadow(0 16px 24px rgba(160, 70, 0, 0.25));
  transform-origin: 50% 90%;
  animation: sway 6s ease-in-out infinite;
}
.umb-top {
  fill: var(--brand);
}
.umb-rib {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 2;
}
.umb-handle {
  fill: none;
  stroke: #111;
  stroke-width: 6;
  stroke-linecap: round;
}
.life-family {
  position: absolute;
  left: 50%;
  top: 200px;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 120px;
  z-index: 1;
}
.fam {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fam i {
  width: calc(var(--hh) * 0.42);
  height: calc(var(--hh) * 0.42);
  border-radius: 50%;
  background: #3a2a1a;
  margin-bottom: 4px;
}
.fam b {
  width: calc(var(--hh) * 0.62);
  height: var(--hh);
  border-radius: 20px 20px 6px 6px;
  background: linear-gradient(180deg, #2f80ed, #1b5cb5);
}
.fam.k b {
  background: linear-gradient(180deg, #2fb36b, #1c7a45);
}
.fam:last-child b {
  background: linear-gradient(180deg, #ec6a5b, #a8342a);
}
.life-card {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  white-space: nowrap;
  z-index: 3;
}
.life-shield {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
}
.life-shield::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: pulse 2s ease-out infinite;
}
.life-card small {
  display: block;
  color: var(--ink-3);
  font-size: 12.5px;
}
.life-card b {
  font-size: 18px;
  color: var(--ink);
}
.life-card em {
  display: block;
  font-style: normal;
  color: var(--ink-3);
  font-size: 12.5px;
}
.sc-life .p1 {
  right: -10px;
  top: 30px;
}

/* ---------- health: heart monitor and claim checks ---------- */
.hl-mon {
  left: 10px;
  right: 40px;
  top: 30px;
  background: #111;
  border-color: #111;
  padding: 20px 22px 16px;
}
.hl-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hl-top small {
  display: block;
  color: #c9c2b8;
  font-size: 12.5px;
}
.hl-top b {
  font-size: 28px;
  color: #fff;
}
.hl-top em {
  font-style: normal;
  font-size: 14px;
  color: #c9c2b8;
}
.hl-heart {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(236, 106, 91, 0.18);
  color: #ff7a6b;
  animation: beat 1.2s ease-in-out infinite;
}
.hl-heart .ic {
  width: 28px;
  height: 28px;
}
.hl-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #6ee7a0;
}
.hl-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7a0;
  animation: blink 1.2s infinite;
}
.hl-ecg {
  width: 100%;
  height: 90px;
  margin-top: 12px;
}
.hl-ecg path {
  fill: none;
  stroke: #6ee7a0;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-dasharray: 0.4 0.6;
  animation: ecg 2.4s linear infinite;
  filter: drop-shadow(0 0 4px rgba(110, 231, 160, 0.8));
}
.hl-checks {
  list-style: none;
  margin: 0;
  right: 0;
  bottom: 10px;
  width: 270px;
  padding: 16px 18px;
  z-index: 2;
}
.hl-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.hl-checks .ic {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--line);
  color: #fff;
  animation: tickOn 8s calc(var(--i) * 0.7s + 0.6s) infinite;
}
.hl-plus i {
  position: absolute;
  bottom: 40px;
  left: var(--x);
  font-style: normal;
  font-weight: 800;
  font-size: 22px;
  color: var(--brand-2);
  opacity: 0;
  animation: floatUp 5.6s var(--d) ease-out infinite;
}
.hl-ok {
  position: absolute;
  left: 0;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--green-d);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--sh-2);
  z-index: 3;
  opacity: 0;
  animation: popLoop 8s 3.4s infinite;
}

/* ---------- loan against MF: units stay, money flows out ---------- */
.lf-funds {
  left: 0;
  top: 30px;
  width: 230px;
  padding: 18px;
}
.lf-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--ink);
}
.lf-h span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green-t);
  color: var(--green-d);
}
.lf-units {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.lf-units i {
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(140deg, #ffb347, #f5820d);
  animation: shimmer 3s calc(var(--i) * 0.2s) ease-in-out infinite;
}
.lf-spark {
  width: 100%;
  height: 36px;
  margin-top: 12px;
}
.lf-spark path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.4;
  stroke-dasharray: 1;
  animation: drawLoop 6s ease-in-out infinite;
}
.lf-lock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-d);
}
.lf-lock .ic {
  width: 16px;
  height: 16px;
}
.lf-flow {
  position: absolute;
  left: 230px;
  right: 190px;
  top: 140px;
  height: 40px;
}
.lf-flow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px dashed rgba(245, 130, 13, 0.5);
}
.lf-flow i {
  position: absolute;
  top: 6px;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  border-radius: 6px;
  background: #2fb36b;
  color: #fff;
  font-style: normal;
  font-weight: 800;
  opacity: 0;
  animation: notes 3.2s calc(var(--i) * 0.8s) linear infinite;
}
.lf-wallet {
  right: 0;
  top: 90px;
  width: 190px;
  padding: 18px;
  text-align: center;
}
.lf-wic {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(140deg, #ffb347, #f5820d);
  color: var(--on-brand);
  animation: beat 3.2s ease-in-out infinite;
}
.lf-wallet small {
  display: block;
  color: var(--ink-3);
  font-size: 12.5px;
}
.lf-wallet b {
  font-size: 22px;
  color: var(--ink);
}
.lf-meter {
  left: 40px;
  right: 40px;
  bottom: 20px;
  padding: 18px 20px;
}
.lf-meter p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-3);
}
.lf-meter b {
  color: var(--ink);
}
.lf-bar {
  height: 12px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
}
.lf-bar i {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb347, #f5820d);
  transform-origin: left;
  animation: barX 6s ease-in-out infinite;
}
.lf-meter small {
  display: block;
  margin-top: 8px;
  color: var(--green-d);
  font-weight: 600;
  font-size: 13px;
}

/* ---------- ITR: the form fills, regimes compare, FILED stamp ---------- */
.it-doc {
  left: 0;
  top: 20px;
  width: 300px;
  padding: 20px;
}
.it-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.it-h span {
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
}
.it-h small {
  color: var(--ink-3);
}
.it-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.it-row span {
  width: 120px;
  flex: none;
}
.it-row i {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb347, #f5820d);
  transform-origin: left;
  animation: fillRow 9s calc(var(--i) * 0.6s) ease-out infinite;
}
.it-row .ic {
  width: 18px;
  height: 18px;
  color: var(--green-d);
  opacity: 0;
  animation: tickShow 9s calc(var(--i) * 0.6s + 0.5s) infinite;
}
.it-ais {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--green-t);
  color: var(--green-d);
  font-weight: 700;
  font-size: 13.5px;
}
.it-ais .ic {
  width: 16px;
  height: 16px;
}
.it-stamp {
  position: absolute;
  right: -40px;
  bottom: -34px;
  padding: 8px 18px;
  border: 4px solid var(--green-d);
  border-radius: 10px;
  color: var(--green-d);
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  animation: stamp 9s 3.2s infinite;
}
.it-cmp {
  right: 0;
  top: 180px;
  width: 210px;
  padding: 18px;
  z-index: 2;
}
.it-cmp small {
  color: var(--ink-3);
  font-size: 12.5px;
}
.it-bars {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 120px;
  margin: 10px 0;
  border-bottom: 1px solid var(--line);
}
.it-bars span {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}
.it-bars i {
  display: block;
  border-radius: 8px 8px 0 0;
  margin-bottom: 6px;
  transform-origin: bottom;
  animation: barLoop 9s 1s ease-out infinite;
}
.it-bars .a i {
  height: 80%;
  background: #d6cfc4;
}
.it-bars .b i {
  height: 52%;
  background: linear-gradient(180deg, #ffb347, #f5820d);
  animation-delay: 1.3s;
}
.it-cmp p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
}
.it-cmp p .ic {
  width: 18px;
  height: 18px;
  color: var(--brand-2);
}
.sc-itr .p1 {
  right: 10px;
  top: 40px;
}

/* ---------- DSC: token plugs in, signature writes, seal appears ---------- */
.ds-doc {
  left: 0;
  right: 60px;
  top: 20px;
  padding: 22px 24px;
}
.ds-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-weight: 800;
  color: var(--ink);
}
.ds-h .ic {
  color: var(--brand-2);
}
.ds-line {
  display: block;
  width: var(--w);
  height: 9px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--line-2);
}
.ds-sign {
  margin-top: 18px;
  width: 240px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
}
.ds-sign svg {
  width: 100%;
  height: 70px;
}
.ds-sign path {
  fill: none;
  stroke: #1b3c8f;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: signLoop 8s 1.4s ease-in-out infinite;
}
.ds-sign small {
  color: var(--ink-3);
  font-size: 12.5px;
}
.ds-seal {
  position: absolute;
  right: 22px;
  bottom: 26px;
  display: grid;
  justify-items: center;
  align-content: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px dashed var(--green-d);
  color: var(--green-d);
  text-align: center;
  background: #f3fbf6;
  opacity: 0;
  animation: sealLoop 8s 3.4s infinite;
}
.ds-seal .ic {
  width: 28px;
  height: 28px;
}
.ds-seal b {
  font-size: 13.5px;
}
.ds-seal small {
  font-size: 11px;
}
.ds-token {
  position: absolute;
  right: 0;
  top: 120px;
  display: flex;
  align-items: center;
  z-index: 3;
  animation: plug 8s ease-in-out infinite;
}
.ds-cap {
  width: 22px;
  height: 26px;
  background: linear-gradient(#d9d9d9, #9c9c9c);
  border-radius: 4px 0 0 4px;
}
.ds-body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 46px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: var(--sh-2);
}
.ds-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6ee7a0;
  animation: blink 0.8s infinite;
}
.sc-dsc .p1 {
  left: -16px;
  bottom: 30px;
}
.sc-dsc .p2 {
  right: -4px;
  bottom: -10px;
}

/* fact bar numbers count up (motion.js) and settle in orange */
.factbar b.counted {
  color: var(--brand-2);
  transition: color 0.6s;
}

/* ---------- keyframes ---------- */
@keyframes drawLoop {
  0% {
    stroke-dashoffset: 1;
    opacity: 1;
  }
  45%,
  90% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes fadeLoop {
  0%,
  20% {
    opacity: 0;
  }
  50%,
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes barLoop {
  0% {
    transform: scaleY(0);
  }
  20%,
  88% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
  }
}
@keyframes coinDrop {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  60% {
    transform: translateY(300px) rotate(220deg);
    opacity: 1;
  }
  70%,
  100% {
    transform: translateY(300px) rotate(220deg);
    opacity: 0;
  }
}
@keyframes dashFlow {
  to {
    stroke-dashoffset: -22;
  }
}
@keyframes rain {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(400px);
    opacity: 0.6;
  }
}
@keyframes rainHit {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  85% {
    transform: translateY(var(--end));
    opacity: 1;
  }
  100% {
    transform: translateY(var(--end)) scaleY(0.2);
    opacity: 0;
  }
}
@keyframes sway {
  0%,
  100% {
    transform: translateX(-50%) rotate(-3deg);
  }
  50% {
    transform: translateX(-50%) rotate(3deg);
  }
}
@keyframes beat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.15);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.1);
  }
}
@keyframes ecg {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes tickOn {
  0%,
  8% {
    background: var(--line);
    transform: scale(1);
  }
  12% {
    background: var(--green);
    transform: scale(1.3);
  }
  16%,
  90% {
    background: var(--green);
    transform: scale(1);
  }
  100% {
    background: var(--line);
  }
}
@keyframes floatUp {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-260px);
    opacity: 0;
  }
}
@keyframes popLoop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  6%,
  80% {
    transform: scale(1);
    opacity: 1;
  }
  90%,
  100% {
    transform: scale(0.9);
    opacity: 0;
  }
}
@keyframes shimmer {
  50% {
    filter: brightness(1.18);
  }
}
@keyframes notes {
  0% {
    left: 0;
    opacity: 0;
  }
  10%,
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 30px);
    opacity: 0;
  }
}
@keyframes barX {
  0% {
    transform: scaleX(0);
  }
  35%,
  90% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes fillRow {
  0% {
    transform: scaleX(0);
  }
  12%,
  92% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes tickShow {
  0%,
  6% {
    opacity: 0;
  }
  10%,
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes stamp {
  0% {
    opacity: 0;
    transform: rotate(-12deg) scale(2.2);
  }
  4% {
    opacity: 1;
    transform: rotate(-12deg) scale(0.95);
  }
  6%,
  60% {
    opacity: 1;
    transform: rotate(-12deg) scale(1);
  }
  66%,
  100% {
    opacity: 0;
    transform: rotate(-12deg) scale(1);
  }
}
@keyframes signLoop {
  0% {
    stroke-dashoffset: 1;
    opacity: 1;
  }
  30%,
  85% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  95%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes sealLoop {
  0% {
    opacity: 0;
    transform: scale(0.4) rotate(-30deg);
  }
  6%,
  60% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
  68%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes plug {
  0%,
  100% {
    transform: translateX(40px);
  }
  12%,
  80% {
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .scene {
    margin: 10px auto 0;
  }
}
@media (max-width: 600px) {
  .scene {
    height: 440px;
  }
  .sc-chip {
    display: none;
  }
  .mf-dash {
    inset: 30px 0 50px;
  }
  .nri-clocks div {
    padding: 10px 12px;
  }
  .nri-clocks b {
    font-size: 18px;
  }
  .lf-funds {
    width: 160px;
    padding: 14px;
  }
  .lf-flow {
    left: 160px;
    right: 136px;
  }
  .lf-wallet {
    width: 136px;
    padding: 14px 10px;
  }
  .lf-wallet b {
    font-size: 17px;
  }
  .lf-meter {
    left: 0;
    right: 0;
  }
  .it-doc {
    width: auto;
    right: 0;
  }
  .it-row span {
    width: 110px;
  }
  .it-cmp {
    display: none;
  }
  .it-stamp {
    right: 10px;
    bottom: -26px;
    font-size: 22px;
  }
  .ds-doc {
    right: 20px;
  }
  .ds-sign {
    width: 180px;
  }
  .ds-seal {
    width: 104px;
    height: 104px;
    right: 10px;
  }
  .hl-mon {
    left: 0;
    right: 0;
  }
  .hl-checks {
    width: 230px;
  }
  .life-umb {
    width: 260px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hl-checks .ic {
    background: var(--green);
  }
  .mf-line,
  .lf-spark path,
  .ds-sign path {
    stroke-dashoffset: 0;
  }
  .hl-ecg path {
    stroke-dasharray: none;
  }
  .ds-seal,
  .it-stamp,
  .hl-ok,
  .it-row .ic {
    opacity: 1;
  }
  .life-rain,
  .sc-coin,
  .lf-flow i,
  .hl-plus {
    display: none;
  }
}

/* ---------- goal pages (src/goalscenes.mjs): a drawn scene per goal ----------
   Base styles are the finished picture; the keyframes animate towards it, so with
   reduced motion (site.css shortens every animation) the scene shows complete. */
.gs {
  --t: var(--brand-2);
  --td: var(--brand-d);
}
.gs.tone-green {
  --t: var(--green);
  --td: var(--green-d);
}
.gs.tone-teal {
  --t: var(--teal);
  --td: var(--teal-d);
}
.gs-stage {
  position: absolute;
  top: 24px;
  left: 50px;
  right: 0;
  height: 330px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-2);
}
.gs-stage > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.gs-stage text {
  font-family: var(--font);
  text-anchor: middle;
}
.gs-card {
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 300px;
  padding: 16px 18px 14px;
}
.gs-card small {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
}
.gs-card > b {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.gs-card > p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}
.gs-card em {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-style: normal;
  color: var(--ink-3);
}
.gs-meter {
  display: block;
  height: 8px;
  margin-top: 12px;
  border-radius: 99px;
  background: var(--line-2);
  overflow: hidden;
}
.gs-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--t);
  transform-origin: left;
  animation: gsMeter 6s var(--ease) 0.4s infinite;
}
.gs-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.gs-sip {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.gs-sip b {
  font-size: 21px;
  font-weight: 800;
  color: var(--td);
}
.gs-bars p {
  display: grid;
  grid-template-columns: 84px 1fr 62px;
  align-items: center;
  gap: 8px;
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}
.gs-bars p.on {
  font-weight: 700;
  color: var(--ink);
}
.gs-bars p i {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: var(--line-2);
}
.gs-bars p i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: #dccfbd;
  transform-origin: left;
  animation: gsBar 1.2s var(--ease) calc(0.4s + var(--i) * 0.15s) both;
}
.gs-bars p.on i::after {
  background: var(--t);
}
.gs-bars p b {
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.gs .sc-chip .ic {
  background: var(--t);
  color: #fff;
}
.gs .sc-chip.p1 {
  top: 0;
  right: 14px;
}
.gs .sc-chip.p2 {
  right: -6px;
  bottom: 44px;
}

/* shared pieces: stars, birds, clouds, palms */
.gs-star {
  fill: #ffc94a;
  transform-box: fill-box;
  transform-origin: center;
  animation: gsTwinkle 3s ease-in-out calc(var(--i) * 0.7s) infinite;
}
.gs-bird {
  fill: none;
  stroke: #7a3b22;
  stroke-width: 2.2;
  stroke-linecap: round;
  animation: gsFly 16s linear calc(var(--i) * -4s) infinite;
}
.gs-cloud {
  animation: gsDrift 16s ease-in-out calc(var(--i) * -5s) infinite alternate;
}
.gs-trunk {
  fill: none;
  stroke: #7a4526;
  stroke-width: 9;
  stroke-linecap: round;
}
.gs-fronds path {
  fill: none;
  stroke: #2f8a55;
  stroke-width: 9;
  stroke-linecap: round;
}
.gs-fronds {
  animation: gsSway 4s ease-in-out infinite alternate;
}

/* retirement */
.gs-sun {
  animation: gsSink 9s ease-in-out infinite alternate;
}
.gs-sil {
  fill: #5a2a1c;
}

/* education */
.gs-book {
  animation: gsDrop 0.7s var(--ease) calc(0.2s + var(--i) * 0.18s) both;
}
.gs-cap {
  transform-box: fill-box;
  transform-origin: center;
  animation: gsToss 4.5s var(--ease) 1.2s infinite;
}
.gs-tassel {
  transform-origin: 266px 160px;
  animation: gsSway 1.6s ease-in-out infinite alternate;
}

/* marriage */
.gs-swag {
  fill: none;
  stroke: #f7971a;
  stroke-width: 11;
  stroke-linecap: round;
  stroke-dasharray: 0.1 12;
}
.gs-garl {
  transform-box: fill-box;
  transform-origin: top;
  animation: gsSway 3s ease-in-out calc(var(--i) * -0.5s) infinite alternate;
}
.gs-rings {
  animation: bob 5s ease-in-out infinite;
}
.gs-petal {
  transform-box: fill-box;
  transform-origin: center;
  animation: gsFall 6s linear calc(var(--i) * -0.6s) infinite;
}

/* home */
.gs-walls {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: gsRise 1s var(--ease) 0.2s both;
}
.gs-roof {
  animation: gsRoof 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) 1.1s both;
}
.gs-win {
  fill: #ffe08a;
  animation: gsLight 4s ease-in-out 1.8s infinite;
}
.gs-win.w2 {
  animation-delay: 2.4s;
}
.gs-smoke {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: gsSmoke 3s ease-out calc(2s + var(--i) * 1s) infinite;
}
.gs-key {
  transform-box: fill-box;
  transform-origin: top center;
  animation: gsSway 2.6s ease-in-out infinite alternate;
}

/* tax saving: the years light one by one, then the lock opens */
.gs-yr rect {
  fill: var(--teal);
}
.gs-yr text {
  font-size: 14px;
  font-weight: 700;
  fill: #fff;
}
.gs-yr {
  animation: gsYear0 7s ease infinite;
}
.gs-yr.y1 {
  animation-name: gsYear1;
}
.gs-yr.y2 {
  animation-name: gsYear2;
}
.gs-shackle {
  transform: translateY(-20px);
  animation: gsUnlock 7s var(--ease) infinite;
}
.gs-open rect {
  fill: var(--green);
}
.gs-open text {
  font-size: 15px;
  font-weight: 800;
  fill: #fff;
}
.gs-open {
  transform-box: fill-box;
  transform-origin: center;
  animation: gsOpen 7s var(--ease) infinite;
}

/* emergency fund */
.gs-level {
  transform: translateY(var(--lv));
  animation: gsFill 2.4s var(--ease) calc(0.3s + var(--i) * 0.3s) both;
}
.gs-wave {
  animation: gsWave 3s linear infinite;
}
.gs-amt {
  font-size: 18px;
  font-weight: 800;
  fill: var(--ink);
}
.gs-lbl {
  font-size: 14px;
  font-weight: 700;
  fill: var(--ink-2);
}
.gs-mo {
  font-size: 12px;
  fill: var(--ink-3);
}

/* yearly expenses: the calendar */
.gs-cal {
  padding: 18px 20px;
  background: linear-gradient(180deg, #fff2df, #fffaf3);
}
.gs-cal-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ink);
}
.gs-cal-h .ic {
  width: 20px;
  height: 20px;
  color: var(--brand-2);
}
.gs-months {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.gs-months span {
  position: relative;
  height: 89px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  animation: gsMonth 12s ease-in-out calc(var(--i) * 1s) infinite;
}
.gs-months .due {
  border-color: #ffc98a;
}
.gs-months b {
  font-size: 13px;
  color: var(--ink-2);
}
.gs-months i {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  color: var(--brand-d);
  background: linear-gradient(135deg, #ffe08a, #f5b82e);
  animation: gsCoinIn 12s var(--ease) calc(var(--i) * 1s) infinite;
}
.gs-months small {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 5px;
  padding: 2px 4px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--brand-d);
  background: var(--brand-t);
}

/* vacation */
.gs-route {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 9;
}
.gs-sea {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.7;
  animation: gsDrift 5s ease-in-out calc(var(--i) * -1.5s) infinite alternate;
}
.gs-bag {
  animation: bob 4s ease-in-out infinite;
}

/* self development */
.gs-step {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: gsRise 0.8s var(--ease) calc(0.2s + var(--i) * 0.15s) both;
}
.gs-bulb {
  animation: gsGlow 7s ease-in-out infinite;
}
.gs-medal {
  animation: bob 5s ease-in-out 1s infinite;
}

@keyframes gsMeter {
  0% {
    transform: scaleX(0.04);
  }
  60%,
  100% {
    transform: scaleX(1);
  }
}
@keyframes gsBar {
  from {
    transform: scaleX(0);
  }
}
@keyframes gsTwinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes gsFly {
  from {
    transform: translateX(-140px);
  }
  to {
    transform: translateX(560px);
  }
}
@keyframes gsDrift {
  from {
    transform: translateX(-24px);
  }
  to {
    transform: translateX(30px);
  }
}
@keyframes gsSway {
  from {
    transform: rotate(-4deg);
  }
  to {
    transform: rotate(4deg);
  }
}
@keyframes gsSink {
  to {
    transform: translateY(16px);
  }
}
@keyframes gsDrop {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
}
@keyframes gsToss {
  0%,
  55%,
  100% {
    transform: none;
  }
  25% {
    transform: translateY(-64px) rotate(-14deg);
  }
  40% {
    transform: translateY(-14px) rotate(5deg);
  }
}
@keyframes gsFall {
  from {
    transform: translateY(-30px) rotate(0deg);
  }
  to {
    transform: translateY(330px) rotate(360deg);
  }
}
@keyframes gsRise {
  from {
    transform: scaleY(0);
  }
}
@keyframes gsRoof {
  from {
    opacity: 0;
    transform: translateY(-140px);
  }
}
@keyframes gsLight {
  0%,
  100% {
    fill: #ffe08a;
  }
  50% {
    fill: #fff6cf;
  }
}
@keyframes gsSmoke {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  20% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(14px, -60px) scale(1.4);
  }
}
@keyframes gsYear0 {
  0%,
  6% {
    opacity: 0.35;
  }
  10%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
  }
}
@keyframes gsYear1 {
  0%,
  20% {
    opacity: 0.35;
  }
  24%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
  }
}
@keyframes gsYear2 {
  0%,
  34% {
    opacity: 0.35;
  }
  38%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
  }
}
@keyframes gsUnlock {
  0%,
  48% {
    transform: none;
  }
  56%,
  94% {
    transform: translateY(-20px);
  }
  100% {
    transform: none;
  }
}
@keyframes gsOpen {
  0%,
  52% {
    opacity: 0;
    transform: scale(0.6);
  }
  58%,
  94% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
@keyframes gsFill {
  from {
    transform: translateY(250px);
  }
}
@keyframes gsWave {
  to {
    transform: translateX(110px);
  }
}
@keyframes gsMonth {
  0%,
  8%,
  100% {
    transform: none;
    box-shadow: none;
  }
  3% {
    transform: translateY(-4px);
    box-shadow:
      0 0 0 3px var(--brand),
      0 10px 24px rgba(245, 130, 13, 0.25);
  }
}
@keyframes gsCoinIn {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.4);
  }
  3%,
  72% {
    opacity: 1;
    transform: none;
  }
  78%,
  100% {
    opacity: 0;
    transform: none;
  }
}
@keyframes gsGlow {
  0%,
  70%,
  100% {
    opacity: 0.45;
  }
  80%,
  95% {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .gs-stage {
    top: 0;
    left: 0;
    height: 262px;
  }
  .gs-card {
    right: 18px;
    width: auto;
  }
  .gs-months {
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
  }
  .gs-months span {
    height: 54px;
    padding: 6px 7px;
  }
  .gs-months small {
    left: 4px;
    right: 4px;
    bottom: 4px;
    padding: 1px 4px;
    font-size: 9.5px;
  }
  .gs-months i {
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
  .gs-cal {
    padding: 14px;
  }
  .gs-cal-h {
    margin-bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gs-petal,
  .gs-smoke,
  .gs-bird {
    display: none;
  }
}

/* the Goals menu in the header: a small copy of each goal's scene (goalThumbs) */
.gs-thumb {
  position: relative;
  flex: none;
  width: 96px;
  height: 63px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.2s;
}
.mega-goal:hover .gs-thumb {
  box-shadow:
    0 0 0 2px var(--brand),
    0 6px 16px rgba(245, 130, 13, 0.2);
}
.gs-thumb-in {
  position: absolute;
  top: 0;
  left: 0;
  width: 520px;
  height: 340px;
  transform: scale(0.1846);
  transform-origin: 0 0;
}
.gs-thumb .gs-stage {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}
/* the one-off build-ups (walls, books, steps, tanks) would finish while the menu is
   hidden and Chrome then skips repainting them, so thumbnails show them already built;
   the looping motion (sway, drift, glow) still plays */
.gs-thumb .gs-walls,
.gs-thumb .gs-roof,
.gs-thumb .gs-book,
.gs-thumb .gs-step,
.gs-thumb .gs-level {
  animation: none;
}

/* ---------- home scenes (src/homescenes.mjs): Built in Hubballi, Investor awareness, Follow along ----------
   Drawn in the logo's colours. Every element rests in its finished state; the keyframes bring it there. */
.hs {
  position: relative;
  container-type: inline-size;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--sh-2);
  isolation: isolate;
}
.hs > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hs-aware {
  aspect-ratio: 4 / 3.6;
  background: #e6f4f7;
}
.hs-follow {
  aspect-ratio: 4 / 4.2;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(72, 168, 192, 0.22), transparent 70%),
    linear-gradient(160deg, #e6f4f7 0%, #f3fafb 55%, #fff2df 100%);
}
.hs-chip {
  padding: clamp(6px, 1.6cqw, 10px) clamp(8px, 2.2cqw, 14px);
  gap: clamp(6px, 1.6cqw, 10px);
}
.hs-chip .ic {
  width: clamp(24px, 5.8cqw, 34px);
  height: clamp(24px, 5.8cqw, 34px);
  padding: clamp(5px, 1.2cqw, 7px);
}
.hs-chip b {
  font-size: clamp(11.5px, 2.5cqw, 14.5px);
}
.hs-chip small {
  font-size: clamp(10px, 2.1cqw, 12.5px);
}

/* Built in Hubballi: a planning session at the office */

/* Investor awareness */
.hs-scr-k {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  fill: #232323;
}
.hs-bar {
  fill: url(#hs2-bar);
  transform-box: fill-box;
  transform-origin: bottom;
  animation: hsRise 6s var(--ease) calc(var(--i) * 0.15s) infinite both;
}
.hs-curve {
  fill: none;
  stroke: #5aa832;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  animation: hsDrawLoop 6s var(--ease) infinite both;
}
.hs-end {
  fill: #5aa832;
  transform-box: fill-box;
  transform-origin: center;
  animation: hsEnd 6s var(--ease) infinite both;
}
.hs-pointer {
  transform-box: view-box;
  transform-origin: 94px 300px;
  animation: hsPoint 6s ease-in-out infinite;
}
.hs-learner {
  animation: hsNod 4s ease-in-out calc(var(--i) * -0.5s) infinite;
}
.hs-hand {
  animation: hsHand 6s ease-in-out calc(var(--i) * 2s) infinite;
}
.hs-bulb {
  transform-box: fill-box;
  transform-origin: center;
  animation: hsBulb 6s ease-in-out calc(var(--i) * 2s + 1s) infinite;
}
.hs-ask {
  position: absolute;
  z-index: 3;
  padding: clamp(5px, 1.3cqw, 8px) clamp(9px, 2.2cqw, 14px);
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  color: var(--ink);
  font-size: clamp(11px, 2.4cqw, 14px);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--sh-2);
  animation: hsAsk 6s var(--ease) infinite;
}
.hs-ask.q1 {
  left: 24%;
  top: 52%;
}
.hs-ask.q2 {
  right: 4%;
  top: 60%;
  animation-delay: 2s;
}
.hs-ask.q3 {
  left: 38%;
  top: 62%;
  animation-delay: 4s;
}
.hs-c4 {
  right: 3%;
  top: 41%;
}

/* Follow along */
.hs-ring {
  position: absolute;
  left: 50%;
  top: 47%;
  border: 2px dashed rgba(72, 168, 192, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spinSlow 60s linear infinite;
}
.hs-ring.r1 {
  width: 86%;
  aspect-ratio: 1;
}
.hs-ring.r2 {
  width: 64%;
  aspect-ratio: 1;
  border-color: rgba(240, 168, 48, 0.35);
  animation-direction: reverse;
}
.hs-orbit {
  position: absolute;
  inset: 0;
}
.hs-o {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(34px, 9cqw, 52px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-2);
  animation: hsBob 4s ease-in-out calc(var(--i) * -0.7s) infinite;
}
.hs-o .bic {
  width: 55%;
  height: 55%;
}
.hs-o:nth-child(1) {
  left: 8%;
  top: 14%;
}
.hs-o:nth-child(2) {
  left: 4%;
  top: 48%;
}
.hs-o:nth-child(3) {
  left: 12%;
  top: 78%;
}
.hs-o:nth-child(4) {
  right: 8%;
  top: 12%;
}
.hs-o:nth-child(5) {
  right: 4%;
  top: 46%;
}
.hs-o:nth-child(6) {
  right: 12%;
  top: 76%;
}
.hs-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 46%;
  aspect-ratio: 9 / 17.5;
  padding: 3.2cqw 2.4cqw 2.4cqw;
  border-radius: 7cqw;
  background: #161616;
  box-shadow:
    0 30px 60px rgba(22, 22, 22, 0.28),
    inset 0 0 0 2px #2c2c2c;
  transform: translate(-50%, -50%) rotate(-4deg);
  animation: hsPhone 7s ease-in-out infinite;
}
.hs-notch {
  position: absolute;
  left: 50%;
  top: 1.2cqw;
  width: 22%;
  height: 1.4cqw;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.hs-top {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.8cqw;
  align-items: center;
  padding: 1.6cqw 1.8cqw;
  border-radius: 4cqw 4cqw 0 0;
  background: #fff;
}
.hs-top img {
  grid-row: span 2;
  width: 6.4cqw;
  height: 6.4cqw;
  border-radius: 50%;
}
.hs-top b {
  font-size: 2.6cqw;
  line-height: 1.1;
  color: var(--ink);
}
.hs-top small {
  font-size: 2cqw;
  color: #48a8c0;
  font-weight: 700;
}
.hs-screen {
  height: calc(100% - 10cqw);
  overflow: hidden;
  border-radius: 0 0 4cqw 4cqw;
  background: #f4f1ec;
}
.hs-feed {
  display: flex;
  flex-direction: column;
  gap: 1.8cqw;
  padding: 1.8cqw;
  animation: hsFeed 16s linear infinite;
}
.hs-post {
  display: grid;
  gap: 1.2cqw;
  padding: 2cqw;
  border-radius: 3cqw;
  background: #fff;
  box-shadow: 0 2px 6px rgba(22, 22, 22, 0.06);
  font-size: 2.3cqw;
  color: var(--ink);
}
.hs-post b {
  font-size: 2.6cqw;
}
.hs-post small {
  display: block;
  font-size: 2cqw;
  color: var(--ink-3);
}
.hs-p-g {
  grid-template-columns: auto 1fr;
  align-items: center;
}
.hs-g {
  width: 7cqw;
  height: 7cqw;
}
.hs-p-g em {
  font-style: normal;
  color: #fbbc04;
  letter-spacing: 0.06em;
}
.hs-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 2cqw;
  background:
    radial-gradient(60% 80% at 30% 30%, rgba(240, 168, 48, 0.6), transparent 70%),
    linear-gradient(135deg, #232323, #3a2a20);
}
.hs-play {
  display: grid;
  width: 9cqw;
}
.hs-play .bic {
  width: 100%;
  height: auto;
}
.hs-lines {
  display: grid;
  gap: 0.9cqw;
}
.hs-lines i {
  height: 1.2cqw;
  border-radius: 1cqw;
  background: #ece6dc;
}
.hs-p-note {
  grid-template-columns: auto 1fr;
  align-items: center;
}
.hs-p-note .hs-lines,
.hs-p-note .hs-spark {
  grid-column: 1 / -1;
}
.hs-av {
  display: grid;
  place-items: center;
  width: 7cqw;
  height: 7cqw;
  border-radius: 50%;
  background: #f0a830;
  color: #fff;
  font-size: 2cqw;
  font-weight: 900;
}
.hs-spark svg {
  display: block;
  width: 100%;
  height: 8cqw;
}
.hs-spark path {
  fill: none;
  stroke: #5aa832;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hs-p-wa {
  justify-items: start;
}
.hs-p-wa > .bic {
  width: 6cqw;
  height: 6cqw;
}
.hs-bubble {
  max-width: 90%;
  padding: 1.2cqw 2cqw;
  border-radius: 2.4cqw;
  font-size: 2.2cqw;
  font-weight: 600;
}
.hs-bubble.in {
  background: #f1f1f1;
}
.hs-bubble.out {
  justify-self: end;
  background: #dcf8c6;
}
.hs-float {
  position: absolute;
  left: var(--x);
  bottom: 6%;
  z-index: 3;
  font-style: normal;
  font-size: clamp(14px, 3.6cqw, 22px);
  opacity: 0;
  animation: hsUp 6s ease-out calc(var(--i) * 0.75s) infinite;
}
.hs-float.s {
  color: #f0a830;
}
.hs-float.h {
  color: #e8475f;
}

@keyframes hsDrawLoop {
  0% {
    stroke-dashoffset: 1;
    opacity: 1;
  }
  45%,
  88% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes hsBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes hsRise {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }
  35%,
  88% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}
@keyframes hsEnd {
  0%,
  40% {
    transform: scale(0);
    opacity: 1;
  }
  50%,
  88% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
@keyframes hsPoint {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(-12deg);
  }
}
@keyframes hsNod {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}
@keyframes hsHand {
  0%,
  10%,
  45%,
  100% {
    transform: rotate(60deg);
    opacity: 0;
  }
  18%,
  38% {
    transform: rotate(0);
    opacity: 1;
  }
}
@keyframes hsBulb {
  0%,
  20%,
  60%,
  100% {
    transform: scale(0.6);
    opacity: 0;
  }
  30%,
  50% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes hsAsk {
  0%,
  6%,
  40%,
  100% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  12%,
  34% {
    opacity: 1;
    transform: none;
  }
}
@keyframes hsPhone {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-4deg);
  }
  50% {
    transform: translate(-50%, -52%) rotate(-2deg);
  }
}
@keyframes hsFeed {
  to {
    transform: translateY(-50%);
  }
}
@keyframes hsUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-260px) scale(1.1);
  }
}
@keyframes hsFill {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }
  30%,
  90% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}
@keyframes hsTick {
  0%,
  28% {
    transform: scale(0);
    opacity: 1;
  }
  36%,
  90% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hs-ask,
  .hs-float {
    display: none;
  }
}

/* the goal cards (Other goals, Nine goals): the same drawing, larger, framed like the old photo */
.gcard-top .gs-thumb {
  width: 132px;
  height: 89px;
  border-radius: 18px;
  border: 4px solid #fff;
  box-shadow: var(--sh-1);
  transition: transform 0.3s;
}
.gcard-top .gs-thumb-in {
  transform: scale(0.2385);
}
.gcard:hover .gcard-top .gs-thumb {
  transform: rotate(-3deg) scale(1.04);
}

/* ---------- about scenes (src/aboutscenes.mjs): family to community, and the five values ---------- */
.ab-art {
  position: relative;
}
.ab-art > svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--sh-2);
}
/* nothing moves until the art is on screen */
.anim-on .ab-art:not(.anim-in) * {
  animation-play-state: paused;
}
.fc-line {
  fill: none;
  stroke: #f0a830;
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: fcDraw 0.7s ease-out var(--d) forwards;
}
.fc-line2 {
  stroke: #9fd27d;
  stroke-width: 1.5;
}
@keyframes fcDraw {
  to {
    stroke-dashoffset: 0;
  }
}
.fc-p {
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  animation: fcPop 0.5s var(--ease) var(--d) forwards;
}
@keyframes fcPop {
  to {
    opacity: 1;
    transform: none;
  }
}
.fc-ring {
  transform-origin: 320px 236px;
  animation: fcRing 6s ease-in-out infinite;
}
.fc-ring2 {
  animation-delay: -3s;
}
@keyframes fcRing {
  50% {
    transform: scale(1.03);
    stroke-opacity: 0.7;
  }
}
.fc-heart {
  transform-box: fill-box;
  transform-origin: center;
  animation: fcBeat 1.6s ease-in-out infinite;
}
@keyframes fcBeat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.25);
  }
  30% {
    transform: scale(1);
  }
}
.fc-lbl text {
  font: 800 13px var(--font, inherit);
  letter-spacing: 0.04em;
  text-anchor: middle;
}
.fc-chip {
  font-size: 13px;
}
.fc-chip > b {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 40px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 16px;
  color: var(--on-brand);
  background: var(--brand);
}
.fc-chip span {
  display: grid;
  line-height: 1.2;
}
.fc-chip small {
  color: var(--ink-3);
}
.fc-c1 {
  top: 20px;
  left: -14px;
}
.fc-c2 {
  right: -14px;
  bottom: 74px;
  animation-delay: -2.5s;
}
.fc-c2 > b {
  background: #5aa832;
}

/* the five values: a picture on top of each card, all five in one row on wide screens */
.vgrid {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.vcard {
  padding: 14px 14px 20px;
}
.vcard h3 {
  margin-top: 14px;
  font-size: 18px;
}
.vcard p {
  font-size: 14px;
}
.vc-art {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 1100px) {
  .vgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .vgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 460px) {
  .vgrid {
    grid-template-columns: 1fr;
  }
}
.va-lens {
  animation: vaLens 4s ease-in-out infinite alternate;
}
@keyframes vaLens {
  to {
    transform: translate(38px, 14px);
  }
}
.va-tangle {
  stroke-dasharray: 1;
  animation: vaFade 4.5s ease-in-out infinite;
}
.va-straight {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: vaDraw 4.5s ease-in-out infinite;
}
.va-head {
  opacity: 0;
  animation: vaHead 4.5s ease-in-out infinite;
}
@keyframes vaFade {
  0%,
  30% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.15;
  }
}
@keyframes vaDraw {
  0%,
  30% {
    stroke-dashoffset: 1;
  }
  60%,
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes vaHead {
  0%,
  58% {
    opacity: 0;
  }
  66%,
  100% {
    opacity: 1;
  }
}
.va-bulb {
  animation: vaGlow 2.4s ease-in-out infinite;
}
@keyframes vaGlow {
  50% {
    opacity: 0.75;
  }
}
.va-tick {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: vaTick 5s ease-out infinite;
  animation-delay: calc(var(--i) * 0.5s);
}
@keyframes vaTick {
  0% {
    stroke-dashoffset: 1;
  }
  12%,
  85% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 1;
  }
}
.va-beam {
  transform-origin: 110px 41px;
  animation: vaBeam 4s ease-in-out infinite;
}
@keyframes vaBeam {
  0% {
    transform: rotate(-9deg);
  }
  30% {
    transform: rotate(5deg);
  }
  55%,
  100% {
    transform: rotate(0);
  }
}
.va-arrow {
  animation: vaArrow 3.6s cubic-bezier(0.3, 0.7, 0.3, 1) infinite;
}
@keyframes vaArrow {
  0% {
    opacity: 0;
    transform: translate(70px, -36px);
  }
  10% {
    opacity: 1;
  }
  30% {
    transform: none;
  }
  34% {
    transform: translate(2px, -1px);
  }
  38%,
  100% {
    transform: none;
  }
}
.va-flag {
  transform-box: fill-box;
  transform-origin: left center;
  animation: vaFlag 1.8s ease-in-out infinite alternate;
}
@keyframes vaFlag {
  to {
    transform: skewY(6deg) scaleX(0.9);
  }
}
/* the founder's Vision cards: the three icons move in their tiles. Enable twinkles, Encourage
   draws its rising line, Empower ripples out from the centre. Each resting state is the full icon. */
.vlive .ic-sparkle path,
.vlive .ic-target circle {
  transform-box: fill-box;
  transform-origin: center;
}
.vlive .ic-sparkle path:nth-child(1) {
  animation: vlTwinkle 3.2s ease-in-out infinite;
}
.vlive .ic-sparkle path:nth-child(2) {
  animation: vlTwinkle 3.2s ease-in-out -1.6s infinite;
}
@keyframes vlTwinkle {
  0%,
  100% {
    transform: scale(0.72) rotate(-14deg);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.12) rotate(14deg);
    opacity: 1;
  }
}
.vlive .ic-growth path:nth-child(1) {
  stroke-dasharray: 26 30;
  animation: vlRise 3.6s ease-in-out infinite;
}
.vlive .ic-growth path:nth-child(2) {
  animation: vlRiseHead 3.6s ease-in-out infinite;
}
@keyframes vlRise {
  0% {
    stroke-dashoffset: 27;
  }
  50%,
  90% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes vlRiseHead {
  0%,
  44% {
    opacity: 0;
    transform: translate(-3px, 3px);
  }
  54%,
  90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
.vlive .ic-target circle {
  animation: vlRipple 3s ease-out infinite;
}
.vlive .ic-target circle:nth-child(1) {
  animation-delay: 0.5s;
}
.vlive .ic-target circle:nth-child(2) {
  animation-delay: 0.25s;
}
@keyframes vlRipple {
  0% {
    transform: scale(0.55);
    opacity: 0.2;
  }
  22% {
    transform: scale(1.08);
    opacity: 1;
  }
  34%,
  100% {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vlive svg * {
    animation: none;
  }
}
@media (max-width: 640px) {
  .fc-chip {
    display: none;
  }
}

/* ---------- mutual fund art (src/mfscenes.mjs): four ways to invest, eight types of fund ---------- */
.fc-art {
  margin-bottom: 6px;
}
.mf-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  font-family: inherit;
}
/* SIP: the coins drop in turn, the jar fills, the line climbs */
.ma-drop {
  animation: maDrop 6s ease-in infinite;
  animation-delay: calc(var(--i) * 0.5s);
}
@keyframes maDrop {
  0%,
  8% {
    transform: none;
    opacity: 1;
  }
  20% {
    transform: translate(calc((125px - (35px + var(--i) * 22px))), 60px);
    opacity: 0;
  }
  21%,
  100% {
    opacity: 0;
  }
}
.ma-fill {
  animation: maFill 6s ease-in-out infinite;
}
@keyframes maFill {
  0% {
    transform: translateY(40px);
  }
  70%,
  100% {
    transform: none;
  }
}
.ma-line,
.ma-curve,
.mt-steady,
.mt-swing,
.mt-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: maDraw 5s ease-in-out infinite;
}
.mt-path {
  stroke-dasharray: 0.02 0.02;
}
@keyframes maDraw {
  0% {
    stroke-dashoffset: 1;
  }
  55%,
  100% {
    stroke-dashoffset: 0;
  }
}
.ma-area {
  animation: maArea 5s ease-in-out infinite;
}
@keyframes maArea {
  0%,
  20% {
    opacity: 0;
  }
  60%,
  100% {
    opacity: 1;
  }
}
.ma-bag {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: maBag 5s ease-out infinite;
}
@keyframes maBag {
  0% {
    transform: translateY(-40px);
    opacity: 0;
  }
  12% {
    transform: none;
    opacity: 1;
  }
  16% {
    transform: scaleY(0.92);
  }
  20%,
  100% {
    transform: none;
  }
}
.ma-dot {
  animation: maArea 5s ease-in-out infinite;
}
/* STP: the debt tank empties as the equity tank fills */
.ma-lvl-out {
  animation: maOut 6s ease-in-out infinite alternate;
}
.ma-lvl-in {
  animation: maIn 6s ease-in-out infinite alternate;
}
@keyframes maOut {
  to {
    transform: translateY(70px);
  }
}
@keyframes maIn {
  from {
    transform: translateY(70px);
  }
  to {
    transform: none;
  }
}
.ma-flow {
  animation: maFlow 1.8s linear infinite;
  animation-delay: calc(var(--i) * 0.6s);
}
@keyframes maFlow {
  from {
    transform: none;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  to {
    transform: translateX(76px);
    opacity: 0;
  }
}
/* SWP: a coin drips out each month while the savings barely move */
.ma-pay {
  opacity: 0;
  animation: maPay 3s ease-in infinite;
  animation-delay: calc(var(--i) * 1s);
}
@keyframes maPay {
  0% {
    transform: none;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  60% {
    transform: translateY(12px);
    opacity: 1;
  }
  70%,
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}
.ma-swp-lvl {
  animation: maSwp 3s ease-in-out infinite;
}
@keyframes maSwp {
  50% {
    transform: translateY(3px);
  }
}
/* hybrid: the mix turns slowly */
.mt-pie {
  transform-origin: 110px 94px;
  animation: mtPie 12s linear infinite;
}
@keyframes mtPie {
  to {
    transform: rotate(360deg);
  }
}
/* equity: the bars rise in turn */
.mt-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: mtBar 5s ease-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
@keyframes mtBar {
  0% {
    transform: scaleY(0.1);
  }
  30%,
  100% {
    transform: none;
  }
}
/* ELSS: the lock shakes once, then the tick draws */
.mt-lock {
  transform-box: fill-box;
  transform-origin: center;
  animation: mtShake 4s ease-in-out infinite;
}
@keyframes mtShake {
  0%,
  60%,
  100% {
    transform: none;
  }
  64% {
    transform: rotate(-6deg);
  }
  68% {
    transform: rotate(6deg);
  }
  72% {
    transform: rotate(-3deg);
  }
}
.mt-tick {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: maDraw 4s ease-out infinite;
}
/* children: the cap bobs at 18 */
.mt-cap {
  animation: bob 3s ease-in-out infinite;
}
/* retirement: the sun sets, the stacks grow */
.mt-sun {
  animation: mtSun 6s ease-in-out infinite alternate;
}
@keyframes mtSun {
  to {
    transform: translateY(16px);
  }
}
.mt-stack {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: mtBar 6s ease-out infinite;
  animation-delay: calc(var(--i) * 0.25s);
}
/* sectoral: the spotlight pulses on the one sector */
.mt-beam,
.mt-glow {
  animation: mtPulse 2.4s ease-in-out infinite;
}
@keyframes mtPulse {
  50% {
    opacity: 0.4;
  }
}
.mt-off {
  opacity: 0.55;
}
/* thematic: the links light up in turn */
.mt-link {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: maDraw 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.3s);
}

/* ---------- life and health insurance art (src/lifescenes.mjs) ---------- */
.li-row {
  opacity: 0;
  animation: liIn 6s ease-out infinite;
  animation-delay: calc(var(--i) * 0.5s);
}
@keyframes liIn {
  0% {
    opacity: 0;
    transform: translateX(-12px);
  }
  10%,
  85% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
.li-shield {
  transform-box: fill-box;
  transform-origin: center;
  animation: liPulse 3s ease-in-out infinite;
}
@keyframes liPulse {
  50% {
    transform: scale(1.06);
  }
}
.li-grow,
.hi-up {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: mtBar 5s ease-out infinite;
  animation-delay: calc(var(--i, 0) * 0.2s);
}
.li-gap {
  animation: mtPulse 2.4s ease-in-out infinite;
}
.li-tick {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: vaTick 6s ease-out infinite;
  animation-delay: calc(var(--i) * 0.6s);
}
.li-sign {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: maDraw 6s ease-in-out infinite;
  animation-delay: 2.4s;
}
.li-pen {
  animation: liPen 6s ease-in-out infinite;
  animation-delay: 2.4s;
}
@keyframes liPen {
  0% {
    transform: translate(-90px, 10px);
  }
  50%,
  100% {
    transform: none;
  }
}
.li-plug {
  animation: liPlug 4s ease-in-out infinite;
}
.li-plug:nth-of-type(2) {
  animation-delay: -2s;
}
@keyframes liPlug {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: translateX(var(--d, 4px));
  }
}
.li-bar {
  transform-box: fill-box;
  transform-origin: left;
  animation: liBar 5s ease-in-out infinite;
}
@keyframes liBar {
  0% {
    transform: scaleX(0.1);
  }
  60%,
  100% {
    transform: none;
  }
}
.li-home {
  animation: bob 3s ease-in-out infinite;
}
.lo-umb {
  transform-origin: 150px 92px;
  animation: loTilt 4s ease-in-out infinite;
}
@keyframes loTilt {
  50% {
    transform: rotate(-2deg);
  }
}
.lo-rain {
  animation: loRain 1.4s linear infinite;
  animation-delay: calc(var(--i) * -0.3s);
}
@keyframes loRain {
  from {
    transform: translate(0, -10px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  to {
    transform: translate(-8px, 40px);
    opacity: 0;
  }
}
.lo-arc {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: maDraw 5s ease-in-out infinite;
}
.lo-coin {
  opacity: 0;
  animation: liIn 5s ease-out infinite;
  animation-delay: calc(2s + var(--i) * 0.3s);
}
.lo-team {
  animation: bob 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.5s);
}
.hi-bill {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: hiBill 5s ease-in-out infinite;
}
@keyframes hiBill {
  0% {
    transform: scaleY(0.6);
  }
  50%,
  100% {
    transform: none;
  }
}
.hi-prog {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: maDraw 6s ease-in-out infinite;
}
.hi-ok {
  opacity: 0;
  animation: hiOk 6s ease-out infinite;
}
@keyframes hiOk {
  0%,
  50% {
    opacity: 0;
    transform: scale(0.6);
  }
  60%,
  100% {
    opacity: 1;
    transform: none;
  }
}
.hi-ok {
  transform-box: fill-box;
  transform-origin: center;
}
.hi-glass {
  transform-box: fill-box;
  transform-origin: center;
  animation: hiFlip 6s ease-in-out infinite;
}
@keyframes hiFlip {
  0%,
  40% {
    transform: none;
  }
  50%,
  100% {
    transform: rotate(180deg);
  }
}
.hi-tag {
  transform-box: fill-box;
  transform-origin: left center;
  animation: liPulse 2.6s ease-in-out infinite;
}
.hi-cut {
  transform-box: fill-box;
  transform-origin: top;
  animation: hiCut 4.5s ease-in-out infinite;
}
@keyframes hiCut {
  0%,
  35% {
    transform: none;
  }
  55%,
  100% {
    transform: scaleY(0.62);
  }
}
.hi-scis {
  animation: hiSnip 0.6s ease-in-out infinite alternate;
}
@keyframes hiSnip {
  to {
    transform: translateX(6px);
  }
}
.hi-total {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: maDraw 5s ease-in-out infinite;
}
.ho-bar {
  transform-box: fill-box;
  transform-origin: left;
  animation: liPulse 3s ease-in-out infinite;
}
.ho-refill {
  transform-origin: 150px 76px;
  animation: mtPie 6s linear infinite;
}
.ho-plane {
  animation: hoFly 5s ease-in-out infinite;
}
@keyframes hoFly {
  0% {
    transform: translate(-40px, 30px);
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
  100% {
    transform: translate(20px, -10px);
    opacity: 0;
  }
}
/* loan against mutual funds art */
.la-lock {
  animation: bob 3s ease-in-out infinite;
}
.la-bell {
  transform-box: fill-box;
  transform-origin: top center;
  animation: mtShake 2.4s ease-in-out infinite;
}
.la-bridge {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: maDraw 4.5s ease-in-out infinite;
}
.la-loop {
  transform-origin: 150px 100px;
  animation: mtPie 6s linear infinite;
}
.la-no {
  transform-box: fill-box;
  transform-origin: center;
  animation: liPulse 2s ease-in-out infinite;
}
/* ITR and NRI art */
.it-card {
  animation: bob 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.2s);
}
.it-pick {
  animation: itPick 6s ease-in-out infinite;
}
@keyframes itPick {
  0%,
  25% {
    transform: translateX(-88px);
  }
  33%,
  58% {
    transform: none;
  }
  66%,
  100% {
    transform: translateX(88px);
  }
}
.it-eq {
  transform-box: fill-box;
  transform-origin: center;
  animation: liPulse 2.4s ease-in-out infinite;
}
.it-beam {
  transform-origin: 150px 57px;
}
.it-yr {
  animation: hiOk 6s ease-out infinite;
  animation-delay: calc(var(--i) * 0.25s);
  transform-box: fill-box;
  transform-origin: center;
}
.it-carry {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: maDraw 6s ease-in-out infinite;
}
.it-due,
.ni-low {
  animation: bob 3s ease-in-out infinite;
}
.ni-fly {
  animation: hoFly 4.5s ease-in-out infinite;
}
.ni-cut {
  animation: liPulse 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
/* DSC and loan-against-funds art: signatures write, the ring and LED pulse, the renew arrow
   turns, the used share of a limit fills, the clock hand sweeps, the lock drops on and opens */
.dc-sig {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: maDraw 4.5s ease-in-out infinite;
}
.dc-ring {
  animation: mtPulse 2.4s ease-in-out infinite;
}
.dc-led {
  animation: blink 1.2s steps(2) infinite;
}
.dc-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: mtPie 6s linear infinite;
}
.dc-fillx {
  transform-box: fill-box;
  transform-origin: left;
  animation: dcFill 5s ease-out infinite;
  animation-delay: calc(var(--i, 0) * 0.4s);
}
@keyframes dcFill {
  0% {
    transform: scaleX(0.05);
  }
  35%,
  100% {
    transform: none;
  }
}
.lw-hand {
  transform-origin: 214px 94px;
  animation: mtPie 4s linear infinite;
}
.dc-drop {
  animation: dcDrop 5s ease-out infinite;
}
@keyframes dcDrop {
  0% {
    opacity: 0;
    transform: translateY(-24px);
  }
  20%,
  100% {
    opacity: 1;
    transform: none;
  }
}
.dc-open {
  animation: dcOpen 5s ease-in-out infinite;
}
@keyframes dcOpen {
  0%,
  35% {
    transform: none;
  }
  50%,
  100% {
    transform: translateY(-8px);
  }
}

/* One guide, four jobs (home tabs): the marker drives the road to each goal, the rain falls
   on the family's cover */
.pt-drive {
  animation: ptDrive 8s ease-in-out infinite;
}
@keyframes ptDrive {
  0% {
    offset-distance: 0%;
  }
  85%,
  100% {
    offset-distance: 100%;
  }
}
.pt-rain {
  animation: ptRain 2.4s linear infinite;
  animation-delay: calc(var(--i) * -0.4s);
}
@keyframes ptRain {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(60px);
  }
}
/* the health page's five rules (src/lifescenes.mjs): three then two, centred, on wide screens */
@media (min-width: 901px) {
  .hc-steps .steps {
    grid-template-columns: repeat(6, 1fr);
  }
  .hc-steps .steps li {
    grid-column: span 2;
  }
  .hc-steps .steps li:nth-child(4) {
    grid-column: 2 / span 2;
  }
}
.hc-cut,
.hc-year,
.hc-share,
.hc-capfill,
.hc-tank,
.hc-bonus,
.hc-pin {
  transform-box: fill-box;
}
.hc-tag {
  animation: vaGlow 1.6s ease-in-out infinite;
}
.hc-cut {
  transform-origin: bottom;
  transform: scaleY(0.62);
  animation: hcCut 5s ease-in-out infinite;
}
@keyframes hcCut {
  0%,
  35% {
    transform: none;
  }
  55%,
  100% {
    transform: scaleY(0.62);
  }
}
.hc-year {
  transform-origin: left;
  animation: hcYear 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.7s);
}
@keyframes hcYear {
  0% {
    transform: scaleX(0);
  }
  12%,
  90% {
    transform: none;
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 0;
  }
}
.hc-covered {
  animation: hcCovered 6s ease-in-out infinite;
}
@keyframes hcCovered {
  0%,
  48% {
    opacity: 0;
  }
  58%,
  100% {
    opacity: 1;
  }
}
.hc-share {
  transform-origin: right;
  animation: hcShare 4.5s ease-in-out infinite;
}
@keyframes hcShare {
  0% {
    transform: scaleX(0);
  }
  30%,
  100% {
    transform: none;
  }
}
.hc-capfill {
  transform-origin: left;
  animation: hcCap 4.5s ease-out infinite;
}
@keyframes hcCap {
  0% {
    transform: scaleX(0);
  }
  45%,
  100% {
    transform: none;
  }
}
.hc-capline {
  animation: vaGlow 1.6s ease-in-out infinite;
}
.hc-tank {
  transform-origin: left;
  animation: hcTank 6s ease-in-out infinite;
}
@keyframes hcTank {
  0%,
  12% {
    transform: none;
  }
  32%,
  42% {
    transform: scaleX(0.3);
  }
  62%,
  100% {
    transform: none;
  }
}
.hc-bonus {
  transform-origin: left;
  animation: hcBonus 6s ease-out infinite;
}
@keyframes hcBonus {
  0%,
  62% {
    transform: scaleX(0);
  }
  78%,
  100% {
    transform: none;
  }
}
.hc-ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: hcPing 3s ease-out infinite;
}
@keyframes hcPing {
  0% {
    transform: scale(0.3);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
.hc-pin {
  transform-origin: center;
  animation: hcPin 6s ease-out infinite;
  animation-delay: calc(var(--i) * 0.5s);
}
@keyframes hcPin {
  0% {
    transform: scale(0);
  }
  10%,
  100% {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hc-tag,
  .hc-cut,
  .hc-year,
  .hc-covered,
  .hc-share,
  .hc-capfill,
  .hc-capline,
  .hc-tank,
  .hc-bonus,
  .hc-ping,
  .hc-pin {
    animation: none;
  }
  .hc-ping {
    opacity: 0.4;
  }
}
/* About Company, Our journey: a picture above each part of the story (src/aboutscenes.mjs) */
.oj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.oj-card {
  padding: 14px 14px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: #fff;
}
.oj-card p {
  margin: 16px 8px 0;
  color: var(--ink-3);
  font-size: 16px;
}
@media (max-width: 900px) {
  .oj-grid {
    grid-template-columns: 1fr;
  }
}
.oj-art text {
  font-family: var(--font, inherit);
}
.oj-ray {
  animation: ojRay 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
@keyframes ojRay {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
.oj-bulb {
  animation: vaGlow 2.6s ease-in-out infinite;
}
.oj-line {
  transform-box: fill-box;
  transform-origin: left;
  animation: ojLine 5s ease-out infinite;
  animation-delay: calc(var(--i) * 0.35s);
}
@keyframes ojLine {
  0% {
    transform: scaleX(0);
  }
  18%,
  100% {
    transform: none;
  }
}
.oj-write {
  stroke-dasharray: 1;
  animation: ojWrite 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.5s);
}
@keyframes ojWrite {
  0% {
    stroke-dashoffset: 1;
  }
  16%,
  100% {
    stroke-dashoffset: 0;
  }
}
.oj-seal {
  transform-box: fill-box;
  transform-origin: center;
  animation: ojSeal 6s ease-out infinite;
}
@keyframes ojSeal {
  0%,
  34% {
    opacity: 0;
    transform: scale(1.9);
  }
  42% {
    opacity: 1;
    transform: scale(0.92);
  }
  48%,
  100% {
    opacity: 1;
    transform: none;
  }
}
.oj-date {
  animation: ojFloat 3s ease-in-out infinite alternate;
}
@keyframes ojFloat {
  to {
    transform: translateY(-5px);
  }
}
.oj-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ojRing 7s ease-out infinite;
}
.oj-ring.r2 {
  animation-delay: -0.5s;
}
@keyframes ojRing {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  20%,
  100% {
    opacity: 1;
    transform: none;
  }
}
.oj-pop {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: ojPop 7s ease-out infinite;
  animation-delay: calc(var(--i) * 0.4s);
}
@keyframes ojPop {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  8%,
  100% {
    opacity: 1;
    transform: none;
  }
}
.oj-plane {
  offset-path: path('M30 42 Q150 -10 270 42');
  offset-distance: 100%;
  animation: ojFly 7s ease-in-out infinite;
}
@keyframes ojFly {
  0% {
    offset-distance: 0%;
  }
  70%,
  100% {
    offset-distance: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .oj-ray,
  .oj-bulb,
  .oj-line,
  .oj-write,
  .oj-seal,
  .oj-date,
  .oj-ring,
  .oj-pop,
  .oj-plane {
    animation: none;
  }
}
