/* Punarjanma Nepal: states (loaded by the site and the admin) */
/* ───── states: empty, no results, loading, error, offline, slow, denied, expired, not found, success */
.state { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: clamp(16px, 3vw, 40px); align-items: center; background: var(--white); border-radius: var(--r-l); padding: clamp(20px, 3vw, 40px); }
.state-art { width: 100%; height: auto; overflow: visible; }
.state-code { margin: 0 0 6px; font: 800 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.state-h { margin: 0 0 .3em; }
.state-inline .state-h { font-size: clamp(26px, 2.4vw, 36px); }
.state-p { color: var(--ink-2); margin: 0 0 1em; max-width: 34em; }
.state-act { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.state-page { grid-template-columns: 1fr; justify-items: center; text-align: center; background: none; min-height: calc(100vh - 260px); min-height: calc(100svh - 260px); align-content: center; padding: clamp(36px, 6vw, 80px) var(--gut); }
.state-page .state-art { width: min(340px, 78vw); }
.state-page .state-h { font-size: clamp(44px, 6vw, 92px); max-width: 12em; }
.state-page .state-p { margin-inline: auto; font-size: clamp(18px, 1.3vw, 21px); }
.state-page .state-act { justify-content: center; }
.state-tint { background: var(--t-green); }
.state-art * { transform-box: fill-box; transform-origin: center; }
.st-bob { animation: st-bob 2.6s ease-in-out infinite; }
.st-lid { transform-origin: left bottom; animation: st-lid 2.6s cubic-bezier(.5,0,.3,1.4) infinite; }
.st-hop { animation: st-hop 2.6s cubic-bezier(.3,0,.3,1) infinite; }
@keyframes st-bob { 50% { transform: translateY(2px); } }
@keyframes st-lid { 0%, 30%, 100% { transform: none; } 45%, 70% { transform: rotate(-24deg); } }
@keyframes st-hop { 0%, 35%, 100% { transform: translateY(26px) rotate(0); opacity: 0; } 50% { transform: translateY(-14px) rotate(140deg); opacity: 1; } 62% { transform: translateY(-4px) rotate(200deg); opacity: 1; } 75% { transform: translateY(26px) rotate(260deg); opacity: 0; } }
.st-sweep { animation: st-sweep 3.4s ease-in-out infinite; }
@keyframes st-sweep { 0%, 100% { transform: translateX(-34px) rotate(-6deg); } 50% { transform: translateX(46px) rotate(6deg); } }
.st-spin { animation: st-spin 6s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-fall { animation: st-fall 2.4s ease-in infinite; }
@keyframes st-fall { from { transform: translateY(-70px) rotate(var(--r)); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { transform: translateY(0) rotate(calc(var(--r) * 6)); opacity: 0; } }
.st-d2 { animation-delay: .8s !important; } .st-d3 { animation-delay: 1.6s !important; }
.st-shake { animation: st-shake 1.6s infinite; }
@keyframes st-shake { 0%, 60%, 100% { transform: none; } 64% { transform: translate(-3px, 1px) rotate(-1.5deg); } 68% { transform: translate(3px, -1px) rotate(1.5deg); } 72% { transform: translate(-2px, 0); } 76% { transform: translate(2px, 0); } }
.st-smoke { animation: st-smoke 2.4s ease-out infinite; opacity: 0; }
@keyframes st-smoke { from { transform: translateY(14px) scale(.4); opacity: .8; } to { transform: translateY(-34px) scale(1.5); opacity: 0; } }
.st-nudge { animation: st-nudge 2.8s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes st-nudge { 0%, 100% { transform: translateX(10px); } 45%, 55% { transform: translateX(-2px); } }
.st-blink { animation: st-blink 1.4s steps(2) infinite; }
@keyframes st-blink { 50% { opacity: 0; } }
.st-crawl { animation: st-crawl 9s ease-in-out infinite alternate; }
@keyframes st-crawl { from { transform: translateX(-16px); } to { transform: translateX(18px); } }
.st-trail { animation: st-trail 1.6s linear infinite; }
@keyframes st-trail { to { stroke-dashoffset: -22; } }
.st-tug { animation: st-tug 2.2s cubic-bezier(.5,0,.3,1.6) infinite; }
@keyframes st-tug { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(-7px); } 80% { transform: translateY(0); } 86% { transform: translateY(-3px); } }
.st-turn { animation: st-turn 4.2s cubic-bezier(.7,0,.3,1) infinite; }
@keyframes st-turn { 0%, 78% { transform: none; } 100% { transform: rotate(180deg); } }
.st-drip { animation: st-drip 1s ease-in infinite; }
@keyframes st-drip { from { transform: translateY(-14px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(26px); opacity: 0; } }
.st-sandtop { animation: st-drain 4.2s linear infinite; }
@keyframes st-drain { 0% { transform: translateY(0); opacity: 1; } 75% { transform: translateY(10px); opacity: .25; } 100% { opacity: .25; } }
.st-in { opacity: 0; animation: st-in .8s cubic-bezier(.16,1,.3,1) forwards; }
.st-i1 { --x: -80px; --y: -60px; } .st-i2 { --x: -40px; --y: 70px; animation-delay: .06s; } .st-i3 { --x: 10px; --y: 80px; animation-delay: .12s; } .st-i4 { --x: 70px; --y: 60px; animation-delay: .18s; } .st-i5 { --x: 80px; --y: -50px; animation-delay: .24s; } .st-i6 { --x: 40px; --y: -80px; animation-delay: .3s; }
@keyframes st-in { from { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.4); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: .9; } }
.st-tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: st-draw .5s cubic-bezier(.6,0,.2,1) .75s forwards; }
@keyframes st-draw { to { stroke-dashoffset: 0; } }
.st-orbit { transform-box: view-box; transform-origin: 120px 100px; animation: st-spin 1.6s cubic-bezier(.5,.1,.5,.9) infinite; }
.st-pulse { animation: st-pulse 1.6s ease-in-out infinite; }
@keyframes st-pulse { 50% { transform: scale(.86); } }
@media (max-width: 720px) {
  .state-inline { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .state-inline .state-art { width: min(200px, 60vw); }
  .state-inline .state-act { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .state-art * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; } }

/* overlays: slow network, loading */
.overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--gut); background: rgba(14,51,38,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.overlay.on { opacity: 1; }
.overlay .state { width: min(640px, 100%); transform: translateY(16px) scale(.98); transition: transform .45s cubic-bezier(.16,1,.3,1); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.overlay.on .state { transform: none; }
.overlay-soft { background: rgba(247,245,240,.72); }
/* the navigation bar: five chips that race across the top */
.navbar { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 95; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .2s; }
.navbar.go { opacity: 1; }
.navbar i { position: absolute; top: 0; width: 22%; height: 4px; border-radius: 2px; left: -25%; }
.navbar i:nth-child(1) { background: #C23B32; } .navbar i:nth-child(2) { background: #2E64A8; } .navbar i:nth-child(3) { background: #E0AE36; } .navbar i:nth-child(4) { background: #3C9A8A; } .navbar i:nth-child(5) { background: #14402F; }
.navbar.go i { animation: navrun 1.4s cubic-bezier(.6,.05,.3,.95) infinite; }
.navbar.go i:nth-child(2) { animation-delay: .12s; } .navbar.go i:nth-child(3) { animation-delay: .24s; } .navbar.go i:nth-child(4) { animation-delay: .36s; } .navbar.go i:nth-child(5) { animation-delay: .48s; }
@keyframes navrun { to { left: 110%; } }
/* offline banner */
.netbar { position: fixed; left: 50%; bottom: 18px; z-index: 85; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); background: #14402F; color: #F7F5F0; padding: 10px 16px; border-radius: 999px; font-size: .9em; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); animation: netin .5s cubic-bezier(.16,1,.3,1); }
.netbar[hidden] { display: none; }

@keyframes netin { from { transform: translate(-50%, 30px); opacity: 0; } }
@keyframes netpulse { 70% { box-shadow: 0 0 0 10px rgba(194,59,50,0); } }
/* a button that's working on it */
.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading > * { visibility: hidden; }
.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: conic-gradient(#C23B32 0 25%, #E0AE36 0 50%, #3C9A8A 0 75%, #2E64A8 0); -webkit-mask: radial-gradient(circle, transparent 6px, #000 7px); mask: radial-gradient(circle, transparent 6px, #000 7px); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* a field that needs a look */
.shake { animation: fshake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes fshake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.field .err, .f .err { display: flex; gap: 6px; align-items: flex-start; animation: errin .3s cubic-bezier(.16,1,.3,1); }
.field .err::before, .f .err::before { content: ""; flex: none; width: 9px; height: 8px; margin-top: .45em; background: currentColor; clip-path: polygon(12% 0, 100% 20%, 84% 100%, 0 70%); }
@keyframes errin { from { opacity: 0; transform: translateY(-4px); } }
/* 404 extras, bare pages */
.nf-search { display: flex; gap: 8px; max-width: 460px; margin: 22px auto 0; }
.nf-search .input { flex: 1; min-width: 0; }
.nf-links { margin-top: 14px; color: var(--ink-2); }
.bare { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; }
.bare-brand { width: 130px; margin: 24px auto 0; }
@media (prefers-reduced-motion: reduce) { .navbar.go i, .shake { animation: none !important; } .overlay .state { transform: none; } }
/* thank-you page: what happens next */
.thx-steps { list-style: none; counter-reset: t; margin: 28px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; text-align: left; }
.thx-steps li { counter-increment: t; background: var(--white); border-radius: 14px; padding: 16px 16px 18px; display: grid; gap: 2px; opacity: 0; animation: thx .6s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(1.1s + var(--i) * .12s); }
.thx-steps li::before { content: counter(t); font: 900 30px/1 var(--display); color: var(--teal, #3C9A8A); margin-bottom: 6px; }
.thx-steps b { font: 800 22px/1 var(--display); }
.thx-steps span { font-size: .92em; color: var(--ink-2); }
@keyframes thx { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .thx-steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .thx-steps li { animation: none; opacity: 1; } }
/* analytics consent */
.consent { position: fixed; left: 18px; bottom: 18px; z-index: 75; width: min(440px, calc(100vw - 36px)); display: grid; grid-template-columns: 48px 1fr; gap: 6px 14px; align-items: start; background: var(--white, #fff); color: var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 0 24px 50px -20px rgba(14,51,38,.5), 0 0 0 1px var(--line); opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .45s cubic-bezier(.16,1,.3,1); }
.consent.on { opacity: 1; transform: none; }
.consent[hidden] { display: none; }
.consent-art { width: 48px; height: 48px; animation: st-spin 14s linear infinite; }
.consent p { margin: 0; font-size: .92em; line-height: 1.45; }
.consent p a { color: var(--ink); }
.consent-act { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) { .consent { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* ───── the loader: the polymer mark from the logo draws itself, the bonds snap in, it lets go, again */
.pn-ld { display: inline-grid; place-items: center; width: var(--ld, 64px); color: var(--ink, #14402F); line-height: 0; }
.pn-ld svg { width: 100%; height: auto; overflow: visible; }
.pn-ld .t { fill: none; stroke: currentColor; stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: ld-draw 2.2s cubic-bezier(.65,0,.35,1) infinite; }
.pn-ld .b { fill: currentColor; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ld-bond 2.2s cubic-bezier(.2,.9,.3,1.4) infinite; }
.pn-ld .b2 { animation-delay: .08s; } .pn-ld .b3 { animation-delay: .16s; }
@keyframes ld-draw { 0% { stroke-dashoffset: 1; } 45%, 78% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes ld-bond { 0%, 38% { opacity: 0; transform: scale(.3); } 50%, 76% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: scale(.6); } }
/* on a white sheet when the next page is slow to arrive */
.pn-wait { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s ease; }
.pn-wait.on { opacity: 1; }
.pn-wait[hidden] { display: none; }
/* inside a button while a form sends */
.is-loading:has(.btn-ld)::after { display: none; }
.btn-ld { position: absolute; inset: 0; display: grid; place-items: center; visibility: visible !important; }
.btn-ld .pn-ld { color: #fff; }
.btn-ghost .btn-ld .pn-ld, .btn-light .btn-ld .pn-ld { color: var(--ink, #14402F); }
/* state screens (loading, slow) show the loader on a white disc */
.state-ld { display: grid; place-items: center; width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; background: #fff; box-shadow: 0 18px 40px -26px rgba(14,51,38,.45); }
/* offline note at the bottom of the page */
.netbar { background: #fff !important; color: #1E2522 !important; box-shadow: 0 0 0 1px rgba(30,37,34,.08), 0 16px 34px -18px rgba(14,51,38,.5) !important; border-radius: 16px !important; padding: 10px 18px 10px 12px !important; }
.netbar b { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .pn-ld .t { animation-duration: 6s; } .pn-ld .b { animation-duration: 6s; } }
