/* Homepage — next-generation layout: live sky hero, sticky story, horizontal services, reveals.
   Native CSS + a small script (static/js/home.js); everything still works with motion reduced. */
@view-transition { navigation: auto; }
.page.full { max-width: none; padding: 0; }
.h-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.h-narrow { max-width: 760px; }
.h-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--saffron); margin: 0 0 10px; }
.h-kicker.dark { color: var(--kumkum); }
.h-gold { color: var(--saffron); }
section h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 18px; }

/* buttons */
.h-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 700;
  text-decoration: none; transition: transform .25s var(--ease, ease), background .25s; }
.h-btn:hover { transform: translateY(-2px); }
.h-btn-gold { background: var(--saffron); color: #1b1300; }
.h-btn-ghost { border: 1.5px solid rgba(255, 250, 240, .5); color: var(--cream); }

/* 1. hero */
.h-hero { position: relative; min-height: calc(100svh - 110px); background: #0e1433; color: var(--cream); overflow: hidden;
  display: flex; align-items: center; padding: 40px 0 80px; }
.h-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-ring { position: absolute; width: min(115vw, 1100px); right: -28%; top: 50%; translate: 0 -50%; opacity: .09;
  animation: h-spin 240s linear infinite; pointer-events: none; }
@keyframes h-spin { to { rotate: 360deg; } }
.h-hero-grid { position: relative; display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; width: 100%; }
@media (min-width: 920px) { .h-hero-grid { grid-template-columns: 1.15fr .85fr; } }
.h-hero h1 { color: var(--cream); font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: 1.08; margin: 0 0 18px; }
.h-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d9d4e8; max-width: 560px; }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.h-live { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; color: #d9d4e8;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); padding: 8px 14px; border-radius: 999px; }
.h-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
  animation: h-pulse 2s infinite; }
@keyframes h-pulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.h-sky { margin: 0; text-align: center; }
.h-sky-chart { width: min(420px, 82vw); margin: 0 auto; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(227, 155, 44, .35); animation: h-float 7s ease-in-out infinite; }
.h-sky-chart svg { display: block; width: 100%; height: auto; }
.h-sky-chart svg line, .h-sky-chart svg polygon { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: h-draw 2.6s .3s ease forwards; }
@keyframes h-draw { to { stroke-dashoffset: 0; } }
@keyframes h-float { 50% { translate: 0 -10px; } }
.h-sky figcaption { margin-top: 16px; color: #d9d4e8; font-size: .92rem; }
.h-sky figcaption small { color: #9a94b5; }
.h-scroll { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px;
  border: 2px solid rgba(255, 250, 240, .5); }
.h-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--cream); animation: h-wheel 1.8s infinite; }
@keyframes h-wheel { 80% { translate: 0 12px; opacity: 0; } 100% { opacity: 0; } }

/* 2. about */
.h-about { padding: 110px 0; background: var(--cream); text-align: center; }
.h-about p { font-size: 1.15rem; line-height: 1.75; }
.h-shloka { font-family: "Noto Sans Devanagari", "Laila", serif; font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: var(--kumkum);
  margin: 26px auto 30px; line-height: 1.7; }
.h-shloka cite { display: block; margin-top: 10px; font: italic .95rem/1.5 system-ui, sans-serif; color: var(--stone); }

/* 3. how it works: pinned story */
.h-how { height: 400vh; background: #fff; position: relative; }
.h-how-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.h-how-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; width: 100%; }
@media (min-width: 920px) { .h-how-grid { grid-template-columns: 1fr 1fr; } }
.h-steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: s; }
.h-steps li { position: relative; padding: 14px 0 14px 54px; opacity: .32; transition: opacity .5s, transform .5s; counter-increment: s; }
.h-steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: var(--zebra); color: var(--indigo); transition: background .5s, color .5s; }
.h-steps li strong { display: block; font-size: 1.2rem; color: var(--indigo); }
.h-steps li span { color: var(--stone); }
.h-steps li.on { opacity: 1; transform: translateX(6px); }
.h-steps li.on::before { background: var(--saffron); color: #fff; }
.h-stage { position: relative; height: min(560px, 66vh); border-radius: 24px; background: #0e1433; overflow: hidden; }
.h-scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; color: #d9d4e8; opacity: 0; transform: scale(.94); transition: opacity .6s, transform .6s; text-align: center; padding: 20px; }
.h-scene.on { opacity: 1; transform: none; }
.h-pin { position: absolute; left: 50%; top: 40%; width: 22px; height: 22px; margin: -22px 0 0 -11px; border-radius: 50% 50% 50% 0;
  rotate: -45deg; background: var(--kumkum); box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); animation: h-drop 1.4s infinite ease-in; }
@keyframes h-drop { 0% { translate: 0 -30px; opacity: 0; } 40% { translate: 0 0; opacity: 1; } 100% { opacity: 1; } }
.h-radius { position: absolute; left: 50%; top: 40%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  border: 2px dashed rgba(227, 155, 44, .7); animation: h-grow 1.4s infinite; }
@keyframes h-grow { from { scale: .2; opacity: 1; } to { scale: 1; opacity: .2; } }
.h-orbit { position: relative; width: 300px; height: 300px; }
.h-orbit img { position: absolute; inset: 30px; width: 240px; animation: h-spin 60s linear infinite; }
.h-orbit i { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; animation: h-spin 6s linear infinite; }
.h-orbit i::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--saffron); }
.h-orbit i:nth-child(2) { inset: 20px; animation-duration: 9s; } .h-orbit i:nth-child(3) { inset: 40px; animation-duration: 4s; }
.h-orbit i:nth-child(4) { inset: -18px; animation-duration: 14s; } .h-orbit i:nth-child(5) { inset: 60px; animation-duration: 3s; }
.h-orbit i:nth-child(2)::after { background: #cbd5ff; } .h-orbit i:nth-child(3)::after { background: #f87171; }

/* 4. services: horizontal */
.h-services { position: relative; background: #0e1433; color: var(--cream); }
.h-services-pin { padding: 90px 0 70px; }
.h-services h2 { color: var(--cream); }
.h-hint { color: #9a94b5; }
.h-track { display: flex; gap: 22px; padding: 30px 24px 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; }
.h-track::-webkit-scrollbar { display: none; }
.h-card { flex: 0 0 min(320px, 80vw); scroll-snap-align: start; min-height: 340px; padding: 28px; border-radius: 24px;
  background: linear-gradient(160deg, #1b2457, #141b45); border: 1px solid rgba(255, 255, 255, .08); color: var(--cream);
  text-decoration: none; display: flex; flex-direction: column; gap: 12px; transition: transform .35s, border-color .35s; }
.h-card:hover { transform: translateY(-8px); border-color: rgba(227, 155, 44, .6); }
.h-card h3 { color: var(--cream); font-size: 1.35rem; margin: 6px 0 0; }
.h-card p { color: #c9c4dc; margin: 0; }
.h-card-ico { width: 84px; height: 84px; display: block; margin: -6px 0 0 -8px; }
.h-card-go { margin-top: auto; color: var(--saffron); font-weight: 700; }
/* desktop: vertical scroll drives the row sideways (home.js sets the height and offset) */
.h-services.pinned .h-services-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column;
  justify-content: center; overflow: hidden; padding: 0; }
.h-services.pinned .h-track { overflow: visible; scroll-snap-type: none; will-change: transform; padding-left: max(24px, calc((100vw - 1160px) / 2 + 24px)); }

/* 5. why */
.h-why { padding: 110px 0; background: var(--cream); }
.h-numbers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 30px 0 50px; }
.h-numbers div { background: #fff; border: 1px solid var(--sand); border-radius: 20px; padding: 24px; }
.h-numbers b { display: block; white-space: nowrap; font-family: "Laila", Georgia, serif; font-size: clamp(2.1rem, 4vw, 3rem); color: var(--indigo); line-height: 1; }
.h-numbers span { color: var(--stone); }
.h-reasons { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.h-reasons article { background: #fff; border: 1px solid var(--sand); border-radius: 20px; padding: 26px; transition: transform .35s, box-shadow .35s; }
.h-reasons article:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(31, 42, 90, .1); }
.h-reasons article > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--zebra);
  color: var(--kumkum); font-size: 1.4rem; font-weight: 700; }
.h-reasons h3 { margin: 14px 0 6px; }

/* 6. today */
.h-today { padding: 60px 0; background: #fff; border-top: 1px solid var(--sand); }
.h-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.h-strip div { flex: 0 0 auto; scroll-snap-align: start; background: var(--zebra); border-radius: 14px; padding: 12px 16px; }
.h-strip span { display: block; font-size: .78rem; color: var(--stone); text-transform: uppercase; letter-spacing: .06em; }
.h-strip b { color: var(--indigo); }
.h-fest { margin-top: 14px; color: var(--stone); }

/* 7. final */
.h-final { position: relative; padding: 120px 0; background: #0e1433; color: var(--cream); text-align: center; overflow: hidden; }
.h-final h2 { color: var(--cream); }
.h-final p { color: #d9d4e8; font-size: 1.15rem; margin-bottom: 28px; }
.h-final .h-wrap { position: relative; }

/* reveal on scroll (home.js adds .in) */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.h-reasons .reveal:nth-child(2), .h-numbers .reveal:nth-child(2) { transition-delay: .08s; }
.h-reasons .reveal:nth-child(3), .h-numbers .reveal:nth-child(3) { transition-delay: .16s; }
.h-reasons .reveal:nth-child(4), .h-numbers .reveal:nth-child(4) { transition-delay: .24s; }
.h-reasons .reveal:nth-child(5) { transition-delay: .32s; } .h-reasons .reveal:nth-child(6) { transition-delay: .4s; }

/* less motion when the visitor asks for it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .h-how { height: auto; } .h-how-pin { position: static; height: auto; padding: 80px 0; }
  .h-steps li { opacity: 1; } .h-scene { position: relative; opacity: 1; transform: none; } .h-stage { height: auto; }
  .h-sky-chart svg line, .h-sky-chart svg polygon { stroke-dashoffset: 0; }
}
.h-live > span:last-child { flex: 1; }

/* 7. the final call (the orbiting planets were removed by the owner, 22 Oct 2026: invented speeds) */
.h-final .h-wrap { z-index: 1; }
.h-final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-shadow: 0 2px 30px rgba(14, 20, 51, .9); }
.h-final p { text-shadow: 0 1px 20px rgba(14, 20, 51, .95); }
.page.full ~ .site-footer { margin-top: 0; }

/* 5b. why-us cards: live demos + 3D tilt with a cursor light */
.h-reasons { perspective: 1200px; }
.h-reasons article.tilt { position: relative; transform-style: preserve-3d; overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .35s; }
.h-reasons article.tilt:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(10px); }
.h-reasons article.tilt::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 155, 44, .16), transparent 60%); }
.h-reasons article.tilt:hover::after { opacity: 1; }
.demo { position: relative; height: 130px; border-radius: 16px; background: #0e1433; overflow: hidden; margin-bottom: 6px;
  transform: translateZ(30px); }
.demo * { position: absolute; }

/* NASA: orbit + tracking crosshair */
.demo-nasa .ring { left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.22); }
.demo-nasa .orbiter, .demo-nasa .cross { left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; animation: d-spin 5s linear infinite; }
.demo-nasa .orbiter i { left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe7b0, #e39b2c); box-shadow: 0 0 10px #e39b2c; }
.demo-nasa .cross { animation-delay: -.12s; }
.demo-nasa .cross i { left: 50%; top: -14px; width: 28px; height: 28px; margin-left: -14px; border: 1.5px solid #4ade80; border-radius: 50%; }
.demo-nasa .cross i::before, .demo-nasa .cross i::after { content: ""; position: absolute; background: #4ade80; }
.demo-nasa .cross i::before { left: 50%; top: -6px; bottom: -6px; width: 1.5px; margin-left: -.75px; }
.demo-nasa .cross i::after { top: 50%; left: -6px; right: -6px; height: 1.5px; margin-top: -.75px; }
.demo-nasa .readout { right: 12px; bottom: 10px; font: 600 .78rem ui-monospace, monospace; color: #cbd5ff; }
.demo-nasa .readout b { position: static; color: #4ade80; animation: d-blink 1.2s steps(2) infinite; }
@keyframes d-spin { to { transform: rotate(360deg); } }
@keyframes d-blink { 50% { opacity: 0; } }

/* Birth place: map, pin drop, 20 km circle */
.demo-place { background: #0e1433 repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.05) 22px 23px),
  repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.05) 22px 23px); }
.demo-place .pin { left: 50%; top: 46%; width: 20px; height: 20px; margin: -20px 0 0 -10px; border-radius: 50% 50% 50% 0; rotate: -45deg;
  background: var(--kumkum); animation: d-drop 3s cubic-bezier(.3,1.5,.6,1) infinite; }
.demo-place .circle { left: 50%; top: 46%; width: 90px; height: 90px; margin: -45px; border-radius: 50%; border: 2px dashed var(--saffron);
  animation: d-ring 3s ease-out infinite; }
.demo-place .label { left: 50%; bottom: 10px; translate: -50% 0; font: 600 .78rem system-ui; color: #fffaf0; background: rgba(0,0,0,.35);
  padding: 2px 10px; border-radius: 999px; white-space: nowrap; animation: d-fade 3s infinite; }
@keyframes d-drop { 0%, 8% { translate: 0 -60px; opacity: 0; } 30%, 100% { translate: 0 0; opacity: 1; } }
@keyframes d-ring { 0%, 28% { scale: 0; opacity: 0; } 45% { scale: 1; opacity: 1; } 100% { scale: 1.1; opacity: .35; } }
@keyframes d-fade { 0%, 40% { opacity: 0; } 55%, 100% { opacity: 1; } }

/* Astrologers: A writes, B checks */
.demo-astro .who { top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1rem system-ui; color: #fff; }
.demo-astro .a { left: 16px; background: var(--indigo); box-shadow: 0 0 0 2px #cbd5ff; }
.demo-astro .b { right: 16px; background: var(--kumkum); box-shadow: 0 0 0 2px #f5c4b3; }
.demo-astro .b i { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; background: #4ade80;
  color: #0e1433; font: 900 .75rem/20px system-ui; text-align: center; font-style: normal; animation: d-tick 4s infinite; }
.demo-astro .sheet { left: 72px; right: 72px; top: 24px; bottom: 24px; background: var(--cream); border-radius: 8px; padding: 14px 12px; }
.demo-astro .sheet b { position: relative; display: block; height: 7px; margin-bottom: 9px; border-radius: 4px; background: #d9cbb5;
  transform-origin: left; animation: d-write 4s infinite; }
.demo-astro .sheet b:nth-child(2) { animation-delay: .35s; } .demo-astro .sheet b:nth-child(3) { width: 60%; animation-delay: .7s; }
@keyframes d-write { 0% { scale: 0 1; } 30%, 100% { scale: 1 1; } }
@keyframes d-tick { 0%, 55% { scale: 0; } 65% { scale: 1.3; } 72%, 100% { scale: 1; } }

/* Verify: QR scan, then "Genuine" */
.demo-verify .doc { left: 50%; top: 14px; width: 86px; height: 102px; margin-left: -60px; background: var(--cream); border-radius: 6px; padding: 12px 10px; }
.demo-verify .doc b { position: relative; display: block; height: 5px; margin-bottom: 7px; border-radius: 3px; background: #d9cbb5; }
.demo-verify .qr { right: 8px; bottom: 8px; width: 30px; height: 30px;
  background: conic-gradient(#0e1433 25%, #fff 0 50%, #0e1433 0 75%, #fff 0) 0 0 / 10px 10px; }
.demo-verify .scan { left: 0; right: 0; top: 0; height: 3px; background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: d-scan 3.2s ease-in-out infinite; }
.demo-verify .ok { left: 50%; top: 50%; margin: -14px 0 0 34px; background: #4ade80; color: #0e1433; font: 800 .82rem system-ui;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap; animation: d-pop 3.2s infinite; }
@keyframes d-scan { 0% { translate: 0 0; opacity: 1; } 55% { translate: 0 99px; opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes d-pop { 0%, 58% { scale: 0; } 68% { scale: 1.15; } 75%, 100% { scale: 1; } }

/* Languages: words morph */
.demo-lang { display: grid; place-items: center; }
.demo-lang .word { position: static; font: 700 1.9rem "Laila", "Noto Sans Devanagari", serif; color: var(--saffron);
  transition: opacity .35s, filter .35s, transform .35s; }
.demo-lang .word.out { opacity: 0; filter: blur(8px); transform: translateY(-10px) scale(.95); }

/* Privacy: data flows in, the lock closes */
.demo-privacy i { left: 0; width: 7px; height: 7px; border-radius: 50%; background: #cbd5ff; animation: d-flow 3s linear infinite; }
.demo-privacy i:nth-child(1) { top: 26px; } .demo-privacy i:nth-child(2) { top: 58px; animation-delay: .5s; }
.demo-privacy i:nth-child(3) { top: 92px; animation-delay: 1s; } .demo-privacy i:nth-child(4) { top: 40px; animation-delay: 1.5s; }
.demo-privacy i:nth-child(5) { top: 76px; animation-delay: 2s; } .demo-privacy i:nth-child(6) { top: 104px; animation-delay: 2.5s; }
.demo-privacy .shield { right: 26%; top: 50%; width: 62px; height: 72px; margin-top: -36px;
  background: linear-gradient(160deg, #1f2a5a, #2c3a7a); border: 2px solid var(--saffron); border-radius: 12px 12px 30px 30px; }
.demo-privacy .lock { left: 50%; top: 32px; width: 22px; height: 16px; margin-left: -11px; background: var(--saffron); border-radius: 3px; }
.demo-privacy .lock::before { content: ""; position: absolute; left: 3px; bottom: 12px; width: 12px; height: 13px; border: 3px solid var(--saffron);
  border-bottom: 0; border-radius: 10px 10px 0 0; animation: d-shackle 3s ease-in-out infinite; }
@keyframes d-flow { 0% { translate: 0 0; opacity: 0; } 15% { opacity: 1; } 70% { translate: 210px 0; opacity: 1; } 78%, 100% { translate: 215px 0; opacity: 0; } }
@keyframes d-shackle { 0%, 40% { translate: 0 -6px; } 55%, 100% { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .h-reasons article.tilt { transform: none !important; } }

/* how it works: real map, real A4 pages, final seal */
.h-how-sub { color: var(--stone); max-width: 540px; margin: -6px 0 6px; }
.h-mapbox { position: relative; width: 92%; height: calc(100% - 60px); border-radius: 16px; overflow: hidden;
  background: repeating-linear-gradient(45deg, #1a2350 0 12px, #1d275a 12px 24px); }
.h-realmap, .h-realmap.maplibregl-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-realmap .maplibregl-ctrl-attrib { font-size: 10px; }
.h-mapbox .h-pin { z-index: 2; top: 50%; }
.h-mapbox .h-radius { z-index: 2; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; background: rgba(227, 155, 44, .08); }
.h-a4 { position: relative; height: calc(100% - 56px); aspect-ratio: 210 / 297; }
.h-a4 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); opacity: 0; animation: h-pages 9s infinite; }
.h-a4 img:nth-of-type(2) { animation-delay: 3s; } .h-a4 img:nth-of-type(3) { animation-delay: 6s; }
@keyframes h-pages { 0% { opacity: 0; transform: translateY(14px) rotate(-1deg); } 6%, 30% { opacity: 1; transform: none; }
  36%, 100% { opacity: 0; transform: translateY(-10px) rotate(1deg); } }
.h-a4.single img { opacity: 1; animation: none; }
.h-a4-label { position: relative; height: 1.4em; width: 100%; }
.h-a4-label span { position: absolute; left: 0; right: 0; opacity: 0; animation: h-pages 9s infinite; }
.h-a4-label span:nth-child(2) { animation-delay: 3s; } .h-a4-label span:nth-child(3) { animation-delay: 6s; }
.h-pen2 { position: absolute; right: 14%; top: 40%; width: 9px; height: 84px; border-radius: 5px; rotate: 32deg; z-index: 3;
  background: linear-gradient(var(--kumkum) 80%, #2b2b2b 80%); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); animation: h-pen-write 1.6s ease-in-out infinite alternate; }
@keyframes h-pen-write { to { translate: -60px 26px; } }
.h-scan2 { position: absolute; left: 81%; width: 11%; top: 2%; height: 3px; background: #4ade80; box-shadow: 0 0 10px #4ade80; z-index: 2;
  animation: h-qrscan 2.8s ease-in-out infinite; }
@keyframes h-qrscan { 0% { top: 2%; opacity: 1; } 45% { top: 8.4%; opacity: 1; } 55%, 100% { opacity: 0; } }
.h-stamp { position: absolute; width: 30% !important; height: auto !important; inset: auto -9% -5% auto !important;
  opacity: 1 !important; background: none !important; box-shadow: none !important; animation: h-stamp 2.8s infinite !important; z-index: 3; }
@keyframes h-stamp { 0% { scale: 1.8; opacity: 0; rotate: -20deg; } 22%, 100% { scale: 1; opacity: 1; rotate: -8deg; } }
.h-genuine { position: absolute; right: -6%; top: 11%; z-index: 3; background: #4ade80; color: #0e1433; font: 800 .85rem system-ui;
  padding: 5px 12px; border-radius: 999px; animation: d-pop 2.8s infinite; }
.h-ticks { list-style: none; padding: 0; margin: -10px 0 18px; display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: .92rem; opacity: .92; }
.h-ticks li { white-space: nowrap; }

/* Today and the days ahead: the "Today" strip, three live clocks, then + rows that open in place */
.h-today { padding: 44px 0 36px; }
.h-today h2 { margin: 0 0 6px; }
.h-strip.times { margin-top: 10px; }
.alm-clocks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 16px 0 6px; }
.clk { background: linear-gradient(160deg, #2B2F6B, #1d2050); color: #fff; border-radius: 16px; padding: 14px 16px; }
.clk span { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #F7D9A0; }
.clk b { display: block; font-size: 1.45rem; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.clk small { display: block; font-size: .82rem; color: #d9dcf2; }
.clk b .q-good { color: #9BE3B4; } .clk b .q-neutral { color: #F7D9A0; } .clk b .q-bad { color: #F6B6A6; }
.alm-local { margin: 4px 0 0; font-size: .85rem; color: var(--stone); }
.alm-me { margin: 14px 0 0; padding: 10px 14px; border: 1px solid #DCD6F0; border-radius: 12px; background: #F7F5FC; }
.alm-me strong { color: #2B2F6B; }
.alm-me p { margin: 4px 0 0; }
.alm-me li.good b { color: #2E7D4F; }
.acc-list { margin-top: 18px; border-top: 1px solid var(--sand); }
.acc { border-bottom: 1px solid var(--sand); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 2px;
  font-size: 1.12rem; font-weight: 600; color: var(--indigo); }
.acc summary::-webkit-details-marker { display: none; }
.acc .plus { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--zebra); }
.acc .plus::before, .acc .plus::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px;
  background: var(--indigo); border-radius: 2px; transition: transform .3s ease; }
.acc .plus::after { transform: rotate(90deg); }
.acc[open] .plus::after { transform: rotate(0deg); }
.acc-body { padding: 0 2px 18px 34px; animation: oa-open .35s ease; }
@keyframes oa-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.alm-where { margin: 0 0 8px; font-weight: 700; color: #8C2F39; }
.alm-list, .alm-months { list-style: none; margin: 0; padding: 0; }
.alm-list li, .alm-months li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0;
  border-bottom: 1px dashed #EFE4CC; }
.alm-list span, .alm-months span { color: var(--stone); }
.alm-list b, .alm-months b { text-align: right; font-weight: 600; color: #1C1C1C; }
.alm-months b { max-width: 72%; }
.alm-note { margin: 14px 0 0; font-size: .85rem; color: var(--stone); }
.alm-note .link { font-size: .85rem; }
@media (max-width: 560px) { .acc-body { padding-left: 0; } .alm-list li, .alm-months li { flex-direction: column; gap: 2px; }
  .alm-list b, .alm-months b { text-align: left; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .acc-body { animation: none; } .acc .plus::after { transition: none; } }

/* Phones: "How it works" as sliding cards, each step with its own picture */
.h-how.how-mobile { height: auto; background: linear-gradient(180deg, #FFF6E4, #FBEFD8); }
.how-mobile .h-how-pin { position: static; height: auto; padding: 56px 0 40px; }
.how-mobile .h-stage { display: none; }
.how-mobile .h-steps { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px;
  margin-top: 26px; scrollbar-width: none; }
.how-mobile .h-steps::-webkit-scrollbar { display: none; }
.how-mobile .h-steps li { flex: 0 0 86%; scroll-snap-align: center; opacity: 1; transform: none; padding: 0;
  background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 28px rgba(43, 47, 107, .14); }
.how-mobile .h-steps li::before { top: auto; bottom: 14px; left: 14px; }
.how-mobile .h-steps li strong, .how-mobile .h-steps li > span { display: block; padding: 0 16px 0 62px; }
.how-mobile .h-steps li strong { margin-top: 14px; }
.how-mobile .h-steps li > span { padding-bottom: 16px; font-size: .92rem; }
.how-mobile .h-scene { position: relative; inset: auto; height: 230px; background: #0e1433; opacity: 1; transform: none;
  border-radius: 0; gap: 10px; padding: 14px; font-size: .82rem; }
.how-mobile .h-scene .h-a4 { transform: scale(.62); transform-origin: center; margin: -40px 0; }
.how-mobile .h-scene .h-mapbox, .how-mobile .h-scene .h-orbit { transform: scale(.75); }
.how-mobile .slide-wrap { --fade: #FBEFD8; }
.h-services { --fade: #0e1433; }
.h-services .slide-hint { background: #2B2F6B; color: #F7D9A0; }

/* Today section: warm, not plain white */
.h-today { position: relative; overflow: hidden; --fade: #FFF4DF;
  background: radial-gradient(900px 380px at 100% 0%, rgba(227, 155, 44, .16), transparent 60%),
              radial-gradient(700px 360px at 0% 100%, rgba(140, 47, 57, .10), transparent 60%),
              linear-gradient(180deg, #FFF8EA, #FFF1D9); border-top: 0; }
.h-today .h-strip div { background: rgba(255, 255, 255, .78); box-shadow: 0 2px 10px rgba(140, 47, 57, .07); }
.h-today .acc-list, .h-today .acc { border-color: rgba(176, 138, 62, .35); }
.alm-invite { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; margin: 16px 0 0;
  padding: 14px 16px; border-radius: 16px; text-decoration: none; color: #1C1C1C;
  background: linear-gradient(135deg, #2B2F6B, #4A3B82); box-shadow: 0 10px 26px rgba(43, 47, 107, .25); }
.alm-invite > span:nth-child(2) { color: #E9E7F7; font-size: .93rem; }
.alm-invite strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 2px; }
.alm-invite-star { color: #F7D9A0; font-size: 1.4rem; line-height: 1.2; animation: oa-twinkle 2.6s ease-in-out infinite; }
.alm-invite-go { grid-column: 2; justify-self: start; margin-top: 4px; background: #E39B2C; color: #1C1C1C;
  font-weight: 700; padding: 7px 14px; border-radius: 999px; font-size: .92rem; }
@keyframes oa-twinkle { 0%, 100% { opacity: .6; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
.clip-box { position: relative; }
.clip-box ul { overflow: hidden; transition: max-height .45s ease; }
.clip-box.clipped ul { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent); }
.clip-more { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); z-index: 2;
  background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid rgba(43, 47, 107, .25); color: #2B2F6B; border-radius: 999px; padding: 6px 16px;
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(43, 47, 107, .12); }
.clip-box.clipped { padding-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .alm-invite-star { animation: none; } }
@media (max-width: 699px) { .h-strip { scrollbar-width: none; } .h-strip::-webkit-scrollbar { display: none; } }

.how-mobile .h-how-grid { grid-template-columns: minmax(0, 1fr); }
.how-mobile .h-how-grid > div, .how-mobile .slide-wrap { min-width: 0; }

/* Today section: many colours (the drifting rashi signs were removed by the owner, 22 Oct 2026) */
.h-today {
  background:
    radial-gradient(520px 320px at 8% 12%, rgba(255, 183, 77, .38), transparent 70%),
    radial-gradient(560px 360px at 92% 8%, rgba(236, 112, 160, .26), transparent 70%),
    radial-gradient(620px 380px at 85% 88%, rgba(124, 104, 220, .26), transparent 70%),
    radial-gradient(540px 340px at 10% 92%, rgba(46, 170, 160, .22), transparent 70%),
    radial-gradient(480px 300px at 50% 50%, rgba(255, 236, 200, .55), transparent 75%),
    linear-gradient(135deg, #FFF3DC 0%, #FDE6EE 35%, #EDE8FF 70%, #E3F6F2 100%);
  --fade: rgba(255, 240, 230, .95);
}
.h-today .h-wrap { position: relative; z-index: 1; }

/* "For you today" (from the visitor's quick answers) */
.alm-foryou { margin: 12px 0 4px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(227, 155, 44, .45); box-shadow: 0 6px 18px rgba(227, 155, 44, .15); }
.alm-foryou strong { display: block; color: #8C2F39; font-size: 1.02rem; }
.alm-foryou small { display: block; color: var(--stone); font-size: .8rem; margin-bottom: 6px; }
.alm-foryou ul { list-style: none; margin: 0 0 6px; padding: 0; }
.alm-foryou li { padding: 4px 0; }
.alm-foryou li b { color: #2B2F6B; }
.alm-foryou li span { color: var(--stone); font-size: .9rem; }
.alm-foryou .link { font-size: .85rem; }
.alm-ask { display: block; margin: 12px 0 4px; background: rgba(255, 255, 255, .7); border: 1px dashed rgba(43, 47, 107, .35);
  color: #2B2F6B; border-radius: 12px; padding: 9px 14px; font: inherit; font-size: .92rem; cursor: pointer; text-align: left; }
.alm-list li.for-you { background: rgba(227, 155, 44, .12); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.alm-list .fy { font-style: normal; font-size: .72rem; font-weight: 700; color: #fff; background: #E39B2C;
  border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }

/* "Before sunrise the Vedic day is still the previous one" under the almanac's sunrise line (_almanac.html) */
.alm .alm-note { margin: -6px 0 12px; font-size: .9rem; color: var(--stone, #6d665a); }
